Description |
A very simple regex to parse 10-digit US phone numbers. Captures the leading 1 in $1, the area code in $2, the 3-digit prefix in $3, and the four-digit postfix in $4.
This expression DOES allow for reserved area codes (001,etc) which are not typically in use. |