All Aboard the Regular Express
summary
Shows when to skip regex (don’t use it for full RFC email validation or checksum math) and when to use it: use extended mode (x flag) to add whitespace and comments, prefer named capture groups or non‑capturing groups to keep outputs clear, and reuse patterns with subroutines. Recommends tools: regex101 for step debugging, JetBrains/VS Code find‑and‑replace for refactors, the zxcvbn library (30,000‑word list, ~20ms scoring) and HaveIBeenPwned’s 11 billion password check. Notes JavaScript lacks x flag and advises language packages instead.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:04Why regex frustrates us
- 2:30When to avoid regex
- 9:37Where regex shines
- 12:22Six practical tips
- 13:26Use extended mode for readability
- 15:10Choose variable delimiters
- 16:33Escape only meta characters
- 17:57Capture groups explained
- 19:20Non-capturing groups
- 20:02Named capture groups
- 21:48End flag and unnamed groups
- 22:10Subroutine definitions
- 23:15Useful regex tools
- 24:37Resources and closing
related talks
01h 13m/ Reg (exp) {2} lained / Demystifying Regular Expressions
38mTotal ReDoS: the Dangers of Regex in JavaScript
43mTotal ReDoS: the dangers of regex in JavaScript
05mRegular expressions my secret love
01h 06mEverybody stands back! I know regular expressions
22mTwo Problems: Regular Expressions for Revolutionaries
17mWhen Chomsky Met JavaScript: Exploring the Linguistics(...)
58mGoodbye Regex. Hello Parsers!
