Regex Tester
Test and debug your regular expressions in real-time. Enter a pattern and test string to see matches highlighted instantly, explore capture groups, and validate your regex patterns.
Regex Quick Reference
.Any character\dDigit\wWord char\sWhitespace*0 or more+1 or more?0 or 1{n}Exactly n^Start of line$End of line[abc]Character set()Capture groupFAQ
What regex flags are supported?
This tester supports all JavaScript regex flags including g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), and y (sticky). You can combine multiple flags for advanced pattern matching.
How do I view capture groups?
Capture groups are automatically extracted and displayed when your pattern contains parentheses. Named capture groups using (?<name>...) syntax are also supported and displayed with their names.
Why is my regex not matching?
Common issues include forgetting to escape special characters like dots, brackets, or backslashes. Also check if you need the global flag (g) for multiple matches or the multiline flag (m) for line-by-line matching.
Is my data processed securely?
Yes, all regex testing happens entirely in your browser. Your patterns and test strings are never sent to any server, ensuring complete privacy for sensitive data.