Regex Tester

Write a pattern and see matches highlighted as you type. Uses the JavaScript regex engine.

/ /g

Test string

Matches

0 matches

Match details

Replace


      

Quick reference

Replacement tokens

$1, $2… insert numbered groups. $<name> inserts a named group, $& the whole match.