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

 

JScript Regular Expression Object exec Method

Executes a search for a match in a specified string.

Syntax: JScript Regular Expression Object exec Method

rgexp.exec(str)

Arguments: JScript Regular Expression Object exec Method

rgexp

A RegularExpression object. Can be a variable name or a literal. Required.

str

The string to perform a search on. Required.

Remarks: JScript Regular Expression Object exec Method

The results of an exec method search are placed into an array.

If the exec method does not find a match, it returns null. If it finds one or more matches, the exec method returns an array, and the RegExp object is updated to reflect the results of the search.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.