Common Regex Patterns
Copy-paste ready Regular Expressions for validating phone numbers.
2024-11-15•Development
US Phone Regex
^\+?1?[-.]?\(?([0-9]{3})\)?[-.]?([0-9]{3})[-.]?([0-9]{4})$
E.164 Regex
^\+[1-9]\d{1,14}$
Always validate on the backend as well as the frontend!