MatchData (original) (raw)
The index following the last matched character, or -1 if nothing was matched.
The index following the last matched character, or -1 if nothing was matched.
Attributes
Source
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 in group i
, or -1 if nothing was matched for that group.
Attributes
Source
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.)
Attributes
Source
Basically, wraps a platform Matcher.
Basically, wraps a platform Matcher.
Attributes
Source
The index of the first matched character, or -1 if nothing was matched
The index of the first matched character, or -1 if nothing was matched
Attributes
Source
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 in group i
, or -1 if nothing was matched for that group.
Attributes
Source
Returns char sequence after last character of match, or null
if nothing was matched.
Returns char sequence after last character of match, or null
if nothing was matched.
Attributes
Source
The char sequence after last character of match in group i
, or null
if nothing was matched for that group.
The char sequence after last character of match in group i
, or null
if nothing was matched for that group.
Attributes
Source
The char sequence before first character of match, or null
if nothing was matched.
The char sequence before first character of match, or null
if nothing was matched.
Attributes
Source
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 in group i
, or null
if nothing was matched for that group.
Attributes
Source
The matched string in group i
, or null
if nothing was matched.
The matched string in group i
, or null
if nothing was matched.
Attributes
Source
Returns the group with the given name.
Returns the group with the given name.
Uses explicit group names when supplied; otherwise, queries the underlying implementation for inline named groups. Not all platforms support inline group names.
Value parameters
id
The group name
Attributes
Returns
The requested group
Throws
Source
The matched string, or null
if nothing was matched.
The matched string, or null
if nothing was matched.
Attributes
Source
All capturing groups, i.e., not including group(0).
All capturing groups, i.e., not including group(0).
Attributes
Source
The matched string; equivalent to matched.toString
.
The matched string; equivalent to matched.toString
.
Attributes
Definition Classes
Source
The source from which the match originated
The source from which the match originated
Attributes
Source
The names of the groups, or an empty sequence if none defined
The names of the groups, or an empty sequence if none defined
Attributes
Deprecated
[Since version 2.13.7]
groupNames does not include inline group names, and should not be used anymore
Source