get

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

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.