W3cubDocs

/Kotlin

get

operator fun MatchGroupCollection.get(
    name: String
): MatchGroup?

Platform and version requirements: Kotlin 1.1, JVM, JRE8

Returns a named group with the specified name.

Exceptions

UnsupportedOperationException - if getting named groups isn't supported on the current platform.

Return An instance of MatchGroup if the group with the specified name was matched or null otherwise.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/get.html