Skip to content

Regex Tester

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

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.

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