This is a feature request. The RegExp Named Capture Groups has been a Stage 4 proposal. Please consider implementing it.
Fwiw: This is implemented in the JS engine in V8 6.4, which will be released as part of Node 10 next month. I don鈥檛 think there鈥檚 much more that we can do about it?
Yep, there's nothing we do in core for this.
This is currently implemented behind the --harmony-regexp-named-captures command line flag in Node.js 9.10.1 (and earlier probably, but I didn't check).
Most helpful comment
This is currently implemented behind the
--harmony-regexp-named-capturescommand line flag in Node.js 9.10.1 (and earlier probably, but I didn't check).