public static class RegExp.RegexResult
extends com.google.gwt.core.client.JavaScriptObject
RegExp.exec(java.lang.String)
methodModifier | Constructor and Description |
---|---|
protected |
RegExp.RegexResult()
The constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns the character position of the matched substring within the string
|
String |
getInput()
Returns the input string
|
String |
getMatch(int index)
Gets the matching string at the specified index.
|
public final int getIndex()
public final String getInput()
public final String getMatch(int index)
Index 0 contains the complete matching substring while other elements of the array (1 through n) contain substrings that match parenthetical groups in the regular expression
index
- the index to be retrievednull
if none existsCopyright © 2009-2013. All Rights Reserved.