TOPICS
#1
Literals & Character Classes
Read `[abc]`, `[^0-9]`, and `\d \w \s` and predict the single character each accepts, expand every shorthand into the explicit set it stands for, and tell when a class is tighter than a literal.
12 min
#2
Anchors & Alternation
Pin a match to the input's edges with `^` and `$`, isolate a whole word with `\b`, branch with `|`, and predict which substring the eager engine commits to when the bar's reach and the anchors collide.
12 min
#3
Quantifiers & Groups
Trace how a quantifier repeats just the token on its left, watch greedy take the maximum and hand characters back while lazy `+?` grows from the minimum, and tell which span each numbered, non-capturing, or named group captures.
13 min