Skip to content

Regex Tester

Live matches and groups

Test JavaScript regular expressions with live highlighting, capture groups and flags.

No uploads
/ /g
Test string
1 match
Contact [email protected] or [email protected] for details.
#MatchIndex$1$2
1[email protected]8aliceexample
Replace with

Regex Tester — Test JavaScript regular expressions with live highlighting, capture groups and flags. Free on ToolWand: no sign-up, no watermark, works offline.

How to use Regex Tester

  1. 1Open Regex Tester. It runs in your browser, no sign-up.
  2. 2Type or paste your input.
  3. 3Copy or download the result.

About Regex Tester

Regex Tester runs JavaScript regular expressions against your text with live highlighting, a table of matches and capture groups, flags, and a replace preview.

When to use it

  • Build and debug a regex before putting it in code.
  • Check what a pattern matches in real data.
  • Test search-and-replace with capture groups.

Tips

  • Use $1, $2 or $<name> to reference groups in the replacement.
  • It uses the same engine as browsers and Node.js; other languages’ regex flavours can differ slightly.

Questions

Which regex flavour?

JavaScript (ECMAScript), the same engine your browser and Node.js use.

How do I use groups in replace?

Reference them as $1, $2, or named groups as $<name>.

More tools