Regex for validating international phone numbers
Form Validation provides the built-in phone validator to validate the phone number in various countries.
We will use the intl-tel-input plugin for that purpose.
intl-tel-input is a popular j Query plugin for entering and validating international telephone numbers.
This is due in part to the disparity in the standards across the globe.
There are 9 zones and I have only figured out Zone 1 – North American Numbering Plan Area - which happens to be the zone I live in and was pretty straight forward to implement. However as aspope suggested there may be a need to have separate implementations for each zone. Any method chosen I believe should have the capability to be truly international, meaning, a site can be setup where users from ALL regions can register - and not limiting to a particular region at a time.
There has been mention of the Phone CCK module, from my research, this seems to only allow validation from one region at a time and not all regions are supported.
If any of the changes pushed to master since the last release are incompatible with the intent / specification of an existing libphonenumber API or may cause libphonenumber (Java, C , or JS) clients to have to change their code to keep building, we publish a major release.
For example, if the last release were 7.7.3, the new one would be 8.0.0.
If any of those changes clients to update their code to take advantage of new functionality, and if clients would have to roll-back these changes in the event that the release was marked as "bad", we publish a minor release. Otherwise, including when a release contains only metadata changes, we publish a sub-minor release, e.g. Sometimes we make internal changes to the code or metadata that, while not affecting compatibility for clients, could affect compatibility for porters of the library.
For such changes we make announcements to libphonenumber-discuss.
Such changes are not reflected in the version number, and we would publish a sub-minor release if there were no other changes. During most of the year, excepting holidays and extenuating circumstances, we release fortnightly.