Other Resources:
US phone number validation
How to perform a validation on US phone numbers using a regular expression? For example, "(021)423-2323" is an valid US phone number.
✍: Guest
To perform a validation on US phone numbers, try this regular expression:
^\(?\d{3}\)?[-\s.]?\d{3}[-\s.]\d{4}$
2013-01-27, 0👍, 0💬
Popular Posts:
How to write a regular expression to parse key-value entries from Windows .INI files? Here is an exa...
Are you having problems using regular expressions when processing text strings in your applications ...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...
Are you having problems using regular expressions when processing text strings in your applications ...