Regex Tester

Test a regular expression against your text with live match highlighting, privately in your browser. Free.

/ /

Test regular expressions instantly

Type a pattern and some test text and see every match highlighted live, along with capture groups for each match. Toggle the common flags — global, case-insensitive, multiline and dotall — and get clear error messages when a pattern is invalid. Everything runs locally in your browser, so nothing is sent anywhere.

How to test a regular expression online

  1. Enter your regular expression and flags.
  2. Paste the text you want to test against.
  3. Matches are highlighted live as you type.
  4. Refine the pattern. Your text never leaves your browser.

Frequently asked questions

Does it highlight matches live?

Yes. As you edit the pattern or text, matches are highlighted instantly.

Is my text uploaded to test the regex?

No. Matching runs in your browser, so your text stays private.

Can I use regex flags like global and case-insensitive?

Yes. Add flags such as g and i to control how matching works.

Is it free?

Yes. The regex tester is completely free with no sign-up.

Related guides

Related tools