Regex Tester
/ /
Test String
Quick Patterns
Matches
About this tool
Test JavaScript-flavored regular expressions in real-time. Matches are highlighted in the test string and listed with their positions and capture groups.
Flags
- g (global) — Find all matches, not just the first
- i (insensitive) — Case-insensitive matching
- m (multiline) —
^and$match line starts/ends - s (dotall) —
.matches newline characters - u (unicode) — Full Unicode support
Common patterns
\d— digit,\w— word character,\s— whitespace[abc]— character class,[^abc]— negated class(group)— capturing group,(?:group)— non-capturinga4— 2 to 4 repetitions,a+?— lazy quantifier