Cheat sheet delle regex
Riferimento rapido alla sintassi regex con classi di caratteri, quantificatori, ancore, gruppi, lookaround ed escape.
Come usare
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.
Domande frequenti
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.
Strumenti correlati
Tester di regex
Testa le espressioni regolari su testo di esempio e ispeziona ogni corrispondenza e gruppo di cattura.
Contatore di parole e caratteri
Conta caratteri, parole, righe, frasi e paragrafi, con tempo di lettura e dimensione UTF-8.
Generatore di UUID / GUID
Genera UUID versione 4 casuali e li copia uno per uno o in blocco.
Generatore di hash
Calcola i digest MD5, SHA-1, SHA-256 e SHA-512 di qualsiasi testo.
Convertitore di timestamp
Converte tra timestamp Unix, ISO 8601 e date locali leggibili.
Confronta testo / Diff
Confronta due blocchi di testo e mostra aggiunte, rimozioni e modifiche riga per riga.