3 ms·
This article is nearly two years old. Not that this isn't a great article, but people should probably know that these features aren't entirely new.
by idbehold 8y ago
This article is nearly two years old. Not that this isn't a great article, but people should probably know that these features aren't entirely new.
- Lord_Zero 8y agoI am also curious about which the the proposed features actually made it, and which did not. - dotAll mode (the s flag) - Lookbehind assertions - Named capture groups - Unicode property escapes - String.prototype.matchAll - Legacy RegExp features
- mathias 8y agoI make sure to keep the article up-to-date. It correctly states the status for each of the features. They’re all part of ES2018 with the exception of String#matchAll which is currently at Stage 3.
- mathias 8y agoHey, I’m the author of the article. Despite its age, it’s still accurate and up-to-date. > these features aren't entirely new Depends on what you mean by that. These features are still not universally supported by all modern browsers, for example, so I can imagine they’re still new to a lot of developers. Chrome supports all these features (except for String#matchAll, which is currently at Stage 3). Other browsers don’t yet support the full set, but they’re all working on getting there.