Directory degli strumenti gratuita / Altri strumenti / Tester di regex

Tester di regex

Tester regex gratuito: testa un'espressione regolare rispetto al tuo testo, vedi le corrispondenze evidenziate e controlla ogni gruppo di acquisizione. Bandiere regolabili.

Prova un'espressione regolare rispetto al tuo testo e visualizza ogni corrispondenza evidenziata, con ciascun gruppo di acquisizione elencato separatamente. Regola i flag e riprova finché il modello non cattura esattamente ciò che desideri. Usalo mentre scrivi un modello di convalida per indirizzi email o numeri di telefono prima di incollarlo nel tuo codice.

Apri strumento →

Utilizzo gratuito, nessuna registrazione. Lo strumento si apre su una propria pagina e viene eseguito nel tuo browser.

Hai bisogno di più? Diventa professionista

Pro: download your Regex results as CSV & save history, $5 one-time

Ottieni Pro →

Alipay — $5

Oppure sblocca tutti gli strumenti con All-Access Pro — $15 una volta.

Ottieni accesso completo: $15 una volta

Alipay — $15

I prezzi vengono adeguati in base al paese, quindi lo stesso strumento costa meno dove i redditi sono più bassi: vedi il prezzo per il tuo paese.

Preferisci Alipay? Vedi tutte le opzioni di pagamento.

Già pagato? Accedi a Pro

Come usarlo

  1. Type a regular expression and pick flags.
  2. Paste the text to test against.
  3. Press Test regex to see matches highlighted and capture groups listed.

Domande comuni

What are capture groups?

Parts of a pattern inside parentheses. Each group is listed separately in the table, so you can see exactly what each part of the pattern matched — useful when you want to extract pieces of text, not just find them.

Why does my pattern match nothing?

Check that the pattern really describes your text: a missing escape (\d, not d), a flag you forgot (i for case), or ^ and $ without the m flag on multi-line text are the usual suspects.

Can a regex freeze my page?

Yes — a pattern like (a+)+$ on a long string of a's can take exponentially long to test. This is called catastrophic backtracking. Keep patterns simple, avoid nested quantifiers, and test on short text first. This tool caps the match loop, but a single slow match can still hang the page, so test risky patterns on a few characters first.

Altri strumenti Altri strumenti

← Torna a tutti gli strumenti · Sfoglia le guide