The RegExp object is a static object that generates instances of a regular
expression for pattern matching and monitors all regular expressions in the
current window or frame. Consult ECMA standards for the format of the pattern
strings supported by these regular expressions.
This is the zero-based index value of the character within the
String where the next search for the pattern begins. In a new
search, the value is zero.
A String version of the characters used to create the regular
expression. The value does not include the forward slash delimiters that
surround the expression.
Constructs the regular expression using the specified
pattern and attributes. See the class documentation for more information
on the pattern and attributes.
Parameters:
pattern - the regular expression pattern to use.
attributes - one or more attributes that control how the regular expression is executed.
Performs a search through the specified parameter for the
current regular expression and returns an array of match
information if successful. Returns null if the search produces
no results.
Parameters:
string - the String to apply the regular expression.
Returns:
an array of match information if successful, null otherwise.
Returns true if there is a match of the regular expression anywhere in the
specified parameter. No additional information is
available about the results of the search.
Parameters:
string - the String to apply the regular expression.
Returns:
true if there is a match of the regular expression anywhere in the
specified parameter, false otherwise.