Regex Tester
Test your regular expressions with sample text
Matches
No match
Regex Diagram
Enter a regex pattern to see the diagram
Note: This tool tests regular expressions against sample text in real-time. Use the flags to modify the regex behavior. The tool supports JavaScript regex syntax with all standard flags including global, case-insensitive, multiline, dotall, unicode, and unicode sets.
About this tool
Use it to
- Test regex patterns before implementing in code
- Debug regex matching issues with real data
- Validate email, phone, or URL patterns
- Extract specific parts of strings using capture groups
- Email Validation
- Test the pattern ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$ against various email addresses to ensure it matches valid emails.
- Log Parsing
- Create and test a regex to extract timestamps and error codes from server log entries.
Related tools
- Regex cheatsheet
Javascript Regex/Regular Expression cheatsheet
- Crontab generator
Validate and generate crontab and get the human-readable description of the cron schedule
- YAML prettify and format
Prettify your YAML string into a friendly, human-readable format
- Email normalizer
Normalize email addresses to a standard format for easier comparison