Pattern: Phone Number
Description for pattern 3
ttheIntuitionist3/26/2025
Patterns
Regular Expressions
^(\+?1[\s.-]?)?\(?([0-9]{3})\)?[\s.-]?([0-9]{3})[\s.-]?([0-9]{4})$
ttheIntuitionist3/26/2025
^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$
ttheIntuitionist3/26/2025
Matching Strings
Matches? | Text | Description | Author |
---|---|---|---|
+44 20 7123 4567 | UK number format | ttheIntuitionist | |
+86 123 4567 8901 | Chinese number format | ttheIntuitionist | |
+1-555-123-4567 | US/Canada format | ttheIntuitionist |
Non-matching Strings
Matches? | Text | Description | Author |
---|---|---|---|
+123 | Too short | ttheIntuitionist | |
not-a-number | Invalid format | ttheIntuitionist |