Probador de Expresiones Regulares
Prueba patrones regex con banderas y revisa coincidencias y grupos.
Enter a pattern and text.
What is Regex Tester?
Regex Tester lets you write and test regular expressions against any text in real time. It shows all match positions and capture groups so you can debug patterns quickly without running code.
How to use
- Enter your regex pattern in the Pattern field (without leading/trailing slashes).
- Optionally add flags in the Flags field. Common flags:
g(global),i(case-insensitive),m(multiline). - Paste the text you want to test in the Test Text area.
- Matches and their character positions appear in the result area immediately.
Notes
- Uses JavaScript's built-in
RegExp. Syntax follows the ECMAScript standard. - Without the
gflag, only the first match is returned. - Backslashes in the pattern field do not need to be doubled (e.g., use
\d, not\\d).
FAQ
- What regex flavor does this use?
- JavaScript ECMAScript regex. This is compatible with most modern languages for basic patterns, but advanced features like lookbehind with variable length may differ from PCRE (Python, PHP).
- How do I match a literal dot?
- Escape it with a backslash:
\.. An unescaped dot matches any character except a newline. - What are capture groups?
- Parentheses create capture groups, e.g.
(\w+)@(\w+). The result shows extracted group values alongside the full match.
Embed this tool
Paste this iframe into any HTML page to embed Probador de Expresiones Regulares on your site:
Herramientas relacionadas
-
Generador de UUID
Genera UUID v4 aleatorios para apps, APIs y bases de datos.
-
Convertidor de Timestamp Unix
Convierte timestamps Unix a fecha legible y viceversa.
-
Formateador y Validador JSON
Formatea y valida JSON con sangría legible y errores claros.
-
Codificador/Decodificador de Entidades HTML
Convierte caracteres especiales en entidades HTML y viceversa.
-
Generador de Hash (SHA-256 / SHA-1 / MD5)
Genera hashes de texto comunes como SHA-256, SHA-1 y MD5.