Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ralphhightower/nanpatelephoneformatdetection
North American Numbering Plan
https://github.com/ralphhightower/nanpatelephoneformatdetection
nanpa north-american-numbering-plan-administration northamericannumberingplanadministration ralph-hightower ralphhightower
Last synced: about 1 month ago
JSON representation
North American Numbering Plan
- Host: GitHub
- URL: https://github.com/ralphhightower/nanpatelephoneformatdetection
- Owner: RalphHightower
- Created: 2022-12-22T02:27:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T17:55:57.000Z (9 months ago)
- Last Synced: 2024-04-14T03:01:48.652Z (8 months ago)
- Topics: nanpa, north-american-numbering-plan-administration, northamericannumberingplanadministration, ralph-hightower, ralphhightower
- Language: C#
- Homepage: https://ralphhightower.github.io/NANPATelephoneFormatDetection/
- Size: 85 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# [North American Numbering Plan Administrator](https://nationalnanpa.com/)
## NANPATelephoneFormatDetection
North American Numbering Plan
The formatting rules:- Easily Recognizable Codes When the second and third digits of an area code are the same, that code is called an easily recognizable code (ERC). ERCs designate special services; e.g., 888 for toll-free service.
- N11 These 8 ERCs, called service codes, are not used as area codes.
- N9X The 80 codes in this format, called expansion codes, have been reserved for use during the period when the current 10-digit NANP number format undergoes expansion.
- 37X and 96X Two blocks of 10 codes each have been set aside by the INC for unanticipated purposes where it may be important to have a full range of 10 contiguous codes available.- (?\^(\[2-9\](11\|22\|33\|44\|55\|66\|77\|88\|99)$))\|
- (
- (?\^(5\(00\|21\|22\|23\|24\|25\|26\|27\|28\|29\|33\|44\|66\|77\|88\))\|
- (?\^(6(00\|22))\|
- (?\^(700))\|
- (?\^(710))|
- (?\^(8\(00\|33\|44\|55\|66\|77\|88)))\|
- (?\^(900)
- )(?\(\[2-9\]\[0-9\]\[0-9\])-(?\\[0-9\]{4}))
- (?\(\[2-9\]9\[0-9\])\|((37\|96)\[0-9\]))-\[2-9\]\[0-9\]\[0-9\]-\[0-9\]\{4\}$
- (?\^(\[2-9\]\[0-8\]\[0-9\])-555-(?\(1212|4334)$)\|
- (?\^\[2-9\]\[0-8\]\[0-9\])-555-(?\(01\[0-9\]\[0-9\]))$\|
- (?\(\[2-9\]\[0-8\]\[0-9\]))-(?\(\[2-9\]\[0-9\]\[0-9\]))-(?\(\[0-9\]\{4\}))$The rules:
1. Numbers must be in the following format: ddd, or ddd-ddd-dddd. No parentheses are allowed.
2. If ERC is a group that is matched and the length is greater than 3, the number is invalid.[Zip file of Central Office Codes Report — Updated daily](https://www.nationalnanpa.com/nanp1/allutlzd.zip)