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

  1. Type the pattern and flags (g, i, m…).
  2. Paste the test text; matches are highlighted live.
  3. See each match and its capture groups.
  4. 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.