July 1998
Intermediate to advanced
1456 pages
65h 5m
English
match() — NN 4 IE J3 ECMA n/a
match(regexpression)Returns an array of strings within the current string that match the
regular expression passed as a parameter. For example, if you pass a
regular expression that specifies any five-digit number, the returned
value of the match() method would be an array of
all five-digit numbers (as strings) in the main string. Properties of
the RegExp static object are influenced by this
method’s operation.
An array of strings.
regexpression
A regular expression object. See the regular expression object for the syntax to create a regular expression object.
Read now
Unlock full access