Regex: How should backreferences contained in the capturing match they reference to work?
steves_list at hotmail.com
Tue Nov 27 11:55:40 PST 2007
> Tried to sum up the issue a little more coherently and well
> articulated in a blog post:
And I've posted a follow-up
http://blog.stevenlevithan.com/archives/es3-regexes-broken here (which in
truth is more of a long rant).
BTW, here's another variation on the use of Perl-style group participation
handling that I posted on a regex forum yesterday:
Reg Expression for matching [multiple required attributes] (that regex also
uses an atomic group, but that's not imperative in this case and can be
emulated even in ES3 by using capturing groups in lookahead, if necessary).
The Perl-style handling is intuitive and ripe for creative exploitation. The
ES3-style handling is essentially useless. But I'll stop beating this horse
View this message in context: http://www.nabble.com/Regex%3A-How-should-backreferences-contained-in-the-capturing-match-they-reference-to-work--tf4367560.html#a13964984
Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at Nabble.com.
More information about the Es4-discuss