Default non-capturing regex flag [WAS: how to create strawman proposals?]

Brendan Eich brendan at
Thu Jun 2 22:49:12 PDT 2011

On Jun 2, 2011, at 10:46 PM, Kyle Simpson wrote:

> I propose a /n flag for regular expressions, which would swap the default capturing/non-capturing behavior between ( ) and (?: ) operators (that is, ( ) would not capture, and (?: ) would capture).

I like it. No worries about the .NET somewhat different flag.

> The /n property would reflect on the RegExp object as `Noncapturing == true`.

Lowercase noncapturing, right?


More information about the es-discuss mailing list