Regex Tester
Test regular expressions with live results and visual highlighting
Live Testing:
Enter as /pattern/flags or just pattern. Use the flags dropdown above to select options.
Enter a regex pattern to start
💡 Tips
- • Enter patterns like /pattern/flags (e.g., /email/gi) or just the pattern
- • Common flags: g (global), i (ignore case), m (multiline), u (unicode)
- • Use parentheses () for capture groups: /(\w+)@(\w+\.\w+)/g
- • Common patterns: \d (digits), \w (letters), \s (spaces), . (any character)
- • Named groups: /(?<username>\w+)@(?<domain>\w+\.\w+)/g