Nov 23, 2026Nov 23, 2026 · 11 min readI Built a Regex Engine in About 100 Lines of PythonA tiny Python regex engine built with Thompson’s NFA algorithm, tested against nearly 12 million comparisons and designed to avoid catastrophic backtracking.11 min read