Now that https://github.com/tc39/ecma262/commit/d978ed19a3173fb6b2d38d11c990e6cad9570b33 … is merged, JavaScript regular expressions officially have a dotAll mode that can be enabled through the `s` flag.
/./su matches any Unicode code point, including line terminator symbols.
https://mathiasbynens.be/notes/es-regexp-proposals#dotAll …
-
Show this thread
This means you no longer have to jump through hoops like /[\s\S]/u or /[^]/u just to match any character.
12:57 PM - 18 Dec 2017
0 replies
5 retweets
9 likes
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.