MatchGroup

expect data class MatchGroup(val value: String, val range: IntRange)(source)

Represents the results from a single capturing group within a MatchResult of Regex.

Since Kotlin

1.0

Parameters

value

The value of captured group.

range

The range of indices in the input string where group was captured.

The range property is available on JVM only.

Constructors

Link copied to clipboard
constructor(value: String, range: IntRange)

Properties

Link copied to clipboard
Since Kotlin 1.0
Link copied to clipboard
expect val value: String
Since Kotlin 1.0