Native JavaScript regular expressions.
For cross-platform regular expressions, use Haxe EReg
class or
regexp literals.
See also:
Constructor
Create a regular expression object for matching text with a pattern.
Variables
Indicates whether or not the "g" flag is used with the regular expression.
Indicates whether or not the "i" flag is used with the regular expression.
The index at which to start the next match.
Indicates whether or not the "m" flag is used with the regular expression.
The source text of the regexp object, it doesn't contain the two forward slashes on both sides and any flags.
Methods
Execute a search for a match in a specified string.
Returns a result array, or null.
Execute a search for a match between a regular expression and a specified string.
Returns true or false.
Return a string representing the regular expression.