W3cubDocs

/Haxe C#

Regex

package cs.system.text.regularexpressions

implements ISerializable

@:libType@:csNative@:native("System.Text.RegularExpressions.Regex") Available on cs

Variables

read only Options:RegexOptions

read only RightToLeft:Bool

Methods

@:final @:overload GetGroupNames ():NativeArray<String>

@:final @:overload GetGroupNumbers ():NativeArray<Int>

@:final @:overload GroupNameFromNumber (i:Int):String

@:final @:overload GroupNumberFromName (name:String):Int

@:final @:overload IsMatch (input:String):Bool

@:final @:overload IsMatch (input:String, startat:Int):Bool

@:final @:overload Match (input:String):Match

@:final @:overload Match (input:String, startat:Int, length:Int):Match

@:final @:overload Match (input:String, startat:Int):Match

@:final @:overload Matches (input:String):MatchCollection

@:final @:overload Matches (input:String, startat:Int):MatchCollection

@:final @:overload Replace (input:String, evaluator:MatchEvaluator):String

@:final @:overload Replace (input:String, replacement:String, count:Int, startat:Int):String

@:final @:overload Replace (input:String, replacement:String, count:Int):String

@:final @:overload Replace (input:String, replacement:String):String

@:final @:overload Replace (input:String, evaluator:MatchEvaluator, count:Int, startat:Int):String

@:final @:overload Replace (input:String, evaluator:MatchEvaluator, count:Int):String

@:final @:overload Split (input:String):NativeArray<String>

@:final @:overload Split (input:String, count:Int, startat:Int):NativeArray<String>

@:final @:overload Split (input:String, count:Int):NativeArray<String>

@:overload ToString ():String

Static variables

static CacheSize:Int

Static methods

@:final @:overload static CompileToAssembly (regexes:NativeArray<RegexCompilationInfo>, aname:AssemblyName):Void

@:final @:overload static CompileToAssembly (regexes:NativeArray<RegexCompilationInfo>, aname:AssemblyName, attribs:NativeArray<CustomAttributeBuilder>, resourceFile:String):Void

@:final @:overload static CompileToAssembly (regexes:NativeArray<RegexCompilationInfo>, aname:AssemblyName, attribs:NativeArray<CustomAttributeBuilder>):Void

@:final @:overload static Escape (str:String):String

@:final @:overload static IsMatch (input:String, pattern:String):Bool

@:final @:overload static IsMatch (input:String, pattern:String, options:RegexOptions):Bool

@:final @:overload static Match (input:String, pattern:String):Match

@:final @:overload static Match (input:String, pattern:String, options:RegexOptions):Match

@:final @:overload static Matches (input:String, pattern:String):MatchCollection

@:final @:overload static Matches (input:String, pattern:String, options:RegexOptions):MatchCollection

@:final @:overload static Replace (input:String, pattern:String, evaluator:MatchEvaluator):String

@:final @:overload static Replace (input:String, pattern:String, replacement:String, options:RegexOptions):String

@:final @:overload static Replace (input:String, pattern:String, replacement:String):String

@:final @:overload static Replace (input:String, pattern:String, evaluator:MatchEvaluator, options:RegexOptions):String

@:final @:overload static Split (input:String, pattern:String):NativeArray<String>

@:final @:overload static Split (input:String, pattern:String, options:RegexOptions):NativeArray<String>

@:final @:overload static Unescape (str:String):String

@:native("IsMatch") @:final @:overload static _IsMatch (input:String, pattern:String):Bool

@:native("IsMatch") @:final @:overload static IsMatch (input:String, pattern:String, options:RegexOptions):Bool

@:native("Match") @:final @:overload static _Match (input:String, pattern:String):Match

@:native("Match") @:final @:overload static Match (input:String, pattern:String, options:RegexOptions):Match

@:native("Matches") @:final @:overload static _Matches (input:String, pattern:String):MatchCollection

@:native("Matches") @:final @:overload static Matches (input:String, pattern:String, options:RegexOptions):MatchCollection

@:native("Replace") @:final @:overload static _Replace (input:String, pattern:String, evaluator:MatchEvaluator):String

@:native("Replace") @:final @:overload static Replace (input:String, pattern:String, replacement:String, options:RegexOptions):String

@:native("Replace") @:final @:overload static Replace (input:String, pattern:String, replacement:String):String

@:native("Replace") @:final @:overload static Replace (input:String, pattern:String, evaluator:MatchEvaluator, options:RegexOptions):String

@:native("Split") @:final @:overload static _Split (input:String, pattern:String):NativeArray<String>

@:native("Split") @:final @:overload static Split (input:String, pattern:String, options:RegexOptions):NativeArray<String>

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/text/regularexpressions/Regex.html