Regex Tester
Live-highlight matches, debug regex.
A free regex tester that highlights matches live, counts them, shows capture groups and previews replacements. It ships with a library of common patterns (email, URL, IP and more) and runs entirely in your browser.
How to use
- Type a pattern in the Pattern box and toggle the g/i/m/s/u flags with the chips.
- Paste text into the Test string box to see matches highlight instantly.
- Use the built-in library to drop in common patterns like email, URL or IPv4.
- Turn on Replace and enter a replacement ($1, lt;name> supported) to preview the result.
FAQ
- Which regex flavor does it use?
- JavaScript (ECMAScript) regex — the same RegExp engine as in browsers and Node, with named capture groups and the g/i/m/s/u flags.
- Is my test text uploaded?
- No. Matching and replacing run locally in the browser; neither your text nor your pattern leaves your device.
- How do I reference capture groups in replacements?
- Use $1, $2 for numbered groups and lt;name> for named groups, just like JavaScript’s String.replace.
Related tools
- 2FA Authenticator — End-to-end encrypted 2FA vault with live codes.
- Password Vault — Zero-knowledge vault for site logins; survives password changes.
- Data Format — Convert between JSON, YAML, TOML, CSV.
- Base64 — Encode / decode text & files in Base64.
- URL Encode — Encode / decode URL components.
- JWT Decode — Inspect JWT header & payload.