Полезная информация

Microsoft® JScript™
search Method
 Language Reference 
Version 3 

See Also                  Applies To

Searches a string for matches to a regular expression.

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.

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