Intent to Ship: RegExp named captures

15 views
Skip to first unread message

Jakob Gruber

unread,
Oct 18, 2017, 3:16:37 AM10/18/17
to v8-u...@googlegroups.com, blin...@chromium.org
Contact emails

Spec

Summary
Named captures for ECMAScript regular expressions allow developers to create and refer to named capture groups.

Interoperability and Compatibility risk
This is a stage 3 feature. It adds support for new regular expression syntax to specify and reference named captures. Named captures are exposed through the result object returned by RegExp.prototype.exec; and RegExp.prototype[@@replace] is extended to support named captures.

Webkit has shipped this in Safari Tech Preview Release 40.
Firefox and Edge have not implemented this yet.

All V8 and test262 tests pass.

Will this feature be supported on all six Blink platforms?
Yes.

Tracking bug

Chrome Platform Status

Jakob Gruber

unread,
Oct 18, 2017, 11:51:19 AM10/18/17
to Daniel Bratell, v8-u...@googlegroups.com, blin...@chromium.org, Jakob Gruber
On Wed, Oct 18, 2017 at 4:51 PM, Daniel Bratell <bra...@opera.com> wrote:
On Wed, 18 Oct 2017 09:16:32 +0200, Jakob Gruber <jgr...@chromium.org> wrote:

Webkit has shipped this in Safari Tech Preview Release 40.
Firefox and Edge have not implemented this yet.

Is there any reason to think they will not implement it soon?

No. The relevant tracking bugs are

Adam Klein

unread,
Oct 18, 2017, 12:18:02 PM10/18/17
to Jakob Gruber, v8-users, blink-dev
LGTM!

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAO%2B%2BDfJ-SuzQaxRWAOAkZF7OEM9k6U6oTqyUt-%2BgtLHp4kC5uw%40mail.gmail.com.

Mathias Bynens

unread,
Nov 11, 2017, 4:44:30 PM11/11/17
to Sathya Gunasekaran, v8-users, Jakob Gruber, blink-dev
For future reference: this landed in V8 v6.4.49 and should thus be available in Chrome 64.

On Wed, Oct 18, 2017 at 7:09 PM, 'Sathya Gunasekaran' via blink-dev <blin...@chromium.org> wrote:
LGTM2
> --
> --
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users
> ---

> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to v8-users+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAMd%2BM7x2wyh9WFKxXPFFVLs%2BNSOaCKTh6961ixje2vSo4mguZA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages