Regex Tester

Test and debug regular expressions

How to use

  1. Type your regular expression into the pattern field.
  2. Paste the text you want to test against it.
  3. Matches are highlighted live as you edit the pattern or flags.
  4. Adjust flags (global, case-insensitive, multiline) to fine-tune matching.

Why use this tool

Frequently asked questions

Which regex flavour does it use?

JavaScript (ECMAScript) regular expressions, the same engine browsers and Node.js use.

Why does my pattern match nothing?

Check for unescaped special characters, a missing global flag, or anchors like ^ and $ that restrict where matches can occur.

Is my test data private?

Yes. The regex runs in your browser; your pattern and text never leave your device.

Back to all tools