Regex Token Reference
Look up every regular-expression token (character classes, anchors, quantifiers, groups, lookaround, flags and escapes) in one searchable table, each with its name, a plain-English meaning and a short example. In your browser, free.
Every regular-expression token, explained with an example. Everything runs in your browser from a built-in reference, nothing is sent to the server.
| Token | Name | Description | Example |
|---|
About Regex Token Reference
The Regex Token Reference collects every regular-expression building block in one searchable table: character classes like \d and \w, anchors like ^ and \b, quantifiers like * and {2,4}, groups and backreferences, lookahead and lookbehind, flags such as i, g and m, and the escapes for special characters. Each token comes with its name, a plain-English meaning and a short example.
It is built for the moment you half-remember a token: you know a lookahead exists but not whether it is (?=…) or (?<=…), or you cannot recall if \b is a word boundary or a backspace. Search accepts the token itself, its name or a word from its meaning, so any of those clues finds the row.
The seven category filters (character classes, anchors, quantifiers, groups and references, lookaround, flags and modifiers, escapes and special) also make the table a compact study guide for reading other people’s patterns. Every token is copyable with one click, and the whole reference runs in your browser.
How to use Regex Token Reference
- Type a token (\d), a name (word boundary) or a meaning keyword (lookahead) into the search box.
- Or narrow the table by category: character classes, anchors, quantifiers, groups, lookaround, flags or escapes.
- Read the token’s plain-English description and its short usage example.
- Click the copy button to grab the exact token for your pattern.