regexr
regexr copied to clipboard
Issue with group backreference by name
RegExr recognize naming of capturing group, however at the same time when i try to refer to named group with '\k<groupName>' it counts '\k' as escaped character.
Both PCRE2 and javascript do not support \k
https://www.regular-expressions.info/refcapture.html
Both PCRE2 and javascript do not support \k
https://www.regular-expressions.info/refcapture.html
Are you that sure about PCRE2?
https://www.regular-expressions.info/refext.html
It's unclear to me why this was closed – javascript does support \k
:

But this tool still does not recognize \k
as anything other than an escaped k
:

It does appear that \k support has been added in the intervening years. Opening this back up. Given that we have support for it in PCRE, this should be an easy addition.