Regex named-group and backreference syntax

Xueming Shen Xueming.Shen at Sun.COM
Wed Sep 2 22:21:12 UTC 2009

RFE#6878475 has been filed to trace this issue.

At this point we are going to update the doc and implementation to
(1)disallow the group name started with digit character
(2)use ${name} for the group reference in replacement string.

The \k<n> and ${n} can leave for further discussion (whether or not we 
need this NEW feature, while there is existing syntax that can do the 
job just fine).


Mark Reinhold wrote:
>> Date: Wed, 02 Sep 2009 18:55:49 +0100
>> From: Andrew John Hughes <gnu_andrew at>
>> 2009/9/2 Mark Reinhold <mr at>:
>>> I'd say ${name} is the best option here given that it will be familiar,
>>> at least, to Perl and .NET developers.
>> It's also used for substitution in shell and Makefiles :)
> That too!
> - Mark

More information about the core-libs-dev mailing list