Microsoft® JScript™
search Method
 Language Reference 
Version 3 

See Also                  Applies To


Description
Searches a string for matches to a regular expression.
Syntax
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.

Remarks
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.

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.