kotlin / 1.7.0 / api / latest / jvm / stdlib / kotlin.text / -match-group / -init-.html /

<init>

Platform and version requirements: JVM (1.0)
MatchGroup(value: String, range: IntRange)

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.

Platform and version requirements: JS (1.1)
MatchGroup(value: String)

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

Parameters

value - The value of captured group.

© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-match-group/-init-.html