MatchGroup

Common
1.0
class MatchGroup
JVM
JS
Native
1.0
data class MatchGroup
For JVM, Native

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

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.

For JS

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

Parameters

value - The value of captured group.

Constructors

<init>

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

JS
1.1
MatchGroup(value: String)
JVM
Native
1.0
<init>(value: String, range: IntRange)

Properties

JVM
Native
1.0

range

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

val range: IntRange
Common
JVM
JS
Native
1.0

value

The value of captured group.

val value: String