Regex Tester

Test regular expressions in real-time with match highlighting and group extraction.

Regular Expression
/ /
Quick patterns:
Matches
0
Groups
0
Execution Time
0ms
Test String
Matches Highlighted
Match Details

No matches found

Replace

Frequently Asked Questions

g (global) finds all matches, i (case insensitive) ignores case, m (multiline) treats each line as separate, s (dotall) makes . match newlines, u (unicode) enables full Unicode support.
Parentheses () create capturing groups that extract parts of a match. Use $1, $2, etc. in the replacement string to reference captured groups. Named groups (?<name>...) can be referenced with $<name>.
Lookahead (?=...) and (?!...) check what follows without including it. Lookbehind (?<=...) and (?<!...) check what precedes. They're useful for conditional matching without consuming characters.