|
Searches a string for matches to a regular expression.
stringObj.search(rgexp)
stringObj
The name of a String object. Required.
rgExp
A Regular Expression object containing the pattern to search for. Required.
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.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.