kotlin.text.MatchGroupCollection
MatchGroupCollection
interface MatchGroupCollection : Collection<MatchGroup?>
Represents a collection of captured groups in a single match of a regular expression.
This collection has size of groupCount + 1
where groupCount
is the count of groups in the regular expression. Groups are indexed from 1 to groupCount
and group with the index 0 corresponds to the entire match.
An element of the collection at the particular index can be null
, if the corresponding group in the regular expression is optional and there was no match captu