Chuleta de expresiones regulares
Referencia rápida de sintaxis regex con clases de caracteres, cuantificadores, anclas, grupos, lookaround y escapes.
Cómo usar
Using the cheat sheet
Search for a token or a description to filter the table, then use the pattern directly in JavaScript, Python or any engine that follows the common syntax.
- Search for a pattern or keyword.
- Read the description.
- Copy the token into your expression.
Preguntas frecuentes
Which regex flavour is this?
The common Perl-compatible subset supported by JavaScript, Python, Java and most other engines.
Does the dot match newlines?
By default it does not. Enable the s (dotAll) flag in JavaScript or re.DOTALL in Python if you need it to.
Herramientas relacionadas
Probador de regex
Prueba expresiones regulares con texto de ejemplo e inspecciona cada coincidencia y grupo de captura.
Contador de palabras y caracteres
Cuenta caracteres, palabras, líneas, oraciones y párrafos, con tiempo de lectura y tamaño UTF-8.
Generador de UUID/GUID
Genera UUID aleatorios de versión 4 y cópialos uno a uno o en bloque.
Generador de hash
Calcula resúmenes MD5, SHA-1, SHA-256 y SHA-512 de cualquier texto.
Conversor de marca de tiempo
Convierte entre marcas de tiempo Unix, ISO 8601 y fechas locales legibles.
Comparar texto / Diff
Compara dos bloques de texto y observa adiciones, eliminaciones y cambios línea por línea.