The index following the last matched character in group i
,
or -1 if nothing was matched for that group.
The index following the last matched character, or -1 if nothing was matched.
The number of capturing groups in the pattern.
The number of capturing groups in the pattern. (For a given successful match, some of those groups may not have matched any input.)
The names of the groups, or an empty sequence if none defined
The source from which the match originated
The index of the first matched character in group i
,
or -1 if nothing was matched for that group.
The index of the first matched character, or -1 if nothing was matched
The char sequence after last character of match in group i
,
or null
if nothing was matched for that group.
Returns char sequence after last character of match,
or null
if nothing was matched.
The char sequence before first character of match in group i
,
or null
if nothing was matched for that group.
The char sequence before first character of match,
or null
if nothing was matched.
Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
Returns the group with given name.
Returns the group with given name.
The group name
The requested group
if the requested group name is not defined
The matched string in group i
,
or null
if nothing was matched.
The matched string, or null
if nothing was matched.
All capturing groups, i.e., not including group(0).
The matched string; equivalent to matched.toString
.
The matched string; equivalent to matched.toString
.
This class provides methods to access the details of a match.