本页面有中文版。
Cette page est disponible en français.
Esta página está disponible en español.

Academy

The Regex Hunter Academy teaches regular expressions in 9 free tracks and 111 short steps, from literal text and character classes to lookarounds and real-world validators. Every step is a small hunt you solve in the browser with JavaScript regex, and each finished track earns a certificate you can share.

Your progress

0 / 111steps · 0 of 9 badges

Start here: Track 1
  1. 1

    TRACK 1

    Hunter basics

    The two building blocks of every pattern: literal text and the wildcard dot — and how a pattern matches anywhere inside a string.

    0 / 9 steps

  2. TRACK 2

    Character classes

    Master character classes: build sets of allowed characters, sweep whole ranges, flip a set inside-out with negation, and lean on the shorthands every hunter knows by heart.

    Clear Track 1 to unlock
  3. TRACK 3

    Quantifiers

    Control how many times something repeats — from "maybe once" to "exactly three" — with ?, *, +, {n,m} and their greedy or lazy forms.

    Clear Track 2 to unlock
  4. TRACK 4

    Anchors & boundaries

    Match positions, not characters — pin your pattern to the start, the end, or the seams between words.

    Clear Track 3 to unlock
  5. TRACK 5

    Groups & backreferences

    Bundle characters with parentheses, branch with alternation, then capture a match and recall it later in the same pattern with a backreference.

    Clear Track 4 to unlock
  6. TRACK 6

    Lookarounds

    Peek without consuming — lookahead and lookbehind are zero-width assertions that check what comes before or after a spot, then step back and let the real match continue.

    Clear Track 5 to unlock
  7. TRACK 7

    Real-world validators

    Match the formats you meet every day — integers, decimals, hex colours, times, dates, emails, slugs, IPs, ZIPs and more.

    Clear Track 6 to unlock
  8. TRACK 8

    Golf techniques

    Anyone can write a regex that works. A hunter writes the SHORTEST one that works. This is regex golf — separate the monsters from the innocents in the fewest characters, one sharpening trick at a time, and match or beat par on every board.

    Clear Track 7 to unlock
  9. TRACK 9

    Field work

    Real text — receipts, logs, emails — where one pattern combines everything you learned: classes, quantifiers, anchors and groups.

    Clear Track 8 to unlock