MatchGroup

actual 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
fun MatchGroup(value: String, range: IntRange)

Properties

Link copied to clipboard
val range: IntRange
Since Kotlin 1.0
Link copied to clipboard
actual val value: String
Since Kotlin 1.0