Home / Guides / Self-Hosting & Infra
Python Regex Cookbook: Named Groups, Lookahead, Greedy vs Lazy and findall Surprises
A tested regex cookbook for Python re: findall with groups, named groups and groupdict, sub with backreferences and callables, lookarounds, greedy versus lazy, MULTILINE and DOTALL, VERBOSE, fullmatch versus match, $ versus \Z, and Unicode digits.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →