MatchGroup
For JVM, Native
Represents the results from a single capturing group within a MatchResult of Regex.
Parameters
value
- The value of captured group.
range
- The range of indices in the input string where group was captured.
For Common
Represents the results from a single capturing group within a MatchResult of Regex.
Note MatchGroup
on particular platforms can also provide the range
in the input
where the group match has happened.
See the docs of MatchGroup
for the specific platform for details.
For JS
Represents the results from a single capturing group within a MatchResult of Regex.
Parameters
Constructors
<init>
Represents the results from a single capturing group within a MatchResult of Regex.
MatchGroup(value: String)
Represents the results from a single capturing group within a MatchResult of Regex.
<init>(value: String, range: IntRange)