class stringMatch
Describes the result of string matching operation as returned by the string::matchString() and string::matchArray() methods.
Properties
int arrayIndex () | Returns the array index of the matching element. |
int matchLength () | Returns the length of the match in characters. |
int matchStart () | Returns the character position where this match starts. |
Reference
accessor int arrayIndex () |
Returns the array index of the matching element. For matchString() it specifies the array element that was found in 'this' string as a substring. For matchArray() it specifies the array element that contains 'this' string as a substring. |
accessor int matchLength () |
Returns the length of the match in characters. |
accessor int matchStart () |
Returns the character position where this match starts. For matchString() the position refers to 'this' string. For matchArray() the position refers to the element specified by 'arrayIndex'. |