MatchData
This class provides methods to access the details of a match.
- Source
- Regex.scala
Value members
Abstract methods
The index following the last matched character in group i
,
or -1 if nothing was matched for that group.
- Source
- Regex.scala
The number of capturing groups in the pattern. (For a given successful match, some of those groups may not have matched any input.)
- Source
- Regex.scala
The index of the first matched character in group i
,
or -1 if nothing was matched for that group.
- Source
- Regex.scala
Concrete methods
Returns char sequence after last character of match,
or null
if nothing was matched.
- Source
- Regex.scala
The char sequence after last character of match in group i
,
or null
if nothing was matched for that group.
- Source
- Regex.scala
The char sequence before first character of match,
or null
if nothing was matched.
- Source
- Regex.scala
The char sequence before first character of match in group i
,
or null
if nothing was matched for that group.
- Source
- Regex.scala
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 Params
- id
The group name
- Returns
The requested group
- Throws
- IllegalArgumentException
if the requested group name is not defined
- Source
- Regex.scala