Testez et déboguez des expressions régulières avec surlignage dynamique.
Common regex tokens, character classes, anchors, and quantifiers used in Javascript, Python, and PCRE.
| Token / Pattern | Category | Meaning & Example |
|---|---|---|
\d / \D | Character Class | Matches any digit (0-9) / non-digit. |
\w / \W | Character Class | Matches word character (a-z, A-Z, 0-9, _) / non-word. |
\s / \S | Character Class | Matches whitespace (spaces, tabs, newlines) / non-whitespace. |
^ / $ | Anchors | Matches beginning of string / end of string. |
+ / * | Quantifiers | Matches 1 or more times / matches 0 or more times. |
? | Quantifiers | Matches 0 or 1 time (optional) / lazy modifier. |
{n,m} | Quantifiers | Matches between n and m repetitions. |
[a-z0-9] | Character Set | Matches any character inside the set. |
[^0-9] | Negated Set | Matches any character NOT in the set. |
(abc) | Capture Group | Groups sub-pattern and captures matched text. |
(?:abc) | Non-Capture Group | Groups sub-pattern without capturing. |
Testez et déboguez des expressions régulières avec surlignage dynamique.
Cet utilitaire de diagnostic en ligne est propulsé par ToolPing pour fournir des analyses réseau rapides, fiables et sécurisées.
Saisissez votre motif regex et vos modificateurs (comme g ou i) dans la barre supérieure, et tapez votre texte de test. Les correspondances sont surlignées en direct.