Regex Tester
Test and debug regular expressions with live match highlighting and capture groups.
Flags
Quick insert
Matches highlighted
0 matches found
Enter a valid pattern to see match details.
What is a Regex Tester?
A regex tester lets you write regular expressions and immediately see how they match against test text. This tool uses JavaScript's native RegExp engine, so patterns behave exactly as they would in your code — no surprises when you copy them over.
How to use it
Type a regex pattern in the top field and toggle flags (global, case-insensitive, multiline, dotAll) as needed. Paste or type your test string below. Matches are highlighted instantly and listed with their positions and capture groups. Use the quick-insert chips to start from common patterns.
Common patterns
Email: [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} URL: https?:\/\/[^\s]+ Phone: \+?[\d\s\-()]{7,} IPv4: \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} Date (YYYY-MM-DD): \d{4}-\d{2}-\d{2} Hex Color: #[0-9a-fA-F]{3,8}