W3cubDocs

/Haxe Python

Re

package python.lib

@:pythonImport("re") Available on python

Static variables

static A:Int

static ASCII:Int

static DEBUG:Int

static DOTALL:Int

static I:Int

static IGNORECASE:Int

static L:Int

static LOCALE:Int

static M:Int

static MULTILINE:Int

static S:Int

static U:Int

static UNICODE:Int

static VERBOSE:Int

static X:Int

Static methods

@:value({ flags : 0 }) static compile (pattern:String, flags:Int = 0):Regex

static escape (string:String):TODO

@:value({ flags : 0 }) static inline findallArray (pattern:Pattern, string:String, flags:Int = 0):Array<Array<String>>

@:value({ flags : 0 }) static inline findallDynamic (pattern:Pattern, string:String, flags:Int = 0):Array<Dynamic>

@:value({ flags : 0 }) static inline findallString (pattern:Pattern, string:String, flags:Int = 0):Array<String>

@:value({ flags : 0 }) static inline findallTuple (pattern:Pattern, string:String, flags:Int = 0):Array<Tuple<String>>

@:value({ flags : 0 }) static finditer (pattern:Pattern, string:String, flags:Int = 0):NativeIterator<MatchObject>

@:value({ flags : 0 }) static match (pattern:Pattern, string:String, flags:Int = 0):Null<MatchObject>

static purge ():Void

@:value({ flags : 0, maxsplit : 0 }) static split (pattern:Pattern, string:String, maxsplit:Int = 0, flags:Int = 0):Array<String>

@:value({ flags : 0, count : 0 }) static sub (pattern:Pattern, repl:MatchObject ‑> String, string:String, count:Int = 0, flags:Int = 0):String

@:value({ flags : 0, count : 0 }) static sub (pattern:Pattern, repl:String, string:String, count:Int = 0, flags:Int = 0):String

@:value({ flags : 0, count : 0 }) static subn (pattern:Pattern, repl:Repl, string:String, count:Int = 0, flags:Int = 0):String

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