Home › Developer tools › Regex Tester

Regex Tester

Type a pattern and some text to see every match highlighted, with capture groups.

Runs entirely in your browser. Nothing is uploaded.

How to use Regex Tester

  1. Type your regular expression and flags (g = all matches, i = ignore case, m = multiline).
  2. Paste the text to test against.
  3. Matches are highlighted live. Add a replacement to preview a find-and-replace.

Frequently asked questions

Which regex flavour is this?

JavaScript (ECMAScript) regular expressions, the same as in browsers and Node.js.