Telephone number format is different for each country or area, then we have to handle this issue using a regex regular expression.
Table of Contents
The point is how to get the correct regex to handle the telephone number input.
The Telephone (class) has a method called getRegexList that return the regex list.
Each regex will split the telephone input in country, area, number and extension.
The notation will be used by the asText method from Telephone (class) to print the country, area, number and extension following the notation configuration. The default notation is: +<country>(0)<area>-<number>/<ext>
The Telephone (class) has one list: regex_list.
The regex list have a regex for each input. Per example:
This possible input has a specific regex into the regex_list.