Regex for formatted or unformatted 10+ digit phone number

PHOTO EMBED

Tue Nov 09 2021 22:47:47 GMT+0000 (Coordinated Universal Time)

Saved by @hyfy #regex #phone

^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$
content_copyCOPY

https://stackoverflow.com/questions/16699007/regular-expression-to-match-standard-10-digit-phone-number