Regex Tester

Write a regular expression and see every match highlighted in your test text as you type, with capture groups listed and a find-and-replace preview. Patterns run in a separate worker, so a bad pattern can’t freeze the page.

Runs in your browser — your data never leaves your device
Matches
Contact: ann@example.com, bo.smith@mail.co.uk
Orders: #1024 on 2026-12-01, #1025 on 2026-12-03

How to use the Regex Tester

  1. Type a pattern and choose flags (g, i, m, s…).
  2. Paste test text — matches highlight instantly.
  3. Check capture groups, or enter a replacement to preview.

Features

  • Live highlighting of all matches
  • Capture groups and named groups
  • Replace preview with $1 and $<name>
  • Common flags: g, i, m, s, u
  • Runaway patterns stopped automatically

Privacy

This tool runs entirely in your web browser using your device’s own processing power. Your data is not uploaded to NovaTools or to anyone else, and nothing is stored on a server. You can even disconnect from the internet after the page loads and keep working.

Good to know

  • Uses JavaScript’s regex engine; syntax differs slightly from PCRE, Python and others (for example, no possessive quantifiers).

Frequently asked questions

Which regex flavour is this?
JavaScript (ECMAScript), as used in browsers and Node.js.
What happens if my pattern is very slow?
Matching runs in a background worker with a time limit. If it takes too long, it’s stopped and you’re told — the page stays responsive.
How do I use groups in the replacement?
Use $1, $2… for numbered groups and $<name> for named groups, for example (?<year>\d{4}) and $<year>.

Last updated 1 December 2026