Native JavaScript regular expressions.
For cross-platform regular expressions, use Haxe EReg class or
regexp literals.
See also:
Constructor
new(pattern:String, ?flags:String)
Create a regular expression object for matching text with a pattern.
Variables
read onlysource:String
The source text of the regexp object, it doesn't contain the two forward slashes on both sides and any flags.
Methods
exec(str:String):Null<RegExpMatch>
Execute a search for a match in a specified string. Returns a result array, or null.
test(str:String):Bool
Execute a search for a match between a regular expression and a specified string. Returns true or false.