REGEX TESTER
Test regular expressions live with highlighted matches, capture groups, flags and instant error feedback. Presets + cheatsheet included.
g global · i ignore case · m multiline · s dotall · u unicode
Character classes
\d digit · \D non-digit\w word · \W non-word\s space · \S non-space. any char (or +s flag)[abc] set · [^abc] negateQuantifiers
* 0+ · + 1+ · ? 0/1{n} exact · {n,} min · {n,m} range*? +? lazy versionsAnchors & groups
^ start · $ end · \b boundary(...) capture · (?:...) non-capture(?<name>...) named groupa|b alternation · \1 backreferenceFlags
g all matches · i ignore casem ^$ per line · s dot matches newlineu unicode · y sticky (engine only)Share link encodes pattern + flags + test string in the URL hash.
| # | Match | Index | Groups |
|---|
Frequently Asked Questions
C'est quoi regex ?
Les flags ?
Voir les groupes ?
Gratuit ?
How to Use
Écrivez le motif
Dans la case du haut.
Mettez du texte
Exemple dessous.
Voyez les matchs
Surlignage et groupes.
How to Calculate
À propos de cet outil
Related Tools
Methodology & feedback
Figures run locally in your browser from the values you enter (page updated ). Estimates are educational only — verify finance, tax and health decisions with a qualified professional (see Disclaimer). Spotted an error? Report it via contact and we correct with a new update date.