Provides information about a successful match.
| Supertypes |
|---|
The index following the last matched character in group i.
The match itself with matcher-dependent lazy vals forced, so that match is valid even once matcher is advanced.
The number of subgroups.
The index of the first matched character in group i.
The char sequence after last character of match in group i, or null if nothing was matched for that group.
| Inherited from | MatchData |
|---|
Returns char sequence after last character of match, or null if nothing was matched.
| Inherited from | MatchData |
|---|
The char sequence before first character of match in group i, or null if nothing was matched for that group.
| Inherited from | MatchData |
|---|
The char sequence before first character of match, or null if nothing was matched.
| Inherited from | MatchData |
|---|
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 |
|
|---|---|
| Returns | The requested group |
| Throws |
|
| Inherited from | MatchData |
The matched string in group i, or null if nothing was matched.
| Inherited from | MatchData |
|---|
The matched string, or null if nothing was matched.
| Inherited from | MatchData |
|---|
All capturing groups, i.e., not including group(0).
| Inherited from | MatchData |
|---|
The matched string; equivalent to matched.toString.
| Definition Classes | MatchData -> Any |
|---|---|
| Inherited from | MatchData |
The index following the last matched character.
The source from which the match originated
The index of the first matched character.
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/util/matching/Regex$$Match.html