Microsoft® JScript™
test Method
 Language Reference 
Version 3 

See Also                  Applies To


Description
Tests whether a pattern exists in a string.
Syntax
rgexp.test(str)

The test method syntax has these parts:

Part Description
rgexp Required. A Regular Expression object. Can be a variable name or a literal.
str Required. The string to test a search on.

Remarks
The test method checks to see if a pattern exists within a string and returns true if so, and false otherwise.

The RegExp object is not modified by the test method.


© 1997 by Microsoft Corporation. All rights reserved.