Home | History | Annotate | Download | only in resources
      1 <!-- Copyright (C) 2009 The Libphonenumber Authors
      2 
      3      Licensed under the Apache License, Version 2.0 (the "License");
      4      you may not use this file except in compliance with the License.
      5      You may obtain a copy of the License at
      6 
      7      http://www.apache.org/licenses/LICENSE-2.0
      8 
      9      Unless required by applicable law or agreed to in writing, software
     10      distributed under the License is distributed on an "AS IS" BASIS,
     11      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12      See the License for the specific language governing permissions and
     13      limitations under the License.
     14 
     15      @author: Shaopeng Jia
     16      @author: Lara Rennie
     17 
     18      MetaData on Phone Number Plan and formatting rules
     19      Note: Territories are in alphabetical order by their IDs, which are based on ISO 3166-1
     20            two-letter country codes (or are set to "001" for non-geographical entities, which
     21            represents "World" in the UN M.49 standard). The country names in the comments are the
     22            official short names in English according to ISO 3166-1.
     23 
     24      For more information on what each element represents, see
     25      resources/phonemetadata.proto
     26 
     27      Note that if you want to add validation metadata, the generalDesc nationalNumberPattern and
     28      possibleNumberPattern must be provided. If this is missing, then the country will be
     29      considered to have no more specific phone-number type metadata (fixedLine, mobile etc) and
     30      hence only basic validation rules (numbers should be between 3 and 15 digits long) will be
     31      applied.
     32 
     33      If adding an element for a non-geographical entity, please add an example number element to the
     34      general description.
     35 
     36      Country code, international and national prefix information main source:
     37      http://www.itu.int/pub/T-SP-E.164C-2011
     38 
     39      Emergency numbers Wikipedia source:
     40      http://en.wikipedia.org/wiki/Emergency_telephone_number
     41 -->
     42 
     43 <!DOCTYPE phoneNumberMetadata [
     44     <!ELEMENT phoneNumberMetadata (territories)>
     45     <!ELEMENT territories (territory+)>
     46     <!ELEMENT territory (availableFormats?, generalDesc?, noInternationalDialling?,
     47         areaCodeOptional?, fixedLine?, mobile?, pager?, tollFree?, premiumRate?,
     48         sharedCost?, personalNumber?, voip?, uan?, voicemail?, shortCode?, emergency?)>
     49     <!ELEMENT generalDesc (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
     50     <!ELEMENT noInternationalDialling (nationalNumberPattern, possibleNumberPattern?,
     51         exampleNumber?)>
     52     <!ELEMENT areaCodeOptional (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
     53     <!ELEMENT fixedLine (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     54     <!ELEMENT mobile (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     55     <!ELEMENT pager (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     56     <!ELEMENT tollFree (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     57     <!ELEMENT premiumRate (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     58     <!ELEMENT sharedCost (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     59     <!ELEMENT personalNumber (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     60     <!ELEMENT voip (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     61     <!ELEMENT uan (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     62     <!ELEMENT voicemail (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     63     <!ELEMENT shortCode (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     64     <!ELEMENT emergency (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     65     <!ELEMENT availableFormats (numberFormat+)>
     66     <!ELEMENT nationalNumberPattern (#PCDATA)>
     67     <!ELEMENT possibleNumberPattern (#PCDATA)>
     68     <!ELEMENT exampleNumber (#PCDATA)>
     69     <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)>
     70     <!ELEMENT format (#PCDATA)>
     71     <!ELEMENT intlFormat (#PCDATA)>
     72     <!ELEMENT leadingDigits (#PCDATA)>
     73 
     74     <!ATTLIST territory id CDATA #REQUIRED>
     75     <!ATTLIST territory countryCode CDATA #REQUIRED>
     76     <!ATTLIST territory mainCountryForCode (true) #IMPLIED>
     77     <!ATTLIST territory leadingDigits CDATA #IMPLIED>
     78     <!ATTLIST territory preferredInternationalPrefix CDATA #IMPLIED>
     79     <!ATTLIST territory internationalPrefix CDATA #IMPLIED>
     80     <!ATTLIST territory nationalPrefix CDATA #IMPLIED>
     81     <!ATTLIST territory nationalPrefixForParsing CDATA #IMPLIED>
     82     <!ATTLIST territory nationalPrefixTransformRule CDATA #IMPLIED>
     83     <!ATTLIST territory preferredExtnPrefix CDATA #IMPLIED>
     84     <!ATTLIST territory nationalPrefixFormattingRule CDATA #IMPLIED>
     85     <!ATTLIST territory nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
     86     <!ATTLIST territory leadingZeroPossible (true) #IMPLIED>
     87     <!ATTLIST territory carrierCodeFormattingRule CDATA #IMPLIED>
     88     <!ATTLIST numberFormat nationalPrefixFormattingRule CDATA #IMPLIED>
     89     <!ATTLIST numberFormat nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
     90     <!ATTLIST numberFormat carrierCodeFormattingRule CDATA #IMPLIED>
     91     <!ATTLIST numberFormat pattern CDATA #REQUIRED>
     92 ]>
     93 
     94 <phoneNumberMetadata>
     95   <territories>
     96     <!-- Ascension Island -->
     97     <!-- www.itu.int/oth/T02020000AF -->
     98     <territory id="AC" countryCode="247" internationalPrefix="00">
     99       <!-- Formatted as a block. -->
    100       <generalDesc>
    101         <nationalNumberPattern>[2-467]\d{3}</nationalNumberPattern>
    102         <possibleNumberPattern>\d{4}</possibleNumberPattern>
    103       </generalDesc>
    104       <fixedLine>
    105         <nationalNumberPattern>
    106           (?:
    107             [267]\d|
    108             3[0-5]|
    109             4[4-69]
    110           )\d{2}
    111         </nationalNumberPattern>
    112         <possibleNumberPattern>\d{4}</possibleNumberPattern>
    113         <exampleNumber>6889</exampleNumber>
    114       </fixedLine>
    115       <mobile>
    116         <nationalNumberPattern>NA</nationalNumberPattern>
    117         <possibleNumberPattern>NA</possibleNumberPattern>
    118       </mobile>
    119       <emergency>
    120         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf
    121              http://www.noonsite.com/Countries/AscensionIsland/?rc=GeneralInfo
    122              Note the 4-digit emergency numbers fit the fixed-line pattern, therefore are not
    123              included. This is consistent with how we handle such numbers in other countries. -->
    124         <nationalNumberPattern>911</nationalNumberPattern>
    125         <possibleNumberPattern>\d{3}</possibleNumberPattern>
    126         <exampleNumber>911</exampleNumber>
    127       </emergency>
    128     </territory>
    129 
    130     <!-- Andorra -->
    131     <!-- http://www.itu.int/oth/T0202000005/en -->
    132     <territory id="AD" countryCode="376" internationalPrefix="00">
    133       <availableFormats>
    134         <numberFormat pattern="(\d{3})(\d{3})">
    135           <leadingDigits>[346-9]</leadingDigits>
    136           <format>$1 $2</format>
    137         </numberFormat>
    138         <numberFormat pattern="(180[02])(\d{4})">
    139           <leadingDigits>1</leadingDigits>
    140           <format>$1 $2</format>
    141         </numberFormat>
    142       </availableFormats>
    143       <generalDesc>
    144         <nationalNumberPattern>
    145           (?:
    146             [346-9]|
    147             180
    148           )\d{5}
    149         </nationalNumberPattern>
    150         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
    151       </generalDesc>
    152       <fixedLine>
    153         <nationalNumberPattern>[78]\d{5}</nationalNumberPattern>
    154         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    155         <exampleNumber>712345</exampleNumber>
    156       </fixedLine>
    157       <mobile>
    158         <nationalNumberPattern>[346]\d{5}</nationalNumberPattern>
    159         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    160         <exampleNumber>312345</exampleNumber>
    161       </mobile>
    162       <tollFree>
    163         <!-- Note that the definitions of 1800 and 1802 numbers differ in the plan and on the
    164              Andorran www.sta.ad website, but we consider both to be freephone here. -->
    165         <nationalNumberPattern>180[02]\d{4}</nationalNumberPattern>
    166         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    167         <exampleNumber>18001234</exampleNumber>
    168       </tollFree>
    169       <!-- The national numbering plan says that numbers beginning with 9 are reserved for special
    170            services, so we assume they are premium rate here, although we cannot find examples
    171            online. -->
    172       <premiumRate>
    173         <nationalNumberPattern>9\d{5}</nationalNumberPattern>
    174         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    175         <exampleNumber>912345</exampleNumber>
    176       </premiumRate>
    177       <emergency>
    178       <!-- http://www.fco.gov.uk/en/travel-and-living-abroad/travel-advice-by-country/europe/andorra
    179            -->
    180         <nationalNumberPattern>11[0268]</nationalNumberPattern>
    181         <possibleNumberPattern>\d{3}</possibleNumberPattern>
    182         <exampleNumber>112</exampleNumber>
    183       </emergency>
    184     </territory>
    185 
    186     <!--  United Arab Emirates -->
    187     <!-- http://www.itu.int/oth/T02020000DC/en -->
    188     <territory id="AE" countryCode="971" internationalPrefix="00"
    189                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
    190       <availableFormats>
    191         <numberFormat pattern="([2-4679])(\d{3})(\d{4})">
    192           <leadingDigits>[2-4679][2-8]</leadingDigits>
    193           <format>$1 $2 $3</format>
    194         </numberFormat>
    195         <numberFormat pattern="(5[0256])(\d{3})(\d{4})">
    196           <leadingDigits>5</leadingDigits>
    197           <format>$1 $2 $3</format>
    198         </numberFormat>
    199         <numberFormat pattern="([479]00)(\d)(\d{5})" nationalPrefixFormattingRule="$FG">
    200           <leadingDigits>[479]0</leadingDigits>
    201           <format>$1 $2 $3</format>
    202         </numberFormat>
    203         <numberFormat pattern="([68]00)(\d{2,9})" nationalPrefixFormattingRule="$FG">
    204           <leadingDigits>
    205             60|
    206             8
    207           </leadingDigits>
    208           <format>$1 $2</format>
    209         </numberFormat>
    210       </availableFormats>
    211       <generalDesc>
    212         <nationalNumberPattern>
    213           [2-79]\d{7,8}|
    214           800\d{2,9}
    215         </nationalNumberPattern>
    216         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
    217       </generalDesc>
    218       <fixedLine>
    219         <nationalNumberPattern>[2-4679][2-8]\d{6}</nationalNumberPattern>
    220         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
    221         <exampleNumber>22345678</exampleNumber>
    222       </fixedLine>
    223       <mobile>
    224         <nationalNumberPattern>5[0256]\d{7}</nationalNumberPattern>
    225         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    226         <exampleNumber>501234567</exampleNumber>
    227       </mobile>
    228       <tollFree>
    229         <nationalNumberPattern>
    230           400\d{6}|
    231           800\d{2,9}
    232         </nationalNumberPattern>
    233         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
    234         <exampleNumber>800123456</exampleNumber>
    235       </tollFree>
    236       <premiumRate>
    237         <nationalNumberPattern>900[02]\d{5}</nationalNumberPattern>
    238         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    239         <exampleNumber>900234567</exampleNumber>
    240       </premiumRate>
    241       <sharedCost>
    242         <nationalNumberPattern>700[05]\d{5}</nationalNumberPattern>
    243         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    244         <exampleNumber>700012345</exampleNumber>
    245       </sharedCost>
    246       <uan>
    247         <nationalNumberPattern>600[25]\d{5}</nationalNumberPattern>
    248         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    249         <exampleNumber>600212345</exampleNumber>
    250       </uan>
    251       <emergency>
    252         <nationalNumberPattern>
    253           112|
    254           99[789]
    255         </nationalNumberPattern>
    256         <possibleNumberPattern>\d{3}</possibleNumberPattern>
    257         <exampleNumber>112</exampleNumber>
    258       </emergency>
    259     </territory>
    260 
    261     <!-- Afghanistan -->
    262     <!-- http://www.itu.int/oth/T0202000001/en -->
    263     <territory id="AF" countryCode="93" internationalPrefix="00"
    264                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
    265       <availableFormats>
    266         <numberFormat pattern="([2-7]\d)(\d{3})(\d{4})">
    267           <format>$1 $2 $3</format>
    268         </numberFormat>
    269       </availableFormats>
    270       <generalDesc>
    271         <nationalNumberPattern>[2-7]\d{8}</nationalNumberPattern>
    272         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
    273       </generalDesc>
    274       <fixedLine>
    275         <nationalNumberPattern>
    276           (?:
    277             [25][0-8]|
    278             [34][0-4]|
    279             6[0-5]
    280           )[2-9]\d{6}
    281         </nationalNumberPattern>
    282         <exampleNumber>234567890</exampleNumber>
    283       </fixedLine>
    284       <mobile>
    285         <nationalNumberPattern>7[057-9]\d{7}</nationalNumberPattern>
    286         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    287         <exampleNumber>701234567</exampleNumber>
    288       </mobile>
    289       <emergency>
    290         <nationalNumberPattern>
    291           1(?:
    292             02|
    293             19
    294           )
    295         </nationalNumberPattern>
    296         <possibleNumberPattern>\d{3}</possibleNumberPattern>
    297         <exampleNumber>119</exampleNumber>
    298       </emergency>
    299     </territory>
    300 
    301     <!-- Antigua and Barbuda -->
    302     <!-- http://www.itu.int/oth/T0202000008/en -->
    303     <territory id="AG" countryCode="1" leadingDigits="268" nationalPrefix="1"
    304                internationalPrefix="011">
    305       <generalDesc>
    306         <!-- NANPA country - uses US formatting rules -->
    307         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
    308         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
    309       </generalDesc>
    310       <fixedLine>
    311         <!-- 268 468 is not in the plan, but has been added after numbers with this prefix have been
    312              found in online searches. -->
    313         <nationalNumberPattern>
    314           268(?:
    315             4(?:
    316               6[0-38]|
    317               84
    318             )|
    319             56[0-2]
    320           )\d{4}
    321         </nationalNumberPattern>
    322         <exampleNumber>2684601234</exampleNumber>
    323       </fixedLine>
    324       <mobile>
    325         <!-- 268 776/778/779 are not in the plan, but have been added after numbers with these
    326              prefixes have been found in online searches. Same for 268 780/782/784/786. -->
    327         <nationalNumberPattern>
    328           268(?:
    329             464|
    330             7(?:
    331               2[0-9]|
    332               64|
    333               7[0-689]|
    334               8[02-68]
    335             )
    336           )\d{4}
    337         </nationalNumberPattern>
    338         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    339         <exampleNumber>2684641234</exampleNumber>
    340       </mobile>
    341       <pager>
    342         <nationalNumberPattern>26840[69]\d{4}</nationalNumberPattern>
    343         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    344         <exampleNumber>2684061234</exampleNumber>
    345       </pager>
    346       <tollFree>
    347         <nationalNumberPattern>
    348           8(?:
    349             00|
    350             55|
    351             66|
    352             77|
    353             88
    354           )[2-9]\d{6}
    355         </nationalNumberPattern>
    356         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    357         <exampleNumber>8002123456</exampleNumber>
    358       </tollFree>
    359       <premiumRate>
    360         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
    361         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    362         <exampleNumber>9002123456</exampleNumber>
    363       </premiumRate>
    364       <personalNumber>
    365         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
    366         <nationalNumberPattern>
    367           5(?:
    368             00|
    369             33|
    370             44
    371           )[2-9]\d{6}
    372         </nationalNumberPattern>
    373         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    374         <exampleNumber>5002345678</exampleNumber>
    375       </personalNumber>
    376       <voip>
    377         <!-- This is included as Centrex in the plan. -->
    378         <nationalNumberPattern>26848[01]\d{4}</nationalNumberPattern>
    379         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    380         <exampleNumber>2684801234</exampleNumber>
    381       </voip>
    382       <emergency>
    383         <!-- http://barbados.usembassy.gov/emergency-antigua_barbuda.html -->
    384         <nationalNumberPattern>
    385           9(?:
    386             11|
    387             99
    388           )
    389         </nationalNumberPattern>
    390         <possibleNumberPattern>\d{3}</possibleNumberPattern>
    391         <exampleNumber>911</exampleNumber>
    392       </emergency>
    393     </territory>
    394 
    395     <!-- Anguilla -->
    396     <!-- http://www.itu.int/oth/T0202000007/en -->
    397     <territory id="AI" countryCode="1" leadingDigits="264" nationalPrefix="1"
    398                internationalPrefix="011">
    399       <generalDesc>
    400         <!-- NANPA country - uses US formatting rules -->
    401         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
    402         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
    403       </generalDesc>
    404       <fixedLine>
    405         <nationalNumberPattern>
    406           2644(?:
    407             6[12]|
    408             9[78]
    409           )\d{4}
    410         </nationalNumberPattern>
    411         <exampleNumber>2644612345</exampleNumber>
    412       </fixedLine>
    413       <mobile>
    414         <nationalNumberPattern>
    415           264(?:
    416             235|
    417             476|
    418             5(?:
    419               3[6-9]|
    420               8[1-4]
    421             )|
    422             7(?:
    423               29|
    424               72
    425             )
    426           )\d{4}
    427         </nationalNumberPattern>
    428         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    429         <exampleNumber>2642351234</exampleNumber>
    430       </mobile>
    431       <tollFree>
    432         <nationalNumberPattern>
    433           8(?:
    434             00|
    435             55|
    436             66|
    437             77|
    438             88
    439           )[2-9]\d{6}
    440         </nationalNumberPattern>
    441         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    442         <exampleNumber>8002123456</exampleNumber>
    443       </tollFree>
    444       <premiumRate>
    445         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
    446         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    447         <exampleNumber>9002123456</exampleNumber>
    448       </premiumRate>
    449       <personalNumber>
    450         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
    451         <nationalNumberPattern>
    452           5(?:
    453             00|
    454             33|
    455             44
    456           )[2-9]\d{6}
    457         </nationalNumberPattern>
    458         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    459         <exampleNumber>5002345678</exampleNumber>
    460       </personalNumber>
    461       <emergency>
    462         <!-- http://barbados.usembassy.gov/emergency-anguilla.html -->
    463         <nationalNumberPattern>911</nationalNumberPattern>
    464         <possibleNumberPattern>\d{3}</possibleNumberPattern>
    465         <exampleNumber>911</exampleNumber>
    466       </emergency>
    467     </territory>
    468 
    469     <!-- Albania -->
    470     <!-- http://www.itu.int/oth/T0202000002/en -->
    471     <territory id="AL" countryCode="355" internationalPrefix="00"
    472                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
    473       <availableFormats>
    474         <!-- Formats mostly follow http://tirana.usembassy.gov/list_of_doctors.html -->
    475         <numberFormat pattern="(4)(\d{3})(\d{4})">
    476           <leadingDigits>4[0-6]</leadingDigits>
    477           <format>$1 $2 $3</format>
    478         </numberFormat>
    479         <numberFormat pattern="(6[6-9])(\d{3})(\d{4})">
    480           <leadingDigits>6</leadingDigits>
    481           <format>$1 $2 $3</format>
    482         </numberFormat>
    483         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
    484           <leadingDigits>
    485             [2358][2-5]|
    486             4[7-9]
    487           </leadingDigits>
    488           <format>$1 $2 $3</format>
    489         </numberFormat>
    490         <numberFormat pattern="(\d{3})(\d{3,5})">
    491           <leadingDigits>
    492             [235][16-9]|
    493             8[016-9]|
    494             [79]
    495           </leadingDigits>
    496           <format>$1 $2</format>
    497         </numberFormat>
    498       </availableFormats>
    499       <generalDesc>
    500         <nationalNumberPattern>
    501           [2-57]\d{7}|
    502           6\d{8}|
    503           8\d{5,7}|
    504           9\d{5}
    505         </nationalNumberPattern>
    506         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
    507       </generalDesc>
    508       <fixedLine>
    509         <nationalNumberPattern>
    510           (?:
    511             2(?:
    512               [168][1-9]|
    513               [247]\d|
    514               9[1-7]
    515             )|
    516             3(?:
    517               1[1-3]|
    518               [2-6]\d|
    519               [79][1-8]|
    520               8[1-9]
    521             )|
    522             4\d{2}|
    523             5(?:
    524               1[1-4]|
    525               [2-578]\d|
    526               6[1-5]|
    527               9[1-7]
    528             )|
    529             8(?:
    530               [19][1-5]|
    531               [2-6]\d|
    532               [78][1-7]
    533             )
    534           )\d{5}
    535         </nationalNumberPattern>
    536         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
    537         <exampleNumber>22345678</exampleNumber>
    538       </fixedLine>
    539       <mobile>
    540         <nationalNumberPattern>6[6-9]\d{7}</nationalNumberPattern>
    541         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    542         <exampleNumber>661234567</exampleNumber>
    543       </mobile>
    544       <tollFree>
    545         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
    546         <possibleNumberPattern>\d{7}</possibleNumberPattern>
    547         <exampleNumber>8001234</exampleNumber>
    548       </tollFree>
    549       <premiumRate>
    550         <!-- It is named "Shared Revenue Services" in the plan, but as there is a separate "Shared
    551              Cost Services", it is highly likely these numbers are premium rate numbers. No
    552              information/example is found in the Internet. -->
    553         <nationalNumberPattern>900\d{3}</nationalNumberPattern>
    554         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    555         <exampleNumber>900123</exampleNumber>
    556       </premiumRate>
    557       <sharedCost>
    558         <nationalNumberPattern>808\d{3}</nationalNumberPattern>
    559         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    560         <exampleNumber>808123</exampleNumber>
    561       </sharedCost>
    562       <personalNumber>
    563         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
    564         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    565         <exampleNumber>70012345</exampleNumber>
    566       </personalNumber>
    567       <emergency>
    568         <nationalNumberPattern>12[789]</nationalNumberPattern>
    569         <possibleNumberPattern>\d{3}</possibleNumberPattern>
    570         <exampleNumber>129</exampleNumber>
    571       </emergency>
    572     </territory>
    573 
    574     <!-- Armenia -->
    575     <!-- http://www.itu.int/oth/T020200000A/en -->
    576     <!-- http://en.wikipedia.org/wiki/%2B374 -->
    577     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Nagorno-Karabakh_Republic -->
    578     <!-- We think the national dialling prefix is 0 - it seems this was a change in 2005 (or 2008)
    579          along with the new city codes. However, their official document makes no mention of it,
    580          websites disagree, and we are not sure if the change has actually been made. -->
    581     <territory id="AM" countryCode="374" internationalPrefix="00"
    582                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
    583       <availableFormats>
    584         <numberFormat pattern="(\d{2})(\d{6})">
    585           <leadingDigits>
    586             1|
    587             47
    588           </leadingDigits>
    589           <format>$1 $2</format>
    590         </numberFormat>
    591         <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
    592           <leadingDigits>
    593             [5-7]|
    594             9[1-9]
    595           </leadingDigits>
    596           <format>$1 $2</format>
    597         </numberFormat>
    598         <numberFormat pattern="(\d{3})(\d{5})">
    599           <leadingDigits>[23]</leadingDigits>
    600           <format>$1 $2</format>
    601         </numberFormat>
    602         <numberFormat pattern="(\d{3})(\d{2})(\d{3})" nationalPrefixFormattingRule="$NP $FG">
    603           <leadingDigits>
    604             8|
    605             90
    606           </leadingDigits>
    607           <format>$1 $2 $3</format>
    608         </numberFormat>
    609       </availableFormats>
    610       <generalDesc>
    611         <nationalNumberPattern>[1-9]\d{7}</nationalNumberPattern>
    612         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
    613       </generalDesc>
    614       <fixedLine>
    615         <!-- Includes telephone numbers in Nagorno-Karabakh Republic, physically located inside
    616              Azerbaijan, which use prefix 47. -->
    617         <nationalNumberPattern>
    618           (?:
    619             1[01]\d|
    620             2(?:
    621               2[2-46]|
    622               3[1-8]|
    623               4[2-69]|
    624               5[2-7]|
    625               6[1-9]|
    626               8[1-7]
    627             )|
    628             3[12]2|
    629             47\d
    630           )\d{5}
    631         </nationalNumberPattern>
    632         <exampleNumber>10123456</exampleNumber>
    633       </fixedLine>
    634       <mobile>
    635         <!-- Part of the range 97 is used by Nagorno-Karabakh Republic. -->
    636         <nationalNumberPattern>
    637           (?:
    638             55|
    639             77|
    640             9[1-9]
    641           )\d{6}
    642         </nationalNumberPattern>
    643         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    644         <exampleNumber>77123456</exampleNumber>
    645       </mobile>
    646       <tollFree>
    647         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
    648         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    649         <exampleNumber>80012345</exampleNumber>
    650       </tollFree>
    651       <premiumRate>
    652         <nationalNumberPattern>90[016]\d{5}</nationalNumberPattern>
    653         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    654         <exampleNumber>90012345</exampleNumber>
    655       </premiumRate>
    656       <sharedCost>
    657         <nationalNumberPattern>80[1-4]\d{5}</nationalNumberPattern>
    658         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    659         <exampleNumber>80112345</exampleNumber>
    660       </sharedCost>
    661       <voip>
    662         <nationalNumberPattern>60[2-6]\d{5}</nationalNumberPattern>
    663         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    664         <exampleNumber>60271234</exampleNumber>
    665       </voip>
    666       <shortCode>
    667         <nationalNumberPattern>
    668           8[1-7]\d{2}|
    669           1(?:
    670             0[04-9]|
    671             [1-9]\d
    672           )
    673         </nationalNumberPattern>
    674         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
    675         <exampleNumber>8711</exampleNumber>
    676       </shortCode>
    677       <emergency>
    678         <nationalNumberPattern>10[123]</nationalNumberPattern>
    679         <possibleNumberPattern>\d{3}</possibleNumberPattern>
    680         <exampleNumber>102</exampleNumber>
    681       </emergency>
    682     </territory>
    683 
    684     <!-- Angola -->
    685     <!-- http://www.itu.int/oth/T0202000006/en -->
    686     <territory id="AO" countryCode="244" internationalPrefix="00">
    687       <availableFormats>
    688         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
    689           <format>$1 $2 $3</format>
    690         </numberFormat>
    691       </availableFormats>
    692       <generalDesc>
    693         <nationalNumberPattern>[29]\d{8}</nationalNumberPattern>
    694         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    695       </generalDesc>
    696       <fixedLine>
    697         <nationalNumberPattern>
    698           2\d(?:
    699             [26-9]\d|
    700             \d[26-9]
    701           )\d{5}
    702         </nationalNumberPattern>
    703         <exampleNumber>222123456</exampleNumber>
    704       </fixedLine>
    705       <mobile>
    706         <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel are
    707              launching the prefix 94 apparently on 25th April 2012. -->
    708         <nationalNumberPattern>9[1-4]\d{7}</nationalNumberPattern>
    709         <exampleNumber>923123456</exampleNumber>
    710       </mobile>
    711       <emergency>
    712         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1096.html -->
    713         <nationalNumberPattern>11[235]</nationalNumberPattern>
    714         <possibleNumberPattern>\d{3}</possibleNumberPattern>
    715         <exampleNumber>113</exampleNumber>
    716       </emergency>
    717     </territory>
    718 
    719     <!-- Argentina -->
    720     <!-- http://www.itu.int/oth/T0202000009/en -->
    721     <!-- http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp - click on Indicativos Interurbanos.
    722          -->
    723     <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
    724        nationalPrefixForParsing="
    725          0?(?:
    726            (11|
    727             2(?:
    728               2(?:
    729                 02?|
    730                 [13]|
    731                 2[13-79]|
    732                 4[1-6]|
    733                 5[2457]|
    734                 6[124-8]|
    735                 7[1-4]|
    736                 8[13-6]|
    737                 9[1267]
    738               )|
    739               3(?:
    740                 02?|
    741                 1[467]|
    742                 2[03-6]|
    743                 3[13-8]|
    744                 [49][2-6]|
    745                 5[2-8]|
    746                 [67]
    747               )|
    748               4(?:
    749                 7[3-578]|
    750                 9
    751               )|
    752               6(?:
    753                 [0136]|
    754                 2[24-6]|
    755                 4[6-8]?|
    756                 5[15-8]
    757               )|
    758               80|
    759               9(?:
    760                 0[1-3]|
    761                 [19]|
    762                 2\d|
    763                 3[1-6]|
    764                 4[02568]?|
    765                 5[2-4]|
    766                 6[2-46]|
    767                 72?|
    768                 8[23]?
    769               )
    770            )|
    771            3(?:
    772              3(?:
    773                2[79]|
    774                6|
    775                8[2578]
    776              )|
    777              4(?:
    778                0[124-9]|
    779                [12]|
    780                3[5-8]?|
    781                4[24-7]|
    782                5[4-68]?|
    783                6[02-9]|
    784                7[126]|
    785                8[2379]?|
    786                9[1-36-8]
    787              )|
    788              5(?:
    789                1|
    790                2[1245]|
    791                3[237]?|
    792                4[1-46-9]|
    793                6[2-4]|
    794                7[1-6]|
    795                8[2-5]?
    796              )|
    797              6[24]|
    798              7(?:
    799                1[1568]|
    800                2[15]|
    801                3[145]|
    802                4[13]|
    803                5[14-8]|
    804                [069]|
    805                7[2-57]|
    806                8[126]
    807              )|
    808              8(?:
    809                [01]|
    810                2[15-7]|
    811                3[2578]?|
    812                4[13-6]|
    813                5[4-8]?|
    814                6[1-357-9]|
    815                7[36-8]?|
    816                8[5-8]?|
    817                9[124]
    818              )
    819            )
    820          )15
    821        )?"
    822        nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG">
    823       <availableFormats>
    824         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
    825           <leadingDigits>[68]</leadingDigits>
    826           <format>$1-$2-$3</format>
    827         </numberFormat>
    828         <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
    829           <leadingDigits>911</leadingDigits>
    830           <format>$2 15-$3-$4</format>
    831           <intlFormat>$1 $2 $3-$4</intlFormat>
    832         </numberFormat>
    833         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
    834           <!-- Some 4-digit area codes actually are caught by this rule. Preference is given however
    835                to the 3-digit area codes, since they are considerably larger communities.  -->
    836           <leadingDigits>
    837             9(?:
    838               2[234689]|
    839               3[3-8]
    840             )
    841           </leadingDigits>
    842           <leadingDigits>
    843             9(?:
    844               2(?:
    845                 2[013]|
    846                 3[067]|
    847                 49|
    848                 6[01346]|
    849                 80|
    850                 9[147-9]
    851               )|
    852               3(?:
    853                 36|
    854                 4[12358]|
    855                 5[138]|
    856                 6[24]|
    857                 7[069]|
    858                 8[013578]
    859               )
    860             )
    861           </leadingDigits>
    862           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948 -
    863                and several 38[3578]X four-digit area codes. -->
    864           <leadingDigits>
    865             9(?:
    866               2(?:
    867                 2[013]|
    868                 3[067]|
    869                 49|
    870                 6[01346]|
    871                 80|
    872                 9(?:
    873                   [17-9]|
    874                   4[13479]
    875                 )
    876               )|
    877               3(?:
    878                 36|
    879                 4[12358]|
    880                 5(?:
    881                   [18]|
    882                   3[014-689]
    883                 )|
    884                 6[24]|
    885                 7[069]|
    886                 8(?:
    887                   [01]|
    888                   3[013469]|
    889                   5[0-39]|
    890                   7[0-2459]|
    891                   8[0-49]
    892                 )
    893               )
    894             )
    895           </leadingDigits>
    896           <format>$2 15-$3-$4</format>
    897           <intlFormat>$1 $2 $3-$4</intlFormat>
    898         </numberFormat>
    899         <numberFormat pattern="(9)(\d{4})(\d{3})(\d{3})">
    900           <!-- The formatting pattern here for these newly introduced area codes is based on the ITU
    901                document. We have not found sufficient examples online to know if this is actually
    902                being followed by the general population, or whether the back-up pattern for
    903                four-digit area codes (below) is preferred. -->
    904           <leadingDigits>93[58]</leadingDigits>
    905           <leadingDigits>
    906             9(?:
    907               3(?:
    908                 53|
    909                 8[78]
    910               )
    911             )
    912           </leadingDigits>
    913           <leadingDigits>
    914             9(?:
    915               3(?:
    916                 537|
    917                 8(?:
    918                   73|
    919                   88
    920                 )
    921               )
    922             )
    923           </leadingDigits>
    924           <format>$2 15-$3-$4</format>
    925         </numberFormat>
    926         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
    927           <leadingDigits>9[23]</leadingDigits>
    928           <format>$2 15-$3-$4</format>
    929           <intlFormat>$1 $2 $3-$4</intlFormat>
    930         </numberFormat>
    931         <numberFormat pattern="(11)(\d{4})(\d{4})">
    932           <leadingDigits>1</leadingDigits>
    933           <format>$1 $2-$3</format>
    934         </numberFormat>
    935         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
    936         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
    937           <leadingDigits>
    938             2(?:
    939               2[013]|
    940               3[067]|
    941               49|
    942               6[01346]|
    943               80|
    944               9[147-9]
    945             )|
    946             3(?:
    947               36|
    948               4[12358]|
    949               5[138]|
    950               6[24]|
    951               7[069]|
    952               8[013578]
    953             )
    954           </leadingDigits>
    955           <!-- Several 294X four-digit area codes exist: 2940, 2942, 2945, 2946 and 2948. -->
    956           <leadingDigits>
    957             2(?:
    958               2[013]|
    959               3[067]|
    960               49|
    961               6[01346]|
    962               80|
    963               9(?:
    964                 [17-9]|
    965                 4[13479]
    966               )
    967             )|
    968             3(?:
    969               36|
    970               4[12358]|
    971               5(?:
    972                 [18]|
    973                 3[0-689]
    974               )|
    975               6[24]|
    976               7[069]|
    977               8(?:
    978                 [01]|
    979                 3[013469]|
    980                 5[0-39]|
    981                 7[0-2459]|
    982                 8[0-49]
    983               )
    984             )
    985           </leadingDigits>
    986           <format>$1 $2-$3</format>
    987         </numberFormat>
    988         <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
    989           <leadingDigits>
    990             3(?:
    991               53|
    992               8[78]
    993             )
    994           </leadingDigits>
    995           <leadingDigits>
    996             3(?:
    997               537|
    998               8(?:
    999                 73|
   1000                 88
   1001               )
   1002             )
   1003           </leadingDigits>
   1004           <format>$1 $2-$3</format>
   1005         </numberFormat>
   1006         <numberFormat pattern="(\d{4})(\d{2})(\d{4})">
   1007           <leadingDigits>[23]</leadingDigits>
   1008           <format>$1 $2-$3</format>
   1009         </numberFormat>
   1010       </availableFormats>
   1011       <generalDesc>
   1012         <nationalNumberPattern>
   1013           [1-368]\d{9}|
   1014           9\d{10}
   1015         </nationalNumberPattern>
   1016         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   1017       </generalDesc>
   1018       <noInternationalDialling>
   1019         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
   1020         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1021         <exampleNumber>8101234567</exampleNumber>
   1022       </noInternationalDialling>
   1023       <fixedLine>
   1024         <!-- Also covering fixed satellite service numbers (670). -->
   1025         <nationalNumberPattern>
   1026           11\d{8}|
   1027           (?:
   1028             2(?:
   1029               2(?:
   1030                 [013]\d|
   1031                 2[13-79]|
   1032                 4[1-6]|
   1033                 5[2457]|
   1034                 6[124-8]|
   1035                 7[1-4]|
   1036                 8[13-6]|
   1037                 9[1267]
   1038               )|
   1039               3(?:
   1040                 1[467]|
   1041                 2[03-6]|
   1042                 3[13-8]|
   1043                 [49][2-6]|
   1044                 5[2-8]|
   1045                 [067]\d
   1046               )|
   1047               4(?:
   1048                 7[3-8]|
   1049                 9\d
   1050               )|
   1051               6(?:
   1052                 [01346]\d|
   1053                 2[24-6]|
   1054                 5[15-8]
   1055               )|
   1056               80\d|
   1057               9(?:
   1058                 [0124789]\d|
   1059                 3[1-6]|
   1060                 5[234]|
   1061                 6[2-46]
   1062               )
   1063             )|
   1064             3(?:
   1065               3(?:
   1066                 2[79]|
   1067                 6\d|
   1068                 8[2578]
   1069               )|
   1070               4(?:
   1071                 [78]\d|
   1072                 0[0124-9]|
   1073                 [1-35]\d|
   1074                 4[24-7]|
   1075                 6[02-9]|
   1076                 9[123678]
   1077               )|
   1078               5(?:
   1079                 [138]\d|
   1080                 2[1245]|
   1081                 4[1-9]|
   1082                 6[2-4]|
   1083                 7[1-6]
   1084               )|
   1085               6[24]\d|
   1086               7(?:
   1087                 [0469]\d|
   1088                 1[1568]|
   1089                 2[013-9]|
   1090                 3[145]|
   1091                 5[14-8]|
   1092                 7[2-57]|
   1093                 8[0-24-9]
   1094               )|
   1095               8(?:
   1096                 [013578]\d|
   1097                 2[15-7]|
   1098                 4[13-6]|
   1099                 6[1-357-9]|
   1100                 9[124]
   1101               )
   1102             )|
   1103             670\d
   1104           )\d{6}
   1105         </nationalNumberPattern>
   1106         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1107         <exampleNumber>1123456789</exampleNumber>
   1108       </fixedLine>
   1109       <mobile>
   1110         <!-- Also covers mobile satellite services (675 numbers). -->
   1111         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
   1112              area code is in the range 2-9. The four-digit area-code checking is done in detail if
   1113              we attempt to strip the caller-pays token (15) from the number. -->
   1114         <nationalNumberPattern>
   1115           675\d{7}|
   1116           9(?:
   1117             11[2-9]\d{7}|
   1118             (?:
   1119               2(?:
   1120                 2[013]|
   1121                 3[067]|
   1122                 49|
   1123                 6[01346]|
   1124                 80|
   1125                 9[147-9]
   1126               )|
   1127               3(?:
   1128                 36|
   1129                 4[12358]|
   1130                 5[138]|
   1131                 6[24]|
   1132                 7[069]|
   1133                 8[013578]
   1134               )
   1135             )[2-9]\d{6}|
   1136             \d{4}[2-9]\d{5}
   1137           )
   1138         </nationalNumberPattern>
   1139         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   1140         <exampleNumber>91123456789</exampleNumber>
   1141       </mobile>
   1142       <tollFree>
   1143         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   1144         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1145         <exampleNumber>8001234567</exampleNumber>
   1146       </tollFree>
   1147       <premiumRate>
   1148         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
   1149         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1150         <exampleNumber>6001234567</exampleNumber>
   1151       </premiumRate>
   1152       <uan>
   1153         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
   1154         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1155         <exampleNumber>8101234567</exampleNumber>
   1156       </uan>
   1157       <shortCode>
   1158         <nationalNumberPattern>
   1159           1(?:
   1160             0[2356]|
   1161             1[02-5]|
   1162             21
   1163           )
   1164         </nationalNumberPattern>
   1165         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   1166         <exampleNumber>121</exampleNumber>
   1167       </shortCode>
   1168       <emergency>
   1169         <nationalNumberPattern>
   1170           1(?:
   1171             0[017]|
   1172             28
   1173           )
   1174         </nationalNumberPattern>
   1175         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   1176         <exampleNumber>101</exampleNumber>
   1177       </emergency>
   1178     </territory>
   1179 
   1180     <!-- American Samoa -->
   1181     <!-- http://www.itu.int/oth/T0202000004/en -->
   1182     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
   1183                internationalPrefix="011">
   1184       <generalDesc>
   1185         <!-- NANPA country - uses US formatting rules -->
   1186         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   1187         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   1188       </generalDesc>
   1189       <fixedLine>
   1190         <nationalNumberPattern>
   1191           6846(?:
   1192             22|
   1193             33|
   1194             44|
   1195             55|
   1196             77|
   1197             88|
   1198             9[19]
   1199           )\d{4}
   1200         </nationalNumberPattern>
   1201         <exampleNumber>6846221234</exampleNumber>
   1202       </fixedLine>
   1203       <mobile>
   1204         <!-- Adding 24[246], operated from Blue Sky. -->
   1205         <nationalNumberPattern>
   1206           684(?:
   1207             733|
   1208             25[2468]
   1209           )\d{4}
   1210         </nationalNumberPattern>
   1211         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1212         <exampleNumber>6847331234</exampleNumber>
   1213       </mobile>
   1214       <tollFree>
   1215         <nationalNumberPattern>
   1216           8(?:
   1217             00|
   1218             55|
   1219             66|
   1220             77|
   1221             88
   1222           )[2-9]\d{6}
   1223         </nationalNumberPattern>
   1224         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1225         <exampleNumber>8002123456</exampleNumber>
   1226       </tollFree>
   1227       <premiumRate>
   1228         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   1229         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1230         <exampleNumber>9002123456</exampleNumber>
   1231       </premiumRate>
   1232       <personalNumber>
   1233         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   1234         <nationalNumberPattern>
   1235           5(?:
   1236             00|
   1237             33|
   1238             44
   1239           )[2-9]\d{6}
   1240         </nationalNumberPattern>
   1241         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1242         <exampleNumber>5002345678</exampleNumber>
   1243       </personalNumber>
   1244       <emergency>
   1245         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf
   1246              http://www.airportairport.com/American-Samoa.html
   1247              http://www.frommers.com/destinations/americansamoa/3038020157.html -->
   1248         <nationalNumberPattern>911</nationalNumberPattern>
   1249         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   1250         <exampleNumber>911</exampleNumber>
   1251       </emergency>
   1252     </territory>
   1253 
   1254     <!-- Austria -->
   1255     <!-- http://www.rtr.at/en/tk/E129 -->
   1256     <territory id="AT" countryCode="43" internationalPrefix="00"
   1257                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   1258       <availableFormats>
   1259         <numberFormat pattern="(1)(\d{3,12})">
   1260           <leadingDigits>1</leadingDigits>
   1261           <format>$1 $2</format>
   1262         </numberFormat>
   1263         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
   1264              found on Austrian web pages. -->
   1265         <numberFormat pattern="(5\d)(\d{3,5})">
   1266           <leadingDigits>5[079]</leadingDigits>
   1267           <format>$1 $2</format>
   1268         </numberFormat>
   1269         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
   1270           <leadingDigits>5[079]</leadingDigits>
   1271           <format>$1 $2 $3</format>
   1272         </numberFormat>
   1273         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
   1274           <leadingDigits>5[079]</leadingDigits>
   1275           <format>$1 $2 $3</format>
   1276         </numberFormat>
   1277         <numberFormat pattern="(\d{3})(\d{3,10})">
   1278           <leadingDigits>
   1279             316|
   1280             46|
   1281             51|
   1282             732|
   1283             6(?:
   1284               44|
   1285               5[0-3579]|
   1286               [6-9]
   1287             )|
   1288             7(?:
   1289               1|
   1290               [28]0
   1291             )|
   1292             [89]
   1293           </leadingDigits>
   1294           <format>$1 $2</format>
   1295         </numberFormat>
   1296         <numberFormat pattern="(\d{4})(\d{3,9})">
   1297           <leadingDigits>
   1298             2|
   1299             3(?:
   1300               1[1-578]|
   1301               [3-8]
   1302             )|
   1303             4[2378]|
   1304             5[2-6]|
   1305             6(?:
   1306               [12]|
   1307               4[1-35-9]|
   1308               5[468]
   1309             )|
   1310             7(?:
   1311               2[1-8]|
   1312               35|
   1313               4[1-8]|
   1314               [57-9]
   1315             )
   1316           </leadingDigits>
   1317             <format>$1 $2</format>
   1318           </numberFormat>
   1319       </availableFormats>
   1320       <generalDesc>
   1321         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
   1322         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
   1323       </generalDesc>
   1324       <fixedLine>
   1325         <!-- Note that the full area code is not validated - just the first 3 digits. This also
   1326              means that even though for most Austrian numbers the minimum length is 7, we allow 6
   1327              since we don't differentiate below between 3 and 4 digit area codes for reasons of
   1328              efficiency. -->
   1329         <nationalNumberPattern>
   1330           1\d{3,12}|
   1331           (?:
   1332             2(?:
   1333               1[467]|
   1334               2[13-8]|
   1335               5[2357]|
   1336               6[1-46-8]|
   1337               7[1-8]|
   1338               8[124-7]|
   1339               9[1458]
   1340             )|
   1341             3(?:
   1342               1[1-8]|
   1343               3[23568]|
   1344               4[5-7]|
   1345               5[1378]|
   1346               6[1-38]|
   1347               8[3-68]
   1348             )|
   1349             4(?:
   1350               2[1-8]|
   1351               35|
   1352               63|
   1353               7[1368]|
   1354               8[2457]
   1355             )|
   1356             5(?:
   1357               12|
   1358               2[1-8]|
   1359               3[357]|
   1360               4[147]|
   1361               5[12578]|
   1362               6[37]
   1363             )|
   1364             6(?:
   1365               13|
   1366               2[1-47]|
   1367               4[1-35-8]|
   1368               5[468]|
   1369               62
   1370             )|
   1371             7(?:
   1372               2[1-8]|
   1373               3[25]|
   1374               4[13478]|
   1375               5[68]|
   1376               6[16-8]|
   1377               7[1-6]|
   1378               9[45]
   1379             )
   1380           )\d{3,10}
   1381         </nationalNumberPattern>
   1382         <exampleNumber>1234567890</exampleNumber>
   1383       </fixedLine>
   1384       <mobile>
   1385         <nationalNumberPattern>
   1386           6(?:
   1387             44|
   1388             5[0-3579]|
   1389             6[013-9]|
   1390             [7-9]\d
   1391           )\d{4,10}
   1392         </nationalNumberPattern>
   1393         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
   1394         <exampleNumber>644123456</exampleNumber>
   1395       </mobile>
   1396       <tollFree>
   1397         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
   1398         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
   1399         <exampleNumber>800123456</exampleNumber>
   1400       </tollFree>
   1401       <premiumRate>
   1402         <nationalNumberPattern>
   1403           (?:
   1404             711|
   1405             9(?:
   1406               0[01]|
   1407               3[019]
   1408             )
   1409           )\d{6,10}
   1410         </nationalNumberPattern>
   1411         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
   1412         <exampleNumber>900123456</exampleNumber>
   1413       </premiumRate>
   1414       <sharedCost>
   1415         <nationalNumberPattern>
   1416           8(?:
   1417             10|
   1418             2[018]
   1419           )\d{6,10}
   1420         </nationalNumberPattern>
   1421         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
   1422         <exampleNumber>810123456</exampleNumber>
   1423       </sharedCost>
   1424       <voip>
   1425         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
   1426         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
   1427         <exampleNumber>780123456</exampleNumber>
   1428       </voip>
   1429       <uan>
   1430         <nationalNumberPattern>
   1431           5(?:
   1432             (?:
   1433               0[1-9]|
   1434               17
   1435             )\d{2,10}|
   1436             [79]\d{3,11}
   1437           )|
   1438           720\d{6,10}
   1439         </nationalNumberPattern>
   1440         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
   1441         <exampleNumber>50123</exampleNumber>
   1442       </uan>
   1443       <emergency>
   1444         <nationalNumberPattern>
   1445           1(?:
   1446             [12]2|
   1447             33|
   1448             44
   1449           )
   1450         </nationalNumberPattern>
   1451         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   1452         <exampleNumber>112</exampleNumber>
   1453       </emergency>
   1454     </territory>
   1455 
   1456     <!-- Australia -->
   1457     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
   1458     <!-- http://www.itu.int/oth/T020200000D/en -->
   1459     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
   1460     <territory id="AU" countryCode="61" mainCountryForCode="true"
   1461                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
   1462                preferredInternationalPrefix="0011" nationalPrefix="0">
   1463       <availableFormats>
   1464         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   1465           pattern="([2378])(\d{4})(\d{4})">
   1466           <leadingDigits>[2378]</leadingDigits>
   1467           <format>$1 $2 $3</format>
   1468         </numberFormat>
   1469         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   1470           pattern="(\d{3})(\d{3})(\d{3})">
   1471           <leadingDigits>
   1472             [45]|
   1473             14
   1474           </leadingDigits>
   1475           <format>$1 $2 $3</format>
   1476         </numberFormat>
   1477         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   1478           pattern="(16)(\d{3})(\d{2,4})">
   1479           <leadingDigits>16</leadingDigits>
   1480           <format>$1 $2 $3</format>
   1481         </numberFormat>
   1482         <numberFormat nationalPrefixFormattingRule="$FG"
   1483           pattern="(1[389]\d{2})(\d{3})(\d{3})">
   1484           <leadingDigits>
   1485             1(?:
   1486               [38]0|
   1487               90
   1488             )
   1489           </leadingDigits>
   1490           <leadingDigits>
   1491             1(?:
   1492               [38]00|
   1493               90
   1494             )
   1495           </leadingDigits>
   1496           <format>$1 $2 $3</format>
   1497         </numberFormat>
   1498         <numberFormat nationalPrefixFormattingRule="$FG"
   1499           pattern="(180)(2\d{3})">
   1500           <leadingDigits>180</leadingDigits>
   1501           <leadingDigits>1802</leadingDigits>
   1502           <format>$1 $2</format>
   1503         </numberFormat>
   1504         <numberFormat nationalPrefixFormattingRule="$FG"
   1505           pattern="(19\d)(\d{3})">
   1506           <leadingDigits>19[13]</leadingDigits>
   1507           <format>$1 $2</format>
   1508         </numberFormat>
   1509         <numberFormat nationalPrefixFormattingRule="$FG"
   1510           pattern="(19\d{2})(\d{4})">
   1511           <leadingDigits>19[67]</leadingDigits>
   1512           <format>$1 $2</format>
   1513         </numberFormat>
   1514         <numberFormat nationalPrefixFormattingRule="$FG"
   1515           pattern="(13)(\d{2})(\d{2})">
   1516           <leadingDigits>13[1-9]</leadingDigits>
   1517           <format>$1 $2 $3</format>
   1518         </numberFormat>
   1519       </availableFormats>
   1520       <generalDesc>
   1521         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
   1522         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1523       </generalDesc>
   1524       <noInternationalDialling>
   1525         <nationalNumberPattern>
   1526           1(?:
   1527             3(?:
   1528               \d{4}|
   1529               00\d{6}
   1530             )|
   1531             80(?:
   1532               0\d{6}|
   1533               2\d{3}
   1534             )
   1535           )
   1536         </nationalNumberPattern>
   1537         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1538         <exampleNumber>1300123456</exampleNumber>
   1539       </noInternationalDialling>
   1540       <fixedLine>
   1541         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
   1542         <nationalNumberPattern>
   1543           [237]\d{8}|
   1544           8(?:
   1545             [68]\d{3}|
   1546             7[0-69]\d{2}|
   1547             9(?:
   1548               [02-9]\d{2}|
   1549               1(?:
   1550                 [0-57-9]\d|
   1551                 6[0135-9]
   1552               )
   1553             )
   1554           )\d{4}
   1555         </nationalNumberPattern>
   1556         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   1557         <exampleNumber>212345678</exampleNumber>
   1558       </fixedLine>
   1559       <mobile>
   1560         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
   1561              other ranges 14[1-3] are not currently used. -->
   1562         <nationalNumberPattern>
   1563           14(?:
   1564             5\d|
   1565             71
   1566           )\d{5}|
   1567           4(?:
   1568             [0-2]\d|
   1569             3[0-57-9]|
   1570             4[47-9]|
   1571             5[0-35-9]|
   1572             6[6-9]|
   1573             [79][07-9]|
   1574             8[17-9]
   1575           )\d{6}
   1576         </nationalNumberPattern>
   1577         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1578         <exampleNumber>412345678</exampleNumber>
   1579       </mobile>
   1580       <pager>
   1581         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
   1582         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   1583         <exampleNumber>1612345</exampleNumber>
   1584       </pager>
   1585       <tollFree>
   1586         <nationalNumberPattern>
   1587           180(?:
   1588             0\d{3}|
   1589             2
   1590           )\d{3}
   1591         </nationalNumberPattern>
   1592         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   1593         <exampleNumber>1800123456</exampleNumber>
   1594       </tollFree>
   1595       <premiumRate>
   1596         <nationalNumberPattern>
   1597           19(?:
   1598             0[0126]\d{6}|
   1599             [13-5]\d{3}|
   1600             [679]\d{5}
   1601           )
   1602         </nationalNumberPattern>
   1603         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1604         <exampleNumber>1900123456</exampleNumber>
   1605       </premiumRate>
   1606       <sharedCost>
   1607       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
   1608            although they charge a small local call connect fee (around 25c). These start with 13
   1609            or 1300. -->
   1610         <nationalNumberPattern>
   1611           13(?:
   1612             00\d{2}
   1613           )?\d{4}
   1614         </nationalNumberPattern>
   1615         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1616         <exampleNumber>1300123456</exampleNumber>
   1617       </sharedCost>
   1618       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
   1619            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
   1620            from 0500000000 to 0590000000) -->
   1621       <personalNumber>
   1622         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
   1623         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1624         <exampleNumber>500123456</exampleNumber>
   1625       </personalNumber>
   1626       <voip>
   1627         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
   1628         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1629         <exampleNumber>550123456</exampleNumber>
   1630       </voip>
   1631       <emergency>
   1632         <nationalNumberPattern>
   1633           000|
   1634           112
   1635         </nationalNumberPattern>
   1636         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   1637         <exampleNumber>112</exampleNumber>
   1638       </emergency>
   1639     </territory>
   1640 
   1641     <!-- Aruba -->
   1642     <!-- http://www.itu.int/oth/T020200000B/en -->
   1643     <territory id="AW" countryCode="297" internationalPrefix="00">
   1644       <availableFormats>
   1645         <numberFormat pattern="(\d{3})(\d{4})">
   1646           <format>$1 $2</format>
   1647         </numberFormat>
   1648       </availableFormats>
   1649       <generalDesc>
   1650         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
   1651         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   1652       </generalDesc>
   1653       <fixedLine>
   1654         <nationalNumberPattern>
   1655           5(?:
   1656             2\d|
   1657             8[1-9]
   1658           )\d{4}
   1659         </nationalNumberPattern>
   1660         <exampleNumber>5212345</exampleNumber>
   1661       </fixedLine>
   1662       <mobile>
   1663         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
   1664              numbers found online. -->
   1665         <nationalNumberPattern>
   1666           (?:
   1667             5(?:
   1668               6\d|
   1669               9[2-478]
   1670             )|
   1671             6(?:
   1672               [039]0|
   1673               22|
   1674               4[01]|
   1675               6[0-2]
   1676             )|
   1677             7[34]\d|
   1678             9(?:
   1679               6[45]|
   1680               9[4-8]
   1681             )
   1682           )\d{4}
   1683         </nationalNumberPattern>
   1684         <exampleNumber>5601234</exampleNumber>
   1685       </mobile>
   1686       <tollFree>
   1687         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
   1688         <exampleNumber>8001234</exampleNumber>
   1689       </tollFree>
   1690       <premiumRate>
   1691         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
   1692         <exampleNumber>9001234</exampleNumber>
   1693       </premiumRate>
   1694       <voip>
   1695         <nationalNumberPattern>
   1696           28\d{5}|
   1697           501\d{4}
   1698         </nationalNumberPattern>
   1699         <exampleNumber>5011234</exampleNumber>
   1700       </voip>
   1701       <emergency>
   1702         <!-- http://www.yellowpages-aruba.com/home/emergency-numbers -->
   1703         <nationalNumberPattern>
   1704           100|
   1705           911
   1706         </nationalNumberPattern>
   1707         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   1708         <exampleNumber>911</exampleNumber>
   1709       </emergency>
   1710     </territory>
   1711 
   1712     <!-- land Islands. -->
   1713     <!-- Metadata shared with Finland. -->
   1714     <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html -->
   1715     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
   1716                nationalPrefixFormattingRule="$NP$FG">
   1717       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
   1718       <generalDesc>
   1719         <nationalNumberPattern>
   1720           [135]\d{5,9}|
   1721           [27]\d{4,9}|
   1722           4\d{5,10}|
   1723           6\d{7,8}|
   1724           8\d{6,9}
   1725         </nationalNumberPattern>
   1726         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   1727       </generalDesc>
   1728       <noInternationalDialling>
   1729         <!-- According to the national numbering plan, service numbers are in general not accessible
   1730              from abroad, although 600/700/800 numbers may be. -->
   1731         <nationalNumberPattern>
   1732           [13]00\d{3,7}|
   1733           2(?:
   1734             0(?:
   1735               0\d{3,7}|
   1736               2[023]\d{1,6}|
   1737               9[89]\d{1,6}
   1738             )
   1739           )|
   1740           60(?:
   1741             [12]\d{5,6}|
   1742             6\d{7}
   1743           )|
   1744           7(?:
   1745             1\d{7}|
   1746             3\d{8}|
   1747             5[03-9]\d{2,7}
   1748           )
   1749         </nationalNumberPattern>
   1750         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   1751         <exampleNumber>100123</exampleNumber>
   1752       </noInternationalDialling>
   1753       <fixedLine>
   1754         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
   1755         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   1756         <exampleNumber>1812345678</exampleNumber>
   1757       </fixedLine>
   1758       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
   1759       <mobile>
   1760         <nationalNumberPattern>
   1761           4\d{5,10}|
   1762           50\d{4,8}
   1763         </nationalNumberPattern>
   1764         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   1765         <exampleNumber>412345678</exampleNumber>
   1766       </mobile>
   1767       <tollFree>
   1768         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
   1769         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   1770         <exampleNumber>8001234567</exampleNumber>
   1771       </tollFree>
   1772       <premiumRate>
   1773         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
   1774         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   1775         <exampleNumber>600123456</exampleNumber>
   1776       </premiumRate>
   1777       <uan>
   1778         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
   1779              assigned to institutions such as universities, the national post, etc, where they are
   1780              not otherwise classified as toll-free or premium-rate numbers. -->
   1781         <nationalNumberPattern>
   1782           [13]0\d{4,8}|
   1783           2(?:
   1784             0(?:
   1785               [016-8]\d{3,7}|
   1786               [2-59]\d{2,7}
   1787             )|
   1788             9\d{4,8}
   1789           )|
   1790           60(?:
   1791             [12]\d{5,6}|
   1792             6\d{7}
   1793           )|
   1794           7(?:
   1795             1\d{7}|
   1796             3\d{8}|
   1797             5[03-9]\d{2,7}
   1798           )
   1799         </nationalNumberPattern>
   1800         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   1801         <exampleNumber>10112345</exampleNumber>
   1802       </uan>
   1803       <emergency>
   1804         <!-- http://www.arrivalguides.com/en/Travelguides/Europe/Finland/ALAND -->
   1805         <nationalNumberPattern>112</nationalNumberPattern>
   1806         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   1807         <exampleNumber>112</exampleNumber>
   1808       </emergency>
   1809     </territory>
   1810 
   1811     <!-- Azerbaijan -->
   1812     <!-- http://www.itu.int/oth/T020200000F/en -->
   1813     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
   1814                nationalPrefixFormattingRule="($NP$FG)">
   1815       <availableFormats>
   1816         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
   1817           <leadingDigits>
   1818             (?:
   1819               1[28]|
   1820               2(?:
   1821                 [45]2|
   1822                 [0-36]
   1823               )|
   1824               365
   1825             )
   1826           </leadingDigits>
   1827           <format>$1 $2 $3 $4</format>
   1828         </numberFormat>
   1829         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
   1830           <leadingDigits>[4-8]</leadingDigits>
   1831           <format>$1 $2 $3 $4</format>
   1832         </numberFormat>
   1833         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
   1834           nationalPrefixFormattingRule="$NP$FG">
   1835           <leadingDigits>9</leadingDigits>
   1836           <format>$1 $2 $3 $4</format>
   1837         </numberFormat>
   1838       </availableFormats>
   1839       <generalDesc>
   1840         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
   1841         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   1842       </generalDesc>
   1843       <fixedLine>
   1844         <nationalNumberPattern>
   1845           (?:
   1846             1[28]\d|
   1847             2(?:
   1848               02|
   1849               1[24]|
   1850               2[2-4]|
   1851               33|
   1852               [45]2|
   1853               6[23]
   1854             )|
   1855             365
   1856           )\d{6}
   1857         </nationalNumberPattern>
   1858         <exampleNumber>123123456</exampleNumber>
   1859       </fixedLine>
   1860       <mobile>
   1861         <nationalNumberPattern>
   1862           (?:
   1863             4[04]|
   1864             5[015]|
   1865             60|
   1866             7[07]
   1867           )\d{7}
   1868         </nationalNumberPattern>
   1869         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1870         <exampleNumber>401234567</exampleNumber>
   1871       </mobile>
   1872       <tollFree>
   1873         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
   1874              suggest they are in fact national toll-free numbers. -->
   1875         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
   1876         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1877         <exampleNumber>881234567</exampleNumber>
   1878       </tollFree>
   1879       <premiumRate>
   1880         <!-- These are marked as Interactive Calls in the ITU document. -->
   1881         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
   1882         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1883         <exampleNumber>900200123</exampleNumber>
   1884       </premiumRate>
   1885       <emergency>
   1886         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_978.html
   1887              http://wikitravel.org/en/Azerbaijan#Emergency_contact_numbers -->
   1888         <nationalNumberPattern>
   1889           1(?:
   1890             0[123]|
   1891             12
   1892           )
   1893         </nationalNumberPattern>
   1894         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   1895         <exampleNumber>101</exampleNumber>
   1896       </emergency>
   1897     </territory>
   1898 
   1899     <!-- Bosnia and Herzegovina -->
   1900     <!-- http://www.rak.ba/eng/index.php?uid=1272016657 (accessible from
   1901          http://www.cra.ba/en/telecom/numbering/) -->
   1902     <!-- http://en.wikipedia.org/wiki/+387 -->
   1903     <territory id="BA" countryCode="387" internationalPrefix="00"
   1904                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   1905       <availableFormats>
   1906         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   1907           <leadingDigits>[3-5]</leadingDigits>
   1908           <format>$1 $2-$3</format>
   1909         </numberFormat>
   1910         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   1911           <leadingDigits>
   1912             6[1-356]|
   1913             [7-9]
   1914           </leadingDigits>
   1915           <format>$1 $2 $3</format>
   1916         </numberFormat>
   1917         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
   1918           <leadingDigits>6[047]</leadingDigits>
   1919           <format>$1 $2 $3 $4</format>
   1920         </numberFormat>
   1921       </availableFormats>
   1922       <generalDesc>
   1923         <nationalNumberPattern>[3-9]\d{7,8}</nationalNumberPattern>
   1924         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   1925       </generalDesc>
   1926       <fixedLine>
   1927         <nationalNumberPattern>
   1928           (?:
   1929             [35]\d|
   1930             49
   1931           )\d{6}
   1932         </nationalNumberPattern>
   1933         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   1934         <exampleNumber>30123456</exampleNumber>
   1935       </fixedLine>
   1936       <mobile>
   1937         <nationalNumberPattern>
   1938           6(?:
   1939             03|
   1940             44|
   1941             71|
   1942             [1-356]
   1943           )\d{6}
   1944         </nationalNumberPattern>
   1945         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   1946         <exampleNumber>61123456</exampleNumber>
   1947       </mobile>
   1948       <tollFree>
   1949         <nationalNumberPattern>8[08]\d{6}</nationalNumberPattern>
   1950         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   1951         <exampleNumber>80123456</exampleNumber>
   1952       </tollFree>
   1953       <premiumRate>
   1954         <nationalNumberPattern>9[0246]\d{6}</nationalNumberPattern>
   1955         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   1956         <exampleNumber>90123456</exampleNumber>
   1957       </premiumRate>
   1958       <sharedCost>
   1959         <!-- Using this category to model national tariff numbers - these are under Shared Cost in
   1960              the plan. -->
   1961         <nationalNumberPattern>8[12]\d{6}</nationalNumberPattern>
   1962         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   1963         <exampleNumber>82123456</exampleNumber>
   1964       </sharedCost>
   1965       <uan>
   1966         <!-- Using this to classify nomad numbers. -->
   1967         <nationalNumberPattern>70[23]\d{5}</nationalNumberPattern>
   1968         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   1969         <exampleNumber>70223456</exampleNumber>
   1970       </uan>
   1971       <emergency>
   1972         <nationalNumberPattern>12[234]</nationalNumberPattern>
   1973         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   1974         <exampleNumber>122</exampleNumber>
   1975       </emergency>
   1976     </territory>
   1977 
   1978     <!-- Barbados -->
   1979     <!-- http://www.itu.int/oth/T0202000013/en -->
   1980     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
   1981                internationalPrefix="011">
   1982       <generalDesc>
   1983         <!-- NANPA country - uses US formatting rules -->
   1984         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
   1985         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   1986       </generalDesc>
   1987       <fixedLine>
   1988         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
   1989         <exampleNumber>2462345678</exampleNumber>
   1990       </fixedLine>
   1991       <mobile>
   1992         <nationalNumberPattern>
   1993           246(?:
   1994             (?:
   1995               2[346]|
   1996               45|
   1997               82
   1998             )\d|
   1999             25[0-4]
   2000           )\d{4}
   2001         </nationalNumberPattern>
   2002         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2003         <exampleNumber>2462501234</exampleNumber>
   2004       </mobile>
   2005       <tollFree>
   2006         <nationalNumberPattern>
   2007           8(?:
   2008             00|
   2009             55|
   2010             66|
   2011             77|
   2012             88
   2013           )[2-9]\d{6}
   2014         </nationalNumberPattern>
   2015         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2016         <exampleNumber>8002123456</exampleNumber>
   2017       </tollFree>
   2018       <premiumRate>
   2019         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   2020         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2021         <exampleNumber>9002123456</exampleNumber>
   2022       </premiumRate>
   2023       <personalNumber>
   2024         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   2025         <nationalNumberPattern>
   2026           5(?:
   2027             00|
   2028             33|
   2029             44
   2030           )[2-9]\d{6}
   2031         </nationalNumberPattern>
   2032         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2033         <exampleNumber>5002345678</exampleNumber>
   2034       </personalNumber>
   2035       <emergency>
   2036         <nationalNumberPattern>[235]11</nationalNumberPattern>
   2037         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   2038         <exampleNumber>211</exampleNumber>
   2039       </emergency>
   2040     </territory>
   2041 
   2042     <!-- Bangladesh -->
   2043     <!-- http://www.itu.int/oth/T0202000012/en -->
   2044     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh -->
   2045     <!-- http://www.btrc.gov.bd/engineering/national_numbering_plan_2005.pdf -->
   2046     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
   2047                preferredInternationalPrefix="00"
   2048                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   2049       <availableFormats>
   2050         <numberFormat pattern="(2)(\d{7})">
   2051           <leadingDigits>2</leadingDigits>
   2052           <format>$1-$2</format>
   2053         </numberFormat>
   2054         <numberFormat pattern="(\d{2})(\d{4,6})">
   2055           <leadingDigits>[3-79]1</leadingDigits>
   2056           <format>$1-$2</format>
   2057         </numberFormat>
   2058         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
   2059         <numberFormat pattern="(\d{4})(\d{3,6})">
   2060           <leadingDigits>
   2061             1|
   2062             3(?:
   2063               0|
   2064               [2-58]2
   2065             )|
   2066             4(?:
   2067               0|
   2068               [25]2|
   2069               3[23]|
   2070               [4689][25]
   2071             )|
   2072             5(?:
   2073               [02-578]2|
   2074               6[25]
   2075             )|
   2076             6(?:
   2077               [0347-9]2|
   2078               [26][25]
   2079             )|
   2080             7[02-9]2|
   2081             8(?:
   2082               [023][23]|
   2083               [4-7]2
   2084             )|
   2085             9(?:
   2086               [02][23]|
   2087               [458]2|
   2088               6[016]
   2089             )
   2090           </leadingDigits>
   2091           <format>$1-$2</format>
   2092         </numberFormat>
   2093         <numberFormat pattern="(\d{3})(\d{3,7})">
   2094           <leadingDigits>
   2095             [3-79][2-9]|
   2096             8
   2097           </leadingDigits>
   2098           <format>$1-$2</format>
   2099         </numberFormat>
   2100       </availableFormats>
   2101       <generalDesc>
   2102       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
   2103            plan, so the country code can be accurately stripped off. -->
   2104         <nationalNumberPattern>
   2105           [2-79]\d{5,9}|
   2106           1\d{9}|
   2107           8[0-7]\d{4,8}
   2108         </nationalNumberPattern>
   2109         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   2110       </generalDesc>
   2111       <fixedLine>
   2112         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
   2113              been realised, judging by online numbers and wikipedia. These patterns are grouped
   2114              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731
   2115              etc) are included despite not being mentioned on the wikipedia page or ITU doc due to
   2116              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
   2117              do not - both are allowed for now. For some area codes, the subscriber number length
   2118              described in our source documentation doesn't match numbers online (e.g. 05222) so we
   2119              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
   2120              also added 04452 and 04923 from numbers found online. -->
   2121         <nationalNumberPattern>
   2122           2(?:
   2123             7(?:
   2124               1[0-267]|
   2125               2[0-289]|
   2126               3[0-29]|
   2127               [46][01]|
   2128               5[1-3]|
   2129               7[017]|
   2130               91
   2131             )|
   2132             8(?:
   2133               0[125]|
   2134               [139][1-6]|
   2135               2[0157-9]|
   2136               6[1-35]|
   2137               7[1-5]|
   2138               8[1-8]
   2139             )|
   2140             9(?:
   2141               0[0-2]|
   2142               1[1-4]|
   2143               2[568]|
   2144               3[3-6]|
   2145               5[5-7]|
   2146               6[0167]|
   2147               7[15]|
   2148               8[016-8]
   2149             )
   2150           )\d{4}|
   2151           3(?:
   2152             12?[5-7]\d{2}|
   2153             0(?:
   2154               2(?:
   2155                 [025-79]\d|
   2156                 [348]\d{1,2}
   2157               )|
   2158               3(?:
   2159                 [2-4]\d|
   2160                 [56]\d?
   2161               )
   2162             )|
   2163             2(?:
   2164               1\d{2}|
   2165               2(?:
   2166                 [12]\d|
   2167                 [35]\d{1,2}|
   2168                 4\d?
   2169               )
   2170             )|
   2171             3(?:
   2172               1\d{2}|
   2173               2(?:
   2174                 [2356]\d|
   2175                 4\d{1,2}
   2176               )
   2177             )|
   2178             4(?:
   2179               1\d{2}|
   2180               2(?:
   2181                 2\d{1,2}|
   2182                 [47]|
   2183                 5\d{2}
   2184               )
   2185             )|
   2186             5(?:
   2187               1\d{2}|
   2188               29
   2189             )|
   2190             [67]1\d{2}|
   2191             8(?:
   2192               1\d{2}|
   2193               2(?:
   2194                 2\d{2}|
   2195                 3|
   2196                 4\d
   2197               )
   2198             )|
   2199           )\d{3}|
   2200           4(?:
   2201             0(?:
   2202               2(?:
   2203                 [09]\d|
   2204                 7
   2205               )|
   2206               33\d{2}
   2207             )|
   2208             1\d{3}|
   2209             2(?:
   2210               1\d{2}|
   2211               2(?:
   2212                 [25]\d?|
   2213                 [348]\d|
   2214                 [67]\d{1,2}
   2215               )
   2216             )|
   2217             3(?:
   2218               1\d{2}(?:\d{2})?|
   2219               2(?:
   2220                 [045]\d|
   2221                 [236-9]\d{1,2}
   2222               )|
   2223               32\d{2}
   2224             )|
   2225             4(?:
   2226               [18]\d{2}|
   2227               2(?:
   2228                 [2-46]\d{2}|
   2229                 3
   2230               )|
   2231               5[25]\d{2}
   2232             )|
   2233             5(?:
   2234               1\d{2}|
   2235               2(?:
   2236                 3\d|
   2237                 5
   2238               )
   2239             )|
   2240             6(?:
   2241               [18]\d{2}|
   2242               2(?:
   2243                 3(?:\d{2})?|
   2244                 [46]\d{1,2}|
   2245                 5\d{2}|
   2246                 7\d
   2247               )|
   2248               5(?:
   2249                 3\d?|
   2250                 4\d|
   2251                 [57]\d{1,2}|
   2252                 6\d{2}|
   2253                 8
   2254               )
   2255             )|
   2256             71\d{2}|
   2257             8(?:
   2258               [18]\d{2}|
   2259               23\d{2}|
   2260               54\d{2}
   2261             )|
   2262             9(?:
   2263               [18]\d{2}|
   2264               2[2-5]\d{2}|
   2265               53\d{1,2}
   2266             )
   2267           )\d{3}|
   2268           5(?:
   2269             02[03489]\d{2}|
   2270             1\d{2}|
   2271             2(?:
   2272               1\d{2}|
   2273               2(?:
   2274                 2(?:\d{2})?|
   2275                 [457]\d{2}
   2276               )
   2277             )|
   2278             3(?:
   2279               1\d{2}|
   2280               2(?:
   2281                 [37](?:\d{2})?|
   2282                 [569]\d{2}
   2283               )
   2284             )|
   2285             4(?:
   2286               1\d{2}|
   2287               2[46]\d{2}
   2288             )|
   2289             5(?:
   2290               1\d{2}|
   2291               26\d{1,2}
   2292             )|
   2293             6(?:
   2294               [18]\d{2}|
   2295               2|
   2296               53\d{2}
   2297             )|
   2298             7(?:
   2299               1|
   2300               24
   2301             )\d{2}|
   2302             8(?:
   2303               1|
   2304               26
   2305             )\d{2}|
   2306             91\d{2}
   2307           )\d{3}|
   2308           6(?:
   2309             0(?:
   2310               1\d{2}|
   2311               2(?:
   2312                 3\d{2}|
   2313                 4\d{1,2}
   2314               )
   2315             )|
   2316             2(?:
   2317               2[2-5]\d{2}|
   2318               5(?:
   2319                 [3-5]\d{2}|
   2320                 7
   2321               )|
   2322               8\d{2}
   2323             )|
   2324             3(?:
   2325               1|
   2326               2[3478]
   2327             )\d{2}|
   2328             4(?:
   2329               1|
   2330               2[34]
   2331             )\d{2}|
   2332             5(?:
   2333               1|
   2334               2[47]
   2335             )\d{2}|
   2336             6(?:
   2337               [18]\d{2}|
   2338               6(?:
   2339                 2(?:
   2340                   2\d|
   2341                   [34]\d{2}
   2342                 )|
   2343                 5(?:
   2344                   [24]\d{2}|
   2345                   3\d|
   2346                   5\d{1,2}
   2347                 )
   2348               )
   2349             )|
   2350             72[2-5]\d{2}|
   2351             8(?:
   2352               1\d{2}|
   2353               2[2-5]\d{2}
   2354             )|
   2355             9(?:
   2356               1\d{2}|
   2357               2[2-6]\d{2}
   2358             )
   2359           )\d{3}|
   2360           7(?:
   2361             (?:
   2362               02|
   2363               [3-589]1|
   2364               6[12]|
   2365               72[24]
   2366             )\d{2}|
   2367             21\d{3}|
   2368             32
   2369           )\d{3}|
   2370           8(?:
   2371             (?:
   2372               4[12]|
   2373               [5-7]2|
   2374               1\d?
   2375             )|
   2376             (?:
   2377               0|
   2378               3[12]|
   2379               [5-7]1|
   2380               217
   2381             )\d
   2382           )\d{4}|
   2383           9(?:
   2384             [35]1|
   2385             (?:
   2386               [024]2|
   2387               81
   2388             )\d|
   2389             (?:
   2390               1|
   2391               [24]1
   2392             )\d{2}
   2393           )\d{3}
   2394         </nationalNumberPattern>
   2395         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   2396         <exampleNumber>27111234</exampleNumber>
   2397       </fixedLine>
   2398       <mobile>
   2399         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
   2400              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
   2401              numbers should be moving to 1[13-9] anyway. -->
   2402         <nationalNumberPattern>
   2403           (?:
   2404             1[13-9]\d|
   2405             (?:
   2406               3[78]|
   2407               44
   2408             )[02-9]|
   2409             6(?:
   2410               44|
   2411               6[02-9]
   2412             )
   2413           )\d{7}
   2414         </nationalNumberPattern>
   2415         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2416         <exampleNumber>1812345678</exampleNumber>
   2417       </mobile>
   2418       <tollFree>
   2419         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
   2420         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
   2421         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2422         <exampleNumber>8001234567</exampleNumber>
   2423       </tollFree>
   2424       <voip>
   2425         <nationalNumberPattern>
   2426           96(?:
   2427             0[49]|
   2428             1[0-4]|
   2429             6[69]
   2430           )\d{6}
   2431         </nationalNumberPattern>
   2432         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2433         <exampleNumber>9604123456</exampleNumber>
   2434       </voip>
   2435       <shortCode>
   2436         <nationalNumberPattern>
   2437           1(?:
   2438             0(?:
   2439               [39]|
   2440               5(?:
   2441                 0\d|
   2442                 [1-4]
   2443               )|
   2444               6\d{2}|
   2445               7[0-4]|
   2446               8[0-29]
   2447             )|
   2448             1[6-9]|
   2449             2(?:
   2450               2[0-5]|
   2451               [34]
   2452             )|
   2453             3(?:
   2454               1\d?|
   2455               3\d|
   2456               6[3-6]
   2457             )|
   2458             4(?:
   2459               0\d|
   2460               1\d{2}
   2461             )|
   2462             5[2-9]
   2463           )
   2464         </nationalNumberPattern>
   2465         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
   2466         <exampleNumber>103</exampleNumber>
   2467       </shortCode>
   2468       <emergency>
   2469         <nationalNumberPattern>
   2470           10[0-2]|
   2471           999
   2472         </nationalNumberPattern>
   2473         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   2474         <exampleNumber>999</exampleNumber>
   2475       </emergency>
   2476     </territory>
   2477 
   2478     <!-- Belgium -->
   2479     <!-- http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx -->
   2480     <!-- http://www.telefoonzones.be/ -->
   2481     <territory id="BE" countryCode="32" internationalPrefix="00"
   2482                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   2483       <availableFormats>
   2484         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
   2485           <leadingDigits>4[6-9]</leadingDigits>
   2486           <format>$1 $2 $3 $4</format>
   2487         </numberFormat>
   2488         <numberFormat pattern="([2-49])(\d{3})(\d{2})(\d{2})">
   2489           <leadingDigits>
   2490             [23]|
   2491             [49][23]
   2492           </leadingDigits>
   2493           <format>$1 $2 $3 $4</format>
   2494         </numberFormat>
   2495         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
   2496           <leadingDigits>
   2497             [156]|
   2498             7[0178]|
   2499             8(?:
   2500               0[1-9]|
   2501               [1-79]
   2502             )
   2503           </leadingDigits>
   2504           <format>$1 $2 $3 $4</format>
   2505         </numberFormat>
   2506         <numberFormat pattern="([89]\d{2})(\d{2})(\d{3})">
   2507           <leadingDigits>
   2508             (?:
   2509               80|
   2510               9
   2511             )0
   2512           </leadingDigits>
   2513           <format>$1 $2 $3</format>
   2514         </numberFormat>
   2515       </availableFormats>
   2516       <generalDesc>
   2517         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
   2518         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   2519       </generalDesc>
   2520       <fixedLine>
   2521         <!-- Note that 80 is a valid area code, so we explicitly check for this case that the third
   2522              digit begins with 1-9 -->
   2523         <nationalNumberPattern>
   2524           (?:
   2525             1[0-69]|
   2526             [23][2-8]|
   2527             [49][23]|
   2528             5\d|
   2529             6[013-57-9]|
   2530             71
   2531           )\d{6}|
   2532           8(?:
   2533             0[1-9]|
   2534             [1-79]\d
   2535           )\d{5}
   2536         </nationalNumberPattern>
   2537         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2538         <exampleNumber>12345678</exampleNumber>
   2539       </fixedLine>
   2540       <mobile>
   2541         <!-- Numbers beginning with 46 outside the ranges allocated by the plan have been included
   2542              since many were found online. -->
   2543         <nationalNumberPattern>
   2544           4(?:
   2545             [679]\d|
   2546             8[03-9]
   2547           )\d{6}
   2548         </nationalNumberPattern>
   2549         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   2550         <exampleNumber>470123456</exampleNumber>
   2551       </mobile>
   2552       <tollFree>
   2553         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   2554         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2555         <exampleNumber>80012345</exampleNumber>
   2556       </tollFree>
   2557       <premiumRate>
   2558         <nationalNumberPattern>
   2559           (?:
   2560             90|
   2561             7[07]
   2562           )\d{6}
   2563         </nationalNumberPattern>
   2564         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2565         <exampleNumber>90123456</exampleNumber>
   2566       </premiumRate>
   2567       <uan>
   2568         <!-- Using this for National Rate Services, since
   2569              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
   2570              says it will be priced the same as any other national calls. -->
   2571         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
   2572         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2573         <exampleNumber>78123456</exampleNumber>
   2574       </uan>
   2575       <emergency>
   2576         <nationalNumberPattern>
   2577           1(?:
   2578             0[01]|
   2579             12
   2580           )
   2581         </nationalNumberPattern>
   2582         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   2583         <exampleNumber>112</exampleNumber>
   2584       </emergency>
   2585     </territory>
   2586 
   2587     <!-- Burkina Faso -->
   2588     <!-- http://www.itu.int/oth/T0202000021/en -->
   2589     <!-- http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf -->
   2590     <territory id="BF" countryCode="226" internationalPrefix="00">
   2591       <availableFormats>
   2592         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
   2593              chosen to use the standard from numbers found on the internet instead. -->
   2594         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   2595           <format>$1 $2 $3 $4</format>
   2596         </numberFormat>
   2597       </availableFormats>
   2598       <generalDesc>
   2599         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
   2600         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2601       </generalDesc>
   2602       <fixedLine>
   2603         <!-- The prefix 50 48 has been added based on numbers found online, while 40 49 has been
   2604              deleted since we haven't found any numbers with this prefix and it is not mentioned in
   2605              the Onatel document.
   2606              IMPORTANT: Note that the ITU documents of Mar/Apr 2013 seem to have major errors in the
   2607              fixed-line table, so we have not changed our patterns based on these. -->
   2608         <nationalNumberPattern>
   2609           (?:
   2610             20(?:
   2611               49|
   2612               5[23]|
   2613               9[016-9]
   2614             )|
   2615             40(?:
   2616               4[56]|
   2617               5[4-6]|
   2618               7[0179]
   2619             )|
   2620             50[34]\d
   2621           )\d{4}
   2622         </nationalNumberPattern>
   2623         <exampleNumber>20491234</exampleNumber>
   2624       </fixedLine>
   2625       <mobile>
   2626         <nationalNumberPattern>
   2627           6(?:
   2628             [0156]\d|
   2629             [28][0-5]|
   2630             4[01]
   2631           )\d{5}|
   2632           7\d{7}
   2633         </nationalNumberPattern>
   2634         <exampleNumber>70123456</exampleNumber>
   2635       </mobile>
   2636       <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burkina-faso_12217/index.html -->
   2637       <emergency>
   2638         <nationalNumberPattern>1[78]</nationalNumberPattern>
   2639         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   2640         <exampleNumber>17</exampleNumber>
   2641       </emergency>
   2642     </territory>
   2643 
   2644     <!-- Bulgaria -->
   2645     <!-- http://www.itu.int/oth/T0202000020/en -->
   2646     <territory id="BG" countryCode="359" internationalPrefix="00"
   2647                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   2648       <availableFormats>
   2649         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
   2650              used to separate the area code from the rest of the number, based on sites like
   2651              http://www.goldenpages.bg. -->
   2652         <numberFormat pattern="(2)(\d{5})">
   2653           <leadingDigits>29</leadingDigits>
   2654           <format>$1 $2</format>
   2655         </numberFormat>
   2656         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
   2657           <leadingDigits>2</leadingDigits>
   2658           <format>$1 $2 $3</format>
   2659         </numberFormat>
   2660         <numberFormat pattern="(\d{3})(\d{4})">
   2661           <leadingDigits>
   2662             43[124-7]|
   2663             70[1-9]
   2664           </leadingDigits>
   2665           <format>$1 $2</format>
   2666         </numberFormat>
   2667         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
   2668           <leadingDigits>
   2669             43[124-7]|
   2670             70[1-9]
   2671           </leadingDigits>
   2672           <format>$1 $2 $3</format>
   2673         </numberFormat>
   2674         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
   2675           <leadingDigits>[78]00</leadingDigits>
   2676           <format>$1 $2 $3</format>
   2677         </numberFormat>
   2678         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
   2679           <leadingDigits>
   2680             [356]|
   2681             4[124-7]|
   2682             7[1-9]|
   2683             8[1-6]|
   2684             9[1-7]
   2685           </leadingDigits>
   2686           <format>$1 $2 $3</format>
   2687         </numberFormat>
   2688         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   2689           <leadingDigits>
   2690             48|
   2691             8[7-9]|
   2692             9[08]
   2693           </leadingDigits>
   2694           <format>$1 $2 $3</format>
   2695         </numberFormat>
   2696       </availableFormats>
   2697       <generalDesc>
   2698         <nationalNumberPattern>
   2699           [23567]\d{5,7}|
   2700           [489]\d{6,8}
   2701         </nationalNumberPattern>
   2702         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   2703       </generalDesc>
   2704       <fixedLine>
   2705         <!-- 29xxxx numbers have been added because they can be found online, and are typically
   2706              used by taxi companies. -->
   2707         <nationalNumberPattern>
   2708           2(?:
   2709             [0-8]\d{5,6}|
   2710             9\d{4,6}
   2711           )|
   2712           (?:
   2713             [36]\d|
   2714             5[1-9]|
   2715             8[1-6]|
   2716             9[1-7]
   2717           )\d{5,6}|
   2718           (?:
   2719             4(?:
   2720               [124-7]\d|
   2721               3[1-6]
   2722             )|
   2723             7(?:
   2724               0[1-9]|
   2725               [1-9]\d
   2726             )
   2727           )\d{4,5}
   2728         </nationalNumberPattern>
   2729         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
   2730         <exampleNumber>2123456</exampleNumber>
   2731       </fixedLine>
   2732       <mobile>
   2733         <nationalNumberPattern>
   2734           (?:
   2735             8[7-9]|
   2736             98
   2737           )\d{7}|
   2738           4(?:
   2739             3[0789]|
   2740             8\d
   2741           )\d{5}
   2742         </nationalNumberPattern>
   2743         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   2744         <exampleNumber>48123456</exampleNumber>
   2745       </mobile>
   2746       <tollFree>
   2747         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   2748         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2749         <exampleNumber>80012345</exampleNumber>
   2750       </tollFree>
   2751       <premiumRate>
   2752         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
   2753         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2754         <exampleNumber>90123456</exampleNumber>
   2755       </premiumRate>
   2756       <personalNumber>
   2757         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
   2758         <exampleNumber>70012345</exampleNumber>
   2759       </personalNumber>
   2760       <emergency>
   2761         <nationalNumberPattern>
   2762           1(?:
   2763             12|
   2764             50|
   2765             6[06]
   2766           )
   2767         </nationalNumberPattern>
   2768         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   2769         <exampleNumber>112</exampleNumber>
   2770       </emergency>
   2771     </territory>
   2772 
   2773     <!-- Bahrain -->
   2774     <!-- http://www.itu.int/oth/T0202000011/en -->
   2775     <!-- http://www.tra.org.bh/en/pdf/National_Numbering_Plan_2.pdf -->
   2776     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain -->
   2777     <territory id="BH" countryCode="973" internationalPrefix="00">
   2778       <availableFormats>
   2779         <numberFormat pattern="(\d{4})(\d{4})">
   2780           <format>$1 $2</format>
   2781         </numberFormat>
   2782       </availableFormats>
   2783       <generalDesc>
   2784         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
   2785         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2786       </generalDesc>
   2787       <!-- Universal Service numbers are under both Mobile and Fixed-Line, as they can be assigned
   2788            to either. -->
   2789       <fixedLine>
   2790         <nationalNumberPattern>
   2791           (?:
   2792             1(?:
   2793               3[3-6]|
   2794               6[0156]|
   2795               7\d
   2796             )\d|
   2797             6(?:
   2798               1[16]\d|
   2799               6(?:
   2800                 0\d|
   2801                 3[12]|
   2802                 44
   2803               )|
   2804               9(?:
   2805                 69|
   2806                 9[6-9]
   2807               )
   2808             )|
   2809             77\d{2}
   2810           )\d{4}
   2811         </nationalNumberPattern>
   2812         <exampleNumber>17001234</exampleNumber>
   2813       </fixedLine>
   2814       <!-- Mobile prefix 384 is not yet in the ITU document but other sources (e.g. Google
   2815            searches) suggest mobile numbers with this prefix are in use. 350 was added as
   2816            VIVO are apparently using that prefix. -->
   2817       <mobile>
   2818         <nationalNumberPattern>
   2819           (?:
   2820             3(?:
   2821               [23469]\d|
   2822               5[035]|
   2823               77|
   2824               8[348]
   2825             )\d|
   2826             6(?:
   2827               1[16]\d|
   2828               3(?:
   2829                 00|
   2830                 33|
   2831                 6[16]
   2832               )|
   2833               6(?:
   2834                 [069]\d|
   2835                 3[03-9]|
   2836                 44
   2837               )|
   2838               9(?:
   2839                 69|
   2840                 9[6-9]
   2841               )
   2842             )|
   2843             77\d{2}
   2844           )\d{4}
   2845         </nationalNumberPattern>
   2846         <exampleNumber>36001234</exampleNumber>
   2847       </mobile>
   2848       <tollFree>
   2849         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   2850         <exampleNumber>80123456</exampleNumber>
   2851       </tollFree>
   2852       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
   2853            now. -->
   2854       <premiumRate>
   2855         <nationalNumberPattern>
   2856           (?:
   2857             87|
   2858             9[014578]
   2859           )\d{6}
   2860         </nationalNumberPattern>
   2861         <exampleNumber>90123456</exampleNumber>
   2862       </premiumRate>
   2863       <sharedCost>
   2864         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
   2865         <exampleNumber>84123456</exampleNumber>
   2866       </sharedCost>
   2867       <emergency>
   2868         <nationalNumberPattern>999</nationalNumberPattern>
   2869         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   2870         <exampleNumber>999</exampleNumber>
   2871       </emergency>
   2872     </territory>
   2873 
   2874     <!-- Burundi -->
   2875     <!-- http://www.itu.int/oth/T0202000022/en -->
   2876     <territory id="BI" countryCode="257" internationalPrefix="00">
   2877       <availableFormats>
   2878         <numberFormat
   2879           pattern="([27]\d)(\d{2})(\d{2})(\d{2})">
   2880           <format>$1 $2 $3 $4</format>
   2881         </numberFormat>
   2882       </availableFormats>
   2883       <generalDesc>
   2884         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
   2885         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2886       </generalDesc>
   2887       <fixedLine>
   2888         <nationalNumberPattern>
   2889           22(?:
   2890             2[0-7]|
   2891             [3-5]0
   2892           )\d{4}
   2893         </nationalNumberPattern>
   2894         <exampleNumber>22201234</exampleNumber>
   2895       </fixedLine>
   2896       <mobile>
   2897         <!-- Extra online mobile number prefixes found: 79 10, 78 \d{2} and 76 [29]\d. The 29
   2898              prefix is listed as a mobile prefix, but many people list it as their fixed home
   2899              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
   2900              satellite phones. -->
   2901         <nationalNumberPattern>
   2902           (?:
   2903             29\d|
   2904             7(?:
   2905               1[1-3]|
   2906               [4-9]\d
   2907             )
   2908           )\d{5}
   2909         </nationalNumberPattern>
   2910         <exampleNumber>79561234</exampleNumber>
   2911       </mobile>
   2912       <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burundi_12220/index.html -->
   2913       <emergency>
   2914         <nationalNumberPattern>11[78]</nationalNumberPattern>
   2915         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   2916         <exampleNumber>117</exampleNumber>
   2917       </emergency>
   2918     </territory>
   2919 
   2920     <!-- Benin -->
   2921     <!-- http://www.itu.int/oth/T0202000017/en -->
   2922     <territory id="BJ" countryCode="229" internationalPrefix="00">
   2923       <availableFormats>
   2924         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   2925           <format>$1 $2 $3 $4</format>
   2926         </numberFormat>
   2927         <!-- Numbers beginning with 7 should be formatted as a block. -->
   2928       </availableFormats>
   2929       <generalDesc>
   2930         <nationalNumberPattern>
   2931           [2689]\d{7}|
   2932           7\d{3}
   2933         </nationalNumberPattern>
   2934         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
   2935       </generalDesc>
   2936       <fixedLine>
   2937         <!-- These come from the national numbering plan, but have been widened to include other
   2938              prefixes found in the yellow pages - specifically 21 0. -->
   2939         <nationalNumberPattern>
   2940           2(?:
   2941             02|
   2942             1[037]|
   2943             2[45]|
   2944             3[68]
   2945           )\d{5}
   2946         </nationalNumberPattern>
   2947         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2948         <exampleNumber>20211234</exampleNumber>
   2949       </fixedLine>
   2950       <mobile>
   2951         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
   2952              seems to be no longer accurate. The prefixes 9[468] have also been added, along with
   2953              6[67] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. -->
   2954         <nationalNumberPattern>
   2955           (?:
   2956             6[467]|
   2957             9[03-8]
   2958           )\d{6}
   2959         </nationalNumberPattern>
   2960         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2961         <exampleNumber>90011234</exampleNumber>
   2962       </mobile>
   2963       <tollFree>
   2964         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
   2965         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   2966         <exampleNumber>7312</exampleNumber>
   2967       </tollFree>
   2968       <voip>
   2969         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
   2970         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2971         <exampleNumber>85751234</exampleNumber>
   2972       </voip>
   2973       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
   2974            as a local-call.) We model these as UAN since we have no more detailed information. -->
   2975       <uan>
   2976         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
   2977         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2978         <exampleNumber>81123456</exampleNumber>
   2979       </uan>
   2980       <emergency>
   2981         <nationalNumberPattern>11[78]</nationalNumberPattern>
   2982         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   2983         <exampleNumber>117</exampleNumber>
   2984       </emergency>
   2985     </territory>
   2986 
   2987     <!-- Saint Barthlemy, French Antilles -->
   2988     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
   2989          national numbering plan does not specify any St Barthlemy-specific numbering prefixes, but
   2990          it appears from searches in online white and yellow pages that a subset of the prefixes
   2991          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
   2992          of these region codes will be returned, although numbers will be valid for both regions.
   2993          -->
   2994     <!-- http://www.itu.int/oth/T0202000058/en -->
   2995     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
   2996       <!-- Formatting rules borrowed from Guadeloupe. -->
   2997       <generalDesc>
   2998         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   2999         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3000       </generalDesc>
   3001       <fixedLine>
   3002         <nationalNumberPattern>
   3003           590(?:
   3004             2[7-9]|
   3005             5[12]|
   3006             87
   3007           )\d{4}
   3008         </nationalNumberPattern>
   3009         <exampleNumber>590271234</exampleNumber>
   3010       </fixedLine>
   3011       <mobile>
   3012         <!-- Any ranges assigned from
   3013              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
   3014              Guadeloupe, St Martin and St Barthlemy, since we can't reliably distinguish between
   3015              them. -->
   3016         <nationalNumberPattern>
   3017           690(?:
   3018             0[0-7]|
   3019             [1-9]\d
   3020           )\d{4}
   3021         </nationalNumberPattern>
   3022         <exampleNumber>690301234</exampleNumber>
   3023       </mobile>
   3024       <!-- http://www.comstbarth.fr/urgences.asp -->
   3025       <emergency>
   3026         <nationalNumberPattern>18</nationalNumberPattern>
   3027         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   3028         <exampleNumber>18</exampleNumber>
   3029       </emergency>
   3030     </territory>
   3031 
   3032     <!-- Bermuda -->
   3033     <!-- http://www.itu.int/oth/T0202000018/en -->
   3034     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
   3035                internationalPrefix="011">
   3036       <generalDesc>
   3037         <!-- NANPA country - uses US formatting rules -->
   3038         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
   3039         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   3040       </generalDesc>
   3041       <fixedLine>
   3042         <nationalNumberPattern>
   3043           441(?:
   3044             2(?:
   3045               02|
   3046               23|
   3047               61|
   3048               [3479]\d
   3049             )|
   3050             [46]\d{2}|
   3051             5(?:
   3052               4\d|
   3053               60|
   3054               89
   3055             )|
   3056             824
   3057           )\d{4}
   3058         </nationalNumberPattern>
   3059         <exampleNumber>4412345678</exampleNumber>
   3060       </fixedLine>
   3061       <mobile>
   3062         <nationalNumberPattern>
   3063           441(?:
   3064             [37]\d|
   3065             5[0-39]
   3066           )\d{5}
   3067         </nationalNumberPattern>
   3068         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3069         <exampleNumber>4413701234</exampleNumber>
   3070       </mobile>
   3071       <tollFree>
   3072         <nationalNumberPattern>
   3073           8(?:
   3074             00|
   3075             55|
   3076             66|
   3077             77|
   3078             88
   3079           )[2-9]\d{6}
   3080         </nationalNumberPattern>
   3081         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3082         <exampleNumber>8002123456</exampleNumber>
   3083       </tollFree>
   3084       <premiumRate>
   3085         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   3086         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3087         <exampleNumber>9002123456</exampleNumber>
   3088       </premiumRate>
   3089       <personalNumber>
   3090         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   3091         <nationalNumberPattern>
   3092           5(?:
   3093             00|
   3094             33|
   3095             44
   3096           )[2-9]\d{6}
   3097         </nationalNumberPattern>
   3098         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3099         <exampleNumber>5002345678</exampleNumber>
   3100       </personalNumber>
   3101       <emergency>
   3102         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1067.html -->
   3103         <nationalNumberPattern>911</nationalNumberPattern>
   3104         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3105         <exampleNumber>911</exampleNumber>
   3106       </emergency>
   3107     </territory>
   3108 
   3109     <!-- Brunei Darussalam -->
   3110     <!-- http://www.itu.int/oth/T020200001F/en -->
   3111     <territory id="BN" countryCode="673" internationalPrefix="00">
   3112       <!-- Format is from http://aiti.gov.bn/contact.html -->
   3113       <availableFormats>
   3114         <numberFormat pattern="([2-578]\d{2})(\d{4})">
   3115           <format>$1 $2</format>
   3116         </numberFormat>
   3117       </availableFormats>
   3118       <generalDesc>
   3119         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
   3120         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3121       </generalDesc>
   3122       <fixedLine>
   3123         <nationalNumberPattern>[2-5]\d{6}</nationalNumberPattern>
   3124         <exampleNumber>2345678</exampleNumber>
   3125       </fixedLine>
   3126       <mobile>
   3127         <nationalNumberPattern>[78]\d{6}</nationalNumberPattern>
   3128         <exampleNumber>7123456</exampleNumber>
   3129       </mobile>
   3130       <emergency>
   3131         <!-- http://www.information.gov.bn/VER2/content/view/52/62/ -->
   3132         <nationalNumberPattern>99[135]</nationalNumberPattern>
   3133         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3134         <exampleNumber>991</exampleNumber>
   3135       </emergency>
   3136     </territory>
   3137 
   3138     <!-- Bolivia -->
   3139     <!-- http://www.itu.int/oth/T020200001A/en -->
   3140     <!-- http://www.bolivia.com/Servicios/Plandenumeracion.pdf -->
   3141     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
   3142                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
   3143       <availableFormats>
   3144         <numberFormat pattern="([234])(\d{7})">
   3145           <leadingDigits>[234]</leadingDigits>
   3146           <format>$1 $2</format>
   3147         </numberFormat>
   3148         <numberFormat pattern="([67]\d{7})">
   3149           <leadingDigits>[67]</leadingDigits>
   3150           <format>$1</format>
   3151         </numberFormat>
   3152       </availableFormats>
   3153       <generalDesc>
   3154         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
   3155         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   3156       </generalDesc>
   3157       <fixedLine>
   3158         <nationalNumberPattern>
   3159           (?:
   3160             2(?:
   3161               2\d{2}|
   3162               5(?:11|[258]\d|9[67])|
   3163               6(?:12|2\d|9[34])|
   3164               8(?:2[34]|39|62)
   3165             )|
   3166             3(?:
   3167               3\d{2}|
   3168               4(?:6\d|8[24])|
   3169               8(?:25|42|5[257]|86|9[25])|
   3170               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
   3171             )|
   3172             4(?:
   3173               4\d{2}|
   3174               6(?:11|[24689]\d|72)
   3175             )
   3176           )\d{4}
   3177         </nationalNumberPattern>
   3178         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   3179         <exampleNumber>22123456</exampleNumber>
   3180       </fixedLine>
   3181       <mobile>
   3182         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
   3183         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3184         <exampleNumber>71234567</exampleNumber>
   3185       </mobile>
   3186       <emergency>
   3187         <nationalNumberPattern>11[089]</nationalNumberPattern>
   3188         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3189         <exampleNumber>110</exampleNumber>
   3190       </emergency>
   3191     </territory>
   3192 
   3193     <!-- Bonaire, Sint Eustatius and Saba -->
   3194     <!-- http://www.itu.int/oth/T02020000F8/en -->
   3195     <territory id="BQ" countryCode="599" internationalPrefix="00">
   3196       <!-- Shares formatting patterns with CW. -->
   3197       <generalDesc>
   3198         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
   3199         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3200       </generalDesc>
   3201       <fixedLine>
   3202         <nationalNumberPattern>
   3203           (?:
   3204             318[023]|
   3205             416[0239]|
   3206             7(?:
   3207               1[578]|
   3208               50
   3209             )\d
   3210           )\d{3}
   3211         </nationalNumberPattern>
   3212         <exampleNumber>7151234</exampleNumber>
   3213       </fixedLine>
   3214       <mobile>
   3215         <nationalNumberPattern>
   3216           (?:
   3217             318[1456]|
   3218             416[15-8]|
   3219             7(?:
   3220               0[01]|
   3221               [89]\d
   3222             )\d
   3223           )\d{3}|
   3224         </nationalNumberPattern>
   3225         <exampleNumber>3181234</exampleNumber>
   3226       </mobile>
   3227       <emergency>
   3228         <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
   3229         <nationalNumberPattern>
   3230           112|
   3231           911
   3232         </nationalNumberPattern>
   3233         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3234         <exampleNumber>112</exampleNumber>
   3235       </emergency>
   3236     </territory>
   3237 
   3238     <!-- Brazil -->
   3239     <!-- http://en.wikipedia.org/wiki/%2B55 -->
   3240     <!-- http://www.itu.int/oth/T020200001D/en -->
   3241     <territory id="BR" countryCode="55"
   3242                internationalPrefix="00(?:1[45]|2[135]|[34]1|43)"
   3243                nationalPrefix="0"
   3244                nationalPrefixForParsing="0(?:(1[245]|2[135]|[34]1)(\d{10,11}))?"
   3245                nationalPrefixTransformRule="$2">
   3246       <!-- The national prefix for parsing here also contains a capturing group for the main number,
   3247            since the carrier codes here may also be area codes, so we want to check the length of
   3248            the number after capturing. We also need a nationalTransformRule to repopulate with the
   3249            number without the carrier code. -->
   3250       <availableFormats>
   3251         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
   3252              rules here handle this case. The leading digits pattern must be specific enough such
   3253              that it doesn't match X00 numbers (e.g. toll-free). -->
   3254         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
   3255           <leadingDigits>
   3256             [2-9](?:
   3257               [1-9]|
   3258               0[1-9]
   3259             )
   3260           </leadingDigits>
   3261           <format>$1-$2</format>
   3262           <intlFormat>NA</intlFormat>
   3263         </numberFormat>
   3264         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
   3265           <leadingDigits>
   3266             9(?:
   3267               [1-9]|
   3268               0[1-9]
   3269             )
   3270           </leadingDigits>
   3271           <format>$1-$2</format>
   3272           <intlFormat>NA</intlFormat>
   3273         </numberFormat>
   3274         <numberFormat nationalPrefixFormattingRule="($FG)"
   3275           pattern="(\d{2})(\d{5})(\d{4})"
   3276           carrierCodeFormattingRule="$NP $CC ($FG)">
   3277           <leadingDigits>1[1-9]9</leadingDigits>
   3278           <format>$1 $2-$3</format>
   3279         </numberFormat>
   3280         <numberFormat nationalPrefixFormattingRule="($FG)"
   3281           pattern="(\d{2})(\d{4})(\d{4})"
   3282           carrierCodeFormattingRule="$NP $CC ($FG)">
   3283           <leadingDigits>[1-9][1-9]</leadingDigits>
   3284           <format>$1 $2-$3</format>
   3285         </numberFormat>
   3286         <numberFormat pattern="([34]00\d)(\d{4})">
   3287           <leadingDigits>[34]00</leadingDigits>
   3288           <format>$1-$2</format>
   3289         </numberFormat>
   3290         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   3291           pattern="([3589]00)(\d{2,3})(\d{4})">
   3292           <leadingDigits>[3589]00</leadingDigits>
   3293           <format>$1 $2 $3</format>
   3294         </numberFormat>
   3295       </availableFormats>
   3296       <generalDesc>
   3297         <nationalNumberPattern>
   3298           [1-46-9]\d{7,10}|
   3299           5\d{8,9}
   3300         </nationalNumberPattern>
   3301         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
   3302       </generalDesc>
   3303       <noInternationalDialling>
   3304         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
   3305         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3306         <exampleNumber>40041234</exampleNumber>
   3307       </noInternationalDialling>
   3308       <fixedLine>
   3309         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
   3310              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
   3311              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
   3312              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
   3313              -->
   3314         <nationalNumberPattern>
   3315           1[1-9][2-5]\d{7}|
   3316           (?:
   3317             [4689][1-9]|
   3318             2[12478]|
   3319             3[1-578]|
   3320             5[13-5]|
   3321             7[13-579]
   3322           )[2-5]\d{7}
   3323         </nationalNumberPattern>
   3324         <exampleNumber>1123456789</exampleNumber>
   3325       </fixedLine>
   3326       <!--  Also includes the new 11-digit mobile numbers that are being rolled out since 2012,
   3327             which are added at the end. -->
   3328       <mobile>
   3329         <nationalNumberPattern>
   3330           1(?:
   3331             1(?:
   3332               5[347]|
   3333               [6-9]\d|
   3334             )|
   3335             [2-9][6-9]\d
   3336           )\d{6}|
   3337           (?:
   3338             2[12478]|
   3339             3[1-578]|
   3340             [4689][1-9]|
   3341             5[13-5]|
   3342             7[13-579]
   3343           )[6-9]\d{7}|
   3344           (?:
   3345             119\d|
   3346             1[2-9]9[6-9]
   3347           )\d{7}
   3348         </nationalNumberPattern>
   3349         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   3350         <exampleNumber>1161234567</exampleNumber>
   3351       </mobile>
   3352       <tollFree>
   3353         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
   3354         <exampleNumber>800123456</exampleNumber>
   3355       </tollFree>
   3356       <premiumRate>
   3357         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
   3358         <exampleNumber>300123456</exampleNumber>
   3359       </premiumRate>
   3360       <sharedCost>
   3361         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
   3362         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3363         <exampleNumber>40041234</exampleNumber>
   3364       </sharedCost>
   3365       <emergency>
   3366         <nationalNumberPattern>
   3367           1(?:
   3368             12|
   3369             28|
   3370             9[023]
   3371           )|
   3372           911
   3373         </nationalNumberPattern>
   3374         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3375         <exampleNumber>190</exampleNumber>
   3376       </emergency>
   3377     </territory>
   3378 
   3379     <!-- Bahamas -->
   3380     <!-- http://www.itu.int/oth/T0202000010/en -->
   3381     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
   3382                internationalPrefix="011">
   3383       <generalDesc>
   3384         <!-- NANPA country - uses US formatting rules -->
   3385         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
   3386         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   3387       </generalDesc>
   3388       <fixedLine>
   3389         <nationalNumberPattern>
   3390           242(?:
   3391             3(?:
   3392               02|
   3393               [236][1-9]|
   3394               4[0-24-9]|
   3395               5[0-68]|
   3396               7[3467]|
   3397               8[0-4]|
   3398               9[2-467]
   3399             )|
   3400             461|
   3401             502|
   3402             6(?:
   3403               12|
   3404               7[67]|
   3405               8[78]|
   3406               9[89]
   3407             )|
   3408             702
   3409           )\d{4}
   3410         </nationalNumberPattern>
   3411         <exampleNumber>2423456789</exampleNumber>
   3412       </fixedLine>
   3413       <mobile>
   3414         <nationalNumberPattern>
   3415           242(?:
   3416             3(?:
   3417               5[79]|
   3418               [79]5
   3419             )|
   3420             4(?:
   3421               [2-4][1-9]|
   3422               5[1-8]|
   3423               6[2-8]|
   3424               7\d|
   3425               81
   3426             )|
   3427             5(?:
   3428               2[45]|
   3429               3[35]|
   3430               44|
   3431               5[1-9]|
   3432               65|
   3433               77
   3434             )|
   3435             6[34]6|
   3436             727
   3437           )\d{4}
   3438         </nationalNumberPattern>
   3439         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3440         <exampleNumber>2423591234</exampleNumber>
   3441       </mobile>
   3442       <tollFree>
   3443         <!-- 242 300 is a Domestic Toll Free service. -->
   3444         <nationalNumberPattern>
   3445           242300\d{4}|
   3446           8(?:
   3447             00|
   3448             55|
   3449             66|
   3450             77|
   3451             88
   3452           )[2-9]\d{6}
   3453         </nationalNumberPattern>
   3454         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3455         <exampleNumber>8002123456</exampleNumber>
   3456       </tollFree>
   3457       <premiumRate>
   3458         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   3459         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3460         <exampleNumber>9002123456</exampleNumber>
   3461       </premiumRate>
   3462       <personalNumber>
   3463         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   3464         <nationalNumberPattern>
   3465           5(?:
   3466             00|
   3467             33|
   3468             44
   3469           )[2-9]\d{6}
   3470         </nationalNumberPattern>
   3471         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3472         <exampleNumber>5002345678</exampleNumber>
   3473       </personalNumber>
   3474       <emergency>
   3475         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_989.html -->
   3476         <nationalNumberPattern>91[19]</nationalNumberPattern>
   3477         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3478         <exampleNumber>911</exampleNumber>
   3479       </emergency>
   3480     </territory>
   3481 
   3482     <!-- Bhutan -->
   3483     <!-- http://www.itu.int/oth/T0202000019/en -->
   3484     <territory id="BT" countryCode="975" internationalPrefix="00">
   3485       <availableFormats>
   3486         <!-- Format is from
   3487              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
   3488         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
   3489           <leadingDigits>
   3490             1|
   3491             77
   3492           </leadingDigits>
   3493           <format>$1 $2 $3 $4</format>
   3494         </numberFormat>
   3495         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
   3496           <leadingDigits>
   3497             [2-68]|
   3498             7[246]
   3499           </leadingDigits>
   3500           <format>$1 $2 $3</format>
   3501         </numberFormat>
   3502       </availableFormats>
   3503       <generalDesc>
   3504         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
   3505         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   3506       </generalDesc>
   3507       <fixedLine>
   3508         <nationalNumberPattern>
   3509           (?:
   3510             2[3-6]|
   3511             [34][5-7]|
   3512             5[236]|
   3513             6[2-46]|
   3514             7[246]|
   3515             8[2-4]
   3516           )\d{5}
   3517         </nationalNumberPattern>
   3518         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   3519         <exampleNumber>2345678</exampleNumber>
   3520       </fixedLine>
   3521       <mobile>
   3522         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
   3523              is in use. -->
   3524         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
   3525         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3526         <exampleNumber>17123456</exampleNumber>
   3527       </mobile>
   3528       <emergency>
   3529         <!-- http://www.rbp.gov.bt/requestpolice.php -->
   3530         <!-- http://www.jdwnrh.gov.bt/sfo2011/?page_id=51 -->
   3531         <nationalNumberPattern>11[023]</nationalNumberPattern>
   3532         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3533         <exampleNumber>113</exampleNumber>
   3534       </emergency>
   3535       <!-- No information on other types of phone numbers for Bhutan has been found. -->
   3536     </territory>
   3537 
   3538     <!-- Botswana -->
   3539     <!-- http://www.itu.int/oth/T020200001C/en -->
   3540     <territory id="BW" countryCode="267" internationalPrefix="00">
   3541       <availableFormats>
   3542         <numberFormat pattern="(\d{3})(\d{4})">
   3543           <leadingDigits>[2-6]</leadingDigits>
   3544           <format>$1 $2</format>
   3545         </numberFormat>
   3546         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
   3547           <leadingDigits>7</leadingDigits>
   3548           <format>$1 $2 $3</format>
   3549         </numberFormat>
   3550         <numberFormat pattern="(90)(\d{5})">
   3551           <leadingDigits>9</leadingDigits>
   3552           <format>$1 $2</format>
   3553         </numberFormat>
   3554       </availableFormats>
   3555       <generalDesc>
   3556         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
   3557         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   3558       </generalDesc>
   3559       <fixedLine>
   3560         <nationalNumberPattern>
   3561           (?:
   3562             2(?:
   3563               4[0-48]|
   3564               6[0-24]|
   3565               9[0578]
   3566             )|
   3567             3(?:
   3568               1[0235-9]|
   3569               55|
   3570               6\d|
   3571               7[01]|
   3572               9[0-57]
   3573             )|
   3574             4(?:
   3575               6[03]|
   3576               7[1267]|
   3577               9[0-5]
   3578             )|
   3579             5(?:
   3580               3[0389]|
   3581               4[0489]|
   3582               7[1-47]|
   3583               88|
   3584               9[0-49]
   3585             )|
   3586             6(?:
   3587               2[1-35]|
   3588               5[149]|
   3589               8[067]
   3590             )
   3591           )\d{4}
   3592         </nationalNumberPattern>
   3593         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3594         <exampleNumber>2401234</exampleNumber>
   3595       </fixedLine>
   3596       <mobile>
   3597         <!-- 77[01] has been added after numbers in use have been seen online. -->
   3598         <nationalNumberPattern>
   3599           7(?:
   3600             [1-35]\d{6}|
   3601             [46][0-7]\d{5}|
   3602             7[01]\d{5}
   3603           )
   3604         </nationalNumberPattern>
   3605         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3606         <exampleNumber>71123456</exampleNumber>
   3607       </mobile>
   3608       <!-- No reliable information about toll-free numbers can be found; many are written on the
   3609            internet like 0800 123 456, but this is not supported by any documentation and no
   3610            numbers can be found that actually work. -->
   3611       <premiumRate>
   3612         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
   3613         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3614         <exampleNumber>9012345</exampleNumber>
   3615       </premiumRate>
   3616       <voip>
   3617         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
   3618         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3619         <exampleNumber>79101234</exampleNumber>
   3620       </voip>
   3621       <emergency>
   3622         <!-- http://www.gov.bw/en/Ministries%2D%2DAuthorities/Ministries/State-President/Botswana-Police-Service-/About-the-BPS/Toll-Free-Numbers/ -->
   3623         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1071.html -->
   3624         <nationalNumberPattern>99[789]</nationalNumberPattern>
   3625         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3626         <exampleNumber>999</exampleNumber>
   3627       </emergency>
   3628     </territory>
   3629 
   3630     <!-- Belarus -->
   3631     <!-- http://www.eng.beltelecom.by/en/subscribers/phone-codes -->
   3632     <!-- Information on national prefix provided by a Belarussian person. -->
   3633     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
   3634                internationalPrefix="810" nationalPrefixForParsing="80?"
   3635                nationalPrefix="8">
   3636       <availableFormats>
   3637         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
   3638           pattern="([1-4]\d)(\d{3})(\d{4})">
   3639           <leadingDigits>[1-4]</leadingDigits>
   3640           <format>$1 $2 $3</format>
   3641         </numberFormat>
   3642         <numberFormat nationalPrefixFormattingRule="$NP $FG"
   3643           pattern="([89]\d{2})(\d{3})(\d{4})">
   3644           <leadingDigits>
   3645             8[01]|
   3646             9
   3647           </leadingDigits>
   3648           <format>$1 $2 $3</format>
   3649         </numberFormat>
   3650         <numberFormat nationalPrefixFormattingRule="$NP $FG"
   3651           pattern="(8\d{2})(\d{4})(\d{4})">
   3652           <leadingDigits>82</leadingDigits>
   3653           <format>$1 $2 $3</format>
   3654         </numberFormat>
   3655       </availableFormats>
   3656       <generalDesc>
   3657         <nationalNumberPattern>
   3658           [1-4]\d{8}|
   3659           [89]\d{9,10}
   3660         </nationalNumberPattern>
   3661         <!-- Numbers are often written without the city code. -->
   3662         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   3663       </generalDesc>
   3664       <!-- Toll-free and premium rate numbers are not available from abroad. -->
   3665       <noInternationalDialling>
   3666         <nationalNumberPattern>
   3667           8(?:
   3668             [01]|
   3669             20
   3670           )\d{8}|
   3671           902\d{7}
   3672         </nationalNumberPattern>
   3673         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   3674         <exampleNumber>82012345678</exampleNumber>
   3675       </noInternationalDialling>
   3676       <fixedLine>
   3677         <nationalNumberPattern>
   3678           (?:
   3679             1(?:
   3680               5(?:
   3681                 1[1-5]|
   3682                 2\d|
   3683                 6[2-4]|
   3684                 9[1-7]
   3685               )|
   3686               6(?:
   3687                 [235]\d|
   3688                 4[1-7]
   3689               )|
   3690               7\d{2}
   3691             )|
   3692             2(?:
   3693               1(?:
   3694                 [246]\d|
   3695                 3[0-35-9]|
   3696                 5[1-9]
   3697               )|
   3698               2(?:
   3699                 [235]\d|
   3700                 4[0-8]
   3701               )|
   3702               3(?:
   3703                 2\d|
   3704                 3[02-79]|
   3705                 4[024-7]|
   3706                 5[0-7]
   3707               )
   3708             )
   3709           )\d{5}
   3710         </nationalNumberPattern>
   3711         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   3712         <!-- Using test number for Grodno from the plan. -->
   3713         <exampleNumber>152450911</exampleNumber>
   3714       </fixedLine>
   3715       <mobile>
   3716         <nationalNumberPattern>
   3717           (?:
   3718             2(?:
   3719               5[5679]|
   3720               9[1-9]
   3721             )|
   3722             33\d|
   3723             44\d
   3724           )\d{6}
   3725         </nationalNumberPattern>
   3726         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3727         <!-- Using test number for BelCel from the plan. -->
   3728         <exampleNumber>294911911</exampleNumber>
   3729       </mobile>
   3730       <tollFree>
   3731         <!-- Putting Interactive Polling Service (free) here too. -->
   3732         <nationalNumberPattern>
   3733           8(?:
   3734             0[13]|
   3735             20\d
   3736           )\d{7}
   3737         </nationalNumberPattern>
   3738         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   3739         <exampleNumber>8011234567</exampleNumber>
   3740       </tollFree>
   3741       <premiumRate>
   3742         <!-- Putting Interactive Polling Service (paid) here too. -->
   3743         <nationalNumberPattern>
   3744           (?:
   3745             810|
   3746             902
   3747           )\d{7}
   3748         </nationalNumberPattern>
   3749         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3750         <exampleNumber>9021234567</exampleNumber>
   3751       </premiumRate>
   3752       <emergency>
   3753         <nationalNumberPattern>
   3754           1(?:
   3755             0[123]|
   3756             12
   3757           )
   3758         </nationalNumberPattern>
   3759         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3760         <exampleNumber>112</exampleNumber>
   3761       </emergency>
   3762     </territory>
   3763 
   3764     <!-- Belize -->
   3765     <!-- http://www.itu.int/oth/T0202000016/en -->
   3766     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
   3767          -->
   3768     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
   3769       <availableFormats>
   3770         <numberFormat pattern="(\d{3})(\d{4})">
   3771           <leadingDigits>[2-8]</leadingDigits>
   3772           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
   3773           <format>$1-$2</format>
   3774         </numberFormat>
   3775         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
   3776           <leadingDigits>0</leadingDigits>
   3777           <format>$1-$2-$3-$4</format>
   3778         </numberFormat>
   3779       </availableFormats>
   3780       <generalDesc>
   3781         <nationalNumberPattern>
   3782           [2-8]\d{6}|
   3783           0\d{10}
   3784         </nationalNumberPattern>
   3785         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
   3786       </generalDesc>
   3787       <fixedLine>
   3788         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
   3789         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3790         <exampleNumber>2221234</exampleNumber>
   3791       </fixedLine>
   3792       <mobile>
   3793         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
   3794              to these numbers or many numbers have been found online. -->
   3795         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
   3796         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3797         <exampleNumber>6221234</exampleNumber>
   3798       </mobile>
   3799       <!-- We don't know how these would be dialled internationally - it is possible that they can't
   3800            be dialled internationally at all - so we represent the leading 0 as part of the number.
   3801            Information from www.belizetelemedia.net. -->
   3802       <tollFree>
   3803         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
   3804         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   3805         <exampleNumber>08001234123</exampleNumber>
   3806       </tollFree>
   3807       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   3808       <emergency>
   3809         <nationalNumberPattern>
   3810           9(?:
   3811             0|
   3812             11
   3813           )
   3814           </nationalNumberPattern>
   3815         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   3816         <exampleNumber>911</exampleNumber>
   3817       </emergency>
   3818     </territory>
   3819 
   3820     <!-- Canada -->
   3821     <!-- http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm -->
   3822     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1">
   3823       <generalDesc>
   3824         <!-- NANPA country - uses US formatting rules -->
   3825         <nationalNumberPattern>
   3826           [2-9]\d{9}|
   3827           3\d{6}
   3828         </nationalNumberPattern>
   3829         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   3830       </generalDesc>
   3831       <fixedLine>
   3832         <nationalNumberPattern>
   3833           (?:
   3834             2(?:
   3835               04|
   3836               [23]6|
   3837               [48]9|
   3838               50
   3839             )|
   3840             3(?:
   3841               06|
   3842               43|
   3843               65
   3844             )|
   3845             4(?:
   3846               03|
   3847               1[68]|
   3848               3[178]|
   3849               5[06]
   3850             )|
   3851             5(?:
   3852               0[06]|
   3853               1[49]|
   3854               79|
   3855               8[17]
   3856             )|
   3857             6(?:
   3858               0[04]|
   3859               13|
   3860               39|
   3861               47
   3862             )|
   3863             7(?:
   3864               0[059]|
   3865               80|
   3866               78
   3867             )|
   3868             8(?:
   3869               [06]7|
   3870               19|
   3871               73
   3872             )|
   3873             90[25]
   3874           )[2-9]\d{6}|
   3875           310\d{4}
   3876         </nationalNumberPattern>
   3877         <exampleNumber>2042345678</exampleNumber>
   3878       </fixedLine>
   3879       <mobile>
   3880         <nationalNumberPattern>
   3881           (?:
   3882             2(?:
   3883               04|
   3884               [23]6|
   3885               [48]9|
   3886               50
   3887             )|
   3888             3(?:
   3889               06|
   3890               43|
   3891               65
   3892             )|
   3893             4(?:
   3894               03|
   3895               1[68]|
   3896               3[178]|
   3897               5[06]
   3898             )|
   3899             5(?:
   3900               0[06]|
   3901               1[49]|
   3902               79|
   3903               8[17]
   3904             )|
   3905             6(?:
   3906               0[04]|
   3907               13|
   3908               39|
   3909               47
   3910             )|
   3911             7(?:
   3912               0[059]|
   3913               80|
   3914               78
   3915             )|
   3916             8(?:
   3917               [06]7|
   3918               19|
   3919               73
   3920             )|
   3921             90[25]
   3922           )[2-9]\d{6}
   3923         </nationalNumberPattern>
   3924         <exampleNumber>2042345678</exampleNumber>
   3925       </mobile>
   3926       <tollFree>
   3927         <nationalNumberPattern>
   3928           8(?:
   3929             00|
   3930             55|
   3931             66|
   3932             77|
   3933             88
   3934           )[2-9]\d{6}|
   3935           310\d{4}
   3936         </nationalNumberPattern>
   3937         <exampleNumber>8002123456</exampleNumber>
   3938       </tollFree>
   3939       <premiumRate>
   3940         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   3941         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3942         <exampleNumber>9002123456</exampleNumber>
   3943       </premiumRate>
   3944       <personalNumber>
   3945         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   3946         <nationalNumberPattern>
   3947           5(?:
   3948             00|
   3949             33|
   3950             44
   3951           )[2-9]\d{6}
   3952         </nationalNumberPattern>
   3953         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3954         <exampleNumber>5002345678</exampleNumber>
   3955       </personalNumber>
   3956       <emergency>
   3957         <nationalNumberPattern>
   3958           112|
   3959           911
   3960         </nationalNumberPattern>
   3961         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   3962         <exampleNumber>911</exampleNumber>
   3963       </emergency>
   3964     </territory>
   3965 
   3966     <!-- Cocos Islands -->
   3967     <!-- Metadata shared with Australia. -->
   3968     <!-- References state Cocos Islands have fixed line numbers starting +61 8 9162. -->
   3969     <!-- http://en.wikipedia.org/wiki/List_of_country_calling_codes -->
   3970     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
   3971     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
   3972                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
   3973                nationalPrefix="0">
   3974       <!-- Uses AU formatting rules. -->
   3975       <!-- General desc and fixed line rules different from Australia. -->
   3976       <generalDesc>
   3977         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
   3978         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   3979       </generalDesc>
   3980       <fixedLine>
   3981         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
   3982         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   3983         <exampleNumber>891621234</exampleNumber>
   3984       </fixedLine>
   3985       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
   3986       <mobile>
   3987         <nationalNumberPattern>
   3988           4(?:
   3989             [0-2]\d|
   3990             3[0-57-9]|
   3991             4[47-9]|
   3992             5[0-37-9]|
   3993             6[6-9]|
   3994             7[07-9]|
   3995             8[7-9]
   3996           )\d{6}
   3997         </nationalNumberPattern>
   3998         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3999         <exampleNumber>412345678</exampleNumber>
   4000       </mobile>
   4001       <tollFree>
   4002         <nationalNumberPattern>
   4003           1(?:
   4004             80(?:
   4005               0\d{2}
   4006             )?|
   4007             3(?:
   4008               00\d{2}
   4009             )?
   4010           )\d{4}
   4011         </nationalNumberPattern>
   4012         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   4013         <exampleNumber>1800123456</exampleNumber>
   4014       </tollFree>
   4015       <premiumRate>
   4016         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
   4017         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   4018         <exampleNumber>1900123456</exampleNumber>
   4019       </premiumRate>
   4020       <personalNumber>
   4021         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
   4022         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4023         <exampleNumber>500123456</exampleNumber>
   4024       </personalNumber>
   4025       <voip>
   4026         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
   4027         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4028         <exampleNumber>550123456</exampleNumber>
   4029       </voip>
   4030       <emergency>
   4031         <!-- We assume this is the same as for Australia, since they have the same country code and
   4032              share their police force, and no better information can be found. -->
   4033         <nationalNumberPattern>
   4034           000|
   4035           112
   4036         </nationalNumberPattern>
   4037         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   4038         <exampleNumber>112</exampleNumber>
   4039       </emergency>
   4040     </territory>
   4041 
   4042     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
   4043     <!-- http://www.itu.int/oth/T0202000037/en -->
   4044     <territory id="CD" countryCode="243" internationalPrefix="00"
   4045                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   4046       <availableFormats>
   4047         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   4048           <leadingDigits>12</leadingDigits>
   4049           <format>$1 $2 $3</format>
   4050         </numberFormat>
   4051         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
   4052           <leadingDigits>
   4053             8[0-2459]|
   4054             9
   4055           </leadingDigits>
   4056           <format>$1 $2 $3</format>
   4057         </numberFormat>
   4058         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
   4059           <leadingDigits>88</leadingDigits>
   4060           <format>$1 $2 $3</format>
   4061         </numberFormat>
   4062         <numberFormat pattern="(\d{2})(\d{5})">
   4063           <leadingDigits>[1-6]</leadingDigits>
   4064           <format>$1 $2</format>
   4065         </numberFormat>
   4066       </availableFormats>
   4067       <generalDesc>
   4068         <nationalNumberPattern>
   4069           [2-6]\d{6}|
   4070           [18]\d{6,8}|
   4071           9\d{8}
   4072         </nationalNumberPattern>
   4073         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   4074       </generalDesc>
   4075       <fixedLine>
   4076         <nationalNumberPattern>
   4077           1(?:
   4078             2\d{7}|
   4079             \d{6}
   4080           )|
   4081           [2-6]\d{6}
   4082         </nationalNumberPattern>
   4083         <exampleNumber>1234567</exampleNumber>
   4084       </fixedLine>
   4085       <mobile>
   4086         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
   4087              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
   4088              holdings company http://www.timeturnsholdings.com/products does not show a link for
   4089              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
   4090              tried were valid. If the holdings company does not respond to requests about this
   4091              range and unless we receive further information, we will remove this range. -->
   4092         <nationalNumberPattern>
   4093           8(?:
   4094             [0-2459]\d{2}|
   4095             8
   4096           )\d{5}|
   4097           9[7-9]\d{7}
   4098         </nationalNumberPattern>
   4099         <exampleNumber>991234567</exampleNumber>
   4100       </mobile>
   4101       <!-- No national emergency numbers were located for Congo. -->
   4102     </territory>
   4103 
   4104     <!-- Central African Republic -->
   4105     <!-- http://www.itu.int/oth/T0202000028/en -->
   4106     <territory id="CF" countryCode="236" internationalPrefix="00">
   4107       <availableFormats>
   4108         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   4109           <format>$1 $2 $3 $4</format>
   4110         </numberFormat>
   4111       </availableFormats>
   4112       <generalDesc>
   4113         <nationalNumberPattern>[278]\d{7}</nationalNumberPattern>
   4114         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4115       </generalDesc>
   4116       <fixedLine>
   4117         <nationalNumberPattern>2[12]\d{6}</nationalNumberPattern>
   4118         <exampleNumber>21612345</exampleNumber>
   4119       </fixedLine>
   4120       <mobile>
   4121         <nationalNumberPattern>7[0257]\d{6}</nationalNumberPattern>
   4122         <exampleNumber>70012345</exampleNumber>
   4123       </mobile>
   4124       <premiumRate>
   4125         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
   4126         <exampleNumber>87761234</exampleNumber>
   4127       </premiumRate>
   4128       <!-- No emergency numbers information can be found. -->
   4129     </territory>
   4130 
   4131     <!-- Congo (Rep. of the) (Brazzaville) -->
   4132     <!-- http://www.itu.int/oth/T020200002E/en -->
   4133     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
   4134       <availableFormats>
   4135         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   4136           <leadingDigits>[02]</leadingDigits>
   4137           <format>$1 $2 $3</format>
   4138         </numberFormat>
   4139         <numberFormat pattern="(\d)(\d{4})(\d{4})">
   4140           <leadingDigits>8</leadingDigits>
   4141           <format>$1 $2 $3</format>
   4142         </numberFormat>
   4143       </availableFormats>
   4144       <generalDesc>
   4145         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
   4146         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4147       </generalDesc>
   4148       <fixedLine>
   4149         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
   4150         <exampleNumber>222123456</exampleNumber>
   4151       </fixedLine>
   4152       <mobile>
   4153         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
   4154         <exampleNumber>061234567</exampleNumber>
   4155       </mobile>
   4156       <!-- Referred to as a "Green number" in the telephone plan. -->
   4157       <tollFree>
   4158         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   4159         <exampleNumber>800123456</exampleNumber>
   4160       </tollFree>
   4161       <!-- No emergency numbers information can be found. -->
   4162     </territory>
   4163 
   4164     <!-- Switzerland -->
   4165     <!-- http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en
   4166          under Technical prescriptions: Numbering plan for international carriers -->
   4167     <territory id="CH" countryCode="41" internationalPrefix="00"
   4168                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG">
   4169       <availableFormats>
   4170         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
   4171           <leadingDigits>
   4172             [2-7]|
   4173             [89]1
   4174           </leadingDigits>
   4175           <format>$1 $2 $3 $4</format>
   4176         </numberFormat>
   4177         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
   4178           <leadingDigits>
   4179             8[047]|
   4180             90
   4181           </leadingDigits>
   4182           <format>$1 $2 $3</format>
   4183         </numberFormat>
   4184         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
   4185           <leadingDigits>860</leadingDigits>
   4186           <format>$1 $2 $3 $4 $5</format>
   4187         </numberFormat>
   4188       </availableFormats>
   4189       <generalDesc>
   4190         <nationalNumberPattern>
   4191           [2-9]\d{8}|
   4192           860\d{9}
   4193         </nationalNumberPattern>
   4194         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
   4195       </generalDesc>
   4196       <fixedLine>
   4197         <nationalNumberPattern>
   4198           (?:
   4199             2[12467]|
   4200             3[1-4]|
   4201             4[134]|
   4202             5[12568]|
   4203             6[12]|
   4204             [7-9]1
   4205           )\d{7}
   4206         </nationalNumberPattern>
   4207         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4208         <exampleNumber>212345678</exampleNumber>
   4209       </fixedLine>
   4210       <mobile>
   4211         <nationalNumberPattern>7[46-9]\d{7}</nationalNumberPattern>
   4212         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4213         <exampleNumber>741234567</exampleNumber>
   4214       </mobile>
   4215       <tollFree>
   4216         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   4217         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4218         <exampleNumber>800123456</exampleNumber>
   4219       </tollFree>
   4220       <premiumRate>
   4221         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
   4222         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4223         <exampleNumber>900123456</exampleNumber>
   4224       </premiumRate>
   4225       <sharedCost>
   4226         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
   4227         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4228         <exampleNumber>840123456</exampleNumber>
   4229       </sharedCost>
   4230       <personalNumber>
   4231         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
   4232         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4233         <exampleNumber>878123456</exampleNumber>
   4234       </personalNumber>
   4235       <voicemail>
   4236         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
   4237         <possibleNumberPattern>\d{12}</possibleNumberPattern>
   4238         <exampleNumber>860123456789</exampleNumber>
   4239       </voicemail>
   4240       <emergency>
   4241         <nationalNumberPattern>
   4242           1(?:
   4243             1[278]|
   4244             44
   4245           )
   4246         </nationalNumberPattern>
   4247         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   4248         <exampleNumber>112</exampleNumber>
   4249       </emergency>
   4250     </territory>
   4251 
   4252     <!-- Cte d'Ivoire -->
   4253     <!-- http://www.itu.int/oth/T0202000031/en -->
   4254     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
   4255       <availableFormats>
   4256         <!-- Using format from online yellow pages over format implied in national numbering plan.
   4257              -->
   4258         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   4259           <format>$1 $2 $3 $4</format>
   4260         </numberFormat>
   4261       </availableFormats>
   4262       <generalDesc>
   4263         <nationalNumberPattern>[02-6]\d{7}</nationalNumberPattern>
   4264         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4265       </generalDesc>
   4266       <fixedLine>
   4267         <nationalNumberPattern>
   4268           (?:
   4269             2(?:
   4270               0[023]|
   4271               1[02357]|
   4272               [23][045]|
   4273               4[03-5]
   4274             )|
   4275             3(?:
   4276               0[06]|
   4277               1[069]|
   4278               [2-4][07]|
   4279               5[09]|
   4280               6[08]
   4281             )
   4282           )\d{5}
   4283         </nationalNumberPattern>
   4284         <exampleNumber>21234567</exampleNumber>
   4285       </fixedLine>
   4286       <mobile>
   4287         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 65 because SMS messages have been
   4288              successfully delivered. Supported by numbers found on the internet. -->
   4289         <nationalNumberPattern>
   4290           (?:
   4291             0[1-9]|
   4292             4[0-24-9]|
   4293             5[05-9]|
   4294             6[05679]
   4295           )\d{6}
   4296         </nationalNumberPattern>
   4297         <exampleNumber>01234567</exampleNumber>
   4298       </mobile>
   4299       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   4300       <emergency>
   4301         <nationalNumberPattern>
   4302           1(?:
   4303             1[01]|
   4304             [78]0
   4305           )
   4306         </nationalNumberPattern>
   4307         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   4308         <exampleNumber>110</exampleNumber>
   4309       </emergency>
   4310     </territory>
   4311 
   4312     <!-- Cook Islands -->
   4313     <!-- http://www.itu.int/oth/T020200002F/en -->
   4314     <territory id="CK" countryCode="682" internationalPrefix="00">
   4315       <availableFormats>
   4316         <numberFormat pattern="(\d{2})(\d{3})">
   4317           <format>$1 $2</format>
   4318         </numberFormat>
   4319       </availableFormats>
   4320       <generalDesc>
   4321         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
   4322         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   4323       </generalDesc>
   4324       <fixedLine>
   4325         <nationalNumberPattern>
   4326           (?:
   4327             2\d|
   4328             3[13-7]|
   4329             4[1-5]
   4330           )\d{3}
   4331         </nationalNumberPattern>
   4332         <exampleNumber>21234</exampleNumber>
   4333       </fixedLine>
   4334       <mobile>
   4335         <nationalNumberPattern>
   4336           (?:
   4337             5[0-68]|
   4338             7\d
   4339           )\d{3}
   4340         </nationalNumberPattern>
   4341         <exampleNumber>71234</exampleNumber>
   4342       </mobile>
   4343       <emergency>
   4344         <!-- http://www.frommers.com/destinations/cookislands/3036020157.html and other tourist
   4345              sites agree on the following numbers. -->
   4346         <nationalNumberPattern>99[689]</nationalNumberPattern>
   4347         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   4348         <exampleNumber>998</exampleNumber>
   4349       </emergency>
   4350     </territory>
   4351 
   4352     <!-- Chile -->
   4353     <!-- http://www.itu.int/oth/T020200002A/en -->
   4354     <!-- http://en.wikipedia.org/wiki/%2B56 -->
   4355     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
   4356     <territory id="CL" countryCode="56"
   4357                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
   4358                nationalPrefix="0"
   4359                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
   4360                nationalPrefixFormattingRule="$NP$FG">
   4361       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
   4362       we strip here. National destinations may be dialled with a carrier if they are not local so
   4363       we extract these carrier codes as well. -->
   4364       <availableFormats>
   4365         <numberFormat pattern="(2)(\d{3,4})(\d{4})"
   4366           nationalPrefixFormattingRule="($FG)"
   4367           carrierCodeFormattingRule="$CC ($FG)">
   4368           <leadingDigits>2</leadingDigits>
   4369           <format>$1 $2 $3</format>
   4370         </numberFormat>
   4371         <numberFormat pattern="(\d{2})(\d{2,3})(\d{4})"
   4372           nationalPrefixFormattingRule="($FG)"
   4373           carrierCodeFormattingRule="$CC ($FG)">
   4374           <leadingDigits>
   4375             [357]|
   4376             4[1-35]|
   4377             6[13-57]
   4378           </leadingDigits>
   4379           <format>$1 $2 $3</format>
   4380         </numberFormat>
   4381         <numberFormat pattern="(9)([5-9]\d{3})(\d{4})">
   4382           <leadingDigits>9</leadingDigits>
   4383           <format>$1 $2 $3</format>
   4384         </numberFormat>
   4385         <numberFormat pattern="(44)(\d{3})(\d{4})">
   4386           <leadingDigits>44</leadingDigits>
   4387           <format>$1 $2 $3</format>
   4388         </numberFormat>
   4389         <numberFormat nationalPrefixFormattingRule="$FG"
   4390           pattern="([68]00)(\d{3})(\d{3,4})">
   4391           <leadingDigits>
   4392             60|
   4393             8
   4394           </leadingDigits>
   4395           <format>$1 $2 $3</format>
   4396         </numberFormat>
   4397         <numberFormat nationalPrefixFormattingRule="$FG"
   4398           pattern="(600)(\d{3})(\d{2})(\d{3})">
   4399           <leadingDigits>60</leadingDigits>
   4400           <format>$1 $2 $3 $4</format>
   4401         </numberFormat>
   4402         <numberFormat nationalPrefixFormattingRule="$FG"
   4403           pattern="(1230)(\d{3})(\d{4})">
   4404           <leadingDigits>1</leadingDigits>
   4405           <format>$1 $2 $3</format>
   4406         </numberFormat>
   4407       </availableFormats>
   4408       <generalDesc>
   4409         <nationalNumberPattern>
   4410           (?:
   4411             [2-9]|
   4412             600|
   4413             123
   4414           )\d{7,8}
   4415         </nationalNumberPattern>
   4416         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   4417       </generalDesc>
   4418       <noInternationalDialling>
   4419         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
   4420         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   4421         <exampleNumber>6001234567</exampleNumber>
   4422       </noInternationalDialling>
   4423       <fixedLine>
   4424         <!-- Nov 2012: The prefixing of '2' to all fixed line numbers, which is being rolled
   4425              out between October 2012 and June 2013 means that temporarily the regular
   4426              expressions for areas will get very messy as some adopt the leading '2' but
   4427              others do not. Eventually when the conversion is complete things should simplify
   4428              again. Note that area codes 32 or 41 were transitioned in 2007.
   4429              IMPORTANT: A literal reading of the transition rules suggest that all numbers get
   4430              a '2' prefix, but some numbers are already 7 digits long (but these always start
   4431              with a '2'). The prefixing seems almost certain to only apply to 6-digit numbers and
   4432              will unify all fixed line numbers to be 9 digits in total. The fact that the new seven
   4433              digit numbers currently only start with a '2' is likely to change in the future.
   4434              Note also that at some stage it is likely that Santiago numbers (area code '2') will
   4435              have a prefix of "2\d" and not "22" (it's like 10 2-digit area codes wrapped into one).
   4436              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
   4437                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
   4438              -->
   4439         <nationalNumberPattern>
   4440           (?:
   4441             [23]2|
   4442             41|
   4443             58
   4444           )\d{7}|
   4445           (?:
   4446             3[3-5]|
   4447             4[235]|
   4448             5[1-357]|
   4449             6[13-57]|
   4450             7[1-35]
   4451           )\d{6,7}
   4452         </nationalNumberPattern>
   4453         <!-- Area codes do not need to be dialled when dialling within the same area, so the
   4454              smallest possible number is length 6. -->
   4455         <!-- Nov 2012: The prefixing of '2' to all 6-digit fixed line numbers means that while
   4456              the maximum possible number length stays as 9, the minimum length will become '7'
   4457              when all area codes are migrated. -->
   4458         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   4459         <exampleNumber>221234567</exampleNumber>
   4460       </fixedLine>
   4461       <mobile>
   4462         <nationalNumberPattern>9[5-9]\d{7}</nationalNumberPattern>
   4463         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   4464         <exampleNumber>961234567</exampleNumber>
   4465       </mobile>
   4466       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
   4467            from a definitive source. -->
   4468       <tollFree>
   4469         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
   4470         <nationalNumberPattern>
   4471           800\d{6}|
   4472           1230\d{7}
   4473         </nationalNumberPattern>
   4474         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
   4475         <exampleNumber>800123456</exampleNumber>
   4476       </tollFree>
   4477       <sharedCost>
   4478         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
   4479         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
   4480         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   4481         <exampleNumber>6001234567</exampleNumber>
   4482       </sharedCost>
   4483       <voip>
   4484         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
   4485         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4486         <exampleNumber>441234567</exampleNumber>
   4487       </voip>
   4488       <emergency>
   4489         <nationalNumberPattern>13[123]</nationalNumberPattern>
   4490         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   4491         <exampleNumber>133</exampleNumber>
   4492       </emergency>
   4493     </territory>
   4494 
   4495     <!-- Cameroon -->
   4496     <!-- http://www.itu.int/oth/T0202000024/en -->
   4497     <territory id="CM" countryCode="237" internationalPrefix="00">
   4498       <availableFormats>
   4499         <!-- Formatting on the internet is consistently with the first 2 extracted, and usually in
   4500              the same format as France (all 2 digit groups) so we use this instead of the guidance
   4501              of the national numbering plan (which has 1 3 2 2 and 4 4 as its two formatting
   4502              examples.) -->
   4503         <numberFormat pattern="([237-9]\d)(\d{2})(\d{2})(\d{2})">
   4504           <leadingDigits>
   4505             [2379]|
   4506             88
   4507           </leadingDigits>
   4508           <format>$1 $2 $3 $4</format>
   4509         </numberFormat>
   4510         <numberFormat pattern="(800)(\d{2})(\d{3})">
   4511           <leadingDigits>80</leadingDigits>
   4512           <format>$1 $2 $3</format>
   4513         </numberFormat>
   4514       </availableFormats>
   4515       <generalDesc>
   4516         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
   4517         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4518       </generalDesc>
   4519       <fixedLine>
   4520         <!-- Technically, the numbers are required only to start with a 2 or a 3, but all numbers at
   4521              the moment start with 22 or 33 since they have been migrated from seven digit numbers
   4522              beginning with these numbers. This rule should be relaxed if/when we start getting
   4523              numbers beginning in other ways. -->
   4524         <nationalNumberPattern>
   4525           (?:
   4526             22|
   4527             33
   4528           )\d{6}
   4529         </nationalNumberPattern>
   4530         <exampleNumber>22123456</exampleNumber>
   4531       </fixedLine>
   4532       <mobile>
   4533         <nationalNumberPattern>[79]\d{7}</nationalNumberPattern>
   4534         <exampleNumber>71234567</exampleNumber>
   4535       </mobile>
   4536       <tollFree>
   4537         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   4538         <exampleNumber>80012345</exampleNumber>
   4539       </tollFree>
   4540       <premiumRate>
   4541         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
   4542              with 88 (usually 880). No information can be found as to whether these are premium rate
   4543              or shared cost. -->
   4544         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
   4545         <exampleNumber>88012345</exampleNumber>
   4546       </premiumRate>
   4547       <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/cameroun_12221/index.html -->
   4548       <emergency>
   4549         <!-- Numbers must be prefixed with a 1 when dialled from a mobile. -->
   4550         <nationalNumberPattern>1?1[37]</nationalNumberPattern>
   4551         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   4552         <exampleNumber>113</exampleNumber>
   4553       </emergency>
   4554     </territory>
   4555 
   4556     <!-- China -->
   4557     <!-- http://www.itu.int/oth/T020200002B/en -->
   4558     <territory id="CN" countryCode="86" internationalPrefix="(1[1279]\d{3})?00"
   4559                preferredInternationalPrefix="00" nationalPrefix="0"
   4560                nationalPrefixForParsing="(1[1279]\d{3})|0">
   4561       <availableFormats>
   4562         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
   4563                       nationalPrefixOptionalWhenFormatting="true"
   4564                       carrierCodeFormattingRule="$CC $FG">
   4565           <leadingDigits>80[2678]</leadingDigits>
   4566           <format>$1 $2</format>
   4567         </numberFormat>
   4568         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
   4569           <leadingDigits>[48]00</leadingDigits>
   4570           <format>$1 $2 $3</format>
   4571         </numberFormat>
   4572         <!-- 95xxx shared cost numbers. Without this rule, the numbers will be formatted
   4573              incorrectly by the AsYouTypeFormatter because they overlap with area code 095x.
   4574              Note although ITU says the format is more like 95 xxx, in reality no space is used
   4575              when writing such numbers in China -->
   4576         <numberFormat pattern="(\d{5})">
   4577           <leadingDigits>95</leadingDigits>
   4578           <format>$1</format>
   4579         </numberFormat>
   4580         <!-- Local numbers -->
   4581         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
   4582              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
   4583              people frequently store them in their cellphones. It has to stay before formatting
   4584              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
   4585              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
   4586         <numberFormat pattern="(\d{3,4})(\d{4})">
   4587           <leadingDigits>[2-9]</leadingDigits>
   4588           <format>$1 $2</format>
   4589           <intlFormat>NA</intlFormat>
   4590         </numberFormat>
   4591         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
   4592                       nationalPrefixOptionalWhenFormatting="true"
   4593                       carrierCodeFormattingRule="$CC $FG">
   4594           <leadingDigits>21</leadingDigits>
   4595           <format>$1 $2 $3</format>
   4596         </numberFormat>
   4597         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
   4598                       nationalPrefixOptionalWhenFormatting="true"
   4599                       carrierCodeFormattingRule="$CC $FG">
   4600           <leadingDigits>
   4601             10[1-9]|
   4602             2[02-9]
   4603           </leadingDigits>
   4604           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
   4605           <leadingDigits>
   4606             10[1-9]|
   4607             2[02-9]
   4608           </leadingDigits>
   4609           <leadingDigits>
   4610             10(?:
   4611               [1-79]|
   4612               8(?:
   4613                 [1-9]|
   4614                 0[1-9]
   4615               )
   4616             )|
   4617             2[02-9]
   4618           </leadingDigits>
   4619           <format>$1 $2 $3</format>
   4620         </numberFormat>
   4621         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
   4622                       nationalPrefixOptionalWhenFormatting="true"
   4623                       carrierCodeFormattingRule="$CC $FG">
   4624           <leadingDigits>
   4625             3(?:
   4626               11|
   4627               7[179]
   4628             )|
   4629             4(?:
   4630               [15]1|
   4631               3[12]
   4632             )|
   4633             5(?:
   4634               1|
   4635               2[37]|
   4636               3[12]|
   4637               51|
   4638               7[13-79]|
   4639               9[15]
   4640             )|
   4641             7(?:
   4642               31|
   4643               5[457]|
   4644               6[09]|
   4645               91
   4646             )|
   4647             8(?:
   4648               71|
   4649               98
   4650             )
   4651           </leadingDigits>
   4652           <format>$1 $2 $3</format>
   4653         </numberFormat>
   4654         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
   4655                       nationalPrefixOptionalWhenFormatting="true"
   4656                       carrierCodeFormattingRule="$CC $FG">
   4657           <leadingDigits>
   4658             3(?:
   4659               1[02-9]|
   4660               35|
   4661               49|
   4662               5|
   4663               7[02-68]|
   4664               9[1-68]
   4665             )|
   4666             4(?:
   4667               1[02-9]|
   4668               2[179]|
   4669               [35][2-9]|
   4670               6[4789]|
   4671               7\d|
   4672               8[23]
   4673             )|
   4674             5(?:
   4675               3[03-9]|
   4676               4[36]|
   4677               5[02-9]|
   4678               6[1-46]|
   4679               7[028]|
   4680               80|
   4681               9[2-46-9]
   4682             )|
   4683             6(?:
   4684               3[1-5]|
   4685               6[0238]|
   4686               9[12]
   4687             )|
   4688             7(?:
   4689               01|
   4690               [1579]|
   4691               2[248]|
   4692               3[04-9]|
   4693               4[3-6]|
   4694               6[2368]
   4695             )|
   4696             8(?:
   4697               1[236-8]|
   4698               2[5-7]|
   4699               3|
   4700               5[1-9]|
   4701               7[02-9]|
   4702               8[3678]|
   4703               9[1-7]
   4704             )|
   4705             9(?:
   4706               0[1-3689]|
   4707               1[1-79]|
   4708               [379]|
   4709               4[13]|
   4710               5[1-5]
   4711             )
   4712           </leadingDigits>
   4713           <format>$1 $2 $3</format>
   4714         </numberFormat>
   4715         <numberFormat pattern="(1[3-58]\d)(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
   4716           <leadingDigits>1[3-58]</leadingDigits>
   4717           <format>$1 $2 $3</format>
   4718         </numberFormat>
   4719         <numberFormat pattern="(10800)(\d{3})(\d{4})">
   4720           <leadingDigits>108</leadingDigits>
   4721           <leadingDigits>1080</leadingDigits>
   4722           <leadingDigits>10800</leadingDigits>
   4723           <format>$1 $2 $3</format>
   4724         </numberFormat>
   4725       </availableFormats>
   4726       <generalDesc>
   4727         <nationalNumberPattern>
   4728           [1-7]\d{7,11}|
   4729           8[0-357-9]\d{6,9}|
   4730           9(?:
   4731             5\d{3}|
   4732             \d{9}
   4733           )
   4734         </nationalNumberPattern>
   4735         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
   4736       </generalDesc>
   4737       <noInternationalDialling>
   4738         <!-- 95xxx numbers have been verified to be unreachable from overseas by placing actual
   4739              calls. -->
   4740         <nationalNumberPattern>
   4741           (?:
   4742             4|
   4743             (?:
   4744               10
   4745             )?8
   4746           )00\d{7}|
   4747           95\d{3}
   4748         </nationalNumberPattern>
   4749         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   4750         <exampleNumber>4001234567</exampleNumber>
   4751       </noInternationalDialling>
   4752       <fixedLine>
   4753         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
   4754              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
   4755              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
   4756              in the ITU data. -->
   4757         <nationalNumberPattern>
   4758           21\d{8,10}|
   4759           (?:
   4760             10|
   4761             2[02-57-9]|
   4762             3(?:
   4763               11|
   4764               7[179]
   4765             )|
   4766             4(?:
   4767               [15]1|
   4768               3[12]
   4769             )|
   4770             5(?:
   4771               1\d|
   4772               2[37]|
   4773               3[12]|
   4774               51|
   4775               7[13-79]|
   4776               9[15]
   4777             )|
   4778             7(?:
   4779               31|
   4780               5[457]|
   4781               6[09]|
   4782               91
   4783             )|
   4784             8(?:
   4785               71|
   4786               98
   4787             )
   4788           )\d{8}|
   4789           (?:
   4790             3(?:
   4791               1[02-9]|
   4792               35|
   4793               49|
   4794               5\d|
   4795               7[02-68]|
   4796               9[1-68]
   4797             )|
   4798             4(?:
   4799               1[02-9]|
   4800               2[179]|
   4801               3[3-9]|
   4802               5[2-9]|
   4803               6[4789]|
   4804               7\d|
   4805               8[23]
   4806             )|
   4807             5(?:
   4808               3[03-9]|
   4809               4[36]|
   4810               5[02-9]|
   4811               6[1-46]|
   4812               7[028]|
   4813               80|
   4814               9[2-46-9]
   4815             )|
   4816             6(?:
   4817               3[1-5]|
   4818               6[0238]|
   4819               9[12]
   4820             )|
   4821             7(?:
   4822               01|
   4823               [17]\d|
   4824               2[248]|
   4825               3[04-9]|
   4826               4[3-6]|
   4827               5[0-3689]|
   4828               6[2368]|
   4829               9[02-9]
   4830             )|
   4831             8(?:
   4832               1[236-8]|
   4833               2[5-7]|
   4834               3\d|
   4835               5[1-9]|
   4836               7[02-9]|
   4837               8[3678]|
   4838               9[1-7]
   4839             )|
   4840             9(?:
   4841               0[1-3689]|
   4842               1[1-79]|
   4843               [379]\d|
   4844               4[13]|
   4845               5[1-5]
   4846             )
   4847           )\d{7}|
   4848           80(?:
   4849             29|
   4850             6[03578]|
   4851             7[018]|
   4852             81
   4853           )\d{4}
   4854         </nationalNumberPattern>
   4855         <exampleNumber>1012345678</exampleNumber>
   4856       </fixedLine>
   4857       <mobile>
   4858         <nationalNumberPattern>
   4859           1(?:
   4860             3\d|
   4861             4[57]|
   4862             [58][0-35-9]
   4863           )\d{8}
   4864         </nationalNumberPattern>
   4865         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   4866         <exampleNumber>13123456789</exampleNumber>
   4867       </mobile>
   4868       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
   4869            number plan, and do not seem to have been standardized. The information below is
   4870            collected from searching the web. -->
   4871       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
   4872       <tollFree>
   4873         <nationalNumberPattern>
   4874           (?:
   4875             10
   4876           )?800\d{7}
   4877         </nationalNumberPattern>
   4878         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
   4879         <exampleNumber>8001234567</exampleNumber>
   4880       </tollFree>
   4881       <premiumRate>
   4882         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
   4883         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4884         <exampleNumber>16812345</exampleNumber>
   4885       </premiumRate>
   4886       <sharedCost>
   4887         <!-- 95xxx numbers are covered by the ITU doc, but the following doc contains more info:
   4888              http://baike.baidu.com/view/3269670.htm -->
   4889         <nationalNumberPattern>
   4890           400\d{7}|
   4891           95\d{3}
   4892         </nationalNumberPattern>
   4893         <possibleNumberPattern>\d{5}(?:\d{5})?</possibleNumberPattern>
   4894         <exampleNumber>4001234567</exampleNumber>
   4895       </sharedCost>
   4896       <emergency>
   4897         <nationalNumberPattern>
   4898           1(?:
   4899             1[09]|
   4900             20
   4901           )
   4902         </nationalNumberPattern>
   4903         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   4904         <exampleNumber>119</exampleNumber>
   4905       </emergency>
   4906     </territory>
   4907 
   4908     <!-- Colombia -->
   4909     <!-- http://www.itu.int/oth/T020200002C/en -->
   4910     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia -->
   4911     <territory id="CO" countryCode="57" internationalPrefix="00[579]|#555|#999"
   4912                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?">
   4913       <availableFormats>
   4914         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
   4915           nationalPrefixFormattingRule="($FG)">
   4916           <leadingDigits>
   4917             1(?:
   4918               8[2-9]|
   4919               9[0-3]|
   4920               [2-7]
   4921             )|
   4922             [24-8]
   4923           </leadingDigits>
   4924           <leadingDigits>
   4925             1(?:
   4926               8[2-9]|
   4927               9(?:
   4928                 09|
   4929                 [1-3]
   4930               )|
   4931               [2-7]
   4932             )|
   4933             [24-8]
   4934           </leadingDigits>
   4935           <format>$1 $2</format>
   4936         </numberFormat>
   4937         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
   4938           <leadingDigits>3</leadingDigits>
   4939           <format>$1 $2</format>
   4940         </numberFormat>
   4941         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
   4942           <leadingDigits>
   4943             1(?:
   4944               80|
   4945               9[04]
   4946             )
   4947           </leadingDigits>
   4948           <leadingDigits>
   4949             1(?:
   4950               800|
   4951               9(?:
   4952                 0[01]|
   4953                 4[78]
   4954               )
   4955             )
   4956           </leadingDigits>
   4957           <format>$1-$2-$3</format>
   4958           <intlFormat>$1 $2 $3</intlFormat>
   4959         </numberFormat>
   4960       </availableFormats>
   4961       <generalDesc>
   4962         <nationalNumberPattern>
   4963           (?:
   4964             [13]\d{0,3}|
   4965             [24-8]
   4966           )\d{7}
   4967         </nationalNumberPattern>
   4968         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   4969       </generalDesc>
   4970       <fixedLine>
   4971         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
   4972         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4973         <exampleNumber>12345678</exampleNumber>
   4974       </fixedLine>
   4975       <mobile>
   4976         <!-- Virgin Mobile Colombia have reported that they are now using the 319 prefix. -->
   4977         <nationalNumberPattern>
   4978           3(?:
   4979             0[0-24]|
   4980             1\d|
   4981             2[01]
   4982           )\d{7}
   4983         </nationalNumberPattern>
   4984         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   4985         <exampleNumber>3211234567</exampleNumber>
   4986       </mobile>
   4987       <tollFree>
   4988         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
   4989         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   4990         <exampleNumber>18001234567</exampleNumber>
   4991       </tollFree>
   4992       <premiumRate>
   4993         <nationalNumberPattern>
   4994           19(?:
   4995             0[01]|
   4996             4[78]
   4997           )\d{7}
   4998         </nationalNumberPattern>
   4999         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   5000         <exampleNumber>19001234567</exampleNumber>
   5001       </premiumRate>
   5002       <emergency>
   5003         <nationalNumberPattern>
   5004           1(?:
   5005             1[29]|
   5006             23|
   5007             32|
   5008             56
   5009           )
   5010         </nationalNumberPattern>
   5011         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5012         <exampleNumber>112</exampleNumber>
   5013       </emergency>
   5014     </territory>
   5015 
   5016     <!-- Costa Rica -->
   5017     <!-- http://www.itu.int/oth/T0202000030/en -->
   5018     <territory id="CR" countryCode="506" internationalPrefix="00"
   5019                nationalPrefixForParsing="(19(?:0[0-2468]|19|20|66|77))"
   5020                carrierCodeFormattingRule="$CC $FG">
   5021       <availableFormats>
   5022         <numberFormat pattern="(\d{4})(\d{4})">
   5023           <leadingDigits>
   5024             [24-7]|
   5025             8[3-9]
   5026           </leadingDigits>
   5027           <format>$1 $2</format>
   5028         </numberFormat>
   5029         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   5030           <leadingDigits>[89]0</leadingDigits>
   5031           <format>$1-$2-$3</format>
   5032         </numberFormat>
   5033       </availableFormats>
   5034       <generalDesc>
   5035         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
   5036         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   5037       </generalDesc>
   5038       <fixedLine>
   5039         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
   5040         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5041         <exampleNumber>22123456</exampleNumber>
   5042       </fixedLine>
   5043       <mobile>
   5044         <nationalNumberPattern>
   5045           5(?:
   5046             0[0-4]|
   5047             7[01]
   5048           )\d{5}|
   5049           [67][0-2]\d{6}|
   5050           8[3-9]\d{6}
   5051         </nationalNumberPattern>
   5052         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5053         <exampleNumber>83123456</exampleNumber>
   5054       </mobile>
   5055       <tollFree>
   5056         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   5057         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5058         <exampleNumber>8001234567</exampleNumber>
   5059       </tollFree>
   5060       <premiumRate>
   5061         <!-- Includes "mass calls" numbers with prefix 905. -->
   5062         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
   5063         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5064         <exampleNumber>9001234567</exampleNumber>
   5065       </premiumRate>
   5066       <voip>
   5067         <!-- Including trunking service numbers starting with 5100. -->
   5068         <nationalNumberPattern>
   5069           210[0-6]\d{4}|
   5070           4(?:
   5071             0(?:
   5072               [04]0\d{4}|
   5073               10[0-3]\d{3}|
   5074               2(?:
   5075                 00\d|
   5076                 900
   5077               )\d{2}|
   5078               3[01]\d{4}|
   5079               5\d{5}|
   5080               70[01]\d{3}
   5081             )|
   5082             1[01]\d{5}|
   5083             20[0-3]\d{4}|
   5084             400\d{4}|
   5085             70[0-2]\d{4}
   5086           )|
   5087           5100\d{4}
   5088         </nationalNumberPattern>
   5089         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5090         <exampleNumber>40001234</exampleNumber>
   5091       </voip>
   5092       <shortCode>
   5093         <!-- This pattern excludes 4-digit SMS content numbers for now. -->
   5094         <nationalNumberPattern>
   5095           1(?:
   5096             0(?:
   5097               00|
   5098               15|
   5099               2[2-4679]
   5100             )|
   5101             1(?:
   5102               1[0-35-9]|
   5103               37|
   5104               [46]6|
   5105               7[57]|
   5106               8[79]|
   5107               9[0-379]
   5108             )|
   5109             2(?:
   5110               00|
   5111               [12]2|
   5112               34|
   5113               55
   5114             )|
   5115             333|
   5116             4(?:
   5117               00|
   5118               1[56]
   5119             )|
   5120             5(?:
   5121               15|
   5122               5[15]
   5123             )|
   5124             693|
   5125             7(?:
   5126               00|
   5127               1[789]|
   5128               2[02]|
   5129               [67]7
   5130             )|
   5131             975
   5132           )
   5133         </nationalNumberPattern>
   5134         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   5135         <exampleNumber>1022</exampleNumber>
   5136       </shortCode>
   5137       <emergency>
   5138         <nationalNumberPattern>
   5139           112|
   5140           911
   5141         </nationalNumberPattern>
   5142         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5143         <exampleNumber>911</exampleNumber>
   5144       </emergency>
   5145     </territory>
   5146 
   5147     <!-- Cuba -->
   5148     <!-- www.itu.int/oth/T0202000033/en -->
   5149     <territory id="CU" countryCode="53" internationalPrefix="119"
   5150                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
   5151       <availableFormats>
   5152         <numberFormat pattern="(\d)(\d{6,7})">
   5153           <leadingDigits>7</leadingDigits>
   5154           <format>$1 $2</format>
   5155         </numberFormat>
   5156         <numberFormat pattern="(\d{2})(\d{4,6})">
   5157           <leadingDigits>[2-4]</leadingDigits>
   5158           <format>$1 $2</format>
   5159         </numberFormat>
   5160         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
   5161           <leadingDigits>5</leadingDigits>
   5162           <format>$1 $2</format>
   5163         </numberFormat>
   5164       </availableFormats>
   5165       <generalDesc>
   5166         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
   5167         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
   5168       </generalDesc>
   5169       <fixedLine>
   5170         <nationalNumberPattern>
   5171           2[1-4]\d{5,6}|
   5172           3(?:
   5173             1\d{6}|
   5174             [23]\d{4,6}
   5175           )|
   5176           4(?:
   5177             [125]\d{5,6}|
   5178             [36]\d{6}|
   5179             [78]\d{4,6}
   5180           )|
   5181           7\d{6,7}
   5182         </nationalNumberPattern>
   5183         <exampleNumber>71234567</exampleNumber>
   5184       </fixedLine>
   5185       <mobile>
   5186         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
   5187         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5188         <exampleNumber>51234567</exampleNumber>
   5189       </mobile>
   5190       <shortCode>
   5191         <nationalNumberPattern>
   5192           1(?:
   5193             1(?:
   5194               6111|
   5195               8
   5196             )|
   5197             40
   5198           )
   5199         </nationalNumberPattern>
   5200         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   5201         <exampleNumber>140</exampleNumber>
   5202       </shortCode>
   5203       <emergency>
   5204         <nationalNumberPattern>10[456]</nationalNumberPattern>
   5205         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5206         <exampleNumber>106</exampleNumber>
   5207       </emergency>
   5208     </territory>
   5209 
   5210     <!-- Cape Verde -->
   5211     <!-- http://www.itu.int/oth/T0202000026/en -->
   5212     <territory id="CV" countryCode="238" internationalPrefix="0">
   5213       <availableFormats>
   5214         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
   5215           <format>$1 $2 $3</format>
   5216         </numberFormat>
   5217       </availableFormats>
   5218       <generalDesc>
   5219         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
   5220         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   5221       </generalDesc>
   5222       <fixedLine>
   5223         <nationalNumberPattern>
   5224           2(?:
   5225             2[1-7]|
   5226             3[0-8]|
   5227             4[12]|
   5228             5[1256]|
   5229             6\d|
   5230             7[1-3]|
   5231             8[1-5]
   5232           )\d{4}
   5233         </nationalNumberPattern>
   5234         <exampleNumber>2211234</exampleNumber>
   5235       </fixedLine>
   5236       <mobile>
   5237         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
   5238              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
   5239              example, and there are plenty of numbers on the internet that start with these
   5240              prefixes. -->
   5241         <nationalNumberPattern>
   5242           (?:
   5243             9\d|
   5244             59
   5245           )\d{5}
   5246         </nationalNumberPattern>
   5247         <exampleNumber>9911234</exampleNumber>
   5248       </mobile>
   5249       <emergency>
   5250         <!-- http://www.capeverde.com/travel-tips/safety.html -->
   5251         <nationalNumberPattern>13[012]</nationalNumberPattern>
   5252         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5253         <exampleNumber>132</exampleNumber>
   5254       </emergency>
   5255     </territory>
   5256 
   5257     <!-- Curaao -->
   5258     <!-- http://www.itu.int/oth/T02020000F5/en -->
   5259     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
   5260       <!-- All the formatting patterns for country-code 599 are here. -->
   5261       <availableFormats>
   5262         <numberFormat pattern="(\d{3})(\d{4})">
   5263           <leadingDigits>[13-7]</leadingDigits>
   5264           <format>$1 $2</format>
   5265         </numberFormat>
   5266         <numberFormat pattern="(9)(\d{3})(\d{4})">
   5267           <leadingDigits>9</leadingDigits>
   5268           <format>$1 $2 $3</format>
   5269         </numberFormat>
   5270       </availableFormats>
   5271       <generalDesc>
   5272         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
   5273         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   5274       </generalDesc>
   5275       <fixedLine>
   5276         <nationalNumberPattern>
   5277           9(?:
   5278             [48]\d{2}|
   5279             50\d|
   5280             7(?:
   5281               2[0-2]|
   5282               [34]\d|
   5283               6[35-7]|
   5284               77
   5285             )
   5286           )\d{4}
   5287         </nationalNumberPattern>
   5288         <exampleNumber>94151234</exampleNumber>
   5289       </fixedLine>
   5290       <mobile>
   5291         <nationalNumberPattern>
   5292           9(?:
   5293             5(?:
   5294               [1246]\d|
   5295               3[01]
   5296             )|
   5297             6(?:
   5298               [1679]\d|
   5299               3[01]
   5300             )
   5301           )\d{4}
   5302         </nationalNumberPattern>
   5303         <exampleNumber>95181234</exampleNumber>
   5304       </mobile>
   5305       <pager>
   5306         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
   5307         <exampleNumber>95581234</exampleNumber>
   5308       </pager>
   5309       <sharedCost>
   5310         <!-- Value-added services are lumped together under shared cost, since we are not sure
   5311              exactly what they are. -->
   5312         <nationalNumberPattern>
   5313           (?:
   5314             10|
   5315             69
   5316           )\d{5}
   5317         </nationalNumberPattern>
   5318         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   5319         <exampleNumber>1011234</exampleNumber>
   5320       </sharedCost>
   5321       <emergency>
   5322         <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
   5323         <nationalNumberPattern>
   5324           112|
   5325           911
   5326         </nationalNumberPattern>
   5327         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5328         <exampleNumber>112</exampleNumber>
   5329       </emergency>
   5330     </territory>
   5331 
   5332     <!-- Cyprus -->
   5333     <!-- http://www.itu.int/oth/T0202000034/en -->
   5334     <territory id="CY" countryCode="357" internationalPrefix="00">
   5335       <availableFormats>
   5336         <!-- Format from http://www.cyprusyellowpages.com/-->
   5337         <numberFormat pattern="(\d{2})(\d{6})">
   5338           <format>$1 $2</format>
   5339         </numberFormat>
   5340       </availableFormats>
   5341       <generalDesc>
   5342         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
   5343         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5344       </generalDesc>
   5345       <fixedLine>
   5346         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
   5347         <exampleNumber>22345678</exampleNumber>
   5348       </fixedLine>
   5349       <mobile>
   5350         <!-- Includes paging numbers (they are mixed into the same block). -->
   5351         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
   5352         <exampleNumber>96123456</exampleNumber>
   5353       </mobile>
   5354       <tollFree>
   5355         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   5356         <exampleNumber>80001234</exampleNumber>
   5357       </tollFree>
   5358       <premiumRate>
   5359         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
   5360         <exampleNumber>90012345</exampleNumber>
   5361       </premiumRate>
   5362       <sharedCost>
   5363         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
   5364         <exampleNumber>80112345</exampleNumber>
   5365       </sharedCost>
   5366       <personalNumber>
   5367         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
   5368         <exampleNumber>70012345</exampleNumber>
   5369       </personalNumber>
   5370       <uan>
   5371         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
   5372         <nationalNumberPattern>
   5373           (?:
   5374             50|
   5375             77
   5376           )\d{6}
   5377         </nationalNumberPattern>
   5378         <exampleNumber>77123456</exampleNumber>
   5379       </uan>
   5380       <emergency>
   5381         <nationalNumberPattern>
   5382           1(?:
   5383             12|
   5384             99
   5385           )
   5386         </nationalNumberPattern>
   5387         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5388         <exampleNumber>112</exampleNumber>
   5389       </emergency>
   5390     </territory>
   5391 
   5392     <!-- Christmas Islands -->
   5393     <!-- Metadata shared with Australia. -->
   5394     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
   5395     <!-- http://en.wikipedia.org/wiki/List_of_country_calling_codes -->
   5396     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
   5397     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
   5398                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
   5399                nationalPrefix="0">
   5400       <!-- Uses AU formatting rules. -->
   5401       <!-- General desc and fixed line rules different from Australia. -->
   5402       <generalDesc>
   5403         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
   5404         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   5405       </generalDesc>
   5406       <fixedLine>
   5407         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
   5408         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   5409         <exampleNumber>891641234</exampleNumber>
   5410       </fixedLine>
   5411       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
   5412       <mobile>
   5413         <nationalNumberPattern>
   5414           4(?:
   5415             [0-2]\d|
   5416             3[0-57-9]|
   5417             4[47-9]|
   5418             5[0-37-9]|
   5419             6[6-9]|
   5420             7[07-9]|
   5421             8[7-9]
   5422           )\d{6}
   5423         </nationalNumberPattern>
   5424         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5425         <exampleNumber>412345678</exampleNumber>
   5426       </mobile>
   5427       <tollFree>
   5428         <nationalNumberPattern>
   5429           1(?:
   5430             80(?:
   5431               0\d{2}
   5432             )?|
   5433             3(?:
   5434               00\d{2}
   5435             )?
   5436           )\d{4}
   5437         </nationalNumberPattern>
   5438         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   5439         <exampleNumber>1800123456</exampleNumber>
   5440       </tollFree>
   5441       <premiumRate>
   5442         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
   5443         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5444         <exampleNumber>1900123456</exampleNumber>
   5445       </premiumRate>
   5446       <personalNumber>
   5447         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
   5448         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5449         <exampleNumber>500123456</exampleNumber>
   5450       </personalNumber>
   5451       <voip>
   5452         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
   5453         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5454         <exampleNumber>550123456</exampleNumber>
   5455       </voip>
   5456       <emergency>
   5457         <!-- We assume this is the same as for Australia, since they have the same country code and
   5458              share their police force, and no better information can be found. -->
   5459         <nationalNumberPattern>
   5460           000|
   5461           112
   5462         </nationalNumberPattern>
   5463         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5464         <exampleNumber>112</exampleNumber>
   5465       </emergency>
   5466     </territory>
   5467 
   5468     <!-- Czech Rep. -->
   5469     <!-- http://www.itu.int/oth/T0202000035/en -->
   5470     <!-- http://en.wikipedia.org/wiki/%2B420 -->
   5471     <territory id="CZ" countryCode="420" internationalPrefix="00">
   5472       <availableFormats>
   5473         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
   5474           <leadingDigits>
   5475             [2-8]|
   5476             9[015-7]
   5477           </leadingDigits>
   5478           <format>$1 $2 $3</format>
   5479         </numberFormat>
   5480         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
   5481           <leadingDigits>96</leadingDigits>
   5482           <format>$1 $2 $3 $4</format>
   5483         </numberFormat>
   5484         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
   5485           <leadingDigits>9[36]</leadingDigits>
   5486           <format>$1 $2 $3 $4</format>
   5487         </numberFormat>
   5488       </availableFormats>
   5489       <generalDesc>
   5490         <nationalNumberPattern>
   5491           [2-8]\d{8}|
   5492           9\d{8,11}
   5493         </nationalNumberPattern>
   5494         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
   5495       </generalDesc>
   5496       <fixedLine>
   5497         <nationalNumberPattern>
   5498           2\d{8}|
   5499           (?:
   5500             3[1257-9]|
   5501             4[16-9]|
   5502             5[13-9]
   5503           )\d{7}
   5504         </nationalNumberPattern>
   5505         <exampleNumber>212345678</exampleNumber>
   5506       </fixedLine>
   5507       <mobile>
   5508         <nationalNumberPattern>
   5509           (?:
   5510             60[1-8]|
   5511             7(?:
   5512               0[2-5]|
   5513               [2379]\d
   5514             )
   5515           )\d{6}
   5516         </nationalNumberPattern>
   5517         <exampleNumber>601123456</exampleNumber>
   5518       </mobile>
   5519       <tollFree>
   5520         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   5521         <exampleNumber>800123456</exampleNumber>
   5522       </tollFree>
   5523       <premiumRate>
   5524         <!-- Includes premium rate dial-up. -->
   5525         <nationalNumberPattern>
   5526           9(?:
   5527             0[05689]|
   5528             76
   5529           )\d{6}
   5530         </nationalNumberPattern>
   5531         <exampleNumber>900123456</exampleNumber>
   5532       </premiumRate>
   5533       <sharedCost>
   5534         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
   5535         <exampleNumber>811234567</exampleNumber>
   5536       </sharedCost>
   5537       <personalNumber>
   5538         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
   5539         <exampleNumber>700123456</exampleNumber>
   5540       </personalNumber>
   5541       <voip>
   5542         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
   5543         <exampleNumber>910123456</exampleNumber>
   5544       </voip>
   5545       <uan>
   5546         <!-- Numbers belonging to private communication networks are included here. These are
   5547              classified as Institutional networks, belonging to institutions like the police, armed
   5548              forces and railways, along with a couple of formerly government-owned banks. These
   5549              numbers are reachable by the public. -->
   5550         <nationalNumberPattern>
   5551           9(?:
   5552             5\d|
   5553             7[234]
   5554           )\d{6}
   5555         </nationalNumberPattern>
   5556         <exampleNumber>972123456</exampleNumber>
   5557       </uan>
   5558       <voicemail>
   5559         <nationalNumberPattern>
   5560           9(?:
   5561             3\d{9}|
   5562             6\d{7,10}
   5563           )
   5564         </nationalNumberPattern>
   5565         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
   5566         <exampleNumber>93123456789</exampleNumber>
   5567       </voicemail>
   5568       <shortCode>
   5569         <nationalNumberPattern>
   5570           1(?:
   5571             1(?:
   5572               6\d{3}|
   5573               8\d
   5574             )|
   5575             2\d{2,3}|
   5576             3\d{3,4}|
   5577             4\d{3}|
   5578             99
   5579           )
   5580         </nationalNumberPattern>
   5581         <possibleNumberPattern>\d{4,6}</possibleNumberPattern>
   5582         <exampleNumber>116123</exampleNumber>
   5583       </shortCode>
   5584       <emergency>
   5585         <nationalNumberPattern>
   5586           1(?:
   5587             12|
   5588             5[058]
   5589           )
   5590         </nationalNumberPattern>
   5591         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5592         <exampleNumber>112</exampleNumber>
   5593       </emergency>
   5594     </territory>
   5595 
   5596     <!-- Germany -->
   5597     <!-- http://www.itu.int/oth/T0202000051/en -->
   5598     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_germany -->
   5599     <territory id="DE" countryCode="49" internationalPrefix="00"
   5600                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   5601       <availableFormats>
   5602         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
   5603              these should best be formatted, even though actual usage varies. -->
   5604         <numberFormat pattern="(1\d{2})(\d{7,8})">
   5605           <leadingDigits>1[67]</leadingDigits>
   5606           <format>$1 $2</format>
   5607         </numberFormat>
   5608         <numberFormat pattern="(1\d{3})(\d{7})">
   5609           <leadingDigits>15</leadingDigits>
   5610           <format>$1 $2</format>
   5611         </numberFormat>
   5612         <numberFormat pattern="(\d{2})(\d{4,11})">
   5613           <leadingDigits>
   5614             3[02]|
   5615             40|
   5616             [68]9
   5617           </leadingDigits>
   5618           <format>$1 $2</format>
   5619         </numberFormat>
   5620         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
   5621         <!-- 3 digit area codes. -->
   5622         <numberFormat pattern="(\d{3})(\d{3,11})">
   5623           <leadingDigits>
   5624             2(?:
   5625               \d1|
   5626               0[2389]|
   5627               1[24]|
   5628               28|
   5629               34
   5630             )|
   5631             3(?:
   5632               [3-9][15]|
   5633               40
   5634             )|
   5635             [4-8][1-9]1|
   5636             9(?:
   5637               06|
   5638               [1-9]1
   5639             )
   5640           </leadingDigits>
   5641           <format>$1 $2</format>
   5642         </numberFormat>
   5643         <!-- 4 digit area codes. -->
   5644         <numberFormat pattern="(\d{4})(\d{2,11})">
   5645           <leadingDigits>
   5646             [24-6]|
   5647             [7-9](?:
   5648               \d[1-9]|
   5649               [1-9]\d
   5650             )|
   5651             3(?:
   5652               [3569][02-46-9]|
   5653               4[2-4679]|
   5654               7[2-467]|
   5655               8[2-46-8]
   5656             )
   5657           </leadingDigits>
   5658           <leadingDigits>
   5659             [24-6]|
   5660             [7-9](?:
   5661               \d[1-9]|
   5662               [1-9]\d
   5663             )|
   5664             3(?:
   5665               3(?:
   5666                 0[1-467]|
   5667                 2[127-9]|
   5668                 3[124578]|
   5669                 [46][1246]|
   5670                 7[1257-9]|
   5671                 8[1256]|
   5672                 9[145]
   5673               )|
   5674               4(?:
   5675                 2[135]|
   5676                 3[1357]|
   5677                 4[13578]|
   5678                 6[1246]|
   5679                 7[1356]|
   5680                 9[1346]
   5681               )|
   5682               5(?:
   5683                 0[14]|
   5684                 2[1-3589]|
   5685                 3[1357]|
   5686                 4[1246]|
   5687                 6[1-4]|
   5688                 7[1346]|
   5689                 8[13568]|
   5690                 9[1246]
   5691               )|
   5692               6(?:
   5693                 0[356]|
   5694                 2[1-489]|
   5695                 3[124-6]|
   5696                 4[1347]|
   5697                 6[13]|
   5698                 7[12579]|
   5699                 8[1-356]|
   5700                 9[135]
   5701               )|
   5702               7(?:
   5703                 2[1-7]|
   5704                 3[1357]|
   5705                 4[145]|
   5706                 6[1-5]|
   5707                 7[1-4]
   5708               )|
   5709               8(?:
   5710                 21|
   5711                 3[1468]|
   5712                 4[1347]|
   5713                 6[0135-9]|
   5714                 7[1467]|
   5715                 8[136]
   5716               )|
   5717               9(?:
   5718                 0[12479]|
   5719                 2[1358]|
   5720                 3[1357]|
   5721                 4[134679]|
   5722                 6[1-9]|
   5723                 7[136]|
   5724                 8[147]|
   5725                 9[1468]
   5726               )
   5727             )
   5728           </leadingDigits>
   5729           <format>$1 $2</format>
   5730         </numberFormat>
   5731         <!-- 5 digit area codes. -->
   5732         <numberFormat pattern="(3\d{4})(\d{1,10})">
   5733           <leadingDigits>3</leadingDigits>
   5734           <format>$1 $2</format>
   5735         </numberFormat>
   5736         <!-- Note: this is getting ridiculous! How can we format these better? -->
   5737         <numberFormat pattern="(800)(\d{7,12})">
   5738           <leadingDigits>800</leadingDigits>
   5739           <format>$1 $2</format>
   5740         </numberFormat>
   5741         <!-- Voicemail access numbers for the carrier Blau. -->
   5742         <numberFormat pattern="(177)(99)(\d{7,8})">
   5743           <leadingDigits>177</leadingDigits>
   5744           <leadingDigits>1779</leadingDigits>
   5745           <leadingDigits>17799</leadingDigits>
   5746           <format>$1 $2 $3</format>
   5747         </numberFormat>
   5748         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
   5749           <leadingDigits>
   5750             (?:
   5751               18|
   5752               90
   5753             )0
   5754           </leadingDigits>
   5755           <leadingDigits>
   5756             180|
   5757             900[1359]
   5758           </leadingDigits>
   5759           <format>$1 $2 $3</format>
   5760         </numberFormat>
   5761         <numberFormat pattern="(1\d{2})(\d{5,11})">
   5762           <leadingDigits>181</leadingDigits>
   5763           <format>$1 $2</format>
   5764         </numberFormat>
   5765         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
   5766              way it is generally written. For other prefixes, we fall back to using a three-digit
   5767              prefix since we have currently no more information to allow us to format these more
   5768              precisely. -->
   5769         <numberFormat pattern="(18\d{3})(\d{6})">
   5770           <leadingDigits>185</leadingDigits>
   5771           <leadingDigits>1850</leadingDigits>
   5772           <leadingDigits>18500</leadingDigits>
   5773           <format>$1 $2</format>
   5774         </numberFormat>
   5775         <numberFormat pattern="(18\d{2})(\d{7})">
   5776           <leadingDigits>18[68]</leadingDigits>
   5777           <format>$1 $2</format>
   5778         </numberFormat>
   5779         <numberFormat pattern="(18\d)(\d{8})">
   5780           <leadingDigits>18[2-579]</leadingDigits>
   5781           <format>$1 $2</format>
   5782         </numberFormat>
   5783         <numberFormat pattern="(700)(\d{4})(\d{4})">
   5784           <leadingDigits>700</leadingDigits>
   5785           <format>$1 $2 $3</format>
   5786         </numberFormat>
   5787       </availableFormats>
   5788       <generalDesc>
   5789         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
   5790              examined to see if it is valid with the 49 as part of the number. Due to the variable
   5791              length of German numbers, this test is hard to do. The national pattern is hence
   5792              stricter for numbers starting with 49, to try and remove the country code if the number
   5793              begins with 49 whenever possible. -->
   5794         <nationalNumberPattern>
   5795           [1-35-9]\d{3,14}|
   5796           4(?:
   5797             [0-8]\d{4,12}|
   5798             9(?:
   5799               [0-37]\d|
   5800               4(?:
   5801                 [1-35-8]|
   5802                 4\d?
   5803               )|
   5804               5\d{1,2}|
   5805               6[1-8]\d?
   5806             )\d{2,7}
   5807           )
   5808         </nationalNumberPattern>
   5809         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
   5810       </generalDesc>
   5811       <fixedLine>
   5812         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
   5813              don't seem to respect this. The max-length is hence extended. -->
   5814         <nationalNumberPattern>
   5815           [246]\d{5,13}|
   5816           3(?:
   5817             [03-9]\d{4,13}|
   5818             2\d{9}
   5819           )|
   5820           5(?:
   5821             0[2-8]|
   5822             [1256]\d|
   5823             [38][0-8]|
   5824             4\d{0,2}|
   5825             [79][0-7]
   5826           )\d{3,11}|
   5827           7(?:
   5828             0[2-8]|
   5829             [1-9]\d
   5830           )\d{3,10}|
   5831           8(?:
   5832             0[2-9]|
   5833             [1-9]\d
   5834           )\d{3,10}|
   5835           9(?:
   5836             0[6-9]\d{3,10}|
   5837             1\d{4,12}|
   5838             [2-9]\d{4,11}
   5839           )
   5840         </nationalNumberPattern>
   5841         <exampleNumber>30123456</exampleNumber>
   5842       </fixedLine>
   5843       <mobile>
   5844         <!-- According to
   5845              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
   5846              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
   5847              -->
   5848         <nationalNumberPattern>
   5849           1(?:
   5850             5[0-2579]\d{8}|
   5851             6[023]\d{7,8}|
   5852             7(?:
   5853               [0-57-9]\d?|
   5854               6\d
   5855             )\d{7}
   5856           )
   5857         </nationalNumberPattern>
   5858         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   5859         <exampleNumber>15123456789</exampleNumber>
   5860       </mobile>
   5861       <pager>
   5862         <nationalNumberPattern>
   5863           16(?:
   5864             4\d{1,10}|
   5865             [89]\d{1,11}
   5866           )
   5867         </nationalNumberPattern>
   5868         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
   5869         <exampleNumber>16412345</exampleNumber>
   5870       </pager>
   5871       <tollFree>
   5872         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
   5873         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
   5874         <exampleNumber>8001234567890</exampleNumber>
   5875       </tollFree>
   5876       <premiumRate>
   5877         <nationalNumberPattern>
   5878           900(?:
   5879             [135]\d{6}|
   5880             9\d{7}
   5881           )
   5882         </nationalNumberPattern>
   5883         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   5884         <exampleNumber>9001234567</exampleNumber>
   5885       </premiumRate>
   5886       <sharedCost>
   5887         <nationalNumberPattern>180\d{5,11}</nationalNumberPattern>
   5888         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
   5889         <exampleNumber>18012345</exampleNumber>
   5890       </sharedCost>
   5891       <personalNumber>
   5892         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
   5893         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   5894         <exampleNumber>70012345678</exampleNumber>
   5895       </personalNumber>
   5896       <uan>
   5897         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
   5898              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
   5899              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
   5900         <nationalNumberPattern>
   5901           18(?:
   5902             1\d{5,11}|
   5903             [2-9]\d{8}
   5904           )
   5905         </nationalNumberPattern>
   5906         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
   5907         <exampleNumber>18500123456</exampleNumber>
   5908       </uan>
   5909       <voicemail>
   5910         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
   5911         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
   5912         <exampleNumber>177991234567</exampleNumber>
   5913       </voicemail>
   5914       <shortCode>
   5915         <!-- Public Service Number for German administration. -->
   5916         <nationalNumberPattern>115</nationalNumberPattern>
   5917         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5918         <exampleNumber>115</exampleNumber>
   5919       </shortCode>
   5920       <emergency>
   5921         <nationalNumberPattern>11[02]</nationalNumberPattern>
   5922         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   5923         <exampleNumber>112</exampleNumber>
   5924       </emergency>
   5925     </territory>
   5926 
   5927     <!-- Djibouti -->
   5928     <!-- http://www.itu.int/oth/T020200003A/en -->
   5929     <territory id="DJ" countryCode="253" internationalPrefix="00">
   5930       <availableFormats>
   5931         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   5932           <format>$1 $2 $3 $4</format>
   5933         </numberFormat>
   5934       </availableFormats>
   5935       <generalDesc>
   5936         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
   5937         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5938       </generalDesc>
   5939       <fixedLine>
   5940         <!-- Includes "Numro long CDMA fixe" numbers. -->
   5941         <nationalNumberPattern>
   5942           2(?:
   5943             1[2-5]|
   5944             7[45]
   5945           )\d{5}
   5946         </nationalNumberPattern>
   5947         <exampleNumber>21360003</exampleNumber>
   5948       </fixedLine>
   5949       <mobile>
   5950         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
   5951         <exampleNumber>77831001</exampleNumber>
   5952       </mobile>
   5953       <emergency>
   5954         <nationalNumberPattern>1[78]</nationalNumberPattern>
   5955         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   5956         <exampleNumber>17</exampleNumber>
   5957       </emergency>
   5958     </territory>
   5959 
   5960     <!-- Denmark -->
   5961     <!-- http://www.dba.erhvervsstyrelsen.dk/numbering-lists -->
   5962     <territory id="DK" countryCode="45" internationalPrefix="00">
   5963       <availableFormats>
   5964         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   5965           <format>$1 $2 $3 $4</format>
   5966         </numberFormat>
   5967       </availableFormats>
   5968       <generalDesc>
   5969         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
   5970         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5971       </generalDesc>
   5972       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
   5973            safe. -->
   5974       <fixedLine>
   5975         <nationalNumberPattern>
   5976           (?:
   5977             [2-7]\d|
   5978             8[126-9]|
   5979             9[126-9]
   5980           )\d{6}
   5981         </nationalNumberPattern>
   5982         <exampleNumber>32123456</exampleNumber>
   5983       </fixedLine>
   5984       <mobile>
   5985         <nationalNumberPattern>
   5986           (?:
   5987             [2-7]\d|
   5988             8[126-9]|
   5989             9[126-9]
   5990           )\d{6}
   5991         </nationalNumberPattern>
   5992         <exampleNumber>20123456</exampleNumber>
   5993       </mobile>
   5994       <tollFree>
   5995         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   5996         <exampleNumber>80123456</exampleNumber>
   5997       </tollFree>
   5998       <premiumRate>
   5999         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
   6000         <exampleNumber>90123456</exampleNumber>
   6001       </premiumRate>
   6002       <emergency>
   6003         <nationalNumberPattern>112</nationalNumberPattern>
   6004         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   6005         <exampleNumber>112</exampleNumber>
   6006       </emergency>
   6007     </territory>
   6008 
   6009     <!-- Dominica -->
   6010     <!-- http://www.itu.int/oth/T020200003B/en -->
   6011     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
   6012                internationalPrefix="011">
   6013       <generalDesc>
   6014         <!-- NANPA country - uses US formatting rules -->
   6015         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
   6016         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   6017       </generalDesc>
   6018       <fixedLine>
   6019         <nationalNumberPattern>
   6020           767(?:
   6021             2(?:
   6022               55|
   6023               66
   6024             )|
   6025             4(?:
   6026               2[01]|
   6027               4[0-25-9]
   6028             )|
   6029             50[0-4]
   6030           )\d{4}
   6031         </nationalNumberPattern>
   6032         <exampleNumber>7674201234</exampleNumber>
   6033       </fixedLine>
   6034       <mobile>
   6035         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
   6036         <nationalNumberPattern>
   6037           767(?:
   6038             2(?:
   6039               [234689]5|
   6040               7[5-7]
   6041             )|
   6042             31[5-7]|
   6043             61[2-7]
   6044           )\d{4}
   6045         </nationalNumberPattern>
   6046         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6047         <exampleNumber>7672251234</exampleNumber>
   6048       </mobile>
   6049       <tollFree>
   6050         <nationalNumberPattern>
   6051           8(?:
   6052             00|
   6053             55|
   6054             66|
   6055             77|
   6056             88
   6057           )[2-9]\d{6}
   6058         </nationalNumberPattern>
   6059         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6060         <exampleNumber>8002123456</exampleNumber>
   6061       </tollFree>
   6062       <premiumRate>
   6063         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   6064         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6065         <exampleNumber>9002123456</exampleNumber>
   6066       </premiumRate>
   6067       <personalNumber>
   6068         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   6069         <nationalNumberPattern>
   6070           5(?:
   6071             00|
   6072             33|
   6073             44
   6074           )[2-9]\d{6}
   6075         </nationalNumberPattern>
   6076         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6077         <exampleNumber>5002345678</exampleNumber>
   6078       </personalNumber>
   6079       <emergency>
   6080         <!-- http://barbados.usembassy.gov/emergency-dominica.html -->
   6081         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1102.html -->
   6082         <nationalNumberPattern>
   6083           333|
   6084           9(?:
   6085             11|
   6086             99
   6087           )
   6088         </nationalNumberPattern>
   6089         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   6090         <exampleNumber>999</exampleNumber>
   6091       </emergency>
   6092     </territory>
   6093 
   6094     <!-- Dominican Rep. -->
   6095     <!-- http://www.itu.int/oth/T020200003C/en -->
   6096     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
   6097                internationalPrefix="011">
   6098       <generalDesc>
   6099         <!-- NANPA country - uses US formatting rules -->
   6100         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
   6101         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   6102       </generalDesc>
   6103       <fixedLine>
   6104         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
   6105              prefixes in the document are classified as such by excluding them from the fixed-line
   6106              ranges, but other than this have a generic rule. -->
   6107         <nationalNumberPattern>
   6108           8(?:
   6109             [04]9[2-9]\d{6}|
   6110             29(?:
   6111               2(?:
   6112                 [0-59]\d|
   6113                 6[04-9]|
   6114                 7[0-27]|
   6115                 8[0237-9]
   6116               )|
   6117               3(?:
   6118                 [0-35-9]\d|
   6119                 4[7-9]
   6120               )|
   6121               [45]\d{2}|
   6122               6(?:
   6123                 [0-27-9]\d|
   6124                 [3-5][1-9]|
   6125                 6[0135-8]
   6126               )|
   6127               7(?:
   6128                 0[013-9]|
   6129                 [1-37]\d|
   6130                 4[1-35689]|
   6131                 5[1-4689]|
   6132                 6[1-57-9]|
   6133                 8[1-79]|
   6134                 9[1-8]
   6135               )|
   6136               8(?:
   6137                 0[146-9]|
   6138                 1[0-48]|
   6139                 [248]\d|
   6140                 3[1-79]|
   6141                 5[01589]|
   6142                 6[013-68]|
   6143                 7[124-8]|
   6144                 9[0-8]
   6145               )|
   6146               9(?:
   6147                 [0-24]\d|
   6148                 3[02-46-9]|
   6149                 5[0-79]|
   6150                 60|
   6151                 7[0169]|
   6152                 8[57-9]|
   6153                 9[02-9]
   6154               )
   6155             )\d{4}
   6156           )
   6157         </nationalNumberPattern>
   6158         <exampleNumber>8092345678</exampleNumber>
   6159       </fixedLine>
   6160       <mobile>
   6161         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
   6162         <exampleNumber>8092345678</exampleNumber>
   6163       </mobile>
   6164       <tollFree>
   6165         <nationalNumberPattern>
   6166           8(?:
   6167             00|
   6168             55|
   6169             66|
   6170             77|
   6171             88
   6172           )[2-9]\d{6}
   6173         </nationalNumberPattern>
   6174         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6175         <exampleNumber>8002123456</exampleNumber>
   6176       </tollFree>
   6177       <premiumRate>
   6178         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   6179         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6180         <exampleNumber>9002123456</exampleNumber>
   6181       </premiumRate>
   6182       <personalNumber>
   6183         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   6184         <nationalNumberPattern>
   6185           5(?:
   6186             00|
   6187             33|
   6188             44
   6189           )[2-9]\d{6}
   6190         </nationalNumberPattern>
   6191         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6192         <exampleNumber>5002345678</exampleNumber>
   6193       </personalNumber>
   6194       <emergency>
   6195         <nationalNumberPattern>
   6196           112|
   6197           911
   6198         </nationalNumberPattern>
   6199         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   6200         <exampleNumber>911</exampleNumber>
   6201       </emergency>
   6202    </territory>
   6203 
   6204     <!-- Algeria -->
   6205     <!-- http://www.itu.int/oth/T0202000003/en -->
   6206     <!-- www.arpt.dz -->
   6207     <territory id="DZ" countryCode="213" internationalPrefix="00"
   6208                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   6209       <availableFormats>
   6210         <!-- Formatting from www.pagesjaunes-dz.com. -->
   6211         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
   6212           <leadingDigits>[1-4]</leadingDigits>
   6213           <format>$1 $2 $3 $4</format>
   6214         </numberFormat>
   6215         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
   6216           <leadingDigits>[5-8]</leadingDigits>
   6217           <format>$1 $2 $3 $4</format>
   6218         </numberFormat>
   6219         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
   6220           <leadingDigits>9</leadingDigits>
   6221           <format>$1 $2 $3 $4</format>
   6222         </numberFormat>
   6223       </availableFormats>
   6224       <generalDesc>
   6225         <nationalNumberPattern>
   6226           (?:
   6227             [1-4]|
   6228             [5-9]\d
   6229           )\d{7}
   6230         </nationalNumberPattern>
   6231         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   6232       </generalDesc>
   6233       <fixedLine>
   6234         <!-- We include the VSAT lines here. -->
   6235         <nationalNumberPattern>
   6236           (?:
   6237             1\d|
   6238             2[014-79]|
   6239             3[0-8]|
   6240             4[0135689]
   6241           )\d{6}|
   6242           9619\d{5}
   6243         </nationalNumberPattern>
   6244         <exampleNumber>12345678</exampleNumber>
   6245       </fixedLine>
   6246       <mobile>
   6247         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
   6248              Mobilis Algeria provided it, and 54 for Nedjma.-->
   6249         <nationalNumberPattern>
   6250           (?:
   6251             5[4-6]|
   6252             7[7-9]
   6253           )\d{7}|
   6254           6(?:
   6255             [569]\d|
   6256             70
   6257           )\d{6}
   6258         </nationalNumberPattern>
   6259         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6260         <exampleNumber>551234567</exampleNumber>
   6261       </mobile>
   6262       <tollFree>
   6263         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   6264         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6265         <exampleNumber>800123456</exampleNumber>
   6266       </tollFree>
   6267       <premiumRate>
   6268         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
   6269         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6270         <exampleNumber>808123456</exampleNumber>
   6271       </premiumRate>
   6272       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
   6273            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
   6274            -->
   6275       <sharedCost>
   6276         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
   6277         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6278         <exampleNumber>801123456</exampleNumber>
   6279       </sharedCost>
   6280       <voip>
   6281         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
   6282         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6283         <exampleNumber>983123456</exampleNumber>
   6284       </voip>
   6285       <emergency>
   6286         <nationalNumberPattern>1[47]</nationalNumberPattern>
   6287         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   6288         <exampleNumber>17</exampleNumber>
   6289       </emergency>
   6290    </territory>
   6291 
   6292     <!-- Ecuador -->
   6293     <!-- http://en.wikipedia.org/wiki/+593 -->
   6294     <!-- http://www.conatel.gob.ec/site_conatel/index.php?option=com_content&view=category&layout=blog&id=52&Itemid=153
   6295          -->
   6296     <!-- http://www.itu.int/oth/T020200003D/en -->
   6297     <territory id="EC" countryCode="593" internationalPrefix="00"
   6298                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
   6299       <availableFormats>
   6300         <numberFormat pattern="(\d)(\d{3})(\d{4})">
   6301           <leadingDigits>
   6302             [247]|
   6303             [356][2-8]
   6304           </leadingDigits>
   6305           <format>$1 $2-$3</format>
   6306           <intlFormat>$1-$2-$3</intlFormat>
   6307         </numberFormat>
   6308         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
   6309              change on the www.conatel.gob.ec site. -->
   6310         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
   6311           <leadingDigits>9</leadingDigits>
   6312           <format>$1 $2 $3</format>
   6313         </numberFormat>
   6314         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
   6315           <leadingDigits>1</leadingDigits>
   6316           <format>$1 $2 $3</format>
   6317         </numberFormat>
   6318       </availableFormats>
   6319       <generalDesc>
   6320         <nationalNumberPattern>
   6321           1\d{9,10}|
   6322           [2-8]\d{7}|
   6323           9\d{8}
   6324         </nationalNumberPattern>
   6325         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   6326       </generalDesc>
   6327       <fixedLine>
   6328         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
   6329         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   6330         <exampleNumber>22123456</exampleNumber>
   6331       </fixedLine>
   6332       <mobile>
   6333         <nationalNumberPattern>
   6334           9(?:
   6335             39|
   6336             [4-6][89]|
   6337             7[7-9]|
   6338             [89]\d
   6339           )\d{6}
   6340         </nationalNumberPattern>
   6341         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6342         <exampleNumber>991234567</exampleNumber>
   6343       </mobile>
   6344       <tollFree>
   6345         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
   6346         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   6347         <exampleNumber>18001234567</exampleNumber>
   6348       </tollFree>
   6349       <voip>
   6350         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
   6351         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   6352         <exampleNumber>28901234</exampleNumber>
   6353       </voip>
   6354       <emergency>
   6355         <nationalNumberPattern>
   6356           1(?:
   6357             0[12]|
   6358             12
   6359           )|
   6360           911
   6361         </nationalNumberPattern>
   6362         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   6363         <exampleNumber>911</exampleNumber>
   6364       </emergency>
   6365     </territory>
   6366 
   6367     <!-- Estonia -->
   6368     <!-- http://www.itu.int/oth/T0202000043/en -->
   6369     <!-- http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm -->
   6370     <territory id="EE" countryCode="372" internationalPrefix="00">
   6371       <availableFormats>
   6372         <numberFormat pattern="([3-79]\d{2})(\d{4})">
   6373           <leadingDigits>
   6374             [369]|
   6375             4[3-8]|
   6376             5(?:
   6377               [0-2]|
   6378               5[0-478]|
   6379               6[45]
   6380             )|
   6381             7[1-9]
   6382           </leadingDigits>
   6383           <leadingDigits>
   6384             [369]|
   6385             4[3-8]|
   6386             5(?:
   6387               [02]|
   6388               1(?:
   6389                 [0-8]|
   6390                 95
   6391               )|
   6392               5[0-478]|
   6393               6(?:
   6394                 4[0-4]|
   6395                 5[1-589]
   6396               )
   6397             )|
   6398             7[1-9]
   6399           </leadingDigits>
   6400           <format>$1 $2</format>
   6401         </numberFormat>
   6402         <numberFormat pattern="(70)(\d{2})(\d{4})">
   6403           <leadingDigits>70</leadingDigits>
   6404           <format>$1 $2 $3</format>
   6405         </numberFormat>
   6406         <numberFormat pattern="(8000)(\d{3})(\d{3})">
   6407           <leadingDigits>800</leadingDigits>
   6408           <leadingDigits>8000</leadingDigits>
   6409           <format>$1 $2 $3</format>
   6410         </numberFormat>
   6411         <numberFormat pattern="([458]\d{3})(\d{3,4})">
   6412           <leadingDigits>
   6413             40|
   6414             5|
   6415             8(?:
   6416               00|
   6417               [1-5]
   6418             )
   6419           </leadingDigits>
   6420           <leadingDigits>
   6421             40|
   6422             5|
   6423             8(?:
   6424               00[1-9]|
   6425               [1-5]
   6426             )
   6427           </leadingDigits>
   6428           <format>$1 $2</format>
   6429         </numberFormat>
   6430       </availableFormats>
   6431       <generalDesc>
   6432         <nationalNumberPattern>
   6433           1\d{3,4}|
   6434           [3-9]\d{6,7}|
   6435           800\d{6,7}
   6436         </nationalNumberPattern>
   6437         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   6438       </generalDesc>
   6439       <noInternationalDialling>
   6440         <nationalNumberPattern>
   6441           1\d{3,4}|
   6442           800[2-9]\d{3}
   6443         </nationalNumberPattern>
   6444         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
   6445         <exampleNumber>8002123</exampleNumber>
   6446       </noInternationalDialling>
   6447       <fixedLine>
   6448         <!-- Supporting eFax numbers here as well. -->
   6449         <nationalNumberPattern>
   6450           (?:
   6451             3[23589]|
   6452             4(?:
   6453               0\d|
   6454               [3-8]
   6455             )|
   6456             6\d|
   6457             7[1-9]|
   6458             88
   6459           )\d{5}
   6460         </nationalNumberPattern>
   6461         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   6462         <exampleNumber>3212345</exampleNumber>
   6463       </fixedLine>
   6464       <mobile>
   6465         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
   6466              numbers are 8 digits. -->
   6467         <nationalNumberPattern>
   6468           (?:
   6469             5\d|
   6470             8[1-5]
   6471           )\d{6}|
   6472           5(?:
   6473             [02]\d{2}|
   6474             1(?:
   6475               [0-8]\d|
   6476               95
   6477             )|
   6478             5[0-478]\d|
   6479             64[0-4]|
   6480             65[1-589]
   6481           )\d{3}
   6482         </nationalNumberPattern>
   6483         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   6484         <exampleNumber>51234567</exampleNumber>
   6485       </mobile>
   6486       <tollFree>
   6487         <nationalNumberPattern>
   6488           800(?:
   6489             0\d{3}|
   6490             1\d|
   6491             [2-9]
   6492           )\d{3}
   6493         </nationalNumberPattern>
   6494         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   6495         <exampleNumber>80012345</exampleNumber>
   6496       </tollFree>
   6497       <premiumRate>
   6498         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
   6499         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   6500         <exampleNumber>9001234</exampleNumber>
   6501       </premiumRate>
   6502       <personalNumber>
   6503         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
   6504         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   6505         <exampleNumber>70012345</exampleNumber>
   6506       </personalNumber>
   6507       <uan>
   6508         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
   6509              included here. -->
   6510         <nationalNumberPattern>
   6511           1(?:
   6512             2[01245]|
   6513             3[0-6]|
   6514             4[1-489]|
   6515             5[0-59]|
   6516             6[1-46-9]|
   6517             7[0-27-9]|
   6518             8[189]|
   6519             9[012]
   6520           )\d{1,2}
   6521         </nationalNumberPattern>
   6522         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
   6523         <exampleNumber>12123</exampleNumber>
   6524       </uan>
   6525       <shortCode>
   6526         <nationalNumberPattern>
   6527           1(?:
   6528             1[13-9]|
   6529             [2-9]\d
   6530           )
   6531         </nationalNumberPattern>
   6532         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   6533         <exampleNumber>116</exampleNumber>
   6534       </shortCode>
   6535       <emergency>
   6536         <nationalNumberPattern>11[02]</nationalNumberPattern>
   6537         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   6538         <exampleNumber>112</exampleNumber>
   6539       </emergency>
   6540     </territory>
   6541 
   6542     <!-- Egypt -->
   6543     <!-- http://www.itu.int/oth/T020200003E/en -->
   6544     <territory id="EG" countryCode="20" internationalPrefix="00"
   6545                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   6546        <availableFormats>
   6547          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
   6548               or 19. These are formatted without national prefix, as a block, so do not need to be
   6549               listed here. -->
   6550          <numberFormat pattern="(\d)(\d{7,8})">
   6551            <leadingDigits>[23]</leadingDigits>
   6552            <format>$1 $2</format>
   6553          </numberFormat>
   6554          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   6555            <leadingDigits>
   6556              1[012]|
   6557              [89]00
   6558            </leadingDigits>
   6559            <format>$1 $2 $3</format>
   6560          </numberFormat>
   6561          <numberFormat pattern="(\d{2})(\d{6,7})">
   6562            <leadingDigits>
   6563              1(?:
   6564                3|
   6565                5[23]
   6566              )|
   6567              [4-6]|
   6568              [89][2-9]
   6569            </leadingDigits>
   6570            <format>$1 $2</format>
   6571          </numberFormat>
   6572        </availableFormats>
   6573       <generalDesc>
   6574         <nationalNumberPattern>
   6575           1\d{4,9}|
   6576           [2456]\d{8}|
   6577           3\d{7}|
   6578           [89]\d{8,9}
   6579         </nationalNumberPattern>
   6580         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   6581       </generalDesc>
   6582       <fixedLine>
   6583         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
   6584              that the plan says numbers starting with 15 should be followed by seven digit
   6585              subscriber numbers, but all numbers we have found online are in fact six digit.
   6586              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
   6587              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
   6588              092 and with 5 and 6 for 96. -->
   6589         <nationalNumberPattern>
   6590           (?:
   6591             1(
   6592               3[23]\d|
   6593               5[23]
   6594             )|
   6595             2[2-4]\d{2}|
   6596             3\d{2}|
   6597             4(?:
   6598               0[2-5]|
   6599               [578][23]|
   6600               64
   6601             )\d|
   6602             5(?:
   6603               0[2-7]|
   6604               [57][23]
   6605             )\d|
   6606             6[24-689]3\d|
   6607             8(?:
   6608               2[2-57]|
   6609               4[26]|
   6610               6[237]|
   6611               8[2-4]
   6612             )\d|
   6613             9(?:
   6614               2[27]|
   6615               3[24]|
   6616               52|
   6617               6[2356]|
   6618               7[2-4]
   6619             )\d
   6620           )\d{5}|
   6621           1[69]\d{3}
   6622         </nationalNumberPattern>
   6623         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   6624         <exampleNumber>234567890</exampleNumber>
   6625       </fixedLine>
   6626       <mobile>
   6627         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
   6628              started allocating numbers beginning with these prefixes, along with 115 from numbers
   6629              found online. -->
   6630         <nationalNumberPattern>
   6631           1(?:
   6632             0[01269]|
   6633             1[1245]|
   6634             2[0-278]
   6635           )\d{7}
   6636         </nationalNumberPattern>
   6637         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6638         <exampleNumber>1001234567</exampleNumber>
   6639       </mobile>
   6640       <tollFree>
   6641         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   6642         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6643         <exampleNumber>8001234567</exampleNumber>
   6644       </tollFree>
   6645       <premiumRate>
   6646         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   6647         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6648         <exampleNumber>9001234567</exampleNumber>
   6649       </premiumRate>
   6650       <emergency>
   6651         <nationalNumberPattern>
   6652           1(?:
   6653             2[23]|
   6654             80
   6655           )
   6656         </nationalNumberPattern>
   6657         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   6658         <exampleNumber>122</exampleNumber>
   6659       </emergency>
   6660     </territory>
   6661 
   6662     <!-- Western Sahara -->
   6663     <!-- Country calling code shared with Morocco (MA). -->
   6664     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
   6665     <!-- http://www.itu.int/oth/T0202000090/en -->
   6666     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
   6667                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   6668       <!-- Uses MA formatting rules and shares general description
   6669            (non-geographical numbers for Morocco are still valid). -->
   6670       <generalDesc>
   6671         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
   6672         <!-- Closed numbering plan. -->
   6673         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6674       </generalDesc>
   6675       <fixedLine>
   6676         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
   6677         <exampleNumber>528812345</exampleNumber>
   6678       </fixedLine>
   6679       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
   6680            numbers to be recognized as available from within Western Sahara. -->
   6681       <mobile>
   6682         <!-- Prefixes 60[1-578], 62[0147-9], 63[04-8] and 68[01] are from numbers found online,
   6683              bug-reports, and information provided directly by the carriers. -->
   6684         <nationalNumberPattern>
   6685           6(?:
   6686             0[0-8]|
   6687             [14-7]\d|
   6688             2[0-46-9]|
   6689             3[03-8]|
   6690             8[01]|
   6691             99
   6692           )\d{6}
   6693         </nationalNumberPattern>
   6694         <exampleNumber>650123456</exampleNumber>
   6695       </mobile>
   6696       <tollFree>
   6697         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   6698         <exampleNumber>801234567</exampleNumber>
   6699       </tollFree>
   6700       <premiumRate>
   6701         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
   6702         <exampleNumber>891234567</exampleNumber>
   6703       </premiumRate>
   6704       <emergency>
   6705         <nationalNumberPattern>
   6706           1(?:
   6707             [59]|
   6708             77
   6709           )
   6710         </nationalNumberPattern>
   6711         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   6712         <exampleNumber>15</exampleNumber>
   6713       </emergency>
   6714     </territory>
   6715 
   6716     <!-- Eritrea -->
   6717     <!-- http://www.itu.int/oth/T0202000042/en -->
   6718     <territory id="ER" countryCode="291" internationalPrefix="00"
   6719                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   6720       <availableFormats>
   6721         <numberFormat pattern="(\d)(\d{3})(\d{3})">
   6722           <format>$1 $2 $3</format>
   6723         </numberFormat>
   6724       </availableFormats>
   6725       <generalDesc>
   6726         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
   6727         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   6728       </generalDesc>
   6729       <fixedLine>
   6730         <nationalNumberPattern>
   6731           1(?:
   6732             1[12568]|
   6733             20|
   6734             40|
   6735             55|
   6736             6[146]
   6737           )\d{4}|
   6738           8\d{6}
   6739         </nationalNumberPattern>
   6740         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
   6741       </fixedLine>
   6742       <mobile>
   6743         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
   6744              numbers or was in addition to them, so we support both here. -->
   6745         <nationalNumberPattern>
   6746           17[1-3]\d{4}|
   6747           7\d{6}
   6748         </nationalNumberPattern>
   6749         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   6750         <exampleNumber>7123456</exampleNumber>
   6751       </mobile>
   6752       <!-- No emergency numbers information can be found. -->
   6753     </territory>
   6754 
   6755     <!-- Spain -->
   6756     <!-- http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx -->
   6757     <territory id="ES" countryCode="34" internationalPrefix="00">
   6758       <availableFormats>
   6759         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
   6760           <format>$1 $2 $3 $4</format>
   6761         </numberFormat>
   6762       </availableFormats>
   6763       <generalDesc>
   6764         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
   6765         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6766       </generalDesc>
   6767       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
   6768            fixed-line ranges. -->
   6769       <fixedLine>
   6770         <nationalNumberPattern>
   6771           8(?:
   6772             [13]0|
   6773             [28][0-8]|
   6774             [47][1-9]|
   6775             5[01346-9]|
   6776             6[0457-9]
   6777           )\d{6}|
   6778           9(?:
   6779             [1238][0-8]\d{6}|
   6780             4[1-9]\d{6}|
   6781             5\d{7}|
   6782             6(?:
   6783               [0-8]\d{6}|
   6784               9(?:
   6785                 0(?:
   6786                   [0-57-9]\d{4}|
   6787                   6(?:
   6788                     0[0-8]|
   6789                     1[1-9]|
   6790                     [2-9]\d
   6791                   )\d{2}
   6792                 )|
   6793                 [1-9]\d{5}
   6794               )
   6795             )|
   6796             7(?:
   6797               [124-9]\d{2}|
   6798               3(?:
   6799                 [0-8]\d|
   6800                 9[1-9]
   6801               )
   6802             )\d{4}
   6803           )
   6804         </nationalNumberPattern>
   6805         <exampleNumber>810123456</exampleNumber>
   6806       </fixedLine>
   6807       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
   6808            information received from Lleida Networks. -->
   6809       <mobile>
   6810         <nationalNumberPattern>
   6811           (?:
   6812             6\d{6}|
   6813             7[1-4]\d{5}|
   6814             9(?:
   6815               6906(?:
   6816                 09|
   6817                 10
   6818               )|
   6819               7390\d{2}
   6820             )
   6821           )\d{2}
   6822         </nationalNumberPattern>
   6823         <exampleNumber>612345678</exampleNumber>
   6824       </mobile>
   6825       <tollFree>
   6826         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
   6827         <exampleNumber>800123456</exampleNumber>
   6828       </tollFree>
   6829       <premiumRate>
   6830         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
   6831         <exampleNumber>803123456</exampleNumber>
   6832       </premiumRate>
   6833       <sharedCost>
   6834         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
   6835         <exampleNumber>901123456</exampleNumber>
   6836       </sharedCost>
   6837       <personalNumber>
   6838         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
   6839         <exampleNumber>701234567</exampleNumber>
   6840       </personalNumber>
   6841       <!-- Modelling non-geographic nomadic numbers as UAN. -->
   6842       <uan>
   6843         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
   6844         <exampleNumber>511234567</exampleNumber>
   6845       </uan>
   6846       <emergency>
   6847         <!-- We include the Civil Guard here since it seems to perform similar duties as the police
   6848              force. -->
   6849         <nationalNumberPattern>
   6850           0(?:
   6851             [69][12]|
   6852             8[05]
   6853           )|
   6854           112
   6855         </nationalNumberPattern>
   6856         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   6857         <exampleNumber>112</exampleNumber>
   6858       </emergency>
   6859     </territory>
   6860 
   6861     <!-- Ethiopia -->
   6862     <!-- http://www.itu.int/oth/T0202000044/en -->
   6863     <territory id="ET" countryCode="251" internationalPrefix="00"
   6864                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   6865       <availableFormats>
   6866         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
   6867           <format>$1 $2 $3</format>
   6868         </numberFormat>
   6869       </availableFormats>
   6870       <generalDesc>
   6871         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
   6872         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   6873       </generalDesc>
   6874       <fixedLine>
   6875         <nationalNumberPattern>
   6876           (?:
   6877             11(?:
   6878               1(?:
   6879                 1[124]|
   6880                 2[2-57]|
   6881                 3[1-5]|
   6882                 5[5-8]|
   6883                 8[6-8]
   6884               )|
   6885               2(?:
   6886                 13|
   6887                 3[6-8]|
   6888                 5[89]|
   6889                 7[05-9]|
   6890                 8[2-6]
   6891               )|
   6892               3(?:
   6893                 2[01]|
   6894                 3[0-289]|
   6895                 4[1289]|
   6896                 7[1-4]|
   6897                 87
   6898               )|
   6899               4(?:
   6900                 1[69]|
   6901                 3[2-49]|
   6902                 4[0-3]|
   6903                 6[5-8]
   6904               )|
   6905               5(?:
   6906                 1[57]|
   6907                 44|
   6908                 5[0-4]
   6909               )|
   6910               6(?:
   6911                 18|
   6912                 2[69]|
   6913                 4[5-7]|
   6914                 5[1-5]|
   6915                 6[0-59]|
   6916                 8[015-8]
   6917               )
   6918             )|
   6919             2(?:
   6920               2(?:
   6921                 11[1-9]|
   6922                 22[0-7]|
   6923                 33\d|
   6924                 44[1467]|
   6925                 66[1-68]
   6926               )|
   6927               5(?:
   6928                 11[124-6]|
   6929                 33[2-8]|
   6930                 44[1467]|
   6931                 55[14]|
   6932                 66[1-3679]|
   6933                 77[124-79]|
   6934                 880
   6935               )
   6936             )|
   6937             3(?:
   6938               3(?:
   6939                 11[0-46-8]|
   6940                 22[0-6]|
   6941                 33[0134689]|
   6942                 44[04]|
   6943                 55[0-6]|
   6944                 66[01467]
   6945               )|
   6946               4(?:
   6947                 44[0-8]|
   6948                 55[0-69]|
   6949                 66[0-3]|
   6950                 77[1-5]
   6951               )
   6952             )|
   6953             4(?:
   6954               6(?:
   6955                 22[0-24-7]|
   6956                 33[1-5]|
   6957                 44[13-69]|
   6958                 55[14-689]|
   6959                 660|
   6960                 88[1-4]
   6961               )|
   6962               7(?:
   6963                 11[1-9]|
   6964                 22[1-9]|
   6965                 33[13-7]|
   6966                 44[13-6]|
   6967                 55[1-689]
   6968               )
   6969             )|
   6970             5(?:
   6971               7(?:
   6972                 227|
   6973                 55[05]|
   6974                 (?:
   6975                   66|
   6976                   77
   6977                 )[14-8]
   6978               )|
   6979               8(?:
   6980                 11[149]|
   6981                 22[013-79]|
   6982                 33[0-68]|
   6983                 44[013-8]|
   6984                 550|
   6985                 66[1-5]|
   6986                 77\d
   6987               )
   6988             )
   6989           )\d{4}
   6990         </nationalNumberPattern>
   6991         <exampleNumber>111112345</exampleNumber>
   6992       </fixedLine>
   6993       <mobile>
   6994         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
   6995              numbers are visible online than are reported in the ITU document. This pattern is
   6996              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
   6997              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
   6998         <nationalNumberPattern>
   6999           9(?:
   7000             [1-3]\d|
   7001             5[89]
   7002           )\d{6}
   7003         </nationalNumberPattern>
   7004         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7005         <exampleNumber>911234567</exampleNumber>
   7006       </mobile>
   7007       <emergency>
   7008         <!-- http://www.addisculturetourism.gov.et/en/component/k2/itemlist/category/64.html?layout=category -->
   7009         <!-- http://www.netglobers.com/africa/ethiopia-emergency-numbers-in-ethiopia-.html -->
   7010         <!-- http://www.addisababacity.gov.et/index.php?option=com_content&view=article&id=139&Itemid=136 -->
   7011         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   7012         <!-- The 91, 92, and 93 numbers are for the city of Addis Ababa. -->
   7013         <nationalNumberPattern>
   7014           9(?:
   7015             11?|
   7016             [23]|
   7017             9[17]
   7018           )
   7019         </nationalNumberPattern>
   7020         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   7021         <exampleNumber>991</exampleNumber>
   7022       </emergency>
   7023     </territory>
   7024 
   7025     <!-- Finland -->
   7026     <!-- Metadata shared with land (AX) -->
   7027     <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html -->
   7028     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
   7029                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true">
   7030       <availableFormats>
   7031         <numberFormat pattern="(\d{3})(\d{3,7})">
   7032           <leadingDigits>
   7033             (?:
   7034               [1-3]00|
   7035               [6-8]0
   7036             )
   7037           </leadingDigits>
   7038           <format>$1 $2</format>
   7039         </numberFormat>
   7040         <numberFormat pattern="(\d{2})(\d{4,10})">
   7041           <leadingDigits>
   7042             2[09]|
   7043             [14]|
   7044             50|
   7045             7[135]
   7046           </leadingDigits>
   7047           <format>$1 $2</format>
   7048         </numberFormat>
   7049         <numberFormat pattern="(\d)(\d{4,11})">
   7050           <leadingDigits>
   7051             [25689][1-8]|
   7052             3
   7053           </leadingDigits>
   7054           <format>$1 $2</format>
   7055         </numberFormat>
   7056       </availableFormats>
   7057       <generalDesc>
   7058         <nationalNumberPattern>
   7059           1\d{4,11}|
   7060           [2-9]\d{4,10}
   7061         </nationalNumberPattern>
   7062         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   7063       </generalDesc>
   7064       <noInternationalDialling>
   7065         <!-- According to the national numbering plan, service numbers are in general not accessible
   7066              from abroad, although 600/700/800 numbers may be. -->
   7067         <nationalNumberPattern>
   7068           [13]00\d{3,7}|
   7069           2(?:
   7070             0(?:
   7071               0\d{3,7}|
   7072               2[023]\d{1,6}|
   7073               9[89]\d{1,6}
   7074             )
   7075           )|
   7076           60(?:
   7077             [12]\d{5,6}|
   7078             6\d{7}
   7079           )|
   7080           7(?:
   7081             1\d{7}|
   7082             3\d{8}|
   7083             5[03-9]\d{2,7}
   7084           )
   7085         </nationalNumberPattern>
   7086         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   7087         <exampleNumber>100123</exampleNumber>
   7088       </noInternationalDialling>
   7089       <fixedLine>
   7090         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
   7091              are listed under UAN. It also excludes land numbers. -->
   7092         <nationalNumberPattern>
   7093           1(?:
   7094             [3569][1-8]\d{3,9}|
   7095             [47]\d{5,10}
   7096           )|
   7097           2[1-8]\d{3,9}|
   7098           3(?:
   7099             [1-8]\d{3,9}|
   7100             9\d{4,8}
   7101           )|
   7102           [5689][1-8]\d{3,9}
   7103         </nationalNumberPattern>
   7104         <exampleNumber>1312345678</exampleNumber>
   7105       </fixedLine>
   7106       <mobile>
   7107         <nationalNumberPattern>
   7108           4\d{5,10}|
   7109           50\d{4,8}
   7110         </nationalNumberPattern>
   7111         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   7112         <exampleNumber>412345678</exampleNumber>
   7113       </mobile>
   7114       <tollFree>
   7115         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
   7116         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   7117         <exampleNumber>8001234567</exampleNumber>
   7118       </tollFree>
   7119       <premiumRate>
   7120         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
   7121         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   7122         <exampleNumber>600123456</exampleNumber>
   7123       </premiumRate>
   7124       <uan>
   7125         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
   7126              assigned to institutions such as universities, the national post, etc, where they are
   7127              not otherwise classified as toll-free or premium-rate numbers. -->
   7128         <nationalNumberPattern>
   7129           [13]0\d{4,8}|
   7130           2(?:
   7131             0(?:
   7132               [016-8]\d{3,7}|
   7133               [2-59]\d{2,7}
   7134             )|
   7135             9\d{4,8}
   7136           )|
   7137           60(?:
   7138             [12]\d{5,6}|
   7139             6\d{7}
   7140           )|
   7141           7(?:
   7142             1\d{7}|
   7143             3\d{8}|
   7144             5[03-9]\d{2,7}
   7145           )
   7146         </nationalNumberPattern>
   7147         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   7148         <exampleNumber>10112345</exampleNumber>
   7149       </uan>
   7150       <emergency>
   7151         <nationalNumberPattern>112</nationalNumberPattern>
   7152         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   7153         <exampleNumber>112</exampleNumber>
   7154       </emergency>
   7155     </territory>
   7156 
   7157     <!-- Fiji -->
   7158     <!-- http://www.itu.int/oth/T0202000048/en -->
   7159     <!-- www.tfl.com.fj -->
   7160     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
   7161                preferredInternationalPrefix="00" leadingZeroPossible="true">
   7162       <availableFormats>
   7163         <numberFormat pattern="(\d{3})(\d{4})">
   7164           <leadingDigits>[36-9]</leadingDigits>
   7165           <format>$1 $2</format>
   7166         </numberFormat>
   7167         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
   7168           <leadingDigits>0</leadingDigits>
   7169           <format>$1 $2 $3</format>
   7170         </numberFormat>
   7171       </availableFormats>
   7172       <generalDesc>
   7173         <nationalNumberPattern>
   7174           [36-9]\d{6}|
   7175           0\d{10}
   7176         </nationalNumberPattern>
   7177         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
   7178       </generalDesc>
   7179       <fixedLine>
   7180         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
   7181              online, including in the white pages. 35X and 85X were found in the exchanges listed on
   7182              www.tfl.com.fj. -->
   7183         <nationalNumberPattern>
   7184           (?:
   7185             3[0-5]|
   7186             6[25-7]|
   7187             8[58]
   7188           )\d{5}
   7189         </nationalNumberPattern>
   7190         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   7191         <exampleNumber>3212345</exampleNumber>
   7192       </fixedLine>
   7193       <mobile>
   7194         <!-- Adding 7[67], 8[367], and 9[034678] from numbers found online and numbers where SMSs
   7195              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
   7196         <nationalNumberPattern>
   7197           (?:
   7198             7[0-467]|
   7199             8[3467]|
   7200             9\d
   7201           )\d{5}
   7202         </nationalNumberPattern>
   7203         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   7204         <exampleNumber>7012345</exampleNumber>
   7205       </mobile>
   7206       <tollFree>
   7207         <!-- Information found on www.tfl.com.fj. It is not clear if these are internationally
   7208              diallable, or if so, how. -->
   7209         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
   7210         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   7211         <exampleNumber>08001234567</exampleNumber>
   7212       </tollFree>
   7213       <shortCode>
   7214         <!-- From the Emergency Numbers page on the Telecom Fiji website. -->
   7215         <nationalNumberPattern>
   7216           0(?:
   7217            04|
   7218            1[34]|
   7219            8[1-4]
   7220           )|
   7221           1(?:
   7222             0[1-3]|
   7223             [25]9
   7224           )|
   7225           2[289]|
   7226           30|
   7227           [45]4|
   7228           75|
   7229           913
   7230         </nationalNumberPattern>
   7231         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   7232         <exampleNumber>22</exampleNumber>
   7233       </shortCode>
   7234       <emergency>
   7235         <nationalNumberPattern>91[17]</nationalNumberPattern>
   7236         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   7237         <exampleNumber>911</exampleNumber>
   7238       </emergency>
   7239     </territory>
   7240 
   7241     <!-- Falkland Islands (Malvinas) -->
   7242     <!-- http://www.itu.int/oth/T0202000046/en -->
   7243     <territory id="FK" countryCode="500" internationalPrefix="00">
   7244       <!-- All numbers are formatted together, as a block. -->
   7245       <generalDesc>
   7246         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
   7247         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   7248       </generalDesc>
   7249       <fixedLine>
   7250         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
   7251         <exampleNumber>31234</exampleNumber>
   7252       </fixedLine>
   7253       <mobile>
   7254         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
   7255         <exampleNumber>51234</exampleNumber>
   7256       </mobile>
   7257       <shortCode>
   7258         <!-- Service numbers use 3 digit short codes -->
   7259         <nationalNumberPattern>1\d{2}</nationalNumberPattern>
   7260         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   7261         <exampleNumber>123</exampleNumber>
   7262       </shortCode>
   7263       <emergency>
   7264         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   7265         <nationalNumberPattern>999</nationalNumberPattern>
   7266         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   7267         <exampleNumber>999</exampleNumber>
   7268       </emergency>
   7269     </territory>
   7270 
   7271     <!-- Micronesia, Federated States of -->
   7272     <!-- http://www.itu.int/oth/T020200008B/en -->
   7273     <territory id="FM" countryCode="691" internationalPrefix="00">
   7274       <availableFormats>
   7275         <numberFormat pattern="(\d{3})(\d{4})">
   7276           <format>$1 $2</format>
   7277         </numberFormat>
   7278       </availableFormats>
   7279       <generalDesc>
   7280         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
   7281         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   7282       </generalDesc>
   7283       <fixedLine>
   7284         <nationalNumberPattern>
   7285             3[2357]0[1-9]\d{3}|
   7286             9[2-6]\d{5}
   7287         </nationalNumberPattern>
   7288         <exampleNumber>3201234</exampleNumber>
   7289       </fixedLine>
   7290       <mobile>
   7291         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
   7292              are exclusively mobile. -->
   7293         <nationalNumberPattern>
   7294           3[2357]0[1-9]\d{3}|
   7295           9[2-7]\d{5}
   7296         </nationalNumberPattern>
   7297         <exampleNumber>3501234</exampleNumber>
   7298       </mobile>
   7299       <emergency>
   7300         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_971.html -->
   7301         <nationalNumberPattern>
   7302           911|
   7303           320221
   7304         </nationalNumberPattern>
   7305         <possibleNumberPattern>\d{3}(?:\d{3})?</possibleNumberPattern>
   7306         <exampleNumber>911</exampleNumber>
   7307       </emergency>
   7308     </territory>
   7309 
   7310     <!-- Faroe Islands -->
   7311     <!-- http://www.itu.int/oth/T0202000047/en -->
   7312     <territory id="FO" countryCode="298" internationalPrefix="00"
   7313                nationalPrefixForParsing="(10(?:01|[12]0|88))"
   7314                carrierCodeFormattingRule="$CC $FG">
   7315       <!-- All numbers are formatted together, as a block. -->
   7316       <availableFormats>
   7317         <numberFormat pattern="(\d{6})">
   7318           <format>$1</format>
   7319         </numberFormat>
   7320       </availableFormats>
   7321       <generalDesc>
   7322         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
   7323         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   7324       </generalDesc>
   7325       <fixedLine>
   7326         <nationalNumberPattern>
   7327           (?:
   7328             20|
   7329             [3-4]\d|
   7330             8[19]
   7331           )\d{4}
   7332         </nationalNumberPattern>
   7333         <exampleNumber>201234</exampleNumber>
   7334       </fixedLine>
   7335       <mobile>
   7336         <nationalNumberPattern>
   7337           (?:
   7338             2[1-9]|
   7339             5\d|
   7340             7[1-79]
   7341           )\d{4}
   7342         </nationalNumberPattern>
   7343         <exampleNumber>211234</exampleNumber>
   7344       </mobile>
   7345       <tollFree>
   7346         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
   7347         <exampleNumber>802123</exampleNumber>
   7348       </tollFree>
   7349       <premiumRate>
   7350         <nationalNumberPattern>
   7351           90(?:
   7352             [1345][15-7]|
   7353             2[125-7]|
   7354             99
   7355             )\d{2}
   7356         </nationalNumberPattern>
   7357         <exampleNumber>901123</exampleNumber>
   7358       </premiumRate>
   7359       <voip>
   7360         <nationalNumberPattern>
   7361           (?:
   7362             6[0-36]|
   7363             88
   7364           )\d{4}
   7365         </nationalNumberPattern>
   7366         <exampleNumber>601234</exampleNumber>
   7367       </voip>
   7368       <shortCode>
   7369         <!-- Includes special numbers, special services and universal services.  -->
   7370         <nationalNumberPattern>
   7371           1(?:
   7372             1[48]|
   7373             4[124]\d|
   7374             71\d|
   7375             8[7-9]\d
   7376           )
   7377         </nationalNumberPattern>
   7378         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   7379         <exampleNumber>114</exampleNumber>
   7380       </shortCode>
   7381       <emergency>
   7382         <nationalNumberPattern>112</nationalNumberPattern>
   7383         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   7384         <exampleNumber>112</exampleNumber>
   7385       </emergency>
   7386     </territory>
   7387 
   7388     <!-- France -->
   7389     <!-- http://www.itu.int/oth/T020200004A/en -->
   7390     <!-- http://www.arcep.fr/index.php?id=8146 -->
   7391     <!-- http://en.wikipedia.org/wiki/%2B33 -->
   7392     <territory id="FR" countryCode="33" internationalPrefix="[04579]0"
   7393                preferredInternationalPrefix="00"
   7394                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   7395       <!-- 4-digit premium-rate numbers will be formatted as a block without a national prefix. -->
   7396       <availableFormats>
   7397         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
   7398           <leadingDigits>[1-79]</leadingDigits>
   7399           <format>$1 $2 $3 $4 $5</format>
   7400         </numberFormat>
   7401         <numberFormat nationalPrefixFormattingRule="$NP $FG"
   7402           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
   7403           <leadingDigits>8</leadingDigits>
   7404           <format>$1 $2 $3 $4</format>
   7405         </numberFormat>
   7406       </availableFormats>
   7407       <generalDesc>
   7408         <nationalNumberPattern>
   7409           [124-9]\d{8}|
   7410           3\d{3}(?:\d{5})?
   7411         </nationalNumberPattern>
   7412         <possibleNumberPattern>\d{4}(?:\d{5})?</possibleNumberPattern>
   7413       </generalDesc>
   7414       <noInternationalDialling>
   7415         <nationalNumberPattern>3\d{3}</nationalNumberPattern>
   7416         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   7417         <exampleNumber>3123</exampleNumber>
   7418       </noInternationalDialling>
   7419       <fixedLine>
   7420         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
   7421         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7422         <exampleNumber>123456789</exampleNumber>
   7423       </fixedLine>
   7424       <mobile>
   7425         <nationalNumberPattern>
   7426           6\d{8}|
   7427           7[5-9]\d{7}
   7428         </nationalNumberPattern>
   7429         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7430         <exampleNumber>612345678</exampleNumber>
   7431       </mobile>
   7432       <tollFree>
   7433         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   7434         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7435         <exampleNumber>801234567</exampleNumber>
   7436       </tollFree>
   7437       <premiumRate>
   7438         <!-- We are putting 4-digit premium-rate numbers here for now, since they are used by
   7439              agencies such as CPAM and the national unemployment agency. -->
   7440         <nationalNumberPattern>
   7441           3\d{3}|
   7442           89[1-37-9]\d{6}
   7443         </nationalNumberPattern>
   7444         <possibleNumberPattern>\d{4}(?:\d{5})?</possibleNumberPattern>
   7445         <exampleNumber>891123456</exampleNumber>
   7446       </premiumRate>
   7447       <sharedCost>
   7448         <nationalNumberPattern>
   7449           8(?:
   7450             1[019]|
   7451             2[0156]|
   7452             84|
   7453             90
   7454           )\d{6}
   7455         </nationalNumberPattern>
   7456         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7457         <exampleNumber>810123456</exampleNumber>
   7458       </sharedCost>
   7459       <voip>
   7460         <!-- 087 numbers used to be used for this. -->
   7461         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
   7462         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7463         <exampleNumber>912345678</exampleNumber>
   7464       </voip>
   7465       <emergency>
   7466         <nationalNumberPattern>
   7467           1(?:
   7468             [578]|
   7469             12
   7470           )
   7471         </nationalNumberPattern>
   7472         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   7473         <exampleNumber>112</exampleNumber>
   7474       </emergency>
   7475     </territory>
   7476 
   7477     <!-- Gabon -->
   7478     <!-- http://www.itu.int/oth/T020200004E/en -->
   7479     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true"
   7480                nationalPrefix="0">
   7481       <availableFormats>
   7482         <numberFormat pattern="(1)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
   7483           <leadingDigits>1</leadingDigits>
   7484           <format>$1 $2 $3 $4</format>
   7485         </numberFormat>
   7486         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
   7487           <leadingDigits>0</leadingDigits>
   7488           <format>$1 $2 $3 $4</format>
   7489         </numberFormat>
   7490       </availableFormats>
   7491       <generalDesc>
   7492         <nationalNumberPattern>[01]\d{6,7}</nationalNumberPattern>
   7493         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   7494       </generalDesc>
   7495       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
   7496            line and mobile numbering. However the change to remove the leading '0' from mobile NDCs
   7497            has not gone through. This is now scheduled to happen on October 28, 2012. -->
   7498       <fixedLine>
   7499         <nationalNumberPattern>1\d{6}</nationalNumberPattern>
   7500         <exampleNumber>1441234</exampleNumber>
   7501       </fixedLine>
   7502       <mobile>
   7503         <nationalNumberPattern>0[2-7]\d{6}</nationalNumberPattern>
   7504         <exampleNumber>06031234</exampleNumber>
   7505       </mobile>
   7506       <emergency>
   7507         <nationalNumberPattern>
   7508           1730|
   7509           18|
   7510           13\d{2}
   7511         </nationalNumberPattern>
   7512         <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
   7513         <exampleNumber>1730</exampleNumber>
   7514       </emergency>
   7515     </territory>
   7516 
   7517     <!-- United Kingdom -->
   7518     <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/ -->
   7519     <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
   7520     <!-- http://www.numberingplans.com/?page=dialling&sub=areacodes&ac=GB -->
   7521     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
   7522          validation, although the formatting rules are shared. -->
   7523     <territory id="GB" countryCode="44" internationalPrefix="00"
   7524                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
   7525                mainCountryForCode="true">
   7526       <availableFormats>
   7527         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
   7528         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   7529           <leadingDigits>
   7530             2|
   7531             5[56]|
   7532             7(?:
   7533               0|
   7534               6[013-9]
   7535             )
   7536           </leadingDigits>
   7537           <leadingDigits>
   7538             2|
   7539             5[56]|
   7540             7(?:
   7541               0|
   7542               6(?:
   7543                 [013-9]|
   7544                 2[0-35-9]
   7545               )
   7546             )
   7547           </leadingDigits>
   7548           <format>$1 $2 $3</format>
   7549         </numberFormat>
   7550         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
   7551         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   7552           <leadingDigits>
   7553             1(?:
   7554               1|
   7555               \d1
   7556             )|
   7557             3|
   7558             9[018]
   7559           </leadingDigits>
   7560           <format>$1 $2 $3</format>
   7561         </numberFormat>
   7562         <!-- 1dddd with 9 or 10 digits.
   7563              These area codes are very rare in GB, and are only available in the following places:
   7564              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
   7565              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
   7566              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
   7567         <numberFormat pattern="(\d{5})(\d{4,5})">
   7568           <leadingDigits>
   7569             1(?:
   7570               38|
   7571               5[23]|
   7572               69|
   7573               76|
   7574               94
   7575             )
   7576           </leadingDigits>
   7577           <leadingDigits>
   7578             1(?:
   7579               387|
   7580               5(?:
   7581                 24|
   7582                 39
   7583               )|
   7584               697|
   7585               768|
   7586               946
   7587             )
   7588           </leadingDigits>
   7589           <leadingDigits>
   7590             1(?:
   7591               3873|
   7592               5(?:
   7593                 242|
   7594                 39[456]
   7595               )|
   7596               697[347]|
   7597               768[347]|
   7598               9467
   7599             )
   7600           </leadingDigits>
   7601           <format>$1 $2</format>
   7602         </numberFormat>
   7603         <!-- 1ddd with 9 or 10 digits. -->
   7604         <numberFormat pattern="(1\d{3})(\d{5,6})">
   7605           <leadingDigits>1</leadingDigits>
   7606           <format>$1 $2</format>
   7607         </numberFormat>
   7608         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
   7609         <numberFormat pattern="(7\d{3})(\d{6})">
   7610           <leadingDigits>
   7611             7(?:
   7612               [1-5789]|
   7613               62
   7614             )
   7615           </leadingDigits>
   7616           <leadingDigits>
   7617             7(?:
   7618               [1-5789]|
   7619               624
   7620             )
   7621           </leadingDigits>
   7622           <format>$1 $2</format>
   7623         </numberFormat>
   7624         <!-- 800 1111 : UK ChildLine. -->
   7625         <numberFormat pattern="(800)(\d{4})">
   7626           <leadingDigits>800</leadingDigits>
   7627           <leadingDigits>8001</leadingDigits>
   7628           <leadingDigits>80011</leadingDigits>
   7629           <leadingDigits>800111</leadingDigits>
   7630           <leadingDigits>8001111</leadingDigits>
   7631           <format>$1 $2</format>
   7632         </numberFormat>
   7633         <!-- 845 46 47 : UK NHS Direct. -->
   7634         <numberFormat pattern="(845)(46)(4\d)">
   7635           <leadingDigits>845</leadingDigits>
   7636           <leadingDigits>8454</leadingDigits>
   7637           <leadingDigits>84546</leadingDigits>
   7638           <leadingDigits>845464</leadingDigits>
   7639           <format>$1 $2 $3</format>
   7640         </numberFormat>
   7641         <!-- 84d, 87d with 10 digits. -->
   7642         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
   7643           <leadingDigits>
   7644             8(?:
   7645               4[2-5]|
   7646               7[0-3]
   7647             )
   7648           </leadingDigits>
   7649           <format>$1 $2 $3</format>
   7650         </numberFormat>
   7651         <!-- 80d (including 800) with 10 digits. -->
   7652         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
   7653           <leadingDigits>80</leadingDigits>
   7654           <format>$1 $2 $3</format>
   7655         </numberFormat>
   7656         <!-- 500, 800 with 9 digits. -->
   7657         <numberFormat pattern="([58]00)(\d{6})">
   7658           <leadingDigits>[58]00</leadingDigits>
   7659           <format>$1 $2</format>
   7660         </numberFormat>
   7661       </availableFormats>
   7662       <generalDesc>
   7663         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
   7664         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   7665       </generalDesc>
   7666       <areaCodeOptional>
   7667         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
   7668              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
   7669              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
   7670              necessarily valid numbers. -->
   7671         <nationalNumberPattern>
   7672           2\d[2-9]\d{7}|
   7673           1(?:
   7674             1\d|
   7675             \d1
   7676           )[2-9]\d{6}|
   7677           1(?:
   7678             [248][02-9]\d[2-9]\d{4,5}|
   7679             (?:
   7680               3(?:
   7681                 [02-79]\d|
   7682                 8[0-69]
   7683               )|
   7684               5(?:
   7685                 [04-9]\d|
   7686                 2[0-35-9]|
   7687                 3[0-8]
   7688               )|
   7689               6(?:
   7690                 [02-8]\d|
   7691                 9[0-689]
   7692               )|
   7693               7(?:
   7694                 [02-5789]\d|
   7695                 6[0-79]
   7696               )|
   7697               9(?:
   7698                 [0235-9]\d|
   7699                 4[0-5789]
   7700               )
   7701             )[2-9]\d{4,5}|
   7702             (?:
   7703               387(?:
   7704                 3[2-9]|
   7705                 [24-9]\d
   7706               )|
   7707               5(?:
   7708                 24(?:
   7709                   2[2-9]|
   7710                   [3-9]\d
   7711                 )|
   7712                 39(?:
   7713                   [4-6][2-9]|
   7714                   [237-9]\d
   7715                 )
   7716               )|
   7717               697(?:
   7718                 [347][2-9]|
   7719                 [25689]\d
   7720               )|
   7721               768(?:
   7722                 [347][2-9]|
   7723                 [25679]\d
   7724               )|
   7725               946(?:
   7726                 7[2-9]|
   7727                 [2-689]\d
   7728               )
   7729             )\d{3,4}
   7730           )
   7731         </nationalNumberPattern>
   7732         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   7733         <exampleNumber>1332456789</exampleNumber>
   7734       </areaCodeOptional>
   7735       <fixedLine>
   7736         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
   7737         <!-- Pattern matches geographic NSN=10 numbers as follows:
   7738              - area code and local number first digit for 2+8,
   7739              - area code and local number first digit for 3+7,
   7740              - area code only for 4+6 (including areas with embedded 5+5).
   7741              Pattern matches geographic NSN=9 numbers as follows:
   7742              - area code and local number first two digits for 4+5,
   7743              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
   7744              - area code and local number first digit for 5+4 special case (016977) Dddd.
   7745              All patterns exclude ranges used in GG, IM, JE. -->
   7746         <nationalNumberPattern>
   7747           2(?:
   7748             0[01378]|
   7749             3[0189]|
   7750             4[017]|
   7751             8[0-46-9]|
   7752             9[012]
   7753           )\d{7}|
   7754           1(?:
   7755             (?:
   7756               1(?:
   7757                 3[0-48]|
   7758                 [46][0-4]|
   7759                 5[012789]|
   7760                 7[0-49]|
   7761                 8[01349]
   7762               )|
   7763               21[0-7]|
   7764               31[0-8]|
   7765               [459]1\d|
   7766               61[0-46-9]
   7767             )
   7768           )\d{6}|
   7769           1(?:
   7770             2(?:
   7771               0[024-9]|
   7772               2[3-9]|
   7773               3[3-79]|
   7774               4[1-689]|
   7775               [58][02-9]|
   7776               6[0-4789]|
   7777               7[013-9]|
   7778               9\d
   7779             )|
   7780             3(?:
   7781               0\d|
   7782               [25][02-9]|
   7783               3[02-579]|
   7784               [468][0-46-9]|
   7785               7[1235679]|
   7786               9[24578]
   7787             )|
   7788             4(?:
   7789               0[03-9]|
   7790               [28][02-5789]|
   7791               [37]\d|
   7792               4[02-69]|
   7793               5[0-8]|
   7794               [69][0-79]
   7795             )|
   7796             5(?:
   7797               0[1235-9]|
   7798               2[024-9]|
   7799               3[015689]|
   7800               4[02-9]|
   7801               5[03-9]|
   7802               6\d|
   7803               7[0-35-9]|
   7804               8[0-468]|
   7805               9[0-5789]
   7806             )|
   7807             6(?:
   7808               0[034689]|
   7809               2[0-35689]|
   7810               [38][013-9]|
   7811               4[1-467]|
   7812               5[0-69]|
   7813               6[13-9]|
   7814               7[0-8]|
   7815               9[0124578]
   7816             )|
   7817             7(?:
   7818               0[0246-9]|
   7819               2\d|
   7820               3[023678]|
   7821               4[03-9]|
   7822               5[0-46-9]|
   7823               6[013-9]|
   7824               7[0-35-9]|
   7825               8[024-9]|
   7826               9[02-9]
   7827             )|
   7828             8(?:
   7829               0[35-9]|
   7830               2[1-5789]|
   7831               3[02-578]|
   7832               4[0-578]|
   7833               5[124-9]|
   7834               6[2-69]|
   7835               7\d|
   7836               8[02-9]|
   7837               9[02569]
   7838             )|
   7839             9(?:
   7840               0[02-589]|
   7841               2[02-689]|
   7842               3[1-5789]|
   7843               4[2-9]|
   7844               5[0-579]|
   7845               6[234789]|
   7846               7[0124578]|
   7847               8\d|
   7848               9[2-57]
   7849             )
   7850           )\d{6}|
   7851           1(?:
   7852             2(?:
   7853               0(?:
   7854                 46[1-4]|
   7855                 87[2-9]
   7856               )|
   7857               545[1-79]|
   7858               76(?:
   7859                 2\d|
   7860                 3[1-8]|
   7861                 6[1-6]
   7862               )|
   7863               9(?:
   7864                 7(?:
   7865                   2[0-4]|
   7866                   3[2-5]
   7867                 )|
   7868                 8(?:
   7869                   2[2-8]|
   7870                   7[0-4789]|
   7871                   8[345]
   7872                 )
   7873               )
   7874             )|
   7875             3(?:
   7876               638[2-5]|
   7877               647[23]|
   7878               8(?:
   7879                 47[04-9]|
   7880                 64[015789]
   7881               )
   7882             )|
   7883             4(?:
   7884               044[1-7]|
   7885               20(?:
   7886                 2[23]|
   7887                 8\d
   7888               )|
   7889               6(?:
   7890                 0(?:
   7891                   30|
   7892                   5[2-57]|
   7893                   6[1-8]|
   7894                   7[2-8]
   7895                 )|
   7896                 140
   7897               )|
   7898               8(?:
   7899                 052|
   7900                 87[123]
   7901               )
   7902             )|
   7903             5(?:
   7904               24(?:
   7905                 3[2-79]|
   7906                 6\d
   7907               )|
   7908               276\d|
   7909               6(?:
   7910                 26[06-9]|
   7911                 686
   7912               )
   7913             )|
   7914             6(?:
   7915               06(?:
   7916                 4\d|
   7917                 7[4-79]
   7918               )|
   7919               295[567]|
   7920               35[34]\d|
   7921               47(?:
   7922                 24|
   7923                 61
   7924               )|
   7925               59(?:
   7926                 5[08]|
   7927                 6[67]|
   7928                 74
   7929               )|
   7930               955[0-4]
   7931             )|
   7932             7(?:
   7933               26(?:
   7934                 6[13-9]|
   7935                 7[0-7]
   7936               )|
   7937               442\d|
   7938               50(?:
   7939                 2[0-3]|
   7940                 [3-68]2|
   7941                 76
   7942               )
   7943             )|
   7944             8(?:
   7945               27[56]\d|
   7946               37(?:
   7947                 5[2-5]|
   7948                 8[239]
   7949               )|
   7950               84(?:
   7951                 3[2-58]
   7952               )
   7953             )|
   7954             9(?:
   7955               0(?:
   7956                 0(?:
   7957                   6[1-8]|
   7958                   85
   7959                 )|
   7960                 52\d
   7961               )|
   7962               3583|
   7963               4(?:
   7964                 66[1-8]|
   7965                 9(?:
   7966                   2[01]|
   7967                   81
   7968                 )
   7969               )|
   7970               63(?:
   7971                 23|
   7972                 3[1-4]
   7973               )|
   7974               9561
   7975             )
   7976           )\d{3}|
   7977           176888[234678]\d{2}|
   7978           16977[23]\d{3}
   7979         </nationalNumberPattern>
   7980         <exampleNumber>1212345678</exampleNumber>
   7981       </fixedLine>
   7982       <mobile>
   7983         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
   7984              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
   7985         <nationalNumberPattern>
   7986           7(?:
   7987             [1-4]\d\d|
   7988             5(?:
   7989               0[0-8]|
   7990               [13-9]\d|
   7991               2[0-35-9]
   7992             )|
   7993             7(?:
   7994               0[1-9]|
   7995               [1-7]\d|
   7996               8[02-9]|
   7997               9[0-689]
   7998             )|
   7999             8(?:
   8000               [014-9]\d|
   8001               [23][0-8]
   8002             )|
   8003             9(?:
   8004               [04-9]\d|
   8005               1[02-9]|
   8006               2[0-35-9]|
   8007               3[0-689]
   8008             )
   8009           )\d{6}
   8010         </nationalNumberPattern>
   8011         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8012         <exampleNumber>7400123456</exampleNumber>
   8013       </mobile>
   8014       <pager>
   8015         <!-- 76 with 10 digits; excluding ranges used in IM. -->
   8016         <nationalNumberPattern>
   8017           76(?:
   8018             0[012]|
   8019             2[356]|
   8020             4[0134]|
   8021             5[49]|
   8022             6[0-369]|
   8023             77|
   8024             81|
   8025             9[39]
   8026           )\d{6}
   8027         </nationalNumberPattern>
   8028         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8029         <exampleNumber>7640123456</exampleNumber>
   8030       </pager>
   8031       <!-- Source for non geographic numbers:
   8032            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
   8033       <tollFree>
   8034         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
   8035              -->
   8036         <nationalNumberPattern>
   8037           80(?:
   8038             0(?:
   8039               1111|
   8040               \d{6,7}
   8041             )|
   8042             8\d{7}
   8043           )|
   8044           500\d{6}
   8045         </nationalNumberPattern>
   8046         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
   8047         <exampleNumber>8001234567</exampleNumber>
   8048       </tollFree>
   8049       <premiumRate>
   8050         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
   8051              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
   8052              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
   8053              910-919 are reserved for standard premium rate services. -->
   8054         <nationalNumberPattern>
   8055           (?:
   8056             87[123]|
   8057             9(?:
   8058               [01]\d|
   8059               8[2349]
   8060             )
   8061           )\d{7}
   8062         </nationalNumberPattern>
   8063         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8064         <exampleNumber>9012345678</exampleNumber>
   8065       </premiumRate>
   8066       <sharedCost>
   8067         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
   8068              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
   8069         <nationalNumberPattern>
   8070           8(?:
   8071             4(?:
   8072               5464\d|
   8073               [2-5]\d{7}
   8074             )|
   8075             70\d{7}
   8076           )
   8077         </nationalNumberPattern>
   8078         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   8079         <exampleNumber>8431234567</exampleNumber>
   8080       </sharedCost>
   8081       <personalNumber>
   8082         <!-- 70 with 10 digits. -->
   8083         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   8084         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8085         <exampleNumber>7012345678</exampleNumber>
   8086       </personalNumber>
   8087       <voip>
   8088         <!-- 56 with 10 digits. -->
   8089         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
   8090         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8091         <exampleNumber>5612345678</exampleNumber>
   8092       </voip>
   8093       <uan>
   8094         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
   8095         <nationalNumberPattern>
   8096           (?:
   8097             3[0347]|
   8098             55
   8099           )\d{8}
   8100         </nationalNumberPattern>
   8101         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8102         <exampleNumber>5512345678</exampleNumber>
   8103       </uan>
   8104       <shortCode>
   8105         <!-- This is a list of the ones that can be called. -->
   8106         <nationalNumberPattern>
   8107           1(?:
   8108             0[01]|
   8109             1(?:
   8110               1|
   8111               [68]\d{3}
   8112             )|
   8113             2[123]|
   8114             33|
   8115             4(?:
   8116               1|
   8117               7\d
   8118             )|
   8119             5\d|
   8120             70\d|
   8121             800\d|
   8122             9[15]
   8123           )|
   8124           2(?:
   8125             02|
   8126             2(?:
   8127               02|
   8128               11|
   8129               2
   8130             )|
   8131             3(?:
   8132               02|
   8133               45
   8134             )|
   8135             425
   8136           )|
   8137           3[13]3|
   8138           4(?:
   8139             0[02]|
   8140             35[01]|
   8141             44[45]|
   8142             5\d
   8143           )|
   8144           650|
   8145           789|
   8146           901
   8147         </nationalNumberPattern>
   8148         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   8149         <exampleNumber>150</exampleNumber>
   8150       </shortCode>
   8151       <emergency>
   8152         <nationalNumberPattern>
   8153           112|
   8154           999
   8155         </nationalNumberPattern>
   8156         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   8157         <exampleNumber>112</exampleNumber>
   8158       </emergency>
   8159     </territory>
   8160 
   8161     <!-- Grenada -->
   8162     <!-- http://www.itu.int/oth/T0202000057/en -->
   8163     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
   8164                internationalPrefix="011">
   8165       <generalDesc>
   8166         <!-- NANPA country - uses US formatting rules -->
   8167         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
   8168         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   8169       </generalDesc>
   8170       <fixedLine>
   8171         <nationalNumberPattern>
   8172           473(?:
   8173             2(?:
   8174               3[0-2]|
   8175               69
   8176             )|
   8177             3(?:
   8178               2[89]|
   8179               86
   8180             )|
   8181             4(?:
   8182               [06]8|
   8183               3[5-9]|
   8184               4[0-49]|
   8185               5[5-79]|
   8186               68|
   8187               73|
   8188               90
   8189             )|
   8190             63[68]|
   8191             7(?:
   8192               58|
   8193               84
   8194             )|
   8195             938
   8196           )\d{4}
   8197         </nationalNumberPattern>
   8198         <exampleNumber>4732691234</exampleNumber>
   8199       </fixedLine>
   8200       <mobile>
   8201         <nationalNumberPattern>
   8202           473(?:
   8203             4(?:
   8204               0[3-79]|
   8205               1[04-9]|
   8206               20|
   8207               58
   8208             )|
   8209             53[3-8]
   8210           )\d{4}
   8211         </nationalNumberPattern>
   8212         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8213         <exampleNumber>4734031234</exampleNumber>
   8214       </mobile>
   8215       <tollFree>
   8216         <nationalNumberPattern>
   8217           8(?:
   8218             00|
   8219             55|
   8220             66|
   8221             77|
   8222             88
   8223           )[2-9]\d{6}
   8224         </nationalNumberPattern>
   8225         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8226         <exampleNumber>8002123456</exampleNumber>
   8227       </tollFree>
   8228       <premiumRate>
   8229         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   8230         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8231         <exampleNumber>9002123456</exampleNumber>
   8232       </premiumRate>
   8233       <personalNumber>
   8234         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   8235         <nationalNumberPattern>
   8236           5(?:
   8237             00|
   8238             33|
   8239             44
   8240           )[2-9]\d{6}
   8241         </nationalNumberPattern>
   8242         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8243         <exampleNumber>5002345678</exampleNumber>
   8244       </personalNumber>
   8245       <emergency>
   8246         <!-- http://barbados.usembassy.gov/emergency-grenada.html -->
   8247         <nationalNumberPattern>911</nationalNumberPattern>
   8248         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   8249         <exampleNumber>911</exampleNumber>
   8250       </emergency>
   8251     </territory>
   8252 
   8253     <!-- Georgia -->
   8254     <!-- http://www.itu.int/oth/T0202000050/en -->
   8255     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia. -->
   8256     <territory id="GE" countryCode="995" preferredInternationalPrefix="8~10"
   8257                internationalPrefix="810" nationalPrefix="8">
   8258       <availableFormats>
   8259         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
   8260              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
   8261         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP $FG">
   8262           <leadingDigits>[348]</leadingDigits>
   8263           <format>$1 $2 $3 $4</format>
   8264         </numberFormat>
   8265         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
   8266           <leadingDigits>5</leadingDigits>
   8267           <format>$1 $2 $3 $4</format>
   8268         </numberFormat>
   8269       </availableFormats>
   8270       <generalDesc>
   8271         <nationalNumberPattern>[3458]\d{8}</nationalNumberPattern>
   8272         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   8273       </generalDesc>
   8274       <fixedLine>
   8275         <nationalNumberPattern>
   8276           (?:
   8277             3(?:
   8278               [256]\d|
   8279               4[124-9]|
   8280               7[0-4]
   8281             )|
   8282             4(?:
   8283               1\d|
   8284               2[2-7]|
   8285               3[1-79]|
   8286               4[2-8]|
   8287               7[239]|
   8288               9[1-7]
   8289             )
   8290           )\d{6}
   8291         </nationalNumberPattern>
   8292         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   8293         <exampleNumber>322123456</exampleNumber>
   8294       </fixedLine>
   8295       <mobile>
   8296         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
   8297              about the change in numbers, and online numbers found. -->
   8298         <nationalNumberPattern>
   8299           5(?:
   8300             14|
   8301             5[01578]|
   8302             68|
   8303             7[0147-9]|
   8304             9[0-35-9]
   8305           )\d{6}
   8306         </nationalNumberPattern>
   8307         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8308         <exampleNumber>555123456</exampleNumber>
   8309       </mobile>
   8310       <!-- Information from www.yell.ge, examples such as Wissol Petroleum Georgia hotline. -->
   8311       <tollFree>
   8312         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   8313         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8314         <exampleNumber>800123456</exampleNumber>
   8315       </tollFree>
   8316       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
   8317            these are omitted for now. -->
   8318       <emergency>
   8319         <!-- According to Wikipedia, 011, 022 and 033 will be replaced by 111, 122, 113 and 114 in
   8320              2011. We are not sure if that has happened, so we support both versions for now. -->
   8321         <nationalNumberPattern>
   8322           0(?:
   8323             11|
   8324             22|
   8325             33
   8326           )|
   8327           1(?:
   8328             1[123]|
   8329             22
   8330           )
   8331         </nationalNumberPattern>
   8332         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   8333         <exampleNumber>112</exampleNumber>
   8334       </emergency>
   8335     </territory>
   8336 
   8337     <!-- French Guiana (French Dept. of) -->
   8338     <!-- http://www.itu.int/oth/T020200004C/en -->
   8339     <!-- http://www.arcep.fr/index.php?id=2137&bloc=0594&CMD=RESULTS_NUMEROTATION -->
   8340     <!-- http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf -->
   8341     <!-- Using a national prefix here as online numbers are formatted with it.  -->
   8342     <territory id="GF" countryCode="594" internationalPrefix="00"
   8343                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   8344       <availableFormats>
   8345         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   8346           <format>$1 $2 $3 $4</format>
   8347         </numberFormat>
   8348       </availableFormats>
   8349       <generalDesc>
   8350         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   8351         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8352       </generalDesc>
   8353       <fixedLine>
   8354         <nationalNumberPattern>
   8355           594(?:
   8356             10|
   8357             2[012457-9]|
   8358             3[0-57-9]|
   8359             4[3-9]|
   8360             5[7-9]|
   8361             6[0-3]|
   8362             9[014]
   8363           )\d{4}
   8364         </nationalNumberPattern>
   8365         <exampleNumber>594101234</exampleNumber>
   8366       </fixedLine>
   8367       <mobile>
   8368         <nationalNumberPattern>
   8369           694(?:
   8370             [04][0-7]|
   8371             1[0-5]|
   8372             3[018]|
   8373             [29]\d
   8374           )\d{4}
   8375         </nationalNumberPattern>
   8376         <exampleNumber>694201234</exampleNumber>
   8377       </mobile>
   8378       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
   8379            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
   8380            too. -->
   8381       <emergency>
   8382         <nationalNumberPattern>1[578]</nationalNumberPattern>
   8383         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   8384         <exampleNumber>15</exampleNumber>
   8385       </emergency>
   8386     </territory>
   8387 
   8388     <!-- Guernsey -->
   8389     <!-- Inherits formatting rules from the UK. -->
   8390     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
   8391     <territory id="GG" countryCode="44" internationalPrefix="00"
   8392                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
   8393       <generalDesc>
   8394         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
   8395         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   8396       </generalDesc>
   8397       <areaCodeOptional>
   8398         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
   8399         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8400         <exampleNumber>1481250123</exampleNumber>
   8401       </areaCodeOptional>
   8402       <!-- Specific to GG. -->
   8403       <fixedLine>
   8404         <!-- 1481 with 10 digits. -->
   8405         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
   8406         <exampleNumber>1481456789</exampleNumber>
   8407       </fixedLine>
   8408       <mobile>
   8409         <!-- 7781, 7839, 7911 with 10 digits. -->
   8410         <nationalNumberPattern>
   8411           7(?:
   8412             781|
   8413             839|
   8414             911
   8415           )\d{6}
   8416         </nationalNumberPattern>
   8417         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8418         <exampleNumber>7781123456</exampleNumber>
   8419       </mobile>
   8420       <!-- Other numbers as per GB. -->
   8421       <pager>
   8422         <nationalNumberPattern>
   8423           76(?:
   8424             0[012]|
   8425             2[356]|
   8426             4[0134]|
   8427             5[49]|
   8428             6[0-369]|
   8429             77|
   8430             81|
   8431             9[39]
   8432           )\d{6}
   8433         </nationalNumberPattern>
   8434         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8435         <exampleNumber>7640123456</exampleNumber>
   8436       </pager>
   8437       <tollFree>
   8438         <nationalNumberPattern>
   8439           80(?:
   8440             0(?:
   8441               1111|
   8442               \d{6,7}
   8443             )|
   8444             8\d{7}
   8445           )|
   8446           500\d{6}
   8447         </nationalNumberPattern>
   8448         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
   8449         <exampleNumber>8001234567</exampleNumber>
   8450       </tollFree>
   8451       <premiumRate>
   8452         <nationalNumberPattern>
   8453           (?:
   8454             87[123]|
   8455             9(?:
   8456               [01]\d|
   8457               8[0-3]
   8458             )
   8459           )\d{7}
   8460         </nationalNumberPattern>
   8461         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8462         <exampleNumber>9012345678</exampleNumber>
   8463       </premiumRate>
   8464       <sharedCost>
   8465         <nationalNumberPattern>
   8466           8(?:
   8467             4(?:
   8468               5464\d|
   8469               [2-5]\d{7}
   8470             )|
   8471             70\d{7}
   8472           )
   8473         </nationalNumberPattern>
   8474         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   8475         <exampleNumber>8431234567</exampleNumber>
   8476       </sharedCost>
   8477       <personalNumber>
   8478         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   8479         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8480         <exampleNumber>7012345678</exampleNumber>
   8481       </personalNumber>
   8482       <voip>
   8483         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
   8484         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8485         <exampleNumber>5612345678</exampleNumber>
   8486       </voip>
   8487       <uan>
   8488         <nationalNumberPattern>
   8489           (?:
   8490             3[0347]|
   8491             55
   8492           )\d{8}
   8493         </nationalNumberPattern>
   8494         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8495         <exampleNumber>5512345678</exampleNumber>
   8496       </uan>
   8497       <shortCode>
   8498         <!-- Taken from numbers listed explicitly as Public Telephone Network Numbers in
   8499              http://stakeholders.ofcom.org.uk/binaries/telecoms/numbering/numplan201210.pdf -->
   8500         <nationalNumberPattern>
   8501           1(?:
   8502             0[01]|
   8503             1(?:
   8504               1|
   8505               [68]\d{3}
   8506             )|
   8507             23|
   8508             4(?:
   8509               1|
   8510               7\d
   8511             )|
   8512             55|
   8513             800\d|
   8514             95
   8515           )
   8516         </nationalNumberPattern>
   8517         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   8518         <exampleNumber>155</exampleNumber>
   8519       </shortCode>
   8520       <emergency>
   8521         <!-- http://en.wikipedia.org/wiki/Guernsey#Emergency_services -->
   8522         <nationalNumberPattern>
   8523           112|
   8524           999
   8525         </nationalNumberPattern>
   8526         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   8527         <exampleNumber>999</exampleNumber>
   8528       </emergency>
   8529     </territory>
   8530 
   8531     <!-- Ghana -->
   8532     <!-- http://www.itu.int/oth/T0202000052/en -->
   8533     <!-- http://www.nca.org.gh/index.php?option=com_content&view=article&id=90&Itemid=65 -->
   8534     <territory id="GH" countryCode="233" internationalPrefix="00"
   8535                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   8536       <availableFormats>
   8537         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   8538           <leadingDigits>[235]</leadingDigits>
   8539           <format>$1 $2 $3</format>
   8540         </numberFormat>
   8541         <numberFormat pattern="(\d{3})(\d{5})">
   8542           <leadingDigits>8</leadingDigits>
   8543           <format>$1 $2</format>
   8544         </numberFormat>
   8545       </availableFormats>
   8546       <generalDesc>
   8547         <nationalNumberPattern>
   8548           [235]\d{8}|
   8549           8\d{7}
   8550         </nationalNumberPattern>
   8551         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   8552       </generalDesc>
   8553       <noInternationalDialling>
   8554         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   8555         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8556         <exampleNumber>80012345</exampleNumber>
   8557       </noInternationalDialling>
   8558       <fixedLine>
   8559         <nationalNumberPattern>
   8560           3(?:
   8561             0[237]\d|
   8562             [167](?:
   8563               2[0-6]|
   8564               7\d
   8565             )|
   8566             2(?:
   8567               2[0-5]|
   8568               7\d
   8569             )|
   8570             3(?:
   8571               2[0-3]|
   8572               7\d
   8573             )|
   8574             4(?:
   8575               2[013-9]|
   8576               3[01]|
   8577               7\d
   8578             )|
   8579             5(?:
   8580               2[0-7]|
   8581               7\d
   8582             )|
   8583             8(?:
   8584               2[0-2]|
   8585               7\d
   8586             )|
   8587             9(?:
   8588               20|
   8589               7\d
   8590             )
   8591           )\d{5}
   8592         </nationalNumberPattern>
   8593         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   8594         <exampleNumber>302345678</exampleNumber>
   8595       </fixedLine>
   8596       <mobile>
   8597         <nationalNumberPattern>
   8598           (?:
   8599             2[034678]|
   8600             5[047]
   8601           )\d{7}
   8602         </nationalNumberPattern>
   8603         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8604         <exampleNumber>231234567</exampleNumber>
   8605       </mobile>
   8606       <tollFree>
   8607         <!-- Found online references to these numbers, although they are not in the plan since they
   8608              are not internationally diallable. -->
   8609         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   8610         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8611         <exampleNumber>80012345</exampleNumber>
   8612       </tollFree>
   8613       <!-- No premiumRate information can be found. -->
   8614       <emergency>
   8615         <nationalNumberPattern>
   8616           19[123]|
   8617           999
   8618         </nationalNumberPattern>
   8619         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   8620         <exampleNumber>999</exampleNumber>
   8621       </emergency>
   8622     </territory>
   8623 
   8624     <!-- Gibraltar -->
   8625     <territory id="GI" countryCode="350" internationalPrefix="00">
   8626       <!-- No formatting rules - numbers are always formatted as a block. -->
   8627       <generalDesc>
   8628         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
   8629         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8630       </generalDesc>
   8631       <fixedLine>
   8632         <nationalNumberPattern>
   8633           2(?:
   8634             00\d|
   8635             16[0-7]|
   8636             22[2457]
   8637           )\d{4}
   8638         </nationalNumberPattern>
   8639         <exampleNumber>20012345</exampleNumber>
   8640       </fixedLine>
   8641       <mobile>
   8642         <nationalNumberPattern>
   8643           (?:
   8644             5[4-8]|
   8645             60
   8646           )\d{6}
   8647         </nationalNumberPattern>
   8648         <exampleNumber>57123456</exampleNumber>
   8649       </mobile>
   8650       <tollFree>
   8651         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   8652         <exampleNumber>80123456</exampleNumber>
   8653       </tollFree>
   8654       <premiumRate>
   8655         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
   8656         <exampleNumber>88123456</exampleNumber>
   8657       </premiumRate>
   8658       <sharedCost>
   8659         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
   8660         <exampleNumber>87123456</exampleNumber>
   8661       </sharedCost>
   8662       <shortCode>
   8663         <nationalNumberPattern>
   8664           1(?:
   8665             00|
   8666             1(?:
   8667               6(?:
   8668                 00[06]|
   8669                 11[17]
   8670               )|
   8671               8\d{2}
   8672             )|
   8673             23|
   8674             4(?:
   8675               1|
   8676               7[014]
   8677             )|
   8678             5[015]|
   8679             9[34]
   8680           )|
   8681           8(?:
   8682             00|
   8683             4[0-2]|
   8684             8\d
   8685           )
   8686         </nationalNumberPattern>
   8687         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   8688         <exampleNumber>116123</exampleNumber>
   8689       </shortCode>
   8690       <emergency>
   8691         <nationalNumberPattern>
   8692           1(?:
   8693             12|
   8694             9[09]
   8695           )
   8696         </nationalNumberPattern>
   8697         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   8698         <exampleNumber>112</exampleNumber>
   8699       </emergency>
   8700     </territory>
   8701 
   8702     <!-- Greenland -->
   8703     <!-- http://www.itu.int/oth/T0202000056/en -->
   8704     <territory id="GL" countryCode="299" internationalPrefix="00">
   8705       <availableFormats>
   8706         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   8707           <format>$1 $2 $3</format>
   8708         </numberFormat>
   8709       </availableFormats>
   8710       <generalDesc>
   8711         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
   8712         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   8713       </generalDesc>
   8714       <fixedLine>
   8715         <!-- Including VSAT numbers here. -->
   8716         <nationalNumberPattern>
   8717           (?:
   8718             19|
   8719             3[1-6]|
   8720             6[14689]|
   8721             8[14-79]|
   8722             9\d
   8723           )\d{4}
   8724         </nationalNumberPattern>
   8725         <exampleNumber>321000</exampleNumber>
   8726       </fixedLine>
   8727       <mobile>
   8728         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
   8729         <exampleNumber>221234</exampleNumber>
   8730       </mobile>
   8731       <tollFree>
   8732         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
   8733         <exampleNumber>801234</exampleNumber>
   8734       </tollFree>
   8735       <voip>
   8736         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
   8737         <exampleNumber>381234</exampleNumber>
   8738       </voip>
   8739       <emergency>
   8740         <nationalNumberPattern>112</nationalNumberPattern>
   8741         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   8742         <exampleNumber>112</exampleNumber>
   8743       </emergency>
   8744     </territory>
   8745 
   8746     <!-- Gambia -->
   8747     <!-- http://www.itu.int/oth/T020200004F/en -->
   8748     <territory id="GM" countryCode="220" internationalPrefix="00">
   8749       <availableFormats>
   8750         <numberFormat pattern="(\d{3})(\d{4})">
   8751           <format>$1 $2</format>
   8752         </numberFormat>
   8753       </availableFormats>
   8754       <generalDesc>
   8755         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
   8756         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   8757       </generalDesc>
   8758       <fixedLine>
   8759         <nationalNumberPattern>
   8760           (?:
   8761             4(?:
   8762               [23]\d{2}|
   8763               4(?:
   8764                 1[024679]|
   8765                 [6-9]\d
   8766               )
   8767             )|
   8768             5(?:
   8769               54[0-7]|
   8770               6(?:
   8771                 [67]\d
   8772               )|
   8773               7(?:
   8774                 1[04]|
   8775                 2[035]|
   8776                 3[58]|
   8777                 48
   8778               )
   8779             )|
   8780             8\d{3}
   8781           )\d{3}
   8782         </nationalNumberPattern>
   8783         <exampleNumber>5661234</exampleNumber>
   8784       </fixedLine>
   8785       <mobile>
   8786         <nationalNumberPattern>
   8787           (?:
   8788             2[0-2]|
   8789             [3679]\d
   8790           )\d{5}
   8791         </nationalNumberPattern>
   8792         <exampleNumber>3012345</exampleNumber>
   8793       </mobile>
   8794       <emergency>
   8795         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1121.html -->
   8796         <!-- http://www.netglobers.com/africa/gambia-emergency-numbers-in-the-gambia.html -->
   8797         <nationalNumberPattern>1?1[678]</nationalNumberPattern>
   8798         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   8799         <exampleNumber>117</exampleNumber>
   8800       </emergency>
   8801     </territory>
   8802 
   8803     <!-- Guinea -->
   8804     <!-- http://www.itu.int/oth/T020200005B/en -->
   8805     <territory id="GN" countryCode="224" internationalPrefix="00">
   8806       <!-- We have two formatting patterns here since the 8 digit case is more normal and we want
   8807            that to be preferred for the AYTF. -->
   8808       <availableFormats>
   8809         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   8810           <leadingDigits>[23567]</leadingDigits>
   8811           <format>$1 $2 $3 $4</format>
   8812         </numberFormat>
   8813         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   8814           <leadingDigits>6[02356]</leadingDigits>
   8815           <format>$1 $2 $3 $4</format>
   8816         </numberFormat>
   8817       </availableFormats>
   8818       <generalDesc>
   8819         <nationalNumberPattern>[23567]\d{7,8}</nationalNumberPattern>
   8820         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   8821       </generalDesc>
   8822       <fixedLine>
   8823         <nationalNumberPattern>
   8824           30(?:
   8825             24|
   8826             3[12]|
   8827             4[1-35-7]|
   8828             5[13]|
   8829             6[189]|
   8830             [78]1|
   8831             9[1478]
   8832           )\d{4}
   8833         </nationalNumberPattern>
   8834         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8835         <exampleNumber>30241234</exampleNumber>
   8836       </fixedLine>
   8837       <mobile>
   8838         <!-- WiMAX is in the plan - which is a wireless broadband protocol. Not including this in
   8839              the metadata for now unless this proves to be necessary. These would start with 79.
   8840              61[0-5] is assigned to Orange. Also includes the new 9-digit mobile numbers that are
   8841              coming into effect on March 29, 2013. -->
   8842         <nationalNumberPattern>
   8843           (?:
   8844             24|
   8845             55
   8846           )\d{6}|
   8847           6(?:
   8848             0(?:
   8849               2[0-35-9]|
   8850               3[3467]|
   8851               5[2457-9]
   8852             )|
   8853             1[0-5]\d|
   8854             2\d{2}|
   8855             [4-9]\d{2}|
   8856             3(?:
   8857               [14]0|
   8858               35
   8859             )
   8860           )\d{4}|
   8861           6(?:
   8862             [03]1|
   8863             2[128]|
   8864             5[57]|
   8865             6[2469]
   8866           )\d{6}
   8867         </nationalNumberPattern>
   8868         <exampleNumber>60201234</exampleNumber>
   8869       </mobile>
   8870       <voip>
   8871         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
   8872         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8873         <exampleNumber>78123456</exampleNumber>
   8874       </voip>
   8875       <!-- No national emergency numbers were located for Guinea. -->
   8876     </territory>
   8877 
   8878     <!-- Guadeloupe -->
   8879     <!-- http://www.itu.int/oth/T0202000058/en -->
   8880     <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
   8881     <territory id="GP" countryCode="590" internationalPrefix="00"
   8882                mainCountryForCode="true" nationalPrefix="0"
   8883                nationalPrefixFormattingRule="$NP$FG">
   8884       <availableFormats>
   8885         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
   8886           <format>$1 $2-$3</format>
   8887         </numberFormat>
   8888       </availableFormats>
   8889       <generalDesc>
   8890         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   8891         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8892       </generalDesc>
   8893       <fixedLine>
   8894         <nationalNumberPattern>
   8895           590(?:
   8896             0[13468]|
   8897             1[012]|
   8898             2[0-68]|
   8899             3[28]|
   8900             4[0-8]|
   8901             5[579]|
   8902             6[0189]|
   8903             70|
   8904             8[0-689]|
   8905             9\d
   8906           )\d{4}
   8907         </nationalNumberPattern>
   8908         <exampleNumber>590201234</exampleNumber>
   8909       </fixedLine>
   8910       <mobile>
   8911         <!-- Any ranges assigned from
   8912              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
   8913              Guadeloupe, St Martin and St Barthlemy, since we can't reliably distinguish between
   8914              them. -->
   8915         <nationalNumberPattern>
   8916           690(?:
   8917             0[0-7]|
   8918             [1-9]\d
   8919           )\d{4}
   8920         </nationalNumberPattern>
   8921         <exampleNumber>690301234</exampleNumber>
   8922       </mobile>
   8923       <!-- http://www.guadeloupe.franceantilles.fr/pratique/urgences/numeros-urgence-guadeloupe-14950.php -->
   8924       <emergency>
   8925         <nationalNumberPattern>1[578]</nationalNumberPattern>
   8926         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   8927         <exampleNumber>18</exampleNumber>
   8928       </emergency>
   8929     </territory>
   8930 
   8931     <!-- Equatorial Guinea -->
   8932     <!-- http://www.itu.int/oth/T0202000041/en -->
   8933     <territory id="GQ" countryCode="240" internationalPrefix="00">
   8934       <availableFormats>
   8935         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   8936           <leadingDigits>[235]</leadingDigits>
   8937           <format>$1 $2 $3</format>
   8938         </numberFormat>
   8939         <numberFormat pattern="(\d{3})(\d{6})">
   8940           <leadingDigits>[89]</leadingDigits>
   8941           <format>$1 $2</format>
   8942         </numberFormat>
   8943       </availableFormats>
   8944       <generalDesc>
   8945         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
   8946         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8947       </generalDesc>
   8948       <fixedLine>
   8949         <nationalNumberPattern>
   8950           3(?:
   8951             3(?:
   8952               3\d[7-9]|
   8953               [0-24-9]\d[46]
   8954             )|
   8955             5\d{2}[7-9]
   8956           )\d{4}
   8957         </nationalNumberPattern>
   8958         <exampleNumber>333091234</exampleNumber>
   8959       </fixedLine>
   8960       <mobile>
   8961         <nationalNumberPattern>
   8962           (?:
   8963             222|
   8964             551
   8965           )\d{6}
   8966         </nationalNumberPattern>
   8967         <exampleNumber>222123456</exampleNumber>
   8968       </mobile>
   8969       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
   8970            they start allocating them there will be a differentiation of prefixes, but this is not
   8971            clear now. -->
   8972       <tollFree>
   8973         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
   8974         <exampleNumber>800123456</exampleNumber>
   8975       </tollFree>
   8976       <premiumRate>
   8977         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
   8978         <exampleNumber>900123456</exampleNumber>
   8979       </premiumRate>
   8980       <!-- No national emergency numbers were located for Equatorial Guinea. -->
   8981     </territory>
   8982 
   8983     <!-- Greece -->
   8984     <!-- http://www.itu.int/oth/T0202000055/en -->
   8985     <!-- http://en.wikipedia.org/wiki/%2B30 -->
   8986     <territory id="GR" countryCode="30" internationalPrefix="00">
   8987       <availableFormats>
   8988         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
   8989           <leadingDigits>
   8990             21|
   8991             7
   8992           </leadingDigits>
   8993           <format>$1 $2 $3</format>
   8994         </numberFormat>
   8995         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   8996           <leadingDigits>
   8997             2[2-9]1|
   8998             [689]
   8999           </leadingDigits>
   9000           <format>$1 $2 $3</format>
   9001         </numberFormat>
   9002         <numberFormat pattern="(2\d{3})(\d{6})">
   9003           <leadingDigits>2[2-9][02-9]</leadingDigits>
   9004           <format>$1 $2</format>
   9005         </numberFormat>
   9006       </availableFormats>
   9007       <generalDesc>
   9008         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
   9009         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9010       </generalDesc>
   9011       <fixedLine>
   9012         <nationalNumberPattern>
   9013           2(?:
   9014             1\d{2}|
   9015             2(?:
   9016               3[1-8]|
   9017               4[1-7]|
   9018               5[1-4]|
   9019               6[1-8]|
   9020               7[1-5]|
   9021               [289][1-9]
   9022             )|
   9023             3(?:
   9024               1\d|
   9025               2[1-57]|
   9026               3[1-4]|
   9027               [45][1-3]|
   9028               7[1-7]|
   9029               8[1-6]|
   9030               9[1-79]
   9031             )|
   9032             4(?:
   9033               1\d|
   9034               2[1-8]|
   9035               3[1-4]|
   9036               4[13-5]|
   9037               6[1-578]|
   9038               9[1-5]
   9039             )|
   9040             5(?:
   9041               1\d|
   9042               [239][1-4]|
   9043               4[124]|
   9044               5[1-6]
   9045             )|
   9046             6(?:
   9047               1\d|
   9048               3[124]|
   9049               4[1-7]|
   9050               5[13-9]|
   9051               [269][1-6]|
   9052               7[14]|
   9053               8[1-5]
   9054             )|
   9055             7(?:
   9056               1\d|
   9057               2[1-5]|
   9058               3[1-6]|
   9059               4[1-7]|
   9060               5[1-57]|
   9061               6[134]|
   9062               9[15-7]
   9063             )|
   9064             8(?:
   9065               1\d|
   9066               2[1-5]|
   9067               [34][1-4]|
   9068               9[1-7]
   9069             )
   9070           )\d{6}
   9071         </nationalNumberPattern>
   9072         <exampleNumber>2123456789</exampleNumber>
   9073       </fixedLine>
   9074       <mobile>
   9075         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
   9076         <exampleNumber>6912345678</exampleNumber>
   9077       </mobile>
   9078       <tollFree>
   9079         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   9080         <exampleNumber>8001234567</exampleNumber>
   9081       </tollFree>
   9082       <premiumRate>
   9083         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
   9084         <exampleNumber>9091234567</exampleNumber>
   9085       </premiumRate>
   9086       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
   9087            rate. -->
   9088       <sharedCost>
   9089         <nationalNumberPattern>
   9090           8(?:
   9091             0[16]|
   9092             12|
   9093             25
   9094           )\d{7}
   9095         </nationalNumberPattern>
   9096         <exampleNumber>8011234567</exampleNumber>
   9097       </sharedCost>
   9098       <personalNumber>
   9099         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   9100         <exampleNumber>7012345678</exampleNumber>
   9101       </personalNumber>
   9102       <emergency>
   9103         <nationalNumberPattern>
   9104           1(?:
   9105             00|
   9106             12|
   9107             66|
   9108             99
   9109           )
   9110         </nationalNumberPattern>
   9111         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9112         <exampleNumber>112</exampleNumber>
   9113       </emergency>
   9114     </territory>
   9115 
   9116     <!-- Guatemala -->
   9117     <!-- http://www.itu.int/oth/T020200005A/en -->
   9118     <!-- http://www.sit.gob.gt/index.php?page=plan-de-numeracion -->
   9119     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala -->
   9120     <territory id="GT" countryCode="502" internationalPrefix="00">
   9121       <availableFormats>
   9122         <numberFormat pattern="(\d{4})(\d{4})">
   9123           <leadingDigits>[2-7]</leadingDigits>
   9124           <format>$1 $2</format>
   9125         </numberFormat>
   9126         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
   9127           <leadingDigits>1</leadingDigits>
   9128           <format>$1 $2 $3</format>
   9129         </numberFormat>
   9130       </availableFormats>
   9131       <generalDesc>
   9132         <nationalNumberPattern>
   9133           [2-7]\d{7}|
   9134           1[89]\d{9}
   9135         </nationalNumberPattern>
   9136         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
   9137       </generalDesc>
   9138       <fixedLine>
   9139         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
   9140         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9141         <exampleNumber>22456789</exampleNumber>
   9142       </fixedLine>
   9143       <mobile>
   9144         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
   9145              they are just reserved. -->
   9146         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
   9147         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9148         <exampleNumber>51234567</exampleNumber>
   9149       </mobile>
   9150       <tollFree>
   9151         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
   9152         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   9153         <exampleNumber>18001112222</exampleNumber>
   9154       </tollFree>
   9155       <premiumRate>
   9156         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
   9157         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   9158         <exampleNumber>19001112222</exampleNumber>
   9159       </premiumRate>
   9160       <shortCode>
   9161         <nationalNumberPattern>
   9162           1(?:
   9163             2[124-9]|
   9164             [57]\d{2}
   9165           )
   9166         </nationalNumberPattern>
   9167         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   9168         <exampleNumber>123</exampleNumber>
   9169       </shortCode>
   9170       <emergency>
   9171         <nationalNumberPattern>
   9172           1(?:
   9173             10|
   9174             2[03]
   9175           )
   9176         </nationalNumberPattern>
   9177         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9178         <exampleNumber>110</exampleNumber>
   9179       </emergency>
   9180     </territory>
   9181 
   9182     <!-- Guam -->
   9183     <!-- http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel -->
   9184     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
   9185                internationalPrefix="011">
   9186       <generalDesc>
   9187         <!-- NANPA country - uses US formatting rules -->
   9188         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   9189         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   9190       </generalDesc>
   9191       <fixedLine>
   9192         <!-- Added 671 555/720/721 based on information from
   9193              http://www.area-codes.com/area-code/area-code-671.asp -->
   9194         <nationalNumberPattern>
   9195           671(?:
   9196             3(?:
   9197               00|
   9198               3[39]|
   9199               4[349]|
   9200               55|
   9201               6[26]
   9202             )|
   9203             4(?:
   9204               56|
   9205               7[1-9]|
   9206               8[23678]
   9207             )|
   9208             5(?:
   9209               55|
   9210               6[2-5]|
   9211               88
   9212             )|
   9213             6(?:
   9214               3[2-578]|
   9215               4[24-9]|
   9216               5[34]|
   9217               78|
   9218               8[5-9]
   9219             )|
   9220             7(?:
   9221               [079]7|
   9222               2[0167]|
   9223               3[45]|
   9224               8[789]
   9225             )|
   9226             8(?:
   9227               [2-5789]8|
   9228               6[48]
   9229             )|
   9230             9(?:
   9231               2[29]|
   9232               6[79]|
   9233               7[179]|
   9234               8[789]|
   9235               9[78]
   9236             )
   9237           )\d{4}
   9238         </nationalNumberPattern>
   9239         <exampleNumber>6713001234</exampleNumber>
   9240       </fixedLine>
   9241       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
   9242            -->
   9243       <mobile>
   9244         <nationalNumberPattern>
   9245           671(?:
   9246             3(?:
   9247               00|
   9248               3[39]|
   9249               4[349]|
   9250               55|
   9251               6[26]
   9252             )|
   9253             4(?:
   9254               56|
   9255               7[1-9]|
   9256               8[23678]
   9257             )|
   9258             5(?:
   9259               55|
   9260               6[2-5]|
   9261               88
   9262             )|
   9263             6(?:
   9264               3[2-578]|
   9265               4[24-9]|
   9266               5[34]|
   9267               78|
   9268               8[5-9]
   9269             )|
   9270             7(?:
   9271               [079]7|
   9272               2[0167]|
   9273               3[45]|
   9274               8[789]
   9275             )|
   9276             8(?:
   9277               [2-5789]8|
   9278               6[48]
   9279             )|
   9280             9(?:
   9281               2[29]|
   9282               6[79]|
   9283               7[179]|
   9284               8[789]|
   9285               9[78]
   9286             )
   9287           )\d{4}
   9288         </nationalNumberPattern>
   9289         <exampleNumber>6713001234</exampleNumber>
   9290       </mobile>
   9291       <tollFree>
   9292         <nationalNumberPattern>
   9293           8(?:
   9294             00|
   9295             55|
   9296             66|
   9297             77|
   9298             88
   9299           )[2-9]\d{6}
   9300         </nationalNumberPattern>
   9301         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9302         <exampleNumber>8002123456</exampleNumber>
   9303       </tollFree>
   9304       <premiumRate>
   9305         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   9306         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9307         <exampleNumber>9002123456</exampleNumber>
   9308       </premiumRate>
   9309       <personalNumber>
   9310         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   9311         <nationalNumberPattern>
   9312           5(?:
   9313             00|
   9314             33|
   9315             44
   9316           )[2-9]\d{6}
   9317         </nationalNumberPattern>
   9318         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9319         <exampleNumber>5002345678</exampleNumber>
   9320       </personalNumber>
   9321       <emergency>
   9322         <!-- http://www.justice.gov.gu/compileroflaws/gca/10gca/10gc084.PDF -->
   9323         <nationalNumberPattern>911</nationalNumberPattern>
   9324         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9325         <exampleNumber>911</exampleNumber>
   9326       </emergency>
   9327     </territory>
   9328 
   9329     <!-- Guinea-Bissau -->
   9330     <!-- http://www.itu.int/oth/T020200005C/en -->
   9331     <territory id="GW" countryCode="245" internationalPrefix="00">
   9332       <availableFormats>
   9333         <numberFormat pattern="(\d{3})(\d{4})">
   9334           <format>$1 $2</format>
   9335         </numberFormat>
   9336       </availableFormats>
   9337       <generalDesc>
   9338         <nationalNumberPattern>[3567]\d{6}</nationalNumberPattern>
   9339         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   9340       </generalDesc>
   9341       <fixedLine>
   9342         <nationalNumberPattern>
   9343           3(?:
   9344             2[0125]|
   9345             3[1245]|
   9346             4[12]|
   9347             5[1-4]|
   9348             70|
   9349             9[1-467]
   9350           )\d{4}
   9351         </nationalNumberPattern>
   9352         <exampleNumber>3201234</exampleNumber>
   9353       </fixedLine>
   9354       <mobile>
   9355         <nationalNumberPattern>[5-7]\d{6}</nationalNumberPattern>
   9356         <exampleNumber>5012345</exampleNumber>
   9357       </mobile>
   9358       <emergency>
   9359         <!-- https://www.osac.gov/pages/ContentReportDetails.aspx?cid=10970 -->
   9360         <nationalNumberPattern>11[378]</nationalNumberPattern>
   9361         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9362         <exampleNumber>113</exampleNumber>
   9363       </emergency>
   9364     </territory>
   9365 
   9366     <!-- Guyana -->
   9367     <!-- http://www.itu.int/oth/T020200005D/en -->
   9368     <territory id="GY" countryCode="592" internationalPrefix="001">
   9369       <availableFormats>
   9370         <numberFormat pattern="(\d{3})(\d{4})">
   9371           <format>$1 $2</format>
   9372         </numberFormat>
   9373       </availableFormats>
   9374       <generalDesc>
   9375         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
   9376         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   9377       </generalDesc>
   9378       <fixedLine>
   9379         <nationalNumberPattern>
   9380           (?:
   9381             2(?:
   9382               1[6-9]|
   9383               2[0-35-9]|
   9384               3[1-4]|
   9385               5[3-9]|
   9386               6\d|
   9387               7[0-24-79]
   9388             )|
   9389             3(?:
   9390               2[25-9]|
   9391               3\d
   9392             )|
   9393             4(?:
   9394               4[0-24]|
   9395               5[56]
   9396             )|
   9397             77[1-57]
   9398           )\d{4}
   9399         </nationalNumberPattern>
   9400         <exampleNumber>2201234</exampleNumber>
   9401       </fixedLine>
   9402       <mobile>
   9403         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
   9404              that SMS messages have been succesfully sent to numbers in the entire range prefixed
   9405              with 6. -->
   9406         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
   9407         <exampleNumber>6091234</exampleNumber>
   9408       </mobile>
   9409       <tollFree>
   9410         <nationalNumberPattern>
   9411           (?:
   9412             289|
   9413             862
   9414           )\d{4}
   9415         </nationalNumberPattern>
   9416         <exampleNumber>2891234</exampleNumber>
   9417       </tollFree>
   9418       <premiumRate>
   9419         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
   9420         <exampleNumber>9008123</exampleNumber>
   9421       </premiumRate>
   9422       <shortCode>
   9423         <nationalNumberPattern>
   9424           0(?:
   9425             02|
   9426             171|
   9427             444|
   9428             7[67]7|
   9429             801|
   9430             9(?:
   9431               0[78]|
   9432               [2-47]
   9433             )
   9434           )
   9435        </nationalNumberPattern>
   9436        <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   9437        <exampleNumber>0801</exampleNumber>
   9438       </shortCode>
   9439       <emergency>
   9440         <nationalNumberPattern>91[123]</nationalNumberPattern>
   9441         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9442         <exampleNumber>911</exampleNumber>
   9443       </emergency>
   9444     </territory>
   9445 
   9446     <!-- Hong Kong -->
   9447     <!-- http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html -->
   9448     <territory id="HK" countryCode="852" internationalPrefix="00">
   9449       <availableFormats>
   9450         <numberFormat pattern="(\d{4})(\d{4})">
   9451           <leadingDigits>
   9452             [235-7]|
   9453             [89](?:
   9454               0[1-9]|
   9455               [1-9]
   9456             )
   9457           </leadingDigits>
   9458           <format>$1 $2</format>
   9459         </numberFormat>
   9460         <numberFormat pattern="(800)(\d{3})(\d{3})">
   9461           <leadingDigits>800</leadingDigits>
   9462           <format>$1 $2 $3</format>
   9463         </numberFormat>
   9464         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
   9465           <leadingDigits>900</leadingDigits>
   9466           <format>$1 $2 $3 $4</format>
   9467         </numberFormat>
   9468         <numberFormat pattern="(900)(\d{2,5})">
   9469           <leadingDigits>900</leadingDigits>
   9470           <format>$1 $2</format>
   9471         </numberFormat>
   9472       </availableFormats>
   9473       <generalDesc>
   9474         <!-- Slightly more complex pattern to allow the country code to be stripped off if
   9475              necessary. -->
   9476         <nationalNumberPattern>
   9477           [235-7]\d{7}|
   9478           8\d{7,8}|
   9479           9\d{4,10}
   9480         </nationalNumberPattern>
   9481         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
   9482       </generalDesc>
   9483       <fixedLine>
   9484         <nationalNumberPattern>
   9485           (?:
   9486             [23]\d|
   9487             5[78]
   9488           )\d{6}
   9489         </nationalNumberPattern>
   9490         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9491         <exampleNumber>21234567</exampleNumber>
   9492       </fixedLine>
   9493       <mobile>
   9494         <nationalNumberPattern>
   9495           (?:
   9496             5[1-69]\d|
   9497             6\d{2}|
   9498             9(?:
   9499               0[1-9]|
   9500               [1-8]\d
   9501             )
   9502           )\d{5}
   9503         </nationalNumberPattern>
   9504         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9505         <exampleNumber>51234567</exampleNumber>
   9506       </mobile>
   9507       <pager>
   9508         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
   9509         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9510         <exampleNumber>71234567</exampleNumber>
   9511       </pager>
   9512       <tollFree>
   9513         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   9514         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   9515         <exampleNumber>800123456</exampleNumber>
   9516       </tollFree>
   9517       <premiumRate>
   9518         <nationalNumberPattern>
   9519           900(?:
   9520             [0-24-9]\d{7}|
   9521             3\d{1,4}
   9522           )
   9523         </nationalNumberPattern>
   9524         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
   9525         <exampleNumber>90012345678</exampleNumber>
   9526       </premiumRate>
   9527       <personalNumber>
   9528         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
   9529         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9530         <exampleNumber>81123456</exampleNumber>
   9531       </personalNumber>
   9532       <emergency>
   9533         <nationalNumberPattern>
   9534           112|
   9535           99[29]
   9536         </nationalNumberPattern>
   9537         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9538         <exampleNumber>999</exampleNumber>
   9539       </emergency>
   9540    </territory>
   9541 
   9542     <!-- Honduras -->
   9543     <!-- http://www.itu.int/oth/T020200005F/en -->
   9544     <!-- It seems there is no longer a trunk prefix in use, based on websites like
   9545          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
   9546          national format. -->
   9547     <territory id="HN" countryCode="504" internationalPrefix="00" >
   9548       <availableFormats>
   9549        <numberFormat pattern="(\d{4})(\d{4})">
   9550          <format>$1-$2</format>
   9551        </numberFormat>
   9552       </availableFormats>
   9553       <generalDesc>
   9554         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
   9555         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9556       </generalDesc>
   9557       <fixedLine>
   9558         <!-- Extra prefixes 228X and 2292 were added from numbers found online.  -->
   9559         <nationalNumberPattern>
   9560           2(?:
   9561             2(?:
   9562               0[019]|
   9563               1[1-36]|
   9564               [23]\d|
   9565               4[056]|
   9566               5[57]|
   9567               8[0146-9]|
   9568               9[012]
   9569             )|
   9570             4(?:
   9571               2|3-59]|
   9572               3[13-689]|
   9573               4[0-68]|
   9574               5[1-35]
   9575             )|
   9576             5(?:
   9577               4[3-5]|
   9578               5\d|
   9579               6[56]|
   9580               74
   9581             )|
   9582             6(?:
   9583               4[0-378]|
   9584               [56]\d|
   9585               [78][0-8]|
   9586               9[01]
   9587             )|
   9588             7(?:
   9589               6[46-9]|
   9590               7[02-9]|
   9591               8[34]
   9592             )|
   9593             8(?:
   9594               79|
   9595               8[0-35789]|
   9596               9[1-57-9]
   9597             )
   9598           )\d{4}
   9599         </nationalNumberPattern>
   9600         <exampleNumber>22123456</exampleNumber>
   9601       </fixedLine>
   9602       <mobile>
   9603         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
   9604         <exampleNumber>91234567</exampleNumber>
   9605       </mobile>
   9606       <emergency>
   9607         <nationalNumberPattern>199</nationalNumberPattern>
   9608         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9609         <exampleNumber>199</exampleNumber>
   9610       </emergency>
   9611     </territory>
   9612 
   9613     <!-- Croatia -->
   9614     <!-- http://www.itu.int/oth/T0202000032/en -->
   9615     <!-- http://en.wikipedia.org/wiki/%2B385 -->
   9616     <territory id="HR" countryCode="385" internationalPrefix="00"
   9617                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   9618       <availableFormats>
   9619         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
   9620              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
   9621              XXXX as well. -->
   9622        <numberFormat pattern="(1)(\d{4})(\d{3})">
   9623          <leadingDigits>1</leadingDigits>
   9624          <format>$1 $2 $3</format>
   9625        </numberFormat>
   9626        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
   9627          <leadingDigits>6[09]</leadingDigits>
   9628          <format>$1 $2 $3</format>
   9629        </numberFormat>
   9630        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
   9631          <leadingDigits>62</leadingDigits>
   9632          <format>$1 $2 $3</format>
   9633        </numberFormat>
   9634        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
   9635          <leadingDigits>[2-5]</leadingDigits>
   9636           <format>$1 $2 $3</format>
   9637         </numberFormat>
   9638         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
   9639           <leadingDigits>9</leadingDigits>
   9640           <format>$1 $2 $3</format>
   9641         </numberFormat>
   9642         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
   9643           <leadingDigits>9</leadingDigits>
   9644           <format>$1 $2 $3</format>
   9645         </numberFormat>
   9646         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
   9647           <leadingDigits>9</leadingDigits>
   9648           <format>$1 $2 $3 $4</format>
   9649         </numberFormat>
   9650         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
   9651           <leadingDigits>
   9652             6[145]|
   9653             7
   9654           </leadingDigits>
   9655           <format>$1 $2 $3</format>
   9656         </numberFormat>
   9657         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
   9658           <leadingDigits>
   9659             6[145]|
   9660             7
   9661           </leadingDigits>
   9662           <format>$1 $2 $3</format>
   9663         </numberFormat>
   9664         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
   9665           <leadingDigits>8</leadingDigits>
   9666           <format>$1 $2 $3</format>
   9667         </numberFormat>
   9668         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
   9669           <leadingDigits>8</leadingDigits>
   9670           <format>$1 $2 $3</format>
   9671         </numberFormat>
   9672       </availableFormats>
   9673       <generalDesc>
   9674         <nationalNumberPattern>
   9675           [1-7]\d{5,8}|
   9676           [89]\d{6,11}
   9677         </nationalNumberPattern>
   9678         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   9679       </generalDesc>
   9680       <fixedLine>
   9681         <nationalNumberPattern>
   9682           1\d{7}|
   9683           (?:
   9684             2[0-3]|
   9685             3[1-5]|
   9686             4[02-47-9]|
   9687             5[1-3]
   9688           )\d{6}
   9689         </nationalNumberPattern>
   9690         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   9691         <exampleNumber>12345678</exampleNumber>
   9692       </fixedLine>
   9693       <uan>
   9694         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
   9695              are numbers on the internet with 6 or 7 digits after the prefix. -->
   9696         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
   9697         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   9698         <exampleNumber>62123456</exampleNumber>
   9699       </uan>
   9700       <mobile>
   9701         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
   9702         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
   9703         <exampleNumber>912345678</exampleNumber>
   9704       </mobile>
   9705       <tollFree>
   9706         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
   9707         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   9708         <exampleNumber>8001234567</exampleNumber>
   9709       </tollFree>
   9710       <premiumRate>
   9711         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
   9712              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
   9713              -->
   9714         <nationalNumberPattern>
   9715           6(?:
   9716             [09]\d{7}|
   9717             [145]\d{4,7}
   9718           )
   9719         </nationalNumberPattern>
   9720         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   9721         <exampleNumber>611234</exampleNumber>
   9722       </premiumRate>
   9723       <personalNumber>
   9724         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
   9725         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   9726         <exampleNumber>741234567</exampleNumber>
   9727       </personalNumber>
   9728       <emergency>
   9729         <nationalNumberPattern>
   9730           1(?:
   9731             12|
   9732             92
   9733           )|
   9734           9[34]
   9735         </nationalNumberPattern>
   9736         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   9737         <exampleNumber>112</exampleNumber>
   9738       </emergency>
   9739     </territory>
   9740 
   9741     <!-- Haiti -->
   9742     <!-- http://www.itu.int/oth/T020200005E/en -->
   9743     <!-- http://www.numberingplans.com/ -->
   9744     <territory id="HT" countryCode="509" internationalPrefix="00">
   9745       <availableFormats>
   9746         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
   9747           <format>$1 $2 $3</format>
   9748         </numberFormat>
   9749       </availableFormats>
   9750       <generalDesc>
   9751         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
   9752         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9753       </generalDesc>
   9754       <fixedLine>
   9755         <!-- The prefix 24 seems to be also used, based on online searches. -->
   9756         <nationalNumberPattern>
   9757           2(?:
   9758             [24]\d|
   9759             5[1-5]|
   9760             94
   9761           )\d{5}
   9762         </nationalNumberPattern>
   9763         <exampleNumber>22453300</exampleNumber>
   9764       </fixedLine>
   9765       <mobile>
   9766         <!-- The prefix 31 seems to be also used, based on online searches. -->
   9767         <nationalNumberPattern>
   9768           (?:
   9769             3[1-9]|
   9770             4\d
   9771           )\d{6}
   9772         </nationalNumberPattern>
   9773         <exampleNumber>34101234</exampleNumber>
   9774       </mobile>
   9775       <tollFree>
   9776         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
   9777              without making any further distinction. However, http://www.numberingplans.com/ seems
   9778              to suggest they are free. -->
   9779         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
   9780         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9781         <exampleNumber>80012345</exampleNumber>
   9782       </tollFree>
   9783       <voip>
   9784         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
   9785              98[89]\d{5}. -->
   9786         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
   9787         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9788         <exampleNumber>98901234</exampleNumber>
   9789       </voip>
   9790       <shortCode>
   9791         <nationalNumberPattern>1\d{2}</nationalNumberPattern>
   9792         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9793         <exampleNumber>114</exampleNumber>
   9794       </shortCode>
   9795       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   9796       <emergency>
   9797         <nationalNumberPattern>11[48]</nationalNumberPattern>
   9798         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9799         <exampleNumber>118</exampleNumber>
   9800       </emergency>
   9801     </territory>
   9802 
   9803     <!-- Hungary -->
   9804     <!-- http://www.itu.int/oth/T0202000061/en -->
   9805     <territory id="HU" countryCode="36" internationalPrefix="00"
   9806                nationalPrefix="06" nationalPrefixFormattingRule="($FG)">
   9807       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
   9808            by a Hungarian person and following the yellow pages) is to omit this when formatting.
   9809            Yellow pages: www.aranyoldalak.hu -->
   9810       <availableFormats>
   9811         <numberFormat pattern="(1)(\d{3})(\d{4})">
   9812           <leadingDigits>1</leadingDigits>
   9813           <format>$1 $2 $3</format>
   9814         </numberFormat>
   9815         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   9816           <leadingDigits>[2-9]</leadingDigits>
   9817           <format>$1 $2 $3</format>
   9818         </numberFormat>
   9819       </availableFormats>
   9820       <generalDesc>
   9821         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
   9822         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   9823       </generalDesc>
   9824       <fixedLine>
   9825         <!-- Includes numbers for corporate networks. -->
   9826         <nationalNumberPattern>
   9827           (?:
   9828             1\d|
   9829             2(?:
   9830               1\d|
   9831               [2-9]
   9832             )|
   9833             3[2-7]|
   9834             4[24-9]|
   9835             5[2-79]|
   9836             6[23689]|
   9837             7(?:
   9838               1\d|
   9839               [2-9]
   9840             )|
   9841             8[2-57-9]|
   9842             9[2-69]
   9843           )\d{6}
   9844         </nationalNumberPattern>
   9845         <exampleNumber>12345678</exampleNumber>
   9846       </fixedLine>
   9847       <mobile>
   9848         <nationalNumberPattern>
   9849           (?:
   9850             [27]0|
   9851             3[01]
   9852           )\d{7}
   9853         </nationalNumberPattern>
   9854         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   9855         <exampleNumber>201234567</exampleNumber>
   9856       </mobile>
   9857       <tollFree>
   9858         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   9859         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9860         <exampleNumber>80123456</exampleNumber>
   9861       </tollFree>
   9862       <premiumRate>
   9863         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
   9864         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9865         <exampleNumber>90123456</exampleNumber>
   9866       </premiumRate>
   9867       <sharedCost>
   9868         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
   9869         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   9870         <exampleNumber>40123456</exampleNumber>
   9871       </sharedCost>
   9872       <emergency>
   9873         <nationalNumberPattern>
   9874           1(?:
   9875             0[457]|
   9876             12
   9877           )
   9878         </nationalNumberPattern>
   9879         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   9880         <exampleNumber>112</exampleNumber>
   9881       </emergency>
   9882     </territory>
   9883 
   9884     <!-- Indonesia -->
   9885     <!-- http://www.itu.int/oth/T0202000064/en (from 2001, very out-of-date) -->
   9886     <!-- http://en.wikipedia.org/wiki/%2B62 -->
   9887     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
   9888                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   9889       <availableFormats>
   9890         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   9891           pattern="(\d{2})(\d{7,8})">
   9892           <leadingDigits>
   9893             2[124]|
   9894             [36]1
   9895           </leadingDigits>
   9896           <format>$1 $2</format>
   9897         </numberFormat>
   9898         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   9899           pattern="(\d{3})(\d{5,7})">
   9900           <leadingDigits>
   9901             [4579]|
   9902             2[035-9]|
   9903             [36][02-9]
   9904           </leadingDigits>
   9905           <format>$1 $2</format>
   9906         </numberFormat>
   9907         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
   9908           <leadingDigits>8[1-35-9]</leadingDigits>
   9909           <format>$1-$2-$3</format>
   9910         </numberFormat>
   9911         <numberFormat pattern="(177)(\d{6,8})">
   9912           <leadingDigits>1</leadingDigits>
   9913           <format>$1 $2</format>
   9914         </numberFormat>
   9915         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
   9916              that sometimes they are followed by less digits. -->
   9917         <numberFormat pattern="(800)(\d{5,7})">
   9918           <leadingDigits>800</leadingDigits>
   9919           <format>$1 $2</format>
   9920         </numberFormat>
   9921         <numberFormat pattern="(809)(\d)(\d{3})(\d{3})">
   9922           <leadingDigits>809</leadingDigits>
   9923           <format>$1 $2 $3 $4</format>
   9924         </numberFormat>
   9925       </availableFormats>
   9926       <generalDesc>
   9927         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
   9928         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
   9929       </generalDesc>
   9930       <fixedLine>
   9931         <!-- Area codes taken from wikipedia, with missing ones added from
   9932              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
   9933              We also added 0770 after user feedback because it seems to be used on Bintan island.
   9934              Where known, fixed mobile prefixes have been represented as Mobile. -->
   9935         <nationalNumberPattern>
   9936           2(?:
   9937             1(?:
   9938               [0-8]\d{6,7}|
   9939               9\d{6}
   9940             )|
   9941             [24]\d{7,8}
   9942           )|
   9943           (?:
   9944             2(?:
   9945               [35][1-4]|
   9946               6[0-8]|
   9947               7[1-6]|
   9948               8\d|
   9949               9[1-8]
   9950             )|
   9951             3(?:
   9952               1|
   9953               2[1-578]|
   9954               3[1-68]|
   9955               4[1-3]|
   9956               5[1-8]|
   9957               6[1-3568]|
   9958               7[0-46]|
   9959               8\d
   9960             )|
   9961             4(?:
   9962               0[1-589]|
   9963               1[01347-9]|
   9964               2[0-36-8]|
   9965               3[0-24-68]|
   9966               5[1-378]|
   9967               6[1-5]|
   9968               7[134]|
   9969               8[1245]
   9970             )|
   9971             5(?:
   9972               1[1-35-9]|
   9973               2[25-8]|
   9974               3[1246-9]|
   9975               4[1-3589]|
   9976               5[1-46]|
   9977               6[1-8]
   9978             )|
   9979             6(?:
   9980               19?|
   9981               [25]\d|
   9982               3[1-469]|
   9983               4[1-6]
   9984             )|
   9985             7(?:
   9986               1[1-46-9]|
   9987               2[14-9]|
   9988               [36]\d|
   9989               4[1-8]|
   9990               5[1-9]|
   9991               7[0-36-9]
   9992             )|
   9993             9(?:
   9994               0[12]|
   9995               1[013-8]|
   9996               2[0-479]|
   9997               5[125-8]|
   9998               6[23679]|
   9999               7[159]|
   10000               8[01346]
   10001             )
   10002           )\d{5,8}
   10003         </nationalNumberPattern>
   10004         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   10005         <exampleNumber>612345678</exampleNumber>
   10006       </fixedLine>
   10007       <mobile>
   10008         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
   10009              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
   10010              are captured below. The pattern covers the area code plus the first one-two digits of
   10011              the subscriber number. -->
   10012         <nationalNumberPattern>
   10013           (?:
   10014             2(?:
   10015               1(?:
   10016                 3[145]|
   10017                 4[01]|
   10018                 5[1-469]|
   10019                 60|
   10020                 8[0359]|
   10021                 9\d
   10022               )|
   10023               2(?:
   10024                 88|
   10025                 9[1256]
   10026               )|
   10027               3[1-4]9|
   10028               4(?:
   10029                 36|
   10030                 91
   10031               )|
   10032               5(?:
   10033                 1[349]|
   10034                 [2-4]9
   10035               )|
   10036               6[0-7]9|
   10037               7(?:
   10038                 [1-36]9|
   10039                 4[39]
   10040               )|
   10041               8[1-5]9|
   10042               9[1-48]9
   10043             )|
   10044             3(?:
   10045               19[1-3]|
   10046               2[12]9|
   10047               3[13]9|
   10048               4(?:
   10049                 1[69]|
   10050                 39
   10051               )|
   10052               5[14]9|
   10053               6(?:
   10054                 1[69]|
   10055                 2[89]
   10056               )|
   10057               709
   10058             )|
   10059             4[13]19|
   10060             5(?:
   10061               1(?:
   10062                 19|
   10063                 8[39]
   10064               )|
   10065               4[129]9|
   10066               6[12]9
   10067             )|
   10068             6(?:
   10069               19[12]|
   10070               2(?:
   10071                 [23]9|
   10072                 77
   10073               )
   10074             )|
   10075             7(?:
   10076               1[13]9|
   10077               2[15]9|
   10078               419|
   10079               5(?:
   10080                 1[89]|
   10081                 29
   10082               )|
   10083               6[15]9|
   10084               7[178]9
   10085             )
   10086           )\d{5,6}|
   10087           8[1-35-9]\d{7,9}
   10088         </nationalNumberPattern>
   10089         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
   10090         <exampleNumber>812345678</exampleNumber>
   10091       </mobile>
   10092       <tollFree>
   10093         <nationalNumberPattern>
   10094           177\d{6,8}|
   10095           800\d{5,7}
   10096         </nationalNumberPattern>
   10097         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
   10098         <exampleNumber>8001234567</exampleNumber>
   10099       </tollFree>
   10100       <!-- The infomation below is provided by an Indonesian -->
   10101       <premiumRate>
   10102         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
   10103         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10104         <exampleNumber>8091234567</exampleNumber>
   10105       </premiumRate>
   10106       <emergency>
   10107         <nationalNumberPattern>11[02389]</nationalNumberPattern>
   10108         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   10109         <exampleNumber>112</exampleNumber>
   10110       </emergency>
   10111     </territory>
   10112 
   10113     <!-- Ireland -->
   10114     <!-- http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html -->
   10115     <!-- http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf -->
   10116     <territory id="IE" countryCode="353" internationalPrefix="00"
   10117                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
   10118       <availableFormats>
   10119         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
   10120           <leadingDigits>1</leadingDigits>
   10121           <format>$1 $2 $3</format>
   10122         </numberFormat>
   10123         <numberFormat pattern="(\d{2})(\d{5})">
   10124           <leadingDigits>
   10125             2[24-9]|
   10126             47|
   10127             58|
   10128             6[237-9]|
   10129             9[35-9]
   10130           </leadingDigits>
   10131           <format>$1 $2</format>
   10132         </numberFormat>
   10133         <numberFormat pattern="(\d{3})(\d{5})">
   10134           <leadingDigits>
   10135             40[24]|
   10136             50[45]
   10137           </leadingDigits>
   10138           <format>$1 $2</format>
   10139         </numberFormat>
   10140         <numberFormat pattern="(48)(\d{4})(\d{4})">
   10141           <leadingDigits>48</leadingDigits>
   10142           <format>$1 $2 $3</format>
   10143         </numberFormat>
   10144         <numberFormat pattern="(818)(\d{3})(\d{3})">
   10145           <leadingDigits>81</leadingDigits>
   10146           <format>$1 $2 $3</format>
   10147         </numberFormat>
   10148         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   10149           <leadingDigits>
   10150             [24-69]|
   10151             7[14]
   10152           </leadingDigits>
   10153           <format>$1 $2 $3</format>
   10154         </numberFormat>
   10155         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   10156           pattern="([78]\d)(\d{3,4})(\d{4})">
   10157           <leadingDigits>
   10158             76|
   10159             8[35-9]
   10160           </leadingDigits>
   10161           <format>$1 $2 $3</format>
   10162         </numberFormat>
   10163         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   10164           pattern="(700)(\d{3})(\d{3})">
   10165           <leadingDigits>70</leadingDigits>
   10166           <format>$1 $2 $3</format>
   10167         </numberFormat>
   10168         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
   10169           <leadingDigits>
   10170             1(?:
   10171               8[059]|
   10172               5
   10173             )
   10174           </leadingDigits>
   10175           <leadingDigits>
   10176             1(?:
   10177               8[059]0|
   10178               5
   10179             )
   10180           </leadingDigits>
   10181           <format>$1 $2 $3</format>
   10182         </numberFormat>
   10183       </availableFormats>
   10184       <generalDesc>
   10185         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
   10186         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   10187       </generalDesc>
   10188       <noInternationalDialling>
   10189         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
   10190         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10191         <exampleNumber>1850123456</exampleNumber>
   10192       </noInternationalDialling>
   10193       <fixedLine>
   10194         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
   10195              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
   10196              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
   10197              Ireland. We support these numbers here, although technically they are numbers for the
   10198              UK. -->
   10199         <nationalNumberPattern>
   10200           1\d{7,8}|
   10201           2(?:
   10202             1\d{6,7}|
   10203             3\d{7}|
   10204             [24-9]\d{5}
   10205           )|
   10206           4(?:
   10207             0[24]\d{5}|
   10208             [1-469]\d{7}|
   10209             5\d{6}|
   10210             7\d{5}|
   10211             8[0-46-9]\d{7}
   10212           )|
   10213           5(?:
   10214             0[45]\d{5}|
   10215             1\d{6}|
   10216             [23679]\d{7}|
   10217             8\d{5}
   10218           )|
   10219           6(?:
   10220             1\d{6}|
   10221             [237-9]\d{5}|
   10222             [4-6]\d{7}
   10223           )|
   10224           7[14]\d{7}|
   10225           9(?:
   10226             1\d{6}|
   10227             [04]\d{7}|
   10228             [35-9]\d{5}
   10229           )
   10230         </nationalNumberPattern>
   10231         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   10232         <exampleNumber>2212345</exampleNumber>
   10233       </fixedLine>
   10234       <mobile>
   10235         <nationalNumberPattern>
   10236           8(?:
   10237             22\d{6}|
   10238             [35-9]\d{7}
   10239           )
   10240         </nationalNumberPattern>
   10241         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   10242         <exampleNumber>850123456</exampleNumber>
   10243       </mobile>
   10244       <tollFree>
   10245         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
   10246         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10247         <exampleNumber>1800123456</exampleNumber>
   10248       </tollFree>
   10249       <premiumRate>
   10250         <nationalNumberPattern>
   10251           15(?:
   10252             1[2-8]|
   10253             [2-8]0|
   10254             9[089]
   10255           )\d{6}
   10256         </nationalNumberPattern>
   10257         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10258         <exampleNumber>1520123456</exampleNumber>
   10259       </premiumRate>
   10260       <sharedCost>
   10261         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
   10262         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10263         <exampleNumber>1850123456</exampleNumber>
   10264       </sharedCost>
   10265       <personalNumber>
   10266         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
   10267         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   10268         <exampleNumber>700123456</exampleNumber>
   10269       </personalNumber>
   10270       <voip>
   10271         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
   10272         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   10273         <exampleNumber>761234567</exampleNumber>
   10274       </voip>
   10275       <uan>
   10276         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
   10277         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   10278         <exampleNumber>818123456</exampleNumber>
   10279       </uan>
   10280       <voicemail>
   10281         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
   10282         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10283         <exampleNumber>8501234567</exampleNumber>
   10284       </voicemail>
   10285       <emergency>
   10286         <nationalNumberPattern>
   10287           112|
   10288           999
   10289         </nationalNumberPattern>
   10290         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   10291         <exampleNumber>112</exampleNumber>
   10292       </emergency>
   10293     </territory>
   10294 
   10295     <!-- Israel -->
   10296     <!-- http://www.itu.int/oth/T020200006A/en -->
   10297     <!-- http://en.wikipedia.org/wiki/%2B972 -->
   10298     <!-- http://he.wikipedia.org/wiki/%D7%A7%D7%99%D7%93%D7%95%D7%9E%D7%AA_%D7%98%D7%9C%D7%A4%D7%95%D7%9F_%D7%91%D7%99%D7%A9%D7%A8%D7%90%D7%9C
   10299          (in Hebrew) -->
   10300     <!-- Formatting practice following wikipedia, and government sites. -->
   10301     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
   10302                nationalPrefix="0" nationalPrefixFormattingRule="$FG">
   10303       <availableFormats>
   10304         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   10305           pattern="([2-489])(\d{3})(\d{4})">
   10306           <leadingDigits>[2-489]</leadingDigits>
   10307           <format>$1-$2-$3</format>
   10308         </numberFormat>
   10309         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   10310           pattern="([57]\d)(\d{3})(\d{4})">
   10311           <leadingDigits>[57]</leadingDigits>
   10312           <format>$1-$2-$3</format>
   10313         </numberFormat>
   10314         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
   10315           <leadingDigits>1[7-9]</leadingDigits>
   10316           <format>$1-$2-$3-$4</format>
   10317         </numberFormat>
   10318         <!-- The following number is for hospitals. -->
   10319         <numberFormat pattern="(1255)(\d{3})">
   10320           <leadingDigits>125</leadingDigits>
   10321           <format>$1-$2</format>
   10322         </numberFormat>
   10323         <numberFormat pattern="(1200)(\d{3})(\d{3})">
   10324           <leadingDigits>120</leadingDigits>
   10325           <format>$1-$2-$3</format>
   10326         </numberFormat>
   10327         <numberFormat pattern="(1212)(\d{2})(\d{2})">
   10328           <leadingDigits>121</leadingDigits>
   10329           <format>$1-$2-$3</format>
   10330         </numberFormat>
   10331         <!-- The following is for voicemail access. -->
   10332         <numberFormat pattern="(1599)(\d{6})">
   10333           <leadingDigits>15</leadingDigits>
   10334           <format>$1-$2</format>
   10335         </numberFormat>
   10336         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
   10337              dialed with a star in front of the number. -->
   10338         <numberFormat pattern="(\d{4})">
   10339           <leadingDigits>[2-689]</leadingDigits>
   10340           <format>*$1</format>
   10341         </numberFormat>
   10342       </availableFormats>
   10343       <generalDesc >
   10344         <nationalNumberPattern>
   10345           [17]\d{6,9}|
   10346           [2-589]\d{3}(?:\d{3,6})?|
   10347           6\d{3}
   10348         </nationalNumberPattern>
   10349         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   10350       </generalDesc>
   10351       <noInternationalDialling>
   10352         <nationalNumberPattern>
   10353           1700\d{6}|
   10354           [2-689]\d{3}
   10355         </nationalNumberPattern>
   10356         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   10357         <exampleNumber>1700123456</exampleNumber>
   10358       </noInternationalDialling>
   10359       <fixedLine>
   10360         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
   10361         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   10362         <exampleNumber>21234567</exampleNumber>
   10363       </fixedLine>
   10364       <mobile>
   10365         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
   10366              sure wikipedia is accurate based on news coverage of the launch of these numbers. -->
   10367         <nationalNumberPattern>
   10368           5(?:
   10369             [02347-9]\d{2}|
   10370             5(?:
   10371               2[23]|
   10372               3[34]|
   10373               4[45]|
   10374               5[5689]|
   10375               6[67]|
   10376               7[78]|
   10377               8[89]
   10378             )|
   10379             6[2-9]\d
   10380           )\d{5}
   10381         </nationalNumberPattern>
   10382         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   10383         <exampleNumber>501234567</exampleNumber>
   10384       </mobile>
   10385       <tollFree>
   10386         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
   10387         <nationalNumberPattern>
   10388           1(?:
   10389             80[019]\d{3}|
   10390             255
   10391           )\d{3}
   10392         </nationalNumberPattern>
   10393         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   10394         <exampleNumber>1800123456</exampleNumber>
   10395       </tollFree>
   10396       <premiumRate>
   10397           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
   10398                However, no online numbers starting with these prefixes can be found, and this data
   10399                is not found in any other source. -->
   10400           <!-- 1200 and 1212 numbers are for televoting. -->
   10401         <nationalNumberPattern>
   10402           1(?:
   10403             212|
   10404             (?:
   10405               9(?:
   10406                 0[01]|
   10407                 19
   10408               )|
   10409               200
   10410             )\d{2}
   10411           )\d{4}
   10412         </nationalNumberPattern>
   10413         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   10414         <exampleNumber>1919123456</exampleNumber>
   10415       </premiumRate>
   10416       <sharedCost>
   10417         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
   10418         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10419         <exampleNumber>1700123456</exampleNumber>
   10420       </sharedCost>
   10421       <voip>
   10422         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
   10423              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
   10424              Dialing) numbers, that most people forward to VoIP numbers. -->
   10425         <nationalNumberPattern>
   10426           7(?:
   10427             2[23]\d|
   10428             3[237]\d|
   10429             47\d|
   10430             6(?:
   10431               5\d|
   10432               8[08]
   10433             )|
   10434             7\d{2}|
   10435             8(?:
   10436               33|
   10437               55|
   10438               77|
   10439               81
   10440             )
   10441           )\d{5}
   10442         </nationalNumberPattern>
   10443         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   10444         <exampleNumber>771234567</exampleNumber>
   10445       </voip>
   10446       <uan>
   10447         <!-- 4-digit star numbers. -->
   10448         <nationalNumberPattern>[2-689]\d{3}</nationalNumberPattern>
   10449         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   10450         <exampleNumber>2250</exampleNumber>
   10451       </uan>
   10452       <voicemail>
   10453         <nationalNumberPattern>1599\d{6}</nationalNumberPattern>
   10454         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10455         <exampleNumber>1599123456</exampleNumber>
   10456       </voicemail>
   10457       <shortCode>
   10458         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
   10459         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   10460         <exampleNumber>1455</exampleNumber>
   10461       </shortCode>
   10462       <emergency>
   10463         <nationalNumberPattern>
   10464           1(?:
   10465             0[012]|
   10466             12
   10467           )
   10468         </nationalNumberPattern>
   10469         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   10470         <exampleNumber>112</exampleNumber>
   10471       </emergency>
   10472     </territory>
   10473 
   10474     <!-- Isle of Man -->
   10475     <!-- Inherits formatting rules from the UK. -->
   10476     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
   10477     <territory id="IM" countryCode="44" internationalPrefix="00"
   10478                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
   10479       <generalDesc>
   10480         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
   10481         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   10482       </generalDesc>
   10483       <areaCodeOptional>
   10484         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
   10485         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10486         <exampleNumber>1624250123</exampleNumber>
   10487       </areaCodeOptional>
   10488       <!-- Specific to IM. -->
   10489       <fixedLine>
   10490         <!-- 1624 with 10 digits. -->
   10491         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
   10492         <exampleNumber>1624456789</exampleNumber>
   10493       </fixedLine>
   10494       <mobile>
   10495         <!-- 7524, 7624, 7924 with 10 digits. -->
   10496         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
   10497         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10498         <exampleNumber>7924123456</exampleNumber>
   10499       </mobile>
   10500       <tollFree>
   10501         <!-- 808 162 with 10 digits. -->
   10502         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
   10503         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10504         <exampleNumber>8081624567</exampleNumber>
   10505       </tollFree>
   10506       <premiumRate>
   10507         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
   10508         <nationalNumberPattern>
   10509           (?:
   10510             872299|
   10511             90[0167]624
   10512           )\d{4}
   10513         </nationalNumberPattern>
   10514         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10515         <exampleNumber>9016247890</exampleNumber>
   10516       </premiumRate>
   10517       <sharedCost>
   10518         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
   10519         <nationalNumberPattern>
   10520           8(?:
   10521             4(?:
   10522               40[49]06|
   10523               5624\d
   10524             )|
   10525             70624\d
   10526           )\d{3}
   10527         </nationalNumberPattern>
   10528         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10529         <exampleNumber>8456247890</exampleNumber>
   10530       </sharedCost>
   10531       <!-- Other numbers as per GB. -->
   10532       <personalNumber>
   10533         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   10534         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10535         <exampleNumber>7012345678</exampleNumber>
   10536       </personalNumber>
   10537       <voip>
   10538         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
   10539         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10540         <exampleNumber>5612345678</exampleNumber>
   10541       </voip>
   10542       <uan>
   10543         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
   10544         <nationalNumberPattern>
   10545           3(?:
   10546             08162\d|
   10547             3\d{5}|
   10548             4(?:
   10549               40[49]06|
   10550               5624\d
   10551             )|
   10552             7(?:
   10553               0624\d|
   10554               2299\d
   10555             )
   10556           )\d{3}|
   10557           55\d{8}
   10558         </nationalNumberPattern>
   10559         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10560         <exampleNumber>5512345678</exampleNumber>
   10561       </uan>
   10562       <shortCode>
   10563         <nationalNumberPattern>1\d{2}(?:\d{3})?</nationalNumberPattern>
   10564         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   10565         <exampleNumber>150</exampleNumber>
   10566       </shortCode>
   10567       <emergency>
   10568         <!-- http://www.directory.im/directory_useful.aspx -->
   10569         <nationalNumberPattern>999</nationalNumberPattern>
   10570         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   10571         <exampleNumber>999</exampleNumber>
   10572       </emergency>
   10573     </territory>
   10574 
   10575     <!-- India -->
   10576     <!-- http://www.dot.gov.in/numbering_plan/numberplanindex.htm -->
   10577     <!-- http://www.itu.int/oth/T0202000063/en -->
   10578     <!-- http://en.wikipedia.org/wiki/%2B91 -->
   10579     <!-- http://www.coai.in/msccodes.php -->
   10580     <!-- Note that several changes in area codes have occurred since the numbering plan was released
   10581          - fixed line changes are notified on the www.bsnl.co.in website. Area codes can be verified
   10582            here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
   10583     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
   10584                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true" >
   10585        <availableFormats>
   10586          <!-- Mobile numbers. -->
   10587          <numberFormat pattern="(\d{2})(\d{2})(\d{6})">
   10588            <leadingDigits>
   10589              7(?:
   10590                2[0579]|
   10591                3[057-9]|
   10592                4[0-389]|
   10593                5[024-9]|
   10594                6[0-35-9]|
   10595                7[0346-9]|
   10596                8[0-79]
   10597              )|
   10598              8(?:
   10599                0[015689]|
   10600                1[0-57-9]|
   10601                2[2356-9]|
   10602                3[0-57-9]|
   10603                [45]|
   10604                6[0245789]|
   10605                7[1-69]|
   10606                8[0124-9]|
   10607                9[02-9]
   10608              )|
   10609              9
   10610            </leadingDigits>
   10611            <leadingDigits>
   10612              7(?:
   10613                2(?:
   10614                  0[04-9]|
   10615                  5[09]|
   10616                  7[5-8]|
   10617                  9[389]
   10618                )|
   10619                3(?:
   10620                  0[1-9]|
   10621                  [58]|
   10622                  7[3679]|
   10623                  9[689]
   10624                )|
   10625                4(?:
   10626                  0[1-9]|
   10627                  1[15-9]|
   10628                  [29][89]|
   10629                  39|
   10630                  8[389]
   10631                )|
   10632                5(?:
   10633                  0|
   10634                  [47]9|
   10635                  [25]0|
   10636                  6[6-9]|
   10637                  [89][7-9]
   10638                )|
   10639                6(?:
   10640                  0[027]|
   10641                  12|
   10642                  20|
   10643                  3[19]|
   10644                  5[45]|
   10645                  6[5-9]|
   10646                  7[679]|
   10647                  9[6-9]
   10648                )|
   10649                7(?:
   10650                  0[27-9]|
   10651                  3[5-9]|
   10652                  42|
   10653                  60|
   10654                  7[7-9]|
   10655                  8[1-9]|
   10656                  9[05-9]
   10657                )|
   10658                8(?:
   10659                  [03][07-9]|
   10660                  14|
   10661                  2[7-9]|
   10662                  [4-7]|
   10663                  9[013-9]
   10664                )
   10665              )|
   10666              8(?:
   10667                0(?:
   10668                  [01589]|
   10669                  6[67]
   10670                )|
   10671                1(?:
   10672                  [02-589]|
   10673                  1[0135-9]|
   10674                  7[0-79]
   10675                )|
   10676                2(?:
   10677                  [236-9]|
   10678                  5[1-9]
   10679                )|
   10680                3(?:
   10681                  [037-9]|
   10682                  4[1-9]|
   10683                  5[0-57-9]
   10684                )|
   10685                [45]|
   10686                6[02457-9]|
   10687                7[1-69]|
   10688                8(?:
   10689                  [0-26-9]|
   10690                  44|
   10691                  5[2-9]
   10692                )|
   10693                9(?:
   10694                  [035-9]|
   10695                  2[2-9]|
   10696                  4[0-8]
   10697                )
   10698              )|
   10699              9
   10700            </leadingDigits>
   10701            <format>$1 $2 $3</format>
   10702          </numberFormat>
   10703          <!-- 2 digits area code -->
   10704          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   10705            <leadingDigits>
   10706              11|
   10707              2[02]|
   10708              33|
   10709              4[04]|
   10710              79|
   10711              80[2-46]
   10712            </leadingDigits>
   10713            <format>$1 $2 $3</format>
   10714          </numberFormat>
   10715          <!-- 3 digit area codes that don't clash with mobile patterns. -->
   10716          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   10717            <leadingDigits>
   10718              1(?:
   10719                2[0-249]|
   10720                3[0-25]|
   10721                4[145]|
   10722                [569][14]|
   10723                7[1257]|
   10724                8[1346]|
   10725                [68][1-9]
   10726              )|
   10727              2(?:
   10728                1[257]|
   10729                3[013]|
   10730                4[01]|
   10731                5[0137]|
   10732                6[0158]|
   10733                78|
   10734                8[1568]|
   10735                9[14]
   10736              )|
   10737              3(?:
   10738                26|
   10739                4[1-3]|
   10740                5[34]|
   10741                6[01489]|
   10742                7[02-46]|
   10743                8[159]
   10744              )|
   10745              4(?:
   10746                1[36]|
   10747                2[1-47]|
   10748                3[15]|
   10749                5[12]|
   10750                6[126-9]|
   10751                7[0-24-9]|
   10752                8[013-57]|
   10753                9[014-7]
   10754              )|
   10755              5(?:
   10756                [136][25]|
   10757                22|
   10758                4[28]|
   10759                5[12]|
   10760                [78]1|
   10761                9[15]
   10762              )|
   10763              6(?:
   10764                12|
   10765                [2345]1|
   10766                57|
   10767                6[13]|
   10768                7[14]|
   10769                80
   10770              )
   10771            </leadingDigits>
   10772            <format>$1 $2 $3</format>
   10773          </numberFormat>
   10774          <!-- Three-digit area codes that potentially overlap with mobile. -->
   10775          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   10776            <leadingDigits>
   10777              7(?:
   10778                12|
   10779                2[14]|
   10780                3[134]|
   10781                4[47]|
   10782                5[15]|
   10783                [67]1|
   10784                88
   10785              )
   10786            </leadingDigits>
   10787            <leadingDigits>
   10788              7(?:
   10789                12|
   10790                2[14]|
   10791                3[134]|
   10792                4[47]|
   10793                5(?:
   10794                  1|
   10795                  5[2-6]
   10796                )|
   10797                [67]1|
   10798                88
   10799              )
   10800            </leadingDigits>
   10801            <format>$1 $2 $3</format>
   10802          </numberFormat>
   10803          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   10804            <leadingDigits>
   10805              8(?:
   10806                16|
   10807                2[014]|
   10808                3[126]|
   10809                6[136]|
   10810                7[078]|
   10811                8[34]|
   10812                91
   10813              )
   10814            </leadingDigits>
   10815            <format>$1 $2 $3</format>
   10816          </numberFormat>
   10817          <!-- 4 digits area code -->
   10818          <!-- Fallback for fixed-line numbers. -->
   10819          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
   10820            <leadingDigits>
   10821              1(?:
   10822                [2-579]|
   10823                [68][1-9]
   10824              )|
   10825              [2-8]
   10826            </leadingDigits>
   10827            <format>$1 $2 $3</format>
   10828          </numberFormat>
   10829          <numberFormat nationalPrefixFormattingRule="$FG"
   10830            pattern="(1600)(\d{2})(\d{4})">
   10831            <leadingDigits>160</leadingDigits>
   10832            <leadingDigits>1600</leadingDigits>
   10833            <format>$1 $2 $3</format>
   10834          </numberFormat>
   10835          <numberFormat nationalPrefixFormattingRule="$FG"
   10836            pattern="(1800)(\d{4,5})">
   10837            <leadingDigits>180</leadingDigits>
   10838            <leadingDigits>1800</leadingDigits>
   10839            <format>$1 $2</format>
   10840          </numberFormat>
   10841          <numberFormat nationalPrefixFormattingRule="$FG"
   10842            pattern="(18[06]0)(\d{2,4})(\d{4})">
   10843            <leadingDigits>18[06]</leadingDigits>
   10844            <leadingDigits>18[06]0</leadingDigits>
   10845            <format>$1 $2 $3</format>
   10846          </numberFormat>
   10847          <!-- Televoting numbers. Formatting information is from
   10848               http://www.bsnl.co.in/service/telev.htm -->
   10849          <numberFormat nationalPrefixFormattingRule="$FG"
   10850            pattern="(\d{4})(\d{3})(\d{4})(\d{2})">
   10851            <leadingDigits>18[06]</leadingDigits>
   10852            <leadingDigits>
   10853              18(?:
   10854                03|
   10855                6[12]
   10856              )
   10857            </leadingDigits>
   10858            <format>$1 $2 $3 $4</format>
   10859          </numberFormat>
   10860       </availableFormats>
   10861       <generalDesc>
   10862         <nationalNumberPattern>
   10863           1\d{7,12}|
   10864           [2-9]\d{9,10}
   10865         </nationalNumberPattern>
   10866         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
   10867       </generalDesc>
   10868       <noInternationalDialling>
   10869         <nationalNumberPattern>
   10870           1(?:
   10871             600\d{6}|
   10872             8(?:
   10873               0(?:
   10874                 0\d{4,8}|
   10875                 3\d{9}
   10876               )|
   10877               6(?:
   10878                 0\d{7}|
   10879                 [12]\d{9}
   10880               )
   10881             )
   10882            )
   10883         </nationalNumberPattern>
   10884         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
   10885         <exampleNumber>1800123456</exampleNumber>
   10886       </noInternationalDialling>
   10887       <fixedLine>
   10888         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
   10889              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
   10890              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
   10891              Not all operator codes are available in all areas, but we don't maintain that
   10892              distinction here.
   10893              Area codes starting with a 7 are listed separately, since the prefixes need to be more
   10894              detailed so they clash less with mobile phone prefixes. -->
   10895         <nationalNumberPattern>
   10896           (?:
   10897             11|
   10898             2[02]|
   10899             33|
   10900             4[04]|
   10901             79
   10902           )[2-7]\d{7}|
   10903           80[2-467]\d{7}|
   10904           (?:
   10905             1(?:
   10906               2[0-249]|
   10907               3[0-25]|
   10908               4[145]|
   10909               [59][14]|
   10910               6[014]|
   10911               7[1257]|
   10912               8[01346]
   10913             )|
   10914             2(?:
   10915               1[257]|
   10916               3[013]|
   10917               4[01]|
   10918               5[0137]|
   10919               6[0158]|
   10920               78|
   10921               8[1568]|
   10922               9[14]
   10923             )|
   10924             3(?:
   10925               26|
   10926               4[1-3]|
   10927               5[34]|
   10928               6[01489]|
   10929               7[02-46]|
   10930               8[159]
   10931             )|
   10932             4(?:
   10933               1[36]|
   10934               2[1-47]|
   10935               3[15]|
   10936               5[12]|
   10937               6[126-9]|
   10938               7[0-24-9]|
   10939               8[013-57]|
   10940               9[014-7]
   10941             )|
   10942             5(?:
   10943               [136][25]|
   10944               22|
   10945               4[28]|
   10946               5[12]|
   10947               [78]1|
   10948               9[15]
   10949             )|
   10950             6(?:
   10951               12|
   10952               [2345]1|
   10953               57|
   10954               6[13]|
   10955               7[14]|
   10956               80
   10957             )|
   10958             7(?:
   10959               12|
   10960               2[14]|
   10961               3[134]|
   10962               4[47]|
   10963               5[15]|
   10964               [67]1|
   10965               88
   10966             )|
   10967             8(?:
   10968               16|
   10969               2[014]|
   10970               3[126]|
   10971               6[136]|
   10972               7[078]|
   10973               8[34]|
   10974               91
   10975             )
   10976           )[2-7]\d{6}|
   10977           (?:
   10978             (?:
   10979               1(?:
   10980                 2[35-8]|
   10981                 3[346-9]|
   10982                 4[236-9]|
   10983                 [59][0235-9]|
   10984                 6[235-9]|
   10985                 7[34689]|
   10986                 8[257-9]
   10987               )|
   10988               2(?:
   10989                 1[134689]|
   10990                 3[24-8]|
   10991                 4[2-8]|
   10992                 5[25689]|
   10993                 6[2-4679]|
   10994                 7[13-79]|
   10995                 8[2-479]|
   10996                 9[235-9]
   10997               )|
   10998               3(?:
   10999                 01|
   11000                 1[79]|
   11001                 2[1-5]|
   11002                 4[25-8]|
   11003                 5[125689]|
   11004                 6[235-7]|
   11005                 7[157-9]|
   11006                 8[2-467]
   11007               )|
   11008               4(?:
   11009                 1[14578]|
   11010                 2[5689]|
   11011                 3[2-467]|
   11012                 5[4-7]|
   11013                 6[35]|
   11014                 73|
   11015                 8[2689]|
   11016                 9[2389]
   11017               )|
   11018               5(?:
   11019                 [16][146-9]|
   11020                 2[14-8]|
   11021                 3[1346]|
   11022                 4[14-69]|
   11023                 5[46]|
   11024                 7[2-4]|
   11025                 8[2-8]|
   11026                 9[246]
   11027               )|
   11028               6(?:
   11029                 1[1358]|
   11030                 2[2457]|
   11031                 3[2-4]|
   11032                 4[235-7]|
   11033                 [57][2-689]|
   11034                 6[24-58]|
   11035                 8[1-6]
   11036               )|
   11037               8(?:
   11038                 1[1357-9]|
   11039                 2[235-8]|
   11040                 3[03-57-9]|
   11041                 4[0-24-9]|
   11042                 5\d|
   11043                 6[2457-9]|
   11044                 7[1-6]|
   11045                 8[1256]|
   11046                 9[2-4]
   11047               )
   11048             )\d|
   11049             7(?:
   11050               (?:
   11051                 1[013-9]|
   11052                 2[0235-9]|
   11053                 3[2679]|
   11054                 4[1-35689]|
   11055                 5[2-46-9]|
   11056                 [67][02-9]|
   11057                 9\d
   11058               )\d|
   11059               8(?:
   11060                 2[0-6]|
   11061                 [013-8]\d
   11062               )
   11063             )
   11064           )[2-7]\d{5}
   11065         </nationalNumberPattern>
   11066         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   11067         <exampleNumber>1123456789</exampleNumber>
   11068       </fixedLine>
   11069       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
   11070       <!-- The document titled "List of MSC codes" linked off
   11071            http://www.dot.gov.in/numbering_plan/numberplanindex.htm is the best source for these.
   11072            -->
   11073       <mobile>
   11074         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
   11075              codes list, are added because SMS messages have been successfully sent to these
   11076              numbers. It seems almost impossible to know for some of these numbers whether they are
   11077              land-line or mobile, since the ranges overlap. Extra prefixes added: 8299, 8309,
   11078              835[45].
   11079              New prefixes were added based on the document provided from mobile carriers:
   11080              https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
   11081         <nationalNumberPattern>
   11082           (?:
   11083             7(?:
   11084               2(?:
   11085                 0[04-9]|
   11086                 5[09]|
   11087                 7[5-8]|
   11088                 9[389]
   11089               )|
   11090               3(?:
   11091                 0[1-9]|
   11092                 [58]\d|
   11093                 7[3679]|
   11094                 9[689]
   11095               )|
   11096               4(?:
   11097                 0[1-9]|
   11098                 1[15-9]|
   11099                 [29][89]|
   11100                 39|
   11101                 8[389]
   11102               )|
   11103               5(?:
   11104                 0\d|
   11105                 [47]9|
   11106                 [25]0|
   11107                 6[6-9]|
   11108                 [89][7-9]
   11109               )|
   11110               6(?:
   11111                 0[027]|
   11112                 12|
   11113                 20|
   11114                 3[19]|
   11115                 5[45]|
   11116                 6[5-9]|
   11117                 7[679]|
   11118                 9[6-9]
   11119               )|
   11120               7(?:
   11121                 0[27-9]|
   11122                 3[5-9]|
   11123                 42|
   11124                 6[03-9]|
   11125                 [79]\d|
   11126                 8[1-9]
   11127               )|
   11128               8(?:
   11129                 [0-7]\d|
   11130                 9[013-9]
   11131               )
   11132             )|
   11133             8(?:
   11134               0(?:
   11135                 [01589]\d|
   11136                 6[67]
   11137               )|
   11138               1(?:
   11139                 [02-589]\d|
   11140                 1[0135-9]|
   11141                 7[0-79]
   11142               )|
   11143               2(?:
   11144                 [236-9]\d|
   11145                 5[1-9]
   11146               )|
   11147               3(?:
   11148                 [037-9]\d|
   11149                 4[1-9]|
   11150                 5[0-57-9]
   11151               )|
   11152               [45]\d{2}|
   11153               6[02457-9]\d|
   11154               7[1-69]\d|
   11155               8(?:
   11156                 [0-26-9]\d|
   11157                 44|
   11158                 5[2-9]
   11159               )|
   11160               9(?:
   11161                 [035-9]\d|
   11162                 2[2-9]|
   11163                 4[0-8]
   11164               )
   11165             )|
   11166             9\d{3}
   11167           )\d{6}
   11168         </nationalNumberPattern>
   11169         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11170         <exampleNumber>9123456789</exampleNumber>
   11171       </mobile>
   11172       <tollFree>
   11173         <!-- Information gathered from sites such as
   11174              http://www.surfindia.com/india-facts/toll-free-no.html and
   11175              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
   11176              http://www.bsnl.co.in/service/telev.htm -->
   11177         <nationalNumberPattern>
   11178           1(?:
   11179             600\d{6}|
   11180             80(?:
   11181               0\d{4,8}|
   11182               3\d{9}
   11183             )
   11184           )
   11185         </nationalNumberPattern>
   11186         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
   11187         <exampleNumber>1800123456</exampleNumber>
   11188       </tollFree>
   11189       <premiumRate>
   11190         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
   11191              because they overlap with mobile, and we haven't found any real numbers online. -->
   11192         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
   11193         <possibleNumberPattern>\d{13}</possibleNumberPattern>
   11194         <exampleNumber>1861123456789</exampleNumber>
   11195       </premiumRate>
   11196       <uan>
   11197         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
   11198         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   11199         <exampleNumber>18603451234</exampleNumber>
   11200       </uan>
   11201       <emergency>
   11202         <nationalNumberPattern>
   11203           1(?:
   11204             0[0128]|
   11205             12|
   11206             298
   11207           )|
   11208           2611
   11209         </nationalNumberPattern>
   11210         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   11211         <exampleNumber>108</exampleNumber>
   11212       </emergency>
   11213     </territory>
   11214 
   11215     <!-- British Indian Ocean Territory / Diego Garcia -->
   11216     <!-- http://www.itu.int/oth/T0202000039/en -->
   11217     <territory id="IO" countryCode="246" internationalPrefix="00">
   11218       <availableFormats>
   11219         <numberFormat pattern="(\d{3})(\d{4})">
   11220           <format>$1 $2</format>
   11221         </numberFormat>
   11222       </availableFormats>
   11223       <generalDesc>
   11224         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
   11225         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   11226       </generalDesc>
   11227       <fixedLine>
   11228         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
   11229         <exampleNumber>3709100</exampleNumber>
   11230       </fixedLine>
   11231       <mobile>
   11232         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
   11233         <exampleNumber>3801234</exampleNumber>
   11234       </mobile>
   11235       <!-- It seems that there are no emergency numbers for this island. -->
   11236     </territory>
   11237 
   11238     <!-- Iraq -->
   11239     <!-- http://en.wikipedia.org/wiki/%2B964 -->
   11240     <!-- http://wtng.info/wtng-964-ik.html -->
   11241     <territory id="IQ" countryCode="964" internationalPrefix="00"
   11242                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   11243       <availableFormats>
   11244         <numberFormat pattern="(1)(\d{3})(\d{4})">
   11245           <leadingDigits>1</leadingDigits>
   11246           <format>$1 $2 $3</format>
   11247         </numberFormat>
   11248         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
   11249           <leadingDigits>[2-6]</leadingDigits>
   11250           <format>$1 $2 $3</format>
   11251         </numberFormat>
   11252         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
   11253           <leadingDigits>7</leadingDigits>
   11254           <format>$1 $2 $3</format>
   11255         </numberFormat>
   11256       </availableFormats>
   11257       <generalDesc>
   11258         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
   11259         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   11260       </generalDesc>
   11261       <fixedLine>
   11262         <nationalNumberPattern>
   11263           1\d{7}|
   11264           (?:
   11265             2[13-5]|
   11266             3[02367]|
   11267             4[023]|
   11268             5[03]|
   11269             6[026]
   11270           )\d{6,7}
   11271         </nationalNumberPattern>
   11272         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   11273         <exampleNumber>12345678</exampleNumber>
   11274       </fixedLine>
   11275       <mobile>
   11276         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
   11277         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11278         <exampleNumber>7912345678</exampleNumber>
   11279       </mobile>
   11280       <!-- No tollFree or premiumRate information can be found. -->
   11281       <!-- No national emergency numbers were located for Iraq. -->
   11282     </territory>
   11283 
   11284     <!-- Iran, Islamic Republic of -->
   11285     <!-- http://en.wikipedia.org/wiki/%2B98 -->
   11286     <!-- http://www.itu.int/oth/T0202000066/en -->
   11287     <territory id="IR" countryCode="98" internationalPrefix="00"
   11288                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   11289       <availableFormats>
   11290         <!-- Formatting follows wikipedia. -->
   11291         <numberFormat pattern="(21)(\d{3,5})">
   11292           <leadingDigits>21</leadingDigits>
   11293           <format>$1 $2</format>
   11294         </numberFormat>
   11295         <numberFormat pattern="(21)(\d{3})(\d{3,4})">
   11296           <leadingDigits>21</leadingDigits>
   11297           <format>$1 $2 $3</format>
   11298         </numberFormat>
   11299         <numberFormat pattern="(2[16])(\d{4})(\d{4})">
   11300           <leadingDigits>2[16]</leadingDigits>
   11301           <format>$1 $2 $3</format>
   11302         </numberFormat>
   11303         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   11304           <leadingDigits>
   11305             [13-9]|
   11306             2[02-9]
   11307           </leadingDigits>
   11308           <format>$1 $2 $3</format>
   11309         </numberFormat>
   11310       </availableFormats>
   11311       <generalDesc>
   11312         <nationalNumberPattern>
   11313           [14-8]\d{6,9}|
   11314           [23]\d{5,9}|
   11315           9(?:
   11316             [1-4]\d{8}|
   11317             9\d{2,8}
   11318           )
   11319         </nationalNumberPattern>
   11320         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   11321       </generalDesc>
   11322       <fixedLine>
   11323         <nationalNumberPattern>
   11324           (?:
   11325             [145](?:
   11326               1[1-9]|
   11327               [2-9]\d
   11328             )\d{0,3}|
   11329             [23][1-9]\d{0,4}|
   11330             6[1-9]\d{1,4}|
   11331             [78]\d{2,5}
   11332           )\d{4}
   11333         </nationalNumberPattern>
   11334         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   11335         <exampleNumber>2123456789</exampleNumber>
   11336       </fixedLine>
   11337       <mobile>
   11338         <nationalNumberPattern>
   11339           9[1-3]\d{8}
   11340         </nationalNumberPattern>
   11341         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11342         <exampleNumber>9123456789</exampleNumber>
   11343       </mobile>
   11344       <pager>
   11345         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
   11346         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11347         <exampleNumber>9432123456</exampleNumber>
   11348       </pager>
   11349       <!-- No tollFree or premiumRate information can be found. -->
   11350       <voip>
   11351         <!-- Includes VSAT and Boomehen Satellite numbers. -->
   11352         <nationalNumberPattern>
   11353           (?:
   11354             [2-6]0\d|
   11355             993
   11356           )\d{7}
   11357         </nationalNumberPattern>
   11358         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11359         <exampleNumber>9932123456</exampleNumber>
   11360       </voip>
   11361       <uan>
   11362         <!-- MCI Public Relations numbers -->
   11363         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
   11364         <exampleNumber>9990123456</exampleNumber>
   11365       </uan>
   11366       <emergency>
   11367         <nationalNumberPattern>
   11368           1(?:
   11369             1[025]|
   11370             25
   11371           )
   11372         </nationalNumberPattern>
   11373         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   11374         <exampleNumber>112</exampleNumber>
   11375       </emergency>
   11376     </territory>
   11377 
   11378     <!-- Iceland -->
   11379     <!-- http://www.pta.is/default.aspx?cat_id=85 -->
   11380     <!-- http://www.pfs.is/default.aspx?cat_id=14&module_id=210&element_id=4 -->
   11381     <territory id="IS" countryCode="354" internationalPrefix="00">
   11382       <availableFormats>
   11383         <numberFormat pattern="(\d{3})(\d{4})">
   11384           <leadingDigits>[4-9]</leadingDigits>
   11385           <format>$1 $2</format>
   11386         </numberFormat>
   11387         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
   11388           <leadingDigits>3</leadingDigits>
   11389           <format>$1 $2 $3</format>
   11390         </numberFormat>
   11391       </availableFormats>
   11392       <generalDesc>
   11393         <nationalNumberPattern>
   11394           [4-9]\d{6}|
   11395           38\d{7}
   11396         </nationalNumberPattern>
   11397         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   11398       </generalDesc>
   11399       <fixedLine>
   11400         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
   11401         <nationalNumberPattern>
   11402           (?:
   11403             4(?:
   11404               [14][0-245]|
   11405               2[0-7]|
   11406               [37][0-8]|
   11407               5[0-3568]|
   11408               6\d|
   11409               8[0-36-8]
   11410             )|
   11411             5(?:
   11412               05|
   11413               [156]\d|
   11414               2[02578]|
   11415               3[013-7]|
   11416               4[03-7]|
   11417               7[0-2578]|
   11418               8[0-35-9]|
   11419               9[013-689]
   11420             )|
   11421             87[23]
   11422           )\d{4}
   11423         </nationalNumberPattern>
   11424         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   11425         <exampleNumber>4101234</exampleNumber>
   11426       </fixedLine>
   11427       <mobile>
   11428         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
   11429         <nationalNumberPattern>
   11430           38[59]\d{6}|
   11431           (?:
   11432             6(?:
   11433               1[0-8]|
   11434               3[0-27-9]|
   11435               4[0-27]|
   11436               5[0-29]|
   11437               [67][0-69]|
   11438               9\d
   11439             )|
   11440             7(?:
   11441               5[057]|
   11442               7\d|
   11443               8[0-3]
   11444             )|
   11445             8(?:
   11446               2[0-5]|
   11447               [469]\d|
   11448               5[1-9]
   11449             )
   11450           )\d{4}
   11451         </nationalNumberPattern>
   11452         <exampleNumber>6101234</exampleNumber>
   11453       </mobile>
   11454       <tollFree>
   11455         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
   11456         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   11457         <exampleNumber>8001234</exampleNumber>
   11458       </tollFree>
   11459       <premiumRate>
   11460         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
   11461         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   11462         <exampleNumber>9011234</exampleNumber>
   11463       </premiumRate>
   11464       <voip>
   11465         <nationalNumberPattern>49[0-24-79]\d{4}</nationalNumberPattern>
   11466         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   11467         <exampleNumber>4921234</exampleNumber>
   11468       </voip>
   11469       <voicemail>
   11470         <nationalNumberPattern>
   11471           388\d{6}|
   11472           (?:
   11473             6(?:
   11474               2[0-8]|
   11475               49|
   11476               8\d
   11477             )|
   11478             8(?:
   11479               2[6-9]|
   11480               [38]\d|
   11481               50|
   11482               7[014-9]
   11483             )|
   11484             95[48]
   11485           )\d{4}
   11486         </nationalNumberPattern>
   11487         <exampleNumber>388123456</exampleNumber>
   11488       </voicemail>
   11489       <emergency>
   11490         <nationalNumberPattern>112</nationalNumberPattern>
   11491         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   11492         <exampleNumber>112</exampleNumber>
   11493       </emergency>
   11494     </territory>
   11495 
   11496     <!-- Italy -->
   11497     <!-- http://en.wikipedia.org/wiki/%2B39 -->
   11498     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true">
   11499       <availableFormats>
   11500         <!-- The leading zero for fixed numbers will be prepended before the matching of these
   11501              regular expressions. -->
   11502         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
   11503           <leadingDigits>
   11504             0[26]|
   11505             55
   11506           </leadingDigits>
   11507           <format>$1 $2 $3</format>
   11508         </numberFormat>
   11509         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
   11510           <leadingDigits>0[26]</leadingDigits>
   11511           <format>$1 $2 $3</format>
   11512         </numberFormat>
   11513         <numberFormat pattern="(0[26])(\d{4,6})">
   11514           <leadingDigits>0[26]</leadingDigits>
   11515           <format>$1 $2</format>
   11516         </numberFormat>
   11517         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
   11518           <leadingDigits>0[13-57-9][0159]</leadingDigits>
   11519           <format>$1 $2 $3</format>
   11520         </numberFormat>
   11521         <numberFormat pattern="(\d{3})(\d{3,6})">
   11522           <leadingDigits>
   11523             0[13-57-9][0159]|
   11524             8(?:
   11525               03|
   11526               4[17]|
   11527               9[245]
   11528             )
   11529           </leadingDigits>
   11530           <leadingDigits>
   11531             0[13-57-9][0159]|
   11532             8(?:
   11533               03|
   11534               4[17]|
   11535               9(?:
   11536                 2|
   11537                 [45][0-4]
   11538               )
   11539             )
   11540           </leadingDigits>
   11541           <format>$1 $2</format>
   11542         </numberFormat>
   11543         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
   11544           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
   11545           <format>$1 $2 $3</format>
   11546         </numberFormat>
   11547         <numberFormat pattern="(0\d{3})(\d{2,6})">
   11548           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
   11549           <format>$1 $2</format>
   11550         </numberFormat>
   11551         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   11552           <leadingDigits>
   11553             [13]|
   11554             8(?:
   11555               00|
   11556               4[08]|
   11557               9[59]
   11558             )
   11559           </leadingDigits>
   11560           <leadingDigits>
   11561             [13]|
   11562             8(?:
   11563               00|
   11564               4[08]|
   11565               9(?:
   11566                 5[5-9]|
   11567                 9
   11568               )
   11569             )
   11570           </leadingDigits>
   11571           <format>$1 $2 $3</format>
   11572         </numberFormat>
   11573         <numberFormat pattern="(\d{4})(\d{4})">
   11574           <leadingDigits>894</leadingDigits>
   11575           <leadingDigits>894[5-9]</leadingDigits>
   11576           <format>$1 $2</format>
   11577         </numberFormat>
   11578         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
   11579           <leadingDigits>3</leadingDigits>
   11580           <format>$1 $2 $3</format>
   11581         </numberFormat>
   11582       </availableFormats>
   11583       <generalDesc>
   11584         <nationalNumberPattern>
   11585           [01589]\d{5,10}|
   11586           3(?:
   11587             [12457-9]\d{8}|
   11588             [36]\d{7,9}
   11589           )
   11590         </nationalNumberPattern>
   11591         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   11592       </generalDesc>
   11593       <noInternationalDialling>
   11594         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
   11595         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   11596         <exampleNumber>848123456</exampleNumber>
   11597       </noInternationalDialling>
   11598       <fixedLine>
   11599         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
   11600              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
   11601              found with other prefixes that are 11 digits long as well, so we allow it for all the
   11602              three and four digit area codes. -->
   11603         <nationalNumberPattern>
   11604           0(?:
   11605             [26]\d{4,9}|
   11606             (?:
   11607               1(?:
   11608                 [0159]\d|
   11609                 [27][1-5]|
   11610                 31|
   11611                 4[1-4]|
   11612                 6[1356]|
   11613                 8[2-57]
   11614               )|
   11615               3(?:
   11616                 [0159]\d|
   11617                 2[1-4]|
   11618                 3[12]|
   11619                 [48][1-6]|
   11620                 6[2-59]|
   11621                 7[1-7]
   11622               )|
   11623               4(?:
   11624                 [0159]\d|
   11625                 [23][1-9]|
   11626                 4[245]|
   11627                 6[1-5]|
   11628                 7[1-4]|
   11629                 81
   11630               )|
   11631               5(?:
   11632                 [0159]\d|
   11633                 2[1-5]|
   11634                 3[2-6]|
   11635                 4[1-79]|
   11636                 6[4-6]|
   11637                 7[1-578]|
   11638                 8[3-8]
   11639               )|
   11640               7(?:
   11641                 [0159]\d|
   11642                 2[12]|
   11643                 3[1-7]|
   11644                 4[2346]|
   11645                 6[13569]|
   11646                 7[13-6]|
   11647                 8[1-59]
   11648               )|
   11649               8(?:
   11650                 [0159]\d|
   11651                 2[34578]|
   11652                 3[1-356]|
   11653                 [6-8][1-5]
   11654               )|
   11655               9(?:
   11656                 [0159]\d|
   11657                 [238][1-5]|
   11658                 4[12]|
   11659                 6[1-8]|
   11660                 7[1-6]
   11661               )
   11662             )\d{2,7}
   11663           )
   11664         </nationalNumberPattern>
   11665         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   11666         <exampleNumber>0212345678</exampleNumber>
   11667       </fixedLine>
   11668       <mobile>
   11669         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
   11670              digits long. However, a user reported the existence of new 11 digit long numbers for
   11671              TIM with the prefix 33X, so this is supported also. -->
   11672         <nationalNumberPattern>
   11673           3(?:
   11674             [12457-9]\d{8}|
   11675             6\d{7,8}|
   11676             3\d{7,9}
   11677           )
   11678         </nationalNumberPattern>
   11679         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
   11680         <exampleNumber>3123456789</exampleNumber>
   11681       </mobile>
   11682       <tollFree>
   11683         <nationalNumberPattern>
   11684           80(?:
   11685             0\d{6}|
   11686             3\d{3}
   11687           )
   11688         </nationalNumberPattern>
   11689         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   11690         <exampleNumber>800123456</exampleNumber>
   11691       </tollFree>
   11692       <premiumRate>
   11693         <!-- Adding 0878 numbers, as per
   11694              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
   11695              premium prefixes are mentioned here:
   11696              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
   11697         <nationalNumberPattern>
   11698           0878\d{5}|
   11699           1(?:
   11700             44|
   11701             6[346]
   11702           )\d{6}|
   11703           89(?:
   11704             2\d{3}|
   11705             4(?:
   11706               [0-4]\d{2}|
   11707               [5-9]\d{4}
   11708             )|
   11709             5(?:
   11710               [0-4]\d{2}|
   11711               [5-9]\d{6}
   11712             )|
   11713             9\d{6}
   11714           )
   11715         </nationalNumberPattern>
   11716         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   11717         <exampleNumber>899123456</exampleNumber>
   11718       </premiumRate>
   11719       <sharedCost>
   11720         <nationalNumberPattern>
   11721           84(?:
   11722             [08]\d{6}|
   11723             [17]\d{3}
   11724           )
   11725         </nationalNumberPattern>
   11726         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   11727         <exampleNumber>848123456</exampleNumber>
   11728       </sharedCost>
   11729       <personalNumber>
   11730         <nationalNumberPattern>
   11731           1(?:
   11732             78\d|
   11733             99
   11734           )\d{6}
   11735         </nationalNumberPattern>
   11736         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   11737         <exampleNumber>1781234567</exampleNumber>
   11738       </personalNumber>
   11739       <voip>
   11740         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
   11741         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11742         <exampleNumber>5512345678</exampleNumber>
   11743       </voip>
   11744       <shortCode>
   11745         <!-- Later, when we have better support for short-codes, we could add the codes
   11746              used for MMS and SMS services here too. -->
   11747         <nationalNumberPattern>
   11748           1(?:
   11749             1(?:
   11750               [47]|
   11751               6\d{3}
   11752             )|
   11753             2\d{2}|
   11754             4(?:
   11755               82|
   11756               9\d{1,3}
   11757             )|
   11758             5(?:
   11759               00|
   11760               1[58]|
   11761               2[25]|
   11762               3[03]|
   11763               44
   11764             )|
   11765             86|
   11766             9(?:
   11767               2(?:
   11768                 [01]\d{2}|
   11769                 [2-9]\d
   11770               )|
   11771               4\d|
   11772               696
   11773             )
   11774           )
   11775         </nationalNumberPattern>
   11776         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   11777         <exampleNumber>114</exampleNumber>
   11778       </shortCode>
   11779       <emergency>
   11780         <nationalNumberPattern>11[2358]</nationalNumberPattern>
   11781         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   11782         <exampleNumber>112</exampleNumber>
   11783       </emergency>
   11784     </territory>
   11785 
   11786     <!-- Jersey -->
   11787     <!-- Inherits formatting rules from the UK. -->
   11788     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
   11789     <!-- http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&childID=1036 -->
   11790     <territory id="JE" countryCode="44" internationalPrefix="00"
   11791                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
   11792       <generalDesc>
   11793         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
   11794         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   11795       </generalDesc>
   11796       <areaCodeOptional>
   11797         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
   11798         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11799         <exampleNumber>1534250123</exampleNumber>
   11800       </areaCodeOptional>
   11801       <!-- Specific to JE. -->
   11802       <fixedLine>
   11803         <!-- 1534 with 10 digits. -->
   11804         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
   11805         <exampleNumber>1534456789</exampleNumber>
   11806       </fixedLine>
   11807       <mobile>
   11808         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
   11809         <nationalNumberPattern>
   11810           7(?:
   11811             509|
   11812             7(?:
   11813               00|
   11814               97
   11815             )|
   11816             829|
   11817             937
   11818           )\d{6}
   11819         </nationalNumberPattern>
   11820         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11821         <exampleNumber>7797123456</exampleNumber>
   11822       </mobile>
   11823       <pager>
   11824         <!-- Pager numbers as per GB. -->
   11825         <nationalNumberPattern>
   11826           76(?:
   11827             0[012]|
   11828             2[356]|
   11829             4[0134]|
   11830             5[49]|
   11831             6[0-369]|
   11832             77|
   11833             81|
   11834             9[39]
   11835           )\d{6}
   11836         </nationalNumberPattern>
   11837         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11838         <exampleNumber>7640123456</exampleNumber>
   11839       </pager>
   11840       <!-- Specific to JE. -->
   11841       <tollFree>
   11842         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
   11843         <nationalNumberPattern>
   11844           80(?:
   11845             07(?:
   11846               35|
   11847               81
   11848             )|
   11849             8901
   11850           )\d{4}
   11851         </nationalNumberPattern>
   11852         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11853         <exampleNumber>8007354567</exampleNumber>
   11854       </tollFree>
   11855       <premiumRate>
   11856         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
   11857         <nationalNumberPattern>
   11858           (?:
   11859             871206|
   11860             90(?:
   11861               066[59]|
   11862               1810|
   11863               71(?:
   11864                 07|
   11865                 55
   11866               )
   11867             )
   11868           )\d{4}
   11869         </nationalNumberPattern>
   11870         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11871         <exampleNumber>9018105678</exampleNumber>
   11872       </premiumRate>
   11873       <sharedCost>
   11874         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
   11875         <nationalNumberPattern>
   11876           8(?:
   11877             4(?:
   11878               4(?:
   11879                 4(?:
   11880                   05|
   11881                   42|
   11882                   69
   11883                 )|
   11884                 703
   11885               )|
   11886               5(?:
   11887                 041|
   11888                 800
   11889               )
   11890             )|
   11891             70002
   11892           )\d{4}
   11893         </nationalNumberPattern>
   11894         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11895         <exampleNumber>8447034567</exampleNumber>
   11896       </sharedCost>
   11897       <personalNumber>
   11898         <!-- 70 1511 with 10 digits. -->
   11899         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
   11900         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11901         <exampleNumber>7015115678</exampleNumber>
   11902       </personalNumber>
   11903       <voip>
   11904         <!-- VoIP numbers as per GB. -->
   11905         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
   11906         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11907         <exampleNumber>5612345678</exampleNumber>
   11908       </voip>
   11909       <uan>
   11910         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
   11911              370 002, 371 206, 55 with 10 digits. -->
   11912         <nationalNumberPattern>
   11913           3(?:
   11914             0(?:
   11915               07(?:
   11916                 35|
   11917                 81
   11918               )|
   11919               8901
   11920             )|
   11921             3\d{4}|
   11922             4(?:
   11923               4(?:
   11924                 4(?:
   11925                   05|
   11926                   42|
   11927                   69
   11928                 )|
   11929                 703
   11930               )|
   11931               5(?:
   11932                 041|
   11933                 800
   11934               )
   11935             )|
   11936             7(?:
   11937               0002|
   11938               1206
   11939             )
   11940           )\d{4}|
   11941           55\d{8}
   11942         </nationalNumberPattern>
   11943         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11944         <exampleNumber>5512345678</exampleNumber>
   11945       </uan>
   11946       <shortCode>
   11947         <!-- http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&childID=1036 -->
   11948         <nationalNumberPattern>
   11949           1(?:
   11950             00|
   11951             18\d{3}|
   11952             23|
   11953             4(?:
   11954               [14]|
   11955               28|
   11956               7\d
   11957             )|
   11958             5\d|
   11959             7(?:
   11960               0[12]|
   11961               [128]|
   11962               35?
   11963             )|
   11964             808|
   11965             9[135]
   11966           )|
   11967           23[234]
   11968         </nationalNumberPattern>
   11969         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   11970         <exampleNumber>150</exampleNumber>
   11971       </shortCode>
   11972       <emergency>
   11973         <!-- http://en.wikipedia.org/wiki/Jersey#Emergency_services -->
   11974         <nationalNumberPattern>
   11975           112|
   11976           999
   11977         </nationalNumberPattern>
   11978         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   11979         <exampleNumber>999</exampleNumber>
   11980       </emergency>
   11981     </territory>
   11982 
   11983     <!-- Jamaica -->
   11984     <!-- http://www.itu.int/oth/T020200006C/en -->
   11985     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
   11986                internationalPrefix="011">
   11987       <generalDesc>
   11988         <!-- NANPA country - uses US formatting rules -->
   11989         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
   11990         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   11991       </generalDesc>
   11992       <fixedLine>
   11993         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-489]. -->
   11994         <nationalNumberPattern>
   11995           876(?:
   11996             5(?:
   11997               0[12]|
   11998               1[0-468]|
   11999               2[35]|
   12000               63
   12001             )|
   12002             6(?:
   12003               0[1-3579]|
   12004               1[027-9]|
   12005               [23]\d|
   12006               40|
   12007               5[06]|
   12008               6[2-489]|
   12009               7[05]|
   12010               8[04]|
   12011               9[4-9]
   12012             )|
   12013             7(?:
   12014               0[2-689]|
   12015               [1-6]\d|
   12016               8[056]|
   12017               9[45]
   12018             )|
   12019             9(?:
   12020               0[1-8]|
   12021               1[02378]|
   12022               [2-8]\d|
   12023               9[2-468]
   12024             )
   12025           )\d{4}
   12026         </nationalNumberPattern>
   12027         <exampleNumber>8765123456</exampleNumber>
   12028       </fixedLine>
   12029       <mobile>
   12030         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
   12031              be valid by sending SMSs and looking at online number lookup sites.
   12032 
   12033              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
   12034              Most have mobile numbers online so we have put them under mobile but is possible
   12035              they are a mixture of fixed line and mobile. -->
   12036         <nationalNumberPattern>
   12037           876(?:
   12038             2[1789]\d|
   12039             [348]\d{2}|
   12040             5(?:
   12041               08|
   12042               27|
   12043               6[0-24-9]|
   12044               [3-578]\d
   12045             )|
   12046             7(?:
   12047               0[07]|
   12048               7\d|
   12049               8[1-47-9]|
   12050               9[0-36-9]
   12051             )|
   12052             9(?:
   12053               [01]9|
   12054               9[0579]
   12055             )
   12056           )\d{4}
   12057         </nationalNumberPattern>
   12058         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12059         <exampleNumber>8762101234</exampleNumber>
   12060       </mobile>
   12061       <tollFree>
   12062         <nationalNumberPattern>
   12063           8(?:
   12064             00|
   12065             55|
   12066             66|
   12067             77|
   12068             88
   12069           )[2-9]\d{6}
   12070         </nationalNumberPattern>
   12071         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12072         <exampleNumber>8002123456</exampleNumber>
   12073       </tollFree>
   12074       <premiumRate>
   12075         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   12076         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12077         <exampleNumber>9002123456</exampleNumber>
   12078       </premiumRate>
   12079       <personalNumber>
   12080         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   12081         <nationalNumberPattern>
   12082           5(?:
   12083             00|
   12084             33|
   12085             44
   12086           )[2-9]\d{6}
   12087         </nationalNumberPattern>
   12088         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12089         <exampleNumber>5002345678</exampleNumber>
   12090       </personalNumber>
   12091       <emergency>
   12092         <nationalNumberPattern>11[09]</nationalNumberPattern>
   12093         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   12094         <exampleNumber>119</exampleNumber>
   12095       </emergency>
   12096     </territory>
   12097 
   12098     <!-- Jordan -->
   12099     <!-- http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english -->
   12100     <!-- http://www.itu.int/oth/T020200006E/en -->
   12101     <!-- http://en.wikipedia.org/wiki/%2B962 -->
   12102     <territory id="JO" countryCode="962" internationalPrefix="00"
   12103                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   12104       <availableFormats>
   12105         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   12106           pattern="(\d)(\d{3})(\d{4})">
   12107           <leadingDigits>
   12108             [2356]|
   12109             87
   12110           </leadingDigits>
   12111           <format>$1 $2 $3</format>
   12112         </numberFormat>
   12113         <numberFormat pattern="(7)(\d{4})(\d{4})">
   12114           <leadingDigits>7[457-9]</leadingDigits>
   12115           <format>$1 $2 $3</format>
   12116         </numberFormat>
   12117         <numberFormat pattern="(\d{3})(\d{5,6})">
   12118           <leadingDigits>
   12119             70|
   12120             8[0158]|
   12121             9
   12122           </leadingDigits>
   12123           <format>$1 $2</format>
   12124         </numberFormat>
   12125       </availableFormats>
   12126       <generalDesc>
   12127         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
   12128         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   12129       </generalDesc>
   12130       <fixedLine>
   12131         <nationalNumberPattern>
   12132           (?:
   12133             2(?:
   12134               6(?:
   12135                 2[0-35-9]|
   12136                 3[0-57-8]|
   12137                 4[24-7]|
   12138                 5[0-24-8]|
   12139                 [6-9][02]
   12140               )|
   12141               7(?:
   12142                 0[1-79]|
   12143                 10|
   12144                 2[014-7]|
   12145                 3[0-689]|
   12146                 4[019]|
   12147                 5[0-3578]
   12148               )
   12149             )|
   12150             32(?:
   12151               0[1-69]|
   12152               1[1-35-7]|
   12153               2[024-7]|
   12154               3\d|
   12155               [457][02]|
   12156               60
   12157             )|
   12158             53(?:
   12159               [013][02]|
   12160               2[0-59]|
   12161               49|
   12162               5[0-35-9]|
   12163               6[15]|
   12164               7[45]|
   12165               8[1-6]|
   12166               9[0-36-9]
   12167             )|
   12168             6(?:
   12169               2[50]0|
   12170               300|
   12171               4(?:
   12172                 0[0125]|
   12173                 1[2-7]|
   12174                 2[0569]|
   12175                 [38][07-9]|
   12176                 4[025689]|
   12177                 6[0-589]|
   12178                 7\d|
   12179                 9[0-2]
   12180               )|
   12181               5(?:
   12182                 [01][056]|
   12183                 2[034]|
   12184                 3[0-57-9]|
   12185                 4[17-8]|
   12186                 5[0-69]|
   12187                 6[0-35-9]|
   12188                 7[1-379]|
   12189                 8[0-68]|
   12190                 9[02-39]
   12191               )
   12192             )|
   12193             87(?:
   12194               [02]0|
   12195               7[08]|
   12196               9[09]
   12197             )
   12198           )\d{4}
   12199         </nationalNumberPattern>
   12200         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   12201         <exampleNumber>62001234</exampleNumber>
   12202       </fixedLine>
   12203       <mobile>
   12204         <nationalNumberPattern>
   12205           7(?:
   12206             55|
   12207             7[25-9]|
   12208             8[5-9]|
   12209             9[05-9]
   12210           )\d{6}
   12211         </nationalNumberPattern>
   12212         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12213         <exampleNumber>790123456</exampleNumber>
   12214       </mobile>
   12215       <pager>
   12216         <nationalNumberPattern>
   12217           74(?:
   12218             66|
   12219             77
   12220           )\d{5}
   12221         </nationalNumberPattern>
   12222         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12223         <exampleNumber>746612345</exampleNumber>
   12224       </pager>
   12225       <tollFree>
   12226         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   12227         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   12228         <exampleNumber>80012345</exampleNumber>
   12229       </tollFree>
   12230       <premiumRate>
   12231         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
   12232         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   12233         <exampleNumber>90012345</exampleNumber>
   12234       </premiumRate>
   12235       <sharedCost>
   12236         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
   12237         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   12238         <exampleNumber>85012345</exampleNumber>
   12239       </sharedCost>
   12240       <personalNumber>
   12241         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
   12242         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12243         <exampleNumber>700123456</exampleNumber>
   12244       </personalNumber>
   12245       <uan>
   12246         <!-- These numbers are Location Independent Services / Fixed cost according to
   12247              http://www.trc.gov.jo -->
   12248         <nationalNumberPattern>
   12249           8(?:
   12250             10|
   12251             8\d
   12252           )\d{5}
   12253         </nationalNumberPattern>
   12254         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   12255         <exampleNumber>88101234</exampleNumber>
   12256       </uan>
   12257       <shortCode>
   12258         <nationalNumberPattern>
   12259           1(?:
   12260             09|
   12261             1[01]|
   12262             9[024-79]
   12263           )
   12264         </nationalNumberPattern>
   12265         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   12266         <exampleNumber>111</exampleNumber>
   12267       </shortCode>
   12268       <emergency>
   12269         <nationalNumberPattern>
   12270           1(?:
   12271             12|
   12272             91
   12273           )|
   12274           911
   12275         </nationalNumberPattern>
   12276         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   12277         <exampleNumber>112</exampleNumber>
   12278       </emergency>
   12279     </territory>
   12280 
   12281     <!-- Japan -->
   12282     <!-- http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html -->
   12283     <!-- http://www.numberingplans.com/?page=dialling&sub=areacodes&ac=JP -->
   12284     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
   12285                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true" >
   12286       <availableFormats>
   12287         <!-- Toll-free, premium-rate and UAN numbers -->
   12288         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   12289           <leadingDigits>
   12290             (?:
   12291               12|
   12292               57|
   12293               99
   12294             )0
   12295           </leadingDigits>
   12296           <format>$1-$2-$3</format>
   12297         </numberFormat>
   12298         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   12299           <leadingDigits>800</leadingDigits>
   12300           <format>$1-$2-$3</format>
   12301         </numberFormat>
   12302         <!-- National-only toll-free numbers (0077 and 0088) and VOIP numbers (0037) where the
   12303              leading "0" is considered the national prefix. -->
   12304         <numberFormat pattern="(\d{3})(\d{4})">
   12305           <leadingDigits>077</leadingDigits>
   12306           <format>$1-$2</format>
   12307         </numberFormat>
   12308         <numberFormat pattern="(\d{3})(\d{2})(\d{3,4})">
   12309           <leadingDigits>077</leadingDigits>
   12310           <format>$1-$2-$3</format>
   12311         </numberFormat>
   12312         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
   12313           <leadingDigits>088</leadingDigits>
   12314           <format>$1-$2-$3</format>
   12315         </numberFormat>
   12316         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   12317           <leadingDigits>
   12318             0(?:
   12319               37|
   12320               66
   12321             )
   12322           </leadingDigits>
   12323           <format>$1-$2-$3</format>
   12324         </numberFormat>
   12325         <numberFormat pattern="(\d{3})(\d{4})(\d{4,5})">
   12326           <leadingDigits>
   12327             0(?:
   12328               37|
   12329               66
   12330             )
   12331           </leadingDigits>
   12332           <format>$1-$2-$3</format>
   12333         </numberFormat>
   12334         <numberFormat pattern="(\d{3})(\d{5})(\d{5,6})">
   12335           <leadingDigits>
   12336             0(?:
   12337               37|
   12338               66
   12339             )
   12340           </leadingDigits>
   12341           <format>$1-$2-$3</format>
   12342         </numberFormat>
   12343         <numberFormat pattern="(\d{3})(\d{6})(\d{6,7})">
   12344           <leadingDigits>
   12345             0(?:
   12346               37|
   12347               66
   12348             )
   12349           </leadingDigits>
   12350           <format>$1-$2-$3</format>
   12351         </numberFormat>
   12352         <!-- Some leading digits are explicitly reserved for a particular purpose.
   12353              We handle them first in this rule, and let the following rules ignore those exceptions.
   12354              Note: The rule here is not in the files we rely on when creating the other rules.
   12355                    We would need to manually modify it if the Japanese goverment
   12356                    decided to change the rule.
   12357 
   12358              (prefix): purpose
   12359              "20": Pagers
   12360              "50": IP phone
   12361              "70": PHS (Personal Handy-phone System, which has been used in Japan
   12362                    with Non-3G, Japanese-specific protocol).
   12363                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
   12364              "80" and "90": Mobile phone
   12365           -->
   12366         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   12367           <leadingDigits>
   12368             [2579]0|
   12369             80[1-9]
   12370           </leadingDigits>
   12371           <format>$1-$2-$3</format>
   12372         </numberFormat>
   12373         <!-- The order of the reg-exps are important.
   12374              Examples (not all):
   12375              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
   12376              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
   12377              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
   12378              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
   12379              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
   12380              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
   12381           -->
   12382         <numberFormat pattern="(\d{4})(\d)(\d{4})">
   12383           <leadingDigits>
   12384             1(?:
   12385               26|
   12386               3[79]|
   12387               4[56]|
   12388               5[4-68]|
   12389               6[3-5]
   12390             )|
   12391             5(?:
   12392               76|
   12393               97
   12394             )|
   12395             499|
   12396             746|
   12397             8(?:
   12398               3[89]|
   12399               63|
   12400               47|
   12401               51
   12402             )|
   12403             9(?:
   12404               49|
   12405               80|
   12406               9[16]
   12407             )
   12408           </leadingDigits>
   12409           <leadingDigits>
   12410             1(?:
   12411               267|
   12412               3(?:
   12413                 7[247]|
   12414                 9[278]
   12415               )|
   12416               4(?:
   12417                 5[67]|
   12418                 66
   12419               )|
   12420               5(?:
   12421                 47|
   12422                 58|
   12423                 64|
   12424                 8[67]
   12425               )|
   12426               6(?:
   12427                 3[245]|
   12428                 48|
   12429                 5[4-68]
   12430               )
   12431             )|
   12432             5(?:
   12433               76|
   12434               97
   12435             )9|
   12436             499[2468]|
   12437             7468|
   12438             8(?:
   12439               3(?:
   12440                 8[78]|
   12441                 96
   12442               )|
   12443               636|
   12444               477|
   12445               51[24]
   12446             )|
   12447             9(?:
   12448               496|
   12449               802|
   12450               9(?:
   12451                 1[23]|
   12452                 69
   12453               )
   12454             )
   12455           </leadingDigits>
   12456           <leadingDigits>
   12457             1(?:
   12458               267|
   12459               3(?:
   12460                 7[247]|
   12461                 9[278]
   12462               )|
   12463               4(?:
   12464                 5[67]|
   12465                 66
   12466               )|
   12467               5(?:
   12468                 47|
   12469                 58|
   12470                 64|
   12471                 8[67]
   12472               )|
   12473               6(?:
   12474                 3[245]|
   12475                 48|
   12476                 5[4-68]
   12477               )
   12478             )|
   12479             5(?:
   12480               769|
   12481               979[2-69]
   12482             )|
   12483             499[2468]|
   12484             7468|
   12485             8(?:
   12486               3(?:
   12487                 8[78]|
   12488                 96[2457-9]
   12489               )|
   12490               636[2-57-9]|
   12491               477|
   12492               51[24]
   12493             )|
   12494             9(?:
   12495               496|
   12496               802|
   12497               9(?:
   12498                 1[23]|
   12499                 69
   12500               )
   12501             )
   12502           </leadingDigits>
   12503           <format>$1-$2-$3</format>
   12504         </numberFormat>
   12505         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
   12506           <leadingDigits>
   12507             1(?:
   12508               2[3-6]|
   12509               3[3-9]|
   12510               4[2-6]|
   12511               5[2-8]|
   12512               [68][2-7]|
   12513               7[2-689]|
   12514               9[1-578]
   12515             )|
   12516             2(?:
   12517               2[03-689]|
   12518               3[3-58]|
   12519               4[0-468]|
   12520               5[04-8]|
   12521               6[013-8]|
   12522               7[06-9]|
   12523               8[02-57-9]|
   12524               9[13]
   12525             )|
   12526             4(?:
   12527               2[28]|
   12528               3[689]|
   12529               6[035-7]|
   12530               7[05689]|
   12531               80|
   12532               9[3-5]
   12533             )|
   12534             5(?:
   12535               3[1-36-9]|
   12536               4[4578]|
   12537               5[013-8]|
   12538               6[1-9]|
   12539               7[2-8]|
   12540               8[14-7]|
   12541               9[4-9]
   12542             )|
   12543             7(?:
   12544               2[15]|
   12545               3[5-9]|
   12546               4[02-9]|
   12547               6[135-8]|
   12548               7[0-4689]|
   12549               9[014-9]
   12550             )|
   12551             8(?:
   12552               2[49]|
   12553               3[3-8]|
   12554               4[5-8]|
   12555               5[2-9]|
   12556               6[35-9]|
   12557               7[579]|
   12558               8[03-579]|
   12559               9[2-8]
   12560             )|
   12561             9(?:
   12562               [23]0|
   12563               4[02-46-9]|
   12564               5[024-79]|
   12565               6[4-9]|
   12566               7[2-47-9]|
   12567               8[02-7]|
   12568               9[3-7]
   12569             )
   12570           </leadingDigits>
   12571           <leadingDigits>
   12572             1(?:
   12573               2[3-6]|
   12574               3[3-9]|
   12575               4[2-6]|
   12576               5(?:
   12577                 [236-8]|
   12578                 [45][2-69]
   12579               )|
   12580               [68][2-7]|
   12581               7[2-689]|
   12582               9[1-578]
   12583             )|
   12584             2(?:
   12585               2(?:
   12586                 [04-689]|
   12587                 3[23]
   12588               )|
   12589               3[3-58]|
   12590               4[0-468]|
   12591               5(?:
   12592                 5[78]|
   12593                 7[2-4]|
   12594                 [0468][2-9]
   12595               )|
   12596               6(?:
   12597                 [0135-8]|
   12598                 4[2-5]
   12599               )|
   12600               7(?:
   12601                 [0679]|
   12602                 8[2-7]
   12603               )|
   12604               8(?:
   12605                 [024578]|
   12606                 3[25-9]|
   12607                 9[6-9]
   12608               )|
   12609               9(?:
   12610                 11|
   12611                 3[2-4]
   12612               )
   12613             )|
   12614             4(?:
   12615               2(?:
   12616                 2[2-9]|
   12617                 8[237-9]
   12618               )|
   12619               3[689]|
   12620               6[035-7]|
   12621               7(?:
   12622                 [059][2-8]|
   12623                 [68]
   12624               )|
   12625               80|
   12626               9[3-5]
   12627             )|
   12628             5(?:
   12629               3[1-36-9]|
   12630               4[4578]|
   12631               5[013-8]|
   12632               6[1-9]|
   12633               7[2-8]|
   12634               8[14-7]|
   12635               9(?:
   12636                 [89][2-8]|
   12637                 [4-7]
   12638               )
   12639             )|
   12640             7(?:
   12641               2[15]|
   12642               3[5-9]|
   12643               4[02-9]|
   12644               6[135-8]|
   12645               7[0-4689]|
   12646               9(?:
   12647                 [017-9]|
   12648                 4[6-8]|
   12649                 5[2-478]|
   12650                 6[2-589]
   12651               )
   12652             )|
   12653             8(?:
   12654               2(?:
   12655                 4[4-8]|
   12656                 9[2-8]
   12657               )|
   12658               3(?:
   12659                 7[2-6]|
   12660                 [3-6][2-9]|
   12661                 8[2-5]
   12662               )|
   12663               4[5-8]|
   12664               5[2-9]|
   12665               6(?:
   12666                 [37]|
   12667                 5[4-7]|
   12668                 6[2-9]|
   12669                 8[2-8]|
   12670                 9[236-9]
   12671               )|
   12672               7[579]|
   12673               8[03-579]|
   12674               9[2-8]
   12675             )|
   12676             9(?:
   12677               [23]0|
   12678               4[02-46-9]|
   12679               5[024-79]|
   12680               6[4-9]|
   12681               7[2-47-9]|
   12682               8[02-7]|
   12683               9(?:
   12684                 3[34]|
   12685                 [4-7]
   12686               )
   12687             )
   12688           </leadingDigits>
   12689           <leadingDigits>
   12690             1(?:
   12691               2[3-6]|
   12692               3[3-9]|
   12693               4[2-6]|
   12694               5(?:
   12695                 [236-8]|
   12696                 [45][2-69]
   12697               )|
   12698               [68][2-7]|
   12699               7[2-689]|
   12700               9[1-578]
   12701             )|
   12702             2(?:
   12703               2(?:
   12704                 [04-689]|
   12705                 3[23]
   12706               )|
   12707               3[3-58]|
   12708               4[0-468]|
   12709               5(?:
   12710                 5[78]|
   12711                 7[2-4]|
   12712                 [0468][2-9]
   12713               )|
   12714               6(?:
   12715                 [0135-8]|
   12716                 4[2-5]
   12717               )|
   12718               7(?:
   12719                 [0679]|
   12720                 8[2-7]
   12721               )|
   12722               8(?:
   12723                 [024578]|
   12724                 3[25-9]|
   12725                 9[6-9]
   12726               )|
   12727               9(?:
   12728                 11|
   12729                 3[2-4]
   12730               )
   12731             )|
   12732             4(?:
   12733               2(?:
   12734                 2[2-9]|
   12735                 8[237-9]
   12736               )|
   12737               3[689]|
   12738               6[035-7]|
   12739               7(?:
   12740                 [059][2-8]|
   12741                 [68]
   12742               )|
   12743               80|
   12744               9[3-5]
   12745             )|
   12746             5(?:
   12747               3[1-36-9]|
   12748               4[4578]|
   12749               5[013-8]|
   12750               6[1-9]|
   12751               7[2-8]|
   12752               8[14-7]|
   12753               9(?:
   12754                 [89][2-8]|
   12755                 [4-7]
   12756               )
   12757             )|
   12758             7(?:
   12759               2[15]|
   12760               3[5-9]|
   12761               4[02-9]|
   12762               6[135-8]|
   12763               7[0-4689]|
   12764               9(?:
   12765                 [017-9]|
   12766                 4[6-8]|
   12767                 5[2-478]|
   12768                 6[2-589]
   12769               )
   12770             )|
   12771             8(?:
   12772               2(?:
   12773                 4[4-8]|
   12774                 9(?:
   12775                   [3578]|
   12776                   20|
   12777                   4[04-9]|
   12778                   6[56]
   12779                 )
   12780               )|
   12781               3(?:
   12782                 7(?:
   12783                   [2-5]|
   12784                   6[0-59]
   12785                 )|
   12786                 [3-6][2-9]|
   12787                 8[2-5]
   12788               )|
   12789               4[5-8]|
   12790               5[2-9]|
   12791               6(?:
   12792                 [37]|
   12793                 5(?:
   12794                   [467]|
   12795                   5[014-9]
   12796                 )|
   12797                 6(?:
   12798                   [2-8]|
   12799                   9[02-69]
   12800                 )|
   12801                 8[2-8]|
   12802                 9(?:
   12803                   [236-8]|
   12804                   9[23]
   12805                 )
   12806               )|
   12807               7[579]|
   12808               8[03-579]|
   12809               9[2-8]
   12810             )|
   12811             9(?:
   12812               [23]0|
   12813               4[02-46-9]|
   12814               5[024-79]|
   12815               6[4-9]|
   12816               7[2-47-9]|
   12817               8[02-7]|
   12818               9(?:
   12819                 3(?:
   12820                   3[02-9]|
   12821                   4[0-24689]
   12822                 )|
   12823                 4[2-69]|
   12824                 [5-7]
   12825               )
   12826             )
   12827           </leadingDigits>
   12828           <leadingDigits>
   12829             1(?:
   12830               2[3-6]|
   12831               3[3-9]|
   12832               4[2-6]|
   12833               5(?:
   12834                 [236-8]|
   12835                 [45][2-69]
   12836               )|
   12837               [68][2-7]|
   12838               7[2-689]|
   12839               9[1-578]
   12840             )|
   12841             2(?:
   12842               2(?:
   12843                 [04-689]|
   12844                 3[23]
   12845               )|
   12846               3[3-58]|
   12847               4[0-468]|
   12848               5(?:
   12849                 5[78]|
   12850                 7[2-4]|
   12851                 [0468][2-9]
   12852               )|
   12853               6(?:
   12854                 [0135-8]|
   12855                 4[2-5]
   12856               )|
   12857               7(?:
   12858                 [0679]|
   12859                 8[2-7]
   12860               )|
   12861               8(?:
   12862                 [024578]|
   12863                 3[25-9]|
   12864                 9[6-9]
   12865               )|
   12866               9(?:
   12867                 11|
   12868                 3[2-4]
   12869               )
   12870             )|
   12871             4(?:
   12872               2(?:
   12873                 2[2-9]|
   12874                 8[237-9]
   12875               )|
   12876               3[689]|
   12877               6[035-7]|
   12878               7(?:
   12879                 [059][2-8]|
   12880                 [68]
   12881               )|
   12882               80|
   12883               9[3-5]
   12884             )|
   12885             5(?:
   12886               3[1-36-9]|
   12887               4[4578]|
   12888               5[013-8]|
   12889               6[1-9]|
   12890               7[2-8]|
   12891               8[14-7]|
   12892               9(?:
   12893                 [89][2-8]|
   12894                 [4-7]
   12895               )
   12896             )|
   12897             7(?:
   12898               2[15]|
   12899               3[5-9]|
   12900               4[02-9]|
   12901               6[135-8]|
   12902               7[0-4689]|
   12903               9(?:
   12904                 [017-9]|
   12905                 4[6-8]|
   12906                 5[2-478]|
   12907                 6[2-589]
   12908               )
   12909             )|
   12910             8(?:
   12911               2(?:
   12912                 4[4-8]|
   12913                 9(?:
   12914                   [3578]|
   12915                   20|
   12916                   4[04-9]|
   12917                   6(?:
   12918                     5[25]|
   12919                     60
   12920                   )
   12921                 )
   12922               )|
   12923               3(?:
   12924                 7(?:
   12925                   [2-5]|
   12926                   6[0-59]
   12927                 )|
   12928                 [3-6][2-9]|
   12929                 8[2-5]
   12930               )|
   12931               4[5-8]|
   12932               5[2-9]|
   12933               6(?:
   12934                 [37]|
   12935                 5(?:
   12936                   [467]|
   12937                   5[014-9]
   12938                 )|
   12939                 6(?:
   12940                   [2-8]|
   12941                   9[02-69]
   12942                 )|
   12943                 8[2-8]|
   12944                 9(?:
   12945                   [236-8]|
   12946                   9[23]
   12947                 )
   12948               )|
   12949               7[579]|
   12950               8[03-579]|
   12951               9[2-8]
   12952             )|
   12953             9(?:
   12954               [23]0|
   12955               4[02-46-9]|
   12956               5[024-79]|
   12957               6[4-9]|
   12958               7[2-47-9]|
   12959               8[02-7]|
   12960               9(?:
   12961                 3(?:
   12962                   3[02-9]|
   12963                   4[0-24689]
   12964                 )|
   12965                 4[2-69]|
   12966                 [5-7]
   12967               )
   12968             )
   12969           </leadingDigits>
   12970           <format>$1-$2-$3</format>
   12971         </numberFormat>
   12972         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   12973           <leadingDigits>
   12974             1|
   12975             2(?:
   12976               2[37]|
   12977               5[5-9]|
   12978               64|
   12979               78|
   12980               8[39]|
   12981               91
   12982             )|
   12983             4(?:
   12984               2[2689]|
   12985               64|
   12986               7[347]
   12987             )|
   12988             5(?:
   12989               [2-589]|
   12990               39
   12991             )|
   12992             60|
   12993             8(?:
   12994               [46-9]|
   12995               3[279]|
   12996               2[124589]
   12997             )|
   12998             9(?:
   12999               [235-8]|
   13000               93
   13001             )
   13002           </leadingDigits>
   13003           <leadingDigits>
   13004             1|
   13005             2(?:
   13006               2[37]|
   13007               5(?:
   13008                 [57]|
   13009                 [68]0|
   13010                 9[19]
   13011               )|
   13012               64|
   13013               78|
   13014               8[39]|
   13015               917
   13016             )|
   13017             4(?:
   13018               2(?:
   13019                 [68]|
   13020                 20|
   13021                 9[178]
   13022               )|
   13023               64|
   13024               7[347]
   13025             )|
   13026             5(?:
   13027               [2-589]|
   13028               39[67]
   13029             )|
   13030             60|
   13031             8(?:
   13032               [46-9]|
   13033               3[279]|
   13034               2[124589]
   13035             )|
   13036             9(?:
   13037               [235-8]|
   13038               93[34]
   13039             )
   13040           </leadingDigits>
   13041           <leadingDigits>
   13042             1|
   13043             2(?:
   13044               2[37]|
   13045               5(?:
   13046                 [57]|
   13047                 [68]0|
   13048                 9(?:
   13049                   17|
   13050                   99
   13051                 )
   13052               )|
   13053               64|
   13054               78|
   13055               8[39]|
   13056               917
   13057             )|
   13058             4(?:
   13059               2(?:
   13060                 [68]|
   13061                 20|
   13062                 9[178]
   13063               )|
   13064               64|
   13065               7[347]
   13066             )|
   13067             5(?:
   13068               [2-589]|
   13069               39[67]
   13070             )|
   13071             60|
   13072             8(?:
   13073               [46-9]|
   13074               3[279]|
   13075               2[124589]
   13076             )|
   13077             9(?:
   13078               [235-8]|
   13079               93(?:
   13080                 31|
   13081                 4
   13082               )
   13083             )
   13084           </leadingDigits>
   13085           <format>$1-$2-$3</format>
   13086         </numberFormat>
   13087         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
   13088           <leadingDigits>
   13089             2(?:
   13090               9[14-79]|
   13091               74|
   13092               [34]7|
   13093               [56]9
   13094             )|
   13095             82|
   13096             993
   13097           </leadingDigits>
   13098           <format>$1-$2-$3</format>
   13099         </numberFormat>
   13100         <numberFormat pattern="(\d)(\d{4})(\d{4})">
   13101           <leadingDigits>
   13102             3|
   13103             4(?:
   13104               2[09]|
   13105               7[01]
   13106             )|
   13107             6[1-9]
   13108           </leadingDigits>
   13109           <format>$1-$2-$3</format>
   13110         </numberFormat>
   13111         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   13112           <leadingDigits>[2479][1-9]</leadingDigits>
   13113           <format>$1-$2-$3</format>
   13114         </numberFormat>
   13115       </availableFormats>
   13116       <generalDesc>
   13117         <nationalNumberPattern>
   13118           [1-9]\d{8,9}|
   13119           0(?:
   13120             [36]\d{7,14}|
   13121             7\d{5,7}|
   13122             8\d{7}
   13123           )
   13124         </nationalNumberPattern>
   13125         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
   13126       </generalDesc>
   13127       <noInternationalDialling>
   13128         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
   13129         <nationalNumberPattern>
   13130           0(?:
   13131             37\d{6,13}|
   13132             66\d{6,13}|
   13133             777(?:
   13134               [01]\d{2}|
   13135               5\d{3}|
   13136               8\d{4}
   13137             )|
   13138             882[1245]\d{4}
   13139           )
   13140         </nationalNumberPattern>
   13141         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
   13142         <exampleNumber>0777012</exampleNumber>
   13143       </noInternationalDialling>
   13144       <fixedLine>
   13145         <nationalNumberPattern>
   13146           (?:
   13147             1(?:
   13148               1[235-8]|
   13149               2[3-6]|
   13150               3[3-9]|
   13151               4[2-6]|
   13152               [58][2-8]|
   13153               6[2-7]|
   13154               7[2-9]|
   13155               9[1-9]
   13156             )|
   13157             2[2-9]\d|
   13158             [36][1-9]\d|
   13159             4(?:
   13160               6[02-8]|
   13161               [2-578]\d|
   13162               9[2-59]
   13163             )|
   13164             5(?:
   13165               6[1-9]|
   13166               7[2-8]|
   13167               [2-589]\d
   13168             )|
   13169             7(?:
   13170               3[4-9]|
   13171               4[02-9]|
   13172               [25-9]\d
   13173             )|
   13174             8(?:
   13175               3[2-9]|
   13176               4[5-9]|
   13177               5[1-9]|
   13178               8[03-9]|
   13179               [2679]\d
   13180             )|
   13181             9(?:
   13182               [679][1-9]|
   13183               [2-58]\d
   13184             )
   13185           )\d{6}
   13186         </nationalNumberPattern>
   13187         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13188         <exampleNumber>312345678</exampleNumber>
   13189       </fixedLine>
   13190       <mobile>
   13191         <nationalNumberPattern>
   13192           (?:
   13193             [79]0\d|
   13194             80[1-9]
   13195           )\d{7}
   13196         </nationalNumberPattern>
   13197         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13198         <exampleNumber>7012345678</exampleNumber>
   13199       </mobile>
   13200       <pager>
   13201         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
   13202         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13203         <exampleNumber>2012345678</exampleNumber>
   13204       </pager>
   13205       <tollFree>
   13206         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
   13207              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
   13208              http://eonet.jp/home/denwa/service/access.html
   13209              http://ci.fusioncom.co.jp/feature/
   13210              http://www.auhikari.jp/service/tel/connection/index.html -->
   13211         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
   13212              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
   13213              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
   13214              for now (including both leading 00s). -->
   13215         <nationalNumberPattern>
   13216           120\d{6}|
   13217           800\d{7}|
   13218           0(?:
   13219             37\d{6,13}|
   13220             66\d{6,13}|
   13221             777(?:
   13222               [01]\d{2}|
   13223               5\d{3}|
   13224               8\d{4}
   13225             )|
   13226             882[1245]\d{4}
   13227           )
   13228         </nationalNumberPattern>
   13229         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
   13230         <exampleNumber>120123456</exampleNumber>
   13231       </tollFree>
   13232       <premiumRate>
   13233         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
   13234         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13235         <exampleNumber>990123456</exampleNumber>
   13236       </premiumRate>
   13237       <personalNumber>
   13238         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
   13239         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13240         <exampleNumber>601234567</exampleNumber>
   13241       </personalNumber>
   13242       <voip>
   13243         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
   13244         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13245         <exampleNumber>5012345678</exampleNumber>
   13246       </voip>
   13247       <!-- Storing "unified number service" as UAN. -->
   13248       <uan>
   13249         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
   13250         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13251         <exampleNumber>570123456</exampleNumber>
   13252       </uan>
   13253       <emergency>
   13254         <nationalNumberPattern>11[09]</nationalNumberPattern>
   13255         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   13256         <exampleNumber>110</exampleNumber>
   13257       </emergency>
   13258     </territory>
   13259 
   13260     <!-- Kenya -->
   13261     <!-- http://www.cck.go.ke/licensing/numbering/plan.html -->
   13262     <!-- http://en.wikipedia.org/wiki/+254 -->
   13263     <territory id="KE" countryCode="254" internationalPrefix="000"
   13264                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   13265       <availableFormats>
   13266         <numberFormat pattern="(\d{2})(\d{4,7})">
   13267           <leadingDigits>[24-6]</leadingDigits>
   13268           <format>$1 $2</format>
   13269         </numberFormat>
   13270         <numberFormat pattern="(\d{3})(\d{6,7})">
   13271           <leadingDigits>7</leadingDigits>
   13272           <format>$1 $2</format>
   13273         </numberFormat>
   13274         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   13275           <leadingDigits>[89]</leadingDigits>
   13276           <format>$1 $2 $3</format>
   13277         </numberFormat>
   13278       </availableFormats>
   13279       <generalDesc>
   13280         <nationalNumberPattern>
   13281           20\d{6,7}|
   13282           [4-9]\d{6,9}
   13283         </nationalNumberPattern>
   13284         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   13285       </generalDesc>
   13286       <fixedLine>
   13287         <!-- The prefix 066 is supposed to be used only for 9-digit numbers, but none of these can
   13288              be found online, and the plan says also it is migrating to 9 digit numbers. Both are
   13289              supported for now. -->
   13290         <nationalNumberPattern>
   13291           20\d{6,7}|
   13292           4(?:
   13293             [013]\d{7}|
   13294             [24-6]\d{5,7}
   13295           )|
   13296           5(?:
   13297             [0-36-8]\d{5,7}|
   13298             [459]\d{5}
   13299           )|
   13300           6(?:
   13301             [08]\d{5}|
   13302             [14-79]\d{5,7}|
   13303             2\d{7}
   13304           )
   13305         </nationalNumberPattern>
   13306         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   13307         <exampleNumber>202012345</exampleNumber>
   13308       </fixedLine>
   13309       <mobile>
   13310         <nationalNumberPattern>
   13311           7(?:
   13312             0[0-8]|
   13313             [123]\d|
   13314             5[0-6]|
   13315             7[0-5]|
   13316             8[5-9]
   13317           )\d{6}
   13318         </nationalNumberPattern>
   13319         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13320         <exampleNumber>712123456</exampleNumber>
   13321       </mobile>
   13322       <tollFree>
   13323         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
   13324         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
   13325         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   13326         <exampleNumber>800223456</exampleNumber>
   13327       </tollFree>
   13328       <premiumRate>
   13329         <nationalNumberPattern>900[02-578]\d{5}</nationalNumberPattern>
   13330         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13331         <exampleNumber>900223456</exampleNumber>
   13332       </premiumRate>
   13333       <shortCode>
   13334         <!-- Excluding SMS-only premium-rate short codes for now. -->
   13335         <nationalNumberPattern>
   13336           1(?:
   13337             0[09]|
   13338             1(?:
   13339               [06]|
   13340               9[0-2579]
   13341             )|
   13342             2[13]|
   13343             3[01]
   13344           )
   13345         </nationalNumberPattern>
   13346         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   13347         <exampleNumber>116</exampleNumber>
   13348       </shortCode>
   13349       <emergency>
   13350         <!-- http://www.kenyapolice.go.ke/report_a_crime.asp -->
   13351         <nationalNumberPattern>
   13352           112|
   13353           999
   13354         </nationalNumberPattern>
   13355         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   13356         <exampleNumber>999</exampleNumber>
   13357       </emergency>
   13358     </territory>
   13359 
   13360     <!-- Kyrgyzstan -->
   13361     <!-- http://www.itu.int/oth/T0202000074/en -->
   13362     <territory id="KG" countryCode="996" internationalPrefix="00"
   13363                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   13364       <availableFormats>
   13365         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   13366           <leadingDigits>
   13367             31[25]|
   13368             [5-7]
   13369           </leadingDigits>
   13370           <format>$1 $2 $3</format>
   13371         </numberFormat>
   13372         <numberFormat pattern="(\d{4})(\d{5})">
   13373           <leadingDigits>
   13374             3(?:
   13375               1[36]|
   13376               [2-9]
   13377             )
   13378           </leadingDigits>
   13379           <format>$1 $2</format>
   13380         </numberFormat>
   13381         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
   13382           <leadingDigits>8</leadingDigits>
   13383           <format>$1 $2 $3 $4</format>
   13384         </numberFormat>
   13385       </availableFormats>
   13386       <generalDesc>
   13387         <nationalNumberPattern>[35-8]\d{8,9}</nationalNumberPattern>
   13388         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   13389       </generalDesc>
   13390       <fixedLine>
   13391         <!-- Extra area codes found on Web Search: 3147, 3150, 3948. -->
   13392         <nationalNumberPattern>
   13393           (?:
   13394             3(?:
   13395               1(?:
   13396                 2\d|
   13397                 3[1-9]|
   13398                 47|
   13399                 5[02]|
   13400                 6[1-8]
   13401               )|
   13402               2(?:
   13403                 22|
   13404                 3[0-479]|
   13405                 6[0-7]
   13406               )|
   13407               4(?:
   13408                 22|
   13409                 5[6-9]|
   13410                 6[0-4]
   13411               )|
   13412               5(?:
   13413                 22|
   13414                 3[4-7]|
   13415                 59|
   13416                 6[0-5]
   13417               )|
   13418               6(?:
   13419                 22|
   13420                 5[35-7]|
   13421                 6[0-3]
   13422               )|
   13423               7(?:
   13424                 22|
   13425                 3[468]|
   13426                 4[1-9]|
   13427                 59|
   13428                 6\d|
   13429                 7[5-7]
   13430               )|
   13431               9(?:
   13432                 22|
   13433                 4[1-8]|
   13434                 6[0-8]
   13435               )
   13436             )|
   13437             6(?:
   13438               09|
   13439               12|
   13440               2[2-4]
   13441             )\d
   13442           )\d{5}
   13443         </nationalNumberPattern>
   13444         <exampleNumber>312123456</exampleNumber>
   13445       </fixedLine>
   13446       <mobile>
   13447         <!-- Added 70[1235789] since SMS messages have been successfully sent to numbers with this
   13448              prefix, and numbers have been found like this online.  -->
   13449         <nationalNumberPattern>
   13450           5[124-7]\d{7}|
   13451           7(?:
   13452             0[0-357-9]|
   13453             7\d
   13454           )\d{6}
   13455         </nationalNumberPattern>
   13456         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13457         <exampleNumber>700123456</exampleNumber>
   13458       </mobile>
   13459       <tollFree>
   13460         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
   13461              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
   13462         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
   13463         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   13464         <exampleNumber>800123456</exampleNumber>
   13465       </tollFree>
   13466       <!-- No premiumRate information can be found. -->
   13467       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
   13468       <emergency>
   13469         <nationalNumberPattern>10[123]</nationalNumberPattern>
   13470         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   13471         <exampleNumber>101</exampleNumber>
   13472       </emergency>
   13473     </territory>
   13474 
   13475     <!-- Cambodia -->
   13476     <!-- http://www.itu.int/oth/T0202000023/en -->
   13477     <!-- http://en.wikipedia.org/wiki/+855 -->
   13478     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
   13479                nationalPrefix="0">
   13480       <availableFormats>
   13481         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
   13482           <leadingDigits>
   13483             1\d[1-9]|
   13484             [2-9]
   13485           </leadingDigits>
   13486           <format>$1 $2 $3</format>
   13487         </numberFormat>
   13488         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
   13489           <leadingDigits>1[89]0</leadingDigits>
   13490           <format>$1 $2 $3</format>
   13491         </numberFormat>
   13492       </availableFormats>
   13493       <generalDesc>
   13494         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
   13495         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   13496       </generalDesc>
   13497       <fixedLine>
   13498         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
   13499              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
   13500              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
   13501              range beginning with 6 seems to include some numbers that are one digit longer as well.
   13502              -->
   13503         <nationalNumberPattern>
   13504           (?:
   13505             2[3-6]|
   13506             3[2-6]|
   13507             4[2-4]|
   13508             [567][2-5]
   13509           )(?:
   13510             [2-47-9]|
   13511             5\d|
   13512             6\d?
   13513           )\d{5}
   13514         </nationalNumberPattern>
   13515         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   13516         <exampleNumber>23456789</exampleNumber>
   13517       </fixedLine>
   13518       <mobile>
   13519         <!-- Adding 86 and 87 from numbers found online, along with 88 (the 88 numbers seem to be
   13520              one digit longer as well.) Adding 97 followed by 7 digits as such numbers have been
   13521              found online. Adding 14 as Mobitel have informed us they are using this prefix. Adding
   13522              60[1-9] based on information received from Beeline, and 857 and 61 from Cellcard. 76
   13523              numbers seem now to be 9 digits long. -->
   13524         <nationalNumberPattern>
   13525           (?:
   13526             (?:
   13527               1\d|
   13528               6[016-9]|
   13529               7(?:
   13530                 [07-9]|
   13531                 6\d
   13532               )
   13533             )[1-9]|
   13534             8(?:
   13535               0[89]|
   13536               [134679]\d|
   13537               5[2-9]|
   13538               8\d{2}
   13539             )|
   13540             9(?:
   13541               [0-589][1-9]|
   13542               [67][1-9]\d?
   13543             )
   13544           )\d{5}
   13545         </nationalNumberPattern>
   13546         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   13547         <exampleNumber>91234567</exampleNumber>
   13548       </mobile>
   13549       <tollFree>
   13550         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
   13551         <nationalNumberPattern>
   13552           1800(?:
   13553             1\d|
   13554             2[019]
   13555           )\d{4}
   13556         </nationalNumberPattern>
   13557         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13558         <exampleNumber>1800123456</exampleNumber>
   13559       </tollFree>
   13560       <premiumRate>
   13561         <nationalNumberPattern>
   13562           1900(?:
   13563             1\d|
   13564             2[09]
   13565           )\d{4}
   13566         </nationalNumberPattern>
   13567         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13568         <exampleNumber>1900123456</exampleNumber>
   13569       </premiumRate>
   13570       <emergency>
   13571         <!-- http://www.phnompenh.gov.kh/phnom-penh-city-emergency-numbers-24-hrs-169.html -->
   13572         <nationalNumberPattern>
   13573           11[789]|
   13574           666
   13575         </nationalNumberPattern>
   13576         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   13577         <exampleNumber>117</exampleNumber>
   13578       </emergency>
   13579     </territory>
   13580 
   13581     <!-- Kiribati -->
   13582     <!-- http://www.itu.int/oth/T0202000071/en -->
   13583     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
   13584          leading 0 - the main ITU document says this is not the case and no numbers online have been
   13585          found formatted this way, but Kiribati's own document lists it as a national dialling
   13586          prefix. -->
   13587     <territory id="KI" countryCode="686" internationalPrefix="00"
   13588                nationalPrefixForParsing="0">
   13589       <!-- Numbers should be formatted as a block." -->
   13590       <generalDesc>
   13591         <nationalNumberPattern>[2-689]\d{4}</nationalNumberPattern>
   13592         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   13593       </generalDesc>
   13594       <fixedLine>
   13595         <nationalNumberPattern>
   13596           (?:
   13597             [234]\d|
   13598             50|
   13599             8[1-5]
   13600           )\d{3}
   13601         </nationalNumberPattern>
   13602         <exampleNumber>31234</exampleNumber>
   13603       </fixedLine>
   13604       <mobile>
   13605         <!-- Exclude 99[2349] from mobile since these are emergency numbers. -->
   13606         <nationalNumberPattern>
   13607           6\d{4}|
   13608           9(?:
   13609             [0-8]\d|
   13610             9[015-8]
   13611           )\d{2}
   13612         </nationalNumberPattern>
   13613         <exampleNumber>61234</exampleNumber>
   13614       </mobile>
   13615       <shortCode>
   13616         <nationalNumberPattern>
   13617           10(?:
   13618             [0-8]|
   13619             5[01259]
   13620           )
   13621         </nationalNumberPattern>
   13622         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   13623         <exampleNumber>100</exampleNumber>
   13624       </shortCode>
   13625       <emergency>
   13626         <!-- www.tskl.net.ki/directory.pdf -->
   13627         <nationalNumberPattern>99[2349]</nationalNumberPattern>
   13628         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   13629         <exampleNumber>999</exampleNumber>
   13630       </emergency>
   13631     </territory>
   13632 
   13633     <!-- Comoros -->
   13634     <!-- http://www.itu.int/oth/T020200002D/en -->
   13635     <territory id="KM" countryCode="269" internationalPrefix="00">
   13636       <availableFormats>
   13637         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
   13638           <format>$1 $2 $3</format>
   13639         </numberFormat>
   13640       </availableFormats>
   13641       <generalDesc>
   13642         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
   13643         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   13644       </generalDesc>
   13645       <fixedLine>
   13646         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
   13647              http://www.comorestelecom.km/presentationcdma.php -->
   13648         <nationalNumberPattern>
   13649           7(?:
   13650             6[0-37-9]|
   13651             7[0-57-9]
   13652           )\d{4}
   13653         </nationalNumberPattern>
   13654         <exampleNumber>7712345</exampleNumber>
   13655       </fixedLine>
   13656       <mobile>
   13657         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
   13658         <exampleNumber>3212345</exampleNumber>
   13659       </mobile>
   13660       <premiumRate>
   13661         <!-- These are referred to as value-added services in the plan and no further information
   13662              can be found. -->
   13663         <nationalNumberPattern>
   13664           (?:
   13665             39[01]|
   13666             9[01]0
   13667           )\d{4}
   13668         </nationalNumberPattern>
   13669         <exampleNumber>9001234</exampleNumber>
   13670       </premiumRate>
   13671       <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1091.html -->
   13672       <emergency>
   13673         <nationalNumberPattern>1[78]</nationalNumberPattern>
   13674         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   13675         <exampleNumber>17</exampleNumber>
   13676       </emergency>
   13677     </territory>
   13678 
   13679     <!-- Saint Kitts and Nevis -->
   13680     <!-- http://www.itu.int/oth/T02020000B0/en -->
   13681     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
   13682                internationalPrefix="011">
   13683       <generalDesc>
   13684         <!-- NANPA country - uses US formatting rules -->
   13685         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
   13686         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   13687       </generalDesc>
   13688       <fixedLine>
   13689         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
   13690              of it can be found. -->
   13691         <nationalNumberPattern>
   13692           869(?:
   13693             2(?:
   13694               29|
   13695               36
   13696             )|
   13697             302|
   13698             4(?:
   13699               6[5-9]|
   13700               70
   13701             )
   13702           )\d{4}
   13703         </nationalNumberPattern>
   13704         <exampleNumber>8692361234</exampleNumber>
   13705       </fixedLine>
   13706       <mobile>
   13707         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
   13708         <nationalNumberPattern>
   13709           869(?:
   13710             5(?:
   13711               5[6-8]|
   13712               6[5-7]
   13713             )|
   13714             66\d|
   13715             76[02-6]
   13716           )\d{4}
   13717         </nationalNumberPattern>
   13718         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13719         <exampleNumber>8695561234</exampleNumber>
   13720       </mobile>
   13721       <tollFree>
   13722         <nationalNumberPattern>
   13723           8(?:
   13724             00|
   13725             55|
   13726             66|
   13727             77|
   13728             88
   13729           )[2-9]\d{6}
   13730         </nationalNumberPattern>
   13731         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13732         <exampleNumber>8002123456</exampleNumber>
   13733       </tollFree>
   13734       <premiumRate>
   13735         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   13736         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13737         <exampleNumber>9002123456</exampleNumber>
   13738       </premiumRate>
   13739       <personalNumber>
   13740         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   13741         <nationalNumberPattern>
   13742           5(?:
   13743             00|
   13744             33|
   13745             44
   13746           )[2-9]\d{6}
   13747         </nationalNumberPattern>
   13748         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13749         <exampleNumber>5002345678</exampleNumber>
   13750       </personalNumber>
   13751       <emergency>
   13752         <!-- http://www.stkittstourism.kn/explore-st-kitts-facts.php
   13753              http://barbados.usembassy.gov/emergency-st_kitts_nevis.html -->
   13754         <nationalNumberPattern>
   13755           333|
   13756           9(?:
   13757             11|
   13758             99
   13759           )
   13760         </nationalNumberPattern>
   13761         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   13762         <exampleNumber>999</exampleNumber>
   13763       </emergency>
   13764     </territory>
   13765 
   13766     <!--  Korea, Dem. People's Rep. of -->
   13767     <!-- http://en.wikipedia.org/wiki/%2B850 -->
   13768     <territory id="KP" countryCode="850" internationalPrefix="00|99"
   13769                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   13770       <availableFormats>
   13771         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   13772           <leadingDigits>1</leadingDigits>
   13773           <format>$1 $2 $3</format>
   13774         </numberFormat>
   13775         <numberFormat pattern="(\d)(\d{3})(\d{4})">
   13776           <leadingDigits>2</leadingDigits>
   13777           <format>$1 $2 $3</format>
   13778         </numberFormat>
   13779         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   13780           <leadingDigits>8</leadingDigits>
   13781           <format>$1 $2 $3</format>
   13782         </numberFormat>
   13783       </availableFormats>
   13784       <generalDesc>
   13785         <nationalNumberPattern>
   13786           1\d{9}|
   13787           [28]\d{7}
   13788         </nationalNumberPattern>
   13789         <possibleNumberPattern>
   13790           \d{6,8}|
   13791           \d{10}
   13792         </possibleNumberPattern>
   13793       </generalDesc>
   13794       <noInternationalDialling>
   13795         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
   13796         <nationalNumberPattern>
   13797           2(?:
   13798             [0-24-9]\d{2}|
   13799             3(?:
   13800               [0-79]\d|
   13801               8[02-9]
   13802             )
   13803           )\d{4}
   13804         </nationalNumberPattern>
   13805         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   13806         <exampleNumber>23821234</exampleNumber>
   13807       </noInternationalDialling>
   13808       <fixedLine>
   13809         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
   13810              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
   13811              from overseas. Also, there is conflicting information about the length of fixed-line
   13812              numbers, so here we are following Wikipedia. -->
   13813         <nationalNumberPattern>
   13814           2\d{7}|
   13815           85\d{6}
   13816         </nationalNumberPattern>
   13817         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   13818         <exampleNumber>21234567</exampleNumber>
   13819       </fixedLine>
   13820       <mobile>
   13821         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
   13822         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13823         <exampleNumber>1921234567</exampleNumber>
   13824       </mobile>
   13825       <!-- According to the following webpage, there is no emergency number in
   13826            North Korea: http://www.netglobers.com/asia/north-korea-emergency-numbers-in-north-korea.html -->
   13827     </territory>
   13828 
   13829     <!-- Korea (Rep. of) -->
   13830     <!-- http://www.itu.int/oth/T0202000072/en -->
   13831     <!-- http://en.wikipedia.org/wiki/%2B82 -->
   13832     <!-- http://www.kcc.go.kr/user.do?mode=view&page=P02030300&dc=K02030300&boardId=1074&boardSeq=2349 -->
   13833     <!-- http://www.kcc.go.kr/user.do?mode=view&page=P02030300&dc=K02030300&boardId=1074&boardSeq=2240 -->
   13834     <!-- http://www.telecentro.co.kr/sub/index.php?job=detail&ebcf_id=faq&page=1&mid=0503&eb_seq=36 -->
   13835     <!-- Exceptions :
   13836         internationalPrefix
   13837             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
   13838         nationalPrefix
   13839             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
   13840     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
   13841                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
   13842                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG">
   13843       <availableFormats>
   13844         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   13845           <leadingDigits>
   13846             1(?:
   13847               0|
   13848               1[19]|
   13849               [69]9|
   13850               5[458]
   13851             )|
   13852             [57]0
   13853           </leadingDigits>
   13854           <leadingDigits>
   13855             1(?:
   13856               0|
   13857               1[19]|
   13858               [69]9|
   13859               5(?:
   13860                 44|
   13861                 59|
   13862                 8
   13863               )
   13864             )|
   13865             [57]0
   13866           </leadingDigits>
   13867           <format>$1-$2-$3</format>
   13868         </numberFormat>
   13869         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
   13870           <leadingDigits>
   13871             1(?:
   13872               [169][2-8]|
   13873               [78]|
   13874               5[1-4]
   13875             )|
   13876             [68]0|
   13877             [3-6][1-9][1-9]
   13878           </leadingDigits>
   13879           <leadingDigits>
   13880             1(?:
   13881               [169][2-8]|
   13882               [78]|
   13883               5(?:
   13884                 [1-3]|
   13885                 4[56]
   13886               )
   13887             )|
   13888             [68]0|
   13889             [3-6][1-9][1-9]
   13890           </leadingDigits>
   13891           <format>$1-$2-$3</format>
   13892         </numberFormat>
   13893         <numberFormat pattern="(\d{3})(\d)(\d{4})">
   13894           <leadingDigits>131</leadingDigits>
   13895           <leadingDigits>1312</leadingDigits>
   13896           <format>$1-$2-$3</format>
   13897         </numberFormat>
   13898         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
   13899           <leadingDigits>131</leadingDigits>
   13900           <leadingDigits>131[13-9]</leadingDigits>
   13901           <format>$1-$2-$3</format>
   13902         </numberFormat>
   13903         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   13904           <leadingDigits>13[2-9]</leadingDigits>
   13905           <format>$1-$2-$3</format>
   13906         </numberFormat>
   13907         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
   13908              limit of what digits may follow the 030, but we ignore that here. These numbers are
   13909              actually not supported for validation purposes by the library at the moment as no
   13910              online examples can be found, but we leave theme here so formatting continues to work
   13911              if they are entered. -->
   13912         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
   13913           <leadingDigits>30</leadingDigits>
   13914           <format>$1-$2-$3-$4</format>
   13915         </numberFormat>
   13916         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
   13917           <leadingDigits>2[1-9]</leadingDigits>
   13918           <format>$1-$2-$3</format>
   13919         </numberFormat>
   13920         <numberFormat pattern="(\d)(\d{3,4})">
   13921           <leadingDigits>21[0-46-9]</leadingDigits>
   13922           <format>$1-$2</format>
   13923         </numberFormat>
   13924         <numberFormat pattern="(\d{2})(\d{3,4})">
   13925           <leadingDigits>[3-6][1-9]1</leadingDigits>
   13926           <leadingDigits>
   13927             [3-6][1-9]1(?:
   13928               [0-46-9]
   13929             )
   13930           </leadingDigits>
   13931           <format>$1-$2</format>
   13932         </numberFormat>
   13933         <!-- Company numbers. -->
   13934         <numberFormat pattern="(\d{4})(\d{4})"
   13935           nationalPrefixFormattingRule="$FG">
   13936           <leadingDigits>
   13937             1(?:
   13938               5[46-9]|
   13939               6[04678]
   13940             )
   13941           </leadingDigits>
   13942           <leadingDigits>
   13943             1(?:
   13944               5(?:
   13945                 44|
   13946                 66|
   13947                 77|
   13948                 88|
   13949                 99
   13950               )|
   13951               6(?:
   13952                 00|
   13953                 44|
   13954                 6[16]|
   13955                 70|
   13956                 88
   13957               )
   13958             )
   13959           </leadingDigits>
   13960           <format>$1-$2</format>
   13961         </numberFormat>
   13962       </availableFormats>
   13963       <generalDesc>
   13964         <nationalNumberPattern>
   13965           [1-7]\d{3,9}|
   13966           8\d{8}
   13967         </nationalNumberPattern>
   13968         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   13969       </generalDesc>
   13970       <fixedLine>
   13971         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
   13972              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
   13973              starting with 1 based on evidence of real numbers found online. -->
   13974         <nationalNumberPattern>
   13975           (?:
   13976             2|
   13977             3[1-3]|
   13978             [46][1-4]|
   13979             5[1-5]
   13980           )(?:
   13981             1\d{2,3}|
   13982             [1-9]\d{6,7}
   13983           )
   13984         </nationalNumberPattern>
   13985         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   13986         <exampleNumber>22123456</exampleNumber>
   13987       </fixedLine>
   13988       <mobile>
   13989         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
   13990         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   13991         <exampleNumber>1023456789</exampleNumber>
   13992       </mobile>
   13993       <pager>
   13994         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
   13995         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   13996         <exampleNumber>1523456789</exampleNumber>
   13997       </pager>
   13998       <tollFree>
   13999         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   14000         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14001         <exampleNumber>801234567</exampleNumber>
   14002       </tollFree>
   14003       <!-- The information below is provided by a Korean person. -->
   14004       <premiumRate>
   14005         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
   14006         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14007         <exampleNumber>602345678</exampleNumber>
   14008       </premiumRate>
   14009       <personalNumber>
   14010         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
   14011         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14012         <exampleNumber>5012345678</exampleNumber>
   14013       </personalNumber>
   14014       <voip>
   14015         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   14016         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14017         <exampleNumber>7012345678</exampleNumber>
   14018       </voip>
   14019       <uan>
   14020         <nationalNumberPattern>
   14021           1(?:
   14022             5(?:
   14023               44|
   14024               66|
   14025               77|
   14026               88|
   14027               99
   14028             )|
   14029             6(?:
   14030               00|
   14031               44|
   14032               6[16]|
   14033               70|
   14034               88
   14035             )
   14036           )\d{4}
   14037         </nationalNumberPattern>
   14038         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14039         <exampleNumber>15441234</exampleNumber>
   14040       </uan>
   14041       <emergency>
   14042         <nationalNumberPattern>11[29]</nationalNumberPattern>
   14043         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14044         <exampleNumber>112</exampleNumber>
   14045       </emergency>
   14046     </territory>
   14047 
   14048     <!-- Kuwait -->
   14049     <!-- http://www.itu.int/oth/T0202000073/en -->
   14050     <territory id="KW" countryCode="965" internationalPrefix="00">
   14051       <availableFormats>
   14052         <!-- Format is from ITU. -->
   14053         <numberFormat pattern="(\d{4})(\d{3,4})">
   14054           <leadingDigits>[1269]</leadingDigits>
   14055           <format>$1 $2</format>
   14056         </numberFormat>
   14057         <numberFormat pattern="(5[015]\d)(\d{5})">
   14058           <leadingDigits>5</leadingDigits>
   14059           <format>$1 $2</format>
   14060         </numberFormat>
   14061       </availableFormats>
   14062       <generalDesc>
   14063         <nationalNumberPattern>
   14064           [12569]\d{6,7}
   14065         </nationalNumberPattern>
   14066         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   14067       </generalDesc>
   14068       <fixedLine>
   14069         <nationalNumberPattern>
   14070           (?:
   14071             18\d|
   14072             2(?:
   14073               [23]\d{2}|
   14074               4(?:
   14075                 [1-35-9]\d|
   14076                 44
   14077               )|
   14078               5(?:
   14079                 0[034]|
   14080                 [2-46]\d|
   14081                 5[1-3]|
   14082                 7[1-7]
   14083               )
   14084             )
   14085           )\d{4}
   14086         </nationalNumberPattern>
   14087         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   14088         <exampleNumber>22345678</exampleNumber>
   14089       </fixedLine>
   14090       <mobile>
   14091         <!-- The mention of the mobile range 6933 0000 - 6969 9999 seems to be
   14092              a mistake in the ITU plan, and should be 6933 0000 - 6933 9999. -->
   14093         <nationalNumberPattern>
   14094           (?:
   14095             5(?:
   14096               1[0-2]|
   14097               [05]\d
   14098             )|
   14099             6(?:
   14100               0[034679]|
   14101               5[015-9]|
   14102               6\d|
   14103               7[067]|
   14104               9[0369]
   14105             )|
   14106             9(?:
   14107               0[09]|
   14108               4[049]|
   14109               6[069]|
   14110               [79]\d
   14111             )
   14112           )\d{5}
   14113         </nationalNumberPattern>
   14114         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14115         <exampleNumber>50012345</exampleNumber>
   14116       </mobile>
   14117       <!-- No tollFree or premiumRate information can be found. -->
   14118       <shortCode>
   14119         <nationalNumberPattern>
   14120           1(?:
   14121            [02-9]\d|
   14122            1[013-9]
   14123           )
   14124         </nationalNumberPattern>
   14125         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14126         <exampleNumber>177</exampleNumber>
   14127       </shortCode>
   14128       <emergency>
   14129         <nationalNumberPattern>112</nationalNumberPattern>
   14130         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14131         <exampleNumber>112</exampleNumber>
   14132       </emergency>
   14133     </territory>
   14134 
   14135     <!-- Cayman Islands -->
   14136     <!-- http://www.itu.int/oth/T0202000027/en -->
   14137     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
   14138                internationalPrefix="011">
   14139       <generalDesc>
   14140         <!-- NANPA country - uses US formatting rules -->
   14141         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
   14142         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   14143       </generalDesc>
   14144       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
   14145            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
   14146       <fixedLine>
   14147         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
   14148              as per numbers found online and their website www.logic.ky. -->
   14149         <nationalNumberPattern>
   14150           345(?:
   14151             2(?:
   14152               22|
   14153               44
   14154             )|
   14155             444|
   14156             6(?:
   14157               23|
   14158               38|
   14159               40
   14160             )|
   14161             7(?:
   14162               4[35-79]|
   14163               6[6-9]|
   14164               77
   14165             )|
   14166             8(?:
   14167               00|
   14168               1[45]|
   14169               25|
   14170               [48]8
   14171             )|
   14172             9(?:
   14173               14|
   14174               4[035-9]
   14175             )
   14176           )\d{4}
   14177         </nationalNumberPattern>
   14178         <exampleNumber>3452221234</exampleNumber>
   14179       </fixedLine>
   14180       <mobile>
   14181         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
   14182              Most central office codes that were surrendered have not been included, with the
   14183              exception of 546 where numbers have been found. -->
   14184         <nationalNumberPattern>
   14185           345(?:
   14186             32[1-9]|
   14187             5(?:
   14188               1[67]|
   14189               2[5-7]|
   14190               4[6-8]|
   14191               76
   14192             )|
   14193             9(?:
   14194               1[67]|
   14195               2[3-9]|
   14196               3[689]
   14197             )
   14198           )\d{4}
   14199         </nationalNumberPattern>
   14200         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14201         <exampleNumber>3453231234</exampleNumber>
   14202       </mobile>
   14203       <pager>
   14204         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
   14205         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14206         <exampleNumber>3458491234</exampleNumber>
   14207       </pager>
   14208       <tollFree>
   14209         <nationalNumberPattern>
   14210           8(?:
   14211             00|
   14212             55|
   14213             66|
   14214             77|
   14215             88
   14216           )[2-9]\d{6}
   14217         </nationalNumberPattern>
   14218         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14219         <exampleNumber>8002345678</exampleNumber>
   14220       </tollFree>
   14221       <premiumRate>
   14222         <nationalNumberPattern>
   14223           900[2-9]\d{6}|
   14224           345976\d{4}
   14225         </nationalNumberPattern>
   14226         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14227         <exampleNumber>9002345678</exampleNumber>
   14228       </premiumRate>
   14229       <personalNumber>
   14230         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   14231         <nationalNumberPattern>
   14232           5(?:
   14233             00|
   14234             33|
   14235             44
   14236           )[2-9]\d{6}
   14237         </nationalNumberPattern>
   14238         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14239         <exampleNumber>5002345678</exampleNumber>
   14240       </personalNumber>
   14241       <emergency>
   14242         <nationalNumberPattern>911</nationalNumberPattern>
   14243         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14244         <exampleNumber>911</exampleNumber>
   14245       </emergency>
   14246     </territory>
   14247 
   14248     <!-- Kazakhstan -->
   14249     <!-- http://www.itu.int/oth/T020200006F/en -->
   14250     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
   14251                internationalPrefix="810" nationalPrefix="8">
   14252        <!-- Formatting rules obtained from Russia. -->
   14253       <generalDesc>
   14254         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
   14255              determining the country is faster. -->
   14256         <nationalNumberPattern>
   14257           (?:
   14258             33\d|
   14259             7\d{2}|
   14260             80[09]
   14261           )\d{7}
   14262         </nationalNumberPattern>
   14263         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14264       </generalDesc>
   14265       <noInternationalDialling>
   14266         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
   14267         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14268         <exampleNumber>7511234567</exampleNumber>
   14269       </noInternationalDialling>
   14270       <fixedLine>
   14271         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
   14272              22), which is within Kazakhstan but in fact rented and administered by Russia at the
   14273              moment. -->
   14274         <nationalNumberPattern>
   14275           33622\d{5}|
   14276           7(?:
   14277             1(?:
   14278               0(?:
   14279                 [23]\d|
   14280                 4[023]|
   14281                 59|
   14282                 63
   14283               )|
   14284               1(?:
   14285                 [23]\d|
   14286                 4[0-79]|
   14287                 59
   14288               )|
   14289               2(?:
   14290                 [23]\d|
   14291                 59
   14292               )|
   14293               3(?:
   14294                 2\d|
   14295                 3[1-79]|
   14296                 4[0-35-9]|
   14297                 59
   14298               )|
   14299               4(?:
   14300                 2\d|
   14301                 3[013-79]|
   14302                 4[0-8]|
   14303                 5[1-79]
   14304               )|
   14305               5(?:
   14306                 2\d|
   14307                 3[1-8]|
   14308                 4[1-7]|
   14309                 59
   14310               )|
   14311               6(?:
   14312                 [234]\d|
   14313                 5[19]|
   14314                 61
   14315               )|
   14316               72\d|
   14317               8(?:
   14318                 [27]\d|
   14319                 3[1-46-9]|
   14320                 4[0-5]
   14321               )
   14322             )|
   14323             2(?:
   14324               1(?:
   14325                 [23]\d|
   14326                 4[46-9]|
   14327                 5[3469]
   14328               )|
   14329               2(?:
   14330                 2\d|
   14331                 3[0679]|
   14332                 46|
   14333                 5[12679]
   14334               )|
   14335               3(?:
   14336                 [234]\d|
   14337                 5[139]
   14338               )|
   14339               4(?:
   14340                 2\d|
   14341                 3[1235-9]|
   14342                 59
   14343               )|
   14344               5(?:
   14345                 [23]\d|
   14346                 4[01246-8]|
   14347                 59|
   14348                 61
   14349               )|
   14350               6(?:
   14351                 2\d|
   14352                 3[1-9]|
   14353                 4[0-4]|
   14354                 59
   14355               )|
   14356               7(?:
   14357                 [237]\d|
   14358                 40|
   14359                 5[279]
   14360               )|
   14361               8(?:
   14362                 [23]\d|
   14363                 4[0-3]|
   14364                 59
   14365               )|
   14366               9(?:
   14367                 2\d|
   14368                 3[124578]|
   14369                 59
   14370               )
   14371             )
   14372           )\d{5}
   14373         </nationalNumberPattern>
   14374         <exampleNumber>7123456789</exampleNumber>
   14375       </fixedLine>
   14376       <mobile>
   14377         <!-- Added 776, apparently assigned to Beeline. -->
   14378         <nationalNumberPattern>
   14379           7(?:
   14380             0[01257]|
   14381             6[02-4]|
   14382             7[15-8]|
   14383             85
   14384           )\d{7}
   14385         </nationalNumberPattern>
   14386         <exampleNumber>7710009998</exampleNumber>
   14387       </mobile>
   14388       <tollFree>
   14389         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   14390         <exampleNumber>8001234567</exampleNumber>
   14391       </tollFree>
   14392       <premiumRate>
   14393         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
   14394         <exampleNumber>8091234567</exampleNumber>
   14395       </premiumRate>
   14396       <voip>
   14397         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
   14398         <exampleNumber>7511234567</exampleNumber>
   14399       </voip>
   14400       <emergency>
   14401         <nationalNumberPattern>
   14402           1(?:
   14403             0[123]|
   14404             12
   14405           )
   14406         </nationalNumberPattern>
   14407         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14408         <exampleNumber>112</exampleNumber>
   14409       </emergency>
   14410     </territory>
   14411 
   14412     <!-- Lao People's Dem. Rep. -->
   14413     <!-- http://www.itu.int/oth/T0202000075/en (Seems incomplete) -->
   14414     <!-- http://en.wikipedia.org/wiki/+856 -->
   14415     <territory id="LA" countryCode="856" internationalPrefix="00"
   14416                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   14417       <availableFormats>
   14418         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
   14419           <leadingDigits>20</leadingDigits>
   14420           <format>$1 $2 $3 $4</format>
   14421         </numberFormat>
   14422         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
   14423           <leadingDigits>
   14424             2[13]|
   14425             [3-8]
   14426           </leadingDigits>
   14427           <format>$1 $2 $3</format>
   14428         </numberFormat>
   14429       </availableFormats>
   14430       <generalDesc>
   14431         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
   14432         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   14433       </generalDesc>
   14434       <fixedLine>
   14435         <nationalNumberPattern>
   14436           (?:
   14437             2[13]|
   14438             [35-7][14]|
   14439             41|
   14440             8[1468]
   14441           )\d{6}
   14442         </nationalNumberPattern>
   14443         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   14444         <exampleNumber>21212862</exampleNumber>
   14445       </fixedLine>
   14446       <mobile>
   14447         <!-- Adding 202[89], 205[89], 207[68] and 209[57] from numbers found online. -->
   14448         <nationalNumberPattern>
   14449           20(?:
   14450             2[2389]|
   14451             5[4-689]|
   14452             7[6-8]|
   14453             9[57-9]
   14454           )\d{6}
   14455         </nationalNumberPattern>
   14456         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14457         <exampleNumber>2023123456</exampleNumber>
   14458       </mobile>
   14459       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
   14460       <emergency>
   14461         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_946.html -->
   14462         <nationalNumberPattern>19[015]</nationalNumberPattern>
   14463         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14464         <exampleNumber>190</exampleNumber>
   14465       </emergency>
   14466     </territory>
   14467 
   14468     <!-- Lebanon -->
   14469     <!-- http://www.itu.int/oth/T0202000077/en -->
   14470     <!-- http://en.wikipedia.org/wiki/%2B961 -->
   14471     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
   14472       <availableFormats>
   14473         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
   14474           <leadingDigits>
   14475             [13-6]|
   14476             7(?:
   14477               [2-579]|
   14478               62|
   14479               8[0-7]
   14480             )|
   14481             [89][2-9]
   14482             </leadingDigits>
   14483           <format>$1 $2 $3</format>
   14484         </numberFormat>
   14485         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
   14486           <leadingDigits>
   14487             [89][01]|
   14488             7(?:
   14489               [01]|
   14490               6[013-9]|
   14491               8[89]|
   14492               91
   14493             )
   14494           </leadingDigits>
   14495           <format>$1 $2 $3</format>
   14496         </numberFormat>
   14497       </availableFormats>
   14498       <generalDesc>
   14499         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
   14500         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   14501       </generalDesc>
   14502       <fixedLine>
   14503         <nationalNumberPattern>
   14504           (?:
   14505             [14-6]\d{2}|
   14506             7(?:
   14507               [2-579]\d|
   14508               62|
   14509               8[0-7]
   14510             )|
   14511             [89][2-9]\d
   14512           )\d{4}
   14513         </nationalNumberPattern>
   14514         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   14515         <exampleNumber>1123456</exampleNumber>
   14516       </fixedLine>
   14517       <mobile>
   14518         <!-- We only validate the first three digits here, since the ranges are growing rapidly. -->
   14519         <nationalNumberPattern>
   14520           (?:
   14521             3\d|
   14522             7(?:
   14523               [01]\d|
   14524               6[013-9]|
   14525               8[89]|
   14526               91
   14527             )
   14528           )\d{5}
   14529         </nationalNumberPattern>
   14530         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   14531         <exampleNumber>71123456</exampleNumber>
   14532       </mobile>
   14533       <premiumRate>
   14534         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
   14535         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14536         <exampleNumber>90123456</exampleNumber>
   14537       </premiumRate>
   14538       <sharedCost>
   14539         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
   14540         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14541         <exampleNumber>80123456</exampleNumber>
   14542       </sharedCost>
   14543       <emergency>
   14544         <nationalNumberPattern>
   14545           1(?:
   14546             12|
   14547             40|
   14548             75
   14549           )|
   14550           999
   14551         </nationalNumberPattern>
   14552         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14553         <exampleNumber>112</exampleNumber>
   14554       </emergency>
   14555     </territory>
   14556 
   14557     <!-- Saint Lucia -->
   14558     <!-- http://www.itu.int/oth/T02020000B1/en -->
   14559     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
   14560                internationalPrefix="011">
   14561       <generalDesc>
   14562         <!-- NANPA country - uses US formatting rules -->
   14563         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
   14564         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   14565       </generalDesc>
   14566       <fixedLine>
   14567         <!-- Adding 430 and 572 since numbers have been found with these prefixes online. -->
   14568         <nationalNumberPattern>
   14569           758(?:
   14570             234|
   14571             4(?:
   14572               30|
   14573               5[0-9]|
   14574               6[2-9]|
   14575               8[0-2]
   14576             )|
   14577             572|
   14578             638|
   14579             758
   14580           )\d{4}
   14581         </nationalNumberPattern>
   14582         <exampleNumber>7582345678</exampleNumber>
   14583       </fixedLine>
   14584       <mobile>
   14585         <!-- Adding 72[1256] as these prefixes are found widely on the internet and SMS messages
   14586              have been successfully delivered to these numbers. -->
   14587         <nationalNumberPattern>
   14588           758(?:
   14589             28[4-7]|
   14590             384|
   14591             4(?:
   14592               6[01]|
   14593               8[4-9]
   14594             )|
   14595             5(?:
   14596               1[89]|
   14597               20|
   14598               84
   14599             )|
   14600             7(?:
   14601               1[2-9]|
   14602               2[0-6]
   14603             )
   14604           )\d{4}
   14605         </nationalNumberPattern>
   14606         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14607         <exampleNumber>7582845678</exampleNumber>
   14608       </mobile>
   14609       <tollFree>
   14610         <nationalNumberPattern>
   14611           8(?:
   14612             00|
   14613             55|
   14614             66|
   14615             77|
   14616             88
   14617           )[2-9]\d{6}
   14618         </nationalNumberPattern>
   14619         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14620         <exampleNumber>8002123456</exampleNumber>
   14621       </tollFree>
   14622       <premiumRate>
   14623         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   14624         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14625         <exampleNumber>9002123456</exampleNumber>
   14626       </premiumRate>
   14627       <personalNumber>
   14628         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   14629         <nationalNumberPattern>
   14630           5(?:
   14631             00|
   14632             33|
   14633             44
   14634           )[2-9]\d{6}
   14635         </nationalNumberPattern>
   14636         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   14637         <exampleNumber>5002345678</exampleNumber>
   14638       </personalNumber>
   14639       <emergency>
   14640         <!-- http://barbados.usembassy.gov/emergency-st_lucia.html
   14641              http://www.stlucia.org/planner/travel.asp
   14642              Note the second source only mentions 911, so we are not sure if 999 is indeed an
   14643              emergency number here. -->
   14644         <nationalNumberPattern>
   14645           9(?:
   14646             11|
   14647             99
   14648           )
   14649         </nationalNumberPattern>
   14650         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14651         <exampleNumber>911</exampleNumber>
   14652       </emergency>
   14653     </territory>
   14654 
   14655     <!-- Liechtenstein -->
   14656     <!-- http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm -->
   14657     <!-- http://www.telecom.li has some different patterns for tollfree and shared cost numbers -
   14658          look at "Mehrwertnummer". -->
   14659     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
   14660     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
   14661       <availableFormats>
   14662         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
   14663           <leadingDigits>
   14664             [23]|
   14665             7[3-57-9]|
   14666             87
   14667           </leadingDigits>
   14668           <format>$1 $2 $3</format>
   14669         </numberFormat>
   14670         <numberFormat pattern="(6\d)(\d{3})(\d{3})">
   14671           <leadingDigits>6</leadingDigits>
   14672           <format>$1 $2 $3</format>
   14673         </numberFormat>
   14674         <numberFormat pattern="(6[567]\d)(\d{3})(\d{3})">
   14675           <leadingDigits>6[567]</leadingDigits>
   14676           <format>$1 $2 $3</format>
   14677         </numberFormat>
   14678         <numberFormat pattern="(69)(7\d{2})(\d{4})">
   14679           <leadingDigits>697</leadingDigits>
   14680           <format>$1 $2 $3</format>
   14681         </numberFormat>
   14682         <numberFormat pattern="([7-9]0\d)(\d{2})(\d{2})">
   14683           <leadingDigits>[7-9]0</leadingDigits>
   14684           <format>$1 $2 $3</format>
   14685         </numberFormat>
   14686         <!-- Numbers of the form [89]00\d{6} are Swiss numbers callable from Liechtenstein. -->
   14687         <numberFormat pattern="([89]0\d)(\d{2})(\d{2})(\d{2})"
   14688           nationalPrefixFormattingRule="$NP$FG">
   14689           <leadingDigits>[89]0</leadingDigits>
   14690           <format>$1 $2 $3 $4</format>
   14691         </numberFormat>
   14692       </availableFormats>
   14693       <generalDesc>
   14694         <nationalNumberPattern>
   14695           6\d{8}|
   14696           [23789]\d{6}
   14697         </nationalNumberPattern>
   14698         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   14699       </generalDesc>
   14700       <fixedLine>
   14701         <nationalNumberPattern>
   14702           (?:
   14703             2(?:
   14704               01|
   14705               1[27]|
   14706               3\d|
   14707               6[02-578]|
   14708               96
   14709             )|
   14710             3(?:
   14711               7[0135-7]|
   14712               8[048]|
   14713               9[0269]
   14714             )
   14715           )\d{4}
   14716         </nationalNumberPattern>
   14717         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   14718         <exampleNumber>2345678</exampleNumber>
   14719       </fixedLine>
   14720       <mobile>
   14721         <nationalNumberPattern>
   14722           6(?:
   14723             51[01]|
   14724             6(?:
   14725               [01][0-4]|
   14726               2[016-9]|
   14727               88
   14728             )|
   14729             710
   14730           )\d{5}|
   14731           7(?:
   14732             36|
   14733             4[25]|
   14734             56|
   14735             [7-9]\d
   14736           )\d{4}
   14737         </nationalNumberPattern>
   14738         <exampleNumber>661234567</exampleNumber>
   14739       </mobile>
   14740       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
   14741            even though it doesn't appear in the plan. -->
   14742       <tollFree>
   14743         <nationalNumberPattern>
   14744           80(?:
   14745             0(?:
   14746               2[238]|
   14747               79
   14748             )|
   14749             9\d{2}
   14750           )\d{2}
   14751         </nationalNumberPattern>
   14752         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   14753         <exampleNumber>8002222</exampleNumber>
   14754       </tollFree>
   14755       <premiumRate>
   14756         <nationalNumberPattern>
   14757           90(?:
   14758             0(?:
   14759               2[278]|
   14760               79
   14761             )|
   14762             1(?:
   14763               23|
   14764               3[012]
   14765             )|
   14766             6(?:
   14767               4\d|
   14768               6[0126]
   14769             )
   14770           )\d{2}
   14771         </nationalNumberPattern>
   14772         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   14773         <exampleNumber>9002222</exampleNumber>
   14774       </premiumRate>
   14775       <uan>
   14776         <nationalNumberPattern>
   14777           87(?:
   14778             0[128]|
   14779             7[0-4]
   14780           )\d{3}
   14781         </nationalNumberPattern>
   14782         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   14783         <exampleNumber>8770123</exampleNumber>
   14784       </uan>
   14785       <voicemail>
   14786         <nationalNumberPattern>
   14787           697(?:
   14788             [35]6|
   14789             4[25]|
   14790             [7-9]\d
   14791           )\d{4}
   14792         </nationalNumberPattern>
   14793         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14794         <exampleNumber>697361234</exampleNumber>
   14795       </voicemail>
   14796       <personalNumber>
   14797         <nationalNumberPattern>701\d{4}</nationalNumberPattern>
   14798         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   14799         <exampleNumber>7011234</exampleNumber>
   14800       </personalNumber>
   14801       <!-- Information for short codes and emergency numbers comes from:
   14802            http://www.llv.li/pdf-llv-ak-shortnumbers_20110331.pdf -->
   14803       <shortCode>
   14804         <nationalNumberPattern>
   14805           1(?:
   14806             145|
   14807             4(?:
   14808               [0357]|
   14809               14
   14810             )|
   14811             50\d{4}|
   14812             6(?:
   14813               00|
   14814               [1-4]
   14815             )|
   14816             75|
   14817             8(?:
   14818               1[128]|
   14819               7
   14820             )
   14821           )
   14822         </nationalNumberPattern>
   14823         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   14824         <exampleNumber>1600</exampleNumber>
   14825       </shortCode>
   14826       <emergency>
   14827         <nationalNumberPattern>
   14828           1(?:
   14829             1[278]|
   14830             44
   14831           )
   14832         </nationalNumberPattern>
   14833         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14834         <exampleNumber>112</exampleNumber>
   14835       </emergency>
   14836     </territory>
   14837 
   14838     <!-- Sri Lanka -->
   14839     <!-- http://en.wikipedia.org/wiki/%2B94 -->
   14840     <!-- http://www.itu.int/oth/T02020000C3/en -->
   14841     <territory id="LK" countryCode="94" internationalPrefix="00"
   14842                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   14843       <availableFormats>
   14844         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
   14845           <leadingDigits>[1-689]</leadingDigits>
   14846           <format>$1 $2 $3</format>
   14847         </numberFormat>
   14848         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   14849           <leadingDigits>7</leadingDigits>
   14850           <format>$1 $2 $3</format>
   14851         </numberFormat>
   14852       </availableFormats>
   14853       <generalDesc>
   14854         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
   14855         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   14856       </generalDesc>
   14857       <fixedLine>
   14858         <nationalNumberPattern>
   14859           (?:
   14860             [189]1|
   14861             2[13-7]|
   14862             3[1-8]|
   14863             4[157]|
   14864             5[12457]|
   14865             6[35-7]
   14866           )[2-57]\d{6}
   14867         </nationalNumberPattern>
   14868         <exampleNumber>112345678</exampleNumber>
   14869       </fixedLine>
   14870       <mobile>
   14871         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
   14872         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
   14873         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14874         <exampleNumber>712345678</exampleNumber>
   14875       </mobile>
   14876       <emergency>
   14877         <nationalNumberPattern>11[0189]</nationalNumberPattern>
   14878         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14879         <exampleNumber>119</exampleNumber>
   14880       </emergency>
   14881     </territory>
   14882 
   14883     <!-- Liberia -->
   14884     <!-- http://www.itu.int/oth/T0202000079/en -->
   14885     <territory id="LR" countryCode="231" internationalPrefix="00"
   14886                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   14887       <availableFormats>
   14888         <!-- Formatting from Ministry of Agriculture,
   14889         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
   14890         <numberFormat pattern="([279]\d)(\d{3})(\d{3})">
   14891           <leadingDigits>[279]</leadingDigits>
   14892           <format>$1 $2 $3</format>
   14893         </numberFormat>
   14894         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
   14895           <leadingDigits>7</leadingDigits>
   14896           <format>$1 $2 $3</format>
   14897         </numberFormat>
   14898         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
   14899           <leadingDigits>[4-6]</leadingDigits>
   14900           <format>$1 $2 $3</format>
   14901         </numberFormat>
   14902         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   14903           <leadingDigits>[38]</leadingDigits>
   14904           <format>$1 $2 $3</format>
   14905         </numberFormat>
   14906       </availableFormats>
   14907       <generalDesc>
   14908         <nationalNumberPattern>
   14909           (?:
   14910             [29]\d|
   14911             [4-6]|
   14912             7\d{1,2}|
   14913             [38]\d{2}
   14914           )\d{6}
   14915         </nationalNumberPattern>
   14916         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   14917       </generalDesc>
   14918       <fixedLine>
   14919         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
   14920         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14921         <exampleNumber>21234567</exampleNumber>
   14922       </fixedLine>
   14923       <mobile>
   14924         <!-- According to information from Lonestar Communications Corporation, the prefix 6 is
   14925              being removed, but as of June 2012 is in parallel running with their new prefix 88.
   14926              According to Cellcom Liberia, they have issued 9 digit numbers starting with 77. -->
   14927         <nationalNumberPattern>
   14928           (?:
   14929             4[67]|
   14930             5\d|
   14931             6[4-8]|
   14932             77?\d{2}|
   14933             88\d{2}
   14934           )\d{5}
   14935         </nationalNumberPattern>
   14936         <exampleNumber>4612345</exampleNumber>
   14937       </mobile>
   14938       <premiumRate>
   14939         <!-- Telemedia service is listed under premium rate. -->
   14940         <!-- Note that as of March 2013, the ITU document talks about the withdrawal of the range
   14941              (90) 0 XXX XXX. This is a 9 digit range and one we have never supported, but this could
   14942              be a mistake in the ITU document and refer to (90) 0XX XXX. However as this is unclear
   14943              at the moment, we decided to leave the (90) range unchanged for now. -->
   14944         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
   14945         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14946         <exampleNumber>90123456</exampleNumber>
   14947       </premiumRate>
   14948       <voip>
   14949         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
   14950              say they are involved in the VoIP sector. -->
   14951         <nationalNumberPattern>33200\d{4}</nationalNumberPattern>
   14952         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14953         <exampleNumber>332001234</exampleNumber>
   14954       </voip>
   14955       <emergency>
   14956         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_950.html -->
   14957         <nationalNumberPattern>
   14958           355|
   14959           911
   14960         </nationalNumberPattern>
   14961         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14962         <exampleNumber>911</exampleNumber>
   14963       </emergency>
   14964     </territory>
   14965 
   14966     <!-- Lesotho -->
   14967     <!-- http://www.itu.int/oth/T0202000078/en -->
   14968     <territory id="LS" countryCode="266" internationalPrefix="00">
   14969       <availableFormats>
   14970         <!-- Formatting following yellow pages: www.yellowpages.co.ls -->
   14971         <numberFormat pattern="(\d{4})(\d{4})">
   14972           <format>$1 $2</format>
   14973         </numberFormat>
   14974       </availableFormats>
   14975       <generalDesc>
   14976         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
   14977         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14978       </generalDesc>
   14979       <fixedLine>
   14980         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
   14981         <exampleNumber>22123456</exampleNumber>
   14982       </fixedLine>
   14983       <mobile>
   14984         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
   14985         <exampleNumber>50123456</exampleNumber>
   14986       </mobile>
   14987       <tollFree>
   14988         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
   14989         <exampleNumber>80021234</exampleNumber>
   14990       </tollFree>
   14991       <emergency>
   14992         <!-- http://www.nul.ls/students/students_Home/emergency_Nos/
   14993              http://www.voyage.gc.ca/countries_pays/report_rapport-eng.asp?id=160000 -->
   14994         <nationalNumberPattern>11[257]</nationalNumberPattern>
   14995         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   14996         <exampleNumber>112</exampleNumber>
   14997       </emergency>
   14998     </territory>
   14999 
   15000     <!-- Lithuania -->
   15001     <!-- http://www.itu.int/oth/T020200007C/en -->
   15002     <!-- Note that Lithuania is switching to a national prefix of 0. We support
   15003          both 0 and 8 when parsing until this switch is complete. -->
   15004     <territory id="LT" countryCode="370" internationalPrefix="00"
   15005                nationalPrefix="8" nationalPrefixForParsing="[08]"
   15006                nationalPrefixFormattingRule="($NP-$FG)">
   15007       <!-- National Prefix formatting rule from www.yellowpages.lt -->
   15008       <availableFormats>
   15009         <!-- Two-digit area codes -->
   15010         <numberFormat pattern="([34]\d)(\d{6})">
   15011           <leadingDigits>
   15012             37|
   15013             4(?:
   15014               1|
   15015               5[45]|
   15016               6[2-4]
   15017             )
   15018           </leadingDigits>
   15019           <format>$1 $2</format>
   15020         </numberFormat>
   15021         <!-- Three-digit area codes -->
   15022         <numberFormat pattern="([3-6]\d{2})(\d{5})">
   15023           <leadingDigits>
   15024             3[148]|
   15025             4(?:
   15026               [24]|
   15027               6[09]
   15028             )|
   15029             528|
   15030             6
   15031           </leadingDigits>
   15032           <format>$1 $2</format>
   15033         </numberFormat>
   15034         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
   15035           nationalPrefixFormattingRule="$NP $FG">
   15036           <leadingDigits>[7-9]</leadingDigits>
   15037           <format>$1 $2 $3</format>
   15038         </numberFormat>
   15039         <numberFormat pattern="(5)(2\d{2})(\d{4})">
   15040           <leadingDigits>52[0-79]</leadingDigits>
   15041           <format>$1 $2 $3</format>
   15042         </numberFormat>
   15043       </availableFormats>
   15044       <generalDesc>
   15045         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
   15046         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15047       </generalDesc>
   15048       <fixedLine>
   15049         <nationalNumberPattern>
   15050           (?:
   15051             3[1478]|
   15052             4[124-6]|
   15053             52
   15054           )\d{6}
   15055         </nationalNumberPattern>
   15056         <exampleNumber>31234567</exampleNumber>
   15057       </fixedLine>
   15058       <mobile>
   15059         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
   15060         <exampleNumber>61234567</exampleNumber>
   15061       </mobile>
   15062       <tollFree>
   15063         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   15064         <exampleNumber>80012345</exampleNumber>
   15065       </tollFree>
   15066       <premiumRate>
   15067         <nationalNumberPattern>
   15068           9(?:
   15069             0[0239]|
   15070             10
   15071           )\d{5}
   15072         </nationalNumberPattern>
   15073         <exampleNumber>90012345</exampleNumber>
   15074       </premiumRate>
   15075       <personalNumber>
   15076         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
   15077         <exampleNumber>70012345</exampleNumber>
   15078       </personalNumber>
   15079       <sharedCost>
   15080         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
   15081         <exampleNumber>80812345</exampleNumber>
   15082       </sharedCost>
   15083       <uan>
   15084         <!-- Including government service numbers here too. -->
   15085         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
   15086         <exampleNumber>70712345</exampleNumber>
   15087       </uan>
   15088       <emergency>
   15089         <nationalNumberPattern>
   15090           0(?:
   15091             11?|
   15092             22?|
   15093             33?
   15094           )|
   15095           1(?:
   15096             0[123]|
   15097             12
   15098           )
   15099         </nationalNumberPattern>
   15100         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   15101         <exampleNumber>112</exampleNumber>
   15102       </emergency>
   15103     </territory>
   15104 
   15105     <!-- Luxembourg -->
   15106     <!-- http://www.ilr.public.lu/communications_electroniques/numerotation/index.html
   15107          -->
   15108     <territory id="LU" countryCode="352" internationalPrefix="00"
   15109                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
   15110                carrierCodeFormattingRule="$CC $FG">
   15111       <availableFormats>
   15112         <!-- Patterns overlap because of variable number length. -->
   15113         <numberFormat pattern="(\d{2})(\d{3})">
   15114           <leadingDigits>
   15115             [2-5]|
   15116             7[1-9]|
   15117             [89](?:
   15118               [1-9]|
   15119               0[2-9]
   15120             )
   15121           </leadingDigits>
   15122           <format>$1 $2</format>
   15123         </numberFormat>
   15124         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   15125           <leadingDigits>
   15126             [2-5]|
   15127             7[1-9]|
   15128             [89](?:
   15129               [1-9]|
   15130               0[2-9]
   15131             )
   15132           </leadingDigits>
   15133           <format>$1 $2 $3</format>
   15134         </numberFormat>
   15135         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
   15136           <leadingDigits>20</leadingDigits>
   15137           <format>$1 $2 $3</format>
   15138         </numberFormat>
   15139         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
   15140              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
   15141              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
   15142              -->
   15143         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
   15144           <leadingDigits>
   15145             2(?:
   15146               [0367]|
   15147               4[3-8]
   15148             )
   15149           </leadingDigits>
   15150           <format>$1 $2 $3 $4</format>
   15151         </numberFormat>
   15152         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
   15153           <leadingDigits>20</leadingDigits>
   15154           <format>$1 $2 $3 $4</format>
   15155         </numberFormat>
   15156         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
   15157           <leadingDigits>
   15158             2(?:
   15159               [0367]|
   15160               4[3-8]
   15161             )
   15162           </leadingDigits>
   15163           <format>$1 $2 $3 $4 $5</format>
   15164         </numberFormat>
   15165         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
   15166           <leadingDigits>
   15167             2(?:
   15168               [12589]|
   15169               4[12]
   15170             )|
   15171             [3-5]|
   15172             7[1-9]|
   15173             [89](?:
   15174               [1-9]|
   15175               0[2-9]
   15176             )
   15177           </leadingDigits>
   15178           <format>$1 $2 $3 $4</format>
   15179         </numberFormat>
   15180         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
   15181           <leadingDigits>
   15182             [89]0[01]|
   15183             70
   15184           </leadingDigits>
   15185           <format>$1 $2 $3</format>
   15186         </numberFormat>
   15187         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   15188           <leadingDigits>6</leadingDigits>
   15189           <format>$1 $2 $3</format>
   15190         </numberFormat>
   15191       </availableFormats>
   15192       <generalDesc>
   15193         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
   15194              necessary since the numbers have a variable number length. -->
   15195         <nationalNumberPattern>
   15196           [24-9]\d{3,10}|
   15197           3(?:
   15198             [0-46-9]\d{2,9}|
   15199             5[013-9]\d{1,8}
   15200           )
   15201         </nationalNumberPattern>
   15202         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
   15203       </generalDesc>
   15204       <fixedLine>
   15205         <!-- Note that numbers starting with 2[367] can be a maximum of 10 digits - all others a
   15206              maximum of 11. -->
   15207         <nationalNumberPattern>
   15208           (?:
   15209             2(?:
   15210               2\d{1,2}|
   15211               3[2-9]|
   15212               [67]\d|
   15213               4[1-8]\d?|
   15214               5[1-5]\d?|
   15215               9[0-24-9]\d?
   15216             )|
   15217             3(?:
   15218               [059][05-9]|
   15219               [13]\d|
   15220               [26][015-9]|
   15221               4[0-26-9]|
   15222               7[0-389]|
   15223               8[08]
   15224             )\d?|
   15225             4\d{2,3}|
   15226             5(?:
   15227               [01458]\d|
   15228               [27][0-69]|
   15229               3[0-3]|
   15230               [69][0-7]
   15231             )\d?|
   15232             7(?:
   15233               1[019]|
   15234               2[05-9]|
   15235               3[05]|
   15236               [45][07-9]|
   15237               [679][089]|
   15238               8[06-9]
   15239             )\d?|
   15240             8(?:
   15241               0[2-9]|
   15242               1[0-36-9]|
   15243               3[3-9]|
   15244               [469]9|
   15245               [58][7-9]|
   15246               7[89]
   15247             )\d?|
   15248             9(?:
   15249               0[89]|
   15250               2[0-49]|
   15251               37|
   15252               49|
   15253               5[0-27-9]|
   15254               7[7-9]|
   15255               9[0-478]
   15256             )\d?
   15257           )\d{1,7}
   15258         </nationalNumberPattern>
   15259         <exampleNumber>27123456</exampleNumber>
   15260       </fixedLine>
   15261       <mobile>
   15262         <nationalNumberPattern>6[269][18]\d{6}</nationalNumberPattern>
   15263         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   15264         <exampleNumber>628123456</exampleNumber>
   15265       </mobile>
   15266       <tollFree>
   15267         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   15268         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15269         <exampleNumber>80012345</exampleNumber>
   15270       </tollFree>
   15271       <premiumRate>
   15272         <nationalNumberPattern>90[01]\d{5}</nationalNumberPattern>
   15273         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15274         <exampleNumber>90012345</exampleNumber>
   15275       </premiumRate>
   15276       <sharedCost>
   15277         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
   15278         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15279         <exampleNumber>80112345</exampleNumber>
   15280       </sharedCost>
   15281       <personalNumber>
   15282         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
   15283         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15284         <exampleNumber>70123456</exampleNumber>
   15285       </personalNumber>
   15286       <voip>
   15287         <nationalNumberPattern>20\d{2,8}</nationalNumberPattern>
   15288         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   15289         <exampleNumber>2012345</exampleNumber>
   15290       </voip>
   15291       <shortCode>
   15292         <nationalNumberPattern>12\d{3}</nationalNumberPattern>
   15293         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
   15294         <exampleNumber>12123</exampleNumber>
   15295       </shortCode>
   15296       <emergency>
   15297         <nationalNumberPattern>11[23]</nationalNumberPattern>
   15298         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   15299         <exampleNumber>112</exampleNumber>
   15300       </emergency>
   15301     </territory>
   15302 
   15303     <!-- Latvia -->
   15304     <!-- http://www.itu.int/oth/T0202000076/en -->
   15305     <!-- http://en.wikipedia.org/wiki/+371 -->
   15306     <territory id="LV" countryCode="371" internationalPrefix="00">
   15307       <availableFormats>
   15308         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
   15309           <format>$1 $2 $3</format>
   15310         </numberFormat>
   15311       </availableFormats>
   15312       <generalDesc>
   15313         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
   15314         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15315       </generalDesc>
   15316       <fixedLine>
   15317         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
   15318         <exampleNumber>63123456</exampleNumber>
   15319       </fixedLine>
   15320       <mobile>
   15321         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
   15322         <exampleNumber>21234567</exampleNumber>
   15323       </mobile>
   15324       <tollFree>
   15325         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   15326         <exampleNumber>80123456</exampleNumber>
   15327       </tollFree>
   15328       <premiumRate>
   15329         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
   15330         <exampleNumber>90123456</exampleNumber>
   15331       </premiumRate>
   15332       <sharedCost>
   15333         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
   15334         <exampleNumber>81123456</exampleNumber>
   15335       </sharedCost>
   15336       <emergency>
   15337         <nationalNumberPattern>
   15338           0[123]|
   15339           112
   15340         </nationalNumberPattern>
   15341         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   15342         <exampleNumber>112</exampleNumber>
   15343       </emergency>
   15344     </territory>
   15345 
   15346     <!-- Libya (Soc. Peoples Libyan Arab Jamahiriya) -->
   15347     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
   15348          and itu.int. The new area codes are on the Arabic website of the main telecommunication
   15349          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
   15350          using 096 (they are allowing customers to register numbers currently), so their code has
   15351          also been added. -->
   15352     <!-- http://hlc.ly/price.php -->
   15353     <territory id="LY" countryCode="218" internationalPrefix="00"
   15354                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   15355       <availableFormats>
   15356         <numberFormat pattern="([25679]\d)(\d{7})">
   15357           <format>$1-$2</format>
   15358         </numberFormat>
   15359       </availableFormats>
   15360       <generalDesc>
   15361         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
   15362         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   15363       </generalDesc>
   15364       <fixedLine>
   15365         <nationalNumberPattern>
   15366           (?:
   15367             2[1345]|
   15368             5[1347]|
   15369             6[123479]|
   15370             71
   15371           )\d{7}
   15372         </nationalNumberPattern>
   15373         <exampleNumber>212345678</exampleNumber>
   15374       </fixedLine>
   15375       <mobile>
   15376         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
   15377              where SMS messages have been apparently successfully received. -->
   15378         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
   15379         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   15380         <exampleNumber>912345678</exampleNumber>
   15381       </mobile>
   15382       <emergency>
   15383         <!-- This information may or may not apply to the new government. -->
   15384         <!-- Most of the gov.ly domain is down (checked on 2011-11-07). -->
   15385         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_951.html -->
   15386         <!-- http://www.lookoutlibya.com/Look_Out_Libya_%7C_Health_and_Safety_03.html -->
   15387         <nationalNumberPattern>19[013]</nationalNumberPattern>
   15388         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   15389         <exampleNumber>193</exampleNumber>
   15390       </emergency>
   15391     </territory>
   15392 
   15393     <!-- Morocco -->
   15394     <!-- Shares formatting and some metadata with Western Sahara. -->
   15395     <!-- http://www.itu.int/oth/T0202000090/en -->
   15396     <!-- http://en.wikipedia.org/wiki/+212 -->
   15397     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
   15398                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true">
   15399       <availableFormats>
   15400         <numberFormat pattern="([56]\d{2})(\d{6})">
   15401           <leadingDigits>
   15402             5(?:
   15403               2[015-7]|
   15404               3[0-4]
   15405             )|
   15406             6
   15407           </leadingDigits>
   15408           <format>$1-$2</format>
   15409         </numberFormat>
   15410         <numberFormat pattern="([58]\d{3})(\d{5})">
   15411           <leadingDigits>
   15412             5(?:
   15413               2[2-489]|
   15414               3[5-9]
   15415             )|
   15416             892
   15417           </leadingDigits>
   15418           <leadingDigits>
   15419             5(?:
   15420               2(?:
   15421                 [2-48]|
   15422                 90
   15423               )|
   15424               3(?:
   15425                 [5-79]|
   15426                 80
   15427               )
   15428             )|
   15429             892
   15430           </leadingDigits>
   15431           <format>$1-$2</format>
   15432         </numberFormat>
   15433         <numberFormat pattern="(5\d{4})(\d{4})">
   15434           <leadingDigits>
   15435             5(?:
   15436               29|
   15437               38
   15438             )
   15439           </leadingDigits>
   15440           <leadingDigits>
   15441             5(?:
   15442               29|
   15443               38
   15444             )[89]
   15445           </leadingDigits>
   15446           <format>$1-$2</format>
   15447         </numberFormat>
   15448         <numberFormat pattern="(8[09])(\d{7})">
   15449           <leadingDigits>
   15450             8(?:
   15451               0|
   15452               9[013-9]
   15453             )
   15454           </leadingDigits>
   15455           <format>$1-$2</format>
   15456         </numberFormat>
   15457       </availableFormats>
   15458       <generalDesc>
   15459         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
   15460         <!-- Closed numbering plan. -->
   15461         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   15462       </generalDesc>
   15463       <fixedLine>
   15464         <nationalNumberPattern>
   15465           5(?:
   15466             2(?:
   15467               (?:
   15468                 [015-7]\d|
   15469                 2[2-9]|
   15470                 3[2-57]|
   15471                 4[2-8]|
   15472                 8[235-7]
   15473               )\d|
   15474               9(?:
   15475                 0\d|
   15476                 [89]0
   15477               )
   15478             )|
   15479             3(?:
   15480               (?:
   15481                 [0-4]\d|
   15482                 [57][2-9]|
   15483                 6[235-8]|
   15484                 9[3-9]
   15485               )\d|
   15486               8(?:
   15487                 0\d|
   15488                 [89]0
   15489               )
   15490             )
   15491           )\d{4}
   15492         </nationalNumberPattern>
   15493         <exampleNumber>520123456</exampleNumber>
   15494       </fixedLine>
   15495       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
   15496       <mobile>
   15497         <!-- Prefixes 60[1-578], 62[0147-9], 63[04-8] and 68[01] are from numbers found online,
   15498              bug-reports, and information provided directly by the carriers. -->
   15499         <nationalNumberPattern>
   15500           6(?:
   15501             0[0-8]|
   15502             [14-7]\d|
   15503             2[0-46-9]|
   15504             3[03-8]|
   15505             8[01]|
   15506             99
   15507           )\d{6}
   15508         </nationalNumberPattern>
   15509         <exampleNumber>650123456</exampleNumber>
   15510       </mobile>
   15511       <tollFree>
   15512         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   15513         <exampleNumber>801234567</exampleNumber>
   15514       </tollFree>
   15515       <premiumRate>
   15516         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
   15517         <exampleNumber>891234567</exampleNumber>
   15518       </premiumRate>
   15519       <emergency>
   15520         <nationalNumberPattern>
   15521           1(?:
   15522             [59]|
   15523             77
   15524           )
   15525         </nationalNumberPattern>
   15526         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   15527         <exampleNumber>15</exampleNumber>
   15528       </emergency>
   15529     </territory>
   15530 
   15531     <!-- Monaco -->
   15532     <!-- http://www.itu.int/oth/T020200008D/en -->
   15533     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
   15534          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
   15535          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
   15536     <territory id="MC" countryCode="377" internationalPrefix="00"
   15537                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   15538       <availableFormats>
   15539         <!-- Following formatting found online rather than in the ITU document example. -->
   15540         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
   15541           <leadingDigits>[89]</leadingDigits>
   15542           <format>$1 $2 $3 $4</format>
   15543         </numberFormat>
   15544         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   15545           <leadingDigits>4</leadingDigits>
   15546           <format>$1 $2 $3</format>
   15547         </numberFormat>
   15548         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
   15549           <leadingDigits>6</leadingDigits>
   15550           <format>$1 $2 $3 $4 $5</format>
   15551         </numberFormat>
   15552       </availableFormats>
   15553       <generalDesc>
   15554         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
   15555         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   15556       </generalDesc>
   15557       <noInternationalDialling>
   15558         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
   15559         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15560       </noInternationalDialling>
   15561       <fixedLine>
   15562         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
   15563         <nationalNumberPattern>9[2-47-9]\d{6}</nationalNumberPattern>
   15564         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15565         <exampleNumber>99123456</exampleNumber>
   15566       </fixedLine>
   15567       <mobile>
   15568         <!-- 4X mobile numbers are actually used by Kosovo. -->
   15569         <nationalNumberPattern>
   15570           6\d{8}|
   15571           4\d{7}
   15572         </nationalNumberPattern>
   15573         <exampleNumber>612345678</exampleNumber>
   15574       </mobile>
   15575       <tollFree>
   15576         <nationalNumberPattern>
   15577           (?:
   15578             8\d|
   15579             90
   15580           )\d{6}
   15581         </nationalNumberPattern>
   15582         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15583         <exampleNumber>90123456</exampleNumber>
   15584       </tollFree>
   15585       <emergency>
   15586         <nationalNumberPattern>
   15587           1(?:
   15588             12|
   15589             [578]
   15590           )
   15591         </nationalNumberPattern>
   15592         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   15593         <exampleNumber>112</exampleNumber>
   15594       </emergency>
   15595     </territory>
   15596 
   15597     <!-- Moldova, Rep. of -->
   15598     <!-- http://www.itu.int/oth/T020200008C/en -->
   15599     <!-- http://en.anrceti.md -->
   15600     <territory id="MD" countryCode="373" internationalPrefix="00"
   15601                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG" >
   15602       <availableFormats>
   15603         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   15604           <leadingDigits>
   15605             22|
   15606             3
   15607           </leadingDigits>
   15608           <format>$1 $2 $3</format>
   15609         </numberFormat>
   15610         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
   15611           <leadingDigits>
   15612             2[13-79]|
   15613             [5-7]
   15614           </leadingDigits>
   15615           <format>$1 $2 $3</format>
   15616         </numberFormat>
   15617         <numberFormat pattern="([89]\d{2})(\d{5})">
   15618           <leadingDigits>[89]</leadingDigits>
   15619           <format>$1 $2</format>
   15620         </numberFormat>
   15621       </availableFormats>
   15622       <generalDesc>
   15623         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
   15624         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15625       </generalDesc>
   15626       <fixedLine>
   15627         <nationalNumberPattern>
   15628           (?:
   15629             2(?:
   15630               1[0569]|
   15631               2\d|
   15632               3[015-7]|
   15633               4[1-46-9]|
   15634               5[0-24689]|
   15635               6[2-589]|
   15636               7[1-37]|
   15637               9[1347-9]
   15638             )|
   15639             5(?:
   15640               33|
   15641               5[257]
   15642             )
   15643           )\d{5}
   15644         </nationalNumberPattern>
   15645         <exampleNumber>22212345</exampleNumber>
   15646       </fixedLine>
   15647       <mobile>
   15648         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
   15649         <nationalNumberPattern>
   15650           (?:
   15651             562|
   15652             6(?:
   15653               50|
   15654               7[1-6]|
   15655               [089]\d
   15656             )|
   15657             7(?:
   15658               67|
   15659               7[47-9]|
   15660               [89]\d
   15661             )
   15662           )\d{5}
   15663         </nationalNumberPattern>
   15664         <exampleNumber>65012345</exampleNumber>
   15665       </mobile>
   15666       <tollFree>
   15667         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   15668         <exampleNumber>80012345</exampleNumber>
   15669       </tollFree>
   15670       <premiumRate>
   15671         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
   15672         <exampleNumber>90012345</exampleNumber>
   15673       </premiumRate>
   15674       <!-- Information came from en.anrceti.md/node/81 -->
   15675       <sharedCost>
   15676         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
   15677         <exampleNumber>80812345</exampleNumber>
   15678       </sharedCost>
   15679       <uan>
   15680         <!-- Includes numbers used for access to different transport directory services of general
   15681              interest, since these are charged at the same rate as fixed-line numbers. -->
   15682         <nationalNumberPattern>
   15683           8(?:
   15684             03|
   15685             14
   15686           )\d{5}
   15687         </nationalNumberPattern>
   15688         <exampleNumber>80312345</exampleNumber>
   15689       </uan>
   15690       <voip>
   15691         <!-- Used for "nomadic numbers". -->
   15692         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
   15693         <exampleNumber>30123456</exampleNumber>
   15694       </voip>
   15695       <shortCode>
   15696         <nationalNumberPattern>
   15697           1(?:
   15698             1(?:
   15699               [79]|
   15700               6(?:
   15701                 000|
   15702                 1(?:
   15703                   11|
   15704                   23
   15705                 )
   15706               )|
   15707               8\d
   15708             )|
   15709             4\d{3}|
   15710             5[0-3]\d|
   15711             6[0-389]\d|
   15712             8\d{2}|
   15713             9(?:
   15714               0[04-9]|
   15715               [1-4]\d
   15716             )
   15717           )
   15718         </nationalNumberPattern>
   15719         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   15720         <exampleNumber>116000</exampleNumber>
   15721       </shortCode>
   15722       <emergency>
   15723         <nationalNumberPattern>
   15724           112|
   15725           90[123]
   15726         </nationalNumberPattern>
   15727         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   15728         <exampleNumber>112</exampleNumber>
   15729       </emergency>
   15730     </territory>
   15731 
   15732     <!-- Montenegro -->
   15733     <!-- http://www.itu.int/oth/T02020000DA/en -->
   15734     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro -->
   15735     <!-- http://www.ekip.me/numeracija/dodijeljena.php -->
   15736     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
   15737                nationalPrefixFormattingRule="$NP$FG">
   15738       <availableFormats>
   15739          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   15740           <leadingDigits>[2-57-9]|6[3789]</leadingDigits>
   15741           <leadingDigits>
   15742             [2-57-9]|
   15743             6(?:
   15744               [389]|
   15745               7(?:
   15746                 [0-8]|
   15747                 9[3-9]
   15748               )
   15749             )
   15750           </leadingDigits>
   15751           <format>$1 $2 $3</format>
   15752         </numberFormat>
   15753         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
   15754           <leadingDigits>679</leadingDigits>
   15755           <leadingDigits>679[0-2]</leadingDigits>
   15756           <format>$1 $2 $3 $4</format>
   15757         </numberFormat>
   15758       </availableFormats>
   15759       <generalDesc>
   15760         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
   15761         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   15762       </generalDesc>
   15763       <fixedLine>
   15764         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
   15765              The valid options for the third digit were from
   15766              http://www.ekip.me/numeracija/dodijeljena.php -->
   15767         <nationalNumberPattern>
   15768           (?:
   15769             20[2-8]|
   15770             3(?:
   15771               0[2-7]|
   15772               1[35-7]|
   15773               2[3567]|
   15774               3[4-7]
   15775             )|
   15776             4(?:
   15777               0[237]|
   15778               1[27]
   15779             )|
   15780             5(?:
   15781               0[47]|
   15782               1[27]|
   15783               2[378]
   15784             )
   15785           )\d{5}
   15786         </nationalNumberPattern>
   15787         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   15788         <exampleNumber>30234567</exampleNumber>
   15789       </fixedLine>
   15790       <mobile>
   15791         <!-- Mobile numbers start with 632, 67, 68 or 69. -->
   15792         <nationalNumberPattern>
   15793           6(?:
   15794             32\d|
   15795             [89]\d{2}|
   15796             7(?:
   15797               [0-8]\d|
   15798               9(?:
   15799                 [3-9]|
   15800                 [0-2]\d
   15801               )
   15802             )
   15803           )\d{4}
   15804         </nationalNumberPattern>
   15805         <!-- According to ITU it is possible for the numbers to be between length 4-12
   15806              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
   15807              digits long, based on the Montenegro document. -->
   15808         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   15809         <exampleNumber>67622901</exampleNumber>
   15810       </mobile>
   15811       <tollFree>
   15812         <!-- All toll free numbers have prefix 80 followed by 02 or 08. -->
   15813         <nationalNumberPattern>800[28]\d{4}</nationalNumberPattern>
   15814         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15815         <exampleNumber>80080002</exampleNumber>
   15816       </tollFree>
   15817       <premiumRate>
   15818         <!-- Numbers with prefix 88, 94 or 95 are services with additional charges. -->
   15819         <nationalNumberPattern>
   15820           (?:
   15821             88\d|
   15822             9(?:
   15823               4[13-8]|
   15824               5[16-8]
   15825             )
   15826           )\d{5}
   15827         </nationalNumberPattern>
   15828         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15829         <exampleNumber>94515151</exampleNumber>
   15830       </premiumRate>
   15831       <voip>
   15832         <!-- VOIP are prefixed with 78. -->
   15833         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
   15834         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15835         <exampleNumber>78108780</exampleNumber>
   15836       </voip>
   15837       <uan>
   15838         <!-- Corporate Telephony are prefixed with 77. -->
   15839         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
   15840         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15841         <exampleNumber>77273012</exampleNumber>
   15842       </uan>
   15843       <shortCode>
   15844         <nationalNumberPattern>
   15845           1(?:
   15846             16\d{3}|
   15847             2(?:
   15848               [015-9]|
   15849               \d{2}
   15850             )|
   15851             [0135]\d{2}|
   15852             4\d{2,3}|
   15853             9\d{3}
   15854           )
   15855         </nationalNumberPattern>
   15856         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   15857         <exampleNumber>1011</exampleNumber>
   15858       </shortCode>
   15859       <emergency>
   15860         <nationalNumberPattern>
   15861           1(?:
   15862             12|
   15863             2[234]
   15864           )
   15865         </nationalNumberPattern>
   15866         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   15867         <exampleNumber>112</exampleNumber>
   15868       </emergency>
   15869     </territory>
   15870 
   15871     <!-- Madagascar -->
   15872     <!-- http://www.itu.int/oth/T020200007F/en -->
   15873     <territory id="MG" countryCode="261" internationalPrefix="00"
   15874                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   15875       <availableFormats>
   15876         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
   15877           <format>$1 $2 $3 $4</format>
   15878         </numberFormat>
   15879       </availableFormats>
   15880       <generalDesc>
   15881         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
   15882         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   15883       </generalDesc>
   15884       <fixedLine>
   15885         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
   15886              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
   15887              codes beginning with 4. -->
   15888         <nationalNumberPattern>
   15889           20(?:
   15890             2\d{2}|
   15891             4[47]\d|
   15892             5[3467]\d|
   15893             6[279]\d|
   15894             7(?:
   15895               2[29]|
   15896               [35]\d
   15897             )|
   15898             8[268]\d|
   15899             9[245]\d
   15900           )\d{4}
   15901         </nationalNumberPattern>
   15902         <exampleNumber>202123456</exampleNumber>
   15903       </fixedLine>
   15904       <mobile>
   15905         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
   15906              out by reality. -->
   15907         <nationalNumberPattern>
   15908           3(?:
   15909             [02-4]\d|
   15910             90
   15911           )\d{6}
   15912         </nationalNumberPattern>
   15913         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   15914         <exampleNumber>301234567</exampleNumber>
   15915       </mobile>
   15916       <!-- Putting VSAT numbers here. -->
   15917       <voip>
   15918         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
   15919         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   15920         <exampleNumber>221234567</exampleNumber>
   15921       </voip>
   15922       <emergency>
   15923         <!-- http://www.commerce.gov.mg/index.php/infos-services -->
   15924         <nationalNumberPattern>11?[78]</nationalNumberPattern>
   15925         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   15926         <exampleNumber>117</exampleNumber>
   15927       </emergency>
   15928     </territory>
   15929 
   15930     <!-- Saint-Martin, French Antilles -->
   15931     <!-- http://www.itu.int/oth/T0202000058/en -->
   15932     <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
   15933     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
   15934       <!-- Formatting rules borrowed from Guadeloupe. -->
   15935       <generalDesc>
   15936         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   15937         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   15938       </generalDesc>
   15939       <fixedLine>
   15940         <nationalNumberPattern>
   15941           590(?:
   15942             [02][79]|
   15943             13|
   15944             5[0-268]|
   15945             [78]7
   15946           )\d{4}
   15947         </nationalNumberPattern>
   15948         <exampleNumber>590271234</exampleNumber>
   15949       </fixedLine>
   15950       <mobile>
   15951         <!-- Any ranges assigned from
   15952              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
   15953              Guadeloupe, St Martin and St Barthlemy, since we can't reliably distinguish between
   15954              them. -->
   15955         <nationalNumberPattern>
   15956           690(?:
   15957             0[0-7]|
   15958             [1-9]\d
   15959           )\d{4}
   15960         </nationalNumberPattern>
   15961         <exampleNumber>690301234</exampleNumber>
   15962       </mobile>
   15963       <!-- http://www.leshotelsdesaintmartin.com/fr/saint-martin-antilles/informations-saint-martin/infos-pratiques-sxm.html -->
   15964       <emergency>
   15965         <nationalNumberPattern>1[578]</nationalNumberPattern>
   15966         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   15967         <exampleNumber>18</exampleNumber>
   15968       </emergency>
   15969     </territory>
   15970 
   15971     <!-- Marshall Islands -->
   15972     <!-- http://www.itu.int/oth/T0202000085/en -->
   15973     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
   15974       <availableFormats>
   15975         <numberFormat pattern="(\d{3})(\d{4})">
   15976           <format>$1-$2</format>
   15977         </numberFormat>
   15978       </availableFormats>
   15979       <generalDesc>
   15980         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
   15981         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   15982       </generalDesc>
   15983       <fixedLine>
   15984         <nationalNumberPattern>
   15985           (?:
   15986             247|
   15987             528|
   15988             625
   15989           )\d{4}
   15990         </nationalNumberPattern>
   15991         <exampleNumber>2471234</exampleNumber>
   15992       </fixedLine>
   15993       <mobile>
   15994         <nationalNumberPattern>
   15995           (?:
   15996             235|
   15997             329|
   15998             45[56]|
   15999             545
   16000           )\d{4}
   16001         </nationalNumberPattern>
   16002         <exampleNumber>2351234</exampleNumber>
   16003       </mobile>
   16004       <voip>
   16005         <!-- VSAT prefixes are here. -->
   16006         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
   16007         <exampleNumber>6351234</exampleNumber>
   16008       </voip>
   16009       <!-- Only fixed-line numbers (625 4111 and 625 8666) can be found instead of short Emergency
   16010            numbers. -->
   16011     </territory>
   16012 
   16013     <!-- Macedonia, Former Yugoslav Rep. of -->
   16014     <!-- http://www.itu.int/oth/T02020000CE/en -->
   16015     <territory id="MK" countryCode="389" internationalPrefix="00"
   16016                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   16017       <availableFormats>
   16018         <!-- Formats follow wikipedia. -->
   16019         <numberFormat pattern="(2)(\d{3})(\d{4})">
   16020           <leadingDigits>2</leadingDigits>
   16021           <format>$1 $2 $3</format>
   16022         </numberFormat>
   16023         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
   16024           <leadingDigits>[347]</leadingDigits>
   16025           <format>$1 $2 $3</format>
   16026         </numberFormat>
   16027         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
   16028           <leadingDigits>[58]</leadingDigits>
   16029           <format>$1 $2 $3 $4</format>
   16030         </numberFormat>
   16031       </availableFormats>
   16032       <generalDesc>
   16033         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
   16034         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16035       </generalDesc>
   16036       <fixedLine>
   16037         <nationalNumberPattern>
   16038           (?:
   16039             2(?:
   16040               [23]\d|
   16041               5[124578]|
   16042               6[01]
   16043             )|
   16044             3(?:
   16045               1[3-6]|
   16046               [23][2-6]|
   16047               4[2356]
   16048             )|
   16049             4(?:
   16050               [23][2-6]|
   16051               4[3-6]|
   16052               5[256]|
   16053               6[25-8]|
   16054               7[24-6]|
   16055               8[4-6]
   16056             )
   16057           )\d{5}
   16058         </nationalNumberPattern>
   16059         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   16060         <exampleNumber>22212345</exampleNumber>
   16061       </fixedLine>
   16062       <mobile>
   16063         <nationalNumberPattern>
   16064           7(?:
   16065             [0-25-8]\d|
   16066             33
   16067           )\d{5}</nationalNumberPattern>
   16068         <exampleNumber>72345678</exampleNumber>
   16069       </mobile>
   16070       <tollFree>
   16071         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   16072         <exampleNumber>80012345</exampleNumber>
   16073       </tollFree>
   16074       <premiumRate>
   16075         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
   16076         <exampleNumber>50012345</exampleNumber>
   16077       </premiumRate>
   16078       <sharedCost>
   16079         <nationalNumberPattern>
   16080           8(?:
   16081             0[1-9]|
   16082             [1-9]\d
   16083           )\d{5}
   16084         </nationalNumberPattern>
   16085         <exampleNumber>80123456</exampleNumber>
   16086       </sharedCost>
   16087       <emergency>
   16088         <nationalNumberPattern>
   16089           1(?:
   16090             12|
   16091             9[234]
   16092           )
   16093         </nationalNumberPattern>
   16094         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   16095         <exampleNumber>112</exampleNumber>
   16096       </emergency>
   16097     </territory>
   16098 
   16099     <!-- Mali -->
   16100     <!-- http://www.itu.int/oth/T0202000083/en -->
   16101     <!-- http://crt-mali.org/pdf/plan_num -->
   16102     <territory id="ML" countryCode="223" internationalPrefix="00">
   16103       <availableFormats>
   16104         <numberFormat pattern="([246-8]\d)(\d{2})(\d{2})(\d{2})">
   16105           <format>$1 $2 $3 $4</format>
   16106         </numberFormat>
   16107       </availableFormats>
   16108       <generalDesc>
   16109         <nationalNumberPattern>[246-8]\d{7}</nationalNumberPattern>
   16110         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16111       </generalDesc>
   16112       <fixedLine>
   16113         <!-- 21 25 seems a common pattern based on online searches. -->
   16114         <nationalNumberPattern>
   16115           (?:
   16116             2(?:
   16117               0(?:
   16118                 2[0-589]|
   16119                 7[027-9]
   16120               )|
   16121               1(?:
   16122                 2[5-7]|
   16123                 [3-689]\d
   16124               )
   16125             )|
   16126             44[239]\d
   16127           )\d{4}
   16128         </nationalNumberPattern>
   16129         <exampleNumber>20212345</exampleNumber>
   16130       </fixedLine>
   16131       <mobile>
   16132         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
   16133              document (which is very stale). All mobile numbers starting with 7 are now Orange.
   16134              Includes 6x from Malitel IR21. -->
   16135         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
   16136         <exampleNumber>65012345</exampleNumber>
   16137       </mobile>
   16138       <tollFree>
   16139         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
   16140              plan. -->
   16141         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   16142         <exampleNumber>80012345</exampleNumber>
   16143       </tollFree>
   16144       <emergency>
   16145         <nationalNumberPattern>1[578]</nationalNumberPattern>
   16146         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   16147         <exampleNumber>17</exampleNumber>
   16148       </emergency>
   16149    </territory>
   16150 
   16151     <!-- Myanmar -->
   16152     <!-- http://www.itu.int/oth/T0202000092/en -->
   16153     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
   16154                nationalPrefixFormattingRule="$NP$FG">
   16155       <availableFormats>
   16156         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
   16157           <leadingDigits>
   16158             1|
   16159             2[45]
   16160           </leadingDigits>
   16161           <format>$1 $2 $3</format>
   16162         </numberFormat>
   16163         <numberFormat pattern="(2)(\d{4})(\d{4})">
   16164           <leadingDigits>251</leadingDigits>
   16165           <format>$1 $2 $3</format>
   16166         </numberFormat>
   16167         <numberFormat pattern="(\d)(\d{2})(\d{3})">
   16168           <leadingDigits>
   16169             16|
   16170             2
   16171           </leadingDigits>
   16172           <format>$1 $2 $3</format>
   16173         </numberFormat>
   16174         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   16175           <leadingDigits>
   16176             67|
   16177             81
   16178           </leadingDigits>
   16179           <format>$1 $2 $3</format>
   16180         </numberFormat>
   16181         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
   16182           <leadingDigits>[4-8]</leadingDigits>
   16183           <format>$1 $2 $3</format>
   16184         </numberFormat>
   16185         <numberFormat pattern="(9)(\d{3})(\d{4,5})">
   16186           <leadingDigits>
   16187             9(?:
   16188               [235-9]|
   16189               4[13789]
   16190             )
   16191           </leadingDigits>
   16192           <format>$1 $2 $3</format>
   16193         </numberFormat>
   16194         <numberFormat pattern="(9)(4\d{4})(\d{4})">
   16195           <leadingDigits>94[0245]</leadingDigits>
   16196           <format>$1 $2 $3</format>
   16197         </numberFormat>
   16198       </availableFormats>
   16199       <generalDesc>
   16200         <nationalNumberPattern>
   16201           [14578]\d{5,7}|
   16202           [26]\d{5,8}|
   16203           9(?:
   16204             [258]|
   16205             3\d|
   16206             4\d{1,2}|
   16207             [679]\d?
   16208           )\d{6}
   16209         </nationalNumberPattern>
   16210         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   16211       </generalDesc>
   16212       <fixedLine>
   16213         <nationalNumberPattern>
   16214           1(?:
   16215             2\d{1,2}|
   16216             [3-5]\d|
   16217             6\d?|
   16218             [89][0-6]\d
   16219           )\d{4}|
   16220           2(?:
   16221             [236-9]\d{4}|
   16222             4(?:
   16223               0\d{5}|
   16224               \d{4}
   16225             )|
   16226             5(?:
   16227               1\d{3,6}|
   16228               [02-9]\d{3,5}
   16229             )
   16230           )|
   16231           4(?:
   16232             2[245-8]|
   16233             [346][2-6]|
   16234             5[3-5]
   16235           )\d{4}|
   16236           5(?:
   16237             2(?:
   16238               20?|
   16239               [3-8]
   16240             )|
   16241             3[2-68]|
   16242             4(?:
   16243               21?|
   16244               [4-8]
   16245             )|
   16246             5[23]|
   16247             6[2-4]|
   16248             7[2-8]|
   16249             8[24-7]|
   16250             9[2-7]
   16251           )\d{4}|
   16252           6(?:
   16253             0[23]|
   16254             1[2356]|
   16255             [24][2-6]|
   16256             3[24-6]|
   16257             5[2-4]|
   16258             6[2-8]|
   16259             7(?:
   16260               [2367]|
   16261               4\d|
   16262               5\d?|
   16263               8[145]\d
   16264             )|
   16265             8[245]|
   16266             9[24]
   16267           )\d{4}|
   16268           7(?:
   16269             [04][24-8]|
   16270             [15][2-7]|
   16271             22|
   16272             3[2-4]
   16273           )\d{4}|
   16274           8(?:
   16275             1(?:
   16276               2\d?|
   16277               [3-689]
   16278             )|
   16279             2[2-8]|
   16280             3[24]|
   16281             4[24-7]|
   16282             5[245]|
   16283             6[23]
   16284           )\d{4}
   16285         </nationalNumberPattern>
   16286         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   16287         <exampleNumber>1234567</exampleNumber>
   16288       </fixedLine>
   16289       <mobile>
   16290         <!-- Adding 99[089] (8 digits) from numbers found online, and 961 with 9 digits. -->
   16291         <nationalNumberPattern>
   16292           17[01]\d{4}|
   16293           9(?:
   16294             2[0-4]|
   16295             3[136]\d|
   16296             4(?:
   16297               0[0-4]\d|
   16298               [1379]\d|
   16299               [24][0-589]\d|
   16300               5\d{2}|
   16301               88
   16302             )|
   16303             5[0-6]|
   16304             61?\d|
   16305             73\d|
   16306             8\d|
   16307             9(?:
   16308               1\d|
   16309               [089]
   16310             )
   16311           )\d{5}
   16312         </nationalNumberPattern>
   16313         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   16314         <exampleNumber>92123456</exampleNumber>
   16315       </mobile>
   16316       <voip>
   16317         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
   16318         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16319         <exampleNumber>13331234</exampleNumber>
   16320       </voip>
   16321       <!-- No information on other types of phone numbers for Myanmar has been found. -->
   16322       <emergency>
   16323         <nationalNumberPattern>199</nationalNumberPattern>
   16324         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   16325         <exampleNumber>199</exampleNumber>
   16326       </emergency>
   16327     </territory>
   16328 
   16329     <!-- Mongolia -->
   16330     <!-- http://www.itu.int/oth/T020200008E/en -->
   16331     <territory id="MN" countryCode="976" internationalPrefix="001"
   16332                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   16333       <availableFormats>
   16334         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
   16335           <leadingDigits>[12]1</leadingDigits>
   16336           <format>$1 $2 $3</format>
   16337         </numberFormat>
   16338         <numberFormat pattern="([12]2\d)(\d{5,6})">
   16339           <leadingDigits>[12]2[1-3]</leadingDigits>
   16340           <format>$1 $2</format>
   16341         </numberFormat>
   16342         <numberFormat pattern="([12]\d{3})(\d{5})">
   16343           <leadingDigits>
   16344             [12](?:
   16345               27|
   16346               [3-5]
   16347             )
   16348           </leadingDigits>
   16349           <leadingDigits>
   16350             [12](?:
   16351               27|
   16352               [3-5]\d
   16353             )2
   16354           </leadingDigits>
   16355           <format>$1 $2</format>
   16356         </numberFormat>
   16357         <!-- It seems from online formatting that the national prefix is not written (or perhaps
   16358              needed?) for numbers in these ranges. -->
   16359         <numberFormat pattern="(\d{4})(\d{4})"
   16360           nationalPrefixFormattingRule="$FG">
   16361           <leadingDigits>[57-9]</leadingDigits>
   16362           <format>$1 $2</format>
   16363         </numberFormat>
   16364         <numberFormat pattern="([12]\d{4})(\d{4,5})">
   16365           <leadingDigits>
   16366             [12](?:
   16367               27|
   16368               [3-5]
   16369             )
   16370           </leadingDigits>
   16371           <leadingDigits>
   16372             [12](?:
   16373               27|
   16374               [3-5]\d
   16375             )[4-9]
   16376           </leadingDigits>
   16377           <format>$1 $2</format>
   16378         </numberFormat>
   16379       </availableFormats>
   16380       <generalDesc>
   16381         <nationalNumberPattern>
   16382           [12]\d{7,9}|
   16383           [57-9]\d{7}
   16384         </nationalNumberPattern>
   16385         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   16386       </generalDesc>
   16387       <fixedLine>
   16388         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
   16389              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
   16390              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
   16391              as well, even though we are not certain whether they are in fact fixed or mobile in
   16392              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
   16393              online numbers being found. -->
   16394         <nationalNumberPattern>
   16395           [12](?:
   16396             1\d|
   16397             2(?:
   16398               [1-3]\d?|
   16399               7\d
   16400             )|
   16401             3[2-8]\d{1,2}|
   16402             4[2-68]\d{1,2}|
   16403             5[1-4689]\d{1,2}
   16404           )\d{5}|
   16405           5[0568]\d{6}
   16406         </nationalNumberPattern>
   16407         <exampleNumber>50123456</exampleNumber>
   16408       </fixedLine>
   16409       <mobile>
   16410         <nationalNumberPattern>
   16411           (?:
   16412             8[89]|
   16413             9[013-9]
   16414           )\d{6}
   16415         </nationalNumberPattern>
   16416         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16417         <exampleNumber>88123456</exampleNumber>
   16418       </mobile>
   16419       <!-- No tollFree or premiumRate information can be found. -->
   16420       <voip>
   16421         <!-- According to the document this could be stricter, but there are counter examples
   16422              online. -->
   16423         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
   16424         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16425         <exampleNumber>75123456</exampleNumber>
   16426       </voip>
   16427       <emergency>
   16428         <nationalNumberPattern>10[0-3]</nationalNumberPattern>
   16429         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   16430         <exampleNumber>102</exampleNumber>
   16431       </emergency>
   16432     </territory>
   16433 
   16434     <!-- Macao, China -->
   16435     <!-- http://www.itu.int/oth/T020200007E/en -->
   16436     <territory id="MO" countryCode="853" internationalPrefix="00">
   16437       <availableFormats>
   16438         <numberFormat pattern="([268]\d{3})(\d{4})">
   16439           <format>$1 $2</format>
   16440         </numberFormat>
   16441       </availableFormats>
   16442       <generalDesc>
   16443         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
   16444         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16445       </generalDesc>
   16446       <fixedLine>
   16447         <nationalNumberPattern>
   16448           (?:
   16449             28[2-57-9]|
   16450             8[2-57-9]\d
   16451           )\d{5}
   16452         </nationalNumberPattern>
   16453         <exampleNumber>28212345</exampleNumber>
   16454       </fixedLine>
   16455       <mobile>
   16456         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
   16457              numbers, and they are also widely present on the Internet. -->
   16458         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
   16459         <exampleNumber>66123456</exampleNumber>
   16460       </mobile>
   16461       <!-- No tollFree or premiumRate information can be found. -->
   16462       <emergency>
   16463         <nationalNumberPattern>999</nationalNumberPattern>
   16464         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   16465         <exampleNumber>999</exampleNumber>
   16466       </emergency>
   16467     </territory>
   16468 
   16469     <!--  Northern Mariana Islands -->
   16470     <!-- http://www.itu.int/oth/T02020000EE/en -->
   16471     <!-- www.cnmiphonebook.com/ -->
   16472     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
   16473                internationalPrefix="011">
   16474       <generalDesc>
   16475         <!-- NANPA country - uses US formatting rules -->
   16476         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   16477         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   16478       </generalDesc>
   16479       <fixedLine>
   16480         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
   16481              were seen in the white and yellow pages, but no numbers with these exchange codes have
   16482              proved to be diallable so we exclude them for now.. -->
   16483         <nationalNumberPattern>
   16484           670(?:
   16485             2(?:
   16486               3[3-7]|
   16487               56|
   16488               8[5-8]
   16489             )|
   16490             32[1238]|
   16491             4(?:
   16492               33|
   16493               8[348]
   16494             )|
   16495             5(?:
   16496               32|
   16497               55|
   16498               88
   16499             )|
   16500             6(?:
   16501               64|
   16502               70|
   16503               82
   16504             )|
   16505             78[589]|
   16506             8[3-9]8|
   16507             989
   16508           )\d{4}
   16509         </nationalNumberPattern>
   16510         <exampleNumber>6702345678</exampleNumber>
   16511       </fixedLine>
   16512       <mobile>
   16513         <nationalNumberPattern>
   16514           670(?:
   16515             2(?:
   16516               3[3-7]|
   16517               56|
   16518               8[5-8]
   16519             )|
   16520             32[1238]|
   16521             4(?:
   16522               33|
   16523               8[348]
   16524             )|
   16525             5(?:
   16526               32|
   16527               55|
   16528               88
   16529             )|
   16530             6(?:
   16531               64|
   16532               70|
   16533               82
   16534             )|
   16535             78[589]|
   16536             8[3-9]8|
   16537             989
   16538           )\d{4}
   16539         </nationalNumberPattern>
   16540         <exampleNumber>6702345678</exampleNumber>
   16541       </mobile>
   16542       <tollFree>
   16543         <nationalNumberPattern>
   16544           8(?:
   16545             00|
   16546             55|
   16547             66|
   16548             77|
   16549             88
   16550           )[2-9]\d{6}
   16551         </nationalNumberPattern>
   16552         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16553         <exampleNumber>8002123456</exampleNumber>
   16554       </tollFree>
   16555       <premiumRate>
   16556         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   16557         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16558         <exampleNumber>9002123456</exampleNumber>
   16559       </premiumRate>
   16560       <personalNumber>
   16561         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   16562         <nationalNumberPattern>
   16563           5(?:
   16564             00|
   16565             33|
   16566             44
   16567           )[2-9]\d{6}
   16568         </nationalNumberPattern>
   16569         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16570         <exampleNumber>5002345678</exampleNumber>
   16571       </personalNumber>
   16572       <emergency>
   16573         <!-- http://www.dps.gov.mp/ -->
   16574         <nationalNumberPattern>911</nationalNumberPattern>
   16575         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   16576         <exampleNumber>911</exampleNumber>
   16577       </emergency>
   16578     </territory>
   16579 
   16580     <!-- Martinique (French Dept. of) -->
   16581     <!-- http://www.itu.int/oth/T0202000086/en -->
   16582     <!-- http://www.arcep.fr/index.php?id=2137&bloc=0596&CMD=RESULTS_NUMEROTATION -->
   16583     <territory id="MQ" countryCode="596" internationalPrefix="00"
   16584                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   16585       <availableFormats>
   16586         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   16587           <format>$1 $2 $3 $4</format>
   16588         </numberFormat>
   16589       </availableFormats>
   16590       <generalDesc>
   16591         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   16592         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   16593       </generalDesc>
   16594       <fixedLine>
   16595         <nationalNumberPattern>
   16596           596(?:
   16597             0[2-5]|
   16598             [12]0|
   16599             3[05-9]|
   16600             4[024-8]|
   16601             [5-7]\d|
   16602             89|
   16603             9[4-8]
   16604           )\d{4}
   16605         </nationalNumberPattern>
   16606         <exampleNumber>596301234</exampleNumber>
   16607       </fixedLine>
   16608       <mobile>
   16609         <nationalNumberPattern>
   16610           696(?:
   16611             [0-479]\d|
   16612             5[01]|
   16613             8[0-689]
   16614           )\d{4}
   16615         </nationalNumberPattern>
   16616         <exampleNumber>696201234</exampleNumber>
   16617       </mobile>
   16618       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
   16619            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
   16620            too. -->
   16621       <!-- http://www.martinique.franceantilles.fr/pratique/urgences/ -->
   16622       <emergency>
   16623         <nationalNumberPattern>
   16624           1(?:
   16625             12|
   16626             [578]
   16627           )
   16628         </nationalNumberPattern>
   16629         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   16630         <exampleNumber>15</exampleNumber>
   16631       </emergency>
   16632     </territory>
   16633 
   16634     <!-- Mauritania -->
   16635     <!-- http://www.itu.int/oth/T0202000087/en -->
   16636     <!-- http://www.are.mr/com-1-4-1.html -->
   16637     <territory id="MR" countryCode="222" internationalPrefix="00" >
   16638       <availableFormats>
   16639         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
   16640           <format>$1 $2 $3 $4</format>
   16641         </numberFormat>
   16642       </availableFormats>
   16643       <generalDesc>
   16644         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
   16645         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16646       </generalDesc>
   16647       <fixedLine>
   16648         <nationalNumberPattern>
   16649           25[08]\d{5}|
   16650           35\d{6}|
   16651           45[1-7]\d{5}
   16652         </nationalNumberPattern>
   16653         <exampleNumber>35123456</exampleNumber>
   16654       </fixedLine>
   16655       <mobile>
   16656         <nationalNumberPattern>
   16657           (?:
   16658             2(?:
   16659               2\d|
   16660               70
   16661             )|
   16662             3(?:
   16663               3\d|
   16664               6[1-36]|
   16665               7[1-3]
   16666             )|
   16667             4(?:
   16668               4\d|
   16669               6[0457-9]|
   16670               7[4-9]
   16671             )
   16672           )\d{5}
   16673         </nationalNumberPattern>
   16674         <exampleNumber>22123456</exampleNumber>
   16675       </mobile>
   16676       <tollFree>
   16677         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   16678         <exampleNumber>80012345</exampleNumber>
   16679       </tollFree>
   16680       <!-- http://www.lemoci.com/Mauritanie/14-Donnees-generales.htm -->
   16681       <emergency>
   16682         <nationalNumberPattern>1[78]</nationalNumberPattern>
   16683         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   16684         <exampleNumber>17</exampleNumber>
   16685       </emergency>
   16686     </territory>
   16687 
   16688     <!-- Montserrat -->
   16689     <!-- http://www.itu.int/oth/T020200008F/en -->
   16690     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
   16691                internationalPrefix="011">
   16692       <generalDesc>
   16693         <!-- NANPA country - uses US formatting rules -->
   16694         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   16695         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   16696       </generalDesc>
   16697       <fixedLine>
   16698         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
   16699         <exampleNumber>6644912345</exampleNumber>
   16700       </fixedLine>
   16701       <mobile>
   16702         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
   16703         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16704         <exampleNumber>6644923456</exampleNumber>
   16705       </mobile>
   16706       <tollFree>
   16707         <nationalNumberPattern>
   16708           8(?:
   16709             00|
   16710             55|
   16711             66|
   16712             77|
   16713             88
   16714           )[2-9]\d{6}
   16715         </nationalNumberPattern>
   16716         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16717         <exampleNumber>8002123456</exampleNumber>
   16718       </tollFree>
   16719       <premiumRate>
   16720         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   16721         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16722         <exampleNumber>9002123456</exampleNumber>
   16723       </premiumRate>
   16724       <personalNumber>
   16725         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   16726         <nationalNumberPattern>
   16727           5(?:
   16728             00|
   16729             33|
   16730             44
   16731           )[2-9]\d{6}
   16732         </nationalNumberPattern>
   16733         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16734         <exampleNumber>5002345678</exampleNumber>
   16735       </personalNumber>
   16736       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   16737       <emergency>
   16738         <nationalNumberPattern>
   16739           9(?:
   16740             11|
   16741             99
   16742           )
   16743         </nationalNumberPattern>
   16744         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   16745         <exampleNumber>911</exampleNumber>
   16746       </emergency>
   16747     </territory>
   16748 
   16749     <!-- Malta -->
   16750     <!-- www.itu.int/oth/T0202000084/en -->
   16751     <!-- www.mca.org.mt (Numbering link in the LHS menu - has more up-to-date allocations) -->
   16752     <territory id="MT" countryCode="356" internationalPrefix="00">
   16753       <availableFormats>
   16754         <numberFormat pattern="(\d{4})(\d{4})">
   16755           <format>$1 $2</format>
   16756         </numberFormat>
   16757       </availableFormats>
   16758       <generalDesc>
   16759         <nationalNumberPattern>[2579]\d{7}</nationalNumberPattern>
   16760         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16761       </generalDesc>
   16762       <fixedLine>
   16763         <nationalNumberPattern>
   16764           2(?:
   16765             0(?:
   16766               1[0-6]|
   16767               [69]\d
   16768             )|
   16769             [1-357]\d{2}
   16770           )\d{4}
   16771         </nationalNumberPattern>
   16772         <exampleNumber>21001234</exampleNumber>
   16773       </fixedLine>
   16774       <mobile>
   16775         <nationalNumberPattern>
   16776           (?:
   16777             7(?:
   16778               210|
   16779               [79]\d{2}
   16780             )|
   16781             9(?:
   16782               2[13]\d|
   16783               696|
   16784               8(?:
   16785                 1[1-3]|
   16786                 89|
   16787                 97
   16788               )|
   16789               9\d{2}
   16790             )
   16791           )\d{4}
   16792         </nationalNumberPattern>
   16793         <exampleNumber>96961234</exampleNumber>
   16794       </mobile>
   16795       <pager>
   16796         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
   16797         <exampleNumber>71171234</exampleNumber>
   16798       </pager>
   16799       <premiumRate>
   16800         <nationalNumberPattern>
   16801           50(?:
   16802             0(?:
   16803               3[1679]|
   16804               4\d
   16805             )|
   16806             [169]\d{2}|
   16807             7[06]\d
   16808           )\d{3}
   16809         </nationalNumberPattern>
   16810         <exampleNumber>50031234</exampleNumber>
   16811       </premiumRate>
   16812       <emergency>
   16813         <nationalNumberPattern>112</nationalNumberPattern>
   16814         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   16815         <exampleNumber>112</exampleNumber>
   16816       </emergency>
   16817     </territory>
   16818 
   16819     <!-- Mauritius -->
   16820     <!-- http://www.icta.mu/telecommunications/numbering.htm -->
   16821     <territory id="MU" countryCode="230" internationalPrefix="0(?:[2-7]0|33)"
   16822                preferredInternationalPrefix="020">
   16823       <availableFormats>
   16824         <numberFormat pattern="([2-9]\d{2})(\d{4})">
   16825           <format>$1 $2</format>
   16826         </numberFormat>
   16827       </availableFormats>
   16828       <generalDesc>
   16829         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
   16830         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   16831       </generalDesc>
   16832       <fixedLine>
   16833         <!-- Wireless local loop numbers are considered to be fixed, since there is almost no
   16834              roaming capability. 26X prefixes were added after numbers containing them marked as
   16835              "landline" were found online. These are also mentioned on
   16836              http://www.wtng.info/wtng-230-mu.html. -->
   16837         <nationalNumberPattern>
   16838           (?:
   16839             2(?:
   16840               [034789]\d|
   16841               1[0-7]|
   16842               6[1-69]
   16843             )|
   16844             4(?:
   16845               [013-8]\d|
   16846               2[4-7]
   16847             )|
   16848             [56]\d{2}|
   16849             8(?:
   16850               14|
   16851               3[129]
   16852             )
   16853           )\d{4}
   16854         </nationalNumberPattern>
   16855         <exampleNumber>2012345</exampleNumber>
   16856       </fixedLine>
   16857       <mobile>
   16858         <!--Adding 92 as SMS messages have been successfully sent to this prefix. 820 has also been
   16859             added based on a report from Orange. -->
   16860         <nationalNumberPattern>
   16861           (?:
   16862             25\d|
   16863             4(?:
   16864               2[12389]|
   16865               9\d
   16866             )|
   16867             7\d{2}|
   16868             8(?:
   16869               20|
   16870               7[15-8]
   16871             )|
   16872             9[1-8]\d
   16873           )\d{4}
   16874         </nationalNumberPattern>
   16875         <exampleNumber>2512345</exampleNumber>
   16876       </mobile>
   16877       <pager>
   16878         <nationalNumberPattern>
   16879           2(?:
   16880             1[89]|
   16881             2\d
   16882           )\d{4}
   16883         </nationalNumberPattern>
   16884         <exampleNumber>2181234</exampleNumber>
   16885       </pager>
   16886       <tollFree>
   16887         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
   16888         <exampleNumber>8001234</exampleNumber>
   16889       </tollFree>
   16890       <premiumRate>
   16891         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
   16892         <exampleNumber>3012345</exampleNumber>
   16893       </premiumRate>
   16894       <voip>
   16895         <nationalNumberPattern>
   16896           3(?:
   16897             20|
   16898             9\d
   16899           )\d{4}
   16900         </nationalNumberPattern>
   16901         <exampleNumber>3201234</exampleNumber>
   16902       </voip>
   16903       <shortCode>
   16904         <nationalNumberPattern>
   16905           1(?:
   16906             1[0-36-9]|
   16907             [02-9]\d|
   16908             \d{3,4}
   16909           )|
   16910           8\d{3}
   16911         </nationalNumberPattern>
   16912         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
   16913         <exampleNumber>995</exampleNumber>
   16914       </shortCode>
   16915       <emergency>
   16916         <nationalNumberPattern>
   16917           11[45]|
   16918           99\d
   16919         </nationalNumberPattern>
   16920         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   16921         <exampleNumber>999</exampleNumber>
   16922       </emergency>
   16923     </territory>
   16924 
   16925     <!-- Maldives -->
   16926     <!-- http://www.itu.int/oth/T0202000082/en -->
   16927     <!-- www.dhiraagu.com.mv -->
   16928     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
   16929                preferredInternationalPrefix="00">
   16930       <availableFormats>
   16931         <numberFormat pattern="(\d{3})(\d{4})">
   16932           <leadingDigits>
   16933             [3467]|
   16934             9(?:
   16935               [1-9]|
   16936               0[1-9]
   16937             )
   16938           </leadingDigits>
   16939           <format>$1-$2</format>
   16940         </numberFormat>
   16941         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   16942           <leadingDigits>900</leadingDigits>
   16943           <format>$1 $2 $3</format>
   16944         </numberFormat>
   16945       </availableFormats>
   16946       <generalDesc>
   16947         <nationalNumberPattern>
   16948           [3467]\d{6}|
   16949           9(?:
   16950             00\d{7}|
   16951             \d{6}
   16952           )
   16953         </nationalNumberPattern>
   16954         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   16955       </generalDesc>
   16956       <fixedLine>
   16957         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
   16958              diallable. -->
   16959         <nationalNumberPattern>
   16960           (?:
   16961             3(?:
   16962               0[01]|
   16963               3[0-59]
   16964             )|
   16965             6(?:
   16966               [567][02468]|
   16967               8[024689]|
   16968               90
   16969             )
   16970           )\d{4}
   16971         </nationalNumberPattern>
   16972         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   16973         <exampleNumber>6701234</exampleNumber>
   16974       </fixedLine>
   16975       <mobile>
   16976         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
   16977              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
   16978              91 was added based on information from Wataniya Telecom. -->
   16979         <nationalNumberPattern>
   16980           (?:
   16981             46[46]|
   16982             7[3-9]\d|
   16983             9[16-9]\d
   16984           )\d{4}
   16985         </nationalNumberPattern>
   16986         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   16987         <exampleNumber>7712345</exampleNumber>
   16988       </mobile>
   16989       <pager>
   16990         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
   16991         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   16992         <exampleNumber>7812345</exampleNumber>
   16993       </pager>
   16994       <premiumRate>
   16995         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   16996         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16997         <exampleNumber>9001234567</exampleNumber>
   16998       </premiumRate>
   16999       <shortCode>
   17000         <nationalNumberPattern>
   17001           1(?:
   17002             [19]0|
   17003             23
   17004           )
   17005           </nationalNumberPattern>
   17006         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   17007         <exampleNumber>123</exampleNumber>
   17008       </shortCode>
   17009       <emergency>
   17010         <nationalNumberPattern>
   17011           1(?:
   17012             02|
   17013             19
   17014           )
   17015         </nationalNumberPattern>
   17016         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   17017         <exampleNumber>102</exampleNumber>
   17018       </emergency>
   17019     </territory>
   17020 
   17021     <!-- Malawi -->
   17022     <!-- http://www.itu.int/oth/T0202000080/en -->
   17023     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
   17024          consistent in having one. -->
   17025     <territory id="MW" countryCode="265" internationalPrefix="00"
   17026                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   17027       <availableFormats>
   17028         <numberFormat pattern="(\d)(\d{3})(\d{3})">
   17029           <leadingDigits>1</leadingDigits>
   17030           <format>$1 $2 $3</format>
   17031         </numberFormat>
   17032         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
   17033           <leadingDigits>2</leadingDigits>
   17034           <format>$1 $2 $3</format>
   17035         </numberFormat>
   17036         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   17037           <leadingDigits>[1789]</leadingDigits>
   17038           <format>$1 $2 $3 $4</format>
   17039         </numberFormat>
   17040       </availableFormats>
   17041       <generalDesc>
   17042         <nationalNumberPattern>
   17043           (?:
   17044             1(?:
   17045               \d{2}
   17046             )?|
   17047             [2789]\d{2}
   17048           )\d{6}
   17049         </nationalNumberPattern>
   17050         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   17051       </generalDesc>
   17052       <fixedLine>
   17053         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
   17054              been found so this is being retained for now.  It is possible however that these may be
   17055              old-format mobile numbers. -->
   17056         <nationalNumberPattern>
   17057           (?:
   17058             1[2-9]|
   17059             21\d{2}
   17060           )\d{5}
   17061         </nationalNumberPattern>
   17062         <exampleNumber>1234567</exampleNumber>
   17063       </fixedLine>
   17064       <mobile>
   17065         <nationalNumberPattern>
   17066           (?:
   17067             111|
   17068             77\d|
   17069             88\d|
   17070             99\d
   17071           )\d{6}
   17072         </nationalNumberPattern>
   17073         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   17074         <exampleNumber>991234567</exampleNumber>
   17075       </mobile>
   17076       <emergency>
   17077         <!-- http://www.malawiembassy.org/visit/contact.html -->
   17078         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_959.html -->
   17079         <nationalNumberPattern>
   17080           199|
   17081           99[789]
   17082         </nationalNumberPattern>
   17083         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   17084         <exampleNumber>997</exampleNumber>
   17085       </emergency>
   17086     </territory>
   17087 
   17088     <!-- Mexico -->
   17089     <!-- http://www.itu.int/oth/T020200008A/en -->
   17090     <!-- http://en.wikipedia.org/wiki/%2B52 -->
   17091     <!-- http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico -->
   17092     <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
   17093     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
   17094                nationalPrefix="01"
   17095                nationalPrefixForParsing="0[12]|04[45](\d{10})"
   17096                nationalPrefixTransformRule="1$1"
   17097                nationalPrefixFormattingRule="$NP $FG"
   17098                nationalPrefixOptionalWhenFormatting="true">
   17099       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
   17100            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
   17101            numbers, regardless of whether they are written in international format (leading 1) or
   17102            national format (leading 044/045), will be parsed into the same form. -->
   17103       <availableFormats>
   17104         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
   17105           <leadingDigits>
   17106             33|
   17107             55|
   17108             81
   17109           </leadingDigits>
   17110           <format>$1 $2 $3</format>
   17111         </numberFormat>
   17112         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   17113           <leadingDigits>
   17114             [2467]|
   17115             3[12457-9]|
   17116             5[89]|
   17117             8[02-9]|
   17118             9[0-35-9]
   17119           </leadingDigits>
   17120           <format>$1 $2 $3</format>
   17121         </numberFormat>
   17122         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
   17123           <leadingDigits>
   17124             1(?:
   17125               33|
   17126               55|
   17127               81
   17128             )
   17129           </leadingDigits>
   17130           <format>044 $2 $3 $4</format>
   17131           <intlFormat>$1 $2 $3 $4</intlFormat>
   17132         </numberFormat>
   17133         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
   17134           <leadingDigits>
   17135             1(?:
   17136               [2467]|
   17137               3[12457-9]|
   17138               5[89]|
   17139               8[2-9]|
   17140               9[1-35-9]
   17141             )
   17142           </leadingDigits>
   17143           <format>044 $2 $3 $4</format>
   17144           <intlFormat>$1 $2 $3 $4</intlFormat>
   17145         </numberFormat>
   17146       </availableFormats>
   17147       <generalDesc>
   17148         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
   17149         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   17150       </generalDesc>
   17151       <fixedLine>
   17152         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
   17153         <nationalNumberPattern>
   17154           (?:
   17155             33|
   17156             55|
   17157             81
   17158           )\d{8}|
   17159           (?:
   17160             2(?:
   17161               2[2-9]|
   17162               3[1-35-8]|
   17163               4[13-9]|
   17164               7[1-689]|
   17165               8[1-578]|
   17166               9[467]
   17167             )|
   17168             3(?:
   17169               1[1-79]|
   17170               [2458][1-9]|
   17171               7[1-8]|
   17172               9[1-5]
   17173             )|
   17174             4(?:
   17175               1[1-57-9]|
   17176               [24-6][1-9]|
   17177               [37][1-8]|
   17178               8[1-35-9]|
   17179               9[2-689]
   17180             )|
   17181             5(?:
   17182               88|
   17183               9[1-79]
   17184             )|
   17185             6(?:
   17186               1[2-68]|
   17187               [234][1-9]|
   17188               5[1-3689]|
   17189               6[12457-9]|
   17190               7[1-7]|
   17191               8[67]|
   17192               9[4-8]
   17193             )|
   17194             7(?:
   17195               [13467][1-9]|
   17196               2[1-8]|
   17197               5[13-9]|
   17198               8[1-69]|
   17199               9[17]
   17200             )|
   17201             8(?:
   17202               2[13-689]|
   17203               3[1-6]|
   17204               4[124-6]|
   17205               6[1246-9]|
   17206               7[1-378]|
   17207               9[12479]
   17208             )|
   17209             9(?:
   17210               1[346-9]|
   17211               2[1-4]|
   17212               3[2-46-8]|
   17213               5[1348]|
   17214               [69][1-9]|
   17215               7[12]|
   17216               8[1-8]
   17217             )
   17218           )\d{7}
   17219         </nationalNumberPattern>
   17220         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   17221         <exampleNumber>2221234567</exampleNumber>
   17222       </fixedLine>
   17223       <mobile>
   17224         <nationalNumberPattern>
   17225           1(?:
   17226             (?:
   17227               33|
   17228               55|
   17229               81
   17230             )\d{8}|
   17231             (?:
   17232               2(?:
   17233                 2[2-9]|
   17234                 3[1-35-8]|
   17235                 4[13-9]|
   17236                 7[1-689]|
   17237                 8[1-578]|
   17238                 9[467]
   17239               )|
   17240               3(?:
   17241                 1[1-79]|
   17242                 [2458][1-9]|
   17243                 7[1-8]|
   17244                 9[1-5]
   17245               )|
   17246               4(?:
   17247                 1[1-57-9]|
   17248                 [24-6][1-9]|
   17249                 [37][1-8]|
   17250                 8[1-35-9]|
   17251                 9[2-689]
   17252               )|
   17253               5(?:
   17254                 88|
   17255                 9[1-79]
   17256               )|
   17257               6(?:
   17258                 1[2-68]|
   17259                 [2-4][1-9]|
   17260                 5[1-3689]|
   17261                 6[12457-9]|
   17262                 7[1-7]|
   17263                 8[67]|
   17264                 9[4-8]
   17265               )|
   17266               7(?:
   17267                 [13467][1-9]|
   17268                 2[1-8]|
   17269                 5[13-9]|
   17270                 8[1-69]|
   17271                 9[17]
   17272               )|
   17273               8(?:
   17274                 2[13-689]|
   17275                 3[1-6]|
   17276                 4[124-6]|
   17277                 6[1246-9]|
   17278                 7[1-378]|
   17279                 9[12479]
   17280               )|
   17281               9(?:
   17282                 1[346-9]|
   17283                 2[1-4]|
   17284                 3[2-46-8]|
   17285                 5[1348]|
   17286                 [69][1-9]|
   17287                 7[12]|
   17288                 8[1-8]
   17289               )
   17290             )\d{7}
   17291           )
   17292         </nationalNumberPattern>
   17293         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   17294         <exampleNumber>12221234567</exampleNumber>
   17295       </mobile>
   17296       <tollFree>
   17297         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   17298         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   17299         <exampleNumber>8001234567</exampleNumber>
   17300       </tollFree>
   17301       <premiumRate>
   17302         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   17303         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   17304         <exampleNumber>9001234567</exampleNumber>
   17305       </premiumRate>
   17306       <emergency>
   17307         <nationalNumberPattern>
   17308           06[568]|
   17309           911
   17310         </nationalNumberPattern>
   17311         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   17312         <exampleNumber>066</exampleNumber>
   17313       </emergency>
   17314     </territory>
   17315 
   17316     <!-- Malaysia -->
   17317     <!-- http://en.wikipedia.org/wiki/%2B60 -->
   17318     <!-- http://www.skmm.gov.my -->
   17319     <territory id="MY" countryCode="60" internationalPrefix="00"
   17320                nationalPrefix="0">
   17321       <availableFormats>
   17322         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   17323           pattern="([4-79])(\d{3})(\d{4})">
   17324           <leadingDigits>[4-79]</leadingDigits>
   17325           <format>$1-$2 $3</format>
   17326         </numberFormat>
   17327         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   17328           pattern="(3)(\d{4})(\d{4})">
   17329           <leadingDigits>3</leadingDigits>
   17330           <format>$1-$2 $3</format>
   17331         </numberFormat>
   17332         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   17333           pattern="([18]\d)(\d{3})(\d{3,4})">
   17334           <leadingDigits>
   17335             1[02-46-9][1-9]|
   17336             8
   17337           </leadingDigits>
   17338           <format>$1-$2 $3</format>
   17339         </numberFormat>
   17340         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
   17341           <leadingDigits>1[36-8]0</leadingDigits>
   17342           <format>$1-$2-$3-$4</format>
   17343         </numberFormat>
   17344         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   17345           pattern="(11)(\d{4})(\d{4})">
   17346           <leadingDigits>11</leadingDigits>
   17347           <format>$1-$2 $3</format>
   17348         </numberFormat>
   17349         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   17350           pattern="(15[49])(\d{3})(\d{4})">
   17351           <leadingDigits>15</leadingDigits>
   17352           <format>$1-$2 $3</format>
   17353         </numberFormat>
   17354       </availableFormats>
   17355       <generalDesc>
   17356         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
   17357         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   17358       </generalDesc>
   17359       <fixedLine>
   17360         <nationalNumberPattern>
   17361           (?:
   17362             3[2-9]\d|
   17363             [4-9][2-9]
   17364           )\d{6}
   17365         </nationalNumberPattern>
   17366         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   17367         <exampleNumber>323456789</exampleNumber>
   17368       </fixedLine>
   17369       <mobile>
   17370         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
   17371              is possible to send SMSs (and receive them) from numbers in this block, so we are
   17372              listing them as mobile. -->
   17373         <nationalNumberPattern>
   17374           1(?:
   17375             1[1-3]\d{2}|
   17376             [02-4679][2-9]\d|
   17377             59\d{2}|
   17378             8(?:
   17379               1[23]|
   17380               [2-9]\d
   17381             )
   17382           )\d{5}
   17383         </nationalNumberPattern>
   17384         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   17385         <exampleNumber>123456789</exampleNumber>
   17386       </mobile>
   17387       <tollFree>
   17388         <nationalNumberPattern>1[38]00\d{6}</nationalNumberPattern>
   17389         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   17390         <exampleNumber>1300123456</exampleNumber>
   17391       </tollFree>
   17392       <premiumRate>
   17393         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
   17394         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   17395         <exampleNumber>1600123456</exampleNumber>
   17396       </premiumRate>
   17397       <personalNumber>
   17398         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
   17399         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   17400         <exampleNumber>1700123456</exampleNumber>
   17401       </personalNumber>
   17402       <voip>
   17403         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
   17404         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   17405         <exampleNumber>1541234567</exampleNumber>
   17406       </voip>
   17407       <emergency>
   17408         <nationalNumberPattern>
   17409           112|
   17410           999
   17411         </nationalNumberPattern>
   17412         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   17413         <exampleNumber>999</exampleNumber>
   17414       </emergency>
   17415     </territory>
   17416 
   17417     <!-- Mozambique -->
   17418     <!-- http://www.itu.int/oth/T0202000091/en -->
   17419     <territory id="MZ" countryCode="258" internationalPrefix="00">
   17420       <availableFormats>
   17421         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
   17422           <leadingDigits>
   17423             2|
   17424             8[246]
   17425           </leadingDigits>
   17426           <format>$1 $2 $3</format>
   17427         </numberFormat>
   17428         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
   17429           <leadingDigits>80</leadingDigits>
   17430           <format>$1 $2 $3</format>
   17431         </numberFormat>
   17432       </availableFormats>
   17433       <generalDesc>
   17434         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
   17435         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   17436       </generalDesc>
   17437       <fixedLine>
   17438         <nationalNumberPattern>
   17439           2(?:
   17440             [1346]\d|
   17441             5[0-2]|
   17442             [78][12]|
   17443             93
   17444           )\d{5}
   17445         </nationalNumberPattern>
   17446         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17447         <exampleNumber>21123456</exampleNumber>
   17448       </fixedLine>
   17449       <mobile>
   17450         <nationalNumberPattern>8[246]\d{7}</nationalNumberPattern>
   17451         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   17452         <exampleNumber>821234567</exampleNumber>
   17453       </mobile>
   17454       <tollFree>
   17455         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
   17456              examples. -->
   17457         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   17458         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   17459         <exampleNumber>800123456</exampleNumber>
   17460       </tollFree>
   17461       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
   17462            a 9 are premium rate, but no online examples can be found of any of these so they are
   17463            omitted for the time-being. -->
   17464       <shortCode>
   17465         <nationalNumberPattern>1[02-5]\d{2}</nationalNumberPattern>
   17466         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   17467         <exampleNumber>1011</exampleNumber>
   17468       </shortCode>
   17469       <emergency>
   17470         <!-- 11X is national, 19X is for Maputo. -->
   17471         <!-- http://www.lonelyplanet.com/shop_pickandmix/previews/mozambique-maputo-preview.pdf -->
   17472         <!-- http://ccmusa.online.co.mz/index.php?option=com_content&task=view&id=20&Itemid=30 -->
   17473         <nationalNumberPattern>
   17474           1(?:
   17475             1[79]|
   17476             9[78]
   17477           )
   17478         </nationalNumberPattern>
   17479         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   17480         <exampleNumber>119</exampleNumber>
   17481       </emergency>
   17482     </territory>
   17483 
   17484     <!-- Namibia -->
   17485     <!-- http://www.itu.int/oth/T0202000093/en -->
   17486     <territory id="NA" countryCode="264" internationalPrefix="00"
   17487                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   17488       <availableFormats>
   17489         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
   17490           <leadingDigits>8[1235]</leadingDigits>
   17491           <format>$1 $2 $3</format>
   17492         </numberFormat>
   17493         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
   17494           <leadingDigits>6</leadingDigits>
   17495           <format>$1 $2 $3</format>
   17496         </numberFormat>
   17497         <numberFormat pattern="(88)(\d{3})(\d{3})">
   17498           <leadingDigits>88</leadingDigits>
   17499           <format>$1 $2 $3</format>
   17500         </numberFormat>
   17501         <numberFormat pattern="(870)(\d{3})(\d{3})">
   17502           <leadingDigits>870</leadingDigits>
   17503           <format>$1 $2 $3</format>
   17504         </numberFormat>
   17505       </availableFormats>
   17506       <generalDesc>
   17507         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
   17508         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   17509       </generalDesc>
   17510       <fixedLine>
   17511         <!-- Includes VSAT service. -->
   17512         <nationalNumberPattern>
   17513           6(?:
   17514             1(?:
   17515               17|
   17516               2(?:
   17517                 [0189]\d|
   17518                 [2-6]|
   17519                 7\d?
   17520               )|
   17521               3(?:
   17522                 2\d|
   17523                 3[378]
   17524               )|
   17525               4[01]|
   17526               69|
   17527               7[014]
   17528             )|
   17529             2(?:
   17530               17|
   17531               25|
   17532               5(?:
   17533                 [0-36-8]|
   17534                 4\d?
   17535               )|
   17536               69|
   17537               70
   17538             )|
   17539             3(?:
   17540               17|
   17541               2(?:
   17542                 [0237]\d?|
   17543                 [14-689]
   17544               )|
   17545               34|
   17546               6[29]|
   17547               7[01]|
   17548               81
   17549             )|
   17550             4(?:
   17551               17|
   17552               2(?:
   17553                 [012]|
   17554                 7?
   17555               )|
   17556               4(?:
   17557                 [06]|
   17558                 1\d
   17559               )|
   17560               5(?:
   17561                 [01357]|
   17562                 [25]\d?
   17563               )|
   17564               69|
   17565               7[01]
   17566             )|
   17567             5(?:
   17568               17|
   17569               2(?:
   17570                 [0459]|
   17571                 [23678]\d?
   17572               )|
   17573               69|
   17574               7[01]
   17575             )|
   17576             6(?:
   17577               17|
   17578               2(?:
   17579                 5|
   17580                 6\d?
   17581               )|
   17582               38|
   17583               42|
   17584               69|
   17585               7[01]
   17586             )|
   17587             7(?:
   17588               17|
   17589               2(?:
   17590                 [569]|
   17591                 [234]\d?
   17592               )|
   17593               3(?:
   17594                 0\d?|
   17595                 [13]
   17596               )|
   17597               69|
   17598               7[01]
   17599             )
   17600           )\d{4}
   17601         </nationalNumberPattern>
   17602         <exampleNumber>612012345</exampleNumber>
   17603       </fixedLine>
   17604       <mobile>
   17605         <!-- Includes the Switch CDMA Service. -->
   17606         <nationalNumberPattern>
   17607           (?:
   17608             60|
   17609             8[125]
   17610           )\d{7}
   17611         </nationalNumberPattern>
   17612         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   17613         <exampleNumber>811234567</exampleNumber>
   17614       </mobile>
   17615       <premiumRate>
   17616         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
   17617         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   17618         <exampleNumber>870123456</exampleNumber>
   17619       </premiumRate>
   17620       <voip>
   17621         <!-- Including virtual telephone and VOIP services. -->
   17622         <nationalNumberPattern>
   17623           8(
   17624             3\d{2}|
   17625             86
   17626           )\d{5}
   17627         </nationalNumberPattern>
   17628         <exampleNumber>88612345</exampleNumber>
   17629       </voip>
   17630       <shortCode>
   17631         <nationalNumberPattern>
   17632           1\d{3}|
   17633           9(?:
   17634             3111|
   17635             \d{2}
   17636           )
   17637         </nationalNumberPattern>
   17638         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
   17639         <exampleNumber>93111</exampleNumber>
   17640       </shortCode>
   17641       <emergency>
   17642         <!-- ITU doc reserves 9XX for emergency numbers. No examples found. -->
   17643         <!-- http://www.namibia-1on1.com/information/a-emergencynos.html -->
   17644         <nationalNumberPattern>10111</nationalNumberPattern>
   17645         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   17646         <exampleNumber>10111</exampleNumber>
   17647       </emergency>
   17648     </territory>
   17649 
   17650     <!-- New Caledonia (Territoire franais d'outre-mer) -->
   17651     <!-- http://www.itu.int/oth/T0202000098/en -->
   17652     <territory id="NC" countryCode="687" internationalPrefix="00">
   17653       <availableFormats>
   17654         <!-- From www.1012.nc, the local yellow pages. -->
   17655         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   17656           <format>$1.$2.$3</format>
   17657         </numberFormat>
   17658       </availableFormats>
   17659       <generalDesc>
   17660         <nationalNumberPattern>[2-47-9]\d{5}</nationalNumberPattern>
   17661         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   17662       </generalDesc>
   17663       <fixedLine>
   17664         <!-- Including the 88 prefix for public payphones. -->
   17665         <nationalNumberPattern>
   17666           (?:
   17667             2[03-9]|
   17668             3[0-5]|
   17669             4[1-7]|
   17670             88
   17671           )\d{4}
   17672         </nationalNumberPattern>
   17673         <exampleNumber>201234</exampleNumber>
   17674       </fixedLine>
   17675       <mobile>
   17676         <nationalNumberPattern>
   17677           (?:
   17678             [79]\d|
   17679             8[0-79]
   17680           )\d{4}
   17681         </nationalNumberPattern>
   17682         <exampleNumber>751234</exampleNumber>
   17683       </mobile>
   17684       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
   17685       <premiumRate>
   17686         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
   17687         <exampleNumber>366711</exampleNumber>
   17688       </premiumRate>
   17689       <shortCode>
   17690         <!-- OPT: Office des Postes et Tlcommunications de Nouvelle Caldonie -->
   17691         <nationalNumberPattern>
   17692           10(?:
   17693             0[06]|
   17694             1[02-46]|
   17695             20|
   17696             3[0125]|
   17697             42|
   17698             5[058]|
   17699             77
   17700           )
   17701         </nationalNumberPattern>
   17702         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   17703         <exampleNumber>1000</exampleNumber>
   17704       </shortCode>
   17705       <!-- http://www.routard.com/guide/nouvelle_caledonie/2343/vie_pratique.htm -->
   17706       <emergency>
   17707         <nationalNumberPattern>1[5-8]</nationalNumberPattern>
   17708         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   17709         <exampleNumber>15</exampleNumber>
   17710       </emergency>
   17711     </territory>
   17712 
   17713     <!-- Niger -->
   17714     <!-- http://www.itu.int/oth/T020200009B/en -->
   17715     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
   17716       <availableFormats>
   17717         <numberFormat pattern="([029]\d)(\d{2})(\d{2})(\d{2})">
   17718           <leadingDigits>
   17719             [29]|
   17720             09
   17721           </leadingDigits>
   17722           <format>$1 $2 $3 $4</format>
   17723         </numberFormat>
   17724         <numberFormat pattern="(08)(\d{3})(\d{3})">
   17725           <leadingDigits>08</leadingDigits>
   17726           <format>$1 $2 $3</format>
   17727         </numberFormat>
   17728       </availableFormats>
   17729       <generalDesc>
   17730         <nationalNumberPattern>[029]\d{7}</nationalNumberPattern>
   17731         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17732       </generalDesc>
   17733       <fixedLine>
   17734         <!-- Adding 20 61 from online numbers. -->
   17735         <nationalNumberPattern>
   17736           2(?:
   17737             0(?:
   17738               20|
   17739               3[1-7]|
   17740               4[134]|
   17741               5[14]|
   17742               6[14578]|
   17743               7[1-578]
   17744             )|
   17745             1(?:
   17746               4[145]|
   17747               5[14]|
   17748               6[14-68]|
   17749               7[169]|
   17750               88
   17751             )
   17752           )\d{4}
   17753         </nationalNumberPattern>
   17754         <exampleNumber>20201234</exampleNumber>
   17755       </fixedLine>
   17756       <mobile>
   17757         <!-- Added 90, 91, 92, 97, 98 & 99 from online data. Airtel have confirmed that they use the
   17758              97 prefix, and Orange use 92. -->
   17759         <nationalNumberPattern>9[0-46-9]\d{6}</nationalNumberPattern>
   17760         <exampleNumber>93123456</exampleNumber>
   17761       </mobile>
   17762       <tollFree>
   17763         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
   17764         <exampleNumber>08123456</exampleNumber>
   17765       </tollFree>
   17766       <premiumRate>
   17767         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
   17768         <exampleNumber>09123456</exampleNumber>
   17769       </premiumRate>
   17770       <!-- No emergency numbers information can be found. -->
   17771     </territory>
   17772 
   17773     <!-- Norfolk Island -->
   17774     <!-- http://www.itu.int/oth/T020200009D/en -->
   17775     <!-- Including numbers for Australian Antarctic stations. -->
   17776     <territory id="NF" countryCode="672" internationalPrefix="00">
   17777       <availableFormats>
   17778         <numberFormat pattern="(\d{2})(\d{4})">
   17779            <leadingDigits>1</leadingDigits>
   17780           <format>$1 $2</format>
   17781         </numberFormat>
   17782         <numberFormat pattern="(\d)(\d{5})">
   17783           <leadingDigits>3</leadingDigits>
   17784           <format>$1 $2</format>
   17785         </numberFormat>
   17786       </availableFormats>
   17787       <generalDesc>
   17788         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
   17789         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
   17790       </generalDesc>
   17791       <fixedLine>
   17792         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
   17793              connect after we tried calling them. -->
   17794         <nationalNumberPattern>
   17795           (?:
   17796             1(?:
   17797               06|
   17798               17|
   17799               28|
   17800               39
   17801             )|
   17802             3[012]\d
   17803           )\d{3}
   17804         </nationalNumberPattern>
   17805         <exampleNumber>106609</exampleNumber>
   17806       </fixedLine>
   17807       <mobile>
   17808         <nationalNumberPattern>38\d{4}</nationalNumberPattern>
   17809         <exampleNumber>381234</exampleNumber>
   17810       </mobile>
   17811       <emergency>
   17812         <!-- http://www.discovernorfolkisland.com/norfolk/ -->
   17813         <nationalNumberPattern>
   17814           9(?:
   17815             11|
   17816             55|
   17817             77
   17818           )
   17819         </nationalNumberPattern>
   17820         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   17821         <exampleNumber>911</exampleNumber>
   17822       </emergency>
   17823     </territory>
   17824 
   17825     <!-- Nigeria -->
   17826     <!-- http://www.itu.int/oth/T020200009C/en -->
   17827     <territory id="NG" countryCode="234" internationalPrefix="009"
   17828                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   17829       <availableFormats>
   17830         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
   17831           <leadingDigits>[129]</leadingDigits>
   17832           <format>$1 $2 $3</format>
   17833         </numberFormat>
   17834         <numberFormat pattern="([3-8]\d)(\d{3})(\d{2,3})">
   17835           <leadingDigits>
   17836             [3-6]|
   17837             7(?:
   17838               [1-79]|
   17839               0[1-9]
   17840             )|
   17841             8[2-9]
   17842           </leadingDigits>
   17843           <format>$1 $2 $3</format>
   17844         </numberFormat>
   17845         <numberFormat pattern="([78]\d{2})(\d{3})(\d{3,4})">
   17846           <leadingDigits>
   17847             70|
   17848             8[01]
   17849           </leadingDigits>
   17850           <format>$1 $2 $3</format>
   17851         </numberFormat>
   17852         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
   17853           <leadingDigits>[78]00</leadingDigits>
   17854           <format>$1 $2 $3</format>
   17855         </numberFormat>
   17856         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
   17857           <leadingDigits>[78]00</leadingDigits>
   17858           <format>$1 $2 $3</format>
   17859         </numberFormat>
   17860         <numberFormat pattern="(78)(\d{2})(\d{3})">
   17861           <leadingDigits>78</leadingDigits>
   17862           <format>$1 $2 $3</format>
   17863         </numberFormat>
   17864       </availableFormats>
   17865       <generalDesc>
   17866         <nationalNumberPattern>
   17867           [1-69]\d{5,8}|
   17868           [78]\d{5,13}
   17869         </nationalNumberPattern>
   17870         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
   17871       </generalDesc>
   17872       <fixedLine>
   17873         <nationalNumberPattern>
   17874           [12]\d{6,7}|
   17875           9\d{7}|
   17876           (?:
   17877             3\d|
   17878             4[023568]|
   17879             5[02368]|
   17880             6[02-469]|
   17881             7[4-69]|
   17882             8[2-9]
   17883           )\d{6}|
   17884           (?:
   17885             4[47]|
   17886             5[14579]|
   17887             6[1578]|
   17888             7[0-357]
   17889           )\d{5,6}|
   17890           (?:
   17891             78|
   17892             41
   17893           )\d{5}
   17894         </nationalNumberPattern>
   17895         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   17896         <exampleNumber>12345678</exampleNumber>
   17897       </fixedLine>
   17898       <mobile>
   17899         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
   17900              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
   17901              Starcomms have apparently, according to the company, been used for mobile numbers too,
   17902              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
   17903              -->
   17904         <nationalNumberPattern>
   17905           (?:
   17906             1(?:
   17907               7[34]\d|
   17908               8(?:
   17909                 04|
   17910                 [124579]\d|
   17911                 8[0-3]
   17912               )|
   17913               95\d
   17914             )|
   17915             287[0-7]|
   17916             3(?:
   17917               18[1-8]|
   17918               88[0-7]|
   17919               9(?:
   17920                 8[5-9]|
   17921                 6[1-5]
   17922               )
   17923             )|
   17924             4(?:
   17925               28[0-2]|
   17926               6(?:
   17927                 7[1-9]|
   17928                 8[02-47]
   17929               )|
   17930               88[0-2]
   17931             )|
   17932             5(?:
   17933               2(?:
   17934                 7[7-9]|
   17935                 8\d
   17936               )|
   17937               38[1-79]|
   17938               48[0-7]|
   17939               68[4-7]
   17940             )|
   17941             6(?:
   17942               2(?:
   17943                 7[7-9]|
   17944                 8\d
   17945               )|
   17946               4(?:
   17947                 3[7-9]|
   17948                 [68][129]|
   17949                 7[04-69]|
   17950                 9[1-8]
   17951               )|
   17952               58[0-2]|
   17953               98[7-9]
   17954             )|
   17955             7(?:
   17956               38[0-7]|
   17957               69[1-8]|
   17958               78[2-4]
   17959             )|
   17960             8(?:
   17961               28[3-9]|
   17962               38[0-2]|
   17963               4(?:
   17964                 2[12]|
   17965                 3[147-9]|
   17966                 5[346]|
   17967                 7[4-9]|
   17968                 8[014-689]|
   17969                 90
   17970               )|
   17971               58[1-8]|
   17972               78[2-9]|
   17973               88[5-7]
   17974             )|
   17975             98[07]\d
   17976           )\d{4}|
   17977           (?:
   17978             70(?:
   17979               [13-9]\d|
   17980               2[1-9]
   17981             )|
   17982             8(?:
   17983               0[2-9]|
   17984               1\d
   17985             )\d
   17986           )\d{6}
   17987         </nationalNumberPattern>
   17988         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   17989         <exampleNumber>8021234567</exampleNumber>
   17990       </mobile>
   17991       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
   17992       <tollFree>
   17993         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
   17994         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
   17995         <exampleNumber>80017591759</exampleNumber>
   17996       </tollFree>
   17997       <uan>
   17998         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
   17999         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
   18000         <exampleNumber>7001234567</exampleNumber>
   18001       </uan>
   18002       <emergency>
   18003         <nationalNumberPattern>199</nationalNumberPattern>
   18004         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18005         <exampleNumber>199</exampleNumber>
   18006       </emergency>
   18007     </territory>
   18008 
   18009     <!-- Nicaragua -->
   18010     <!-- http://www.itu.int/oth/T020200009A/en -->
   18011     <territory id="NI" countryCode="505" internationalPrefix="00">
   18012       <availableFormats>
   18013         <numberFormat pattern="(\d{4})(\d{4})">
   18014           <format>$1 $2</format>
   18015         </numberFormat>
   18016       </availableFormats>
   18017       <generalDesc>
   18018         <nationalNumberPattern>[128]\d{7}</nationalNumberPattern>
   18019         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18020       </generalDesc>
   18021       <fixedLine>
   18022         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
   18023         <exampleNumber>21234567</exampleNumber>
   18024       </fixedLine>
   18025       <mobile>
   18026         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
   18027         <exampleNumber>81234567</exampleNumber>
   18028       </mobile>
   18029       <tollFree>
   18030         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
   18031         <exampleNumber>18001234</exampleNumber>
   18032       </tollFree>
   18033       <emergency>
   18034         <nationalNumberPattern>118</nationalNumberPattern>
   18035         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18036         <exampleNumber>118</exampleNumber>
   18037       </emergency>
   18038     </territory>
   18039 
   18040     <!-- Netherlands -->
   18041     <!-- http://en.wikipedia.org/wiki/%2B31 -->
   18042     <!-- http://www.opta.nl/en/numbers/search-for-numbers -->
   18043     <territory id="NL" countryCode="31" internationalPrefix="00"
   18044                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   18045       <availableFormats>
   18046         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
   18047           <leadingDigits>
   18048             1[035]|
   18049             2[0346]|
   18050             3[03568]|
   18051             4[0356]|
   18052             5[0358]|
   18053             7|
   18054             8[458]
   18055           </leadingDigits>
   18056           <format>$1 $2 $3</format>
   18057         </numberFormat>
   18058         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
   18059           <leadingDigits>
   18060             1[16-8]|
   18061             2[259]|
   18062             3[124]|
   18063             4[17-9]|
   18064             5[124679]
   18065           </leadingDigits>
   18066           <format>$1 $2 $3</format>
   18067         </numberFormat>
   18068         <numberFormat pattern="(6)(\d{8})">
   18069           <leadingDigits>6[0-57-9]</leadingDigits>
   18070           <format>$1 $2</format>
   18071         </numberFormat>
   18072         <numberFormat pattern="(66)(\d{7})">
   18073           <leadingDigits>66</leadingDigits>
   18074           <format>$1 $2</format>
   18075         </numberFormat>
   18076         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
   18077           <leadingDigits>14</leadingDigits>
   18078           <format>$1 $2</format>
   18079         </numberFormat>
   18080         <numberFormat pattern="([89]0\d)(\d{4,7})">
   18081           <leadingDigits>
   18082             80|
   18083             9
   18084           </leadingDigits>
   18085           <format>$1 $2</format>
   18086         </numberFormat>
   18087       </availableFormats>
   18088       <generalDesc>
   18089         <nationalNumberPattern>
   18090           1\d{4,8}|
   18091           [2-7]\d{8}|
   18092           [89]\d{6,9}
   18093         </nationalNumberPattern>
   18094         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   18095       </generalDesc>
   18096       <noInternationalDialling>
   18097         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
   18098         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
   18099       </noInternationalDialling>
   18100       <fixedLine>
   18101         <nationalNumberPattern>
   18102           (?:
   18103             1[0135-8]|
   18104             2[02-69]|
   18105             3[0-68]|
   18106             4[0135-9]|
   18107             [57]\d|
   18108             8[478]
   18109           )\d{7}
   18110         </nationalNumberPattern>
   18111         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18112         <exampleNumber>101234567</exampleNumber>
   18113       </fixedLine>
   18114       <mobile>
   18115         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
   18116         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18117         <exampleNumber>612345678</exampleNumber>
   18118       </mobile>
   18119       <pager>
   18120         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
   18121         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18122         <exampleNumber>662345678</exampleNumber>
   18123       </pager>
   18124       <tollFree>
   18125         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
   18126         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   18127         <exampleNumber>8001234</exampleNumber>
   18128       </tollFree>
   18129       <premiumRate>
   18130         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
   18131         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   18132         <exampleNumber>9001234</exampleNumber>
   18133       </premiumRate>
   18134       <voip>
   18135         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
   18136         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18137         <exampleNumber>851234567</exampleNumber>
   18138       </voip>
   18139       <uan>
   18140         <!-- These numbers are used for local government. They are formed by the appending the local
   18141              dialling code (including the national prefix 0) after the leading digits "14". -->
   18142         <nationalNumberPattern>
   18143           140(?:
   18144             1(?:
   18145               [035]|
   18146               [16-8]\d
   18147             )|
   18148             2(?:
   18149               [0346]|
   18150               [259]\d
   18151             )|
   18152             3(?:
   18153               [03568]|
   18154               [124]\d
   18155             )|
   18156             4(?:
   18157               [0356]|
   18158               [17-9]\d
   18159             )|
   18160             5(?:
   18161               [0358]|
   18162               [124679]\d
   18163             )|
   18164             7\d|
   18165             8[458]
   18166           )
   18167         </nationalNumberPattern>
   18168         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
   18169         <exampleNumber>14020</exampleNumber>
   18170       </uan>
   18171       <shortCode>
   18172         <nationalNumberPattern>18\d{2}</nationalNumberPattern>
   18173         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   18174         <exampleNumber>1833</exampleNumber>
   18175       </shortCode>
   18176       <emergency>
   18177         <nationalNumberPattern>
   18178           112|
   18179           911
   18180         </nationalNumberPattern>
   18181         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18182         <exampleNumber>112</exampleNumber>
   18183       </emergency>
   18184     </territory>
   18185 
   18186     <!-- Norway -->
   18187     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
   18188     <!-- http://www.npt.no/pt_internet/numsys/E.164.pdf -->
   18189     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
   18190                mainCountryForCode="true">
   18191       <availableFormats>
   18192         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
   18193           <leadingDigits>[489]</leadingDigits>
   18194           <format>$1 $2 $3</format>
   18195         </numberFormat>
   18196         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
   18197           <leadingDigits>[235-7]</leadingDigits>
   18198           <format>$1 $2 $3 $4</format>
   18199         </numberFormat>
   18200       </availableFormats>
   18201       <generalDesc>
   18202         <nationalNumberPattern>
   18203           0\d{4}|
   18204           [2-9]\d{7}
   18205         </nationalNumberPattern>
   18206         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
   18207       </generalDesc>
   18208       <fixedLine>
   18209         <!-- Excludes Svalbard fixed-line numbers. -->
   18210         <nationalNumberPattern>
   18211           (?:
   18212             2[1-4]|
   18213             3[1-3578]|
   18214             5[1-35-7]|
   18215             6[1-4679]|
   18216             7[0-8]
   18217           )\d{6}
   18218         </nationalNumberPattern>
   18219         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18220         <exampleNumber>21234567</exampleNumber>
   18221       </fixedLine>
   18222       <mobile>
   18223         <nationalNumberPattern>
   18224           (?:
   18225             4[015-8]|
   18226             5[89]|
   18227             9\d
   18228           )\d{6}
   18229         </nationalNumberPattern>
   18230         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18231         <exampleNumber>41234567</exampleNumber>
   18232       </mobile>
   18233       <tollFree>
   18234         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
   18235         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18236         <exampleNumber>80012345</exampleNumber>
   18237       </tollFree>
   18238       <premiumRate>
   18239         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
   18240         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18241         <exampleNumber>82012345</exampleNumber>
   18242       </premiumRate>
   18243       <sharedCost>
   18244         <nationalNumberPattern>
   18245           810(?:
   18246             0[0-6]|
   18247             [2-8]\d
   18248           )\d{3}
   18249         </nationalNumberPattern>
   18250         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18251         <exampleNumber>81021234</exampleNumber>
   18252       </sharedCost>
   18253       <personalNumber>
   18254         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
   18255         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18256         <exampleNumber>88012345</exampleNumber>
   18257       </personalNumber>
   18258       <voip>
   18259         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
   18260         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18261         <exampleNumber>85012345</exampleNumber>
   18262       </voip>
   18263       <uan>
   18264         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
   18265         <nationalNumberPattern>
   18266           0\d{4}|
   18267           81(?:
   18268             0(?:
   18269               0[7-9]|
   18270               1\d
   18271             )|
   18272             5\d{2}
   18273           )\d{3}
   18274         </nationalNumberPattern>
   18275         <exampleNumber>01234</exampleNumber>
   18276       </uan>
   18277       <voicemail>
   18278         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
   18279         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18280         <exampleNumber>81212345</exampleNumber>
   18281       </voicemail>
   18282       <emergency>
   18283         <nationalNumberPattern>11[023]</nationalNumberPattern>
   18284         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18285         <exampleNumber>112</exampleNumber>
   18286       </emergency>
   18287     </territory>
   18288 
   18289     <!-- Nepal -->
   18290     <!-- http://www.itu.int/oth/T0202000095/en -->
   18291     <!-- http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php -->
   18292     <territory id="NP" countryCode="977" internationalPrefix="00"
   18293                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   18294       <availableFormats>
   18295         <!-- Formatting patterns taken from pages like www.nepalgov.gov.np -->
   18296         <numberFormat pattern="(1)(\d{7})">
   18297           <leadingDigits>1[2-6]</leadingDigits>
   18298           <format>$1-$2</format>
   18299         </numberFormat>
   18300         <numberFormat pattern="(\d{2})(\d{6})">
   18301           <leadingDigits>
   18302             1[01]|
   18303             [2-8]|
   18304             9(?:
   18305               [1-69]|
   18306               7[15-9]
   18307             )
   18308           </leadingDigits>
   18309           <format>$1-$2</format>
   18310         </numberFormat>
   18311         <numberFormat pattern="(9\d{2})(\d{7})">
   18312           <leadingDigits>
   18313             9(?:
   18314               7[45]|
   18315               8
   18316             )
   18317             </leadingDigits>
   18318           <format>$1-$2</format>
   18319         </numberFormat>
   18320       </availableFormats>
   18321       <generalDesc>
   18322         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
   18323              numbers that have the country code prefixed. -->
   18324         <nationalNumberPattern>
   18325           [1-8]\d{7}|
   18326           9(?:
   18327             [1-69]\d{6}|
   18328             7[2-6]\d{5,7}|
   18329             8\d{8}
   18330           )
   18331         </nationalNumberPattern>
   18332         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   18333       </generalDesc>
   18334       <fixedLine>
   18335         <!-- Added (1) 2XXXXXX and (88) from numbers found online. -->
   18336         <nationalNumberPattern>
   18337           (?:
   18338             1[0124-6]|
   18339             2[13-79]|
   18340             3[135-8]|
   18341             4[146-9]|
   18342             5[135-7]|
   18343             6[13-9]|
   18344             7[15-9]|
   18345             8[1-46-9]|
   18346             9[1-79]
   18347           )\d{6}
   18348         </nationalNumberPattern>
   18349         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   18350         <exampleNumber>14567890</exampleNumber>
   18351       </fixedLine>
   18352       <!-- There is no definitive source of information for mobile numbers in Nepal. The infomation
   18353            here is collected by searching the Internet. -->
   18354       <mobile>
   18355         <nationalNumberPattern>
   18356           9(?:
   18357             7[45]|
   18358             8[0145]
   18359           )\d{7}
   18360         </nationalNumberPattern>
   18361         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   18362         <exampleNumber>9841234567</exampleNumber>
   18363       </mobile>
   18364       <!-- No information on other types of phone numbers for Nepal has been found. -->
   18365       <emergency>
   18366         <nationalNumberPattern>
   18367           1(?:
   18368             0[0-3]|
   18369             12
   18370           )
   18371         </nationalNumberPattern>
   18372         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18373         <exampleNumber>112</exampleNumber>
   18374       </emergency>
   18375     </territory>
   18376 
   18377     <!-- Nauru -->
   18378     <!-- http://www.itu.int/oth/T0202000094/en -->
   18379     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru -->
   18380     <territory id="NR" countryCode="674" internationalPrefix="00">
   18381       <availableFormats>
   18382         <numberFormat pattern="(\d{3})(\d{4})">
   18383           <format>$1 $2</format>
   18384         </numberFormat>
   18385       </availableFormats>
   18386       <generalDesc>
   18387         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
   18388         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   18389       </generalDesc>
   18390       <fixedLine>
   18391         <nationalNumberPattern>
   18392           (?:
   18393             444|
   18394             888
   18395           )\d{4}
   18396         </nationalNumberPattern>
   18397         <exampleNumber>4441234</exampleNumber>
   18398       </fixedLine>
   18399       <mobile>
   18400         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
   18401         <exampleNumber>5551234</exampleNumber>
   18402       </mobile>
   18403       <shortCode>
   18404         <nationalNumberPattern>
   18405           1(?:
   18406             23|
   18407             92
   18408           )
   18409         </nationalNumberPattern>
   18410         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18411         <exampleNumber>110</exampleNumber>
   18412       </shortCode>
   18413       <emergency>
   18414         <nationalNumberPattern>11[0-2]</nationalNumberPattern>
   18415         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18416         <exampleNumber>110</exampleNumber>
   18417       </emergency>
   18418     </territory>
   18419 
   18420     <!-- Niue -->
   18421     <!-- http://www.itu.int/oth/T02020000EC/en -->
   18422     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue -->
   18423     <territory id="NU" countryCode="683" internationalPrefix="00">
   18424       <!-- Numbers are always formatted as a block. -->
   18425       <generalDesc>
   18426         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
   18427         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   18428       </generalDesc>
   18429       <fixedLine>
   18430         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
   18431         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
   18432         <exampleNumber>4002</exampleNumber>
   18433       </fixedLine>
   18434       <mobile>
   18435         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
   18436         <exampleNumber>1234</exampleNumber>
   18437       </mobile>
   18438       <emergency>
   18439         <nationalNumberPattern>999</nationalNumberPattern>
   18440         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18441         <exampleNumber>999</exampleNumber>
   18442       </emergency>
   18443     </territory>
   18444 
   18445     <!-- New Zealand -->
   18446     <!-- http://www.itu.int/oth/T0202000099/en -->
   18447     <!-- Includes Ross Dependency, Antarctica -->
   18448     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
   18449          numbers and 050 "Nation-Wide Service". -->
   18450     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
   18451                preferredInternationalPrefix="00" nationalPrefix="0"
   18452                nationalPrefixFormattingRule="$NP$FG">
   18453       <availableFormats>
   18454         <!-- Pattern for fixed-line formats. -->
   18455         <numberFormat pattern="([34679])(\d{3})(\d{4})">
   18456           <leadingDigits>
   18457             [3467]|
   18458             9[1-9]
   18459           </leadingDigits>
   18460           <format>$1-$2 $3</format>
   18461         </numberFormat>
   18462         <!-- Area code for NZ's Scott Base, in Antarctica. -->
   18463         <numberFormat pattern="(24099)(\d{3})">
   18464           <leadingDigits>240</leadingDigits>
   18465           <leadingDigits>2409</leadingDigits>
   18466           <leadingDigits>24099</leadingDigits>
   18467           <format>$1 $2</format>
   18468         </numberFormat>
   18469         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
   18470              length. -->
   18471         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
   18472         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   18473           <leadingDigits>21</leadingDigits>
   18474           <format>$1 $2 $3</format>
   18475         </numberFormat>
   18476         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
   18477         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   18478           <leadingDigits>
   18479             2(?:
   18480               1[1-9]|
   18481               [69]|
   18482               7[0-35-9]
   18483             )|
   18484             86
   18485           </leadingDigits>
   18486           <format>$1 $2 $3</format>
   18487         </numberFormat>
   18488         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
   18489              than writing the first group as 022X based on Google web searches, and is used by
   18490              2Degrees themselves. See formatting on www.2degreesmobile.co.nz for an example of the
   18491              latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
   18492         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
   18493           <leadingDigits>2[028]</leadingDigits>
   18494           <format>$1 $2 $3</format>
   18495         </numberFormat>
   18496         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   18497           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900.  -->
   18498           <leadingDigits>
   18499             2(?:
   18500               10|
   18501               74
   18502             )|
   18503             5|
   18504             [89]0
   18505           </leadingDigits>
   18506           <format>$1 $2 $3</format>
   18507         </numberFormat>
   18508       </availableFormats>
   18509       <generalDesc>
   18510         <nationalNumberPattern>
   18511           6[235-9]\d{6}|
   18512           [2-57-9]\d{7,10}
   18513         </nationalNumberPattern>
   18514         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   18515       </generalDesc>
   18516       <fixedLine>
   18517         <!-- 07 788 was assigned to Voxbox according to
   18518              http://www.nad.org.nz/07GeographicalCodes.php -->
   18519         <nationalNumberPattern>
   18520           (?:
   18521             3[2-79]|
   18522             [49][2-689]|
   18523             6[235-9]|
   18524             7[2-5789]
   18525           )\d{6}|
   18526           24099\d{3}
   18527         </nationalNumberPattern>
   18528         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   18529         <exampleNumber>32345678</exampleNumber>
   18530       </fixedLine>
   18531       <mobile>
   18532         <!-- Includes mobile radio service numbers (e.g. TeamTalk). -->
   18533         <nationalNumberPattern>
   18534           2(?:
   18535             [028]\d{7,8}|
   18536             1(?:
   18537               0\d{5,7}|
   18538               [12]\d{5,6}|
   18539               [3-9]\d{5}
   18540             )|
   18541             [79]\d{7}
   18542           )
   18543         </nationalNumberPattern>
   18544         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   18545         <exampleNumber>211234567</exampleNumber>
   18546       </mobile>
   18547       <pager>
   18548         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
   18549         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   18550         <exampleNumber>26123456</exampleNumber>
   18551       </pager>
   18552       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
   18553            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
   18554            not covered, as telecom companies don't seem to support them yet. -->
   18555       <tollFree>
   18556         <nationalNumberPattern>
   18557           508\d{6,7}|
   18558           80\d{6,8}
   18559         </nationalNumberPattern>
   18560         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   18561         <exampleNumber>800123456</exampleNumber>
   18562       </tollFree>
   18563       <premiumRate>
   18564         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
   18565         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
   18566         <exampleNumber>900123456</exampleNumber>
   18567       </premiumRate>
   18568       <emergency>
   18569         <nationalNumberPattern>111</nationalNumberPattern>
   18570         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18571         <exampleNumber>111</exampleNumber>
   18572       </emergency>
   18573     </territory>
   18574 
   18575     <!-- Oman -->
   18576     <!-- http://www.itu.int/oth/T020200009F/en -->
   18577     <territory id="OM" countryCode="968" internationalPrefix="00" >
   18578       <availableFormats>
   18579         <numberFormat pattern="(2\d)(\d{6})">
   18580           <leadingDigits>2</leadingDigits>
   18581           <format>$1 $2</format>
   18582         </numberFormat>
   18583         <numberFormat pattern="(9\d{3})(\d{4})">
   18584           <leadingDigits>9</leadingDigits>
   18585           <format>$1 $2</format>
   18586         </numberFormat>
   18587         <numberFormat pattern="([58]00)(\d{4,6})">
   18588           <leadingDigits>[58]</leadingDigits>
   18589           <format>$1 $2</format>
   18590         </numberFormat>
   18591       </availableFormats>
   18592       <generalDesc>
   18593         <nationalNumberPattern>
   18594           (?:
   18595             2[2-6]|
   18596             5|
   18597             9[1-9]
   18598           )\d{6}|
   18599           800\d{5,6}
   18600         </nationalNumberPattern>
   18601         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   18602       </generalDesc>
   18603       <fixedLine>
   18604         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
   18605         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18606         <exampleNumber>23123456</exampleNumber>
   18607       </fixedLine>
   18608       <mobile>
   18609         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
   18610         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18611         <exampleNumber>92123456</exampleNumber>
   18612       </mobile>
   18613       <tollFree>
   18614         <!-- Link to document about toll-free numbers on www.tra.gov.om, which suggests they should
   18615              be 8007 followed by 4 digits. However, the only examples I can find, including the
   18616              customer help line for the main telephony company there (omantel), is 8007 followed by
   18617              5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to offer
   18618              international toll-free dialing numbers - +968 500 1300 for international help desk for
   18619              omantel, for example. -->
   18620         <nationalNumberPattern>
   18621           8007\d{4,5}|
   18622           500\d{4}
   18623         </nationalNumberPattern>
   18624         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   18625         <exampleNumber>80071234</exampleNumber>
   18626       </tollFree>
   18627       <!-- No premiumRate information can be found. -->
   18628       <emergency>
   18629         <nationalNumberPattern>9999</nationalNumberPattern>
   18630         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   18631         <exampleNumber>9999</exampleNumber>
   18632       </emergency>
   18633     </territory>
   18634 
   18635     <!-- Panama -->
   18636     <!-- http://www.asep.gob.pa/telecom/pnn/default.asp - last read Jan 17th 2013. -->
   18637     <!-- http://en.wikipedia.org/wiki/%2B507 - although it omits the fact that mobile phones are 8
   18638          digits long. -->
   18639     <territory id="PA" countryCode="507" internationalPrefix="00">
   18640       <availableFormats>
   18641         <numberFormat pattern="(\d{3})(\d{4})">
   18642           <leadingDigits>[1-57-9]</leadingDigits>
   18643           <format>$1-$2</format>
   18644         </numberFormat>
   18645         <numberFormat pattern="(\d{4})(\d{4})">
   18646           <leadingDigits>6</leadingDigits>
   18647           <format>$1-$2</format>
   18648         </numberFormat>
   18649       </availableFormats>
   18650       <generalDesc>
   18651         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
   18652         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   18653       </generalDesc>
   18654       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
   18655            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
   18656       <fixedLine>
   18657         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
   18658              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
   18659         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
   18660              proved to be diallable. -->
   18661         <nationalNumberPattern>
   18662           (?:
   18663             1(?:
   18664               0[02-579]|
   18665               19|
   18666               2[37]|
   18667               3[03]|
   18668               4[479]|
   18669               57|
   18670               65|
   18671               7[016-8]|
   18672               8[58]|
   18673               9[134]
   18674             )|
   18675             2(?:
   18676               [0235679]\d|
   18677               1[0-7]|
   18678               4[04-9]|
   18679               8[028]
   18680             )|
   18681             3(?:
   18682               0[0-7]|
   18683               1[14-7]|
   18684               2[0-3]|
   18685               3[03]|
   18686               4[0457]|
   18687               5[56]|
   18688               6[068]|
   18689               7[078]|
   18690               80|
   18691               9\d
   18692             )|
   18693             4(?:
   18694               3[013-59]|
   18695               4\d|
   18696               7[0-689]
   18697             )|
   18698             5(?:
   18699               [01]\d|
   18700               2[0-7]|
   18701               [56]0|
   18702               79
   18703             )|
   18704             7(?:
   18705               0[09]|
   18706               2[0-267]|
   18707               [349]0|
   18708               5[6-9]|
   18709               7[0-24-7]|
   18710               8[89]
   18711             )|
   18712             8(?:
   18713               [34]\d|
   18714               5[0-4]|
   18715               8[02]
   18716             )|
   18717             9(?:
   18718               0[78]|
   18719               1[0178]|
   18720               2[0378]|
   18721               3[379]|
   18722               40|
   18723               5[0489]|
   18724               6[06-9]|
   18725               7[046-9]|
   18726               8[36-8]|
   18727               9[1-9]
   18728             )
   18729           )\d{4}
   18730         </nationalNumberPattern>
   18731         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   18732         <exampleNumber>2001234</exampleNumber>
   18733       </fixedLine>
   18734       <mobile>
   18735         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
   18736              service "210", "Servicio de Busca Personas". -->
   18737         <nationalNumberPattern>
   18738           (?:
   18739             1[16]1|
   18740             21[89]|
   18741             8(?:
   18742               1[01]|
   18743               7[23]
   18744             )
   18745           )\d{4}|
   18746           6(?:
   18747             [04-9]\d|
   18748             1[0-5]|
   18749             2[0-7]|
   18750             3[5-9]
   18751           )\d{5}
   18752         </nationalNumberPattern>
   18753         <exampleNumber>60012345</exampleNumber>
   18754       </mobile>
   18755       <tollFree>
   18756         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
   18757         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   18758         <exampleNumber>8001234</exampleNumber>
   18759       </tollFree>
   18760       <premiumRate>
   18761         <!-- Value-added services are represented as "400" in the plan. -->
   18762         <nationalNumberPattern>
   18763           (?:
   18764             779|
   18765             8(?:
   18766               2[235]|
   18767               55|
   18768               60|
   18769               7[578]|
   18770               86|
   18771               95
   18772             )|
   18773             9(?:
   18774               0[0-2]|
   18775               81
   18776             )
   18777           )\d{4}
   18778         </nationalNumberPattern>
   18779         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   18780         <exampleNumber>8601234</exampleNumber>
   18781       </premiumRate>
   18782       <shortCode>
   18783         <nationalNumberPattern>10[2-4]</nationalNumberPattern>
   18784         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18785         <exampleNumber>102</exampleNumber>
   18786       </shortCode>
   18787       <emergency>
   18788         <nationalNumberPattern>911</nationalNumberPattern>
   18789         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18790         <exampleNumber>911</exampleNumber>
   18791       </emergency>
   18792     </territory>
   18793 
   18794     <!-- Peru -->
   18795     <!-- http://www.itu.int/oth/T02020000A6/en -->
   18796     <!-- http://en.wikipedia.org/wiki/+51 -->
   18797     <!-- http://www.assistbook.com/South%20America/Peru/widecodes -->
   18798     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
   18799                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
   18800                preferredExtnPrefix=" Anexo ">
   18801       <availableFormats>
   18802         <numberFormat pattern="(1)(\d{7})">
   18803           <leadingDigits>1</leadingDigits>
   18804           <format>$1 $2</format>
   18805         </numberFormat>
   18806         <numberFormat pattern="([4-8]\d)(\d{6})">
   18807           <leadingDigits>
   18808             [4-7]|
   18809             8[2-4]
   18810           </leadingDigits>
   18811           <format>$1 $2</format>
   18812         </numberFormat>
   18813         <numberFormat pattern="(\d{3})(\d{5})">
   18814           <leadingDigits>80</leadingDigits>
   18815           <format>$1 $2</format>
   18816         </numberFormat>
   18817         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
   18818         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
   18819                       nationalPrefixFormattingRule="$FG">
   18820           <leadingDigits>9</leadingDigits>
   18821           <format>$1 $2 $3</format>
   18822         </numberFormat>
   18823       </availableFormats>
   18824       <generalDesc>
   18825         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
   18826         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   18827       </generalDesc>
   18828       <fixedLine>
   18829         <nationalNumberPattern>
   18830           (?:
   18831             1\d|
   18832             4[1-4]|
   18833             5[1-46]|
   18834             6[1-7]|
   18835             7[2-46]|
   18836             8[2-4]
   18837           )\d{6}
   18838         </nationalNumberPattern>
   18839         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   18840         <exampleNumber>11234567</exampleNumber>
   18841       </fixedLine>
   18842       <mobile>
   18843         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
   18844         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18845         <exampleNumber>912345678</exampleNumber>
   18846       </mobile>
   18847       <tollFree>
   18848         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   18849         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18850         <exampleNumber>80012345</exampleNumber>
   18851       </tollFree>
   18852       <premiumRate>
   18853         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
   18854         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18855         <exampleNumber>80512345</exampleNumber>
   18856       </premiumRate>
   18857       <sharedCost>
   18858         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
   18859         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18860         <exampleNumber>80112345</exampleNumber>
   18861       </sharedCost>
   18862       <personalNumber>
   18863         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
   18864         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   18865         <exampleNumber>80212345</exampleNumber>
   18866       </personalNumber>
   18867       <emergency>
   18868         <nationalNumberPattern>
   18869           1(?:
   18870             05|
   18871             1[67]
   18872           )
   18873         </nationalNumberPattern>
   18874         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   18875         <exampleNumber>105</exampleNumber>
   18876       </emergency>
   18877     </territory>
   18878 
   18879     <!-- French Polynesia (Tahiti) (Territoire franais d'outre-mer) -->
   18880     <!-- http://www.itu.int/oth/T020200004D/en -->
   18881     <territory id="PF" countryCode="689" internationalPrefix="00">
   18882       <availableFormats>
   18883         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   18884           <leadingDigits>89</leadingDigits>
   18885           <format>$1 $2 $3 $4</format>
   18886         </numberFormat>
   18887         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   18888           <format>$1 $2 $3</format>
   18889         </numberFormat>
   18890       </availableFormats>
   18891       <generalDesc>
   18892         <nationalNumberPattern>
   18893           [2-79]\d{5}|
   18894           8\d{5,7}
   18895         </nationalNumberPattern>
   18896         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
   18897       </generalDesc>
   18898       <noInternationalDialling>
   18899         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
   18900         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   18901         <exampleNumber>441234</exampleNumber>
   18902       </noInternationalDialling>
   18903       <fixedLine>
   18904         <!-- Includes "voice-server" prefixes and pay-phone. The 41 range has been made more
   18905              specific to exclude Mobile MSRN. -->
   18906         <nationalNumberPattern>
   18907           (?:
   18908             4(?:
   18909               [02-9]\d|
   18910               1[02-9]
   18911             )|
   18912             [5689]\d{2}
   18913           )\d{3}
   18914         </nationalNumberPattern>
   18915         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   18916         <exampleNumber>401234</exampleNumber>
   18917       </fixedLine>
   18918       <mobile>
   18919         <nationalNumberPattern>
   18920           (?:
   18921             [27]\d{2}|
   18922             3[0-79]\d|
   18923             411|
   18924             89\d{3}
   18925           )\d{3}
   18926         </nationalNumberPattern>
   18927         <exampleNumber>212345</exampleNumber>
   18928       </mobile>
   18929       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   18930       <emergency>
   18931         <nationalNumberPattern>1[578]</nationalNumberPattern>
   18932         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   18933         <exampleNumber>15</exampleNumber>
   18934       </emergency>
   18935     </territory>
   18936 
   18937     <!-- Papua New Guinea -->
   18938     <!-- http://www.itu.int/oth/T02020000A4/en -->
   18939     <!-- http://en.wikipedia.org/wiki/%2B675 -->
   18940     <territory id="PG" countryCode="675" internationalPrefix="00">
   18941       <availableFormats>
   18942         <numberFormat pattern="(\d{3})(\d{4})">
   18943           <leadingDigits>[1-689]</leadingDigits>
   18944           <format>$1 $2</format>
   18945         </numberFormat>
   18946         <numberFormat pattern="(7\d{2})(\d{2})(\d{3})">
   18947           <leadingDigits>7</leadingDigits>
   18948           <format>$1 $2 $3</format>
   18949         </numberFormat>
   18950       </availableFormats>
   18951       <generalDesc>
   18952         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
   18953         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   18954       </generalDesc>
   18955       <fixedLine>
   18956         <!-- Fixed line patterns are from the numbering plan, with additions for 4XX since many
   18957              numbers in the yellow pages seem to be outside the 47X range prescribed by the plan.
   18958              The same applies to extra 64X numbers. -->
   18959         <nationalNumberPattern>
   18960           (?:
   18961             3\d{2}|
   18962             4[257]\d|
   18963             5[34]\d|
   18964             6(?:
   18965               29|
   18966               4[1-9]
   18967             )|
   18968             85[02-46-9]|
   18969             9[78]\d
   18970           )\d{4}
   18971         </nationalNumberPattern>
   18972         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   18973         <exampleNumber>3123456</exampleNumber>
   18974       </fixedLine>
   18975       <mobile>
   18976         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
   18977              Wikipedia and 730 from online numbers. The prefix 70X is added since open-source users
   18978              have reported it as now being in use, although no real numbers can be found as of yet.
   18979              -->
   18980         <nationalNumberPattern>
   18981           (?:
   18982             68|
   18983             7[0-36]\d
   18984           )\d{5}
   18985         </nationalNumberPattern>
   18986         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   18987         <exampleNumber>6812345</exampleNumber>
   18988       </mobile>
   18989       <tollFree>
   18990         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
   18991         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   18992         <exampleNumber>1801234</exampleNumber>
   18993       </tollFree>
   18994       <voip>
   18995         <!-- VSAT prefixes are here. -->
   18996         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
   18997         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   18998         <exampleNumber>2751234</exampleNumber>
   18999       </voip>
   19000       <emergency>
   19001         <!-- http://www.pngbd.com/emergency.php has been used, excluding fixed-line phone-numbers.
   19002              -->
   19003         <nationalNumberPattern>000</nationalNumberPattern>
   19004         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   19005         <exampleNumber>000</exampleNumber>
   19006       </emergency>
   19007     </territory>
   19008 
   19009     <!-- Philippines -->
   19010     <!-- http://en.wikipedia.org/wiki/%2B63 -->
   19011   <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
   19012     <availableFormats>
   19013       <!--Area code separated from number. Area codes found here:
   19014       http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
   19015       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   19016         pattern="(2)(\d{3})(\d{4})">
   19017         <leadingDigits>2</leadingDigits>
   19018         <format>$1 $2 $3</format>
   19019       </numberFormat>
   19020       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   19021         pattern="(\d{4})(\d{5})">
   19022         <leadingDigits>
   19023           3(?:
   19024             23|
   19025             39|
   19026             46
   19027           )|
   19028           4(?:
   19029             2[3-6]|
   19030             [35]9|
   19031             4[26]|
   19032             76
   19033           )|
   19034           5(?:
   19035             22|
   19036             44
   19037           )|
   19038           642|
   19039           8(?:
   19040             62|
   19041             8[245]
   19042           )
   19043         </leadingDigits>
   19044         <leadingDigits>
   19045           3(?:
   19046             230|
   19047             397|
   19048             461
   19049           )|
   19050           4(?:
   19051             2(?:
   19052               35|
   19053               [46]4|
   19054               51
   19055             )|
   19056             396|
   19057             4(?:
   19058               22|
   19059               63
   19060             )|
   19061             59[347]|
   19062             76[15]
   19063           )|
   19064           5(?:
   19065             221|
   19066             446
   19067           )|
   19068           642[23]|
   19069           8(?:
   19070             622|
   19071             8(?:
   19072               [24]2|
   19073               5[13]
   19074             )
   19075           )
   19076         </leadingDigits>
   19077         <format>$1 $2</format>
   19078       </numberFormat>
   19079       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   19080         pattern="(\d{5})(\d{4})">
   19081         <leadingDigits>
   19082           346|
   19083           4(?:
   19084             27|
   19085             9[35]
   19086           )|
   19087           883
   19088         </leadingDigits>
   19089         <leadingDigits>
   19090           3469|
   19091           4(?:
   19092             279|
   19093             9(?:
   19094               30|
   19095               56
   19096             )
   19097           )|
   19098           8834
   19099         </leadingDigits>
   19100         <format>$1 $2</format>
   19101       </numberFormat>
   19102       <!-- This rule is a fallback for the more specific area codes. -->
   19103       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   19104         pattern="([3-8]\d)(\d{3})(\d{4})">
   19105         <leadingDigits>[3-8]</leadingDigits>
   19106         <format>$1 $2 $3</format>
   19107       </numberFormat>
   19108       <numberFormat nationalPrefixFormattingRule="$NP$FG"
   19109         pattern="(\d{3})(\d{3})(\d{4})">
   19110         <leadingDigits>
   19111           81|
   19112           9
   19113         </leadingDigits>
   19114         <format>$1 $2 $3</format>
   19115       </numberFormat>
   19116       <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
   19117       <numberFormat pattern="(1800)(\d{3})(\d{4})">
   19118         <leadingDigits>1</leadingDigits>
   19119         <format>$1 $2 $3</format>
   19120       </numberFormat>
   19121       <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
   19122         <leadingDigits>1</leadingDigits>
   19123         <format>$1 $2 $3 $4</format>
   19124       </numberFormat>
   19125     </availableFormats>
   19126     <generalDesc>
   19127       <nationalNumberPattern>
   19128         [2-9]\d{7,9}|
   19129         1800\d{7,9}
   19130       </nationalNumberPattern>
   19131       <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
   19132     </generalDesc>
   19133     <fixedLine>
   19134       <nationalNumberPattern>
   19135         (?:
   19136           2|
   19137           3[2-68]|
   19138           4[2-9]|
   19139           5[2-6]|
   19140           6[2-58]|
   19141           7[24578]|
   19142           8[2-8]
   19143         )\d{7}
   19144       </nationalNumberPattern>
   19145       <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   19146       <exampleNumber>21234567</exampleNumber>
   19147     </fixedLine>
   19148     <mobile>
   19149       <nationalNumberPattern>
   19150         (?:
   19151           81[37]|
   19152           9(?:
   19153             0[5-9]|
   19154             1[025-9]|
   19155             2[0-35-9]|
   19156             3[02-9]|
   19157             4[236-9]|
   19158             7[3479]|
   19159             89|
   19160             9[46-9]
   19161           )
   19162         )\d{7}
   19163       </nationalNumberPattern>
   19164       <possibleNumberPattern>\d{10}</possibleNumberPattern>
   19165       <exampleNumber>9051234567</exampleNumber>
   19166     </mobile>
   19167     <!-- Information on toll-free numbers collected from searching the internet -->
   19168     <tollFree>
   19169       <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
   19170       <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
   19171       <exampleNumber>180012345678</exampleNumber>
   19172     </tollFree>
   19173     <!-- No information can be found about other types of numbers (such as premium rate) in the
   19174          Philippines. -->
   19175     <emergency>
   19176       <nationalNumberPattern>
   19177         11[27]|
   19178         911
   19179       </nationalNumberPattern>
   19180       <possibleNumberPattern>\d{3}</possibleNumberPattern>
   19181       <exampleNumber>117</exampleNumber>
   19182     </emergency>
   19183   </territory>
   19184 
   19185   <!-- Pakistan -->
   19186   <!-- http://www.itu.int/oth/T02020000A1/en -->
   19187   <!-- http://en.wikipedia.org/wiki/%2B92 -->
   19188     <territory id="PK" countryCode="92" internationalPrefix="00"
   19189                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
   19190       <availableFormats>
   19191         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
   19192              formatted nicely by the AYTF. -->
   19193         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
   19194           <leadingDigits>
   19195             (?:
   19196               2[125]|
   19197               4[0-246-9]|
   19198               5[1-35-7]|
   19199               6[1-8]|
   19200               7[14]|
   19201               8[16]|
   19202               91
   19203             )1
   19204           </leadingDigits>
   19205           <leadingDigits>
   19206             (?:
   19207               2[125]|
   19208               4[0-246-9]|
   19209               5[1-35-7]|
   19210               6[1-8]|
   19211               7[14]|
   19212               8[16]|
   19213               91
   19214             )11
   19215           </leadingDigits>
   19216           <leadingDigits>
   19217             (?:
   19218               2[125]|
   19219               4[0-246-9]|
   19220               5[1-35-7]|
   19221               6[1-8]|
   19222               7[14]|
   19223               8[16]|
   19224               91
   19225             )111
   19226           </leadingDigits>
   19227           <format>$1 $2 $3 $4</format>
   19228         </numberFormat>
   19229         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
   19230           <leadingDigits>
   19231             2[349]|
   19232             45|
   19233             54|
   19234             60|
   19235             72|
   19236             8[2-5]|
   19237             9[2-9]
   19238           </leadingDigits>
   19239           <leadingDigits>
   19240             (?:
   19241               2[349]|
   19242               45|
   19243               54|
   19244               60|
   19245               72|
   19246               8[2-5]|
   19247               9[2-9]
   19248             )\d1
   19249           </leadingDigits>
   19250           <leadingDigits>
   19251             (?:
   19252               2[349]|
   19253               45|
   19254               54|
   19255               60|
   19256               72|
   19257               8[2-5]|
   19258               9[2-9]
   19259             )\d11
   19260           </leadingDigits>
   19261           <leadingDigits>
   19262             (?:
   19263               2[349]|
   19264               45|
   19265               54|
   19266               60|
   19267               72|
   19268               8[2-5]|
   19269               9[2-9]
   19270             )\d111
   19271           </leadingDigits>
   19272           <format>$1 $2 $3 $4</format>
   19273         </numberFormat>
   19274         <numberFormat pattern="(\d{2})(\d{7,8})">
   19275           <leadingDigits>
   19276             (?:
   19277               2[125]|
   19278               4[0-246-9]|
   19279               5[1-35-7]|
   19280               6[1-8]|
   19281               7[14]|
   19282               8[16]|
   19283               91
   19284             )[2-9]
   19285           </leadingDigits>
   19286           <format>$1 $2</format>
   19287         </numberFormat>
   19288         <numberFormat pattern="(\d{3})(\d{6,7})">
   19289           <leadingDigits>
   19290             2[349]|
   19291             45|
   19292             54|
   19293             60|
   19294             72|
   19295             8[2-5]|
   19296             9[2-9]
   19297           </leadingDigits>
   19298           <leadingDigits>
   19299             (?:
   19300               2[349]|
   19301               45|
   19302               54|
   19303               60|
   19304               72|
   19305               8[2-5]|
   19306               9[2-9]
   19307             )\d[2-9]
   19308           </leadingDigits>
   19309           <format>$1 $2</format>
   19310         </numberFormat>
   19311         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
   19312           <leadingDigits>3</leadingDigits>
   19313           <format>$1 $2</format>
   19314         </numberFormat>
   19315         <numberFormat pattern="([15]\d{3})(\d{5,6})">
   19316           <leadingDigits>
   19317             58[12]|
   19318             1
   19319           </leadingDigits>
   19320           <format>$1 $2</format>
   19321         </numberFormat>
   19322         <!-- This is from online examples. -->
   19323         <numberFormat pattern="(586\d{2})(\d{5})">
   19324           <leadingDigits>586</leadingDigits>
   19325           <format>$1 $2</format>
   19326         </numberFormat>
   19327         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
   19328           <leadingDigits>[89]00</leadingDigits>
   19329           <format>$1 $2 $3</format>
   19330         </numberFormat>
   19331       </availableFormats>
   19332       <generalDesc>
   19333         <!-- This is horribly complex because the country code is 92, and several area codes start
   19334              with 92, and the number length is widely variable. -->
   19335         <nationalNumberPattern>
   19336           1\d{8}|
   19337           [2-8]\d{5,11}|
   19338           9(?:
   19339             [013-9]\d{4,9}|
   19340             2\d(?:
   19341               111\d{6}|
   19342               \d{3,7}
   19343             )
   19344           )
   19345         </nationalNumberPattern>
   19346         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   19347       </generalDesc>
   19348       <fixedLine>
   19349         <!-- The subscriber number length is not well defined for some area codes. From online
   19350              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
   19351              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
   19352              of Karachi and Lahore (both 8). -->
   19353         <nationalNumberPattern>
   19354           (?:
   19355             21|
   19356             42
   19357           )[2-9]\d{7}|
   19358           (?:
   19359             2[25]|
   19360             4[0146-9]|
   19361             5[1-35-7]|
   19362             6[1-8]|
   19363             7[14]|
   19364             8[16]|
   19365             91
   19366           )[2-9]\d{6}|
   19367           (?:
   19368             2(?:
   19369               3[2358]|
   19370               4[2-4]|
   19371               9[2-8]
   19372             )|
   19373             45[3479]|
   19374             54[2-467]|
   19375             60[468]|
   19376             72[236]|
   19377             8(?:
   19378               2[2-689]|
   19379               3[23578]|
   19380               4[3478]|
   19381               5[2356]
   19382             )|
   19383             9(?:
   19384               1|
   19385               2[2-8]|
   19386               3[27-9]|
   19387               4[2-6]|
   19388               6[3569]|
   19389               9[25-8]
   19390             )
   19391           )[2-9]\d{5,6}|
   19392           58[126]\d{7}
   19393         </nationalNumberPattern>
   19394         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   19395         <exampleNumber>2123456789</exampleNumber>
   19396       </fixedLine>
   19397       <mobile>
   19398         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
   19399              can be found online with these prefixes. -->
   19400         <nationalNumberPattern>
   19401           3(?:
   19402             0\d|
   19403             1[1-5]|
   19404             2[0-5]|
   19405             3[1-6]|
   19406             4[1-7]|
   19407             55|
   19408             64
   19409           )\d{7}
   19410         </nationalNumberPattern>
   19411         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   19412         <exampleNumber>3012345678</exampleNumber>
   19413       </mobile>
   19414       <tollFree>
   19415         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   19416         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19417         <exampleNumber>80012345</exampleNumber>
   19418       </tollFree>
   19419       <premiumRate>
   19420         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
   19421         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19422         <exampleNumber>90012345</exampleNumber>
   19423       </premiumRate>
   19424       <!-- These are referred to as UPT numbers in the plan. -->
   19425       <personalNumber>
   19426         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
   19427         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19428         <!-- The example number here is the test number from the plan. -->
   19429         <exampleNumber>122044444</exampleNumber>
   19430       </personalNumber>
   19431       <uan>
   19432         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
   19433              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
   19434              what type of number they are.  We exclude Azad Jammu, Kashmir and Northern Areas here
   19435              since no online example UANs can be found, and they have an "access code" at the start,
   19436              making it difficult to guess what a UAN in these areas would look like. -->
   19437         <nationalNumberPattern>
   19438           (?:
   19439             2(?:
   19440               [125]|
   19441               3[2358]|
   19442               4[2-4]|
   19443               9[2-8]
   19444             )|
   19445             4(?:
   19446               [0-246-9]|
   19447               5[3479]
   19448             )|
   19449             5(?:
   19450               [1-35-7]|
   19451               4[2-467]
   19452             )|
   19453             6(?:
   19454               [1-8]|
   19455               0[468]
   19456             )|
   19457             7(?:
   19458               [14]|
   19459               2[236]
   19460             )|
   19461             8(?:
   19462               [16]|
   19463               2[2-689]|
   19464               3[23578]|
   19465               4[3478]|
   19466               5[2356]
   19467             )|
   19468             9(?:
   19469               1|
   19470               22|
   19471               3[27-9]|
   19472               4[2-6]|
   19473               6[3569]|
   19474               9[2-7]
   19475             )
   19476           )111\d{6}
   19477         </nationalNumberPattern>
   19478         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
   19479         <exampleNumber>21111825888</exampleNumber>
   19480       </uan>
   19481       <emergency>
   19482         <nationalNumberPattern>
   19483           1(?:
   19484             1(?:
   19485               22?|
   19486               5
   19487             )|
   19488             [56]
   19489           )
   19490         </nationalNumberPattern>
   19491         <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
   19492         <exampleNumber>112</exampleNumber>
   19493       </emergency>
   19494     </territory>
   19495 
   19496     <!-- Poland -->
   19497     <!-- http://en.wikipedia.org/wiki/%2B48 -->
   19498     <!-- http://www.itu.int/oth/T02020000A8/en -->
   19499     <!--
   19500     http://www.uke.gov.pl/uke/index.jsp?place=Lead24&news_cat_id=277&news_id=3791&layout=9&page=text
   19501     (in Polish) -->
   19502     <territory id="PL" countryCode="48" internationalPrefix="00">
   19503       <availableFormats>
   19504         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
   19505           <leadingDigits>
   19506             [124]|
   19507             3[2-4]|
   19508             5[24-689]|
   19509             6[1-3578]|
   19510             7[14-7]|
   19511             8[1-79]|
   19512             9[145]
   19513           </leadingDigits>
   19514           <format>$1 $2 $3 $4</format>
   19515         </numberFormat>
   19516         <numberFormat pattern="(\d{2})(\d{4,6})">
   19517           <!-- Pattern for shorter fixed-line numbers. -->
   19518           <leadingDigits>
   19519             [124]|
   19520             3[2-4]|
   19521             5[24-689]|
   19522             6[1-3578]|
   19523             7[14-7]|
   19524             8[1-7]
   19525           </leadingDigits>
   19526           <format>$1 $2</format>
   19527         </numberFormat>
   19528         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
   19529              Poles that this is more usual. -->
   19530         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   19531           <leadingDigits>
   19532             39|
   19533             5[013]|
   19534             6[0469]|
   19535             7[02389]|
   19536             8[08]
   19537           </leadingDigits>
   19538           <format>$1 $2 $3</format>
   19539         </numberFormat>
   19540         <!-- Additional patterns for shorter pager numbers. -->
   19541         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
   19542           <leadingDigits>64</leadingDigits>
   19543           <format>$1 $2 $3</format>
   19544         </numberFormat>
   19545         <numberFormat pattern="(\d{3})(\d{3})">
   19546           <leadingDigits>64</leadingDigits>
   19547           <format>$1 $2</format>
   19548         </numberFormat>
   19549       </availableFormats>
   19550       <generalDesc>
   19551         <nationalNumberPattern>
   19552           [1-58]\d{6,8}|
   19553           9\d{8}|
   19554           [67]\d{5,8}
   19555         </nationalNumberPattern>
   19556         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   19557       </generalDesc>
   19558       <fixedLine>
   19559         <!-- Grouped by prefix-length. -->
   19560         <nationalNumberPattern>
   19561           (?:
   19562             1[2-8]|
   19563             2[2-59]|
   19564             3[2-4]|
   19565             4[1-468]|
   19566             5[24-689]|
   19567             6[1-3578]|
   19568             7[14-6]|
   19569             8[1-7]
   19570           )\d{5,7}|
   19571           77\d{4,7}|
   19572           (?:
   19573             89|
   19574             9[145]
   19575           )\d{7}
   19576         </nationalNumberPattern>
   19577         <exampleNumber>123456789</exampleNumber>
   19578       </fixedLine>
   19579       <mobile>
   19580         <nationalNumberPattern>
   19581           (?:
   19582             5[013]|
   19583             6[069]|
   19584             7[2389]|
   19585             88
   19586           )\d{7}
   19587         </nationalNumberPattern>
   19588         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19589         <exampleNumber>512345678</exampleNumber>
   19590       </mobile>
   19591       <pager>
   19592         <nationalNumberPattern>642\d{3,6}</nationalNumberPattern>
   19593         <exampleNumber>642123456</exampleNumber>
   19594       </pager>
   19595       <tollFree>
   19596         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   19597         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19598         <exampleNumber>800123456</exampleNumber>
   19599       </tollFree>
   19600       <premiumRate>
   19601         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
   19602         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19603         <exampleNumber>701234567</exampleNumber>
   19604       </premiumRate>
   19605       <sharedCost>
   19606         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
   19607         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19608         <exampleNumber>801234567</exampleNumber>
   19609       </sharedCost>
   19610       <voip>
   19611         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
   19612         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19613         <exampleNumber>391234567</exampleNumber>
   19614       </voip>
   19615       <emergency>
   19616         <nationalNumberPattern>
   19617           112|
   19618           99[789]
   19619         </nationalNumberPattern>
   19620         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   19621         <exampleNumber>112</exampleNumber>
   19622       </emergency>
   19623     </territory>
   19624 
   19625     <!-- Saint Pierre and Miquelon (Collectivit territoriale de la Rpublique franaise) -->
   19626     <!-- http://www.itu.int/oth/T02020000B2/en -->
   19627     <territory id="PM" countryCode="508" internationalPrefix="00"
   19628                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   19629       <availableFormats>
   19630         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
   19631           <format>$1 $2 $3</format>
   19632         </numberFormat>
   19633       </availableFormats>
   19634       <generalDesc>
   19635         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
   19636         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   19637       </generalDesc>
   19638       <fixedLine>
   19639         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
   19640         <exampleNumber>411234</exampleNumber>
   19641       </fixedLine>
   19642       <mobile>
   19643         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
   19644         <exampleNumber>551234</exampleNumber>
   19645       </mobile>
   19646       <emergency>
   19647         <nationalNumberPattern>1[578]</nationalNumberPattern>
   19648         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   19649         <exampleNumber>17</exampleNumber>
   19650       </emergency>
   19651     </territory>
   19652 
   19653     <!-- Pitcairn Island -->
   19654     <!-- id="PN" -->
   19655     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
   19656          satellite phones. -->
   19657 
   19658     <!-- Puerto Rico -->
   19659     <!-- http://www.itu.int/oth/T02020000AA/en -->
   19660     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
   19661                internationalPrefix="011">
   19662       <generalDesc>
   19663         <!-- NANPA country - uses US formatting rules -->
   19664         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
   19665         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   19666       </generalDesc>
   19667       <fixedLine>
   19668         <nationalNumberPattern>
   19669           (?:
   19670             787|
   19671             939
   19672           )[2-9]\d{6}
   19673         </nationalNumberPattern>
   19674         <exampleNumber>7872345678</exampleNumber>
   19675       </fixedLine>
   19676       <mobile>
   19677         <nationalNumberPattern>
   19678           (?:
   19679             787|
   19680             939
   19681           )[2-9]\d{6}
   19682         </nationalNumberPattern>
   19683         <exampleNumber>7872345678</exampleNumber>
   19684       </mobile>
   19685       <tollFree>
   19686         <nationalNumberPattern>
   19687           8(?:
   19688             00|
   19689             55|
   19690             66|
   19691             77|
   19692             88
   19693           )[2-9]\d{6}
   19694         </nationalNumberPattern>
   19695         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   19696         <exampleNumber>8002345678</exampleNumber>
   19697       </tollFree>
   19698       <premiumRate>
   19699         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   19700         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   19701         <exampleNumber>9002345678</exampleNumber>
   19702       </premiumRate>
   19703       <personalNumber>
   19704         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   19705         <nationalNumberPattern>
   19706           5(?:
   19707             00|
   19708             33|
   19709             44
   19710           )[2-9]\d{6}
   19711         </nationalNumberPattern>
   19712         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   19713         <exampleNumber>5002345678</exampleNumber>
   19714       </personalNumber>
   19715       <emergency>
   19716         <!-- http://www.frommers.com/destinations/puertorico/0094020157.html
   19717              http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   19718         <nationalNumberPattern>911</nationalNumberPattern>
   19719         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   19720         <exampleNumber>911</exampleNumber>
   19721       </emergency>
   19722     </territory>
   19723 
   19724     <!-- Palestinian Authority -->
   19725     <!-- http://en.wikipedia.org/wiki/%2B970 -->
   19726     <!-- http://www.wtng.info/wtng-970-ps.html -->
   19727     <!-- http://www.paltel.ps -->
   19728     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
   19729          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
   19730          subset of the Israeli formats. -->
   19731     <territory id="PS" countryCode="970" internationalPrefix="00"
   19732                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   19733       <availableFormats>
   19734         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
   19735           <leadingDigits>[2489]</leadingDigits>
   19736           <format>$1 $2 $3</format>
   19737         </numberFormat>
   19738         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
   19739           <leadingDigits>5</leadingDigits>
   19740           <format>$1 $2 $3</format>
   19741         </numberFormat>
   19742         <numberFormat nationalPrefixFormattingRule="$FG"
   19743           pattern="(1[78]00)(\d{3})(\d{3})">
   19744           <leadingDigits>1[78]</leadingDigits>
   19745           <format>$1 $2 $3</format>
   19746         </numberFormat>
   19747         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
   19748       </availableFormats>
   19749       <generalDesc>
   19750         <nationalNumberPattern>
   19751           [24589]\d{7,8}|
   19752           1(?:
   19753             [78]\d{8}|
   19754             [49]\d{2,3}
   19755           )
   19756         </nationalNumberPattern>
   19757         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   19758       </generalDesc>
   19759       <fixedLine>
   19760         <nationalNumberPattern>
   19761           (?:
   19762             22[234789]|
   19763             42[45]|
   19764             82[01458]|
   19765             92[369]
   19766           )\d{5}
   19767         </nationalNumberPattern>
   19768         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   19769         <exampleNumber>22234567</exampleNumber>
   19770       </fixedLine>
   19771       <mobile>
   19772         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
   19773         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19774         <exampleNumber>599123456</exampleNumber>
   19775       </mobile>
   19776       <tollFree>
   19777         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
   19778         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   19779         <exampleNumber>1800123456</exampleNumber>
   19780       </tollFree>
   19781       <premiumRate>
   19782         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
   19783         <nationalNumberPattern>
   19784           1(?:
   19785             4|
   19786             9\d
   19787            )\d{2}
   19788         </nationalNumberPattern>
   19789         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
   19790         <exampleNumber>19123</exampleNumber>
   19791       </premiumRate>
   19792       <sharedCost>
   19793         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
   19794         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   19795         <exampleNumber>1700123456</exampleNumber>
   19796       </sharedCost>
   19797     </territory>
   19798 
   19799     <!-- Portugal -->
   19800     <!-- http://www.anacom.pt/render.jsp?categoryId=279098 -->
   19801     <territory id="PT" countryCode="351" internationalPrefix="00">
   19802       <availableFormats>
   19803         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
   19804              two digits in the first group; however, this doesn't seem to be majority usage based on
   19805              searches online. -->
   19806         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
   19807           <leadingDigits>2[12]</leadingDigits>
   19808           <format>$1 $2 $3</format>
   19809         </numberFormat>
   19810         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
   19811           <leadingDigits>
   19812             2[3-9]|
   19813             [346-9]
   19814           </leadingDigits>
   19815           <format>$1 $2 $3</format>
   19816         </numberFormat>
   19817       </availableFormats>
   19818       <generalDesc>
   19819         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
   19820         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19821       </generalDesc>
   19822       <fixedLine>
   19823         <nationalNumberPattern>
   19824           2(?:
   19825             [12]\d|
   19826             [35][1-689]|
   19827             4[1-59]|
   19828             6[1-35689]|
   19829             7[1-9]|
   19830             8[1-69]|
   19831             9[1256]
   19832           )\d{6}
   19833         </nationalNumberPattern>
   19834         <exampleNumber>212345678</exampleNumber>
   19835       </fixedLine>
   19836       <mobile>
   19837         <nationalNumberPattern>
   19838           9(?:
   19839             [136]\d{2}|
   19840             2[0-79]\d|
   19841             480
   19842           )\d{5}
   19843         </nationalNumberPattern>
   19844         <exampleNumber>912345678</exampleNumber>
   19845       </mobile>
   19846       <tollFree>
   19847         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
   19848         <exampleNumber>800123456</exampleNumber>
   19849       </tollFree>
   19850       <premiumRate>
   19851         <!-- Fixed maximum cost numbers: 761=0.60, 761=1, 762=2. -->
   19852         <nationalNumberPattern>
   19853           76(?:
   19854             0[1-57]|
   19855             1[2-47]|
   19856             2[237]
   19857           )\d{5}
   19858         </nationalNumberPattern>
   19859         <exampleNumber>760123456</exampleNumber>
   19860       </premiumRate>
   19861       <sharedCost>
   19862         <!-- 808 are priced as local calls, 809 are national calls. -->
   19863         <nationalNumberPattern>
   19864           80(?:
   19865             8\d|
   19866             9[1579]
   19867           )\d{5}
   19868         </nationalNumberPattern>
   19869         <exampleNumber>808123456</exampleNumber>
   19870       </sharedCost>
   19871       <personalNumber>
   19872         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
   19873         <exampleNumber>884123456</exampleNumber>
   19874       </personalNumber>
   19875       <voip>
   19876         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
   19877         <exampleNumber>301234567</exampleNumber>
   19878       </voip>
   19879       <uan>
   19880         <nationalNumberPattern>
   19881           70(?:
   19882             7\d|
   19883             8[17]
   19884           )\d{5}
   19885         </nationalNumberPattern>
   19886         <exampleNumber>707123456</exampleNumber>
   19887       </uan>
   19888       <emergency>
   19889         <nationalNumberPattern>112</nationalNumberPattern>
   19890         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   19891         <exampleNumber>112</exampleNumber>
   19892       </emergency>
   19893     </territory>
   19894 
   19895     <!-- Palau -->
   19896     <!-- http://www.itu.int/oth/T02020000A2/en -->
   19897     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
   19898       <availableFormats>
   19899         <numberFormat pattern="(\d{3})(\d{4})">
   19900           <format>$1 $2</format>
   19901         </numberFormat>
   19902       </availableFormats>
   19903       <generalDesc>
   19904         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
   19905         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   19906       </generalDesc>
   19907       <fixedLine>
   19908         <nationalNumberPattern>
   19909           2552255|
   19910           (?:
   19911             277|
   19912             345|
   19913             488|
   19914             5(?:
   19915               35|
   19916               44|
   19917               87
   19918             )|
   19919             6(?:
   19920               22|
   19921               54|
   19922               79
   19923             )|
   19924             7(?:
   19925               33|
   19926               47
   19927             )|
   19928             8(?:
   19929               24|
   19930               55|
   19931               76
   19932             )
   19933           )\d{4}
   19934         </nationalNumberPattern>
   19935         <exampleNumber>2771234</exampleNumber>
   19936       </fixedLine>
   19937       <mobile>
   19938         <nationalNumberPattern>
   19939           (?:
   19940             6[234689]0|
   19941             77[45789]
   19942           )\d{4}
   19943         </nationalNumberPattern>
   19944         <exampleNumber>6201234</exampleNumber>
   19945       </mobile>
   19946       <emergency>
   19947         <nationalNumberPattern>911</nationalNumberPattern>
   19948         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   19949         <exampleNumber>911</exampleNumber>
   19950       </emergency>
   19951     </territory>
   19952 
   19953     <!-- Paraguay -->
   19954     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay -->
   19955     <!-- http://www.itu.int/oth/T02020000A5/en -->
   19956     <!-- http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html -->
   19957     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0">
   19958       <availableFormats>
   19959         <!-- CONATEL plan. -->
   19960         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
   19961           <leadingDigits>
   19962             (?:
   19963               [26]1|
   19964               3[289]|
   19965               4[124678]|
   19966               7[123]|
   19967               8[1236]
   19968             )
   19969           </leadingDigits>
   19970           <format>$1 $2</format>
   19971         </numberFormat>
   19972         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
   19973           <leadingDigits>[2-9]0</leadingDigits>
   19974           <format>$1 $2</format>
   19975         </numberFormat>
   19976         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
   19977           <leadingDigits>9[1-9]</leadingDigits>
   19978           <format>$1 $2</format>
   19979         </numberFormat>
   19980         <!-- Format seen in examples found online. -->
   19981         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   19982           <leadingDigits>8700</leadingDigits>
   19983           <format>$1 $2 $3</format>
   19984         </numberFormat>
   19985         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
   19986              -->
   19987         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
   19988           <leadingDigits>[2-8][1-9]</leadingDigits>
   19989           <format>$1 $2</format>
   19990         </numberFormat>
   19991       </availableFormats>
   19992       <generalDesc>
   19993         <nationalNumberPattern>
   19994           5[0-5]\d{4,7}|
   19995           [2-46-9]\d{5,8}
   19996         </nationalNumberPattern>
   19997         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   19998       </generalDesc>
   19999       <fixedLine>
   20000         <nationalNumberPattern>
   20001           (?:
   20002             [26]1|
   20003             3[289]|
   20004             4[124678]|
   20005             7[123]|
   20006             8[1236]
   20007           )\d{5,7}|
   20008           (?:
   20009             2(?:
   20010               2[4568]|
   20011               7[15]|
   20012               9[1-5]
   20013             )|
   20014             3(?:
   20015               18|
   20016               3[167]|
   20017               4[2357]|
   20018               51
   20019             )|
   20020             4(?:
   20021               18|
   20022               2[45]|
   20023               3[12]|
   20024               5[13]|
   20025               64|
   20026               71|
   20027               9[1-47]
   20028             )|
   20029             5(?:
   20030               [1-4]\d|
   20031               5[0234]
   20032             )|
   20033             6(?:
   20034               3[1-3]|
   20035               44|
   20036               7[1-4678]
   20037             )|
   20038             7(?:
   20039               17|
   20040               4[0-4]|
   20041               6[1-578]|
   20042               75|
   20043               8[0-8]
   20044             )|
   20045             858
   20046           )\d{5,6}
   20047         </nationalNumberPattern>
   20048         <exampleNumber>212345678</exampleNumber>
   20049       </fixedLine>
   20050       <mobile>
   20051         <!-- 962 was added for Tigo. -->
   20052         <nationalNumberPattern>
   20053           9(?:
   20054             6[12]|
   20055             [78][1-6]|
   20056             9[1-5]
   20057           )\d{6}
   20058         </nationalNumberPattern>
   20059         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20060         <exampleNumber>961456789</exampleNumber>
   20061       </mobile>
   20062       <voip>
   20063         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
   20064         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20065         <exampleNumber>870012345</exampleNumber>
   20066       </voip>
   20067       <uan>
   20068         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
   20069         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   20070         <exampleNumber>201234567</exampleNumber>
   20071       </uan>
   20072       <shortCode>
   20073         <nationalNumberPattern>1[1-4]\d</nationalNumberPattern>
   20074         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20075         <exampleNumber>123</exampleNumber>
   20076       </shortCode>
   20077       <emergency>
   20078         <nationalNumberPattern>
   20079           128|
   20080           911
   20081         </nationalNumberPattern>
   20082         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20083         <exampleNumber>911</exampleNumber>
   20084       </emergency>
   20085     </territory>
   20086 
   20087     <!-- Qatar -->
   20088     <!-- http://www.itu.int/oth/T02020000AB/en -->
   20089     <!-- http://wtng.info/wtng-qq.html -->
   20090     <territory id="QA" countryCode="974" internationalPrefix="00">
   20091       <availableFormats>
   20092         <numberFormat pattern="([28]\d{2})(\d{4})">
   20093           <leadingDigits>[28]</leadingDigits>
   20094           <format>$1 $2</format>
   20095         </numberFormat>
   20096         <numberFormat pattern="([3-7]\d{3})(\d{4})">
   20097           <leadingDigits>[3-7]</leadingDigits>
   20098           <format>$1 $2</format>
   20099         </numberFormat>
   20100       </availableFormats>
   20101       <generalDesc>
   20102         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
   20103         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   20104       </generalDesc>
   20105       <fixedLine>
   20106         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
   20107         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
   20108         <exampleNumber>44123456</exampleNumber>
   20109       </fixedLine>
   20110       <mobile>
   20111         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
   20112         <exampleNumber>33123456</exampleNumber>
   20113       </mobile>
   20114       <pager>
   20115         <nationalNumberPattern>
   20116           2(?:
   20117             [12]\d|
   20118             61
   20119           )\d{4}
   20120         </nationalNumberPattern>
   20121         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20122         <exampleNumber>2123456</exampleNumber>
   20123       </pager>
   20124       <tollFree>
   20125         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
   20126         <exampleNumber>8001234</exampleNumber>
   20127       </tollFree>
   20128       <!-- No premiumRate information can be found. -->
   20129       <shortCode>
   20130         <nationalNumberPattern>
   20131           (?:
   20132             1|
   20133             20|
   20134             9[27]\d
   20135           )\d{2}
   20136         </nationalNumberPattern>
   20137         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   20138         <exampleNumber>2012</exampleNumber>
   20139       </shortCode>
   20140       <emergency>
   20141         <nationalNumberPattern>999</nationalNumberPattern>
   20142         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20143         <exampleNumber>999</exampleNumber>
   20144       </emergency>
   20145     </territory>
   20146 
   20147     <!-- Runion (French Departments and Territories in the Indian Ocean) -->
   20148     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
   20149          used by both of them. -->
   20150     <!-- http://www.itu.int/oth/T020200004B/en -->
   20151     <territory id="RE" countryCode="262" internationalPrefix="00"
   20152                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   20153                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
   20154       <availableFormats>
   20155         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
   20156           <format>$1 $2 $3 $4</format>
   20157         </numberFormat>
   20158       </availableFormats>
   20159       <generalDesc>
   20160         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
   20161         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20162       </generalDesc>
   20163       <fixedLine>
   20164         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
   20165         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
   20166         <exampleNumber>262161234</exampleNumber>
   20167       </fixedLine>
   20168       <mobile>
   20169         <nationalNumberPattern>
   20170           6(?:
   20171             9[23]|
   20172             47
   20173           )\d{6}
   20174         </nationalNumberPattern>
   20175         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20176         <exampleNumber>692123456</exampleNumber>
   20177       </mobile>
   20178       <!-- 08* Numbers in Runion are the same as those valid in France. -->
   20179       <tollFree>
   20180         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   20181         <exampleNumber>801234567</exampleNumber>
   20182       </tollFree>
   20183       <premiumRate>
   20184         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
   20185         <exampleNumber>891123456</exampleNumber>
   20186       </premiumRate>
   20187       <sharedCost>
   20188         <nationalNumberPattern>
   20189           8(?:
   20190             1[019]|
   20191             2[0156]|
   20192             84|
   20193             90
   20194           )\d{6}
   20195         </nationalNumberPattern>
   20196         <exampleNumber>810123456</exampleNumber>
   20197       </sharedCost>
   20198       <!-- http://www.reunion.fr/en/navigation-principale/getting-there/practical-information.html -->
   20199       <emergency>
   20200         <nationalNumberPattern>
   20201           1(?:
   20202             12|
   20203             [578]
   20204           )
   20205         </nationalNumberPattern>
   20206         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   20207         <exampleNumber>15</exampleNumber>
   20208       </emergency>
   20209     </territory>
   20210 
   20211     <!-- Romania -->
   20212     <!-- http://www.itu.int/oth/T02020000AC/en -->
   20213     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania -->
   20214     <!-- Extension prefix found online, confirmed by a Romanian. -->
   20215     <territory id="RO" countryCode="40" internationalPrefix="00"
   20216                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   20217                preferredExtnPrefix=" int ">
   20218       <availableFormats>
   20219         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
   20220           <leadingDigits>[23]1</leadingDigits>
   20221           <format>$1 $2 $3</format>
   20222         </numberFormat>
   20223         <numberFormat pattern="(21)(\d{4})">
   20224           <leadingDigits>21</leadingDigits>
   20225           <format>$1 $2</format>
   20226         </numberFormat>
   20227         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   20228           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
   20229                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
   20230                majority of numbers found online follow this convention. -->
   20231           <leadingDigits>
   20232             [23][3-7]|
   20233             [7-9]
   20234           </leadingDigits>
   20235           <format>$1 $2 $3</format>
   20236         </numberFormat>
   20237         <numberFormat pattern="(2\d{2})(\d{3})">
   20238           <leadingDigits>2[3-6]</leadingDigits>
   20239           <format>$1 $2</format>
   20240         </numberFormat>
   20241       </availableFormats>
   20242       <generalDesc>
   20243         <nationalNumberPattern>
   20244           2\d{5,8}|
   20245           [37-9]\d{8}
   20246         </nationalNumberPattern>
   20247         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
   20248              to wikipedia and people must dial the full number. However, there are still short
   20249              numbers that total 6 digits long, so the possible number pattern should take these into
   20250              account. -->
   20251         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   20252       </generalDesc>
   20253       <fixedLine>
   20254         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
   20255              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
   20256              this based on numbers found online and the wikipedia article which indicate that these
   20257              are four digits long in Bucharest only, and three digits elsewhere. -->
   20258         <nationalNumberPattern>
   20259           2(?:
   20260             1(?:
   20261               \d{7}|
   20262               9\d{3}
   20263             )|
   20264             [3-6](?:
   20265               \d{7}|
   20266               \d9\d{2}
   20267             )
   20268           )|
   20269           3[13-6]\d{7}
   20270           </nationalNumberPattern>
   20271         <exampleNumber>211234567</exampleNumber>
   20272       </fixedLine>
   20273       <mobile>
   20274         <nationalNumberPattern>7[1-8]\d{7}</nationalNumberPattern>
   20275         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20276         <exampleNumber>712345678</exampleNumber>
   20277       </mobile>
   20278       <tollFree>
   20279         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   20280         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20281         <exampleNumber>800123456</exampleNumber>
   20282       </tollFree>
   20283       <premiumRate>
   20284         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
   20285         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20286         <exampleNumber>900123456</exampleNumber>
   20287       </premiumRate>
   20288       <sharedCost>
   20289         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
   20290         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20291         <exampleNumber>801123456</exampleNumber>
   20292       </sharedCost>
   20293       <personalNumber>
   20294         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
   20295         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20296         <exampleNumber>802123456</exampleNumber>
   20297       </personalNumber>
   20298       <uan>
   20299         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
   20300              location-independent national numbers. Only numbers beginning with 37 have been seen so
   20301              these are the only ones supported for now. -->
   20302         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
   20303         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20304         <exampleNumber>372123456</exampleNumber>
   20305       </uan>
   20306       <emergency>
   20307         <nationalNumberPattern>112</nationalNumberPattern>
   20308         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20309         <exampleNumber>112</exampleNumber>
   20310       </emergency>
   20311     </territory>
   20312 
   20313     <!-- Serbia -->
   20314     <!-- http://www.itu.int/oth/T02020000B9/en -->
   20315     <!-- http://registar.ratel.rs/en/reg202 -->
   20316     <territory id="RS" countryCode="381" internationalPrefix="00"
   20317                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   20318       <availableFormats>
   20319         <numberFormat pattern="([23]\d{2})(\d{4,9})">
   20320           <leadingDigits>
   20321             (?:
   20322               2[389]|
   20323               39
   20324             )0
   20325           </leadingDigits>
   20326           <format>$1 $2</format>
   20327         </numberFormat>
   20328         <numberFormat pattern="([1-3]\d)(\d{5,10})">
   20329           <leadingDigits>
   20330             1|
   20331             2(?:
   20332               [0-24-7]|
   20333               [389][1-9]
   20334             )|
   20335             3(?:
   20336               [0-8]|
   20337               9[1-9]
   20338             )
   20339           </leadingDigits>
   20340           <format>$1 $2</format>
   20341         </numberFormat>
   20342         <numberFormat pattern="(6\d)(\d{6,8})">
   20343           <leadingDigits>6</leadingDigits>
   20344           <format>$1 $2</format>
   20345         </numberFormat>
   20346         <numberFormat pattern="([89]\d{2})(\d{3,9})">
   20347           <leadingDigits>[89]</leadingDigits>
   20348           <format>$1 $2</format>
   20349         </numberFormat>
   20350         <numberFormat pattern="(7[26])(\d{4,9})">
   20351           <leadingDigits>7[26]</leadingDigits>
   20352           <format>$1 $2</format>
   20353         </numberFormat>
   20354         <numberFormat pattern="(7[08]\d)(\d{4,9})">
   20355           <leadingDigits>7[08]</leadingDigits>
   20356           <format>$1 $2</format>
   20357         </numberFormat>
   20358       </availableFormats>
   20359       <generalDesc>
   20360         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
   20361              by 2-9) and the country calling code (381). -->
   20362         <nationalNumberPattern>
   20363           [126-9]\d{4,11}|
   20364           3(?:
   20365             [0-79]\d{3,10}|
   20366             8[2-9]\d{2,9}
   20367           )
   20368         </nationalNumberPattern>
   20369         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   20370       </generalDesc>
   20371       <fixedLine>
   20372         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
   20373              has been issused, so we allow 11 1X here. -->
   20374         <nationalNumberPattern>
   20375           (?:
   20376             1(?:
   20377               [02-9][2-9]|
   20378               1[1-9]
   20379             )\d|
   20380             2(?:
   20381               [0-24-7][2-9]\d|
   20382               [389](?:
   20383                 0[2-9]|
   20384                 [2-9]\d
   20385               )
   20386             )|
   20387             3(?:
   20388               [0-8][2-9]\d|
   20389               9(?:
   20390                 [2-9]\d|
   20391                 0[2-9]
   20392               )
   20393             )
   20394           )\d{3,8}
   20395         </nationalNumberPattern>
   20396         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   20397         <exampleNumber>10234567</exampleNumber>
   20398       </fixedLine>
   20399       <mobile>
   20400         <nationalNumberPattern>
   20401           6(?:
   20402             [0-689]|
   20403             7\d
   20404           )\d{6,7}
   20405         </nationalNumberPattern>
   20406         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   20407         <exampleNumber>601234567</exampleNumber>
   20408       </mobile>
   20409       <tollFree>
   20410         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
   20411         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   20412         <exampleNumber>80012345</exampleNumber>
   20413       </tollFree>
   20414       <premiumRate>
   20415         <nationalNumberPattern>
   20416           (?:
   20417             90[0169]|
   20418             78\d
   20419           )\d{3,7}
   20420         </nationalNumberPattern>
   20421         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   20422         <exampleNumber>90012345</exampleNumber>
   20423       </premiumRate>
   20424       <uan>
   20425         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
   20426         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   20427         <exampleNumber>700123456</exampleNumber>
   20428       </uan>
   20429       <shortCode>
   20430         <nationalNumberPattern>
   20431           1(?:
   20432             1(?:
   20433               [013-9]|
   20434               \d(2,4)
   20435             )|
   20436             [89]\d{1,4}
   20437           )
   20438         </nationalNumberPattern>
   20439         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   20440         <exampleNumber>12345</exampleNumber>
   20441       </shortCode>
   20442       <emergency>
   20443         <nationalNumberPattern>
   20444           112|
   20445           9[234]
   20446         </nationalNumberPattern>
   20447         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   20448         <exampleNumber>112</exampleNumber>
   20449       </emergency>
   20450     </territory>
   20451 
   20452     <!-- Russian Federation -->
   20453     <!-- http://www.itu.int/oth/T02020000AD/en -->
   20454     <!-- http://en.wikipedia.org/wiki/%2B7 -->
   20455     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
   20456                internationalPrefix="810" nationalPrefix="8"
   20457                nationalPrefixFormattingRule="$NP ($FG)"
   20458                nationalPrefixOptionalWhenFormatting="true" >
   20459       <availableFormats>
   20460         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
   20461              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
   20462              Kazakhstan as well. -->
   20463         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
   20464           <!-- Local numbers only - these do not start with the national prefix. -->
   20465           <leadingDigits>[1-79]</leadingDigits>
   20466           <format>$1-$2-$3</format>
   20467           <intlFormat>NA</intlFormat>
   20468         </numberFormat>
   20469         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
   20470           <leadingDigits>[34689]</leadingDigits>
   20471           <format>$1 $2-$3-$4</format>
   20472         </numberFormat>
   20473         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
   20474           <leadingDigits>7</leadingDigits>
   20475           <format>$1 $2 $3</format>
   20476         </numberFormat>
   20477       </availableFormats>
   20478       <generalDesc>
   20479         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
   20480         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20481       </generalDesc>
   20482       <fixedLine>
   20483         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
   20484              in the yellow pages, and on their own website and is listed on wikipedia. This applies
   20485              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
   20486         <nationalNumberPattern>
   20487           (?:
   20488             3(?:
   20489               0[12]|
   20490               4[1-35-79]|
   20491               5[1-3]|
   20492               8[1-58]|
   20493               9[0145]
   20494             )|
   20495             4(?:
   20496               01|
   20497               1[1356]|
   20498               2[13467]|
   20499               7[1-5]|
   20500               8[1-7]|
   20501               9[1-689]
   20502             )|
   20503             8(?:
   20504               1[1-8]|
   20505               2[01]|
   20506               3[13-6]|
   20507               4[0-8]|
   20508               5[15]|
   20509               6[1-35-7]|
   20510               7[1-37-9]
   20511             )
   20512           )\d{7}
   20513         </nationalNumberPattern>
   20514         <exampleNumber>3011234567</exampleNumber>
   20515       </fixedLine>
   20516       <mobile>
   20517         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
   20518         <exampleNumber>9123456789</exampleNumber>
   20519       </mobile>
   20520       <tollFree>
   20521         <!-- The metadata states that 804 numbers are UAN numbers, but
   20522              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
   20523              numbers. -->
   20524         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
   20525         <exampleNumber>8001234567</exampleNumber>
   20526       </tollFree>
   20527       <premiumRate>
   20528         <!-- Covers tele-voting numbers as well. -->
   20529         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
   20530         <exampleNumber>8091234567</exampleNumber>
   20531       </premiumRate>
   20532       <emergency>
   20533         <nationalNumberPattern>
   20534           0[123]|
   20535           112
   20536         </nationalNumberPattern>
   20537         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   20538         <exampleNumber>112</exampleNumber>
   20539       </emergency>
   20540     </territory>
   20541 
   20542     <!-- Rwanda -->
   20543     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
   20544          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
   20545          as www.tigo.co.rw "Choose Your Number" service. -->
   20546     <!-- http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf -->
   20547     <!-- http://en.wikipedia.org/wiki/+250 -->
   20548     <territory id="RW" countryCode="250" internationalPrefix="00"
   20549                nationalPrefix="0" leadingZeroPossible="true">
   20550       <availableFormats>
   20551         <numberFormat nationalPrefixFormattingRule="$FG"
   20552           pattern="(2\d{2})(\d{3})(\d{3})">
   20553           <leadingDigits>2</leadingDigits>
   20554           <format>$1 $2 $3</format>
   20555         </numberFormat>
   20556         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
   20557           <leadingDigits>[7-9]</leadingDigits>
   20558           <format>$1 $2 $3</format>
   20559         </numberFormat>
   20560         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
   20561           <leadingDigits>0</leadingDigits>
   20562           <format>$1 $2 $3 $4</format>
   20563         </numberFormat>
   20564       </availableFormats>
   20565       <generalDesc>
   20566         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
   20567         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   20568       </generalDesc>
   20569       <fixedLine>
   20570         <!-- We support satellite numbers here, since they are in the plan, although no recent
   20571              online examples can be found. We also support fixed-line ranges that have been reserved
   20572              and paid for, even where no online numbers can be found. -->
   20573         <nationalNumberPattern>
   20574           2[258]\d{7}|
   20575           06\d{6}
   20576         </nationalNumberPattern>
   20577         <exampleNumber>250123456</exampleNumber>
   20578       </fixedLine>
   20579       <mobile>
   20580         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
   20581              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
   20582              license revoked. -->
   20583         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
   20584         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20585         <exampleNumber>720123456</exampleNumber>
   20586       </mobile>
   20587       <tollFree>
   20588         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   20589         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20590         <exampleNumber>800123456</exampleNumber>
   20591       </tollFree>
   20592       <premiumRate>
   20593         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
   20594         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20595         <exampleNumber>900123456</exampleNumber>
   20596       </premiumRate>
   20597       <emergency>
   20598         <nationalNumberPattern>112</nationalNumberPattern>
   20599         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20600         <exampleNumber>112</exampleNumber>
   20601       </emergency>
   20602     </territory>
   20603 
   20604     <!-- Saudi Arabia -->
   20605     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia -->
   20606     <!-- http://www.itu.int/oth/T02020000B7/en -->
   20607     <territory id="SA" countryCode="966" internationalPrefix="00"
   20608                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   20609       <availableFormats>
   20610         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
   20611           <leadingDigits>[1-467]</leadingDigits>
   20612           <format>$1 $2 $3</format>
   20613         </numberFormat>
   20614         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
   20615           <leadingDigits>1[1-467]</leadingDigits>
   20616           <format>$1 $2 $3</format>
   20617         </numberFormat>
   20618         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
   20619           <leadingDigits>5</leadingDigits>
   20620           <format>$1 $2 $3</format>
   20621         </numberFormat>
   20622         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
   20623              the fact that no numbers of this form found online have a trunk prefix added. -->
   20624         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
   20625           <leadingDigits>9</leadingDigits>
   20626           <format>$1 $2</format>
   20627         </numberFormat>
   20628         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
   20629           <leadingDigits>80</leadingDigits>
   20630           <format>$1 $2 $3</format>
   20631         </numberFormat>
   20632         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
   20633           <leadingDigits>81</leadingDigits>
   20634           <format>$1 $2 $3</format>
   20635         </numberFormat>
   20636       </availableFormats>
   20637       <generalDesc>
   20638         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
   20639              fixed-line numbers. -->
   20640         <nationalNumberPattern>
   20641           1\d{7,8}|
   20642           (?:
   20643             [2-467]|
   20644             92
   20645           )\d{7}|
   20646           5\d{8}|
   20647           8\d{9}
   20648         </nationalNumberPattern>
   20649         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   20650       </generalDesc>
   20651       <fixedLine>
   20652         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
   20653              is happening in May for area code 1 (parallel running ends July 13th, 2013) and then in
   20654              August for the other fixed-line numbers. -->
   20655         <nationalNumberPattern>
   20656           (?:
   20657             11?\d|
   20658             2[24-8]|
   20659             3[35-8]|
   20660             4[3-68]|
   20661             6[2-5]|
   20662             7[235-7]
   20663           )\d{6}
   20664         </nationalNumberPattern>
   20665         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   20666         <exampleNumber>112345678</exampleNumber>
   20667       </fixedLine>
   20668       <mobile>
   20669         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
   20670              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
   20671              until we find evidence that this is an error, leaving them at 10 for now. -->
   20672         <nationalNumberPattern>
   20673           (?:
   20674             5[013-689]|
   20675             811
   20676           )\d{7}
   20677         </nationalNumberPattern>
   20678         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   20679         <exampleNumber>512345678</exampleNumber>
   20680       </mobile>
   20681       <tollFree>
   20682         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   20683         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20684         <exampleNumber>8001234567</exampleNumber>
   20685       </tollFree>
   20686       <sharedCost>
   20687         <!-- Including shared revenue with shared cost here. -->
   20688         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
   20689         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20690         <exampleNumber>920012345</exampleNumber>
   20691       </sharedCost>
   20692       <shortCode>
   20693         <nationalNumberPattern>
   20694           1(?:
   20695             16111|
   20696             9(?:
   20697               00|
   20698               1[89]|
   20699               9(?:
   20700                 099|
   20701                 22|
   20702                 91
   20703               )
   20704             )
   20705           )|
   20706           9(
   20707             37|
   20708             8[6-8]|
   20709             9[2-6]
   20710           )
   20711         </nationalNumberPattern>
   20712         <possibleNumberPattern>\d{3,6}</possibleNumberPattern>
   20713         <exampleNumber>937</exampleNumber>
   20714       </shortCode>
   20715       <emergency>
   20716         <nationalNumberPattern>
   20717           112|
   20718           9(?:
   20719             11|
   20720             9[7-9]
   20721           )
   20722         </nationalNumberPattern>
   20723         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20724         <exampleNumber>999</exampleNumber>
   20725       </emergency>
   20726     </territory>
   20727 
   20728     <!-- Solomon Islands -->
   20729     <!-- http://www.itu.int/oth/T02020000BF/en -->
   20730     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
   20731       <!-- A single group is used to format 5-digit numbers. -->
   20732       <availableFormats>
   20733         <numberFormat pattern="(\d{3})(\d{4})">
   20734           <leadingDigits>[7-9]</leadingDigits>
   20735           <format>$1 $2</format>
   20736         </numberFormat>
   20737       </availableFormats>
   20738       <generalDesc>
   20739         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
   20740         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   20741       </generalDesc>
   20742       <fixedLine>
   20743         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
   20744              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
   20745         <nationalNumberPattern>
   20746           (?:
   20747             1[4-79]|
   20748             [23]\d|
   20749             4[01]|
   20750             5[03]|
   20751             6[0-37]
   20752           )\d{3}
   20753         </nationalNumberPattern>
   20754         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   20755         <exampleNumber>40123</exampleNumber>
   20756       </fixedLine>
   20757       <mobile>
   20758         <nationalNumberPattern>
   20759           48\d{3}|
   20760           7(?:
   20761             [46-8]\d|
   20762             5[025-9]|
   20763             90
   20764           )\d{4}|
   20765           8[4-8]\d{5}|
   20766           9(?:
   20767             [46]\d|
   20768             5[0-46-9]|
   20769             7[0-689]|
   20770             8[0-79]|
   20771             9[0-8]
   20772           )\d{4}
   20773         </nationalNumberPattern>
   20774         <exampleNumber>7421234</exampleNumber>
   20775       </mobile>
   20776       <tollFree>
   20777         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
   20778         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   20779         <exampleNumber>18123</exampleNumber>
   20780       </tollFree>
   20781       <voip>
   20782         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
   20783         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   20784         <exampleNumber>51123</exampleNumber>
   20785       </voip>
   20786       <shortCode>
   20787         <nationalNumberPattern>
   20788           1(?:
   20789             0[02-79]|
   20790             1[12]|
   20791             2[0-26]|
   20792             4[189]|
   20793             68
   20794           )|
   20795           9(?:
   20796             [01]1|
   20797             22|
   20798             33|
   20799             55|
   20800             77|
   20801             88
   20802           )
   20803         </nationalNumberPattern>
   20804         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20805         <exampleNumber>100</exampleNumber>
   20806       </shortCode>
   20807       <emergency>
   20808         <nationalNumberPattern>999</nationalNumberPattern>
   20809         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20810         <exampleNumber>999</exampleNumber>
   20811       </emergency>
   20812     </territory>
   20813 
   20814     <!-- Seychelles -->
   20815     <!-- http://www.itu.int/oth/T02020000BA/en -->
   20816     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles -->
   20817     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
   20818                preferredInternationalPrefix="00">
   20819       <availableFormats>
   20820         <numberFormat pattern="(\d{3})(\d{3})">
   20821           <leadingDigits>[89]</leadingDigits>
   20822           <format>$1 $2</format>
   20823         </numberFormat>
   20824         <numberFormat pattern="(\d)(\d{3})(\d{3})">
   20825           <leadingDigits>[246]</leadingDigits>
   20826           <format>$1 $2 $3</format>
   20827         </numberFormat>
   20828       </availableFormats>
   20829       <generalDesc>
   20830         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
   20831         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   20832       </generalDesc>
   20833       <fixedLine>
   20834         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
   20835              they are more expensive to call than other Fixed Line services. ISDN and DID services
   20836              are here too, since they seem to be also fixed-line phone numbers. -->
   20837         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
   20838         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20839         <exampleNumber>4217123</exampleNumber>
   20840       </fixedLine>
   20841       <mobile>
   20842         <!-- Includes Fixed Cellular. -->
   20843         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
   20844         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20845         <exampleNumber>2510123</exampleNumber>
   20846       </mobile>
   20847       <tollFree>
   20848         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
   20849         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   20850         <exampleNumber>800000</exampleNumber>
   20851       </tollFree>
   20852       <premiumRate>
   20853         <!-- Using this to represent Value Added Service in the plan. -->
   20854         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
   20855         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   20856         <exampleNumber>981234</exampleNumber>
   20857       </premiumRate>
   20858       <voip>
   20859         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
   20860         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20861         <exampleNumber>6412345</exampleNumber>
   20862       </voip>
   20863       <shortCode>
   20864         <nationalNumberPattern>
   20865           1(?:
   20866             0\d|
   20867             1[027]|
   20868             2[0-8]|
   20869             3[13]|
   20870             4[0-2]|
   20871             [59][15]|
   20872             6[1-9]|
   20873             7[124-6]|
   20874             8[158]
   20875           )|
   20876           96\d{2}
   20877         </nationalNumberPattern>
   20878         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   20879         <exampleNumber>100</exampleNumber>
   20880       </shortCode>
   20881       <emergency>
   20882         <nationalNumberPattern>999</nationalNumberPattern>
   20883         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20884         <exampleNumber>999</exampleNumber>
   20885       </emergency>
   20886     </territory>
   20887 
   20888     <!-- Sudan -->
   20889     <!-- http://www.itu.int/oth/T02020000C4/en -->
   20890     <territory id="SD" countryCode="249" internationalPrefix="00"
   20891                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   20892       <availableFormats>
   20893         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   20894           <format>$1 $2 $3</format>
   20895         </numberFormat>
   20896       </availableFormats>
   20897       <generalDesc>
   20898         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
   20899         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20900       </generalDesc>
   20901       <fixedLine>
   20902         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
   20903              found online. -->
   20904         <nationalNumberPattern>
   20905           1(?:
   20906             [125]\d|
   20907             8[3567]
   20908           )\d{6}
   20909         </nationalNumberPattern>
   20910         <exampleNumber>121231234</exampleNumber>
   20911       </fixedLine>
   20912       <mobile>
   20913         <!-- Adding 90X as online numbers have been found with this prefix. -->
   20914         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
   20915         <exampleNumber>911231234</exampleNumber>
   20916       </mobile>
   20917       <emergency>
   20918         <nationalNumberPattern>999</nationalNumberPattern>
   20919         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   20920         <exampleNumber>999</exampleNumber>
   20921       </emergency>
   20922     </territory>
   20923 
   20924     <!-- Sweden -->
   20925     <!-- http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf -->
   20926     <territory id="SE" countryCode="46" internationalPrefix="00"
   20927                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   20928       <availableFormats>
   20929       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
   20930            http://gulasidorna.eniro.se -->
   20931         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
   20932           <leadingDigits>8</leadingDigits>
   20933           <format>$1-$2 $3 $4</format>
   20934           <intlFormat>$1 $2 $3 $4</intlFormat>
   20935         </numberFormat>
   20936         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
   20937           <leadingDigits>
   20938             1[013689]|
   20939             2[0136]|
   20940             3[1356]|
   20941             4[0246]|
   20942             54|
   20943             6[03]|
   20944             90
   20945           </leadingDigits>
   20946           <format>$1-$2 $3 $4</format>
   20947           <intlFormat>$1 $2 $3 $4</intlFormat>
   20948         </numberFormat>
   20949         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
   20950           <leadingDigits>
   20951             1[13689]|
   20952             2[136]|
   20953             3[1356]|
   20954             4[0246]|
   20955             54|
   20956             6[03]|
   20957             90
   20958           </leadingDigits>
   20959           <format>$1-$2 $3</format>
   20960           <intlFormat>$1 $2 $3</intlFormat>
   20961         </numberFormat>
   20962         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   20963           <leadingDigits>
   20964             1[2457]|
   20965             2[2457-9]|
   20966             3[0247-9]|
   20967             4[1357-9]|
   20968             5[0-35-9]|
   20969             6[124-9]|
   20970             9(?:
   20971               [125-8]|
   20972               3[0-5]|
   20973               4[0-3]
   20974             )
   20975           </leadingDigits>
   20976           <format>$1-$2 $3 $4</format>
   20977           <intlFormat>$1 $2 $3 $4</intlFormat>
   20978         </numberFormat>
   20979         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
   20980           <leadingDigits>
   20981             1[2457]|
   20982             2[2457-9]|
   20983             3[0247-9]|
   20984             4[1357-9]|
   20985             5[0-35-9]|
   20986             6[124-9]|
   20987             9(?:
   20988               [125-8]|
   20989               3[0-5]|
   20990               4[0-3]
   20991             )
   20992           </leadingDigits>
   20993           <format>$1-$2 $3</format>
   20994           <intlFormat>$1 $2 $3</intlFormat>
   20995         </numberFormat>
   20996         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
   20997           <leadingDigits>7</leadingDigits>
   20998           <format>$1-$2 $3 $4</format>
   20999           <intlFormat>$1 $2 $3 $4</intlFormat>
   21000         </numberFormat>
   21001         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
   21002           <leadingDigits>20</leadingDigits>
   21003           <format>$1-$2 $3</format>
   21004           <intlFormat>$1 $2 $3</intlFormat>
   21005         </numberFormat>
   21006         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
   21007           <leadingDigits>9[034]</leadingDigits>
   21008           <format>$1-$2 $3 $4</format>
   21009           <intlFormat>$1 $2 $3 $4</intlFormat>
   21010         </numberFormat>
   21011       </availableFormats>
   21012       <generalDesc>
   21013         <nationalNumberPattern>[1-9]\d{6,9}</nationalNumberPattern>
   21014         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   21015       </generalDesc>
   21016       <fixedLine>
   21017         <nationalNumberPattern>
   21018           1(?:
   21019             0[1-8]\d{6}|
   21020             [136]\d{5,7}|
   21021             (?:
   21022               2[0-35]|
   21023               4[0-4]|
   21024               5[0-25-9]|
   21025               7[13-6]|
   21026               [89]\d
   21027             )\d{5,6}
   21028           )|
   21029           2(?:
   21030             [136]\d{5,7}|
   21031             (?:
   21032               2[0-7]|
   21033               4[0136-8]|
   21034               5[0138]|
   21035               7[018]|
   21036               8[01]|
   21037               9[0-57]
   21038             )\d{5,6}
   21039           )|
   21040           3(?:
   21041             [356]\d{5,7}|
   21042             (?:
   21043               0[0-4]|
   21044               1\d|
   21045               2[0-25]|
   21046               4[056]|
   21047               7[0-2]|
   21048               8[0-3]|
   21049               9[023]
   21050             )\d{5,6}
   21051           )|
   21052           4(?:
   21053             [0246]\d{5,7}|
   21054             (?:
   21055               1[0-8]|
   21056               3[0135]|
   21057               5[14-79]|
   21058               7[0-246-9]|
   21059               8[0156]|
   21060               9[0-689]
   21061             )\d{5,6}
   21062           )|
   21063           5(?:
   21064             0[0-6]|
   21065             [15][0-5]|
   21066             2[0-68]|
   21067             3[0-4]|
   21068             4\d|
   21069             6[03-5]|
   21070             7[013]|
   21071             8[0-79]|
   21072             9[01]
   21073           )\d{5,6}|
   21074           6(?:
   21075             [03]\d{5,7}|
   21076             (?:
   21077               1[1-3]|
   21078               2[0-4]|
   21079               4[02-57]|
   21080               5[0-37]|
   21081               6[0-3]|
   21082               7[0-2]|
   21083               8[0247]|
   21084               9[0-356]
   21085             )\d{5,6}
   21086           )|
   21087           8\d{6,8}|
   21088           9(?:
   21089             0\d{5,7}|
   21090             (?:
   21091               1[0-68]|
   21092               2\d|
   21093               3[02-59]|
   21094               [45][0-4]|
   21095               [68][01]|
   21096               7[0135-8]
   21097             )\d{5,6}
   21098           )
   21099         </nationalNumberPattern>
   21100         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   21101         <exampleNumber>8123456</exampleNumber>
   21102       </fixedLine>
   21103       <mobile>
   21104         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
   21105         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21106         <exampleNumber>701234567</exampleNumber>
   21107       </mobile>
   21108       <pager>
   21109         <nationalNumberPattern>74\d{7}</nationalNumberPattern>
   21110         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21111         <exampleNumber>741234567</exampleNumber>
   21112       </pager>
   21113       <tollFree>
   21114         <nationalNumberPattern>20\d{4,7}</nationalNumberPattern>
   21115         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   21116         <exampleNumber>201234567</exampleNumber>
   21117       </tollFree>
   21118       <premiumRate>
   21119         <nationalNumberPattern>
   21120           9(?:
   21121             00|
   21122             39|
   21123             44
   21124           )\d{7}
   21125         </nationalNumberPattern>
   21126         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21127         <exampleNumber>9001234567</exampleNumber>
   21128       </premiumRate>
   21129       <sharedCost>
   21130         <nationalNumberPattern>77\d{7}</nationalNumberPattern>
   21131         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21132         <exampleNumber>771234567</exampleNumber>
   21133       </sharedCost>
   21134       <personalNumber>
   21135         <nationalNumberPattern>75\d{7}</nationalNumberPattern>
   21136         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21137         <exampleNumber>751234567</exampleNumber>
   21138       </personalNumber>
   21139       <emergency>
   21140         <nationalNumberPattern>
   21141           112|
   21142           90000
   21143         </nationalNumberPattern>
   21144         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
   21145         <exampleNumber>112</exampleNumber>
   21146       </emergency>
   21147     </territory>
   21148 
   21149     <!-- Singapore -->
   21150     <!-- http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx -->
   21151     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d">
   21152       <availableFormats>
   21153         <numberFormat pattern="([3689]\d{3})(\d{4})">
   21154           <leadingDigits>
   21155             [369]|
   21156             8[1-9]
   21157           </leadingDigits>
   21158           <format>$1 $2</format>
   21159         </numberFormat>
   21160         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
   21161           <leadingDigits>1[89]</leadingDigits>
   21162           <format>$1 $2 $3</format>
   21163         </numberFormat>
   21164         <numberFormat pattern="(7000)(\d{4})(\d{3})">
   21165           <leadingDigits>70</leadingDigits>
   21166           <format>$1 $2 $3</format>
   21167         </numberFormat>
   21168         <numberFormat pattern="(800)(\d{3})(\d{4})">
   21169           <leadingDigits>80</leadingDigits>
   21170           <format>$1 $2 $3</format>
   21171         </numberFormat>
   21172       </availableFormats>
   21173       <generalDesc>
   21174         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
   21175              easily strip off leading "65" country codes. -->
   21176         <nationalNumberPattern>
   21177           [36]\d{7}|
   21178           [17-9]\d{7,10}
   21179         </nationalNumberPattern>
   21180         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
   21181       </generalDesc>
   21182       <fixedLine>
   21183         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
   21184         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21185         <exampleNumber>61234567</exampleNumber>
   21186       </fixedLine>
   21187       <mobile>
   21188         <nationalNumberPattern>
   21189           (?:
   21190             8[1-7]|
   21191             9[0-8]
   21192           )\d{6}
   21193         </nationalNumberPattern>
   21194         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21195         <exampleNumber>81234567</exampleNumber>
   21196       </mobile>
   21197       <tollFree>
   21198         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
   21199         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   21200         <exampleNumber>18001234567</exampleNumber>
   21201       </tollFree>
   21202       <premiumRate>
   21203         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
   21204         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   21205         <exampleNumber>19001234567</exampleNumber>
   21206       </premiumRate>
   21207       <voip>
   21208         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
   21209         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21210         <exampleNumber>31234567</exampleNumber>
   21211       </voip>
   21212       <uan>
   21213         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
   21214              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
   21215              -->
   21216         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
   21217         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   21218         <exampleNumber>70001234567</exampleNumber>
   21219       </uan>
   21220       <shortCode>
   21221         <nationalNumberPattern>
   21222           1(?:
   21223             [0136]\d{2}|
   21224             [89](?:
   21225               [1-9]\d|
   21226               0[1-9]
   21227             )|
   21228             [57]\d{2,3})|
   21229           99[0246-8]
   21230         </nationalNumberPattern>
   21231         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
   21232         <exampleNumber>1312</exampleNumber>
   21233       </shortCode>
   21234       <emergency>
   21235         <nationalNumberPattern>99[359]</nationalNumberPattern>
   21236         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   21237         <exampleNumber>999</exampleNumber>
   21238       </emergency>
   21239     </territory>
   21240 
   21241     <!-- Saint Helena and Tristan da Cunha -->
   21242     <!-- http://www.itu.int/oth/T02020000AF/en -->
   21243     <territory id="SH" countryCode="290" internationalPrefix="00">
   21244       <!-- Numbers are formatted as a block. -->
   21245       <generalDesc>
   21246         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
   21247         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   21248       </generalDesc>
   21249       <fixedLine>
   21250         <nationalNumberPattern>
   21251           (?:
   21252             [2-468]\d|
   21253             7[01]
   21254           )\d{2}
   21255         </nationalNumberPattern>
   21256         <!-- Using St Helena Tourism as the example number. -->
   21257         <exampleNumber>2158</exampleNumber>
   21258       </fixedLine>
   21259       <mobile>
   21260         <nationalNumberPattern>NA</nationalNumberPattern>
   21261         <possibleNumberPattern>NA</possibleNumberPattern>
   21262       </mobile>
   21263       <premiumRate>
   21264         <nationalNumberPattern>
   21265           (?:
   21266             [59]\d|
   21267             7[2-9]
   21268           )\d{2}
   21269         </nationalNumberPattern>
   21270         <exampleNumber>5012</exampleNumber>
   21271       </premiumRate>
   21272       <shortCode>
   21273         <nationalNumberPattern>1\d{2,3}</nationalNumberPattern>
   21274         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   21275         <exampleNumber>1234</exampleNumber>
   21276       </shortCode>
   21277       <emergency>
   21278         <!-- http://www.sthelenatourism.com/pages/fast_facts.html#Emergencies -->
   21279         <nationalNumberPattern>
   21280           9(?:
   21281             11|
   21282             99
   21283           )
   21284         </nationalNumberPattern>
   21285         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   21286         <exampleNumber>999</exampleNumber>
   21287       </emergency>
   21288     </territory>
   21289 
   21290     <!-- Slovenia -->
   21291     <!-- http://www.itu.int/oth/T02020000BE/en -->
   21292     <territory id="SI" countryCode="386" internationalPrefix="00"
   21293                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   21294       <availableFormats>
   21295         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   21296           pattern="(\d)(\d{3})(\d{2})(\d{2})">
   21297           <leadingDigits>
   21298             [12]|
   21299             3[4-8]|
   21300             4[24-8]|
   21301             5[2-8]|
   21302             7[3-8]
   21303           </leadingDigits>
   21304           <format>$1 $2 $3 $4</format>
   21305           </numberFormat>
   21306         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
   21307           <leadingDigits>
   21308             [37][01]|
   21309             4[019]|
   21310             51|
   21311             6
   21312           </leadingDigits>
   21313           <format>$1 $2 $3</format>
   21314           </numberFormat>
   21315         <numberFormat pattern="([89][09])(\d{3,6})">
   21316           <leadingDigits>[89][09]</leadingDigits>
   21317           <format>$1 $2</format>
   21318         </numberFormat>
   21319         <numberFormat pattern="([58]\d{2})(\d{5})">
   21320           <leadingDigits>
   21321             59|
   21322             8[1-3]
   21323           </leadingDigits>
   21324           <format>$1 $2</format>
   21325         </numberFormat>
   21326       </availableFormats>
   21327       <generalDesc>
   21328         <nationalNumberPattern>
   21329           [1-7]\d{6,7}|
   21330           [89]\d{4,7}
   21331         </nationalNumberPattern>
   21332         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
   21333       </generalDesc>
   21334       <fixedLine>
   21335         <nationalNumberPattern>
   21336           (?:
   21337             1\d|
   21338             [25][2-8]|
   21339             3[4-8]|
   21340             4[24-8]|
   21341             7[3-8]
   21342           )\d{6}
   21343         </nationalNumberPattern>
   21344         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   21345         <exampleNumber>11234567</exampleNumber>
   21346       </fixedLine>
   21347       <mobile>
   21348         <!-- We include 049 here - it is VoIP in the plan, but SMS messages have been successfully
   21349              delivered - and it is run by Mobitel. There are also mobile numbers found on the
   21350              internet with this prefix - it is apparently used in Kosovo. Also
   21351              added 068, which is used by the mobile operator bob.si -->
   21352         <nationalNumberPattern>
   21353           (?:
   21354             [37][01]|
   21355             4[019]|
   21356             51|
   21357             6[48]
   21358           )\d{6}
   21359         </nationalNumberPattern>
   21360         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21361         <exampleNumber>31234567</exampleNumber>
   21362       </mobile>
   21363       <tollFree>
   21364         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
   21365         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   21366         <exampleNumber>80123456</exampleNumber>
   21367       </tollFree>
   21368       <premiumRate>
   21369         <!-- Includes televoting, mass calling -->
   21370         <nationalNumberPattern>
   21371           90\d{4,6}|
   21372           89[1-3]\d{2,5}
   21373         </nationalNumberPattern>
   21374         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
   21375         <exampleNumber>90123456</exampleNumber>
   21376       </premiumRate>
   21377       <voip>
   21378         <nationalNumberPattern>
   21379           (?:
   21380             59|
   21381             8[1-3]
   21382           )\d{6}
   21383         </nationalNumberPattern>
   21384         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21385         <exampleNumber>59012345</exampleNumber>
   21386       </voip>
   21387       <emergency>
   21388         <nationalNumberPattern>11[23]</nationalNumberPattern>
   21389         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   21390         <exampleNumber>112</exampleNumber>
   21391       </emergency>
   21392     </territory>
   21393 
   21394     <!-- Svalbard -->
   21395     <!-- Metadata shared with Norway. -->
   21396     <!-- http://www.npt.no/pt_internet/numsys/E.164.pdf -->
   21397     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
   21398       <generalDesc>
   21399         <nationalNumberPattern>
   21400           0\d{4}|
   21401           [4789]\d{7}
   21402         </nationalNumberPattern>
   21403         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
   21404       </generalDesc>
   21405       <fixedLine>
   21406         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
   21407         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21408         <exampleNumber>79123456</exampleNumber>
   21409       </fixedLine>
   21410       <!-- Copied from Norway metadata. -->
   21411       <mobile>
   21412         <nationalNumberPattern>
   21413           (?:
   21414             4[015-8]|
   21415             5[89]|
   21416             9\d
   21417           )\d{6}
   21418         </nationalNumberPattern>
   21419         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21420         <exampleNumber>41234567</exampleNumber>
   21421       </mobile>
   21422       <tollFree>
   21423         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
   21424         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21425         <exampleNumber>80012345</exampleNumber>
   21426       </tollFree>
   21427       <premiumRate>
   21428         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
   21429         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21430         <exampleNumber>82012345</exampleNumber>
   21431       </premiumRate>
   21432       <sharedCost>
   21433         <nationalNumberPattern>
   21434           810(?:
   21435             0[0-6]|
   21436             [2-8]\d
   21437           )\d{3}
   21438         </nationalNumberPattern>
   21439         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21440         <exampleNumber>81021234</exampleNumber>
   21441       </sharedCost>
   21442       <personalNumber>
   21443         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
   21444         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21445         <exampleNumber>88012345</exampleNumber>
   21446       </personalNumber>
   21447       <voip>
   21448         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
   21449         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21450         <exampleNumber>85012345</exampleNumber>
   21451       </voip>
   21452       <uan>
   21453         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
   21454         <nationalNumberPattern>
   21455           0\d{4}|
   21456           81(?:
   21457             0(?:
   21458               0[7-9]|
   21459               1\d
   21460             )|
   21461             5\d{2}
   21462           )\d{3}
   21463         </nationalNumberPattern>
   21464         <exampleNumber>01234</exampleNumber>
   21465       </uan>
   21466       <voicemail>
   21467         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
   21468         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21469         <exampleNumber>81212345</exampleNumber>
   21470       </voicemail>
   21471       <!-- Same as Norway, according to http://kho.unis.no/nordlysstasjon_useful.htm -->
   21472       <emergency>
   21473         <nationalNumberPattern>11[023]</nationalNumberPattern>
   21474         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   21475         <exampleNumber>112</exampleNumber>
   21476       </emergency>
   21477     </territory>
   21478 
   21479     <!-- Slovakia -->
   21480     <!-- http://www.itu.int/oth/T02020000BD/en -->
   21481     <territory id="SK" countryCode="421" internationalPrefix="00"
   21482                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   21483       <availableFormats>
   21484         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
   21485           <leadingDigits>2</leadingDigits>
   21486           <format>$1/$2 $3 $4</format>
   21487         </numberFormat>
   21488         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
   21489           <leadingDigits>[3-5]</leadingDigits>
   21490           <format>$1/$2 $3 $4</format>
   21491         </numberFormat>
   21492         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
   21493           <leadingDigits>[689]</leadingDigits>
   21494           <format>$1 $2 $3</format>
   21495         </numberFormat>
   21496       </availableFormats>
   21497       <generalDesc>
   21498         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
   21499         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21500       </generalDesc>
   21501       <noInternationalDialling>
   21502         <nationalNumberPattern>
   21503           (?:
   21504             8(?:
   21505               00|
   21506               [5-9]\d
   21507             )|
   21508             9(?:
   21509               00|
   21510               [78]\d
   21511             )
   21512           )\d{6}
   21513         </nationalNumberPattern>
   21514         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21515         <exampleNumber>800123456</exampleNumber>
   21516       </noInternationalDialling>
   21517       <fixedLine>
   21518         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
   21519         <exampleNumber>212345678</exampleNumber>
   21520       </fixedLine>
   21521       <mobile>
   21522         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
   21523              deeming it valid for now. -->
   21524         <nationalNumberPattern>
   21525           9(?:
   21526             0[1-8]|
   21527             1[0-24-9]|
   21528             4[0489]
   21529           )\d{6}
   21530         </nationalNumberPattern>
   21531         <exampleNumber>912123456</exampleNumber>
   21532       </mobile>
   21533       <tollFree>
   21534         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   21535         <exampleNumber>800123456</exampleNumber>
   21536       </tollFree>
   21537       <premiumRate>
   21538         <nationalNumberPattern>
   21539           9(?:
   21540             [78]\d{7}|
   21541             00\d{6}
   21542           )
   21543         </nationalNumberPattern>
   21544         <exampleNumber>900123456</exampleNumber>
   21545       </premiumRate>
   21546       <sharedCost>
   21547         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
   21548         <exampleNumber>850123456</exampleNumber>
   21549       </sharedCost>
   21550       <voip>
   21551         <nationalNumberPattern>
   21552           6(?:
   21553             5[0-4]|
   21554             9[0-6]
   21555           )\d{6}
   21556         </nationalNumberPattern>
   21557         <exampleNumber>690123456</exampleNumber>
   21558       </voip>
   21559       <uan>
   21560         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
   21561         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21562         <exampleNumber>961234567</exampleNumber>
   21563       </uan>
   21564       <emergency>
   21565         <nationalNumberPattern>
   21566           1(?:
   21567             12|
   21568             5[058]
   21569           )
   21570         </nationalNumberPattern>
   21571         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   21572         <exampleNumber>112</exampleNumber>
   21573       </emergency>
   21574     </territory>
   21575 
   21576     <!-- Sierra Leone -->
   21577     <!-- http://www.itu.int/oth/T02020000BB/en -->
   21578     <territory id="SL" countryCode="232" internationalPrefix="00"
   21579                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
   21580       <availableFormats>
   21581         <!-- Following formatting of online yellow pages www.leonedirect.com -->
   21582         <numberFormat pattern="(\d{2})(\d{6})">
   21583           <format>$1 $2</format>
   21584         </numberFormat>
   21585       </availableFormats>
   21586       <generalDesc>
   21587         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
   21588         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   21589       </generalDesc>
   21590       <fixedLine>
   21591         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
   21592         <exampleNumber>22221234</exampleNumber>
   21593       </fixedLine>
   21594       <mobile>
   21595         <nationalNumberPattern>
   21596           (?:
   21597             2[15]|
   21598             3[034]|
   21599             4[04]|
   21600             5[05]|
   21601             7[6-9]|
   21602             88
   21603           )\d{6}
   21604         </nationalNumberPattern>
   21605         <exampleNumber>25123456</exampleNumber>
   21606       </mobile>
   21607       <emergency>
   21608         <nationalNumberPattern>
   21609           (?:
   21610             01|
   21611             99
   21612           )9
   21613         </nationalNumberPattern>
   21614         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   21615         <exampleNumber>999</exampleNumber>
   21616       </emergency>
   21617     </territory>
   21618 
   21619     <!-- San Marino -->
   21620     <!-- http://www.itu.int/oth/T02020000B5/en -->
   21621     <!-- http://en.wikipedia.org/wiki/%2B39 (Information about Italy) -->
   21622     <!-- http://en.wikipedia.org/wiki/%2B378-->
   21623     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
   21624          optional when dialling from outside the country; the phone number can be reached both with
   21625          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
   21626          are used to ensure that if the 0549 is not present, it will be added. -->
   21627     <territory id="SM" countryCode="378" internationalPrefix="00"
   21628                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
   21629                leadingZeroPossible="true">
   21630       <availableFormats>
   21631         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   21632           <leadingDigits>[5-7]</leadingDigits>
   21633           <format>$1 $2 $3 $4</format>
   21634         </numberFormat>
   21635         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
   21636         <numberFormat pattern="(0549)(\d{6})">
   21637           <leadingDigits>0</leadingDigits>
   21638           <format>$1 $2</format>
   21639           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
   21640                formatting in international format. -->
   21641           <intlFormat>($1) $2</intlFormat>
   21642         </numberFormat>
   21643         <!-- A rule in case the number has been stored without the leading 0549 necessary for
   21644              fixed-lines. -->
   21645         <numberFormat pattern="(\d{6})">
   21646           <leadingDigits>[89]</leadingDigits>
   21647           <format>0549 $1</format>
   21648           <intlFormat>(0549) $1</intlFormat>
   21649         </numberFormat>
   21650       </availableFormats>
   21651       <generalDesc>
   21652         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
   21653         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   21654       </generalDesc>
   21655       <!-- Example numbers provided by the Telecommunications Services. -->
   21656       <fixedLine>
   21657         <nationalNumberPattern>
   21658           0549(?:
   21659             8[0157-9]|
   21660             9\d
   21661           )\d{4}
   21662         </nationalNumberPattern>
   21663         <exampleNumber>0549886377</exampleNumber>
   21664       </fixedLine>
   21665       <mobile>
   21666         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
   21667         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21668         <exampleNumber>66661212</exampleNumber>
   21669       </mobile>
   21670       <premiumRate>
   21671         <!-- Includes Video Call numbers. -->
   21672         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
   21673         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21674         <exampleNumber>71123456</exampleNumber>
   21675       </premiumRate>
   21676       <voip>
   21677         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
   21678         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21679         <exampleNumber>58001110</exampleNumber>
   21680       </voip>
   21681       <emergency>
   21682         <nationalNumberPattern>11[358]</nationalNumberPattern>
   21683         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   21684         <exampleNumber>113</exampleNumber>
   21685       </emergency>
   21686     </territory>
   21687 
   21688     <!-- Senegal -->
   21689     <!-- http://www.itu.int/oth/T02020000B8/en -->
   21690     <territory id="SN" countryCode="221" internationalPrefix="00">
   21691       <availableFormats>
   21692         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
   21693              the national numbering plan. -->
   21694         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
   21695           <format>$1 $2 $3 $4</format>
   21696         </numberFormat>
   21697       </availableFormats>
   21698       <generalDesc>
   21699         <nationalNumberPattern>[37]\d{8}</nationalNumberPattern>
   21700         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21701       </generalDesc>
   21702       <fixedLine>
   21703         <nationalNumberPattern>
   21704           3(?:
   21705             0(?:
   21706               1[01]|
   21707               80
   21708             )|
   21709             3(?:
   21710               8[1-9]|
   21711               9[2-9]
   21712             )
   21713           )\d{5}
   21714         </nationalNumberPattern>
   21715         <exampleNumber>301012345</exampleNumber>
   21716       </fixedLine>
   21717       <mobile>
   21718         <nationalNumberPattern>
   21719           7(?:
   21720             0(?:
   21721               [01279]0|
   21722               3[03]|
   21723               4[05]|
   21724               5[06]|
   21725               6[03-5]|
   21726               8[029]
   21727             )|
   21728             6(?:
   21729               1[23]|
   21730               2[89]|
   21731               3[3489]|
   21732               4[6-9]|
   21733               5\d|
   21734               6[3-9]|
   21735               7[45]|
   21736               8[3-8]
   21737             )|
   21738             7\d{2}|
   21739             8(?:
   21740               01|
   21741               1[01]
   21742             )
   21743           )\d{5}
   21744         </nationalNumberPattern>
   21745         <exampleNumber>701012345</exampleNumber>
   21746       </mobile>
   21747       <voip>
   21748         <nationalNumberPattern>33301\d{4}</nationalNumberPattern>
   21749         <exampleNumber>333011234</exampleNumber>
   21750       </voip>
   21751       <!-- No emergency numbers information can be found. -->
   21752     </territory>
   21753 
   21754     <!-- Somalia -->
   21755     <!-- http://www.itu.int/oth/T02020000C0/en -->
   21756     <!-- http://en.wikipedia.org/wiki/+252 -->
   21757     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
   21758          information available, and the numerous telecom carriers were previously working under an
   21759          unregulated environment. The extra prefixes were added from the contact phone numbers of
   21760          the countries main telecom operators. We also have received information that a national
   21761          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
   21762          for some operators, so that is included here although we do not use it when formatting. -->
   21763     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
   21764       <availableFormats>
   21765         <!-- These follow formats online, such as www.hortel.net/contact_us.html -->
   21766         <numberFormat pattern="(\d)(\d{6})">
   21767           <leadingDigits>
   21768             2[0-79]|
   21769             [13-5]
   21770           </leadingDigits>
   21771           <format>$1 $2</format>
   21772         </numberFormat>
   21773         <numberFormat pattern="(\d)(\d{7})">
   21774           <leadingDigits>
   21775             24|
   21776             [67]
   21777           </leadingDigits>
   21778           <format>$1 $2</format>
   21779         </numberFormat>
   21780         <numberFormat pattern="(\d{2})(\d{5,7})">
   21781           <leadingDigits>
   21782             15|
   21783             28|
   21784             6[178]|
   21785             9
   21786           </leadingDigits>
   21787           <format>$1 $2</format>
   21788         </numberFormat>
   21789         <numberFormat pattern="(69\d)(\d{6})">
   21790           <leadingDigits>69</leadingDigits>
   21791           <format>$1 $2</format>
   21792         </numberFormat>
   21793       </availableFormats>
   21794       <generalDesc>
   21795         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
   21796         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   21797       </generalDesc>
   21798       <fixedLine>
   21799         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
   21800              here since that is apparently used for mobile. -->
   21801         <nationalNumberPattern>
   21802           (?:
   21803             [134]\d|
   21804             2[0-79]|
   21805             5[57-9]
   21806           )\d{5}
   21807         </nationalNumberPattern>
   21808         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   21809         <!-- Example numbers are test numbers from the document. -->
   21810         <exampleNumber>5522010</exampleNumber>
   21811       </fixedLine>
   21812       <mobile>
   21813         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
   21814              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
   21815              Somtel. 6 followed by only 7 digits is used by Telecom. We have received information
   21816              from Golis Telecom that 90 numbers are extended by 1 digit by becoming 907. -->
   21817         <nationalNumberPattern>
   21818           (?:
   21819             15\d|
   21820             2(?:
   21821               4\d|
   21822               8
   21823             )|
   21824             6[17-9]?\d{2}|
   21825             7\d{2}|
   21826             9(?:
   21827               07|
   21828               1
   21829             )\d
   21830           )\d{5}
   21831         </nationalNumberPattern>
   21832         <exampleNumber>907792024</exampleNumber>
   21833       </mobile>
   21834       <!-- According to the following webpage, there is no emergency number in Somalia:
   21835            http://www.netglobers.com/africa/somalia-emergency-numbers-in-somalia.html -->
   21836     </territory>
   21837 
   21838     <!-- Suriname -->
   21839     <!-- http://www.itu.int/oth/T02020000C5/en -->
   21840     <territory id="SR" countryCode="597" internationalPrefix="00">
   21841       <availableFormats>
   21842         <!-- Following conventions used in the Suriname Yellow Pages. -->
   21843         <numberFormat pattern="(\d{3})(\d{3})">
   21844           <leadingDigits>
   21845             [2-4]|
   21846             5[2-58]
   21847           </leadingDigits>
   21848           <format>$1-$2</format>
   21849         </numberFormat>
   21850         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   21851           <leadingDigits>56</leadingDigits>
   21852           <format>$1-$2-$3</format>
   21853         </numberFormat>
   21854         <numberFormat pattern="(\d{3})(\d{4})">
   21855           <leadingDigits>[6-8]</leadingDigits>
   21856           <format>$1-$2</format>
   21857         </numberFormat>
   21858       </availableFormats>
   21859       <generalDesc>
   21860         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
   21861         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   21862       </generalDesc>
   21863       <fixedLine>
   21864         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
   21865         <nationalNumberPattern>
   21866           (?:
   21867             2[1-3]|
   21868             3[0-7]|
   21869             4\d|
   21870             5[2-58]|
   21871             68\d
   21872           )\d{4}
   21873         </nationalNumberPattern>
   21874         <exampleNumber>211234</exampleNumber>
   21875       </fixedLine>
   21876       <mobile>
   21877         <!-- Adding 74 from numbers found online. -->
   21878         <nationalNumberPattern>
   21879           (?:
   21880             7[1-57]|
   21881             8[1-9]
   21882           )\d{5}
   21883         </nationalNumberPattern>
   21884         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   21885         <exampleNumber>7412345</exampleNumber>
   21886       </mobile>
   21887       <voip>
   21888         <nationalNumberPattern>56\d{4}</nationalNumberPattern>
   21889         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   21890         <exampleNumber>561234</exampleNumber>
   21891       </voip>
   21892       <shortCode>
   21893         <nationalNumberPattern>
   21894           1(?:
   21895             [02-9]\d|
   21896             1[0-46-9]|
   21897             \d{3}
   21898           )
   21899         </nationalNumberPattern>
   21900         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   21901         <exampleNumber>1234</exampleNumber>
   21902       </shortCode>
   21903       <emergency>
   21904         <nationalNumberPattern>115</nationalNumberPattern>
   21905         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   21906         <exampleNumber>115</exampleNumber>
   21907       </emergency>
   21908     </territory>
   21909 
   21910     <!-- South Sudan -->
   21911     <!-- http://www.itu.int/oth/T02020000F9/en -->
   21912     <!-- http://en.wikipedia.org/wiki/+211 -->
   21913     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
   21914       <availableFormats>
   21915         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
   21916           <format>$1 $2 $3</format>
   21917         </numberFormat>
   21918       </availableFormats>
   21919       <generalDesc>
   21920         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
   21921         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21922       </generalDesc>
   21923       <fixedLine>
   21924         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
   21925         <exampleNumber>181234567</exampleNumber>
   21926       </fixedLine>
   21927       <mobile>
   21928         <nationalNumberPattern>
   21929           (?:
   21930             12|
   21931             9[1257]
   21932           )\d{7}
   21933         </nationalNumberPattern>
   21934         <exampleNumber>977123456</exampleNumber>
   21935       </mobile>
   21936     </territory>
   21937 
   21938     <!-- Sao Tome and Principe -->
   21939     <!-- http://www.itu.int/oth/T02020000B6/en -->
   21940     <territory id="ST" countryCode="239" internationalPrefix="00">
   21941       <availableFormats>
   21942         <numberFormat pattern="(\d{3})(\d{4})">
   21943           <format>$1 $2</format>
   21944         </numberFormat>
   21945       </availableFormats>
   21946       <generalDesc>
   21947         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
   21948         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   21949       </generalDesc>
   21950       <fixedLine>
   21951         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
   21952         <exampleNumber>2221234</exampleNumber>
   21953       </fixedLine>
   21954       <mobile>
   21955         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
   21956         <exampleNumber>9812345</exampleNumber>
   21957       </mobile>
   21958       <emergency>
   21959         <!-- http://www.netglobers.com/africa/s%C3%A3o-tome-and-principe-emergency-numbers-in-s%C3%A3o-tome-and-principe.html
   21960              -->
   21961         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1010.html -->
   21962         <!-- http://www.tipredaktion.net/consumer/lufthansa_en/tip-ST-1.html -->
   21963         <!-- Emergency numbers longer than 3 digits covered by fixed-line. -->
   21964         <nationalNumberPattern>112</nationalNumberPattern>
   21965         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   21966         <exampleNumber>112</exampleNumber>
   21967       </emergency>
   21968     </territory>
   21969 
   21970     <!-- El Salvador -->
   21971     <!-- http://www.itu.int/oth/T020200003F/en -->
   21972     <!-- http://www.siget.gob.sv/BusquedaPublica.aspx?pagina=3&tipo=27&titulo=t8§or=2&ordenar=&dir=DESC
   21973          -->
   21974     <territory id="SV" countryCode="503" internationalPrefix="00">
   21975       <availableFormats>
   21976         <numberFormat pattern="(\d{4})(\d{4})">
   21977           <leadingDigits>[267]</leadingDigits>
   21978           <format>$1 $2</format>
   21979         </numberFormat>
   21980         <numberFormat pattern="(\d{3})(\d{4})">
   21981           <leadingDigits>[89]</leadingDigits>
   21982           <format>$1 $2</format>
   21983         </numberFormat>
   21984         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
   21985           <leadingDigits>[89]</leadingDigits>
   21986           <format>$1 $2 $3</format>
   21987         </numberFormat>
   21988       </availableFormats>
   21989       <generalDesc>
   21990         <nationalNumberPattern>
   21991           [267]\d{7}|
   21992           [89]\d{6}(?:\d{4})?
   21993         </nationalNumberPattern>
   21994         <possibleNumberPattern>
   21995           \d{7,8}|
   21996           \d{11}
   21997         </possibleNumberPattern>
   21998       </generalDesc>
   21999       <fixedLine>
   22000         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
   22001         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
   22002         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22003         <exampleNumber>21234567</exampleNumber>
   22004       </fixedLine>
   22005       <mobile>
   22006         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
   22007         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22008         <exampleNumber>70123456</exampleNumber>
   22009       </mobile>
   22010       <tollFree>
   22011         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
   22012         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
   22013         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
   22014         <exampleNumber>8001234</exampleNumber>
   22015       </tollFree>
   22016       <premiumRate>
   22017         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
   22018         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
   22019         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
   22020         <exampleNumber>9001234</exampleNumber>
   22021       </premiumRate>
   22022       <emergency>
   22023         <nationalNumberPattern>911</nationalNumberPattern>
   22024         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22025         <exampleNumber>911</exampleNumber>
   22026       </emergency>
   22027     </territory>
   22028 
   22029     <!-- Sint Maarten -->
   22030     <!-- http://www.nanpa.com/pdf/PL_429.pdf -->
   22031     <!-- http://www.itu.int/oth/T02020000F7/en -->
   22032     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
   22033                internationalPrefix="011">
   22034       <generalDesc>
   22035         <!-- NANPA country - uses US formatting rules -->
   22036         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
   22037         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   22038       </generalDesc>
   22039       <fixedLine>
   22040         <nationalNumberPattern>
   22041           7215(?:
   22042             4[2-8]|
   22043             8[239]|
   22044             9[056]
   22045           )\d{4}
   22046         </nationalNumberPattern>
   22047         <exampleNumber>7215425678</exampleNumber>
   22048       </fixedLine>
   22049       <mobile>
   22050         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
   22051              include these as mobile numbers. -->
   22052         <nationalNumberPattern>
   22053           7215(?:
   22054             1[02]|
   22055             2\d|
   22056             5[034679]|
   22057             8[014-8]
   22058           )\d{4}
   22059         </nationalNumberPattern>
   22060         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22061         <exampleNumber>7215205678</exampleNumber>
   22062       </mobile>
   22063       <tollFree>
   22064         <nationalNumberPattern>
   22065           8(?:
   22066             00|
   22067             55|
   22068             66|
   22069             77|
   22070             88
   22071           )[2-9]\d{6}
   22072         </nationalNumberPattern>
   22073         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22074         <exampleNumber>8002123456</exampleNumber>
   22075       </tollFree>
   22076       <premiumRate>
   22077         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   22078         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22079         <exampleNumber>9002123456</exampleNumber>
   22080       </premiumRate>
   22081       <personalNumber>
   22082         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   22083         <nationalNumberPattern>
   22084           5(?:
   22085             00|
   22086             33|
   22087             44
   22088           )[2-9]\d{6}
   22089         </nationalNumberPattern>
   22090         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22091         <exampleNumber>5002345678</exampleNumber>
   22092       </personalNumber>
   22093       <emergency>
   22094         <!-- http://experiencestmartin.com/islandfacts/telephones.html -->
   22095         <nationalNumberPattern>919</nationalNumberPattern>
   22096         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22097         <exampleNumber>919</exampleNumber>
   22098       </emergency>
   22099     </territory>
   22100 
   22101     <!-- Syrian Arab Republic -->
   22102     <!-- http://www.itu.int/oth/T02020000C9/en -->
   22103     <!-- http://en.wikipedia.org/wiki/%2B963 -->
   22104     <territory id="SY" countryCode="963" internationalPrefix="00"
   22105                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   22106                nationalPrefixOptionalWhenFormatting="true">
   22107       <availableFormats>
   22108         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   22109           <leadingDigits>[1-5]</leadingDigits>
   22110           <format>$1 $2 $3</format>
   22111         </numberFormat>
   22112         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
   22113           <leadingDigits>9</leadingDigits>
   22114           <format>$1 $2 $3</format>
   22115         </numberFormat>
   22116       </availableFormats>
   22117       <generalDesc>
   22118         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
   22119         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   22120       </generalDesc>
   22121       <fixedLine>
   22122         <nationalNumberPattern>
   22123           (?:
   22124             1(?:
   22125               1\d?|
   22126               4\d|
   22127               [2356]
   22128             )|
   22129             2[1-35]|
   22130             3(?:
   22131               [13]\d|
   22132               4
   22133             )|
   22134             4[13]|
   22135             5[1-3]
   22136           )\d{6}
   22137         </nationalNumberPattern>
   22138         <exampleNumber>112345678</exampleNumber>
   22139       </fixedLine>
   22140       <mobile>
   22141         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
   22142              95[138], and 96[05]. -->
   22143         <nationalNumberPattern>
   22144           9(?:
   22145             22|
   22146             [35][0-8]|
   22147             4\d|
   22148             6[024-9]|
   22149             88|
   22150             9[0-489]
   22151           )\d{6}
   22152         </nationalNumberPattern>
   22153         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   22154         <exampleNumber>944567890</exampleNumber>
   22155       </mobile>
   22156       <!-- No tollFree or premiumRate information can be found. -->
   22157       <emergency>
   22158         <nationalNumberPattern>11[023]</nationalNumberPattern>
   22159         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22160         <exampleNumber>112</exampleNumber>
   22161       </emergency>
   22162     </territory>
   22163 
   22164     <!-- Swaziland -->
   22165     <!-- http://www.itu.int/oth/T02020000C6/en -->
   22166     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
   22167       <availableFormats>
   22168         <numberFormat pattern="(\d{4})(\d{4})">
   22169           <leadingDigits>[027]</leadingDigits>
   22170           <format>$1 $2</format>
   22171         </numberFormat>
   22172       </availableFormats>
   22173       <generalDesc>
   22174         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
   22175         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22176       </generalDesc>
   22177       <noInternationalDialling>
   22178         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
   22179         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22180         <exampleNumber>08001234</exampleNumber>
   22181       </noInternationalDialling>
   22182       <fixedLine>
   22183         <nationalNumberPattern>
   22184           2(?:
   22185             2(?:
   22186               0[07]|
   22187               [13]7|
   22188               2[57]
   22189             )|
   22190             3(?:
   22191               0[34]|
   22192               [1278]3|
   22193               3[23]|
   22194               [46][34]
   22195             )|
   22196             (?:
   22197               40[4-69]|
   22198               67
   22199             )|
   22200             5(?:
   22201               0[5-7]|
   22202               1[6-9]|
   22203               [23][78]|
   22204               48|
   22205               5[01]
   22206             )
   22207           )\d{4}
   22208         </nationalNumberPattern>
   22209         <exampleNumber>22171234</exampleNumber>
   22210       </fixedLine>
   22211       <mobile>
   22212         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
   22213         <exampleNumber>76123456</exampleNumber>
   22214       </mobile>
   22215       <tollFree>
   22216         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
   22217         <exampleNumber>08001234</exampleNumber>
   22218       </tollFree>
   22219       <emergency>
   22220         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1031.html -->
   22221         <!-- http://swaziland.usembassy.gov/information_for_travelers.html -->
   22222         <nationalNumberPattern>999</nationalNumberPattern>
   22223         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22224         <exampleNumber>999</exampleNumber>
   22225       </emergency>
   22226     </territory>
   22227 
   22228     <!-- Turks and Caicos Islands -->
   22229     <!-- http://www.itu.int/oth/T02020000D8/en -->
   22230     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
   22231                internationalPrefix="011">
   22232       <generalDesc>
   22233         <!-- NANPA country - uses US formatting rules -->
   22234         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   22235         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   22236       </generalDesc>
   22237       <fixedLine>
   22238         <nationalNumberPattern>
   22239           649(?:
   22240             712|
   22241             9(?:
   22242               4\d|
   22243               50
   22244             )
   22245           )\d{4}
   22246         </nationalNumberPattern>
   22247         <exampleNumber>6497121234</exampleNumber>
   22248       </fixedLine>
   22249       <mobile>
   22250         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
   22251         <nationalNumberPattern>
   22252           649(?:
   22253             2(?:
   22254               3[129]|
   22255               4[1-7]
   22256             )|
   22257             3(?:
   22258               3[1-389]|
   22259               4[1-7]
   22260             )|
   22261             4[34][12]
   22262           )\d{4}
   22263         </nationalNumberPattern>
   22264         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22265         <exampleNumber>6492311234</exampleNumber>
   22266       </mobile>
   22267       <tollFree>
   22268         <nationalNumberPattern>
   22269           8(?:
   22270             00|
   22271             55|
   22272             66|
   22273             77|
   22274             88
   22275           )[2-9]\d{6}
   22276         </nationalNumberPattern>
   22277         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22278         <exampleNumber>8002345678</exampleNumber>
   22279       </tollFree>
   22280       <premiumRate>
   22281         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   22282         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22283         <exampleNumber>9002345678</exampleNumber>
   22284       </premiumRate>
   22285       <personalNumber>
   22286         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   22287         <nationalNumberPattern>
   22288           5(?:
   22289             00|
   22290             33|
   22291             44
   22292           )[2-9]\d{6}
   22293         </nationalNumberPattern>
   22294         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22295         <exampleNumber>5002345678</exampleNumber>
   22296       </personalNumber>
   22297       <voip>
   22298         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
   22299         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22300         <exampleNumber>6497101234</exampleNumber>
   22301       </voip>
   22302       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   22303       <!-- http://s2.turksandcaicosyp.com/Turks-Caicos/Government/2/book -->
   22304       <emergency>
   22305         <nationalNumberPattern>
   22306           9(?:
   22307             11|
   22308             99
   22309           )
   22310         </nationalNumberPattern>
   22311         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22312         <exampleNumber>911</exampleNumber>
   22313       </emergency>
   22314     </territory>
   22315 
   22316     <!-- Chad -->
   22317     <!-- http://www.itu.int/oth/T0202000029/en -->
   22318     <!-- The international prefix includes 16 as the international manual exchange. -->
   22319     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
   22320                internationalPrefix="00|16">
   22321       <availableFormats>
   22322         <numberFormat
   22323           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   22324           <format>$1 $2 $3 $4</format>
   22325         </numberFormat>
   22326       </availableFormats>
   22327       <generalDesc>
   22328         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
   22329         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22330       </generalDesc>
   22331       <fixedLine>
   22332         <nationalNumberPattern>
   22333           22(?:
   22334             [3789]0|
   22335             5[0-5]|
   22336             6[89]
   22337           )\d{4}
   22338         </nationalNumberPattern>
   22339         <exampleNumber>22501234</exampleNumber>
   22340       </fixedLine>
   22341       <mobile>
   22342         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
   22343              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
   22344              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
   22345         <nationalNumberPattern>
   22346           (?:
   22347             6[02368]\d|
   22348             77\d|
   22349             9(?:
   22350               5[0-4]|
   22351               9\d
   22352             )
   22353           )\d{5}
   22354         </nationalNumberPattern>
   22355         <exampleNumber>63012345</exampleNumber>
   22356       </mobile>
   22357       <emergency>
   22358         <nationalNumberPattern>1[78]</nationalNumberPattern>
   22359         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   22360         <exampleNumber>17</exampleNumber>
   22361       </emergency>
   22362     </territory>
   22363 
   22364     <!-- French Southern Territories -->
   22365     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
   22366     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
   22367          temporary inhabitants. -->
   22368 
   22369     <!-- Togo -->
   22370     <!-- http://www.itu.int/oth/T02020000D1/en -->
   22371     <territory id="TG" countryCode="228" internationalPrefix="00">
   22372       <availableFormats>
   22373         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   22374           <format>$1 $2 $3 $4</format>
   22375         </numberFormat>
   22376       </availableFormats>
   22377       <generalDesc>
   22378         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
   22379         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22380       </generalDesc>
   22381       <fixedLine>
   22382         <nationalNumberPattern>
   22383           2(?:
   22384             2[2-7]|
   22385             3[23]|
   22386             44|
   22387             55|
   22388             66|
   22389             77
   22390           )\d{5}
   22391         </nationalNumberPattern>
   22392         <exampleNumber>22212345</exampleNumber>
   22393       </fixedLine>
   22394       <mobile>
   22395         <nationalNumberPattern>9[0-289]\d{6}</nationalNumberPattern>
   22396         <exampleNumber>90112345</exampleNumber>
   22397       </mobile>
   22398       <emergency>
   22399         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1041.html -->
   22400         <!-- http://www.netglobers.com/africa/togo-emergency-numbers-in-togo.html -->
   22401         <!-- http://www.mapsofworld.com/togo/information/emergency-numbers.html -->
   22402         <nationalNumberPattern>
   22403           1(?:
   22404             01|
   22405             1[78]|
   22406             7[17]
   22407           )
   22408         </nationalNumberPattern>
   22409         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22410         <exampleNumber>117</exampleNumber>
   22411       </emergency>
   22412     </territory>
   22413 
   22414     <!-- Thailand -->
   22415     <!-- http://www.itu.int/oth/T02020000CD/en -->
   22416     <!-- http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf -->
   22417     <territory id="TH" countryCode="66" internationalPrefix="00"
   22418                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   22419       <availableFormats>
   22420         <!-- Formatting patterns from wikipedia and the document itself -
   22421              http://en.wikipedia.org/wiki/%2B66 -->
   22422         <numberFormat pattern="(2)(\d{3})(\d{4})">
   22423           <leadingDigits>2</leadingDigits>
   22424           <format>$1 $2 $3</format>
   22425         </numberFormat>
   22426         <numberFormat pattern="([3-9]\d)(\d{3})(\d{3,4})">
   22427           <leadingDigits>[3-9]</leadingDigits>
   22428           <format>$1 $2 $3</format>
   22429         </numberFormat>
   22430         <numberFormat nationalPrefixFormattingRule="$FG"
   22431           pattern="(1[89]00)(\d{3})(\d{3})">
   22432           <leadingDigits>1</leadingDigits>
   22433           <format>$1 $2 $3</format>
   22434         </numberFormat>
   22435       </availableFormats>
   22436       <generalDesc>
   22437         <nationalNumberPattern>
   22438           [2-9]\d{7,8}|
   22439           1\d{3}(?:\d{6})?
   22440         </nationalNumberPattern>
   22441         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
   22442       </generalDesc>
   22443       <noInternationalDialling>
   22444         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
   22445         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   22446         <exampleNumber>1100</exampleNumber>
   22447       </noInternationalDialling>
   22448       <fixedLine>
   22449         <nationalNumberPattern>
   22450           (?:
   22451             2[1-9]|
   22452             3[2-9]|
   22453             4[2-5]|
   22454             5[2-6]|
   22455             7[3-7]
   22456           )\d{6}
   22457         </nationalNumberPattern>
   22458         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22459         <exampleNumber>21234567</exampleNumber>
   22460       </fixedLine>
   22461       <mobile>
   22462         <nationalNumberPattern>[89]\d{8}</nationalNumberPattern>
   22463         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   22464         <exampleNumber>812345678</exampleNumber>
   22465       </mobile>
   22466       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
   22467       <tollFree>
   22468         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
   22469         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22470         <exampleNumber>1800123456</exampleNumber>
   22471       </tollFree>
   22472       <premiumRate>
   22473         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
   22474         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22475         <exampleNumber>1900123456</exampleNumber>
   22476       </premiumRate>
   22477       <voip>
   22478         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
   22479              online to suggest they are actually used as mobile numbers -->
   22480         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
   22481         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   22482         <exampleNumber>601234567</exampleNumber>
   22483       </voip>
   22484       <uan>
   22485         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
   22486              their costs range from free to 6 Baht/min. -->
   22487         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
   22488         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   22489         <exampleNumber>1100</exampleNumber>
   22490       </uan>
   22491       <emergency>
   22492         <nationalNumberPattern>
   22493           1(?:
   22494             669|
   22495             9[19]
   22496           )
   22497         </nationalNumberPattern>
   22498         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
   22499         <exampleNumber>191</exampleNumber>
   22500       </emergency>
   22501     </territory>
   22502 
   22503     <!-- Tajikistan -->
   22504     <!-- http://www.itu.int/oth/T02020000CA/en -->
   22505     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
   22506                internationalPrefix="810" nationalPrefix="8"
   22507                nationalPrefixFormattingRule="($NP) $FG"
   22508                nationalPrefixOptionalWhenFormatting="true">
   22509       <availableFormats>
   22510         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
   22511           <leadingDigits>
   22512             [34]7|
   22513             91[78]
   22514           </leadingDigits>
   22515           <format>$1 $2 $3</format>
   22516         </numberFormat>
   22517         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
   22518           <leadingDigits>
   22519             4[48]|
   22520             5|
   22521             9(?:
   22522               1[59]|
   22523               [0235-9]
   22524             )
   22525           </leadingDigits>
   22526           <format>$1 $2 $3</format>
   22527         </numberFormat>
   22528         <numberFormat pattern="(331700)(\d)(\d{2})">
   22529           <leadingDigits>331</leadingDigits>
   22530           <leadingDigits>3317</leadingDigits>
   22531           <leadingDigits>33170</leadingDigits>
   22532           <leadingDigits>331700</leadingDigits>
   22533           <format>$1 $2 $3</format>
   22534         </numberFormat>
   22535         <numberFormat pattern="(\d{4})(\d)(\d{4})">
   22536           <leadingDigits>3[1-5]</leadingDigits>
   22537           <leadingDigits>
   22538             3(?:
   22539               [1245]|
   22540               3(?:
   22541                 [02-9]|
   22542                 1[0-589]
   22543               )
   22544             )
   22545           </leadingDigits>
   22546           <format>$1 $2 $3</format>
   22547         </numberFormat>
   22548       </availableFormats>
   22549       <generalDesc>
   22550         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
   22551         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
   22552       </generalDesc>
   22553       <fixedLine>
   22554         <nationalNumberPattern>
   22555           (?:
   22556             3(?:
   22557               1[3-5]|
   22558               2[245]|
   22559               3[12]|
   22560               4[24-7]|
   22561               5[25]|
   22562               72
   22563             )|
   22564             4(?:
   22565               46|
   22566               74|
   22567               87
   22568             )
   22569           )\d{6}
   22570         </nationalNumberPattern>
   22571         <exampleNumber>372123456</exampleNumber>
   22572       </fixedLine>
   22573       <mobile>
   22574         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
   22575              numbers, and 501 for TCell. -->
   22576         <nationalNumberPattern>
   22577           (?:
   22578             50[15]|
   22579             9[0-35-9]\d
   22580           )\d{6}
   22581         </nationalNumberPattern>
   22582         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   22583         <exampleNumber>917123456</exampleNumber>
   22584       </mobile>
   22585       <!-- No tollFree or premiumRate information can be found. -->
   22586       <emergency>
   22587         <nationalNumberPattern>
   22588           1(?:
   22589             0[1-3]|
   22590             12
   22591           )
   22592         </nationalNumberPattern>
   22593         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22594         <exampleNumber>112</exampleNumber>
   22595       </emergency>
   22596     </territory>
   22597 
   22598     <!-- Tokelau -->
   22599     <!-- http://www.itu.int/oth/T02020000D2/en -->
   22600     <territory id="TK" countryCode="690" internationalPrefix="00">
   22601       <generalDesc>
   22602         <nationalNumberPattern>[2-5]\d{3}</nationalNumberPattern>
   22603         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   22604       </generalDesc>
   22605       <fixedLine>
   22606         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
   22607         <!-- The example number is the contact number from the ITU document. -->
   22608         <exampleNumber>3010</exampleNumber>
   22609       </fixedLine>
   22610       <mobile>
   22611         <nationalNumberPattern>5\d{3}</nationalNumberPattern>
   22612         <exampleNumber>5190</exampleNumber>
   22613       </mobile>
   22614       <!-- No evidence that any emergency numbers exist for this tiny island has been found. -->
   22615     </territory>
   22616 
   22617     <!-- Timor-Leste (East Timor) -->
   22618     <!-- http://www.itu.int/oth/T02020000D0/en -->
   22619     <territory id="TL" countryCode="670" internationalPrefix="00">
   22620       <availableFormats>
   22621         <numberFormat pattern="(\d{3})(\d{4})">
   22622           <leadingDigits>[2-489]</leadingDigits>
   22623           <format>$1 $2</format>
   22624         </numberFormat>
   22625         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
   22626              them. If we see another pattern being used, we should change this later. -->
   22627         <numberFormat pattern="(\d{4})(\d{4})">
   22628           <leadingDigits>7</leadingDigits>
   22629           <format>$1 $2</format>
   22630         </numberFormat>
   22631       </availableFormats>
   22632       <generalDesc>
   22633         <nationalNumberPattern>
   22634           [2-489]\d{6}|
   22635           7\d{6,7}
   22636         </nationalNumberPattern>
   22637         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   22638       </generalDesc>
   22639       <fixedLine>
   22640         <nationalNumberPattern>
   22641           (?:
   22642             2[1-5]|
   22643             3[1-9]|
   22644             4[1-4]
   22645           )\d{5}
   22646         </nationalNumberPattern>
   22647         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   22648         <exampleNumber>2112345</exampleNumber>
   22649       </fixedLine>
   22650       <mobile>
   22651         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
   22652         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22653         <exampleNumber>77212345</exampleNumber>
   22654       </mobile>
   22655       <tollFree>
   22656         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
   22657         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   22658         <exampleNumber>8012345</exampleNumber>
   22659       </tollFree>
   22660       <premiumRate>
   22661         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
   22662         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   22663         <exampleNumber>9012345</exampleNumber>
   22664       </premiumRate>
   22665       <!-- We don't include paging or voicemail because the identified paging range was used by
   22666            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
   22667            numbers, or if the range was indeed previously used for voicemail at all. -->
   22668       <personalNumber>
   22669         <!-- We presume this wasn't affected by the numbering plan update. -->
   22670         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
   22671         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   22672         <exampleNumber>7012345</exampleNumber>
   22673       </personalNumber>
   22674       <shortCode>
   22675         <nationalNumberPattern>
   22676           1(?:
   22677             0[02]|
   22678             2[0138]|
   22679             72|
   22680             9[07]
   22681           )
   22682         </nationalNumberPattern>
   22683         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22684         <exampleNumber>102</exampleNumber>
   22685       </shortCode>
   22686       <emergency>
   22687         <nationalNumberPattern>11[25]</nationalNumberPattern>
   22688         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22689         <exampleNumber>112</exampleNumber>
   22690       </emergency>
   22691     </territory>
   22692 
   22693     <!-- Turkmenistan -->
   22694     <!-- http://www.itu.int/oth/T02020000D7/en -->
   22695     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan -->
   22696     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
   22697                internationalPrefix="810" nationalPrefix="8"
   22698                nationalPrefixFormattingRule="($NP $FG)">
   22699       <availableFormats>
   22700         <!-- There doesn't seem to be a standardized format. The format below is based on the
   22701              Turkmenistan embassy at
   22702              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
   22703           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   22704             <leadingDigits>12</leadingDigits>
   22705             <format>$1 $2-$3-$4</format>
   22706           </numberFormat>
   22707           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
   22708             <leadingDigits>6</leadingDigits>
   22709             <format>$1 $2</format>
   22710           </numberFormat>
   22711           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
   22712             <leadingDigits>
   22713               13|
   22714               [2-5]
   22715             </leadingDigits>
   22716             <format>$1 $2-$3-$4</format>
   22717           </numberFormat>
   22718       </availableFormats>
   22719       <generalDesc>
   22720         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
   22721         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22722       </generalDesc>
   22723       <fixedLine>
   22724         <!-- Additional prefixes from the wikipedia page. -->
   22725         <nationalNumberPattern>
   22726           (?:
   22727             1(?:
   22728               2\d|
   22729               3[1-9]
   22730             )|
   22731             2(?:
   22732               22|
   22733               4[0-35-8]
   22734             )|
   22735             3(?:
   22736               22|
   22737               4[03-9]
   22738             )|
   22739             4(?:
   22740               22|
   22741               3[128]|
   22742               4\d|
   22743               6[15]
   22744             )|
   22745             5(?:
   22746               22|
   22747               5[7-9]|
   22748               6[014-689]
   22749             )
   22750           )\d{5}
   22751         </nationalNumberPattern>
   22752         <exampleNumber>12345678</exampleNumber>
   22753       </fixedLine>
   22754       <mobile>
   22755         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
   22756              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
   22757              has been suspended. It is unclear whether it will resume. We support both ranges in the
   22758              meantime. -->
   22759         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
   22760         <exampleNumber>66123456</exampleNumber>
   22761       </mobile>
   22762       <!-- No tollFree or premiumRate information can be found. -->
   22763       <emergency>
   22764         <!-- http://www.netglobers.com/asia/turkmenistan-emergency-numbers-in-turkmenistan.html
   22765              http://www.voyage.gc.ca/countries_pays/report_rapport-eng.asp?id=301000 -->
   22766         <nationalNumberPattern>0[1-3]</nationalNumberPattern>
   22767         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   22768         <exampleNumber>03</exampleNumber>
   22769       </emergency>
   22770     </territory>
   22771 
   22772     <!-- Tunisia -->
   22773     <!-- http://www.itu.int/oth/T02020000D5/en -->
   22774     <territory id="TN" countryCode="216" internationalPrefix="00">
   22775       <availableFormats>
   22776         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   22777           <format>$1 $2 $3</format>
   22778         </numberFormat>
   22779       </availableFormats>
   22780       <generalDesc>
   22781         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
   22782         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   22783       </generalDesc>
   22784       <fixedLine>
   22785         <!-- We support the whole 81 prefix here instead of just 81200 as
   22786              indicated in the ITU doc, as more real phone numbers have been
   22787              found online. -->
   22788         <nationalNumberPattern>
   22789           (?:
   22790             3[012]|
   22791             7\d|
   22792             81
   22793           )\d{6}
   22794         </nationalNumberPattern>
   22795         <exampleNumber>71234567</exampleNumber>
   22796       </fixedLine>
   22797       <mobile>
   22798         <nationalNumberPattern>
   22799           (?:
   22800             [259]\d|
   22801             4[0-2]
   22802           )\d{6}
   22803         </nationalNumberPattern>
   22804         <exampleNumber>20123456</exampleNumber>
   22805       </mobile>
   22806       <!-- These are listed as 'value added services' - pending further information, we add them
   22807            here for now. -->
   22808       <premiumRate>
   22809         <nationalNumberPattern>8[028]\d{6}</nationalNumberPattern>
   22810         <exampleNumber>80123456</exampleNumber>
   22811       </premiumRate>
   22812       <emergency>
   22813         <nationalNumberPattern>19[078]</nationalNumberPattern>
   22814         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22815         <exampleNumber>197</exampleNumber>
   22816       </emergency>
   22817     </territory>
   22818 
   22819     <!-- Tonga -->
   22820     <!-- http://www.itu.int/oth/T02020000D3/en -->
   22821     <!-- http://www.wtng.info/wtng-676-to.html -->
   22822     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
   22823       <availableFormats>
   22824         <numberFormat pattern="(\d{2})(\d{3})">
   22825           <leadingDigits>
   22826             [1-6]|
   22827             7[0-4]|
   22828             8[05]
   22829           </leadingDigits>
   22830           <format>$1-$2</format>
   22831         </numberFormat>
   22832         <numberFormat pattern="(\d{3})(\d{4})">
   22833           <leadingDigits>
   22834             7[5-9]|
   22835             8[7-9]
   22836           </leadingDigits>
   22837           <format>$1 $2</format>
   22838         </numberFormat>
   22839         <numberFormat pattern="(\d{4})(\d{3})">
   22840           <leadingDigits>0</leadingDigits>
   22841           <format>$1 $2</format>
   22842         </numberFormat>
   22843       </availableFormats>
   22844       <generalDesc>
   22845         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
   22846         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   22847       </generalDesc>
   22848       <fixedLine>
   22849         <nationalNumberPattern>
   22850           (?:
   22851             2\d|
   22852             3[1-8]|
   22853             4[1-4]|
   22854             [56]0|
   22855             7[0149]|
   22856             8[05]
   22857           )\d{3}
   22858         </nationalNumberPattern>
   22859         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   22860         <exampleNumber>20123</exampleNumber>
   22861       </fixedLine>
   22862       <mobile>
   22863         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
   22864              in their ITU document. Numbers with a prefix of "75" have also been found. -->
   22865         <nationalNumberPattern>
   22866           (?:
   22867             7[578]|
   22868             8[7-9]
   22869           )\d{5}
   22870         </nationalNumberPattern>
   22871         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   22872         <exampleNumber>7715123</exampleNumber>
   22873       </mobile>
   22874       <tollFree>
   22875         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
   22876         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   22877         <exampleNumber>0800222</exampleNumber>
   22878       </tollFree>
   22879       <emergency>
   22880         <!-- http://www.tongaholiday.com/?page_id=2034 -->
   22881         <nationalNumberPattern>
   22882           9(?:
   22883             11|
   22884             22|
   22885             33|
   22886             99
   22887           )
   22888         </nationalNumberPattern>
   22889         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   22890         <exampleNumber>911</exampleNumber>
   22891       </emergency>
   22892     </territory>
   22893 
   22894     <!-- Turkey -->
   22895     <!-- http://en.wikipedia.org/wiki/%2B90 -->
   22896     <!-- http://www.itu.int/oth/T02020000D6/en -->
   22897     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0">
   22898       <availableFormats>
   22899         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
   22900           nationalPrefixOptionalWhenFormatting="true">
   22901           <leadingDigits>
   22902             [23]|
   22903             4(?:
   22904               [0-35-9]|
   22905               4[0-35-9]
   22906             )
   22907           </leadingDigits>
   22908           <format>$1 $2 $3</format>
   22909         </numberFormat>
   22910         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
   22911           nationalPrefixOptionalWhenFormatting="true">
   22912           <leadingDigits>[589]</leadingDigits>
   22913           <format>$1 $2 $3</format>
   22914         </numberFormat>
   22915         <numberFormat pattern="(444)(\d{1})(\d{3})">
   22916           <leadingDigits>444</leadingDigits>
   22917           <format>$1 $2 $3</format>
   22918         </numberFormat>
   22919       </availableFormats>
   22920       <generalDesc>
   22921         <nationalNumberPattern>
   22922           [2-589]\d{9}|
   22923           444\d{4}
   22924         </nationalNumberPattern>
   22925         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   22926       </generalDesc>
   22927       <noInternationalDialling>
   22928         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
   22929         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   22930         <exampleNumber>4441444</exampleNumber>
   22931       </noInternationalDialling>
   22932       <fixedLine>
   22933         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
   22934         <nationalNumberPattern>
   22935           (?:
   22936             2(?:
   22937               [13][26]|
   22938               [28][2468]|
   22939               [45][268]|
   22940               [67][246]
   22941             )|
   22942             3(?:
   22943               [13][28]|
   22944               [24-6][2468]|
   22945               [78][02468]|
   22946               92
   22947             )|
   22948             4(?:
   22949               [16][246]|
   22950               [23578][2468]|
   22951               4[26]
   22952             )
   22953           )\d{7}
   22954         </nationalNumberPattern>
   22955         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22956         <exampleNumber>2123456789</exampleNumber>
   22957       </fixedLine>
   22958       <mobile>
   22959         <!-- There are some differences between the Turkish and English wikipedia pages here, and
   22960              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
   22961              509 from the English page because of this. -->
   22962         <nationalNumberPattern>
   22963           5(?:
   22964             0[1-7]|
   22965             22|
   22966             [34]\d|
   22967             5[1-59]|
   22968             9[246]
   22969           )\d{7}
   22970         </nationalNumberPattern>
   22971         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22972         <exampleNumber>5012345678</exampleNumber>
   22973       </mobile>
   22974       <pager>
   22975         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
   22976         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22977         <exampleNumber>5123456789</exampleNumber>
   22978       </pager>
   22979       <tollFree>
   22980         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   22981         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22982         <exampleNumber>8001234567</exampleNumber>
   22983       </tollFree>
   22984       <premiumRate>
   22985         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   22986         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22987         <exampleNumber>9001234567</exampleNumber>
   22988       </premiumRate>
   22989       <uan>
   22990         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
   22991         <nationalNumberPattern>
   22992           444\d{4}|
   22993           850\d{7}
   22994         </nationalNumberPattern>
   22995         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   22996         <exampleNumber>4441444</exampleNumber>
   22997       </uan>
   22998       <emergency>
   22999         <nationalNumberPattern>
   23000           1(?:
   23001             1[02]|
   23002             55
   23003           )
   23004         </nationalNumberPattern>
   23005         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23006         <exampleNumber>112</exampleNumber>
   23007       </emergency>
   23008     </territory>
   23009 
   23010     <!-- Trinidad and Tobago -->
   23011     <!-- http://www.itu.int/oth/T02020000D4/en -->
   23012     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
   23013                internationalPrefix="011">
   23014       <generalDesc>
   23015         <!-- NANPA country - uses US formatting rules -->
   23016         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
   23017         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   23018       </generalDesc>
   23019       <fixedLine>
   23020         <nationalNumberPattern>
   23021           868(?:
   23022             2(?:
   23023               01|
   23024               2[1-5]
   23025             )|
   23026             6(?:
   23027               07|
   23028               1[4-6]|
   23029               2[1-9]|
   23030               [3-6]\d|
   23031               7[0-79]|
   23032               9[0-8]
   23033             )|
   23034             82[12]
   23035           )\d{4}
   23036         </nationalNumberPattern>
   23037         <exampleNumber>8682211234</exampleNumber>
   23038       </fixedLine>
   23039       <mobile>
   23040         <!-- Adding 48X & 70X from the IR21 published by TSTT. -->
   23041         <nationalNumberPattern>
   23042           868(?:
   23043             2(?:
   23044               8[59]|
   23045               9\d
   23046             )|
   23047             3(?:
   23048               0[1-9]|
   23049               1[02-9]|
   23050               [2-9]\d
   23051             )|
   23052             4[6-9]\d|
   23053             6(?:
   23054               20|
   23055               78|
   23056               8\d
   23057             )|
   23058             7(?:
   23059               1[02-9]|
   23060               [02-9]\d
   23061             )
   23062           )\d{4}
   23063         </nationalNumberPattern>
   23064         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   23065         <exampleNumber>8682911234</exampleNumber>
   23066       </mobile>
   23067       <tollFree>
   23068         <nationalNumberPattern>
   23069           8(?:
   23070             00|
   23071             55|
   23072             66|
   23073             77|
   23074             88
   23075           )[2-9]\d{6}
   23076         </nationalNumberPattern>
   23077         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   23078         <exampleNumber>8002345678</exampleNumber>
   23079       </tollFree>
   23080       <premiumRate>
   23081         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   23082         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   23083         <exampleNumber>9002345678</exampleNumber>
   23084       </premiumRate>
   23085       <personalNumber>
   23086         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   23087         <nationalNumberPattern>
   23088           5(?:
   23089             00|
   23090             33|
   23091             44
   23092           )[2-9]\d{6}
   23093         </nationalNumberPattern>
   23094         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   23095         <exampleNumber>5002345678</exampleNumber>
   23096       </personalNumber>
   23097       <emergency>
   23098         <nationalNumberPattern>99[09]</nationalNumberPattern>
   23099         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23100         <exampleNumber>999</exampleNumber>
   23101       </emergency>
   23102     </territory>
   23103 
   23104     <!-- Tuvalu -->
   23105     <!-- http://www.itu.int/oth/T02020000D9/en -->
   23106     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu -->
   23107     <territory id="TV" countryCode="688" internationalPrefix="00">
   23108       <!-- Numbers are formatted as a block. -->
   23109       <generalDesc>
   23110         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
   23111         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
   23112       </generalDesc>
   23113       <fixedLine>
   23114         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
   23115         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   23116         <exampleNumber>20123</exampleNumber>
   23117       </fixedLine>
   23118       <mobile>
   23119         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
   23120              don't know if these are valid or not - the ITU document excludes them - so are not
   23121              covering these for now. -->
   23122         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
   23123         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   23124         <exampleNumber>901234</exampleNumber>
   23125       </mobile>
   23126       <emergency>
   23127         <nationalNumberPattern>911</nationalNumberPattern>
   23128         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23129         <exampleNumber>911</exampleNumber>
   23130       </emergency>
   23131     </territory>
   23132 
   23133     <!-- Taiwan, China -->
   23134     <!-- http://www.itu.int/oth/T02020000EB/en -->
   23135     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
   23136          chosen as the preferred extension prefix. -->
   23137     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
   23138                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG">
   23139       <availableFormats>
   23140         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
   23141           <leadingDigits>
   23142             [2-7]|
   23143             8[1-9]
   23144           </leadingDigits>
   23145           <format>$1 $2 $3</format>
   23146         </numberFormat>
   23147         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
   23148           <leadingDigits>
   23149             80|
   23150             9
   23151           </leadingDigits>
   23152           <format>$1 $2 $3</format>
   23153         </numberFormat>
   23154       </availableFormats>
   23155       <generalDesc>
   23156         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
   23157         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   23158       </generalDesc>
   23159       <fixedLine>
   23160         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
   23161         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   23162         <exampleNumber>21234567</exampleNumber>
   23163       </fixedLine>
   23164       <mobile>
   23165         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
   23166         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23167         <exampleNumber>912345678</exampleNumber>
   23168       </mobile>
   23169       <tollFree>
   23170         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   23171         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23172         <exampleNumber>800123456</exampleNumber>
   23173       </tollFree>
   23174       <premiumRate>
   23175         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
   23176         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23177         <exampleNumber>900123456</exampleNumber>
   23178       </premiumRate>
   23179       <emergency>
   23180         <nationalNumberPattern>11[029]</nationalNumberPattern>
   23181         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23182         <exampleNumber>110</exampleNumber>
   23183       </emergency>
   23184     </territory>
   23185 
   23186     <!-- Tanzania -->
   23187     <!-- http://www.itu.int/oth/T02020000CB/en -->
   23188     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
   23189                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   23190       <availableFormats>
   23191         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
   23192           <leadingDigits>[24]</leadingDigits>
   23193           <format>$1 $2 $3</format>
   23194         </numberFormat>
   23195         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
   23196           <leadingDigits>[67]</leadingDigits>
   23197           <format>$1 $2 $3</format>
   23198         </numberFormat>
   23199         <!-- Formatting for special numbers from www.tcra.go.tz -->
   23200         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
   23201           <leadingDigits>[89]</leadingDigits>
   23202           <format>$1 $2 $3</format>
   23203         </numberFormat>
   23204       </availableFormats>
   23205       <generalDesc>
   23206         <nationalNumberPattern>\d{9}</nationalNumberPattern>
   23207         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   23208       </generalDesc>
   23209       <fixedLine>
   23210         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
   23211         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   23212         <exampleNumber>222345678</exampleNumber>
   23213       </fixedLine>
   23214       <mobile>
   23215         <nationalNumberPattern>
   23216           (?:
   23217             6[158]|
   23218             7[1-9]
   23219           )\d{7}
   23220         </nationalNumberPattern>
   23221         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23222         <exampleNumber>612345678</exampleNumber>
   23223       </mobile>
   23224       <tollFree>
   23225         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
   23226         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23227         <exampleNumber>800123456</exampleNumber>
   23228       </tollFree>
   23229       <premiumRate>
   23230         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
   23231         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23232         <exampleNumber>900123456</exampleNumber>
   23233       </premiumRate>
   23234       <sharedCost>
   23235         <nationalNumberPattern>
   23236           8(?:
   23237             40|
   23238             6[01]
   23239           )\d{6}
   23240         </nationalNumberPattern>
   23241         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23242         <exampleNumber>840123456</exampleNumber>
   23243       </sharedCost>
   23244       <voip>
   23245         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
   23246         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23247         <exampleNumber>412345678</exampleNumber>
   23248       </voip>
   23249       <emergency>
   23250         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1038.html
   23251              http://in2eastafrica.net/emergency-numbers-in-tanzania -->
   23252         <nationalNumberPattern>
   23253           11[12]|
   23254           999
   23255         </nationalNumberPattern>
   23256         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23257         <exampleNumber>111</exampleNumber>
   23258       </emergency>
   23259     </territory>
   23260 
   23261     <!-- Ukraine -->
   23262     <!-- http://www.itu.int/oth/T02020000DB/en -->
   23263     <!-- http://en.wikipedia.org/wiki/%2B380 -->
   23264     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
   23265                internationalPrefix="00"
   23266                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   23267       <availableFormats>
   23268         <!-- City codes separated out. No definitive list has been found of what constitutes the
   23269              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
   23270              Have used local yellow pages guidelines, Google searches and regression tests to
   23271              reverse-engineer these rules as well as bugs. -->
   23272         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
   23273           <leadingDigits>
   23274             [38]9|
   23275             4(?:
   23276               [45][0-5]|
   23277               87
   23278             )|
   23279             5(?:
   23280               0|
   23281               6[37]|
   23282               7[37]
   23283             )|
   23284             6[36-8]|
   23285             9[1-9]
   23286           </leadingDigits>
   23287           <leadingDigits>
   23288             [38]9|
   23289             4(?:
   23290               [45][0-5]|
   23291               87
   23292             )|
   23293             5(?:
   23294               0|
   23295               6(?:
   23296                 3[14-7]|
   23297                 7
   23298               )|
   23299               7[37]
   23300             )|
   23301             6[36-8]|
   23302             9[1-9]
   23303           </leadingDigits>
   23304           <format>$1 $2 $3</format>
   23305         </numberFormat>
   23306         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
   23307           <leadingDigits>
   23308             3[1-8]2|
   23309             4[13678]2|
   23310             5(?:
   23311               [12457]2|
   23312               6[24]
   23313             )|
   23314             6(?:
   23315               [49]2|
   23316               [12][29]|
   23317               5[24]
   23318             )|
   23319             8[0-8]|
   23320             90
   23321           </leadingDigits>
   23322           <leadingDigits>
   23323             3(?:
   23324               [1-46-8]2[013-9]|
   23325               52
   23326             )|
   23327             4(?:
   23328               [1378]2|
   23329               62[013-9]
   23330             )|
   23331             5(?:
   23332               [12457]2|
   23333               6[24]
   23334             )|
   23335             6(?:
   23336               [49]2|
   23337               [12][29]|
   23338               5[24]
   23339             )|
   23340             8[0-8]|
   23341             90
   23342           </leadingDigits>
   23343           <format>$1 $2 $3</format>
   23344         </numberFormat>
   23345         <numberFormat pattern="([3-6]\d{3})(\d{5})">
   23346           <leadingDigits>
   23347             3(?:
   23348               5[013-9]|
   23349               [1-46-8]
   23350             )|
   23351             4(?:
   23352               [137][013-9]|
   23353               6|
   23354               [45][6-9]|
   23355               8[4-6]
   23356             )|
   23357             5(?:
   23358               [1245][013-9]|
   23359               6[0135-9]|
   23360               3|
   23361               7[4-6]
   23362             )|
   23363             6(?:
   23364               [49][013-9]|
   23365               5[0135-9]|
   23366               [12][13-8]
   23367             )
   23368           </leadingDigits>
   23369           <leadingDigits>
   23370             3(?:
   23371               5[013-9]|
   23372               [1-46-8](?:
   23373                 22|
   23374                 [013-9]
   23375               )
   23376             )|
   23377             4(?:
   23378               [137][013-9]|
   23379               6(?:
   23380                 [013-9]|
   23381                 22
   23382               )|
   23383               [45][6-9]|
   23384               8[4-6]
   23385             )|
   23386             5(?:
   23387               [1245][013-9]|
   23388               6(?:
   23389                 3[02389]|
   23390                 [015689]
   23391               )|
   23392               3|
   23393               7[4-6]
   23394             )|
   23395             6(?:
   23396               [49][013-9]|
   23397               5[0135-9]|
   23398               [12][13-8]
   23399             )
   23400           </leadingDigits>
   23401           <format>$1 $2</format>
   23402         </numberFormat>
   23403       </availableFormats>
   23404       <generalDesc>
   23405         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
   23406         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   23407       </generalDesc>
   23408       <fixedLine>
   23409         <nationalNumberPattern>
   23410           (?:
   23411             3[1-8]|
   23412             4[13-8]|
   23413             5[1-7]|
   23414             6[12459]
   23415           )\d{7}
   23416         </nationalNumberPattern>
   23417         <exampleNumber>311234567</exampleNumber>
   23418       </fixedLine>
   23419       <mobile>
   23420         <nationalNumberPattern>
   23421           (?:
   23422             39|
   23423             50|
   23424             6[36-8]|
   23425             9[1-9]
   23426           )\d{7}
   23427         </nationalNumberPattern>
   23428         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23429         <exampleNumber>391234567</exampleNumber>
   23430       </mobile>
   23431       <tollFree>
   23432         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   23433         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23434         <exampleNumber>800123456</exampleNumber>
   23435       </tollFree>
   23436       <premiumRate>
   23437         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
   23438         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23439         <exampleNumber>900123456</exampleNumber>
   23440       </premiumRate>
   23441       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
   23442       <voip>
   23443         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
   23444         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23445         <exampleNumber>891234567</exampleNumber>
   23446       </voip>
   23447       <emergency>
   23448         <nationalNumberPattern>
   23449           1(?:
   23450             0[123]|
   23451             12
   23452           )
   23453         </nationalNumberPattern>
   23454         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23455         <exampleNumber>112</exampleNumber>
   23456       </emergency>
   23457     </territory>
   23458 
   23459     <!-- Uganda -->
   23460     <!-- http://www.itu.int/oth/T02020000F1/en -->
   23461     <!-- http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf -->
   23462     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
   23463                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   23464       <availableFormats>
   23465         <numberFormat pattern="(\d{3})(\d{6})">
   23466           <leadingDigits>
   23467             [7-9]|
   23468             20(?:
   23469               [013-8]|
   23470               2[5-9]
   23471             )|
   23472             4(?:
   23473               6[45]|
   23474               [7-9]
   23475             )
   23476           </leadingDigits>
   23477           <format>$1 $2</format>
   23478         </numberFormat>
   23479         <numberFormat pattern="(\d{2})(\d{7})">
   23480           <leadingDigits>
   23481             3|
   23482             4(?:
   23483               [1-5]|
   23484               6[0-36-9]
   23485             )
   23486           </leadingDigits>
   23487           <format>$1 $2</format>
   23488         </numberFormat>
   23489         <numberFormat pattern="(2024)(\d{5})">
   23490           <leadingDigits>2024</leadingDigits>
   23491           <format>$1 $2</format>
   23492         </numberFormat>
   23493       </availableFormats>
   23494       <generalDesc>
   23495         <nationalNumberPattern>\d{9}</nationalNumberPattern>
   23496         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   23497       </generalDesc>
   23498       <fixedLine>
   23499         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
   23500         <nationalNumberPattern>
   23501           20(?:
   23502             [0147]\d{2}|
   23503             2(?:
   23504               40|
   23505               [5-9]\d
   23506             )|
   23507             3[23]\d|
   23508             5[0-4]\d|
   23509             60\d|
   23510             8[0-2]\d
   23511           )\d{4}|
   23512           [34]\d{8}
   23513         </nationalNumberPattern>
   23514         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
   23515              local dialing is still possible. We assume it is for now. -->
   23516         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   23517         <exampleNumber>312345678</exampleNumber>
   23518       </fixedLine>
   23519       <mobile>
   23520         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
   23521         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
   23522         <nationalNumberPattern>
   23523           7(?:
   23524             0[0-7]|
   23525             [15789]\d|
   23526             [23]0|
   23527             [46][0-4]
   23528           )\d{6}
   23529         </nationalNumberPattern>
   23530         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23531         <exampleNumber>712345678</exampleNumber>
   23532       </mobile>
   23533       <tollFree>
   23534         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
   23535         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23536         <exampleNumber>800123456</exampleNumber>
   23537       </tollFree>
   23538       <premiumRate>
   23539         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
   23540         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23541         <exampleNumber>901123456</exampleNumber>
   23542       </premiumRate>
   23543       <emergency>
   23544         <nationalNumberPattern>999</nationalNumberPattern>
   23545         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23546         <exampleNumber>999</exampleNumber>
   23547       </emergency>
   23548     </territory>
   23549 
   23550     <!-- United States -->
   23551     <!-- http://www.nanpa.com/reports/reports_npa.html -->
   23552     <!-- http://en.wikipedia.org/wiki/North_American_Numbering_Plan -->
   23553     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
   23554          numbers in the national format, it is not included. Therefore, we omit it here to make
   23555          formatting consistent with the rest of the world. The same applies to all the
   23556          countries/regions under NANPA -->
   23557     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
   23558          when formatting, but is set here so that users who are calling formatByPattern can specify
   23559          NationalPrefixFormattingRule if they want to. -->
   23560     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
   23561                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true">
   23562       <availableFormats>
   23563         <numberFormat pattern="(\d{3})(\d{4})">
   23564           <format>$1-$2</format>
   23565           <intlFormat>NA</intlFormat>
   23566         </numberFormat>
   23567         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   23568           <format>($1) $2-$3</format>
   23569           <!-- A different pattern is used when formatting internationally, as the area code is no
   23570                longer optional and should not be in brackets. -->
   23571           <intlFormat>$1-$2-$3</intlFormat>
   23572         </numberFormat>
   23573       </availableFormats>
   23574       <generalDesc>
   23575         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
   23576         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   23577       </generalDesc>
   23578       <fixedLine>
   23579         <nationalNumberPattern>
   23580           (?:
   23581             2(?:
   23582               0[1-35-9]|
   23583               1[02-9]|
   23584               2[4589]|
   23585               3[149]|
   23586               4[08]|
   23587               5[1-46]|
   23588               6[0279]|
   23589               7[06]|
   23590               8[13]
   23591             )|
   23592             3(?:
   23593               0[1-57-9]|
   23594               1[02-9]|
   23595               2[0135]|
   23596               3[014679]|
   23597               47|
   23598               5[12]|
   23599               6[01]|
   23600               8[056]
   23601             )|
   23602             4(?:
   23603               0[124-9]|
   23604               1[02-579]|
   23605               2[3-5]|
   23606               3[0245]|
   23607               4[0235]|
   23608               58|
   23609               69|
   23610               7[0589]|
   23611               8[04]
   23612             )|
   23613             5(?:
   23614               0[1-57-9]|
   23615               1[0235-8]|
   23616               20|
   23617               3[0149]|
   23618               4[01]|
   23619               5[19]|
   23620               6[1-37]|
   23621               7[013-5]|
   23622               8[056]
   23623             )|
   23624             6(?:
   23625               0[1-35-9]|
   23626               1[024-9]|
   23627               2[036]|
   23628               3[016]|
   23629               4[16]|
   23630               5[017]|
   23631               6[0-279]|
   23632               78|
   23633               8[12]
   23634             )|
   23635             7(?:
   23636               0[1-46-8]|
   23637               1[02-9]|
   23638               2[047]|
   23639               3[124]|
   23640               4[07]|
   23641               5[47]|
   23642               6[02359]|
   23643               7[02-59]|
   23644               8[156]
   23645             )|
   23646             8(?:
   23647               0[1-68]|
   23648               1[02-8]|
   23649               28|
   23650               3[0-25]|
   23651               4[3578]|
   23652               5[06-9]|
   23653               6[02-5]|
   23654               7[028]
   23655             )|
   23656             9(?:
   23657               0[1346-9]|
   23658               1[02-9]|
   23659               2[0589]|
   23660               3[1678]|
   23661               4[0179]|
   23662               5[1246]|
   23663               7[0-3589]|
   23664               8[0459]
   23665             )
   23666           )[2-9]\d{6}
   23667         </nationalNumberPattern>
   23668         <exampleNumber>2015555555</exampleNumber>
   23669       </fixedLine>
   23670       <mobile>
   23671         <nationalNumberPattern>
   23672           (?:
   23673             2(?:
   23674               0[1-35-9]|
   23675               1[02-9]|
   23676               2[4589]|
   23677               3[149]|
   23678               4[08]|
   23679               5[1-46]|
   23680               6[0279]|
   23681               7[06]|
   23682               8[13]
   23683             )|
   23684             3(?:
   23685               0[1-57-9]|
   23686               1[02-9]|
   23687               2[0135]|
   23688               3[014679]|
   23689               47|
   23690               5[12]|
   23691               6[01]|
   23692               8[056]
   23693             )|
   23694             4(?:
   23695               0[124-9]|
   23696               1[02-579]|
   23697               2[3-5]|
   23698               3[0245]|
   23699               4[0235]|
   23700               58|
   23701               69|
   23702               7[0589]|
   23703               8[04]
   23704             )|
   23705             5(?:
   23706               0[1-57-9]|
   23707               1[0235-8]|
   23708               20|
   23709               3[0149]|
   23710               4[01]|
   23711               5[19]|
   23712               6[1-37]|
   23713               7[013-5]|
   23714               8[056]
   23715             )|
   23716             6(?:
   23717               0[1-35-9]|
   23718               1[024-9]|
   23719               2[036]|
   23720               3[016]|
   23721               4[16]|
   23722               5[017]|
   23723               6[0-279]|
   23724               78|
   23725               8[12]
   23726             )|
   23727             7(?:
   23728               0[1-46-8]|
   23729               1[02-9]|
   23730               2[047]|
   23731               3[124]|
   23732               4[07]|
   23733               5[47]|
   23734               6[02359]|
   23735               7[02-59]|
   23736               8[156]
   23737             )|
   23738             8(?:
   23739               0[1-68]|
   23740               1[02-8]|
   23741               28|
   23742               3[0-25]|
   23743               4[3578]|
   23744               5[06-9]|
   23745               6[02-5]|
   23746               7[028]
   23747             )|
   23748             9(?:
   23749               0[1346-9]|
   23750               1[02-9]|
   23751               2[0589]|
   23752               3[1678]|
   23753               4[0179]|
   23754               5[1246]|
   23755               7[0-3589]|
   23756               8[0459]
   23757             )
   23758           )[2-9]\d{6}
   23759         </nationalNumberPattern>
   23760         <exampleNumber>2015555555</exampleNumber>
   23761       </mobile>
   23762       <tollFree>
   23763         <nationalNumberPattern>
   23764           8(?:
   23765             00|
   23766             55|
   23767             66|
   23768             77|
   23769             88
   23770           )[2-9]\d{6}
   23771         </nationalNumberPattern>
   23772         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   23773         <exampleNumber>8002345678</exampleNumber>
   23774       </tollFree>
   23775       <premiumRate>
   23776         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   23777         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   23778         <exampleNumber>9002345678</exampleNumber>
   23779       </premiumRate>
   23780       <personalNumber>
   23781         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   23782         <nationalNumberPattern>
   23783           5(?:
   23784             00|
   23785             33|
   23786             44
   23787           )[2-9]\d{6}
   23788         </nationalNumberPattern>
   23789         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   23790         <exampleNumber>5002345678</exampleNumber>
   23791       </personalNumber>
   23792       <emergency>
   23793         <nationalNumberPattern>
   23794           112|
   23795           911
   23796         </nationalNumberPattern>
   23797         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23798         <exampleNumber>911</exampleNumber>
   23799       </emergency>
   23800     </territory>
   23801 
   23802     <!-- Uruguay -->
   23803     <!-- http://www.itu.int/oth/T02020000E0/en -->
   23804     <!-- http://www.ursec.gub.uy -->
   23805     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay -->
   23806     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
   23807          code JK, where J = [3-9] and K is any digit. -->
   23808     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
   23809                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
   23810       <availableFormats>
   23811         <!-- Following paginasamarillas.com.uy formatting. -->
   23812         <numberFormat pattern="(\d{4})(\d{4})">
   23813           <leadingDigits>[24]</leadingDigits>
   23814           <format>$1 $2</format>
   23815         </numberFormat>
   23816         <!-- Including the national prefix here since URSEC does when formatting these. -->
   23817         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
   23818           <leadingDigits>9[1-9]</leadingDigits>
   23819           <format>$1 $2 $3</format>
   23820         </numberFormat>
   23821         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
   23822           <leadingDigits>[89]0</leadingDigits>
   23823           <format>$1 $2</format>
   23824         </numberFormat>
   23825       </availableFormats>
   23826       <generalDesc>
   23827         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
   23828         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   23829       </generalDesc>
   23830       <fixedLine>
   23831         <nationalNumberPattern>
   23832           2\d{7}|
   23833           4[2-7]\d{6}
   23834         </nationalNumberPattern>
   23835         <exampleNumber>21231234</exampleNumber>
   23836       </fixedLine>
   23837       <mobile>
   23838         <nationalNumberPattern>9[13-9]\d{6}</nationalNumberPattern>
   23839         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   23840         <exampleNumber>94231234</exampleNumber>
   23841       </mobile>
   23842       <tollFree>
   23843         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
   23844         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   23845         <exampleNumber>8001234</exampleNumber>
   23846       </tollFree>
   23847       <premiumRate>
   23848         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
   23849         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   23850         <exampleNumber>9001234</exampleNumber>
   23851       </premiumRate>
   23852       <shortCode>
   23853         <nationalNumberPattern>
   23854           1(?:
   23855             0[4-9]|
   23856             1[2368]|
   23857             2[0-3568]
   23858           )
   23859         </nationalNumberPattern>
   23860         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23861         <exampleNumber>104</exampleNumber>
   23862       </shortCode>
   23863       <emergency>
   23864         <nationalNumberPattern>
   23865           128|
   23866           911
   23867         </nationalNumberPattern>
   23868         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   23869         <exampleNumber>911</exampleNumber>
   23870       </emergency>
   23871      </territory>
   23872 
   23873     <!-- Uzbekistan -->
   23874     <!-- http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng -->
   23875     <!-- http://www.itu.int/oth/T02020000E1/en -->
   23876     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
   23877                internationalPrefix="810" nationalPrefix="8"
   23878                nationalPrefixFormattingRule="$NP $FG">
   23879       <availableFormats>
   23880         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
   23881           <format>$1 $2 $3 $4</format>
   23882         </numberFormat>
   23883       </availableFormats>
   23884       <generalDesc>
   23885         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
   23886         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   23887       </generalDesc>
   23888       <fixedLine>
   23889         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
   23890              be used in Namangan. -->
   23891         <nationalNumberPattern>
   23892           (?:
   23893             6(?:
   23894               1(?:
   23895                 22|
   23896                 3[124]|
   23897                 4[1-4]|
   23898                 5[123578]|
   23899                 64
   23900               )|
   23901               2(?:
   23902                 22|
   23903                 3[0-57-9]|
   23904                 41
   23905               )|
   23906               5(?:
   23907                 22|
   23908                 3[3-7]|
   23909                 5[024-8]
   23910               )|
   23911               6\d{2}|
   23912               7(?:
   23913                 [23]\d|
   23914                 7[69]
   23915               )|
   23916               9(?:
   23917                 22|
   23918                 4[1-8]|
   23919                 6[135]
   23920               )
   23921             )|
   23922             7(?:
   23923               0(?:
   23924                 5[4-9]|
   23925                 6[0146]|
   23926                 7[12456]|
   23927                 9[135-8]
   23928               )|
   23929               1[12]\d|
   23930               2(?:
   23931                 22|
   23932                 3[1345789]|
   23933                 4[123579]|
   23934                 5[14]
   23935               )|
   23936               3(?:
   23937                 2\d|
   23938                 3[1578]|
   23939                 4[1-35-7]|
   23940                 5[1-57]|
   23941                 61
   23942               )|
   23943               4(?:
   23944                 2\d|
   23945                 3[1-579]|
   23946                 7[1-79]
   23947               )|
   23948               5(?:
   23949                 22|
   23950                 5[1-9]|
   23951                 6[1457]
   23952               )|
   23953               6(?:
   23954                 22|
   23955                 3[12457]|
   23956                 4[13-8]
   23957               )|
   23958               9(?:
   23959                 22|
   23960                 5[1-9]
   23961               )
   23962             )
   23963           )\d{5}
   23964         </nationalNumberPattern>
   23965         <exampleNumber>662345678</exampleNumber>
   23966       </fixedLine>
   23967       <mobile>
   23968         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
   23969              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
   23970              prefixes Tyntec has a carrier mapped to. -->
   23971         <nationalNumberPattern>
   23972           6(?:
   23973             1(?:
   23974               2(?:
   23975                 98|
   23976                 2[01]
   23977               )|
   23978               35[0-4]|
   23979               50\d|
   23980               61[23]|
   23981               7(?:
   23982                 [01][017]|
   23983                 4\d|
   23984                 55|
   23985                 9[5-9]
   23986               )
   23987             )|
   23988             2(?:
   23989               11\d|
   23990               2(?:
   23991                 [12]1|
   23992                 9[01379]
   23993               )|
   23994               5(?:
   23995                 [126]\d|
   23996                 3[0-4]
   23997               )|
   23998               7\d{2}
   23999             )|
   24000             5(?:
   24001               19[01]|
   24002               2(?:
   24003                 27|
   24004                 9[26]
   24005               )|
   24006               30\d|
   24007               59\d|
   24008               7\d{2}
   24009             )|
   24010             6(?:
   24011               2(?:
   24012                 1[5-9]|
   24013                 2[0367]|
   24014                 38|
   24015                 41|
   24016                 52|
   24017                 60
   24018               )|
   24019               3[79]\d|
   24020               4(?:
   24021                 56|
   24022                 83
   24023               )|
   24024               7(?:
   24025                 [07]\d|
   24026                 1[017]|
   24027                 3[07]|
   24028                 4[047]|
   24029                 5[057]|
   24030                 67|
   24031                 8[0178]|
   24032                 9[79]
   24033                 )|
   24034               9[0-3]\d
   24035             )|
   24036             7(?:
   24037               2(?:
   24038                 24|
   24039                 3[237]|
   24040                 4[5-9]|
   24041                 7[15-8]
   24042               )|
   24043               5(?:
   24044                 7[12]|
   24045                 8[0589]
   24046               )|
   24047               7(?:
   24048                 0\d|
   24049                 [39][07]
   24050               )|
   24051               9(?:
   24052                 0\d|
   24053                 7[079]
   24054               )
   24055             )|
   24056             9(
   24057               2(?:
   24058                 1[1267]|
   24059                 5\d|
   24060                 3[01]|
   24061                 7[0-4]
   24062               )|
   24063               5[67]\d|
   24064               6(?:
   24065                 2[0-26]|
   24066                 8\d
   24067               )|
   24068               7\d{2}
   24069             )
   24070           )\d{4}|
   24071           7(?:
   24072             0\d{3}|
   24073             1(?:
   24074               13[01]|
   24075               6(?:
   24076                 0[47]|
   24077                 1[67]|
   24078                 66
   24079               )|
   24080               71[3-69]|
   24081               98\d
   24082             )|
   24083             2(?:
   24084               2(?:
   24085                 2[79]|
   24086                 95
   24087               )|
   24088               3(?:
   24089                 2[5-9]|
   24090                 6[0-6]
   24091               )|
   24092               57\d|
   24093               7(?:
   24094                 0\d|
   24095                 1[17]|
   24096                 2[27]|
   24097                 3[37]|
   24098                 44|
   24099                 5[057]|
   24100                 66|
   24101                 88
   24102               )
   24103             )|
   24104             3(?:
   24105               2(?:
   24106                 1[0-6]|
   24107                 21|
   24108                 3[469]|
   24109                 7[159]
   24110               )|
   24111               33\d|
   24112               5(?:
   24113                 0[0-4]|
   24114                 5[579]|
   24115                 9\d
   24116               )|
   24117               7(?:
   24118                 [0-3579]\d|
   24119                 4[0467]|
   24120                 6[67]|
   24121                 8[078]
   24122               )|
   24123               9[4-6]\d
   24124             )|
   24125             4(?:
   24126               2(?:
   24127                 29|
   24128                 5[0257]|
   24129                 6[0-7]|
   24130                 7[1-57]
   24131               )|
   24132               5(?:
   24133                 1[0-4]|
   24134                 8\d|
   24135                 9[5-9]
   24136               )|
   24137               7(?:
   24138                 0\d|
   24139                 1[024589]|
   24140                 2[0127]|
   24141                 3[0137]|
   24142                 [46][07]|
   24143                 5[01]|
   24144                 7[5-9]|
   24145                 9[079]
   24146               )|
   24147               9(?:
   24148                 7[015-9]|
   24149                 [89]\d
   24150               )
   24151             )|
   24152             5(?:
   24153               112|
   24154               2(?:
   24155                 0\d|
   24156                 2[29]|
   24157                 [49]4
   24158               )|
   24159               3[1568]\d|
   24160               52[6-9]|
   24161               7(?:
   24162                 0[01578]|
   24163                 1[017]|
   24164                 [23]7|
   24165                 4[047]|
   24166                 [5-7]\d|
   24167                 8[78]|
   24168                 9[079]
   24169               )
   24170             )|
   24171             6(?:
   24172               2(?:
   24173                 2[1245]|
   24174                 4[2-4]
   24175               )|
   24176               39\d|
   24177               41[179]|
   24178               5(?:
   24179                 [349]\d|
   24180                 5[0-2]
   24181               )|
   24182               7(?:
   24183                 0[017]|
   24184                 [13]\d|
   24185                 22|
   24186                 44|
   24187                 55|
   24188                 67|
   24189                 88
   24190               )
   24191             )|
   24192             9(?:
   24193               22[128]|
   24194               3(?:
   24195                 2[0-4]|
   24196                 7\d
   24197               )|
   24198               57[05629]|
   24199               7(?:
   24200                 2[05-9]|
   24201                 3[37]|
   24202                 4\d|
   24203                 60|
   24204                 7[2579]|
   24205                 87|
   24206                 9[07]
   24207               )
   24208             )
   24209           )\d{4}|
   24210           9[0-57-9]\d{7}
   24211         </nationalNumberPattern>
   24212         <exampleNumber>912345678</exampleNumber>
   24213       </mobile>
   24214       <!-- No tollFree or premiumRate information can be found. -->
   24215       <emergency>
   24216         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1057.html
   24217              http://www.expat.uz/index.php?/Emergency-Numbers.html
   24218              http://www.mts.uz/en/citycodes/how_to_call_sos
   24219              Note that the third source, for a local mobile company, comments that a '*' needs to
   24220              be dialled before the 2-digit emergency numbers on their cell-phone. This is not
   24221              explicitly handled here, but instead is handled by normalising input in the code. -->
   24222         <nationalNumberPattern>
   24223           0(?:
   24224             0[123]|
   24225             [123]|
   24226             50
   24227           )
   24228         </nationalNumberPattern>
   24229         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   24230         <exampleNumber>01</exampleNumber>
   24231       </emergency>
   24232     </territory>
   24233 
   24234     <!-- Vatican City -->
   24235     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City -->
   24236     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
   24237          also be dialled with the Vatican City country code. -->
   24238     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
   24239       <availableFormats>
   24240         <numberFormat pattern="(06)(\d{4})(\d{4})">
   24241           <format>$1 $2 $3</format>
   24242         </numberFormat>
   24243       </availableFormats>
   24244       <generalDesc>
   24245         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
   24246         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24247       </generalDesc>
   24248       <fixedLine>
   24249         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
   24250         <exampleNumber>0669812345</exampleNumber>
   24251       </fixedLine>
   24252       <mobile>
   24253         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
   24254              Italian mobile contracts. -->
   24255         <nationalNumberPattern>N/A</nationalNumberPattern>
   24256         <possibleNumberPattern>N/A</possibleNumberPattern>
   24257       </mobile>
   24258       <!-- No information exists about other types of numbers. -->
   24259       <emergency>
   24260         <nationalNumberPattern>11[2358]</nationalNumberPattern>
   24261         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   24262         <exampleNumber>113</exampleNumber>
   24263       </emergency>
   24264     </territory>
   24265 
   24266     <!-- Saint Vincent and the Grenadines -->
   24267     <!-- http://www.itu.int/oth/T02020000B3/en -->
   24268     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
   24269                internationalPrefix="011">
   24270       <generalDesc>
   24271         <!-- NANPA country - uses US formatting rules -->
   24272         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
   24273         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   24274       </generalDesc>
   24275       <fixedLine>
   24276         <nationalNumberPattern>
   24277           784(?:
   24278             266|
   24279             3(?:
   24280               6[6-9]|
   24281               7\d|
   24282               8[0-24-6]
   24283             )|
   24284             4(?:
   24285               38|
   24286               5[0-36-8]|
   24287               8\d|
   24288               9[01]
   24289             )|
   24290             555|
   24291             638|
   24292             784
   24293           )\d{4}
   24294         </nationalNumberPattern>
   24295         <exampleNumber>7842661234</exampleNumber>
   24296       </fixedLine>
   24297       <mobile>
   24298         <!-- Adding 784 433 and 784 534 since online numbers can be found with these prefixes, and
   24299              the latter seems, according to some online sources, to be assigned to Digicell. -->
   24300         <nationalNumberPattern>
   24301           784(?:
   24302             4(?:
   24303               3[0-4]|
   24304               5[45]|
   24305               9[2-5]
   24306             )|
   24307             5(?:
   24308               2[6-9]|
   24309               3[0-4]|
   24310               93
   24311             )
   24312           )\d{4}
   24313         </nationalNumberPattern>
   24314         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24315         <exampleNumber>7844301234</exampleNumber>
   24316       </mobile>
   24317       <tollFree>
   24318         <nationalNumberPattern>
   24319           8(?:
   24320             00|
   24321             55|
   24322             66|
   24323             77|
   24324             88
   24325           )[2-9]\d{6}
   24326         </nationalNumberPattern>
   24327         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24328         <exampleNumber>8002345678</exampleNumber>
   24329       </tollFree>
   24330       <premiumRate>
   24331         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   24332         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24333         <exampleNumber>9002345678</exampleNumber>
   24334       </premiumRate>
   24335       <personalNumber>
   24336         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   24337         <nationalNumberPattern>
   24338           5(?:
   24339             00|
   24340             33|
   24341             44
   24342           )[2-9]\d{6}
   24343         </nationalNumberPattern>
   24344         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24345         <exampleNumber>5002345678</exampleNumber>
   24346       </personalNumber>
   24347       <emergency>
   24348         <!-- http://barbados.usembassy.gov/emergency-svg.html
   24349              http://travel.state.gov/travel/cis_pa_tw/cis/cis_1028.html?action=/travel/cis_pa_tw/cis/cis_1100.html -->
   24350         <nationalNumberPattern>
   24351           9(?:
   24352             11|
   24353             99
   24354           )
   24355         </nationalNumberPattern>
   24356         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   24357         <exampleNumber>911</exampleNumber>
   24358       </emergency>
   24359     </territory>
   24360 
   24361     <!-- Venezuela -->
   24362     <!-- http://www.itu.int/oth/T02020000E3/en -->
   24363     <!-- http://en.wikipedia.org/wiki/+58 -->
   24364     <!-- 1XX specifies a particular carrier to route a call to. -->
   24365     <territory id="VE" countryCode="58" internationalPrefix="00"
   24366                nationalPrefix="0" nationalPrefixForParsing="(1\d{2})|0"
   24367                nationalPrefixFormattingRule="$NP$FG"
   24368                carrierCodeFormattingRule="$CC $FG">
   24369       <availableFormats>
   24370         <numberFormat pattern="(\d{3})(\d{7})">
   24371           <format>$1-$2</format>
   24372         </numberFormat>
   24373       </availableFormats>
   24374       <generalDesc>
   24375         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
   24376         <!-- Open numbering plan. -->
   24377         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   24378       </generalDesc>
   24379       <fixedLine>
   24380         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
   24381              mentions these as 5XX, but online examples that can be found are seemingly restricted
   24382              to 50[01]. -->
   24383         <nationalNumberPattern>
   24384           (?:
   24385             2(?:
   24386               12|
   24387               3[457-9]|
   24388               [58][1-9]|
   24389               [467]\d|
   24390               9[1-6]
   24391             )|
   24392             50[01]
   24393           )\d{7}
   24394         </nationalNumberPattern>
   24395         <exampleNumber>2121234567</exampleNumber>
   24396       </fixedLine>
   24397       <mobile>
   24398         <nationalNumberPattern>
   24399           4(?:
   24400             1[24-8]|
   24401             2[46]
   24402           )\d{7}
   24403         </nationalNumberPattern>
   24404         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24405         <exampleNumber>4121234567</exampleNumber>
   24406       </mobile>
   24407       <tollFree>
   24408         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   24409         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24410         <exampleNumber>8001234567</exampleNumber>
   24411       </tollFree>
   24412       <premiumRate>
   24413         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   24414         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24415         <exampleNumber>9001234567</exampleNumber>
   24416       </premiumRate>
   24417       <emergency>
   24418         <nationalNumberPattern>171</nationalNumberPattern>
   24419         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   24420         <exampleNumber>171</exampleNumber>
   24421       </emergency>
   24422     </territory>
   24423 
   24424     <!-- Virgin Islands, British -->
   24425     <!-- http://www.itu.int/oth/T020200001E/en -->
   24426     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
   24427                internationalPrefix="011">
   24428       <generalDesc>
   24429         <!-- NANPA country - uses US formatting rules -->
   24430         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
   24431         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   24432       </generalDesc>
   24433       <fixedLine>
   24434         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
   24435              and 774 have been added from numbers found in the white pages.  -->
   24436         <nationalNumberPattern>
   24437           284(?:
   24438             (?:
   24439               229|
   24440               4(?:
   24441                 22|
   24442                 9[45]
   24443               )|
   24444               774|
   24445               8(?:
   24446                 52|
   24447                 6[459]
   24448               )
   24449             )\d{4}|
   24450             496[0-5]\d{3}
   24451           )
   24452         </nationalNumberPattern>
   24453         <exampleNumber>2842291234</exampleNumber>
   24454       </fixedLine>
   24455       <mobile>
   24456         <!-- No data on central office codes can be found on the nanpa.com website. The codes
   24457              34[0-367], 446 and 54[57] have been added from numbers found in the white pages.  -->
   24458         <nationalNumberPattern>
   24459           284(?:
   24460             (?:
   24461               3(?:
   24462                 0[0-3]|
   24463                 4[0-367]
   24464               )|
   24465               4(?:
   24466                 4[0-6]|
   24467                 68|
   24468                 99
   24469               )|
   24470               54[0-57]
   24471             )\d{4}|
   24472             496[6-9]\d{3}
   24473           )
   24474         </nationalNumberPattern>
   24475         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24476         <exampleNumber>2843001234</exampleNumber>
   24477       </mobile>
   24478       <tollFree>
   24479         <nationalNumberPattern>
   24480           8(?:
   24481             00|
   24482             55|
   24483             66|
   24484             77|
   24485             88
   24486           )[2-9]\d{6}
   24487         </nationalNumberPattern>
   24488         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24489         <exampleNumber>8002345678</exampleNumber>
   24490       </tollFree>
   24491       <premiumRate>
   24492         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   24493         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24494         <exampleNumber>9002345678</exampleNumber>
   24495       </premiumRate>
   24496       <personalNumber>
   24497         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   24498         <nationalNumberPattern>
   24499           5(?:
   24500             00|
   24501             33|
   24502             44
   24503           )[2-9]\d{6}
   24504         </nationalNumberPattern>
   24505         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24506         <exampleNumber>5002345678</exampleNumber>
   24507       </personalNumber>
   24508       <emergency>
   24509         <!-- http://barbados.usembassy.gov/emergency-bvi.html
   24510              http://www.britishvirginislands.com/ntk_emergency.htm -->
   24511         <nationalNumberPattern>
   24512           9(?:
   24513             11|
   24514             99
   24515           )
   24516         </nationalNumberPattern>
   24517         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   24518         <exampleNumber>911</exampleNumber>
   24519       </emergency>
   24520     </territory>
   24521 
   24522     <!-- Virgin Islands, United States -->
   24523     <!-- http://www.itu.int/oth/T02020000DF/en -->
   24524     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
   24525                internationalPrefix="011">
   24526       <generalDesc>
   24527         <!-- NANPA country - uses US formatting rules -->
   24528         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
   24529         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   24530       </generalDesc>
   24531       <fixedLine>
   24532         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
   24533              yellow pages have been added, and the list of exchanges found on
   24534              http://www.areacodedownload.com/340/index.html -->
   24535         <nationalNumberPattern>
   24536           340(?:
   24537             2(?:
   24538               01|
   24539               2[067]|
   24540               36|
   24541               44|
   24542               77
   24543             )|
   24544             3(?:
   24545               32|
   24546               44
   24547             )|
   24548             4(?:
   24549               4[38]|
   24550               7[34]
   24551             )|
   24552             5(?:
   24553               1[34]|
   24554               55
   24555             )|
   24556             6(?:
   24557               26|
   24558               4[23]|
   24559               9[023]
   24560             )|
   24561             7(?:
   24562               [17]\d|
   24563               27
   24564             )|
   24565             884|
   24566             998
   24567           )\d{4}
   24568         </nationalNumberPattern>
   24569         <exampleNumber>3406421234</exampleNumber>
   24570       </fixedLine>
   24571       <mobile>
   24572         <nationalNumberPattern>
   24573           340(?:
   24574             2(?:
   24575               01|
   24576               2[067]|
   24577               36|
   24578               44|
   24579               77
   24580             )|
   24581             3(?:
   24582               32|
   24583               44
   24584             )|
   24585             4(?:
   24586               4[38]|
   24587               7[34]
   24588             )|
   24589             5(?:
   24590               1[34]|
   24591               55
   24592             )|
   24593             6(?:
   24594               26|
   24595               4[23]|
   24596               9[023]
   24597             )|
   24598             7(?:
   24599               [17]\d|
   24600               27
   24601             )|
   24602             884|
   24603             998
   24604           )\d{4}
   24605         </nationalNumberPattern>
   24606         <exampleNumber>3406421234</exampleNumber>
   24607       </mobile>
   24608       <tollFree>
   24609         <nationalNumberPattern>
   24610           8(?:
   24611             00|
   24612             55|
   24613             66|
   24614             77|
   24615             88
   24616           )[2-9]\d{6}
   24617         </nationalNumberPattern>
   24618         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24619         <exampleNumber>8002345678</exampleNumber>
   24620       </tollFree>
   24621       <premiumRate>
   24622         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   24623         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24624         <exampleNumber>9002345678</exampleNumber>
   24625       </premiumRate>
   24626       <personalNumber>
   24627         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   24628         <nationalNumberPattern>
   24629           5(?:
   24630             00|
   24631             33|
   24632             44
   24633           )[2-9]\d{6}
   24634         </nationalNumberPattern>
   24635         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   24636         <exampleNumber>5002345678</exampleNumber>
   24637       </personalNumber>
   24638       <emergency>
   24639         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   24640         <nationalNumberPattern>911</nationalNumberPattern>
   24641         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   24642         <exampleNumber>911</exampleNumber>
   24643       </emergency>
   24644     </territory>
   24645 
   24646     <!-- Viet Nam (Vietnam) -->
   24647     <!-- http://www.itu.int/oth/T02020000E4/en -->
   24648     <!-- http://en.wikipedia.org/wiki/%2B84 -->
   24649     <territory id="VN" countryCode="84" internationalPrefix="00"
   24650                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   24651                nationalPrefixOptionalWhenFormatting="true">
   24652       <availableFormats>
   24653         <numberFormat pattern="([17]99)(\d{4})">
   24654           <leadingDigits>[17]99</leadingDigits>
   24655           <format>$1 $2</format>
   24656         </numberFormat>
   24657         <numberFormat pattern="([48])(\d{4})(\d{4})">
   24658           <leadingDigits>[48]</leadingDigits>
   24659           <format>$1 $2 $3</format>
   24660         </numberFormat>
   24661         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
   24662           <leadingDigits>
   24663             2[025-79]|
   24664             3[0136-9]|
   24665             5[2-9]|
   24666             6[0-46-8]|
   24667             7[02-79]
   24668           </leadingDigits>
   24669           <format>$1 $2 $3</format>
   24670         </numberFormat>
   24671         <numberFormat pattern="(80)(\d{5})">
   24672           <leadingDigits>80</leadingDigits>
   24673           <format>$1 $2</format>
   24674         </numberFormat>
   24675         <numberFormat pattern="(69\d)(\d{4,5})">
   24676           <leadingDigits>69</leadingDigits>
   24677           <format>$1 $2</format>
   24678         </numberFormat>
   24679         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
   24680           <leadingDigits>
   24681             2[1348]|
   24682             3[25]|
   24683             5[01]|
   24684             65|
   24685             7[18]
   24686           </leadingDigits>
   24687           <format>$1 $2 $3</format>
   24688         </numberFormat>
   24689         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
   24690           <leadingDigits>9</leadingDigits>
   24691           <format>$1 $2 $3 $4</format>
   24692         </numberFormat>
   24693         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
   24694           <leadingDigits>
   24695             1(?:
   24696               [26]|
   24697               8[68]|
   24698               99
   24699             )
   24700           </leadingDigits>
   24701           <format>$1 $2 $3</format>
   24702         </numberFormat>
   24703         <numberFormat nationalPrefixFormattingRule="$FG"
   24704           pattern="(1[89]00)(\d{4,6})">
   24705           <leadingDigits>1[89]0</leadingDigits>
   24706           <format>$1 $2</format>
   24707         </numberFormat>
   24708       </availableFormats>
   24709       <generalDesc>
   24710         <nationalNumberPattern>
   24711           [17]\d{6,9}|
   24712           [2-69]\d{7,9}|
   24713           8\d{6,8}
   24714         </nationalNumberPattern>
   24715         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   24716       </generalDesc>
   24717       <noInternationalDialling>
   24718         <nationalNumberPattern>
   24719           [17]99\d{4}|
   24720           69\d{5,6}
   24721         </nationalNumberPattern>
   24722         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   24723         <exampleNumber>1992000</exampleNumber>
   24724       </noInternationalDialling>
   24725       <fixedLine>
   24726         <nationalNumberPattern>
   24727           (?:
   24728             2(?:
   24729               [025-79]|
   24730               1[0189]|
   24731               [348][01]
   24732             )|
   24733             3(?:
   24734               [0136-9]|
   24735               [25][01]
   24736             )|
   24737             4\d|
   24738             5(?:
   24739               [01][01]|
   24740               [2-9]
   24741             )|
   24742             6(?:
   24743               [0-46-8]|
   24744               5[01]
   24745             )|
   24746             7(?:
   24747               [02-79]|
   24748               [18][01]
   24749             )|
   24750             8[1-9]
   24751           )\d{7}
   24752         </nationalNumberPattern>
   24753         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   24754         <exampleNumber>2101234567</exampleNumber>
   24755       </fixedLine>
   24756       <mobile>
   24757         <nationalNumberPattern>
   24758           (?:
   24759             9\d|
   24760             1(?:
   24761               2\d|
   24762               6[2-9]|
   24763               8[68]|
   24764               99
   24765             )
   24766           )\d{7}
   24767         </nationalNumberPattern>
   24768         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   24769         <exampleNumber>912345678</exampleNumber>
   24770       </mobile>
   24771       <tollFree>
   24772         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
   24773         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   24774         <exampleNumber>1800123456</exampleNumber>
   24775       </tollFree>
   24776       <premiumRate>
   24777         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
   24778         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   24779         <exampleNumber>1900123456</exampleNumber>
   24780       </premiumRate>
   24781       <uan>
   24782         <!-- These include non-geographic fixed numbers, such as for government ministries. While
   24783         listed as "private networks", they may actually be callable from within Vietnam. (They are
   24784         "private" in the sense that ordinary people could not be assigned these numbers.) -->
   24785         <nationalNumberPattern>
   24786           [17]99\d{4}|
   24787           69\d{5,6}|
   24788           80\d{5}
   24789         </nationalNumberPattern>
   24790         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   24791         <exampleNumber>1992000</exampleNumber>
   24792       </uan>
   24793       <emergency>
   24794         <nationalNumberPattern>11[345]</nationalNumberPattern>
   24795         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   24796         <exampleNumber>113</exampleNumber>
   24797       </emergency>
   24798     </territory>
   24799 
   24800     <!-- Vanuatu -->
   24801     <!-- http://www.itu.int/oth/T02020000E2/en -->
   24802     <territory id="VU" countryCode="678" internationalPrefix="00">
   24803       <!-- Should be formatted in one block, apart from the mobile numbers. -->
   24804       <availableFormats>
   24805         <numberFormat pattern="(\d{3})(\d{4})">
   24806           <leadingDigits>[579]</leadingDigits>
   24807           <format>$1 $2</format>
   24808         </numberFormat>
   24809       </availableFormats>
   24810       <generalDesc>
   24811         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
   24812         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   24813       </generalDesc>
   24814       <fixedLine>
   24815         <nationalNumberPattern>
   24816           (?:
   24817             2[2-9]\d|
   24818             3(?:
   24819               [5-7]\d|
   24820               8[0-8]
   24821             )|
   24822             48[4-9]|
   24823             88\d
   24824           )\d{2}
   24825         </nationalNumberPattern>
   24826         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   24827         <exampleNumber>22123</exampleNumber>
   24828       </fixedLine>
   24829       <mobile>
   24830         <nationalNumberPattern>
   24831           (?:
   24832             5(?:
   24833               7[2-5]|
   24834               [3-69]\d
   24835             )|
   24836             7[013-7]\d
   24837           )\d{4}
   24838         </nationalNumberPattern>
   24839         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   24840         <exampleNumber>5912345</exampleNumber>
   24841       </mobile>
   24842       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
   24843            for government fixed-line numbers. -->
   24844       <uan>
   24845         <nationalNumberPattern>
   24846           3[03]\d{3}|
   24847           900\d{4}
   24848         </nationalNumberPattern>
   24849         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   24850         <exampleNumber>30123</exampleNumber>
   24851       </uan>
   24852       <emergency>
   24853         <nationalNumberPattern>112</nationalNumberPattern>
   24854         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   24855         <exampleNumber>112</exampleNumber>
   24856       </emergency>
   24857     </territory>
   24858 
   24859     <!-- Wallis and Futuna (Territoire franais d'outre-mer) -->
   24860     <!-- http://www.itu.int/oth/T02020000E6/en -->
   24861     <territory id="WF" countryCode="681" internationalPrefix="00">
   24862       <availableFormats>
   24863         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   24864           <format>$1 $2 $3</format>
   24865         </numberFormat>
   24866       </availableFormats>
   24867       <generalDesc>
   24868         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
   24869         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   24870       </generalDesc>
   24871       <fixedLine>
   24872         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
   24873              50 and 68 are possible, so they are included here. -->
   24874         <nationalNumberPattern>
   24875           (?:
   24876             50|
   24877             68|
   24878             72
   24879           )\d{4}
   24880         </nationalNumberPattern>
   24881         <exampleNumber>501234</exampleNumber>
   24882       </fixedLine>
   24883       <mobile>
   24884         <nationalNumberPattern>
   24885           (?:
   24886             50|
   24887             68|
   24888             72
   24889           )\d{4}
   24890         </nationalNumberPattern>
   24891         <exampleNumber>501234</exampleNumber>
   24892       </mobile>
   24893       <!-- http://lannuaire.service-public.fr/navigation/wallis-et-futuna-wallis-futuna-alofi.html
   24894            -->
   24895       <emergency>
   24896         <nationalNumberPattern>1[578]</nationalNumberPattern>
   24897         <possibleNumberPattern>\d{2}</possibleNumberPattern>
   24898         <exampleNumber>15</exampleNumber>
   24899       </emergency>
   24900     </territory>
   24901 
   24902     <!-- Samoa -->
   24903     <!-- http://www.itu.int/oth/T02020000B4/en -->
   24904     <territory id="WS" countryCode="685" internationalPrefix="0">
   24905       <availableFormats>
   24906         <!-- Should be formatted in one block, apart from the specific series below. -->
   24907         <numberFormat pattern="(8\d{2})(\d{3,4})">
   24908           <leadingDigits>8</leadingDigits>
   24909           <format>$1 $2</format>
   24910         </numberFormat>
   24911         <numberFormat pattern="(7\d)(\d{5})">
   24912           <leadingDigits>7</leadingDigits>
   24913           <format>$1 $2</format>
   24914         </numberFormat>
   24915       </availableFormats>
   24916       <generalDesc>
   24917         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
   24918         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   24919       </generalDesc>
   24920       <fixedLine>
   24921         <nationalNumberPattern>
   24922           (?:
   24923             [2-5]\d|
   24924             6[1-9]|
   24925             84\d{2}
   24926           )\d{3}
   24927         </nationalNumberPattern>
   24928         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   24929         <exampleNumber>22123</exampleNumber>
   24930       </fixedLine>
   24931       <mobile>
   24932         <nationalNumberPattern>
   24933           (?:
   24934             60|
   24935             7[25-7]\d
   24936           )\d{4}
   24937         </nationalNumberPattern>
   24938         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   24939         <exampleNumber>601234</exampleNumber>
   24940       </mobile>
   24941       <tollFree>
   24942         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
   24943              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
   24944              for now, so may be also used for other purposes than toll free, but until we have
   24945              further evidence of these we will keep it as toll free. -->
   24946         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
   24947         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   24948         <exampleNumber>800123</exampleNumber>
   24949       </tollFree>
   24950       <!-- Current research suggests other types of numbers are not used in Samoa. -->
   24951       <emergency>
   24952         <!-- http://www.blueskysamoa.ws/?page_id=509 -->
   24953         <nationalNumberPattern>99[4-6]</nationalNumberPattern>
   24954         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   24955         <exampleNumber>994</exampleNumber>
   24956       </emergency>
   24957     </territory>
   24958 
   24959     <!-- Yemen -->
   24960     <!-- http://www.itu.int/oth/T02020000E7/en -->
   24961     <territory id="YE" countryCode="967" internationalPrefix="00"
   24962                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   24963       <availableFormats>
   24964         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
   24965           <leadingDigits>
   24966             [1-6]|
   24967             7[24-68]
   24968           </leadingDigits>
   24969           <format>$1 $2 $3</format>
   24970         </numberFormat>
   24971         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
   24972           <leadingDigits>7[0137]</leadingDigits>
   24973           <format>$1 $2 $3</format>
   24974         </numberFormat>
   24975       </availableFormats>
   24976       <generalDesc>
   24977         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
   24978         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   24979       </generalDesc>
   24980       <fixedLine>
   24981         <nationalNumberPattern>
   24982           (?:
   24983             1(?:
   24984               7\d|
   24985               [2-68]
   24986             )|
   24987             2[2-68]|
   24988             3[2358]|
   24989             4[2-58]|
   24990             5[2-6]|
   24991             6[3-58]|
   24992             7[24-68]
   24993           )\d{5}
   24994         </nationalNumberPattern>
   24995         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   24996         <exampleNumber>1234567</exampleNumber>
   24997       </fixedLine>
   24998       <mobile>
   24999         <!-- Adding 70 from numbers found online. -->
   25000         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
   25001         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25002         <exampleNumber>712345678</exampleNumber>
   25003       </mobile>
   25004       <!-- No tollFree or premiumRate information can be found. -->
   25005       <emergency>
   25006         <!-- http://www.yemenypages.com/en/emergency_numbers.aspx -->
   25007         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
   25008         <!-- http://www.netglobers.com/asia/yemen-emergency-numbers-in-yemen.html -->
   25009         <nationalNumberPattern>19[1459]</nationalNumberPattern>
   25010         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   25011         <exampleNumber>191</exampleNumber>
   25012       </emergency>
   25013     </territory>
   25014 
   25015     <!-- Mayotte -->
   25016     <!-- Some information at http://en.wikipedia.org/wiki/Telephone_numbers_in_France - most from
   25017          collection of internet data. http://www.comores-online.com/mwezinet/internet/262.htm
   25018          verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
   25019          -->
   25020     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
   25021                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
   25022       <!-- Formatting as per La Runion. -->
   25023       <generalDesc>
   25024         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
   25025         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25026       </generalDesc>
   25027       <fixedLine>
   25028         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
   25029         <exampleNumber>269601234</exampleNumber>
   25030       </fixedLine>
   25031       <mobile>
   25032         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
   25033         <exampleNumber>639123456</exampleNumber>
   25034       </mobile>
   25035       <!-- Same as in France. -->
   25036       <tollFree>
   25037         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   25038         <exampleNumber>801234567</exampleNumber>
   25039       </tollFree>
   25040       <!-- http://www.sfr-mayotte.com/la-carte/les-services-@/article.jspz?oid=679&categ=345 -->
   25041       <!-- http://www.sccfd.org/travel.html -->
   25042       <emergency>
   25043         <nationalNumberPattern>
   25044           1(?:
   25045             12|
   25046             5
   25047           )
   25048         </nationalNumberPattern>
   25049         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
   25050         <exampleNumber>15</exampleNumber>
   25051       </emergency>
   25052     </territory>
   25053 
   25054     <!-- South Africa -->
   25055     <!-- http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000C10001PDFE.pdf -->
   25056     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa -->
   25057     <territory id="ZA" countryCode="27" internationalPrefix="00"
   25058                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   25059       <availableFormats>
   25060         <numberFormat pattern="(860)(\d{3})(\d{3})">
   25061           <leadingDigits>860</leadingDigits>
   25062           <format>$1 $2 $3</format>
   25063         </numberFormat>
   25064         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   25065           <leadingDigits>
   25066             [1-79]|
   25067             8(?:
   25068               [0-47]|
   25069               6[1-9]
   25070             )
   25071           </leadingDigits>
   25072           <format>$1 $2 $3</format>
   25073         </numberFormat>
   25074         <numberFormat pattern="(\d{2})(\d{3,4})">
   25075           <leadingDigits>8[1-4]</leadingDigits>
   25076           <format>$1 $2</format>
   25077         </numberFormat>
   25078         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
   25079           <leadingDigits>8[1-4]</leadingDigits>
   25080           <format>$1 $2 $3</format>
   25081         </numberFormat>
   25082       </availableFormats>
   25083       <generalDesc>
   25084         <nationalNumberPattern>
   25085           [1-79]\d{8}|
   25086           8(?:
   25087             [067]\d{7}|
   25088             [1-4]\d{3,7}
   25089           )
   25090         </nationalNumberPattern>
   25091         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   25092       </generalDesc>
   25093       <fixedLine>
   25094         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
   25095              used in 1996. -->
   25096         <nationalNumberPattern>
   25097           (?:
   25098             1[0-8]|
   25099             2[0-378]|
   25100             3[1-69]|
   25101             4\d|
   25102             5[1346-8]
   25103           )\d{7}
   25104         </nationalNumberPattern>
   25105         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25106         <exampleNumber>101234567</exampleNumber>
   25107       </fixedLine>
   25108       <mobile>
   25109         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
   25110              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
   25111              in prominent places online, even though the ITU document says numbers must be 10 digits
   25112              long (including the national prefix). -->
   25113         <nationalNumberPattern>
   25114           (?:
   25115             6[0-5]|
   25116             7[0-46-9]
   25117           )\d{7}|
   25118           8[1-4]\d{3,7}
   25119         </nationalNumberPattern>
   25120         <exampleNumber>711234567</exampleNumber>
   25121       </mobile>
   25122       <tollFree>
   25123         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   25124         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25125         <exampleNumber>801234567</exampleNumber>
   25126       </tollFree>
   25127       <premiumRate>
   25128         <nationalNumberPattern>
   25129           86[2-9]\d{6}|
   25130           90\d{7}
   25131         </nationalNumberPattern>
   25132         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25133         <exampleNumber>862345678</exampleNumber>
   25134       </premiumRate>
   25135       <sharedCost>
   25136         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
   25137         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25138         <exampleNumber>860123456</exampleNumber>
   25139       </sharedCost>
   25140       <voip>
   25141         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
   25142         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25143         <exampleNumber>871234567</exampleNumber>
   25144       </voip>
   25145       <uan>
   25146         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
   25147              numbers. -->
   25148         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
   25149         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25150         <exampleNumber>861123456</exampleNumber>
   25151       </uan>
   25152       <emergency>
   25153         <nationalNumberPattern>
   25154           1(?:
   25155             01(?:
   25156               11|
   25157               77
   25158             )|
   25159             12
   25160           )
   25161         </nationalNumberPattern>
   25162         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
   25163         <exampleNumber>10111</exampleNumber>
   25164       </emergency>
   25165     </territory>
   25166 
   25167     <!-- Zambia -->
   25168     <!-- http://www.itu.int/oth/T02020000E8/en -->
   25169     <territory id="ZM" countryCode="260" internationalPrefix="00"
   25170                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   25171       <availableFormats>
   25172         <numberFormat pattern="([29]\d)(\d{7})">
   25173           <leadingDigits>[29]</leadingDigits>
   25174           <format>$1 $2</format>
   25175         </numberFormat>
   25176         <numberFormat pattern="(800)(\d{3})(\d{3})">
   25177           <leadingDigits>8</leadingDigits>
   25178           <format>$1 $2 $3</format>
   25179         </numberFormat>
   25180       </availableFormats>
   25181       <generalDesc>
   25182         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
   25183         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25184       </generalDesc>
   25185       <fixedLine>
   25186         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
   25187         <exampleNumber>211234567</exampleNumber>
   25188       </fixedLine>
   25189       <mobile>
   25190         <!-- Adding extra prefixes 50, 6[1-57-9] and 7[13-6] since SMS messages have been
   25191              successfully delivered to these numbers, and numbers like this can be found on the
   25192              Internet. Adding prefix 960 based on information received from MTN Zambia. -->
   25193         <nationalNumberPattern>
   25194           9(?:
   25195             5[05]|
   25196             6\d|
   25197             7[13-9]
   25198           )\d{6}
   25199         </nationalNumberPattern>
   25200         <exampleNumber>955123456</exampleNumber>
   25201       </mobile>
   25202       <tollFree>
   25203         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   25204         <exampleNumber>800123456</exampleNumber>
   25205       </tollFree>
   25206       <emergency>
   25207         <nationalNumberPattern>
   25208           (?:
   25209             112|
   25210             99[139]
   25211           )
   25212         </nationalNumberPattern>
   25213         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   25214         <exampleNumber>999</exampleNumber>
   25215       </emergency>
   25216     </territory>
   25217 
   25218     <!-- Zimbabwe -->
   25219     <!-- http://www.itu.int/oth/T02020000E9/en -->
   25220     <territory id="ZW" countryCode="263" internationalPrefix="00"
   25221                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   25222       <availableFormats>
   25223         <!-- One-digit area codes -->
   25224         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
   25225           <leadingDigits>
   25226             4|
   25227             9[2-9]
   25228           </leadingDigits>
   25229           <format>$1 $2 $3</format>
   25230         </numberFormat>
   25231         <!-- Mobile numbers -->
   25232         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
   25233           <leadingDigits>
   25234             [19]1|
   25235             7
   25236           </leadingDigits>
   25237           <format>$1 $2 $3</format>
   25238         </numberFormat>
   25239         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
   25240           <leadingDigits>86[24]</leadingDigits>
   25241           <format>$1 $2 $3</format>
   25242         </numberFormat>
   25243         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
   25244         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
   25245           <leadingDigits>
   25246             2(?:
   25247               [278]|
   25248               0[45]|
   25249               [49]8
   25250             )|
   25251             3(?:
   25252               08|
   25253               17|
   25254               3[78]|
   25255               [78]
   25256             )|
   25257             5[15][78]|
   25258             6(?:
   25259               [29]8|
   25260               37|
   25261               [68][78]
   25262             )
   25263           </leadingDigits>
   25264           <format>$1 $2</format>
   25265         </numberFormat>
   25266         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   25267           <leadingDigits>
   25268             2(?:
   25269               [278]|
   25270               0[45]|
   25271               48
   25272             )|
   25273             3(?:
   25274               08|
   25275               17|
   25276               3[78]|
   25277               [78]
   25278             )|
   25279             5[15][78]|
   25280             6(?:
   25281               [29]8|
   25282               37|
   25283               [68][78]
   25284             )|
   25285             80
   25286           </leadingDigits>
   25287           <format>$1 $2 $3</format>
   25288         </numberFormat>
   25289         <!-- Two-digit area codes -->
   25290         <numberFormat pattern="([1-356]\d)(\d{3,5})">
   25291           <leadingDigits>
   25292             1[3-9]|
   25293             2(?:
   25294               [1-469]|
   25295               0[0-35-9]|
   25296               [45][0-79]
   25297             )|
   25298             3(?:
   25299               0[0-79]|
   25300               1[0-689]|
   25301               [24-69]|
   25302               3[0-69]
   25303             )|
   25304             5(?:
   25305               [02-46-9]|
   25306               [15][0-69]
   25307             )|
   25308             6(?:
   25309               [0145]|
   25310               [29][0-79]|
   25311               3[0-689]|
   25312               [68][0-69]
   25313             )
   25314           </leadingDigits>
   25315           <format>$1 $2</format>
   25316         </numberFormat>
   25317         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
   25318           <leadingDigits>
   25319             1[3-9]|
   25320             2(?:
   25321               [1-469]|
   25322               0[0-35-9]|
   25323               [45][0-79]
   25324             )|
   25325             3(?:
   25326               0[0-79]|
   25327               1[0-689]|
   25328               [24-69]|
   25329               3[0-69]
   25330             )|
   25331             5(?:
   25332               [02-46-9]|
   25333               [15][0-69]
   25334             )|
   25335             6(?:
   25336               [0145]|
   25337               [29][0-79]|
   25338               3[0-689]|
   25339               [68][0-69]
   25340             )
   25341           </leadingDigits>
   25342           <format>$1 $2 $3</format>
   25343         </numberFormat>
   25344         <!-- Four-digit area codes -->
   25345         <numberFormat pattern="([25]\d{3})(\d{3,5})">
   25346           <leadingDigits>
   25347             (?:
   25348               25|
   25349               54
   25350             )8
   25351           </leadingDigits>
   25352           <leadingDigits>
   25353             258[23]|
   25354             5483
   25355           </leadingDigits>
   25356           <format>$1 $2</format>
   25357         </numberFormat>
   25358         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
   25359           <leadingDigits>
   25360             (?:
   25361               25|
   25362               54
   25363             )8
   25364           </leadingDigits>
   25365           <leadingDigits>
   25366             258[23]|
   25367             5483
   25368           </leadingDigits>
   25369           <format>$1 $2 $3</format>
   25370         </numberFormat>
   25371         <!-- VOIP numbers -->
   25372         <numberFormat pattern="(8\d{3})(\d{6})">
   25373           <leadingDigits>86</leadingDigits>
   25374           <format>$1 $2</format>
   25375         </numberFormat>
   25376       </availableFormats>
   25377       <generalDesc>
   25378         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
   25379              variable in length and the possible prefixes clash with the country code. -->
   25380         <nationalNumberPattern>
   25381           2(?:
   25382             [012457-9]\d{3,8}|
   25383             6\d{3,6}
   25384           )|
   25385           [13-79]\d{4,8}|
   25386           8[06]\d{8}
   25387         </nationalNumberPattern>
   25388         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
   25389       </generalDesc>
   25390       <fixedLine>
   25391         <!-- Numbering is grouped by subscriber-number length. -->
   25392         <nationalNumberPattern>
   25393           (?:
   25394             1[3-9]|
   25395             2(?:
   25396               0[45]|
   25397               [16]|
   25398               2[28]|
   25399               [49]8?|
   25400               58[23]|
   25401               7[246]|
   25402               8[1346-9]
   25403             )|
   25404             3(?:
   25405               08?|
   25406               17?|
   25407               3[78]|
   25408               [2456]|
   25409               7[1569]|
   25410               8[379]
   25411             )|
   25412             5(?:
   25413               [07-9]|
   25414               1[78]|
   25415               483|
   25416               5(?:
   25417                 7?|
   25418                 8
   25419               )
   25420             )|
   25421             6(?:
   25422               0|
   25423               28|
   25424               37?|
   25425               [45][68][78]|
   25426               98?
   25427             )|
   25428             848
   25429           )\d{3,6}|
   25430           (?:
   25431             2(?:
   25432               27|
   25433               5|
   25434               7[135789]|
   25435               8[25]
   25436             )|
   25437             3[39]|
   25438             5[1-46]|
   25439             6[126-8]
   25440           )\d{4,6}|
   25441           2(?:
   25442             (?:
   25443               0|
   25444               70
   25445             )\d{5,6}|
   25446             2[05]\d{7}
   25447           )|
   25448           (?:
   25449             4\d|
   25450             9[2-8]
   25451           )\d{4,7}
   25452         </nationalNumberPattern>
   25453         <exampleNumber>1312345</exampleNumber>
   25454       </fixedLine>
   25455       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
   25456            also being used by the carriers as mobile prefixes. -->
   25457       <mobile>
   25458         <nationalNumberPattern>
   25459           7[1378]\d{7}|
   25460           86(?:
   25461             22|
   25462             44
   25463           )\d{6}
   25464         </nationalNumberPattern>
   25465         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   25466         <exampleNumber>711234567</exampleNumber>
   25467       </mobile>
   25468       <tollFree>
   25469         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   25470         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   25471         <exampleNumber>8001234567</exampleNumber>
   25472       </tollFree>
   25473       <!-- No premiumRate information can be found. -->
   25474       <voip>
   25475         <nationalNumberPattern>
   25476           86(?:
   25477             1[12]|
   25478             30|
   25479             55|
   25480             77|
   25481             8[367]|
   25482             99
   25483           )\d{6}
   25484         </nationalNumberPattern>
   25485         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   25486         <exampleNumber>8686123456</exampleNumber>
   25487       </voip>
   25488       <emergency>
   25489         <nationalNumberPattern>
   25490           (?:
   25491             112|
   25492             99[3459]
   25493           )
   25494         </nationalNumberPattern>
   25495         <possibleNumberPattern>\d{3}</possibleNumberPattern>
   25496         <exampleNumber>999</exampleNumber>
   25497       </emergency>
   25498     </territory>
   25499 
   25500     <!-- Universal International Toll Free Number -->
   25501     <!-- http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx -->
   25502     <territory id="001" countryCode="800" leadingZeroPossible="true">
   25503       <availableFormats>
   25504         <numberFormat pattern="(\d{4})(\d{4})">
   25505           <format>$1 $2</format>
   25506         </numberFormat>
   25507       </availableFormats>
   25508       <generalDesc>
   25509         <nationalNumberPattern>\d{8}</nationalNumberPattern>
   25510         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   25511         <exampleNumber>12345678</exampleNumber>
   25512       </generalDesc>
   25513       <fixedLine>
   25514         <nationalNumberPattern>NA</nationalNumberPattern>
   25515         <possibleNumberPattern>NA</possibleNumberPattern>
   25516       </fixedLine>
   25517       <mobile>
   25518         <nationalNumberPattern>NA</nationalNumberPattern>
   25519         <possibleNumberPattern>NA</possibleNumberPattern>
   25520       </mobile>
   25521       <tollFree>
   25522         <nationalNumberPattern>\d{8}</nationalNumberPattern>
   25523       </tollFree>
   25524     </territory>
   25525 
   25526     <!-- Universal International Shared Cost Number -->
   25527     <!-- http://www.itu.int/rec/T-REC-E.169-200205-I/en -->
   25528     <territory id="001" countryCode="808" leadingZeroPossible="true">
   25529       <availableFormats>
   25530         <numberFormat pattern="(\d{4})(\d{4})">
   25531           <format>$1 $2</format>
   25532         </numberFormat>
   25533       </availableFormats>
   25534       <generalDesc>
   25535         <nationalNumberPattern>\d{8}</nationalNumberPattern>
   25536         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   25537         <exampleNumber>12345678</exampleNumber>
   25538       </generalDesc>
   25539       <fixedLine>
   25540         <nationalNumberPattern>NA</nationalNumberPattern>
   25541         <possibleNumberPattern>NA</possibleNumberPattern>
   25542       </fixedLine>
   25543       <mobile>
   25544         <nationalNumberPattern>NA</nationalNumberPattern>
   25545         <possibleNumberPattern>NA</possibleNumberPattern>
   25546       </mobile>
   25547       <sharedCost>
   25548         <nationalNumberPattern>\d{8}</nationalNumberPattern>
   25549       </sharedCost>
   25550     </territory>
   25551 
   25552     <!-- Inmarsat Global Limited -->
   25553     <!-- http://www.itu.int/oth/T0202000065/en -->
   25554     <!-- www.inmarsat.com -->
   25555     <territory id="001" countryCode="870">
   25556       <availableFormats>
   25557         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   25558           <format>$1 $2 $3</format>
   25559         </numberFormat>
   25560       </availableFormats>
   25561       <generalDesc>
   25562         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
   25563         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25564         <exampleNumber>301234567</exampleNumber>
   25565       </generalDesc>
   25566       <fixedLine>
   25567         <nationalNumberPattern>NA</nationalNumberPattern>
   25568         <possibleNumberPattern>NA</possibleNumberPattern>
   25569       </fixedLine>
   25570       <mobile>
   25571         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
   25572         <nationalNumberPattern>
   25573           (?:
   25574             [356]\d|
   25575             7[6-8]
   25576           )\d{7}
   25577         </nationalNumberPattern>
   25578       </mobile>
   25579     </territory>
   25580 
   25581     <!-- VISIONng -->
   25582     <!-- http://www.itu.int/oth/T02020000E5/en -->
   25583     <!-- Number length has been derived from examples found online. -->
   25584     <territory id="001" countryCode="878">
   25585       <availableFormats>
   25586         <!-- Formatting chosen based on online examples. -->
   25587         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
   25588           <format>$1 $2 $3</format>
   25589         </numberFormat>
   25590       </availableFormats>
   25591       <generalDesc>
   25592         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
   25593         <possibleNumberPattern>\d{12}</possibleNumberPattern>
   25594         <exampleNumber>101234567890</exampleNumber>
   25595       </generalDesc>
   25596       <fixedLine>
   25597         <nationalNumberPattern>NA</nationalNumberPattern>
   25598         <possibleNumberPattern>NA</possibleNumberPattern>
   25599       </fixedLine>
   25600       <mobile>
   25601         <nationalNumberPattern>NA</nationalNumberPattern>
   25602         <possibleNumberPattern>NA</possibleNumberPattern>
   25603       </mobile>
   25604       <voip>
   25605         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
   25606       </voip>
   25607     </territory>
   25608 
   25609     <!-- Iridium -->
   25610     <!-- www.iridium.com -->
   25611     <!-- http://www.itu.int/oth/T0202000069/en -->
   25612     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
   25613          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
   25614          are. For this reason, we only support Iridium numbers at the moment. -->
   25615     <territory id="001" countryCode="881">
   25616       <availableFormats>
   25617         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
   25618         <numberFormat pattern="(\d)(\d{3})(\d{5})">
   25619           <leadingDigits>[67]</leadingDigits>
   25620           <format>$1 $2 $3</format>
   25621         </numberFormat>
   25622       </availableFormats>
   25623       <generalDesc>
   25624         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
   25625         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25626         <exampleNumber>612345678</exampleNumber>
   25627       </generalDesc>
   25628       <fixedLine>
   25629         <nationalNumberPattern>NA</nationalNumberPattern>
   25630         <possibleNumberPattern>NA</possibleNumberPattern>
   25631       </fixedLine>
   25632       <mobile>
   25633         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
   25634       </mobile>
   25635     </territory>
   25636 
   25637     <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
   25638     <!-- http://www.itu.int/oth/T0202000054/en -->
   25639     <!-- http://www.gsm.aq/numberplan.php -->
   25640     <!-- http://www.global.aq -->
   25641     <!-- Maritime Communications Partner (MCP) +88232 -->
   25642     <!-- http://www.itu.int/oth/T02020000F4/en -->
   25643     <!-- Oration Technologies +88237 -->
   25644     <!-- http://www.itu.int/oth/T02020000A0/en -->
   25645     <!-- Telespazio S.p.A. +88213 -->
   25646     <!-- http://www.itu.int/oth/T02020000CC/en -->
   25647     <!-- Thuraya +88216 -->
   25648     <!-- http://www.itu.int/oth/T02020000CF/en -->
   25649     <territory id="001" countryCode="882">
   25650       <availableFormats>
   25651         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
   25652           <leadingDigits>3[23]</leadingDigits>
   25653           <format>$1 $2 $3</format>
   25654         </numberFormat>
   25655         <numberFormat pattern="(\d{2})(\d{5})">
   25656           <leadingDigits>
   25657             16|
   25658             342
   25659           </leadingDigits>
   25660           <format>$1 $2</format>
   25661         </numberFormat>
   25662         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   25663           <leadingDigits>34[57]</leadingDigits>
   25664           <format>$1 $2 $3</format>
   25665         </numberFormat>
   25666         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
   25667           <leadingDigits>348</leadingDigits>
   25668           <format>$1 $2 $3</format>
   25669         </numberFormat>
   25670         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
   25671           <leadingDigits>1</leadingDigits>
   25672           <format>$1 $2 $3</format>
   25673         </numberFormat>
   25674         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
   25675           <leadingDigits>16</leadingDigits>
   25676           <format>$1 $2 $3</format>
   25677         </numberFormat>
   25678         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
   25679           <leadingDigits>16</leadingDigits>
   25680           <format>$1 $2 $3</format>
   25681         </numberFormat>
   25682       </availableFormats>
   25683       <generalDesc>
   25684         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
   25685         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
   25686         <exampleNumber>3451234567</exampleNumber>
   25687       </generalDesc>
   25688       <fixedLine>
   25689         <nationalNumberPattern>NA</nationalNumberPattern>
   25690         <possibleNumberPattern>NA</possibleNumberPattern>
   25691       </fixedLine>
   25692       <mobile>
   25693         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
   25694              Oration based on numbers found online. -->
   25695         <nationalNumberPattern>
   25696           3(?:
   25697             2\d{3}|
   25698             37\d{2}|
   25699             4(?:
   25700               2|
   25701               7\d{3}
   25702             )
   25703           )\d{4}
   25704         </nationalNumberPattern>
   25705         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   25706       </mobile>
   25707       <voip>
   25708         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
   25709         <nationalNumberPattern>
   25710           1(?:
   25711             3(?:
   25712               0[0347]|
   25713               [13][0139]|
   25714               2[035]|
   25715               4[013568]|
   25716               6[0459]|
   25717               7[06]|
   25718               8[15678]|
   25719               9[0689]
   25720             )\d{4}|
   25721             6\d{5,10}
   25722           )|
   25723           345\d{7}
   25724         </nationalNumberPattern>
   25725         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
   25726       </voip>
   25727       <voicemail>
   25728         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
   25729         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   25730       </voicemail>
   25731     </territory>
   25732 
   25733     <!-- http://www.itu.int/oth/T02020000F3/en -->
   25734     <!-- http://www.republicwireless.com/world-wi-fi-number -->
   25735     <territory id="001" countryCode="883">
   25736       <availableFormats>
   25737         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   25738           <format>$1 $2 $3</format>
   25739         </numberFormat>
   25740         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
   25741           <format>$1 $2 $3 $4</format>
   25742         </numberFormat>
   25743       </availableFormats>
   25744       <generalDesc>
   25745         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
   25746              costs can be found online, so we don't include them here for now. -->
   25747         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
   25748         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
   25749         <exampleNumber>510012345</exampleNumber>
   25750       </generalDesc>
   25751       <fixedLine>
   25752         <nationalNumberPattern>NA</nationalNumberPattern>
   25753         <possibleNumberPattern>NA</possibleNumberPattern>
   25754       </fixedLine>
   25755       <mobile>
   25756         <nationalNumberPattern>NA</nationalNumberPattern>
   25757         <possibleNumberPattern>NA</possibleNumberPattern>
   25758       </mobile>
   25759       <voip>
   25760         <nationalNumberPattern>
   25761           51(?:
   25762             00\d{5}(?:\d{3})?|
   25763             10\d{8}
   25764           )
   25765         </nationalNumberPattern>
   25766       </voip>
   25767     </territory>
   25768 
   25769     <!-- United Nations- OCHA -->
   25770     <!-- http://www.itu.int/oth/T02020000FA/en -->
   25771     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
   25772          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
   25773          the tariff of a national call. -->
   25774     <territory id="001" countryCode="888" leadingZeroPossible="true">
   25775       <availableFormats>
   25776         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
   25777           <format>$1 $2 $3</format>
   25778         </numberFormat>
   25779       </availableFormats>
   25780       <generalDesc>
   25781         <nationalNumberPattern>\d{11}</nationalNumberPattern>
   25782         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   25783         <exampleNumber>12345678901</exampleNumber>
   25784       </generalDesc>
   25785       <fixedLine>
   25786         <nationalNumberPattern>NA</nationalNumberPattern>
   25787         <possibleNumberPattern>NA</possibleNumberPattern>
   25788       </fixedLine>
   25789       <mobile>
   25790         <nationalNumberPattern>NA</nationalNumberPattern>
   25791         <possibleNumberPattern>NA</possibleNumberPattern>
   25792       </mobile>
   25793       <uan>
   25794         <nationalNumberPattern>\d{11}</nationalNumberPattern>
   25795       </uan>
   25796     </territory>
   25797 
   25798     <!-- Universal International Premium Rate Number -->
   25799     <!-- http://www.itu.int/rec/T-REC-E.169-200205-I/en -->
   25800     <territory id="001" countryCode="979" leadingZeroPossible="true">
   25801       <availableFormats>
   25802         <numberFormat pattern="(\d)(\d{4})(\d{4})">
   25803           <format>$1 $2 $3</format>
   25804         </numberFormat>
   25805       </availableFormats>
   25806       <generalDesc>
   25807         <nationalNumberPattern>\d{9}</nationalNumberPattern>
   25808         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   25809         <exampleNumber>123456789</exampleNumber>
   25810       </generalDesc>
   25811       <fixedLine>
   25812         <nationalNumberPattern>NA</nationalNumberPattern>
   25813         <possibleNumberPattern>NA</possibleNumberPattern>
   25814       </fixedLine>
   25815       <mobile>
   25816         <nationalNumberPattern>NA</nationalNumberPattern>
   25817         <possibleNumberPattern>NA</possibleNumberPattern>
   25818       </mobile>
   25819       <premiumRate>
   25820         <nationalNumberPattern>\d{9}</nationalNumberPattern>
   25821       </premiumRate>
   25822     </territory>
   25823   </territories>
   25824 </phoneNumberMetadata>
   25825