|
Tests whether a pattern exists in a string.
rgexp.test(str)
rgexp
A Regular Expression object. Can be a variable name or a literal. Required.
str
The string to test a search on. Required.
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.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.