/.*/
Tester Regex
Testa le espressioni regolari sul testo con evidenziazione in tempo reale.
Testo di test
Inserisci un pattern e il testo di test, oppure carica un esempio per iniziare.
Inserisci un pattern e il testo di test, oppure carica un esempio per iniziare.
Corrispondenze: 0
Inserisci un'espressione regolare qui sopra per ispezionare il relativo albero dei token.
Verifica molteplici casi di test positivi e negativi rispetto al pattern attuale.
const regex = /.+/g;
const text = "sample text";
const matches = Array.from(text.matchAll(regex));
for (const match of matches) {
console.log('Match:', match[0], 'at', match.index, match.groups ?? {});
}