Microsoft® JScript search Method |
Language Reference Version 3 |
Searches a string for matches to a regular expression.
stringObj.search(rgexp)The search method syntax has these parts:
Part Description stringObj Required. The String object or literal to search. rgexp Required. A Regular Expression object containing the pattern to search for.
The search method indicates if a match is present or not. It returns true if a match is found, and false otherwise. To get further information, use the match method.