Regex Tester Tool

Advertisement
Test Your Regular Expression
Match Results
Results will appear here...
Match Details
Detailed match information will appear here...
Error: Invalid regular expression pattern
Tip: Press Enter in the pattern field to test your regex immediately
How to Use & Examples
1

Enter Regex Pattern

Type your regular expression pattern in the first input field. Use standard regex syntax.

2

Select Flags

Choose the appropriate flags for your regex (global, case-insensitive, etc.).

3

Provide Test Text

Enter the text you want to test against your regex pattern in the text area.

4

Test & Analyze

Click "Test Regex" to see matches, groups, and detailed information.

Common Regex Examples

\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b
Email address matching
\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}
Phone number (various formats)
\d{4}-\d{2}-\d{2}
Date (YYYY-MM-DD)
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
URL matching
\b[A-Z][a-z]+\b
Capitalized words
Advertisement