~/shop/regex-field-guide

The Regex Field Guide
Learn regular expressions one idea at a time, with 23 exercises on real files and a checker that grades them.
$9
Secure checkout by Gumroad. The download link arrives by email right after paying.
Regex looks like a cat walked across the keyboard. It isn't. Every pattern is built from about a dozen simple ideas, and this guide teaches them one at a time.
What's inside
- 12 chapters, from your first pattern to lookarounds, flags and real-world recipes
- 23 exercises on realistic files: a contact list, a server log, an orders spreadsheet
- Answers with explanations, and a checker script that tells you when you're right
- Notes wherever JavaScript, Python, grep, sed and VS Code disagree
- A two-page cheat sheet
Every highlighted match in the book was produced by running the pattern, in both JavaScript and Python.
Format
A 35-page PDF in A4 and US Letter, plus the practice kit. Practice anytime in the free Laboratory at regex.abualhawa.com.