After today’s TC39 meeting, I’m excited to announce that…
ES2018 makes regular expressions more readable and useful through the following features:
- dotAll mode (the s flag)
- Lookbehind assertions
- Named capture groups
- Unicode property escapes
https://mathiasbynens.be/notes/es-regexp-proposals …
-
-
Replying to @mathias
Look-behind is ok but i want freespace mode, comments, named capture. Thats why we still need XRegExp and, seems, will need always. Kind a Babel for regexps
2 replies 0 retweets 3 likes -
Replying to @bga_
Named captures are part of ES2018 (and my tweet, and the linked blog post)
1 reply 0 retweets 7 likes -
Replying to @mathias
Yeah, i got it after tweeting. Anyway, a dont see point to reinvent wheel when libpcre available.
1 reply 0 retweets 1 like -
Replying to @bga_
We can make the ECMAScript wheel better. In particular, Unicode property escape semantics in PCRE are… not ideal.
1 reply 0 retweets 2 likes -
I have no idea what that would entail, but maybe improve that part of PCRE so everyone can benefit? Then as suggested, use it in JS. There's something to be said about being able to share expressions between languages, instead of rewriting them & workarounds
2 replies 0 retweets 0 likes -
Replying to @g_rossolini @mathias
Not only about langs but put it for grep in console. Let PCRE is not ideal but so widespread. I still dont see point to invent different syntax.
1 reply 0 retweets 0 likes
Think of it as PCRE: The Good Parts.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.