Brendan Eich wrote:
We'll get this strawman:
http://wiki.ecmascript.org/doku.php?id=strawman:steve_levithan_regexp_api_improvements
onto the agenda for the next TC39 meeting.
Neat-o. I mentioned in the blog post referenced there [1] that I'd be doing
a separate write-up with my opinionated take or what new RegExp features
should be added, rather than changed. Unfortunately I never followed
through, but IMO the most pressing additions are named capture and
backreferences, atomic groups, lookbehind, the /x flag, the /s flag, and a
/u flag that lets \d \D \w \W \b \B follow Unicode. There are plenty of
other useful features that could be considered, but I'll wait at least until
there is some reaction to the above.
There are of course details to hash out for named capture, lookbehind, and
the /x flag before they can be spec-ed. The /s flag is the least important
of the above--I've included it merely because of its convenience over e.g.
[\s\S] and the fact that its absence is unique among modern regex flavors
and a common portability hindrance.
Brendan Eich wrote:
I had thought we'd approved lookbehind. I will do what I can to get it
into ES6.
I thought so, too. See [2] from Waldemar ("May 24-26 rough meeting notes").
Specifically, he stated "Lookbehind support is promoted to required
normative."
[1] http://blog.stevenlevithan.com/archives/fixing-javascript-regexp
[2] https://mail.mozilla.org/pipermail/es-discuss/2011-May/014748.html
--Steven Levithan
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss