Regex Tester
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
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.
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