Regex Tester & Debugger
Write a pattern, pick your flags, and see every match and capture group highlighted instantly.
Regex Tester
🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.
How it works
A regular expression is a compact pattern for finding and extracting text — email addresses, phone numbers, tags, anything with a repeatable shape. Getting one right usually means trial and error, and this tester gives you that loop instantly: type a pattern, paste sample text, and watch every match light up as you go.
Enter your pattern (no surrounding slashes needed) and the flags you want — g for all matches, i for case-insensitive, m for multiline, s for dot-matches-newline. Matches are highlighted in place and each match's capture groups are listed below, so you can see exactly what $1, $2 and so on captured.
It uses the same JavaScript regex engine your code runs, so what works here works in your app. All matching happens locally — your test data is never uploaded.