Regex tester

Test regular expressions live and inspect matches, groups and named captures. Free, private and offline in your browser — files never leave your device.

Developer & security100% on deviceFree, no accountWorks offline

About this tool

Test a regular expression against your own text, see every match, and catch a bad pattern before it reaches your code.

How it works

  1. Type the pattern, or press Load sample for a working example.
  2. Paste the text to test against it.
  3. Read the match count and the list of matches; an invalid pattern is reported immediately.

Frequently asked questions

Which regex flavour is used?

JavaScript's RegExp, the same engine your browser runs, so a pattern that works here works in front-end code.

Is the text I test uploaded?

No. Matching happens in the page and the text never leaves your browser.