digvibes Shop products
All tools ✳ DEVELOPER TOOLS

Regex tester with live matches.

Write a regular expression and see matches highlighted instantly, with capture groups and a replace preview. Uses the JavaScript regex engine.

✓ Free✓ No sign-up✓ Runs in your browser
REGEX TESTER↳ Nothing is uploaded

Highlighted matches

Groups

About this regex tester

This regex tester runs your pattern with the browser’s JavaScript engine and highlights every match as you type. It lists numbered and named capture groups and previews String.replace results with $1-style references — ideal for building validation rules, search-and-replace jobs and log parsers.

Supported flags: g global, i ignore case, m multiline, s dot-all, u unicode and y sticky.

How to use it

  1. Type your regular expression in the Pattern field.
  2. Add flags such as g, i or m.
  3. Paste test text and watch matches highlight live.
  4. Check capture groups and try a replacement with $1, $2.

Frequently asked questions

Which regex flavour is used?+

JavaScript (ECMAScript) regular expressions, as used in browsers and Node.js. Most PCRE syntax also works, except features such as lookbehind in very old browsers.

How do I use capture groups in replace?+

Use $1, $2 for numbered groups or $<name> for named groups in the Replace field.

Is my text private?+

Yes. Everything runs locally in your browser.

MORE FREE TOOLS

Useful tools for what comes next.