Regex Tester
Live matches and groups
Test JavaScript regular expressions with live highlighting, capture groups and flags.
No uploads
/ /g
Test string
1 match
Contact [email protected] or [email protected] for details.
| # | Match | Index | $1 | $2 |
|---|---|---|---|---|
| 1 | [email protected] | 8 | alice | example |
Replace with
Regex Tester — Test JavaScript regular expressions with live highlighting, capture groups and flags. Free on ToolWand: no sign-up, no watermark, works offline.
How to use Regex Tester
- 1Open Regex Tester. It runs in your browser, no sign-up.
- 2Type or paste your input.
- 3Copy or download the result.
About Regex Tester
Regex Tester runs JavaScript regular expressions against your text with live highlighting, a table of matches and capture groups, flags, and a replace preview.
When to use it
- Build and debug a regex before putting it in code.
- Check what a pattern matches in real data.
- Test search-and-replace with capture groups.
Tips
- Use $1, $2 or $<name> to reference groups in the replacement.
- It uses the same engine as browsers and Node.js; other languages’ regex flavours can differ slightly.
Questions
Which regex flavour?
JavaScript (ECMAScript), the same engine your browser and Node.js use.
How do I use groups in replace?
Reference them as $1, $2, or named groups as $<name>.
More tools
JSON Formatter & ValidatorPretty-print, minify, validate Base64 Encoder & DecoderText and files Hash GeneratorMD5, SHA-1, SHA-256, SHA-512 Password & UUID GeneratorStrong, random, local JWT DecoderHeader, payload, expiry Diff CheckerCompare two texts CSV ↔ JSON ↔ YAML ↔ XMLConvert data formats Cron Expression ExplainerPlain English + next runs