SAYF & CO.TOOLS
Free audit

Regex Tester

Test regular expressions with live match highlighting.

Free Private — runs in your browser No sign-up
Cheat sheet
.  any char      \d digit      \w word char     \s whitespace
^  start         $  end        \b word boundary
*  0+   +  1+    ?  0 or 1     {2,5} 2 to 5
[abc] any of     [^abc] none of   (x) group   (?:x) non-capture   (?<name>x) named
a|b  a or b      (?=x) lookahead   (?!x) negative lookahead
Flags: g global · i ignore case · m multiline · s dotall · u unicode · y sticky

About the Regex Tester

Write a JavaScript regular expression, set flags and see every match and capture group highlighted live in your test text.

How to use it

  1. Enter your pattern and flags.
  2. Paste test text — matches highlight as you type.
  3. Optionally add a replacement to preview the result.
  • Free, no sign-up
  • Runs in your browser — private
  • Works on mobile and desktop

Frequently asked questions

Is the Regex Tester free?

Yes. The Regex Tester is completely free to use, with no sign-up or usage limits beyond fair-use protection.

Is my data private?

This tool runs entirely in your browser — nothing you enter is uploaded or stored on our servers.

Sayf & Co.

Tools find the problems. We fix them.

Get a free audit of your website, search presence and social channels — with a clear, prioritised plan to grow.

Get your free audit