Regex Tester
Test regular expressions live — matches highlighted, groups listed, and substitution previewed, with one-click presets.
🔒 Private: everything runs in your browser. JavaScript regex flavor — same as your browser's RegExp.
How to Test a Regex
Enter your pattern
Or start from a preset: email, URL, phone, hex colour, date.
Toggle flags
g, i, m, s, u, y with plain-English tooltips.
See the results
Matches are highlighted in your text, listed with indices and groups; add a replacement to preview substitution.
Why Use Our Regex Tester?
Truly Live
Every keystroke re-tests; matches highlight instantly.
Groups Broken Out
Each match lists its capture groups with $1-style numbering.
Substitution Preview
Type a replacement with $1/$2 references and see the result before using it.
Presets Included
Email, URL, BD/international phone, hex colour and date patterns in one click.
Common Questions About Regex Tester
Related Developer & Web Tools
JSON Formatter
Pretty-print, minify, validate syntax, and inspect JSON trees.
URL Encoder
Percent-encode and decode query parameters, special characters, and URLs.
Remove Duplicate Lines
Deduplicate text lists, sort lines alphabetically, and clean whitespace.
Word Counter
Count words, characters, sentences, paragraphs, and reading time in real time.
Ready to try it?
No sign-up, no installation — just open the tool and get started in seconds.