MatchGroup

Common
1.0
class MatchGroup
(source)
JVM
JS
1.0
data class MatchGroup
(JVM source) (JS source)
For JVM

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.

JVM
1.0
MatchGroup(value: String, range: IntRange)
JS
1.1
MatchGroup(value: String)

Properties

JVM
1.0

range

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

val range: IntRange
Common
JVM
JS
1.0

value

The value of captured group.

val value: String