firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.2k stars 198 forks source link

Support Golang named caputures with same name #2278

Closed Roemer closed 1 month ago

Roemer commented 1 month ago

Feature

Go supports named captures with the same name (see on https://pkg.go.dev/regexp) but using such a regex (like (?P<word>.*)\s+(?P<word>.*)) shows an error: A subpattern name must be unique. Would be great if those would be supported in Regex101 as well.

firasdib commented 1 month ago

Thanks, will be fixed in the next version

Roemer commented 1 month ago

Awesome, thanks!