a11y.skipToMainContent
1

Regex Tester

Prueba JavaScript expresiones regulares en vivo — ver partidos destacados en tu texto y grupos capturados en una lista.

More options

Common Pattern Library

Click any pattern to load it into the tester:

Quick Regex Cheatsheet

Character Classes
. Any character
\d Digit [0-9]
\w Word char [a-zA-Z0-9_]
\s Whitespace
\D Non-digit
\W Non-word char
Anchors & Boundaries
^ Line start
$ Line end
\b Word boundary
\B Non-boundary
Quantifiers
* 0 or more (greedy)
+ 1 or more (greedy)
? 0 or 1 (optional)
*? 0 or more (lazy)
{n} Exactly n times
{n,m} n to m times
Groups & Lookarounds
(...) Capturing group
(?:...) Non-capturing group
(?=...) Positive lookahead
(?!...) Negative lookahead
Was this tool helpful?
Send output to:
Advertisement

How to use Regex Tester

  1. Escribe tu patrón de regex.
  2. Escoge banderas.
  3. Texto de prueba de sabor — los partidos destacan en directo.

¿Cómo se llama?

יp]Build y debug expresiones regulares rápidamente: escriba un patrón, banderas de rebote (g, i, m, s, u) y vea los partidos destacados en su texto de prueba. Grupos capturados aparecen junto a cada partido para una fácil verificación
Advertisement

FAQ

¿Qué sabor regex?
Regex de JavaScript (ECMAScript). Cabezas, caravanas, clases de personajes, grupos de captura, grupos llamados todos apoyados.
¿Cuál es el límite de seguridad?
Caps a 100.000 fósforos por carrera para evitar patrones de fuga.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement