next up previous contents
Next: ActiveXObject Object Up: Methods Previous: exec   Contents

test

Description

Tests whether a pattern exists in a string.


Syntax

rgexp.test(str)


Parameters

str
The string to perform a search on Remarks


Returns

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




Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.