Regex Typing Speed Test
Regular expressions are the purest symbol-typing challenge in software: almost every character is shifted, escaped, or both. If you can type `^(?=.*[A-Z])(?=.*\d)` fluently, no code syntax will ever slow you down again.
The Hardest Typing in Software
A working regex is a nearly unbroken run of shifted symbols: anchors (`^`, `$`), quantifiers (`+`, `*`, `?`, `{2,}`), alternation (`|`), and grouping parentheses stack together with no words to rest on. Character classes bracket ranges (`[a-zA-Z0-9._%+-]`), and escapes double the backslash burden — `\d`, `\w`, `\s` are two-key chunks that repeat throughout any real pattern.
Advanced constructs compound the density: named groups (`(?<user>...)`), lookaheads (`(?=...)`), and non-capturing groups (`(?:...)`) each open with multi-symbol sequences that must be typed precisely — a regex with one wrong character usually still runs, just wrongly. Drilling real-world patterns for emails, log parsing, and password validation builds both speed and the character-level accuracy regex uniquely punishes you for lacking.
Key Drills for Regex:
- Escape pairs as chunks: `\d`, `\w`, `\b` are single tokens. Type backslash-letter as one strike, not two decisions.
- Group openers: Drill `(?:`, `(?=`, and `(?<` — three-symbol sequences that start every advanced construct.
- Accuracy over speed: A regex typo usually fails silently. This is the one drill where 100% accuracy beats any WPM gain.
Sample Drill: Email & Capture Groups
Named capture groups for validating email-like strings.
^(?<user>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+)\.(?<tld>[a-zA-Z]{2,})$
All 15 Regex Drills
Every session picks a random drill from this pool. Use the difficulty filter above to stay on easy warm-ups or jump straight to the hard ones.
-
ISO 8601 Date easy
Validate YYYY-MM-DD dates with month and day ranges.
-
CSS Hex Color easy
Match three or six digit hex colors with an optional alpha pair.
-
URL Slug easy
Lowercase kebab-case slugs with no leading, trailing or double hyphens.
-
ZIP Code and Phone easy
US ZIP+4 codes and loosely formatted North American phone numbers.
-
Email & Capture Groups medium
Named capture groups for validating email-like strings.
-
Strict IPv4 Address medium
Each octet limited to 0-255 without leading zeros.
-
24h and 12h Times medium
Clock times with optional seconds and an AM/PM suffix.
-
Markdown Links medium
Capture link text and http(s) URL from inline Markdown links and images.
-
UUID v4 medium
Version 4 UUIDs with the fixed version nibble and variant bits.
-
Log Line Extraction hard
Parsing timestamps, levels, and messages from log lines.
-
Password Lookaheads hard
Positive lookaheads enforcing character class requirements.
-
Semantic Version hard
Full semver 2.0 grammar with named groups for prerelease and build.
-
Nginx Access Log hard
Parse combined log format lines into named fields.
-
Lookaround Tricks hard
Thousands separators, prices, repeated words and safe usernames.
-
Strings and Comments hard
Tokenize quoted strings with escapes plus block and line comments.
The Symbols That Slow You Down
The keystrokes below are where Regex typing speed is won or lost. Key positions shown for QWERTY — the pattern transfers to any layout, just on different physical keys.
| Symbol | Used For | Keys | How to Drill It |
|---|---|---|---|
| \d | Digit class | Backslash unshifted (above Enter), then letter | Backslash-letter pairs (`\d`, `\w`, `\s`, `\b`) repeat through every pattern. Two-strike chunks, not two decisions. |
| [a-z] | Character class | Shift+[ and Shift+] | Classes wrap ranges. The bracket pair around hyphenated ranges must be one motion. |
| ^ | Start anchor | Shift+6 | Line starts — and negation inside classes (`[^0-9]`). Same key, two jobs, both frequent. |
| $ | End anchor | Shift+4 | Pins patterns to line ends. Shift-4 at the end of an expression, not the start. |
| {2,} | Quantifier | Shift+[, comma unshifted, Shift+] | Brace quantifiers mix shifted brackets with an unshifted comma — an awkward three-key sequence. |
| (?: | Non-capturing group | Shift+9, then ? and : (both Shift) | The opener of every advanced construct: `(?:`, `(?=`, `(?<`. Three-symbol sequences typed precisely. |
Common Regex Typing Mistakes
- ✗ Dropping the backslash from `\d+` — the pattern still runs and matches nothing. Regex typos fail silently.
- ✗ Swapping the `^` and `$` anchors when typing fast — start and end sit close together mentally.
- ✗ Misplacing the comma in bounded quantifiers (`{2,}` versus `{,2}`) — drill them slowly until placement is certain.
What's a Good Regex Typing Speed?
Regex is the purest symbol-typing workout: 15–25 WPM is normal, and 30+ WPM with 98%+ accuracy is outstanding. On this page, chase accuracy first — a fast wrong regex is worth less than a slow right one.