Zopux Tools / Developer / Regex Tester
Developer

Regex Tester

Test regular expressions against sample text.

How to use Regex Tester

  1. Enter your regular expression without the surrounding slashes.
  2. Toggle flags such as g, i and m.
  3. Paste test text.
  4. See matches and their positions below.

Write a JavaScript regular expression, set flags, and see all matches highlighted in your test text instantly. A quick, private regex playground.

Frequently asked questions

Which regex flavour is used?

JavaScript RegExp syntax, the same as you would use in browser or Node.js code.

What do the flags mean?

g finds all matches, i ignores case, m makes anchors work per line, and s lets dot match newlines.

Does it support lookbehind?

Yes, if your browser supports it. Most modern browsers do.

Is my test text sent anywhere?

No. Matching runs entirely in your browser.

More Developer tools

All tools →