Regex Tester
Try a regular expression and see every match live.
Loading the tool on your device…
Regex Tester runs a JavaScript regular expression on your text, highlights each match and lists its groups. A pattern that runs too long is stopped instead of freezing the page.
Updated 6 December 2026 · runs in your browser
How to use it
- Type a pattern.
- Pick options such as ignore case or multiline.
- Paste test text and read the matches.
Details
| Flavour | JavaScript (ECMAScript), as in browsers and Node.js |
|---|---|
| Options | g, i, m, s, u |
| Limits | First 1,000 matches; stops after 1.5 seconds |
Questions
Do my files leave my computer?
No. This tool runs inside your browser tab. The page makes no network request with your data, and you can check that yourself in your browser's developer tools.
Will my pattern work in Python or PHP?
Mostly. Simple patterns are the same everywhere, but lookbehind, named groups and Unicode classes differ between languages.
Related tools
- JSON Formatter
Tidy, check or minify JSON as you paste it.
- JWT Decoder
Read a JSON Web Token's header, claims and expiry.