Regex Tester
Regex Tester
Test and debug regular expressions in real time. Highlights matches, shows capture groups, supports all JavaScript regex flags, and includes a substitution mode.
Live Match Highlighting
Capture Groups
Global/Ignore case/Multiline Flags
Substitution Mode
Match Count
Free · No credit card · 50 credits/day
Everything You Need to Debug Regex
From basic pattern matching to advanced lookaheads — all the tools to master regular expressions.
Match Mode
Instantly see every match highlighted in your test string as you type.
Replace Mode
Preview substitutions with $1 backreferences before applying them.
Named Groups
Use (?<name>…) syntax and see each capture by name in the results panel.
Flags Explained
g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode) — each toggled with a single click.
Lookahead / Lookbehind
Craft zero-width assertions ((?=…) (?!…) (?<=…) (?<!…)) and confirm they match without consuming characters.
Character Class Shortcuts
Quick reference for \d \w \s \b and their uppercase negations built into the sidebar.
Frequently Asked Questions
Master Regular Expressions Today
Test patterns live, understand every match, and write regex you can actually maintain.
Get started freeFree · No credit card · 50 credits/day