MatchGroup

expect class MatchGroup(source)

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.

Since Kotlin

1.0
actual data class MatchGroup(source)

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

Since Kotlin

1.1

Parameters

value

The value of captured group.

actual data class MatchGroup(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.

actual data class MatchGroup(source)

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

Since Kotlin

1.3

Parameters

value

The value of captured group.

range

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

actual data class MatchGroup(source)

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

Since Kotlin

1.8

Parameters

value

The value of captured group.

range

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

actual data class MatchGroup(source)

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

Since Kotlin

1.8

Parameters

value

The value of captured group.

range

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

Constructors

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

Properties

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

The value of captured group.

Since Kotlin 1.0
actual val value: String
Since Kotlin 1.1
actual val value: String
Since Kotlin 1.0
actual val value: String
Since Kotlin 1.3
actual val value: String
Since Kotlin 1.8
actual val value: String
Since Kotlin 1.8