W3cubDocs

/Haxe Python

MatchObject

package python.lib

import python.lib.Re

Available on python

Variables

read only endpos:Int

read only lastgroup:Int

read only lastindex:Int

read only pos:Int

read only re:Regex

read only string:String

Methods

@:value({ i : 0 }) end (i:Int = 0):Int

end (x:String):Int

inline endById (s:String):Int

expand (template:String):String

@:value({ i : 0 }) group (i:Int = 0):String

group (x:String):String

inline groupById (s:String):String

@:value({ defaultVal : null }) groupdict (?defaultVal:Dict<String, String>):Dict<String, String>

@:value({ defaultVal : null }) groups (?defaultVal:String):Tuple<String>

span (?i:Int):Tuple2<Int, Int>

@:value({ i : 0 }) start (i:Int = 0):Int

start (x:String):Int

inline startById (s:String):Int

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/python/lib/MatchObject.html