- TIL you can name regex capture groups, e.g.: 'John Doe'.match(/^(?<first>\w+)\s+(?<last>\w+)/).groups => {first: "John", last: "Doe"} https://developer.mozilla.org/en-us/docs/web/javascript/guide/regular_expressions/groups_and_ranges#using_named_groups 51 comments javascript
Linking pages
- Boa release v0.13 - Boa https://boa-dev.github.io/2021/09/30/boa-release-13.html 49 comments
- URLPattern brings routing to the web platform - Chrome Developers https://web.dev/urlpattern/ 1 comment
- New in Firefox 78: DevTools improvements, new regex engine, and abundant web platform updates - Mozilla Hacks - the Web developer blog https://hacks.mozilla.org/2020/06/new-in-firefox-78/ 0 comments
Linked pages
Would you like to stay up to date with Web Development? Checkout Web Development
Weekly.
Related searches:
Search whole site: site:developer.mozilla.org
Search title: Groups and backreferences - JavaScript | MDN
See how to search.