Regex Tester — Live matches & groups
JavaScript Regex Tester
Build and debug regular expressions against real text. Matches highlight as you type, capture groups are listed, and you can preview replacements with $1 and $<name>.
Loading tool…
How to use Regex Tester
- Enter a pattern and flags.
- Paste a test string.
- Inspect matches and groups, or try a replacement.
Features
- Live highlighting
- Numbered and named groups
- Replace with $1 and $<name>
Popular uses
- Build and debug validation patterns
- Test find-and-replace before running it on code
- Extract values from logs
- Learn regex with live feedback
Frequently asked questions
Which regex flavour does it use?
Your browser's JavaScript RegExp engine.
Does it support named groups?
Yes. Numbered and named groups are listed for every match, and replacements can use $1 or $<name>.
Is my text uploaded?
No. Processing happens in your browser tab; the file never leaves your device.
Related tools
- CSV ⇄ JSON Convert CSV/TSV to JSON and back, with type detection and nested flattening.
- Diff Checker Line-by-line diff of two texts, with a copyable patch.
- JSON Studio Pretty-print, minify and validate JSON, and generate TypeScript interfaces.
More developer tools