next up previous contents
Next: replace Up: Methods Previous: toUpperCase   Contents


match

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


Syntax

  1. StringObj.match(rgExp)
  2. "String Literal".match(rgExp)


Parameters

rgExp
The regular expression to use in the search.


Returns

It 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 ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.