Clear Up
SharpKit Reference

JsRegExp.exec Method (JsString)

If the exec method does not find a match, it returns null. If it finds a match, exec returns an array, and the properties of the global RegExp object are updated to reflect the results of the match. Element zero of the array contains the entire match, while elements 1 – n contain any submatches that have occurred within the match. This behavior is identical to the behavior of the match method without the global flag (g) set. If the global flag is set for a regular expression, exec searches the JsString beginning at the position indicated by the value of lastIndex. If the global flag is not set, exec ignores the value of lastIndex and searches from the beginning of the JsString.

Namespace: SharpKit.JavaScript

Class: JsRegExp


public JsRegExpResult exec(JsString text)


Type: SharpKit.JavaScript.JsString
The String object or JsString literal on which to perform the search

Return Value

Type: SharpKit.JavaScript.JsRegExpResult
© Copyright 2005-2011 SharpKit. All rights reserved.