Regex-Fu
summary
Concrete rules for using regular expressions with PCRE: which modifiers change matching, how greedy quantifiers and misplaced captures explode memory and backtracking, and why word classes like \w behave differently under locales and Unicode. Demonstrates escaping user input with language-specific escape functions, validating versus matching (use whitelist vs blacklist), avoiding recursion, and always testing in the same engine. Recommends live testing on regex101 and checking ECMAScript/JavaScript and POSIX engine differences.
AI-written summary · about
chapters (10)
- 0:00Introduction to regex
- 5:02Regex engines and variations
- 10:21Regex basics and syntax
- 15:41Character classes and boundaries
- 20:59Localization in regex
- 25:33Escaping special characters
- 29:12Regex modifiers
- 32:07Testing and debugging regex
- 35:45Local settings and implementations
- 37:15Q&A and closing
related talks
56mHow I learned to stop worrying and love Regex
57mRegular Expressions, To Match Or Not, That is the Question
59mRegular Expressions
38mEscape from Planet Regex - Kotlin to the Rescue
22mRegex in PowerShell: How to grasp it and why you should grasp it
04mThree indispensable REGEX hacks
34mAn Intuitive Grasp of RegEx’s in Python
20mBuild your own Swift Regex: A Gentle Introduction to Swift Regex
