Regex Tester
Test regular expressions with live match highlighting and groups. Free, no sign-up, works in your browser.
🔒 100% private — processing happens in your browser. Nothing is uploaded.
How to test a regular expression
- Type the pattern and flags (g, i, m…).
- Paste the test text; matches are highlighted live.
- See each match and its capture groups.
- Optionally type a replacement to preview a find-and-replace.
Regex without guesswork
Regular expressions find patterns like emails, phone numbers, dates or Eircodes in text. A small mistake can match too much or nothing, so testing on real samples first saves time. Capture groups show exactly which parts you can reuse in replacements ($1, $2).
It uses JavaScript regex syntax, which is close to most languages.
Questions and answers
What does the g flag do?
Finds all matches, not just the first.
Why does . match too much?
Use .*? for a lazy match or a more specific class.
Does it work for Python or PHP?
Mostly; some advanced features differ.
Is it free?
Yes, no sign-up.