tool::regex-guide
regex phone
/^\+?[\d\s\-\(\)]{7,15}$/
Phone Number Validation
Regex Pattern
/^\+?[\d\s\-\(\)]{7,15}$/Flags:
nonePattern Breakdown
^Start of string\+?Optional leading + (international prefix)[\d\s\-\(\)]Digit, space, dash, or parenthesis{7,15}Between 7 and 15 characters total$End of stringMatching Examples
✓
+1 800 555 0100✓
0800-555-0100✓
(555) 123-4567✓
07911123456Non-Matching Examples
✗
abc-def-ghij✗
123✗
++1234567890✗
1234567890123456Validates phone numbers in various international formats. Allows common separators like +country code, spaces, hyphens, and parentheses. The 7–15 character length constraint covers the E.164 standard range.
Language Usage
Common Use Cases
- ▸Validate phone number inputs on registration forms
- ▸Clean contact data in CRM systems
- ▸Verify number format before sending SMS
- ▸Handle multi-country phone numbers in global services
- ▸Validate contact fields in order forms
Related Patterns
ad · 300×250
// related tools