Probador de Regex

Prueba expresiones regulares de JavaScript en vivo. Coincidencias, grupos y reemplazos al instante.

/ /
Flags: g global · i case-insensitive · m multi-line · s dotAll · u unicode · y sticky

  
Introduce un valor arriba para ver el resultado.
Use $1, $2 for groups · $& for the whole match · $$ for literal $
Introduce un valor arriba para ver el resultado.

What is this for?

Regular expressions are dense and unforgiving. The way to write one that actually works is iteratively — pattern, sample text, see what matches, adjust. This tool gives you that loop in your browser using the JavaScript engine's native RegExp, plus capture-group inspection and a replacement preview. Patterns and inputs never leave the page.

When to use it

Common patterns

Common gotchas