/
matchEnd
matchEnd
Description
Returns the position where the match ends or -1 if it doesn't match.
Parameters
Return Type
Number
Example
wret = matchEnd("This will return ?", ".*will");
print("Return " + wret);
Matches the string ending with "will" and will return 9 (the position of "l" character).
For more information on regular expressions see Oracle documentation.
See also
, multiple selections available,
Related content
matches
matches
More like this
lastIndexOf
lastIndexOf
Read with this
matchEnd
matchEnd
More like this
substring
substring
Read with this
matchEnd
matchEnd
More like this
matchStart
matchStart
Read with this