- No data uploaded
- Instant results
Regex for Phone Number
Pattern: /\+?\d{1,3}[\s.-]?\(?\d{2,4}\)?[\s.-]?\d{3,4}[\s.-]?\d{3,4}/g. Test it below and adapt it to your data — validation regexes are always a trade-off between strictness and real-world inputs.
Regex for Phone Number
Matches/\+?\d{1,3}[\s.-]?\(?\d{2,4}\)?[\s.-]?\d{3,4}[\s.-]?\d{3,4}/g
Call +1 415-555-0132 or +44 20 7946 0958.
| # | Match | Index | Groups |
|---|---|---|---|
| 1 | +1 415-555-0132 | 5 | — |
| 2 | +44 20 7946 0958 | 24 | — |
JavaScript (ECMAScript) regular expressions. Without the g flag only the first match is used by String.match — this tester always lists all matches.
Frequently asked questions
Is my data uploaded?
No. The calculation runs entirely in your browser — nothing you type is sent to a server.
Is it free?
Yes — free, unlimited and no sign-up.