Questions regarding ES6 Unicode regular expressions

Allen Wirfs-Brock allen at wirfs-brock.com
Tue Aug 26 12:19:15 PDT 2014


On Aug 26, 2014, at 11:16 AM, Norbert Lindenberg wrote:

> 
> 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>

Yes, that covers it. Perhaps a NOTE explaining would be appropriate. It's a subtle change and I forgot the significance of it. 

Allen


More information about the es-discuss mailing list