Regex: How should backreferences contained in the capturing match they reference to work?
brendan at mozilla.org
Thu Sep 13 21:43:11 PDT 2007
I am not looking to make trouble here, believe me, but I want to
point out two things that could help David's case:
1. JS regexps were modeled by me (to lwall's horror ;-) on Perl
regexen. Here's what perl (5.8.8) does:
"aaab" =~ /(a\1)+|b/;
print "$& ($1)\n";
Tamarin is too -- do you know what it does?
and conformant implementations. That does not mean it should prevail
for this edge case. But it does suggest we could change to match
Perl, and match David's two-person (three counting him; perhaps four
if I count ;-) developer sample.
More information about the Es4-discuss