Regex · On this device

Regex replace

Replace with a pattern. $1 groups are allowed.

  1. Fitxer o enganxa
  2. Previsualització
  3. Descarrega

Runs in the browser. Heavy patterns may freeze the tab. Templates cover common shapes only.

Ad 728×90 · mobile 320×50
How it works, what you get, limits

Què fa

Replace with a pattern. $1 groups are allowed.

Com s’usa

Enter the pattern and replacement.

Què n’obtens

A rewritten draft. Copy it locally.

Opcions i comparació

JavaScript replacement syntax.

Find/replace is for plain swaps; this page is regex.

Límits

A bad pattern fails.

FAQ

Groups?

Yes. Use $1, $2 in the replacement.

Find/replace page?

That page is for plain swaps. This page is for regex.