Regex Tester

Test a regular expression against text and see every match highlighted with its position.

Quick answer: Regex Tester: Test a regular expression against text and see every match highlighted with its position. Everything runs in your browser, so nothing you enter is uploaded or stored.


How to use Regex Tester

  1. Open the tool and enter your input.
  2. Adjust the options and watch the result update.
  3. Copy or download what you need.

Features

Frequently asked questions

Which regex flavor does it use?

JavaScript regular expressions, the same engine your browser uses.

What do the flags mean?

g finds all matches, i ignores case, m makes ^ and $ match each line, and s lets the dot match new lines.

Why do I get no matches?

Check that your pattern is escaped correctly and that the g flag is on if you want every match.

Is the Regex Tester free?

Yes. It is free, needs no signup and works on any device.

More free tools