7.23.7 test Method

Tests whether a pattern exists in a string.
rgexp.test(str)
Arguments
- rgexp
- A Regular Expression object. Can be a variable name or a literal. Required.
- str
- The string to test a search on. Required.
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.
Copyright © 2000 Chili!Soft
|