mtools.lol

Regex Tester

Test JavaScript regular expressions live, with highlighted matches, groups and replace.

How it works

  1. 1Enter a pattern and pick flags.
  2. 2Paste the text to test.
  3. 3See matches, groups and an optional replacement.

Features

  • Matches highlighted in the text.
  • Numbered and named capture groups.
  • Replace preview with $1 and $<name>.
  • Clear error messages for invalid patterns.

Frequently asked questions

Which regex flavour is this?

JavaScript (ECMAScript), as used in browsers and Node.js. Most syntax matches PCRE, but lookbehind and some escapes differ in older engines.

Why only 1000 matches?

To keep the page responsive; the count shows when there are more.

Is my data sent anywhere?

No. Everything runs in your browser; nothing is uploaded.