Since Groovy 5 you can use the name of a named group in a regular expression to access the value easily: https://blog.mrhaki.com/2025/09/groovy-goodness-accessing-regular.html #Groovy #Groovy5
Groovy Goodness: Accessing Regular Expression Named Groups By Name

A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Messages from mrhaki