Guia rápido de regex
Referência rápida de sintaxe de expressões regulares com classes de caracteres, quantificadores, âncoras, grupos, lookaround e escapes.
Como 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.
Perguntas frequentes
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.
Ferramentas relacionadas
Testador de regex
Testa expressões regulares com texto de exemplo e inspeciona cada correspondência e grupo de captura.
Contador de palavras e caracteres
Conte caracteres, palavras, linhas, frases e parágrafos, com tempo de leitura e tamanho UTF-8.
Gerador de UUID / GUID
Gera UUIDs aleatórios da versão 4 e os copia um a um ou em massa.
Gerador de hash
Calcula resumos MD5, SHA-1, SHA-256 e SHA-512 de qualquer texto.
Conversor de timestamp
Converte entre timestamps Unix, ISO 8601 e datas locais legíveis.
Comparar texto / Diff
Compara dois blocos de texto e mostra adições, remoções e alterações por linha.