/ Published in: Regular Expression
US phone with or without parentheses
Expand |
Embed | Plain Text
([0-9]{3}\)\s?[0-9]{3}(-|\s)?[0-9]{4}$|^[0-9]{3}-?[0-9]{3}-?[0-9]{4}
Comments
Subscribe to comments
You need to login to post a comment.

Periods are also valid separators. Area codes cannot start with 0 or 1.