Valid
0 matches
Examples:
Regular Expression Pattern
Current flags: g • Pattern length: 16 characters
Test Text
1 lines • 66 characters
Highlighted Matches
Contact us at support@example.com or info@test.org for assistance.
Match Details
No matches found
Common Patterns
\b\w+@\w+\.\w+\b
Matches email addresses
URL
https?:\/\/[\w\-\.]+(?:\/[\w\-\._~:/?#\[\]@!$&'()*+,;=]*)?
Matches HTTP/HTTPS URLs
Phone
\+?[1-9]\d{1,14}
Matches phone numbers
Date (YYYY-MM-DD)
\d{4}-\d{2}-\d{2}
Matches dates in YYYY-MM-DD format
IP Address
\b(?:\d{1,3}\.){3}\d{1,3}\b
Matches IPv4 addresses
Credit Card
\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}\b
Matches credit card numbers
Password
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$
Strong password pattern
Hex Color
#[0-9A-Fa-f]{6}
Matches hex color codes
About Regular Expressions
What are RegEx?
Regular expressions are patterns used to match character combinations in strings. They're powerful tools for text processing, validation, and search operations.
Common Metacharacters
- • . - Matches any character
- • ^ - Start of string
- • $ - End of string
- • * - Zero or more
- • + - One or more
- • ? - Zero or one
Character Classes
- • \d - Any digit
- • \w - Word character
- • \s - Whitespace
- • [abc] - Any of a, b, c
- • [^abc] - Not a, b, c
- • [a-z] - Range a to z
Flags
- • g - Global (all matches)
- • i - Case insensitive
- • m - Multiline mode
- • s - Dot matches newlines
Real-time Testing
Instant regex matching as you type
Visual Highlighting
See matches highlighted in your text
Common Patterns
Pre-built patterns for common use cases