Testeur de Regex

Testez vos motifs Regex en direct.

Résumé:Évalue des motifs d'expressions régulières et surligne les correspondances.

Regular Expression Parameters

//g
Expression Flags
Pattern Match Status
0 Matches
Live Highlight Preview
Hello World 1234, order 5678
Regex Quick Cheat-Sheet Reference
Character Classes
  • . - Any character except newline
  • \d - Any digit (0-9)
  • \w - Word character (a-z, A-Z, 0-9, _)
  • \s - Whitespace character
  • [abc] - Any character in brackets
  • [^abc] - Any character NOT in brackets
Quantifiers
  • * - 0 or more times
  • + - 1 or more times
  • ? - 0 or 1 time (optional)
  • {n} - Exactly n times
  • {n,} - n or more times
  • {n,m} - Between n and m times
Anchors & Groups
  • ^ - Start of string / line
  • $ - End of string / line
  • \b - Word boundary
  • (abc) - Capture group
  • (?:abc) - Non-capturing group
  • (?<name>abc) - Named capture group

Embed this Tool on Your Website

Copy this code snippet to add the Testeur de Regex to your blog or website for free. It adjusts dynamically to mobile and desktop screens.

Share This Tool

Comment utiliserTesteur de Regex

1. Saisissez votre expression régulière. 2. Collez le texte de test. 3. Obtenez les correspondances.

Comment ça fonctionneTesteur de Regex

Utilise l'analyseur JavaScript RegExp.

Formule:Matches = text.matchAll(regex)
Exemple de calcul:

Le motif \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b trouve les emails.

Foire aux questions

Activez ou désactivez la flag i (insensitive).