Regex Practice

Free interactive regex exercises with real-time feedback

0
Score
0
Streak
0
Completed
20
Total

Features

Real-Time Feedback

See matches highlighted instantly as you type your regex. No need to submit — results update live with green and red indicators showing expected versus actual matches.

Progressive Difficulty

20 puzzles from beginner to advanced. Start with literal characters and character classes, progress through anchors, groups, lookaheads, and backreferences.

Hint System

Stuck on a puzzle? Get progressive hints — see a partial regex pattern, reveal the first character, or view the complete solution to keep learning.

Progress Tracking

Your completed puzzles, score, and streak are saved locally. Pick up right where you left off. Compete with yourself to maintain daily streaks.

Frequently Asked Questions

What regex flavor does this tool use?
This tool uses your browser's built-in JavaScript regex engine (ECMAScript). It supports character classes, quantifiers, anchors, groups, alternation, lookaheads, word boundaries, and backreferences — all covered in the puzzles.
How is scoring calculated?
Easy puzzles award 10 points, medium puzzles 20 points, and hard puzzles 30 points. Using a hint on a puzzle halves its point value. Your streak counts consecutive days with at least one puzzle solved.
Is my progress saved?
Yes. All progress is stored in your browser's localStorage. No account or sign-up required. Clearing browser data resets your progress. Your data never leaves your device.

Get Regex Tips in Your Inbox

Weekly regex patterns, explanations, and new puzzles delivered to your email.