Regex Tester
Write a regular expression and see every match highlighted as you type, with all capture groups listed in a table. Test a replacement too.
🔒 Your files are processed on your device and are never uploaded.
How to use
- 1Type your pattern between the slashes and pick the flags.
- 2Paste the text to test. Matches are highlighted live.
- 3Optional: turn on Replace to try a replacement with $1, $2…
Frequently asked questions
Which regex flavour is this?
JavaScript (ECMAScript), as used in browsers and Node.js. It is very close to PCRE, Python and Java for most patterns.
How do I use groups in the replacement?
Use $1, $2… for numbered groups, $<name> for named groups and $& for the whole match.
Is my data sent anywhere?
No. Everything runs in your browser, so your data stays on your device.
More free tools
JSON Formatter & ValidatorFormat, validate and minify JSON.Base64 Encode & DecodeEncode text or files to Base64, and decode Base64.Hash Generator (MD5, SHA-256…)MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files.JWT DecoderDecode JSON Web Tokens and check expiry and signature.URL Encode & DecodePercent-encode or decode text and URLs.UUID GeneratorGenerate random UUIDs (v4) or time-ordered UUIDs (v7).