Regex Tester

Professional regular expression testing with detailed analysis, capture groups, and comprehensive pattern matching

Pattern & Settings

Available: g (global), i (ignore case), m (multiline), s (dotall), u (unicode), y (sticky)

Test Results

Test results will appear here

Analysis & Stats

Test statistics will appear here

g - Global - Find all matches
i - Ignore case - Case insensitive matching
m - Multiline - ^ and $ match line boundaries
s - Dotall - . matches newlines
u - Unicode - Full unicode support
y - Sticky - Match from lastIndex position

Regex Examples & Use Cases

Form Validation

Validate user input in forms and applications.

Email: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$\nPassword: ^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,}$\nPhone: ^\\+?[1-9]\\d{1,14}$

Data Format Validation

Ensure data follows specific formats.

Credit Card: ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13})$\nSSN: ^\\d{3}-\\d{2}-\\d{4}$\nZIP Code: ^\\d{5}(-\\d{4})?$