Loading...
Test regular expressions online for free. Debug regex patterns with real-time matching. See groups and captures.
g - Global (find all matches)i - Case insensitivem - Multilines - Dot matches newlineu - Unicodey - StickyWrite your regular expression in the pattern field
Paste sample text you want to match against
Enable global, case-insensitive, or multiline flags as needed
See highlighted matches and capturing groups instantly
Write your regular expression in the pattern field
Paste sample text you want to match against
Enable global, case-insensitive, or multiline flags as needed
See highlighted matches and capturing groups instantly
Most tools support JavaScript regex, which is similar to Perl-compatible regex (PCRE).
The global flag (g) finds all matches instead of stopping after the first match.
Yes, enable the multiline (m) flag to make ^ and $ match line starts/ends instead of string start/end.
Escape special characters with backslash: \. \* \? \[ \] \( \) etc.