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
-
-
-
Named captures are part of ES2018 (and my tweet, and the linked blog post)

- 7 more replies
New conversation -
-
-
Good job! One thing we found yesterday which would have helped JS regexp (and other regexp flavors) are missing: a named character class for characters that need to be escaped inside regular expressions. I propose `\e`.
-
Does /\p{Pattern_Syntax}/u do what you want? https://mothereff.in/regexpu#input=console.log%28%2F%5Cp%7BPattern_Syntax%7D%2Fu.test%28%27%2F%27%29%29%3B&unicodePropertyEscape=1 …
End of conversation
New conversation -
-
-
Wow. TC39 actually agreed on something for once. My criticism and ideas are finally getting through to the leadership over there. It's about time we started making Javascript great again!
-
SO HAPPY.
End of conversation
New conversation -
-
-
Lookbehind? That's hot.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
BLASPHEMY! Readable Regular Expressions?! These are the End Times!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
What about the w flag, which ignores all whitespace and allows newlines. Watch that legibility rate go up.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@qlex_ ben tiens, le lookbehind qui nous manquait... Bon à voir s'il y aura un babel-polyfill, sinon on n'est pas rendu. -
C’est bon ça !!!

End of conversation
New conversation -
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.
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