July 1998
Intermediate to advanced
1456 pages
65h 5m
English
test() — NN 4 IE J3 ECMA n/a
test(string)Returns true if there is a match of the regular
expression anywhere in the string passed as a parameter;
false if not. No additional information is
available about the results of the search. This is the fastest way to
find out if a pattern matches within a string.
Boolean.
string
The string to be searched.
Read now
Unlock full access