Build Your Own Regex Engine
Build a regex engine from first principles — literal matching, character classes, quantifiers, anchors, alternation, capture groups. You'll implement Thompson's NFA construction (1968!) and the parallel simulation algorithm that guarantees linear time. By the end you'll understand what makes RE2, Go's regexp, and Rust's regex crate fast and safe.
intermediateFree4 hours16 lessons
Start learningor sign up to track progress
Curriculum
Loading reference solution…