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

 

JScript String Object match Method

Performs a search on a string using the supplied Regular Expression object.

Syntax: JScript String Object match Method

stringObj.match(rgExp)

Arguments: JScript String Object match Method

strObj

The name of a String object. Required.

rgExp

The Regular Expression object to use in the search. Required.

Remarks: JScript String Object match Method

The match method, which behaves like the exec method, returns an array of values.

Element zero of the array contains the last matched characters. Elements 1...n contain matches to any parenthesized substrings in the regular expression.

The method updates the contents of the RegExp object.

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