exec
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.
test
test(string
:
String)
:
boolean
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.