MatchResult
Types
Destructured
Provides components for destructuring assignment of group values.
class DestructuredProperties
destructured
An instance of MatchResult.Destructured wrapper providing components for destructuring assignment of group values.
open val destructured: Destructuredgroups
A collection of groups matched by the regular expression.
abstract val groups: MatchGroupCollectiongroupValues
A list of matched indexed group values.
abstract val groupValues: List<String>range
The range of indices in the original string where match was captured.
abstract val range: IntRangevalue
The substring from the input string captured by this match.
abstract val value: StringFunctions
next
Returns a new MatchResult with the results for the next match, starting at the position at which the last match ended (at the character after the last matched character).
abstract fun next(): MatchResult?