Caniuse: Named Capture Groups

Created on 2 Jan 2019  路  6Comments  路  Source: Fyrd/caniuse

The 2018 Ecmascript specification specifies support for named capture groups in regular expressions.

I can't find browser-coverage for this feature on caniuse.com:

https://caniuse.com/#search=namedcapturegroups

I also posted a question on stackoverflow.com asking about the best practice for testing for these new regEx features. Maybe someone will offer a non-obvious suggestion.

Support data suggestion

All 6 comments

I would maybe bring up an issue with https://github.com/kangax/compat-table which is what caniuse usually references for such specific es features.

It looks like they do test for it:
https://github.com/kangax/compat-table/issues/1180

Almost the end of 2019, & Firefox still doesn't have this:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp

Ah well, maybe time to switch to Brave....

@tomByrer Do like me and post a disgusted comment here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1225665

Update: I just realized that the above link is for look-behinds. You'll need to find the bug that's dedicated to Named Capture Groups. I did a search, this is probably it:
https://bugzilla.mozilla.org/show_bug.cgi?id=1362154

Seems there is auto-imports from MDN compat tables, so the info does show up:
https://caniuse.com/#search=named%20capture
(TBH, I think this is the best way to go; have 1 source of truth.)
I'm fine if @Fyrd closes this issue.

@Lonniebiz No point in 'making noise', they already said "We're working on this." I prefer not to bug them, & I'm already 1/2 switched to Vivaldi for dev work.

As mentioned above, now available at https://caniuse.com/#feat=mdn-javascript_builtins_regexp_named_capture_groups

Was this page helpful?
0 / 5 - 0 ratings