Testez les expressions régulières en ligne gratuitement. Déboguez votre regex avec surlignage en temps réel.
Our free Regex Tester lets you test and debug regular expressions in real time directly in your browser. As you type your pattern, matches are instantly highlighted in the test string. Full flag support (g, i, m, s) is included, along with a match list showing each match, its index, and captured groups. Quick-pattern buttons let you load common patterns like email, URL, and IP address regex instantly.
This tester uses JavaScript's built-in RegExp engine, which is ECMAScript-compliant. It supports standard regex syntax including lookaheads (in modern browsers).
The global (g) flag makes the regex find ALL matches in the string rather than stopping at the first one. Without g, only the first match is returned.
The case insensitive (i) flag makes the pattern match regardless of letter case. For example, /hello/i matches 'Hello', 'HELLO', and 'hello'.
Escape special characters with a backslash: \. matches a literal dot, \( matches a literal opening parenthesis.
Groups created with parentheses (pattern) capture the matched text separately. You can reference them in the match list under 'groups'.
Common issues: forgetting to escape special chars (., *, +, ?), wrong flags, or anchors (^ and $) behaving differently than expected. Try the i flag if case is an issue.
The multiline (m) flag makes ^ match the start of each line and $ match the end of each line, rather than just the start/end of the entire string.
For performance, the tester stops after 500 matches. For testing very large strings or patterns, you may want to use a local development environment.