Displaying page
of
pages;
Items to
Title |
Test
Details
US Area Code (NANPA Format)
|
Expression |
^[2-9]{1}[0-9]{1}((?<!1)[1]|[0]|[2-9]){1}\b
|
Description |
According to NANPA (North American Numbering Plan Administration): The format of an area code is NXX, where N is any digit 2 through 9 and X is any digit 0 through 9. N11 are ERCs, called service codes, and are not used as area codes. This regex checks for these conditions. However, this regex does not check for N9X which are reserved for expansion in the future nor 37X or 96X which are also reserved for potential expansion in the future.
|
Matches |
513
|
Non-Matches |
211
|
Author |
Rating:
Not yet rated.
Grant Szabo
|
Displaying page
of
pages;
Items to