---
title: "namedGroups"
sidebar_label: "namedGroups"
description: "Kotlin binding reference: namedGroups."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Regex](index.md)/[namedGroups](namedGroups.md)

# namedGroups

[common]\
fun [namedGroups](namedGroups.md)(): [Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)&lt;[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)&gt;

The named groups of a `(?P<name>...)` pattern mapped to their 1-based group index; empty when none.