Regex Tester
Test and debug regular expressions in real-time. See matches highlighted, capture groups extracted, and explanations of your pattern.
Common Patterns
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}https?://[^\s]+\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b\d{4}-\d{2}-\d{2}\b([01]?[0-9]|2[0-3]):[0-5][0-9]\b#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b\b\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}\b\b\d{5}(-\d{4})?\b<[^>]+>How to Use
- Enter your regex pattern
- Paste test text
- See matches highlighted
- Adjust pattern as needed
About This Tool
Regular expressions are powerful patterns for matching text. Our tester helps you build and debug regex patterns with real-time feedback.
As you type your pattern and test text, matches are highlighted instantly. Capture groups are shown separately so you can verify your extractions.
Support for all standard flags: global (g) for multiple matches, case-insensitive (i), multiline (m), and dotall (s). The match count shows how many times your pattern matches.
Our library of common patterns provides starting points for emails, URLs, phone numbers, and more. Use these as templates and customize for your needs.