Questions regarding ES6 Unicode regular expressions

Norbert Lindenberg ecmascript at lindenbergsoftware.com
Tue Aug 26 11:16:59 PDT 2014


On Aug 26, 2014, at 10:01 , Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:

> So, here is a summary of my proposal:

> 3) Reserve within /u RegExp patterns, the syntax \p{<characters>} and \P{<characters>}

This was already decided by TC39 at the March 2012 meeting, and if I read the spec correctly, it’s already specified:

IdentityEscape[U] ::
    [+U] SyntaxCharacter
    [~U] SourceCharacter but not IdentifierPart
    [~U] <ZWJ>
    [~U] <ZWNJ>

https://mail.mozilla.org/pipermail/es-discuss/2012-March/021919.html
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-patterns

Norbert



More information about the es-discuss mailing list