Regularexpressions you can see.
- 01 · Read
Each lesson is one idea, explained in a few short paragraphs — no walls of theory.
- 02 · Do
Type into a live environment and watch it react. Tab completes, ↑ recalls,
undotakes back any step. - 03 · Match
Reach the goal any way you like — you're judged on the result, not the keystrokes. Par is the shortest route.
01
Characters
Literals, the dot, character classes and their shorthands.
- 01 Find a word The simplest pattern is just the text you're looking for.
- 02 One of several characters [ae] — a character class.
- 03 Ranges and negation [0-9a-f], and [^…] for "anything but".
- 04 Shorthand classes \d, \w and \s — the classes you'll type most.
- 05 The dot, and escaping it . matches anything — so a real dot needs \.
02
Repetition
Quantifiers — how many, and how greedily.
03
Anchors & boundaries
Matching at the start, the end, or the edge of a word.
04
Groups
Alternation, capture groups and backreferences.
05
Advanced
Lookarounds, lazy quantifiers and real-world patterns.
Patterns run on your browser's own JavaScript regex engine. The syntax taught here is shared by Python, Ruby, PCRE and most editors; the lessons flag the few places they disagree.