Regular expressions my secret love
summary
Walks through concrete regex tricks and shows what actually changes results: use non-capturing groups to stop unwanted array entries, name captures with (?<name>...) and use \k<name> to backreference by name so repeated words like "Bonjour Bonjour" match, add the s dotall flag* so . finally matches newlines, and use Unicode property escapes like \p{Emoji} to detect emoji. Mentions lookbehind, String.prototype.matchAll, and replacement functions with $ and that these features work as demonstrated.
AI-written summary · about
chapters (3)
related talks
01h 13m/ Reg (exp) {2} lained / Demystifying Regular Expressions
26mAll Aboard the Regular Express
01h 06mEverybody stands back! I know regular expressions
22mTwo Problems: Regular Expressions for Revolutionaries
32mRegExp.prototype.unicode
17mWhen Chomsky Met JavaScript: Exploring the Linguistics(...)
43mTotal ReDoS: the dangers of regex in JavaScript
58mGoodbye Regex. Hello Parsers!
