Regex Tester
Test regular expressions in real time
Loading...
About this tool
Regular expressions (regex) are patterns used to find, validate and extract pieces of text. This tester runs your pattern against the text in real time, highlights every match and lists capture groups.
It's perfect for validating formats like emails, phone numbers and IDs, extracting data from logs, or refining an expression before using it in your code. All processing happens in your browser — nothing is sent to a server.
How to use
- Type the regular expression in the pattern field (without the / delimiters).
- Toggle the flags you need: g (global), i (ignore case), m (multiline) and s (dotall).
- Paste your test string; matches are highlighted automatically.
- Check the capture groups below and use Share to send the test to someone.
Frequently asked questions
Which regex syntax is used?
The same as JavaScript (the browser's RegExp engine), compatible with most languages for common patterns.
Is my text sent to a server?
No. All processing happens locally in your browser.
Why doesn't my expression match anything?
Check the flags (g for multiple matches, i to ignore case) and make sure special characters are escaped correctly.
Advertisement