Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript String Object search Method

Searches a string for matches to a regular expression.

Syntax: JScript String Object search Method

stringObj.search(rgexp)

Arguments: JScript String Object search Method

stringObj

The name of a String object. Required.

rgExp

A Regular Expression object containing the pattern to search for. Required.

Remarks: JScript String Object search Method

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.