← Docs
kotlin-stdlib / kotlin.text / MatchGroup / <init>

<init>

JVM
Native
1.0
<init> ( 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.

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.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .