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 
     40 <!DOCTYPE phoneNumberMetadata [
     41     <!ELEMENT phoneNumberMetadata (territories)>
     42     <!ELEMENT territories (territory+)>
     43     <!ELEMENT territory (availableFormats?, generalDesc?, noInternationalDialling?,
     44         areaCodeOptional?, fixedLine?, mobile?, pager?, tollFree?, premiumRate?,
     45         sharedCost?, personalNumber?, voip?, uan?, voicemail?)>
     46     <!ELEMENT generalDesc (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
     47     <!ELEMENT noInternationalDialling (nationalNumberPattern, possibleNumberPattern?,
     48         exampleNumber?)>
     49     <!ELEMENT areaCodeOptional (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
     50     <!ELEMENT fixedLine (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     51     <!ELEMENT mobile (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     52     <!ELEMENT pager (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     53     <!ELEMENT tollFree (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     54     <!ELEMENT premiumRate (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     55     <!ELEMENT sharedCost (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     56     <!ELEMENT personalNumber (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     57     <!ELEMENT voip (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     58     <!ELEMENT uan (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     59     <!ELEMENT voicemail (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
     60     <!ELEMENT availableFormats (numberFormat+)>
     61     <!ELEMENT nationalNumberPattern (#PCDATA)>
     62     <!ELEMENT possibleNumberPattern (#PCDATA)>
     63     <!ELEMENT exampleNumber (#PCDATA)>
     64     <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)>
     65     <!ELEMENT format (#PCDATA)>
     66     <!ELEMENT intlFormat (#PCDATA)>
     67     <!ELEMENT leadingDigits (#PCDATA)>
     68 
     69     <!ATTLIST territory id CDATA #REQUIRED>
     70     <!ATTLIST territory countryCode CDATA #REQUIRED>
     71     <!ATTLIST territory mainCountryForCode (true) #IMPLIED>
     72     <!ATTLIST territory leadingDigits CDATA #IMPLIED>
     73     <!ATTLIST territory preferredInternationalPrefix CDATA #IMPLIED>
     74     <!ATTLIST territory internationalPrefix CDATA #IMPLIED>
     75     <!ATTLIST territory nationalPrefix CDATA #IMPLIED>
     76     <!ATTLIST territory nationalPrefixForParsing CDATA #IMPLIED>
     77     <!ATTLIST territory nationalPrefixTransformRule CDATA #IMPLIED>
     78     <!ATTLIST territory preferredExtnPrefix CDATA #IMPLIED>
     79     <!ATTLIST territory nationalPrefixFormattingRule CDATA #IMPLIED>
     80     <!ATTLIST territory nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
     81     <!ATTLIST territory leadingZeroPossible (true) #IMPLIED>
     82     <!ATTLIST territory carrierCodeFormattingRule CDATA #IMPLIED>
     83     <!ATTLIST territory mobileNumberPortableRegion (true) #IMPLIED>
     84     <!ATTLIST numberFormat nationalPrefixFormattingRule CDATA #IMPLIED>
     85     <!ATTLIST numberFormat nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
     86     <!ATTLIST numberFormat carrierCodeFormattingRule CDATA #IMPLIED>
     87     <!ATTLIST numberFormat pattern CDATA #REQUIRED>
     88 ]>
     89 
     90 <phoneNumberMetadata>
     91   <territories>
     92     <!-- Ascension Island -->
     93     <!-- www.itu.int/oth/T02020000AF -->
     94     <territory id="AC" countryCode="247" internationalPrefix="00">
     95       <!-- Formatted as a block. -->
     96       <generalDesc>
     97         <nationalNumberPattern>[2-467]\d{3}</nationalNumberPattern>
     98         <possibleNumberPattern>\d{4}</possibleNumberPattern>
     99       </generalDesc>
    100       <fixedLine>
    101         <nationalNumberPattern>
    102           (?:
    103             [267]\d|
    104             3[0-5]|
    105             4[4-69]
    106           )\d{2}
    107         </nationalNumberPattern>
    108         <possibleNumberPattern>\d{4}</possibleNumberPattern>
    109         <exampleNumber>6889</exampleNumber>
    110       </fixedLine>
    111       <mobile>
    112         <nationalNumberPattern>NA</nationalNumberPattern>
    113         <possibleNumberPattern>NA</possibleNumberPattern>
    114       </mobile>
    115     </territory>
    116 
    117     <!-- Andorra -->
    118     <!-- http://www.itu.int/oth/T0202000005/en -->
    119     <territory id="AD" countryCode="376" internationalPrefix="00">
    120       <availableFormats>
    121         <numberFormat pattern="(\d{3})(\d{3})">
    122           <leadingDigits>[346-9]</leadingDigits>
    123           <format>$1 $2</format>
    124         </numberFormat>
    125         <numberFormat pattern="(180[02])(\d{4})">
    126           <leadingDigits>1</leadingDigits>
    127           <format>$1 $2</format>
    128         </numberFormat>
    129       </availableFormats>
    130       <generalDesc>
    131         <nationalNumberPattern>
    132           (?:
    133             [346-9]|
    134             180
    135           )\d{5}
    136         </nationalNumberPattern>
    137         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
    138       </generalDesc>
    139       <fixedLine>
    140         <nationalNumberPattern>[78]\d{5}</nationalNumberPattern>
    141         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    142         <exampleNumber>712345</exampleNumber>
    143       </fixedLine>
    144       <mobile>
    145         <nationalNumberPattern>[346]\d{5}</nationalNumberPattern>
    146         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    147         <exampleNumber>312345</exampleNumber>
    148       </mobile>
    149       <tollFree>
    150         <!-- Note that the definitions of 1800 and 1802 numbers differ in the plan and on the
    151              Andorran www.sta.ad website, but we consider both to be freephone here. -->
    152         <nationalNumberPattern>180[02]\d{4}</nationalNumberPattern>
    153         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    154         <exampleNumber>18001234</exampleNumber>
    155       </tollFree>
    156       <!-- The national numbering plan says that numbers beginning with 9 are reserved for special
    157            services, so we assume they are premium rate here, although we cannot find examples
    158            online. -->
    159       <premiumRate>
    160         <nationalNumberPattern>9\d{5}</nationalNumberPattern>
    161         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    162         <exampleNumber>912345</exampleNumber>
    163       </premiumRate>
    164     </territory>
    165 
    166     <!-- United Arab Emirates -->
    167     <!-- http://www.itu.int/oth/T02020000DC/en -->
    168     <territory id="AE" countryCode="971" internationalPrefix="00"
    169                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
    170       <availableFormats>
    171         <numberFormat pattern="([2-4679])(\d{3})(\d{4})">
    172           <leadingDigits>[2-4679][2-8]</leadingDigits>
    173           <format>$1 $2 $3</format>
    174         </numberFormat>
    175         <numberFormat pattern="(5[0256])(\d{3})(\d{4})">
    176           <leadingDigits>5</leadingDigits>
    177           <format>$1 $2 $3</format>
    178         </numberFormat>
    179         <numberFormat pattern="([479]00)(\d)(\d{5})" nationalPrefixFormattingRule="$FG">
    180           <leadingDigits>[479]0</leadingDigits>
    181           <format>$1 $2 $3</format>
    182         </numberFormat>
    183         <numberFormat pattern="([68]00)(\d{2,9})" nationalPrefixFormattingRule="$FG">
    184           <leadingDigits>
    185             60|
    186             8
    187           </leadingDigits>
    188           <format>$1 $2</format>
    189         </numberFormat>
    190       </availableFormats>
    191       <generalDesc>
    192         <nationalNumberPattern>
    193           [2-79]\d{7,8}|
    194           800\d{2,9}
    195         </nationalNumberPattern>
    196         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
    197       </generalDesc>
    198       <fixedLine>
    199         <nationalNumberPattern>[2-4679][2-8]\d{6}</nationalNumberPattern>
    200         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
    201         <exampleNumber>22345678</exampleNumber>
    202       </fixedLine>
    203       <mobile>
    204         <nationalNumberPattern>5[0256]\d{7}</nationalNumberPattern>
    205         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    206         <exampleNumber>501234567</exampleNumber>
    207       </mobile>
    208       <tollFree>
    209         <nationalNumberPattern>
    210           400\d{6}|
    211           800\d{2,9}
    212         </nationalNumberPattern>
    213         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
    214         <exampleNumber>800123456</exampleNumber>
    215       </tollFree>
    216       <premiumRate>
    217         <nationalNumberPattern>900[02]\d{5}</nationalNumberPattern>
    218         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    219         <exampleNumber>900234567</exampleNumber>
    220       </premiumRate>
    221       <sharedCost>
    222         <nationalNumberPattern>700[05]\d{5}</nationalNumberPattern>
    223         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    224         <exampleNumber>700012345</exampleNumber>
    225       </sharedCost>
    226       <uan>
    227         <nationalNumberPattern>600[25]\d{5}</nationalNumberPattern>
    228         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    229         <exampleNumber>600212345</exampleNumber>
    230       </uan>
    231     </territory>
    232 
    233     <!-- Afghanistan -->
    234     <!-- http://www.itu.int/oth/T0202000001/en -->
    235     <territory id="AF" countryCode="93" internationalPrefix="00"
    236                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
    237       <availableFormats>
    238         <numberFormat pattern="([2-7]\d)(\d{3})(\d{4})">
    239           <format>$1 $2 $3</format>
    240         </numberFormat>
    241       </availableFormats>
    242       <generalDesc>
    243         <nationalNumberPattern>[2-7]\d{8}</nationalNumberPattern>
    244         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
    245       </generalDesc>
    246       <fixedLine>
    247         <nationalNumberPattern>
    248           (?:
    249             [25][0-8]|
    250             [34][0-4]|
    251             6[0-5]
    252           )[2-9]\d{6}
    253         </nationalNumberPattern>
    254         <exampleNumber>234567890</exampleNumber>
    255       </fixedLine>
    256       <mobile>
    257         <nationalNumberPattern>7[057-9]\d{7}</nationalNumberPattern>
    258         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    259         <exampleNumber>701234567</exampleNumber>
    260       </mobile>
    261     </territory>
    262 
    263     <!-- Antigua and Barbuda -->
    264     <!-- http://www.itu.int/oth/T0202000008/en -->
    265     <territory id="AG" countryCode="1" leadingDigits="268" nationalPrefix="1"
    266                internationalPrefix="011">
    267       <generalDesc>
    268         <!-- NANPA country - uses US formatting rules -->
    269         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
    270         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
    271       </generalDesc>
    272       <fixedLine>
    273         <!-- 268 468 is not in the plan, but has been added after numbers with this prefix have been
    274              found in online searches. -->
    275         <nationalNumberPattern>
    276           268(?:
    277             4(?:
    278               6[0-38]|
    279               84
    280             )|
    281             56[0-2]
    282           )\d{4}
    283         </nationalNumberPattern>
    284         <exampleNumber>2684601234</exampleNumber>
    285       </fixedLine>
    286       <mobile>
    287         <!-- 268 776/778/779 are not in the plan, but have been added after numbers with these
    288              prefixes have been found in online searches. Same for 268 780/782/784/786. -->
    289         <nationalNumberPattern>
    290           268(?:
    291             464|
    292             7(?:
    293               2[0-9]|
    294               64|
    295               7[0-689]|
    296               8[02-68]
    297             )
    298           )\d{4}
    299         </nationalNumberPattern>
    300         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    301         <exampleNumber>2684641234</exampleNumber>
    302       </mobile>
    303       <pager>
    304         <nationalNumberPattern>26840[69]\d{4}</nationalNumberPattern>
    305         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    306         <exampleNumber>2684061234</exampleNumber>
    307       </pager>
    308       <tollFree>
    309         <nationalNumberPattern>
    310           8(?:
    311             00|
    312             55|
    313             66|
    314             77|
    315             88
    316           )[2-9]\d{6}
    317         </nationalNumberPattern>
    318         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    319         <exampleNumber>8002123456</exampleNumber>
    320       </tollFree>
    321       <premiumRate>
    322         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
    323         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    324         <exampleNumber>9002123456</exampleNumber>
    325       </premiumRate>
    326       <personalNumber>
    327         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
    328         <nationalNumberPattern>
    329           5(?:
    330             00|
    331             33|
    332             44
    333           )[2-9]\d{6}
    334         </nationalNumberPattern>
    335         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    336         <exampleNumber>5002345678</exampleNumber>
    337       </personalNumber>
    338       <voip>
    339         <!-- This is included as Centrex in the plan. -->
    340         <nationalNumberPattern>26848[01]\d{4}</nationalNumberPattern>
    341         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    342         <exampleNumber>2684801234</exampleNumber>
    343       </voip>
    344     </territory>
    345 
    346     <!-- Anguilla -->
    347     <!-- http://www.itu.int/oth/T0202000007/en -->
    348     <territory id="AI" countryCode="1" leadingDigits="264" nationalPrefix="1"
    349                internationalPrefix="011">
    350       <generalDesc>
    351         <!-- NANPA country - uses US formatting rules -->
    352         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
    353         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
    354       </generalDesc>
    355       <fixedLine>
    356         <nationalNumberPattern>
    357           2644(?:
    358             6[12]|
    359             9[78]
    360           )\d{4}
    361         </nationalNumberPattern>
    362         <exampleNumber>2644612345</exampleNumber>
    363       </fixedLine>
    364       <mobile>
    365         <nationalNumberPattern>
    366           264(?:
    367             235|
    368             476|
    369             5(?:
    370               3[6-9]|
    371               8[1-4]
    372             )|
    373             7(?:
    374               29|
    375               72
    376             )
    377           )\d{4}
    378         </nationalNumberPattern>
    379         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    380         <exampleNumber>2642351234</exampleNumber>
    381       </mobile>
    382       <tollFree>
    383         <nationalNumberPattern>
    384           8(?:
    385             00|
    386             55|
    387             66|
    388             77|
    389             88
    390           )[2-9]\d{6}
    391         </nationalNumberPattern>
    392         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    393         <exampleNumber>8002123456</exampleNumber>
    394       </tollFree>
    395       <premiumRate>
    396         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
    397         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    398         <exampleNumber>9002123456</exampleNumber>
    399       </premiumRate>
    400       <personalNumber>
    401         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
    402         <nationalNumberPattern>
    403           5(?:
    404             00|
    405             33|
    406             44
    407           )[2-9]\d{6}
    408         </nationalNumberPattern>
    409         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    410         <exampleNumber>5002345678</exampleNumber>
    411       </personalNumber>
    412     </territory>
    413 
    414     <!-- Albania -->
    415     <!-- http://www.itu.int/oth/T0202000002/en -->
    416     <territory id="AL" countryCode="355" internationalPrefix="00"
    417                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
    418                mobileNumberPortableRegion="true">
    419       <availableFormats>
    420         <!-- Formats mostly follow http://tirana.usembassy.gov/list_of_doctors.html -->
    421         <numberFormat pattern="(4)(\d{3})(\d{4})">
    422           <leadingDigits>4[0-6]</leadingDigits>
    423           <format>$1 $2 $3</format>
    424         </numberFormat>
    425         <numberFormat pattern="(6[6-9])(\d{3})(\d{4})">
    426           <leadingDigits>6</leadingDigits>
    427           <format>$1 $2 $3</format>
    428         </numberFormat>
    429         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
    430           <leadingDigits>
    431             [2358][2-5]|
    432             4[7-9]
    433           </leadingDigits>
    434           <format>$1 $2 $3</format>
    435         </numberFormat>
    436         <numberFormat pattern="(\d{3})(\d{3,5})">
    437           <leadingDigits>
    438             [235][16-9]|
    439             8[016-9]|
    440             [79]
    441           </leadingDigits>
    442           <format>$1 $2</format>
    443         </numberFormat>
    444       </availableFormats>
    445       <generalDesc>
    446         <nationalNumberPattern>
    447           [2-57]\d{7}|
    448           6\d{8}|
    449           8\d{5,7}|
    450           9\d{5}
    451         </nationalNumberPattern>
    452         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
    453       </generalDesc>
    454       <fixedLine>
    455         <nationalNumberPattern>
    456           (?:
    457             2(?:
    458               [168][1-9]|
    459               [247]\d|
    460               9[1-7]
    461             )|
    462             3(?:
    463               1[1-3]|
    464               [2-6]\d|
    465               [79][1-8]|
    466               8[1-9]
    467             )|
    468             4\d{2}|
    469             5(?:
    470               1[1-4]|
    471               [2-578]\d|
    472               6[1-5]|
    473               9[1-7]
    474             )|
    475             8(?:
    476               [19][1-5]|
    477               [2-6]\d|
    478               [78][1-7]
    479             )
    480           )\d{5}
    481         </nationalNumberPattern>
    482         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
    483         <exampleNumber>22345678</exampleNumber>
    484       </fixedLine>
    485       <mobile>
    486         <nationalNumberPattern>6[6-9]\d{7}</nationalNumberPattern>
    487         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    488         <exampleNumber>661234567</exampleNumber>
    489       </mobile>
    490       <tollFree>
    491         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
    492         <possibleNumberPattern>\d{7}</possibleNumberPattern>
    493         <exampleNumber>8001234</exampleNumber>
    494       </tollFree>
    495       <premiumRate>
    496         <!-- It is named "Shared Revenue Services" in the plan, but as there is a separate "Shared
    497              Cost Services", it is highly likely these numbers are premium rate numbers. No
    498              information/example is found in the Internet. -->
    499         <nationalNumberPattern>900\d{3}</nationalNumberPattern>
    500         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    501         <exampleNumber>900123</exampleNumber>
    502       </premiumRate>
    503       <sharedCost>
    504         <nationalNumberPattern>808\d{3}</nationalNumberPattern>
    505         <possibleNumberPattern>\d{6}</possibleNumberPattern>
    506         <exampleNumber>808123</exampleNumber>
    507       </sharedCost>
    508       <personalNumber>
    509         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
    510         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    511         <exampleNumber>70012345</exampleNumber>
    512       </personalNumber>
    513     </territory>
    514 
    515     <!-- Armenia -->
    516     <!-- http://www.itu.int/oth/T020200000A/en -->
    517     <!-- http://en.wikipedia.org/wiki/%2B374 -->
    518     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Nagorno-Karabakh_Republic -->
    519     <!-- We think the national dialling prefix is 0 - it seems this was a change in 2005 (or 2008)
    520          along with the new city codes. However, their official document makes no mention of it,
    521          websites disagree, and we are not sure if the change has actually been made. -->
    522     <territory id="AM" countryCode="374" internationalPrefix="00"
    523                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
    524       <availableFormats>
    525         <numberFormat pattern="(\d{2})(\d{6})">
    526           <leadingDigits>
    527             1|
    528             47
    529           </leadingDigits>
    530           <format>$1 $2</format>
    531         </numberFormat>
    532         <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
    533           <leadingDigits>
    534             [5-7]|
    535             9[1-9]
    536           </leadingDigits>
    537           <format>$1 $2</format>
    538         </numberFormat>
    539         <numberFormat pattern="(\d{3})(\d{5})">
    540           <leadingDigits>[23]</leadingDigits>
    541           <format>$1 $2</format>
    542         </numberFormat>
    543         <numberFormat pattern="(\d{3})(\d{2})(\d{3})" nationalPrefixFormattingRule="$NP $FG">
    544           <leadingDigits>
    545             8|
    546             90
    547           </leadingDigits>
    548           <format>$1 $2 $3</format>
    549         </numberFormat>
    550       </availableFormats>
    551       <generalDesc>
    552         <nationalNumberPattern>[1-9]\d{7}</nationalNumberPattern>
    553         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
    554       </generalDesc>
    555       <fixedLine>
    556         <!-- Includes telephone numbers in Nagorno-Karabakh Republic, physically located inside
    557              Azerbaijan, which use prefix 47. -->
    558         <nationalNumberPattern>
    559           (?:
    560             1[01]\d|
    561             2(?:
    562               2[2-46]|
    563               3[1-8]|
    564               4[2-69]|
    565               5[2-7]|
    566               6[1-9]|
    567               8[1-7]
    568             )|
    569             3[12]2|
    570             47\d
    571           )\d{5}
    572         </nationalNumberPattern>
    573         <exampleNumber>10123456</exampleNumber>
    574       </fixedLine>
    575       <mobile>
    576         <!-- Part of the range 97 is used by Nagorno-Karabakh Republic. -->
    577         <nationalNumberPattern>
    578           (?:
    579             55|
    580             77|
    581             9[1-9]
    582           )\d{6}
    583         </nationalNumberPattern>
    584         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    585         <exampleNumber>77123456</exampleNumber>
    586       </mobile>
    587       <tollFree>
    588         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
    589         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    590         <exampleNumber>80012345</exampleNumber>
    591       </tollFree>
    592       <premiumRate>
    593         <nationalNumberPattern>90[016]\d{5}</nationalNumberPattern>
    594         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    595         <exampleNumber>90012345</exampleNumber>
    596       </premiumRate>
    597       <sharedCost>
    598         <nationalNumberPattern>80[1-4]\d{5}</nationalNumberPattern>
    599         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    600         <exampleNumber>80112345</exampleNumber>
    601       </sharedCost>
    602       <voip>
    603         <nationalNumberPattern>60[2-6]\d{5}</nationalNumberPattern>
    604         <possibleNumberPattern>\d{8}</possibleNumberPattern>
    605         <exampleNumber>60271234</exampleNumber>
    606       </voip>
    607     </territory>
    608 
    609     <!-- Angola -->
    610     <!-- http://www.itu.int/oth/T0202000006/en -->
    611     <territory id="AO" countryCode="244" internationalPrefix="00">
    612       <availableFormats>
    613         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
    614           <format>$1 $2 $3</format>
    615         </numberFormat>
    616       </availableFormats>
    617       <generalDesc>
    618         <nationalNumberPattern>[29]\d{8}</nationalNumberPattern>
    619         <possibleNumberPattern>\d{9}</possibleNumberPattern>
    620       </generalDesc>
    621       <fixedLine>
    622         <nationalNumberPattern>
    623           2\d(?:
    624             [26-9]\d|
    625             \d[26-9]
    626           )\d{5}
    627         </nationalNumberPattern>
    628         <exampleNumber>222123456</exampleNumber>
    629       </fixedLine>
    630       <mobile>
    631         <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel
    632              apparently launched the prefix 94 on 25th April 2012, and Movicel has 99. -->
    633         <nationalNumberPattern>9[1-49]\d{7}</nationalNumberPattern>
    634         <exampleNumber>923123456</exampleNumber>
    635       </mobile>
    636     </territory>
    637 
    638     <!-- Argentina -->
    639     <!-- http://www.itu.int/oth/T0202000009/en -->
    640     <!-- http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp - click on Indicativos Interurbanos.
    641          -->
    642     <!-- http://en.wikipedia.org/wiki/+54 -->
    643     <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
    644        nationalPrefixForParsing="
    645          0?(?:
    646            (11|
    647             2(?:
    648               2(?:
    649                 02?|
    650                 [13]|
    651                 2[13-79]|
    652                 4[1-6]|
    653                 5[2457]|
    654                 6[124-8]|
    655                 7[1-4]|
    656                 8[13-6]|
    657                 9[1267]
    658               )|
    659               3(?:
    660                 02?|
    661                 1[467]|
    662                 2[03-6]|
    663                 3[13-8]|
    664                 [49][2-6]|
    665                 5[2-8]|
    666                 [67]
    667               )|
    668               4(?:
    669                 7[3-578]|
    670                 9
    671               )|
    672               6(?:
    673                 [0136]|
    674                 2[24-6]|
    675                 4[6-8]?|
    676                 5[15-8]
    677               )|
    678               80|
    679               9(?:
    680                 0[1-3]|
    681                 [19]|
    682                 2\d|
    683                 3[1-6]|
    684                 4[02568]?|
    685                 5[2-4]|
    686                 6[2-46]|
    687                 72?|
    688                 8[23]?
    689               )
    690            )|
    691            3(?:
    692              3(?:
    693                2[79]|
    694                6|
    695                8[2578]
    696              )|
    697              4(?:
    698                0[124-9]|
    699                [12]|
    700                3[5-8]?|
    701                4[24-7]|
    702                5[4-68]?|
    703                6[02-9]|
    704                7[126]|
    705                8[2379]?|
    706                9[1-36-8]
    707              )|
    708              5(?:
    709                1|
    710                2[1245]|
    711                3[237]?|
    712                4[1-46-9]|
    713                6[2-4]|
    714                7[1-6]|
    715                8[2-5]?
    716              )|
    717              6[24]|
    718              7(?:
    719                1[1568]|
    720                2[15]|
    721                3[145]|
    722                4[13]|
    723                5[14-8]|
    724                [069]|
    725                7[2-57]|
    726                8[126]
    727              )|
    728              8(?:
    729                [01]|
    730                2[15-7]|
    731                3[2578]?|
    732                4[13-6]|
    733                5[4-8]?|
    734                6[1-357-9]|
    735                7[36-8]?|
    736                8[5-8]?|
    737                9[124]
    738              )
    739            )
    740          )15
    741        )?"
    742        nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG"
    743        mobileNumberPortableRegion="true">
    744       <availableFormats>
    745         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
    746           <leadingDigits>[68]</leadingDigits>
    747           <format>$1-$2-$3</format>
    748         </numberFormat>
    749         <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
    750           <leadingDigits>911</leadingDigits>
    751           <format>$2 15-$3-$4</format>
    752           <intlFormat>$1 $2 $3-$4</intlFormat>
    753         </numberFormat>
    754         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
    755           <!-- Some 4-digit area codes actually are caught by this rule. Preference is given however
    756                to the 3-digit area codes, since they are considerably larger communities. -->
    757           <leadingDigits>
    758             9(?:
    759               2[234689]|
    760               3[3-8]
    761             )
    762           </leadingDigits>
    763           <leadingDigits>
    764             9(?:
    765               2(?:
    766                 2[013]|
    767                 3[067]|
    768                 49|
    769                 6[01346]|
    770                 80|
    771                 9[147-9]
    772               )|
    773               3(?:
    774                 36|
    775                 4[12358]|
    776                 5[138]|
    777                 6[24]|
    778                 7[069]|
    779                 8[013578]
    780               )
    781             )
    782           </leadingDigits>
    783           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948 -
    784                and several 38[3578]X four-digit area codes. -->
    785           <leadingDigits>
    786             9(?:
    787               2(?:
    788                 2[013]|
    789                 3[067]|
    790                 49|
    791                 6[01346]|
    792                 80|
    793                 9(?:
    794                   [17-9]|
    795                   4[13479]
    796                 )
    797               )|
    798               3(?:
    799                 36|
    800                 4[12358]|
    801                 5(?:
    802                   [18]|
    803                   3[014-689]
    804                 )|
    805                 6[24]|
    806                 7[069]|
    807                 8(?:
    808                   [01]|
    809                   3[013469]|
    810                   5[0-39]|
    811                   7[0-2459]|
    812                   8[0-49]
    813                 )
    814               )
    815             )
    816           </leadingDigits>
    817           <format>$2 15-$3-$4</format>
    818           <intlFormat>$1 $2 $3-$4</intlFormat>
    819         </numberFormat>
    820         <numberFormat pattern="(9)(\d{4})(\d{3})(\d{3})">
    821           <!-- The formatting pattern here for these newly introduced area codes is based on the ITU
    822                document. We have not found sufficient examples online to know if this is actually
    823                being followed by the general population, or whether the back-up pattern for
    824                four-digit area codes (below) is preferred. -->
    825           <leadingDigits>93[58]</leadingDigits>
    826           <leadingDigits>
    827             9(?:
    828               3(?:
    829                 53|
    830                 8[78]
    831               )
    832             )
    833           </leadingDigits>
    834           <leadingDigits>
    835             9(?:
    836               3(?:
    837                 537|
    838                 8(?:
    839                   73|
    840                   88
    841                 )
    842               )
    843             )
    844           </leadingDigits>
    845           <format>$2 15-$3-$4</format>
    846           <intlFormat>$1 $2 $3-$4</intlFormat>
    847         </numberFormat>
    848         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
    849           <leadingDigits>9[23]</leadingDigits>
    850           <format>$2 15-$3-$4</format>
    851           <intlFormat>$1 $2 $3-$4</intlFormat>
    852         </numberFormat>
    853         <numberFormat pattern="(11)(\d{4})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
    854           <leadingDigits>1</leadingDigits>
    855           <format>$1 $2-$3</format>
    856         </numberFormat>
    857         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
    858         <numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
    859           <leadingDigits>
    860             2(?:
    861               2[013]|
    862               3[067]|
    863               49|
    864               6[01346]|
    865               80|
    866               9[147-9]
    867             )|
    868             3(?:
    869               36|
    870               4[12358]|
    871               5[138]|
    872               6[24]|
    873               7[069]|
    874               8[013578]
    875             )
    876           </leadingDigits>
    877           <!-- Several 294X four-digit area codes exist: 2940, 2942, 2945, 2946 and 2948. -->
    878           <leadingDigits>
    879             2(?:
    880               2[013]|
    881               3[067]|
    882               49|
    883               6[01346]|
    884               80|
    885               9(?:
    886                 [17-9]|
    887                 4[13479]
    888               )
    889             )|
    890             3(?:
    891               36|
    892               4[12358]|
    893               5(?:
    894                 [18]|
    895                 3[0-689]
    896               )|
    897               6[24]|
    898               7[069]|
    899               8(?:
    900                 [01]|
    901                 3[013469]|
    902                 5[0-39]|
    903                 7[0-2459]|
    904                 8[0-49]
    905               )
    906             )
    907           </leadingDigits>
    908           <format>$1 $2-$3</format>
    909         </numberFormat>
    910         <numberFormat pattern="(\d{4})(\d{3})(\d{3})" nationalPrefixOptionalWhenFormatting="true">
    911           <leadingDigits>
    912             3(?:
    913               53|
    914               8[78]
    915             )
    916           </leadingDigits>
    917           <leadingDigits>
    918             3(?:
    919               537|
    920               8(?:
    921                 73|
    922                 88
    923               )
    924             )
    925           </leadingDigits>
    926           <format>$1 $2-$3</format>
    927         </numberFormat>
    928         <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
    929           <leadingDigits>[23]</leadingDigits>
    930           <format>$1 $2-$3</format>
    931         </numberFormat>
    932         <!-- Format short numbers as a block. -->
    933         <numberFormat pattern="(\d{3})" nationalPrefixFormattingRule="$FG">
    934           <leadingDigits>
    935             1[012]|
    936             911
    937           </leadingDigits>
    938           <format>$1</format>
    939           <intlFormat>NA</intlFormat>
    940         </numberFormat>
    941       </availableFormats>
    942       <generalDesc>
    943         <nationalNumberPattern>
    944           [1-368]\d{9}|
    945           9\d{10}
    946         </nationalNumberPattern>
    947         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
    948       </generalDesc>
    949       <noInternationalDialling>
    950         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
    951         <possibleNumberPattern>\d{10}</possibleNumberPattern>
    952         <exampleNumber>8101234567</exampleNumber>
    953       </noInternationalDialling>
    954       <fixedLine>
    955         <!-- Also covering fixed satellite service numbers (670). -->
    956         <nationalNumberPattern>
    957           11\d{8}|
    958           (?:
    959             2(?:
    960               2(?:
    961                 [013]\d|
    962                 2[13-79]|
    963                 4[1-6]|
    964                 5[2457]|
    965                 6[124-8]|
    966                 7[1-4]|
    967                 8[13-6]|
    968                 9[1267]
    969               )|
    970               3(?:
    971                 1[467]|
    972                 2[03-6]|
    973                 3[13-8]|
    974                 [49][2-6]|
    975                 5[2-8]|
    976                 [067]\d
    977               )|
    978               4(?:
    979                 7[3-8]|
    980                 9\d
    981               )|
    982               6(?:
    983                 [01346]\d|
    984                 2[24-6]|
    985                 5[15-8]
    986               )|
    987               80\d|
    988               9(?:
    989                 [0124789]\d|
    990                 3[1-6]|
    991                 5[234]|
    992                 6[2-46]
    993               )
    994             )|
    995             3(?:
    996               3(?:
    997                 2[79]|
    998                 6\d|
    999                 8[2578]
   1000               )|
   1001               4(?:
   1002                 [78]\d|
   1003                 0[0124-9]|
   1004                 [1-35]\d|
   1005                 4[24-7]|
   1006                 6[02-9]|
   1007                 9[123678]
   1008               )|
   1009               5(?:
   1010                 [138]\d|
   1011                 2[1245]|
   1012                 4[1-9]|
   1013                 6[2-4]|
   1014                 7[1-6]
   1015               )|
   1016               6[24]\d|
   1017               7(?:
   1018                 [0469]\d|
   1019                 1[1568]|
   1020                 2[013-9]|
   1021                 3[145]|
   1022                 5[14-8]|
   1023                 7[2-57]|
   1024                 8[0-24-9]
   1025               )|
   1026               8(?:
   1027                 [013578]\d|
   1028                 2[15-7]|
   1029                 4[13-6]|
   1030                 6[1-357-9]|
   1031                 9[124]
   1032               )
   1033             )|
   1034             670\d
   1035           )\d{6}
   1036         </nationalNumberPattern>
   1037         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1038         <exampleNumber>1123456789</exampleNumber>
   1039       </fixedLine>
   1040       <mobile>
   1041         <!-- Also covers mobile satellite services (675 numbers). -->
   1042         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
   1043              area code is in the range 2-9. The four-digit area-code checking is done in detail if
   1044              we attempt to strip the caller-pays token (15) from the number. -->
   1045         <nationalNumberPattern>
   1046           675\d{7}|
   1047           9(?:
   1048             11[2-9]\d{7}|
   1049             (?:
   1050               2(?:
   1051                 2[013]|
   1052                 3[067]|
   1053                 49|
   1054                 6[01346]|
   1055                 80|
   1056                 9[147-9]
   1057               )|
   1058               3(?:
   1059                 36|
   1060                 4[12358]|
   1061                 5[138]|
   1062                 6[24]|
   1063                 7[069]|
   1064                 8[013578]
   1065               )
   1066             )[2-9]\d{6}|
   1067             \d{4}[2-9]\d{5}
   1068           )
   1069         </nationalNumberPattern>
   1070         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   1071         <exampleNumber>91123456789</exampleNumber>
   1072       </mobile>
   1073       <tollFree>
   1074         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   1075         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1076         <exampleNumber>8001234567</exampleNumber>
   1077       </tollFree>
   1078       <premiumRate>
   1079         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
   1080         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1081         <exampleNumber>6001234567</exampleNumber>
   1082       </premiumRate>
   1083       <uan>
   1084         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
   1085         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1086         <exampleNumber>8101234567</exampleNumber>
   1087       </uan>
   1088     </territory>
   1089 
   1090     <!-- American Samoa -->
   1091     <!-- http://www.itu.int/oth/T0202000004/en -->
   1092     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
   1093                internationalPrefix="011">
   1094       <generalDesc>
   1095         <!-- NANPA country - uses US formatting rules -->
   1096         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   1097         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   1098       </generalDesc>
   1099       <fixedLine>
   1100         <nationalNumberPattern>
   1101           6846(?:
   1102             22|
   1103             33|
   1104             44|
   1105             55|
   1106             77|
   1107             88|
   1108             9[19]
   1109           )\d{4}
   1110         </nationalNumberPattern>
   1111         <exampleNumber>6846221234</exampleNumber>
   1112       </fixedLine>
   1113       <mobile>
   1114         <!-- Adding 24[246], operated from Blue Sky. -->
   1115         <nationalNumberPattern>
   1116           684(?:
   1117             733|
   1118             25[2468]
   1119           )\d{4}
   1120         </nationalNumberPattern>
   1121         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1122         <exampleNumber>6847331234</exampleNumber>
   1123       </mobile>
   1124       <tollFree>
   1125         <nationalNumberPattern>
   1126           8(?:
   1127             00|
   1128             55|
   1129             66|
   1130             77|
   1131             88
   1132           )[2-9]\d{6}
   1133         </nationalNumberPattern>
   1134         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1135         <exampleNumber>8002123456</exampleNumber>
   1136       </tollFree>
   1137       <premiumRate>
   1138         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   1139         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1140         <exampleNumber>9002123456</exampleNumber>
   1141       </premiumRate>
   1142       <personalNumber>
   1143         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   1144         <nationalNumberPattern>
   1145           5(?:
   1146             00|
   1147             33|
   1148             44
   1149           )[2-9]\d{6}
   1150         </nationalNumberPattern>
   1151         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1152         <exampleNumber>5002345678</exampleNumber>
   1153       </personalNumber>
   1154     </territory>
   1155 
   1156     <!-- Austria -->
   1157     <!-- http://www.rtr.at/en/tk/E129 -->
   1158     <territory id="AT" countryCode="43" internationalPrefix="00"
   1159                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   1160                mobileNumberPortableRegion="true">
   1161       <availableFormats>
   1162         <numberFormat pattern="(1)(\d{3,12})">
   1163           <leadingDigits>1</leadingDigits>
   1164           <format>$1 $2</format>
   1165         </numberFormat>
   1166         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
   1167              found on Austrian web pages. -->
   1168         <numberFormat pattern="(5\d)(\d{3,5})">
   1169           <leadingDigits>5[079]</leadingDigits>
   1170           <format>$1 $2</format>
   1171         </numberFormat>
   1172         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
   1173           <leadingDigits>5[079]</leadingDigits>
   1174           <format>$1 $2 $3</format>
   1175         </numberFormat>
   1176         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
   1177           <leadingDigits>5[079]</leadingDigits>
   1178           <format>$1 $2 $3</format>
   1179         </numberFormat>
   1180         <numberFormat pattern="(\d{3})(\d{3,10})">
   1181           <leadingDigits>
   1182             316|
   1183             46|
   1184             51|
   1185             732|
   1186             6(?:
   1187               44|
   1188               5[0-3579]|
   1189               [6-9]
   1190             )|
   1191             7(?:
   1192               1|
   1193               [28]0
   1194             )|
   1195             [89]
   1196           </leadingDigits>
   1197           <format>$1 $2</format>
   1198         </numberFormat>
   1199         <numberFormat pattern="(\d{4})(\d{3,9})">
   1200           <leadingDigits>
   1201             2|
   1202             3(?:
   1203               1[1-578]|
   1204               [3-8]
   1205             )|
   1206             4[2378]|
   1207             5[2-6]|
   1208             6(?:
   1209               [12]|
   1210               4[1-35-9]|
   1211               5[468]
   1212             )|
   1213             7(?:
   1214               2[1-8]|
   1215               35|
   1216               4[1-8]|
   1217               [5-79]
   1218             )
   1219           </leadingDigits>
   1220             <format>$1 $2</format>
   1221           </numberFormat>
   1222       </availableFormats>
   1223       <generalDesc>
   1224         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
   1225         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
   1226       </generalDesc>
   1227       <fixedLine>
   1228         <!-- Note that the full area code is not validated - just the first 3 digits. This also
   1229              means that even though for most Austrian numbers the minimum length is 7, we allow 6
   1230              since we don't differentiate below between 3 and 4 digit area codes for reasons of
   1231              efficiency. -->
   1232         <nationalNumberPattern>
   1233           1\d{3,12}|
   1234           (?:
   1235             2(?:
   1236               1[467]|
   1237               2[13-8]|
   1238               5[2357]|
   1239               6[1-46-8]|
   1240               7[1-8]|
   1241               8[124-7]|
   1242               9[1458]
   1243             )|
   1244             3(?:
   1245               1[1-8]|
   1246               3[23568]|
   1247               4[5-7]|
   1248               5[1378]|
   1249               6[1-38]|
   1250               8[3-68]
   1251             )|
   1252             4(?:
   1253               2[1-8]|
   1254               35|
   1255               63|
   1256               7[1368]|
   1257               8[2457]
   1258             )|
   1259             5(?:
   1260               12|
   1261               2[1-8]|
   1262               3[357]|
   1263               4[147]|
   1264               5[12578]|
   1265               6[37]
   1266             )|
   1267             6(?:
   1268               13|
   1269               2[1-47]|
   1270               4[1-35-8]|
   1271               5[468]|
   1272               62
   1273             )|
   1274             7(?:
   1275               2[1-8]|
   1276               3[25]|
   1277               4[13478]|
   1278               5[68]|
   1279               6[16-8]|
   1280               7[1-6]|
   1281               9[45]
   1282             )
   1283           )\d{3,10}
   1284         </nationalNumberPattern>
   1285         <exampleNumber>1234567890</exampleNumber>
   1286       </fixedLine>
   1287       <mobile>
   1288         <nationalNumberPattern>
   1289           6(?:
   1290             44|
   1291             5[0-3579]|
   1292             6[013-9]|
   1293             [7-9]\d
   1294           )\d{4,10}
   1295         </nationalNumberPattern>
   1296         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
   1297         <exampleNumber>644123456</exampleNumber>
   1298       </mobile>
   1299       <tollFree>
   1300         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
   1301         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
   1302         <exampleNumber>800123456</exampleNumber>
   1303       </tollFree>
   1304       <premiumRate>
   1305         <nationalNumberPattern>
   1306           (?:
   1307             711|
   1308             9(?:
   1309               0[01]|
   1310               3[019]
   1311             )
   1312           )\d{6,10}
   1313         </nationalNumberPattern>
   1314         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
   1315         <exampleNumber>900123456</exampleNumber>
   1316       </premiumRate>
   1317       <sharedCost>
   1318         <nationalNumberPattern>
   1319           8(?:
   1320             10|
   1321             2[018]
   1322           )\d{6,10}
   1323         </nationalNumberPattern>
   1324         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
   1325         <exampleNumber>810123456</exampleNumber>
   1326       </sharedCost>
   1327       <voip>
   1328         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
   1329         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
   1330         <exampleNumber>780123456</exampleNumber>
   1331       </voip>
   1332       <uan>
   1333         <nationalNumberPattern>
   1334           5(?:
   1335             (?:
   1336               0[1-9]|
   1337               17
   1338             )\d{2,10}|
   1339             [79]\d{3,11}
   1340           )|
   1341           720\d{6,10}
   1342         </nationalNumberPattern>
   1343         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
   1344         <exampleNumber>50123</exampleNumber>
   1345       </uan>
   1346     </territory>
   1347 
   1348     <!-- Australia -->
   1349     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
   1350     <!-- http://www.itu.int/oth/T020200000D/en -->
   1351     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
   1352     <territory id="AU" countryCode="61" mainCountryForCode="true"
   1353                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
   1354                preferredInternationalPrefix="0011" nationalPrefix="0"
   1355                mobileNumberPortableRegion="true">
   1356       <availableFormats>
   1357         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   1358           pattern="([2378])(\d{4})(\d{4})">
   1359           <leadingDigits>[2378]</leadingDigits>
   1360           <format>$1 $2 $3</format>
   1361         </numberFormat>
   1362         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   1363           pattern="(\d{3})(\d{3})(\d{3})">
   1364           <leadingDigits>
   1365             [45]|
   1366             14
   1367           </leadingDigits>
   1368           <format>$1 $2 $3</format>
   1369         </numberFormat>
   1370         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   1371           pattern="(16)(\d{3})(\d{2,4})">
   1372           <leadingDigits>16</leadingDigits>
   1373           <format>$1 $2 $3</format>
   1374         </numberFormat>
   1375         <numberFormat nationalPrefixFormattingRule="$FG"
   1376           pattern="(1[389]\d{2})(\d{3})(\d{3})">
   1377           <leadingDigits>
   1378             1(?:
   1379               [38]0|
   1380               90
   1381             )
   1382           </leadingDigits>
   1383           <leadingDigits>
   1384             1(?:
   1385               [38]00|
   1386               90
   1387             )
   1388           </leadingDigits>
   1389           <format>$1 $2 $3</format>
   1390         </numberFormat>
   1391         <numberFormat nationalPrefixFormattingRule="$FG"
   1392           pattern="(180)(2\d{3})">
   1393           <leadingDigits>180</leadingDigits>
   1394           <leadingDigits>1802</leadingDigits>
   1395           <format>$1 $2</format>
   1396         </numberFormat>
   1397         <numberFormat nationalPrefixFormattingRule="$FG"
   1398           pattern="(19\d)(\d{3})">
   1399           <leadingDigits>19[13]</leadingDigits>
   1400           <format>$1 $2</format>
   1401         </numberFormat>
   1402         <numberFormat nationalPrefixFormattingRule="$FG"
   1403           pattern="(19\d{2})(\d{4})">
   1404           <leadingDigits>19[67]</leadingDigits>
   1405           <format>$1 $2</format>
   1406         </numberFormat>
   1407         <numberFormat nationalPrefixFormattingRule="$FG"
   1408           pattern="(13)(\d{2})(\d{2})">
   1409           <leadingDigits>13[1-9]</leadingDigits>
   1410           <format>$1 $2 $3</format>
   1411         </numberFormat>
   1412       </availableFormats>
   1413       <generalDesc>
   1414         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
   1415         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1416       </generalDesc>
   1417       <noInternationalDialling>
   1418         <nationalNumberPattern>
   1419           1(?:
   1420             3(?:
   1421               \d{4}|
   1422               00\d{6}
   1423             )|
   1424             80(?:
   1425               0\d{6}|
   1426               2\d{3}
   1427             )
   1428           )
   1429         </nationalNumberPattern>
   1430         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1431         <exampleNumber>1300123456</exampleNumber>
   1432       </noInternationalDialling>
   1433       <fixedLine>
   1434         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
   1435         <nationalNumberPattern>
   1436           [237]\d{8}|
   1437           8(?:
   1438             [68]\d{3}|
   1439             7[0-69]\d{2}|
   1440             9(?:
   1441               [02-9]\d{2}|
   1442               1(?:
   1443                 [0-57-9]\d|
   1444                 6[0135-9]
   1445               )
   1446             )
   1447           )\d{4}
   1448         </nationalNumberPattern>
   1449         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   1450         <exampleNumber>212345678</exampleNumber>
   1451       </fixedLine>
   1452       <mobile>
   1453         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
   1454              other ranges 14[1-3] are not currently used. -->
   1455         <nationalNumberPattern>
   1456           14(?:
   1457             5\d|
   1458             71
   1459           )\d{5}|
   1460           4(?:
   1461             [0-2]\d|
   1462             3[0-57-9]|
   1463             4[47-9]|
   1464             5[0-35-9]|
   1465             6[6-9]|
   1466             [79][07-9]|
   1467             8[17-9]
   1468           )\d{6}
   1469         </nationalNumberPattern>
   1470         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1471         <exampleNumber>412345678</exampleNumber>
   1472       </mobile>
   1473       <pager>
   1474         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
   1475         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   1476         <exampleNumber>1612345</exampleNumber>
   1477       </pager>
   1478       <tollFree>
   1479         <nationalNumberPattern>
   1480           180(?:
   1481             0\d{3}|
   1482             2
   1483           )\d{3}
   1484         </nationalNumberPattern>
   1485         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   1486         <exampleNumber>1800123456</exampleNumber>
   1487       </tollFree>
   1488       <premiumRate>
   1489         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
   1490         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1491         <exampleNumber>1900123456</exampleNumber>
   1492       </premiumRate>
   1493       <sharedCost>
   1494       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
   1495            although they charge a small local call connect fee (around 25c). These start with 13
   1496            or 1300. -->
   1497         <nationalNumberPattern>
   1498           13(?:
   1499             00\d{2}
   1500           )?\d{4}
   1501         </nationalNumberPattern>
   1502         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1503         <exampleNumber>1300123456</exampleNumber>
   1504       </sharedCost>
   1505       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
   1506            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
   1507            from 0500000000 to 0590000000) -->
   1508       <personalNumber>
   1509         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
   1510         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1511         <exampleNumber>500123456</exampleNumber>
   1512       </personalNumber>
   1513       <voip>
   1514         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
   1515         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1516         <exampleNumber>550123456</exampleNumber>
   1517       </voip>
   1518     </territory>
   1519 
   1520     <!-- Aruba -->
   1521     <!-- http://www.itu.int/oth/T020200000B/en -->
   1522     <territory id="AW" countryCode="297" internationalPrefix="00">
   1523       <availableFormats>
   1524         <numberFormat pattern="(\d{3})(\d{4})">
   1525           <format>$1 $2</format>
   1526         </numberFormat>
   1527       </availableFormats>
   1528       <generalDesc>
   1529         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
   1530         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   1531       </generalDesc>
   1532       <fixedLine>
   1533         <nationalNumberPattern>
   1534           5(?:
   1535             2\d|
   1536             8[1-9]
   1537           )\d{4}
   1538         </nationalNumberPattern>
   1539         <exampleNumber>5212345</exampleNumber>
   1540       </fixedLine>
   1541       <mobile>
   1542         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
   1543              numbers found online. -->
   1544         <nationalNumberPattern>
   1545           (?:
   1546             5(?:
   1547               6\d|
   1548               9[2-478]
   1549             )|
   1550             6(?:
   1551               [039]0|
   1552               22|
   1553               4[01]|
   1554               6[0-2]
   1555             )|
   1556             7[34]\d|
   1557             9(?:
   1558               6[45]|
   1559               9[4-8]
   1560             )
   1561           )\d{4}
   1562         </nationalNumberPattern>
   1563         <exampleNumber>5601234</exampleNumber>
   1564       </mobile>
   1565       <tollFree>
   1566         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
   1567         <exampleNumber>8001234</exampleNumber>
   1568       </tollFree>
   1569       <premiumRate>
   1570         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
   1571         <exampleNumber>9001234</exampleNumber>
   1572       </premiumRate>
   1573       <voip>
   1574         <nationalNumberPattern>
   1575           28\d{5}|
   1576           501\d{4}
   1577         </nationalNumberPattern>
   1578         <exampleNumber>5011234</exampleNumber>
   1579       </voip>
   1580     </territory>
   1581 
   1582     <!-- land Islands. -->
   1583     <!-- Metadata shared with Finland. -->
   1584     <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html -->
   1585     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
   1586                nationalPrefixFormattingRule="$NP$FG">
   1587       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
   1588       <generalDesc>
   1589         <nationalNumberPattern>
   1590           [135]\d{5,9}|
   1591           [27]\d{4,9}|
   1592           4\d{5,10}|
   1593           6\d{7,8}|
   1594           8\d{6,9}
   1595         </nationalNumberPattern>
   1596         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   1597       </generalDesc>
   1598       <noInternationalDialling>
   1599         <!-- According to the national numbering plan, service numbers are in general not accessible
   1600              from abroad, although 600/700/800 numbers may be. -->
   1601         <nationalNumberPattern>
   1602           [13]00\d{3,7}|
   1603           2(?:
   1604             0(?:
   1605               0\d{3,7}|
   1606               2[023]\d{1,6}|
   1607               9[89]\d{1,6}
   1608             )
   1609           )|
   1610           60(?:
   1611             [12]\d{5,6}|
   1612             6\d{7}
   1613           )|
   1614           7(?:
   1615             1\d{7}|
   1616             3\d{8}|
   1617             5[03-9]\d{2,7}
   1618           )
   1619         </nationalNumberPattern>
   1620         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   1621         <exampleNumber>100123</exampleNumber>
   1622       </noInternationalDialling>
   1623       <fixedLine>
   1624         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
   1625         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   1626         <exampleNumber>1812345678</exampleNumber>
   1627       </fixedLine>
   1628       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
   1629       <mobile>
   1630         <nationalNumberPattern>
   1631           4\d{5,10}|
   1632           50\d{4,8}
   1633         </nationalNumberPattern>
   1634         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   1635         <exampleNumber>412345678</exampleNumber>
   1636       </mobile>
   1637       <tollFree>
   1638         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
   1639         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   1640         <exampleNumber>8001234567</exampleNumber>
   1641       </tollFree>
   1642       <premiumRate>
   1643         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
   1644         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   1645         <exampleNumber>600123456</exampleNumber>
   1646       </premiumRate>
   1647       <uan>
   1648         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
   1649              assigned to institutions such as universities, the national post, etc, where they are
   1650              not otherwise classified as toll-free or premium-rate numbers. -->
   1651         <nationalNumberPattern>
   1652           [13]0\d{4,8}|
   1653           2(?:
   1654             0(?:
   1655               [016-8]\d{3,7}|
   1656               [2-59]\d{2,7}
   1657             )|
   1658             9\d{4,8}
   1659           )|
   1660           60(?:
   1661             [12]\d{5,6}|
   1662             6\d{7}
   1663           )|
   1664           7(?:
   1665             1\d{7}|
   1666             3\d{8}|
   1667             5[03-9]\d{2,7}
   1668           )
   1669         </nationalNumberPattern>
   1670         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   1671         <exampleNumber>10112345</exampleNumber>
   1672       </uan>
   1673     </territory>
   1674 
   1675     <!-- Azerbaijan -->
   1676     <!-- http://www.itu.int/oth/T020200000F/en -->
   1677     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
   1678                nationalPrefixFormattingRule="($NP$FG)" mobileNumberPortableRegion="true">
   1679       <availableFormats>
   1680         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
   1681           <leadingDigits>
   1682             (?:
   1683               1[28]|
   1684               2(?:
   1685                 [45]2|
   1686                 [0-36]
   1687               )|
   1688               365
   1689             )
   1690           </leadingDigits>
   1691           <format>$1 $2 $3 $4</format>
   1692         </numberFormat>
   1693         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
   1694           <leadingDigits>[4-8]</leadingDigits>
   1695           <format>$1 $2 $3 $4</format>
   1696         </numberFormat>
   1697         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
   1698           nationalPrefixFormattingRule="$NP$FG">
   1699           <leadingDigits>9</leadingDigits>
   1700           <format>$1 $2 $3 $4</format>
   1701         </numberFormat>
   1702       </availableFormats>
   1703       <generalDesc>
   1704         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
   1705         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   1706       </generalDesc>
   1707       <fixedLine>
   1708         <nationalNumberPattern>
   1709           (?:
   1710             1[28]\d|
   1711             2(?:
   1712               02|
   1713               1[24]|
   1714               2[2-4]|
   1715               33|
   1716               [45]2|
   1717               6[23]
   1718             )|
   1719             365
   1720           )\d{6}
   1721         </nationalNumberPattern>
   1722         <exampleNumber>123123456</exampleNumber>
   1723       </fixedLine>
   1724       <mobile>
   1725         <nationalNumberPattern>
   1726           (?:
   1727             4[04]|
   1728             5[015]|
   1729             60|
   1730             7[07]
   1731           )\d{7}
   1732         </nationalNumberPattern>
   1733         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1734         <exampleNumber>401234567</exampleNumber>
   1735       </mobile>
   1736       <tollFree>
   1737         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
   1738              suggest they are in fact national toll-free numbers. -->
   1739         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
   1740         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1741         <exampleNumber>881234567</exampleNumber>
   1742       </tollFree>
   1743       <premiumRate>
   1744         <!-- These are marked as Interactive Calls in the ITU document. -->
   1745         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
   1746         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   1747         <exampleNumber>900200123</exampleNumber>
   1748       </premiumRate>
   1749     </territory>
   1750 
   1751     <!-- Bosnia and Herzegovina -->
   1752     <!-- http://www.rak.ba/eng/index.php?uid=1272016657 (accessible from
   1753          http://www.cra.ba/en/telecom/numbering/) -->
   1754     <!-- http://en.wikipedia.org/wiki/+387 -->
   1755     <territory id="BA" countryCode="387" internationalPrefix="00"
   1756                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   1757                mobileNumberPortableRegion="true">
   1758       <availableFormats>
   1759         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   1760           <leadingDigits>[3-5]</leadingDigits>
   1761           <format>$1 $2-$3</format>
   1762         </numberFormat>
   1763         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   1764           <leadingDigits>
   1765             6[1-356]|
   1766             [7-9]
   1767           </leadingDigits>
   1768           <format>$1 $2 $3</format>
   1769         </numberFormat>
   1770         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
   1771           <leadingDigits>6[047]</leadingDigits>
   1772           <format>$1 $2 $3 $4</format>
   1773         </numberFormat>
   1774       </availableFormats>
   1775       <generalDesc>
   1776         <nationalNumberPattern>[3-9]\d{7,8}</nationalNumberPattern>
   1777         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   1778       </generalDesc>
   1779       <fixedLine>
   1780         <nationalNumberPattern>
   1781           (?:
   1782             [35]\d|
   1783             49
   1784           )\d{6}
   1785         </nationalNumberPattern>
   1786         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   1787         <exampleNumber>30123456</exampleNumber>
   1788       </fixedLine>
   1789       <mobile>
   1790         <nationalNumberPattern>
   1791           6(?:
   1792             03|
   1793             44|
   1794             71|
   1795             [1-356]
   1796           )\d{6}
   1797         </nationalNumberPattern>
   1798         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   1799         <exampleNumber>61123456</exampleNumber>
   1800       </mobile>
   1801       <tollFree>
   1802         <nationalNumberPattern>8[08]\d{6}</nationalNumberPattern>
   1803         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   1804         <exampleNumber>80123456</exampleNumber>
   1805       </tollFree>
   1806       <premiumRate>
   1807         <nationalNumberPattern>9[0246]\d{6}</nationalNumberPattern>
   1808         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   1809         <exampleNumber>90123456</exampleNumber>
   1810       </premiumRate>
   1811       <sharedCost>
   1812         <!-- Using this category to model national tariff numbers - these are under Shared Cost in
   1813              the plan. -->
   1814         <nationalNumberPattern>8[12]\d{6}</nationalNumberPattern>
   1815         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   1816         <exampleNumber>82123456</exampleNumber>
   1817       </sharedCost>
   1818       <uan>
   1819         <!-- Using this to classify nomad numbers. -->
   1820         <nationalNumberPattern>70[23]\d{5}</nationalNumberPattern>
   1821         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   1822         <exampleNumber>70223456</exampleNumber>
   1823       </uan>
   1824     </territory>
   1825 
   1826     <!-- Barbados -->
   1827     <!-- http://www.itu.int/oth/T0202000013/en -->
   1828     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
   1829                internationalPrefix="011">
   1830       <generalDesc>
   1831         <!-- NANPA country - uses US formatting rules -->
   1832         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
   1833         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   1834       </generalDesc>
   1835       <fixedLine>
   1836         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
   1837         <exampleNumber>2462345678</exampleNumber>
   1838       </fixedLine>
   1839       <mobile>
   1840         <nationalNumberPattern>
   1841           246(?:
   1842             (?:
   1843               2[346]|
   1844               45|
   1845               82
   1846             )\d|
   1847             25[0-4]
   1848           )\d{4}
   1849         </nationalNumberPattern>
   1850         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1851         <exampleNumber>2462501234</exampleNumber>
   1852       </mobile>
   1853       <tollFree>
   1854         <nationalNumberPattern>
   1855           8(?:
   1856             00|
   1857             55|
   1858             66|
   1859             77|
   1860             88
   1861           )[2-9]\d{6}
   1862         </nationalNumberPattern>
   1863         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1864         <exampleNumber>8002123456</exampleNumber>
   1865       </tollFree>
   1866       <premiumRate>
   1867         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   1868         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1869         <exampleNumber>9002123456</exampleNumber>
   1870       </premiumRate>
   1871       <personalNumber>
   1872         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   1873         <nationalNumberPattern>
   1874           5(?:
   1875             00|
   1876             33|
   1877             44
   1878           )[2-9]\d{6}
   1879         </nationalNumberPattern>
   1880         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   1881         <exampleNumber>5002345678</exampleNumber>
   1882       </personalNumber>
   1883     </territory>
   1884 
   1885     <!-- Bangladesh -->
   1886     <!-- http://www.itu.int/oth/T0202000012/en -->
   1887     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh -->
   1888     <!-- http://www.btrc.gov.bd/engineering/national_numbering_plan_2005.pdf -->
   1889     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
   1890                preferredInternationalPrefix="00"
   1891                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   1892       <availableFormats>
   1893         <numberFormat pattern="(2)(\d{7})">
   1894           <leadingDigits>2</leadingDigits>
   1895           <format>$1-$2</format>
   1896         </numberFormat>
   1897         <numberFormat pattern="(\d{2})(\d{4,6})">
   1898           <leadingDigits>[3-79]1</leadingDigits>
   1899           <format>$1-$2</format>
   1900         </numberFormat>
   1901         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
   1902         <numberFormat pattern="(\d{4})(\d{3,6})">
   1903           <leadingDigits>
   1904             1|
   1905             3(?:
   1906               0|
   1907               [2-58]2
   1908             )|
   1909             4(?:
   1910               0|
   1911               [25]2|
   1912               3[23]|
   1913               [4689][25]
   1914             )|
   1915             5(?:
   1916               [02-578]2|
   1917               6[25]
   1918             )|
   1919             6(?:
   1920               [0347-9]2|
   1921               [26][25]
   1922             )|
   1923             7[02-9]2|
   1924             8(?:
   1925               [023][23]|
   1926               [4-7]2
   1927             )|
   1928             9(?:
   1929               [02][23]|
   1930               [458]2|
   1931               6[016]
   1932             )
   1933           </leadingDigits>
   1934           <format>$1-$2</format>
   1935         </numberFormat>
   1936         <numberFormat pattern="(\d{3})(\d{3,7})">
   1937           <leadingDigits>
   1938             [3-79][2-9]|
   1939             8
   1940           </leadingDigits>
   1941           <format>$1-$2</format>
   1942         </numberFormat>
   1943       </availableFormats>
   1944       <generalDesc>
   1945       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
   1946            plan, so the country code can be accurately stripped off. -->
   1947         <nationalNumberPattern>
   1948           [2-79]\d{5,9}|
   1949           1\d{9}|
   1950           8[0-7]\d{4,8}
   1951         </nationalNumberPattern>
   1952         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   1953       </generalDesc>
   1954       <fixedLine>
   1955         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
   1956              been realised, judging by online numbers and wikipedia. These patterns are grouped
   1957              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731
   1958              etc) are included despite not being mentioned on the wikipedia page or ITU doc due to
   1959              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
   1960              do not - both are allowed for now. For some area codes, the subscriber number length
   1961              described in our source documentation doesn't match numbers online (e.g. 05222) so we
   1962              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
   1963              also added 04452 and 04923 from numbers found online. -->
   1964         <nationalNumberPattern>
   1965           2(?:
   1966             7(?:
   1967               1[0-267]|
   1968               2[0-289]|
   1969               3[0-29]|
   1970               [46][01]|
   1971               5[1-3]|
   1972               7[017]|
   1973               91
   1974             )|
   1975             8(?:
   1976               0[125]|
   1977               [139][1-6]|
   1978               2[0157-9]|
   1979               6[1-35]|
   1980               7[1-5]|
   1981               8[1-8]
   1982             )|
   1983             9(?:
   1984               0[0-2]|
   1985               1[1-4]|
   1986               2[568]|
   1987               3[3-6]|
   1988               5[5-7]|
   1989               6[0167]|
   1990               7[15]|
   1991               8[016-8]
   1992             )
   1993           )\d{4}|
   1994           3(?:
   1995             12?[5-7]\d{2}|
   1996             0(?:
   1997               2(?:
   1998                 [025-79]\d|
   1999                 [348]\d{1,2}
   2000               )|
   2001               3(?:
   2002                 [2-4]\d|
   2003                 [56]\d?
   2004               )
   2005             )|
   2006             2(?:
   2007               1\d{2}|
   2008               2(?:
   2009                 [12]\d|
   2010                 [35]\d{1,2}|
   2011                 4\d?
   2012               )
   2013             )|
   2014             3(?:
   2015               1\d{2}|
   2016               2(?:
   2017                 [2356]\d|
   2018                 4\d{1,2}
   2019               )
   2020             )|
   2021             4(?:
   2022               1\d{2}|
   2023               2(?:
   2024                 2\d{1,2}|
   2025                 [47]|
   2026                 5\d{2}
   2027               )
   2028             )|
   2029             5(?:
   2030               1\d{2}|
   2031               29
   2032             )|
   2033             [67]1\d{2}|
   2034             8(?:
   2035               1\d{2}|
   2036               2(?:
   2037                 2\d{2}|
   2038                 3|
   2039                 4\d
   2040               )
   2041             )
   2042           )\d{3}|
   2043           4(?:
   2044             0(?:
   2045               2(?:
   2046                 [09]\d|
   2047                 7
   2048               )|
   2049               33\d{2}
   2050             )|
   2051             1\d{3}|
   2052             2(?:
   2053               1\d{2}|
   2054               2(?:
   2055                 [25]\d?|
   2056                 [348]\d|
   2057                 [67]\d{1,2}
   2058               )
   2059             )|
   2060             3(?:
   2061               1\d{2}(?:\d{2})?|
   2062               2(?:
   2063                 [045]\d|
   2064                 [236-9]\d{1,2}
   2065               )|
   2066               32\d{2}
   2067             )|
   2068             4(?:
   2069               [18]\d{2}|
   2070               2(?:
   2071                 [2-46]\d{2}|
   2072                 3
   2073               )|
   2074               5[25]\d{2}
   2075             )|
   2076             5(?:
   2077               1\d{2}|
   2078               2(?:
   2079                 3\d|
   2080                 5
   2081               )
   2082             )|
   2083             6(?:
   2084               [18]\d{2}|
   2085               2(?:
   2086                 3(?:\d{2})?|
   2087                 [46]\d{1,2}|
   2088                 5\d{2}|
   2089                 7\d
   2090               )|
   2091               5(?:
   2092                 3\d?|
   2093                 4\d|
   2094                 [57]\d{1,2}|
   2095                 6\d{2}|
   2096                 8
   2097               )
   2098             )|
   2099             71\d{2}|
   2100             8(?:
   2101               [18]\d{2}|
   2102               23\d{2}|
   2103               54\d{2}
   2104             )|
   2105             9(?:
   2106               [18]\d{2}|
   2107               2[2-5]\d{2}|
   2108               53\d{1,2}
   2109             )
   2110           )\d{3}|
   2111           5(?:
   2112             02[03489]\d{2}|
   2113             1\d{2}|
   2114             2(?:
   2115               1\d{2}|
   2116               2(?:
   2117                 2(?:\d{2})?|
   2118                 [457]\d{2}
   2119               )
   2120             )|
   2121             3(?:
   2122               1\d{2}|
   2123               2(?:
   2124                 [37](?:\d{2})?|
   2125                 [569]\d{2}
   2126               )
   2127             )|
   2128             4(?:
   2129               1\d{2}|
   2130               2[46]\d{2}
   2131             )|
   2132             5(?:
   2133               1\d{2}|
   2134               26\d{1,2}
   2135             )|
   2136             6(?:
   2137               [18]\d{2}|
   2138               2|
   2139               53\d{2}
   2140             )|
   2141             7(?:
   2142               1|
   2143               24
   2144             )\d{2}|
   2145             8(?:
   2146               1|
   2147               26
   2148             )\d{2}|
   2149             91\d{2}
   2150           )\d{3}|
   2151           6(?:
   2152             0(?:
   2153               1\d{2}|
   2154               2(?:
   2155                 3\d{2}|
   2156                 4\d{1,2}
   2157               )
   2158             )|
   2159             2(?:
   2160               2[2-5]\d{2}|
   2161               5(?:
   2162                 [3-5]\d{2}|
   2163                 7
   2164               )|
   2165               8\d{2}
   2166             )|
   2167             3(?:
   2168               1|
   2169               2[3478]
   2170             )\d{2}|
   2171             4(?:
   2172               1|
   2173               2[34]
   2174             )\d{2}|
   2175             5(?:
   2176               1|
   2177               2[47]
   2178             )\d{2}|
   2179             6(?:
   2180               [18]\d{2}|
   2181               6(?:
   2182                 2(?:
   2183                   2\d|
   2184                   [34]\d{2}
   2185                 )|
   2186                 5(?:
   2187                   [24]\d{2}|
   2188                   3\d|
   2189                   5\d{1,2}
   2190                 )
   2191               )
   2192             )|
   2193             72[2-5]\d{2}|
   2194             8(?:
   2195               1\d{2}|
   2196               2[2-5]\d{2}
   2197             )|
   2198             9(?:
   2199               1\d{2}|
   2200               2[2-6]\d{2}
   2201             )
   2202           )\d{3}|
   2203           7(?:
   2204             (?:
   2205               02|
   2206               [3-589]1|
   2207               6[12]|
   2208               72[24]
   2209             )\d{2}|
   2210             21\d{3}|
   2211             32
   2212           )\d{3}|
   2213           8(?:
   2214             (?:
   2215               4[12]|
   2216               [5-7]2|
   2217               1\d?
   2218             )|
   2219             (?:
   2220               0|
   2221               3[12]|
   2222               [5-7]1|
   2223               217
   2224             )\d
   2225           )\d{4}|
   2226           9(?:
   2227             [35]1|
   2228             (?:
   2229               [024]2|
   2230               81
   2231             )\d|
   2232             (?:
   2233               1|
   2234               [24]1
   2235             )\d{2}
   2236           )\d{3}
   2237         </nationalNumberPattern>
   2238         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   2239         <exampleNumber>27111234</exampleNumber>
   2240       </fixedLine>
   2241       <mobile>
   2242         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
   2243              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
   2244              numbers should be moving to 1[13-9] anyway. -->
   2245         <nationalNumberPattern>
   2246           (?:
   2247             1[13-9]\d|
   2248             (?:
   2249               3[78]|
   2250               44
   2251             )[02-9]|
   2252             6(?:
   2253               44|
   2254               6[02-9]
   2255             )
   2256           )\d{7}
   2257         </nationalNumberPattern>
   2258         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2259         <exampleNumber>1812345678</exampleNumber>
   2260       </mobile>
   2261       <tollFree>
   2262         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
   2263         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
   2264         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2265         <exampleNumber>8001234567</exampleNumber>
   2266       </tollFree>
   2267       <voip>
   2268         <nationalNumberPattern>
   2269           96(?:
   2270             0[49]|
   2271             1[0-4]|
   2272             6[69]
   2273           )\d{6}
   2274         </nationalNumberPattern>
   2275         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2276         <exampleNumber>9604123456</exampleNumber>
   2277       </voip>
   2278     </territory>
   2279 
   2280     <!-- Belgium -->
   2281     <!-- http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx -->
   2282     <!-- http://www.telefoonzones.be/ -->
   2283     <territory id="BE" countryCode="32" internationalPrefix="00"
   2284                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   2285                mobileNumberPortableRegion="true">
   2286       <availableFormats>
   2287         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
   2288           <leadingDigits>4[6-9]</leadingDigits>
   2289           <format>$1 $2 $3 $4</format>
   2290         </numberFormat>
   2291         <numberFormat pattern="([2-49])(\d{3})(\d{2})(\d{2})">
   2292           <leadingDigits>
   2293             [23]|
   2294             [49][23]
   2295           </leadingDigits>
   2296           <format>$1 $2 $3 $4</format>
   2297         </numberFormat>
   2298         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
   2299           <leadingDigits>
   2300             [156]|
   2301             7[018]|
   2302             8(?:
   2303               0[1-9]|
   2304               [1-79]
   2305             )
   2306           </leadingDigits>
   2307           <format>$1 $2 $3 $4</format>
   2308         </numberFormat>
   2309         <numberFormat pattern="([89]\d{2})(\d{2})(\d{3})">
   2310           <leadingDigits>
   2311             (?:
   2312               80|
   2313               9
   2314             )0
   2315           </leadingDigits>
   2316           <format>$1 $2 $3</format>
   2317         </numberFormat>
   2318       </availableFormats>
   2319       <generalDesc>
   2320         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
   2321         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   2322       </generalDesc>
   2323       <fixedLine>
   2324         <!-- According to the published Excel document the third digit must be 1-9. -->
   2325         <nationalNumberPattern>
   2326           (?:
   2327             1[0-69]|
   2328             [49][23]|
   2329             5\d|
   2330             6[013-57-9]|
   2331             71|
   2332             8[0-79]
   2333           )[1-9]\d{5}|
   2334           [23][2-8]\d{6}
   2335         </nationalNumberPattern>
   2336         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2337         <exampleNumber>12345678</exampleNumber>
   2338       </fixedLine>
   2339       <mobile>
   2340         <!-- Numbers beginning with 46 outside the ranges allocated by the plan have been included
   2341              since many were found online. -->
   2342         <nationalNumberPattern>
   2343           4(?:
   2344             [679]\d|
   2345             8[03-9]
   2346           )\d{6}
   2347         </nationalNumberPattern>
   2348         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   2349         <exampleNumber>470123456</exampleNumber>
   2350       </mobile>
   2351       <tollFree>
   2352         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   2353         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2354         <exampleNumber>80012345</exampleNumber>
   2355       </tollFree>
   2356       <premiumRate>
   2357         <nationalNumberPattern>
   2358           (?:
   2359             70[2-7]|
   2360             90\d
   2361           )\d{5}
   2362         </nationalNumberPattern>
   2363         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2364         <exampleNumber>90123456</exampleNumber>
   2365       </premiumRate>
   2366       <uan>
   2367         <!-- Using this for National Rate Services, since
   2368              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
   2369              says it will be priced the same as any other national calls. -->
   2370         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
   2371         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2372         <exampleNumber>78123456</exampleNumber>
   2373       </uan>
   2374     </territory>
   2375 
   2376     <!-- Burkina Faso -->
   2377     <!-- http://www.itu.int/oth/T0202000021/en -->
   2378     <!-- http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf -->
   2379     <territory id="BF" countryCode="226" internationalPrefix="00">
   2380       <availableFormats>
   2381         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
   2382              chosen to use the standard from numbers found on the internet instead. -->
   2383         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   2384           <format>$1 $2 $3 $4</format>
   2385         </numberFormat>
   2386       </availableFormats>
   2387       <generalDesc>
   2388         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
   2389         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2390       </generalDesc>
   2391       <fixedLine>
   2392         <!-- The prefix 50 48 has been added based on numbers found online, while 40 49 has been
   2393              deleted since we haven't found any numbers with this prefix and it is not mentioned in
   2394              the Onatel document.
   2395              IMPORTANT: Note that the ITU documents of Mar/Apr 2013 seem to have major errors in the
   2396              fixed-line table, so we have not changed our patterns based on these. -->
   2397         <nationalNumberPattern>
   2398           (?:
   2399             20(?:
   2400               49|
   2401               5[23]|
   2402               9[016-9]
   2403             )|
   2404             40(?:
   2405               4[56]|
   2406               5[4-6]|
   2407               7[0179]
   2408             )|
   2409             50[34]\d
   2410           )\d{4}
   2411         </nationalNumberPattern>
   2412         <exampleNumber>20491234</exampleNumber>
   2413       </fixedLine>
   2414       <mobile>
   2415         <nationalNumberPattern>
   2416           6(?:
   2417             [0-24-6]\d|
   2418             8[0-8]|
   2419             3[0-3]
   2420           )\d{5}|
   2421           7\d{7}
   2422         </nationalNumberPattern>
   2423         <exampleNumber>70123456</exampleNumber>
   2424       </mobile>
   2425     </territory>
   2426 
   2427     <!-- Bulgaria -->
   2428     <!-- http://www.itu.int/oth/T0202000020/en -->
   2429     <territory id="BG" countryCode="359" internationalPrefix="00"
   2430                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   2431                mobileNumberPortableRegion="true">
   2432       <availableFormats>
   2433         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
   2434              used to separate the area code from the rest of the number, based on sites like
   2435              http://www.goldenpages.bg. -->
   2436         <numberFormat pattern="(2)(\d{5})">
   2437           <leadingDigits>29</leadingDigits>
   2438           <format>$1 $2</format>
   2439         </numberFormat>
   2440         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
   2441           <leadingDigits>2</leadingDigits>
   2442           <format>$1 $2 $3</format>
   2443         </numberFormat>
   2444         <numberFormat pattern="(\d{3})(\d{4})">
   2445           <leadingDigits>
   2446             43[124-7]|
   2447             70[1-9]
   2448           </leadingDigits>
   2449           <format>$1 $2</format>
   2450         </numberFormat>
   2451         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
   2452           <leadingDigits>
   2453             43[124-7]|
   2454             70[1-9]
   2455           </leadingDigits>
   2456           <format>$1 $2 $3</format>
   2457         </numberFormat>
   2458         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
   2459           <leadingDigits>[78]00</leadingDigits>
   2460           <format>$1 $2 $3</format>
   2461         </numberFormat>
   2462         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
   2463           <leadingDigits>
   2464             [356]|
   2465             4[124-7]|
   2466             7[1-9]|
   2467             8[1-6]|
   2468             9[1-7]
   2469           </leadingDigits>
   2470           <format>$1 $2 $3</format>
   2471         </numberFormat>
   2472         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   2473           <leadingDigits>
   2474             48|
   2475             8[7-9]|
   2476             9[08]
   2477           </leadingDigits>
   2478           <format>$1 $2 $3</format>
   2479         </numberFormat>
   2480       </availableFormats>
   2481       <generalDesc>
   2482         <nationalNumberPattern>
   2483           [23567]\d{5,7}|
   2484           [489]\d{6,8}
   2485         </nationalNumberPattern>
   2486         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   2487       </generalDesc>
   2488       <fixedLine>
   2489         <!-- 29xxxx numbers have been added because they can be found online, and are typically
   2490              used by taxi companies. -->
   2491         <nationalNumberPattern>
   2492           2(?:
   2493             [0-8]\d{5,6}|
   2494             9\d{4,6}
   2495           )|
   2496           (?:
   2497             [36]\d|
   2498             5[1-9]|
   2499             8[1-6]|
   2500             9[1-7]
   2501           )\d{5,6}|
   2502           (?:
   2503             4(?:
   2504               [124-7]\d|
   2505               3[1-6]
   2506             )|
   2507             7(?:
   2508               0[1-9]|
   2509               [1-9]\d
   2510             )
   2511           )\d{4,5}
   2512         </nationalNumberPattern>
   2513         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
   2514         <exampleNumber>2123456</exampleNumber>
   2515       </fixedLine>
   2516       <mobile>
   2517         <nationalNumberPattern>
   2518           (?:
   2519             8[7-9]|
   2520             98
   2521           )\d{7}|
   2522           4(?:
   2523             3[0789]|
   2524             8\d
   2525           )\d{5}
   2526         </nationalNumberPattern>
   2527         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   2528         <exampleNumber>48123456</exampleNumber>
   2529       </mobile>
   2530       <tollFree>
   2531         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   2532         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2533         <exampleNumber>80012345</exampleNumber>
   2534       </tollFree>
   2535       <premiumRate>
   2536         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
   2537         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2538         <exampleNumber>90123456</exampleNumber>
   2539       </premiumRate>
   2540       <personalNumber>
   2541         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
   2542         <exampleNumber>70012345</exampleNumber>
   2543       </personalNumber>
   2544     </territory>
   2545 
   2546     <!-- Bahrain -->
   2547     <!-- http://www.itu.int/oth/T0202000011/en -->
   2548     <!-- http://www.tra.org.bh/en/pdf/National_Numbering_Plan_2.pdf -->
   2549     <!-- http://www.tra.org.bh/en/marketNumbering.aspx -->
   2550     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain -->
   2551     <territory id="BH" countryCode="973" internationalPrefix="00" mobileNumberPortableRegion="true">
   2552       <availableFormats>
   2553         <numberFormat pattern="(\d{4})(\d{4})">
   2554           <format>$1 $2</format>
   2555         </numberFormat>
   2556       </availableFormats>
   2557       <generalDesc>
   2558         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
   2559         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2560       </generalDesc>
   2561       <!-- Universal Service numbers are under both Mobile and Fixed-Line, as they can be assigned
   2562            to either. -->
   2563       <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
   2564            "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts our ranges of
   2565            "6966, 6969, 6996-6999". TODO: Investigate this further. -->
   2566       <fixedLine>
   2567         <nationalNumberPattern>
   2568           (?:
   2569             1(?:
   2570               3[13-6]|
   2571               6[0156]|
   2572               7\d
   2573             )\d|
   2574             6(?:
   2575               1[16]\d|
   2576               6(?:
   2577                 0\d|
   2578                 3[12]|
   2579                 44|
   2580                 88
   2581               )|
   2582               9(?:
   2583                 6[69]|
   2584                 9[6-9]
   2585               )
   2586             )|
   2587             7(?:
   2588               7\d{2}|
   2589               178
   2590             )
   2591           )\d{4}
   2592         </nationalNumberPattern>
   2593         <exampleNumber>17001234</exampleNumber>
   2594       </fixedLine>
   2595       <!-- Previously 6644 was assigned to Universal Service, along with 6111, 6160, 6500, 6600,
   2596            6688, 6969, 6996, 6999, and 77. These were put under both Mobile and Fixed-Line, as they
   2597            could be assigned to either. However, in the new document these are assigned to
   2598            Fixed-Line only (with the exception of 6644 which was removed). For now we are keeping
   2599            these number in both sections.
   2600            Note also that 31 is not listed in the ITU document and could probably be removed.
   2601            TODO: Check above ranges and move/remove ranges where necessary.-->
   2602       <mobile>
   2603         <nationalNumberPattern>
   2604           (?:
   2605             3(?:
   2606               [1-4679]\d|
   2607               5[0135]|
   2608               8[348]
   2609             )\d|
   2610             6(?:
   2611               1[16]\d|
   2612               3(?:
   2613                 00|
   2614                 33|
   2615                 6[16]
   2616               )|
   2617               500|
   2618               6(?:
   2619                 [069]\d|
   2620                 3[03-9]|
   2621                 44|
   2622                 88
   2623               )|
   2624               9(?:
   2625                 6[69]|
   2626                 9[6-9]
   2627               )
   2628             )|
   2629             77\d{2}
   2630           )\d{4}
   2631         </nationalNumberPattern>
   2632         <exampleNumber>36001234</exampleNumber>
   2633       </mobile>
   2634       <tollFree>
   2635         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   2636         <exampleNumber>80123456</exampleNumber>
   2637       </tollFree>
   2638       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
   2639            now. -->
   2640       <premiumRate>
   2641         <nationalNumberPattern>
   2642           (?:
   2643             87|
   2644             9[014578]
   2645           )\d{6}
   2646         </nationalNumberPattern>
   2647         <exampleNumber>90123456</exampleNumber>
   2648       </premiumRate>
   2649       <sharedCost>
   2650         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
   2651         <exampleNumber>84123456</exampleNumber>
   2652       </sharedCost>
   2653     </territory>
   2654 
   2655     <!-- Burundi -->
   2656     <!-- http://www.itu.int/oth/T0202000022/en -->
   2657     <territory id="BI" countryCode="257" internationalPrefix="00">
   2658       <availableFormats>
   2659         <numberFormat
   2660           pattern="([27]\d)(\d{2})(\d{2})(\d{2})">
   2661           <format>$1 $2 $3 $4</format>
   2662         </numberFormat>
   2663       </availableFormats>
   2664       <generalDesc>
   2665         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
   2666         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2667       </generalDesc>
   2668       <fixedLine>
   2669         <nationalNumberPattern>
   2670           22(?:
   2671             2[0-7]|
   2672             [3-5]0
   2673           )\d{4}
   2674         </nationalNumberPattern>
   2675         <exampleNumber>22201234</exampleNumber>
   2676       </fixedLine>
   2677       <mobile>
   2678         <!-- Extra online mobile number prefixes found: 74.
   2679              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
   2680              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
   2681              satellite phones. -->
   2682         <nationalNumberPattern>
   2683           (?:
   2684             29|
   2685             7[14-9]
   2686           )\d{6}
   2687         </nationalNumberPattern>
   2688         <exampleNumber>79561234</exampleNumber>
   2689       </mobile>
   2690     </territory>
   2691 
   2692     <!-- Benin -->
   2693     <!-- http://www.itu.int/oth/T0202000017/en -->
   2694     <territory id="BJ" countryCode="229" internationalPrefix="00">
   2695       <availableFormats>
   2696         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   2697           <format>$1 $2 $3 $4</format>
   2698         </numberFormat>
   2699         <!-- Numbers beginning with 7 should be formatted as a block. -->
   2700       </availableFormats>
   2701       <generalDesc>
   2702         <nationalNumberPattern>
   2703           [2689]\d{7}|
   2704           7\d{3}
   2705         </nationalNumberPattern>
   2706         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
   2707       </generalDesc>
   2708       <fixedLine>
   2709         <!-- These come from the national numbering plan, but have been widened to include other
   2710              prefixes found in the yellow pages - specifically 21 0. -->
   2711         <nationalNumberPattern>
   2712           2(?:
   2713             02|
   2714             1[037]|
   2715             2[45]|
   2716             3[68]
   2717           )\d{5}
   2718         </nationalNumberPattern>
   2719         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2720         <exampleNumber>20211234</exampleNumber>
   2721       </fixedLine>
   2722       <mobile>
   2723         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
   2724              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
   2725              6[67] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
   2726              reported as having prefixes 68 and 9[89]. -->
   2727         <nationalNumberPattern>
   2728           (?:
   2729             6[46-8]|
   2730             9[03-9]
   2731           )\d{6}
   2732         </nationalNumberPattern>
   2733         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2734         <exampleNumber>90011234</exampleNumber>
   2735       </mobile>
   2736       <tollFree>
   2737         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
   2738         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   2739         <exampleNumber>7312</exampleNumber>
   2740       </tollFree>
   2741       <voip>
   2742         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
   2743         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2744         <exampleNumber>85751234</exampleNumber>
   2745       </voip>
   2746       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
   2747            as a local-call.) We model these as UAN since we have no more detailed information. -->
   2748       <uan>
   2749         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
   2750         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2751         <exampleNumber>81123456</exampleNumber>
   2752       </uan>
   2753     </territory>
   2754 
   2755     <!-- Saint Barthlemy, French Antilles -->
   2756     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
   2757          national numbering plan does not specify any St Barthlemy-specific numbering prefixes, but
   2758          it appears from searches in online white and yellow pages that a subset of the prefixes
   2759          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
   2760          of these region codes will be returned, although numbers will be valid for both regions.
   2761          -->
   2762     <!-- http://www.itu.int/oth/T0202000058/en -->
   2763     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
   2764       <!-- Formatting rules borrowed from Guadeloupe. -->
   2765       <generalDesc>
   2766         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   2767         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   2768       </generalDesc>
   2769       <fixedLine>
   2770         <nationalNumberPattern>
   2771           590(?:
   2772             2[7-9]|
   2773             5[12]|
   2774             87
   2775           )\d{4}
   2776         </nationalNumberPattern>
   2777         <exampleNumber>590271234</exampleNumber>
   2778       </fixedLine>
   2779       <mobile>
   2780         <!-- Any ranges assigned from
   2781              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
   2782              Guadeloupe, St Martin and St Barthlemy, since we can't reliably distinguish between
   2783              them. -->
   2784         <nationalNumberPattern>
   2785           690(?:
   2786             0[0-7]|
   2787             [1-9]\d
   2788           )\d{4}
   2789         </nationalNumberPattern>
   2790         <exampleNumber>690301234</exampleNumber>
   2791       </mobile>
   2792     </territory>
   2793 
   2794     <!-- Bermuda -->
   2795     <!-- http://www.itu.int/oth/T0202000018/en -->
   2796     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
   2797                internationalPrefix="011">
   2798       <generalDesc>
   2799         <!-- NANPA country - uses US formatting rules -->
   2800         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
   2801         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   2802       </generalDesc>
   2803       <fixedLine>
   2804         <nationalNumberPattern>
   2805           441(?:
   2806             2(?:
   2807               02|
   2808               23|
   2809               61|
   2810               [3479]\d
   2811             )|
   2812             [46]\d{2}|
   2813             5(?:
   2814               4\d|
   2815               60|
   2816               89
   2817             )|
   2818             824
   2819           )\d{4}
   2820         </nationalNumberPattern>
   2821         <exampleNumber>4412345678</exampleNumber>
   2822       </fixedLine>
   2823       <mobile>
   2824         <nationalNumberPattern>
   2825           441(?:
   2826             [37]\d|
   2827             5[0-39]
   2828           )\d{5}
   2829         </nationalNumberPattern>
   2830         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2831         <exampleNumber>4413701234</exampleNumber>
   2832       </mobile>
   2833       <tollFree>
   2834         <nationalNumberPattern>
   2835           8(?:
   2836             00|
   2837             55|
   2838             66|
   2839             77|
   2840             88
   2841           )[2-9]\d{6}
   2842         </nationalNumberPattern>
   2843         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2844         <exampleNumber>8002123456</exampleNumber>
   2845       </tollFree>
   2846       <premiumRate>
   2847         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   2848         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2849         <exampleNumber>9002123456</exampleNumber>
   2850       </premiumRate>
   2851       <personalNumber>
   2852         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   2853         <nationalNumberPattern>
   2854           5(?:
   2855             00|
   2856             33|
   2857             44
   2858           )[2-9]\d{6}
   2859         </nationalNumberPattern>
   2860         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   2861         <exampleNumber>5002345678</exampleNumber>
   2862       </personalNumber>
   2863     </territory>
   2864 
   2865     <!-- Brunei Darussalam -->
   2866     <!-- http://www.itu.int/oth/T020200001F/en -->
   2867     <territory id="BN" countryCode="673" internationalPrefix="00">
   2868       <!-- Format is from http://aiti.gov.bn/contact.html -->
   2869       <availableFormats>
   2870         <numberFormat pattern="([2-578]\d{2})(\d{4})">
   2871           <format>$1 $2</format>
   2872         </numberFormat>
   2873       </availableFormats>
   2874       <generalDesc>
   2875         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
   2876         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   2877       </generalDesc>
   2878       <fixedLine>
   2879         <nationalNumberPattern>[2-5]\d{6}</nationalNumberPattern>
   2880         <exampleNumber>2345678</exampleNumber>
   2881       </fixedLine>
   2882       <mobile>
   2883         <nationalNumberPattern>[78]\d{6}</nationalNumberPattern>
   2884         <exampleNumber>7123456</exampleNumber>
   2885       </mobile>
   2886     </territory>
   2887 
   2888     <!-- Bolivia -->
   2889     <!-- http://www.itu.int/oth/T020200001A/en -->
   2890     <!-- http://www.bolivia.com/Servicios/Plandenumeracion.pdf -->
   2891     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
   2892                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
   2893       <availableFormats>
   2894         <numberFormat pattern="([234])(\d{7})">
   2895           <leadingDigits>[234]</leadingDigits>
   2896           <format>$1 $2</format>
   2897         </numberFormat>
   2898         <numberFormat pattern="([67]\d{7})">
   2899           <leadingDigits>[67]</leadingDigits>
   2900           <format>$1</format>
   2901         </numberFormat>
   2902       </availableFormats>
   2903       <generalDesc>
   2904         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
   2905         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   2906       </generalDesc>
   2907       <fixedLine>
   2908         <nationalNumberPattern>
   2909           (?:
   2910             2(?:
   2911               2\d{2}|
   2912               5(?:11|[258]\d|9[67])|
   2913               6(?:12|2\d|9[34])|
   2914               8(?:2[34]|39|62)
   2915             )|
   2916             3(?:
   2917               3\d{2}|
   2918               4(?:6\d|8[24])|
   2919               8(?:25|42|5[257]|86|9[25])|
   2920               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
   2921             )|
   2922             4(?:
   2923               4\d{2}|
   2924               6(?:11|[24689]\d|72)
   2925             )
   2926           )\d{4}
   2927         </nationalNumberPattern>
   2928         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   2929         <exampleNumber>22123456</exampleNumber>
   2930       </fixedLine>
   2931       <mobile>
   2932         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
   2933         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   2934         <exampleNumber>71234567</exampleNumber>
   2935       </mobile>
   2936     </territory>
   2937 
   2938     <!-- Bonaire, Sint Eustatius and Saba -->
   2939     <!-- http://www.itu.int/oth/T02020000F8/en -->
   2940     <territory id="BQ" countryCode="599" internationalPrefix="00">
   2941       <!-- Shares formatting patterns with CW. -->
   2942       <generalDesc>
   2943         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
   2944         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   2945       </generalDesc>
   2946       <fixedLine>
   2947         <nationalNumberPattern>
   2948           (?:
   2949             318[023]|
   2950             416[0239]|
   2951             7(?:
   2952               1[578]|
   2953               50
   2954             )\d
   2955           )\d{3}
   2956         </nationalNumberPattern>
   2957         <exampleNumber>7151234</exampleNumber>
   2958       </fixedLine>
   2959       <mobile>
   2960         <nationalNumberPattern>
   2961           (?:
   2962             318[1456]|
   2963             416[15-8]|
   2964             7(?:
   2965               0[01]|
   2966               [89]\d
   2967             )\d
   2968           )\d{3}|
   2969         </nationalNumberPattern>
   2970         <exampleNumber>3181234</exampleNumber>
   2971       </mobile>
   2972     </territory>
   2973 
   2974     <!-- Brazil -->
   2975     <!-- http://en.wikipedia.org/wiki/%2B55 -->
   2976     <!-- http://www.itu.int/oth/T020200001D/en -->
   2977     <territory id="BR" countryCode="55"
   2978                internationalPrefix="00(?:1[45]|2[135]|[34]1|43)"
   2979                nationalPrefix="0"
   2980                nationalPrefixForParsing="0(?:(1[245]|2[135]|[34]1)(\d{10,11}))?"
   2981                nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true">
   2982       <!-- The national prefix for parsing here also contains a capturing group for the main number,
   2983            since the carrier codes here may also be area codes, so we want to check the length of
   2984            the number after capturing. We also need a nationalTransformRule to repopulate with the
   2985            number without the carrier code. -->
   2986       <availableFormats>
   2987         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
   2988              rules here handle this case. The leading digits pattern must be specific enough such
   2989              that it doesn't match X00 numbers (e.g. toll-free). -->
   2990         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
   2991           <leadingDigits>
   2992             [2-9](?:
   2993               [1-9]|
   2994               0[1-9]
   2995             )
   2996           </leadingDigits>
   2997           <format>$1-$2</format>
   2998           <intlFormat>NA</intlFormat>
   2999         </numberFormat>
   3000         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
   3001           <leadingDigits>
   3002             9(?:
   3003               [1-9]|
   3004               0[1-9]
   3005             )
   3006           </leadingDigits>
   3007           <format>$1-$2</format>
   3008           <intlFormat>NA</intlFormat>
   3009         </numberFormat>
   3010         <!-- Format short numbers as a block. -->
   3011         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
   3012           <leadingDigits>1[125689]</leadingDigits>
   3013           <format>$1</format>
   3014           <intlFormat>NA</intlFormat>
   3015         </numberFormat>
   3016         <numberFormat nationalPrefixFormattingRule="($FG)"
   3017             pattern="(\d{2})(\d{5})(\d{4})"
   3018             carrierCodeFormattingRule="$NP $CC ($FG)">
   3019           <leadingDigits>
   3020             (?:
   3021               1[1-9]|
   3022               2[12478]
   3023             )9
   3024           </leadingDigits>
   3025           <format>$1 $2-$3</format>
   3026         </numberFormat>
   3027         <numberFormat nationalPrefixFormattingRule="($FG)"
   3028             pattern="(\d{2})(\d{4})(\d{4})"
   3029             carrierCodeFormattingRule="$NP $CC ($FG)">
   3030           <leadingDigits>[1-9][1-9]</leadingDigits>
   3031           <format>$1 $2-$3</format>
   3032         </numberFormat>
   3033         <numberFormat pattern="([34]00\d)(\d{4})">
   3034           <leadingDigits>[34]00</leadingDigits>
   3035           <format>$1-$2</format>
   3036         </numberFormat>
   3037         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   3038             pattern="([3589]00)(\d{2,3})(\d{4})">
   3039           <leadingDigits>[3589]00</leadingDigits>
   3040           <format>$1 $2 $3</format>
   3041         </numberFormat>
   3042       </availableFormats>
   3043       <generalDesc>
   3044         <nationalNumberPattern>
   3045           [1-46-9]\d{7,10}|
   3046           5\d{8,9}
   3047         </nationalNumberPattern>
   3048         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
   3049       </generalDesc>
   3050       <noInternationalDialling>
   3051         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
   3052         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3053         <exampleNumber>40041234</exampleNumber>
   3054       </noInternationalDialling>
   3055       <fixedLine>
   3056         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
   3057              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
   3058              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
   3059              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
   3060              -->
   3061         <nationalNumberPattern>
   3062           1[1-9][2-5]\d{7}|
   3063           (?:
   3064             [4689][1-9]|
   3065             2[12478]|
   3066             3[1-578]|
   3067             5[13-5]|
   3068             7[13-579]
   3069           )[2-5]\d{7}
   3070         </nationalNumberPattern>
   3071         <exampleNumber>1123456789</exampleNumber>
   3072       </fixedLine>
   3073       <!-- Also includes the new 11-digit mobile numbers that are being rolled out since 2012,
   3074            which are added at the end. -->
   3075       <mobile>
   3076         <nationalNumberPattern>
   3077           1(?:
   3078             1(?:
   3079               5[347]|
   3080               [6-9]\d
   3081             )|
   3082             [2-9][6-9]\d
   3083           )\d{6}|
   3084           (?:
   3085             2[12478]|
   3086             3[1-578]|
   3087             [4689][1-9]|
   3088             5[13-5]|
   3089             7[13-579]
   3090           )[6-9]\d{7}|
   3091           (?:
   3092             1(?:
   3093               19\d|
   3094               [2-9]9[6-9]
   3095             )|
   3096             2[12478]9[6-9]
   3097           )\d{7}
   3098         </nationalNumberPattern>
   3099         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   3100         <exampleNumber>1161234567</exampleNumber>
   3101       </mobile>
   3102       <tollFree>
   3103         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
   3104         <exampleNumber>800123456</exampleNumber>
   3105       </tollFree>
   3106       <premiumRate>
   3107         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
   3108         <exampleNumber>300123456</exampleNumber>
   3109       </premiumRate>
   3110       <sharedCost>
   3111         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
   3112         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3113         <exampleNumber>40041234</exampleNumber>
   3114       </sharedCost>
   3115     </territory>
   3116 
   3117     <!-- Bahamas -->
   3118     <!-- http://www.itu.int/oth/T0202000010/en -->
   3119     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
   3120                internationalPrefix="011">
   3121       <generalDesc>
   3122         <!-- NANPA country - uses US formatting rules -->
   3123         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
   3124         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   3125       </generalDesc>
   3126       <fixedLine>
   3127         <nationalNumberPattern>
   3128           242(?:
   3129             3(?:
   3130               02|
   3131               [236][1-9]|
   3132               4[0-24-9]|
   3133               5[0-68]|
   3134               7[3467]|
   3135               8[0-4]|
   3136               9[2-467]
   3137             )|
   3138             461|
   3139             502|
   3140             6(?:
   3141               12|
   3142               7[67]|
   3143               8[78]|
   3144               9[89]
   3145             )|
   3146             702
   3147           )\d{4}
   3148         </nationalNumberPattern>
   3149         <exampleNumber>2423456789</exampleNumber>
   3150       </fixedLine>
   3151       <mobile>
   3152         <nationalNumberPattern>
   3153           242(?:
   3154             3(?:
   3155               5[79]|
   3156               [79]5
   3157             )|
   3158             4(?:
   3159               [2-4][1-9]|
   3160               5[1-8]|
   3161               6[2-8]|
   3162               7\d|
   3163               81
   3164             )|
   3165             5(?:
   3166               2[45]|
   3167               3[35]|
   3168               44|
   3169               5[1-9]|
   3170               65|
   3171               77
   3172             )|
   3173             6[34]6|
   3174             727
   3175           )\d{4}
   3176         </nationalNumberPattern>
   3177         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3178         <exampleNumber>2423591234</exampleNumber>
   3179       </mobile>
   3180       <tollFree>
   3181         <!-- 242 300 is a Domestic Toll Free service. -->
   3182         <nationalNumberPattern>
   3183           242300\d{4}|
   3184           8(?:
   3185             00|
   3186             55|
   3187             66|
   3188             77|
   3189             88
   3190           )[2-9]\d{6}
   3191         </nationalNumberPattern>
   3192         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3193         <exampleNumber>8002123456</exampleNumber>
   3194       </tollFree>
   3195       <premiumRate>
   3196         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   3197         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3198         <exampleNumber>9002123456</exampleNumber>
   3199       </premiumRate>
   3200       <personalNumber>
   3201         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   3202         <nationalNumberPattern>
   3203           5(?:
   3204             00|
   3205             33|
   3206             44
   3207           )[2-9]\d{6}
   3208         </nationalNumberPattern>
   3209         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3210         <exampleNumber>5002345678</exampleNumber>
   3211       </personalNumber>
   3212     </territory>
   3213 
   3214     <!-- Bhutan -->
   3215     <!-- http://www.itu.int/oth/T0202000019/en -->
   3216     <territory id="BT" countryCode="975" internationalPrefix="00">
   3217       <availableFormats>
   3218         <!-- Format is from
   3219              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
   3220         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
   3221           <leadingDigits>
   3222             1|
   3223             77
   3224           </leadingDigits>
   3225           <format>$1 $2 $3 $4</format>
   3226         </numberFormat>
   3227         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
   3228           <leadingDigits>
   3229             [2-68]|
   3230             7[246]
   3231           </leadingDigits>
   3232           <format>$1 $2 $3</format>
   3233         </numberFormat>
   3234       </availableFormats>
   3235       <generalDesc>
   3236         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
   3237         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   3238       </generalDesc>
   3239       <fixedLine>
   3240         <nationalNumberPattern>
   3241           (?:
   3242             2[3-6]|
   3243             [34][5-7]|
   3244             5[236]|
   3245             6[2-46]|
   3246             7[246]|
   3247             8[2-4]
   3248           )\d{5}
   3249         </nationalNumberPattern>
   3250         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   3251         <exampleNumber>2345678</exampleNumber>
   3252       </fixedLine>
   3253       <mobile>
   3254         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
   3255              is in use. -->
   3256         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
   3257         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3258         <exampleNumber>17123456</exampleNumber>
   3259       </mobile>
   3260       <!-- No information on other types of phone numbers for Bhutan has been found. -->
   3261     </territory>
   3262 
   3263     <!-- Botswana -->
   3264     <!-- http://www.itu.int/oth/T020200001C/en -->
   3265     <territory id="BW" countryCode="267" internationalPrefix="00">
   3266       <availableFormats>
   3267         <numberFormat pattern="(\d{3})(\d{4})">
   3268           <leadingDigits>[2-6]</leadingDigits>
   3269           <format>$1 $2</format>
   3270         </numberFormat>
   3271         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
   3272           <leadingDigits>7</leadingDigits>
   3273           <format>$1 $2 $3</format>
   3274         </numberFormat>
   3275         <numberFormat pattern="(90)(\d{5})">
   3276           <leadingDigits>9</leadingDigits>
   3277           <format>$1 $2</format>
   3278         </numberFormat>
   3279       </availableFormats>
   3280       <generalDesc>
   3281         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
   3282         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   3283       </generalDesc>
   3284       <fixedLine>
   3285         <nationalNumberPattern>
   3286           (?:
   3287             2(?:
   3288               4[0-48]|
   3289               6[0-24]|
   3290               9[0578]
   3291             )|
   3292             3(?:
   3293               1[0235-9]|
   3294               55|
   3295               6\d|
   3296               7[01]|
   3297               9[0-57]
   3298             )|
   3299             4(?:
   3300               6[03]|
   3301               7[1267]|
   3302               9[0-5]
   3303             )|
   3304             5(?:
   3305               3[0389]|
   3306               4[0489]|
   3307               7[1-47]|
   3308               88|
   3309               9[0-49]
   3310             )|
   3311             6(?:
   3312               2[1-35]|
   3313               5[149]|
   3314               8[067]
   3315             )
   3316           )\d{4}
   3317         </nationalNumberPattern>
   3318         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3319         <exampleNumber>2401234</exampleNumber>
   3320       </fixedLine>
   3321       <mobile>
   3322         <!-- 77[0146] has been added after numbers in use have been seen online. -->
   3323         <nationalNumberPattern>
   3324           7(?:
   3325             [1-35]\d{6}|
   3326             [46][0-7]\d{5}|
   3327             7[0146]\d{5}
   3328           )
   3329         </nationalNumberPattern>
   3330         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3331         <exampleNumber>71123456</exampleNumber>
   3332       </mobile>
   3333       <!-- No reliable information about toll-free numbers can be found; many are written on the
   3334            internet like 0800 123 456, but this is not supported by any documentation and no
   3335            numbers can be found that actually work. -->
   3336       <premiumRate>
   3337         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
   3338         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3339         <exampleNumber>9012345</exampleNumber>
   3340       </premiumRate>
   3341       <voip>
   3342         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
   3343         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3344         <exampleNumber>79101234</exampleNumber>
   3345       </voip>
   3346     </territory>
   3347 
   3348     <!-- Belarus -->
   3349     <!-- http://www.eng.beltelecom.by/en/subscribers/phone-codes -->
   3350     <!-- Information on national prefix provided by a Belarussian person. -->
   3351     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
   3352                internationalPrefix="810" nationalPrefixForParsing="8?0?"
   3353                nationalPrefix="8" mobileNumberPortableRegion="true">
   3354       <availableFormats>
   3355         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
   3356           pattern="([1-4]\d)(\d{3})(\d{4})">
   3357           <leadingDigits>[1-4]</leadingDigits>
   3358           <format>$1 $2 $3</format>
   3359         </numberFormat>
   3360         <numberFormat nationalPrefixFormattingRule="$NP $FG"
   3361           pattern="([89]\d{2})(\d{3})(\d{4})">
   3362           <leadingDigits>
   3363             8[01]|
   3364             9
   3365           </leadingDigits>
   3366           <format>$1 $2 $3</format>
   3367         </numberFormat>
   3368         <numberFormat nationalPrefixFormattingRule="$NP $FG"
   3369           pattern="(8\d{2})(\d{4})(\d{4})">
   3370           <leadingDigits>82</leadingDigits>
   3371           <format>$1 $2 $3</format>
   3372         </numberFormat>
   3373       </availableFormats>
   3374       <generalDesc>
   3375         <nationalNumberPattern>
   3376           [1-4]\d{8}|
   3377           [89]\d{9,10}
   3378         </nationalNumberPattern>
   3379         <!-- Numbers are often written without the city code. -->
   3380         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   3381       </generalDesc>
   3382       <!-- Toll-free and premium rate numbers are not available from abroad. -->
   3383       <noInternationalDialling>
   3384         <nationalNumberPattern>
   3385           8(?:
   3386             [01]|
   3387             20
   3388           )\d{8}|
   3389           902\d{7}
   3390         </nationalNumberPattern>
   3391         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   3392         <exampleNumber>82012345678</exampleNumber>
   3393       </noInternationalDialling>
   3394       <fixedLine>
   3395         <nationalNumberPattern>
   3396           (?:
   3397             1(?:
   3398               5(?:
   3399                 1[1-5]|
   3400                 2\d|
   3401                 6[2-4]|
   3402                 9[1-7]
   3403               )|
   3404               6(?:
   3405                 [235]\d|
   3406                 4[1-7]
   3407               )|
   3408               7\d{2}
   3409             )|
   3410             2(?:
   3411               1(?:
   3412                 [246]\d|
   3413                 3[0-35-9]|
   3414                 5[1-9]
   3415               )|
   3416               2(?:
   3417                 [235]\d|
   3418                 4[0-8]
   3419               )|
   3420               3(?:
   3421                 2\d|
   3422                 3[02-79]|
   3423                 4[024-7]|
   3424                 5[0-7]
   3425               )
   3426             )
   3427           )\d{5}
   3428         </nationalNumberPattern>
   3429         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   3430         <!-- Using test number for Grodno from the plan. -->
   3431         <exampleNumber>152450911</exampleNumber>
   3432       </fixedLine>
   3433       <mobile>
   3434         <nationalNumberPattern>
   3435           (?:
   3436             2(?:
   3437               5[5679]|
   3438               9[1-9]
   3439             )|
   3440             33\d|
   3441             44\d
   3442           )\d{6}
   3443         </nationalNumberPattern>
   3444         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3445         <!-- Using test number for BelCel from the plan. -->
   3446         <exampleNumber>294911911</exampleNumber>
   3447       </mobile>
   3448       <tollFree>
   3449         <!-- Putting Interactive Polling Service (free) here too. -->
   3450         <nationalNumberPattern>
   3451           8(?:
   3452             0[13]|
   3453             20\d
   3454           )\d{7}
   3455         </nationalNumberPattern>
   3456         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   3457         <exampleNumber>8011234567</exampleNumber>
   3458       </tollFree>
   3459       <premiumRate>
   3460         <!-- Putting Interactive Polling Service (paid) here too. -->
   3461         <nationalNumberPattern>
   3462           (?:
   3463             810|
   3464             902
   3465           )\d{7}
   3466         </nationalNumberPattern>
   3467         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3468         <exampleNumber>9021234567</exampleNumber>
   3469       </premiumRate>
   3470     </territory>
   3471 
   3472     <!-- Belize -->
   3473     <!-- http://www.itu.int/oth/T0202000016/en -->
   3474     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
   3475          -->
   3476     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
   3477       <availableFormats>
   3478         <numberFormat pattern="(\d{3})(\d{4})">
   3479           <leadingDigits>[2-8]</leadingDigits>
   3480           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
   3481           <format>$1-$2</format>
   3482         </numberFormat>
   3483         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
   3484           <leadingDigits>0</leadingDigits>
   3485           <format>$1-$2-$3-$4</format>
   3486         </numberFormat>
   3487       </availableFormats>
   3488       <generalDesc>
   3489         <nationalNumberPattern>
   3490           [2-8]\d{6}|
   3491           0\d{10}
   3492         </nationalNumberPattern>
   3493         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
   3494       </generalDesc>
   3495       <fixedLine>
   3496         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
   3497         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3498         <exampleNumber>2221234</exampleNumber>
   3499       </fixedLine>
   3500       <mobile>
   3501         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
   3502              to these numbers or many numbers have been found online. -->
   3503         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
   3504         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   3505         <exampleNumber>6221234</exampleNumber>
   3506       </mobile>
   3507       <!-- We don't know how these would be dialled internationally - it is possible that they can't
   3508            be dialled internationally at all - so we represent the leading 0 as part of the number.
   3509            Information from www.belizetelemedia.net. -->
   3510       <tollFree>
   3511         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
   3512         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   3513         <exampleNumber>08001234123</exampleNumber>
   3514       </tollFree>
   3515     </territory>
   3516 
   3517     <!-- Canada -->
   3518     <!-- http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm -->
   3519     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1"
   3520                mobileNumberPortableRegion="true">
   3521       <generalDesc>
   3522         <!-- NANPA country - uses US formatting rules -->
   3523         <nationalNumberPattern>
   3524           [2-9]\d{9}|
   3525           3\d{6}
   3526         </nationalNumberPattern>
   3527         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   3528       </generalDesc>
   3529       <fixedLine>
   3530         <nationalNumberPattern>
   3531           (?:
   3532             2(?:
   3533               04|
   3534               [23]6|
   3535               [48]9|
   3536               50
   3537             )|
   3538             3(?:
   3539               06|
   3540               43|
   3541               65
   3542             )|
   3543             4(?:
   3544               03|
   3545               1[68]|
   3546               3[178]|
   3547               50
   3548             )|
   3549             5(?:
   3550               06|
   3551               1[49]|
   3552               79|
   3553               8[17]
   3554             )|
   3555             6(?:
   3556               0[04]|
   3557               13|
   3558               39|
   3559               47
   3560             )|
   3561             7(?:
   3562               0[59]|
   3563               78|
   3564               80
   3565             )|
   3566             8(?:
   3567               [06]7|
   3568               19|
   3569               73
   3570             )|
   3571             90[25]
   3572           )[2-9]\d{6}|
   3573           310\d{4}
   3574         </nationalNumberPattern>
   3575         <exampleNumber>2042345678</exampleNumber>
   3576       </fixedLine>
   3577       <mobile>
   3578         <nationalNumberPattern>
   3579           (?:
   3580             2(?:
   3581               04|
   3582               [23]6|
   3583               [48]9|
   3584               50
   3585             )|
   3586             3(?:
   3587               06|
   3588               43|
   3589               65
   3590             )|
   3591             4(?:
   3592               03|
   3593               1[68]|
   3594               3[178]|
   3595               50
   3596             )|
   3597             5(?:
   3598               06|
   3599               1[49]|
   3600               79|
   3601               8[17]
   3602             )|
   3603             6(?:
   3604               0[04]|
   3605               13|
   3606               39|
   3607               47
   3608             )|
   3609             7(?:
   3610               0[59]|
   3611               78|
   3612               80
   3613             )|
   3614             8(?:
   3615               [06]7|
   3616               19|
   3617               73
   3618             )|
   3619             90[25]
   3620           )[2-9]\d{6}
   3621         </nationalNumberPattern>
   3622         <exampleNumber>2042345678</exampleNumber>
   3623       </mobile>
   3624       <tollFree>
   3625         <nationalNumberPattern>
   3626           8(?:
   3627             00|
   3628             66|
   3629             77|
   3630             88
   3631           )[2-9]\d{6}|
   3632           310\d{4}
   3633         </nationalNumberPattern>
   3634         <exampleNumber>8002123456</exampleNumber>
   3635       </tollFree>
   3636       <premiumRate>
   3637         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   3638         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3639         <exampleNumber>9002123456</exampleNumber>
   3640       </premiumRate>
   3641       <personalNumber>
   3642         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   3643         <nationalNumberPattern>
   3644           5(?:
   3645             00|
   3646             33|
   3647             44
   3648           )[2-9]\d{6}
   3649         </nationalNumberPattern>
   3650         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3651         <exampleNumber>5002345678</exampleNumber>
   3652       </personalNumber>
   3653     </territory>
   3654 
   3655     <!-- Cocos Islands -->
   3656     <!-- Metadata shared with Australia. -->
   3657     <!-- References state Cocos Islands have fixed line numbers starting +61 8 9162. -->
   3658     <!-- http://en.wikipedia.org/wiki/List_of_country_calling_codes -->
   3659     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
   3660     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
   3661                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
   3662                nationalPrefix="0">
   3663       <!-- Uses AU formatting rules. -->
   3664       <!-- General desc and fixed line rules different from Australia. -->
   3665       <generalDesc>
   3666         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
   3667         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   3668       </generalDesc>
   3669       <fixedLine>
   3670         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
   3671         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   3672         <exampleNumber>891621234</exampleNumber>
   3673       </fixedLine>
   3674       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
   3675       <mobile>
   3676         <nationalNumberPattern>
   3677           4(?:
   3678             [0-2]\d|
   3679             3[0-57-9]|
   3680             4[47-9]|
   3681             5[0-37-9]|
   3682             6[6-9]|
   3683             7[07-9]|
   3684             8[7-9]
   3685           )\d{6}
   3686         </nationalNumberPattern>
   3687         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3688         <exampleNumber>412345678</exampleNumber>
   3689       </mobile>
   3690       <tollFree>
   3691         <nationalNumberPattern>
   3692           1(?:
   3693             80(?:
   3694               0\d{2}
   3695             )?|
   3696             3(?:
   3697               00\d{2}
   3698             )?
   3699           )\d{4}
   3700         </nationalNumberPattern>
   3701         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   3702         <exampleNumber>1800123456</exampleNumber>
   3703       </tollFree>
   3704       <premiumRate>
   3705         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
   3706         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   3707         <exampleNumber>1900123456</exampleNumber>
   3708       </premiumRate>
   3709       <personalNumber>
   3710         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
   3711         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3712         <exampleNumber>500123456</exampleNumber>
   3713       </personalNumber>
   3714       <voip>
   3715         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
   3716         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3717         <exampleNumber>550123456</exampleNumber>
   3718       </voip>
   3719     </territory>
   3720 
   3721     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
   3722     <!-- http://www.itu.int/oth/T0202000037/en -->
   3723     <territory id="CD" countryCode="243" internationalPrefix="00"
   3724                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   3725       <availableFormats>
   3726         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   3727           <leadingDigits>12</leadingDigits>
   3728           <format>$1 $2 $3</format>
   3729         </numberFormat>
   3730         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
   3731           <leadingDigits>
   3732             8[0-2459]|
   3733             9
   3734           </leadingDigits>
   3735           <format>$1 $2 $3</format>
   3736         </numberFormat>
   3737         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
   3738           <leadingDigits>88</leadingDigits>
   3739           <format>$1 $2 $3</format>
   3740         </numberFormat>
   3741         <numberFormat pattern="(\d{2})(\d{5})">
   3742           <leadingDigits>[1-6]</leadingDigits>
   3743           <format>$1 $2</format>
   3744         </numberFormat>
   3745       </availableFormats>
   3746       <generalDesc>
   3747         <nationalNumberPattern>
   3748           [2-6]\d{6}|
   3749           [18]\d{6,8}|
   3750           9\d{8}
   3751         </nationalNumberPattern>
   3752         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   3753       </generalDesc>
   3754       <fixedLine>
   3755         <nationalNumberPattern>
   3756           1(?:
   3757             2\d{7}|
   3758             \d{6}
   3759           )|
   3760           [2-6]\d{6}
   3761         </nationalNumberPattern>
   3762         <exampleNumber>1234567</exampleNumber>
   3763       </fixedLine>
   3764       <mobile>
   3765         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
   3766              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
   3767              holdings company http://www.timeturnsholdings.com/products does not show a link for
   3768              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
   3769              tried were valid. If the holdings company does not respond to requests about this
   3770              range and unless we receive further information, we will remove this range. -->
   3771         <nationalNumberPattern>
   3772           8(?:
   3773             [0-2459]\d{2}|
   3774             8
   3775           )\d{5}|
   3776           9[7-9]\d{7}
   3777         </nationalNumberPattern>
   3778         <exampleNumber>991234567</exampleNumber>
   3779       </mobile>
   3780     </territory>
   3781 
   3782     <!-- Central African Republic -->
   3783     <!-- http://www.itu.int/oth/T0202000028/en -->
   3784     <territory id="CF" countryCode="236" internationalPrefix="00">
   3785       <availableFormats>
   3786         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   3787           <format>$1 $2 $3 $4</format>
   3788         </numberFormat>
   3789       </availableFormats>
   3790       <generalDesc>
   3791         <nationalNumberPattern>[278]\d{7}</nationalNumberPattern>
   3792         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3793       </generalDesc>
   3794       <fixedLine>
   3795         <nationalNumberPattern>2[12]\d{6}</nationalNumberPattern>
   3796         <exampleNumber>21612345</exampleNumber>
   3797       </fixedLine>
   3798       <mobile>
   3799         <nationalNumberPattern>7[0257]\d{6}</nationalNumberPattern>
   3800         <exampleNumber>70012345</exampleNumber>
   3801       </mobile>
   3802       <premiumRate>
   3803         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
   3804         <exampleNumber>87761234</exampleNumber>
   3805       </premiumRate>
   3806     </territory>
   3807 
   3808     <!-- Congo (Rep. of the) (Brazzaville) -->
   3809     <!-- http://www.itu.int/oth/T020200002E/en -->
   3810     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
   3811       <availableFormats>
   3812         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   3813           <leadingDigits>[02]</leadingDigits>
   3814           <format>$1 $2 $3</format>
   3815         </numberFormat>
   3816         <numberFormat pattern="(\d)(\d{4})(\d{4})">
   3817           <leadingDigits>8</leadingDigits>
   3818           <format>$1 $2 $3</format>
   3819         </numberFormat>
   3820       </availableFormats>
   3821       <generalDesc>
   3822         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
   3823         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3824       </generalDesc>
   3825       <fixedLine>
   3826         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
   3827         <exampleNumber>222123456</exampleNumber>
   3828       </fixedLine>
   3829       <mobile>
   3830         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
   3831         <exampleNumber>061234567</exampleNumber>
   3832       </mobile>
   3833       <!-- Referred to as a "Green number" in the telephone plan. -->
   3834       <tollFree>
   3835         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   3836         <exampleNumber>800123456</exampleNumber>
   3837       </tollFree>
   3838     </territory>
   3839 
   3840     <!-- Switzerland -->
   3841     <!-- http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en
   3842          under Technical prescriptions: Numbering plan for international carriers -->
   3843     <territory id="CH" countryCode="41" internationalPrefix="00"
   3844                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG"
   3845                mobileNumberPortableRegion="true">
   3846       <availableFormats>
   3847         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
   3848           <leadingDigits>
   3849             [2-7]|
   3850             [89]1
   3851           </leadingDigits>
   3852           <format>$1 $2 $3 $4</format>
   3853         </numberFormat>
   3854         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
   3855           <leadingDigits>
   3856             8[047]|
   3857             90
   3858           </leadingDigits>
   3859           <format>$1 $2 $3</format>
   3860         </numberFormat>
   3861         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
   3862           <leadingDigits>860</leadingDigits>
   3863           <format>$1 $2 $3 $4 $5</format>
   3864         </numberFormat>
   3865       </availableFormats>
   3866       <generalDesc>
   3867         <nationalNumberPattern>
   3868           [2-9]\d{8}|
   3869           860\d{9}
   3870         </nationalNumberPattern>
   3871         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
   3872       </generalDesc>
   3873       <fixedLine>
   3874         <nationalNumberPattern>
   3875           (?:
   3876             2[12467]|
   3877             3[1-4]|
   3878             4[134]|
   3879             5[256]|
   3880             6[12]|
   3881             [7-9]1
   3882           )\d{7}
   3883         </nationalNumberPattern>
   3884         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3885         <exampleNumber>212345678</exampleNumber>
   3886       </fixedLine>
   3887       <mobile>
   3888         <nationalNumberPattern>7[5-9]\d{7}</nationalNumberPattern>
   3889         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3890         <exampleNumber>781234567</exampleNumber>
   3891       </mobile>
   3892       <pager>
   3893         <!-- https://www.eofcom.admin.ch/eofcom/public/listEofcom_e164Allocated.do -->
   3894         <nationalNumberPattern>74[0248]\d{6}</nationalNumberPattern>
   3895         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3896         <exampleNumber>740123456</exampleNumber>
   3897       </pager>
   3898       <tollFree>
   3899         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   3900         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3901         <exampleNumber>800123456</exampleNumber>
   3902       </tollFree>
   3903       <premiumRate>
   3904         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
   3905         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3906         <exampleNumber>900123456</exampleNumber>
   3907       </premiumRate>
   3908       <sharedCost>
   3909         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
   3910         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3911         <exampleNumber>840123456</exampleNumber>
   3912       </sharedCost>
   3913       <personalNumber>
   3914         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
   3915         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3916         <exampleNumber>878123456</exampleNumber>
   3917       </personalNumber>
   3918       <uan>
   3919         <!-- Used for corporate networks. -->
   3920         <nationalNumberPattern>5[18]\d{7}</nationalNumberPattern>
   3921         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   3922         <exampleNumber>581234567</exampleNumber>
   3923       </uan>
   3924       <voicemail>
   3925         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
   3926         <possibleNumberPattern>\d{12}</possibleNumberPattern>
   3927         <exampleNumber>860123456789</exampleNumber>
   3928       </voicemail>
   3929     </territory>
   3930 
   3931     <!-- Cte d'Ivoire -->
   3932     <!-- http://www.itu.int/oth/T0202000031/en -->
   3933     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
   3934       <availableFormats>
   3935         <!-- Using format from online yellow pages over format implied in national numbering plan.
   3936              -->
   3937         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   3938           <format>$1 $2 $3 $4</format>
   3939         </numberFormat>
   3940       </availableFormats>
   3941       <generalDesc>
   3942         <nationalNumberPattern>[02-6]\d{7}</nationalNumberPattern>
   3943         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   3944       </generalDesc>
   3945       <fixedLine>
   3946         <nationalNumberPattern>
   3947           (?:
   3948             2(?:
   3949               0[023]|
   3950               1[02357]|
   3951               [23][045]|
   3952               4[03-5]
   3953             )|
   3954             3(?:
   3955               0[06]|
   3956               1[069]|
   3957               [2-4][07]|
   3958               5[09]|
   3959               6[08]
   3960             )
   3961           )\d{5}
   3962         </nationalNumberPattern>
   3963         <exampleNumber>21234567</exampleNumber>
   3964       </fixedLine>
   3965       <mobile>
   3966         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 6[15] because SMS messages have been
   3967              successfully delivered. Supported by numbers found on the internet. -->
   3968         <nationalNumberPattern>
   3969           (?:
   3970             0[1-9]|
   3971             4[0-24-9]|
   3972             5[05-9]|
   3973             6[015679]
   3974           )\d{6}
   3975         </nationalNumberPattern>
   3976         <exampleNumber>01234567</exampleNumber>
   3977       </mobile>
   3978     </territory>
   3979 
   3980     <!-- Cook Islands -->
   3981     <!-- http://www.itu.int/oth/T020200002F/en -->
   3982     <territory id="CK" countryCode="682" internationalPrefix="00">
   3983       <availableFormats>
   3984         <numberFormat pattern="(\d{2})(\d{3})">
   3985           <format>$1 $2</format>
   3986         </numberFormat>
   3987       </availableFormats>
   3988       <generalDesc>
   3989         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
   3990         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   3991       </generalDesc>
   3992       <fixedLine>
   3993         <nationalNumberPattern>
   3994           (?:
   3995             2\d|
   3996             3[13-7]|
   3997             4[1-5]
   3998           )\d{3}
   3999         </nationalNumberPattern>
   4000         <exampleNumber>21234</exampleNumber>
   4001       </fixedLine>
   4002       <mobile>
   4003         <nationalNumberPattern>
   4004           (?:
   4005             5[0-68]|
   4006             7\d
   4007           )\d{3}
   4008         </nationalNumberPattern>
   4009         <exampleNumber>71234</exampleNumber>
   4010       </mobile>
   4011     </territory>
   4012 
   4013     <!-- Chile -->
   4014     <!-- http://www.itu.int/oth/T020200002A/en -->
   4015     <!-- http://en.wikipedia.org/wiki/%2B56 -->
   4016     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
   4017     <territory id="CL" countryCode="56"
   4018                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
   4019                nationalPrefix="0"
   4020                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
   4021                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
   4022       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
   4023       we strip here. National destinations may be dialled with a carrier if they are not local so
   4024       we extract these carrier codes as well. -->
   4025       <availableFormats>
   4026         <numberFormat pattern="(2)(\d{3,4})(\d{4})"
   4027           nationalPrefixFormattingRule="($FG)"
   4028           carrierCodeFormattingRule="$CC ($FG)">
   4029           <leadingDigits>2</leadingDigits>
   4030           <format>$1 $2 $3</format>
   4031         </numberFormat>
   4032         <numberFormat pattern="(\d{2})(\d{2,3})(\d{4})"
   4033           nationalPrefixFormattingRule="($FG)"
   4034           carrierCodeFormattingRule="$CC ($FG)">
   4035           <leadingDigits>
   4036             [357]|
   4037             4[1-35]|
   4038             6[13-57]
   4039           </leadingDigits>
   4040           <format>$1 $2 $3</format>
   4041         </numberFormat>
   4042         <numberFormat pattern="(9)([5-9]\d{3})(\d{4})">
   4043           <leadingDigits>9</leadingDigits>
   4044           <format>$1 $2 $3</format>
   4045         </numberFormat>
   4046         <numberFormat pattern="(44)(\d{3})(\d{4})">
   4047           <leadingDigits>44</leadingDigits>
   4048           <format>$1 $2 $3</format>
   4049         </numberFormat>
   4050         <numberFormat nationalPrefixFormattingRule="$FG"
   4051           pattern="([68]00)(\d{3})(\d{3,4})">
   4052           <leadingDigits>
   4053             60|
   4054             8
   4055           </leadingDigits>
   4056           <format>$1 $2 $3</format>
   4057         </numberFormat>
   4058         <numberFormat nationalPrefixFormattingRule="$FG"
   4059           pattern="(600)(\d{3})(\d{2})(\d{3})">
   4060           <leadingDigits>60</leadingDigits>
   4061           <format>$1 $2 $3 $4</format>
   4062         </numberFormat>
   4063         <numberFormat nationalPrefixFormattingRule="$FG"
   4064           pattern="(1230)(\d{3})(\d{4})">
   4065           <leadingDigits>1</leadingDigits>
   4066           <format>$1 $2 $3</format>
   4067         </numberFormat>
   4068         <!-- Format some short numbers as a block. -->
   4069         <numberFormat nationalPrefixFormattingRule="$FG"
   4070           pattern="(\d{4,5})">
   4071           <leadingDigits>[1-9]</leadingDigits>
   4072           <format>$1</format>
   4073           <intlFormat>NA</intlFormat>
   4074         </numberFormat>
   4075       </availableFormats>
   4076       <generalDesc>
   4077         <nationalNumberPattern>
   4078           (?:
   4079             [2-9]|
   4080             600|
   4081             123
   4082           )\d{7,8}
   4083         </nationalNumberPattern>
   4084         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   4085       </generalDesc>
   4086       <noInternationalDialling>
   4087         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
   4088         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   4089         <exampleNumber>6001234567</exampleNumber>
   4090       </noInternationalDialling>
   4091       <fixedLine>
   4092         <!-- Nov 2012: The prefixing of '2' to all fixed line numbers, which is being rolled
   4093              out between October 2012 and June 2013 means that temporarily the regular
   4094              expressions for areas will get very messy as some adopt the leading '2' but
   4095              others do not. Eventually when the conversion is complete things should simplify
   4096              again. Note that area codes 32 or 41 were transitioned in 2007.
   4097              IMPORTANT: A literal reading of the transition rules suggest that all numbers get
   4098              a '2' prefix, but some numbers are already 7 digits long (but these always start
   4099              with a '2'). The prefixing seems almost certain to only apply to 6-digit numbers and
   4100              will unify all fixed line numbers to be 9 digits in total. The fact that the new seven
   4101              digit numbers currently only start with a '2' is likely to change in the future.
   4102              Note also that at some stage it is likely that Santiago numbers (area code '2') will
   4103              have a prefix of "2\d" and not "22" (it's like 10 2-digit area codes wrapped into one).
   4104              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
   4105                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
   4106              -->
   4107         <nationalNumberPattern>
   4108           (?:
   4109             [23]2|
   4110             41|
   4111             58
   4112           )\d{7}|
   4113           (?:
   4114             3[3-5]|
   4115             4[235]|
   4116             5[1-357]|
   4117             6[13-57]|
   4118             7[1-35]
   4119           )\d{6,7}
   4120         </nationalNumberPattern>
   4121         <!-- Area codes do not need to be dialled when dialling within the same area, so the
   4122              smallest possible number is length 6. -->
   4123         <!-- Nov 2012: The prefixing of '2' to all 6-digit fixed line numbers means that while
   4124              the maximum possible number length stays as 9, the minimum length will become '7'
   4125              when all area codes are migrated. -->
   4126         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   4127         <exampleNumber>221234567</exampleNumber>
   4128       </fixedLine>
   4129       <mobile>
   4130         <nationalNumberPattern>9[5-9]\d{7}</nationalNumberPattern>
   4131         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   4132         <exampleNumber>961234567</exampleNumber>
   4133       </mobile>
   4134       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
   4135            from a definitive source. -->
   4136       <tollFree>
   4137         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
   4138         <nationalNumberPattern>
   4139           800\d{6}|
   4140           1230\d{7}
   4141         </nationalNumberPattern>
   4142         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
   4143         <exampleNumber>800123456</exampleNumber>
   4144       </tollFree>
   4145       <sharedCost>
   4146         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
   4147         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
   4148         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   4149         <exampleNumber>6001234567</exampleNumber>
   4150       </sharedCost>
   4151       <voip>
   4152         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
   4153         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4154         <exampleNumber>441234567</exampleNumber>
   4155       </voip>
   4156     </territory>
   4157 
   4158     <!-- Cameroon -->
   4159     <!-- http://www.itu.int/oth/T0202000024/en -->
   4160     <territory id="CM" countryCode="237" internationalPrefix="00">
   4161       <availableFormats>
   4162         <!-- Formatting on the internet is consistently with the first 2 extracted, and usually in
   4163              the same format as France (all 2 digit groups) so we use this instead of the guidance
   4164              of the national numbering plan (which has 1 3 2 2 and 4 4 as its two formatting
   4165              examples.) -->
   4166         <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
   4167           <leadingDigits>
   4168             [23579]|
   4169             88
   4170           </leadingDigits>
   4171           <format>$1 $2 $3 $4</format>
   4172         </numberFormat>
   4173         <numberFormat pattern="(800)(\d{2})(\d{3})">
   4174           <leadingDigits>80</leadingDigits>
   4175           <format>$1 $2 $3</format>
   4176         </numberFormat>
   4177       </availableFormats>
   4178       <generalDesc>
   4179         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
   4180         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4181       </generalDesc>
   4182       <fixedLine>
   4183         <!-- Technically, the numbers are required only to start with a 2 or a 3, but all numbers at
   4184              the moment start with 22 or 33 since they have been migrated from seven digit numbers
   4185              beginning with these numbers. This rule should be relaxed if/when we start getting
   4186              numbers beginning in other ways. -->
   4187         <nationalNumberPattern>
   4188           (?:
   4189             22|
   4190             33
   4191           )\d{6}
   4192         </nationalNumberPattern>
   4193         <exampleNumber>22123456</exampleNumber>
   4194       </fixedLine>
   4195       <mobile>
   4196         <!-- Mobile numbers beginning with 5 were found online. -->
   4197         <nationalNumberPattern>[579]\d{7}</nationalNumberPattern>
   4198         <exampleNumber>71234567</exampleNumber>
   4199       </mobile>
   4200       <tollFree>
   4201         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   4202         <exampleNumber>80012345</exampleNumber>
   4203       </tollFree>
   4204       <premiumRate>
   4205         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
   4206              with 88 (usually 880). No information can be found as to whether these are premium rate
   4207              or shared cost. -->
   4208         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
   4209         <exampleNumber>88012345</exampleNumber>
   4210       </premiumRate>
   4211     </territory>
   4212 
   4213     <!-- China -->
   4214     <!-- http://www.itu.int/oth/T020200002B/en -->
   4215     <territory id="CN" countryCode="86" internationalPrefix="(1[1279]\d{3})?00"
   4216                preferredInternationalPrefix="00" nationalPrefix="0"
   4217                nationalPrefixForParsing="(1[1279]\d{3})|0">
   4218       <availableFormats>
   4219         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
   4220                       nationalPrefixOptionalWhenFormatting="true"
   4221                       carrierCodeFormattingRule="$CC $FG">
   4222           <leadingDigits>80[2678]</leadingDigits>
   4223           <format>$1 $2</format>
   4224         </numberFormat>
   4225         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
   4226           <leadingDigits>[48]00</leadingDigits>
   4227           <format>$1 $2 $3</format>
   4228         </numberFormat>
   4229         <!-- 100xx and 95xxx(x) numbers. Without this rule, the numbers will be formatted
   4230              incorrectly by the AsYouTypeFormatter because they overlap with area codes 010, 095x.
   4231              Note although ITU says the format is more like 95 xxx, in reality no space is used
   4232              when writing such numbers in China -->
   4233         <numberFormat pattern="(\d{5,6})">
   4234           <leadingDigits>
   4235             100|
   4236             95
   4237           </leadingDigits>
   4238           <format>$1</format>
   4239           <intlFormat>NA</intlFormat>
   4240         </numberFormat>
   4241         <!-- 100xx and 95xxx(x) numbers with area codes. -->
   4242         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
   4243                       carrierCodeFormattingRule="$CC $FG">
   4244           <leadingDigits>
   4245             (?:
   4246               10|
   4247               2\d
   4248             )[19]
   4249           </leadingDigits>
   4250           <leadingDigits>
   4251             (?:
   4252               10|
   4253               2\d
   4254             )(?:
   4255               10|
   4256               95
   4257             )
   4258           </leadingDigits>
   4259           <leadingDigits>
   4260             (?:
   4261               10|
   4262               2\d
   4263             )(?:
   4264               100|
   4265               95
   4266             )
   4267           </leadingDigits>
   4268           <format>$1 $2</format>
   4269         </numberFormat>
   4270         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{5,6})"
   4271                       carrierCodeFormattingRule="$CC $FG">
   4272           <leadingDigits>[3-9]</leadingDigits>
   4273           <leadingDigits>[3-9]\d{2}[19]</leadingDigits>
   4274           <leadingDigits>
   4275             [3-9]\d{2}(?:
   4276               10|
   4277               95
   4278             )
   4279           </leadingDigits>
   4280           <format>$1 $2</format>
   4281         </numberFormat>
   4282         <!-- Local numbers -->
   4283         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
   4284              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
   4285              people frequently store them in their cellphones. It has to stay before formatting
   4286              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
   4287              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
   4288         <numberFormat pattern="(\d{3,4})(\d{4})">
   4289           <leadingDigits>[2-9]</leadingDigits>
   4290           <format>$1 $2</format>
   4291           <intlFormat>NA</intlFormat>
   4292         </numberFormat>
   4293         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
   4294                       nationalPrefixOptionalWhenFormatting="true"
   4295                       carrierCodeFormattingRule="$CC $FG">
   4296           <leadingDigits>21</leadingDigits>
   4297           <format>$1 $2 $3</format>
   4298         </numberFormat>
   4299         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
   4300                       nationalPrefixOptionalWhenFormatting="true"
   4301                       carrierCodeFormattingRule="$CC $FG">
   4302           <leadingDigits>
   4303             10[1-9]|
   4304             2[02-9]
   4305           </leadingDigits>
   4306           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
   4307           <leadingDigits>
   4308             10[1-9]|
   4309             2[02-9]
   4310           </leadingDigits>
   4311           <leadingDigits>
   4312             10(?:
   4313               [1-79]|
   4314               8(?:
   4315                 [1-9]|
   4316                 0[1-9]
   4317               )
   4318             )|
   4319             2[02-9]
   4320           </leadingDigits>
   4321           <format>$1 $2 $3</format>
   4322         </numberFormat>
   4323         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
   4324                       nationalPrefixOptionalWhenFormatting="true"
   4325                       carrierCodeFormattingRule="$CC $FG">
   4326           <leadingDigits>
   4327             3(?:
   4328               11|
   4329               7[179]
   4330             )|
   4331             4(?:
   4332               [15]1|
   4333               3[12]
   4334             )|
   4335             5(?:
   4336               1|
   4337               2[37]|
   4338               3[12]|
   4339               51|
   4340               7[13-79]|
   4341               9[15]
   4342             )|
   4343             7(?:
   4344               31|
   4345               5[457]|
   4346               6[09]|
   4347               91
   4348             )|
   4349             8(?:
   4350               71|
   4351               98
   4352             )
   4353           </leadingDigits>
   4354           <format>$1 $2 $3</format>
   4355         </numberFormat>
   4356         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
   4357                       nationalPrefixOptionalWhenFormatting="true"
   4358                       carrierCodeFormattingRule="$CC $FG">
   4359           <leadingDigits>
   4360             3(?:
   4361               1[02-9]|
   4362               35|
   4363               49|
   4364               5|
   4365               7[02-68]|
   4366               9[1-68]
   4367             )|
   4368             4(?:
   4369               1[02-9]|
   4370               2[179]|
   4371               [35][2-9]|
   4372               6[4789]|
   4373               7\d|
   4374               8[23]
   4375             )|
   4376             5(?:
   4377               3[03-9]|
   4378               4[36]|
   4379               5[02-9]|
   4380               6[1-46]|
   4381               7[028]|
   4382               80|
   4383               9[2-46-9]
   4384             )|
   4385             6(?:
   4386               3[1-5]|
   4387               6[0238]|
   4388               9[12]
   4389             )|
   4390             7(?:
   4391               01|
   4392               [1579]|
   4393               2[248]|
   4394               3[04-9]|
   4395               4[3-6]|
   4396               6[2368]
   4397             )|
   4398             8(?:
   4399               1[236-8]|
   4400               2[5-7]|
   4401               3|
   4402               5[1-9]|
   4403               7[02-9]|
   4404               8[3678]|
   4405               9[1-7]
   4406             )|
   4407             9(?:
   4408               0[1-3689]|
   4409               1[1-79]|
   4410               [379]|
   4411               4[13]|
   4412               5[1-5]
   4413             )
   4414           </leadingDigits>
   4415           <format>$1 $2 $3</format>
   4416         </numberFormat>
   4417         <numberFormat pattern="(1[3-58]\d)(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
   4418           <leadingDigits>1[3-58]</leadingDigits>
   4419           <format>$1 $2 $3</format>
   4420         </numberFormat>
   4421         <numberFormat pattern="(10800)(\d{3})(\d{4})">
   4422           <leadingDigits>108</leadingDigits>
   4423           <leadingDigits>1080</leadingDigits>
   4424           <leadingDigits>10800</leadingDigits>
   4425           <format>$1 $2 $3</format>
   4426         </numberFormat>
   4427       </availableFormats>
   4428       <generalDesc>
   4429         <nationalNumberPattern>
   4430           1(?:
   4431             00\d{2}|
   4432             \d{6,11}
   4433           )|
   4434           [2-7]\d{6,11}|
   4435           8[0-357-9]\d{6,9}|
   4436           9(?:
   4437             5\d{3,4}|
   4438             \d{9}
   4439           )
   4440         </nationalNumberPattern>
   4441         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
   4442       </generalDesc>
   4443       <noInternationalDialling>
   4444         <!-- 100xx and 95xxx(x) numbers have been verified to be unreachable from overseas by
   4445              placing actual calls. -->
   4446         <nationalNumberPattern>
   4447           100\d{2}|
   4448           (?:
   4449             4|
   4450             (?:
   4451               10
   4452             )?8
   4453           )00\d{7}|
   4454           95\d{3,4}
   4455         </nationalNumberPattern>
   4456         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   4457         <exampleNumber>4001234567</exampleNumber>
   4458       </noInternationalDialling>
   4459       <fixedLine>
   4460         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
   4461              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
   4462              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
   4463              in the ITU data.
   4464              10xxx and 95xxx(x) numbers with area codes are also included here, as they behave
   4465              exactly like fixed-line numbers. We don't support them for 4-digit area codes though,
   4466              as they don't seem to be used there based on making actual phone calls.
   4467          -->
   4468         <nationalNumberPattern>
   4469           21(?:
   4470             100\d{2}|
   4471             95\d{3,4}|
   4472             \d{8,10}
   4473           )|
   4474           (?:
   4475             10|
   4476             2[02-57-9]|
   4477             3(?:
   4478               11|
   4479               7[179]
   4480             )|
   4481             4(?:
   4482               [15]1|
   4483               3[12]
   4484             )|
   4485             5(?:
   4486               1\d|
   4487               2[37]|
   4488               3[12]|
   4489               51|
   4490               7[13-79]|
   4491               9[15]
   4492             )|
   4493             7(?:
   4494               31|
   4495               5[457]|
   4496               6[09]|
   4497               91
   4498             )|
   4499             8(?:
   4500               71|
   4501               98
   4502             )
   4503           )(?:
   4504             100\d{2}|
   4505             95\d{3,4}|
   4506             \d{8}
   4507           )|
   4508           (?:
   4509             3(?:
   4510               1[02-9]|
   4511               35|
   4512               49|
   4513               5\d|
   4514               7[02-68]|
   4515               9[1-68]
   4516             )|
   4517             4(?:
   4518               1[02-9]|
   4519               2[179]|
   4520               3[3-9]|
   4521               5[2-9]|
   4522               6[4789]|
   4523               7\d|
   4524               8[23]
   4525             )|
   4526             5(?:
   4527               3[03-9]|
   4528               4[36]|
   4529               5[02-9]|
   4530               6[1-46]|
   4531               7[028]|
   4532               80|
   4533               9[2-46-9]
   4534             )|
   4535             6(?:
   4536               3[1-5]|
   4537               6[0238]|
   4538               9[12]
   4539             )|
   4540             7(?:
   4541               01|
   4542               [17]\d|
   4543               2[248]|
   4544               3[04-9]|
   4545               4[3-6]|
   4546               5[0-3689]|
   4547               6[2368]|
   4548               9[02-9]
   4549             )|
   4550             8(?:
   4551               1[236-8]|
   4552               2[5-7]|
   4553               3\d|
   4554               5[1-9]|
   4555               7[02-9]|
   4556               8[3678]|
   4557               9[1-7]
   4558             )|
   4559             9(?:
   4560               0[1-3689]|
   4561               1[1-79]|
   4562               [379]\d|
   4563               4[13]|
   4564               5[1-5]
   4565             )
   4566           )(?:
   4567             100\d{2}|
   4568             95\d{3,4}|
   4569             \d{7}
   4570           )|
   4571           80(?:
   4572             29|
   4573             6[03578]|
   4574             7[018]|
   4575             81
   4576           )\d{4}
   4577         </nationalNumberPattern>
   4578         <exampleNumber>1012345678</exampleNumber>
   4579       </fixedLine>
   4580       <mobile>
   4581         <nationalNumberPattern>
   4582           1(?:
   4583             3\d|
   4584             4[57]|
   4585             [58][0-35-9]
   4586           )\d{8}
   4587         </nationalNumberPattern>
   4588         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   4589         <exampleNumber>13123456789</exampleNumber>
   4590       </mobile>
   4591       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
   4592            number plan, and do not seem to have been standardized. The information below is
   4593            collected from searching the web. -->
   4594       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
   4595       <tollFree>
   4596         <nationalNumberPattern>
   4597           (?:
   4598             10
   4599           )?800\d{7}
   4600         </nationalNumberPattern>
   4601         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
   4602         <exampleNumber>8001234567</exampleNumber>
   4603       </tollFree>
   4604       <premiumRate>
   4605         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
   4606         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4607         <exampleNumber>16812345</exampleNumber>
   4608       </premiumRate>
   4609       <sharedCost>
   4610         <!-- 95xxx(x) numbers are covered by the ITU doc, but the following doc contains more info:
   4611              http://baike.baidu.com/view/3269670.htm. They can be dialed nationwide and are always
   4612              routed to the local provider. Note they can also be used with area codes when one
   4613              specifically wants to reach an operator in a different region. That case is more
   4614              like fixed-line numbers and is covered under the fixed-line pattern. -->
   4615         <nationalNumberPattern>
   4616           400\d{7}|
   4617           95\d{3,4}
   4618         </nationalNumberPattern>
   4619         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   4620         <exampleNumber>4001234567</exampleNumber>
   4621       </sharedCost>
   4622       <uan>
   4623         <!-- 100xx numbers are mainly used for carrier services. They can be dialed nationwide and
   4624              are always routed to the local provider. They are free if called from a phone by the
   4625              same carrier, or charged at local rate if called from a phone by a different carrier.
   4626              Note they can also be used with area codes when one specifically wants to reach an
   4627              operator in a different region. That case is more like fixed-line numbers and is
   4628              covered under the fixed-line pattern.
   4629           -->
   4630         <nationalNumberPattern>100\d{2}</nationalNumberPattern>
   4631         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   4632         <exampleNumber>10000</exampleNumber>
   4633       </uan>
   4634     </territory>
   4635 
   4636     <!-- Colombia -->
   4637     <!-- http://www.itu.int/oth/T020200002C/en -->
   4638     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia -->
   4639     <!-- Extra international dialling prefixes from www.claro.com.co and www.tigo.com.co. -->
   4640     <!-- 05 and 005 are for Orbitel: co.orbitel.com -->
   4641     <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])"
   4642                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?"
   4643                mobileNumberPortableRegion="true">
   4644       <availableFormats>
   4645         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
   4646           nationalPrefixFormattingRule="($FG)">
   4647           <leadingDigits>
   4648             1(?:
   4649               8[2-9]|
   4650               9[0-3]|
   4651               [2-7]
   4652             )|
   4653             [24-8]
   4654           </leadingDigits>
   4655           <leadingDigits>
   4656             1(?:
   4657               8[2-9]|
   4658               9(?:
   4659                 09|
   4660                 [1-3]
   4661               )|
   4662               [2-7]
   4663             )|
   4664             [24-8]
   4665           </leadingDigits>
   4666           <format>$1 $2</format>
   4667         </numberFormat>
   4668         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
   4669           <leadingDigits>3</leadingDigits>
   4670           <format>$1 $2</format>
   4671         </numberFormat>
   4672         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
   4673           <leadingDigits>
   4674             1(?:
   4675               80|
   4676               9[04]
   4677             )
   4678           </leadingDigits>
   4679           <leadingDigits>
   4680             1(?:
   4681               800|
   4682               9(?:
   4683                 0[01]|
   4684                 4[78]
   4685               )
   4686             )
   4687           </leadingDigits>
   4688           <format>$1-$2-$3</format>
   4689           <intlFormat>$1 $2 $3</intlFormat>
   4690         </numberFormat>
   4691       </availableFormats>
   4692       <generalDesc>
   4693         <nationalNumberPattern>
   4694           (?:
   4695             [13]\d{0,3}|
   4696             [24-8]
   4697           )\d{7}
   4698         </nationalNumberPattern>
   4699         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   4700       </generalDesc>
   4701       <fixedLine>
   4702         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
   4703         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4704         <exampleNumber>12345678</exampleNumber>
   4705       </fixedLine>
   4706       <mobile>
   4707         <!-- Virgin Mobile Colombia have reported that they are now using the 319 prefix. -->
   4708         <nationalNumberPattern>
   4709           3(?:
   4710             0[0-24]|
   4711             1\d|
   4712             2[01]
   4713           )\d{7}
   4714         </nationalNumberPattern>
   4715         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   4716         <exampleNumber>3211234567</exampleNumber>
   4717       </mobile>
   4718       <tollFree>
   4719         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
   4720         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   4721         <exampleNumber>18001234567</exampleNumber>
   4722       </tollFree>
   4723       <premiumRate>
   4724         <nationalNumberPattern>
   4725           19(?:
   4726             0[01]|
   4727             4[78]
   4728           )\d{7}
   4729         </nationalNumberPattern>
   4730         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   4731         <exampleNumber>19001234567</exampleNumber>
   4732       </premiumRate>
   4733     </territory>
   4734 
   4735     <!-- Costa Rica -->
   4736     <!-- http://www.itu.int/oth/T0202000030/en -->
   4737     <territory id="CR" countryCode="506" internationalPrefix="00"
   4738                nationalPrefixForParsing="(19(?:0[01468]|19|20|66|77))"
   4739                carrierCodeFormattingRule="$CC $FG">
   4740       <availableFormats>
   4741         <numberFormat pattern="(\d{4})(\d{4})">
   4742           <leadingDigits>
   4743             [24-7]|
   4744             8[3-9]
   4745           </leadingDigits>
   4746           <format>$1 $2</format>
   4747         </numberFormat>
   4748         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   4749           <leadingDigits>[89]0</leadingDigits>
   4750           <format>$1-$2-$3</format>
   4751         </numberFormat>
   4752       </availableFormats>
   4753       <generalDesc>
   4754         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
   4755         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   4756       </generalDesc>
   4757       <fixedLine>
   4758         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
   4759         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4760         <exampleNumber>22123456</exampleNumber>
   4761       </fixedLine>
   4762       <mobile>
   4763         <nationalNumberPattern>
   4764           5(?:
   4765             0[0-4]|
   4766             7[01]
   4767           )\d{5}|
   4768           [67][0-2]\d{6}|
   4769           8[3-9]\d{6}
   4770         </nationalNumberPattern>
   4771         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4772         <exampleNumber>83123456</exampleNumber>
   4773       </mobile>
   4774       <tollFree>
   4775         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   4776         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   4777         <exampleNumber>8001234567</exampleNumber>
   4778       </tollFree>
   4779       <premiumRate>
   4780         <!-- Includes "mass calls" numbers with prefix 905. -->
   4781         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
   4782         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   4783         <exampleNumber>9001234567</exampleNumber>
   4784       </premiumRate>
   4785       <voip>
   4786         <!-- Including trunking service numbers starting with 5100. -->
   4787         <nationalNumberPattern>
   4788           210[0-6]\d{4}|
   4789           4(?:
   4790             0(?:
   4791               [04]0\d{4}|
   4792               10[0-3]\d{3}|
   4793               2900\d{2}|
   4794               3[01]\d{4}|
   4795               5\d{5}|
   4796               70[01]\d{3}|
   4797               8[0-2]\d{4}
   4798             )|
   4799             1[01]\d{5}|
   4800             20[0-3]\d{4}|
   4801             400\d{4}|
   4802             70[0-2]\d{4}
   4803           )|
   4804           5100\d{4}
   4805         </nationalNumberPattern>
   4806         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4807         <exampleNumber>40001234</exampleNumber>
   4808       </voip>
   4809     </territory>
   4810 
   4811     <!-- Cuba -->
   4812     <!-- www.itu.int/oth/T0202000033/en -->
   4813     <territory id="CU" countryCode="53" internationalPrefix="119"
   4814                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
   4815       <availableFormats>
   4816         <numberFormat pattern="(\d)(\d{6,7})">
   4817           <leadingDigits>7</leadingDigits>
   4818           <format>$1 $2</format>
   4819         </numberFormat>
   4820         <numberFormat pattern="(\d{2})(\d{4,6})">
   4821           <leadingDigits>[2-4]</leadingDigits>
   4822           <format>$1 $2</format>
   4823         </numberFormat>
   4824         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
   4825           <leadingDigits>5</leadingDigits>
   4826           <format>$1 $2</format>
   4827         </numberFormat>
   4828       </availableFormats>
   4829       <generalDesc>
   4830         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
   4831         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
   4832       </generalDesc>
   4833       <fixedLine>
   4834         <nationalNumberPattern>
   4835           2[1-4]\d{5,6}|
   4836           3(?:
   4837             1\d{6}|
   4838             [23]\d{4,6}
   4839           )|
   4840           4(?:
   4841             [125]\d{5,6}|
   4842             [36]\d{6}|
   4843             [78]\d{4,6}
   4844           )|
   4845           7\d{6,7}
   4846         </nationalNumberPattern>
   4847         <exampleNumber>71234567</exampleNumber>
   4848       </fixedLine>
   4849       <mobile>
   4850         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
   4851         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   4852         <exampleNumber>51234567</exampleNumber>
   4853       </mobile>
   4854     </territory>
   4855 
   4856     <!-- Cape Verde -->
   4857     <!-- http://www.itu.int/oth/T0202000026/en -->
   4858     <territory id="CV" countryCode="238" internationalPrefix="0">
   4859       <availableFormats>
   4860         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
   4861           <format>$1 $2 $3</format>
   4862         </numberFormat>
   4863       </availableFormats>
   4864       <generalDesc>
   4865         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
   4866         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   4867       </generalDesc>
   4868       <fixedLine>
   4869         <nationalNumberPattern>
   4870           2(?:
   4871             2[1-7]|
   4872             3[0-8]|
   4873             4[12]|
   4874             5[1256]|
   4875             6\d|
   4876             7[1-3]|
   4877             8[1-5]
   4878           )\d{4}
   4879         </nationalNumberPattern>
   4880         <exampleNumber>2211234</exampleNumber>
   4881       </fixedLine>
   4882       <mobile>
   4883         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
   4884              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
   4885              example, and there are plenty of numbers on the internet that start with these
   4886              prefixes. -->
   4887         <nationalNumberPattern>
   4888           (?:
   4889             9\d|
   4890             59
   4891           )\d{5}
   4892         </nationalNumberPattern>
   4893         <exampleNumber>9911234</exampleNumber>
   4894       </mobile>
   4895     </territory>
   4896 
   4897     <!-- Curaao -->
   4898     <!-- http://www.itu.int/oth/T02020000F5/en -->
   4899     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
   4900       <!-- All the formatting patterns for country-code 599 are here. -->
   4901       <availableFormats>
   4902         <numberFormat pattern="(\d{3})(\d{4})">
   4903           <leadingDigits>[13-7]</leadingDigits>
   4904           <format>$1 $2</format>
   4905         </numberFormat>
   4906         <numberFormat pattern="(9)(\d{3})(\d{4})">
   4907           <leadingDigits>9</leadingDigits>
   4908           <format>$1 $2 $3</format>
   4909         </numberFormat>
   4910       </availableFormats>
   4911       <generalDesc>
   4912         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
   4913         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   4914       </generalDesc>
   4915       <fixedLine>
   4916         <nationalNumberPattern>
   4917           9(?:
   4918             [48]\d{2}|
   4919             50\d|
   4920             7(?:
   4921               2[0-2]|
   4922               [34]\d|
   4923               6[35-7]|
   4924               77
   4925             )
   4926           )\d{4}
   4927         </nationalNumberPattern>
   4928         <exampleNumber>94151234</exampleNumber>
   4929       </fixedLine>
   4930       <mobile>
   4931         <nationalNumberPattern>
   4932           9(?:
   4933             5(?:
   4934               [1246]\d|
   4935               3[01]
   4936             )|
   4937             6(?:
   4938               [1679]\d|
   4939               3[01]
   4940             )
   4941           )\d{4}
   4942         </nationalNumberPattern>
   4943         <exampleNumber>95181234</exampleNumber>
   4944       </mobile>
   4945       <pager>
   4946         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
   4947         <exampleNumber>95581234</exampleNumber>
   4948       </pager>
   4949       <sharedCost>
   4950         <!-- Value-added services are lumped together under shared cost, since we are not sure
   4951              exactly what they are. -->
   4952         <nationalNumberPattern>
   4953           (?:
   4954             10|
   4955             69
   4956           )\d{5}
   4957         </nationalNumberPattern>
   4958         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   4959         <exampleNumber>1011234</exampleNumber>
   4960       </sharedCost>
   4961     </territory>
   4962 
   4963     <!-- Christmas Islands -->
   4964     <!-- Metadata shared with Australia. -->
   4965     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
   4966     <!-- http://en.wikipedia.org/wiki/List_of_country_calling_codes -->
   4967     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
   4968     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
   4969                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
   4970                nationalPrefix="0">
   4971       <!-- Uses AU formatting rules. -->
   4972       <!-- General desc and fixed line rules different from Australia. -->
   4973       <generalDesc>
   4974         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
   4975         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   4976       </generalDesc>
   4977       <fixedLine>
   4978         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
   4979         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   4980         <exampleNumber>891641234</exampleNumber>
   4981       </fixedLine>
   4982       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
   4983       <mobile>
   4984         <nationalNumberPattern>
   4985           4(?:
   4986             [0-2]\d|
   4987             3[0-57-9]|
   4988             4[47-9]|
   4989             5[0-37-9]|
   4990             6[6-9]|
   4991             7[07-9]|
   4992             8[7-9]
   4993           )\d{6}
   4994         </nationalNumberPattern>
   4995         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   4996         <exampleNumber>412345678</exampleNumber>
   4997       </mobile>
   4998       <tollFree>
   4999         <nationalNumberPattern>
   5000           1(?:
   5001             80(?:
   5002               0\d{2}
   5003             )?|
   5004             3(?:
   5005               00\d{2}
   5006             )?
   5007           )\d{4}
   5008         </nationalNumberPattern>
   5009         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   5010         <exampleNumber>1800123456</exampleNumber>
   5011       </tollFree>
   5012       <premiumRate>
   5013         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
   5014         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5015         <exampleNumber>1900123456</exampleNumber>
   5016       </premiumRate>
   5017       <personalNumber>
   5018         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
   5019         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5020         <exampleNumber>500123456</exampleNumber>
   5021       </personalNumber>
   5022       <voip>
   5023         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
   5024         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5025         <exampleNumber>550123456</exampleNumber>
   5026       </voip>
   5027     </territory>
   5028 
   5029     <!-- Cyprus -->
   5030     <!-- http://www.itu.int/oth/T0202000034/en -->
   5031     <territory id="CY" countryCode="357" internationalPrefix="00" mobileNumberPortableRegion="true">
   5032       <availableFormats>
   5033         <!-- Format from http://www.cyprusyellowpages.com/-->
   5034         <numberFormat pattern="(\d{2})(\d{6})">
   5035           <format>$1 $2</format>
   5036         </numberFormat>
   5037       </availableFormats>
   5038       <generalDesc>
   5039         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
   5040         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5041       </generalDesc>
   5042       <fixedLine>
   5043         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
   5044         <exampleNumber>22345678</exampleNumber>
   5045       </fixedLine>
   5046       <mobile>
   5047         <!-- Includes paging numbers (they are mixed into the same block). -->
   5048         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
   5049         <exampleNumber>96123456</exampleNumber>
   5050       </mobile>
   5051       <tollFree>
   5052         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   5053         <exampleNumber>80001234</exampleNumber>
   5054       </tollFree>
   5055       <premiumRate>
   5056         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
   5057         <exampleNumber>90012345</exampleNumber>
   5058       </premiumRate>
   5059       <sharedCost>
   5060         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
   5061         <exampleNumber>80112345</exampleNumber>
   5062       </sharedCost>
   5063       <personalNumber>
   5064         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
   5065         <exampleNumber>70012345</exampleNumber>
   5066       </personalNumber>
   5067       <uan>
   5068         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
   5069         <nationalNumberPattern>
   5070           (?:
   5071             50|
   5072             77
   5073           )\d{6}
   5074         </nationalNumberPattern>
   5075         <exampleNumber>77123456</exampleNumber>
   5076       </uan>
   5077     </territory>
   5078 
   5079     <!-- Czech Rep. -->
   5080     <!-- http://www.itu.int/oth/T0202000035/en -->
   5081     <!-- http://en.wikipedia.org/wiki/%2B420 -->
   5082     <territory id="CZ" countryCode="420" internationalPrefix="00" mobileNumberPortableRegion="true">
   5083       <availableFormats>
   5084         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
   5085           <leadingDigits>
   5086             [2-8]|
   5087             9[015-7]
   5088           </leadingDigits>
   5089           <format>$1 $2 $3</format>
   5090         </numberFormat>
   5091         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
   5092           <leadingDigits>96</leadingDigits>
   5093           <format>$1 $2 $3 $4</format>
   5094         </numberFormat>
   5095         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
   5096           <leadingDigits>9[36]</leadingDigits>
   5097           <format>$1 $2 $3 $4</format>
   5098         </numberFormat>
   5099       </availableFormats>
   5100       <generalDesc>
   5101         <nationalNumberPattern>
   5102           [2-8]\d{8}|
   5103           9\d{8,11}
   5104         </nationalNumberPattern>
   5105         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
   5106       </generalDesc>
   5107       <fixedLine>
   5108         <nationalNumberPattern>
   5109           2\d{8}|
   5110           (?:
   5111             3[1257-9]|
   5112             4[16-9]|
   5113             5[13-9]
   5114           )\d{7}
   5115         </nationalNumberPattern>
   5116         <exampleNumber>212345678</exampleNumber>
   5117       </fixedLine>
   5118       <mobile>
   5119         <nationalNumberPattern>
   5120           (?:
   5121             60[1-8]|
   5122             7(?:
   5123               0[2-5]|
   5124               [2379]\d
   5125             )
   5126           )\d{6}
   5127         </nationalNumberPattern>
   5128         <exampleNumber>601123456</exampleNumber>
   5129       </mobile>
   5130       <tollFree>
   5131         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   5132         <exampleNumber>800123456</exampleNumber>
   5133       </tollFree>
   5134       <premiumRate>
   5135         <!-- Includes premium rate dial-up. -->
   5136         <nationalNumberPattern>
   5137           9(?:
   5138             0[05689]|
   5139             76
   5140           )\d{6}
   5141         </nationalNumberPattern>
   5142         <exampleNumber>900123456</exampleNumber>
   5143       </premiumRate>
   5144       <sharedCost>
   5145         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
   5146         <exampleNumber>811234567</exampleNumber>
   5147       </sharedCost>
   5148       <personalNumber>
   5149         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
   5150         <exampleNumber>700123456</exampleNumber>
   5151       </personalNumber>
   5152       <voip>
   5153         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
   5154         <exampleNumber>910123456</exampleNumber>
   5155       </voip>
   5156       <uan>
   5157         <!-- Numbers belonging to private communication networks are included here. These are
   5158              classified as Institutional networks, belonging to institutions like the police, armed
   5159              forces and railways, along with a couple of formerly government-owned banks. These
   5160              numbers are reachable by the public. -->
   5161         <nationalNumberPattern>
   5162           9(?:
   5163             5\d|
   5164             7[234]
   5165           )\d{6}
   5166         </nationalNumberPattern>
   5167         <exampleNumber>972123456</exampleNumber>
   5168       </uan>
   5169       <voicemail>
   5170         <nationalNumberPattern>
   5171           9(?:
   5172             3\d{9}|
   5173             6\d{7,10}
   5174           )
   5175         </nationalNumberPattern>
   5176         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
   5177         <exampleNumber>93123456789</exampleNumber>
   5178       </voicemail>
   5179     </territory>
   5180 
   5181     <!-- Germany -->
   5182     <!-- http://www.itu.int/oth/T0202000051/en -->
   5183     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_germany -->
   5184     <territory id="DE" countryCode="49" internationalPrefix="00"
   5185                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   5186                mobileNumberPortableRegion="true">
   5187       <availableFormats>
   5188         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
   5189              these should best be formatted, even though actual usage varies. -->
   5190         <numberFormat pattern="(1\d{2})(\d{7,8})">
   5191           <leadingDigits>1[67]</leadingDigits>
   5192           <format>$1 $2</format>
   5193         </numberFormat>
   5194         <numberFormat pattern="(1\d{3})(\d{7})">
   5195           <leadingDigits>15</leadingDigits>
   5196           <format>$1 $2</format>
   5197         </numberFormat>
   5198         <numberFormat pattern="(\d{2})(\d{3,11})">
   5199           <leadingDigits>
   5200             3[02]|
   5201             40|
   5202             [68]9
   5203           </leadingDigits>
   5204           <format>$1 $2</format>
   5205         </numberFormat>
   5206         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
   5207         <!-- 3 digit area codes. -->
   5208         <numberFormat pattern="(\d{3})(\d{3,11})">
   5209           <leadingDigits>
   5210             2(?:
   5211               \d1|
   5212               0[2389]|
   5213               1[24]|
   5214               28|
   5215               34
   5216             )|
   5217             3(?:
   5218               [3-9][15]|
   5219               40
   5220             )|
   5221             [4-8][1-9]1|
   5222             9(?:
   5223               06|
   5224               [1-9]1
   5225             )
   5226           </leadingDigits>
   5227           <format>$1 $2</format>
   5228         </numberFormat>
   5229         <!-- 4 digit area codes. -->
   5230         <numberFormat pattern="(\d{4})(\d{2,11})">
   5231           <leadingDigits>
   5232             [24-6]|
   5233             [7-9](?:
   5234               \d[1-9]|
   5235               [1-9]\d
   5236             )|
   5237             3(?:
   5238               [3569][02-46-9]|
   5239               4[2-4679]|
   5240               7[2-467]|
   5241               8[2-46-8]
   5242             )
   5243           </leadingDigits>
   5244           <leadingDigits>
   5245             [24-6]|
   5246             [7-9](?:
   5247               \d[1-9]|
   5248               [1-9]\d
   5249             )|
   5250             3(?:
   5251               3(?:
   5252                 0[1-467]|
   5253                 2[127-9]|
   5254                 3[124578]|
   5255                 [46][1246]|
   5256                 7[1257-9]|
   5257                 8[1256]|
   5258                 9[145]
   5259               )|
   5260               4(?:
   5261                 2[135]|
   5262                 3[1357]|
   5263                 4[13578]|
   5264                 6[1246]|
   5265                 7[1356]|
   5266                 9[1346]
   5267               )|
   5268               5(?:
   5269                 0[14]|
   5270                 2[1-3589]|
   5271                 3[1357]|
   5272                 4[1246]|
   5273                 6[1-4]|
   5274                 7[1346]|
   5275                 8[13568]|
   5276                 9[1246]
   5277               )|
   5278               6(?:
   5279                 0[356]|
   5280                 2[1-489]|
   5281                 3[124-6]|
   5282                 4[1347]|
   5283                 6[13]|
   5284                 7[12579]|
   5285                 8[1-356]|
   5286                 9[135]
   5287               )|
   5288               7(?:
   5289                 2[1-7]|
   5290                 3[1357]|
   5291                 4[145]|
   5292                 6[1-5]|
   5293                 7[1-4]
   5294               )|
   5295               8(?:
   5296                 21|
   5297                 3[1468]|
   5298                 4[1347]|
   5299                 6[0135-9]|
   5300                 7[1467]|
   5301                 8[136]
   5302               )|
   5303               9(?:
   5304                 0[12479]|
   5305                 2[1358]|
   5306                 3[1357]|
   5307                 4[134679]|
   5308                 6[1-9]|
   5309                 7[136]|
   5310                 8[147]|
   5311                 9[1468]
   5312               )
   5313             )
   5314           </leadingDigits>
   5315           <format>$1 $2</format>
   5316         </numberFormat>
   5317         <!-- 5 digit area codes. -->
   5318         <numberFormat pattern="(3\d{4})(\d{1,10})">
   5319           <leadingDigits>3</leadingDigits>
   5320           <format>$1 $2</format>
   5321         </numberFormat>
   5322         <!-- Note: this is getting ridiculous! How can we format these better? -->
   5323         <numberFormat pattern="(800)(\d{7,12})">
   5324           <leadingDigits>800</leadingDigits>
   5325           <format>$1 $2</format>
   5326         </numberFormat>
   5327         <!-- Voicemail access numbers for the carrier Blau. -->
   5328         <numberFormat pattern="(177)(99)(\d{7,8})">
   5329           <leadingDigits>177</leadingDigits>
   5330           <leadingDigits>1779</leadingDigits>
   5331           <leadingDigits>17799</leadingDigits>
   5332           <format>$1 $2 $3</format>
   5333         </numberFormat>
   5334         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
   5335           <leadingDigits>
   5336             (?:
   5337               18|
   5338               90
   5339             )0
   5340           </leadingDigits>
   5341           <leadingDigits>
   5342             180|
   5343             900[1359]
   5344           </leadingDigits>
   5345           <format>$1 $2 $3</format>
   5346         </numberFormat>
   5347         <numberFormat pattern="(1\d{2})(\d{5,11})">
   5348           <leadingDigits>181</leadingDigits>
   5349           <format>$1 $2</format>
   5350         </numberFormat>
   5351         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
   5352              way it is generally written. For other prefixes, we fall back to using a three-digit
   5353              prefix since we have currently no more information to allow us to format these more
   5354              precisely. -->
   5355         <numberFormat pattern="(18\d{3})(\d{6})">
   5356           <leadingDigits>185</leadingDigits>
   5357           <leadingDigits>1850</leadingDigits>
   5358           <leadingDigits>18500</leadingDigits>
   5359           <format>$1 $2</format>
   5360         </numberFormat>
   5361         <numberFormat pattern="(18\d{2})(\d{7})">
   5362           <leadingDigits>18[68]</leadingDigits>
   5363           <format>$1 $2</format>
   5364         </numberFormat>
   5365         <numberFormat pattern="(18\d)(\d{8})">
   5366           <leadingDigits>18[2-579]</leadingDigits>
   5367           <format>$1 $2</format>
   5368         </numberFormat>
   5369         <numberFormat pattern="(700)(\d{4})(\d{4})">
   5370           <leadingDigits>700</leadingDigits>
   5371           <format>$1 $2 $3</format>
   5372         </numberFormat>
   5373       </availableFormats>
   5374       <generalDesc>
   5375         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
   5376              examined to see if it is valid with the 49 as part of the number. Due to the variable
   5377              length of German numbers, this test is hard to do. The national pattern is hence
   5378              stricter for numbers starting with 49, to try and remove the country code if the number
   5379              begins with 49 whenever possible. -->
   5380         <nationalNumberPattern>
   5381           [1-35-9]\d{3,14}|
   5382           4(?:
   5383             [0-8]\d{4,12}|
   5384             9(?:
   5385               [0-37]\d|
   5386               4(?:
   5387                 [1-35-8]|
   5388                 4\d?
   5389               )|
   5390               5\d{1,2}|
   5391               6[1-8]\d?
   5392             )\d{2,7}
   5393           )
   5394         </nationalNumberPattern>
   5395         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
   5396       </generalDesc>
   5397       <fixedLine>
   5398         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
   5399              don't seem to respect this. The max-length is hence extended. -->
   5400         <nationalNumberPattern>
   5401           [246]\d{5,13}|
   5402           3(?:
   5403             0\d{3,13}|
   5404             2\d{9}|
   5405             [3-9]\d{4,13}
   5406           )|
   5407           5(?:
   5408             0[2-8]|
   5409             [1256]\d|
   5410             [38][0-8]|
   5411             4\d{0,2}|
   5412             [79][0-7]
   5413           )\d{3,11}|
   5414           7(?:
   5415             0[2-8]|
   5416             [1-9]\d
   5417           )\d{3,10}|
   5418           8(?:
   5419             0[2-9]|
   5420             [1-9]\d
   5421           )\d{3,10}|
   5422           9(?:
   5423             0[6-9]\d{3,10}|
   5424             1\d{4,12}|
   5425             [2-9]\d{4,11}
   5426           )
   5427         </nationalNumberPattern>
   5428         <exampleNumber>30123456</exampleNumber>
   5429       </fixedLine>
   5430       <mobile>
   5431         <!-- According to
   5432              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
   5433              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
   5434              -->
   5435         <nationalNumberPattern>
   5436           1(?:
   5437             5[0-2579]\d{8}|
   5438             6[023]\d{7,8}|
   5439             7(?:
   5440               [0-57-9]\d?|
   5441               6\d
   5442             )\d{7}
   5443           )
   5444         </nationalNumberPattern>
   5445         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   5446         <exampleNumber>15123456789</exampleNumber>
   5447       </mobile>
   5448       <pager>
   5449         <nationalNumberPattern>
   5450           16(?:
   5451             4\d{1,10}|
   5452             [89]\d{1,11}
   5453           )
   5454         </nationalNumberPattern>
   5455         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
   5456         <exampleNumber>16412345</exampleNumber>
   5457       </pager>
   5458       <tollFree>
   5459         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
   5460         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
   5461         <exampleNumber>8001234567890</exampleNumber>
   5462       </tollFree>
   5463       <premiumRate>
   5464         <nationalNumberPattern>
   5465           900(?:
   5466             [135]\d{6}|
   5467             9\d{7}
   5468           )
   5469         </nationalNumberPattern>
   5470         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   5471         <exampleNumber>9001234567</exampleNumber>
   5472       </premiumRate>
   5473       <sharedCost>
   5474         <nationalNumberPattern>180\d{5,11}</nationalNumberPattern>
   5475         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
   5476         <exampleNumber>18012345</exampleNumber>
   5477       </sharedCost>
   5478       <personalNumber>
   5479         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
   5480         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   5481         <exampleNumber>70012345678</exampleNumber>
   5482       </personalNumber>
   5483       <uan>
   5484         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
   5485              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
   5486              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
   5487         <nationalNumberPattern>
   5488           18(?:
   5489             1\d{5,11}|
   5490             [2-9]\d{8}
   5491           )
   5492         </nationalNumberPattern>
   5493         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
   5494         <exampleNumber>18500123456</exampleNumber>
   5495       </uan>
   5496       <voicemail>
   5497         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
   5498         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
   5499         <exampleNumber>177991234567</exampleNumber>
   5500       </voicemail>
   5501     </territory>
   5502 
   5503     <!-- Djibouti -->
   5504     <!-- http://www.itu.int/oth/T020200003A/en -->
   5505     <territory id="DJ" countryCode="253" internationalPrefix="00">
   5506       <availableFormats>
   5507         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   5508           <format>$1 $2 $3 $4</format>
   5509         </numberFormat>
   5510       </availableFormats>
   5511       <generalDesc>
   5512         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
   5513         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5514       </generalDesc>
   5515       <fixedLine>
   5516         <!-- Includes "Numro long CDMA fixe" numbers. -->
   5517         <nationalNumberPattern>
   5518           2(?:
   5519             1[2-5]|
   5520             7[45]
   5521           )\d{5}
   5522         </nationalNumberPattern>
   5523         <exampleNumber>21360003</exampleNumber>
   5524       </fixedLine>
   5525       <mobile>
   5526         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
   5527         <exampleNumber>77831001</exampleNumber>
   5528       </mobile>
   5529     </territory>
   5530 
   5531     <!-- Denmark -->
   5532     <!-- http://www.dba.erhvervsstyrelsen.dk/numbering-lists -->
   5533     <territory id="DK" countryCode="45" internationalPrefix="00" mobileNumberPortableRegion="true">
   5534       <availableFormats>
   5535         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   5536           <format>$1 $2 $3 $4</format>
   5537         </numberFormat>
   5538       </availableFormats>
   5539       <generalDesc>
   5540         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
   5541         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5542       </generalDesc>
   5543       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
   5544            safe. -->
   5545       <fixedLine>
   5546         <nationalNumberPattern>
   5547           (?:
   5548             [2-7]\d|
   5549             8[126-9]|
   5550             9[126-9]
   5551           )\d{6}
   5552         </nationalNumberPattern>
   5553         <exampleNumber>32123456</exampleNumber>
   5554       </fixedLine>
   5555       <mobile>
   5556         <nationalNumberPattern>
   5557           (?:
   5558             [2-7]\d|
   5559             8[126-9]|
   5560             9[126-9]
   5561           )\d{6}
   5562         </nationalNumberPattern>
   5563         <exampleNumber>20123456</exampleNumber>
   5564       </mobile>
   5565       <tollFree>
   5566         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   5567         <exampleNumber>80123456</exampleNumber>
   5568       </tollFree>
   5569       <premiumRate>
   5570         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
   5571         <exampleNumber>90123456</exampleNumber>
   5572       </premiumRate>
   5573     </territory>
   5574 
   5575     <!-- Dominica -->
   5576     <!-- http://www.itu.int/oth/T020200003B/en -->
   5577     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
   5578                internationalPrefix="011">
   5579       <generalDesc>
   5580         <!-- NANPA country - uses US formatting rules -->
   5581         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
   5582         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   5583       </generalDesc>
   5584       <fixedLine>
   5585         <nationalNumberPattern>
   5586           767(?:
   5587             2(?:
   5588               55|
   5589               66
   5590             )|
   5591             4(?:
   5592               2[01]|
   5593               4[0-25-9]
   5594             )|
   5595             50[0-4]
   5596           )\d{4}
   5597         </nationalNumberPattern>
   5598         <exampleNumber>7674201234</exampleNumber>
   5599       </fixedLine>
   5600       <mobile>
   5601         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
   5602         <nationalNumberPattern>
   5603           767(?:
   5604             2(?:
   5605               [234689]5|
   5606               7[5-7]
   5607             )|
   5608             31[5-7]|
   5609             61[2-7]
   5610           )\d{4}
   5611         </nationalNumberPattern>
   5612         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5613         <exampleNumber>7672251234</exampleNumber>
   5614       </mobile>
   5615       <tollFree>
   5616         <nationalNumberPattern>
   5617           8(?:
   5618             00|
   5619             55|
   5620             66|
   5621             77|
   5622             88
   5623           )[2-9]\d{6}
   5624         </nationalNumberPattern>
   5625         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5626         <exampleNumber>8002123456</exampleNumber>
   5627       </tollFree>
   5628       <premiumRate>
   5629         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   5630         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5631         <exampleNumber>9002123456</exampleNumber>
   5632       </premiumRate>
   5633       <personalNumber>
   5634         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   5635         <nationalNumberPattern>
   5636           5(?:
   5637             00|
   5638             33|
   5639             44
   5640           )[2-9]\d{6}
   5641         </nationalNumberPattern>
   5642         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5643         <exampleNumber>5002345678</exampleNumber>
   5644       </personalNumber>
   5645     </territory>
   5646 
   5647     <!-- Dominican Rep. -->
   5648     <!-- http://www.itu.int/oth/T020200003C/en -->
   5649     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
   5650                internationalPrefix="011" mobileNumberPortableRegion="true">
   5651       <generalDesc>
   5652         <!-- NANPA country - uses US formatting rules -->
   5653         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
   5654         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   5655       </generalDesc>
   5656       <fixedLine>
   5657         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
   5658              prefixes in the document are classified as such by excluding them from the fixed-line
   5659              ranges, but other than this have a generic rule. -->
   5660         <nationalNumberPattern>
   5661           8(?:
   5662             [04]9[2-9]\d{6}|
   5663             29(?:
   5664               2(?:
   5665                 [0-59]\d|
   5666                 6[04-9]|
   5667                 7[0-27]|
   5668                 8[0237-9]
   5669               )|
   5670               3(?:
   5671                 [0-35-9]\d|
   5672                 4[7-9]
   5673               )|
   5674               [45]\d{2}|
   5675               6(?:
   5676                 [0-27-9]\d|
   5677                 [3-5][1-9]|
   5678                 6[0135-8]
   5679               )|
   5680               7(?:
   5681                 0[013-9]|
   5682                 [1-37]\d|
   5683                 4[1-35689]|
   5684                 5[1-4689]|
   5685                 6[1-57-9]|
   5686                 8[1-79]|
   5687                 9[1-8]
   5688               )|
   5689               8(?:
   5690                 0[146-9]|
   5691                 1[0-48]|
   5692                 [248]\d|
   5693                 3[1-79]|
   5694                 5[01589]|
   5695                 6[013-68]|
   5696                 7[124-8]|
   5697                 9[0-8]
   5698               )|
   5699               9(?:
   5700                 [0-24]\d|
   5701                 3[02-46-9]|
   5702                 5[0-79]|
   5703                 60|
   5704                 7[0169]|
   5705                 8[57-9]|
   5706                 9[02-9]
   5707               )
   5708             )\d{4}
   5709           )
   5710         </nationalNumberPattern>
   5711         <exampleNumber>8092345678</exampleNumber>
   5712       </fixedLine>
   5713       <mobile>
   5714         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
   5715         <exampleNumber>8092345678</exampleNumber>
   5716       </mobile>
   5717       <tollFree>
   5718         <nationalNumberPattern>
   5719           8(?:
   5720             00|
   5721             55|
   5722             66|
   5723             77|
   5724             88
   5725           )[2-9]\d{6}
   5726         </nationalNumberPattern>
   5727         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5728         <exampleNumber>8002123456</exampleNumber>
   5729       </tollFree>
   5730       <premiumRate>
   5731         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   5732         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5733         <exampleNumber>9002123456</exampleNumber>
   5734       </premiumRate>
   5735       <personalNumber>
   5736         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   5737         <nationalNumberPattern>
   5738           5(?:
   5739             00|
   5740             33|
   5741             44
   5742           )[2-9]\d{6}
   5743         </nationalNumberPattern>
   5744         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   5745         <exampleNumber>5002345678</exampleNumber>
   5746       </personalNumber>
   5747    </territory>
   5748 
   5749     <!-- Algeria -->
   5750     <!-- http://www.itu.int/oth/T0202000003/en -->
   5751     <!-- www.arpt.dz -->
   5752     <territory id="DZ" countryCode="213" internationalPrefix="00"
   5753                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   5754       <availableFormats>
   5755         <!-- Formatting from www.pagesjaunes-dz.com. -->
   5756         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
   5757           <leadingDigits>[1-4]</leadingDigits>
   5758           <format>$1 $2 $3 $4</format>
   5759         </numberFormat>
   5760         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
   5761           <leadingDigits>[5-8]</leadingDigits>
   5762           <format>$1 $2 $3 $4</format>
   5763         </numberFormat>
   5764         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
   5765           <leadingDigits>9</leadingDigits>
   5766           <format>$1 $2 $3 $4</format>
   5767         </numberFormat>
   5768       </availableFormats>
   5769       <generalDesc>
   5770         <nationalNumberPattern>
   5771           (?:
   5772             [1-4]|
   5773             [5-9]\d
   5774           )\d{7}
   5775         </nationalNumberPattern>
   5776         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   5777       </generalDesc>
   5778       <fixedLine>
   5779         <!-- We include the VSAT lines here. -->
   5780         <nationalNumberPattern>
   5781           (?:
   5782             1\d|
   5783             2[014-79]|
   5784             3[0-8]|
   5785             4[0135689]
   5786           )\d{6}|
   5787           9619\d{5}
   5788         </nationalNumberPattern>
   5789         <exampleNumber>12345678</exampleNumber>
   5790       </fixedLine>
   5791       <mobile>
   5792         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
   5793              Mobilis Algeria provided it, and 54 for Nedjma.-->
   5794         <nationalNumberPattern>
   5795           (?:
   5796             5[4-6]|
   5797             7[7-9]
   5798           )\d{7}|
   5799           6(?:
   5800             [569]\d|
   5801             70
   5802           )\d{6}
   5803         </nationalNumberPattern>
   5804         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5805         <exampleNumber>551234567</exampleNumber>
   5806       </mobile>
   5807       <tollFree>
   5808         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   5809         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5810         <exampleNumber>800123456</exampleNumber>
   5811       </tollFree>
   5812       <premiumRate>
   5813         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
   5814         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5815         <exampleNumber>808123456</exampleNumber>
   5816       </premiumRate>
   5817       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
   5818            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
   5819            -->
   5820       <sharedCost>
   5821         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
   5822         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5823         <exampleNumber>801123456</exampleNumber>
   5824       </sharedCost>
   5825       <voip>
   5826         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
   5827         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5828         <exampleNumber>983123456</exampleNumber>
   5829       </voip>
   5830    </territory>
   5831 
   5832     <!-- Ecuador -->
   5833     <!-- http://en.wikipedia.org/wiki/+593 -->
   5834     <!-- http://www.conatel.gob.ec/site_conatel/index.php?option=com_content&view=category&layout=blog&id=52&Itemid=153
   5835          -->
   5836     <!-- http://www.itu.int/oth/T020200003D/en -->
   5837     <territory id="EC" countryCode="593" internationalPrefix="00"
   5838                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
   5839                mobileNumberPortableRegion="true">
   5840       <availableFormats>
   5841         <numberFormat pattern="(\d)(\d{3})(\d{4})">
   5842           <leadingDigits>
   5843             [247]|
   5844             [356][2-8]
   5845           </leadingDigits>
   5846           <format>$1 $2-$3</format>
   5847           <intlFormat>$1-$2-$3</intlFormat>
   5848         </numberFormat>
   5849         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
   5850              change on the www.conatel.gob.ec site. -->
   5851         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
   5852           <leadingDigits>9</leadingDigits>
   5853           <format>$1 $2 $3</format>
   5854         </numberFormat>
   5855         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
   5856           <leadingDigits>1</leadingDigits>
   5857           <format>$1 $2 $3</format>
   5858         </numberFormat>
   5859       </availableFormats>
   5860       <generalDesc>
   5861         <nationalNumberPattern>
   5862           1\d{9,10}|
   5863           [2-8]\d{7}|
   5864           9\d{8}
   5865         </nationalNumberPattern>
   5866         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   5867       </generalDesc>
   5868       <fixedLine>
   5869         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
   5870         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   5871         <exampleNumber>22123456</exampleNumber>
   5872       </fixedLine>
   5873       <mobile>
   5874         <nationalNumberPattern>
   5875           9(?:
   5876             39|
   5877             [4-6][89]|
   5878             7[7-9]|
   5879             [89]\d
   5880           )\d{6}
   5881         </nationalNumberPattern>
   5882         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   5883         <exampleNumber>991234567</exampleNumber>
   5884       </mobile>
   5885       <tollFree>
   5886         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
   5887         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   5888         <exampleNumber>18001234567</exampleNumber>
   5889       </tollFree>
   5890       <voip>
   5891         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
   5892         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   5893         <exampleNumber>28901234</exampleNumber>
   5894       </voip>
   5895     </territory>
   5896 
   5897     <!-- Estonia -->
   5898     <!-- http://www.itu.int/oth/T0202000043/en -->
   5899     <!-- http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm -->
   5900     <territory id="EE" countryCode="372" internationalPrefix="00" mobileNumberPortableRegion="true">
   5901       <availableFormats>
   5902         <numberFormat pattern="([3-79]\d{2})(\d{4})">
   5903           <leadingDigits>
   5904             [369]|
   5905             4[3-8]|
   5906             5(?:
   5907               [0-2]|
   5908               5[0-478]|
   5909               6[45]
   5910             )|
   5911             7[1-9]
   5912           </leadingDigits>
   5913           <leadingDigits>
   5914             [369]|
   5915             4[3-8]|
   5916             5(?:
   5917               [02]|
   5918               1(?:
   5919                 [0-8]|
   5920                 95
   5921               )|
   5922               5[0-478]|
   5923               6(?:
   5924                 4[0-4]|
   5925                 5[1-589]
   5926               )
   5927             )|
   5928             7[1-9]
   5929           </leadingDigits>
   5930           <format>$1 $2</format>
   5931         </numberFormat>
   5932         <numberFormat pattern="(70)(\d{2})(\d{4})">
   5933           <leadingDigits>70</leadingDigits>
   5934           <format>$1 $2 $3</format>
   5935         </numberFormat>
   5936         <numberFormat pattern="(8000)(\d{3})(\d{3})">
   5937           <leadingDigits>800</leadingDigits>
   5938           <leadingDigits>8000</leadingDigits>
   5939           <format>$1 $2 $3</format>
   5940         </numberFormat>
   5941         <numberFormat pattern="([458]\d{3})(\d{3,4})">
   5942           <leadingDigits>
   5943             40|
   5944             5|
   5945             8(?:
   5946               00|
   5947               [1-5]
   5948             )
   5949           </leadingDigits>
   5950           <leadingDigits>
   5951             40|
   5952             5|
   5953             8(?:
   5954               00[1-9]|
   5955               [1-5]
   5956             )
   5957           </leadingDigits>
   5958           <format>$1 $2</format>
   5959         </numberFormat>
   5960       </availableFormats>
   5961       <generalDesc>
   5962         <nationalNumberPattern>
   5963           1\d{3,4}|
   5964           [3-9]\d{6,7}|
   5965           800\d{6,7}
   5966         </nationalNumberPattern>
   5967         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   5968       </generalDesc>
   5969       <noInternationalDialling>
   5970         <nationalNumberPattern>
   5971           1\d{3,4}|
   5972           800[2-9]\d{3}
   5973         </nationalNumberPattern>
   5974         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
   5975         <exampleNumber>8002123</exampleNumber>
   5976       </noInternationalDialling>
   5977       <fixedLine>
   5978         <!-- Supporting eFax numbers here as well. -->
   5979         <nationalNumberPattern>
   5980           (?:
   5981             3[23589]|
   5982             4(?:
   5983               0\d|
   5984               [3-8]
   5985             )|
   5986             6\d|
   5987             7[1-9]|
   5988             88
   5989           )\d{5}
   5990         </nationalNumberPattern>
   5991         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   5992         <exampleNumber>3212345</exampleNumber>
   5993       </fixedLine>
   5994       <mobile>
   5995         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
   5996              numbers are 8 digits. -->
   5997         <nationalNumberPattern>
   5998           (?:
   5999             5\d|
   6000             8[1-5]
   6001           )\d{6}|
   6002           5(?:
   6003             [02]\d{2}|
   6004             1(?:
   6005               [0-8]\d|
   6006               95
   6007             )|
   6008             5[0-478]\d|
   6009             64[0-4]|
   6010             65[1-589]
   6011           )\d{3}
   6012         </nationalNumberPattern>
   6013         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   6014         <exampleNumber>51234567</exampleNumber>
   6015       </mobile>
   6016       <tollFree>
   6017         <nationalNumberPattern>
   6018           800(?:
   6019             0\d{3}|
   6020             1\d|
   6021             [2-9]
   6022           )\d{3}
   6023         </nationalNumberPattern>
   6024         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   6025         <exampleNumber>80012345</exampleNumber>
   6026       </tollFree>
   6027       <premiumRate>
   6028         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
   6029         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   6030         <exampleNumber>9001234</exampleNumber>
   6031       </premiumRate>
   6032       <personalNumber>
   6033         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
   6034         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   6035         <exampleNumber>70012345</exampleNumber>
   6036       </personalNumber>
   6037       <uan>
   6038         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
   6039              included here. -->
   6040         <nationalNumberPattern>
   6041           1(?:
   6042             2[01245]|
   6043             3[0-6]|
   6044             4[1-489]|
   6045             5[0-59]|
   6046             6[1-46-9]|
   6047             7[0-27-9]|
   6048             8[189]|
   6049             9[012]
   6050           )\d{1,2}
   6051         </nationalNumberPattern>
   6052         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
   6053         <exampleNumber>12123</exampleNumber>
   6054       </uan>
   6055     </territory>
   6056 
   6057     <!-- Egypt -->
   6058     <!-- http://www.itu.int/oth/T020200003E/en -->
   6059     <territory id="EG" countryCode="20" internationalPrefix="00"
   6060                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   6061                mobileNumberPortableRegion="true">
   6062        <availableFormats>
   6063          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
   6064               or 19. These are formatted without national prefix, as a block, so do not need to be
   6065               listed here. -->
   6066          <numberFormat pattern="(\d)(\d{7,8})">
   6067            <leadingDigits>[23]</leadingDigits>
   6068            <format>$1 $2</format>
   6069          </numberFormat>
   6070          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   6071            <leadingDigits>
   6072              1[012]|
   6073              [89]00
   6074            </leadingDigits>
   6075            <format>$1 $2 $3</format>
   6076          </numberFormat>
   6077          <numberFormat pattern="(\d{2})(\d{6,7})">
   6078            <leadingDigits>
   6079              1(?:
   6080                3|
   6081                5[23]
   6082              )|
   6083              [4-6]|
   6084              [89][2-9]
   6085            </leadingDigits>
   6086            <format>$1 $2</format>
   6087          </numberFormat>
   6088        </availableFormats>
   6089       <generalDesc>
   6090         <nationalNumberPattern>
   6091           1\d{4,9}|
   6092           [2456]\d{8}|
   6093           3\d{7}|
   6094           [89]\d{8,9}
   6095         </nationalNumberPattern>
   6096         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   6097       </generalDesc>
   6098       <fixedLine>
   6099         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
   6100              that the plan says numbers starting with 15 should be followed by seven digit
   6101              subscriber numbers, but all numbers we have found online are in fact six digit.
   6102              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
   6103              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
   6104              092 and with 5 and 6 for 96. -->
   6105         <nationalNumberPattern>
   6106           (?:
   6107             1(
   6108               3[23]\d|
   6109               5[23]
   6110             )|
   6111             2[2-4]\d{2}|
   6112             3\d{2}|
   6113             4(?:
   6114               0[2-5]|
   6115               [578][23]|
   6116               64
   6117             )\d|
   6118             5(?:
   6119               0[2-7]|
   6120               [57][23]
   6121             )\d|
   6122             6[24-689]3\d|
   6123             8(?:
   6124               2[2-57]|
   6125               4[26]|
   6126               6[237]|
   6127               8[2-4]
   6128             )\d|
   6129             9(?:
   6130               2[27]|
   6131               3[24]|
   6132               52|
   6133               6[2356]|
   6134               7[2-4]
   6135             )\d
   6136           )\d{5}|
   6137           1[69]\d{3}
   6138         </nationalNumberPattern>
   6139         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   6140         <exampleNumber>234567890</exampleNumber>
   6141       </fixedLine>
   6142       <mobile>
   6143         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
   6144              started allocating numbers beginning with these prefixes, along with 115 from numbers
   6145              found online. Etisalat is using 110. -->
   6146         <nationalNumberPattern>
   6147           1(?:
   6148             0[0-269]|
   6149             1[0-245]|
   6150             2[0-278]
   6151           )\d{7}
   6152         </nationalNumberPattern>
   6153         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6154         <exampleNumber>1001234567</exampleNumber>
   6155       </mobile>
   6156       <tollFree>
   6157         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   6158         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6159         <exampleNumber>8001234567</exampleNumber>
   6160       </tollFree>
   6161       <premiumRate>
   6162         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   6163         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   6164         <exampleNumber>9001234567</exampleNumber>
   6165       </premiumRate>
   6166     </territory>
   6167 
   6168     <!-- Western Sahara -->
   6169     <!-- Country calling code shared with Morocco (MA). -->
   6170     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
   6171     <!-- http://www.itu.int/oth/T0202000090/en -->
   6172     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
   6173                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   6174       <!-- Uses MA formatting rules and shares general description
   6175            (non-geographical numbers for Morocco are still valid). -->
   6176       <generalDesc>
   6177         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
   6178         <!-- Closed numbering plan. -->
   6179         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6180       </generalDesc>
   6181       <fixedLine>
   6182         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
   6183         <exampleNumber>528812345</exampleNumber>
   6184       </fixedLine>
   6185       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
   6186            numbers to be recognized as available from within Western Sahara. -->
   6187       <mobile>
   6188         <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01] are from numbers found online,
   6189              bug-reports, and information provided directly by the carriers. -->
   6190         <nationalNumberPattern>
   6191           6(?:
   6192             0[0-8]|
   6193             [124-7]\d|
   6194             3[03-8]|
   6195             8[01]|
   6196             99
   6197           )\d{6}
   6198         </nationalNumberPattern>
   6199         <exampleNumber>650123456</exampleNumber>
   6200       </mobile>
   6201       <tollFree>
   6202         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   6203         <exampleNumber>801234567</exampleNumber>
   6204       </tollFree>
   6205       <premiumRate>
   6206         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
   6207         <exampleNumber>891234567</exampleNumber>
   6208       </premiumRate>
   6209     </territory>
   6210 
   6211     <!-- Eritrea -->
   6212     <!-- http://www.itu.int/oth/T0202000042/en -->
   6213     <territory id="ER" countryCode="291" internationalPrefix="00"
   6214                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   6215       <availableFormats>
   6216         <numberFormat pattern="(\d)(\d{3})(\d{3})">
   6217           <format>$1 $2 $3</format>
   6218         </numberFormat>
   6219       </availableFormats>
   6220       <generalDesc>
   6221         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
   6222         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   6223       </generalDesc>
   6224       <fixedLine>
   6225         <nationalNumberPattern>
   6226           1(?:
   6227             1[12568]|
   6228             20|
   6229             40|
   6230             55|
   6231             6[146]
   6232           )\d{4}|
   6233           8\d{6}
   6234         </nationalNumberPattern>
   6235         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
   6236       </fixedLine>
   6237       <mobile>
   6238         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
   6239              numbers or was in addition to them, so we support both here. -->
   6240         <nationalNumberPattern>
   6241           17[1-3]\d{4}|
   6242           7\d{6}
   6243         </nationalNumberPattern>
   6244         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   6245         <exampleNumber>7123456</exampleNumber>
   6246       </mobile>
   6247     </territory>
   6248 
   6249     <!-- Spain -->
   6250     <!-- http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx -->
   6251     <territory id="ES" countryCode="34" internationalPrefix="00" mobileNumberPortableRegion="true">
   6252       <availableFormats>
   6253         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
   6254           <leadingDigits>
   6255             [568]|
   6256             [79][0-8]
   6257           </leadingDigits>
   6258           <format>$1 $2 $3 $4</format>
   6259         </numberFormat>
   6260       </availableFormats>
   6261       <generalDesc>
   6262         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
   6263         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6264       </generalDesc>
   6265       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
   6266            fixed-line ranges. -->
   6267       <fixedLine>
   6268         <nationalNumberPattern>
   6269           8(?:
   6270             [13]0|
   6271             [28][0-8]|
   6272             [47][1-9]|
   6273             5[01346-9]|
   6274             6[0457-9]
   6275           )\d{6}|
   6276           9(?:
   6277             [1238][0-8]\d{6}|
   6278             4[1-9]\d{6}|
   6279             5\d{7}|
   6280             6(?:
   6281               [0-8]\d{6}|
   6282               9(?:
   6283                 0(?:
   6284                   [0-57-9]\d{4}|
   6285                   6(?:
   6286                     0[0-8]|
   6287                     1[1-9]|
   6288                     [2-9]\d
   6289                   )\d{2}
   6290                 )|
   6291                 [1-9]\d{5}
   6292               )
   6293             )|
   6294             7(?:
   6295               [124-9]\d{2}|
   6296               3(?:
   6297                 [0-8]\d|
   6298                 9[1-9]
   6299               )
   6300             )\d{4}
   6301           )
   6302         </nationalNumberPattern>
   6303         <exampleNumber>810123456</exampleNumber>
   6304       </fixedLine>
   6305       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
   6306            information received from Lleida Networks. -->
   6307       <mobile>
   6308         <nationalNumberPattern>
   6309           (?:
   6310             6\d{6}|
   6311             7[1-4]\d{5}|
   6312             9(?:
   6313               6906(?:
   6314                 09|
   6315                 10
   6316               )|
   6317               7390\d{2}
   6318             )
   6319           )\d{2}
   6320         </nationalNumberPattern>
   6321         <exampleNumber>612345678</exampleNumber>
   6322       </mobile>
   6323       <tollFree>
   6324         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
   6325         <exampleNumber>800123456</exampleNumber>
   6326       </tollFree>
   6327       <premiumRate>
   6328         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
   6329         <exampleNumber>803123456</exampleNumber>
   6330       </premiumRate>
   6331       <sharedCost>
   6332         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
   6333         <exampleNumber>901123456</exampleNumber>
   6334       </sharedCost>
   6335       <personalNumber>
   6336         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
   6337         <exampleNumber>701234567</exampleNumber>
   6338       </personalNumber>
   6339       <!-- Modelling non-geographic nomadic numbers as UAN. -->
   6340       <uan>
   6341         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
   6342         <exampleNumber>511234567</exampleNumber>
   6343       </uan>
   6344     </territory>
   6345 
   6346     <!-- Ethiopia -->
   6347     <!-- http://www.itu.int/oth/T0202000044/en -->
   6348     <territory id="ET" countryCode="251" internationalPrefix="00"
   6349                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   6350       <availableFormats>
   6351         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
   6352           <format>$1 $2 $3</format>
   6353         </numberFormat>
   6354       </availableFormats>
   6355       <generalDesc>
   6356         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
   6357         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   6358       </generalDesc>
   6359       <fixedLine>
   6360         <nationalNumberPattern>
   6361           (?:
   6362             11(?:
   6363               1(?:
   6364                 1[124]|
   6365                 2[2-57]|
   6366                 3[1-5]|
   6367                 5[5-8]|
   6368                 8[6-8]
   6369               )|
   6370               2(?:
   6371                 13|
   6372                 3[6-8]|
   6373                 5[89]|
   6374                 7[05-9]|
   6375                 8[2-6]
   6376               )|
   6377               3(?:
   6378                 2[01]|
   6379                 3[0-289]|
   6380                 4[1289]|
   6381                 7[1-4]|
   6382                 87
   6383               )|
   6384               4(?:
   6385                 1[69]|
   6386                 3[2-49]|
   6387                 4[0-3]|
   6388                 6[5-8]
   6389               )|
   6390               5(?:
   6391                 1[57]|
   6392                 44|
   6393                 5[0-4]
   6394               )|
   6395               6(?:
   6396                 18|
   6397                 2[69]|
   6398                 4[5-7]|
   6399                 5[1-5]|
   6400                 6[0-59]|
   6401                 8[015-8]
   6402               )
   6403             )|
   6404             2(?:
   6405               2(?:
   6406                 11[1-9]|
   6407                 22[0-7]|
   6408                 33\d|
   6409                 44[1467]|
   6410                 66[1-68]
   6411               )|
   6412               5(?:
   6413                 11[124-6]|
   6414                 33[2-8]|
   6415                 44[1467]|
   6416                 55[14]|
   6417                 66[1-3679]|
   6418                 77[124-79]|
   6419                 880
   6420               )
   6421             )|
   6422             3(?:
   6423               3(?:
   6424                 11[0-46-8]|
   6425                 22[0-6]|
   6426                 33[0134689]|
   6427                 44[04]|
   6428                 55[0-6]|
   6429                 66[01467]
   6430               )|
   6431               4(?:
   6432                 44[0-8]|
   6433                 55[0-69]|
   6434                 66[0-3]|
   6435                 77[1-5]
   6436               )
   6437             )|
   6438             4(?:
   6439               6(?:
   6440                 22[0-24-7]|
   6441                 33[1-5]|
   6442                 44[13-69]|
   6443                 55[14-689]|
   6444                 660|
   6445                 88[1-4]
   6446               )|
   6447               7(?:
   6448                 11[1-9]|
   6449                 22[1-9]|
   6450                 33[13-7]|
   6451                 44[13-6]|
   6452                 55[1-689]
   6453               )
   6454             )|
   6455             5(?:
   6456               7(?:
   6457                 227|
   6458                 55[05]|
   6459                 (?:
   6460                   66|
   6461                   77
   6462                 )[14-8]
   6463               )|
   6464               8(?:
   6465                 11[149]|
   6466                 22[013-79]|
   6467                 33[0-68]|
   6468                 44[013-8]|
   6469                 550|
   6470                 66[1-5]|
   6471                 77\d
   6472               )
   6473             )
   6474           )\d{4}
   6475         </nationalNumberPattern>
   6476         <exampleNumber>111112345</exampleNumber>
   6477       </fixedLine>
   6478       <mobile>
   6479         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
   6480              numbers are visible online than are reported in the ITU document. This pattern is
   6481              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
   6482              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
   6483         <nationalNumberPattern>
   6484           9(?:
   6485             [1-3]\d|
   6486             5[89]
   6487           )\d{6}
   6488         </nationalNumberPattern>
   6489         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6490         <exampleNumber>911234567</exampleNumber>
   6491       </mobile>
   6492     </territory>
   6493 
   6494     <!-- Finland -->
   6495     <!-- Metadata shared with land (AX) -->
   6496     <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html -->
   6497     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
   6498                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
   6499                mobileNumberPortableRegion="true">
   6500       <availableFormats>
   6501         <numberFormat pattern="(\d{3})(\d{3,7})">
   6502           <leadingDigits>
   6503             (?:
   6504               [1-3]00|
   6505               [6-8]0
   6506             )
   6507           </leadingDigits>
   6508           <format>$1 $2</format>
   6509         </numberFormat>
   6510         <numberFormat pattern="(\d{2})(\d{4,10})">
   6511           <leadingDigits>
   6512             [14]|
   6513             2[09]|
   6514             50|
   6515             7[135]
   6516           </leadingDigits>
   6517           <format>$1 $2</format>
   6518         </numberFormat>
   6519         <numberFormat pattern="(\d)(\d{4,11})">
   6520           <leadingDigits>
   6521             [25689][1-8]|
   6522             3
   6523           </leadingDigits>
   6524           <format>$1 $2</format>
   6525         </numberFormat>
   6526       </availableFormats>
   6527       <generalDesc>
   6528         <nationalNumberPattern>
   6529           1\d{4,11}|
   6530           [2-9]\d{4,10}
   6531         </nationalNumberPattern>
   6532         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   6533       </generalDesc>
   6534       <noInternationalDialling>
   6535         <!-- According to the national numbering plan, service numbers are in general not accessible
   6536              from abroad, although 600/700/800 numbers may be. -->
   6537         <nationalNumberPattern>
   6538           [13]00\d{3,7}|
   6539           2(?:
   6540             0(?:
   6541               0\d{3,7}|
   6542               2[023]\d{1,6}|
   6543               9[89]\d{1,6}
   6544             )
   6545           )|
   6546           60(?:
   6547             [12]\d{5,6}|
   6548             6\d{7}
   6549           )|
   6550           7(?:
   6551             1\d{7}|
   6552             3\d{8}|
   6553             5[03-9]\d{2,7}
   6554           )
   6555         </nationalNumberPattern>
   6556         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   6557         <exampleNumber>100123</exampleNumber>
   6558       </noInternationalDialling>
   6559       <fixedLine>
   6560         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
   6561              are listed under UAN. It also excludes land numbers. -->
   6562         <nationalNumberPattern>
   6563           1(?:
   6564             [3569][1-8]\d{3,9}|
   6565             [47]\d{5,10}
   6566           )|
   6567           2[1-8]\d{3,9}|
   6568           3(?:
   6569             [1-8]\d{3,9}|
   6570             9\d{4,8}
   6571           )|
   6572           [5689][1-8]\d{3,9}
   6573         </nationalNumberPattern>
   6574         <exampleNumber>1312345678</exampleNumber>
   6575       </fixedLine>
   6576       <mobile>
   6577         <nationalNumberPattern>
   6578           4\d{5,10}|
   6579           50\d{4,8}
   6580         </nationalNumberPattern>
   6581         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   6582         <exampleNumber>412345678</exampleNumber>
   6583       </mobile>
   6584       <tollFree>
   6585         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
   6586         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   6587         <exampleNumber>8001234567</exampleNumber>
   6588       </tollFree>
   6589       <premiumRate>
   6590         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
   6591         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   6592         <exampleNumber>600123456</exampleNumber>
   6593       </premiumRate>
   6594       <uan>
   6595         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
   6596              assigned to institutions such as universities, the national post, etc, where they are
   6597              not otherwise classified as toll-free or premium-rate numbers. -->
   6598         <nationalNumberPattern>
   6599           [13]0\d{4,8}|
   6600           2(?:
   6601             0(?:
   6602               [016-8]\d{3,7}|
   6603               [2-59]\d{2,7}
   6604             )|
   6605             9\d{4,8}
   6606           )|
   6607           60(?:
   6608             [12]\d{5,6}|
   6609             6\d{7}
   6610           )|
   6611           7(?:
   6612             1\d{7}|
   6613             3\d{8}|
   6614             5[03-9]\d{2,7}
   6615           )
   6616         </nationalNumberPattern>
   6617         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   6618         <exampleNumber>10112345</exampleNumber>
   6619       </uan>
   6620     </territory>
   6621 
   6622     <!-- Fiji -->
   6623     <!-- http://www.itu.int/oth/T0202000048/en -->
   6624     <!-- www.tfl.com.fj -->
   6625     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
   6626                preferredInternationalPrefix="00" leadingZeroPossible="true">
   6627       <availableFormats>
   6628         <numberFormat pattern="(\d{3})(\d{4})">
   6629           <leadingDigits>[36-9]</leadingDigits>
   6630           <format>$1 $2</format>
   6631         </numberFormat>
   6632         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
   6633           <leadingDigits>0</leadingDigits>
   6634           <format>$1 $2 $3</format>
   6635         </numberFormat>
   6636       </availableFormats>
   6637       <generalDesc>
   6638         <nationalNumberPattern>
   6639           [36-9]\d{6}|
   6640           0\d{10}
   6641         </nationalNumberPattern>
   6642         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
   6643       </generalDesc>
   6644       <fixedLine>
   6645         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
   6646              online, including in the white pages. 35X and 85X were found in the exchanges listed on
   6647              www.tfl.com.fj. -->
   6648         <nationalNumberPattern>
   6649           (?:
   6650             3[0-5]|
   6651             6[25-7]|
   6652             8[58]
   6653           )\d{5}
   6654         </nationalNumberPattern>
   6655         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   6656         <exampleNumber>3212345</exampleNumber>
   6657       </fixedLine>
   6658       <mobile>
   6659         <!-- Adding 7[67], 8[367], and 9[034678] from numbers found online and numbers where SMSs
   6660              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
   6661         <nationalNumberPattern>
   6662           (?:
   6663             7[0-467]|
   6664             8[3467]|
   6665             9\d
   6666           )\d{5}
   6667         </nationalNumberPattern>
   6668         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   6669         <exampleNumber>7012345</exampleNumber>
   6670       </mobile>
   6671       <tollFree>
   6672         <!-- Information found on www.tfl.com.fj. It is not clear if these are internationally
   6673              diallable, or if so, how. -->
   6674         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
   6675         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   6676         <exampleNumber>08001234567</exampleNumber>
   6677       </tollFree>
   6678     </territory>
   6679 
   6680     <!-- Falkland Islands (Malvinas) -->
   6681     <!-- http://www.itu.int/oth/T0202000046/en -->
   6682     <territory id="FK" countryCode="500" internationalPrefix="00">
   6683       <!-- All numbers are formatted together, as a block. -->
   6684       <generalDesc>
   6685         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
   6686         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   6687       </generalDesc>
   6688       <fixedLine>
   6689         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
   6690         <exampleNumber>31234</exampleNumber>
   6691       </fixedLine>
   6692       <mobile>
   6693         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
   6694         <exampleNumber>51234</exampleNumber>
   6695       </mobile>
   6696     </territory>
   6697 
   6698     <!-- Micronesia, Federated States of -->
   6699     <!-- http://www.itu.int/oth/T020200008B/en -->
   6700     <territory id="FM" countryCode="691" internationalPrefix="00">
   6701       <availableFormats>
   6702         <numberFormat pattern="(\d{3})(\d{4})">
   6703           <format>$1 $2</format>
   6704         </numberFormat>
   6705       </availableFormats>
   6706       <generalDesc>
   6707         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
   6708         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   6709       </generalDesc>
   6710       <fixedLine>
   6711         <nationalNumberPattern>
   6712             3[2357]0[1-9]\d{3}|
   6713             9[2-6]\d{5}
   6714         </nationalNumberPattern>
   6715         <exampleNumber>3201234</exampleNumber>
   6716       </fixedLine>
   6717       <mobile>
   6718         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
   6719              are exclusively mobile. -->
   6720         <nationalNumberPattern>
   6721           3[2357]0[1-9]\d{3}|
   6722           9[2-7]\d{5}
   6723         </nationalNumberPattern>
   6724         <exampleNumber>3501234</exampleNumber>
   6725       </mobile>
   6726     </territory>
   6727 
   6728     <!-- Faroe Islands -->
   6729     <!-- http://www.itu.int/oth/T0202000047/en -->
   6730     <territory id="FO" countryCode="298" internationalPrefix="00"
   6731                nationalPrefixForParsing="(10(?:01|[12]0|88))"
   6732                carrierCodeFormattingRule="$CC $FG">
   6733       <!-- All numbers are formatted together, as a block. -->
   6734       <availableFormats>
   6735         <numberFormat pattern="(\d{6})">
   6736           <format>$1</format>
   6737         </numberFormat>
   6738       </availableFormats>
   6739       <generalDesc>
   6740         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
   6741         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   6742       </generalDesc>
   6743       <fixedLine>
   6744         <nationalNumberPattern>
   6745           (?:
   6746             20|
   6747             [3-4]\d|
   6748             8[19]
   6749           )\d{4}
   6750         </nationalNumberPattern>
   6751         <exampleNumber>201234</exampleNumber>
   6752       </fixedLine>
   6753       <mobile>
   6754         <nationalNumberPattern>
   6755           (?:
   6756             2[1-9]|
   6757             5\d|
   6758             7[1-79]
   6759           )\d{4}
   6760         </nationalNumberPattern>
   6761         <exampleNumber>211234</exampleNumber>
   6762       </mobile>
   6763       <tollFree>
   6764         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
   6765         <exampleNumber>802123</exampleNumber>
   6766       </tollFree>
   6767       <premiumRate>
   6768         <nationalNumberPattern>
   6769           90(?:
   6770             [1345][15-7]|
   6771             2[125-7]|
   6772             99
   6773             )\d{2}
   6774         </nationalNumberPattern>
   6775         <exampleNumber>901123</exampleNumber>
   6776       </premiumRate>
   6777       <voip>
   6778         <nationalNumberPattern>
   6779           (?:
   6780             6[0-36]|
   6781             88
   6782           )\d{4}
   6783         </nationalNumberPattern>
   6784         <exampleNumber>601234</exampleNumber>
   6785       </voip>
   6786     </territory>
   6787 
   6788     <!-- France -->
   6789     <!-- http://www.itu.int/oth/T020200004A/en -->
   6790     <!-- http://www.arcep.fr/index.php?id=8146 -->
   6791     <!-- http://en.wikipedia.org/wiki/%2B33 -->
   6792     <territory id="FR" countryCode="33" internationalPrefix="00" nationalPrefix="0"
   6793                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
   6794       <!-- Short numbers will be formatted as a block without a national prefix. -->
   6795       <availableFormats>
   6796         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
   6797           <leadingDigits>[1-79]</leadingDigits>
   6798           <format>$1 $2 $3 $4 $5</format>
   6799         </numberFormat>
   6800         <numberFormat pattern="(1\d{2})(\d{3})" nationalPrefixFormattingRule="$FG">
   6801           <leadingDigits>11</leadingDigits>
   6802           <format>$1 $2</format>
   6803           <intlFormat>NA</intlFormat>
   6804         </numberFormat>
   6805         <numberFormat nationalPrefixFormattingRule="$NP $FG"
   6806           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
   6807           <leadingDigits>8</leadingDigits>
   6808           <format>$1 $2 $3 $4</format>
   6809         </numberFormat>
   6810       </availableFormats>
   6811       <generalDesc>
   6812         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
   6813         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   6814       </generalDesc>
   6815       <fixedLine>
   6816         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
   6817         <exampleNumber>123456789</exampleNumber>
   6818       </fixedLine>
   6819       <mobile>
   6820         <nationalNumberPattern>
   6821           6\d{8}|
   6822           7[5-9]\d{7}
   6823         </nationalNumberPattern>
   6824         <exampleNumber>612345678</exampleNumber>
   6825       </mobile>
   6826       <tollFree>
   6827         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   6828         <exampleNumber>801234567</exampleNumber>
   6829       </tollFree>
   6830       <premiumRate>
   6831         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
   6832         <exampleNumber>891123456</exampleNumber>
   6833       </premiumRate>
   6834       <sharedCost>
   6835         <nationalNumberPattern>
   6836           8(?:
   6837             1[019]|
   6838             2[0156]|
   6839             84|
   6840             90
   6841           )\d{6}
   6842         </nationalNumberPattern>
   6843         <exampleNumber>810123456</exampleNumber>
   6844       </sharedCost>
   6845       <voip>
   6846         <!-- 087 numbers used to be used for this. -->
   6847         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
   6848         <exampleNumber>912345678</exampleNumber>
   6849       </voip>
   6850     </territory>
   6851 
   6852     <!-- Gabon -->
   6853     <!-- http://www.itu.int/oth/T020200004E/en -->
   6854     <!-- www.arcep.ga -->
   6855     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true">
   6856       <availableFormats>
   6857         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
   6858           <format>$1 $2 $3 $4</format>
   6859         </numberFormat>
   6860       </availableFormats>
   6861       <generalDesc>
   6862         <nationalNumberPattern>0\d{7}</nationalNumberPattern>
   6863         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   6864       </generalDesc>
   6865       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
   6866            line and mobile numbering. However, it seems that this has not happened; their own
   6867            website now lists numbers as "+241 01 44 68 11" and upon ringing numbers they will not
   6868            connect without the 0 from outside the country. This was last tested June 2013. -->
   6869       <fixedLine>
   6870         <nationalNumberPattern>01\d{6}</nationalNumberPattern>
   6871         <exampleNumber>01441234</exampleNumber>
   6872       </fixedLine>
   6873       <mobile>
   6874         <nationalNumberPattern>0[2-7]\d{6}</nationalNumberPattern>
   6875         <exampleNumber>06031234</exampleNumber>
   6876       </mobile>
   6877     </territory>
   6878 
   6879     <!-- United Kingdom -->
   6880     <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/ -->
   6881     <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
   6882     <!-- http://www.numberingplans.com/?page=dialling&sub=areacodes&ac=GB -->
   6883     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
   6884          validation, although the formatting rules are shared. -->
   6885     <territory id="GB" countryCode="44" internationalPrefix="00"
   6886                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
   6887                mainCountryForCode="true" mobileNumberPortableRegion="true">
   6888       <availableFormats>
   6889         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
   6890         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   6891           <leadingDigits>
   6892             2|
   6893             5[56]|
   6894             7(?:
   6895               0|
   6896               6[013-9]
   6897             )
   6898           </leadingDigits>
   6899           <leadingDigits>
   6900             2|
   6901             5[56]|
   6902             7(?:
   6903               0|
   6904               6(?:
   6905                 [013-9]|
   6906                 2[0-35-9]
   6907               )
   6908             )
   6909           </leadingDigits>
   6910           <format>$1 $2 $3</format>
   6911         </numberFormat>
   6912         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
   6913         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   6914           <leadingDigits>
   6915             1(?:
   6916               1|
   6917               \d1
   6918             )|
   6919             3|
   6920             9[018]
   6921           </leadingDigits>
   6922           <format>$1 $2 $3</format>
   6923         </numberFormat>
   6924         <!-- 1dddd with 9 or 10 digits.
   6925              These area codes are very rare in GB, and are only available in the following places:
   6926              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
   6927              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
   6928              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
   6929         <numberFormat pattern="(\d{5})(\d{4,5})">
   6930           <leadingDigits>
   6931             1(?:
   6932               38|
   6933               5[23]|
   6934               69|
   6935               76|
   6936               94
   6937             )
   6938           </leadingDigits>
   6939           <leadingDigits>
   6940             1(?:
   6941               387|
   6942               5(?:
   6943                 24|
   6944                 39
   6945               )|
   6946               697|
   6947               768|
   6948               946
   6949             )
   6950           </leadingDigits>
   6951           <leadingDigits>
   6952             1(?:
   6953               3873|
   6954               5(?:
   6955                 242|
   6956                 39[456]
   6957               )|
   6958               697[347]|
   6959               768[347]|
   6960               9467
   6961             )
   6962           </leadingDigits>
   6963           <format>$1 $2</format>
   6964         </numberFormat>
   6965         <!-- 1ddd with 9 or 10 digits. -->
   6966         <numberFormat pattern="(1\d{3})(\d{5,6})">
   6967           <leadingDigits>1</leadingDigits>
   6968           <format>$1 $2</format>
   6969         </numberFormat>
   6970         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
   6971         <numberFormat pattern="(7\d{3})(\d{6})">
   6972           <leadingDigits>
   6973             7(?:
   6974               [1-5789]|
   6975               62
   6976             )
   6977           </leadingDigits>
   6978           <leadingDigits>
   6979             7(?:
   6980               [1-5789]|
   6981               624
   6982             )
   6983           </leadingDigits>
   6984           <format>$1 $2</format>
   6985         </numberFormat>
   6986         <!-- 800 1111 : UK ChildLine. -->
   6987         <numberFormat pattern="(800)(\d{4})">
   6988           <leadingDigits>800</leadingDigits>
   6989           <leadingDigits>8001</leadingDigits>
   6990           <leadingDigits>80011</leadingDigits>
   6991           <leadingDigits>800111</leadingDigits>
   6992           <leadingDigits>8001111</leadingDigits>
   6993           <format>$1 $2</format>
   6994         </numberFormat>
   6995         <!-- 845 46 47 : UK NHS Direct. -->
   6996         <numberFormat pattern="(845)(46)(4\d)">
   6997           <leadingDigits>845</leadingDigits>
   6998           <leadingDigits>8454</leadingDigits>
   6999           <leadingDigits>84546</leadingDigits>
   7000           <leadingDigits>845464</leadingDigits>
   7001           <format>$1 $2 $3</format>
   7002         </numberFormat>
   7003         <!-- 84d, 87d with 10 digits. -->
   7004         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
   7005           <leadingDigits>
   7006             8(?:
   7007               4[2-5]|
   7008               7[0-3]
   7009             )
   7010           </leadingDigits>
   7011           <format>$1 $2 $3</format>
   7012         </numberFormat>
   7013         <!-- 80d (including 800) with 10 digits. -->
   7014         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
   7015           <leadingDigits>80</leadingDigits>
   7016           <format>$1 $2 $3</format>
   7017         </numberFormat>
   7018         <!-- 500, 800 with 9 digits. -->
   7019         <numberFormat pattern="([58]00)(\d{6})">
   7020           <leadingDigits>[58]00</leadingDigits>
   7021           <format>$1 $2</format>
   7022         </numberFormat>
   7023       </availableFormats>
   7024       <generalDesc>
   7025         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
   7026         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   7027       </generalDesc>
   7028       <areaCodeOptional>
   7029         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
   7030              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
   7031              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
   7032              necessarily valid numbers. -->
   7033         <nationalNumberPattern>
   7034           2\d[2-9]\d{7}|
   7035           1(?:
   7036             1\d|
   7037             \d1
   7038           )[2-9]\d{6}|
   7039           1(?:
   7040             [248][02-9]\d[2-9]\d{4,5}|
   7041             (?:
   7042               3(?:
   7043                 [02-79]\d|
   7044                 8[0-69]
   7045               )|
   7046               5(?:
   7047                 [04-9]\d|
   7048                 2[0-35-9]|
   7049                 3[0-8]
   7050               )|
   7051               6(?:
   7052                 [02-8]\d|
   7053                 9[0-689]
   7054               )|
   7055               7(?:
   7056                 [02-5789]\d|
   7057                 6[0-79]
   7058               )|
   7059               9(?:
   7060                 [0235-9]\d|
   7061                 4[0-5789]
   7062               )
   7063             )[2-9]\d{4,5}|
   7064             (?:
   7065               387(?:
   7066                 3[2-9]|
   7067                 [24-9]\d
   7068               )|
   7069               5(?:
   7070                 24(?:
   7071                   2[2-9]|
   7072                   [3-9]\d
   7073                 )|
   7074                 39(?:
   7075                   [4-6][2-9]|
   7076                   [237-9]\d
   7077                 )
   7078               )|
   7079               697(?:
   7080                 [347][2-9]|
   7081                 [25689]\d
   7082               )|
   7083               768(?:
   7084                 [347][2-9]|
   7085                 [25679]\d
   7086               )|
   7087               946(?:
   7088                 7[2-9]|
   7089                 [2-689]\d
   7090               )
   7091             )\d{3,4}
   7092           )
   7093         </nationalNumberPattern>
   7094         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   7095         <exampleNumber>1332456789</exampleNumber>
   7096       </areaCodeOptional>
   7097       <fixedLine>
   7098         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
   7099         <!-- Pattern matches geographic NSN=10 numbers as follows:
   7100              - area code and local number first digit for 2+8,
   7101              - area code and local number first digit for 3+7,
   7102              - area code only for 4+6 (including areas with embedded 5+5).
   7103              Pattern matches geographic NSN=9 numbers as follows:
   7104              - area code and local number first two digits for 4+5,
   7105              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
   7106              - area code and local number first digit for 5+4 special case (016977) Dddd.
   7107              All patterns exclude ranges used in GG, IM, JE. -->
   7108         <nationalNumberPattern>
   7109           2(?:
   7110             0[01378]|
   7111             3[0189]|
   7112             4[017]|
   7113             8[0-46-9]|
   7114             9[012]
   7115           )\d{7}|
   7116           1(?:
   7117             (?:
   7118               1(?:
   7119                 3[0-48]|
   7120                 [46][0-4]|
   7121                 5[012789]|
   7122                 7[0-49]|
   7123                 8[01349]
   7124               )|
   7125               21[0-7]|
   7126               31[0-8]|
   7127               [459]1\d|
   7128               61[0-46-9]
   7129             )
   7130           )\d{6}|
   7131           1(?:
   7132             2(?:
   7133               0[024-9]|
   7134               2[3-9]|
   7135               3[3-79]|
   7136               4[1-689]|
   7137               [58][02-9]|
   7138               6[0-4789]|
   7139               7[013-9]|
   7140               9\d
   7141             )|
   7142             3(?:
   7143               0\d|
   7144               [25][02-9]|
   7145               3[02-579]|
   7146               [468][0-46-9]|
   7147               7[1235679]|
   7148               9[24578]
   7149             )|
   7150             4(?:
   7151               0[03-9]|
   7152               [28][02-5789]|
   7153               [37]\d|
   7154               4[02-69]|
   7155               5[0-8]|
   7156               [69][0-79]
   7157             )|
   7158             5(?:
   7159               0[1235-9]|
   7160               2[024-9]|
   7161               3[015689]|
   7162               4[02-9]|
   7163               5[03-9]|
   7164               6\d|
   7165               7[0-35-9]|
   7166               8[0-468]|
   7167               9[0-5789]
   7168             )|
   7169             6(?:
   7170               0[034689]|
   7171               2[0-35689]|
   7172               [38][013-9]|
   7173               4[1-467]|
   7174               5[0-69]|
   7175               6[13-9]|
   7176               7[0-8]|
   7177               9[0124578]
   7178             )|
   7179             7(?:
   7180               0[0246-9]|
   7181               2\d|
   7182               3[023678]|
   7183               4[03-9]|
   7184               5[0-46-9]|
   7185               6[013-9]|
   7186               7[0-35-9]|
   7187               8[024-9]|
   7188               9[02-9]
   7189             )|
   7190             8(?:
   7191               0[35-9]|
   7192               2[1-5789]|
   7193               3[02-578]|
   7194               4[0-578]|
   7195               5[124-9]|
   7196               6[2-69]|
   7197               7\d|
   7198               8[02-9]|
   7199               9[02569]
   7200             )|
   7201             9(?:
   7202               0[02-589]|
   7203               2[02-689]|
   7204               3[1-5789]|
   7205               4[2-9]|
   7206               5[0-579]|
   7207               6[234789]|
   7208               7[0124578]|
   7209               8\d|
   7210               9[2-57]
   7211             )
   7212           )\d{6}|
   7213           1(?:
   7214             2(?:
   7215               0(?:
   7216                 46[1-4]|
   7217                 87[2-9]
   7218               )|
   7219               545[1-79]|
   7220               76(?:
   7221                 2\d|
   7222                 3[1-8]|
   7223                 6[1-6]
   7224               )|
   7225               9(?:
   7226                 7(?:
   7227                   2[0-4]|
   7228                   3[2-5]
   7229                 )|
   7230                 8(?:
   7231                   2[2-8]|
   7232                   7[0-4789]|
   7233                   8[345]
   7234                 )
   7235               )
   7236             )|
   7237             3(?:
   7238               638[2-5]|
   7239               647[23]|
   7240               8(?:
   7241                 47[04-9]|
   7242                 64[015789]
   7243               )
   7244             )|
   7245             4(?:
   7246               044[1-7]|
   7247               20(?:
   7248                 2[23]|
   7249                 8\d
   7250               )|
   7251               6(?:
   7252                 0(?:
   7253                   30|
   7254                   5[2-57]|
   7255                   6[1-8]|
   7256                   7[2-8]
   7257                 )|
   7258                 140
   7259               )|
   7260               8(?:
   7261                 052|
   7262                 87[123]
   7263               )
   7264             )|
   7265             5(?:
   7266               24(?:
   7267                 3[2-79]|
   7268                 6\d
   7269               )|
   7270               276\d|
   7271               6(?:
   7272                 26[06-9]|
   7273                 686
   7274               )
   7275             )|
   7276             6(?:
   7277               06(?:
   7278                 4\d|
   7279                 7[4-79]
   7280               )|
   7281               295[567]|
   7282               35[34]\d|
   7283               47(?:
   7284                 24|
   7285                 61
   7286               )|
   7287               59(?:
   7288                 5[08]|
   7289                 6[67]|
   7290                 74
   7291               )|
   7292               955[0-4]
   7293             )|
   7294             7(?:
   7295               26(?:
   7296                 6[13-9]|
   7297                 7[0-7]
   7298               )|
   7299               442\d|
   7300               50(?:
   7301                 2[0-3]|
   7302                 [3-68]2|
   7303                 76
   7304               )
   7305             )|
   7306             8(?:
   7307               27[56]\d|
   7308               37(?:
   7309                 5[2-5]|
   7310                 8[239]
   7311               )|
   7312               84(?:
   7313                 3[2-58]
   7314               )
   7315             )|
   7316             9(?:
   7317               0(?:
   7318                 0(?:
   7319                   6[1-8]|
   7320                   85
   7321                 )|
   7322                 52\d
   7323               )|
   7324               3583|
   7325               4(?:
   7326                 66[1-8]|
   7327                 9(?:
   7328                   2[01]|
   7329                   81
   7330                 )
   7331               )|
   7332               63(?:
   7333                 23|
   7334                 3[1-4]
   7335               )|
   7336               9561
   7337             )
   7338           )\d{3}|
   7339           176888[234678]\d{2}|
   7340           16977[23]\d{3}
   7341         </nationalNumberPattern>
   7342         <exampleNumber>1212345678</exampleNumber>
   7343       </fixedLine>
   7344       <mobile>
   7345         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
   7346              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
   7347         <nationalNumberPattern>
   7348           7(?:
   7349             [1-4]\d\d|
   7350             5(?:
   7351               0[0-8]|
   7352               [13-9]\d|
   7353               2[0-35-9]
   7354             )|
   7355             7(?:
   7356               0[1-9]|
   7357               [1-7]\d|
   7358               8[02-9]|
   7359               9[0-689]
   7360             )|
   7361             8(?:
   7362               [014-9]\d|
   7363               [23][0-8]
   7364             )|
   7365             9(?:
   7366               [04-9]\d|
   7367               1[02-9]|
   7368               2[0-35-9]|
   7369               3[0-689]
   7370             )
   7371           )\d{6}
   7372         </nationalNumberPattern>
   7373         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7374         <exampleNumber>7400123456</exampleNumber>
   7375       </mobile>
   7376       <pager>
   7377         <!-- 76 with 10 digits; excluding ranges used in IM. -->
   7378         <nationalNumberPattern>
   7379           76(?:
   7380             0[012]|
   7381             2[356]|
   7382             4[0134]|
   7383             5[49]|
   7384             6[0-369]|
   7385             77|
   7386             81|
   7387             9[39]
   7388           )\d{6}
   7389         </nationalNumberPattern>
   7390         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7391         <exampleNumber>7640123456</exampleNumber>
   7392       </pager>
   7393       <!-- Source for non geographic numbers:
   7394            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
   7395       <tollFree>
   7396         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
   7397              -->
   7398         <nationalNumberPattern>
   7399           80(?:
   7400             0(?:
   7401               1111|
   7402               \d{6,7}
   7403             )|
   7404             8\d{7}
   7405           )|
   7406           500\d{6}
   7407         </nationalNumberPattern>
   7408         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
   7409         <exampleNumber>8001234567</exampleNumber>
   7410       </tollFree>
   7411       <premiumRate>
   7412         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
   7413              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
   7414              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
   7415              910-919 are reserved for standard premium rate services. -->
   7416         <nationalNumberPattern>
   7417           (?:
   7418             87[123]|
   7419             9(?:
   7420               [01]\d|
   7421               8[2349]
   7422             )
   7423           )\d{7}
   7424         </nationalNumberPattern>
   7425         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7426         <exampleNumber>9012345678</exampleNumber>
   7427       </premiumRate>
   7428       <sharedCost>
   7429         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
   7430              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
   7431         <nationalNumberPattern>
   7432           8(?:
   7433             4(?:
   7434               5464\d|
   7435               [2-5]\d{7}
   7436             )|
   7437             70\d{7}
   7438           )
   7439         </nationalNumberPattern>
   7440         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   7441         <exampleNumber>8431234567</exampleNumber>
   7442       </sharedCost>
   7443       <personalNumber>
   7444         <!-- 70 with 10 digits. -->
   7445         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   7446         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7447         <exampleNumber>7012345678</exampleNumber>
   7448       </personalNumber>
   7449       <voip>
   7450         <!-- 56 with 10 digits. -->
   7451         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
   7452         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7453         <exampleNumber>5612345678</exampleNumber>
   7454       </voip>
   7455       <uan>
   7456         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
   7457         <nationalNumberPattern>
   7458           (?:
   7459             3[0347]|
   7460             55
   7461           )\d{8}
   7462         </nationalNumberPattern>
   7463         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7464         <exampleNumber>5512345678</exampleNumber>
   7465       </uan>
   7466     </territory>
   7467 
   7468     <!-- Grenada -->
   7469     <!-- http://www.itu.int/oth/T0202000057/en -->
   7470     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
   7471                internationalPrefix="011">
   7472       <generalDesc>
   7473         <!-- NANPA country - uses US formatting rules -->
   7474         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
   7475         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   7476       </generalDesc>
   7477       <fixedLine>
   7478         <nationalNumberPattern>
   7479           473(?:
   7480             2(?:
   7481               3[0-2]|
   7482               69
   7483             )|
   7484             3(?:
   7485               2[89]|
   7486               86
   7487             )|
   7488             4(?:
   7489               [06]8|
   7490               3[5-9]|
   7491               4[0-49]|
   7492               5[5-79]|
   7493               68|
   7494               73|
   7495               90
   7496             )|
   7497             63[68]|
   7498             7(?:
   7499               58|
   7500               84
   7501             )|
   7502             938
   7503           )\d{4}
   7504         </nationalNumberPattern>
   7505         <exampleNumber>4732691234</exampleNumber>
   7506       </fixedLine>
   7507       <mobile>
   7508         <nationalNumberPattern>
   7509           473(?:
   7510             4(?:
   7511               0[3-79]|
   7512               1[04-9]|
   7513               20|
   7514               58
   7515             )|
   7516             53[3-8]
   7517           )\d{4}
   7518         </nationalNumberPattern>
   7519         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7520         <exampleNumber>4734031234</exampleNumber>
   7521       </mobile>
   7522       <tollFree>
   7523         <nationalNumberPattern>
   7524           8(?:
   7525             00|
   7526             55|
   7527             66|
   7528             77|
   7529             88
   7530           )[2-9]\d{6}
   7531         </nationalNumberPattern>
   7532         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7533         <exampleNumber>8002123456</exampleNumber>
   7534       </tollFree>
   7535       <premiumRate>
   7536         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   7537         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7538         <exampleNumber>9002123456</exampleNumber>
   7539       </premiumRate>
   7540       <personalNumber>
   7541         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   7542         <nationalNumberPattern>
   7543           5(?:
   7544             00|
   7545             33|
   7546             44
   7547           )[2-9]\d{6}
   7548         </nationalNumberPattern>
   7549         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7550         <exampleNumber>5002345678</exampleNumber>
   7551       </personalNumber>
   7552     </territory>
   7553 
   7554     <!-- Georgia -->
   7555     <!-- http://www.itu.int/oth/T0202000050/en -->
   7556     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia. -->
   7557     <territory id="GE" countryCode="995" internationalPrefix="00" nationalPrefix="0"
   7558                mobileNumberPortableRegion="true">
   7559       <availableFormats>
   7560         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
   7561              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
   7562         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
   7563           <leadingDigits>[348]</leadingDigits>
   7564           <format>$1 $2 $3 $4</format>
   7565         </numberFormat>
   7566         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
   7567           <leadingDigits>7</leadingDigits>
   7568           <format>$1 $2 $3</format>
   7569         </numberFormat>
   7570         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
   7571           <leadingDigits>5</leadingDigits>
   7572           <format>$1 $2 $3 $4</format>
   7573         </numberFormat>
   7574       </availableFormats>
   7575       <noInternationalDialling>
   7576         <!-- Online numbers mention that this is not internationally diallable. -->
   7577         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
   7578         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7579         <exampleNumber>706123456</exampleNumber>
   7580       </noInternationalDialling>
   7581       <generalDesc>
   7582         <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
   7583         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   7584       </generalDesc>
   7585       <fixedLine>
   7586         <nationalNumberPattern>
   7587           (?:
   7588             3(?:
   7589               [256]\d|
   7590               4[124-9]|
   7591               7[0-4]
   7592             )|
   7593             4(?:
   7594               1\d|
   7595               2[2-7]|
   7596               3[1-79]|
   7597               4[2-8]|
   7598               7[239]|
   7599               9[1-7]
   7600             )
   7601           )\d{6}
   7602         </nationalNumberPattern>
   7603         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   7604         <exampleNumber>322123456</exampleNumber>
   7605       </fixedLine>
   7606       <mobile>
   7607         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
   7608              about the change in numbers, and online numbers found. -->
   7609         <nationalNumberPattern>
   7610           5(?:
   7611             14|
   7612             5[01578]|
   7613             68|
   7614             7[0147-9]|
   7615             9[0-35-9]
   7616           )\d{6}
   7617         </nationalNumberPattern>
   7618         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7619         <exampleNumber>555123456</exampleNumber>
   7620       </mobile>
   7621       <!-- Information from www.yell.ge, examples such as Wissol Petroleum Georgia hotline. -->
   7622       <tollFree>
   7623         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   7624         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7625         <exampleNumber>800123456</exampleNumber>
   7626       </tollFree>
   7627       <voip>
   7628         <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
   7629         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
   7630         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7631         <exampleNumber>706123456</exampleNumber>
   7632       </voip>
   7633       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
   7634            these are omitted for now. -->
   7635     </territory>
   7636 
   7637     <!-- French Guiana (French Dept. of) -->
   7638     <!-- http://www.itu.int/oth/T020200004C/en -->
   7639     <!-- http://www.arcep.fr/index.php?id=2137&bloc=0594&CMD=RESULTS_NUMEROTATION -->
   7640     <!-- http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf -->
   7641     <!-- Using a national prefix here as online numbers are formatted with it. -->
   7642     <territory id="GF" countryCode="594" internationalPrefix="00"
   7643                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   7644       <availableFormats>
   7645         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   7646           <format>$1 $2 $3 $4</format>
   7647         </numberFormat>
   7648       </availableFormats>
   7649       <generalDesc>
   7650         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   7651         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7652       </generalDesc>
   7653       <fixedLine>
   7654         <nationalNumberPattern>
   7655           594(?:
   7656             10|
   7657             2[012457-9]|
   7658             3[0-57-9]|
   7659             4[3-9]|
   7660             5[7-9]|
   7661             6[0-3]|
   7662             9[014]
   7663           )\d{4}
   7664         </nationalNumberPattern>
   7665         <exampleNumber>594101234</exampleNumber>
   7666       </fixedLine>
   7667       <mobile>
   7668         <nationalNumberPattern>
   7669           694(?:
   7670             [04][0-7]|
   7671             1[0-5]|
   7672             3[018]|
   7673             [29]\d
   7674           )\d{4}
   7675         </nationalNumberPattern>
   7676         <exampleNumber>694201234</exampleNumber>
   7677       </mobile>
   7678       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
   7679            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
   7680            too. -->
   7681     </territory>
   7682 
   7683     <!-- Guernsey -->
   7684     <!-- Inherits formatting rules from the UK. -->
   7685     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
   7686     <territory id="GG" countryCode="44" internationalPrefix="00"
   7687                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
   7688       <generalDesc>
   7689         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
   7690         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   7691       </generalDesc>
   7692       <areaCodeOptional>
   7693         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
   7694         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7695         <exampleNumber>1481250123</exampleNumber>
   7696       </areaCodeOptional>
   7697       <!-- Specific to GG. -->
   7698       <fixedLine>
   7699         <!-- 1481 with 10 digits. -->
   7700         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
   7701         <exampleNumber>1481456789</exampleNumber>
   7702       </fixedLine>
   7703       <mobile>
   7704         <!-- 7781, 7839, 7911 with 10 digits. -->
   7705         <nationalNumberPattern>
   7706           7(?:
   7707             781|
   7708             839|
   7709             911
   7710           )\d{6}
   7711         </nationalNumberPattern>
   7712         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7713         <exampleNumber>7781123456</exampleNumber>
   7714       </mobile>
   7715       <!-- Other numbers as per GB. -->
   7716       <pager>
   7717         <nationalNumberPattern>
   7718           76(?:
   7719             0[012]|
   7720             2[356]|
   7721             4[0134]|
   7722             5[49]|
   7723             6[0-369]|
   7724             77|
   7725             81|
   7726             9[39]
   7727           )\d{6}
   7728         </nationalNumberPattern>
   7729         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7730         <exampleNumber>7640123456</exampleNumber>
   7731       </pager>
   7732       <tollFree>
   7733         <nationalNumberPattern>
   7734           80(?:
   7735             0(?:
   7736               1111|
   7737               \d{6,7}
   7738             )|
   7739             8\d{7}
   7740           )|
   7741           500\d{6}
   7742         </nationalNumberPattern>
   7743         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
   7744         <exampleNumber>8001234567</exampleNumber>
   7745       </tollFree>
   7746       <premiumRate>
   7747         <nationalNumberPattern>
   7748           (?:
   7749             87[123]|
   7750             9(?:
   7751               [01]\d|
   7752               8[0-3]
   7753             )
   7754           )\d{7}
   7755         </nationalNumberPattern>
   7756         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7757         <exampleNumber>9012345678</exampleNumber>
   7758       </premiumRate>
   7759       <sharedCost>
   7760         <nationalNumberPattern>
   7761           8(?:
   7762             4(?:
   7763               5464\d|
   7764               [2-5]\d{7}
   7765             )|
   7766             70\d{7}
   7767           )
   7768         </nationalNumberPattern>
   7769         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   7770         <exampleNumber>8431234567</exampleNumber>
   7771       </sharedCost>
   7772       <personalNumber>
   7773         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   7774         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7775         <exampleNumber>7012345678</exampleNumber>
   7776       </personalNumber>
   7777       <voip>
   7778         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
   7779         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7780         <exampleNumber>5612345678</exampleNumber>
   7781       </voip>
   7782       <uan>
   7783         <nationalNumberPattern>
   7784           (?:
   7785             3[0347]|
   7786             55
   7787           )\d{8}
   7788         </nationalNumberPattern>
   7789         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   7790         <exampleNumber>5512345678</exampleNumber>
   7791       </uan>
   7792     </territory>
   7793 
   7794     <!-- Ghana -->
   7795     <!-- http://www.itu.int/oth/T0202000052/en -->
   7796     <!-- http://www.nca.org.gh/index.php?option=com_content&view=article&id=90&Itemid=65 -->
   7797     <territory id="GH" countryCode="233" internationalPrefix="00"
   7798                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   7799                mobileNumberPortableRegion="true">
   7800       <availableFormats>
   7801         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   7802           <leadingDigits>[235]</leadingDigits>
   7803           <format>$1 $2 $3</format>
   7804         </numberFormat>
   7805         <numberFormat pattern="(\d{3})(\d{5})">
   7806           <leadingDigits>8</leadingDigits>
   7807           <format>$1 $2</format>
   7808         </numberFormat>
   7809       </availableFormats>
   7810       <generalDesc>
   7811         <nationalNumberPattern>
   7812           [235]\d{8}|
   7813           8\d{7}
   7814         </nationalNumberPattern>
   7815         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   7816       </generalDesc>
   7817       <noInternationalDialling>
   7818         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   7819         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   7820         <exampleNumber>80012345</exampleNumber>
   7821       </noInternationalDialling>
   7822       <fixedLine>
   7823         <nationalNumberPattern>
   7824           3(?:
   7825             0[237]\d|
   7826             [167](?:
   7827               2[0-6]|
   7828               7\d
   7829             )|
   7830             2(?:
   7831               2[0-5]|
   7832               7\d
   7833             )|
   7834             3(?:
   7835               2[0-3]|
   7836               7\d
   7837             )|
   7838             4(?:
   7839               2[013-9]|
   7840               3[01]|
   7841               7\d
   7842             )|
   7843             5(?:
   7844               2[0-7]|
   7845               7\d
   7846             )|
   7847             8(?:
   7848               2[0-2]|
   7849               7\d
   7850             )|
   7851             9(?:
   7852               20|
   7853               7\d
   7854             )
   7855           )\d{5}
   7856         </nationalNumberPattern>
   7857         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   7858         <exampleNumber>302345678</exampleNumber>
   7859       </fixedLine>
   7860       <mobile>
   7861         <nationalNumberPattern>
   7862           (?:
   7863             2[034678]|
   7864             5[047]
   7865           )\d{7}
   7866         </nationalNumberPattern>
   7867         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   7868         <exampleNumber>231234567</exampleNumber>
   7869       </mobile>
   7870       <tollFree>
   7871         <!-- Found online references to these numbers, although they are not in the plan since they
   7872              are not internationally diallable. -->
   7873         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   7874         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   7875         <exampleNumber>80012345</exampleNumber>
   7876       </tollFree>
   7877       <!-- No premiumRate information can be found. -->
   7878     </territory>
   7879 
   7880     <!-- Gibraltar -->
   7881     <!-- http://www.gra.gi/index.php?topic=numbering+plan§ion=legislation&site=communications -->
   7882     <territory id="GI" countryCode="350" internationalPrefix="00">
   7883       <availableFormats>
   7884         <!-- Most numbers are formatted as a block -->
   7885         <numberFormat pattern="(\d{3})(\d{5})">
   7886           <leadingDigits>2</leadingDigits>
   7887           <format>$1 $2</format>
   7888         </numberFormat>
   7889       </availableFormats>
   7890       <generalDesc>
   7891         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
   7892         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   7893       </generalDesc>
   7894       <fixedLine>
   7895         <nationalNumberPattern>
   7896           2(?:
   7897             00\d|
   7898             1(?:
   7899               6[24-7]|
   7900               9\d
   7901             )|
   7902             2(?:
   7903               00|
   7904               2[2457]
   7905             )
   7906           )\d{4}
   7907         </nationalNumberPattern>
   7908         <exampleNumber>20012345</exampleNumber>
   7909       </fixedLine>
   7910       <mobile>
   7911         <nationalNumberPattern>
   7912           (?:
   7913             5[46-8]|
   7914             62
   7915           )\d{6}
   7916         </nationalNumberPattern>
   7917         <exampleNumber>57123456</exampleNumber>
   7918       </mobile>
   7919       <tollFree>
   7920         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   7921         <exampleNumber>80123456</exampleNumber>
   7922       </tollFree>
   7923       <premiumRate>
   7924         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
   7925         <exampleNumber>88123456</exampleNumber>
   7926       </premiumRate>
   7927       <sharedCost>
   7928         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
   7929         <exampleNumber>87123456</exampleNumber>
   7930       </sharedCost>
   7931     </territory>
   7932 
   7933     <!-- Greenland -->
   7934     <!-- http://www.itu.int/oth/T0202000056/en -->
   7935     <territory id="GL" countryCode="299" internationalPrefix="00">
   7936       <availableFormats>
   7937         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   7938           <format>$1 $2 $3</format>
   7939         </numberFormat>
   7940       </availableFormats>
   7941       <generalDesc>
   7942         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
   7943         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   7944       </generalDesc>
   7945       <fixedLine>
   7946         <!-- Including VSAT numbers here. -->
   7947         <nationalNumberPattern>
   7948           (?:
   7949             19|
   7950             3[1-6]|
   7951             6[14689]|
   7952             8[14-79]|
   7953             9\d
   7954           )\d{4}
   7955         </nationalNumberPattern>
   7956         <exampleNumber>321000</exampleNumber>
   7957       </fixedLine>
   7958       <mobile>
   7959         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
   7960         <exampleNumber>221234</exampleNumber>
   7961       </mobile>
   7962       <tollFree>
   7963         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
   7964         <exampleNumber>801234</exampleNumber>
   7965       </tollFree>
   7966       <voip>
   7967         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
   7968         <exampleNumber>381234</exampleNumber>
   7969       </voip>
   7970     </territory>
   7971 
   7972     <!-- Gambia -->
   7973     <!-- http://www.itu.int/oth/T020200004F/en -->
   7974     <territory id="GM" countryCode="220" internationalPrefix="00">
   7975       <availableFormats>
   7976         <numberFormat pattern="(\d{3})(\d{4})">
   7977           <format>$1 $2</format>
   7978         </numberFormat>
   7979       </availableFormats>
   7980       <generalDesc>
   7981         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
   7982         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   7983       </generalDesc>
   7984       <fixedLine>
   7985         <nationalNumberPattern>
   7986           (?:
   7987             4(?:
   7988               [23]\d{2}|
   7989               4(?:
   7990                 1[024679]|
   7991                 [6-9]\d
   7992               )
   7993             )|
   7994             5(?:
   7995               54[0-7]|
   7996               6(?:
   7997                 [67]\d
   7998               )|
   7999               7(?:
   8000                 1[04]|
   8001                 2[035]|
   8002                 3[58]|
   8003                 48
   8004               )
   8005             )|
   8006             8\d{3}
   8007           )\d{3}
   8008         </nationalNumberPattern>
   8009         <exampleNumber>5661234</exampleNumber>
   8010       </fixedLine>
   8011       <mobile>
   8012         <nationalNumberPattern>
   8013           (?:
   8014             2[0-6]|
   8015             [3679]\d
   8016           )\d{5}
   8017         </nationalNumberPattern>
   8018         <exampleNumber>3012345</exampleNumber>
   8019       </mobile>
   8020     </territory>
   8021 
   8022     <!-- Guinea -->
   8023     <!-- http://www.itu.int/oth/T020200005B/en -->
   8024     <territory id="GN" countryCode="224" internationalPrefix="00">
   8025       <availableFormats>
   8026         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   8027           <leadingDigits>3</leadingDigits>
   8028           <format>$1 $2 $3 $4</format>
   8029         </numberFormat>
   8030         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   8031           <leadingDigits>[67]</leadingDigits>
   8032           <format>$1 $2 $3 $4</format>
   8033         </numberFormat>
   8034       </availableFormats>
   8035       <generalDesc>
   8036         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
   8037         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   8038       </generalDesc>
   8039       <fixedLine>
   8040         <nationalNumberPattern>
   8041           30(?:
   8042             24|
   8043             3[12]|
   8044             4[1-35-7]|
   8045             5[13]|
   8046             6[189]|
   8047             [78]1|
   8048             9[1478]
   8049           )\d{4}
   8050         </nationalNumberPattern>
   8051         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8052         <exampleNumber>30241234</exampleNumber>
   8053       </fixedLine>
   8054       <mobile>
   8055         <!-- Limited to the new 9-digit mobile ranges, which came into effect March 29th 2013. -->
   8056         <nationalNumberPattern>
   8057           6(?:
   8058             [03]1|
   8059             2[128]|
   8060             5[57]|
   8061             6[2469]
   8062           )\d{6}
   8063         </nationalNumberPattern>
   8064         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8065         <exampleNumber>601123456</exampleNumber>
   8066       </mobile>
   8067       <voip>
   8068         <!-- Gamma concept network is being listed as VoIP as per
   8069              http://www.gammaconcept.com/internet%20sat.html -->
   8070         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
   8071         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8072         <exampleNumber>722123456</exampleNumber>
   8073       </voip>
   8074     </territory>
   8075 
   8076     <!-- Guadeloupe -->
   8077     <!-- http://www.itu.int/oth/T0202000058/en -->
   8078     <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
   8079     <territory id="GP" countryCode="590" internationalPrefix="00"
   8080                mainCountryForCode="true" nationalPrefix="0"
   8081                nationalPrefixFormattingRule="$NP$FG">
   8082       <availableFormats>
   8083         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
   8084           <format>$1 $2-$3</format>
   8085         </numberFormat>
   8086       </availableFormats>
   8087       <generalDesc>
   8088         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   8089         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8090       </generalDesc>
   8091       <fixedLine>
   8092         <nationalNumberPattern>
   8093           590(?:
   8094             0[13468]|
   8095             1[012]|
   8096             2[0-68]|
   8097             3[28]|
   8098             4[0-8]|
   8099             5[579]|
   8100             6[0189]|
   8101             70|
   8102             8[0-689]|
   8103             9\d
   8104           )\d{4}
   8105         </nationalNumberPattern>
   8106         <exampleNumber>590201234</exampleNumber>
   8107       </fixedLine>
   8108       <mobile>
   8109         <!-- Any ranges assigned from
   8110              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
   8111              Guadeloupe, St Martin and St Barthlemy, since we can't reliably distinguish between
   8112              them. -->
   8113         <nationalNumberPattern>
   8114           690(?:
   8115             0[0-7]|
   8116             [1-9]\d
   8117           )\d{4}
   8118         </nationalNumberPattern>
   8119         <exampleNumber>690301234</exampleNumber>
   8120       </mobile>
   8121     </territory>
   8122 
   8123     <!-- Equatorial Guinea -->
   8124     <!-- http://www.itu.int/oth/T0202000041/en -->
   8125     <territory id="GQ" countryCode="240" internationalPrefix="00">
   8126       <availableFormats>
   8127         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   8128           <leadingDigits>[235]</leadingDigits>
   8129           <format>$1 $2 $3</format>
   8130         </numberFormat>
   8131         <numberFormat pattern="(\d{3})(\d{6})">
   8132           <leadingDigits>[89]</leadingDigits>
   8133           <format>$1 $2</format>
   8134         </numberFormat>
   8135       </availableFormats>
   8136       <generalDesc>
   8137         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
   8138         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8139       </generalDesc>
   8140       <fixedLine>
   8141         <nationalNumberPattern>
   8142           3(?:
   8143             3(?:
   8144               3\d[7-9]|
   8145               [0-24-9]\d[46]
   8146             )|
   8147             5\d{2}[7-9]
   8148           )\d{4}
   8149         </nationalNumberPattern>
   8150         <exampleNumber>333091234</exampleNumber>
   8151       </fixedLine>
   8152       <mobile>
   8153         <nationalNumberPattern>
   8154           (?:
   8155             222|
   8156             551
   8157           )\d{6}
   8158         </nationalNumberPattern>
   8159         <exampleNumber>222123456</exampleNumber>
   8160       </mobile>
   8161       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
   8162            they start allocating them there will be a differentiation of prefixes, but this is not
   8163            clear now. -->
   8164       <tollFree>
   8165         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
   8166         <exampleNumber>800123456</exampleNumber>
   8167       </tollFree>
   8168       <premiumRate>
   8169         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
   8170         <exampleNumber>900123456</exampleNumber>
   8171       </premiumRate>
   8172     </territory>
   8173 
   8174     <!-- Greece -->
   8175     <!-- http://www.itu.int/oth/T0202000055/en -->
   8176     <!-- http://en.wikipedia.org/wiki/%2B30 -->
   8177     <territory id="GR" countryCode="30" internationalPrefix="00" mobileNumberPortableRegion="true">
   8178       <availableFormats>
   8179         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
   8180           <leadingDigits>
   8181             21|
   8182             7
   8183           </leadingDigits>
   8184           <format>$1 $2 $3</format>
   8185         </numberFormat>
   8186         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   8187           <leadingDigits>
   8188             2[2-9]1|
   8189             [689]
   8190           </leadingDigits>
   8191           <format>$1 $2 $3</format>
   8192         </numberFormat>
   8193         <numberFormat pattern="(2\d{3})(\d{6})">
   8194           <leadingDigits>2[2-9][02-9]</leadingDigits>
   8195           <format>$1 $2</format>
   8196         </numberFormat>
   8197       </availableFormats>
   8198       <generalDesc>
   8199         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
   8200         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8201       </generalDesc>
   8202       <fixedLine>
   8203         <nationalNumberPattern>
   8204           2(?:
   8205             1\d{2}|
   8206             2(?:
   8207               3[1-8]|
   8208               4[1-7]|
   8209               5[1-4]|
   8210               6[1-8]|
   8211               7[1-5]|
   8212               [289][1-9]
   8213             )|
   8214             3(?:
   8215               1\d|
   8216               2[1-57]|
   8217               3[1-4]|
   8218               [45][1-3]|
   8219               7[1-7]|
   8220               8[1-6]|
   8221               9[1-79]
   8222             )|
   8223             4(?:
   8224               1\d|
   8225               2[1-8]|
   8226               3[1-4]|
   8227               4[13-5]|
   8228               6[1-578]|
   8229               9[1-5]
   8230             )|
   8231             5(?:
   8232               1\d|
   8233               [239][1-4]|
   8234               4[124]|
   8235               5[1-6]
   8236             )|
   8237             6(?:
   8238               1\d|
   8239               3[124]|
   8240               4[1-7]|
   8241               5[13-9]|
   8242               [269][1-6]|
   8243               7[14]|
   8244               8[1-5]
   8245             )|
   8246             7(?:
   8247               1\d|
   8248               2[1-5]|
   8249               3[1-6]|
   8250               4[1-7]|
   8251               5[1-57]|
   8252               6[134]|
   8253               9[15-7]
   8254             )|
   8255             8(?:
   8256               1\d|
   8257               2[1-5]|
   8258               [34][1-4]|
   8259               9[1-7]
   8260             )
   8261           )\d{6}
   8262         </nationalNumberPattern>
   8263         <exampleNumber>2123456789</exampleNumber>
   8264       </fixedLine>
   8265       <mobile>
   8266         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
   8267         <exampleNumber>6912345678</exampleNumber>
   8268       </mobile>
   8269       <tollFree>
   8270         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   8271         <exampleNumber>8001234567</exampleNumber>
   8272       </tollFree>
   8273       <premiumRate>
   8274         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
   8275         <exampleNumber>9091234567</exampleNumber>
   8276       </premiumRate>
   8277       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
   8278            rate. -->
   8279       <sharedCost>
   8280         <nationalNumberPattern>
   8281           8(?:
   8282             0[16]|
   8283             12|
   8284             25
   8285           )\d{7}
   8286         </nationalNumberPattern>
   8287         <exampleNumber>8011234567</exampleNumber>
   8288       </sharedCost>
   8289       <personalNumber>
   8290         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   8291         <exampleNumber>7012345678</exampleNumber>
   8292       </personalNumber>
   8293     </territory>
   8294 
   8295     <!-- Guatemala -->
   8296     <!-- http://www.itu.int/oth/T020200005A/en -->
   8297     <!-- http://www.sit.gob.gt/index.php?page=plan-de-numeracion -->
   8298     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala -->
   8299     <territory id="GT" countryCode="502" internationalPrefix="00">
   8300       <availableFormats>
   8301         <numberFormat pattern="(\d{4})(\d{4})">
   8302           <leadingDigits>[2-7]</leadingDigits>
   8303           <format>$1 $2</format>
   8304         </numberFormat>
   8305         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
   8306           <leadingDigits>1</leadingDigits>
   8307           <format>$1 $2 $3</format>
   8308         </numberFormat>
   8309       </availableFormats>
   8310       <generalDesc>
   8311         <nationalNumberPattern>
   8312           [2-7]\d{7}|
   8313           1[89]\d{9}
   8314         </nationalNumberPattern>
   8315         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
   8316       </generalDesc>
   8317       <fixedLine>
   8318         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
   8319         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8320         <exampleNumber>22456789</exampleNumber>
   8321       </fixedLine>
   8322       <mobile>
   8323         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
   8324              they are just reserved. -->
   8325         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
   8326         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8327         <exampleNumber>51234567</exampleNumber>
   8328       </mobile>
   8329       <tollFree>
   8330         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
   8331         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   8332         <exampleNumber>18001112222</exampleNumber>
   8333       </tollFree>
   8334       <premiumRate>
   8335         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
   8336         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   8337         <exampleNumber>19001112222</exampleNumber>
   8338       </premiumRate>
   8339     </territory>
   8340 
   8341     <!-- Guam -->
   8342     <!-- http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel -->
   8343     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
   8344                internationalPrefix="011">
   8345       <generalDesc>
   8346         <!-- NANPA country - uses US formatting rules -->
   8347         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   8348         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   8349       </generalDesc>
   8350       <fixedLine>
   8351         <!-- Added 671 489/555/720/721 based on information from
   8352              http://www.area-codes.com/area-code/area-code-671.asp -->
   8353         <nationalNumberPattern>
   8354           671(?:
   8355             3(?:
   8356               00|
   8357               3[39]|
   8358               4[349]|
   8359               55|
   8360               6[26]
   8361             )|
   8362             4(?:
   8363               56|
   8364               7[1-9]|
   8365               8[236-9]
   8366             )|
   8367             5(?:
   8368               55|
   8369               6[2-5]|
   8370               88
   8371             )|
   8372             6(?:
   8373               3[2-578]|
   8374               4[24-9]|
   8375               5[34]|
   8376               78|
   8377               8[5-9]
   8378             )|
   8379             7(?:
   8380               [079]7|
   8381               2[0167]|
   8382               3[45]|
   8383               8[789]
   8384             )|
   8385             8(?:
   8386               [2-5789]8|
   8387               6[48]
   8388             )|
   8389             9(?:
   8390               2[29]|
   8391               6[79]|
   8392               7[179]|
   8393               8[789]|
   8394               9[78]
   8395             )
   8396           )\d{4}
   8397         </nationalNumberPattern>
   8398         <exampleNumber>6713001234</exampleNumber>
   8399       </fixedLine>
   8400       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
   8401            -->
   8402       <mobile>
   8403         <nationalNumberPattern>
   8404           671(?:
   8405             3(?:
   8406               00|
   8407               3[39]|
   8408               4[349]|
   8409               55|
   8410               6[26]
   8411             )|
   8412             4(?:
   8413               56|
   8414               7[1-9]|
   8415               8[236-9]
   8416             )|
   8417             5(?:
   8418               55|
   8419               6[2-5]|
   8420               88
   8421             )|
   8422             6(?:
   8423               3[2-578]|
   8424               4[24-9]|
   8425               5[34]|
   8426               78|
   8427               8[5-9]
   8428             )|
   8429             7(?:
   8430               [079]7|
   8431               2[0167]|
   8432               3[45]|
   8433               8[789]
   8434             )|
   8435             8(?:
   8436               [2-5789]8|
   8437               6[48]
   8438             )|
   8439             9(?:
   8440               2[29]|
   8441               6[79]|
   8442               7[179]|
   8443               8[789]|
   8444               9[78]
   8445             )
   8446           )\d{4}
   8447         </nationalNumberPattern>
   8448         <exampleNumber>6713001234</exampleNumber>
   8449       </mobile>
   8450       <tollFree>
   8451         <nationalNumberPattern>
   8452           8(?:
   8453             00|
   8454             55|
   8455             66|
   8456             77|
   8457             88
   8458           )[2-9]\d{6}
   8459         </nationalNumberPattern>
   8460         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8461         <exampleNumber>8002123456</exampleNumber>
   8462       </tollFree>
   8463       <premiumRate>
   8464         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   8465         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8466         <exampleNumber>9002123456</exampleNumber>
   8467       </premiumRate>
   8468       <personalNumber>
   8469         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   8470         <nationalNumberPattern>
   8471           5(?:
   8472             00|
   8473             33|
   8474             44
   8475           )[2-9]\d{6}
   8476         </nationalNumberPattern>
   8477         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   8478         <exampleNumber>5002345678</exampleNumber>
   8479       </personalNumber>
   8480     </territory>
   8481 
   8482     <!-- Guinea-Bissau -->
   8483     <!-- http://www.itu.int/oth/T020200005C/en -->
   8484     <territory id="GW" countryCode="245" internationalPrefix="00">
   8485       <availableFormats>
   8486         <numberFormat pattern="(\d{3})(\d{4})">
   8487           <format>$1 $2</format>
   8488         </numberFormat>
   8489       </availableFormats>
   8490       <generalDesc>
   8491         <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
   8492         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   8493       </generalDesc>
   8494       <fixedLine>
   8495         <nationalNumberPattern>
   8496           3(?:
   8497             2[0125]|
   8498             3[1245]|
   8499             4[12]|
   8500             5[1-4]|
   8501             70|
   8502             9[1-467]
   8503           )\d{4}
   8504         </nationalNumberPattern>
   8505         <exampleNumber>3201234</exampleNumber>
   8506       </fixedLine>
   8507       <mobile>
   8508         <nationalNumberPattern>
   8509           (?:
   8510             [5-7]\d|
   8511             9[012]
   8512           )\d{5}
   8513         </nationalNumberPattern>
   8514         <exampleNumber>5012345</exampleNumber>
   8515       </mobile>
   8516       <voip>
   8517         <nationalNumberPattern>40\d{5}</nationalNumberPattern>
   8518         <exampleNumber>4012345</exampleNumber>
   8519       </voip>
   8520     </territory>
   8521 
   8522     <!-- Guyana -->
   8523     <!-- http://www.itu.int/oth/T020200005D/en -->
   8524     <territory id="GY" countryCode="592" internationalPrefix="001">
   8525       <availableFormats>
   8526         <numberFormat pattern="(\d{3})(\d{4})">
   8527           <format>$1 $2</format>
   8528         </numberFormat>
   8529       </availableFormats>
   8530       <generalDesc>
   8531         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
   8532         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   8533       </generalDesc>
   8534       <fixedLine>
   8535         <nationalNumberPattern>
   8536           (?:
   8537             2(?:
   8538               1[6-9]|
   8539               2[0-35-9]|
   8540               3[1-4]|
   8541               5[3-9]|
   8542               6\d|
   8543               7[0-24-79]
   8544             )|
   8545             3(?:
   8546               2[25-9]|
   8547               3\d
   8548             )|
   8549             4(?:
   8550               4[0-24]|
   8551               5[56]
   8552             )|
   8553             77[1-57]
   8554           )\d{4}
   8555         </nationalNumberPattern>
   8556         <exampleNumber>2201234</exampleNumber>
   8557       </fixedLine>
   8558       <mobile>
   8559         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
   8560              that SMS messages have been succesfully sent to numbers in the entire range prefixed
   8561              with 6. -->
   8562         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
   8563         <exampleNumber>6091234</exampleNumber>
   8564       </mobile>
   8565       <tollFree>
   8566         <nationalNumberPattern>
   8567           (?:
   8568             289|
   8569             862
   8570           )\d{4}
   8571         </nationalNumberPattern>
   8572         <exampleNumber>2891234</exampleNumber>
   8573       </tollFree>
   8574       <premiumRate>
   8575         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
   8576         <exampleNumber>9008123</exampleNumber>
   8577       </premiumRate>
   8578     </territory>
   8579 
   8580     <!-- Hong Kong -->
   8581     <!-- http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html -->
   8582     <territory id="HK" countryCode="852" internationalPrefix="00" mobileNumberPortableRegion="true">
   8583       <availableFormats>
   8584         <numberFormat pattern="(\d{4})(\d{4})">
   8585           <leadingDigits>
   8586             [235-7]|
   8587             [89](?:
   8588               0[1-9]|
   8589               [1-9]
   8590             )
   8591           </leadingDigits>
   8592           <format>$1 $2</format>
   8593         </numberFormat>
   8594         <numberFormat pattern="(800)(\d{3})(\d{3})">
   8595           <leadingDigits>800</leadingDigits>
   8596           <format>$1 $2 $3</format>
   8597         </numberFormat>
   8598         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
   8599           <leadingDigits>900</leadingDigits>
   8600           <format>$1 $2 $3 $4</format>
   8601         </numberFormat>
   8602         <numberFormat pattern="(900)(\d{2,5})">
   8603           <leadingDigits>900</leadingDigits>
   8604           <format>$1 $2</format>
   8605         </numberFormat>
   8606       </availableFormats>
   8607       <generalDesc>
   8608         <!-- Slightly more complex pattern to allow the country code to be stripped off if
   8609              necessary. -->
   8610         <nationalNumberPattern>
   8611           [235-7]\d{7}|
   8612           8\d{7,8}|
   8613           9\d{4,10}
   8614         </nationalNumberPattern>
   8615         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
   8616       </generalDesc>
   8617       <fixedLine>
   8618         <nationalNumberPattern>
   8619           (?:
   8620             [23]\d|
   8621             5[78]
   8622           )\d{6}
   8623         </nationalNumberPattern>
   8624         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8625         <exampleNumber>21234567</exampleNumber>
   8626       </fixedLine>
   8627       <mobile>
   8628         <nationalNumberPattern>
   8629           (?:
   8630             5[1-69]\d|
   8631             6\d{2}|
   8632             9(?:
   8633               0[1-9]|
   8634               [1-8]\d
   8635             )
   8636           )\d{5}
   8637         </nationalNumberPattern>
   8638         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8639         <exampleNumber>51234567</exampleNumber>
   8640       </mobile>
   8641       <pager>
   8642         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
   8643         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8644         <exampleNumber>71234567</exampleNumber>
   8645       </pager>
   8646       <tollFree>
   8647         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   8648         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8649         <exampleNumber>800123456</exampleNumber>
   8650       </tollFree>
   8651       <premiumRate>
   8652         <nationalNumberPattern>
   8653           900(?:
   8654             [0-24-9]\d{7}|
   8655             3\d{1,4}
   8656           )
   8657         </nationalNumberPattern>
   8658         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
   8659         <exampleNumber>90012345678</exampleNumber>
   8660       </premiumRate>
   8661       <personalNumber>
   8662         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
   8663         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8664         <exampleNumber>81123456</exampleNumber>
   8665       </personalNumber>
   8666    </territory>
   8667 
   8668     <!-- Honduras -->
   8669     <!-- http://www.itu.int/oth/T020200005F/en -->
   8670     <!-- It seems there is no longer a trunk prefix in use, based on websites like
   8671          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
   8672          national format. -->
   8673     <territory id="HN" countryCode="504" internationalPrefix="00" >
   8674       <availableFormats>
   8675        <numberFormat pattern="(\d{4})(\d{4})">
   8676          <format>$1-$2</format>
   8677        </numberFormat>
   8678       </availableFormats>
   8679       <generalDesc>
   8680         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
   8681         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8682       </generalDesc>
   8683       <fixedLine>
   8684         <!-- Extra prefixes 227[01389], 228X and 2292 were added from numbers found online. -->
   8685         <nationalNumberPattern>
   8686           2(?:
   8687             2(?:
   8688               0[019]|
   8689               1[1-36]|
   8690               [23]\d|
   8691               4[056]|
   8692               5[57]|
   8693               7[01389]|
   8694               8[0146-9]|
   8695               9[012]
   8696             )|
   8697             4(?:
   8698               2[3-59]|
   8699               3[13-689]|
   8700               4[0-68]|
   8701               5[1-35]
   8702             )|
   8703             5(?:
   8704               4[3-5]|
   8705               5\d|
   8706               6[56]|
   8707               74
   8708             )|
   8709             6(?:
   8710               4[0-378]|
   8711               [56]\d|
   8712               [78][0-8]|
   8713               9[01]
   8714             )|
   8715             7(?:
   8716               6[46-9]|
   8717               7[02-9]|
   8718               8[34]
   8719             )|
   8720             8(?:
   8721               79|
   8722               8[0-35789]|
   8723               9[1-57-9]
   8724             )
   8725           )\d{4}
   8726         </nationalNumberPattern>
   8727         <exampleNumber>22123456</exampleNumber>
   8728       </fixedLine>
   8729       <mobile>
   8730         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
   8731         <exampleNumber>91234567</exampleNumber>
   8732       </mobile>
   8733     </territory>
   8734 
   8735     <!-- Croatia -->
   8736     <!-- http://www.itu.int/oth/T0202000032/en -->
   8737     <!-- http://en.wikipedia.org/wiki/%2B385 -->
   8738     <territory id="HR" countryCode="385" internationalPrefix="00"
   8739                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   8740                mobileNumberPortableRegion="true">
   8741       <availableFormats>
   8742         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
   8743              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
   8744              XXXX as well. -->
   8745        <numberFormat pattern="(1)(\d{4})(\d{3})">
   8746          <leadingDigits>1</leadingDigits>
   8747          <format>$1 $2 $3</format>
   8748        </numberFormat>
   8749        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
   8750          <leadingDigits>6[09]</leadingDigits>
   8751          <format>$1 $2 $3</format>
   8752        </numberFormat>
   8753        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
   8754          <leadingDigits>62</leadingDigits>
   8755          <format>$1 $2 $3</format>
   8756        </numberFormat>
   8757        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
   8758          <leadingDigits>[2-5]</leadingDigits>
   8759           <format>$1 $2 $3</format>
   8760         </numberFormat>
   8761         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
   8762           <leadingDigits>9</leadingDigits>
   8763           <format>$1 $2 $3</format>
   8764         </numberFormat>
   8765         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
   8766           <leadingDigits>9</leadingDigits>
   8767           <format>$1 $2 $3</format>
   8768         </numberFormat>
   8769         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
   8770           <leadingDigits>9</leadingDigits>
   8771           <format>$1 $2 $3 $4</format>
   8772         </numberFormat>
   8773         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
   8774           <leadingDigits>
   8775             6[145]|
   8776             7
   8777           </leadingDigits>
   8778           <format>$1 $2 $3</format>
   8779         </numberFormat>
   8780         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
   8781           <leadingDigits>
   8782             6[145]|
   8783             7
   8784           </leadingDigits>
   8785           <format>$1 $2 $3</format>
   8786         </numberFormat>
   8787         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
   8788           <leadingDigits>8</leadingDigits>
   8789           <format>$1 $2 $3</format>
   8790         </numberFormat>
   8791         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
   8792           <leadingDigits>8</leadingDigits>
   8793           <format>$1 $2 $3</format>
   8794         </numberFormat>
   8795       </availableFormats>
   8796       <generalDesc>
   8797         <nationalNumberPattern>
   8798           [1-7]\d{5,8}|
   8799           [89]\d{6,11}
   8800         </nationalNumberPattern>
   8801         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   8802       </generalDesc>
   8803       <fixedLine>
   8804         <nationalNumberPattern>
   8805           1\d{7}|
   8806           (?:
   8807             2[0-3]|
   8808             3[1-5]|
   8809             4[02-47-9]|
   8810             5[1-3]
   8811           )\d{6}
   8812         </nationalNumberPattern>
   8813         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   8814         <exampleNumber>12345678</exampleNumber>
   8815       </fixedLine>
   8816       <uan>
   8817         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
   8818              are numbers on the internet with 6 or 7 digits after the prefix. -->
   8819         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
   8820         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   8821         <exampleNumber>62123456</exampleNumber>
   8822       </uan>
   8823       <mobile>
   8824         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
   8825         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
   8826         <exampleNumber>912345678</exampleNumber>
   8827       </mobile>
   8828       <tollFree>
   8829         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
   8830         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   8831         <exampleNumber>8001234567</exampleNumber>
   8832       </tollFree>
   8833       <premiumRate>
   8834         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
   8835              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
   8836              -->
   8837         <nationalNumberPattern>
   8838           6(?:
   8839             [09]\d{7}|
   8840             [145]\d{4,7}
   8841           )
   8842         </nationalNumberPattern>
   8843         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   8844         <exampleNumber>611234</exampleNumber>
   8845       </premiumRate>
   8846       <personalNumber>
   8847         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
   8848         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   8849         <exampleNumber>741234567</exampleNumber>
   8850       </personalNumber>
   8851     </territory>
   8852 
   8853     <!-- Haiti -->
   8854     <!-- http://www.itu.int/oth/T020200005E/en -->
   8855     <!-- http://www.numberingplans.com/ -->
   8856     <territory id="HT" countryCode="509" internationalPrefix="00">
   8857       <availableFormats>
   8858         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
   8859           <format>$1 $2 $3</format>
   8860         </numberFormat>
   8861       </availableFormats>
   8862       <generalDesc>
   8863         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
   8864         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8865       </generalDesc>
   8866       <fixedLine>
   8867         <!-- The prefix 24 seems to be also used, based on online searches. -->
   8868         <nationalNumberPattern>
   8869           2(?:
   8870             [24]\d|
   8871             5[1-5]|
   8872             94
   8873           )\d{5}
   8874         </nationalNumberPattern>
   8875         <exampleNumber>22453300</exampleNumber>
   8876       </fixedLine>
   8877       <mobile>
   8878         <!-- The prefix 31 seems to be also used, based on online searches. -->
   8879         <nationalNumberPattern>
   8880           (?:
   8881             3[1-9]|
   8882             4\d
   8883           )\d{6}
   8884         </nationalNumberPattern>
   8885         <exampleNumber>34101234</exampleNumber>
   8886       </mobile>
   8887       <tollFree>
   8888         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
   8889              without making any further distinction. However, http://www.numberingplans.com/ seems
   8890              to suggest they are free. -->
   8891         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
   8892         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8893         <exampleNumber>80012345</exampleNumber>
   8894       </tollFree>
   8895       <voip>
   8896         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
   8897              98[89]\d{5}. -->
   8898         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
   8899         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8900         <exampleNumber>98901234</exampleNumber>
   8901       </voip>
   8902     </territory>
   8903 
   8904     <!-- Hungary -->
   8905     <!-- http://www.itu.int/oth/T0202000061/en -->
   8906     <territory id="HU" countryCode="36" internationalPrefix="00"
   8907                nationalPrefix="06" nationalPrefixFormattingRule="($FG)"
   8908                mobileNumberPortableRegion="true">
   8909       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
   8910            by a Hungarian person and following the yellow pages) is to omit this when formatting.
   8911            Yellow pages: www.aranyoldalak.hu -->
   8912       <availableFormats>
   8913         <numberFormat pattern="(1)(\d{3})(\d{4})">
   8914           <leadingDigits>1</leadingDigits>
   8915           <format>$1 $2 $3</format>
   8916         </numberFormat>
   8917         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   8918           <leadingDigits>[2-9]</leadingDigits>
   8919           <format>$1 $2 $3</format>
   8920         </numberFormat>
   8921       </availableFormats>
   8922       <generalDesc>
   8923         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
   8924         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   8925       </generalDesc>
   8926       <fixedLine>
   8927         <!-- Includes numbers for corporate networks. -->
   8928         <nationalNumberPattern>
   8929           (?:
   8930             1\d|
   8931             2(?:
   8932               1\d|
   8933               [2-9]
   8934             )|
   8935             3[2-7]|
   8936             4[24-9]|
   8937             5[2-79]|
   8938             6[23689]|
   8939             7(?:
   8940               1\d|
   8941               [2-9]
   8942             )|
   8943             8[2-57-9]|
   8944             9[2-69]
   8945           )\d{6}
   8946         </nationalNumberPattern>
   8947         <exampleNumber>12345678</exampleNumber>
   8948       </fixedLine>
   8949       <mobile>
   8950         <nationalNumberPattern>
   8951           (?:
   8952             [27]0|
   8953             3[01]
   8954           )\d{7}
   8955         </nationalNumberPattern>
   8956         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   8957         <exampleNumber>201234567</exampleNumber>
   8958       </mobile>
   8959       <tollFree>
   8960         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   8961         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8962         <exampleNumber>80123456</exampleNumber>
   8963       </tollFree>
   8964       <premiumRate>
   8965         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
   8966         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8967         <exampleNumber>90123456</exampleNumber>
   8968       </premiumRate>
   8969       <sharedCost>
   8970         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
   8971         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   8972         <exampleNumber>40123456</exampleNumber>
   8973       </sharedCost>
   8974     </territory>
   8975 
   8976     <!-- Indonesia -->
   8977     <!-- http://www.itu.int/oth/T0202000064/en (from 2001, very out-of-date) -->
   8978     <!-- http://en.wikipedia.org/wiki/%2B62 -->
   8979     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
   8980                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   8981       <availableFormats>
   8982         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   8983           pattern="(\d{2})(\d{7,8})">
   8984           <leadingDigits>
   8985             2[124]|
   8986             [36]1
   8987           </leadingDigits>
   8988           <format>$1 $2</format>
   8989         </numberFormat>
   8990         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   8991           pattern="(\d{3})(\d{5,7})">
   8992           <leadingDigits>
   8993             [4579]|
   8994             2[035-9]|
   8995             [36][02-9]
   8996           </leadingDigits>
   8997           <format>$1 $2</format>
   8998         </numberFormat>
   8999         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
   9000           <leadingDigits>8[1-35-9]</leadingDigits>
   9001           <format>$1-$2-$3</format>
   9002         </numberFormat>
   9003         <numberFormat pattern="(177)(\d{6,8})">
   9004           <leadingDigits>1</leadingDigits>
   9005           <format>$1 $2</format>
   9006         </numberFormat>
   9007         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
   9008              that sometimes they are followed by less digits. -->
   9009         <numberFormat pattern="(800)(\d{5,7})">
   9010           <leadingDigits>800</leadingDigits>
   9011           <format>$1 $2</format>
   9012         </numberFormat>
   9013         <numberFormat pattern="(809)(\d)(\d{3})(\d{3})">
   9014           <leadingDigits>809</leadingDigits>
   9015           <format>$1 $2 $3 $4</format>
   9016         </numberFormat>
   9017       </availableFormats>
   9018       <generalDesc>
   9019         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
   9020         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
   9021       </generalDesc>
   9022       <fixedLine>
   9023         <!-- Area codes taken from wikipedia, with missing ones added from
   9024              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
   9025              We also added 0770 after user feedback because it seems to be used on Bintan island.
   9026              Where known, fixed mobile prefixes have been represented as Mobile. -->
   9027         <nationalNumberPattern>
   9028           2(?:
   9029             1(?:
   9030               [0-8]\d{6,7}|
   9031               9\d{6}
   9032             )|
   9033             [24]\d{7,8}
   9034           )|
   9035           (?:
   9036             2(?:
   9037               [35][1-4]|
   9038               6[0-8]|
   9039               7[1-6]|
   9040               8\d|
   9041               9[1-8]
   9042             )|
   9043             3(?:
   9044               1|
   9045               2[1-578]|
   9046               3[1-68]|
   9047               4[1-3]|
   9048               5[1-8]|
   9049               6[1-3568]|
   9050               7[0-46]|
   9051               8\d
   9052             )|
   9053             4(?:
   9054               0[1-589]|
   9055               1[01347-9]|
   9056               2[0-36-8]|
   9057               3[0-24-68]|
   9058               5[1-378]|
   9059               6[1-5]|
   9060               7[134]|
   9061               8[1245]
   9062             )|
   9063             5(?:
   9064               1[1-35-9]|
   9065               2[25-8]|
   9066               3[1246-9]|
   9067               4[1-3589]|
   9068               5[1-46]|
   9069               6[1-8]
   9070             )|
   9071             6(?:
   9072               19?|
   9073               [25]\d|
   9074               3[1-469]|
   9075               4[1-6]
   9076             )|
   9077             7(?:
   9078               1[1-46-9]|
   9079               2[14-9]|
   9080               [36]\d|
   9081               4[1-8]|
   9082               5[1-9]|
   9083               7[0-36-9]
   9084             )|
   9085             9(?:
   9086               0[12]|
   9087               1[013-8]|
   9088               2[0-479]|
   9089               5[125-8]|
   9090               6[23679]|
   9091               7[159]|
   9092               8[01346]
   9093             )
   9094           )\d{5,8}
   9095         </nationalNumberPattern>
   9096         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   9097         <exampleNumber>612345678</exampleNumber>
   9098       </fixedLine>
   9099       <mobile>
   9100         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
   9101              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
   9102              are captured below. The pattern covers the area code plus the first one-two digits of
   9103              the subscriber number. -->
   9104         <nationalNumberPattern>
   9105           (?:
   9106             2(?:
   9107               1(?:
   9108                 3[145]|
   9109                 4[01]|
   9110                 5[1-469]|
   9111                 60|
   9112                 8[0359]|
   9113                 9\d
   9114               )|
   9115               2(?:
   9116                 88|
   9117                 9[1256]
   9118               )|
   9119               3[1-4]9|
   9120               4(?:
   9121                 36|
   9122                 91
   9123               )|
   9124               5(?:
   9125                 1[349]|
   9126                 [2-4]9
   9127               )|
   9128               6[0-7]9|
   9129               7(?:
   9130                 [1-36]9|
   9131                 4[39]
   9132               )|
   9133               8[1-5]9|
   9134               9[1-48]9
   9135             )|
   9136             3(?:
   9137               19[1-3]|
   9138               2[12]9|
   9139               3[13]9|
   9140               4(?:
   9141                 1[69]|
   9142                 39
   9143               )|
   9144               5[14]9|
   9145               6(?:
   9146                 1[69]|
   9147                 2[89]
   9148               )|
   9149               709
   9150             )|
   9151             4[13]19|
   9152             5(?:
   9153               1(?:
   9154                 19|
   9155                 8[39]
   9156               )|
   9157               4[129]9|
   9158               6[12]9
   9159             )|
   9160             6(?:
   9161               19[12]|
   9162               2(?:
   9163                 [23]9|
   9164                 77
   9165               )
   9166             )|
   9167             7(?:
   9168               1[13]9|
   9169               2[15]9|
   9170               419|
   9171               5(?:
   9172                 1[89]|
   9173                 29
   9174               )|
   9175               6[15]9|
   9176               7[178]9
   9177             )
   9178           )\d{5,6}|
   9179           8[1-35-9]\d{7,9}
   9180         </nationalNumberPattern>
   9181         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
   9182         <exampleNumber>812345678</exampleNumber>
   9183       </mobile>
   9184       <tollFree>
   9185         <nationalNumberPattern>
   9186           177\d{6,8}|
   9187           800\d{5,7}
   9188         </nationalNumberPattern>
   9189         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
   9190         <exampleNumber>8001234567</exampleNumber>
   9191       </tollFree>
   9192       <!-- The information below is provided by an Indonesian -->
   9193       <premiumRate>
   9194         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
   9195         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9196         <exampleNumber>8091234567</exampleNumber>
   9197       </premiumRate>
   9198     </territory>
   9199 
   9200     <!-- Ireland -->
   9201     <!-- http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html -->
   9202     <!-- http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf -->
   9203     <territory id="IE" countryCode="353" internationalPrefix="00"
   9204                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
   9205                mobileNumberPortableRegion="true">
   9206       <availableFormats>
   9207         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
   9208           <leadingDigits>1</leadingDigits>
   9209           <format>$1 $2 $3</format>
   9210         </numberFormat>
   9211         <numberFormat pattern="(\d{2})(\d{5})">
   9212           <leadingDigits>
   9213             2[24-9]|
   9214             47|
   9215             58|
   9216             6[237-9]|
   9217             9[35-9]
   9218           </leadingDigits>
   9219           <format>$1 $2</format>
   9220         </numberFormat>
   9221         <numberFormat pattern="(\d{3})(\d{5})">
   9222           <leadingDigits>
   9223             40[24]|
   9224             50[45]
   9225           </leadingDigits>
   9226           <format>$1 $2</format>
   9227         </numberFormat>
   9228         <numberFormat pattern="(48)(\d{4})(\d{4})">
   9229           <leadingDigits>48</leadingDigits>
   9230           <format>$1 $2 $3</format>
   9231         </numberFormat>
   9232         <numberFormat pattern="(818)(\d{3})(\d{3})">
   9233           <leadingDigits>81</leadingDigits>
   9234           <format>$1 $2 $3</format>
   9235         </numberFormat>
   9236         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   9237           <leadingDigits>
   9238             [24-69]|
   9239             7[14]
   9240           </leadingDigits>
   9241           <format>$1 $2 $3</format>
   9242         </numberFormat>
   9243         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   9244           pattern="([78]\d)(\d{3,4})(\d{4})">
   9245           <leadingDigits>
   9246             76|
   9247             8[35-9]
   9248           </leadingDigits>
   9249           <format>$1 $2 $3</format>
   9250         </numberFormat>
   9251         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   9252           pattern="(700)(\d{3})(\d{3})">
   9253           <leadingDigits>70</leadingDigits>
   9254           <format>$1 $2 $3</format>
   9255         </numberFormat>
   9256         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
   9257           <leadingDigits>
   9258             1(?:
   9259               8[059]|
   9260               5
   9261             )
   9262           </leadingDigits>
   9263           <leadingDigits>
   9264             1(?:
   9265               8[059]0|
   9266               5
   9267             )
   9268           </leadingDigits>
   9269           <format>$1 $2 $3</format>
   9270         </numberFormat>
   9271       </availableFormats>
   9272       <generalDesc>
   9273         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
   9274         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   9275       </generalDesc>
   9276       <noInternationalDialling>
   9277         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
   9278         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9279         <exampleNumber>1850123456</exampleNumber>
   9280       </noInternationalDialling>
   9281       <fixedLine>
   9282         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
   9283              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
   9284              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
   9285              Ireland. We support these numbers here, although technically they are numbers for the
   9286              UK. -->
   9287         <nationalNumberPattern>
   9288           1\d{7,8}|
   9289           2(?:
   9290             1\d{6,7}|
   9291             3\d{7}|
   9292             [24-9]\d{5}
   9293           )|
   9294           4(?:
   9295             0[24]\d{5}|
   9296             [1-469]\d{7}|
   9297             5\d{6}|
   9298             7\d{5}|
   9299             8[0-46-9]\d{7}
   9300           )|
   9301           5(?:
   9302             0[45]\d{5}|
   9303             1\d{6}|
   9304             [23679]\d{7}|
   9305             8\d{5}
   9306           )|
   9307           6(?:
   9308             1\d{6}|
   9309             [237-9]\d{5}|
   9310             [4-6]\d{7}
   9311           )|
   9312           7[14]\d{7}|
   9313           9(?:
   9314             1\d{6}|
   9315             [04]\d{7}|
   9316             [35-9]\d{5}
   9317           )
   9318         </nationalNumberPattern>
   9319         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   9320         <exampleNumber>2212345</exampleNumber>
   9321       </fixedLine>
   9322       <mobile>
   9323         <nationalNumberPattern>
   9324           8(?:
   9325             22\d{6}|
   9326             [35-9]\d{7}
   9327           )
   9328         </nationalNumberPattern>
   9329         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   9330         <exampleNumber>850123456</exampleNumber>
   9331       </mobile>
   9332       <tollFree>
   9333         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
   9334         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9335         <exampleNumber>1800123456</exampleNumber>
   9336       </tollFree>
   9337       <premiumRate>
   9338         <nationalNumberPattern>
   9339           15(?:
   9340             1[2-8]|
   9341             [2-8]0|
   9342             9[089]
   9343           )\d{6}
   9344         </nationalNumberPattern>
   9345         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9346         <exampleNumber>1520123456</exampleNumber>
   9347       </premiumRate>
   9348       <sharedCost>
   9349         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
   9350         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9351         <exampleNumber>1850123456</exampleNumber>
   9352       </sharedCost>
   9353       <personalNumber>
   9354         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
   9355         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   9356         <exampleNumber>700123456</exampleNumber>
   9357       </personalNumber>
   9358       <voip>
   9359         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
   9360         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   9361         <exampleNumber>761234567</exampleNumber>
   9362       </voip>
   9363       <uan>
   9364         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
   9365         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   9366         <exampleNumber>818123456</exampleNumber>
   9367       </uan>
   9368       <voicemail>
   9369         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
   9370         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9371         <exampleNumber>8501234567</exampleNumber>
   9372       </voicemail>
   9373     </territory>
   9374 
   9375     <!-- Israel -->
   9376     <!-- http://www.itu.int/oth/T020200006A/en -->
   9377     <!-- http://en.wikipedia.org/wiki/%2B972 -->
   9378     <!-- 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
   9379          (in Hebrew) -->
   9380     <!-- Formatting practice following wikipedia, and government sites. -->
   9381     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
   9382                nationalPrefix="0" nationalPrefixFormattingRule="$FG"
   9383                mobileNumberPortableRegion="true">
   9384       <availableFormats>
   9385         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   9386           pattern="([2-489])(\d{3})(\d{4})">
   9387           <leadingDigits>[2-489]</leadingDigits>
   9388           <format>$1-$2-$3</format>
   9389         </numberFormat>
   9390         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   9391           pattern="([57]\d)(\d{3})(\d{4})">
   9392           <leadingDigits>[57]</leadingDigits>
   9393           <format>$1-$2-$3</format>
   9394         </numberFormat>
   9395         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
   9396           <leadingDigits>1[7-9]</leadingDigits>
   9397           <format>$1-$2-$3-$4</format>
   9398         </numberFormat>
   9399         <!-- The following number is for hospitals. -->
   9400         <numberFormat pattern="(1255)(\d{3})">
   9401           <leadingDigits>125</leadingDigits>
   9402           <format>$1-$2</format>
   9403         </numberFormat>
   9404         <numberFormat pattern="(1200)(\d{3})(\d{3})">
   9405           <leadingDigits>120</leadingDigits>
   9406           <format>$1-$2-$3</format>
   9407         </numberFormat>
   9408         <numberFormat pattern="(1212)(\d{2})(\d{2})">
   9409           <leadingDigits>121</leadingDigits>
   9410           <format>$1-$2-$3</format>
   9411         </numberFormat>
   9412         <!-- The following is for voicemail access. -->
   9413         <numberFormat pattern="(1599)(\d{6})">
   9414           <leadingDigits>15</leadingDigits>
   9415           <format>$1-$2</format>
   9416         </numberFormat>
   9417         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
   9418              dialed with a star in front of the number. -->
   9419         <numberFormat pattern="(\d{4})">
   9420           <leadingDigits>[2-689]</leadingDigits>
   9421           <format>*$1</format>
   9422         </numberFormat>
   9423       </availableFormats>
   9424       <generalDesc >
   9425         <nationalNumberPattern>
   9426           [17]\d{6,9}|
   9427           [2-589]\d{3}(?:\d{3,6})?|
   9428           6\d{3}
   9429         </nationalNumberPattern>
   9430         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   9431       </generalDesc>
   9432       <noInternationalDialling>
   9433         <nationalNumberPattern>
   9434           1700\d{6}|
   9435           [2-689]\d{3}
   9436         </nationalNumberPattern>
   9437         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   9438         <exampleNumber>1700123456</exampleNumber>
   9439       </noInternationalDialling>
   9440       <fixedLine>
   9441         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
   9442         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   9443         <exampleNumber>21234567</exampleNumber>
   9444       </fixedLine>
   9445       <mobile>
   9446         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
   9447              sure wikipedia is accurate based on news coverage of the launch of these numbers. -->
   9448         <nationalNumberPattern>
   9449           5(?:
   9450             [02347-9]\d{2}|
   9451             5(?:
   9452               2[23]|
   9453               3[34]|
   9454               4[45]|
   9455               5[5689]|
   9456               6[67]|
   9457               7[78]|
   9458               8[89]
   9459             )|
   9460             6[2-9]\d
   9461           )\d{5}
   9462         </nationalNumberPattern>
   9463         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   9464         <exampleNumber>501234567</exampleNumber>
   9465       </mobile>
   9466       <tollFree>
   9467         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
   9468         <nationalNumberPattern>
   9469           1(?:
   9470             80[019]\d{3}|
   9471             255
   9472           )\d{3}
   9473         </nationalNumberPattern>
   9474         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   9475         <exampleNumber>1800123456</exampleNumber>
   9476       </tollFree>
   9477       <premiumRate>
   9478           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
   9479                However, no online numbers starting with these prefixes can be found, and this data
   9480                is not found in any other source. -->
   9481           <!-- 1200 and 1212 numbers are for televoting. -->
   9482         <nationalNumberPattern>
   9483           1(?:
   9484             212|
   9485             (?:
   9486               9(?:
   9487                 0[01]|
   9488                 19
   9489               )|
   9490               200
   9491             )\d{2}
   9492           )\d{4}
   9493         </nationalNumberPattern>
   9494         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   9495         <exampleNumber>1919123456</exampleNumber>
   9496       </premiumRate>
   9497       <sharedCost>
   9498         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
   9499         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9500         <exampleNumber>1700123456</exampleNumber>
   9501       </sharedCost>
   9502       <voip>
   9503         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
   9504              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
   9505              Dialing) numbers, that most people forward to VoIP numbers. -->
   9506         <nationalNumberPattern>
   9507           7(?:
   9508             2[23]\d|
   9509             3[237]\d|
   9510             47\d|
   9511             6(?:
   9512               5\d|
   9513               8[08]
   9514             )|
   9515             7\d{2}|
   9516             8(?:
   9517               33|
   9518               55|
   9519               77|
   9520               81
   9521             )
   9522           )\d{5}
   9523         </nationalNumberPattern>
   9524         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   9525         <exampleNumber>771234567</exampleNumber>
   9526       </voip>
   9527       <uan>
   9528         <!-- 4-digit star numbers and 1-599 numbers. The latter are actually labelled "interactive
   9529              voicemail" in the ITU document, but according to reports from businesses in Israel and
   9530              the Hebrew version of the wikipedia page, these are actually a router for business
   9531              calls, and incur a normal call cost on account of the caller. -->
   9532         <nationalNumberPattern>
   9533           [2-689]\d{3}|
   9534           1599\d{6}
   9535         </nationalNumberPattern>
   9536         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
   9537         <exampleNumber>1599123456</exampleNumber>
   9538       </uan>
   9539     </territory>
   9540 
   9541     <!-- Isle of Man -->
   9542     <!-- Inherits formatting rules from the UK. -->
   9543     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
   9544     <territory id="IM" countryCode="44" internationalPrefix="00"
   9545                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
   9546       <generalDesc>
   9547         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
   9548         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   9549       </generalDesc>
   9550       <areaCodeOptional>
   9551         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
   9552         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9553         <exampleNumber>1624250123</exampleNumber>
   9554       </areaCodeOptional>
   9555       <!-- Specific to IM. -->
   9556       <fixedLine>
   9557         <!-- 1624 with 10 digits. -->
   9558         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
   9559         <exampleNumber>1624456789</exampleNumber>
   9560       </fixedLine>
   9561       <mobile>
   9562         <!-- 7524, 7624, 7924 with 10 digits. -->
   9563         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
   9564         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9565         <exampleNumber>7924123456</exampleNumber>
   9566       </mobile>
   9567       <tollFree>
   9568         <!-- 808 162 with 10 digits. -->
   9569         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
   9570         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9571         <exampleNumber>8081624567</exampleNumber>
   9572       </tollFree>
   9573       <premiumRate>
   9574         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
   9575         <nationalNumberPattern>
   9576           (?:
   9577             872299|
   9578             90[0167]624
   9579           )\d{4}
   9580         </nationalNumberPattern>
   9581         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9582         <exampleNumber>9016247890</exampleNumber>
   9583       </premiumRate>
   9584       <sharedCost>
   9585         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
   9586         <nationalNumberPattern>
   9587           8(?:
   9588             4(?:
   9589               40[49]06|
   9590               5624\d
   9591             )|
   9592             70624\d
   9593           )\d{3}
   9594         </nationalNumberPattern>
   9595         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9596         <exampleNumber>8456247890</exampleNumber>
   9597       </sharedCost>
   9598       <!-- Other numbers as per GB. -->
   9599       <personalNumber>
   9600         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   9601         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9602         <exampleNumber>7012345678</exampleNumber>
   9603       </personalNumber>
   9604       <voip>
   9605         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
   9606         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9607         <exampleNumber>5612345678</exampleNumber>
   9608       </voip>
   9609       <uan>
   9610         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
   9611         <nationalNumberPattern>
   9612           3(?:
   9613             08162\d|
   9614             3\d{5}|
   9615             4(?:
   9616               40[49]06|
   9617               5624\d
   9618             )|
   9619             7(?:
   9620               0624\d|
   9621               2299\d
   9622             )
   9623           )\d{3}|
   9624           55\d{8}
   9625         </nationalNumberPattern>
   9626         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   9627         <exampleNumber>5512345678</exampleNumber>
   9628       </uan>
   9629     </territory>
   9630 
   9631     <!-- India -->
   9632     <!-- http://www.dot.gov.in/numbering_plan/numberplanindex.htm -->
   9633     <!-- http://www.itu.int/oth/T0202000063/en -->
   9634     <!-- http://en.wikipedia.org/wiki/%2B91 -->
   9635     <!-- http://www.coai.in/msccodes.php -->
   9636     <!-- Note that several changes in area codes have occurred since the numbering plan was released
   9637          - fixed line changes are notified on the www.bsnl.co.in website. Area codes can be verified
   9638            here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
   9639     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
   9640                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true"
   9641                mobileNumberPortableRegion="true">
   9642        <availableFormats>
   9643          <!-- Mobile numbers. -->
   9644          <numberFormat pattern="(\d{2})(\d{2})(\d{6})">
   9645            <leadingDigits>
   9646              7(?:
   9647                2[0579]|
   9648                3[057-9]|
   9649                4[0-389]|
   9650                5[024-9]|
   9651                6[0-35-9]|
   9652                7|
   9653                8[0-79]
   9654              )|
   9655              8(?:
   9656                0[015689]|
   9657                1[0-57-9]|
   9658                2[2356-9]|
   9659                3[0-57-9]|
   9660                [45]|
   9661                6[0245789]|
   9662                7[1-69]|
   9663                8[0124-9]|
   9664                9[02-9]
   9665              )|
   9666              9
   9667            </leadingDigits>
   9668            <leadingDigits>
   9669              7(?:
   9670                2(?:
   9671                  0[04-9]|
   9672                  5[09]|
   9673                  7[5-8]|
   9674                  9[389]
   9675                )|
   9676                3(?:
   9677                  0[1-9]|
   9678                  [58]|
   9679                  7[3679]|
   9680                  9[689]
   9681                )|
   9682                4(?:
   9683                  0[1-9]|
   9684                  1[15-9]|
   9685                  [29][89]|
   9686                  39|
   9687                  8[389]
   9688                )|
   9689                5(?:
   9690                  0|
   9691                  [47]9|
   9692                  [25]0|
   9693                  6[6-9]|
   9694                  [89][7-9]
   9695                )|
   9696                6(?:
   9697                  0[027]|
   9698                  12|
   9699                  20|
   9700                  3[19]|
   9701                  5[45]|
   9702                  6[5-9]|
   9703                  7[679]|
   9704                  9[1-46-9]
   9705                )|
   9706                7(?:
   9707                  0[2-9]|
   9708                  [1-79]|
   9709                  8[1-9]
   9710                )|
   9711                8(?:
   9712                  [0-7]|
   9713                  9[013-9]
   9714                )
   9715              )|
   9716              8(?:
   9717                0(?:
   9718                  [01589]|
   9719                  6[67]
   9720                )|
   9721                1(?:
   9722                  [02-589]|
   9723                  1[0135-9]|
   9724                  7[0-79]
   9725                )|
   9726                2(?:
   9727                  [236-9]|
   9728                  5[1-9]
   9729                )|
   9730                3(?:
   9731                  [0357-9]|
   9732                  4[1-9]
   9733                )|
   9734                [45]|
   9735                6[02457-9]|
   9736                7[1-69]|
   9737                8(?:
   9738                  [0-26-9]|
   9739                  44|
   9740                  5[2-9]
   9741                )|
   9742                9(?:
   9743                  [035-9]|
   9744                  2[2-9]|
   9745                  4[0-8]
   9746                )
   9747              )|
   9748              9
   9749            </leadingDigits>
   9750            <format>$1 $2 $3</format>
   9751          </numberFormat>
   9752          <!-- 2 digits area code -->
   9753          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   9754            <leadingDigits>
   9755              11|
   9756              2[02]|
   9757              33|
   9758              4[04]|
   9759              79|
   9760              80[2-46]
   9761            </leadingDigits>
   9762            <format>$1 $2 $3</format>
   9763          </numberFormat>
   9764          <!-- 3 digit area codes that don't clash with mobile patterns. -->
   9765          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   9766            <leadingDigits>
   9767              1(?:
   9768                2[0-249]|
   9769                3[0-25]|
   9770                4[145]|
   9771                [569][14]|
   9772                7[1257]|
   9773                8[1346]|
   9774                [68][1-9]
   9775              )|
   9776              2(?:
   9777                1[257]|
   9778                3[013]|
   9779                4[01]|
   9780                5[0137]|
   9781                6[0158]|
   9782                78|
   9783                8[1568]|
   9784                9[14]
   9785              )|
   9786              3(?:
   9787                26|
   9788                4[1-3]|
   9789                5[34]|
   9790                6[01489]|
   9791                7[02-46]|
   9792                8[159]
   9793              )|
   9794              4(?:
   9795                1[36]|
   9796                2[1-47]|
   9797                3[15]|
   9798                5[12]|
   9799                6[126-9]|
   9800                7[0-24-9]|
   9801                8[013-57]|
   9802                9[014-7]
   9803              )|
   9804              5(?:
   9805                [136][25]|
   9806                22|
   9807                4[28]|
   9808                5[12]|
   9809                [78]1|
   9810                9[15]
   9811              )|
   9812              6(?:
   9813                12|
   9814                [2345]1|
   9815                57|
   9816                6[13]|
   9817                7[14]|
   9818                80
   9819              )
   9820            </leadingDigits>
   9821            <format>$1 $2 $3</format>
   9822          </numberFormat>
   9823          <!-- Three-digit area codes that potentially overlap with mobile. -->
   9824          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   9825            <leadingDigits>
   9826              7(?:
   9827                12|
   9828                2[14]|
   9829                3[134]|
   9830                4[47]|
   9831                5[15]|
   9832                [67]1|
   9833                88
   9834              )
   9835            </leadingDigits>
   9836            <leadingDigits>
   9837              7(?:
   9838                12|
   9839                2[14]|
   9840                3[134]|
   9841                4[47]|
   9842                5(?:
   9843                  1|
   9844                  5[2-6]
   9845                )|
   9846                [67]1|
   9847                88
   9848              )
   9849            </leadingDigits>
   9850            <format>$1 $2 $3</format>
   9851          </numberFormat>
   9852          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   9853            <leadingDigits>
   9854              8(?:
   9855                16|
   9856                2[014]|
   9857                3[126]|
   9858                6[136]|
   9859                7[078]|
   9860                8[34]|
   9861                91
   9862              )
   9863            </leadingDigits>
   9864            <format>$1 $2 $3</format>
   9865          </numberFormat>
   9866          <!-- 4 digits area code -->
   9867          <!-- Fallback for fixed-line numbers. -->
   9868          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
   9869            <leadingDigits>
   9870              1(?:
   9871                [2-579]|
   9872                [68][1-9]
   9873              )|
   9874              [2-8]
   9875            </leadingDigits>
   9876            <format>$1 $2 $3</format>
   9877          </numberFormat>
   9878          <numberFormat nationalPrefixFormattingRule="$FG"
   9879            pattern="(1600)(\d{2})(\d{4})">
   9880            <leadingDigits>160</leadingDigits>
   9881            <leadingDigits>1600</leadingDigits>
   9882            <format>$1 $2 $3</format>
   9883          </numberFormat>
   9884          <numberFormat nationalPrefixFormattingRule="$FG"
   9885            pattern="(1800)(\d{4,5})">
   9886            <leadingDigits>180</leadingDigits>
   9887            <leadingDigits>1800</leadingDigits>
   9888            <format>$1 $2</format>
   9889          </numberFormat>
   9890          <numberFormat nationalPrefixFormattingRule="$FG"
   9891            pattern="(18[06]0)(\d{2,4})(\d{4})">
   9892            <leadingDigits>18[06]</leadingDigits>
   9893            <leadingDigits>18[06]0</leadingDigits>
   9894            <format>$1 $2 $3</format>
   9895          </numberFormat>
   9896          <!-- Televoting numbers. Formatting information is from
   9897               http://www.bsnl.co.in/service/telev.htm -->
   9898          <numberFormat nationalPrefixFormattingRule="$FG"
   9899            pattern="(\d{4})(\d{3})(\d{4})(\d{2})">
   9900            <leadingDigits>18[06]</leadingDigits>
   9901            <leadingDigits>
   9902              18(?:
   9903                03|
   9904                6[12]
   9905              )
   9906            </leadingDigits>
   9907            <format>$1 $2 $3 $4</format>
   9908          </numberFormat>
   9909       </availableFormats>
   9910       <generalDesc>
   9911         <nationalNumberPattern>
   9912           1\d{7,12}|
   9913           [2-9]\d{9,10}
   9914         </nationalNumberPattern>
   9915         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
   9916       </generalDesc>
   9917       <noInternationalDialling>
   9918         <nationalNumberPattern>
   9919           1(?:
   9920             600\d{6}|
   9921             8(?:
   9922               0(?:
   9923                 0\d{4,8}|
   9924                 3\d{9}
   9925               )|
   9926               6(?:
   9927                 0\d{7}|
   9928                 [12]\d{9}
   9929               )
   9930             )
   9931            )
   9932         </nationalNumberPattern>
   9933         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
   9934         <exampleNumber>1800123456</exampleNumber>
   9935       </noInternationalDialling>
   9936       <fixedLine>
   9937         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
   9938              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
   9939              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
   9940              Not all operator codes are available in all areas, but we don't maintain that
   9941              distinction here.
   9942              Area codes starting with a 7 are listed separately, since the prefixes need to be more
   9943              detailed so they clash less with mobile phone prefixes. -->
   9944         <nationalNumberPattern>
   9945           (?:
   9946             11|
   9947             2[02]|
   9948             33|
   9949             4[04]|
   9950             79
   9951           )[2-7]\d{7}|
   9952           80[2-467]\d{7}|
   9953           (?:
   9954             1(?:
   9955               2[0-249]|
   9956               3[0-25]|
   9957               4[145]|
   9958               [59][14]|
   9959               6[014]|
   9960               7[1257]|
   9961               8[01346]
   9962             )|
   9963             2(?:
   9964               1[257]|
   9965               3[013]|
   9966               4[01]|
   9967               5[0137]|
   9968               6[0158]|
   9969               78|
   9970               8[1568]|
   9971               9[14]
   9972             )|
   9973             3(?:
   9974               26|
   9975               4[1-3]|
   9976               5[34]|
   9977               6[01489]|
   9978               7[02-46]|
   9979               8[159]
   9980             )|
   9981             4(?:
   9982               1[36]|
   9983               2[1-47]|
   9984               3[15]|
   9985               5[12]|
   9986               6[126-9]|
   9987               7[0-24-9]|
   9988               8[013-57]|
   9989               9[014-7]
   9990             )|
   9991             5(?:
   9992               [136][25]|
   9993               22|
   9994               4[28]|
   9995               5[12]|
   9996               [78]1|
   9997               9[15]
   9998             )|
   9999             6(?:
   10000               12|
   10001               [2345]1|
   10002               57|
   10003               6[13]|
   10004               7[14]|
   10005               80
   10006             )|
   10007             7(?:
   10008               12|
   10009               2[14]|
   10010               3[134]|
   10011               4[47]|
   10012               5[15]|
   10013               [67]1|
   10014               88
   10015             )|
   10016             8(?:
   10017               16|
   10018               2[014]|
   10019               3[126]|
   10020               6[136]|
   10021               7[078]|
   10022               8[34]|
   10023               91
   10024             )
   10025           )[2-7]\d{6}|
   10026           (?:
   10027             (?:
   10028               1(?:
   10029                 2[35-8]|
   10030                 3[346-9]|
   10031                 4[236-9]|
   10032                 [59][0235-9]|
   10033                 6[235-9]|
   10034                 7[34689]|
   10035                 8[257-9]
   10036               )|
   10037               2(?:
   10038                 1[134689]|
   10039                 3[24-8]|
   10040                 4[2-8]|
   10041                 5[25689]|
   10042                 6[2-4679]|
   10043                 7[13-79]|
   10044                 8[2-479]|
   10045                 9[235-9]
   10046               )|
   10047               3(?:
   10048                 01|
   10049                 1[79]|
   10050                 2[1-5]|
   10051                 4[25-8]|
   10052                 5[125689]|
   10053                 6[235-7]|
   10054                 7[157-9]|
   10055                 8[2-467]
   10056               )|
   10057               4(?:
   10058                 1[14578]|
   10059                 2[5689]|
   10060                 3[2-467]|
   10061                 5[4-7]|
   10062                 6[35]|
   10063                 73|
   10064                 8[2689]|
   10065                 9[2389]
   10066               )|
   10067               5(?:
   10068                 [16][146-9]|
   10069                 2[14-8]|
   10070                 3[1346]|
   10071                 4[14-69]|
   10072                 5[46]|
   10073                 7[2-4]|
   10074                 8[2-8]|
   10075                 9[246]
   10076               )|
   10077               6(?:
   10078                 1[1358]|
   10079                 2[2457]|
   10080                 3[2-4]|
   10081                 4[235-7]|
   10082                 [57][2-689]|
   10083                 6[24-58]|
   10084                 8[1-6]
   10085               )|
   10086               8(?:
   10087                 1[1357-9]|
   10088                 2[235-8]|
   10089                 3[03-57-9]|
   10090                 4[0-24-9]|
   10091                 5\d|
   10092                 6[2457-9]|
   10093                 7[1-6]|
   10094                 8[1256]|
   10095                 9[2-4]
   10096               )
   10097             )\d|
   10098             7(?:
   10099               (?:
   10100                 1[013-9]|
   10101                 2[0235-9]|
   10102                 3[2679]|
   10103                 4[1-35689]|
   10104                 5[2-46-9]|
   10105                 [67][02-9]|
   10106                 9\d
   10107               )\d|
   10108               8(?:
   10109                 2[0-6]|
   10110                 [013-8]\d
   10111               )
   10112             )
   10113           )[2-7]\d{5}
   10114         </nationalNumberPattern>
   10115         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   10116         <exampleNumber>1123456789</exampleNumber>
   10117       </fixedLine>
   10118       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
   10119       <!-- The document titled "List of MSC codes" linked off
   10120            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
   10121            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
   10122       <mobile>
   10123         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
   10124              codes list, are added because SMS messages have been successfully sent to these
   10125              numbers. It seems almost impossible to know for some of these numbers whether they are
   10126              land-line or mobile, since the ranges overlap. Extra prefixes added: 8299, 8309.
   10127              New prefixes were added based on the document provided from mobile carriers:
   10128              https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
   10129         <nationalNumberPattern>
   10130           (?:
   10131             7(?:
   10132               2(?:
   10133                 0[04-9]|
   10134                 5[09]|
   10135                 7[5-8]|
   10136                 9[389]
   10137               )|
   10138               3(?:
   10139                 0[1-9]|
   10140                 [58]\d|
   10141                 7[3679]|
   10142                 9[689]
   10143               )|
   10144               4(?:
   10145                 0[1-9]|
   10146                 1[15-9]|
   10147                 [29][89]|
   10148                 39|
   10149                 8[389]
   10150               )|
   10151               5(?:
   10152                 0\d|
   10153                 [47]9|
   10154                 [25]0|
   10155                 6[6-9]|
   10156                 [89][7-9]
   10157               )|
   10158               6(?:
   10159                 0[027]|
   10160                 12|
   10161                 20|
   10162                 3[19]|
   10163                 5[45]|
   10164                 6[5-9]|
   10165                 7[679]|
   10166                 9[1-46-9]
   10167               )|
   10168               7(?:
   10169                 0[2-9]|
   10170                 [1-79]\d|
   10171                 8[1-9]
   10172               )|
   10173               8(?:
   10174                 [0-7]\d|
   10175                 9[013-9]
   10176               )
   10177             )|
   10178             8(?:
   10179               0(?:
   10180                 [01589]\d|
   10181                 6[67]
   10182               )|
   10183               1(?:
   10184                 [02-589]\d|
   10185                 1[0135-9]|
   10186                 7[0-79]
   10187               )|
   10188               2(?:
   10189                 [236-9]\d|
   10190                 5[1-9]
   10191               )|
   10192               3(?:
   10193                 [0357-9]\d|
   10194                 4[1-9]
   10195               )|
   10196               [45]\d{2}|
   10197               6[02457-9]\d|
   10198               7[1-69]\d|
   10199               8(?:
   10200                 [0-26-9]\d|
   10201                 44|
   10202                 5[2-9]
   10203               )|
   10204               9(?:
   10205                 [035-9]\d|
   10206                 2[2-9]|
   10207                 4[0-8]
   10208               )
   10209             )|
   10210             9\d{3}
   10211           )\d{6}
   10212         </nationalNumberPattern>
   10213         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10214         <exampleNumber>9123456789</exampleNumber>
   10215       </mobile>
   10216       <tollFree>
   10217         <!-- Information gathered from sites such as
   10218              http://www.surfindia.com/india-facts/toll-free-no.html and
   10219              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
   10220              http://www.bsnl.co.in/service/telev.htm -->
   10221         <nationalNumberPattern>
   10222           1(?:
   10223             600\d{6}|
   10224             80(?:
   10225               0\d{4,8}|
   10226               3\d{9}
   10227             )
   10228           )
   10229         </nationalNumberPattern>
   10230         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
   10231         <exampleNumber>1800123456</exampleNumber>
   10232       </tollFree>
   10233       <premiumRate>
   10234         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
   10235              because they overlap with mobile, and we haven't found any real numbers online. -->
   10236         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
   10237         <possibleNumberPattern>\d{13}</possibleNumberPattern>
   10238         <exampleNumber>1861123456789</exampleNumber>
   10239       </premiumRate>
   10240       <uan>
   10241         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
   10242         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   10243         <exampleNumber>18603451234</exampleNumber>
   10244       </uan>
   10245     </territory>
   10246 
   10247     <!-- British Indian Ocean Territory / Diego Garcia -->
   10248     <!-- http://www.itu.int/oth/T0202000039/en -->
   10249     <territory id="IO" countryCode="246" internationalPrefix="00">
   10250       <availableFormats>
   10251         <numberFormat pattern="(\d{3})(\d{4})">
   10252           <format>$1 $2</format>
   10253         </numberFormat>
   10254       </availableFormats>
   10255       <generalDesc>
   10256         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
   10257         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   10258       </generalDesc>
   10259       <fixedLine>
   10260         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
   10261         <exampleNumber>3709100</exampleNumber>
   10262       </fixedLine>
   10263       <mobile>
   10264         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
   10265         <exampleNumber>3801234</exampleNumber>
   10266       </mobile>
   10267     </territory>
   10268 
   10269     <!-- Iraq -->
   10270     <!-- http://en.wikipedia.org/wiki/%2B964 -->
   10271     <!-- http://wtng.info/wtng-964-ik.html -->
   10272     <territory id="IQ" countryCode="964" internationalPrefix="00"
   10273                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   10274       <availableFormats>
   10275         <numberFormat pattern="(1)(\d{3})(\d{4})">
   10276           <leadingDigits>1</leadingDigits>
   10277           <format>$1 $2 $3</format>
   10278         </numberFormat>
   10279         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
   10280           <leadingDigits>[2-6]</leadingDigits>
   10281           <format>$1 $2 $3</format>
   10282         </numberFormat>
   10283         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
   10284           <leadingDigits>7</leadingDigits>
   10285           <format>$1 $2 $3</format>
   10286         </numberFormat>
   10287       </availableFormats>
   10288       <generalDesc>
   10289         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
   10290         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   10291       </generalDesc>
   10292       <fixedLine>
   10293         <nationalNumberPattern>
   10294           1\d{7}|
   10295           (?:
   10296             2[13-5]|
   10297             3[02367]|
   10298             4[023]|
   10299             5[03]|
   10300             6[026]
   10301           )\d{6,7}
   10302         </nationalNumberPattern>
   10303         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   10304         <exampleNumber>12345678</exampleNumber>
   10305       </fixedLine>
   10306       <mobile>
   10307         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
   10308         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10309         <exampleNumber>7912345678</exampleNumber>
   10310       </mobile>
   10311       <!-- No tollFree or premiumRate information can be found. -->
   10312     </territory>
   10313 
   10314     <!-- Iran, Islamic Republic of -->
   10315     <!-- http://en.wikipedia.org/wiki/%2B98 -->
   10316     <!-- http://www.itu.int/oth/T0202000066/en -->
   10317     <!-- http://www.tct.ir/?siteid=1&pageid=195 -->
   10318     <!-- http://118.tct.ir/citycode.htm -->
   10319     <territory id="IR" countryCode="98" internationalPrefix="00"
   10320                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   10321       <availableFormats>
   10322         <!-- Formatting follows wikipedia. -->
   10323         <numberFormat pattern="(2[15])(\d{3,5})">
   10324           <!-- We exclude the 255 and 256 prefixes, which do not belong to Qom as of yet. -->
   10325           <leadingDigits>
   10326             2(?:
   10327               1|
   10328               5[0-47-9]
   10329             )
   10330           </leadingDigits>
   10331           <format>$1 $2</format>
   10332         </numberFormat>
   10333         <numberFormat pattern="(2[15])(\d{3})(\d{3,4})">
   10334           <leadingDigits>
   10335             2(?:
   10336               1|
   10337               5[0-47-9]
   10338             )
   10339           </leadingDigits>
   10340           <format>$1 $2 $3</format>
   10341         </numberFormat>
   10342         <numberFormat pattern="(2\d)(\d{4})(\d{4})">
   10343           <leadingDigits>
   10344             2(?:
   10345               [16]|
   10346               5[0-47-9]
   10347             )
   10348           </leadingDigits>
   10349           <format>$1 $2 $3</format>
   10350         </numberFormat>
   10351         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   10352           <leadingDigits>
   10353             [13-9]|
   10354             2[02-57-9]
   10355           </leadingDigits>
   10356           <format>$1 $2 $3</format>
   10357         </numberFormat>
   10358         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
   10359           <leadingDigits>
   10360             [13-9]|
   10361             2[02-57-9]
   10362           </leadingDigits>
   10363           <format>$1 $2 $3</format>
   10364         </numberFormat>
   10365         <numberFormat pattern="(\d{3})(\d{3})">
   10366           <leadingDigits>
   10367             [13-9]|
   10368             2[02-57-9]
   10369           </leadingDigits>
   10370           <format>$1 $2</format>
   10371         </numberFormat>
   10372       </availableFormats>
   10373       <generalDesc>
   10374         <nationalNumberPattern>
   10375           [14-8]\d{6,9}|
   10376           [23]\d{4,9}|
   10377           9(?:
   10378             [1-4]\d{8}|
   10379             9\d{2,8}
   10380           )
   10381         </nationalNumberPattern>
   10382         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   10383       </generalDesc>
   10384       <fixedLine>
   10385         <!-- We are following the more specific lengths specified in the communication in the ITU
   10386              doc of 26.VIII.2012, rather than the brief summary lengths (which actually contradict).
   10387              The prefixes have been verified by looking at the Persian telecommunications site.
   10388              22[189], 29[12] have become 21, as part of the shift to unify prefixes. 746 was also
   10389              found on the website at http://www.tct.ir/?siteid=1&pageid=410&siteid=1 but this seems
   10390              to be a typo. It seems Qom is moving to 025, but 0255 and 0256 have not yet been
   10391              migrated away from under this prefix - in the meantime, support for 253 has been added
   10392              since this has been found in numbers online. -->
   10393         <nationalNumberPattern>
   10394           1(?:
   10395             [13-589][12]|
   10396             [27][1-4]
   10397           )\d{7}|
   10398           2(?:
   10399             1\d{3,8}|
   10400             3[12]\d{7}|
   10401             4(?:
   10402               1\d{4,7}|
   10403               2\d{7}
   10404             )|
   10405             5(?:
   10406               1\d{3,7}|
   10407               [2356]\d{7}
   10408             )|
   10409             6\d{8}|
   10410             7[34]\d{7}|
   10411             [89][12]\d{7}
   10412           )|
   10413           3(?:
   10414             1(?:
   10415               1\d{4,7}|
   10416               2\d{7}
   10417             )|
   10418             2[1-4]\d{7}|
   10419             3(?:
   10420               [125]\d{7}|
   10421               4\d{6,7}
   10422             )|
   10423             4(?:
   10424               1\d{6,7}
   10425               [24-9]\d{7}
   10426             )|
   10427             5(?:
   10428               1\d{4,7}|
   10429               [23]\d{7}
   10430             )|
   10431             [6-9][12]\d{7}
   10432           )|
   10433           4(?:
   10434             [135-9][12]\d{7}|
   10435             2[1-467]\d{7}|
   10436             4(?:
   10437               1\d{4,7}|
   10438               [2-4]\d{7}
   10439             )
   10440           )|
   10441           5(?:
   10442             1(?:
   10443               1\d{4,7}|
   10444               2\d{7}
   10445             )|
   10446             2[89]\d{7}|
   10447             3[1-5]\d{7}|
   10448             4(?:
   10449               1\d{4,7}|
   10450               [2-8]\d{7}
   10451             )|
   10452             [5-7][12]\d{7}|
   10453             8[1245]\d{7}
   10454           )|
   10455           6(?:
   10456             1(?:
   10457               1\d{6,7}|
   10458               2\d{7}
   10459             )|
   10460             [347-9][12]\d{7}|
   10461             5(?:
   10462               1\d{7}|
   10463               2\d{6,7}
   10464             )|
   10465             6[1-6]\d{7}
   10466           )|
   10467           7(?:
   10468             [13589][12]|
   10469             2[1289]|
   10470             4[1-4]|
   10471             6[1-6]|
   10472             7[1-3]
   10473           )\d{7}|
   10474           8(?:
   10475             [145][12]|
   10476             3[124578]|
   10477             6[1256]|
   10478             7[1245]
   10479           )\d{7}
   10480         </nationalNumberPattern>
   10481         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   10482         <exampleNumber>2123456789</exampleNumber>
   10483       </fixedLine>
   10484       <mobile>
   10485         <nationalNumberPattern>9[1-3]\d{8}</nationalNumberPattern>
   10486         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10487         <exampleNumber>9123456789</exampleNumber>
   10488       </mobile>
   10489       <pager>
   10490         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
   10491         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10492         <exampleNumber>9432123456</exampleNumber>
   10493       </pager>
   10494       <!-- No tollFree or premiumRate information can be found. -->
   10495       <voip>
   10496         <!-- Includes VSAT and Boomehen Satellite numbers. -->
   10497         <nationalNumberPattern>
   10498           (?:
   10499             [2-6]0\d|
   10500             993
   10501           )\d{7}
   10502         </nationalNumberPattern>
   10503         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10504         <exampleNumber>9932123456</exampleNumber>
   10505       </voip>
   10506       <uan>
   10507         <!-- MCI Public Relations numbers -->
   10508         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
   10509         <exampleNumber>9990123456</exampleNumber>
   10510       </uan>
   10511     </territory>
   10512 
   10513     <!-- Iceland -->
   10514     <!-- http://www.pta.is/default.aspx?cat_id=85 -->
   10515     <!-- http://www.pfs.is/default.aspx?cat_id=14&module_id=210&element_id=4 -->
   10516     <territory id="IS" countryCode="354" internationalPrefix="00" mobileNumberPortableRegion="true">
   10517       <availableFormats>
   10518         <numberFormat pattern="(\d{3})(\d{4})">
   10519           <leadingDigits>[4-9]</leadingDigits>
   10520           <format>$1 $2</format>
   10521         </numberFormat>
   10522         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
   10523           <leadingDigits>3</leadingDigits>
   10524           <format>$1 $2 $3</format>
   10525         </numberFormat>
   10526       </availableFormats>
   10527       <generalDesc>
   10528         <nationalNumberPattern>
   10529           [4-9]\d{6}|
   10530           38\d{7}
   10531         </nationalNumberPattern>
   10532         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   10533       </generalDesc>
   10534       <fixedLine>
   10535         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
   10536         <nationalNumberPattern>
   10537           (?:
   10538             4(?:
   10539               [14][0-245]|
   10540               2[0-7]|
   10541               [37][0-8]|
   10542               5[0-3568]|
   10543               6\d|
   10544               8[0-36-8]
   10545             )|
   10546             5(?:
   10547               05|
   10548               [156]\d|
   10549               2[02578]|
   10550               3[013-7]|
   10551               4[03-7]|
   10552               7[0-2578]|
   10553               8[0-35-9]|
   10554               9[013-689]
   10555             )|
   10556             87[23]
   10557           )\d{4}
   10558         </nationalNumberPattern>
   10559         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   10560         <exampleNumber>4101234</exampleNumber>
   10561       </fixedLine>
   10562       <mobile>
   10563         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
   10564         <nationalNumberPattern>
   10565           38[589]\d{6}|
   10566           (?:
   10567             6(?:
   10568               1[0-8]|
   10569               3[0-27-9]|
   10570               4[0-27]|
   10571               5[0-29]|
   10572               [67][0-69]|
   10573               9\d
   10574             )|
   10575             7(?:
   10576               5[057]|
   10577               7\d|
   10578               8[0-3]
   10579             )|
   10580             8(?:
   10581               2[0-5]|
   10582               [469]\d|
   10583               5[1-9]
   10584             )
   10585           )\d{4}
   10586         </nationalNumberPattern>
   10587         <exampleNumber>6101234</exampleNumber>
   10588       </mobile>
   10589       <tollFree>
   10590         <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
   10591              numbers can be found online, and it is not clear what these are; the standard
   10592              definition would have them under the +800 country code instead of Iceland. -->
   10593         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
   10594         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   10595         <exampleNumber>8001234</exampleNumber>
   10596       </tollFree>
   10597       <premiumRate>
   10598         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
   10599         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   10600         <exampleNumber>9011234</exampleNumber>
   10601       </premiumRate>
   10602       <voip>
   10603         <nationalNumberPattern>49[0-24-79]\d{4}</nationalNumberPattern>
   10604         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   10605         <exampleNumber>4921234</exampleNumber>
   10606       </voip>
   10607       <voicemail>
   10608         <nationalNumberPattern>
   10609           (?:
   10610             6(?:
   10611               2[0-8]|
   10612               49|
   10613               8\d
   10614             )|
   10615             8(?:
   10616               2[6-9]|
   10617               [38]\d|
   10618               50|
   10619               7[014-9]
   10620             )|
   10621             95[48]
   10622           )\d{4}
   10623         </nationalNumberPattern>
   10624         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   10625         <exampleNumber>6201234</exampleNumber>
   10626       </voicemail>
   10627     </territory>
   10628 
   10629     <!-- Italy -->
   10630     <!-- http://en.wikipedia.org/wiki/%2B39 -->
   10631     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true"
   10632                mobileNumberPortableRegion="true">
   10633       <availableFormats>
   10634         <!-- The leading zero for fixed numbers will be prepended before the matching of these
   10635              regular expressions. -->
   10636         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
   10637           <leadingDigits>
   10638             0[26]|
   10639             55
   10640           </leadingDigits>
   10641           <format>$1 $2 $3</format>
   10642         </numberFormat>
   10643         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
   10644           <leadingDigits>0[26]</leadingDigits>
   10645           <format>$1 $2 $3</format>
   10646         </numberFormat>
   10647         <numberFormat pattern="(0[26])(\d{4,6})">
   10648           <leadingDigits>0[26]</leadingDigits>
   10649           <format>$1 $2</format>
   10650         </numberFormat>
   10651         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
   10652           <leadingDigits>0[13-57-9][0159]</leadingDigits>
   10653           <format>$1 $2 $3</format>
   10654         </numberFormat>
   10655         <numberFormat pattern="(\d{3})(\d{3,6})">
   10656           <leadingDigits>
   10657             0[13-57-9][0159]|
   10658             8(?:
   10659               03|
   10660               4[17]|
   10661               9[245]
   10662             )
   10663           </leadingDigits>
   10664           <leadingDigits>
   10665             0[13-57-9][0159]|
   10666             8(?:
   10667               03|
   10668               4[17]|
   10669               9(?:
   10670                 2|
   10671                 [45][0-4]
   10672               )
   10673             )
   10674           </leadingDigits>
   10675           <format>$1 $2</format>
   10676         </numberFormat>
   10677         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
   10678           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
   10679           <format>$1 $2 $3</format>
   10680         </numberFormat>
   10681         <numberFormat pattern="(0\d{3})(\d{2,6})">
   10682           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
   10683           <format>$1 $2</format>
   10684         </numberFormat>
   10685         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   10686           <leadingDigits>
   10687             [13]|
   10688             8(?:
   10689               00|
   10690               4[08]|
   10691               9[59]
   10692             )
   10693           </leadingDigits>
   10694           <leadingDigits>
   10695             [13]|
   10696             8(?:
   10697               00|
   10698               4[08]|
   10699               9(?:
   10700                 5[5-9]|
   10701                 9
   10702               )
   10703             )
   10704           </leadingDigits>
   10705           <format>$1 $2 $3</format>
   10706         </numberFormat>
   10707         <numberFormat pattern="(\d{4})(\d{4})">
   10708           <leadingDigits>894</leadingDigits>
   10709           <leadingDigits>894[5-9]</leadingDigits>
   10710           <format>$1 $2</format>
   10711         </numberFormat>
   10712         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
   10713           <leadingDigits>3</leadingDigits>
   10714           <format>$1 $2 $3</format>
   10715         </numberFormat>
   10716       </availableFormats>
   10717       <generalDesc>
   10718         <nationalNumberPattern>
   10719           [01589]\d{5,10}|
   10720           3(?:
   10721             [12457-9]\d{8}|
   10722             [36]\d{7,9}
   10723           )
   10724         </nationalNumberPattern>
   10725         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   10726       </generalDesc>
   10727       <noInternationalDialling>
   10728         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
   10729         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   10730         <exampleNumber>848123456</exampleNumber>
   10731       </noInternationalDialling>
   10732       <fixedLine>
   10733         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
   10734              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
   10735              found with other prefixes that are 11 digits long as well, so we allow it for all the
   10736              three and four digit area codes. -->
   10737         <nationalNumberPattern>
   10738           0(?:
   10739             [26]\d{4,9}|
   10740             (?:
   10741               1(?:
   10742                 [0159]\d|
   10743                 [27][1-5]|
   10744                 31|
   10745                 4[1-4]|
   10746                 6[1356]|
   10747                 8[2-57]
   10748               )|
   10749               3(?:
   10750                 [0159]\d|
   10751                 2[1-4]|
   10752                 3[12]|
   10753                 [48][1-6]|
   10754                 6[2-59]|
   10755                 7[1-7]
   10756               )|
   10757               4(?:
   10758                 [0159]\d|
   10759                 [23][1-9]|
   10760                 4[245]|
   10761                 6[1-5]|
   10762                 7[1-4]|
   10763                 81
   10764               )|
   10765               5(?:
   10766                 [0159]\d|
   10767                 2[1-5]|
   10768                 3[2-6]|
   10769                 4[1-79]|
   10770                 6[4-6]|
   10771                 7[1-578]|
   10772                 8[3-8]
   10773               )|
   10774               7(?:
   10775                 [0159]\d|
   10776                 2[12]|
   10777                 3[1-7]|
   10778                 4[2346]|
   10779                 6[13569]|
   10780                 7[13-6]|
   10781                 8[1-59]
   10782               )|
   10783               8(?:
   10784                 [0159]\d|
   10785                 2[34578]|
   10786                 3[1-356]|
   10787                 [6-8][1-5]
   10788               )|
   10789               9(?:
   10790                 [0159]\d|
   10791                 [238][1-5]|
   10792                 4[12]|
   10793                 6[1-8]|
   10794                 7[1-6]
   10795               )
   10796             )\d{2,7}
   10797           )
   10798         </nationalNumberPattern>
   10799         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
   10800         <exampleNumber>0212345678</exampleNumber>
   10801       </fixedLine>
   10802       <mobile>
   10803         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
   10804              digits long. However, a user reported the existence of new 11 digit long numbers for
   10805              TIM with the prefix 33X, so this is supported also. -->
   10806         <nationalNumberPattern>
   10807           3(?:
   10808             [12457-9]\d{8}|
   10809             6\d{7,8}|
   10810             3\d{7,9}
   10811           )
   10812         </nationalNumberPattern>
   10813         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
   10814         <exampleNumber>3123456789</exampleNumber>
   10815       </mobile>
   10816       <tollFree>
   10817         <nationalNumberPattern>
   10818           80(?:
   10819             0\d{6}|
   10820             3\d{3}
   10821           )
   10822         </nationalNumberPattern>
   10823         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   10824         <exampleNumber>800123456</exampleNumber>
   10825       </tollFree>
   10826       <premiumRate>
   10827         <!-- Adding 0878 numbers, as per
   10828              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
   10829              premium prefixes are mentioned here:
   10830              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
   10831         <nationalNumberPattern>
   10832           0878\d{5}|
   10833           1(?:
   10834             44|
   10835             6[346]
   10836           )\d{6}|
   10837           89(?:
   10838             2\d{3}|
   10839             4(?:
   10840               [0-4]\d{2}|
   10841               [5-9]\d{4}
   10842             )|
   10843             5(?:
   10844               [0-4]\d{2}|
   10845               [5-9]\d{6}
   10846             )|
   10847             9\d{6}
   10848           )
   10849         </nationalNumberPattern>
   10850         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   10851         <exampleNumber>899123456</exampleNumber>
   10852       </premiumRate>
   10853       <sharedCost>
   10854         <nationalNumberPattern>
   10855           84(?:
   10856             [08]\d{6}|
   10857             [17]\d{3}
   10858           )
   10859         </nationalNumberPattern>
   10860         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   10861         <exampleNumber>848123456</exampleNumber>
   10862       </sharedCost>
   10863       <personalNumber>
   10864         <nationalNumberPattern>
   10865           1(?:
   10866             78\d|
   10867             99
   10868           )\d{6}
   10869         </nationalNumberPattern>
   10870         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   10871         <exampleNumber>1781234567</exampleNumber>
   10872       </personalNumber>
   10873       <voip>
   10874         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
   10875         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10876         <exampleNumber>5512345678</exampleNumber>
   10877       </voip>
   10878     </territory>
   10879 
   10880     <!-- Jersey -->
   10881     <!-- Inherits formatting rules from the UK. -->
   10882     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
   10883     <!-- http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&childID=1036 -->
   10884     <territory id="JE" countryCode="44" internationalPrefix="00"
   10885                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
   10886       <generalDesc>
   10887         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
   10888         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   10889       </generalDesc>
   10890       <areaCodeOptional>
   10891         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
   10892         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10893         <exampleNumber>1534250123</exampleNumber>
   10894       </areaCodeOptional>
   10895       <!-- Specific to JE. -->
   10896       <fixedLine>
   10897         <!-- 1534 with 10 digits. -->
   10898         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
   10899         <exampleNumber>1534456789</exampleNumber>
   10900       </fixedLine>
   10901       <mobile>
   10902         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
   10903         <nationalNumberPattern>
   10904           7(?:
   10905             509|
   10906             7(?:
   10907               00|
   10908               97
   10909             )|
   10910             829|
   10911             937
   10912           )\d{6}
   10913         </nationalNumberPattern>
   10914         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10915         <exampleNumber>7797123456</exampleNumber>
   10916       </mobile>
   10917       <pager>
   10918         <!-- Pager numbers as per GB. -->
   10919         <nationalNumberPattern>
   10920           76(?:
   10921             0[012]|
   10922             2[356]|
   10923             4[0134]|
   10924             5[49]|
   10925             6[0-369]|
   10926             77|
   10927             81|
   10928             9[39]
   10929           )\d{6}
   10930         </nationalNumberPattern>
   10931         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10932         <exampleNumber>7640123456</exampleNumber>
   10933       </pager>
   10934       <!-- Specific to JE. -->
   10935       <tollFree>
   10936         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
   10937         <nationalNumberPattern>
   10938           80(?:
   10939             07(?:
   10940               35|
   10941               81
   10942             )|
   10943             8901
   10944           )\d{4}
   10945         </nationalNumberPattern>
   10946         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10947         <exampleNumber>8007354567</exampleNumber>
   10948       </tollFree>
   10949       <premiumRate>
   10950         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
   10951         <nationalNumberPattern>
   10952           (?:
   10953             871206|
   10954             90(?:
   10955               066[59]|
   10956               1810|
   10957               71(?:
   10958                 07|
   10959                 55
   10960               )
   10961             )
   10962           )\d{4}
   10963         </nationalNumberPattern>
   10964         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10965         <exampleNumber>9018105678</exampleNumber>
   10966       </premiumRate>
   10967       <sharedCost>
   10968         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
   10969         <nationalNumberPattern>
   10970           8(?:
   10971             4(?:
   10972               4(?:
   10973                 4(?:
   10974                   05|
   10975                   42|
   10976                   69
   10977                 )|
   10978                 703
   10979               )|
   10980               5(?:
   10981                 041|
   10982                 800
   10983               )
   10984             )|
   10985             70002
   10986           )\d{4}
   10987         </nationalNumberPattern>
   10988         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10989         <exampleNumber>8447034567</exampleNumber>
   10990       </sharedCost>
   10991       <personalNumber>
   10992         <!-- 70 1511 with 10 digits. -->
   10993         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
   10994         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   10995         <exampleNumber>7015115678</exampleNumber>
   10996       </personalNumber>
   10997       <voip>
   10998         <!-- VoIP numbers as per GB. -->
   10999         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
   11000         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11001         <exampleNumber>5612345678</exampleNumber>
   11002       </voip>
   11003       <uan>
   11004         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
   11005              370 002, 371 206, 55 with 10 digits. -->
   11006         <nationalNumberPattern>
   11007           3(?:
   11008             0(?:
   11009               07(?:
   11010                 35|
   11011                 81
   11012               )|
   11013               8901
   11014             )|
   11015             3\d{4}|
   11016             4(?:
   11017               4(?:
   11018                 4(?:
   11019                   05|
   11020                   42|
   11021                   69
   11022                 )|
   11023                 703
   11024               )|
   11025               5(?:
   11026                 041|
   11027                 800
   11028               )
   11029             )|
   11030             7(?:
   11031               0002|
   11032               1206
   11033             )
   11034           )\d{4}|
   11035           55\d{8}
   11036         </nationalNumberPattern>
   11037         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11038         <exampleNumber>5512345678</exampleNumber>
   11039       </uan>
   11040     </territory>
   11041 
   11042     <!-- Jamaica -->
   11043     <!-- http://www.itu.int/oth/T020200006C/en -->
   11044     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
   11045                internationalPrefix="011">
   11046       <generalDesc>
   11047         <!-- NANPA country - uses US formatting rules -->
   11048         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
   11049         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   11050       </generalDesc>
   11051       <fixedLine>
   11052         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
   11053         <nationalNumberPattern>
   11054           876(?:
   11055             5(?:
   11056               0[12]|
   11057               1[0-468]|
   11058               2[35]|
   11059               63
   11060             )|
   11061             6(?:
   11062               0[1-3579]|
   11063               1[027-9]|
   11064               [23]\d|
   11065               40|
   11066               5[06]|
   11067               6[2-589]|
   11068               7[05]|
   11069               8[04]|
   11070               9[4-9]
   11071             )|
   11072             7(?:
   11073               0[2-689]|
   11074               [1-6]\d|
   11075               8[056]|
   11076               9[45]
   11077             )|
   11078             9(?:
   11079               0[1-8]|
   11080               1[02378]|
   11081               [2-8]\d|
   11082               9[2-468]
   11083             )
   11084           )\d{4}
   11085         </nationalNumberPattern>
   11086         <exampleNumber>8765123456</exampleNumber>
   11087       </fixedLine>
   11088       <mobile>
   11089         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
   11090              be valid by sending SMSs and looking at online number lookup sites.
   11091 
   11092              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
   11093              Most have mobile numbers online so we have put them under mobile but is possible
   11094              they are a mixture of fixed line and mobile. -->
   11095         <nationalNumberPattern>
   11096           876(?:
   11097             2[1789]\d|
   11098             [348]\d{2}|
   11099             5(?:
   11100               08|
   11101               27|
   11102               6[0-24-9]|
   11103               [3-578]\d
   11104             )|
   11105             7(?:
   11106               0[07]|
   11107               7\d|
   11108               8[1-47-9]|
   11109               9[0-36-9]
   11110             )|
   11111             9(?:
   11112               [01]9|
   11113               9[0579]
   11114             )
   11115           )\d{4}
   11116         </nationalNumberPattern>
   11117         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11118         <exampleNumber>8762101234</exampleNumber>
   11119       </mobile>
   11120       <tollFree>
   11121         <nationalNumberPattern>
   11122           8(?:
   11123             00|
   11124             55|
   11125             66|
   11126             77|
   11127             88
   11128           )[2-9]\d{6}
   11129         </nationalNumberPattern>
   11130         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11131         <exampleNumber>8002123456</exampleNumber>
   11132       </tollFree>
   11133       <premiumRate>
   11134         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   11135         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11136         <exampleNumber>9002123456</exampleNumber>
   11137       </premiumRate>
   11138       <personalNumber>
   11139         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   11140         <nationalNumberPattern>
   11141           5(?:
   11142             00|
   11143             33|
   11144             44
   11145           )[2-9]\d{6}
   11146         </nationalNumberPattern>
   11147         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   11148         <exampleNumber>5002345678</exampleNumber>
   11149       </personalNumber>
   11150     </territory>
   11151 
   11152     <!-- Jordan -->
   11153     <!-- http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english -->
   11154     <!-- http://www.itu.int/oth/T020200006E/en -->
   11155     <!-- http://en.wikipedia.org/wiki/%2B962 -->
   11156     <territory id="JO" countryCode="962" internationalPrefix="00"
   11157                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   11158                mobileNumberPortableRegion="true">
   11159       <availableFormats>
   11160         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   11161           pattern="(\d)(\d{3})(\d{4})">
   11162           <leadingDigits>
   11163             [2356]|
   11164             87
   11165           </leadingDigits>
   11166           <format>$1 $2 $3</format>
   11167         </numberFormat>
   11168         <numberFormat pattern="(7)(\d{4})(\d{4})">
   11169           <leadingDigits>7[457-9]</leadingDigits>
   11170           <format>$1 $2 $3</format>
   11171         </numberFormat>
   11172         <numberFormat pattern="(\d{3})(\d{5,6})">
   11173           <leadingDigits>
   11174             70|
   11175             8[0158]|
   11176             9
   11177           </leadingDigits>
   11178           <format>$1 $2</format>
   11179         </numberFormat>
   11180       </availableFormats>
   11181       <generalDesc>
   11182         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
   11183         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   11184       </generalDesc>
   11185       <fixedLine>
   11186         <nationalNumberPattern>
   11187           (?:
   11188             2(?:
   11189               6(?:
   11190                 2[0-35-9]|
   11191                 3[0-57-8]|
   11192                 4[24-7]|
   11193                 5[0-24-8]|
   11194                 [6-9][02]
   11195               )|
   11196               7(?:
   11197                 0[1-79]|
   11198                 10|
   11199                 2[014-7]|
   11200                 3[0-689]|
   11201                 4[019]|
   11202                 5[0-3578]
   11203               )
   11204             )|
   11205             32(?:
   11206               0[1-69]|
   11207               1[1-35-7]|
   11208               2[024-7]|
   11209               3\d|
   11210               [457][02]|
   11211               60
   11212             )|
   11213             53(?:
   11214               [013][02]|
   11215               2[0-59]|
   11216               49|
   11217               5[0-35-9]|
   11218               6[15]|
   11219               7[45]|
   11220               8[1-6]|
   11221               9[0-36-9]
   11222             )|
   11223             6(?:
   11224               2[50]0|
   11225               300|
   11226               4(?:
   11227                 0[0125]|
   11228                 1[2-7]|
   11229                 2[0569]|
   11230                 [38][07-9]|
   11231                 4[025689]|
   11232                 6[0-589]|
   11233                 7\d|
   11234                 9[0-2]
   11235               )|
   11236               5(?:
   11237                 [01][056]|
   11238                 2[034]|
   11239                 3[0-57-9]|
   11240                 4[17-8]|
   11241                 5[0-69]|
   11242                 6[0-35-9]|
   11243                 7[1-379]|
   11244                 8[0-68]|
   11245                 9[02-39]
   11246               )
   11247             )|
   11248             87(?:
   11249               [02]0|
   11250               7[08]|
   11251               9[09]
   11252             )
   11253           )\d{4}
   11254         </nationalNumberPattern>
   11255         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   11256         <exampleNumber>62001234</exampleNumber>
   11257       </fixedLine>
   11258       <mobile>
   11259         <nationalNumberPattern>
   11260           7(?:
   11261             55|
   11262             7[25-9]|
   11263             8[5-9]|
   11264             9[05-9]
   11265           )\d{6}
   11266         </nationalNumberPattern>
   11267         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   11268         <exampleNumber>790123456</exampleNumber>
   11269       </mobile>
   11270       <pager>
   11271         <nationalNumberPattern>
   11272           74(?:
   11273             66|
   11274             77
   11275           )\d{5}
   11276         </nationalNumberPattern>
   11277         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   11278         <exampleNumber>746612345</exampleNumber>
   11279       </pager>
   11280       <tollFree>
   11281         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   11282         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   11283         <exampleNumber>80012345</exampleNumber>
   11284       </tollFree>
   11285       <premiumRate>
   11286         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
   11287         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   11288         <exampleNumber>90012345</exampleNumber>
   11289       </premiumRate>
   11290       <sharedCost>
   11291         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
   11292         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   11293         <exampleNumber>85012345</exampleNumber>
   11294       </sharedCost>
   11295       <personalNumber>
   11296         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
   11297         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   11298         <exampleNumber>700123456</exampleNumber>
   11299       </personalNumber>
   11300       <uan>
   11301         <!-- These numbers are Location Independent Services / Fixed cost according to
   11302              http://www.trc.gov.jo -->
   11303         <nationalNumberPattern>
   11304           8(?:
   11305             10|
   11306             8\d
   11307           )\d{5}
   11308         </nationalNumberPattern>
   11309         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   11310         <exampleNumber>88101234</exampleNumber>
   11311       </uan>
   11312     </territory>
   11313 
   11314     <!-- Japan -->
   11315     <!-- http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html -->
   11316     <!-- http://www.numberingplans.com/?page=dialling&sub=areacodes&ac=JP -->
   11317     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
   11318                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true"
   11319                mobileNumberPortableRegion="true">
   11320       <availableFormats>
   11321         <!-- Toll-free, premium-rate and UAN numbers -->
   11322         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   11323           <leadingDigits>
   11324             (?:
   11325               12|
   11326               57|
   11327               99
   11328             )0
   11329           </leadingDigits>
   11330           <format>$1-$2-$3</format>
   11331         </numberFormat>
   11332         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   11333           <leadingDigits>800</leadingDigits>
   11334           <format>$1-$2-$3</format>
   11335         </numberFormat>
   11336         <!-- National-only toll-free numbers (0077 and 0088) and VOIP numbers (0037) where the
   11337              leading "0" is considered the national prefix. -->
   11338         <numberFormat pattern="(\d{3})(\d{4})">
   11339           <leadingDigits>077</leadingDigits>
   11340           <format>$1-$2</format>
   11341         </numberFormat>
   11342         <numberFormat pattern="(\d{3})(\d{2})(\d{3,4})">
   11343           <leadingDigits>077</leadingDigits>
   11344           <format>$1-$2-$3</format>
   11345         </numberFormat>
   11346         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
   11347           <leadingDigits>088</leadingDigits>
   11348           <format>$1-$2-$3</format>
   11349         </numberFormat>
   11350         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   11351           <leadingDigits>
   11352             0(?:
   11353               37|
   11354               66
   11355             )
   11356           </leadingDigits>
   11357           <format>$1-$2-$3</format>
   11358         </numberFormat>
   11359         <numberFormat pattern="(\d{3})(\d{4})(\d{4,5})">
   11360           <leadingDigits>
   11361             0(?:
   11362               37|
   11363               66
   11364             )
   11365           </leadingDigits>
   11366           <format>$1-$2-$3</format>
   11367         </numberFormat>
   11368         <numberFormat pattern="(\d{3})(\d{5})(\d{5,6})">
   11369           <leadingDigits>
   11370             0(?:
   11371               37|
   11372               66
   11373             )
   11374           </leadingDigits>
   11375           <format>$1-$2-$3</format>
   11376         </numberFormat>
   11377         <numberFormat pattern="(\d{3})(\d{6})(\d{6,7})">
   11378           <leadingDigits>
   11379             0(?:
   11380               37|
   11381               66
   11382             )
   11383           </leadingDigits>
   11384           <format>$1-$2-$3</format>
   11385         </numberFormat>
   11386         <!-- Some leading digits are explicitly reserved for a particular purpose.
   11387              We handle them first in this rule, and let the following rules ignore those exceptions.
   11388              Note: The rule here is not in the files we rely on when creating the other rules.
   11389                    We would need to manually modify it if the Japanese goverment
   11390                    decided to change the rule.
   11391 
   11392              (prefix): purpose
   11393              "20": Pagers
   11394              "50": IP phone
   11395              "70": PHS (Personal Handy-phone System, which has been used in Japan
   11396                    with Non-3G, Japanese-specific protocol).
   11397                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
   11398              "80" and "90": Mobile phone
   11399           -->
   11400         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   11401           <leadingDigits>
   11402             [2579]0|
   11403             80[1-9]
   11404           </leadingDigits>
   11405           <format>$1-$2-$3</format>
   11406         </numberFormat>
   11407         <!-- The order of the reg-exps are important.
   11408              Examples (not all):
   11409              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
   11410              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
   11411              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
   11412              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
   11413              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
   11414              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
   11415           -->
   11416         <numberFormat pattern="(\d{4})(\d)(\d{4})">
   11417           <leadingDigits>
   11418             1(?:
   11419               26|
   11420               3[79]|
   11421               4[56]|
   11422               5[4-68]|
   11423               6[3-5]
   11424             )|
   11425             5(?:
   11426               76|
   11427               97
   11428             )|
   11429             499|
   11430             746|
   11431             8(?:
   11432               3[89]|
   11433               63|
   11434               47|
   11435               51
   11436             )|
   11437             9(?:
   11438               49|
   11439               80|
   11440               9[16]
   11441             )
   11442           </leadingDigits>
   11443           <leadingDigits>
   11444             1(?:
   11445               267|
   11446               3(?:
   11447                 7[247]|
   11448                 9[278]
   11449               )|
   11450               4(?:
   11451                 5[67]|
   11452                 66
   11453               )|
   11454               5(?:
   11455                 47|
   11456                 58|
   11457                 64|
   11458                 8[67]
   11459               )|
   11460               6(?:
   11461                 3[245]|
   11462                 48|
   11463                 5[4-68]
   11464               )
   11465             )|
   11466             5(?:
   11467               76|
   11468               97
   11469             )9|
   11470             499[2468]|
   11471             7468|
   11472             8(?:
   11473               3(?:
   11474                 8[78]|
   11475                 96
   11476               )|
   11477               636|
   11478               477|
   11479               51[24]
   11480             )|
   11481             9(?:
   11482               496|
   11483               802|
   11484               9(?:
   11485                 1[23]|
   11486                 69
   11487               )
   11488             )
   11489           </leadingDigits>
   11490           <leadingDigits>
   11491             1(?:
   11492               267|
   11493               3(?:
   11494                 7[247]|
   11495                 9[278]
   11496               )|
   11497               4(?:
   11498                 5[67]|
   11499                 66
   11500               )|
   11501               5(?:
   11502                 47|
   11503                 58|
   11504                 64|
   11505                 8[67]
   11506               )|
   11507               6(?:
   11508                 3[245]|
   11509                 48|
   11510                 5[4-68]
   11511               )
   11512             )|
   11513             5(?:
   11514               769|
   11515               979[2-69]
   11516             )|
   11517             499[2468]|
   11518             7468|
   11519             8(?:
   11520               3(?:
   11521                 8[78]|
   11522                 96[2457-9]
   11523               )|
   11524               636[2-57-9]|
   11525               477|
   11526               51[24]
   11527             )|
   11528             9(?:
   11529               496|
   11530               802|
   11531               9(?:
   11532                 1[23]|
   11533                 69
   11534               )
   11535             )
   11536           </leadingDigits>
   11537           <format>$1-$2-$3</format>
   11538         </numberFormat>
   11539         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
   11540           <leadingDigits>
   11541             1(?:
   11542               2[3-6]|
   11543               3[3-9]|
   11544               4[2-6]|
   11545               5[2-8]|
   11546               [68][2-7]|
   11547               7[2-689]|
   11548               9[1-578]
   11549             )|
   11550             2(?:
   11551               2[03-689]|
   11552               3[3-58]|
   11553               4[0-468]|
   11554               5[04-8]|
   11555               6[013-8]|
   11556               7[06-9]|
   11557               8[02-57-9]|
   11558               9[13]
   11559             )|
   11560             4(?:
   11561               2[28]|
   11562               3[689]|
   11563               6[035-7]|
   11564               7[05689]|
   11565               80|
   11566               9[3-5]
   11567             )|
   11568             5(?:
   11569               3[1-36-9]|
   11570               4[4578]|
   11571               5[013-8]|
   11572               6[1-9]|
   11573               7[2-8]|
   11574               8[14-7]|
   11575               9[4-9]
   11576             )|
   11577             7(?:
   11578               2[15]|
   11579               3[5-9]|
   11580               4[02-9]|
   11581               6[135-8]|
   11582               7[0-4689]|
   11583               9[014-9]
   11584             )|
   11585             8(?:
   11586               2[49]|
   11587               3[3-8]|
   11588               4[5-8]|
   11589               5[2-9]|
   11590               6[35-9]|
   11591               7[579]|
   11592               8[03-579]|
   11593               9[2-8]
   11594             )|
   11595             9(?:
   11596               [23]0|
   11597               4[02-46-9]|
   11598               5[024-79]|
   11599               6[4-9]|
   11600               7[2-47-9]|
   11601               8[02-7]|
   11602               9[3-7]
   11603             )
   11604           </leadingDigits>
   11605           <leadingDigits>
   11606             1(?:
   11607               2[3-6]|
   11608               3[3-9]|
   11609               4[2-6]|
   11610               5(?:
   11611                 [236-8]|
   11612                 [45][2-69]
   11613               )|
   11614               [68][2-7]|
   11615               7[2-689]|
   11616               9[1-578]
   11617             )|
   11618             2(?:
   11619               2(?:
   11620                 [04-689]|
   11621                 3[23]
   11622               )|
   11623               3[3-58]|
   11624               4[0-468]|
   11625               5(?:
   11626                 5[78]|
   11627                 7[2-4]|
   11628                 [0468][2-9]
   11629               )|
   11630               6(?:
   11631                 [0135-8]|
   11632                 4[2-5]
   11633               )|
   11634               7(?:
   11635                 [0679]|
   11636                 8[2-7]
   11637               )|
   11638               8(?:
   11639                 [024578]|
   11640                 3[25-9]|
   11641                 9[6-9]
   11642               )|
   11643               9(?:
   11644                 11|
   11645                 3[2-4]
   11646               )
   11647             )|
   11648             4(?:
   11649               2(?:
   11650                 2[2-9]|
   11651                 8[237-9]
   11652               )|
   11653               3[689]|
   11654               6[035-7]|
   11655               7(?:
   11656                 [059][2-8]|
   11657                 [68]
   11658               )|
   11659               80|
   11660               9[3-5]
   11661             )|
   11662             5(?:
   11663               3[1-36-9]|
   11664               4[4578]|
   11665               5[013-8]|
   11666               6[1-9]|
   11667               7[2-8]|
   11668               8[14-7]|
   11669               9(?:
   11670                 [89][2-8]|
   11671                 [4-7]
   11672               )
   11673             )|
   11674             7(?:
   11675               2[15]|
   11676               3[5-9]|
   11677               4[02-9]|
   11678               6[135-8]|
   11679               7[0-4689]|
   11680               9(?:
   11681                 [017-9]|
   11682                 4[6-8]|
   11683                 5[2-478]|
   11684                 6[2-589]
   11685               )
   11686             )|
   11687             8(?:
   11688               2(?:
   11689                 4[4-8]|
   11690                 9[2-8]
   11691               )|
   11692               3(?:
   11693                 7[2-6]|
   11694                 [3-6][2-9]|
   11695                 8[2-5]
   11696               )|
   11697               4[5-8]|
   11698               5[2-9]|
   11699               6(?:
   11700                 [37]|
   11701                 5[4-7]|
   11702                 6[2-9]|
   11703                 8[2-8]|
   11704                 9[236-9]
   11705               )|
   11706               7[579]|
   11707               8[03-579]|
   11708               9[2-8]
   11709             )|
   11710             9(?:
   11711               [23]0|
   11712               4[02-46-9]|
   11713               5[024-79]|
   11714               6[4-9]|
   11715               7[2-47-9]|
   11716               8[02-7]|
   11717               9(?:
   11718                 3[34]|
   11719                 [4-7]
   11720               )
   11721             )
   11722           </leadingDigits>
   11723           <leadingDigits>
   11724             1(?:
   11725               2[3-6]|
   11726               3[3-9]|
   11727               4[2-6]|
   11728               5(?:
   11729                 [236-8]|
   11730                 [45][2-69]
   11731               )|
   11732               [68][2-7]|
   11733               7[2-689]|
   11734               9[1-578]
   11735             )|
   11736             2(?:
   11737               2(?:
   11738                 [04-689]|
   11739                 3[23]
   11740               )|
   11741               3[3-58]|
   11742               4[0-468]|
   11743               5(?:
   11744                 5[78]|
   11745                 7[2-4]|
   11746                 [0468][2-9]
   11747               )|
   11748               6(?:
   11749                 [0135-8]|
   11750                 4[2-5]
   11751               )|
   11752               7(?:
   11753                 [0679]|
   11754                 8[2-7]
   11755               )|
   11756               8(?:
   11757                 [024578]|
   11758                 3[25-9]|
   11759                 9[6-9]
   11760               )|
   11761               9(?:
   11762                 11|
   11763                 3[2-4]
   11764               )
   11765             )|
   11766             4(?:
   11767               2(?:
   11768                 2[2-9]|
   11769                 8[237-9]
   11770               )|
   11771               3[689]|
   11772               6[035-7]|
   11773               7(?:
   11774                 [059][2-8]|
   11775                 [68]
   11776               )|
   11777               80|
   11778               9[3-5]
   11779             )|
   11780             5(?:
   11781               3[1-36-9]|
   11782               4[4578]|
   11783               5[013-8]|
   11784               6[1-9]|
   11785               7[2-8]|
   11786               8[14-7]|
   11787               9(?:
   11788                 [89][2-8]|
   11789                 [4-7]
   11790               )
   11791             )|
   11792             7(?:
   11793               2[15]|
   11794               3[5-9]|
   11795               4[02-9]|
   11796               6[135-8]|
   11797               7[0-4689]|
   11798               9(?:
   11799                 [017-9]|
   11800                 4[6-8]|
   11801                 5[2-478]|
   11802                 6[2-589]
   11803               )
   11804             )|
   11805             8(?:
   11806               2(?:
   11807                 4[4-8]|
   11808                 9(?:
   11809                   [3578]|
   11810                   20|
   11811                   4[04-9]|
   11812                   6[56]
   11813                 )
   11814               )|
   11815               3(?:
   11816                 7(?:
   11817                   [2-5]|
   11818                   6[0-59]
   11819                 )|
   11820                 [3-6][2-9]|
   11821                 8[2-5]
   11822               )|
   11823               4[5-8]|
   11824               5[2-9]|
   11825               6(?:
   11826                 [37]|
   11827                 5(?:
   11828                   [467]|
   11829                   5[014-9]
   11830                 )|
   11831                 6(?:
   11832                   [2-8]|
   11833                   9[02-69]
   11834                 )|
   11835                 8[2-8]|
   11836                 9(?:
   11837                   [236-8]|
   11838                   9[23]
   11839                 )
   11840               )|
   11841               7[579]|
   11842               8[03-579]|
   11843               9[2-8]
   11844             )|
   11845             9(?:
   11846               [23]0|
   11847               4[02-46-9]|
   11848               5[024-79]|
   11849               6[4-9]|
   11850               7[2-47-9]|
   11851               8[02-7]|
   11852               9(?:
   11853                 3(?:
   11854                   3[02-9]|
   11855                   4[0-24689]
   11856                 )|
   11857                 4[2-69]|
   11858                 [5-7]
   11859               )
   11860             )
   11861           </leadingDigits>
   11862           <leadingDigits>
   11863             1(?:
   11864               2[3-6]|
   11865               3[3-9]|
   11866               4[2-6]|
   11867               5(?:
   11868                 [236-8]|
   11869                 [45][2-69]
   11870               )|
   11871               [68][2-7]|
   11872               7[2-689]|
   11873               9[1-578]
   11874             )|
   11875             2(?:
   11876               2(?:
   11877                 [04-689]|
   11878                 3[23]
   11879               )|
   11880               3[3-58]|
   11881               4[0-468]|
   11882               5(?:
   11883                 5[78]|
   11884                 7[2-4]|
   11885                 [0468][2-9]
   11886               )|
   11887               6(?:
   11888                 [0135-8]|
   11889                 4[2-5]
   11890               )|
   11891               7(?:
   11892                 [0679]|
   11893                 8[2-7]
   11894               )|
   11895               8(?:
   11896                 [024578]|
   11897                 3[25-9]|
   11898                 9[6-9]
   11899               )|
   11900               9(?:
   11901                 11|
   11902                 3[2-4]
   11903               )
   11904             )|
   11905             4(?:
   11906               2(?:
   11907                 2[2-9]|
   11908                 8[237-9]
   11909               )|
   11910               3[689]|
   11911               6[035-7]|
   11912               7(?:
   11913                 [059][2-8]|
   11914                 [68]
   11915               )|
   11916               80|
   11917               9[3-5]
   11918             )|
   11919             5(?:
   11920               3[1-36-9]|
   11921               4[4578]|
   11922               5[013-8]|
   11923               6[1-9]|
   11924               7[2-8]|
   11925               8[14-7]|
   11926               9(?:
   11927                 [89][2-8]|
   11928                 [4-7]
   11929               )
   11930             )|
   11931             7(?:
   11932               2[15]|
   11933               3[5-9]|
   11934               4[02-9]|
   11935               6[135-8]|
   11936               7[0-4689]|
   11937               9(?:
   11938                 [017-9]|
   11939                 4[6-8]|
   11940                 5[2-478]|
   11941                 6[2-589]
   11942               )
   11943             )|
   11944             8(?:
   11945               2(?:
   11946                 4[4-8]|
   11947                 9(?:
   11948                   [3578]|
   11949                   20|
   11950                   4[04-9]|
   11951                   6(?:
   11952                     5[25]|
   11953                     60
   11954                   )
   11955                 )
   11956               )|
   11957               3(?:
   11958                 7(?:
   11959                   [2-5]|
   11960                   6[0-59]
   11961                 )|
   11962                 [3-6][2-9]|
   11963                 8[2-5]
   11964               )|
   11965               4[5-8]|
   11966               5[2-9]|
   11967               6(?:
   11968                 [37]|
   11969                 5(?:
   11970                   [467]|
   11971                   5[014-9]
   11972                 )|
   11973                 6(?:
   11974                   [2-8]|
   11975                   9[02-69]
   11976                 )|
   11977                 8[2-8]|
   11978                 9(?:
   11979                   [236-8]|
   11980                   9[23]
   11981                 )
   11982               )|
   11983               7[579]|
   11984               8[03-579]|
   11985               9[2-8]
   11986             )|
   11987             9(?:
   11988               [23]0|
   11989               4[02-46-9]|
   11990               5[024-79]|
   11991               6[4-9]|
   11992               7[2-47-9]|
   11993               8[02-7]|
   11994               9(?:
   11995                 3(?:
   11996                   3[02-9]|
   11997                   4[0-24689]
   11998                 )|
   11999                 4[2-69]|
   12000                 [5-7]
   12001               )
   12002             )
   12003           </leadingDigits>
   12004           <format>$1-$2-$3</format>
   12005         </numberFormat>
   12006         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   12007           <leadingDigits>
   12008             1|
   12009             2(?:
   12010               2[37]|
   12011               5[5-9]|
   12012               64|
   12013               78|
   12014               8[39]|
   12015               91
   12016             )|
   12017             4(?:
   12018               2[2689]|
   12019               64|
   12020               7[347]
   12021             )|
   12022             5(?:
   12023               [2-589]|
   12024               39
   12025             )|
   12026             60|
   12027             8(?:
   12028               [46-9]|
   12029               3[279]|
   12030               2[124589]
   12031             )|
   12032             9(?:
   12033               [235-8]|
   12034               93
   12035             )
   12036           </leadingDigits>
   12037           <leadingDigits>
   12038             1|
   12039             2(?:
   12040               2[37]|
   12041               5(?:
   12042                 [57]|
   12043                 [68]0|
   12044                 9[19]
   12045               )|
   12046               64|
   12047               78|
   12048               8[39]|
   12049               917
   12050             )|
   12051             4(?:
   12052               2(?:
   12053                 [68]|
   12054                 20|
   12055                 9[178]
   12056               )|
   12057               64|
   12058               7[347]
   12059             )|
   12060             5(?:
   12061               [2-589]|
   12062               39[67]
   12063             )|
   12064             60|
   12065             8(?:
   12066               [46-9]|
   12067               3[279]|
   12068               2[124589]
   12069             )|
   12070             9(?:
   12071               [235-8]|
   12072               93[34]
   12073             )
   12074           </leadingDigits>
   12075           <leadingDigits>
   12076             1|
   12077             2(?:
   12078               2[37]|
   12079               5(?:
   12080                 [57]|
   12081                 [68]0|
   12082                 9(?:
   12083                   17|
   12084                   99
   12085                 )
   12086               )|
   12087               64|
   12088               78|
   12089               8[39]|
   12090               917
   12091             )|
   12092             4(?:
   12093               2(?:
   12094                 [68]|
   12095                 20|
   12096                 9[178]
   12097               )|
   12098               64|
   12099               7[347]
   12100             )|
   12101             5(?:
   12102               [2-589]|
   12103               39[67]
   12104             )|
   12105             60|
   12106             8(?:
   12107               [46-9]|
   12108               3[279]|
   12109               2[124589]
   12110             )|
   12111             9(?:
   12112               [235-8]|
   12113               93(?:
   12114                 31|
   12115                 4
   12116               )
   12117             )
   12118           </leadingDigits>
   12119           <format>$1-$2-$3</format>
   12120         </numberFormat>
   12121         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
   12122           <leadingDigits>
   12123             2(?:
   12124               9[14-79]|
   12125               74|
   12126               [34]7|
   12127               [56]9
   12128             )|
   12129             82|
   12130             993
   12131           </leadingDigits>
   12132           <format>$1-$2-$3</format>
   12133         </numberFormat>
   12134         <numberFormat pattern="(\d)(\d{4})(\d{4})">
   12135           <leadingDigits>
   12136             3|
   12137             4(?:
   12138               2[09]|
   12139               7[01]
   12140             )|
   12141             6[1-9]
   12142           </leadingDigits>
   12143           <format>$1-$2-$3</format>
   12144         </numberFormat>
   12145         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   12146           <leadingDigits>[2479][1-9]</leadingDigits>
   12147           <format>$1-$2-$3</format>
   12148         </numberFormat>
   12149       </availableFormats>
   12150       <generalDesc>
   12151         <nationalNumberPattern>
   12152           [1-9]\d{8,9}|
   12153           0(?:
   12154             [36]\d{7,14}|
   12155             7\d{5,7}|
   12156             8\d{7}
   12157           )
   12158         </nationalNumberPattern>
   12159         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
   12160       </generalDesc>
   12161       <noInternationalDialling>
   12162         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
   12163         <nationalNumberPattern>
   12164           0(?:
   12165             37\d{6,13}|
   12166             66\d{6,13}|
   12167             777(?:
   12168               [01]\d{2}|
   12169               5\d{3}|
   12170               8\d{4}
   12171             )|
   12172             882[1245]\d{4}
   12173           )
   12174         </nationalNumberPattern>
   12175         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
   12176         <exampleNumber>0777012</exampleNumber>
   12177       </noInternationalDialling>
   12178       <fixedLine>
   12179         <nationalNumberPattern>
   12180           (?:
   12181             1(?:
   12182               1[235-8]|
   12183               2[3-6]|
   12184               3[3-9]|
   12185               4[2-6]|
   12186               [58][2-8]|
   12187               6[2-7]|
   12188               7[2-9]|
   12189               9[1-9]
   12190             )|
   12191             2[2-9]\d|
   12192             [36][1-9]\d|
   12193             4(?:
   12194               6[02-8]|
   12195               [2-578]\d|
   12196               9[2-59]
   12197             )|
   12198             5(?:
   12199               6[1-9]|
   12200               7[2-8]|
   12201               [2-589]\d
   12202             )|
   12203             7(?:
   12204               3[4-9]|
   12205               4[02-9]|
   12206               [25-9]\d
   12207             )|
   12208             8(?:
   12209               3[2-9]|
   12210               4[5-9]|
   12211               5[1-9]|
   12212               8[03-9]|
   12213               [2679]\d
   12214             )|
   12215             9(?:
   12216               [679][1-9]|
   12217               [2-58]\d
   12218             )
   12219           )\d{6}
   12220         </nationalNumberPattern>
   12221         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12222         <exampleNumber>312345678</exampleNumber>
   12223       </fixedLine>
   12224       <mobile>
   12225         <nationalNumberPattern>
   12226           (?:
   12227             [79]0\d|
   12228             80[1-9]
   12229           )\d{7}
   12230         </nationalNumberPattern>
   12231         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12232         <exampleNumber>7012345678</exampleNumber>
   12233       </mobile>
   12234       <pager>
   12235         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
   12236         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12237         <exampleNumber>2012345678</exampleNumber>
   12238       </pager>
   12239       <tollFree>
   12240         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
   12241              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
   12242              http://eonet.jp/home/denwa/service/access.html
   12243              http://ci.fusioncom.co.jp/feature/
   12244              http://www.auhikari.jp/service/tel/connection/index.html -->
   12245         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
   12246              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
   12247              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
   12248              for now (including both leading 00s). -->
   12249         <nationalNumberPattern>
   12250           120\d{6}|
   12251           800\d{7}|
   12252           0(?:
   12253             37\d{6,13}|
   12254             66\d{6,13}|
   12255             777(?:
   12256               [01]\d{2}|
   12257               5\d{3}|
   12258               8\d{4}
   12259             )|
   12260             882[1245]\d{4}
   12261           )
   12262         </nationalNumberPattern>
   12263         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
   12264         <exampleNumber>120123456</exampleNumber>
   12265       </tollFree>
   12266       <premiumRate>
   12267         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
   12268         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12269         <exampleNumber>990123456</exampleNumber>
   12270       </premiumRate>
   12271       <personalNumber>
   12272         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
   12273         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12274         <exampleNumber>601234567</exampleNumber>
   12275       </personalNumber>
   12276       <voip>
   12277         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
   12278         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12279         <exampleNumber>5012345678</exampleNumber>
   12280       </voip>
   12281       <!-- Storing "unified number service" as UAN. -->
   12282       <uan>
   12283         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
   12284         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12285         <exampleNumber>570123456</exampleNumber>
   12286       </uan>
   12287     </territory>
   12288 
   12289     <!-- Kenya -->
   12290     <!-- http://www.cck.go.ke/licensing/numbering/plan.html -->
   12291     <!-- http://en.wikipedia.org/wiki/+254 -->
   12292     <territory id="KE" countryCode="254" internationalPrefix="000"
   12293                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   12294                mobileNumberPortableRegion="true">
   12295       <availableFormats>
   12296         <numberFormat pattern="(\d{2})(\d{4,7})">
   12297           <leadingDigits>[24-6]</leadingDigits>
   12298           <format>$1 $2</format>
   12299         </numberFormat>
   12300         <numberFormat pattern="(\d{3})(\d{6,7})">
   12301           <leadingDigits>7</leadingDigits>
   12302           <format>$1 $2</format>
   12303         </numberFormat>
   12304         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   12305           <leadingDigits>[89]</leadingDigits>
   12306           <format>$1 $2 $3</format>
   12307         </numberFormat>
   12308       </availableFormats>
   12309       <generalDesc>
   12310         <nationalNumberPattern>
   12311           20\d{6,7}|
   12312           [4-9]\d{6,9}
   12313         </nationalNumberPattern>
   12314         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   12315       </generalDesc>
   12316       <fixedLine>
   12317         <!-- The prefix 066 is supposed to be used only for 9-digit numbers, but none of these can
   12318              be found online, and the plan says also it is migrating to 9 digit numbers. Both are
   12319              supported for now. -->
   12320         <nationalNumberPattern>
   12321           20\d{6,7}|
   12322           4(?:
   12323             [013]\d{7}|
   12324             [24-6]\d{5,7}
   12325           )|
   12326           5(?:
   12327             [0-36-8]\d{5,7}|
   12328             [459]\d{5}
   12329           )|
   12330           6(?:
   12331             [08]\d{5}|
   12332             [14-79]\d{5,7}|
   12333             2\d{7}
   12334           )
   12335         </nationalNumberPattern>
   12336         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   12337         <exampleNumber>202012345</exampleNumber>
   12338       </fixedLine>
   12339       <mobile>
   12340         <nationalNumberPattern>
   12341           7(?:
   12342             0[0-8]|
   12343             [123]\d|
   12344             5[0-6]|
   12345             7[0-5]|
   12346             8[5-9]
   12347           )\d{6}
   12348         </nationalNumberPattern>
   12349         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12350         <exampleNumber>712123456</exampleNumber>
   12351       </mobile>
   12352       <tollFree>
   12353         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
   12354         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
   12355         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   12356         <exampleNumber>800223456</exampleNumber>
   12357       </tollFree>
   12358       <premiumRate>
   12359         <nationalNumberPattern>900[02-578]\d{5}</nationalNumberPattern>
   12360         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12361         <exampleNumber>900223456</exampleNumber>
   12362       </premiumRate>
   12363     </territory>
   12364 
   12365     <!-- Kyrgyzstan -->
   12366     <!-- http://www.itu.int/oth/T0202000074/en -->
   12367     <territory id="KG" countryCode="996" internationalPrefix="00"
   12368                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   12369       <availableFormats>
   12370         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   12371           <leadingDigits>
   12372             31[25]|
   12373             [5-7]
   12374           </leadingDigits>
   12375           <format>$1 $2 $3</format>
   12376         </numberFormat>
   12377         <numberFormat pattern="(\d{4})(\d{5})">
   12378           <leadingDigits>
   12379             3(?:
   12380               1[36]|
   12381               [2-9]
   12382             )
   12383           </leadingDigits>
   12384           <format>$1 $2</format>
   12385         </numberFormat>
   12386         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
   12387           <leadingDigits>8</leadingDigits>
   12388           <format>$1 $2 $3 $4</format>
   12389         </numberFormat>
   12390       </availableFormats>
   12391       <generalDesc>
   12392         <nationalNumberPattern>[35-8]\d{8,9}</nationalNumberPattern>
   12393         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   12394       </generalDesc>
   12395       <fixedLine>
   12396         <!-- Extra area codes found on Web Search: 3147, 3150, 3948. -->
   12397         <nationalNumberPattern>
   12398           (?:
   12399             3(?:
   12400               1(?:
   12401                 2\d|
   12402                 3[1-9]|
   12403                 47|
   12404                 5[02]|
   12405                 6[1-8]
   12406               )|
   12407               2(?:
   12408                 22|
   12409                 3[0-479]|
   12410                 6[0-7]
   12411               )|
   12412               4(?:
   12413                 22|
   12414                 5[6-9]|
   12415                 6[0-4]
   12416               )|
   12417               5(?:
   12418                 22|
   12419                 3[4-7]|
   12420                 59|
   12421                 6[0-5]
   12422               )|
   12423               6(?:
   12424                 22|
   12425                 5[35-7]|
   12426                 6[0-3]
   12427               )|
   12428               7(?:
   12429                 22|
   12430                 3[468]|
   12431                 4[1-9]|
   12432                 59|
   12433                 6\d|
   12434                 7[5-7]
   12435               )|
   12436               9(?:
   12437                 22|
   12438                 4[1-8]|
   12439                 6[0-8]
   12440               )
   12441             )|
   12442             6(?:
   12443               09|
   12444               12|
   12445               2[2-4]
   12446             )\d
   12447           )\d{5}
   12448         </nationalNumberPattern>
   12449         <exampleNumber>312123456</exampleNumber>
   12450       </fixedLine>
   12451       <mobile>
   12452         <!-- Added 70[1235789] since SMS messages have been successfully sent to numbers with this
   12453              prefix, and numbers have been found like this online. -->
   12454         <nationalNumberPattern>
   12455           5[124-7]\d{7}|
   12456           7(?:
   12457             0[0-357-9]|
   12458             7\d
   12459           )\d{6}
   12460         </nationalNumberPattern>
   12461         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12462         <exampleNumber>700123456</exampleNumber>
   12463       </mobile>
   12464       <tollFree>
   12465         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
   12466              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
   12467         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
   12468         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   12469         <exampleNumber>800123456</exampleNumber>
   12470       </tollFree>
   12471       <!-- No premiumRate information can be found. -->
   12472       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
   12473     </territory>
   12474 
   12475     <!-- Cambodia -->
   12476     <!-- http://www.itu.int/oth/T0202000023/en -->
   12477     <!-- http://en.wikipedia.org/wiki/+855 -->
   12478     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
   12479                nationalPrefix="0">
   12480       <availableFormats>
   12481         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
   12482           <leadingDigits>
   12483             1\d[1-9]|
   12484             [2-9]
   12485           </leadingDigits>
   12486           <format>$1 $2 $3</format>
   12487         </numberFormat>
   12488         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
   12489           <leadingDigits>1[89]0</leadingDigits>
   12490           <format>$1 $2 $3</format>
   12491         </numberFormat>
   12492       </availableFormats>
   12493       <generalDesc>
   12494         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
   12495         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   12496       </generalDesc>
   12497       <fixedLine>
   12498         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
   12499              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
   12500              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
   12501              range beginning with 6 seems to include some numbers that are one digit longer as well.
   12502              Allowing 238\d{6} based on information from Cambodia Yellow Pages. -->
   12503         <nationalNumberPattern>
   12504           (?:
   12505             2[3-6]|
   12506             3[2-6]|
   12507             4[2-4]|
   12508             [5-7][2-5]
   12509           )(?:
   12510             [237-9]|
   12511             4[56]|
   12512             5\d|
   12513             6\d?
   12514           )\d{5}|
   12515           238\d{6}
   12516         </nationalNumberPattern>
   12517         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   12518         <exampleNumber>23756789</exampleNumber>
   12519       </fixedLine>
   12520       <mobile>
   12521         <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
   12522              Beeline uses 060.
   12523              Mobitel uses 01[1247].
   12524              Cellcard uses 0857 and 061.
   12525              Extra prefixes found online: 088, 097.
   12526              Allowing 9-digit 12, 31, and 76 numbers based on information from Cambodia Yellow
   12527              Pages. -->
   12528         <nationalNumberPattern>
   12529           (?:
   12530             1(?:
   12531               [013-9]|
   12532               2\d?
   12533             )|
   12534             31\d|
   12535             6[016-9]|
   12536             7(?:
   12537               [07-9]|
   12538               6\d
   12539             )|
   12540             8(?:
   12541               [013-79]|
   12542               8\d
   12543             )|
   12544             9(?:
   12545               6\d|
   12546               7\d?|
   12547               [0-589]
   12548             )
   12549           )\d{6}
   12550         </nationalNumberPattern>
   12551         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   12552         <exampleNumber>91234567</exampleNumber>
   12553       </mobile>
   12554       <tollFree>
   12555         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
   12556         <nationalNumberPattern>
   12557           1800(?:
   12558             1\d|
   12559             2[019]
   12560           )\d{4}
   12561         </nationalNumberPattern>
   12562         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12563         <exampleNumber>1800123456</exampleNumber>
   12564       </tollFree>
   12565       <premiumRate>
   12566         <nationalNumberPattern>
   12567           1900(?:
   12568             1\d|
   12569             2[09]
   12570           )\d{4}
   12571         </nationalNumberPattern>
   12572         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12573         <exampleNumber>1900123456</exampleNumber>
   12574       </premiumRate>
   12575     </territory>
   12576 
   12577     <!-- Kiribati -->
   12578     <!-- http://www.itu.int/oth/T0202000071/en -->
   12579     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
   12580          leading 0 - the main ITU document says this is not the case and no numbers online have been
   12581          found formatted this way, but Kiribati's own document lists it as a national dialling
   12582          prefix. -->
   12583     <territory id="KI" countryCode="686" internationalPrefix="00"
   12584                nationalPrefixForParsing="0">
   12585       <!-- Numbers should be formatted as a block." -->
   12586       <generalDesc>
   12587         <nationalNumberPattern>[2-689]\d{4}</nationalNumberPattern>
   12588         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   12589       </generalDesc>
   12590       <fixedLine>
   12591         <nationalNumberPattern>
   12592           (?:
   12593             [234]\d|
   12594             50|
   12595             8[1-5]
   12596           )\d{3}
   12597         </nationalNumberPattern>
   12598         <exampleNumber>31234</exampleNumber>
   12599       </fixedLine>
   12600       <mobile>
   12601         <!-- Exclude 99[2349] from mobile since these are emergency numbers. -->
   12602         <nationalNumberPattern>
   12603           6\d{4}|
   12604           9(?:
   12605             [0-8]\d|
   12606             9[015-8]
   12607           )\d{2}
   12608         </nationalNumberPattern>
   12609         <exampleNumber>61234</exampleNumber>
   12610       </mobile>
   12611     </territory>
   12612 
   12613     <!-- Comoros -->
   12614     <!-- http://www.itu.int/oth/T020200002D/en -->
   12615     <territory id="KM" countryCode="269" internationalPrefix="00">
   12616       <availableFormats>
   12617         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
   12618           <format>$1 $2 $3</format>
   12619         </numberFormat>
   12620       </availableFormats>
   12621       <generalDesc>
   12622         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
   12623         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   12624       </generalDesc>
   12625       <fixedLine>
   12626         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
   12627              http://www.comorestelecom.km/presentationcdma.php -->
   12628         <nationalNumberPattern>
   12629           7(?:
   12630             6[0-37-9]|
   12631             7[0-57-9]
   12632           )\d{4}
   12633         </nationalNumberPattern>
   12634         <exampleNumber>7712345</exampleNumber>
   12635       </fixedLine>
   12636       <mobile>
   12637         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
   12638         <exampleNumber>3212345</exampleNumber>
   12639       </mobile>
   12640       <premiumRate>
   12641         <!-- These are referred to as value-added services in the plan and no further information
   12642              can be found. -->
   12643         <nationalNumberPattern>
   12644           (?:
   12645             39[01]|
   12646             9[01]0
   12647           )\d{4}
   12648         </nationalNumberPattern>
   12649         <exampleNumber>9001234</exampleNumber>
   12650       </premiumRate>
   12651     </territory>
   12652 
   12653     <!-- Saint Kitts and Nevis -->
   12654     <!-- http://www.itu.int/oth/T02020000B0/en -->
   12655     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
   12656                internationalPrefix="011">
   12657       <generalDesc>
   12658         <!-- NANPA country - uses US formatting rules -->
   12659         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
   12660         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   12661       </generalDesc>
   12662       <fixedLine>
   12663         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
   12664              of it can be found. -->
   12665         <nationalNumberPattern>
   12666           869(?:
   12667             2(?:
   12668               29|
   12669               36
   12670             )|
   12671             302|
   12672             4(?:
   12673               6[5-9]|
   12674               70
   12675             )
   12676           )\d{4}
   12677         </nationalNumberPattern>
   12678         <exampleNumber>8692361234</exampleNumber>
   12679       </fixedLine>
   12680       <mobile>
   12681         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
   12682         <nationalNumberPattern>
   12683           869(?:
   12684             5(?:
   12685               5[6-8]|
   12686               6[5-7]
   12687             )|
   12688             66\d|
   12689             76[02-6]
   12690           )\d{4}
   12691         </nationalNumberPattern>
   12692         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12693         <exampleNumber>8695561234</exampleNumber>
   12694       </mobile>
   12695       <tollFree>
   12696         <nationalNumberPattern>
   12697           8(?:
   12698             00|
   12699             55|
   12700             66|
   12701             77|
   12702             88
   12703           )[2-9]\d{6}
   12704         </nationalNumberPattern>
   12705         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12706         <exampleNumber>8002123456</exampleNumber>
   12707       </tollFree>
   12708       <premiumRate>
   12709         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   12710         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12711         <exampleNumber>9002123456</exampleNumber>
   12712       </premiumRate>
   12713       <personalNumber>
   12714         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   12715         <nationalNumberPattern>
   12716           5(?:
   12717             00|
   12718             33|
   12719             44
   12720           )[2-9]\d{6}
   12721         </nationalNumberPattern>
   12722         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12723         <exampleNumber>5002345678</exampleNumber>
   12724       </personalNumber>
   12725     </territory>
   12726 
   12727     <!-- Korea, Dem. People's Rep. of -->
   12728     <!-- http://en.wikipedia.org/wiki/%2B850 -->
   12729     <territory id="KP" countryCode="850" internationalPrefix="00|99"
   12730                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   12731       <availableFormats>
   12732         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   12733           <leadingDigits>1</leadingDigits>
   12734           <format>$1 $2 $3</format>
   12735         </numberFormat>
   12736         <numberFormat pattern="(\d)(\d{3})(\d{4})">
   12737           <leadingDigits>2</leadingDigits>
   12738           <format>$1 $2 $3</format>
   12739         </numberFormat>
   12740         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   12741           <leadingDigits>8</leadingDigits>
   12742           <format>$1 $2 $3</format>
   12743         </numberFormat>
   12744       </availableFormats>
   12745       <generalDesc>
   12746         <nationalNumberPattern>
   12747           1\d{9}|
   12748           [28]\d{7}
   12749         </nationalNumberPattern>
   12750         <possibleNumberPattern>
   12751           \d{6,8}|
   12752           \d{10}
   12753         </possibleNumberPattern>
   12754       </generalDesc>
   12755       <noInternationalDialling>
   12756         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
   12757         <nationalNumberPattern>
   12758           2(?:
   12759             [0-24-9]\d{2}|
   12760             3(?:
   12761               [0-79]\d|
   12762               8[02-9]
   12763             )
   12764           )\d{4}
   12765         </nationalNumberPattern>
   12766         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   12767         <exampleNumber>23821234</exampleNumber>
   12768       </noInternationalDialling>
   12769       <fixedLine>
   12770         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
   12771              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
   12772              from overseas. Also, there is conflicting information about the length of fixed-line
   12773              numbers, so here we are following Wikipedia. -->
   12774         <nationalNumberPattern>
   12775           2\d{7}|
   12776           85\d{6}
   12777         </nationalNumberPattern>
   12778         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   12779         <exampleNumber>21234567</exampleNumber>
   12780       </fixedLine>
   12781       <mobile>
   12782         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
   12783         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12784         <exampleNumber>1921234567</exampleNumber>
   12785       </mobile>
   12786     </territory>
   12787 
   12788     <!-- Korea (Rep. of) -->
   12789     <!-- http://www.itu.int/oth/T0202000072/en -->
   12790     <!-- http://en.wikipedia.org/wiki/%2B82 -->
   12791     <!-- http://www.kcc.go.kr/user.do?mode=view&page=P02030300&dc=K02030300&boardId=1074&boardSeq=2349 -->
   12792     <!-- http://www.kcc.go.kr/user.do?mode=view&page=P02030300&dc=K02030300&boardId=1074&boardSeq=2240 -->
   12793     <!-- http://www.telecentro.co.kr/sub/index.php?job=detail&ebcf_id=faq&page=1&mid=0503&eb_seq=36 -->
   12794     <!-- Exceptions :
   12795         internationalPrefix
   12796             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
   12797         nationalPrefix
   12798             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
   12799     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
   12800                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
   12801                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG"
   12802                mobileNumberPortableRegion="true">
   12803       <availableFormats>
   12804         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   12805           <leadingDigits>
   12806             1(?:
   12807               0|
   12808               1[19]|
   12809               [69]9|
   12810               5[458]
   12811             )|
   12812             [57]0
   12813           </leadingDigits>
   12814           <leadingDigits>
   12815             1(?:
   12816               0|
   12817               1[19]|
   12818               [69]9|
   12819               5(?:
   12820                 44|
   12821                 59|
   12822                 8
   12823               )
   12824             )|
   12825             [57]0
   12826           </leadingDigits>
   12827           <format>$1-$2-$3</format>
   12828         </numberFormat>
   12829         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
   12830           <leadingDigits>
   12831             1(?:
   12832               [169][2-8]|
   12833               [78]|
   12834               5[1-4]
   12835             )|
   12836             [68]0|
   12837             [3-6][1-9][1-9]
   12838           </leadingDigits>
   12839           <leadingDigits>
   12840             1(?:
   12841               [169][2-8]|
   12842               [78]|
   12843               5(?:
   12844                 [1-3]|
   12845                 4[56]
   12846               )
   12847             )|
   12848             [68]0|
   12849             [3-6][1-9][1-9]
   12850           </leadingDigits>
   12851           <format>$1-$2-$3</format>
   12852         </numberFormat>
   12853         <numberFormat pattern="(\d{3})(\d)(\d{4})">
   12854           <leadingDigits>131</leadingDigits>
   12855           <leadingDigits>1312</leadingDigits>
   12856           <format>$1-$2-$3</format>
   12857         </numberFormat>
   12858         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
   12859           <leadingDigits>131</leadingDigits>
   12860           <leadingDigits>131[13-9]</leadingDigits>
   12861           <format>$1-$2-$3</format>
   12862         </numberFormat>
   12863         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   12864           <leadingDigits>13[2-9]</leadingDigits>
   12865           <format>$1-$2-$3</format>
   12866         </numberFormat>
   12867         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
   12868              limit of what digits may follow the 030, but we ignore that here. These numbers are
   12869              actually not supported for validation purposes by the library at the moment as no
   12870              online examples can be found, but we leave theme here so formatting continues to work
   12871              if they are entered. -->
   12872         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
   12873           <leadingDigits>30</leadingDigits>
   12874           <format>$1-$2-$3-$4</format>
   12875         </numberFormat>
   12876         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
   12877           <leadingDigits>2[1-9]</leadingDigits>
   12878           <format>$1-$2-$3</format>
   12879         </numberFormat>
   12880         <numberFormat pattern="(\d)(\d{3,4})">
   12881           <leadingDigits>21[0-46-9]</leadingDigits>
   12882           <format>$1-$2</format>
   12883         </numberFormat>
   12884         <numberFormat pattern="(\d{2})(\d{3,4})">
   12885           <leadingDigits>[3-6][1-9]1</leadingDigits>
   12886           <leadingDigits>
   12887             [3-6][1-9]1(?:
   12888               [0-46-9]
   12889             )
   12890           </leadingDigits>
   12891           <format>$1-$2</format>
   12892         </numberFormat>
   12893         <!-- Company numbers. -->
   12894         <numberFormat pattern="(\d{4})(\d{4})"
   12895           nationalPrefixFormattingRule="$FG">
   12896           <leadingDigits>
   12897             1(?:
   12898               5[46-9]|
   12899               6[04678]
   12900             )
   12901           </leadingDigits>
   12902           <leadingDigits>
   12903             1(?:
   12904               5(?:
   12905                 44|
   12906                 66|
   12907                 77|
   12908                 88|
   12909                 99
   12910               )|
   12911               6(?:
   12912                 00|
   12913                 44|
   12914                 6[16]|
   12915                 70|
   12916                 88
   12917               )
   12918             )
   12919           </leadingDigits>
   12920           <format>$1-$2</format>
   12921         </numberFormat>
   12922       </availableFormats>
   12923       <generalDesc>
   12924         <nationalNumberPattern>
   12925           [1-7]\d{3,9}|
   12926           8\d{8}
   12927         </nationalNumberPattern>
   12928         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   12929       </generalDesc>
   12930       <fixedLine>
   12931         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
   12932              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
   12933              starting with 1 based on evidence of real numbers found online. -->
   12934         <nationalNumberPattern>
   12935           (?:
   12936             2|
   12937             3[1-3]|
   12938             [46][1-4]|
   12939             5[1-5]
   12940           )(?:
   12941             1\d{2,3}|
   12942             [1-9]\d{6,7}
   12943           )
   12944         </nationalNumberPattern>
   12945         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   12946         <exampleNumber>22123456</exampleNumber>
   12947       </fixedLine>
   12948       <mobile>
   12949         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
   12950         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   12951         <exampleNumber>1023456789</exampleNumber>
   12952       </mobile>
   12953       <pager>
   12954         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
   12955         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   12956         <exampleNumber>1523456789</exampleNumber>
   12957       </pager>
   12958       <tollFree>
   12959         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   12960         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12961         <exampleNumber>801234567</exampleNumber>
   12962       </tollFree>
   12963       <!-- The information below is provided by a Korean person. -->
   12964       <premiumRate>
   12965         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
   12966         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   12967         <exampleNumber>602345678</exampleNumber>
   12968       </premiumRate>
   12969       <personalNumber>
   12970         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
   12971         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12972         <exampleNumber>5012345678</exampleNumber>
   12973       </personalNumber>
   12974       <voip>
   12975         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
   12976         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   12977         <exampleNumber>7012345678</exampleNumber>
   12978       </voip>
   12979       <uan>
   12980         <nationalNumberPattern>
   12981           1(?:
   12982             5(?:
   12983               44|
   12984               66|
   12985               77|
   12986               88|
   12987               99
   12988             )|
   12989             6(?:
   12990               00|
   12991               44|
   12992               6[16]|
   12993               70|
   12994               88
   12995             )
   12996           )\d{4}
   12997         </nationalNumberPattern>
   12998         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   12999         <exampleNumber>15441234</exampleNumber>
   13000       </uan>
   13001     </territory>
   13002 
   13003     <!-- Kuwait -->
   13004     <!-- http://www.itu.int/oth/T0202000073/en -->
   13005     <territory id="KW" countryCode="965" internationalPrefix="00" mobileNumberPortableRegion="true">
   13006       <availableFormats>
   13007         <!-- Format is from ITU. -->
   13008         <numberFormat pattern="(\d{4})(\d{3,4})">
   13009           <leadingDigits>[1269]</leadingDigits>
   13010           <format>$1 $2</format>
   13011         </numberFormat>
   13012         <numberFormat pattern="(5[015]\d)(\d{5})">
   13013           <leadingDigits>5</leadingDigits>
   13014           <format>$1 $2</format>
   13015         </numberFormat>
   13016       </availableFormats>
   13017       <generalDesc>
   13018         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
   13019         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   13020       </generalDesc>
   13021       <fixedLine>
   13022         <nationalNumberPattern>
   13023           (?:
   13024             18\d|
   13025             2(?:
   13026               [23]\d{2}|
   13027               4(?:
   13028                 [1-35-9]\d|
   13029                 44
   13030               )|
   13031               5(?:
   13032                 0[034]|
   13033                 [2-46]\d|
   13034                 5[1-3]|
   13035                 7[1-7]
   13036               )
   13037             )
   13038           )\d{4}
   13039         </nationalNumberPattern>
   13040         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   13041         <exampleNumber>22345678</exampleNumber>
   13042       </fixedLine>
   13043       <mobile>
   13044         <!-- The mention of the mobile range 6933 0000 - 6969 9999 seems to be
   13045              a mistake in the ITU plan, and should be 6933 0000 - 6933 9999. -->
   13046         <nationalNumberPattern>
   13047           (?:
   13048             5(?:
   13049               1[0-35]|
   13050               [05]\d
   13051             )|
   13052             6(?:
   13053               0[034679]|
   13054               5[015-9]|
   13055               6\d|
   13056               7[067]|
   13057               9[0369]
   13058             )|
   13059             9(?:
   13060               0[09]|
   13061               4[049]|
   13062               6[069]|
   13063               [79]\d|
   13064               88
   13065             )
   13066           )\d{5}
   13067         </nationalNumberPattern>
   13068         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   13069         <exampleNumber>50012345</exampleNumber>
   13070       </mobile>
   13071       <!-- No tollFree or premiumRate information can be found. -->
   13072     </territory>
   13073 
   13074     <!-- Cayman Islands -->
   13075     <!-- http://www.itu.int/oth/T0202000027/en -->
   13076     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
   13077                internationalPrefix="011">
   13078       <generalDesc>
   13079         <!-- NANPA country - uses US formatting rules -->
   13080         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
   13081         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   13082       </generalDesc>
   13083       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
   13084            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
   13085       <fixedLine>
   13086         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
   13087              as per numbers found online and their website www.logic.ky. -->
   13088         <nationalNumberPattern>
   13089           345(?:
   13090             2(?:
   13091               22|
   13092               44
   13093             )|
   13094             444|
   13095             6(?:
   13096               23|
   13097               38|
   13098               40
   13099             )|
   13100             7(?:
   13101               4[35-79]|
   13102               6[6-9]|
   13103               77
   13104             )|
   13105             8(?:
   13106               00|
   13107               1[45]|
   13108               25|
   13109               [48]8
   13110             )|
   13111             9(?:
   13112               14|
   13113               4[035-9]
   13114             )
   13115           )\d{4}
   13116         </nationalNumberPattern>
   13117         <exampleNumber>3452221234</exampleNumber>
   13118       </fixedLine>
   13119       <mobile>
   13120         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
   13121              Most central office codes that were surrendered have not been included, with the
   13122              exception of 546 where numbers have been found. -->
   13123         <nationalNumberPattern>
   13124           345(?:
   13125             32[1-9]|
   13126             5(?:
   13127               1[67]|
   13128               2[5-7]|
   13129               4[6-8]|
   13130               76
   13131             )|
   13132             9(?:
   13133               1[67]|
   13134               2[3-9]|
   13135               3[689]
   13136             )
   13137           )\d{4}
   13138         </nationalNumberPattern>
   13139         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13140         <exampleNumber>3453231234</exampleNumber>
   13141       </mobile>
   13142       <pager>
   13143         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
   13144         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13145         <exampleNumber>3458491234</exampleNumber>
   13146       </pager>
   13147       <tollFree>
   13148         <nationalNumberPattern>
   13149           8(?:
   13150             00|
   13151             55|
   13152             66|
   13153             77|
   13154             88
   13155           )[2-9]\d{6}
   13156         </nationalNumberPattern>
   13157         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13158         <exampleNumber>8002345678</exampleNumber>
   13159       </tollFree>
   13160       <premiumRate>
   13161         <nationalNumberPattern>
   13162           900[2-9]\d{6}|
   13163           345976\d{4}
   13164         </nationalNumberPattern>
   13165         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13166         <exampleNumber>9002345678</exampleNumber>
   13167       </premiumRate>
   13168       <personalNumber>
   13169         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   13170         <nationalNumberPattern>
   13171           5(?:
   13172             00|
   13173             33|
   13174             44
   13175           )[2-9]\d{6}
   13176         </nationalNumberPattern>
   13177         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13178         <exampleNumber>5002345678</exampleNumber>
   13179       </personalNumber>
   13180     </territory>
   13181 
   13182     <!-- Kazakhstan -->
   13183     <!-- http://www.itu.int/oth/T020200006F/en -->
   13184     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
   13185                internationalPrefix="810" nationalPrefix="8">
   13186        <!-- Formatting rules obtained from Russia. -->
   13187       <generalDesc>
   13188         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
   13189              determining the country is faster. -->
   13190         <nationalNumberPattern>
   13191           (?:
   13192             33\d|
   13193             7\d{2}|
   13194             80[09]
   13195           )\d{7}
   13196         </nationalNumberPattern>
   13197         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13198       </generalDesc>
   13199       <noInternationalDialling>
   13200         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
   13201         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13202         <exampleNumber>7511234567</exampleNumber>
   13203       </noInternationalDialling>
   13204       <fixedLine>
   13205         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
   13206              22), which is within Kazakhstan but in fact rented and administered by Russia at the
   13207              moment. -->
   13208         <nationalNumberPattern>
   13209           33622\d{5}|
   13210           7(?:
   13211             1(?:
   13212               0(?:
   13213                 [23]\d|
   13214                 4[023]|
   13215                 59|
   13216                 63
   13217               )|
   13218               1(?:
   13219                 [23]\d|
   13220                 4[0-79]|
   13221                 59
   13222               )|
   13223               2(?:
   13224                 [23]\d|
   13225                 59
   13226               )|
   13227               3(?:
   13228                 2\d|
   13229                 3[1-79]|
   13230                 4[0-35-9]|
   13231                 59
   13232               )|
   13233               4(?:
   13234                 2\d|
   13235                 3[013-79]|
   13236                 4[0-8]|
   13237                 5[1-79]
   13238               )|
   13239               5(?:
   13240                 2\d|
   13241                 3[1-8]|
   13242                 4[1-7]|
   13243                 59
   13244               )|
   13245               6(?:
   13246                 [234]\d|
   13247                 5[19]|
   13248                 61
   13249               )|
   13250               72\d|
   13251               8(?:
   13252                 [27]\d|
   13253                 3[1-46-9]|
   13254                 4[0-5]
   13255               )
   13256             )|
   13257             2(?:
   13258               1(?:
   13259                 [23]\d|
   13260                 4[46-9]|
   13261                 5[3469]
   13262               )|
   13263               2(?:
   13264                 2\d|
   13265                 3[0679]|
   13266                 46|
   13267                 5[12679]
   13268               )|
   13269               3(?:
   13270                 [234]\d|
   13271                 5[139]
   13272               )|
   13273               4(?:
   13274                 2\d|
   13275                 3[1235-9]|
   13276                 59
   13277               )|
   13278               5(?:
   13279                 [23]\d|
   13280                 4[01246-8]|
   13281                 59|
   13282                 61
   13283               )|
   13284               6(?:
   13285                 2\d|
   13286                 3[1-9]|
   13287                 4[0-4]|
   13288                 59
   13289               )|
   13290               7(?:
   13291                 [237]\d|
   13292                 40|
   13293                 5[279]
   13294               )|
   13295               8(?:
   13296                 [23]\d|
   13297                 4[0-3]|
   13298                 59
   13299               )|
   13300               9(?:
   13301                 2\d|
   13302                 3[124578]|
   13303                 59
   13304               )
   13305             )
   13306           )\d{5}
   13307         </nationalNumberPattern>
   13308         <exampleNumber>7123456789</exampleNumber>
   13309       </fixedLine>
   13310       <mobile>
   13311         <!-- Added 776, apparently assigned to Beeline, and 747 for Tele2. -->
   13312         <nationalNumberPattern>
   13313           7(?:
   13314             0[01257]|
   13315             47|
   13316             6[02-4]|
   13317             7[15-8]|
   13318             85
   13319           )\d{7}
   13320         </nationalNumberPattern>
   13321         <exampleNumber>7710009998</exampleNumber>
   13322       </mobile>
   13323       <tollFree>
   13324         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   13325         <exampleNumber>8001234567</exampleNumber>
   13326       </tollFree>
   13327       <premiumRate>
   13328         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
   13329         <exampleNumber>8091234567</exampleNumber>
   13330       </premiumRate>
   13331       <voip>
   13332         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
   13333         <exampleNumber>7511234567</exampleNumber>
   13334       </voip>
   13335     </territory>
   13336 
   13337     <!-- Lao People's Dem. Rep. -->
   13338     <!-- http://www.itu.int/oth/T0202000075/en (Seems incomplete) -->
   13339     <!-- http://en.wikipedia.org/wiki/+856 -->
   13340     <territory id="LA" countryCode="856" internationalPrefix="00"
   13341                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   13342       <availableFormats>
   13343         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
   13344           <leadingDigits>20</leadingDigits>
   13345           <format>$1 $2 $3 $4</format>
   13346         </numberFormat>
   13347         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
   13348           <leadingDigits>
   13349             2[13]|
   13350             [3-8]
   13351           </leadingDigits>
   13352           <format>$1 $2 $3</format>
   13353         </numberFormat>
   13354       </availableFormats>
   13355       <generalDesc>
   13356         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
   13357         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   13358       </generalDesc>
   13359       <fixedLine>
   13360         <nationalNumberPattern>
   13361           (?:
   13362             2[13]|
   13363             [35-7][14]|
   13364             41|
   13365             8[1468]
   13366           )\d{6}
   13367         </nationalNumberPattern>
   13368         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   13369         <exampleNumber>21212862</exampleNumber>
   13370       </fixedLine>
   13371       <mobile>
   13372         <!-- Adding 202[89], 205[89], 207[68] and 209[57] from numbers found online. -->
   13373         <nationalNumberPattern>
   13374           20(?:
   13375             2[2389]|
   13376             5[4-689]|
   13377             7[6-8]|
   13378             9[57-9]
   13379           )\d{6}
   13380         </nationalNumberPattern>
   13381         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13382         <exampleNumber>2023123456</exampleNumber>
   13383       </mobile>
   13384       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
   13385     </territory>
   13386 
   13387     <!-- Lebanon -->
   13388     <!-- http://www.itu.int/oth/T0202000077/en -->
   13389     <!-- http://en.wikipedia.org/wiki/%2B961 -->
   13390     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
   13391       <availableFormats>
   13392         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
   13393           <leadingDigits>
   13394             [13-6]|
   13395             7(?:
   13396               [2-579]|
   13397               62|
   13398               8[0-7]
   13399             )|
   13400             [89][2-9]
   13401             </leadingDigits>
   13402           <format>$1 $2 $3</format>
   13403         </numberFormat>
   13404         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
   13405           <leadingDigits>
   13406             [89][01]|
   13407             7(?:
   13408               [01]|
   13409               6[013-9]|
   13410               8[89]|
   13411               91
   13412             )
   13413           </leadingDigits>
   13414           <format>$1 $2 $3</format>
   13415         </numberFormat>
   13416       </availableFormats>
   13417       <generalDesc>
   13418         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
   13419         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   13420       </generalDesc>
   13421       <fixedLine>
   13422         <nationalNumberPattern>
   13423           (?:
   13424             [14-6]\d{2}|
   13425             7(?:
   13426               [2-579]\d|
   13427               62|
   13428               8[0-7]
   13429             )|
   13430             [89][2-9]\d
   13431           )\d{4}
   13432         </nationalNumberPattern>
   13433         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   13434         <exampleNumber>1123456</exampleNumber>
   13435       </fixedLine>
   13436       <mobile>
   13437         <!-- We only validate the first three digits here, since the ranges are growing rapidly. -->
   13438         <nationalNumberPattern>
   13439           (?:
   13440             3\d|
   13441             7(?:
   13442               [01]\d|
   13443               6[013-9]|
   13444               8[89]|
   13445               91
   13446             )
   13447           )\d{5}
   13448         </nationalNumberPattern>
   13449         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   13450         <exampleNumber>71123456</exampleNumber>
   13451       </mobile>
   13452       <premiumRate>
   13453         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
   13454         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   13455         <exampleNumber>90123456</exampleNumber>
   13456       </premiumRate>
   13457       <sharedCost>
   13458         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
   13459         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   13460         <exampleNumber>80123456</exampleNumber>
   13461       </sharedCost>
   13462     </territory>
   13463 
   13464     <!-- Saint Lucia -->
   13465     <!-- http://www.itu.int/oth/T02020000B1/en -->
   13466     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
   13467                internationalPrefix="011">
   13468       <generalDesc>
   13469         <!-- NANPA country - uses US formatting rules -->
   13470         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
   13471         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   13472       </generalDesc>
   13473       <fixedLine>
   13474         <!-- Adding 430 and 572 since numbers have been found with these prefixes online. -->
   13475         <nationalNumberPattern>
   13476           758(?:
   13477             234|
   13478             4(?:
   13479               30|
   13480               5[0-9]|
   13481               6[2-9]|
   13482               8[0-2]
   13483             )|
   13484             572|
   13485             638|
   13486             758
   13487           )\d{4}
   13488         </nationalNumberPattern>
   13489         <exampleNumber>7582345678</exampleNumber>
   13490       </fixedLine>
   13491       <mobile>
   13492         <!-- Adding 72[1256] as these prefixes are found widely on the internet and SMS messages
   13493              have been successfully delivered to these numbers. -->
   13494         <nationalNumberPattern>
   13495           758(?:
   13496             28[4-7]|
   13497             384|
   13498             4(?:
   13499               6[01]|
   13500               8[4-9]
   13501             )|
   13502             5(?:
   13503               1[89]|
   13504               20|
   13505               84
   13506             )|
   13507             7(?:
   13508               1[2-9]|
   13509               2[0-6]
   13510             )
   13511           )\d{4}
   13512         </nationalNumberPattern>
   13513         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13514         <exampleNumber>7582845678</exampleNumber>
   13515       </mobile>
   13516       <tollFree>
   13517         <nationalNumberPattern>
   13518           8(?:
   13519             00|
   13520             55|
   13521             66|
   13522             77|
   13523             88
   13524           )[2-9]\d{6}
   13525         </nationalNumberPattern>
   13526         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13527         <exampleNumber>8002123456</exampleNumber>
   13528       </tollFree>
   13529       <premiumRate>
   13530         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   13531         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13532         <exampleNumber>9002123456</exampleNumber>
   13533       </premiumRate>
   13534       <personalNumber>
   13535         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   13536         <nationalNumberPattern>
   13537           5(?:
   13538             00|
   13539             33|
   13540             44
   13541           )[2-9]\d{6}
   13542         </nationalNumberPattern>
   13543         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   13544         <exampleNumber>5002345678</exampleNumber>
   13545       </personalNumber>
   13546     </territory>
   13547 
   13548     <!-- Liechtenstein -->
   13549     <!-- http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm -->
   13550     <!-- http://www.telecom.li has some different patterns for tollfree and shared cost numbers -
   13551          look at "Mehrwertnummer". -->
   13552     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
   13553     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
   13554       <availableFormats>
   13555         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
   13556           <leadingDigits>
   13557             [23]|
   13558             7[3-57-9]|
   13559             87
   13560           </leadingDigits>
   13561           <format>$1 $2 $3</format>
   13562         </numberFormat>
   13563         <numberFormat pattern="(6\d)(\d{3})(\d{3})">
   13564           <leadingDigits>6</leadingDigits>
   13565           <format>$1 $2 $3</format>
   13566         </numberFormat>
   13567         <numberFormat pattern="(6[567]\d)(\d{3})(\d{3})">
   13568           <leadingDigits>6[567]</leadingDigits>
   13569           <format>$1 $2 $3</format>
   13570         </numberFormat>
   13571         <numberFormat pattern="(69)(7\d{2})(\d{4})">
   13572           <leadingDigits>697</leadingDigits>
   13573           <format>$1 $2 $3</format>
   13574         </numberFormat>
   13575         <numberFormat pattern="([7-9]0\d)(\d{2})(\d{2})">
   13576           <leadingDigits>[7-9]0</leadingDigits>
   13577           <format>$1 $2 $3</format>
   13578         </numberFormat>
   13579         <!-- Numbers of the form [89]00\d{6} are Swiss numbers callable from Liechtenstein. -->
   13580         <numberFormat pattern="([89]0\d)(\d{2})(\d{2})(\d{2})"
   13581           nationalPrefixFormattingRule="$NP$FG">
   13582           <leadingDigits>[89]0</leadingDigits>
   13583           <format>$1 $2 $3 $4</format>
   13584         </numberFormat>
   13585       </availableFormats>
   13586       <generalDesc>
   13587         <nationalNumberPattern>
   13588           6\d{8}|
   13589           [23789]\d{6}
   13590         </nationalNumberPattern>
   13591         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   13592       </generalDesc>
   13593       <fixedLine>
   13594         <nationalNumberPattern>
   13595           (?:
   13596             2(?:
   13597               01|
   13598               1[27]|
   13599               3\d|
   13600               6[02-578]|
   13601               96
   13602             )|
   13603             3(?:
   13604               7[0135-7]|
   13605               8[048]|
   13606               9[0269]
   13607             )
   13608           )\d{4}
   13609         </nationalNumberPattern>
   13610         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   13611         <exampleNumber>2345678</exampleNumber>
   13612       </fixedLine>
   13613       <mobile>
   13614         <nationalNumberPattern>
   13615           6(?:
   13616             51[01]|
   13617             6(?:
   13618               [01][0-4]|
   13619               2[016-9]|
   13620               88
   13621             )|
   13622             710
   13623           )\d{5}|
   13624           7(?:
   13625             36|
   13626             4[25]|
   13627             56|
   13628             [7-9]\d
   13629           )\d{4}
   13630         </nationalNumberPattern>
   13631         <exampleNumber>661234567</exampleNumber>
   13632       </mobile>
   13633       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
   13634            even though it doesn't appear in the plan. -->
   13635       <tollFree>
   13636         <nationalNumberPattern>
   13637           80(?:
   13638             0(?:
   13639               2[238]|
   13640               79
   13641             )|
   13642             9\d{2}
   13643           )\d{2}
   13644         </nationalNumberPattern>
   13645         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   13646         <exampleNumber>8002222</exampleNumber>
   13647       </tollFree>
   13648       <premiumRate>
   13649         <nationalNumberPattern>
   13650           90(?:
   13651             0(?:
   13652               2[278]|
   13653               79
   13654             )|
   13655             1(?:
   13656               23|
   13657               3[012]
   13658             )|
   13659             6(?:
   13660               4\d|
   13661               6[0126]
   13662             )
   13663           )\d{2}
   13664         </nationalNumberPattern>
   13665         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   13666         <exampleNumber>9002222</exampleNumber>
   13667       </premiumRate>
   13668       <uan>
   13669         <nationalNumberPattern>
   13670           87(?:
   13671             0[128]|
   13672             7[0-4]
   13673           )\d{3}
   13674         </nationalNumberPattern>
   13675         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   13676         <exampleNumber>8770123</exampleNumber>
   13677       </uan>
   13678       <voicemail>
   13679         <nationalNumberPattern>
   13680           697(?:
   13681             [35]6|
   13682             4[25]|
   13683             [7-9]\d
   13684           )\d{4}
   13685         </nationalNumberPattern>
   13686         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13687         <exampleNumber>697361234</exampleNumber>
   13688       </voicemail>
   13689       <personalNumber>
   13690         <nationalNumberPattern>701\d{4}</nationalNumberPattern>
   13691         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   13692         <exampleNumber>7011234</exampleNumber>
   13693       </personalNumber>
   13694     </territory>
   13695 
   13696     <!-- Sri Lanka -->
   13697     <!-- http://en.wikipedia.org/wiki/%2B94 -->
   13698     <!-- http://www.itu.int/oth/T02020000C3/en -->
   13699     <territory id="LK" countryCode="94" internationalPrefix="00"
   13700                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   13701       <availableFormats>
   13702         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
   13703           <leadingDigits>[1-689]</leadingDigits>
   13704           <format>$1 $2 $3</format>
   13705         </numberFormat>
   13706         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   13707           <leadingDigits>7</leadingDigits>
   13708           <format>$1 $2 $3</format>
   13709         </numberFormat>
   13710       </availableFormats>
   13711       <generalDesc>
   13712         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
   13713         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   13714       </generalDesc>
   13715       <fixedLine>
   13716         <nationalNumberPattern>
   13717           (?:
   13718             [189]1|
   13719             2[13-7]|
   13720             3[1-8]|
   13721             4[157]|
   13722             5[12457]|
   13723             6[35-7]
   13724           )[2-57]\d{6}
   13725         </nationalNumberPattern>
   13726         <exampleNumber>112345678</exampleNumber>
   13727       </fixedLine>
   13728       <mobile>
   13729         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
   13730         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
   13731         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13732         <exampleNumber>712345678</exampleNumber>
   13733       </mobile>
   13734     </territory>
   13735 
   13736     <!-- Liberia -->
   13737     <!-- http://www.itu.int/oth/T0202000079/en -->
   13738     <territory id="LR" countryCode="231" internationalPrefix="00"
   13739                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   13740       <availableFormats>
   13741         <!-- Formatting from Ministry of Agriculture,
   13742         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
   13743         <numberFormat pattern="([279]\d)(\d{3})(\d{3})">
   13744           <leadingDigits>[279]</leadingDigits>
   13745           <format>$1 $2 $3</format>
   13746         </numberFormat>
   13747         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
   13748           <leadingDigits>7</leadingDigits>
   13749           <format>$1 $2 $3</format>
   13750         </numberFormat>
   13751         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
   13752           <leadingDigits>[4-6]</leadingDigits>
   13753           <format>$1 $2 $3</format>
   13754         </numberFormat>
   13755         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   13756           <leadingDigits>[38]</leadingDigits>
   13757           <format>$1 $2 $3</format>
   13758         </numberFormat>
   13759       </availableFormats>
   13760       <generalDesc>
   13761         <nationalNumberPattern>
   13762           (?:
   13763             [29]\d|
   13764             [4-6]|
   13765             7\d{1,2}|
   13766             [38]\d{2}
   13767           )\d{6}
   13768         </nationalNumberPattern>
   13769         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   13770       </generalDesc>
   13771       <fixedLine>
   13772         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
   13773         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   13774         <exampleNumber>21234567</exampleNumber>
   13775       </fixedLine>
   13776       <mobile>
   13777         <!-- According to information from Lonestar Communications Corporation, the prefix 6 is
   13778              being removed, but as of June 2012 is in parallel running with their new prefix 88.
   13779              According to Cellcom Liberia, they have issued 9 digit numbers starting with 77. -->
   13780         <nationalNumberPattern>
   13781           (?:
   13782             4[67]|
   13783             5\d|
   13784             6[4-8]|
   13785             77?\d{2}|
   13786             88\d{2}
   13787           )\d{5}
   13788         </nationalNumberPattern>
   13789         <exampleNumber>4612345</exampleNumber>
   13790       </mobile>
   13791       <premiumRate>
   13792         <!-- Telemedia service is listed under premium rate. -->
   13793         <!-- Note that as of March 2013, the ITU document talks about the withdrawal of the range
   13794              (90) 0 XXX XXX. This is a 9 digit range and one we have never supported, but this could
   13795              be a mistake in the ITU document and refer to (90) 0XX XXX. However as this is unclear
   13796              at the moment, we decided to leave the (90) range unchanged for now. -->
   13797         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
   13798         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   13799         <exampleNumber>90123456</exampleNumber>
   13800       </premiumRate>
   13801       <voip>
   13802         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
   13803              say they are involved in the VoIP sector. -->
   13804         <nationalNumberPattern>33200\d{4}</nationalNumberPattern>
   13805         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   13806         <exampleNumber>332001234</exampleNumber>
   13807       </voip>
   13808     </territory>
   13809 
   13810     <!-- Lesotho -->
   13811     <!-- http://www.itu.int/oth/T0202000078/en -->
   13812     <territory id="LS" countryCode="266" internationalPrefix="00">
   13813       <availableFormats>
   13814         <!-- Formatting following yellow pages: www.yellowpages.co.ls -->
   13815         <numberFormat pattern="(\d{4})(\d{4})">
   13816           <format>$1 $2</format>
   13817         </numberFormat>
   13818       </availableFormats>
   13819       <generalDesc>
   13820         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
   13821         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   13822       </generalDesc>
   13823       <fixedLine>
   13824         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
   13825         <exampleNumber>22123456</exampleNumber>
   13826       </fixedLine>
   13827       <mobile>
   13828         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
   13829         <exampleNumber>50123456</exampleNumber>
   13830       </mobile>
   13831       <tollFree>
   13832         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
   13833         <exampleNumber>80021234</exampleNumber>
   13834       </tollFree>
   13835     </territory>
   13836 
   13837     <!-- Lithuania -->
   13838     <!-- http://www.itu.int/oth/T020200007C/en -->
   13839     <!-- Note that Lithuania is switching to a national prefix of 0. We support
   13840          both 0 and 8 when parsing until this switch is complete. -->
   13841     <territory id="LT" countryCode="370" internationalPrefix="00"
   13842                nationalPrefix="8" nationalPrefixForParsing="[08]"
   13843                nationalPrefixFormattingRule="($NP-$FG)"
   13844                nationalPrefixOptionalWhenFormatting="true" mobileNumberPortableRegion="true">
   13845       <!-- National Prefix formatting rule from www.yellowpages.lt -->
   13846       <availableFormats>
   13847         <!-- Two-digit area codes -->
   13848         <numberFormat pattern="([34]\d)(\d{6})">
   13849           <leadingDigits>
   13850             37|
   13851             4(?:
   13852               1|
   13853               5[45]|
   13854               6[2-4]
   13855             )
   13856           </leadingDigits>
   13857           <format>$1 $2</format>
   13858         </numberFormat>
   13859         <!-- Three-digit area codes -->
   13860         <numberFormat pattern="([3-6]\d{2})(\d{5})">
   13861           <leadingDigits>
   13862             3[148]|
   13863             4(?:
   13864               [24]|
   13865               6[09]
   13866             )|
   13867             528|
   13868             6
   13869           </leadingDigits>
   13870           <format>$1 $2</format>
   13871         </numberFormat>
   13872         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
   13873           nationalPrefixFormattingRule="$NP $FG">
   13874           <leadingDigits>[7-9]</leadingDigits>
   13875           <format>$1 $2 $3</format>
   13876         </numberFormat>
   13877         <numberFormat pattern="(5)(2\d{2})(\d{4})">
   13878           <leadingDigits>52[0-79]</leadingDigits>
   13879           <format>$1 $2 $3</format>
   13880         </numberFormat>
   13881       </availableFormats>
   13882       <generalDesc>
   13883         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
   13884         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   13885       </generalDesc>
   13886       <fixedLine>
   13887         <nationalNumberPattern>
   13888           (?:
   13889             3[1478]|
   13890             4[124-6]|
   13891             52
   13892           )\d{6}
   13893         </nationalNumberPattern>
   13894         <exampleNumber>31234567</exampleNumber>
   13895       </fixedLine>
   13896       <mobile>
   13897         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
   13898         <exampleNumber>61234567</exampleNumber>
   13899       </mobile>
   13900       <tollFree>
   13901         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   13902         <exampleNumber>80012345</exampleNumber>
   13903       </tollFree>
   13904       <premiumRate>
   13905         <nationalNumberPattern>
   13906           9(?:
   13907             0[0239]|
   13908             10
   13909           )\d{5}
   13910         </nationalNumberPattern>
   13911         <exampleNumber>90012345</exampleNumber>
   13912       </premiumRate>
   13913       <personalNumber>
   13914         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
   13915         <exampleNumber>70012345</exampleNumber>
   13916       </personalNumber>
   13917       <sharedCost>
   13918         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
   13919         <exampleNumber>80812345</exampleNumber>
   13920       </sharedCost>
   13921       <uan>
   13922         <!-- Including government service numbers here too. -->
   13923         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
   13924         <exampleNumber>70712345</exampleNumber>
   13925       </uan>
   13926     </territory>
   13927 
   13928     <!-- Luxembourg -->
   13929     <!-- http://www.ilr.public.lu/communications_electroniques/numerotation/index.html
   13930          -->
   13931     <territory id="LU" countryCode="352" internationalPrefix="00"
   13932                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
   13933                carrierCodeFormattingRule="$CC $FG" mobileNumberPortableRegion="true">
   13934       <availableFormats>
   13935         <!-- Patterns overlap because of variable number length. -->
   13936         <numberFormat pattern="(\d{2})(\d{3})">
   13937           <leadingDigits>
   13938             [2-5]|
   13939             7[1-9]|
   13940             [89](?:
   13941               [1-9]|
   13942               0[2-9]
   13943             )
   13944           </leadingDigits>
   13945           <format>$1 $2</format>
   13946         </numberFormat>
   13947         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   13948           <leadingDigits>
   13949             [2-5]|
   13950             7[1-9]|
   13951             [89](?:
   13952               [1-9]|
   13953               0[2-9]
   13954             )
   13955           </leadingDigits>
   13956           <format>$1 $2 $3</format>
   13957         </numberFormat>
   13958         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
   13959           <leadingDigits>20</leadingDigits>
   13960           <format>$1 $2 $3</format>
   13961         </numberFormat>
   13962         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
   13963              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
   13964              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
   13965              -->
   13966         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
   13967           <leadingDigits>
   13968             2(?:
   13969               [0367]|
   13970               4[3-8]
   13971             )
   13972           </leadingDigits>
   13973           <format>$1 $2 $3 $4</format>
   13974         </numberFormat>
   13975         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
   13976           <leadingDigits>20</leadingDigits>
   13977           <format>$1 $2 $3 $4</format>
   13978         </numberFormat>
   13979         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
   13980           <leadingDigits>
   13981             2(?:
   13982               [0367]|
   13983               4[3-8]
   13984             )
   13985           </leadingDigits>
   13986           <format>$1 $2 $3 $4 $5</format>
   13987         </numberFormat>
   13988         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
   13989           <leadingDigits>
   13990             2(?:
   13991               [12589]|
   13992               4[12]
   13993             )|
   13994             [3-5]|
   13995             7[1-9]|
   13996             [89](?:
   13997               [1-9]|
   13998               0[2-9]
   13999             )
   14000           </leadingDigits>
   14001           <format>$1 $2 $3 $4</format>
   14002         </numberFormat>
   14003         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
   14004           <leadingDigits>
   14005             [89]0[01]|
   14006             70
   14007           </leadingDigits>
   14008           <format>$1 $2 $3</format>
   14009         </numberFormat>
   14010         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   14011           <leadingDigits>6</leadingDigits>
   14012           <format>$1 $2 $3</format>
   14013         </numberFormat>
   14014       </availableFormats>
   14015       <generalDesc>
   14016         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
   14017              necessary since the numbers have a variable number length. -->
   14018         <nationalNumberPattern>
   14019           [24-9]\d{3,10}|
   14020           3(?:
   14021             [0-46-9]\d{2,9}|
   14022             5[013-9]\d{1,8}
   14023           )
   14024         </nationalNumberPattern>
   14025         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
   14026       </generalDesc>
   14027       <fixedLine>
   14028         <!-- Note that numbers starting with 2[367] can be a maximum of 10 digits - all others a
   14029              maximum of 11. -->
   14030         <nationalNumberPattern>
   14031           (?:
   14032             2(?:
   14033               2\d{1,2}|
   14034               3[2-9]|
   14035               [67]\d|
   14036               4[1-8]\d?|
   14037               5[1-5]\d?|
   14038               9[0-24-9]\d?
   14039             )|
   14040             3(?:
   14041               [059][05-9]|
   14042               [13]\d|
   14043               [26][015-9]|
   14044               4[0-26-9]|
   14045               7[0-389]|
   14046               8[08]
   14047             )\d?|
   14048             4\d{2,3}|
   14049             5(?:
   14050               [01458]\d|
   14051               [27][0-69]|
   14052               3[0-3]|
   14053               [69][0-7]
   14054             )\d?|
   14055             7(?:
   14056               1[019]|
   14057               2[05-9]|
   14058               3[05]|
   14059               [45][07-9]|
   14060               [679][089]|
   14061               8[06-9]
   14062             )\d?|
   14063             8(?:
   14064               0[2-9]|
   14065               1[0-36-9]|
   14066               3[3-9]|
   14067               [469]9|
   14068               [58][7-9]|
   14069               7[89]
   14070             )\d?|
   14071             9(?:
   14072               0[89]|
   14073               2[0-49]|
   14074               37|
   14075               49|
   14076               5[0-27-9]|
   14077               7[7-9]|
   14078               9[0-478]
   14079             )\d?
   14080           )\d{1,7}
   14081         </nationalNumberPattern>
   14082         <exampleNumber>27123456</exampleNumber>
   14083       </fixedLine>
   14084       <mobile>
   14085         <nationalNumberPattern>6[269][18]\d{6}</nationalNumberPattern>
   14086         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14087         <exampleNumber>628123456</exampleNumber>
   14088       </mobile>
   14089       <tollFree>
   14090         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   14091         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14092         <exampleNumber>80012345</exampleNumber>
   14093       </tollFree>
   14094       <premiumRate>
   14095         <nationalNumberPattern>90[01]\d{5}</nationalNumberPattern>
   14096         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14097         <exampleNumber>90012345</exampleNumber>
   14098       </premiumRate>
   14099       <sharedCost>
   14100         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
   14101         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14102         <exampleNumber>80112345</exampleNumber>
   14103       </sharedCost>
   14104       <personalNumber>
   14105         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
   14106         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14107         <exampleNumber>70123456</exampleNumber>
   14108       </personalNumber>
   14109       <voip>
   14110         <!-- The document says the normal length will be 8 digits, but many numbers found online
   14111              deviate from that. The prefixes from the following document have been added:
   14112              http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
   14113              201 has also been added since a diallable number was found online, and it says in
   14114              http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
   14115              numbers will be issued that begin with 200, numbers beginning with 201 will be issued
   14116              one at a time, and 202-209 in blocks. -->
   14117         <nationalNumberPattern>
   14118           20(?:
   14119             1\d{5}|
   14120             [2-689]\d{1,7}
   14121           )
   14122         </nationalNumberPattern>
   14123         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   14124         <exampleNumber>20201234</exampleNumber>
   14125       </voip>
   14126     </territory>
   14127 
   14128     <!-- Latvia -->
   14129     <!-- http://www.itu.int/oth/T0202000076/en -->
   14130     <!-- http://en.wikipedia.org/wiki/+371 -->
   14131     <territory id="LV" countryCode="371" internationalPrefix="00" mobileNumberPortableRegion="true">
   14132       <availableFormats>
   14133         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
   14134           <format>$1 $2 $3</format>
   14135         </numberFormat>
   14136       </availableFormats>
   14137       <generalDesc>
   14138         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
   14139         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14140       </generalDesc>
   14141       <fixedLine>
   14142         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
   14143         <exampleNumber>63123456</exampleNumber>
   14144       </fixedLine>
   14145       <mobile>
   14146         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
   14147         <exampleNumber>21234567</exampleNumber>
   14148       </mobile>
   14149       <tollFree>
   14150         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
   14151         <exampleNumber>80123456</exampleNumber>
   14152       </tollFree>
   14153       <premiumRate>
   14154         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
   14155         <exampleNumber>90123456</exampleNumber>
   14156       </premiumRate>
   14157       <sharedCost>
   14158         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
   14159         <exampleNumber>81123456</exampleNumber>
   14160       </sharedCost>
   14161     </territory>
   14162 
   14163     <!-- Libya (Soc. Peoples Libyan Arab Jamahiriya) -->
   14164     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
   14165          and itu.int. The new area codes are on the Arabic website of the main telecommunication
   14166          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
   14167          using 096 (they are allowing customers to register numbers currently), so their code has
   14168          also been added. -->
   14169     <!-- http://hlc.ly/price.php -->
   14170     <territory id="LY" countryCode="218" internationalPrefix="00"
   14171                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   14172       <availableFormats>
   14173         <numberFormat pattern="([25679]\d)(\d{7})">
   14174           <format>$1-$2</format>
   14175         </numberFormat>
   14176       </availableFormats>
   14177       <generalDesc>
   14178         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
   14179         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   14180       </generalDesc>
   14181       <fixedLine>
   14182         <nationalNumberPattern>
   14183           (?:
   14184             2[1345]|
   14185             5[1347]|
   14186             6[123479]|
   14187             71
   14188           )\d{7}
   14189         </nationalNumberPattern>
   14190         <exampleNumber>212345678</exampleNumber>
   14191       </fixedLine>
   14192       <mobile>
   14193         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
   14194              where SMS messages have been apparently successfully received. -->
   14195         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
   14196         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14197         <exampleNumber>912345678</exampleNumber>
   14198       </mobile>
   14199     </territory>
   14200 
   14201     <!-- Morocco -->
   14202     <!-- Shares formatting and some metadata with Western Sahara. -->
   14203     <!-- http://www.itu.int/oth/T0202000090/en -->
   14204     <!-- http://en.wikipedia.org/wiki/+212 -->
   14205     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
   14206                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
   14207                mobileNumberPortableRegion="true">
   14208       <availableFormats>
   14209         <numberFormat pattern="([56]\d{2})(\d{6})">
   14210           <leadingDigits>
   14211             5(?:
   14212               2[015-7]|
   14213               3[0-4]
   14214             )|
   14215             6
   14216           </leadingDigits>
   14217           <format>$1-$2</format>
   14218         </numberFormat>
   14219         <numberFormat pattern="([58]\d{3})(\d{5})">
   14220           <leadingDigits>
   14221             5(?:
   14222               2[2-489]|
   14223               3[5-9]
   14224             )|
   14225             892
   14226           </leadingDigits>
   14227           <leadingDigits>
   14228             5(?:
   14229               2(?:
   14230                 [2-48]|
   14231                 90
   14232               )|
   14233               3(?:
   14234                 [5-79]|
   14235                 80
   14236               )
   14237             )|
   14238             892
   14239           </leadingDigits>
   14240           <format>$1-$2</format>
   14241         </numberFormat>
   14242         <numberFormat pattern="(5\d{4})(\d{4})">
   14243           <leadingDigits>
   14244             5(?:
   14245               29|
   14246               38
   14247             )
   14248           </leadingDigits>
   14249           <leadingDigits>
   14250             5(?:
   14251               29|
   14252               38
   14253             )[89]
   14254           </leadingDigits>
   14255           <format>$1-$2</format>
   14256         </numberFormat>
   14257         <numberFormat pattern="(8[09])(\d{7})">
   14258           <leadingDigits>
   14259             8(?:
   14260               0|
   14261               9[013-9]
   14262             )
   14263           </leadingDigits>
   14264           <format>$1-$2</format>
   14265         </numberFormat>
   14266       </availableFormats>
   14267       <generalDesc>
   14268         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
   14269         <!-- Closed numbering plan. -->
   14270         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14271       </generalDesc>
   14272       <fixedLine>
   14273         <nationalNumberPattern>
   14274           5(?:
   14275             2(?:
   14276               (?:
   14277                 [015-7]\d|
   14278                 2[2-9]|
   14279                 3[2-57]|
   14280                 4[2-8]|
   14281                 8[235-7]
   14282               )\d|
   14283               9(?:
   14284                 0\d|
   14285                 [89]0
   14286               )
   14287             )|
   14288             3(?:
   14289               (?:
   14290                 [0-4]\d|
   14291                 [57][2-9]|
   14292                 6[235-8]|
   14293                 9[3-9]
   14294               )\d|
   14295               8(?:
   14296                 0\d|
   14297                 [89]0
   14298               )
   14299             )
   14300           )\d{4}
   14301         </nationalNumberPattern>
   14302         <exampleNumber>520123456</exampleNumber>
   14303       </fixedLine>
   14304       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
   14305       <mobile>
   14306         <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01], 698 are from numbers found
   14307              online, bug-reports, and information provided directly by the carriers. -->
   14308         <nationalNumberPattern>
   14309           6(?:
   14310             0[0-8]|
   14311             [124-7]\d|
   14312             3[013-8]|
   14313             8[01]|
   14314             9[89]
   14315           )\d{6}
   14316         </nationalNumberPattern>
   14317         <exampleNumber>650123456</exampleNumber>
   14318       </mobile>
   14319       <tollFree>
   14320         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   14321         <exampleNumber>801234567</exampleNumber>
   14322       </tollFree>
   14323       <premiumRate>
   14324         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
   14325         <exampleNumber>891234567</exampleNumber>
   14326       </premiumRate>
   14327     </territory>
   14328 
   14329     <!-- Monaco -->
   14330     <!-- http://www.itu.int/oth/T020200008D/en -->
   14331     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
   14332          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
   14333          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
   14334     <territory id="MC" countryCode="377" internationalPrefix="00"
   14335                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   14336       <availableFormats>
   14337         <!-- Following formatting found online rather than in the ITU document example. -->
   14338         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
   14339           <leadingDigits>[89]</leadingDigits>
   14340           <format>$1 $2 $3 $4</format>
   14341         </numberFormat>
   14342         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   14343           <leadingDigits>4</leadingDigits>
   14344           <format>$1 $2 $3</format>
   14345         </numberFormat>
   14346         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
   14347           <leadingDigits>6</leadingDigits>
   14348           <format>$1 $2 $3 $4 $5</format>
   14349         </numberFormat>
   14350       </availableFormats>
   14351       <generalDesc>
   14352         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
   14353         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   14354       </generalDesc>
   14355       <noInternationalDialling>
   14356         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
   14357         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14358       </noInternationalDialling>
   14359       <fixedLine>
   14360         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
   14361         <nationalNumberPattern>9[2-47-9]\d{6}</nationalNumberPattern>
   14362         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14363         <exampleNumber>99123456</exampleNumber>
   14364       </fixedLine>
   14365       <mobile>
   14366         <!-- 4X mobile numbers are actually used by Kosovo. -->
   14367         <nationalNumberPattern>
   14368           6\d{8}|
   14369           4\d{7}
   14370         </nationalNumberPattern>
   14371         <exampleNumber>612345678</exampleNumber>
   14372       </mobile>
   14373       <tollFree>
   14374         <nationalNumberPattern>
   14375           (?:
   14376             8\d|
   14377             90
   14378           )\d{6}
   14379         </nationalNumberPattern>
   14380         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14381         <exampleNumber>90123456</exampleNumber>
   14382       </tollFree>
   14383     </territory>
   14384 
   14385     <!-- Moldova, Rep. of -->
   14386     <!-- http://www.itu.int/oth/T020200008C/en -->
   14387     <!-- http://en.anrceti.md -->
   14388     <territory id="MD" countryCode="373" internationalPrefix="00"
   14389                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   14390                mobileNumberPortableRegion="true">
   14391       <availableFormats>
   14392         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   14393           <leadingDigits>
   14394             22|
   14395             3
   14396           </leadingDigits>
   14397           <format>$1 $2 $3</format>
   14398         </numberFormat>
   14399         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
   14400           <leadingDigits>
   14401             2[13-79]|
   14402             [5-7]
   14403           </leadingDigits>
   14404           <format>$1 $2 $3</format>
   14405         </numberFormat>
   14406         <numberFormat pattern="([89]\d{2})(\d{5})">
   14407           <leadingDigits>[89]</leadingDigits>
   14408           <format>$1 $2</format>
   14409         </numberFormat>
   14410       </availableFormats>
   14411       <generalDesc>
   14412         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
   14413         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14414       </generalDesc>
   14415       <fixedLine>
   14416         <nationalNumberPattern>
   14417           (?:
   14418             2(?:
   14419               1[0569]|
   14420               2\d|
   14421               3[015-7]|
   14422               4[1-46-9]|
   14423               5[0-24689]|
   14424               6[2-589]|
   14425               7[1-37]|
   14426               9[1347-9]
   14427             )|
   14428             5(?:
   14429               33|
   14430               5[257]
   14431             )
   14432           )\d{5}
   14433         </nationalNumberPattern>
   14434         <exampleNumber>22212345</exampleNumber>
   14435       </fixedLine>
   14436       <mobile>
   14437         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
   14438         <nationalNumberPattern>
   14439           (?:
   14440             562|
   14441             6(?:
   14442               50|
   14443               7[1-6]|
   14444               [089]\d
   14445             )|
   14446             7(?:
   14447               67|
   14448               7[47-9]|
   14449               [89]\d
   14450             )
   14451           )\d{5}
   14452         </nationalNumberPattern>
   14453         <exampleNumber>65012345</exampleNumber>
   14454       </mobile>
   14455       <tollFree>
   14456         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   14457         <exampleNumber>80012345</exampleNumber>
   14458       </tollFree>
   14459       <premiumRate>
   14460         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
   14461         <exampleNumber>90012345</exampleNumber>
   14462       </premiumRate>
   14463       <!-- Information came from en.anrceti.md/node/81 -->
   14464       <sharedCost>
   14465         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
   14466         <exampleNumber>80812345</exampleNumber>
   14467       </sharedCost>
   14468       <uan>
   14469         <!-- Includes numbers used for access to different transport directory services of general
   14470              interest, since these are charged at the same rate as fixed-line numbers. -->
   14471         <nationalNumberPattern>
   14472           8(?:
   14473             03|
   14474             14
   14475           )\d{5}
   14476         </nationalNumberPattern>
   14477         <exampleNumber>80312345</exampleNumber>
   14478       </uan>
   14479       <voip>
   14480         <!-- Used for "nomadic numbers". -->
   14481         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
   14482         <exampleNumber>30123456</exampleNumber>
   14483       </voip>
   14484     </territory>
   14485 
   14486     <!-- Montenegro -->
   14487     <!-- http://www.itu.int/oth/T02020000DA/en -->
   14488     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro -->
   14489     <!-- http://www.ekip.me/numeracija/dodijeljena.php -->
   14490     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
   14491                nationalPrefixFormattingRule="$NP$FG">
   14492       <availableFormats>
   14493          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   14494           <leadingDigits>[2-57-9]|6[3789]</leadingDigits>
   14495           <leadingDigits>
   14496             [2-57-9]|
   14497             6(?:
   14498               [389]|
   14499               7(?:
   14500                 [0-8]|
   14501                 9[3-9]
   14502               )
   14503             )
   14504           </leadingDigits>
   14505           <format>$1 $2 $3</format>
   14506         </numberFormat>
   14507         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
   14508           <leadingDigits>679</leadingDigits>
   14509           <leadingDigits>679[0-2]</leadingDigits>
   14510           <format>$1 $2 $3 $4</format>
   14511         </numberFormat>
   14512       </availableFormats>
   14513       <generalDesc>
   14514         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
   14515         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   14516       </generalDesc>
   14517       <fixedLine>
   14518         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
   14519              The valid options for the third digit were from
   14520              http://www.ekip.me/numeracija/dodijeljena.php -->
   14521         <nationalNumberPattern>
   14522           (?:
   14523             20[2-8]|
   14524             3(?:
   14525               0[2-7]|
   14526               1[35-7]|
   14527               2[3567]|
   14528               3[4-7]
   14529             )|
   14530             4(?:
   14531               0[237]|
   14532               1[27]
   14533             )|
   14534             5(?:
   14535               0[47]|
   14536               1[27]|
   14537               2[378]
   14538             )
   14539           )\d{5}
   14540         </nationalNumberPattern>
   14541         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   14542         <exampleNumber>30234567</exampleNumber>
   14543       </fixedLine>
   14544       <mobile>
   14545         <!-- Mobile numbers start with 632, 67, 68 or 69. -->
   14546         <nationalNumberPattern>
   14547           6(?:
   14548             32\d|
   14549             [89]\d{2}|
   14550             7(?:
   14551               [0-8]\d|
   14552               9(?:
   14553                 [3-9]|
   14554                 [0-2]\d
   14555               )
   14556             )
   14557           )\d{4}
   14558         </nationalNumberPattern>
   14559         <!-- According to ITU it is possible for the numbers to be between length 4-12
   14560              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
   14561              digits long, based on the Montenegro document. -->
   14562         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   14563         <exampleNumber>67622901</exampleNumber>
   14564       </mobile>
   14565       <tollFree>
   14566         <!-- All toll free numbers have prefix 80 followed by 02 or 08. -->
   14567         <nationalNumberPattern>800[28]\d{4}</nationalNumberPattern>
   14568         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14569         <exampleNumber>80080002</exampleNumber>
   14570       </tollFree>
   14571       <premiumRate>
   14572         <!-- Numbers with prefix 88, 94 or 95 are services with additional charges. -->
   14573         <nationalNumberPattern>
   14574           (?:
   14575             88\d|
   14576             9(?:
   14577               4[13-8]|
   14578               5[16-8]
   14579             )
   14580           )\d{5}
   14581         </nationalNumberPattern>
   14582         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14583         <exampleNumber>94515151</exampleNumber>
   14584       </premiumRate>
   14585       <voip>
   14586         <!-- VOIP are prefixed with 78. -->
   14587         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
   14588         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14589         <exampleNumber>78108780</exampleNumber>
   14590       </voip>
   14591       <uan>
   14592         <!-- Corporate Telephony are prefixed with 77. -->
   14593         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
   14594         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14595         <exampleNumber>77273012</exampleNumber>
   14596       </uan>
   14597     </territory>
   14598 
   14599     <!-- Saint-Martin, French Antilles -->
   14600     <!-- http://www.itu.int/oth/T0202000058/en -->
   14601     <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
   14602     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
   14603       <!-- Formatting rules borrowed from Guadeloupe. -->
   14604       <generalDesc>
   14605         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   14606         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14607       </generalDesc>
   14608       <fixedLine>
   14609         <nationalNumberPattern>
   14610           590(?:
   14611             [02][79]|
   14612             13|
   14613             5[0-268]|
   14614             [78]7
   14615           )\d{4}
   14616         </nationalNumberPattern>
   14617         <exampleNumber>590271234</exampleNumber>
   14618       </fixedLine>
   14619       <mobile>
   14620         <!-- Any ranges assigned from
   14621              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
   14622              Guadeloupe, St Martin and St Barthlemy, since we can't reliably distinguish between
   14623              them. -->
   14624         <nationalNumberPattern>
   14625           690(?:
   14626             0[0-7]|
   14627             [1-9]\d
   14628           )\d{4}
   14629         </nationalNumberPattern>
   14630         <exampleNumber>690301234</exampleNumber>
   14631       </mobile>
   14632     </territory>
   14633 
   14634     <!-- Madagascar -->
   14635     <!-- http://www.itu.int/oth/T020200007F/en -->
   14636     <territory id="MG" countryCode="261" internationalPrefix="00"
   14637                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   14638       <availableFormats>
   14639         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
   14640           <format>$1 $2 $3 $4</format>
   14641         </numberFormat>
   14642       </availableFormats>
   14643       <generalDesc>
   14644         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
   14645         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   14646       </generalDesc>
   14647       <fixedLine>
   14648         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
   14649              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
   14650              codes beginning with 4. -->
   14651         <nationalNumberPattern>
   14652           20(?:
   14653             2\d{2}|
   14654             4[47]\d|
   14655             5[3467]\d|
   14656             6[279]\d|
   14657             7(?:
   14658               2[29]|
   14659               [35]\d
   14660             )|
   14661             8[268]\d|
   14662             9[245]\d
   14663           )\d{4}
   14664         </nationalNumberPattern>
   14665         <exampleNumber>202123456</exampleNumber>
   14666       </fixedLine>
   14667       <mobile>
   14668         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
   14669              out by reality. -->
   14670         <nationalNumberPattern>
   14671           3(?:
   14672             [02-4]\d|
   14673             90
   14674           )\d{6}
   14675         </nationalNumberPattern>
   14676         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14677         <exampleNumber>301234567</exampleNumber>
   14678       </mobile>
   14679       <!-- Putting VSAT numbers here. -->
   14680       <voip>
   14681         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
   14682         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   14683         <exampleNumber>221234567</exampleNumber>
   14684       </voip>
   14685     </territory>
   14686 
   14687     <!-- Marshall Islands -->
   14688     <!-- http://www.itu.int/oth/T0202000085/en -->
   14689     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
   14690       <availableFormats>
   14691         <numberFormat pattern="(\d{3})(\d{4})">
   14692           <format>$1-$2</format>
   14693         </numberFormat>
   14694       </availableFormats>
   14695       <generalDesc>
   14696         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
   14697         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   14698       </generalDesc>
   14699       <fixedLine>
   14700         <nationalNumberPattern>
   14701           (?:
   14702             247|
   14703             528|
   14704             625
   14705           )\d{4}
   14706         </nationalNumberPattern>
   14707         <exampleNumber>2471234</exampleNumber>
   14708       </fixedLine>
   14709       <mobile>
   14710         <nationalNumberPattern>
   14711           (?:
   14712             235|
   14713             329|
   14714             45[56]|
   14715             545
   14716           )\d{4}
   14717         </nationalNumberPattern>
   14718         <exampleNumber>2351234</exampleNumber>
   14719       </mobile>
   14720       <voip>
   14721         <!-- VSAT prefixes are here. -->
   14722         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
   14723         <exampleNumber>6351234</exampleNumber>
   14724       </voip>
   14725     </territory>
   14726 
   14727     <!-- Macedonia, Former Yugoslav Rep. of -->
   14728     <!-- http://www.itu.int/oth/T02020000CE/en -->
   14729     <territory id="MK" countryCode="389" internationalPrefix="00"
   14730                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   14731                mobileNumberPortableRegion="true">
   14732       <availableFormats>
   14733         <!-- Formats follow wikipedia. -->
   14734         <numberFormat pattern="(2)(\d{3})(\d{4})">
   14735           <leadingDigits>2</leadingDigits>
   14736           <format>$1 $2 $3</format>
   14737         </numberFormat>
   14738         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
   14739           <leadingDigits>[347]</leadingDigits>
   14740           <format>$1 $2 $3</format>
   14741         </numberFormat>
   14742         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
   14743           <leadingDigits>[58]</leadingDigits>
   14744           <format>$1 $2 $3 $4</format>
   14745         </numberFormat>
   14746       </availableFormats>
   14747       <generalDesc>
   14748         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
   14749         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14750       </generalDesc>
   14751       <fixedLine>
   14752         <nationalNumberPattern>
   14753           (?:
   14754             2(?:
   14755               [23]\d|
   14756               5[124578]|
   14757               6[01]
   14758             )|
   14759             3(?:
   14760               1[3-6]|
   14761               [23][2-6]|
   14762               4[2356]
   14763             )|
   14764             4(?:
   14765               [23][2-6]|
   14766               4[3-6]|
   14767               5[256]|
   14768               6[25-8]|
   14769               7[24-6]|
   14770               8[4-6]
   14771             )
   14772           )\d{5}
   14773         </nationalNumberPattern>
   14774         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   14775         <exampleNumber>22212345</exampleNumber>
   14776       </fixedLine>
   14777       <mobile>
   14778         <nationalNumberPattern>
   14779           7(?:
   14780             [0-25-8]\d|
   14781             33
   14782           )\d{5}</nationalNumberPattern>
   14783         <exampleNumber>72345678</exampleNumber>
   14784       </mobile>
   14785       <tollFree>
   14786         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   14787         <exampleNumber>80012345</exampleNumber>
   14788       </tollFree>
   14789       <premiumRate>
   14790         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
   14791         <exampleNumber>50012345</exampleNumber>
   14792       </premiumRate>
   14793       <sharedCost>
   14794         <nationalNumberPattern>
   14795           8(?:
   14796             0[1-9]|
   14797             [1-9]\d
   14798           )\d{5}
   14799         </nationalNumberPattern>
   14800         <exampleNumber>80123456</exampleNumber>
   14801       </sharedCost>
   14802     </territory>
   14803 
   14804     <!-- Mali -->
   14805     <!-- http://www.itu.int/oth/T0202000083/en -->
   14806     <!-- http://crt-mali.org/pdf/plan_num -->
   14807     <territory id="ML" countryCode="223" internationalPrefix="00">
   14808       <availableFormats>
   14809         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   14810           <leadingDigits>[246-9]</leadingDigits>
   14811           <format>$1 $2 $3 $4</format>
   14812         </numberFormat>
   14813         <!-- Formatting some short numbers as a block. -->
   14814         <numberFormat pattern="(\d{4})">
   14815           <leadingDigits>
   14816             67|
   14817             74
   14818           </leadingDigits>
   14819           <intlFormat>NA</intlFormat>
   14820           <format>$1</format>
   14821         </numberFormat>
   14822       </availableFormats>
   14823       <generalDesc>
   14824         <nationalNumberPattern>[246-9]\d{7}</nationalNumberPattern>
   14825         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   14826       </generalDesc>
   14827       <fixedLine>
   14828         <!-- Patterns from ITU with extra ranges 20 25, 20 7[13-9] and 217 provided by Sotelma and
   14829              confirmed by searches online. -->
   14830         <nationalNumberPattern>
   14831           (?:
   14832             2(?:
   14833               0(?:
   14834                 2[0-589]|
   14835                 7\d
   14836               )|
   14837               1(?:
   14838                 2[5-7]|
   14839                 [3-689]\d|
   14840                 7[2-4689]
   14841               )
   14842             )|
   14843             44[239]\d
   14844           )\d{4}
   14845         </nationalNumberPattern>
   14846         <exampleNumber>20212345</exampleNumber>
   14847       </fixedLine>
   14848       <mobile>
   14849         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
   14850              document (which is very stale). All mobile numbers starting with 7 are now Orange.
   14851              Includes 6x from Malitel IR21. Numbers beginning with 9 have been found online and
   14852              reported by open-source users, although the exact possible second digits are uncertain.
   14853              -->
   14854         <nationalNumberPattern>
   14855           [67]\d{7}|
   14856           9[0-25-9]\d{6}
   14857         </nationalNumberPattern>
   14858         <exampleNumber>65012345</exampleNumber>
   14859       </mobile>
   14860       <tollFree>
   14861         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
   14862              plan. -->
   14863         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   14864         <exampleNumber>80012345</exampleNumber>
   14865       </tollFree>
   14866    </territory>
   14867 
   14868     <!-- Myanmar -->
   14869     <!-- http://www.itu.int/oth/T0202000092/en -->
   14870     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
   14871                nationalPrefixFormattingRule="$NP$FG">
   14872       <availableFormats>
   14873         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
   14874           <leadingDigits>
   14875             1|
   14876             2[45]
   14877           </leadingDigits>
   14878           <format>$1 $2 $3</format>
   14879         </numberFormat>
   14880         <numberFormat pattern="(2)(\d{4})(\d{4})">
   14881           <leadingDigits>251</leadingDigits>
   14882           <format>$1 $2 $3</format>
   14883         </numberFormat>
   14884         <numberFormat pattern="(\d)(\d{2})(\d{3})">
   14885           <leadingDigits>
   14886             16|
   14887             2
   14888           </leadingDigits>
   14889           <format>$1 $2 $3</format>
   14890         </numberFormat>
   14891         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   14892           <leadingDigits>
   14893             67|
   14894             81
   14895           </leadingDigits>
   14896           <format>$1 $2 $3</format>
   14897         </numberFormat>
   14898         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
   14899           <leadingDigits>[4-8]</leadingDigits>
   14900           <format>$1 $2 $3</format>
   14901         </numberFormat>
   14902         <numberFormat pattern="(9)(\d{3})(\d{4,5})">
   14903           <leadingDigits>
   14904             9(?:
   14905               [235-9]|
   14906               4[13789]
   14907             )
   14908           </leadingDigits>
   14909           <format>$1 $2 $3</format>
   14910         </numberFormat>
   14911         <numberFormat pattern="(9)(4\d{4})(\d{4})">
   14912           <leadingDigits>94[0245]</leadingDigits>
   14913           <format>$1 $2 $3</format>
   14914         </numberFormat>
   14915       </availableFormats>
   14916       <generalDesc>
   14917         <nationalNumberPattern>
   14918           [14578]\d{5,7}|
   14919           [26]\d{5,8}|
   14920           9(?:
   14921             [258]|
   14922             3\d|
   14923             4\d{1,2}|
   14924             [679]\d?
   14925           )\d{6}
   14926         </nationalNumberPattern>
   14927         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   14928       </generalDesc>
   14929       <fixedLine>
   14930         <nationalNumberPattern>
   14931           1(?:
   14932             2\d{1,2}|
   14933             [3-5]\d|
   14934             6\d?|
   14935             [89][0-6]\d
   14936           )\d{4}|
   14937           2(?:
   14938             [236-9]\d{4}|
   14939             4(?:
   14940               0\d{5}|
   14941               \d{4}
   14942             )|
   14943             5(?:
   14944               1\d{3,6}|
   14945               [02-9]\d{3,5}
   14946             )
   14947           )|
   14948           4(?:
   14949             2[245-8]|
   14950             [346][2-6]|
   14951             5[3-5]
   14952           )\d{4}|
   14953           5(?:
   14954             2(?:
   14955               20?|
   14956               [3-8]
   14957             )|
   14958             3[2-68]|
   14959             4(?:
   14960               21?|
   14961               [4-8]
   14962             )|
   14963             5[23]|
   14964             6[2-4]|
   14965             7[2-8]|
   14966             8[24-7]|
   14967             9[2-7]
   14968           )\d{4}|
   14969           6(?:
   14970             0[23]|
   14971             1[2356]|
   14972             [24][2-6]|
   14973             3[24-6]|
   14974             5[2-4]|
   14975             6[2-8]|
   14976             7(?:
   14977               [2367]|
   14978               4\d|
   14979               5\d?|
   14980               8[145]\d
   14981             )|
   14982             8[245]|
   14983             9[24]
   14984           )\d{4}|
   14985           7(?:
   14986             [04][24-8]|
   14987             [15][2-7]|
   14988             22|
   14989             3[2-4]
   14990           )\d{4}|
   14991           8(?:
   14992             1(?:
   14993               2\d?|
   14994               [3-689]
   14995             )|
   14996             2[2-8]|
   14997             3[24]|
   14998             4[24-7]|
   14999             5[245]|
   15000             6[23]
   15001           )\d{4}
   15002         </nationalNumberPattern>
   15003         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   15004         <exampleNumber>1234567</exampleNumber>
   15005       </fixedLine>
   15006       <mobile>
   15007         <!-- Adding 99[089] (8 digits) from numbers found online, and 961 with 9 digits. -->
   15008         <nationalNumberPattern>
   15009           17[01]\d{4}|
   15010           9(?:
   15011             2[0-4]|
   15012             3[136]\d|
   15013             4(?:
   15014               0[0-4]\d|
   15015               [1379]\d|
   15016               [24][0-589]\d|
   15017               5\d{2}|
   15018               88
   15019             )|
   15020             5[0-6]|
   15021             61?\d|
   15022             73\d|
   15023             8\d|
   15024             9(?:
   15025               1\d|
   15026               [089]
   15027             )
   15028           )\d{5}
   15029         </nationalNumberPattern>
   15030         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   15031         <exampleNumber>92123456</exampleNumber>
   15032       </mobile>
   15033       <voip>
   15034         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
   15035         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15036         <exampleNumber>13331234</exampleNumber>
   15037       </voip>
   15038       <!-- No information on other types of phone numbers for Myanmar has been found. -->
   15039     </territory>
   15040 
   15041     <!-- Mongolia -->
   15042     <!-- http://www.itu.int/oth/T020200008E/en -->
   15043     <territory id="MN" countryCode="976" internationalPrefix="001"
   15044                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   15045       <availableFormats>
   15046         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
   15047           <leadingDigits>[12]1</leadingDigits>
   15048           <format>$1 $2 $3</format>
   15049         </numberFormat>
   15050         <numberFormat pattern="([12]2\d)(\d{5,6})">
   15051           <leadingDigits>[12]2[1-3]</leadingDigits>
   15052           <format>$1 $2</format>
   15053         </numberFormat>
   15054         <numberFormat pattern="([12]\d{3})(\d{5})">
   15055           <leadingDigits>
   15056             [12](?:
   15057               27|
   15058               [3-5]
   15059             )
   15060           </leadingDigits>
   15061           <leadingDigits>
   15062             [12](?:
   15063               27|
   15064               [3-5]\d
   15065             )2
   15066           </leadingDigits>
   15067           <format>$1 $2</format>
   15068         </numberFormat>
   15069         <!-- It seems from online formatting that the national prefix is not written (or perhaps
   15070              needed?) for numbers in these ranges. -->
   15071         <numberFormat pattern="(\d{4})(\d{4})"
   15072           nationalPrefixFormattingRule="$FG">
   15073           <leadingDigits>[57-9]</leadingDigits>
   15074           <format>$1 $2</format>
   15075         </numberFormat>
   15076         <numberFormat pattern="([12]\d{4})(\d{4,5})">
   15077           <leadingDigits>
   15078             [12](?:
   15079               27|
   15080               [3-5]
   15081             )
   15082           </leadingDigits>
   15083           <leadingDigits>
   15084             [12](?:
   15085               27|
   15086               [3-5]\d
   15087             )[4-9]
   15088           </leadingDigits>
   15089           <format>$1 $2</format>
   15090         </numberFormat>
   15091       </availableFormats>
   15092       <generalDesc>
   15093         <nationalNumberPattern>
   15094           [12]\d{7,9}|
   15095           [57-9]\d{7}
   15096         </nationalNumberPattern>
   15097         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   15098       </generalDesc>
   15099       <fixedLine>
   15100         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
   15101              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
   15102              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
   15103              as well, even though we are not certain whether they are in fact fixed or mobile in
   15104              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
   15105              online numbers being found. -->
   15106         <nationalNumberPattern>
   15107           [12](?:
   15108             1\d|
   15109             2(?:
   15110               [1-3]\d?|
   15111               7\d
   15112             )|
   15113             3[2-8]\d{1,2}|
   15114             4[2-68]\d{1,2}|
   15115             5[1-4689]\d{1,2}
   15116           )\d{5}|
   15117           5[0568]\d{6}
   15118         </nationalNumberPattern>
   15119         <exampleNumber>50123456</exampleNumber>
   15120       </fixedLine>
   15121       <mobile>
   15122         <nationalNumberPattern>
   15123           (?:
   15124             8[89]|
   15125             9[013-9]
   15126           )\d{6}
   15127         </nationalNumberPattern>
   15128         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15129         <exampleNumber>88123456</exampleNumber>
   15130       </mobile>
   15131       <!-- No tollFree or premiumRate information can be found. -->
   15132       <voip>
   15133         <!-- According to the document this could be stricter, but there are counter examples
   15134              online. -->
   15135         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
   15136         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15137         <exampleNumber>75123456</exampleNumber>
   15138       </voip>
   15139     </territory>
   15140 
   15141     <!-- Macao, China -->
   15142     <!-- http://www.itu.int/oth/T020200007E/en -->
   15143     <territory id="MO" countryCode="853" internationalPrefix="00">
   15144       <availableFormats>
   15145         <numberFormat pattern="([268]\d{3})(\d{4})">
   15146           <format>$1 $2</format>
   15147         </numberFormat>
   15148       </availableFormats>
   15149       <generalDesc>
   15150         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
   15151         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15152       </generalDesc>
   15153       <fixedLine>
   15154         <nationalNumberPattern>
   15155           (?:
   15156             28[2-57-9]|
   15157             8[2-57-9]\d
   15158           )\d{5}
   15159         </nationalNumberPattern>
   15160         <exampleNumber>28212345</exampleNumber>
   15161       </fixedLine>
   15162       <mobile>
   15163         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
   15164              numbers, and they are also widely present on the Internet. -->
   15165         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
   15166         <exampleNumber>66123456</exampleNumber>
   15167       </mobile>
   15168       <!-- No tollFree or premiumRate information can be found. -->
   15169     </territory>
   15170 
   15171     <!-- Northern Mariana Islands -->
   15172     <!-- http://www.itu.int/oth/T02020000EE/en -->
   15173     <!-- www.cnmiphonebook.com/ -->
   15174     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
   15175                internationalPrefix="011">
   15176       <generalDesc>
   15177         <!-- NANPA country - uses US formatting rules -->
   15178         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   15179         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   15180       </generalDesc>
   15181       <fixedLine>
   15182         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
   15183              were seen in the white and yellow pages, but no numbers with these exchange codes have
   15184              proved to be diallable so we exclude them for now.. -->
   15185         <nationalNumberPattern>
   15186           670(?:
   15187             2(?:
   15188               3[3-7]|
   15189               56|
   15190               8[5-8]
   15191             )|
   15192             32[1238]|
   15193             4(?:
   15194               33|
   15195               8[348]
   15196             )|
   15197             5(?:
   15198               32|
   15199               55|
   15200               88
   15201             )|
   15202             6(?:
   15203               64|
   15204               70|
   15205               82
   15206             )|
   15207             78[589]|
   15208             8[3-9]8|
   15209             989
   15210           )\d{4}
   15211         </nationalNumberPattern>
   15212         <exampleNumber>6702345678</exampleNumber>
   15213       </fixedLine>
   15214       <mobile>
   15215         <nationalNumberPattern>
   15216           670(?:
   15217             2(?:
   15218               3[3-7]|
   15219               56|
   15220               8[5-8]
   15221             )|
   15222             32[1238]|
   15223             4(?:
   15224               33|
   15225               8[348]
   15226             )|
   15227             5(?:
   15228               32|
   15229               55|
   15230               88
   15231             )|
   15232             6(?:
   15233               64|
   15234               70|
   15235               82
   15236             )|
   15237             78[589]|
   15238             8[3-9]8|
   15239             989
   15240           )\d{4}
   15241         </nationalNumberPattern>
   15242         <exampleNumber>6702345678</exampleNumber>
   15243       </mobile>
   15244       <tollFree>
   15245         <nationalNumberPattern>
   15246           8(?:
   15247             00|
   15248             55|
   15249             66|
   15250             77|
   15251             88
   15252           )[2-9]\d{6}
   15253         </nationalNumberPattern>
   15254         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15255         <exampleNumber>8002123456</exampleNumber>
   15256       </tollFree>
   15257       <premiumRate>
   15258         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   15259         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15260         <exampleNumber>9002123456</exampleNumber>
   15261       </premiumRate>
   15262       <personalNumber>
   15263         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   15264         <nationalNumberPattern>
   15265           5(?:
   15266             00|
   15267             33|
   15268             44
   15269           )[2-9]\d{6}
   15270         </nationalNumberPattern>
   15271         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15272         <exampleNumber>5002345678</exampleNumber>
   15273       </personalNumber>
   15274     </territory>
   15275 
   15276     <!-- Martinique (French Dept. of) -->
   15277     <!-- http://www.itu.int/oth/T0202000086/en -->
   15278     <!-- http://www.arcep.fr/index.php?id=2137&bloc=0596&CMD=RESULTS_NUMEROTATION -->
   15279     <territory id="MQ" countryCode="596" internationalPrefix="00"
   15280                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   15281       <availableFormats>
   15282         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   15283           <format>$1 $2 $3 $4</format>
   15284         </numberFormat>
   15285       </availableFormats>
   15286       <generalDesc>
   15287         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
   15288         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   15289       </generalDesc>
   15290       <fixedLine>
   15291         <nationalNumberPattern>
   15292           596(?:
   15293             0[2-5]|
   15294             [12]0|
   15295             3[05-9]|
   15296             4[024-8]|
   15297             [5-7]\d|
   15298             89|
   15299             9[4-8]
   15300           )\d{4}
   15301         </nationalNumberPattern>
   15302         <exampleNumber>596301234</exampleNumber>
   15303       </fixedLine>
   15304       <mobile>
   15305         <nationalNumberPattern>
   15306           696(?:
   15307             [0-479]\d|
   15308             5[01]|
   15309             8[0-689]
   15310           )\d{4}
   15311         </nationalNumberPattern>
   15312         <exampleNumber>696201234</exampleNumber>
   15313       </mobile>
   15314       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
   15315            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
   15316            too. -->
   15317     </territory>
   15318 
   15319     <!-- Mauritania -->
   15320     <!-- http://www.itu.int/oth/T0202000087/en -->
   15321     <!-- http://www.are.mr/com-1-4-1.html -->
   15322     <territory id="MR" countryCode="222" internationalPrefix="00" >
   15323       <availableFormats>
   15324         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
   15325           <format>$1 $2 $3 $4</format>
   15326         </numberFormat>
   15327       </availableFormats>
   15328       <generalDesc>
   15329         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
   15330         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15331       </generalDesc>
   15332       <fixedLine>
   15333         <nationalNumberPattern>
   15334           25[08]\d{5}|
   15335           35\d{6}|
   15336           45[1-7]\d{5}
   15337         </nationalNumberPattern>
   15338         <exampleNumber>35123456</exampleNumber>
   15339       </fixedLine>
   15340       <mobile>
   15341         <nationalNumberPattern>
   15342           (?:
   15343             2(?:
   15344               2\d|
   15345               70
   15346             )|
   15347             3(?:
   15348               3\d|
   15349               6[1-36]|
   15350               7[1-3]
   15351             )|
   15352             4(?:
   15353               4\d|
   15354               6[0457-9]|
   15355               7[4-9]|
   15356               8[01346-8]
   15357             )
   15358           )\d{5}
   15359         </nationalNumberPattern>
   15360         <exampleNumber>22123456</exampleNumber>
   15361       </mobile>
   15362       <tollFree>
   15363         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   15364         <exampleNumber>80012345</exampleNumber>
   15365       </tollFree>
   15366     </territory>
   15367 
   15368     <!-- Montserrat -->
   15369     <!-- http://www.itu.int/oth/T020200008F/en -->
   15370     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
   15371                internationalPrefix="011">
   15372       <generalDesc>
   15373         <!-- NANPA country - uses US formatting rules -->
   15374         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   15375         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   15376       </generalDesc>
   15377       <fixedLine>
   15378         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
   15379         <exampleNumber>6644912345</exampleNumber>
   15380       </fixedLine>
   15381       <mobile>
   15382         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
   15383         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15384         <exampleNumber>6644923456</exampleNumber>
   15385       </mobile>
   15386       <tollFree>
   15387         <nationalNumberPattern>
   15388           8(?:
   15389             00|
   15390             55|
   15391             66|
   15392             77|
   15393             88
   15394           )[2-9]\d{6}
   15395         </nationalNumberPattern>
   15396         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15397         <exampleNumber>8002123456</exampleNumber>
   15398       </tollFree>
   15399       <premiumRate>
   15400         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   15401         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15402         <exampleNumber>9002123456</exampleNumber>
   15403       </premiumRate>
   15404       <personalNumber>
   15405         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   15406         <nationalNumberPattern>
   15407           5(?:
   15408             00|
   15409             33|
   15410             44
   15411           )[2-9]\d{6}
   15412         </nationalNumberPattern>
   15413         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15414         <exampleNumber>5002345678</exampleNumber>
   15415       </personalNumber>
   15416     </territory>
   15417 
   15418     <!-- Malta -->
   15419     <!-- www.itu.int/oth/T0202000084/en -->
   15420     <!-- www.mca.org.mt (Numbering link in the LHS menu - has more up-to-date allocations) -->
   15421     <territory id="MT" countryCode="356" internationalPrefix="00" mobileNumberPortableRegion="true">
   15422       <availableFormats>
   15423         <numberFormat pattern="(\d{4})(\d{4})">
   15424           <format>$1 $2</format>
   15425         </numberFormat>
   15426       </availableFormats>
   15427       <generalDesc>
   15428         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
   15429         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15430       </generalDesc>
   15431       <fixedLine>
   15432         <nationalNumberPattern>
   15433           2(?:
   15434             0(?:
   15435               1[0-6]|
   15436               [69]\d
   15437             )|
   15438             [1-357]\d{2}
   15439           )\d{4}
   15440         </nationalNumberPattern>
   15441         <exampleNumber>21001234</exampleNumber>
   15442       </fixedLine>
   15443       <mobile>
   15444         <nationalNumberPattern>
   15445           (?:
   15446             7(?:
   15447               210|
   15448               [79]\d{2}
   15449             )|
   15450             9(?:
   15451               2(?:
   15452                1[01]|
   15453                31
   15454               )|
   15455               696|
   15456               8(?:
   15457                 1[1-3]|
   15458                 89|
   15459                 97
   15460               )|
   15461               9\d{2}
   15462             )
   15463           )\d{4}
   15464         </nationalNumberPattern>
   15465         <exampleNumber>96961234</exampleNumber>
   15466       </mobile>
   15467       <pager>
   15468         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
   15469         <exampleNumber>71171234</exampleNumber>
   15470       </pager>
   15471       <tollFree>
   15472         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
   15473         <exampleNumber>80071234</exampleNumber>
   15474       </tollFree>
   15475       <premiumRate>
   15476         <nationalNumberPattern>
   15477           5(?:
   15478             0(?:
   15479               0(?:
   15480                 37|
   15481                 43
   15482               )|
   15483               6\d{2}|
   15484               70\d|
   15485               9[0168]
   15486             )|
   15487             [12]\d0[1-5]
   15488           )\d{3}
   15489         </nationalNumberPattern>
   15490         <exampleNumber>50037123</exampleNumber>
   15491       </premiumRate>
   15492       <voip>
   15493         <!-- In the plan as Non-PATS ECS. -->
   15494         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
   15495         <exampleNumber>35501234</exampleNumber>
   15496       </voip>
   15497       <uan>
   15498         <!-- Using this for governmental numbers. -->
   15499         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
   15500         <exampleNumber>50112345</exampleNumber>
   15501       </uan>
   15502     </territory>
   15503 
   15504     <!-- Mauritius -->
   15505     <!-- http://www.icta.mu/telecommunications/numbering.htm -->
   15506     <!-- Preferred international prefix is expected to standardize on just '00' -->
   15507     <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
   15508                preferredInternationalPrefix="020">
   15509       <availableFormats>
   15510         <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
   15511           <leadingDigits>[2-46-9]</leadingDigits>
   15512           <format>$1 $2</format>
   15513         </numberFormat>
   15514         <numberFormat pattern="(5\d{3})(\d{4})">
   15515           <leadingDigits>5</leadingDigits>
   15516           <format>$1 $2</format>
   15517         </numberFormat>
   15518       </availableFormats>
   15519       <generalDesc>
   15520         <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
   15521         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   15522       </generalDesc>
   15523       <fixedLine>
   15524         <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
   15525         <nationalNumberPattern>
   15526           (?:
   15527             2(?:
   15528               [03478]\d|
   15529               1[0-7]|
   15530               6[1-69]
   15531             )|
   15532             4(?:
   15533               [013568]\d|
   15534               2[4-7]
   15535             )|
   15536             5(
   15537               44\d|
   15538               471
   15539             )|
   15540             6\d{2}|
   15541             8(?:
   15542               14|
   15543               3[129]
   15544             )
   15545           )\d{4}
   15546         </nationalNumberPattern>
   15547         <exampleNumber>2012345</exampleNumber>
   15548       </fixedLine>
   15549       <mobile>
   15550         <nationalNumberPattern>
   15551           5(?:
   15552             2[59]\d|
   15553             4(?:
   15554               2[1-389]|
   15555               4\d|
   15556               7[1-9]|
   15557               9\d
   15558             )|
   15559             7\d{2}|
   15560             8(?:
   15561               [256]\d|
   15562               7[15-8]
   15563             )|
   15564             9[0-8]\d
   15565           )\d{4}
   15566         </nationalNumberPattern>
   15567         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   15568         <exampleNumber>52512345</exampleNumber>
   15569       </mobile>
   15570       <tollFree>
   15571         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
   15572         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   15573         <exampleNumber>8001234</exampleNumber>
   15574       </tollFree>
   15575       <premiumRate>
   15576         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
   15577         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   15578         <exampleNumber>3012345</exampleNumber>
   15579       </premiumRate>
   15580       <voip>
   15581         <nationalNumberPattern>
   15582           3(?:
   15583             20|
   15584             9\d
   15585           )\d{4}
   15586         </nationalNumberPattern>
   15587         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   15588         <exampleNumber>3201234</exampleNumber>
   15589       </voip>
   15590     </territory>
   15591 
   15592     <!-- Maldives -->
   15593     <!-- http://www.itu.int/oth/T0202000082/en -->
   15594     <!-- www.dhiraagu.com.mv -->
   15595     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
   15596                preferredInternationalPrefix="00">
   15597       <availableFormats>
   15598         <numberFormat pattern="(\d{3})(\d{4})">
   15599           <leadingDigits>
   15600             [3467]|
   15601             9(?:
   15602               [1-9]|
   15603               0[1-9]
   15604             )
   15605           </leadingDigits>
   15606           <format>$1-$2</format>
   15607         </numberFormat>
   15608         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   15609           <leadingDigits>900</leadingDigits>
   15610           <format>$1 $2 $3</format>
   15611         </numberFormat>
   15612       </availableFormats>
   15613       <generalDesc>
   15614         <nationalNumberPattern>
   15615           [3467]\d{6}|
   15616           9(?:
   15617             00\d{7}|
   15618             \d{6}
   15619           )
   15620         </nationalNumberPattern>
   15621         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   15622       </generalDesc>
   15623       <fixedLine>
   15624         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
   15625              diallable. -->
   15626         <nationalNumberPattern>
   15627           (?:
   15628             3(?:
   15629               0[01]|
   15630               3[0-59]
   15631             )|
   15632             6(?:
   15633               [567][02468]|
   15634               8[024689]|
   15635               90
   15636             )
   15637           )\d{4}
   15638         </nationalNumberPattern>
   15639         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   15640         <exampleNumber>6701234</exampleNumber>
   15641       </fixedLine>
   15642       <mobile>
   15643         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
   15644              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
   15645              91 was added based on information from Wataniya Telecom. -->
   15646         <nationalNumberPattern>
   15647           (?:
   15648             46[46]|
   15649             7[3-9]\d|
   15650             9[16-9]\d
   15651           )\d{4}
   15652         </nationalNumberPattern>
   15653         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   15654         <exampleNumber>7712345</exampleNumber>
   15655       </mobile>
   15656       <pager>
   15657         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
   15658         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   15659         <exampleNumber>7812345</exampleNumber>
   15660       </pager>
   15661       <premiumRate>
   15662         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   15663         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15664         <exampleNumber>9001234567</exampleNumber>
   15665       </premiumRate>
   15666     </territory>
   15667 
   15668     <!-- Malawi -->
   15669     <!-- http://www.itu.int/oth/T0202000080/en -->
   15670     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
   15671          consistent in having one. -->
   15672     <territory id="MW" countryCode="265" internationalPrefix="00"
   15673                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   15674       <availableFormats>
   15675         <numberFormat pattern="(\d)(\d{3})(\d{3})">
   15676           <leadingDigits>1</leadingDigits>
   15677           <format>$1 $2 $3</format>
   15678         </numberFormat>
   15679         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
   15680           <leadingDigits>2</leadingDigits>
   15681           <format>$1 $2 $3</format>
   15682         </numberFormat>
   15683         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   15684           <leadingDigits>[1789]</leadingDigits>
   15685           <format>$1 $2 $3 $4</format>
   15686         </numberFormat>
   15687       </availableFormats>
   15688       <generalDesc>
   15689         <nationalNumberPattern>
   15690           (?:
   15691             1(?:
   15692               \d{2}
   15693             )?|
   15694             [2789]\d{2}
   15695           )\d{6}
   15696         </nationalNumberPattern>
   15697         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   15698       </generalDesc>
   15699       <fixedLine>
   15700         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
   15701              been found so this is being retained for now. It is possible however that these may be
   15702              old-format mobile numbers. -->
   15703         <nationalNumberPattern>
   15704           (?:
   15705             1[2-9]|
   15706             21\d{2}
   15707           )\d{5}
   15708         </nationalNumberPattern>
   15709         <exampleNumber>1234567</exampleNumber>
   15710       </fixedLine>
   15711       <mobile>
   15712         <nationalNumberPattern>
   15713           (?:
   15714             111|
   15715             77\d|
   15716             88\d|
   15717             99\d
   15718           )\d{6}
   15719         </nationalNumberPattern>
   15720         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   15721         <exampleNumber>991234567</exampleNumber>
   15722       </mobile>
   15723     </territory>
   15724 
   15725     <!-- Mexico -->
   15726     <!-- http://www.itu.int/oth/T020200008A/en -->
   15727     <!-- http://en.wikipedia.org/wiki/%2B52 -->
   15728     <!-- http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico -->
   15729     <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
   15730     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
   15731                nationalPrefix="01"
   15732                nationalPrefixForParsing="0[12]|04[45](\d{10})"
   15733                nationalPrefixTransformRule="1$1"
   15734                nationalPrefixFormattingRule="$NP $FG"
   15735                nationalPrefixOptionalWhenFormatting="true"
   15736                leadingZeroPossible="true" mobileNumberPortableRegion="true">
   15737       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
   15738            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
   15739            numbers, regardless of whether they are written in international format (leading 1) or
   15740            national format (leading 044/045), will be parsed into the same form. -->
   15741       <availableFormats>
   15742         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
   15743           <leadingDigits>
   15744             33|
   15745             55|
   15746             81
   15747           </leadingDigits>
   15748           <format>$1 $2 $3</format>
   15749         </numberFormat>
   15750         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   15751           <leadingDigits>
   15752             [2467]|
   15753             3[12457-9]|
   15754             5[89]|
   15755             8[02-9]|
   15756             9[0-35-9]
   15757           </leadingDigits>
   15758           <format>$1 $2 $3</format>
   15759         </numberFormat>
   15760         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
   15761           <leadingDigits>
   15762             1(?:
   15763               33|
   15764               55|
   15765               81
   15766             )
   15767           </leadingDigits>
   15768           <format>044 $2 $3 $4</format>
   15769           <intlFormat>$1 $2 $3 $4</intlFormat>
   15770         </numberFormat>
   15771         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
   15772           <leadingDigits>
   15773             1(?:
   15774               [2467]|
   15775               3[12457-9]|
   15776               5[89]|
   15777               8[2-9]|
   15778               9[1-35-9]
   15779             )
   15780           </leadingDigits>
   15781           <format>044 $2 $3 $4</format>
   15782           <intlFormat>$1 $2 $3 $4</intlFormat>
   15783         </numberFormat>
   15784       </availableFormats>
   15785       <generalDesc>
   15786         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
   15787         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   15788       </generalDesc>
   15789       <fixedLine>
   15790         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
   15791         <nationalNumberPattern>
   15792           (?:
   15793             33|
   15794             55|
   15795             81
   15796           )\d{8}|
   15797           (?:
   15798             2(?:
   15799               2[2-9]|
   15800               3[1-35-8]|
   15801               4[13-9]|
   15802               7[1-689]|
   15803               8[1-578]|
   15804               9[467]
   15805             )|
   15806             3(?:
   15807               1[1-79]|
   15808               [2458][1-9]|
   15809               7[1-8]|
   15810               9[1-5]
   15811             )|
   15812             4(?:
   15813               1[1-57-9]|
   15814               [24-6][1-9]|
   15815               [37][1-8]|
   15816               8[1-35-9]|
   15817               9[2-689]
   15818             )|
   15819             5(?:
   15820               88|
   15821               9[1-79]
   15822             )|
   15823             6(?:
   15824               1[2-68]|
   15825               [234][1-9]|
   15826               5[1-3689]|
   15827               6[12457-9]|
   15828               7[1-7]|
   15829               8[67]|
   15830               9[4-8]
   15831             )|
   15832             7(?:
   15833               [13467][1-9]|
   15834               2[1-8]|
   15835               5[13-9]|
   15836               8[1-69]|
   15837               9[17]
   15838             )|
   15839             8(?:
   15840               2[13-689]|
   15841               3[1-6]|
   15842               4[124-6]|
   15843               6[1246-9]|
   15844               7[1-378]|
   15845               9[12479]
   15846             )|
   15847             9(?:
   15848               1[346-9]|
   15849               2[1-4]|
   15850               3[2-46-8]|
   15851               5[1348]|
   15852               [69][1-9]|
   15853               7[12]|
   15854               8[1-8]
   15855             )
   15856           )\d{7}
   15857         </nationalNumberPattern>
   15858         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   15859         <exampleNumber>2221234567</exampleNumber>
   15860       </fixedLine>
   15861       <mobile>
   15862         <nationalNumberPattern>
   15863           1(?:
   15864             (?:
   15865               33|
   15866               55|
   15867               81
   15868             )\d{8}|
   15869             (?:
   15870               2(?:
   15871                 2[2-9]|
   15872                 3[1-35-8]|
   15873                 4[13-9]|
   15874                 7[1-689]|
   15875                 8[1-578]|
   15876                 9[467]
   15877               )|
   15878               3(?:
   15879                 1[1-79]|
   15880                 [2458][1-9]|
   15881                 7[1-8]|
   15882                 9[1-5]
   15883               )|
   15884               4(?:
   15885                 1[1-57-9]|
   15886                 [24-6][1-9]|
   15887                 [37][1-8]|
   15888                 8[1-35-9]|
   15889                 9[2-689]
   15890               )|
   15891               5(?:
   15892                 88|
   15893                 9[1-79]
   15894               )|
   15895               6(?:
   15896                 1[2-68]|
   15897                 [2-4][1-9]|
   15898                 5[1-3689]|
   15899                 6[12457-9]|
   15900                 7[1-7]|
   15901                 8[67]|
   15902                 9[4-8]
   15903               )|
   15904               7(?:
   15905                 [13467][1-9]|
   15906                 2[1-8]|
   15907                 5[13-9]|
   15908                 8[1-69]|
   15909                 9[17]
   15910               )|
   15911               8(?:
   15912                 2[13-689]|
   15913                 3[1-6]|
   15914                 4[124-6]|
   15915                 6[1246-9]|
   15916                 7[1-378]|
   15917                 9[12479]
   15918               )|
   15919               9(?:
   15920                 1[346-9]|
   15921                 2[1-4]|
   15922                 3[2-46-8]|
   15923                 5[1348]|
   15924                 [69][1-9]|
   15925                 7[12]|
   15926                 8[1-8]
   15927               )
   15928             )\d{7}
   15929           )
   15930         </nationalNumberPattern>
   15931         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   15932         <exampleNumber>12221234567</exampleNumber>
   15933       </mobile>
   15934       <tollFree>
   15935         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   15936         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15937         <exampleNumber>8001234567</exampleNumber>
   15938       </tollFree>
   15939       <premiumRate>
   15940         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   15941         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   15942         <exampleNumber>9001234567</exampleNumber>
   15943       </premiumRate>
   15944     </territory>
   15945 
   15946     <!-- Malaysia -->
   15947     <!-- http://en.wikipedia.org/wiki/%2B60 -->
   15948     <!-- http://www.skmm.gov.my -->
   15949     <territory id="MY" countryCode="60" internationalPrefix="00"
   15950                nationalPrefix="0" mobileNumberPortableRegion="true">
   15951       <availableFormats>
   15952         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   15953           pattern="([4-79])(\d{3})(\d{4})">
   15954           <leadingDigits>[4-79]</leadingDigits>
   15955           <format>$1-$2 $3</format>
   15956         </numberFormat>
   15957         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   15958           pattern="(3)(\d{4})(\d{4})">
   15959           <leadingDigits>3</leadingDigits>
   15960           <format>$1-$2 $3</format>
   15961         </numberFormat>
   15962         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   15963           pattern="([18]\d)(\d{3})(\d{3,4})">
   15964           <leadingDigits>
   15965             1[02-46-9][1-9]|
   15966             8
   15967           </leadingDigits>
   15968           <format>$1-$2 $3</format>
   15969         </numberFormat>
   15970         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
   15971           <leadingDigits>1[36-8]0</leadingDigits>
   15972           <format>$1-$2-$3-$4</format>
   15973         </numberFormat>
   15974         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   15975           pattern="(11)(\d{4})(\d{4})">
   15976           <leadingDigits>11</leadingDigits>
   15977           <format>$1-$2 $3</format>
   15978         </numberFormat>
   15979         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   15980           pattern="(15[49])(\d{3})(\d{4})">
   15981           <leadingDigits>15</leadingDigits>
   15982           <format>$1-$2 $3</format>
   15983         </numberFormat>
   15984       </availableFormats>
   15985       <generalDesc>
   15986         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
   15987         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   15988       </generalDesc>
   15989       <fixedLine>
   15990         <nationalNumberPattern>
   15991           (?:
   15992             3[2-9]\d|
   15993             [4-9][2-9]
   15994           )\d{6}
   15995         </nationalNumberPattern>
   15996         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   15997         <exampleNumber>323456789</exampleNumber>
   15998       </fixedLine>
   15999       <mobile>
   16000         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
   16001              is possible to send SMSs (and receive them) from numbers in this block, so we are
   16002              listing them as mobile. -->
   16003         <nationalNumberPattern>
   16004           1(?:
   16005             1[1-3]\d{2}|
   16006             [02-4679][2-9]\d|
   16007             59\d{2}|
   16008             8(?:
   16009               1[23]|
   16010               [2-9]\d
   16011             )
   16012           )\d{5}
   16013         </nationalNumberPattern>
   16014         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   16015         <exampleNumber>123456789</exampleNumber>
   16016       </mobile>
   16017       <tollFree>
   16018         <nationalNumberPattern>1[38]00\d{6}</nationalNumberPattern>
   16019         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16020         <exampleNumber>1300123456</exampleNumber>
   16021       </tollFree>
   16022       <premiumRate>
   16023         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
   16024         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16025         <exampleNumber>1600123456</exampleNumber>
   16026       </premiumRate>
   16027       <personalNumber>
   16028         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
   16029         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16030         <exampleNumber>1700123456</exampleNumber>
   16031       </personalNumber>
   16032       <voip>
   16033         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
   16034         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16035         <exampleNumber>1541234567</exampleNumber>
   16036       </voip>
   16037     </territory>
   16038 
   16039     <!-- Mozambique -->
   16040     <!-- http://www.itu.int/oth/T0202000091/en -->
   16041     <territory id="MZ" countryCode="258" internationalPrefix="00">
   16042       <availableFormats>
   16043         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
   16044           <leadingDigits>
   16045             2|
   16046             8[246]
   16047           </leadingDigits>
   16048           <format>$1 $2 $3</format>
   16049         </numberFormat>
   16050         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
   16051           <leadingDigits>80</leadingDigits>
   16052           <format>$1 $2 $3</format>
   16053         </numberFormat>
   16054       </availableFormats>
   16055       <generalDesc>
   16056         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
   16057         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   16058       </generalDesc>
   16059       <fixedLine>
   16060         <nationalNumberPattern>
   16061           2(?:
   16062             [1346]\d|
   16063             5[0-2]|
   16064             [78][12]|
   16065             93
   16066           )\d{5}
   16067         </nationalNumberPattern>
   16068         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16069         <exampleNumber>21123456</exampleNumber>
   16070       </fixedLine>
   16071       <mobile>
   16072         <nationalNumberPattern>8[246]\d{7}</nationalNumberPattern>
   16073         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   16074         <exampleNumber>821234567</exampleNumber>
   16075       </mobile>
   16076       <tollFree>
   16077         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
   16078              examples. -->
   16079         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   16080         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   16081         <exampleNumber>800123456</exampleNumber>
   16082       </tollFree>
   16083       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
   16084            a 9 are premium rate, but no online examples can be found of any of these so they are
   16085            omitted for the time-being. -->
   16086     </territory>
   16087 
   16088     <!-- Namibia -->
   16089     <!-- http://www.itu.int/oth/T0202000093/en -->
   16090     <territory id="NA" countryCode="264" internationalPrefix="00"
   16091                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   16092       <availableFormats>
   16093         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
   16094           <leadingDigits>8[1235]</leadingDigits>
   16095           <format>$1 $2 $3</format>
   16096         </numberFormat>
   16097         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
   16098           <leadingDigits>6</leadingDigits>
   16099           <format>$1 $2 $3</format>
   16100         </numberFormat>
   16101         <numberFormat pattern="(88)(\d{3})(\d{3})">
   16102           <leadingDigits>88</leadingDigits>
   16103           <format>$1 $2 $3</format>
   16104         </numberFormat>
   16105         <numberFormat pattern="(870)(\d{3})(\d{3})">
   16106           <leadingDigits>870</leadingDigits>
   16107           <format>$1 $2 $3</format>
   16108         </numberFormat>
   16109       </availableFormats>
   16110       <generalDesc>
   16111         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
   16112         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   16113       </generalDesc>
   16114       <fixedLine>
   16115         <!-- Includes VSAT service. -->
   16116         <nationalNumberPattern>
   16117           6(?:
   16118             1(?:
   16119               17|
   16120               2(?:
   16121                 [0189]\d|
   16122                 [2-6]|
   16123                 7\d?
   16124               )|
   16125               3(?:
   16126                 2\d|
   16127                 3[378]
   16128               )|
   16129               4[01]|
   16130               69|
   16131               7[014]
   16132             )|
   16133             2(?:
   16134               17|
   16135               25|
   16136               5(?:
   16137                 [0-36-8]|
   16138                 4\d?
   16139               )|
   16140               69|
   16141               70
   16142             )|
   16143             3(?:
   16144               17|
   16145               2(?:
   16146                 [0237]\d?|
   16147                 [14-689]
   16148               )|
   16149               34|
   16150               6[29]|
   16151               7[01]|
   16152               81
   16153             )|
   16154             4(?:
   16155               17|
   16156               2(?:
   16157                 [012]|
   16158                 7?
   16159               )|
   16160               4(?:
   16161                 [06]|
   16162                 1\d
   16163               )|
   16164               5(?:
   16165                 [01357]|
   16166                 [25]\d?
   16167               )|
   16168               69|
   16169               7[01]
   16170             )|
   16171             5(?:
   16172               17|
   16173               2(?:
   16174                 [0459]|
   16175                 [23678]\d?
   16176               )|
   16177               69|
   16178               7[01]
   16179             )|
   16180             6(?:
   16181               17|
   16182               2(?:
   16183                 5|
   16184                 6\d?
   16185               )|
   16186               38|
   16187               42|
   16188               69|
   16189               7[01]
   16190             )|
   16191             7(?:
   16192               17|
   16193               2(?:
   16194                 [569]|
   16195                 [234]\d?
   16196               )|
   16197               3(?:
   16198                 0\d?|
   16199                 [13]
   16200               )|
   16201               69|
   16202               7[01]
   16203             )
   16204           )\d{4}
   16205         </nationalNumberPattern>
   16206         <exampleNumber>61221234</exampleNumber>
   16207       </fixedLine>
   16208       <mobile>
   16209         <!-- Includes the Switch CDMA Service. -->
   16210         <nationalNumberPattern>
   16211           (?:
   16212             60|
   16213             8[125]
   16214           )\d{7}
   16215         </nationalNumberPattern>
   16216         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   16217         <exampleNumber>811234567</exampleNumber>
   16218       </mobile>
   16219       <premiumRate>
   16220         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
   16221         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   16222         <exampleNumber>870123456</exampleNumber>
   16223       </premiumRate>
   16224       <voip>
   16225         <!-- Including virtual telephone and VOIP services. -->
   16226         <nationalNumberPattern>
   16227           8(
   16228             3\d{2}|
   16229             86
   16230           )\d{5}
   16231         </nationalNumberPattern>
   16232         <exampleNumber>88612345</exampleNumber>
   16233       </voip>
   16234     </territory>
   16235 
   16236     <!-- New Caledonia (Territoire franais d'outre-mer) -->
   16237     <!-- http://www.itu.int/oth/T0202000098/en -->
   16238     <!-- http://www.opt.nc -->
   16239     <territory id="NC" countryCode="687" internationalPrefix="00">
   16240       <availableFormats>
   16241         <!-- From www.1012.nc, the local yellow pages. -->
   16242         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   16243           <!-- We exclude short-codes here so they are formatted as a block -->
   16244           <leadingDigits>
   16245             [2-46-9]|
   16246             5[0-4]
   16247           </leadingDigits>
   16248           <format>$1.$2.$3</format>
   16249         </numberFormat>
   16250       </availableFormats>
   16251       <generalDesc>
   16252         <nationalNumberPattern>[2-57-9]\d{5}</nationalNumberPattern>
   16253         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   16254       </generalDesc>
   16255       <fixedLine>
   16256         <!-- Including the 88 prefix for public payphones. -->
   16257         <nationalNumberPattern>
   16258           (?:
   16259             2[03-9]|
   16260             3[0-5]|
   16261             4[1-7]|
   16262             88
   16263           )\d{4}
   16264         </nationalNumberPattern>
   16265         <exampleNumber>201234</exampleNumber>
   16266       </fixedLine>
   16267       <mobile>
   16268         <nationalNumberPattern>
   16269           (?:
   16270             5[0-4]|
   16271             [79]\d|
   16272             8[0-79]
   16273           )\d{4}
   16274         </nationalNumberPattern>
   16275         <exampleNumber>751234</exampleNumber>
   16276       </mobile>
   16277       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
   16278       <!-- Note that OPT lists 3631 as a free short number for caller ID services, but the ITU
   16279            document says that all 36 numbers are 6 digits. See ShortNumberMetadata.xml for more. -->
   16280       <premiumRate>
   16281         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
   16282         <exampleNumber>366711</exampleNumber>
   16283       </premiumRate>
   16284     </territory>
   16285 
   16286     <!-- Niger -->
   16287     <!-- http://www.itu.int/oth/T020200009B/en -->
   16288     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
   16289       <availableFormats>
   16290         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   16291           <leadingDigits>
   16292             [289]|
   16293             09
   16294           </leadingDigits>
   16295           <format>$1 $2 $3 $4</format>
   16296         </numberFormat>
   16297         <numberFormat pattern="(08)(\d{3})(\d{3})">
   16298           <leadingDigits>08</leadingDigits>
   16299           <format>$1 $2 $3</format>
   16300         </numberFormat>
   16301       </availableFormats>
   16302       <generalDesc>
   16303         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
   16304         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16305       </generalDesc>
   16306       <fixedLine>
   16307         <!-- Adding 20 61 from online numbers. -->
   16308         <nationalNumberPattern>
   16309           2(?:
   16310             0(?:
   16311               20|
   16312               3[1-7]|
   16313               4[134]|
   16314               5[14]|
   16315               6[14578]|
   16316               7[1-578]
   16317             )|
   16318             1(?:
   16319               4[145]|
   16320               5[14]|
   16321               6[14-68]|
   16322               7[169]|
   16323               88
   16324             )
   16325           )\d{4}
   16326         </nationalNumberPattern>
   16327         <exampleNumber>20201234</exampleNumber>
   16328       </fixedLine>
   16329       <mobile>
   16330         <!-- Added 90, 91, 92, 97, 98 & 99 from online data. Airtel have confirmed that they use the
   16331              89 and 97 prefixes, and Orange use 92. -->
   16332         <nationalNumberPattern>
   16333           (?:
   16334             89|
   16335             9[0-46-9]
   16336           )\d{6}
   16337         </nationalNumberPattern>
   16338         <exampleNumber>93123456</exampleNumber>
   16339       </mobile>
   16340       <tollFree>
   16341         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
   16342         <exampleNumber>08123456</exampleNumber>
   16343       </tollFree>
   16344       <premiumRate>
   16345         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
   16346         <exampleNumber>09123456</exampleNumber>
   16347       </premiumRate>
   16348     </territory>
   16349 
   16350     <!-- Norfolk Island -->
   16351     <!-- http://www.itu.int/oth/T020200009D/en -->
   16352     <!-- Including numbers for Australian Antarctic stations. -->
   16353     <territory id="NF" countryCode="672" internationalPrefix="00">
   16354       <availableFormats>
   16355         <numberFormat pattern="(\d{2})(\d{4})">
   16356            <leadingDigits>1</leadingDigits>
   16357           <format>$1 $2</format>
   16358         </numberFormat>
   16359         <numberFormat pattern="(\d)(\d{5})">
   16360           <leadingDigits>3</leadingDigits>
   16361           <format>$1 $2</format>
   16362         </numberFormat>
   16363       </availableFormats>
   16364       <generalDesc>
   16365         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
   16366         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
   16367       </generalDesc>
   16368       <fixedLine>
   16369         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
   16370              connect after we tried calling them. -->
   16371         <nationalNumberPattern>
   16372           (?:
   16373             1(?:
   16374               06|
   16375               17|
   16376               28|
   16377               39
   16378             )|
   16379             3[012]\d
   16380           )\d{3}
   16381         </nationalNumberPattern>
   16382         <exampleNumber>106609</exampleNumber>
   16383       </fixedLine>
   16384       <mobile>
   16385         <nationalNumberPattern>38\d{4}</nationalNumberPattern>
   16386         <exampleNumber>381234</exampleNumber>
   16387       </mobile>
   16388     </territory>
   16389 
   16390     <!-- Nigeria -->
   16391     <!-- http://www.itu.int/oth/T020200009C/en -->
   16392     <territory id="NG" countryCode="234" internationalPrefix="009"
   16393                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   16394                mobileNumberPortableRegion="true">
   16395       <availableFormats>
   16396         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
   16397           <leadingDigits>[129]</leadingDigits>
   16398           <format>$1 $2 $3</format>
   16399         </numberFormat>
   16400         <numberFormat pattern="([3-8]\d)(\d{3})(\d{2,3})">
   16401           <leadingDigits>
   16402             [3-6]|
   16403             7(?:
   16404               [1-79]|
   16405               0[1-9]
   16406             )|
   16407             8[2-9]
   16408           </leadingDigits>
   16409           <format>$1 $2 $3</format>
   16410         </numberFormat>
   16411         <numberFormat pattern="([78]\d{2})(\d{3})(\d{3,4})">
   16412           <leadingDigits>
   16413             70|
   16414             8[01]
   16415           </leadingDigits>
   16416           <format>$1 $2 $3</format>
   16417         </numberFormat>
   16418         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
   16419           <leadingDigits>[78]00</leadingDigits>
   16420           <format>$1 $2 $3</format>
   16421         </numberFormat>
   16422         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
   16423           <leadingDigits>[78]00</leadingDigits>
   16424           <format>$1 $2 $3</format>
   16425         </numberFormat>
   16426         <numberFormat pattern="(78)(\d{2})(\d{3})">
   16427           <leadingDigits>78</leadingDigits>
   16428           <format>$1 $2 $3</format>
   16429         </numberFormat>
   16430       </availableFormats>
   16431       <generalDesc>
   16432         <nationalNumberPattern>
   16433           [1-69]\d{5,8}|
   16434           [78]\d{5,13}
   16435         </nationalNumberPattern>
   16436         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
   16437       </generalDesc>
   16438       <fixedLine>
   16439         <nationalNumberPattern>
   16440           [12]\d{6,7}|
   16441           9\d{7}|
   16442           (?:
   16443             3\d|
   16444             4[023568]|
   16445             5[02368]|
   16446             6[02-469]|
   16447             7[4-69]|
   16448             8[2-9]
   16449           )\d{6}|
   16450           (?:
   16451             4[47]|
   16452             5[14579]|
   16453             6[1578]|
   16454             7[0-357]
   16455           )\d{5,6}|
   16456           (?:
   16457             78|
   16458             41
   16459           )\d{5}
   16460         </nationalNumberPattern>
   16461         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   16462         <exampleNumber>12345678</exampleNumber>
   16463       </fixedLine>
   16464       <mobile>
   16465         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
   16466              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
   16467              Starcomms have apparently, according to the company, been used for mobile numbers too,
   16468              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
   16469              -->
   16470         <nationalNumberPattern>
   16471           (?:
   16472             1(?:
   16473               7[34]\d|
   16474               8(?:
   16475                 04|
   16476                 [124579]\d|
   16477                 8[0-3]
   16478               )|
   16479               95\d
   16480             )|
   16481             287[0-7]|
   16482             3(?:
   16483               18[1-8]|
   16484               88[0-7]|
   16485               9(?:
   16486                 8[5-9]|
   16487                 6[1-5]
   16488               )
   16489             )|
   16490             4(?:
   16491               28[0-2]|
   16492               6(?:
   16493                 7[1-9]|
   16494                 8[02-47]
   16495               )|
   16496               88[0-2]
   16497             )|
   16498             5(?:
   16499               2(?:
   16500                 7[7-9]|
   16501                 8\d
   16502               )|
   16503               38[1-79]|
   16504               48[0-7]|
   16505               68[4-7]
   16506             )|
   16507             6(?:
   16508               2(?:
   16509                 7[7-9]|
   16510                 8\d
   16511               )|
   16512               4(?:
   16513                 3[7-9]|
   16514                 [68][129]|
   16515                 7[04-69]|
   16516                 9[1-8]
   16517               )|
   16518               58[0-2]|
   16519               98[7-9]
   16520             )|
   16521             7(?:
   16522               38[0-7]|
   16523               69[1-8]|
   16524               78[2-4]
   16525             )|
   16526             8(?:
   16527               28[3-9]|
   16528               38[0-2]|
   16529               4(?:
   16530                 2[12]|
   16531                 3[147-9]|
   16532                 5[346]|
   16533                 7[4-9]|
   16534                 8[014-689]|
   16535                 90
   16536               )|
   16537               58[1-8]|
   16538               78[2-9]|
   16539               88[5-7]
   16540             )|
   16541             98[07]\d
   16542           )\d{4}|
   16543           (?:
   16544             70(?:
   16545               [13-9]\d|
   16546               2[1-9]
   16547             )|
   16548             8(?:
   16549               0[2-9]|
   16550               1\d
   16551             )\d
   16552           )\d{6}
   16553         </nationalNumberPattern>
   16554         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   16555         <exampleNumber>8021234567</exampleNumber>
   16556       </mobile>
   16557       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
   16558       <tollFree>
   16559         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
   16560         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
   16561         <exampleNumber>80017591759</exampleNumber>
   16562       </tollFree>
   16563       <uan>
   16564         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
   16565         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
   16566         <exampleNumber>7001234567</exampleNumber>
   16567       </uan>
   16568     </territory>
   16569 
   16570     <!-- Nicaragua -->
   16571     <!-- http://www.itu.int/oth/T020200009A/en -->
   16572     <territory id="NI" countryCode="505" internationalPrefix="00">
   16573       <availableFormats>
   16574         <numberFormat pattern="(\d{4})(\d{4})">
   16575           <format>$1 $2</format>
   16576         </numberFormat>
   16577       </availableFormats>
   16578       <generalDesc>
   16579         <nationalNumberPattern>[1258]\d{7}</nationalNumberPattern>
   16580         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16581       </generalDesc>
   16582       <fixedLine>
   16583         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
   16584         <exampleNumber>21234567</exampleNumber>
   16585       </fixedLine>
   16586       <mobile>
   16587         <!-- Online users have reported seeing 5500 used by Claro; until we can find actual numbers
   16588              or any documentation about it, we restrict this pattern to this prefix exactly. -->
   16589         <nationalNumberPattern>
   16590           5500\d{4}|
   16591           8\d{7}
   16592         </nationalNumberPattern>
   16593         <exampleNumber>81234567</exampleNumber>
   16594       </mobile>
   16595       <tollFree>
   16596         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
   16597         <exampleNumber>18001234</exampleNumber>
   16598       </tollFree>
   16599     </territory>
   16600 
   16601     <!-- Netherlands -->
   16602     <!-- http://en.wikipedia.org/wiki/%2B31 -->
   16603     <!-- http://www.opta.nl/en/numbers/search-for-numbers -->
   16604     <territory id="NL" countryCode="31" internationalPrefix="00"
   16605                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   16606                mobileNumberPortableRegion="true">
   16607       <availableFormats>
   16608         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
   16609           <leadingDigits>
   16610             1[035]|
   16611             2[0346]|
   16612             3[03568]|
   16613             4[0356]|
   16614             5[0358]|
   16615             7|
   16616             8[4578]
   16617           </leadingDigits>
   16618           <format>$1 $2 $3</format>
   16619         </numberFormat>
   16620         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
   16621           <leadingDigits>
   16622             1[16-8]|
   16623             2[259]|
   16624             3[124]|
   16625             4[17-9]|
   16626             5[124679]
   16627           </leadingDigits>
   16628           <format>$1 $2 $3</format>
   16629         </numberFormat>
   16630         <numberFormat pattern="(6)(\d{8})">
   16631           <leadingDigits>6[0-57-9]</leadingDigits>
   16632           <format>$1 $2</format>
   16633         </numberFormat>
   16634         <numberFormat pattern="(66)(\d{7})">
   16635           <leadingDigits>66</leadingDigits>
   16636           <format>$1 $2</format>
   16637         </numberFormat>
   16638         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
   16639           <leadingDigits>14</leadingDigits>
   16640           <format>$1 $2</format>
   16641         </numberFormat>
   16642         <numberFormat pattern="([89]0\d)(\d{4,7})">
   16643           <leadingDigits>
   16644             80|
   16645             9
   16646           </leadingDigits>
   16647           <format>$1 $2</format>
   16648         </numberFormat>
   16649       </availableFormats>
   16650       <generalDesc>
   16651         <nationalNumberPattern>
   16652           1\d{4,8}|
   16653           [2-7]\d{8}|
   16654           [89]\d{6,9}
   16655         </nationalNumberPattern>
   16656         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   16657       </generalDesc>
   16658       <noInternationalDialling>
   16659         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
   16660         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
   16661       </noInternationalDialling>
   16662       <fixedLine>
   16663         <nationalNumberPattern>
   16664           (?:
   16665             1[0135-8]|
   16666             2[02-69]|
   16667             3[0-68]|
   16668             4[0135-9]|
   16669             [57]\d|
   16670             8[478]
   16671           )\d{7}
   16672         </nationalNumberPattern>
   16673         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   16674         <exampleNumber>101234567</exampleNumber>
   16675       </fixedLine>
   16676       <mobile>
   16677         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
   16678         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   16679         <exampleNumber>612345678</exampleNumber>
   16680       </mobile>
   16681       <pager>
   16682         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
   16683         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   16684         <exampleNumber>662345678</exampleNumber>
   16685       </pager>
   16686       <tollFree>
   16687         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
   16688         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   16689         <exampleNumber>8001234</exampleNumber>
   16690       </tollFree>
   16691       <premiumRate>
   16692         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
   16693         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   16694         <exampleNumber>9061234</exampleNumber>
   16695       </premiumRate>
   16696       <voip>
   16697         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
   16698         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   16699         <exampleNumber>851234567</exampleNumber>
   16700       </voip>
   16701       <uan>
   16702         <!-- These numbers are used for local government. They are formed by the appending the local
   16703              dialling code (including the national prefix 0) after the leading digits "14". -->
   16704         <nationalNumberPattern>
   16705           140(?:
   16706             1(?:
   16707               [035]|
   16708               [16-8]\d
   16709             )|
   16710             2(?:
   16711               [0346]|
   16712               [259]\d
   16713             )|
   16714             3(?:
   16715               [03568]|
   16716               [124]\d
   16717             )|
   16718             4(?:
   16719               [0356]|
   16720               [17-9]\d
   16721             )|
   16722             5(?:
   16723               [0358]|
   16724               [124679]\d
   16725             )|
   16726             7\d|
   16727             8[458]
   16728           )
   16729         </nationalNumberPattern>
   16730         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
   16731         <exampleNumber>14020</exampleNumber>
   16732       </uan>
   16733     </territory>
   16734 
   16735     <!-- Norway -->
   16736     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
   16737     <!-- http://www.npt.no/npt/numsys/E.164.pdf -->
   16738     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
   16739                mainCountryForCode="true" mobileNumberPortableRegion="true">
   16740       <availableFormats>
   16741         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
   16742           <leadingDigits>[489]</leadingDigits>
   16743           <format>$1 $2 $3</format>
   16744         </numberFormat>
   16745         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
   16746           <leadingDigits>[235-7]</leadingDigits>
   16747           <format>$1 $2 $3 $4</format>
   16748         </numberFormat>
   16749       </availableFormats>
   16750       <generalDesc>
   16751         <nationalNumberPattern>
   16752           0\d{4}|
   16753           [2-9]\d{7}
   16754         </nationalNumberPattern>
   16755         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
   16756       </generalDesc>
   16757       <fixedLine>
   16758         <!-- Excludes Svalbard fixed-line numbers. -->
   16759         <nationalNumberPattern>
   16760           (?:
   16761             2[1-4]|
   16762             3[1-3578]|
   16763             5[1-35-7]|
   16764             6[1-4679]|
   16765             7[0-8]
   16766           )\d{6}
   16767         </nationalNumberPattern>
   16768         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16769         <exampleNumber>21234567</exampleNumber>
   16770       </fixedLine>
   16771       <mobile>
   16772         <nationalNumberPattern>
   16773           (?:
   16774             4[015-8]|
   16775             5[89]|
   16776             9\d
   16777           )\d{6}
   16778         </nationalNumberPattern>
   16779         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16780         <exampleNumber>41234567</exampleNumber>
   16781       </mobile>
   16782       <tollFree>
   16783         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
   16784         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16785         <exampleNumber>80012345</exampleNumber>
   16786       </tollFree>
   16787       <premiumRate>
   16788         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
   16789         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16790         <exampleNumber>82012345</exampleNumber>
   16791       </premiumRate>
   16792       <sharedCost>
   16793         <nationalNumberPattern>
   16794           810(?:
   16795             0[0-6]|
   16796             [2-8]\d
   16797           )\d{3}
   16798         </nationalNumberPattern>
   16799         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16800         <exampleNumber>81021234</exampleNumber>
   16801       </sharedCost>
   16802       <personalNumber>
   16803         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
   16804         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16805         <exampleNumber>88012345</exampleNumber>
   16806       </personalNumber>
   16807       <voip>
   16808         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
   16809         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16810         <exampleNumber>85012345</exampleNumber>
   16811       </voip>
   16812       <uan>
   16813         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
   16814         <nationalNumberPattern>
   16815           0\d{4}|
   16816           81(?:
   16817             0(?:
   16818               0[7-9]|
   16819               1\d
   16820             )|
   16821             5\d{2}
   16822           )\d{3}
   16823         </nationalNumberPattern>
   16824         <exampleNumber>01234</exampleNumber>
   16825       </uan>
   16826       <voicemail>
   16827         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
   16828         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   16829         <exampleNumber>81212345</exampleNumber>
   16830       </voicemail>
   16831     </territory>
   16832 
   16833     <!-- Nepal -->
   16834     <!-- http://www.itu.int/oth/T0202000095/en -->
   16835     <!-- http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php -->
   16836     <territory id="NP" countryCode="977" internationalPrefix="00"
   16837                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   16838       <availableFormats>
   16839         <!-- Formatting patterns taken from pages like www.nepalgov.gov.np -->
   16840         <numberFormat pattern="(1)(\d{7})">
   16841           <leadingDigits>1[2-6]</leadingDigits>
   16842           <format>$1-$2</format>
   16843         </numberFormat>
   16844         <numberFormat pattern="(\d{2})(\d{6})">
   16845           <leadingDigits>
   16846             1[01]|
   16847             [2-8]|
   16848             9(?:
   16849               [1-69]|
   16850               7[15-9]
   16851             )
   16852           </leadingDigits>
   16853           <format>$1-$2</format>
   16854         </numberFormat>
   16855         <numberFormat pattern="(9\d{2})(\d{7})">
   16856           <leadingDigits>
   16857             9(?:
   16858               7[45]|
   16859               8
   16860             )
   16861             </leadingDigits>
   16862           <format>$1-$2</format>
   16863         </numberFormat>
   16864       </availableFormats>
   16865       <generalDesc>
   16866         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
   16867              numbers that have the country code prefixed. -->
   16868         <nationalNumberPattern>
   16869           [1-8]\d{7}|
   16870           9(?:
   16871             [1-69]\d{6}|
   16872             7[2-6]\d{5,7}|
   16873             8\d{8}
   16874           )
   16875         </nationalNumberPattern>
   16876         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   16877       </generalDesc>
   16878       <fixedLine>
   16879         <!-- Added (1) 2XXXXXX and (88) from numbers found online. -->
   16880         <nationalNumberPattern>
   16881           (?:
   16882             1[0124-6]|
   16883             2[13-79]|
   16884             3[135-8]|
   16885             4[146-9]|
   16886             5[135-7]|
   16887             6[13-9]|
   16888             7[15-9]|
   16889             8[1-46-9]|
   16890             9[1-79]
   16891           )\d{6}
   16892         </nationalNumberPattern>
   16893         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   16894         <exampleNumber>14567890</exampleNumber>
   16895       </fixedLine>
   16896       <!-- There is no definitive source of information for mobile numbers in Nepal. The information
   16897            here is collected by searching the Internet. -->
   16898       <mobile>
   16899         <nationalNumberPattern>
   16900           9(?:
   16901             7[45]|
   16902             8[01456]
   16903           )\d{7}
   16904         </nationalNumberPattern>
   16905         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   16906         <exampleNumber>9841234567</exampleNumber>
   16907       </mobile>
   16908       <!-- No information on other types of phone numbers for Nepal has been found. -->
   16909     </territory>
   16910 
   16911     <!-- Nauru -->
   16912     <!-- http://www.itu.int/oth/T0202000094/en -->
   16913     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru -->
   16914     <territory id="NR" countryCode="674" internationalPrefix="00">
   16915       <availableFormats>
   16916         <numberFormat pattern="(\d{3})(\d{4})">
   16917           <format>$1 $2</format>
   16918         </numberFormat>
   16919       </availableFormats>
   16920       <generalDesc>
   16921         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
   16922         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   16923       </generalDesc>
   16924       <fixedLine>
   16925         <nationalNumberPattern>
   16926           (?:
   16927             444|
   16928             888
   16929           )\d{4}
   16930         </nationalNumberPattern>
   16931         <exampleNumber>4441234</exampleNumber>
   16932       </fixedLine>
   16933       <mobile>
   16934         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
   16935         <exampleNumber>5551234</exampleNumber>
   16936       </mobile>
   16937     </territory>
   16938 
   16939     <!-- Niue -->
   16940     <!-- http://www.itu.int/oth/T02020000EC/en -->
   16941     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue -->
   16942     <territory id="NU" countryCode="683" internationalPrefix="00">
   16943       <!-- Numbers are always formatted as a block. -->
   16944       <generalDesc>
   16945         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
   16946         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   16947       </generalDesc>
   16948       <fixedLine>
   16949         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
   16950         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
   16951         <exampleNumber>4002</exampleNumber>
   16952       </fixedLine>
   16953       <mobile>
   16954         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
   16955         <exampleNumber>1234</exampleNumber>
   16956       </mobile>
   16957     </territory>
   16958 
   16959     <!-- New Zealand -->
   16960     <!-- http://www.itu.int/oth/T0202000099/en -->
   16961     <!-- Includes Ross Dependency, Antarctica -->
   16962     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
   16963          numbers and 050 "Nation-Wide Service". -->
   16964     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
   16965                preferredInternationalPrefix="00" nationalPrefix="0"
   16966                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
   16967       <availableFormats>
   16968         <!-- Pattern for fixed-line formats. -->
   16969         <numberFormat pattern="([34679])(\d{3})(\d{4})">
   16970           <leadingDigits>
   16971             [3467]|
   16972             9[1-9]
   16973           </leadingDigits>
   16974           <format>$1-$2 $3</format>
   16975         </numberFormat>
   16976         <!-- Area code for NZ's Scott Base, in Antarctica. -->
   16977         <numberFormat pattern="(24099)(\d{3})">
   16978           <leadingDigits>240</leadingDigits>
   16979           <leadingDigits>2409</leadingDigits>
   16980           <leadingDigits>24099</leadingDigits>
   16981           <format>$1 $2</format>
   16982         </numberFormat>
   16983         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
   16984              length. -->
   16985         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
   16986         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   16987           <leadingDigits>21</leadingDigits>
   16988           <format>$1 $2 $3</format>
   16989         </numberFormat>
   16990         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
   16991         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   16992           <leadingDigits>
   16993             2(?:
   16994               1[1-9]|
   16995               [69]|
   16996               7[0-35-9]
   16997             )|
   16998             86
   16999           </leadingDigits>
   17000           <format>$1 $2 $3</format>
   17001         </numberFormat>
   17002         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
   17003              than writing the first group as 022X based on Google web searches, and is used by
   17004              2Degrees themselves. See formatting on www.2degreesmobile.co.nz for an example of the
   17005              latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
   17006         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
   17007           <leadingDigits>2[028]</leadingDigits>
   17008           <format>$1 $2 $3</format>
   17009         </numberFormat>
   17010         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   17011           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900. -->
   17012           <leadingDigits>
   17013             2(?:
   17014               10|
   17015               74
   17016             )|
   17017             5|
   17018             [89]0
   17019           </leadingDigits>
   17020           <format>$1 $2 $3</format>
   17021         </numberFormat>
   17022       </availableFormats>
   17023       <generalDesc>
   17024         <nationalNumberPattern>
   17025           6[235-9]\d{6}|
   17026           [2-57-9]\d{7,10}
   17027         </nationalNumberPattern>
   17028         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
   17029       </generalDesc>
   17030       <fixedLine>
   17031         <!-- 07 788 was assigned to Voxbox according to
   17032              http://www.nad.org.nz/07GeographicalCodes.php -->
   17033         <nationalNumberPattern>
   17034           (?:
   17035             3[2-79]|
   17036             [49][2-689]|
   17037             6[235-9]|
   17038             7[2-5789]
   17039           )\d{6}|
   17040           24099\d{3}
   17041         </nationalNumberPattern>
   17042         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   17043         <exampleNumber>32345678</exampleNumber>
   17044       </fixedLine>
   17045       <mobile>
   17046         <!-- Includes mobile radio service numbers (e.g. TeamTalk). -->
   17047         <nationalNumberPattern>
   17048           2(?:
   17049             [028]\d{7,8}|
   17050             1(?:
   17051               0\d{5,7}|
   17052               [12]\d{5,6}|
   17053               [3-9]\d{5}
   17054             )|
   17055             [79]\d{7}
   17056           )
   17057         </nationalNumberPattern>
   17058         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   17059         <exampleNumber>211234567</exampleNumber>
   17060       </mobile>
   17061       <pager>
   17062         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
   17063         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   17064         <exampleNumber>26123456</exampleNumber>
   17065       </pager>
   17066       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
   17067            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
   17068            not covered, as telecom companies don't seem to support them yet. -->
   17069       <tollFree>
   17070         <nationalNumberPattern>
   17071           508\d{6,7}|
   17072           80\d{6,8}
   17073         </nationalNumberPattern>
   17074         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   17075         <exampleNumber>800123456</exampleNumber>
   17076       </tollFree>
   17077       <premiumRate>
   17078         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
   17079         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
   17080         <exampleNumber>900123456</exampleNumber>
   17081       </premiumRate>
   17082     </territory>
   17083 
   17084     <!-- Oman -->
   17085     <!-- http://www.itu.int/oth/T020200009F/en -->
   17086     <territory id="OM" countryCode="968" internationalPrefix="00" mobileNumberPortableRegion="true">
   17087       <availableFormats>
   17088         <numberFormat pattern="(2\d)(\d{6})">
   17089           <leadingDigits>2</leadingDigits>
   17090           <format>$1 $2</format>
   17091         </numberFormat>
   17092         <numberFormat pattern="(9\d{3})(\d{4})">
   17093           <leadingDigits>9</leadingDigits>
   17094           <format>$1 $2</format>
   17095         </numberFormat>
   17096         <numberFormat pattern="([58]00)(\d{4,6})">
   17097           <leadingDigits>[58]</leadingDigits>
   17098           <format>$1 $2</format>
   17099         </numberFormat>
   17100       </availableFormats>
   17101       <generalDesc>
   17102         <nationalNumberPattern>
   17103           (?:
   17104             2[2-6]|
   17105             5|
   17106             9[1-9]
   17107           )\d{6}|
   17108           800\d{5,6}
   17109         </nationalNumberPattern>
   17110         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   17111       </generalDesc>
   17112       <fixedLine>
   17113         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
   17114         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17115         <exampleNumber>23123456</exampleNumber>
   17116       </fixedLine>
   17117       <mobile>
   17118         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
   17119         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17120         <exampleNumber>92123456</exampleNumber>
   17121       </mobile>
   17122       <tollFree>
   17123         <!-- Link to document about toll-free numbers on www.tra.gov.om, which suggests they should
   17124              be 8007 followed by 4 digits. However, the only examples I can find, including the
   17125              customer help line for the main telephony company there (omantel), is 8007 followed by
   17126              5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to offer
   17127              international toll-free dialing numbers - +968 500 1300 for international help desk for
   17128              omantel, for example. -->
   17129         <nationalNumberPattern>
   17130           8007\d{4,5}|
   17131           500\d{4}
   17132         </nationalNumberPattern>
   17133         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   17134         <exampleNumber>80071234</exampleNumber>
   17135       </tollFree>
   17136       <!-- No premiumRate information can be found. -->
   17137     </territory>
   17138 
   17139     <!-- Panama -->
   17140     <!-- http://www.asep.gob.pa/telecom/pnn/default.asp - last read Jan 17th 2013. -->
   17141     <!-- http://en.wikipedia.org/wiki/%2B507 - although it omits the fact that mobile phones are 8
   17142          digits long. -->
   17143     <territory id="PA" countryCode="507" internationalPrefix="00" mobileNumberPortableRegion="true">
   17144       <availableFormats>
   17145         <numberFormat pattern="(\d{3})(\d{4})">
   17146           <leadingDigits>[1-57-9]</leadingDigits>
   17147           <format>$1-$2</format>
   17148         </numberFormat>
   17149         <numberFormat pattern="(\d{4})(\d{4})">
   17150           <leadingDigits>6</leadingDigits>
   17151           <format>$1-$2</format>
   17152         </numberFormat>
   17153       </availableFormats>
   17154       <generalDesc>
   17155         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
   17156         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   17157       </generalDesc>
   17158       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
   17159            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
   17160       <fixedLine>
   17161         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
   17162              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
   17163         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
   17164              proved to be diallable. -->
   17165         <nationalNumberPattern>
   17166           (?:
   17167             1(?:
   17168               0[02-579]|
   17169               19|
   17170               2[37]|
   17171               3[03]|
   17172               4[479]|
   17173               57|
   17174               65|
   17175               7[016-8]|
   17176               8[58]|
   17177               9[134]
   17178             )|
   17179             2(?:
   17180               [0235679]\d|
   17181               1[0-7]|
   17182               4[04-9]|
   17183               8[028]
   17184             )|
   17185             3(?:
   17186               0[0-7]|
   17187               1[14-7]|
   17188               2[0-3]|
   17189               3[03]|
   17190               4[0457]|
   17191               5[56]|
   17192               6[068]|
   17193               7[078]|
   17194               80|
   17195               9\d
   17196             )|
   17197             4(?:
   17198               3[013-59]|
   17199               4\d|
   17200               7[0-689]
   17201             )|
   17202             5(?:
   17203               [01]\d|
   17204               2[0-7]|
   17205               [56]0|
   17206               79
   17207             )|
   17208             7(?:
   17209               0[09]|
   17210               2[0-267]|
   17211               [349]0|
   17212               5[6-9]|
   17213               7[0-24-7]|
   17214               8[89]
   17215             )|
   17216             8(?:
   17217               [34]\d|
   17218               5[0-4]|
   17219               8[02]
   17220             )|
   17221             9(?:
   17222               0[78]|
   17223               1[0178]|
   17224               2[0378]|
   17225               3[379]|
   17226               40|
   17227               5[0489]|
   17228               6[06-9]|
   17229               7[046-9]|
   17230               8[36-8]|
   17231               9[1-9]
   17232             )
   17233           )\d{4}
   17234         </nationalNumberPattern>
   17235         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   17236         <exampleNumber>2001234</exampleNumber>
   17237       </fixedLine>
   17238       <mobile>
   17239         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
   17240              service "210", "Servicio de Busca Personas". -->
   17241         <nationalNumberPattern>
   17242           (?:
   17243             1[16]1|
   17244             21[89]|
   17245             8(?:
   17246               1[01]|
   17247               7[23]
   17248             )
   17249           )\d{4}|
   17250           6(?:
   17251             [04-9]\d|
   17252             1[0-5]|
   17253             2[0-7]|
   17254             3[5-9]
   17255           )\d{5}
   17256         </nationalNumberPattern>
   17257         <exampleNumber>60012345</exampleNumber>
   17258       </mobile>
   17259       <tollFree>
   17260         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
   17261         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   17262         <exampleNumber>8001234</exampleNumber>
   17263       </tollFree>
   17264       <premiumRate>
   17265         <!-- Value-added services are represented as "400" in the plan. -->
   17266         <nationalNumberPattern>
   17267           (?:
   17268             779|
   17269             8(?:
   17270               2[235]|
   17271               55|
   17272               60|
   17273               7[578]|
   17274               86|
   17275               95
   17276             )|
   17277             9(?:
   17278               0[0-2]|
   17279               81
   17280             )
   17281           )\d{4}
   17282         </nationalNumberPattern>
   17283         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   17284         <exampleNumber>8601234</exampleNumber>
   17285       </premiumRate>
   17286     </territory>
   17287 
   17288     <!-- Peru -->
   17289     <!-- http://www.itu.int/oth/T02020000A6/en -->
   17290     <!-- http://en.wikipedia.org/wiki/+51 -->
   17291     <!-- http://www.assistbook.com/South%20America/Peru/widecodes -->
   17292     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
   17293                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
   17294                preferredExtnPrefix=" Anexo " mobileNumberPortableRegion="true">
   17295       <availableFormats>
   17296         <numberFormat pattern="(1)(\d{7})">
   17297           <leadingDigits>1</leadingDigits>
   17298           <format>$1 $2</format>
   17299         </numberFormat>
   17300         <numberFormat pattern="([4-8]\d)(\d{6})">
   17301           <leadingDigits>
   17302             [4-7]|
   17303             8[2-4]
   17304           </leadingDigits>
   17305           <format>$1 $2</format>
   17306         </numberFormat>
   17307         <numberFormat pattern="(\d{3})(\d{5})">
   17308           <leadingDigits>80</leadingDigits>
   17309           <format>$1 $2</format>
   17310         </numberFormat>
   17311         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
   17312         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
   17313                       nationalPrefixFormattingRule="$FG">
   17314           <leadingDigits>9</leadingDigits>
   17315           <format>$1 $2 $3</format>
   17316         </numberFormat>
   17317       </availableFormats>
   17318       <generalDesc>
   17319         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
   17320         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   17321       </generalDesc>
   17322       <fixedLine>
   17323         <nationalNumberPattern>
   17324           (?:
   17325             1\d|
   17326             4[1-4]|
   17327             5[1-46]|
   17328             6[1-7]|
   17329             7[2-46]|
   17330             8[2-4]
   17331           )\d{6}
   17332         </nationalNumberPattern>
   17333         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   17334         <exampleNumber>11234567</exampleNumber>
   17335       </fixedLine>
   17336       <mobile>
   17337         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
   17338         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   17339         <exampleNumber>912345678</exampleNumber>
   17340       </mobile>
   17341       <tollFree>
   17342         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   17343         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17344         <exampleNumber>80012345</exampleNumber>
   17345       </tollFree>
   17346       <premiumRate>
   17347         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
   17348         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17349         <exampleNumber>80512345</exampleNumber>
   17350       </premiumRate>
   17351       <sharedCost>
   17352         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
   17353         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17354         <exampleNumber>80112345</exampleNumber>
   17355       </sharedCost>
   17356       <personalNumber>
   17357         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
   17358         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17359         <exampleNumber>80212345</exampleNumber>
   17360       </personalNumber>
   17361     </territory>
   17362 
   17363     <!-- French Polynesia (Tahiti) (Territoire franais d'outre-mer) -->
   17364     <!-- http://www.itu.int/oth/T020200004D/en -->
   17365     <territory id="PF" countryCode="689" internationalPrefix="00">
   17366       <availableFormats>
   17367         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   17368           <leadingDigits>89</leadingDigits>
   17369           <format>$1 $2 $3 $4</format>
   17370         </numberFormat>
   17371         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   17372           <format>$1 $2 $3</format>
   17373         </numberFormat>
   17374       </availableFormats>
   17375       <generalDesc>
   17376         <nationalNumberPattern>
   17377           [2-79]\d{5}|
   17378           8\d{5,7}
   17379         </nationalNumberPattern>
   17380         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
   17381       </generalDesc>
   17382       <noInternationalDialling>
   17383         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
   17384         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   17385         <exampleNumber>441234</exampleNumber>
   17386       </noInternationalDialling>
   17387       <fixedLine>
   17388         <!-- Includes "voice-server" prefixes and pay-phone. The 41 range has been made more
   17389              specific to exclude Mobile MSRN. -->
   17390         <nationalNumberPattern>
   17391           (?:
   17392             4(?:
   17393               [02-9]\d|
   17394               1[02-9]
   17395             )|
   17396             [5689]\d{2}
   17397           )\d{3}
   17398         </nationalNumberPattern>
   17399         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   17400         <exampleNumber>401234</exampleNumber>
   17401       </fixedLine>
   17402       <mobile>
   17403         <nationalNumberPattern>
   17404           (?:
   17405             [27]\d{2}|
   17406             3[0-79]\d|
   17407             411|
   17408             89\d{3}
   17409           )\d{3}
   17410         </nationalNumberPattern>
   17411         <exampleNumber>212345</exampleNumber>
   17412       </mobile>
   17413     </territory>
   17414 
   17415     <!-- Papua New Guinea -->
   17416     <!-- http://www.itu.int/oth/T02020000A4/en -->
   17417     <!-- http://en.wikipedia.org/wiki/%2B675 -->
   17418     <territory id="PG" countryCode="675" internationalPrefix="00">
   17419       <availableFormats>
   17420         <numberFormat pattern="(\d{3})(\d{4})">
   17421           <leadingDigits>[1-689]</leadingDigits>
   17422           <format>$1 $2</format>
   17423         </numberFormat>
   17424         <numberFormat pattern="(7\d{3})(\d{4})">
   17425           <leadingDigits>7</leadingDigits>
   17426           <format>$1 $2</format>
   17427         </numberFormat>
   17428       </availableFormats>
   17429       <generalDesc>
   17430         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
   17431         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   17432       </generalDesc>
   17433       <fixedLine>
   17434         <nationalNumberPattern>
   17435           (?:
   17436             3[0-2]\d|
   17437             4[25]\d|
   17438             5[34]\d|
   17439             64[1-9]|
   17440             77(?:
   17441               [0-24]\d|
   17442               30
   17443             )|
   17444             85[02-46-9]|
   17445             9[78]\d
   17446           )\d{4}
   17447         </nationalNumberPattern>
   17448         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   17449         <exampleNumber>3123456</exampleNumber>
   17450       </fixedLine>
   17451       <mobile>
   17452         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
   17453              Wikipedia. -->
   17454         <nationalNumberPattern>
   17455           (?:
   17456             68|
   17457             7(?:
   17458               [0-369]\d|
   17459               75
   17460             )
   17461           )\d{5}
   17462         </nationalNumberPattern>
   17463         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   17464         <exampleNumber>6812345</exampleNumber>
   17465       </mobile>
   17466       <tollFree>
   17467         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
   17468         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   17469         <exampleNumber>1801234</exampleNumber>
   17470       </tollFree>
   17471       <voip>
   17472         <!-- VSAT prefixes are here. -->
   17473         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
   17474         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   17475         <exampleNumber>2751234</exampleNumber>
   17476       </voip>
   17477     </territory>
   17478 
   17479     <!-- Philippines -->
   17480     <!-- http://en.wikipedia.org/wiki/%2B63 -->
   17481     <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
   17482       <availableFormats>
   17483         <!--Area code separated from number. Area codes found here:
   17484         http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
   17485         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   17486           pattern="(2)(\d{3})(\d{4})">
   17487           <leadingDigits>2</leadingDigits>
   17488           <format>$1 $2 $3</format>
   17489         </numberFormat>
   17490         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   17491           pattern="(2)(\d{5})">
   17492           <leadingDigits>2</leadingDigits>
   17493           <format>$1 $2</format>
   17494         </numberFormat>
   17495         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   17496           pattern="(\d{4})(\d{4,6})">
   17497           <leadingDigits>
   17498             3(?:
   17499               23|
   17500               39|
   17501               46
   17502             )|
   17503             4(?:
   17504               2[3-6]|
   17505               [35]9|
   17506               4[26]|
   17507               76
   17508             )|
   17509             5(?:
   17510               22|
   17511               44
   17512             )|
   17513             642|
   17514             8(?:
   17515               62|
   17516               8[245]
   17517             )
   17518           </leadingDigits>
   17519           <leadingDigits>
   17520             3(?:
   17521               230|
   17522               397|
   17523               461
   17524             )|
   17525             4(?:
   17526               2(?:
   17527                 35|
   17528                 [46]4|
   17529                 51
   17530               )|
   17531               396|
   17532               4(?:
   17533                 22|
   17534                 63
   17535               )|
   17536               59[347]|
   17537               76[15]
   17538             )|
   17539             5(?:
   17540               221|
   17541               446
   17542             )|
   17543             642[23]|
   17544             8(?:
   17545               622|
   17546               8(?:
   17547                 [24]2|
   17548                 5[13]
   17549               )
   17550             )
   17551           </leadingDigits>
   17552           <format>$1 $2</format>
   17553         </numberFormat>
   17554         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   17555           pattern="(\d{5})(\d{4})">
   17556           <leadingDigits>
   17557             346|
   17558             4(?:
   17559               27|
   17560               9[35]
   17561             )|
   17562             883
   17563           </leadingDigits>
   17564           <leadingDigits>
   17565             3469|
   17566             4(?:
   17567               279|
   17568               9(?:
   17569                 30|
   17570                 56
   17571               )
   17572             )|
   17573             8834
   17574           </leadingDigits>
   17575           <format>$1 $2</format>
   17576         </numberFormat>
   17577         <!-- This rule is a fallback for the more specific area codes. -->
   17578         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   17579           pattern="([3-8]\d)(\d{3})(\d{4})">
   17580           <leadingDigits>[3-8]</leadingDigits>
   17581           <format>$1 $2 $3</format>
   17582         </numberFormat>
   17583         <numberFormat nationalPrefixFormattingRule="$NP$FG"
   17584           pattern="(\d{3})(\d{3})(\d{4})">
   17585           <leadingDigits>
   17586             81|
   17587             9
   17588           </leadingDigits>
   17589           <format>$1 $2 $3</format>
   17590         </numberFormat>
   17591         <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
   17592         <numberFormat pattern="(1800)(\d{3})(\d{4})">
   17593           <leadingDigits>1</leadingDigits>
   17594           <format>$1 $2 $3</format>
   17595         </numberFormat>
   17596         <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
   17597           <leadingDigits>1</leadingDigits>
   17598           <format>$1 $2 $3 $4</format>
   17599         </numberFormat>
   17600       </availableFormats>
   17601       <generalDesc>
   17602         <nationalNumberPattern>
   17603           2\d{5,7}|
   17604           [3-9]\d{7,9}|
   17605           1800\d{7,9}
   17606         </nationalNumberPattern>
   17607         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
   17608       </generalDesc>
   17609       <fixedLine>
   17610         <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
   17611              that have only 5 digits after the area code; plus it seems the 8822 area code is
   17612              followed by 6 digits, and 8842 by only 4. -->
   17613         <nationalNumberPattern>
   17614           2\d{5}(?:\d{2})?|
   17615           (?:
   17616             3[2-68]|
   17617             4[2-9]|
   17618             5[2-6]|
   17619             6[2-58]|
   17620             7[24578]|
   17621             8[2-8]
   17622           )\d{7}|
   17623           88(?:
   17624             22\d{6}|
   17625             42\d{4}
   17626           )
   17627         </nationalNumberPattern>
   17628         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   17629         <exampleNumber>21234567</exampleNumber>
   17630       </fixedLine>
   17631       <mobile>
   17632         <nationalNumberPattern>
   17633           (?:
   17634             81[37]|
   17635             9(?:
   17636               0[5-9]|
   17637               1[025-9]|
   17638               2[0-35-9]|
   17639               3[02-9]|
   17640               4[236-9]|
   17641               7[3479]|
   17642               89|
   17643               9[46-9]
   17644             )
   17645           )\d{7}
   17646         </nationalNumberPattern>
   17647         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   17648         <exampleNumber>9051234567</exampleNumber>
   17649       </mobile>
   17650       <!-- Information on toll-free numbers collected from searching the internet -->
   17651       <tollFree>
   17652         <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
   17653         <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
   17654         <exampleNumber>180012345678</exampleNumber>
   17655       </tollFree>
   17656       <!-- No information can be found about other types of numbers (such as premium rate) in the
   17657            Philippines. -->
   17658     </territory>
   17659 
   17660     <!-- Pakistan -->
   17661     <!-- http://www.itu.int/oth/T02020000A1/en -->
   17662     <!-- http://en.wikipedia.org/wiki/%2B92 -->
   17663     <territory id="PK" countryCode="92" internationalPrefix="00"
   17664                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
   17665                mobileNumberPortableRegion="true">
   17666       <availableFormats>
   17667         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
   17668              formatted nicely by the AYTF. -->
   17669         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
   17670           <leadingDigits>
   17671             (?:
   17672               2[125]|
   17673               4[0-246-9]|
   17674               5[1-35-7]|
   17675               6[1-8]|
   17676               7[14]|
   17677               8[16]|
   17678               91
   17679             )1
   17680           </leadingDigits>
   17681           <leadingDigits>
   17682             (?:
   17683               2[125]|
   17684               4[0-246-9]|
   17685               5[1-35-7]|
   17686               6[1-8]|
   17687               7[14]|
   17688               8[16]|
   17689               91
   17690             )11
   17691           </leadingDigits>
   17692           <leadingDigits>
   17693             (?:
   17694               2[125]|
   17695               4[0-246-9]|
   17696               5[1-35-7]|
   17697               6[1-8]|
   17698               7[14]|
   17699               8[16]|
   17700               91
   17701             )111
   17702           </leadingDigits>
   17703           <format>$1 $2 $3 $4</format>
   17704         </numberFormat>
   17705         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
   17706           <leadingDigits>
   17707             2[349]|
   17708             45|
   17709             54|
   17710             60|
   17711             72|
   17712             8[2-5]|
   17713             9[2-9]
   17714           </leadingDigits>
   17715           <leadingDigits>
   17716             (?:
   17717               2[349]|
   17718               45|
   17719               54|
   17720               60|
   17721               72|
   17722               8[2-5]|
   17723               9[2-9]
   17724             )\d1
   17725           </leadingDigits>
   17726           <leadingDigits>
   17727             (?:
   17728               2[349]|
   17729               45|
   17730               54|
   17731               60|
   17732               72|
   17733               8[2-5]|
   17734               9[2-9]
   17735             )\d11
   17736           </leadingDigits>
   17737           <leadingDigits>
   17738             (?:
   17739               2[349]|
   17740               45|
   17741               54|
   17742               60|
   17743               72|
   17744               8[2-5]|
   17745               9[2-9]
   17746             )\d111
   17747           </leadingDigits>
   17748           <format>$1 $2 $3 $4</format>
   17749         </numberFormat>
   17750         <numberFormat pattern="(\d{2})(\d{7,8})">
   17751           <leadingDigits>
   17752             (?:
   17753               2[125]|
   17754               4[0-246-9]|
   17755               5[1-35-7]|
   17756               6[1-8]|
   17757               7[14]|
   17758               8[16]|
   17759               91
   17760             )[2-9]
   17761           </leadingDigits>
   17762           <format>$1 $2</format>
   17763         </numberFormat>
   17764         <numberFormat pattern="(\d{3})(\d{6,7})">
   17765           <leadingDigits>
   17766             2[349]|
   17767             45|
   17768             54|
   17769             60|
   17770             72|
   17771             8[2-5]|
   17772             9[2-9]
   17773           </leadingDigits>
   17774           <leadingDigits>
   17775             (?:
   17776               2[349]|
   17777               45|
   17778               54|
   17779               60|
   17780               72|
   17781               8[2-5]|
   17782               9[2-9]
   17783             )\d[2-9]
   17784           </leadingDigits>
   17785           <format>$1 $2</format>
   17786         </numberFormat>
   17787         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
   17788           <leadingDigits>3</leadingDigits>
   17789           <format>$1 $2</format>
   17790         </numberFormat>
   17791         <numberFormat pattern="([15]\d{3})(\d{5,6})">
   17792           <leadingDigits>
   17793             58[12]|
   17794             1
   17795           </leadingDigits>
   17796           <format>$1 $2</format>
   17797         </numberFormat>
   17798         <!-- This is from online examples. -->
   17799         <numberFormat pattern="(586\d{2})(\d{5})">
   17800           <leadingDigits>586</leadingDigits>
   17801           <format>$1 $2</format>
   17802         </numberFormat>
   17803         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
   17804           <leadingDigits>[89]00</leadingDigits>
   17805           <format>$1 $2 $3</format>
   17806         </numberFormat>
   17807       </availableFormats>
   17808       <generalDesc>
   17809         <!-- This is horribly complex because the country code is 92, and several area codes start
   17810              with 92, and the number length is widely variable. -->
   17811         <nationalNumberPattern>
   17812           1\d{8}|
   17813           [2-8]\d{5,11}|
   17814           9(?:
   17815             [013-9]\d{4,9}|
   17816             2\d(?:
   17817               111\d{6}|
   17818               \d{3,7}
   17819             )
   17820           )
   17821         </nationalNumberPattern>
   17822         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   17823       </generalDesc>
   17824       <fixedLine>
   17825         <!-- The subscriber number length is not well defined for some area codes. From online
   17826              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
   17827              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
   17828              of Karachi and Lahore (both 8). -->
   17829         <nationalNumberPattern>
   17830           (?:
   17831             21|
   17832             42
   17833           )[2-9]\d{7}|
   17834           (?:
   17835             2[25]|
   17836             4[0146-9]|
   17837             5[1-35-7]|
   17838             6[1-8]|
   17839             7[14]|
   17840             8[16]|
   17841             91
   17842           )[2-9]\d{6}|
   17843           (?:
   17844             2(?:
   17845               3[2358]|
   17846               4[2-4]|
   17847               9[2-8]
   17848             )|
   17849             45[3479]|
   17850             54[2-467]|
   17851             60[468]|
   17852             72[236]|
   17853             8(?:
   17854               2[2-689]|
   17855               3[23578]|
   17856               4[3478]|
   17857               5[2356]
   17858             )|
   17859             9(?:
   17860               1|
   17861               2[2-8]|
   17862               3[27-9]|
   17863               4[2-6]|
   17864               6[3569]|
   17865               9[25-8]
   17866             )
   17867           )[2-9]\d{5,6}|
   17868           58[126]\d{7}
   17869         </nationalNumberPattern>
   17870         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   17871         <exampleNumber>2123456789</exampleNumber>
   17872       </fixedLine>
   17873       <mobile>
   17874         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
   17875              can be found online with these prefixes. -->
   17876         <nationalNumberPattern>
   17877           3(?:
   17878             0\d|
   17879             1[1-5]|
   17880             2[0-5]|
   17881             3[1-6]|
   17882             4[1-7]|
   17883             55|
   17884             64
   17885           )\d{7}
   17886         </nationalNumberPattern>
   17887         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   17888         <exampleNumber>3012345678</exampleNumber>
   17889       </mobile>
   17890       <tollFree>
   17891         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
   17892         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17893         <exampleNumber>80012345</exampleNumber>
   17894       </tollFree>
   17895       <premiumRate>
   17896         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
   17897         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   17898         <exampleNumber>90012345</exampleNumber>
   17899       </premiumRate>
   17900       <!-- These are referred to as UPT numbers in the plan. -->
   17901       <personalNumber>
   17902         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
   17903         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   17904         <!-- The example number here is the test number from the plan. -->
   17905         <exampleNumber>122044444</exampleNumber>
   17906       </personalNumber>
   17907       <uan>
   17908         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
   17909              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
   17910              what type of number they are. We exclude Azad Jammu, Kashmir and Northern Areas here
   17911              since no online example UANs can be found, and they have an "access code" at the start,
   17912              making it difficult to guess what a UAN in these areas would look like. -->
   17913         <nationalNumberPattern>
   17914           (?:
   17915             2(?:
   17916               [125]|
   17917               3[2358]|
   17918               4[2-4]|
   17919               9[2-8]
   17920             )|
   17921             4(?:
   17922               [0-246-9]|
   17923               5[3479]
   17924             )|
   17925             5(?:
   17926               [1-35-7]|
   17927               4[2-467]
   17928             )|
   17929             6(?:
   17930               [1-8]|
   17931               0[468]
   17932             )|
   17933             7(?:
   17934               [14]|
   17935               2[236]
   17936             )|
   17937             8(?:
   17938               [16]|
   17939               2[2-689]|
   17940               3[23578]|
   17941               4[3478]|
   17942               5[2356]
   17943             )|
   17944             9(?:
   17945               1|
   17946               22|
   17947               3[27-9]|
   17948               4[2-6]|
   17949               6[3569]|
   17950               9[2-7]
   17951             )
   17952           )111\d{6}
   17953         </nationalNumberPattern>
   17954         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
   17955         <exampleNumber>21111825888</exampleNumber>
   17956       </uan>
   17957     </territory>
   17958 
   17959     <!-- Poland -->
   17960     <!-- http://en.wikipedia.org/wiki/%2B48 -->
   17961     <!-- http://www.itu.int/oth/T02020000A8/en -->
   17962     <!--
   17963     http://www.uke.gov.pl/uke/index.jsp?place=Lead24&news_cat_id=277&news_id=3791&layout=9&page=text
   17964     (in Polish) -->
   17965     <territory id="PL" countryCode="48" internationalPrefix="00" mobileNumberPortableRegion="true">
   17966       <availableFormats>
   17967         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
   17968           <leadingDigits>
   17969             [124]|
   17970             3[2-4]|
   17971             5[24-689]|
   17972             6[1-3578]|
   17973             7[14-7]|
   17974             8[1-79]|
   17975             9[145]
   17976           </leadingDigits>
   17977           <format>$1 $2 $3 $4</format>
   17978         </numberFormat>
   17979         <numberFormat pattern="(\d{2})(\d{4,6})">
   17980           <!-- Pattern for shorter fixed-line numbers. -->
   17981           <leadingDigits>
   17982             [124]|
   17983             3[2-4]|
   17984             5[24-689]|
   17985             6[1-3578]|
   17986             7[14-7]|
   17987             8[1-7]
   17988           </leadingDigits>
   17989           <format>$1 $2</format>
   17990         </numberFormat>
   17991         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
   17992              Poles that this is more usual. -->
   17993         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   17994           <leadingDigits>
   17995             39|
   17996             5[013]|
   17997             6[0469]|
   17998             7[02389]|
   17999             8[08]
   18000           </leadingDigits>
   18001           <format>$1 $2 $3</format>
   18002         </numberFormat>
   18003         <!-- Additional patterns for shorter pager numbers. -->
   18004         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
   18005           <leadingDigits>64</leadingDigits>
   18006           <format>$1 $2 $3</format>
   18007         </numberFormat>
   18008         <numberFormat pattern="(\d{3})(\d{3})">
   18009           <leadingDigits>64</leadingDigits>
   18010           <format>$1 $2</format>
   18011         </numberFormat>
   18012       </availableFormats>
   18013       <generalDesc>
   18014         <nationalNumberPattern>
   18015           [1-58]\d{6,8}|
   18016           9\d{8}|
   18017           [67]\d{5,8}
   18018         </nationalNumberPattern>
   18019         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   18020       </generalDesc>
   18021       <fixedLine>
   18022         <!-- Grouped by prefix-length. -->
   18023         <nationalNumberPattern>
   18024           (?:
   18025             1[2-8]|
   18026             2[2-59]|
   18027             3[2-4]|
   18028             4[1-468]|
   18029             5[24-689]|
   18030             6[1-3578]|
   18031             7[14-6]|
   18032             8[1-7]
   18033           )\d{5,7}|
   18034           77\d{4,7}|
   18035           (?:
   18036             89|
   18037             9[145]
   18038           )\d{7}
   18039         </nationalNumberPattern>
   18040         <exampleNumber>123456789</exampleNumber>
   18041       </fixedLine>
   18042       <mobile>
   18043         <nationalNumberPattern>
   18044           (?:
   18045             5[013]|
   18046             6[069]|
   18047             7[2389]|
   18048             88
   18049           )\d{7}
   18050         </nationalNumberPattern>
   18051         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18052         <exampleNumber>512345678</exampleNumber>
   18053       </mobile>
   18054       <pager>
   18055         <nationalNumberPattern>642\d{3,6}</nationalNumberPattern>
   18056         <exampleNumber>642123456</exampleNumber>
   18057       </pager>
   18058       <tollFree>
   18059         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   18060         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18061         <exampleNumber>800123456</exampleNumber>
   18062       </tollFree>
   18063       <premiumRate>
   18064         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
   18065         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18066         <exampleNumber>701234567</exampleNumber>
   18067       </premiumRate>
   18068       <sharedCost>
   18069         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
   18070         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18071         <exampleNumber>801234567</exampleNumber>
   18072       </sharedCost>
   18073       <voip>
   18074         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
   18075         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18076         <exampleNumber>391234567</exampleNumber>
   18077       </voip>
   18078     </territory>
   18079 
   18080     <!-- Saint Pierre and Miquelon (Collectivit territoriale de la Rpublique franaise) -->
   18081     <!-- http://www.itu.int/oth/T02020000B2/en -->
   18082     <territory id="PM" countryCode="508" internationalPrefix="00"
   18083                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   18084       <availableFormats>
   18085         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
   18086           <format>$1 $2 $3</format>
   18087         </numberFormat>
   18088       </availableFormats>
   18089       <generalDesc>
   18090         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
   18091         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   18092       </generalDesc>
   18093       <fixedLine>
   18094         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
   18095         <exampleNumber>411234</exampleNumber>
   18096       </fixedLine>
   18097       <mobile>
   18098         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
   18099         <exampleNumber>551234</exampleNumber>
   18100       </mobile>
   18101     </territory>
   18102 
   18103     <!-- Pitcairn Island -->
   18104     <!-- id="PN" -->
   18105     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
   18106          satellite phones. -->
   18107 
   18108     <!-- Puerto Rico -->
   18109     <!-- http://www.itu.int/oth/T02020000AA/en -->
   18110     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
   18111                internationalPrefix="011">
   18112       <generalDesc>
   18113         <!-- NANPA country - uses US formatting rules -->
   18114         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
   18115         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   18116       </generalDesc>
   18117       <fixedLine>
   18118         <nationalNumberPattern>
   18119           (?:
   18120             787|
   18121             939
   18122           )[2-9]\d{6}
   18123         </nationalNumberPattern>
   18124         <exampleNumber>7872345678</exampleNumber>
   18125       </fixedLine>
   18126       <mobile>
   18127         <nationalNumberPattern>
   18128           (?:
   18129             787|
   18130             939
   18131           )[2-9]\d{6}
   18132         </nationalNumberPattern>
   18133         <exampleNumber>7872345678</exampleNumber>
   18134       </mobile>
   18135       <tollFree>
   18136         <nationalNumberPattern>
   18137           8(?:
   18138             00|
   18139             55|
   18140             66|
   18141             77|
   18142             88
   18143           )[2-9]\d{6}
   18144         </nationalNumberPattern>
   18145         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   18146         <exampleNumber>8002345678</exampleNumber>
   18147       </tollFree>
   18148       <premiumRate>
   18149         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   18150         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   18151         <exampleNumber>9002345678</exampleNumber>
   18152       </premiumRate>
   18153       <personalNumber>
   18154         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   18155         <nationalNumberPattern>
   18156           5(?:
   18157             00|
   18158             33|
   18159             44
   18160           )[2-9]\d{6}
   18161         </nationalNumberPattern>
   18162         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   18163         <exampleNumber>5002345678</exampleNumber>
   18164       </personalNumber>
   18165     </territory>
   18166 
   18167     <!-- Palestinian Authority -->
   18168     <!-- http://en.wikipedia.org/wiki/%2B970 -->
   18169     <!-- http://www.wtng.info/wtng-970-ps.html -->
   18170     <!-- http://www.paltel.ps -->
   18171     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
   18172          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
   18173          subset of the Israeli formats. -->
   18174     <territory id="PS" countryCode="970" internationalPrefix="00"
   18175                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   18176       <availableFormats>
   18177         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
   18178           <leadingDigits>[2489]</leadingDigits>
   18179           <format>$1 $2 $3</format>
   18180         </numberFormat>
   18181         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
   18182           <leadingDigits>5</leadingDigits>
   18183           <format>$1 $2 $3</format>
   18184         </numberFormat>
   18185         <numberFormat nationalPrefixFormattingRule="$FG"
   18186           pattern="(1[78]00)(\d{3})(\d{3})">
   18187           <leadingDigits>1[78]</leadingDigits>
   18188           <format>$1 $2 $3</format>
   18189         </numberFormat>
   18190         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
   18191       </availableFormats>
   18192       <generalDesc>
   18193         <nationalNumberPattern>
   18194           [24589]\d{7,8}|
   18195           1(?:
   18196             [78]\d{8}|
   18197             [49]\d{2,3}
   18198           )
   18199         </nationalNumberPattern>
   18200         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
   18201       </generalDesc>
   18202       <fixedLine>
   18203         <nationalNumberPattern>
   18204           (?:
   18205             22[234789]|
   18206             42[45]|
   18207             82[01458]|
   18208             92[369]
   18209           )\d{5}
   18210         </nationalNumberPattern>
   18211         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   18212         <exampleNumber>22234567</exampleNumber>
   18213       </fixedLine>
   18214       <mobile>
   18215         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
   18216         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18217         <exampleNumber>599123456</exampleNumber>
   18218       </mobile>
   18219       <tollFree>
   18220         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
   18221         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   18222         <exampleNumber>1800123456</exampleNumber>
   18223       </tollFree>
   18224       <premiumRate>
   18225         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
   18226         <nationalNumberPattern>
   18227           1(?:
   18228             4|
   18229             9\d
   18230            )\d{2}
   18231         </nationalNumberPattern>
   18232         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
   18233         <exampleNumber>19123</exampleNumber>
   18234       </premiumRate>
   18235       <sharedCost>
   18236         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
   18237         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   18238         <exampleNumber>1700123456</exampleNumber>
   18239       </sharedCost>
   18240     </territory>
   18241 
   18242     <!-- Portugal -->
   18243     <!-- http://www.anacom.pt/render.jsp?categoryId=279098 -->
   18244     <territory id="PT" countryCode="351" internationalPrefix="00" mobileNumberPortableRegion="true">
   18245       <availableFormats>
   18246         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
   18247              two digits in the first group; however, this doesn't seem to be majority usage based on
   18248              searches online. -->
   18249         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
   18250           <leadingDigits>2[12]</leadingDigits>
   18251           <format>$1 $2 $3</format>
   18252         </numberFormat>
   18253         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
   18254           <leadingDigits>
   18255             2[3-9]|
   18256             [346-9]
   18257           </leadingDigits>
   18258           <format>$1 $2 $3</format>
   18259         </numberFormat>
   18260       </availableFormats>
   18261       <generalDesc>
   18262         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
   18263         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18264       </generalDesc>
   18265       <fixedLine>
   18266         <nationalNumberPattern>
   18267           2(?:
   18268             [12]\d|
   18269             [35][1-689]|
   18270             4[1-59]|
   18271             6[1-35689]|
   18272             7[1-9]|
   18273             8[1-69]|
   18274             9[1256]
   18275           )\d{6}
   18276         </nationalNumberPattern>
   18277         <exampleNumber>212345678</exampleNumber>
   18278       </fixedLine>
   18279       <mobile>
   18280         <nationalNumberPattern>
   18281           9(?:
   18282             [136]\d{2}|
   18283             2[0-79]\d|
   18284             480
   18285           )\d{5}
   18286         </nationalNumberPattern>
   18287         <exampleNumber>912345678</exampleNumber>
   18288       </mobile>
   18289       <tollFree>
   18290         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
   18291         <exampleNumber>800123456</exampleNumber>
   18292       </tollFree>
   18293       <premiumRate>
   18294         <!-- Fixed maximum cost numbers: 761=0.60, 761=1, 762=2. -->
   18295         <nationalNumberPattern>
   18296           76(?:
   18297             0[1-57]|
   18298             1[2-47]|
   18299             2[237]
   18300           )\d{5}
   18301         </nationalNumberPattern>
   18302         <exampleNumber>760123456</exampleNumber>
   18303       </premiumRate>
   18304       <sharedCost>
   18305         <!-- 808 are priced as local calls, 809 are national calls. -->
   18306         <nationalNumberPattern>
   18307           80(?:
   18308             8\d|
   18309             9[1579]
   18310           )\d{5}
   18311         </nationalNumberPattern>
   18312         <exampleNumber>808123456</exampleNumber>
   18313       </sharedCost>
   18314       <personalNumber>
   18315         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
   18316         <exampleNumber>884123456</exampleNumber>
   18317       </personalNumber>
   18318       <voip>
   18319         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
   18320         <exampleNumber>301234567</exampleNumber>
   18321       </voip>
   18322       <uan>
   18323         <nationalNumberPattern>
   18324           70(?:
   18325             7\d|
   18326             8[17]
   18327           )\d{5}
   18328         </nationalNumberPattern>
   18329         <exampleNumber>707123456</exampleNumber>
   18330       </uan>
   18331     </territory>
   18332 
   18333     <!-- Palau -->
   18334     <!-- http://www.itu.int/oth/T02020000A2/en -->
   18335     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
   18336       <availableFormats>
   18337         <numberFormat pattern="(\d{3})(\d{4})">
   18338           <format>$1 $2</format>
   18339         </numberFormat>
   18340       </availableFormats>
   18341       <generalDesc>
   18342         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
   18343         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   18344       </generalDesc>
   18345       <fixedLine>
   18346         <nationalNumberPattern>
   18347           2552255|
   18348           (?:
   18349             277|
   18350             345|
   18351             488|
   18352             5(?:
   18353               35|
   18354               44|
   18355               87
   18356             )|
   18357             6(?:
   18358               22|
   18359               54|
   18360               79
   18361             )|
   18362             7(?:
   18363               33|
   18364               47
   18365             )|
   18366             8(?:
   18367               24|
   18368               55|
   18369               76
   18370             )
   18371           )\d{4}
   18372         </nationalNumberPattern>
   18373         <exampleNumber>2771234</exampleNumber>
   18374       </fixedLine>
   18375       <mobile>
   18376         <nationalNumberPattern>
   18377           (?:
   18378             6[234689]0|
   18379             77[45789]
   18380           )\d{4}
   18381         </nationalNumberPattern>
   18382         <exampleNumber>6201234</exampleNumber>
   18383       </mobile>
   18384     </territory>
   18385 
   18386     <!-- Paraguay -->
   18387     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay -->
   18388     <!-- http://www.itu.int/oth/T02020000A5/en -->
   18389     <!-- http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html -->
   18390     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0"
   18391                mobileNumberPortableRegion="true">
   18392       <availableFormats>
   18393         <!-- CONATEL plan. -->
   18394         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
   18395           <leadingDigits>
   18396             (?:
   18397               [26]1|
   18398               3[289]|
   18399               4[124678]|
   18400               7[123]|
   18401               8[1236]
   18402             )
   18403           </leadingDigits>
   18404           <format>$1 $2</format>
   18405         </numberFormat>
   18406         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
   18407           <leadingDigits>[2-9]0</leadingDigits>
   18408           <format>$1 $2</format>
   18409         </numberFormat>
   18410         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
   18411           <leadingDigits>9[1-9]</leadingDigits>
   18412           <format>$1 $2</format>
   18413         </numberFormat>
   18414         <!-- Format seen in examples found online. -->
   18415         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   18416           <leadingDigits>8700</leadingDigits>
   18417           <format>$1 $2 $3</format>
   18418         </numberFormat>
   18419         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
   18420              -->
   18421         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
   18422           <leadingDigits>[2-8][1-9]</leadingDigits>
   18423           <format>$1 $2</format>
   18424         </numberFormat>
   18425       </availableFormats>
   18426       <generalDesc>
   18427         <nationalNumberPattern>
   18428           5[0-5]\d{4,7}|
   18429           [2-46-9]\d{5,8}
   18430         </nationalNumberPattern>
   18431         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   18432       </generalDesc>
   18433       <fixedLine>
   18434         <nationalNumberPattern>
   18435           (?:
   18436             [26]1|
   18437             3[289]|
   18438             4[124678]|
   18439             7[123]|
   18440             8[1236]
   18441           )\d{5,7}|
   18442           (?:
   18443             2(?:
   18444               2[4568]|
   18445               7[15]|
   18446               9[1-5]
   18447             )|
   18448             3(?:
   18449               18|
   18450               3[167]|
   18451               4[2357]|
   18452               51
   18453             )|
   18454             4(?:
   18455               18|
   18456               2[45]|
   18457               3[12]|
   18458               5[13]|
   18459               64|
   18460               71|
   18461               9[1-47]
   18462             )|
   18463             5(?:
   18464               [1-4]\d|
   18465               5[0234]
   18466             )|
   18467             6(?:
   18468               3[1-3]|
   18469               44|
   18470               7[1-4678]
   18471             )|
   18472             7(?:
   18473               17|
   18474               4[0-4]|
   18475               6[1-578]|
   18476               75|
   18477               8[0-8]
   18478             )|
   18479             858
   18480           )\d{5,6}
   18481         </nationalNumberPattern>
   18482         <exampleNumber>212345678</exampleNumber>
   18483       </fixedLine>
   18484       <mobile>
   18485         <!-- 962 was added for Tigo. -->
   18486         <nationalNumberPattern>
   18487           9(?:
   18488             6[12]|
   18489             [78][1-6]|
   18490             9[1-5]
   18491           )\d{6}
   18492         </nationalNumberPattern>
   18493         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18494         <exampleNumber>961456789</exampleNumber>
   18495       </mobile>
   18496       <voip>
   18497         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
   18498         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18499         <exampleNumber>870012345</exampleNumber>
   18500       </voip>
   18501       <uan>
   18502         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
   18503         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   18504         <exampleNumber>201234567</exampleNumber>
   18505       </uan>
   18506     </territory>
   18507 
   18508     <!-- Qatar -->
   18509     <!-- http://www.itu.int/oth/T02020000AB/en -->
   18510     <!-- http://wtng.info/wtng-qq.html -->
   18511     <territory id="QA" countryCode="974" internationalPrefix="00" mobileNumberPortableRegion="true">
   18512       <availableFormats>
   18513         <numberFormat pattern="([28]\d{2})(\d{4})">
   18514           <leadingDigits>[28]</leadingDigits>
   18515           <format>$1 $2</format>
   18516         </numberFormat>
   18517         <numberFormat pattern="([3-7]\d{3})(\d{4})">
   18518           <leadingDigits>[3-7]</leadingDigits>
   18519           <format>$1 $2</format>
   18520         </numberFormat>
   18521       </availableFormats>
   18522       <generalDesc>
   18523         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
   18524         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   18525       </generalDesc>
   18526       <fixedLine>
   18527         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
   18528         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
   18529         <exampleNumber>44123456</exampleNumber>
   18530       </fixedLine>
   18531       <mobile>
   18532         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
   18533         <exampleNumber>33123456</exampleNumber>
   18534       </mobile>
   18535       <pager>
   18536         <nationalNumberPattern>
   18537           2(?:
   18538             [12]\d|
   18539             61
   18540           )\d{4}
   18541         </nationalNumberPattern>
   18542         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   18543         <exampleNumber>2123456</exampleNumber>
   18544       </pager>
   18545       <tollFree>
   18546         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
   18547         <exampleNumber>8001234</exampleNumber>
   18548       </tollFree>
   18549       <!-- No premiumRate information can be found. -->
   18550     </territory>
   18551 
   18552     <!-- Runion (French Departments and Territories in the Indian Ocean) -->
   18553     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
   18554          used by both of them. -->
   18555     <!-- http://www.itu.int/oth/T020200004B/en -->
   18556     <territory id="RE" countryCode="262" internationalPrefix="00"
   18557                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   18558                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
   18559       <availableFormats>
   18560         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
   18561           <format>$1 $2 $3 $4</format>
   18562         </numberFormat>
   18563       </availableFormats>
   18564       <generalDesc>
   18565         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
   18566         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18567       </generalDesc>
   18568       <fixedLine>
   18569         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
   18570         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
   18571         <exampleNumber>262161234</exampleNumber>
   18572       </fixedLine>
   18573       <mobile>
   18574         <nationalNumberPattern>
   18575           6(?:
   18576             9[23]|
   18577             47
   18578           )\d{6}
   18579         </nationalNumberPattern>
   18580         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18581         <exampleNumber>692123456</exampleNumber>
   18582       </mobile>
   18583       <!-- 08* Numbers in Runion are the same as those valid in France. -->
   18584       <tollFree>
   18585         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   18586         <exampleNumber>801234567</exampleNumber>
   18587       </tollFree>
   18588       <premiumRate>
   18589         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
   18590         <exampleNumber>891123456</exampleNumber>
   18591       </premiumRate>
   18592       <sharedCost>
   18593         <nationalNumberPattern>
   18594           8(?:
   18595             1[019]|
   18596             2[0156]|
   18597             84|
   18598             90
   18599           )\d{6}
   18600         </nationalNumberPattern>
   18601         <exampleNumber>810123456</exampleNumber>
   18602       </sharedCost>
   18603     </territory>
   18604 
   18605     <!-- Romania -->
   18606     <!-- http://www.itu.int/oth/T02020000AC/en -->
   18607     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania -->
   18608     <!-- Extension prefix found online, confirmed by a Romanian. -->
   18609     <territory id="RO" countryCode="40" internationalPrefix="00"
   18610                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   18611                preferredExtnPrefix=" int " mobileNumberPortableRegion="true">
   18612       <availableFormats>
   18613         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
   18614           <leadingDigits>[23]1</leadingDigits>
   18615           <format>$1 $2 $3</format>
   18616         </numberFormat>
   18617         <numberFormat pattern="(21)(\d{4})">
   18618           <leadingDigits>21</leadingDigits>
   18619           <format>$1 $2</format>
   18620         </numberFormat>
   18621         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   18622           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
   18623                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
   18624                majority of numbers found online follow this convention. -->
   18625           <leadingDigits>
   18626             [23][3-7]|
   18627             [7-9]
   18628           </leadingDigits>
   18629           <format>$1 $2 $3</format>
   18630         </numberFormat>
   18631         <numberFormat pattern="(2\d{2})(\d{3})">
   18632           <leadingDigits>2[3-6]</leadingDigits>
   18633           <format>$1 $2</format>
   18634         </numberFormat>
   18635       </availableFormats>
   18636       <generalDesc>
   18637         <nationalNumberPattern>
   18638           2\d{5,8}|
   18639           [37-9]\d{8}
   18640         </nationalNumberPattern>
   18641         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
   18642              to wikipedia and people must dial the full number. However, there are still short
   18643              numbers that total 6 digits long, so the possible number pattern should take these into
   18644              account. -->
   18645         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   18646       </generalDesc>
   18647       <fixedLine>
   18648         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
   18649              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
   18650              this based on numbers found online and the wikipedia article which indicate that these
   18651              are four digits long in Bucharest only, and three digits elsewhere. -->
   18652         <nationalNumberPattern>
   18653           2(?:
   18654             1(?:
   18655               \d{7}|
   18656               9\d{3}
   18657             )|
   18658             [3-6](?:
   18659               \d{7}|
   18660               \d9\d{2}
   18661             )
   18662           )|
   18663           3[13-6]\d{7}
   18664           </nationalNumberPattern>
   18665         <exampleNumber>211234567</exampleNumber>
   18666       </fixedLine>
   18667       <mobile>
   18668         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
   18669              numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
   18670              open-source report and confirmation by existence of such numbers online. -->
   18671         <nationalNumberPattern>
   18672           7(?:
   18673             000|
   18674             [1-8]\d{2}|
   18675             99\d
   18676           )\d{5}
   18677         </nationalNumberPattern>
   18678         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18679         <exampleNumber>712345678</exampleNumber>
   18680       </mobile>
   18681       <tollFree>
   18682         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   18683         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18684         <exampleNumber>800123456</exampleNumber>
   18685       </tollFree>
   18686       <premiumRate>
   18687         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
   18688         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18689         <exampleNumber>900123456</exampleNumber>
   18690       </premiumRate>
   18691       <sharedCost>
   18692         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
   18693         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18694         <exampleNumber>801123456</exampleNumber>
   18695       </sharedCost>
   18696       <personalNumber>
   18697         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
   18698         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18699         <exampleNumber>802123456</exampleNumber>
   18700       </personalNumber>
   18701       <uan>
   18702         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
   18703              location-independent national numbers. Only numbers beginning with 37 have been seen so
   18704              these are the only ones supported for now. -->
   18705         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
   18706         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18707         <exampleNumber>372123456</exampleNumber>
   18708       </uan>
   18709     </territory>
   18710 
   18711     <!-- Serbia -->
   18712     <!-- http://www.itu.int/oth/T02020000B9/en -->
   18713     <!-- http://registar.ratel.rs/en/reg202 -->
   18714     <territory id="RS" countryCode="381" internationalPrefix="00"
   18715                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   18716                mobileNumberPortableRegion="true">
   18717       <availableFormats>
   18718         <numberFormat pattern="([23]\d{2})(\d{4,9})">
   18719           <leadingDigits>
   18720             (?:
   18721               2[389]|
   18722               39
   18723             )0
   18724           </leadingDigits>
   18725           <format>$1 $2</format>
   18726         </numberFormat>
   18727         <numberFormat pattern="([1-3]\d)(\d{5,10})">
   18728           <leadingDigits>
   18729             1|
   18730             2(?:
   18731               [0-24-7]|
   18732               [389][1-9]
   18733             )|
   18734             3(?:
   18735               [0-8]|
   18736               9[1-9]
   18737             )
   18738           </leadingDigits>
   18739           <format>$1 $2</format>
   18740         </numberFormat>
   18741         <numberFormat pattern="(6\d)(\d{6,8})">
   18742           <leadingDigits>6</leadingDigits>
   18743           <format>$1 $2</format>
   18744         </numberFormat>
   18745         <numberFormat pattern="([89]\d{2})(\d{3,9})">
   18746           <leadingDigits>[89]</leadingDigits>
   18747           <format>$1 $2</format>
   18748         </numberFormat>
   18749         <numberFormat pattern="(7[26])(\d{4,9})">
   18750           <leadingDigits>7[26]</leadingDigits>
   18751           <format>$1 $2</format>
   18752         </numberFormat>
   18753         <numberFormat pattern="(7[08]\d)(\d{4,9})">
   18754           <leadingDigits>7[08]</leadingDigits>
   18755           <format>$1 $2</format>
   18756         </numberFormat>
   18757       </availableFormats>
   18758       <generalDesc>
   18759         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
   18760              by 2-9) and the country calling code (381). -->
   18761         <nationalNumberPattern>
   18762           [126-9]\d{4,11}|
   18763           3(?:
   18764             [0-79]\d{3,10}|
   18765             8[2-9]\d{2,9}
   18766           )
   18767         </nationalNumberPattern>
   18768         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   18769       </generalDesc>
   18770       <fixedLine>
   18771         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
   18772              has been issused, so we allow 11 1X here. -->
   18773         <nationalNumberPattern>
   18774           (?:
   18775             1(?:
   18776               [02-9][2-9]|
   18777               1[1-9]
   18778             )\d|
   18779             2(?:
   18780               [0-24-7][2-9]\d|
   18781               [389](?:
   18782                 0[2-9]|
   18783                 [2-9]\d
   18784               )
   18785             )|
   18786             3(?:
   18787               [0-8][2-9]\d|
   18788               9(?:
   18789                 [2-9]\d|
   18790                 0[2-9]
   18791               )
   18792             )
   18793           )\d{3,8}
   18794         </nationalNumberPattern>
   18795         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
   18796         <exampleNumber>10234567</exampleNumber>
   18797       </fixedLine>
   18798       <mobile>
   18799         <nationalNumberPattern>
   18800           6(?:
   18801             [0-689]|
   18802             7\d
   18803           )\d{6,7}
   18804         </nationalNumberPattern>
   18805         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   18806         <exampleNumber>601234567</exampleNumber>
   18807       </mobile>
   18808       <tollFree>
   18809         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
   18810         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   18811         <exampleNumber>80012345</exampleNumber>
   18812       </tollFree>
   18813       <premiumRate>
   18814         <nationalNumberPattern>
   18815           (?:
   18816             90[0169]|
   18817             78\d
   18818           )\d{3,7}
   18819         </nationalNumberPattern>
   18820         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   18821         <exampleNumber>90012345</exampleNumber>
   18822       </premiumRate>
   18823       <uan>
   18824         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
   18825         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
   18826         <exampleNumber>700123456</exampleNumber>
   18827       </uan>
   18828     </territory>
   18829 
   18830     <!-- Russian Federation -->
   18831     <!-- http://www.itu.int/oth/T02020000AD/en -->
   18832     <!-- http://en.wikipedia.org/wiki/%2B7 -->
   18833     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
   18834                internationalPrefix="810" nationalPrefix="8"
   18835                nationalPrefixFormattingRule="$NP ($FG)"
   18836                nationalPrefixOptionalWhenFormatting="true" >
   18837       <availableFormats>
   18838         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
   18839              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
   18840              Kazakhstan as well. -->
   18841         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
   18842           <!-- Local numbers only - these do not start with the national prefix. -->
   18843           <leadingDigits>[1-79]</leadingDigits>
   18844           <format>$1-$2-$3</format>
   18845           <intlFormat>NA</intlFormat>
   18846         </numberFormat>
   18847         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
   18848           <leadingDigits>[34689]</leadingDigits>
   18849           <format>$1 $2-$3-$4</format>
   18850         </numberFormat>
   18851         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
   18852           <leadingDigits>7</leadingDigits>
   18853           <format>$1 $2 $3</format>
   18854         </numberFormat>
   18855       </availableFormats>
   18856       <generalDesc>
   18857         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
   18858         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   18859       </generalDesc>
   18860       <fixedLine>
   18861         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
   18862              in the yellow pages, and on their own website and is listed on wikipedia. This applies
   18863              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
   18864         <nationalNumberPattern>
   18865           (?:
   18866             3(?:
   18867               0[12]|
   18868               4[1-35-79]|
   18869               5[1-3]|
   18870               8[1-58]|
   18871               9[0145]
   18872             )|
   18873             4(?:
   18874               01|
   18875               1[1356]|
   18876               2[13467]|
   18877               7[1-5]|
   18878               8[1-7]|
   18879               9[1-689]
   18880             )|
   18881             8(?:
   18882               1[1-8]|
   18883               2[01]|
   18884               3[13-6]|
   18885               4[0-8]|
   18886               5[15]|
   18887               6[1-35-7]|
   18888               7[1-37-9]
   18889             )
   18890           )\d{7}
   18891         </nationalNumberPattern>
   18892         <exampleNumber>3011234567</exampleNumber>
   18893       </fixedLine>
   18894       <mobile>
   18895         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
   18896         <exampleNumber>9123456789</exampleNumber>
   18897       </mobile>
   18898       <tollFree>
   18899         <!-- The metadata states that 804 numbers are UAN numbers, but
   18900              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
   18901              numbers. -->
   18902         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
   18903         <exampleNumber>8001234567</exampleNumber>
   18904       </tollFree>
   18905       <premiumRate>
   18906         <!-- Covers tele-voting numbers as well. -->
   18907         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
   18908         <exampleNumber>8091234567</exampleNumber>
   18909       </premiumRate>
   18910     </territory>
   18911 
   18912     <!-- Rwanda -->
   18913     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
   18914          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
   18915          as www.tigo.co.rw "Choose Your Number" service. -->
   18916     <!-- http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf -->
   18917     <!-- http://en.wikipedia.org/wiki/+250 -->
   18918     <territory id="RW" countryCode="250" internationalPrefix="00"
   18919                nationalPrefix="0" leadingZeroPossible="true">
   18920       <availableFormats>
   18921         <numberFormat nationalPrefixFormattingRule="$FG"
   18922           pattern="(2\d{2})(\d{3})(\d{3})">
   18923           <leadingDigits>2</leadingDigits>
   18924           <format>$1 $2 $3</format>
   18925         </numberFormat>
   18926         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
   18927           <leadingDigits>[7-9]</leadingDigits>
   18928           <format>$1 $2 $3</format>
   18929         </numberFormat>
   18930         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
   18931           <leadingDigits>0</leadingDigits>
   18932           <format>$1 $2 $3 $4</format>
   18933         </numberFormat>
   18934       </availableFormats>
   18935       <generalDesc>
   18936         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
   18937         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   18938       </generalDesc>
   18939       <fixedLine>
   18940         <!-- We support satellite numbers here, since they are in the plan, although no recent
   18941              online examples can be found. We also support fixed-line ranges that have been reserved
   18942              and paid for, even where no online numbers can be found. -->
   18943         <nationalNumberPattern>
   18944           2[258]\d{7}|
   18945           06\d{6}
   18946         </nationalNumberPattern>
   18947         <exampleNumber>250123456</exampleNumber>
   18948       </fixedLine>
   18949       <mobile>
   18950         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
   18951              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
   18952              license revoked. -->
   18953         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
   18954         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18955         <exampleNumber>720123456</exampleNumber>
   18956       </mobile>
   18957       <tollFree>
   18958         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   18959         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18960         <exampleNumber>800123456</exampleNumber>
   18961       </tollFree>
   18962       <premiumRate>
   18963         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
   18964         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   18965         <exampleNumber>900123456</exampleNumber>
   18966       </premiumRate>
   18967     </territory>
   18968 
   18969     <!-- Saudi Arabia -->
   18970     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia -->
   18971     <!-- http://www.itu.int/oth/T02020000B7/en -->
   18972     <territory id="SA" countryCode="966" internationalPrefix="00"
   18973                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   18974                mobileNumberPortableRegion="true">
   18975       <availableFormats>
   18976         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
   18977           <leadingDigits>[1-467]</leadingDigits>
   18978           <format>$1 $2 $3</format>
   18979         </numberFormat>
   18980         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
   18981           <leadingDigits>1[1-467]</leadingDigits>
   18982           <format>$1 $2 $3</format>
   18983         </numberFormat>
   18984         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
   18985           <leadingDigits>5</leadingDigits>
   18986           <format>$1 $2 $3</format>
   18987         </numberFormat>
   18988         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
   18989              the fact that no numbers of this form found online have a trunk prefix added. -->
   18990         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
   18991           <leadingDigits>92</leadingDigits>
   18992           <format>$1 $2</format>
   18993         </numberFormat>
   18994         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
   18995           <leadingDigits>80</leadingDigits>
   18996           <format>$1 $2 $3</format>
   18997         </numberFormat>
   18998         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
   18999           <leadingDigits>81</leadingDigits>
   19000           <format>$1 $2 $3</format>
   19001         </numberFormat>
   19002       </availableFormats>
   19003       <generalDesc>
   19004         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
   19005              fixed-line numbers. -->
   19006         <nationalNumberPattern>
   19007           1\d{7,8}|
   19008           (?:
   19009             [2-467]|
   19010             92
   19011           )\d{7}|
   19012           5\d{8}|
   19013           8\d{9}
   19014         </nationalNumberPattern>
   19015         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   19016       </generalDesc>
   19017       <fixedLine>
   19018         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
   19019              happened in May for area code 1 (parallel running ended July 13th, 2013) and then in
   19020              August for the other fixed-line numbers (parallel running ends October 18th, 2013). -->
   19021         <nationalNumberPattern>
   19022           11\d{7}|
   19023           1?(?:
   19024             2[24-8]|
   19025             3[35-8]|
   19026             4[3-68]|
   19027             6[2-5]|
   19028             7[235-7]
   19029           )\d{6}
   19030         </nationalNumberPattern>
   19031         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   19032         <exampleNumber>112345678</exampleNumber>
   19033       </fixedLine>
   19034       <mobile>
   19035         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
   19036              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
   19037              until we find evidence that this is an error, leaving them at 10 for now. -->
   19038         <nationalNumberPattern>
   19039           (?:
   19040             5[013-689]|
   19041             811
   19042           )\d{7}
   19043         </nationalNumberPattern>
   19044         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   19045         <exampleNumber>512345678</exampleNumber>
   19046       </mobile>
   19047       <tollFree>
   19048         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   19049         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   19050         <exampleNumber>8001234567</exampleNumber>
   19051       </tollFree>
   19052       <sharedCost>
   19053         <!-- Including shared revenue with shared cost here. -->
   19054         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
   19055         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19056         <exampleNumber>920012345</exampleNumber>
   19057       </sharedCost>
   19058     </territory>
   19059 
   19060     <!-- Solomon Islands -->
   19061     <!-- http://www.itu.int/oth/T02020000BF/en -->
   19062     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
   19063       <!-- A single group is used to format 5-digit numbers. -->
   19064       <availableFormats>
   19065         <numberFormat pattern="(\d{3})(\d{4})">
   19066           <leadingDigits>[7-9]</leadingDigits>
   19067           <format>$1 $2</format>
   19068         </numberFormat>
   19069       </availableFormats>
   19070       <generalDesc>
   19071         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
   19072         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   19073       </generalDesc>
   19074       <fixedLine>
   19075         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
   19076              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
   19077         <nationalNumberPattern>
   19078           (?:
   19079             1[4-79]|
   19080             [23]\d|
   19081             4[01]|
   19082             5[03]|
   19083             6[0-37]
   19084           )\d{3}
   19085         </nationalNumberPattern>
   19086         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   19087         <exampleNumber>40123</exampleNumber>
   19088       </fixedLine>
   19089       <mobile>
   19090         <nationalNumberPattern>
   19091           48\d{3}|
   19092           7(?:
   19093             [46-8]\d|
   19094             5[025-9]|
   19095             90
   19096           )\d{4}|
   19097           8[4-8]\d{5}|
   19098           9(?:
   19099             [46]\d|
   19100             5[0-46-9]|
   19101             7[0-689]|
   19102             8[0-79]|
   19103             9[0-8]
   19104           )\d{4}
   19105         </nationalNumberPattern>
   19106         <exampleNumber>7421234</exampleNumber>
   19107       </mobile>
   19108       <tollFree>
   19109         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
   19110         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   19111         <exampleNumber>18123</exampleNumber>
   19112       </tollFree>
   19113       <voip>
   19114         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
   19115         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   19116         <exampleNumber>51123</exampleNumber>
   19117       </voip>
   19118     </territory>
   19119 
   19120     <!-- Seychelles -->
   19121     <!-- http://www.itu.int/oth/T02020000BA/en -->
   19122     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles -->
   19123     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
   19124                preferredInternationalPrefix="00">
   19125       <availableFormats>
   19126         <numberFormat pattern="(\d{3})(\d{3})">
   19127           <leadingDigits>[89]</leadingDigits>
   19128           <format>$1 $2</format>
   19129         </numberFormat>
   19130         <numberFormat pattern="(\d)(\d{3})(\d{3})">
   19131           <leadingDigits>[246]</leadingDigits>
   19132           <format>$1 $2 $3</format>
   19133         </numberFormat>
   19134       </availableFormats>
   19135       <generalDesc>
   19136         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
   19137         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   19138       </generalDesc>
   19139       <fixedLine>
   19140         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
   19141              they are more expensive to call than other Fixed Line services. ISDN and DID services
   19142              are here too, since they seem to be also fixed-line phone numbers. -->
   19143         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
   19144         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   19145         <exampleNumber>4217123</exampleNumber>
   19146       </fixedLine>
   19147       <mobile>
   19148         <!-- Includes Fixed Cellular. -->
   19149         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
   19150         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   19151         <exampleNumber>2510123</exampleNumber>
   19152       </mobile>
   19153       <tollFree>
   19154         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
   19155         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   19156         <exampleNumber>800000</exampleNumber>
   19157       </tollFree>
   19158       <premiumRate>
   19159         <!-- Using this to represent Value Added Service in the plan. -->
   19160         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
   19161         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   19162         <exampleNumber>981234</exampleNumber>
   19163       </premiumRate>
   19164       <voip>
   19165         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
   19166         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   19167         <exampleNumber>6412345</exampleNumber>
   19168       </voip>
   19169     </territory>
   19170 
   19171     <!-- Sudan -->
   19172     <!-- http://www.itu.int/oth/T02020000C4/en -->
   19173     <territory id="SD" countryCode="249" internationalPrefix="00"
   19174                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   19175       <availableFormats>
   19176         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   19177           <format>$1 $2 $3</format>
   19178         </numberFormat>
   19179       </availableFormats>
   19180       <generalDesc>
   19181         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
   19182         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19183       </generalDesc>
   19184       <fixedLine>
   19185         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
   19186              found online. -->
   19187         <nationalNumberPattern>
   19188           1(?:
   19189             [125]\d|
   19190             8[3567]
   19191           )\d{6}
   19192         </nationalNumberPattern>
   19193         <exampleNumber>121231234</exampleNumber>
   19194       </fixedLine>
   19195       <mobile>
   19196         <!-- Adding 90X as online numbers have been found with this prefix. -->
   19197         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
   19198         <exampleNumber>911231234</exampleNumber>
   19199       </mobile>
   19200     </territory>
   19201 
   19202     <!-- Sweden -->
   19203     <!-- http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf -->
   19204     <!-- http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Nrplansammanst%C3%A4llning-2013-07-05.pdf -->
   19205     <territory id="SE" countryCode="46" internationalPrefix="00"
   19206                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   19207                mobileNumberPortableRegion="true">
   19208       <availableFormats>
   19209       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
   19210            http://gulasidorna.eniro.se -->
   19211         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
   19212           <leadingDigits>8</leadingDigits>
   19213           <format>$1-$2 $3 $4</format>
   19214           <intlFormat>$1 $2 $3 $4</intlFormat>
   19215         </numberFormat>
   19216         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
   19217           <leadingDigits>
   19218             1[013689]|
   19219             2[0136]|
   19220             3[1356]|
   19221             4[0246]|
   19222             54|
   19223             6[03]|
   19224             90
   19225           </leadingDigits>
   19226           <format>$1-$2 $3 $4</format>
   19227           <intlFormat>$1 $2 $3 $4</intlFormat>
   19228         </numberFormat>
   19229         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
   19230           <leadingDigits>
   19231             1[13689]|
   19232             2[136]|
   19233             3[1356]|
   19234             4[0246]|
   19235             54|
   19236             6[03]|
   19237             90
   19238           </leadingDigits>
   19239           <format>$1-$2 $3</format>
   19240           <intlFormat>$1 $2 $3</intlFormat>
   19241         </numberFormat>
   19242         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
   19243           <leadingDigits>
   19244             1[2457]|
   19245             2[2457-9]|
   19246             3[0247-9]|
   19247             4[1357-9]|
   19248             5[0-35-9]|
   19249             6[124-9]|
   19250             9(?:
   19251               [125-8]|
   19252               3[0-5]|
   19253               4[0-3]
   19254             )
   19255           </leadingDigits>
   19256           <format>$1-$2 $3 $4</format>
   19257           <intlFormat>$1 $2 $3 $4</intlFormat>
   19258         </numberFormat>
   19259         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
   19260           <leadingDigits>
   19261             1[2457]|
   19262             2[2457-9]|
   19263             3[0247-9]|
   19264             4[1357-9]|
   19265             5[0-35-9]|
   19266             6[124-9]|
   19267             9(?:
   19268               [125-8]|
   19269               3[0-5]|
   19270               4[0-3]
   19271             )
   19272           </leadingDigits>
   19273           <format>$1-$2 $3</format>
   19274           <intlFormat>$1 $2 $3</intlFormat>
   19275         </numberFormat>
   19276         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
   19277           <leadingDigits>7</leadingDigits>
   19278           <format>$1-$2 $3 $4</format>
   19279           <intlFormat>$1 $2 $3 $4</intlFormat>
   19280         </numberFormat>
   19281         <numberFormat pattern="(77)(\d{2})(\d{2})">
   19282           <leadingDigits>7</leadingDigits>
   19283           <format>$1-$2$3</format>
   19284           <intlFormat>$1 $2 $3</intlFormat>
   19285         </numberFormat>
   19286         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
   19287           <leadingDigits>20</leadingDigits>
   19288           <format>$1-$2 $3</format>
   19289           <intlFormat>$1 $2 $3</intlFormat>
   19290         </numberFormat>
   19291         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
   19292           <leadingDigits>9[034]</leadingDigits>
   19293           <format>$1-$2 $3 $4</format>
   19294           <intlFormat>$1 $2 $3 $4</intlFormat>
   19295         </numberFormat>
   19296         <numberFormat pattern="(9[034]\d)(\d{4})">
   19297           <leadingDigits>9[034]</leadingDigits>
   19298           <format>$1-$2</format>
   19299           <intlFormat>$1 $2</intlFormat>
   19300         </numberFormat>
   19301       </availableFormats>
   19302       <generalDesc>
   19303         <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
   19304         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
   19305       </generalDesc>
   19306       <fixedLine>
   19307         <nationalNumberPattern>
   19308           1(?:
   19309             0[1-8]\d{6}|
   19310             [136]\d{5,7}|
   19311             (?:
   19312               2[0-35]|
   19313               4[0-4]|
   19314               5[0-25-9]|
   19315               7[13-6]|
   19316               [89]\d
   19317             )\d{5,6}
   19318           )|
   19319           2(?:
   19320             [136]\d{5,7}|
   19321             (?:
   19322               2[0-7]|
   19323               4[0136-8]|
   19324               5[0138]|
   19325               7[018]|
   19326               8[01]|
   19327               9[0-57]
   19328             )\d{5,6}
   19329           )|
   19330           3(?:
   19331             [356]\d{5,7}|
   19332             (?:
   19333               0[0-4]|
   19334               1\d|
   19335               2[0-25]|
   19336               4[056]|
   19337               7[0-2]|
   19338               8[0-3]|
   19339               9[023]
   19340             )\d{5,6}
   19341           )|
   19342           4(?:
   19343             0[1-9]\d{4,6}|
   19344             [246]\d{5,7}|
   19345             (?:
   19346               1[013-8]|
   19347               3[0135]|
   19348               5[14-79]|
   19349               7[0-246-9]|
   19350               8[0156]|
   19351               9[0-689]
   19352             )\d{5,6}
   19353           )|
   19354           5(?:
   19355             0[0-6]|
   19356             [15][0-5]|
   19357             2[0-68]|
   19358             3[0-4]|
   19359             4\d|
   19360             6[03-5]|
   19361             7[013]|
   19362             8[0-79]|
   19363             9[01]
   19364           )\d{5,6}|
   19365           6(?:
   19366             0[1-9]\d{4,6}|
   19367             3\d{5,7}|
   19368             (?:
   19369               1[1-3]|
   19370               2[0-4]|
   19371               4[02-57]|
   19372               5[0-37]|
   19373               6[0-3]|
   19374               7[0-2]|
   19375               8[0247]|
   19376               9[0-356]
   19377             )\d{5,6}
   19378           )|
   19379           8[1-9]\d{5,7}|
   19380           9(?:
   19381             0[1-9]\d{4,6}|
   19382             (?:
   19383               1[0-68]|
   19384               2\d|
   19385               3[02-5]|
   19386               4[0-3]|
   19387               5[0-4]|
   19388               [68][01]|
   19389               7[0135-8]
   19390             )\d{5,6}
   19391           )
   19392         </nationalNumberPattern>
   19393         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   19394         <exampleNumber>8123456</exampleNumber>
   19395       </fixedLine>
   19396       <mobile>
   19397         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
   19398         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19399         <exampleNumber>701234567</exampleNumber>
   19400       </mobile>
   19401       <pager>
   19402         <nationalNumberPattern>74[02-9]\d{6}</nationalNumberPattern>
   19403         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19404         <exampleNumber>740123456</exampleNumber>
   19405       </pager>
   19406       <tollFree>
   19407         <nationalNumberPattern>
   19408           20(?:
   19409             0(?:
   19410               0\d{2}|
   19411               [1-9](?:
   19412                 0\d{1,4}|
   19413                 [1-9]\d{4}
   19414               )
   19415             )|
   19416             1(?:
   19417               0\d{4}|
   19418               [1-9]\d{4,5}
   19419             )|
   19420             [2-9]\d{5}
   19421           )
   19422         </nationalNumberPattern>
   19423         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   19424         <exampleNumber>20123456</exampleNumber>
   19425       </tollFree>
   19426       <premiumRate>
   19427         <nationalNumberPattern>
   19428           9(?:
   19429             00|
   19430             39|
   19431             44
   19432           )(?:
   19433             1(?:
   19434               [0-26]\d{5}|
   19435               [3-57-9]\d{2}
   19436             )|
   19437             2(?:
   19438               [0-2]\d{5}|
   19439               [3-9]\d{2}
   19440             )|
   19441             3(?:
   19442               [0139]\d{5}|
   19443               [24-8]\d{2}
   19444             )|
   19445             4(?:
   19446               [045]\d{5}|
   19447               [1-36-9]\d{2}
   19448             )|
   19449             5(?:
   19450               5\d{5}|
   19451               [0-46-9]\d{2}
   19452             )|
   19453             6(?:
   19454               [679]\d{5}|
   19455               [0-58]\d{2}
   19456             )|
   19457             7(?:
   19458               [078]\d{5}|
   19459               [1-69]\d{2}
   19460             )|
   19461             8(?:
   19462               [578]\d{5}|
   19463               [0-469]\d{2}
   19464             )
   19465           )
   19466         </nationalNumberPattern>
   19467         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   19468         <exampleNumber>9001234567</exampleNumber>
   19469       </premiumRate>
   19470       <sharedCost>
   19471         <nationalNumberPattern>
   19472           77(?:
   19473             0(?:
   19474               0\d{2}|
   19475               [1-9](?:
   19476                 0\d|
   19477                 [1-9]\d{4}
   19478               )
   19479             )|
   19480             [1-6][1-9]\d{5}
   19481           )
   19482         </nationalNumberPattern>
   19483         <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
   19484         <exampleNumber>771234567</exampleNumber>
   19485       </sharedCost>
   19486       <personalNumber>
   19487         <nationalNumberPattern>75[1-8]\d{6}</nationalNumberPattern>
   19488         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19489         <exampleNumber>751234567</exampleNumber>
   19490       </personalNumber>
   19491     </territory>
   19492 
   19493     <!-- Singapore -->
   19494     <!-- http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx -->
   19495     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d"
   19496                mobileNumberPortableRegion="true">
   19497       <availableFormats>
   19498         <numberFormat pattern="([3689]\d{3})(\d{4})">
   19499           <leadingDigits>
   19500             [369]|
   19501             8[1-9]
   19502           </leadingDigits>
   19503           <format>$1 $2</format>
   19504         </numberFormat>
   19505         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
   19506           <leadingDigits>1[89]</leadingDigits>
   19507           <format>$1 $2 $3</format>
   19508         </numberFormat>
   19509         <numberFormat pattern="(7000)(\d{4})(\d{3})">
   19510           <leadingDigits>70</leadingDigits>
   19511           <format>$1 $2 $3</format>
   19512         </numberFormat>
   19513         <numberFormat pattern="(800)(\d{3})(\d{4})">
   19514           <leadingDigits>80</leadingDigits>
   19515           <format>$1 $2 $3</format>
   19516         </numberFormat>
   19517       </availableFormats>
   19518       <generalDesc>
   19519         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
   19520              easily strip off leading "65" country codes. -->
   19521         <nationalNumberPattern>
   19522           [36]\d{7}|
   19523           [17-9]\d{7,10}
   19524         </nationalNumberPattern>
   19525         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
   19526       </generalDesc>
   19527       <fixedLine>
   19528         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
   19529         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19530         <exampleNumber>61234567</exampleNumber>
   19531       </fixedLine>
   19532       <mobile>
   19533         <nationalNumberPattern>
   19534           (?:
   19535             8[1-7]|
   19536             9[0-8]
   19537           )\d{6}
   19538         </nationalNumberPattern>
   19539         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19540         <exampleNumber>81234567</exampleNumber>
   19541       </mobile>
   19542       <tollFree>
   19543         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
   19544         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
   19545         <exampleNumber>18001234567</exampleNumber>
   19546       </tollFree>
   19547       <premiumRate>
   19548         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
   19549         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   19550         <exampleNumber>19001234567</exampleNumber>
   19551       </premiumRate>
   19552       <voip>
   19553         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
   19554         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19555         <exampleNumber>31234567</exampleNumber>
   19556       </voip>
   19557       <uan>
   19558         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
   19559              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
   19560              -->
   19561         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
   19562         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   19563         <exampleNumber>70001234567</exampleNumber>
   19564       </uan>
   19565     </territory>
   19566 
   19567     <!-- Saint Helena -->
   19568     <!-- http://www.itu.int/oth/T02020000AF/en -->
   19569     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
   19570       <!-- Numbers are formatted as a block. -->
   19571       <generalDesc>
   19572         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
   19573         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
   19574       </generalDesc>
   19575       <fixedLine>
   19576         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
   19577              The new pattern is first, followed by the old (hence the repetition of the leading 2).
   19578              -->
   19579         <nationalNumberPattern>
   19580           2(?:
   19581             [0-57-9]\d|
   19582             6[4-9]
   19583           )\d{2}|
   19584           (?:
   19585             [2-46]\d|
   19586             7[01]
   19587           )\d{2}
   19588         </nationalNumberPattern>
   19589         <!-- Using St Helena Tourism as the example number. -->
   19590         <exampleNumber>2158</exampleNumber>
   19591       </fixedLine>
   19592       <mobile>
   19593         <nationalNumberPattern>NA</nationalNumberPattern>
   19594         <possibleNumberPattern>NA</possibleNumberPattern>
   19595       </mobile>
   19596       <premiumRate>
   19597         <nationalNumberPattern>
   19598           (?:
   19599             [59]\d|
   19600             7[2-9]
   19601           )\d{2}
   19602         </nationalNumberPattern>
   19603         <exampleNumber>5012</exampleNumber>
   19604       </premiumRate>
   19605     </territory>
   19606 
   19607     <!-- Slovenia -->
   19608     <!-- http://www.itu.int/oth/T02020000BE/en -->
   19609     <territory id="SI" countryCode="386" internationalPrefix="00"
   19610                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   19611                mobileNumberPortableRegion="true">
   19612       <availableFormats>
   19613         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
   19614           pattern="(\d)(\d{3})(\d{2})(\d{2})">
   19615           <leadingDigits>
   19616             [12]|
   19617             3[4-8]|
   19618             4[24-8]|
   19619             5[2-8]|
   19620             7[3-8]
   19621           </leadingDigits>
   19622           <format>$1 $2 $3 $4</format>
   19623           </numberFormat>
   19624         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
   19625           <leadingDigits>
   19626             [37][01]|
   19627             4[019]|
   19628             51|
   19629             6
   19630           </leadingDigits>
   19631           <format>$1 $2 $3</format>
   19632           </numberFormat>
   19633         <numberFormat pattern="([89][09])(\d{3,6})">
   19634           <leadingDigits>[89][09]</leadingDigits>
   19635           <format>$1 $2</format>
   19636         </numberFormat>
   19637         <numberFormat pattern="([58]\d{2})(\d{5})">
   19638           <leadingDigits>
   19639             59|
   19640             8[1-3]
   19641           </leadingDigits>
   19642           <format>$1 $2</format>
   19643         </numberFormat>
   19644       </availableFormats>
   19645       <generalDesc>
   19646         <nationalNumberPattern>
   19647           [1-7]\d{6,7}|
   19648           [89]\d{4,7}
   19649         </nationalNumberPattern>
   19650         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
   19651       </generalDesc>
   19652       <fixedLine>
   19653         <nationalNumberPattern>
   19654           (?:
   19655             1\d|
   19656             [25][2-8]|
   19657             3[4-8]|
   19658             4[24-8]|
   19659             7[3-8]
   19660           )\d{6}
   19661         </nationalNumberPattern>
   19662         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   19663         <exampleNumber>11234567</exampleNumber>
   19664       </fixedLine>
   19665       <mobile>
   19666         <!-- We include 049 here - it is VoIP in the plan, but SMS messages have been successfully
   19667              delivered - and it is run by Mobitel. There are also mobile numbers found on the
   19668              internet with this prefix - it is apparently used in Kosovo. Also
   19669              added 068, which is used by the mobile operator bob.si -->
   19670         <nationalNumberPattern>
   19671           (?:
   19672             [37][01]|
   19673             4[019]|
   19674             51|
   19675             6[48]
   19676           )\d{6}
   19677         </nationalNumberPattern>
   19678         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19679         <exampleNumber>31234567</exampleNumber>
   19680       </mobile>
   19681       <tollFree>
   19682         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
   19683         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   19684         <exampleNumber>80123456</exampleNumber>
   19685       </tollFree>
   19686       <premiumRate>
   19687         <!-- Includes televoting, mass calling -->
   19688         <nationalNumberPattern>
   19689           90\d{4,6}|
   19690           89[1-3]\d{2,5}
   19691         </nationalNumberPattern>
   19692         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
   19693         <exampleNumber>90123456</exampleNumber>
   19694       </premiumRate>
   19695       <voip>
   19696         <nationalNumberPattern>
   19697           (?:
   19698             59|
   19699             8[1-3]
   19700           )\d{6}
   19701         </nationalNumberPattern>
   19702         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19703         <exampleNumber>59012345</exampleNumber>
   19704       </voip>
   19705     </territory>
   19706 
   19707     <!-- Svalbard -->
   19708     <!-- Metadata shared with Norway. -->
   19709     <!-- http://www.npt.no/pt_internet/numsys/E.164.pdf -->
   19710     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
   19711       <generalDesc>
   19712         <nationalNumberPattern>
   19713           0\d{4}|
   19714           [4789]\d{7}
   19715         </nationalNumberPattern>
   19716         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
   19717       </generalDesc>
   19718       <fixedLine>
   19719         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
   19720         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19721         <exampleNumber>79123456</exampleNumber>
   19722       </fixedLine>
   19723       <!-- Copied from Norway metadata. -->
   19724       <mobile>
   19725         <nationalNumberPattern>
   19726           (?:
   19727             4[015-8]|
   19728             5[89]|
   19729             9\d
   19730           )\d{6}
   19731         </nationalNumberPattern>
   19732         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19733         <exampleNumber>41234567</exampleNumber>
   19734       </mobile>
   19735       <tollFree>
   19736         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
   19737         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19738         <exampleNumber>80012345</exampleNumber>
   19739       </tollFree>
   19740       <premiumRate>
   19741         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
   19742         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19743         <exampleNumber>82012345</exampleNumber>
   19744       </premiumRate>
   19745       <sharedCost>
   19746         <nationalNumberPattern>
   19747           810(?:
   19748             0[0-6]|
   19749             [2-8]\d
   19750           )\d{3}
   19751         </nationalNumberPattern>
   19752         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19753         <exampleNumber>81021234</exampleNumber>
   19754       </sharedCost>
   19755       <personalNumber>
   19756         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
   19757         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19758         <exampleNumber>88012345</exampleNumber>
   19759       </personalNumber>
   19760       <voip>
   19761         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
   19762         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19763         <exampleNumber>85012345</exampleNumber>
   19764       </voip>
   19765       <uan>
   19766         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
   19767         <nationalNumberPattern>
   19768           0\d{4}|
   19769           81(?:
   19770             0(?:
   19771               0[7-9]|
   19772               1\d
   19773             )|
   19774             5\d{2}
   19775           )\d{3}
   19776         </nationalNumberPattern>
   19777         <exampleNumber>01234</exampleNumber>
   19778       </uan>
   19779       <voicemail>
   19780         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
   19781         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19782         <exampleNumber>81212345</exampleNumber>
   19783       </voicemail>
   19784     </territory>
   19785 
   19786     <!-- Slovakia -->
   19787     <!-- http://www.itu.int/oth/T02020000BD/en -->
   19788     <territory id="SK" countryCode="421" internationalPrefix="00"
   19789                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   19790                mobileNumberPortableRegion="true">
   19791       <availableFormats>
   19792         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
   19793           <leadingDigits>2</leadingDigits>
   19794           <format>$1/$2 $3 $4</format>
   19795         </numberFormat>
   19796         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
   19797           <leadingDigits>[3-5]</leadingDigits>
   19798           <format>$1/$2 $3 $4</format>
   19799         </numberFormat>
   19800         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
   19801           <leadingDigits>[689]</leadingDigits>
   19802           <format>$1 $2 $3</format>
   19803         </numberFormat>
   19804       </availableFormats>
   19805       <generalDesc>
   19806         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
   19807         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19808       </generalDesc>
   19809       <noInternationalDialling>
   19810         <nationalNumberPattern>
   19811           (?:
   19812             8(?:
   19813               00|
   19814               [5-9]\d
   19815             )|
   19816             9(?:
   19817               00|
   19818               [78]\d
   19819             )
   19820           )\d{6}
   19821         </nationalNumberPattern>
   19822         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19823         <exampleNumber>800123456</exampleNumber>
   19824       </noInternationalDialling>
   19825       <fixedLine>
   19826         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
   19827         <exampleNumber>212345678</exampleNumber>
   19828       </fixedLine>
   19829       <mobile>
   19830         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
   19831              deeming it valid for now. -->
   19832         <nationalNumberPattern>
   19833           9(?:
   19834             0[1-8]|
   19835             1[0-24-9]|
   19836             4[0489]
   19837           )\d{6}
   19838         </nationalNumberPattern>
   19839         <exampleNumber>912123456</exampleNumber>
   19840       </mobile>
   19841       <tollFree>
   19842         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   19843         <exampleNumber>800123456</exampleNumber>
   19844       </tollFree>
   19845       <premiumRate>
   19846         <nationalNumberPattern>
   19847           9(?:
   19848             [78]\d{7}|
   19849             00\d{6}
   19850           )
   19851         </nationalNumberPattern>
   19852         <exampleNumber>900123456</exampleNumber>
   19853       </premiumRate>
   19854       <sharedCost>
   19855         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
   19856         <exampleNumber>850123456</exampleNumber>
   19857       </sharedCost>
   19858       <voip>
   19859         <nationalNumberPattern>
   19860           6(?:
   19861             5[0-4]|
   19862             9[0-6]
   19863           )\d{6}
   19864         </nationalNumberPattern>
   19865         <exampleNumber>690123456</exampleNumber>
   19866       </voip>
   19867       <uan>
   19868         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
   19869         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19870         <exampleNumber>961234567</exampleNumber>
   19871       </uan>
   19872     </territory>
   19873 
   19874     <!-- Sierra Leone -->
   19875     <!-- http://www.itu.int/oth/T02020000BB/en -->
   19876     <territory id="SL" countryCode="232" internationalPrefix="00"
   19877                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
   19878       <availableFormats>
   19879         <!-- Following formatting of online yellow pages www.leonedirect.com -->
   19880         <numberFormat pattern="(\d{2})(\d{6})">
   19881           <format>$1 $2</format>
   19882         </numberFormat>
   19883       </availableFormats>
   19884       <generalDesc>
   19885         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
   19886         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   19887       </generalDesc>
   19888       <fixedLine>
   19889         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
   19890         <exampleNumber>22221234</exampleNumber>
   19891       </fixedLine>
   19892       <mobile>
   19893         <nationalNumberPattern>
   19894           (?:
   19895             2[15]|
   19896             3[034]|
   19897             4[04]|
   19898             5[05]|
   19899             7[6-9]|
   19900             88
   19901           )\d{6}
   19902         </nationalNumberPattern>
   19903         <exampleNumber>25123456</exampleNumber>
   19904       </mobile>
   19905     </territory>
   19906 
   19907     <!-- San Marino -->
   19908     <!-- http://www.itu.int/oth/T02020000B5/en -->
   19909     <!-- http://en.wikipedia.org/wiki/%2B39 (Information about Italy) -->
   19910     <!-- http://en.wikipedia.org/wiki/%2B378-->
   19911     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
   19912          optional when dialling from outside the country; the phone number can be reached both with
   19913          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
   19914          are used to ensure that if the 0549 is not present, it will be added. -->
   19915     <territory id="SM" countryCode="378" internationalPrefix="00"
   19916                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
   19917                leadingZeroPossible="true">
   19918       <availableFormats>
   19919         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   19920           <leadingDigits>[5-7]</leadingDigits>
   19921           <format>$1 $2 $3 $4</format>
   19922         </numberFormat>
   19923         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
   19924         <numberFormat pattern="(0549)(\d{6})">
   19925           <leadingDigits>0</leadingDigits>
   19926           <format>$1 $2</format>
   19927           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
   19928                formatting in international format. -->
   19929           <intlFormat>($1) $2</intlFormat>
   19930         </numberFormat>
   19931         <!-- A rule in case the number has been stored without the leading 0549 necessary for
   19932              fixed-lines. -->
   19933         <numberFormat pattern="(\d{6})">
   19934           <leadingDigits>[89]</leadingDigits>
   19935           <format>0549 $1</format>
   19936           <intlFormat>(0549) $1</intlFormat>
   19937         </numberFormat>
   19938       </availableFormats>
   19939       <generalDesc>
   19940         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
   19941         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
   19942       </generalDesc>
   19943       <!-- Example numbers provided by the Telecommunications Services. -->
   19944       <fixedLine>
   19945         <nationalNumberPattern>
   19946           0549(?:
   19947             8[0157-9]|
   19948             9\d
   19949           )\d{4}
   19950         </nationalNumberPattern>
   19951         <exampleNumber>0549886377</exampleNumber>
   19952       </fixedLine>
   19953       <mobile>
   19954         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
   19955         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19956         <exampleNumber>66661212</exampleNumber>
   19957       </mobile>
   19958       <premiumRate>
   19959         <!-- Includes Video Call numbers. -->
   19960         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
   19961         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19962         <exampleNumber>71123456</exampleNumber>
   19963       </premiumRate>
   19964       <voip>
   19965         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
   19966         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   19967         <exampleNumber>58001110</exampleNumber>
   19968       </voip>
   19969     </territory>
   19970 
   19971     <!-- Senegal -->
   19972     <!-- http://www.itu.int/oth/T02020000B8/en -->
   19973     <territory id="SN" countryCode="221" internationalPrefix="00">
   19974       <availableFormats>
   19975         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
   19976              the national numbering plan. -->
   19977         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
   19978           <format>$1 $2 $3 $4</format>
   19979         </numberFormat>
   19980       </availableFormats>
   19981       <generalDesc>
   19982         <nationalNumberPattern>[37]\d{8}</nationalNumberPattern>
   19983         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   19984       </generalDesc>
   19985       <fixedLine>
   19986         <nationalNumberPattern>
   19987           3(?:
   19988             0(?:
   19989               1[01]|
   19990               80
   19991             )|
   19992             3(?:
   19993               8[1-9]|
   19994               9[2-9]
   19995             )
   19996           )\d{5}
   19997         </nationalNumberPattern>
   19998         <exampleNumber>301012345</exampleNumber>
   19999       </fixedLine>
   20000       <mobile>
   20001         <nationalNumberPattern>
   20002           7(?:
   20003             0(?:
   20004               [01279]0|
   20005               3[03]|
   20006               4[05]|
   20007               5[06]|
   20008               6[03-5]|
   20009               8[029]
   20010             )|
   20011             6(?:
   20012               1[23]|
   20013               2[89]|
   20014               3[3489]|
   20015               4[6-9]|
   20016               5\d|
   20017               6[3-9]|
   20018               7[45]|
   20019               8[3-8]
   20020             )|
   20021             7\d{2}|
   20022             8(?:
   20023               01|
   20024               1[01]
   20025             )
   20026           )\d{5}
   20027         </nationalNumberPattern>
   20028         <exampleNumber>701012345</exampleNumber>
   20029       </mobile>
   20030       <voip>
   20031         <nationalNumberPattern>33301\d{4}</nationalNumberPattern>
   20032         <exampleNumber>333011234</exampleNumber>
   20033       </voip>
   20034     </territory>
   20035 
   20036     <!-- Somalia -->
   20037     <!-- http://www.itu.int/oth/T02020000C0/en -->
   20038     <!-- http://en.wikipedia.org/wiki/+252 -->
   20039     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
   20040          information available, and the numerous telecom carriers were previously working under an
   20041          unregulated environment. The extra prefixes were added from the contact phone numbers of
   20042          the countries main telecom operators. We also have received information that a national
   20043          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
   20044          for some operators, so that is included here although we do not use it when formatting. -->
   20045     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
   20046       <availableFormats>
   20047         <!-- These follow formats online, such as www.hortel.net/contact_us.html -->
   20048         <numberFormat pattern="(\d)(\d{6})">
   20049           <leadingDigits>
   20050             2[0-79]|
   20051             [13-5]
   20052           </leadingDigits>
   20053           <format>$1 $2</format>
   20054         </numberFormat>
   20055         <numberFormat pattern="(\d)(\d{7})">
   20056           <leadingDigits>
   20057             24|
   20058             [67]
   20059           </leadingDigits>
   20060           <format>$1 $2</format>
   20061         </numberFormat>
   20062         <numberFormat pattern="(\d{2})(\d{5,7})">
   20063           <leadingDigits>
   20064             15|
   20065             28|
   20066             6[1378]|
   20067             9
   20068           </leadingDigits>
   20069           <format>$1 $2</format>
   20070         </numberFormat>
   20071         <numberFormat pattern="(69\d)(\d{6})">
   20072           <leadingDigits>69</leadingDigits>
   20073           <format>$1 $2</format>
   20074         </numberFormat>
   20075       </availableFormats>
   20076       <generalDesc>
   20077         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
   20078         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   20079       </generalDesc>
   20080       <fixedLine>
   20081         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
   20082              here since that is apparently used for mobile. -->
   20083         <nationalNumberPattern>
   20084           (?:
   20085             [134]\d|
   20086             2[0-79]|
   20087             5[57-9]
   20088           )\d{5}
   20089         </nationalNumberPattern>
   20090         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20091         <!-- Example numbers are test numbers from the document. -->
   20092         <exampleNumber>5522010</exampleNumber>
   20093       </fixedLine>
   20094       <mobile>
   20095         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
   20096              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
   20097              Somtel. 6 followed by only 7 digits is used by Telecom. We have received information
   20098              from Golis Telecom that 90 numbers are extended by 1 digit by becoming 907.
   20099              Note that the ITU update of Apr. 2013 suggests there is a longer 707 XXX XXX range for
   20100              mobile, but the document is not self consistent, so this is probably a typo. 63 was
   20101              found in numbers online. -->
   20102         <nationalNumberPattern>
   20103           (?:
   20104             15\d|
   20105             2(?:
   20106               4\d|
   20107               8
   20108             )|
   20109             6[137-9]?\d{2}|
   20110             7\d{2}|
   20111             9(?:
   20112               07|
   20113               [19]
   20114             )\d
   20115           )\d{5}
   20116         </nationalNumberPattern>
   20117         <exampleNumber>907792024</exampleNumber>
   20118       </mobile>
   20119     </territory>
   20120 
   20121     <!-- Suriname -->
   20122     <!-- http://www.itu.int/oth/T02020000C5/en -->
   20123     <territory id="SR" countryCode="597" internationalPrefix="00">
   20124       <availableFormats>
   20125         <!-- Following conventions used in the Suriname Yellow Pages. -->
   20126         <numberFormat pattern="(\d{3})(\d{3})">
   20127           <leadingDigits>
   20128             [2-4]|
   20129             5[2-58]
   20130           </leadingDigits>
   20131           <format>$1-$2</format>
   20132         </numberFormat>
   20133         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   20134           <leadingDigits>56</leadingDigits>
   20135           <format>$1-$2-$3</format>
   20136         </numberFormat>
   20137         <numberFormat pattern="(\d{3})(\d{4})">
   20138           <leadingDigits>[6-8]</leadingDigits>
   20139           <format>$1-$2</format>
   20140         </numberFormat>
   20141       </availableFormats>
   20142       <generalDesc>
   20143         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
   20144         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   20145       </generalDesc>
   20146       <fixedLine>
   20147         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
   20148         <nationalNumberPattern>
   20149           (?:
   20150             2[1-3]|
   20151             3[0-7]|
   20152             4\d|
   20153             5[2-58]|
   20154             68\d
   20155           )\d{4}
   20156         </nationalNumberPattern>
   20157         <exampleNumber>211234</exampleNumber>
   20158       </fixedLine>
   20159       <mobile>
   20160         <!-- Adding 74 from numbers found online. -->
   20161         <nationalNumberPattern>
   20162           (?:
   20163             7[1-57]|
   20164             8[1-9]
   20165           )\d{5}
   20166         </nationalNumberPattern>
   20167         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20168         <exampleNumber>7412345</exampleNumber>
   20169       </mobile>
   20170       <voip>
   20171         <nationalNumberPattern>56\d{4}</nationalNumberPattern>
   20172         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   20173         <exampleNumber>561234</exampleNumber>
   20174       </voip>
   20175     </territory>
   20176 
   20177     <!-- South Sudan -->
   20178     <!-- http://www.itu.int/oth/T02020000F9/en -->
   20179     <!-- http://en.wikipedia.org/wiki/+211 -->
   20180     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
   20181       <availableFormats>
   20182         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
   20183           <format>$1 $2 $3</format>
   20184         </numberFormat>
   20185       </availableFormats>
   20186       <generalDesc>
   20187         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
   20188         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20189       </generalDesc>
   20190       <fixedLine>
   20191         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
   20192         <exampleNumber>181234567</exampleNumber>
   20193       </fixedLine>
   20194       <mobile>
   20195         <nationalNumberPattern>
   20196           (?:
   20197             12|
   20198             9[1257]
   20199           )\d{7}
   20200         </nationalNumberPattern>
   20201         <exampleNumber>977123456</exampleNumber>
   20202       </mobile>
   20203     </territory>
   20204 
   20205     <!-- Sao Tome and Principe -->
   20206     <!-- http://www.itu.int/oth/T02020000B6/en -->
   20207     <territory id="ST" countryCode="239" internationalPrefix="00">
   20208       <availableFormats>
   20209         <numberFormat pattern="(\d{3})(\d{4})">
   20210           <format>$1 $2</format>
   20211         </numberFormat>
   20212       </availableFormats>
   20213       <generalDesc>
   20214         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
   20215         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20216       </generalDesc>
   20217       <fixedLine>
   20218         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
   20219         <exampleNumber>2221234</exampleNumber>
   20220       </fixedLine>
   20221       <mobile>
   20222         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
   20223         <exampleNumber>9812345</exampleNumber>
   20224       </mobile>
   20225     </territory>
   20226 
   20227     <!-- El Salvador -->
   20228     <!-- http://www.itu.int/oth/T020200003F/en -->
   20229     <!-- http://www.siget.gob.sv/BusquedaPublica.aspx?pagina=3&tipo=27&titulo=t8§or=2&ordenar=&dir=DESC
   20230          -->
   20231     <territory id="SV" countryCode="503" internationalPrefix="00">
   20232       <availableFormats>
   20233         <numberFormat pattern="(\d{4})(\d{4})">
   20234           <leadingDigits>[267]</leadingDigits>
   20235           <format>$1 $2</format>
   20236         </numberFormat>
   20237         <numberFormat pattern="(\d{3})(\d{4})">
   20238           <leadingDigits>[89]</leadingDigits>
   20239           <format>$1 $2</format>
   20240         </numberFormat>
   20241         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
   20242           <leadingDigits>[89]</leadingDigits>
   20243           <format>$1 $2 $3</format>
   20244         </numberFormat>
   20245       </availableFormats>
   20246       <generalDesc>
   20247         <nationalNumberPattern>
   20248           [267]\d{7}|
   20249           [89]\d{6}(?:\d{4})?
   20250         </nationalNumberPattern>
   20251         <possibleNumberPattern>
   20252           \d{7,8}|
   20253           \d{11}
   20254         </possibleNumberPattern>
   20255       </generalDesc>
   20256       <fixedLine>
   20257         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
   20258         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
   20259         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20260         <exampleNumber>21234567</exampleNumber>
   20261       </fixedLine>
   20262       <mobile>
   20263         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
   20264         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20265         <exampleNumber>70123456</exampleNumber>
   20266       </mobile>
   20267       <tollFree>
   20268         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
   20269         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
   20270         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
   20271         <exampleNumber>8001234</exampleNumber>
   20272       </tollFree>
   20273       <premiumRate>
   20274         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
   20275         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
   20276         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
   20277         <exampleNumber>9001234</exampleNumber>
   20278       </premiumRate>
   20279     </territory>
   20280 
   20281     <!-- Sint Maarten -->
   20282     <!-- http://www.nanpa.com/pdf/PL_429.pdf -->
   20283     <!-- http://www.itu.int/oth/T02020000F7/en -->
   20284     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
   20285                internationalPrefix="011">
   20286       <generalDesc>
   20287         <!-- NANPA country - uses US formatting rules -->
   20288         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
   20289         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   20290       </generalDesc>
   20291       <fixedLine>
   20292         <nationalNumberPattern>
   20293           7215(?:
   20294             4[2-8]|
   20295             8[239]|
   20296             9[056]
   20297           )\d{4}
   20298         </nationalNumberPattern>
   20299         <exampleNumber>7215425678</exampleNumber>
   20300       </fixedLine>
   20301       <mobile>
   20302         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
   20303              include these as mobile numbers. -->
   20304         <nationalNumberPattern>
   20305           7215(?:
   20306             1[02]|
   20307             2\d|
   20308             5[034679]|
   20309             8[014-8]
   20310           )\d{4}
   20311         </nationalNumberPattern>
   20312         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20313         <exampleNumber>7215205678</exampleNumber>
   20314       </mobile>
   20315       <tollFree>
   20316         <nationalNumberPattern>
   20317           8(?:
   20318             00|
   20319             55|
   20320             66|
   20321             77|
   20322             88
   20323           )[2-9]\d{6}
   20324         </nationalNumberPattern>
   20325         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20326         <exampleNumber>8002123456</exampleNumber>
   20327       </tollFree>
   20328       <premiumRate>
   20329         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   20330         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20331         <exampleNumber>9002123456</exampleNumber>
   20332       </premiumRate>
   20333       <personalNumber>
   20334         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   20335         <nationalNumberPattern>
   20336           5(?:
   20337             00|
   20338             33|
   20339             44
   20340           )[2-9]\d{6}
   20341         </nationalNumberPattern>
   20342         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20343         <exampleNumber>5002345678</exampleNumber>
   20344       </personalNumber>
   20345     </territory>
   20346 
   20347     <!-- Syrian Arab Republic -->
   20348     <!-- http://www.itu.int/oth/T02020000C9/en -->
   20349     <!-- http://en.wikipedia.org/wiki/%2B963 -->
   20350     <territory id="SY" countryCode="963" internationalPrefix="00"
   20351                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   20352                nationalPrefixOptionalWhenFormatting="true">
   20353       <availableFormats>
   20354         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
   20355           <leadingDigits>[1-5]</leadingDigits>
   20356           <format>$1 $2 $3</format>
   20357         </numberFormat>
   20358         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
   20359           <leadingDigits>9</leadingDigits>
   20360           <format>$1 $2 $3</format>
   20361         </numberFormat>
   20362       </availableFormats>
   20363       <generalDesc>
   20364         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
   20365         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   20366       </generalDesc>
   20367       <fixedLine>
   20368         <nationalNumberPattern>
   20369           (?:
   20370             1(?:
   20371               1\d?|
   20372               4\d|
   20373               [2356]
   20374             )|
   20375             2[1-35]|
   20376             3(?:
   20377               [13]\d|
   20378               4
   20379             )|
   20380             4[13]|
   20381             5[1-3]
   20382           )\d{6}
   20383         </nationalNumberPattern>
   20384         <exampleNumber>112345678</exampleNumber>
   20385       </fixedLine>
   20386       <mobile>
   20387         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
   20388              95[138], and 96[05]. -->
   20389         <nationalNumberPattern>
   20390           9(?:
   20391             22|
   20392             [35][0-8]|
   20393             4\d|
   20394             6[024-9]|
   20395             88|
   20396             9[0-489]
   20397           )\d{6}
   20398         </nationalNumberPattern>
   20399         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20400         <exampleNumber>944567890</exampleNumber>
   20401       </mobile>
   20402       <!-- No tollFree or premiumRate information can be found. -->
   20403     </territory>
   20404 
   20405     <!-- Swaziland -->
   20406     <!-- http://www.itu.int/oth/T02020000C6/en -->
   20407     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
   20408       <availableFormats>
   20409         <numberFormat pattern="(\d{4})(\d{4})">
   20410           <leadingDigits>[027]</leadingDigits>
   20411           <format>$1 $2</format>
   20412         </numberFormat>
   20413       </availableFormats>
   20414       <generalDesc>
   20415         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
   20416         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20417       </generalDesc>
   20418       <noInternationalDialling>
   20419         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
   20420         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20421         <exampleNumber>08001234</exampleNumber>
   20422       </noInternationalDialling>
   20423       <fixedLine>
   20424         <nationalNumberPattern>
   20425           2(?:
   20426             2(?:
   20427               0[07]|
   20428               [13]7|
   20429               2[57]
   20430             )|
   20431             3(?:
   20432               0[34]|
   20433               [1278]3|
   20434               3[23]|
   20435               [46][34]
   20436             )|
   20437             (?:
   20438               40[4-69]|
   20439               67
   20440             )|
   20441             5(?:
   20442               0[5-7]|
   20443               1[6-9]|
   20444               [23][78]|
   20445               48|
   20446               5[01]
   20447             )
   20448           )\d{4}
   20449         </nationalNumberPattern>
   20450         <exampleNumber>22171234</exampleNumber>
   20451       </fixedLine>
   20452       <mobile>
   20453         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
   20454         <exampleNumber>76123456</exampleNumber>
   20455       </mobile>
   20456       <tollFree>
   20457         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
   20458         <exampleNumber>08001234</exampleNumber>
   20459       </tollFree>
   20460     </territory>
   20461 
   20462     <!-- Tristan da Cunha -->
   20463     <!-- http://www.itu.int/oth/T02020000AF/en -->
   20464     <territory id="TA" countryCode="290" internationalPrefix="00">
   20465       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
   20466       <generalDesc>
   20467         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
   20468         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   20469       </generalDesc>
   20470       <fixedLine>
   20471         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
   20472         <exampleNumber>8999</exampleNumber>
   20473       </fixedLine>
   20474       <mobile>
   20475         <nationalNumberPattern>NA</nationalNumberPattern>
   20476         <possibleNumberPattern>NA</possibleNumberPattern>
   20477       </mobile>
   20478     </territory>
   20479 
   20480     <!-- Turks and Caicos Islands -->
   20481     <!-- http://www.itu.int/oth/T02020000D8/en -->
   20482     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
   20483                internationalPrefix="011">
   20484       <generalDesc>
   20485         <!-- NANPA country - uses US formatting rules -->
   20486         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
   20487         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   20488       </generalDesc>
   20489       <fixedLine>
   20490         <nationalNumberPattern>
   20491           649(?:
   20492             712|
   20493             9(?:
   20494               4\d|
   20495               50
   20496             )
   20497           )\d{4}
   20498         </nationalNumberPattern>
   20499         <exampleNumber>6497121234</exampleNumber>
   20500       </fixedLine>
   20501       <mobile>
   20502         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
   20503         <nationalNumberPattern>
   20504           649(?:
   20505             2(?:
   20506               3[129]|
   20507               4[1-7]
   20508             )|
   20509             3(?:
   20510               3[1-389]|
   20511               4[1-7]
   20512             )|
   20513             4[34][12]
   20514           )\d{4}
   20515         </nationalNumberPattern>
   20516         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20517         <exampleNumber>6492311234</exampleNumber>
   20518       </mobile>
   20519       <tollFree>
   20520         <nationalNumberPattern>
   20521           8(?:
   20522             00|
   20523             55|
   20524             66|
   20525             77|
   20526             88
   20527           )[2-9]\d{6}
   20528         </nationalNumberPattern>
   20529         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20530         <exampleNumber>8002345678</exampleNumber>
   20531       </tollFree>
   20532       <premiumRate>
   20533         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   20534         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20535         <exampleNumber>9002345678</exampleNumber>
   20536       </premiumRate>
   20537       <personalNumber>
   20538         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   20539         <nationalNumberPattern>
   20540           5(?:
   20541             00|
   20542             33|
   20543             44
   20544           )[2-9]\d{6}
   20545         </nationalNumberPattern>
   20546         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20547         <exampleNumber>5002345678</exampleNumber>
   20548       </personalNumber>
   20549       <voip>
   20550         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
   20551         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20552         <exampleNumber>6497101234</exampleNumber>
   20553       </voip>
   20554     </territory>
   20555 
   20556     <!-- Chad -->
   20557     <!-- http://www.itu.int/oth/T0202000029/en -->
   20558     <!-- The international prefix includes 16 as the international manual exchange. -->
   20559     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
   20560                internationalPrefix="00|16">
   20561       <availableFormats>
   20562         <numberFormat
   20563           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   20564           <format>$1 $2 $3 $4</format>
   20565         </numberFormat>
   20566       </availableFormats>
   20567       <generalDesc>
   20568         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
   20569         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20570       </generalDesc>
   20571       <fixedLine>
   20572         <nationalNumberPattern>
   20573           22(?:
   20574             [3789]0|
   20575             5[0-5]|
   20576             6[89]
   20577           )\d{4}
   20578         </nationalNumberPattern>
   20579         <exampleNumber>22501234</exampleNumber>
   20580       </fixedLine>
   20581       <mobile>
   20582         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
   20583              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
   20584              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
   20585         <nationalNumberPattern>
   20586           (?:
   20587             6[02368]\d|
   20588             77\d|
   20589             9(?:
   20590               5[0-4]|
   20591               9\d
   20592             )
   20593           )\d{5}
   20594         </nationalNumberPattern>
   20595         <exampleNumber>63012345</exampleNumber>
   20596       </mobile>
   20597     </territory>
   20598 
   20599     <!-- French Southern Territories -->
   20600     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
   20601     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
   20602          temporary inhabitants. -->
   20603 
   20604     <!-- Togo -->
   20605     <!-- http://www.itu.int/oth/T02020000D1/en -->
   20606     <territory id="TG" countryCode="228" internationalPrefix="00">
   20607       <availableFormats>
   20608         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   20609           <format>$1 $2 $3 $4</format>
   20610         </numberFormat>
   20611       </availableFormats>
   20612       <generalDesc>
   20613         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
   20614         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20615       </generalDesc>
   20616       <fixedLine>
   20617         <nationalNumberPattern>
   20618           2(?:
   20619             2[2-7]|
   20620             3[23]|
   20621             44|
   20622             55|
   20623             66|
   20624             77
   20625           )\d{5}
   20626         </nationalNumberPattern>
   20627         <exampleNumber>22212345</exampleNumber>
   20628       </fixedLine>
   20629       <mobile>
   20630         <nationalNumberPattern>9[0-289]\d{6}</nationalNumberPattern>
   20631         <exampleNumber>90112345</exampleNumber>
   20632       </mobile>
   20633     </territory>
   20634 
   20635     <!-- Thailand -->
   20636     <!-- http://www.itu.int/oth/T02020000CD/en -->
   20637     <!-- http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf -->
   20638     <territory id="TH" countryCode="66" internationalPrefix="00"
   20639                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   20640                mobileNumberPortableRegion="true">
   20641       <availableFormats>
   20642         <!-- Formatting patterns from wikipedia and the document itself -
   20643              http://en.wikipedia.org/wiki/%2B66 -->
   20644         <numberFormat pattern="(2)(\d{3})(\d{4})">
   20645           <leadingDigits>2</leadingDigits>
   20646           <format>$1 $2 $3</format>
   20647         </numberFormat>
   20648         <numberFormat pattern="([3-9]\d)(\d{3})(\d{3,4})">
   20649           <leadingDigits>[3-9]</leadingDigits>
   20650           <format>$1 $2 $3</format>
   20651         </numberFormat>
   20652         <numberFormat nationalPrefixFormattingRule="$FG"
   20653           pattern="(1[89]00)(\d{3})(\d{3})">
   20654           <leadingDigits>1</leadingDigits>
   20655           <format>$1 $2 $3</format>
   20656         </numberFormat>
   20657       </availableFormats>
   20658       <generalDesc>
   20659         <nationalNumberPattern>
   20660           [2-9]\d{7,8}|
   20661           1\d{3}(?:\d{6})?
   20662         </nationalNumberPattern>
   20663         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
   20664       </generalDesc>
   20665       <noInternationalDialling>
   20666         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
   20667         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   20668         <exampleNumber>1100</exampleNumber>
   20669       </noInternationalDialling>
   20670       <fixedLine>
   20671         <nationalNumberPattern>
   20672           (?:
   20673             2[1-9]|
   20674             3[2-9]|
   20675             4[2-5]|
   20676             5[2-6]|
   20677             7[3-7]
   20678           )\d{6}
   20679         </nationalNumberPattern>
   20680         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20681         <exampleNumber>21234567</exampleNumber>
   20682       </fixedLine>
   20683       <mobile>
   20684         <nationalNumberPattern>[89]\d{8}</nationalNumberPattern>
   20685         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20686         <exampleNumber>812345678</exampleNumber>
   20687       </mobile>
   20688       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
   20689       <tollFree>
   20690         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
   20691         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20692         <exampleNumber>1800123456</exampleNumber>
   20693       </tollFree>
   20694       <premiumRate>
   20695         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
   20696         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   20697         <exampleNumber>1900123456</exampleNumber>
   20698       </premiumRate>
   20699       <voip>
   20700         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
   20701              online to suggest they are actually used as mobile numbers -->
   20702         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
   20703         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20704         <exampleNumber>601234567</exampleNumber>
   20705       </voip>
   20706       <uan>
   20707         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
   20708              their costs range from free to 6 Baht/min. -->
   20709         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
   20710         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   20711         <exampleNumber>1100</exampleNumber>
   20712       </uan>
   20713     </territory>
   20714 
   20715     <!-- Tajikistan -->
   20716     <!-- http://www.itu.int/oth/T02020000CA/en -->
   20717     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
   20718                internationalPrefix="810" nationalPrefix="8"
   20719                nationalPrefixFormattingRule="($NP) $FG"
   20720                nationalPrefixOptionalWhenFormatting="true">
   20721       <availableFormats>
   20722         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
   20723           <leadingDigits>
   20724             [34]7|
   20725             91[78]
   20726           </leadingDigits>
   20727           <format>$1 $2 $3</format>
   20728         </numberFormat>
   20729         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
   20730           <leadingDigits>
   20731             4[48]|
   20732             5|
   20733             9(?:
   20734               1[59]|
   20735               [0235-9]
   20736             )
   20737           </leadingDigits>
   20738           <format>$1 $2 $3</format>
   20739         </numberFormat>
   20740         <numberFormat pattern="(331700)(\d)(\d{2})">
   20741           <leadingDigits>331</leadingDigits>
   20742           <leadingDigits>3317</leadingDigits>
   20743           <leadingDigits>33170</leadingDigits>
   20744           <leadingDigits>331700</leadingDigits>
   20745           <format>$1 $2 $3</format>
   20746         </numberFormat>
   20747         <numberFormat pattern="(\d{4})(\d)(\d{4})">
   20748           <leadingDigits>3[1-5]</leadingDigits>
   20749           <leadingDigits>
   20750             3(?:
   20751               [1245]|
   20752               3(?:
   20753                 [02-9]|
   20754                 1[0-589]
   20755               )
   20756             )
   20757           </leadingDigits>
   20758           <format>$1 $2 $3</format>
   20759         </numberFormat>
   20760       </availableFormats>
   20761       <generalDesc>
   20762         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
   20763         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
   20764       </generalDesc>
   20765       <fixedLine>
   20766         <nationalNumberPattern>
   20767           (?:
   20768             3(?:
   20769               1[3-5]|
   20770               2[245]|
   20771               3[12]|
   20772               4[24-7]|
   20773               5[25]|
   20774               72
   20775             )|
   20776             4(?:
   20777               46|
   20778               74|
   20779               87
   20780             )
   20781           )\d{6}
   20782         </nationalNumberPattern>
   20783         <exampleNumber>372123456</exampleNumber>
   20784       </fixedLine>
   20785       <mobile>
   20786         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
   20787              numbers, and 501 for TCell. -->
   20788         <nationalNumberPattern>
   20789           (?:
   20790             50[15]|
   20791             9[0-35-9]\d
   20792           )\d{6}
   20793         </nationalNumberPattern>
   20794         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   20795         <exampleNumber>917123456</exampleNumber>
   20796       </mobile>
   20797       <!-- No tollFree or premiumRate information can be found. -->
   20798     </territory>
   20799 
   20800     <!-- Tokelau -->
   20801     <!-- http://www.itu.int/oth/T02020000D2/en -->
   20802     <territory id="TK" countryCode="690" internationalPrefix="00">
   20803       <generalDesc>
   20804         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
   20805         <possibleNumberPattern>\d{4}</possibleNumberPattern>
   20806       </generalDesc>
   20807       <fixedLine>
   20808         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
   20809         <!-- The example number is the contact number from the ITU document. -->
   20810         <exampleNumber>3010</exampleNumber>
   20811       </fixedLine>
   20812       <mobile>
   20813         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
   20814         <exampleNumber>5190</exampleNumber>
   20815       </mobile>
   20816     </territory>
   20817 
   20818     <!-- Timor-Leste (East Timor) -->
   20819     <!-- http://www.itu.int/oth/T02020000D0/en -->
   20820     <territory id="TL" countryCode="670" internationalPrefix="00">
   20821       <availableFormats>
   20822         <numberFormat pattern="(\d{3})(\d{4})">
   20823           <leadingDigits>[2-489]</leadingDigits>
   20824           <format>$1 $2</format>
   20825         </numberFormat>
   20826         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
   20827              them. If we see another pattern being used, we should change this later. -->
   20828         <numberFormat pattern="(\d{4})(\d{4})">
   20829           <leadingDigits>7</leadingDigits>
   20830           <format>$1 $2</format>
   20831         </numberFormat>
   20832       </availableFormats>
   20833       <generalDesc>
   20834         <nationalNumberPattern>
   20835           [2-489]\d{6}|
   20836           7\d{6,7}
   20837         </nationalNumberPattern>
   20838         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   20839       </generalDesc>
   20840       <fixedLine>
   20841         <nationalNumberPattern>
   20842           (?:
   20843             2[1-5]|
   20844             3[1-9]|
   20845             4[1-4]
   20846           )\d{5}
   20847         </nationalNumberPattern>
   20848         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20849         <exampleNumber>2112345</exampleNumber>
   20850       </fixedLine>
   20851       <mobile>
   20852         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
   20853         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20854         <exampleNumber>77212345</exampleNumber>
   20855       </mobile>
   20856       <tollFree>
   20857         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
   20858         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20859         <exampleNumber>8012345</exampleNumber>
   20860       </tollFree>
   20861       <premiumRate>
   20862         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
   20863         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20864         <exampleNumber>9012345</exampleNumber>
   20865       </premiumRate>
   20866       <!-- We don't include paging or voicemail because the identified paging range was used by
   20867            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
   20868            numbers, or if the range was indeed previously used for voicemail at all. -->
   20869       <personalNumber>
   20870         <!-- We presume this wasn't affected by the numbering plan update. -->
   20871         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
   20872         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   20873         <exampleNumber>7012345</exampleNumber>
   20874       </personalNumber>
   20875     </territory>
   20876 
   20877     <!-- Turkmenistan -->
   20878     <!-- http://www.itu.int/oth/T02020000D7/en -->
   20879     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan -->
   20880     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
   20881                internationalPrefix="810" nationalPrefix="8"
   20882                nationalPrefixFormattingRule="($NP $FG)">
   20883       <availableFormats>
   20884         <!-- There doesn't seem to be a standardized format. The format below is based on the
   20885              Turkmenistan embassy at
   20886              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
   20887           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
   20888             <leadingDigits>12</leadingDigits>
   20889             <format>$1 $2-$3-$4</format>
   20890           </numberFormat>
   20891           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
   20892             <leadingDigits>6</leadingDigits>
   20893             <format>$1 $2</format>
   20894           </numberFormat>
   20895           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
   20896             <leadingDigits>
   20897               13|
   20898               [2-5]
   20899             </leadingDigits>
   20900             <format>$1 $2-$3-$4</format>
   20901           </numberFormat>
   20902       </availableFormats>
   20903       <generalDesc>
   20904         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
   20905         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20906       </generalDesc>
   20907       <fixedLine>
   20908         <!-- Additional prefixes from the wikipedia page. -->
   20909         <nationalNumberPattern>
   20910           (?:
   20911             1(?:
   20912               2\d|
   20913               3[1-9]
   20914             )|
   20915             2(?:
   20916               22|
   20917               4[0-35-8]
   20918             )|
   20919             3(?:
   20920               22|
   20921               4[03-9]
   20922             )|
   20923             4(?:
   20924               22|
   20925               3[128]|
   20926               4\d|
   20927               6[15]
   20928             )|
   20929             5(?:
   20930               22|
   20931               5[7-9]|
   20932               6[014-689]
   20933             )
   20934           )\d{5}
   20935         </nationalNumberPattern>
   20936         <exampleNumber>12345678</exampleNumber>
   20937       </fixedLine>
   20938       <mobile>
   20939         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
   20940              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
   20941              has been suspended. It is unclear whether it will resume. We support both ranges in the
   20942              meantime. -->
   20943         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
   20944         <exampleNumber>66123456</exampleNumber>
   20945       </mobile>
   20946       <!-- No tollFree or premiumRate information can be found. -->
   20947     </territory>
   20948 
   20949     <!-- Tunisia -->
   20950     <!-- http://www.itu.int/oth/T02020000D5/en -->
   20951     <territory id="TN" countryCode="216" internationalPrefix="00">
   20952       <availableFormats>
   20953         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
   20954           <format>$1 $2 $3</format>
   20955         </numberFormat>
   20956       </availableFormats>
   20957       <generalDesc>
   20958         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
   20959         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   20960       </generalDesc>
   20961       <fixedLine>
   20962         <!-- We support the whole 81 prefix here instead of just 81200 as
   20963              indicated in the ITU doc, as more real phone numbers have been
   20964              found online. -->
   20965         <nationalNumberPattern>
   20966           (?:
   20967             3[012]|
   20968             7\d|
   20969             81
   20970           )\d{6}
   20971         </nationalNumberPattern>
   20972         <exampleNumber>71234567</exampleNumber>
   20973       </fixedLine>
   20974       <mobile>
   20975         <nationalNumberPattern>
   20976           (?:
   20977             [259]\d|
   20978             4[0-2]
   20979           )\d{6}
   20980         </nationalNumberPattern>
   20981         <exampleNumber>20123456</exampleNumber>
   20982       </mobile>
   20983       <!-- These are listed as 'value added services' - pending further information, we add them
   20984            here for now. -->
   20985       <premiumRate>
   20986         <nationalNumberPattern>8[028]\d{6}</nationalNumberPattern>
   20987         <exampleNumber>80123456</exampleNumber>
   20988       </premiumRate>
   20989     </territory>
   20990 
   20991     <!-- Tonga -->
   20992     <!-- http://www.itu.int/oth/T02020000D3/en -->
   20993     <!-- http://www.wtng.info/wtng-676-to.html -->
   20994     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
   20995       <availableFormats>
   20996         <numberFormat pattern="(\d{2})(\d{3})">
   20997           <leadingDigits>
   20998             [1-6]|
   20999             7[0-4]|
   21000             8[05]
   21001           </leadingDigits>
   21002           <format>$1-$2</format>
   21003         </numberFormat>
   21004         <numberFormat pattern="(\d{3})(\d{4})">
   21005           <leadingDigits>
   21006             7[5-9]|
   21007             8[7-9]
   21008           </leadingDigits>
   21009           <format>$1 $2</format>
   21010         </numberFormat>
   21011         <numberFormat pattern="(\d{4})(\d{3})">
   21012           <leadingDigits>0</leadingDigits>
   21013           <format>$1 $2</format>
   21014         </numberFormat>
   21015       </availableFormats>
   21016       <generalDesc>
   21017         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
   21018         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   21019       </generalDesc>
   21020       <fixedLine>
   21021         <nationalNumberPattern>
   21022           (?:
   21023             2\d|
   21024             3[1-8]|
   21025             4[1-4]|
   21026             [56]0|
   21027             7[0149]|
   21028             8[05]
   21029           )\d{3}
   21030         </nationalNumberPattern>
   21031         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   21032         <exampleNumber>20123</exampleNumber>
   21033       </fixedLine>
   21034       <mobile>
   21035         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
   21036              in their ITU document. Numbers with a prefix of "75" have also been found. -->
   21037         <nationalNumberPattern>
   21038           (?:
   21039             7[578]|
   21040             8[7-9]
   21041           )\d{5}
   21042         </nationalNumberPattern>
   21043         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   21044         <exampleNumber>7715123</exampleNumber>
   21045       </mobile>
   21046       <tollFree>
   21047         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
   21048         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   21049         <exampleNumber>0800222</exampleNumber>
   21050       </tollFree>
   21051     </territory>
   21052 
   21053     <!-- Turkey -->
   21054     <!-- http://en.wikipedia.org/wiki/%2B90 -->
   21055     <!-- http://www.itu.int/oth/T02020000D6/en -->
   21056     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0"
   21057                mobileNumberPortableRegion="true">
   21058       <availableFormats>
   21059         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
   21060           nationalPrefixOptionalWhenFormatting="true">
   21061           <leadingDigits>
   21062             [23]|
   21063             4(?:
   21064               [0-35-9]|
   21065               4[0-35-9]
   21066             )
   21067           </leadingDigits>
   21068           <format>$1 $2 $3</format>
   21069         </numberFormat>
   21070         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
   21071           nationalPrefixOptionalWhenFormatting="true">
   21072           <leadingDigits>[589]</leadingDigits>
   21073           <format>$1 $2 $3</format>
   21074         </numberFormat>
   21075         <numberFormat pattern="(444)(\d{1})(\d{3})">
   21076           <leadingDigits>444</leadingDigits>
   21077           <format>$1 $2 $3</format>
   21078         </numberFormat>
   21079       </availableFormats>
   21080       <generalDesc>
   21081         <nationalNumberPattern>
   21082           [2-589]\d{9}|
   21083           444\d{4}
   21084         </nationalNumberPattern>
   21085         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   21086       </generalDesc>
   21087       <noInternationalDialling>
   21088         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
   21089         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   21090         <exampleNumber>4441444</exampleNumber>
   21091       </noInternationalDialling>
   21092       <fixedLine>
   21093         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
   21094         <nationalNumberPattern>
   21095           (?:
   21096             2(?:
   21097               [13][26]|
   21098               [28][2468]|
   21099               [45][268]|
   21100               [67][246]
   21101             )|
   21102             3(?:
   21103               [13][28]|
   21104               [24-6][2468]|
   21105               [78][02468]|
   21106               92
   21107             )|
   21108             4(?:
   21109               [16][246]|
   21110               [23578][2468]|
   21111               4[26]
   21112             )
   21113           )\d{7}
   21114         </nationalNumberPattern>
   21115         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21116         <exampleNumber>2123456789</exampleNumber>
   21117       </fixedLine>
   21118       <mobile>
   21119         <!-- There are some differences between the Turkish and English wikipedia pages here, and
   21120              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
   21121              509 from the English page because of this. -->
   21122         <nationalNumberPattern>
   21123           5(?:
   21124             0[1-7]|
   21125             22|
   21126             [34]\d|
   21127             5[1-59]|
   21128             9[246]
   21129           )\d{7}
   21130         </nationalNumberPattern>
   21131         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21132         <exampleNumber>5012345678</exampleNumber>
   21133       </mobile>
   21134       <pager>
   21135         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
   21136         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21137         <exampleNumber>5123456789</exampleNumber>
   21138       </pager>
   21139       <tollFree>
   21140         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   21141         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21142         <exampleNumber>8001234567</exampleNumber>
   21143       </tollFree>
   21144       <premiumRate>
   21145         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   21146         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21147         <exampleNumber>9001234567</exampleNumber>
   21148       </premiumRate>
   21149       <uan>
   21150         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
   21151         <nationalNumberPattern>
   21152           444\d{4}|
   21153           850\d{7}
   21154         </nationalNumberPattern>
   21155         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   21156         <exampleNumber>4441444</exampleNumber>
   21157       </uan>
   21158     </territory>
   21159 
   21160     <!-- Trinidad and Tobago -->
   21161     <!-- http://www.itu.int/oth/T02020000D4/en -->
   21162     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
   21163                internationalPrefix="011">
   21164       <generalDesc>
   21165         <!-- NANPA country - uses US formatting rules -->
   21166         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
   21167         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   21168       </generalDesc>
   21169       <fixedLine>
   21170         <nationalNumberPattern>
   21171           868(?:
   21172             2(?:
   21173               01|
   21174               2[1-5]
   21175             )|
   21176             6(?:
   21177               07|
   21178               1[4-6]|
   21179               2[1-9]|
   21180               [3-6]\d|
   21181               7[0-79]|
   21182               9[0-8]
   21183             )|
   21184             82[12]
   21185           )\d{4}
   21186         </nationalNumberPattern>
   21187         <exampleNumber>8682211234</exampleNumber>
   21188       </fixedLine>
   21189       <mobile>
   21190         <!-- Adding 48X & 70X from the IR21 published by TSTT. -->
   21191         <nationalNumberPattern>
   21192           868(?:
   21193             2(?:
   21194               8[59]|
   21195               9\d
   21196             )|
   21197             3(?:
   21198               0[1-9]|
   21199               1[02-9]|
   21200               [2-9]\d
   21201             )|
   21202             4[6-9]\d|
   21203             6(?:
   21204               20|
   21205               78|
   21206               8\d
   21207             )|
   21208             7(?:
   21209               1[02-9]|
   21210               [02-9]\d
   21211             )
   21212           )\d{4}
   21213         </nationalNumberPattern>
   21214         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21215         <exampleNumber>8682911234</exampleNumber>
   21216       </mobile>
   21217       <tollFree>
   21218         <nationalNumberPattern>
   21219           8(?:
   21220             00|
   21221             55|
   21222             66|
   21223             77|
   21224             88
   21225           )[2-9]\d{6}
   21226         </nationalNumberPattern>
   21227         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21228         <exampleNumber>8002345678</exampleNumber>
   21229       </tollFree>
   21230       <premiumRate>
   21231         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   21232         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21233         <exampleNumber>9002345678</exampleNumber>
   21234       </premiumRate>
   21235       <personalNumber>
   21236         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   21237         <nationalNumberPattern>
   21238           5(?:
   21239             00|
   21240             33|
   21241             44
   21242           )[2-9]\d{6}
   21243         </nationalNumberPattern>
   21244         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21245         <exampleNumber>5002345678</exampleNumber>
   21246       </personalNumber>
   21247     </territory>
   21248 
   21249     <!-- Tuvalu -->
   21250     <!-- http://www.itu.int/oth/T02020000D9/en -->
   21251     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu -->
   21252     <territory id="TV" countryCode="688" internationalPrefix="00">
   21253       <!-- Numbers are formatted as a block. -->
   21254       <generalDesc>
   21255         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
   21256         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
   21257       </generalDesc>
   21258       <fixedLine>
   21259         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
   21260         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   21261         <exampleNumber>20123</exampleNumber>
   21262       </fixedLine>
   21263       <mobile>
   21264         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
   21265              don't know if these are valid or not - the ITU document excludes them - so are not
   21266              covering these for now. -->
   21267         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
   21268         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   21269         <exampleNumber>901234</exampleNumber>
   21270       </mobile>
   21271     </territory>
   21272 
   21273     <!-- Taiwan, China -->
   21274     <!-- http://www.itu.int/oth/T02020000EB/en -->
   21275     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
   21276          chosen as the preferred extension prefix. -->
   21277     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
   21278                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG"
   21279                mobileNumberPortableRegion="true">
   21280       <availableFormats>
   21281         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
   21282           <leadingDigits>
   21283             [2-7]|
   21284             8[1-9]
   21285           </leadingDigits>
   21286           <format>$1 $2 $3</format>
   21287         </numberFormat>
   21288         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
   21289           <leadingDigits>
   21290             80|
   21291             9
   21292           </leadingDigits>
   21293           <format>$1 $2 $3</format>
   21294         </numberFormat>
   21295       </availableFormats>
   21296       <generalDesc>
   21297         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
   21298         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   21299       </generalDesc>
   21300       <fixedLine>
   21301         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
   21302         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
   21303         <exampleNumber>21234567</exampleNumber>
   21304       </fixedLine>
   21305       <mobile>
   21306         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
   21307         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21308         <exampleNumber>912345678</exampleNumber>
   21309       </mobile>
   21310       <tollFree>
   21311         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   21312         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21313         <exampleNumber>800123456</exampleNumber>
   21314       </tollFree>
   21315       <premiumRate>
   21316         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
   21317         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21318         <exampleNumber>900123456</exampleNumber>
   21319       </premiumRate>
   21320     </territory>
   21321 
   21322     <!-- Tanzania -->
   21323     <!-- http://www.itu.int/oth/T02020000CB/en -->
   21324     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
   21325                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   21326       <availableFormats>
   21327         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
   21328           <leadingDigits>[24]</leadingDigits>
   21329           <format>$1 $2 $3</format>
   21330         </numberFormat>
   21331         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
   21332           <leadingDigits>[67]</leadingDigits>
   21333           <format>$1 $2 $3</format>
   21334         </numberFormat>
   21335         <!-- Formatting for special numbers from www.tcra.go.tz -->
   21336         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
   21337           <leadingDigits>[89]</leadingDigits>
   21338           <format>$1 $2 $3</format>
   21339         </numberFormat>
   21340       </availableFormats>
   21341       <generalDesc>
   21342         <nationalNumberPattern>\d{9}</nationalNumberPattern>
   21343         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   21344       </generalDesc>
   21345       <fixedLine>
   21346         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
   21347         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   21348         <exampleNumber>222345678</exampleNumber>
   21349       </fixedLine>
   21350       <mobile>
   21351         <nationalNumberPattern>
   21352           (?:
   21353             6[158]|
   21354             7[1-9]
   21355           )\d{7}
   21356         </nationalNumberPattern>
   21357         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21358         <exampleNumber>612345678</exampleNumber>
   21359       </mobile>
   21360       <tollFree>
   21361         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
   21362         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21363         <exampleNumber>800123456</exampleNumber>
   21364       </tollFree>
   21365       <premiumRate>
   21366         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
   21367         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21368         <exampleNumber>900123456</exampleNumber>
   21369       </premiumRate>
   21370       <sharedCost>
   21371         <nationalNumberPattern>
   21372           8(?:
   21373             40|
   21374             6[01]
   21375           )\d{6}
   21376         </nationalNumberPattern>
   21377         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21378         <exampleNumber>840123456</exampleNumber>
   21379       </sharedCost>
   21380       <voip>
   21381         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
   21382         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21383         <exampleNumber>412345678</exampleNumber>
   21384       </voip>
   21385     </territory>
   21386 
   21387     <!-- Ukraine -->
   21388     <!-- http://www.itu.int/oth/T02020000DB/en -->
   21389     <!-- http://en.wikipedia.org/wiki/%2B380 -->
   21390     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
   21391                internationalPrefix="00"
   21392                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   21393       <availableFormats>
   21394         <!-- City codes separated out. No definitive list has been found of what constitutes the
   21395              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
   21396              Have used local yellow pages guidelines, Google searches and regression tests to
   21397              reverse-engineer these rules as well as bugs. -->
   21398         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
   21399           <leadingDigits>
   21400             [38]9|
   21401             4(?:
   21402               [45][0-5]|
   21403               87
   21404             )|
   21405             5(?:
   21406               0|
   21407               6[37]|
   21408               7[37]
   21409             )|
   21410             6[36-8]|
   21411             9[1-9]
   21412           </leadingDigits>
   21413           <leadingDigits>
   21414             [38]9|
   21415             4(?:
   21416               [45][0-5]|
   21417               87
   21418             )|
   21419             5(?:
   21420               0|
   21421               6(?:
   21422                 3[14-7]|
   21423                 7
   21424               )|
   21425               7[37]
   21426             )|
   21427             6[36-8]|
   21428             9[1-9]
   21429           </leadingDigits>
   21430           <format>$1 $2 $3</format>
   21431         </numberFormat>
   21432         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
   21433           <leadingDigits>
   21434             3[1-8]2|
   21435             4[13678]2|
   21436             5(?:
   21437               [12457]2|
   21438               6[24]
   21439             )|
   21440             6(?:
   21441               [49]2|
   21442               [12][29]|
   21443               5[24]
   21444             )|
   21445             8[0-8]|
   21446             90
   21447           </leadingDigits>
   21448           <leadingDigits>
   21449             3(?:
   21450               [1-46-8]2[013-9]|
   21451               52
   21452             )|
   21453             4(?:
   21454               [1378]2|
   21455               62[013-9]
   21456             )|
   21457             5(?:
   21458               [12457]2|
   21459               6[24]
   21460             )|
   21461             6(?:
   21462               [49]2|
   21463               [12][29]|
   21464               5[24]
   21465             )|
   21466             8[0-8]|
   21467             90
   21468           </leadingDigits>
   21469           <format>$1 $2 $3</format>
   21470         </numberFormat>
   21471         <numberFormat pattern="([3-6]\d{3})(\d{5})">
   21472           <leadingDigits>
   21473             3(?:
   21474               5[013-9]|
   21475               [1-46-8]
   21476             )|
   21477             4(?:
   21478               [137][013-9]|
   21479               6|
   21480               [45][6-9]|
   21481               8[4-6]
   21482             )|
   21483             5(?:
   21484               [1245][013-9]|
   21485               6[0135-9]|
   21486               3|
   21487               7[4-6]
   21488             )|
   21489             6(?:
   21490               [49][013-9]|
   21491               5[0135-9]|
   21492               [12][13-8]
   21493             )
   21494           </leadingDigits>
   21495           <leadingDigits>
   21496             3(?:
   21497               5[013-9]|
   21498               [1-46-8](?:
   21499                 22|
   21500                 [013-9]
   21501               )
   21502             )|
   21503             4(?:
   21504               [137][013-9]|
   21505               6(?:
   21506                 [013-9]|
   21507                 22
   21508               )|
   21509               [45][6-9]|
   21510               8[4-6]
   21511             )|
   21512             5(?:
   21513               [1245][013-9]|
   21514               6(?:
   21515                 3[02389]|
   21516                 [015689]
   21517               )|
   21518               3|
   21519               7[4-6]
   21520             )|
   21521             6(?:
   21522               [49][013-9]|
   21523               5[0135-9]|
   21524               [12][13-8]
   21525             )
   21526           </leadingDigits>
   21527           <format>$1 $2</format>
   21528         </numberFormat>
   21529       </availableFormats>
   21530       <generalDesc>
   21531         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
   21532         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   21533       </generalDesc>
   21534       <fixedLine>
   21535         <nationalNumberPattern>
   21536           (?:
   21537             3[1-8]|
   21538             4[13-8]|
   21539             5[1-7]|
   21540             6[12459]
   21541           )\d{7}
   21542         </nationalNumberPattern>
   21543         <exampleNumber>311234567</exampleNumber>
   21544       </fixedLine>
   21545       <mobile>
   21546         <nationalNumberPattern>
   21547           (?:
   21548             39|
   21549             50|
   21550             6[36-8]|
   21551             9[1-9]
   21552           )\d{7}
   21553         </nationalNumberPattern>
   21554         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21555         <exampleNumber>391234567</exampleNumber>
   21556       </mobile>
   21557       <tollFree>
   21558         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   21559         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21560         <exampleNumber>800123456</exampleNumber>
   21561       </tollFree>
   21562       <premiumRate>
   21563         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
   21564         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21565         <exampleNumber>900123456</exampleNumber>
   21566       </premiumRate>
   21567       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
   21568       <voip>
   21569         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
   21570         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21571         <exampleNumber>891234567</exampleNumber>
   21572       </voip>
   21573     </territory>
   21574 
   21575     <!-- Uganda -->
   21576     <!-- http://www.itu.int/oth/T02020000F1/en -->
   21577     <!-- http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf -->
   21578     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
   21579                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   21580       <availableFormats>
   21581         <numberFormat pattern="(\d{3})(\d{6})">
   21582           <leadingDigits>
   21583             [7-9]|
   21584             20(?:
   21585               [013-8]|
   21586               2[5-9]
   21587             )|
   21588             4(?:
   21589               6[45]|
   21590               [7-9]
   21591             )
   21592           </leadingDigits>
   21593           <format>$1 $2</format>
   21594         </numberFormat>
   21595         <numberFormat pattern="(\d{2})(\d{7})">
   21596           <leadingDigits>
   21597             3|
   21598             4(?:
   21599               [1-5]|
   21600               6[0-36-9]
   21601             )
   21602           </leadingDigits>
   21603           <format>$1 $2</format>
   21604         </numberFormat>
   21605         <numberFormat pattern="(2024)(\d{5})">
   21606           <leadingDigits>2024</leadingDigits>
   21607           <format>$1 $2</format>
   21608         </numberFormat>
   21609       </availableFormats>
   21610       <generalDesc>
   21611         <nationalNumberPattern>\d{9}</nationalNumberPattern>
   21612         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   21613       </generalDesc>
   21614       <fixedLine>
   21615         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
   21616         <nationalNumberPattern>
   21617           20(?:
   21618             [0147]\d{2}|
   21619             2(?:
   21620               40|
   21621               [5-9]\d
   21622             )|
   21623             3[23]\d|
   21624             5[0-4]\d|
   21625             60\d|
   21626             8[0-2]\d
   21627           )\d{4}|
   21628           [34]\d{8}
   21629         </nationalNumberPattern>
   21630         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
   21631              local dialing is still possible. We assume it is for now. -->
   21632         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   21633         <exampleNumber>312345678</exampleNumber>
   21634       </fixedLine>
   21635       <mobile>
   21636         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
   21637         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
   21638         <nationalNumberPattern>
   21639           7(?:
   21640             0[0-7]|
   21641             [15789]\d|
   21642             [23]0|
   21643             [46][0-4]
   21644           )\d{6}
   21645         </nationalNumberPattern>
   21646         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21647         <exampleNumber>712345678</exampleNumber>
   21648       </mobile>
   21649       <tollFree>
   21650         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
   21651         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21652         <exampleNumber>800123456</exampleNumber>
   21653       </tollFree>
   21654       <premiumRate>
   21655         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
   21656         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   21657         <exampleNumber>901123456</exampleNumber>
   21658       </premiumRate>
   21659     </territory>
   21660 
   21661     <!-- United States -->
   21662     <!-- http://www.nanpa.com/reports/reports_npa.html -->
   21663     <!-- http://en.wikipedia.org/wiki/North_American_Numbering_Plan -->
   21664     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
   21665          numbers in the national format, it is not included. Therefore, we omit it here to make
   21666          formatting consistent with the rest of the world. The same applies to all the
   21667          countries/regions under NANPA -->
   21668     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
   21669          when formatting, but is set here so that users who are calling formatByPattern can specify
   21670          NationalPrefixFormattingRule if they want to. -->
   21671     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
   21672                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true"
   21673                mobileNumberPortableRegion="true">
   21674       <availableFormats>
   21675         <numberFormat pattern="(\d{3})(\d{4})">
   21676           <format>$1-$2</format>
   21677           <intlFormat>NA</intlFormat>
   21678         </numberFormat>
   21679         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
   21680           <format>($1) $2-$3</format>
   21681           <!-- A different pattern is used when formatting internationally, as the area code is no
   21682                longer optional and should not be in brackets. -->
   21683           <intlFormat>$1-$2-$3</intlFormat>
   21684         </numberFormat>
   21685       </availableFormats>
   21686       <generalDesc>
   21687         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
   21688         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   21689       </generalDesc>
   21690       <fixedLine>
   21691         <nationalNumberPattern>
   21692           (?:
   21693             2(?:
   21694               0[1-35-9]|
   21695               1[02-9]|
   21696               2[4589]|
   21697               3[149]|
   21698               4[08]|
   21699               5[1-46]|
   21700               6[0279]|
   21701               7[026]|
   21702               8[13]
   21703             )|
   21704             3(?:
   21705               0[1-57-9]|
   21706               1[02-9]|
   21707               2[0135]|
   21708               3[014679]|
   21709               47|
   21710               5[12]|
   21711               6[01]|
   21712               8[056]
   21713             )|
   21714             4(?:
   21715               0[124-9]|
   21716               1[02-579]|
   21717               2[3-5]|
   21718               3[0245]|
   21719               4[0235]|
   21720               58|
   21721               69|
   21722               7[0589]|
   21723               8[04]
   21724             )|
   21725             5(?:
   21726               0[1-57-9]|
   21727               1[0235-8]|
   21728               20|
   21729               3[0149]|
   21730               4[01]|
   21731               5[19]|
   21732               6[1-37]|
   21733               7[013-5]|
   21734               8[056]
   21735             )|
   21736             6(?:
   21737               0[1-35-9]|
   21738               1[024-9]|
   21739               2[036]|
   21740               3[016]|
   21741               4[16]|
   21742               5[017]|
   21743               6[0-279]|
   21744               78|
   21745               8[12]
   21746             )|
   21747             7(?:
   21748               0[1-46-8]|
   21749               1[02-9]|
   21750               2[047]|
   21751               3[1247]|
   21752               4[07]|
   21753               5[47]|
   21754               6[02359]|
   21755               7[02-59]|
   21756               8[156]
   21757             )|
   21758             8(?:
   21759               0[1-68]|
   21760               1[02-8]|
   21761               28|
   21762               3[0-25]|
   21763               4[3578]|
   21764               5[06-9]|
   21765               6[02-5]|
   21766               7[028]
   21767             )|
   21768             9(?:
   21769               0[1346-9]|
   21770               1[02-9]|
   21771               2[0589]|
   21772               3[1678]|
   21773               4[0179]|
   21774               5[1246]|
   21775               7[0-3589]|
   21776               8[0459]
   21777             )
   21778           )[2-9]\d{6}
   21779         </nationalNumberPattern>
   21780         <exampleNumber>2015555555</exampleNumber>
   21781       </fixedLine>
   21782       <mobile>
   21783         <nationalNumberPattern>
   21784           (?:
   21785             2(?:
   21786               0[1-35-9]|
   21787               1[02-9]|
   21788               2[4589]|
   21789               3[149]|
   21790               4[08]|
   21791               5[1-46]|
   21792               6[0279]|
   21793               7[026]|
   21794               8[13]
   21795             )|
   21796             3(?:
   21797               0[1-57-9]|
   21798               1[02-9]|
   21799               2[0135]|
   21800               3[014679]|
   21801               47|
   21802               5[12]|
   21803               6[01]|
   21804               8[056]
   21805             )|
   21806             4(?:
   21807               0[124-9]|
   21808               1[02-579]|
   21809               2[3-5]|
   21810               3[0245]|
   21811               4[0235]|
   21812               58|
   21813               69|
   21814               7[0589]|
   21815               8[04]
   21816             )|
   21817             5(?:
   21818               0[1-57-9]|
   21819               1[0235-8]|
   21820               20|
   21821               3[0149]|
   21822               4[01]|
   21823               5[19]|
   21824               6[1-37]|
   21825               7[013-5]|
   21826               8[056]
   21827             )|
   21828             6(?:
   21829               0[1-35-9]|
   21830               1[024-9]|
   21831               2[036]|
   21832               3[016]|
   21833               4[16]|
   21834               5[017]|
   21835               6[0-279]|
   21836               78|
   21837               8[12]
   21838             )|
   21839             7(?:
   21840               0[1-46-8]|
   21841               1[02-9]|
   21842               2[047]|
   21843               3[1247]|
   21844               4[07]|
   21845               5[47]|
   21846               6[02359]|
   21847               7[02-59]|
   21848               8[156]
   21849             )|
   21850             8(?:
   21851               0[1-68]|
   21852               1[02-8]|
   21853               28|
   21854               3[0-25]|
   21855               4[3578]|
   21856               5[06-9]|
   21857               6[02-5]|
   21858               7[028]
   21859             )|
   21860             9(?:
   21861               0[1346-9]|
   21862               1[02-9]|
   21863               2[0589]|
   21864               3[1678]|
   21865               4[0179]|
   21866               5[1246]|
   21867               7[0-3589]|
   21868               8[0459]
   21869             )
   21870           )[2-9]\d{6}
   21871         </nationalNumberPattern>
   21872         <exampleNumber>2015555555</exampleNumber>
   21873       </mobile>
   21874       <tollFree>
   21875         <nationalNumberPattern>
   21876           8(?:
   21877             00|
   21878             55|
   21879             66|
   21880             77|
   21881             88
   21882           )[2-9]\d{6}
   21883         </nationalNumberPattern>
   21884         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21885         <exampleNumber>8002345678</exampleNumber>
   21886       </tollFree>
   21887       <premiumRate>
   21888         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   21889         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21890         <exampleNumber>9002345678</exampleNumber>
   21891       </premiumRate>
   21892       <personalNumber>
   21893         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   21894         <nationalNumberPattern>
   21895           5(?:
   21896             00|
   21897             33|
   21898             44
   21899           )[2-9]\d{6}
   21900         </nationalNumberPattern>
   21901         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   21902         <exampleNumber>5002345678</exampleNumber>
   21903       </personalNumber>
   21904     </territory>
   21905 
   21906     <!-- Uruguay -->
   21907     <!-- http://www.itu.int/oth/T02020000E0/en -->
   21908     <!-- http://www.ursec.gub.uy -->
   21909     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay -->
   21910     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
   21911          code JK, where J = [3-9] and K is any digit. -->
   21912     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
   21913                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
   21914       <availableFormats>
   21915         <!-- Following paginasamarillas.com.uy formatting. -->
   21916         <numberFormat pattern="(\d{4})(\d{4})">
   21917           <leadingDigits>[24]</leadingDigits>
   21918           <format>$1 $2</format>
   21919         </numberFormat>
   21920         <!-- Including the national prefix here since URSEC does when formatting these. -->
   21921         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
   21922           <leadingDigits>9[1-9]</leadingDigits>
   21923           <format>$1 $2 $3</format>
   21924         </numberFormat>
   21925         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
   21926           <leadingDigits>[89]0</leadingDigits>
   21927           <format>$1 $2</format>
   21928         </numberFormat>
   21929       </availableFormats>
   21930       <generalDesc>
   21931         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
   21932         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   21933       </generalDesc>
   21934       <fixedLine>
   21935         <nationalNumberPattern>
   21936           2\d{7}|
   21937           4[2-7]\d{6}
   21938         </nationalNumberPattern>
   21939         <exampleNumber>21231234</exampleNumber>
   21940       </fixedLine>
   21941       <mobile>
   21942         <nationalNumberPattern>9[13-9]\d{6}</nationalNumberPattern>
   21943         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   21944         <exampleNumber>94231234</exampleNumber>
   21945       </mobile>
   21946       <tollFree>
   21947         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
   21948         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   21949         <exampleNumber>8001234</exampleNumber>
   21950       </tollFree>
   21951       <premiumRate>
   21952         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
   21953         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   21954         <exampleNumber>9001234</exampleNumber>
   21955       </premiumRate>
   21956      </territory>
   21957 
   21958     <!-- Uzbekistan -->
   21959     <!-- http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng -->
   21960     <!-- http://www.itu.int/oth/T02020000E1/en -->
   21961     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
   21962                internationalPrefix="810" nationalPrefix="8"
   21963                nationalPrefixFormattingRule="$NP $FG">
   21964       <availableFormats>
   21965         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
   21966           <format>$1 $2 $3 $4</format>
   21967         </numberFormat>
   21968       </availableFormats>
   21969       <generalDesc>
   21970         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
   21971         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
   21972       </generalDesc>
   21973       <fixedLine>
   21974         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
   21975              be used in Namangan. -->
   21976         <nationalNumberPattern>
   21977           (?:
   21978             6(?:
   21979               1(?:
   21980                 22|
   21981                 3[124]|
   21982                 4[1-4]|
   21983                 5[123578]|
   21984                 64
   21985               )|
   21986               2(?:
   21987                 22|
   21988                 3[0-57-9]|
   21989                 41
   21990               )|
   21991               5(?:
   21992                 22|
   21993                 3[3-7]|
   21994                 5[024-8]
   21995               )|
   21996               6\d{2}|
   21997               7(?:
   21998                 [23]\d|
   21999                 7[69]
   22000               )|
   22001               9(?:
   22002                 22|
   22003                 4[1-8]|
   22004                 6[135]
   22005               )
   22006             )|
   22007             7(?:
   22008               0(?:
   22009                 5[4-9]|
   22010                 6[0146]|
   22011                 7[12456]|
   22012                 9[135-8]
   22013               )|
   22014               1[12]\d|
   22015               2(?:
   22016                 22|
   22017                 3[1345789]|
   22018                 4[123579]|
   22019                 5[14]
   22020               )|
   22021               3(?:
   22022                 2\d|
   22023                 3[1578]|
   22024                 4[1-35-7]|
   22025                 5[1-57]|
   22026                 61
   22027               )|
   22028               4(?:
   22029                 2\d|
   22030                 3[1-579]|
   22031                 7[1-79]
   22032               )|
   22033               5(?:
   22034                 22|
   22035                 5[1-9]|
   22036                 6[1457]
   22037               )|
   22038               6(?:
   22039                 22|
   22040                 3[12457]|
   22041                 4[13-8]
   22042               )|
   22043               9(?:
   22044                 22|
   22045                 5[1-9]
   22046               )
   22047             )
   22048           )\d{5}
   22049         </nationalNumberPattern>
   22050         <exampleNumber>662345678</exampleNumber>
   22051       </fixedLine>
   22052       <mobile>
   22053         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
   22054              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
   22055              prefixes Tyntec has a carrier mapped to. -->
   22056         <nationalNumberPattern>
   22057           6(?:
   22058             1(?:
   22059               2(?:
   22060                 98|
   22061                 2[01]
   22062               )|
   22063               35[0-4]|
   22064               50\d|
   22065               61[23]|
   22066               7(?:
   22067                 [01][017]|
   22068                 4\d|
   22069                 55|
   22070                 9[5-9]
   22071               )
   22072             )|
   22073             2(?:
   22074               11\d|
   22075               2(?:
   22076                 [12]1|
   22077                 9[01379]
   22078               )|
   22079               5(?:
   22080                 [126]\d|
   22081                 3[0-4]
   22082               )|
   22083               7\d{2}
   22084             )|
   22085             5(?:
   22086               19[01]|
   22087               2(?:
   22088                 27|
   22089                 9[26]
   22090               )|
   22091               30\d|
   22092               59\d|
   22093               7\d{2}
   22094             )|
   22095             6(?:
   22096               2(?:
   22097                 1[5-9]|
   22098                 2[0367]|
   22099                 38|
   22100                 41|
   22101                 52|
   22102                 60
   22103               )|
   22104               3[79]\d|
   22105               4(?:
   22106                 56|
   22107                 83
   22108               )|
   22109               7(?:
   22110                 [07]\d|
   22111                 1[017]|
   22112                 3[07]|
   22113                 4[047]|
   22114                 5[057]|
   22115                 67|
   22116                 8[0178]|
   22117                 9[79]
   22118                 )|
   22119               9[0-3]\d
   22120             )|
   22121             7(?:
   22122               2(?:
   22123                 24|
   22124                 3[237]|
   22125                 4[5-9]|
   22126                 7[15-8]
   22127               )|
   22128               5(?:
   22129                 7[12]|
   22130                 8[0589]
   22131               )|
   22132               7(?:
   22133                 0\d|
   22134                 [39][07]
   22135               )|
   22136               9(?:
   22137                 0\d|
   22138                 7[079]
   22139               )
   22140             )|
   22141             9(
   22142               2(?:
   22143                 1[1267]|
   22144                 5\d|
   22145                 3[01]|
   22146                 7[0-4]
   22147               )|
   22148               5[67]\d|
   22149               6(?:
   22150                 2[0-26]|
   22151                 8\d
   22152               )|
   22153               7\d{2}
   22154             )
   22155           )\d{4}|
   22156           7(?:
   22157             0\d{3}|
   22158             1(?:
   22159               13[01]|
   22160               6(?:
   22161                 0[47]|
   22162                 1[67]|
   22163                 66
   22164               )|
   22165               71[3-69]|
   22166               98\d
   22167             )|
   22168             2(?:
   22169               2(?:
   22170                 2[79]|
   22171                 95
   22172               )|
   22173               3(?:
   22174                 2[5-9]|
   22175                 6[0-6]
   22176               )|
   22177               57\d|
   22178               7(?:
   22179                 0\d|
   22180                 1[17]|
   22181                 2[27]|
   22182                 3[37]|
   22183                 44|
   22184                 5[057]|
   22185                 66|
   22186                 88
   22187               )
   22188             )|
   22189             3(?:
   22190               2(?:
   22191                 1[0-6]|
   22192                 21|
   22193                 3[469]|
   22194                 7[159]
   22195               )|
   22196               33\d|
   22197               5(?:
   22198                 0[0-4]|
   22199                 5[579]|
   22200                 9\d
   22201               )|
   22202               7(?:
   22203                 [0-3579]\d|
   22204                 4[0467]|
   22205                 6[67]|
   22206                 8[078]
   22207               )|
   22208               9[4-6]\d
   22209             )|
   22210             4(?:
   22211               2(?:
   22212                 29|
   22213                 5[0257]|
   22214                 6[0-7]|
   22215                 7[1-57]
   22216               )|
   22217               5(?:
   22218                 1[0-4]|
   22219                 8\d|
   22220                 9[5-9]
   22221               )|
   22222               7(?:
   22223                 0\d|
   22224                 1[024589]|
   22225                 2[0127]|
   22226                 3[0137]|
   22227                 [46][07]|
   22228                 5[01]|
   22229                 7[5-9]|
   22230                 9[079]
   22231               )|
   22232               9(?:
   22233                 7[015-9]|
   22234                 [89]\d
   22235               )
   22236             )|
   22237             5(?:
   22238               112|
   22239               2(?:
   22240                 0\d|
   22241                 2[29]|
   22242                 [49]4
   22243               )|
   22244               3[1568]\d|
   22245               52[6-9]|
   22246               7(?:
   22247                 0[01578]|
   22248                 1[017]|
   22249                 [23]7|
   22250                 4[047]|
   22251                 [5-7]\d|
   22252                 8[78]|
   22253                 9[079]
   22254               )
   22255             )|
   22256             6(?:
   22257               2(?:
   22258                 2[1245]|
   22259                 4[2-4]
   22260               )|
   22261               39\d|
   22262               41[179]|
   22263               5(?:
   22264                 [349]\d|
   22265                 5[0-2]
   22266               )|
   22267               7(?:
   22268                 0[017]|
   22269                 [13]\d|
   22270                 22|
   22271                 44|
   22272                 55|
   22273                 67|
   22274                 88
   22275               )
   22276             )|
   22277             9(?:
   22278               22[128]|
   22279               3(?:
   22280                 2[0-4]|
   22281                 7\d
   22282               )|
   22283               57[05629]|
   22284               7(?:
   22285                 2[05-9]|
   22286                 3[37]|
   22287                 4\d|
   22288                 60|
   22289                 7[2579]|
   22290                 87|
   22291                 9[07]
   22292               )
   22293             )
   22294           )\d{4}|
   22295           9[0-57-9]\d{7}
   22296         </nationalNumberPattern>
   22297         <exampleNumber>912345678</exampleNumber>
   22298       </mobile>
   22299       <!-- No tollFree or premiumRate information can be found. -->
   22300     </territory>
   22301 
   22302     <!-- Vatican City -->
   22303     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City -->
   22304     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
   22305          also be dialled with the Vatican City country code. -->
   22306     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
   22307       <availableFormats>
   22308         <numberFormat pattern="(06)(\d{4})(\d{4})">
   22309           <format>$1 $2 $3</format>
   22310         </numberFormat>
   22311       </availableFormats>
   22312       <generalDesc>
   22313         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
   22314         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22315       </generalDesc>
   22316       <fixedLine>
   22317         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
   22318         <exampleNumber>0669812345</exampleNumber>
   22319       </fixedLine>
   22320       <mobile>
   22321         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
   22322              Italian mobile contracts. -->
   22323         <nationalNumberPattern>N/A</nationalNumberPattern>
   22324         <possibleNumberPattern>N/A</possibleNumberPattern>
   22325       </mobile>
   22326       <!-- No information exists about other types of numbers. -->
   22327     </territory>
   22328 
   22329     <!-- Saint Vincent and the Grenadines -->
   22330     <!-- http://www.itu.int/oth/T02020000B3/en -->
   22331     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
   22332                internationalPrefix="011">
   22333       <generalDesc>
   22334         <!-- NANPA country - uses US formatting rules -->
   22335         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
   22336         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   22337       </generalDesc>
   22338       <fixedLine>
   22339         <nationalNumberPattern>
   22340           784(?:
   22341             266|
   22342             3(?:
   22343               6[6-9]|
   22344               7\d|
   22345               8[0-24-6]
   22346             )|
   22347             4(?:
   22348               38|
   22349               5[0-36-8]|
   22350               8\d|
   22351               9[01]
   22352             )|
   22353             555|
   22354             638|
   22355             784
   22356           )\d{4}
   22357         </nationalNumberPattern>
   22358         <exampleNumber>7842661234</exampleNumber>
   22359       </fixedLine>
   22360       <mobile>
   22361         <!-- Adding 784 433 and 784 534 since online numbers can be found with these prefixes, and
   22362              the latter seems, according to some online sources, to be assigned to Digicell. -->
   22363         <nationalNumberPattern>
   22364           784(?:
   22365             4(?:
   22366               3[0-4]|
   22367               5[45]|
   22368               9[2-5]
   22369             )|
   22370             5(?:
   22371               2[6-9]|
   22372               3[0-4]|
   22373               93
   22374             )
   22375           )\d{4}
   22376         </nationalNumberPattern>
   22377         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22378         <exampleNumber>7844301234</exampleNumber>
   22379       </mobile>
   22380       <tollFree>
   22381         <nationalNumberPattern>
   22382           8(?:
   22383             00|
   22384             55|
   22385             66|
   22386             77|
   22387             88
   22388           )[2-9]\d{6}
   22389         </nationalNumberPattern>
   22390         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22391         <exampleNumber>8002345678</exampleNumber>
   22392       </tollFree>
   22393       <premiumRate>
   22394         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   22395         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22396         <exampleNumber>9002345678</exampleNumber>
   22397       </premiumRate>
   22398       <personalNumber>
   22399         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   22400         <nationalNumberPattern>
   22401           5(?:
   22402             00|
   22403             33|
   22404             44
   22405           )[2-9]\d{6}
   22406         </nationalNumberPattern>
   22407         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22408         <exampleNumber>5002345678</exampleNumber>
   22409       </personalNumber>
   22410     </territory>
   22411 
   22412     <!-- Venezuela -->
   22413     <!-- http://www.itu.int/oth/T02020000E3/en -->
   22414     <!-- http://en.wikipedia.org/wiki/+58 -->
   22415     <!-- 1XX specifies a particular carrier to route a call to, but none of these have been
   22416          implemented. -->
   22417     <territory id="VE" countryCode="58" internationalPrefix="00"
   22418                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   22419                carrierCodeFormattingRule="$CC $FG">
   22420       <availableFormats>
   22421         <numberFormat pattern="(\d{3})(\d{7})">
   22422           <format>$1-$2</format>
   22423         </numberFormat>
   22424       </availableFormats>
   22425       <generalDesc>
   22426         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
   22427         <!-- Open numbering plan. -->
   22428         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   22429       </generalDesc>
   22430       <fixedLine>
   22431         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
   22432              mentions these as 5XX, but online examples that can be found are seemingly restricted
   22433              to 50[01]. -->
   22434         <nationalNumberPattern>
   22435           (?:
   22436             2(?:
   22437               12|
   22438               3[457-9]|
   22439               [58][1-9]|
   22440               [467]\d|
   22441               9[1-6]
   22442             )|
   22443             50[01]
   22444           )\d{7}
   22445         </nationalNumberPattern>
   22446         <exampleNumber>2121234567</exampleNumber>
   22447       </fixedLine>
   22448       <mobile>
   22449         <nationalNumberPattern>
   22450           4(?:
   22451             1[24-8]|
   22452             2[46]
   22453           )\d{7}
   22454         </nationalNumberPattern>
   22455         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22456         <exampleNumber>4121234567</exampleNumber>
   22457       </mobile>
   22458       <tollFree>
   22459         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   22460         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22461         <exampleNumber>8001234567</exampleNumber>
   22462       </tollFree>
   22463       <premiumRate>
   22464         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
   22465         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22466         <exampleNumber>9001234567</exampleNumber>
   22467       </premiumRate>
   22468     </territory>
   22469 
   22470     <!-- Virgin Islands, British -->
   22471     <!-- http://www.itu.int/oth/T020200001E/en -->
   22472     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
   22473                internationalPrefix="011">
   22474       <generalDesc>
   22475         <!-- NANPA country - uses US formatting rules -->
   22476         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
   22477         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   22478       </generalDesc>
   22479       <fixedLine>
   22480         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
   22481              and 774 have been added from numbers found in the white pages. -->
   22482         <nationalNumberPattern>
   22483           284(?:
   22484             (?:
   22485               229|
   22486               4(?:
   22487                 22|
   22488                 9[45]
   22489               )|
   22490               774|
   22491               8(?:
   22492                 52|
   22493                 6[459]
   22494               )
   22495             )\d{4}|
   22496             496[0-5]\d{3}
   22497           )
   22498         </nationalNumberPattern>
   22499         <exampleNumber>2842291234</exampleNumber>
   22500       </fixedLine>
   22501       <mobile>
   22502         <!-- No data on central office codes can be found on the nanpa.com website. The codes
   22503              34[0-367], 446 and 54[57] have been added from numbers found in the white pages. -->
   22504         <nationalNumberPattern>
   22505           284(?:
   22506             (?:
   22507               3(?:
   22508                 0[0-3]|
   22509                 4[0-367]
   22510               )|
   22511               4(?:
   22512                 4[0-6]|
   22513                 68|
   22514                 99
   22515               )|
   22516               54[0-57]
   22517             )\d{4}|
   22518             496[6-9]\d{3}
   22519           )
   22520         </nationalNumberPattern>
   22521         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22522         <exampleNumber>2843001234</exampleNumber>
   22523       </mobile>
   22524       <tollFree>
   22525         <nationalNumberPattern>
   22526           8(?:
   22527             00|
   22528             55|
   22529             66|
   22530             77|
   22531             88
   22532           )[2-9]\d{6}
   22533         </nationalNumberPattern>
   22534         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22535         <exampleNumber>8002345678</exampleNumber>
   22536       </tollFree>
   22537       <premiumRate>
   22538         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   22539         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22540         <exampleNumber>9002345678</exampleNumber>
   22541       </premiumRate>
   22542       <personalNumber>
   22543         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   22544         <nationalNumberPattern>
   22545           5(?:
   22546             00|
   22547             33|
   22548             44
   22549           )[2-9]\d{6}
   22550         </nationalNumberPattern>
   22551         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22552         <exampleNumber>5002345678</exampleNumber>
   22553       </personalNumber>
   22554     </territory>
   22555 
   22556     <!-- Virgin Islands, United States -->
   22557     <!-- http://www.itu.int/oth/T02020000DF/en -->
   22558     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
   22559                internationalPrefix="011">
   22560       <generalDesc>
   22561         <!-- NANPA country - uses US formatting rules -->
   22562         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
   22563         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
   22564       </generalDesc>
   22565       <fixedLine>
   22566         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
   22567              yellow pages have been added, and the list of exchanges found on
   22568              http://www.areacodedownload.com/340/index.html -->
   22569         <nationalNumberPattern>
   22570           340(?:
   22571             2(?:
   22572               01|
   22573               2[067]|
   22574               36|
   22575               44|
   22576               77
   22577             )|
   22578             3(?:
   22579               32|
   22580               44
   22581             )|
   22582             4(?:
   22583               4[38]|
   22584               7[34]
   22585             )|
   22586             5(?:
   22587               1[34]|
   22588               55
   22589             )|
   22590             6(?:
   22591               26|
   22592               4[23]|
   22593               77|
   22594               9[023]
   22595             )|
   22596             7(?:
   22597               [17]\d|
   22598               27
   22599             )|
   22600             884|
   22601             998
   22602           )\d{4}
   22603         </nationalNumberPattern>
   22604         <exampleNumber>3406421234</exampleNumber>
   22605       </fixedLine>
   22606       <mobile>
   22607         <nationalNumberPattern>
   22608           340(?:
   22609             2(?:
   22610               01|
   22611               2[067]|
   22612               36|
   22613               44|
   22614               77
   22615             )|
   22616             3(?:
   22617               32|
   22618               44
   22619             )|
   22620             4(?:
   22621               4[38]|
   22622               7[34]
   22623             )|
   22624             5(?:
   22625               1[34]|
   22626               55
   22627             )|
   22628             6(?:
   22629               26|
   22630               4[23]|
   22631               77|
   22632               9[023]
   22633             )|
   22634             7(?:
   22635               [17]\d|
   22636               27
   22637             )|
   22638             884|
   22639             998
   22640           )\d{4}
   22641         </nationalNumberPattern>
   22642         <exampleNumber>3406421234</exampleNumber>
   22643       </mobile>
   22644       <tollFree>
   22645         <nationalNumberPattern>
   22646           8(?:
   22647             00|
   22648             55|
   22649             66|
   22650             77|
   22651             88
   22652           )[2-9]\d{6}
   22653         </nationalNumberPattern>
   22654         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22655         <exampleNumber>8002345678</exampleNumber>
   22656       </tollFree>
   22657       <premiumRate>
   22658         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
   22659         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22660         <exampleNumber>9002345678</exampleNumber>
   22661       </premiumRate>
   22662       <personalNumber>
   22663         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
   22664         <nationalNumberPattern>
   22665           5(?:
   22666             00|
   22667             33|
   22668             44
   22669           )[2-9]\d{6}
   22670         </nationalNumberPattern>
   22671         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   22672         <exampleNumber>5002345678</exampleNumber>
   22673       </personalNumber>
   22674     </territory>
   22675 
   22676     <!-- Viet Nam (Vietnam) -->
   22677     <!-- http://www.itu.int/oth/T02020000E4/en -->
   22678     <!-- http://en.wikipedia.org/wiki/%2B84 -->
   22679     <territory id="VN" countryCode="84" internationalPrefix="00"
   22680                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   22681                nationalPrefixOptionalWhenFormatting="true">
   22682       <availableFormats>
   22683         <numberFormat pattern="([17]99)(\d{4})">
   22684           <leadingDigits>[17]99</leadingDigits>
   22685           <format>$1 $2</format>
   22686         </numberFormat>
   22687         <numberFormat pattern="([48])(\d{4})(\d{4})">
   22688           <leadingDigits>[48]</leadingDigits>
   22689           <format>$1 $2 $3</format>
   22690         </numberFormat>
   22691         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
   22692           <leadingDigits>
   22693             2[025-79]|
   22694             3[0136-9]|
   22695             5[2-9]|
   22696             6[0-46-8]|
   22697             7[02-79]
   22698           </leadingDigits>
   22699           <format>$1 $2 $3</format>
   22700         </numberFormat>
   22701         <numberFormat pattern="(80)(\d{5})">
   22702           <leadingDigits>80</leadingDigits>
   22703           <format>$1 $2</format>
   22704         </numberFormat>
   22705         <numberFormat pattern="(69\d)(\d{4,5})">
   22706           <leadingDigits>69</leadingDigits>
   22707           <format>$1 $2</format>
   22708         </numberFormat>
   22709         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
   22710           <leadingDigits>
   22711             2[1348]|
   22712             3[25]|
   22713             5[01]|
   22714             65|
   22715             7[18]
   22716           </leadingDigits>
   22717           <format>$1 $2 $3</format>
   22718         </numberFormat>
   22719         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
   22720           <leadingDigits>9</leadingDigits>
   22721           <format>$1 $2 $3 $4</format>
   22722         </numberFormat>
   22723         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
   22724           <leadingDigits>
   22725             1(?:
   22726               [26]|
   22727               8[68]|
   22728               99
   22729             )
   22730           </leadingDigits>
   22731           <format>$1 $2 $3</format>
   22732         </numberFormat>
   22733         <numberFormat nationalPrefixFormattingRule="$FG"
   22734           pattern="(1[89]00)(\d{4,6})">
   22735           <leadingDigits>1[89]0</leadingDigits>
   22736           <format>$1 $2</format>
   22737         </numberFormat>
   22738       </availableFormats>
   22739       <generalDesc>
   22740         <nationalNumberPattern>
   22741           [17]\d{6,9}|
   22742           [2-69]\d{7,9}|
   22743           8\d{6,8}
   22744         </nationalNumberPattern>
   22745         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   22746       </generalDesc>
   22747       <noInternationalDialling>
   22748         <nationalNumberPattern>
   22749           [17]99\d{4}|
   22750           69\d{5,6}
   22751         </nationalNumberPattern>
   22752         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   22753         <exampleNumber>1992000</exampleNumber>
   22754       </noInternationalDialling>
   22755       <fixedLine>
   22756         <nationalNumberPattern>
   22757           (?:
   22758             2(?:
   22759               [025-79]|
   22760               1[0189]|
   22761               [348][01]
   22762             )|
   22763             3(?:
   22764               [0136-9]|
   22765               [25][01]
   22766             )|
   22767             4\d|
   22768             5(?:
   22769               [01][01]|
   22770               [2-9]
   22771             )|
   22772             6(?:
   22773               [0-46-8]|
   22774               5[01]
   22775             )|
   22776             7(?:
   22777               [02-79]|
   22778               [18][01]
   22779             )|
   22780             8[1-9]
   22781           )\d{7}
   22782         </nationalNumberPattern>
   22783         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   22784         <exampleNumber>2101234567</exampleNumber>
   22785       </fixedLine>
   22786       <mobile>
   22787         <nationalNumberPattern>
   22788           (?:
   22789             9\d|
   22790             1(?:
   22791               2\d|
   22792               6[2-9]|
   22793               8[68]|
   22794               99
   22795             )
   22796           )\d{7}
   22797         </nationalNumberPattern>
   22798         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   22799         <exampleNumber>912345678</exampleNumber>
   22800       </mobile>
   22801       <tollFree>
   22802         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
   22803         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   22804         <exampleNumber>1800123456</exampleNumber>
   22805       </tollFree>
   22806       <premiumRate>
   22807         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
   22808         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
   22809         <exampleNumber>1900123456</exampleNumber>
   22810       </premiumRate>
   22811       <uan>
   22812         <!-- These include non-geographic fixed numbers, such as for government ministries. While
   22813         listed as "private networks", they may actually be callable from within Vietnam. (They are
   22814         "private" in the sense that ordinary people could not be assigned these numbers.) -->
   22815         <nationalNumberPattern>
   22816           [17]99\d{4}|
   22817           69\d{5,6}|
   22818           80\d{5}
   22819         </nationalNumberPattern>
   22820         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
   22821         <exampleNumber>1992000</exampleNumber>
   22822       </uan>
   22823     </territory>
   22824 
   22825     <!-- Vanuatu -->
   22826     <!-- http://www.itu.int/oth/T02020000E2/en -->
   22827     <territory id="VU" countryCode="678" internationalPrefix="00">
   22828       <!-- Should be formatted in one block, apart from the mobile numbers. -->
   22829       <availableFormats>
   22830         <numberFormat pattern="(\d{3})(\d{4})">
   22831           <leadingDigits>[579]</leadingDigits>
   22832           <format>$1 $2</format>
   22833         </numberFormat>
   22834       </availableFormats>
   22835       <generalDesc>
   22836         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
   22837         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   22838       </generalDesc>
   22839       <fixedLine>
   22840         <nationalNumberPattern>
   22841           (?:
   22842             2[2-9]\d|
   22843             3(?:
   22844               [5-7]\d|
   22845               8[0-8]
   22846             )|
   22847             48[4-9]|
   22848             88\d
   22849           )\d{2}
   22850         </nationalNumberPattern>
   22851         <possibleNumberPattern>\d{5}</possibleNumberPattern>
   22852         <exampleNumber>22123</exampleNumber>
   22853       </fixedLine>
   22854       <mobile>
   22855         <nationalNumberPattern>
   22856           (?:
   22857             5(?:
   22858               7[2-5]|
   22859               [3-69]\d
   22860             )|
   22861             7[013-7]\d
   22862           )\d{4}
   22863         </nationalNumberPattern>
   22864         <possibleNumberPattern>\d{7}</possibleNumberPattern>
   22865         <exampleNumber>5912345</exampleNumber>
   22866       </mobile>
   22867       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
   22868            for government fixed-line numbers. -->
   22869       <uan>
   22870         <nationalNumberPattern>
   22871           3[03]\d{3}|
   22872           900\d{4}
   22873         </nationalNumberPattern>
   22874         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   22875         <exampleNumber>30123</exampleNumber>
   22876       </uan>
   22877     </territory>
   22878 
   22879     <!-- Wallis and Futuna (Territoire franais d'outre-mer) -->
   22880     <!-- http://www.itu.int/oth/T02020000E6/en -->
   22881     <territory id="WF" countryCode="681" internationalPrefix="00">
   22882       <availableFormats>
   22883         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
   22884           <format>$1 $2 $3</format>
   22885         </numberFormat>
   22886       </availableFormats>
   22887       <generalDesc>
   22888         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
   22889         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   22890       </generalDesc>
   22891       <fixedLine>
   22892         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
   22893              50 and 68 are possible, so they are included here. -->
   22894         <nationalNumberPattern>
   22895           (?:
   22896             50|
   22897             68|
   22898             72
   22899           )\d{4}
   22900         </nationalNumberPattern>
   22901         <exampleNumber>501234</exampleNumber>
   22902       </fixedLine>
   22903       <mobile>
   22904         <nationalNumberPattern>
   22905           (?:
   22906             50|
   22907             68|
   22908             72
   22909           )\d{4}
   22910         </nationalNumberPattern>
   22911         <exampleNumber>501234</exampleNumber>
   22912       </mobile>
   22913     </territory>
   22914 
   22915     <!-- Samoa -->
   22916     <!-- http://www.itu.int/oth/T02020000B4/en -->
   22917     <territory id="WS" countryCode="685" internationalPrefix="0">
   22918       <availableFormats>
   22919         <!-- Should be formatted in one block, apart from the specific series below. -->
   22920         <numberFormat pattern="(8\d{2})(\d{3,4})">
   22921           <leadingDigits>8</leadingDigits>
   22922           <format>$1 $2</format>
   22923         </numberFormat>
   22924         <numberFormat pattern="(7\d)(\d{5})">
   22925           <leadingDigits>7</leadingDigits>
   22926           <format>$1 $2</format>
   22927         </numberFormat>
   22928       </availableFormats>
   22929       <generalDesc>
   22930         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
   22931         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   22932       </generalDesc>
   22933       <fixedLine>
   22934         <nationalNumberPattern>
   22935           (?:
   22936             [2-5]\d|
   22937             6[1-9]|
   22938             84\d{2}
   22939           )\d{3}
   22940         </nationalNumberPattern>
   22941         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
   22942         <exampleNumber>22123</exampleNumber>
   22943       </fixedLine>
   22944       <mobile>
   22945         <nationalNumberPattern>
   22946           (?:
   22947             60|
   22948             7[25-7]\d
   22949           )\d{4}
   22950         </nationalNumberPattern>
   22951         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
   22952         <exampleNumber>601234</exampleNumber>
   22953       </mobile>
   22954       <tollFree>
   22955         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
   22956              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
   22957              for now, so may be also used for other purposes than toll free, but until we have
   22958              further evidence of these we will keep it as toll free. -->
   22959         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
   22960         <possibleNumberPattern>\d{6}</possibleNumberPattern>
   22961         <exampleNumber>800123</exampleNumber>
   22962       </tollFree>
   22963       <!-- Current research suggests other types of numbers are not used in Samoa. -->
   22964     </territory>
   22965 
   22966     <!-- Yemen -->
   22967     <!-- http://www.itu.int/oth/T02020000E7/en -->
   22968     <territory id="YE" countryCode="967" internationalPrefix="00"
   22969                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   22970       <availableFormats>
   22971         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
   22972           <leadingDigits>
   22973             [1-6]|
   22974             7[24-68]
   22975           </leadingDigits>
   22976           <format>$1 $2 $3</format>
   22977         </numberFormat>
   22978         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
   22979           <leadingDigits>7[0137]</leadingDigits>
   22980           <format>$1 $2 $3</format>
   22981         </numberFormat>
   22982       </availableFormats>
   22983       <generalDesc>
   22984         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
   22985         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
   22986       </generalDesc>
   22987       <fixedLine>
   22988         <nationalNumberPattern>
   22989           (?:
   22990             1(?:
   22991               7\d|
   22992               [2-68]
   22993             )|
   22994             2[2-68]|
   22995             3[2358]|
   22996             4[2-58]|
   22997             5[2-6]|
   22998             6[3-58]|
   22999             7[24-68]
   23000           )\d{5}
   23001         </nationalNumberPattern>
   23002         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
   23003         <exampleNumber>1234567</exampleNumber>
   23004       </fixedLine>
   23005       <mobile>
   23006         <!-- Adding 70 from numbers found online. -->
   23007         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
   23008         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23009         <exampleNumber>712345678</exampleNumber>
   23010       </mobile>
   23011       <!-- No tollFree or premiumRate information can be found. -->
   23012     </territory>
   23013 
   23014     <!-- Mayotte -->
   23015     <!-- Some information at http://en.wikipedia.org/wiki/Telephone_numbers_in_France - most from
   23016          collection of internet data. http://www.comores-online.com/mwezinet/internet/262.htm
   23017          verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
   23018          -->
   23019     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
   23020                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
   23021       <!-- Formatting as per La Runion. -->
   23022       <generalDesc>
   23023         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
   23024         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23025       </generalDesc>
   23026       <fixedLine>
   23027         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
   23028         <exampleNumber>269601234</exampleNumber>
   23029       </fixedLine>
   23030       <mobile>
   23031         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
   23032         <exampleNumber>639123456</exampleNumber>
   23033       </mobile>
   23034       <!-- Same as in France. -->
   23035       <tollFree>
   23036         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   23037         <exampleNumber>801234567</exampleNumber>
   23038       </tollFree>
   23039     </territory>
   23040 
   23041     <!-- South Africa -->
   23042     <!-- http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000C10001PDFE.pdf -->
   23043     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa -->
   23044     <territory id="ZA" countryCode="27" internationalPrefix="00"
   23045                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
   23046                mobileNumberPortableRegion="true">
   23047       <availableFormats>
   23048         <numberFormat pattern="(860)(\d{3})(\d{3})">
   23049           <leadingDigits>860</leadingDigits>
   23050           <format>$1 $2 $3</format>
   23051         </numberFormat>
   23052         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
   23053           <leadingDigits>
   23054             [1-79]|
   23055             8(?:
   23056               [0-47]|
   23057               6[1-9]
   23058             )
   23059           </leadingDigits>
   23060           <format>$1 $2 $3</format>
   23061         </numberFormat>
   23062         <numberFormat pattern="(\d{2})(\d{3,4})">
   23063           <leadingDigits>8[1-4]</leadingDigits>
   23064           <format>$1 $2</format>
   23065         </numberFormat>
   23066         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
   23067           <leadingDigits>8[1-4]</leadingDigits>
   23068           <format>$1 $2 $3</format>
   23069         </numberFormat>
   23070       </availableFormats>
   23071       <generalDesc>
   23072         <nationalNumberPattern>
   23073           [1-79]\d{8}|
   23074           8(?:
   23075             [067]\d{7}|
   23076             [1-4]\d{3,7}
   23077           )
   23078         </nationalNumberPattern>
   23079         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
   23080       </generalDesc>
   23081       <fixedLine>
   23082         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
   23083              used in 1996. -->
   23084         <nationalNumberPattern>
   23085           (?:
   23086             1[0-8]|
   23087             2[0-378]|
   23088             3[1-69]|
   23089             4\d|
   23090             5[1346-8]
   23091           )\d{7}
   23092         </nationalNumberPattern>
   23093         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23094         <exampleNumber>101234567</exampleNumber>
   23095       </fixedLine>
   23096       <mobile>
   23097         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
   23098              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
   23099              in prominent places online, even though the ITU document says numbers must be 10 digits
   23100              long (including the national prefix). -->
   23101         <nationalNumberPattern>
   23102           (?:
   23103             6[0-5]|
   23104             7[0-46-9]
   23105           )\d{7}|
   23106           8[1-4]\d{3,7}
   23107         </nationalNumberPattern>
   23108         <exampleNumber>711234567</exampleNumber>
   23109       </mobile>
   23110       <tollFree>
   23111         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
   23112         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23113         <exampleNumber>801234567</exampleNumber>
   23114       </tollFree>
   23115       <premiumRate>
   23116         <nationalNumberPattern>
   23117           86[2-9]\d{6}|
   23118           90\d{7}
   23119         </nationalNumberPattern>
   23120         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23121         <exampleNumber>862345678</exampleNumber>
   23122       </premiumRate>
   23123       <sharedCost>
   23124         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
   23125         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23126         <exampleNumber>860123456</exampleNumber>
   23127       </sharedCost>
   23128       <voip>
   23129         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
   23130         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23131         <exampleNumber>871234567</exampleNumber>
   23132       </voip>
   23133       <uan>
   23134         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
   23135              numbers. -->
   23136         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
   23137         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23138         <exampleNumber>861123456</exampleNumber>
   23139       </uan>
   23140     </territory>
   23141 
   23142     <!-- Zambia -->
   23143     <!-- http://www.itu.int/oth/T02020000E8/en -->
   23144     <territory id="ZM" countryCode="260" internationalPrefix="00"
   23145                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   23146       <availableFormats>
   23147         <numberFormat pattern="([29]\d)(\d{7})">
   23148           <leadingDigits>[29]</leadingDigits>
   23149           <format>$1 $2</format>
   23150         </numberFormat>
   23151         <numberFormat pattern="(800)(\d{3})(\d{3})">
   23152           <leadingDigits>8</leadingDigits>
   23153           <format>$1 $2 $3</format>
   23154         </numberFormat>
   23155       </availableFormats>
   23156       <generalDesc>
   23157         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
   23158         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23159       </generalDesc>
   23160       <fixedLine>
   23161         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
   23162         <exampleNumber>211234567</exampleNumber>
   23163       </fixedLine>
   23164       <mobile>
   23165         <!-- Adding extra prefixes 50, 6[1-57-9] and 7[13-6] since SMS messages have been
   23166              successfully delivered to these numbers, and numbers like this can be found on the
   23167              Internet. Adding prefix 960 based on information received from MTN Zambia. -->
   23168         <nationalNumberPattern>
   23169           9(?:
   23170             5[05]|
   23171             6\d|
   23172             7[13-9]
   23173           )\d{6}
   23174         </nationalNumberPattern>
   23175         <exampleNumber>955123456</exampleNumber>
   23176       </mobile>
   23177       <tollFree>
   23178         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
   23179         <exampleNumber>800123456</exampleNumber>
   23180       </tollFree>
   23181     </territory>
   23182 
   23183     <!-- Zimbabwe -->
   23184     <!-- http://www.itu.int/oth/T02020000E9/en -->
   23185     <territory id="ZW" countryCode="263" internationalPrefix="00"
   23186                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
   23187       <availableFormats>
   23188         <!-- One-digit area codes -->
   23189         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
   23190           <leadingDigits>
   23191             4|
   23192             9[2-9]
   23193           </leadingDigits>
   23194           <format>$1 $2 $3</format>
   23195         </numberFormat>
   23196         <!-- Mobile numbers -->
   23197         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
   23198           <leadingDigits>
   23199             [19]1|
   23200             7
   23201           </leadingDigits>
   23202           <format>$1 $2 $3</format>
   23203         </numberFormat>
   23204         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
   23205           <leadingDigits>86[24]</leadingDigits>
   23206           <format>$1 $2 $3</format>
   23207         </numberFormat>
   23208         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
   23209         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
   23210           <leadingDigits>
   23211             2(?:
   23212               [278]|
   23213               0[45]|
   23214               [49]8
   23215             )|
   23216             3(?:
   23217               08|
   23218               17|
   23219               3[78]|
   23220               [78]
   23221             )|
   23222             5[15][78]|
   23223             6(?:
   23224               [29]8|
   23225               37|
   23226               [68][78]
   23227             )
   23228           </leadingDigits>
   23229           <format>$1 $2</format>
   23230         </numberFormat>
   23231         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
   23232           <leadingDigits>
   23233             2(?:
   23234               [278]|
   23235               0[45]|
   23236               48
   23237             )|
   23238             3(?:
   23239               08|
   23240               17|
   23241               3[78]|
   23242               [78]
   23243             )|
   23244             5[15][78]|
   23245             6(?:
   23246               [29]8|
   23247               37|
   23248               [68][78]
   23249             )|
   23250             80
   23251           </leadingDigits>
   23252           <format>$1 $2 $3</format>
   23253         </numberFormat>
   23254         <!-- Two-digit area codes -->
   23255         <numberFormat pattern="([1-356]\d)(\d{3,5})">
   23256           <leadingDigits>
   23257             1[3-9]|
   23258             2(?:
   23259               [1-469]|
   23260               0[0-35-9]|
   23261               [45][0-79]
   23262             )|
   23263             3(?:
   23264               0[0-79]|
   23265               1[0-689]|
   23266               [24-69]|
   23267               3[0-69]
   23268             )|
   23269             5(?:
   23270               [02-46-9]|
   23271               [15][0-69]
   23272             )|
   23273             6(?:
   23274               [0145]|
   23275               [29][0-79]|
   23276               3[0-689]|
   23277               [68][0-69]
   23278             )
   23279           </leadingDigits>
   23280           <format>$1 $2</format>
   23281         </numberFormat>
   23282         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
   23283           <leadingDigits>
   23284             1[3-9]|
   23285             2(?:
   23286               [1-469]|
   23287               0[0-35-9]|
   23288               [45][0-79]
   23289             )|
   23290             3(?:
   23291               0[0-79]|
   23292               1[0-689]|
   23293               [24-69]|
   23294               3[0-69]
   23295             )|
   23296             5(?:
   23297               [02-46-9]|
   23298               [15][0-69]
   23299             )|
   23300             6(?:
   23301               [0145]|
   23302               [29][0-79]|
   23303               3[0-689]|
   23304               [68][0-69]
   23305             )
   23306           </leadingDigits>
   23307           <format>$1 $2 $3</format>
   23308         </numberFormat>
   23309         <!-- Four-digit area codes -->
   23310         <numberFormat pattern="([25]\d{3})(\d{3,5})">
   23311           <leadingDigits>
   23312             (?:
   23313               25|
   23314               54
   23315             )8
   23316           </leadingDigits>
   23317           <leadingDigits>
   23318             258[23]|
   23319             5483
   23320           </leadingDigits>
   23321           <format>$1 $2</format>
   23322         </numberFormat>
   23323         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
   23324           <leadingDigits>
   23325             (?:
   23326               25|
   23327               54
   23328             )8
   23329           </leadingDigits>
   23330           <leadingDigits>
   23331             258[23]|
   23332             5483
   23333           </leadingDigits>
   23334           <format>$1 $2 $3</format>
   23335         </numberFormat>
   23336         <!-- VOIP numbers -->
   23337         <numberFormat pattern="(8\d{3})(\d{6})">
   23338           <leadingDigits>86</leadingDigits>
   23339           <format>$1 $2</format>
   23340         </numberFormat>
   23341       </availableFormats>
   23342       <generalDesc>
   23343         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
   23344              variable in length and the possible prefixes clash with the country code. -->
   23345         <nationalNumberPattern>
   23346           2(?:
   23347             [012457-9]\d{3,8}|
   23348             6\d{3,6}
   23349           )|
   23350           [13-79]\d{4,8}|
   23351           8[06]\d{8}
   23352         </nationalNumberPattern>
   23353         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
   23354       </generalDesc>
   23355       <fixedLine>
   23356         <!-- Numbering is grouped by subscriber-number length. -->
   23357         <nationalNumberPattern>
   23358           (?:
   23359             1[3-9]|
   23360             2(?:
   23361               0[45]|
   23362               [16]|
   23363               2[28]|
   23364               [49]8?|
   23365               58[23]|
   23366               7[246]|
   23367               8[1346-9]
   23368             )|
   23369             3(?:
   23370               08?|
   23371               17?|
   23372               3[78]|
   23373               [2456]|
   23374               7[1569]|
   23375               8[379]
   23376             )|
   23377             5(?:
   23378               [07-9]|
   23379               1[78]|
   23380               483|
   23381               5(?:
   23382                 7?|
   23383                 8
   23384               )
   23385             )|
   23386             6(?:
   23387               0|
   23388               28|
   23389               37?|
   23390               [45][68][78]|
   23391               98?
   23392             )|
   23393             848
   23394           )\d{3,6}|
   23395           (?:
   23396             2(?:
   23397               27|
   23398               5|
   23399               7[135789]|
   23400               8[25]
   23401             )|
   23402             3[39]|
   23403             5[1-46]|
   23404             6[126-8]
   23405           )\d{4,6}|
   23406           2(?:
   23407             (?:
   23408               0|
   23409               70
   23410             )\d{5,6}|
   23411             2[05]\d{7}
   23412           )|
   23413           (?:
   23414             4\d|
   23415             9[2-8]
   23416           )\d{4,7}
   23417         </nationalNumberPattern>
   23418         <exampleNumber>1312345</exampleNumber>
   23419       </fixedLine>
   23420       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
   23421            also being used by the carriers as mobile prefixes. -->
   23422       <mobile>
   23423         <nationalNumberPattern>
   23424           7[1378]\d{7}|
   23425           86(?:
   23426             22|
   23427             44
   23428           )\d{6}
   23429         </nationalNumberPattern>
   23430         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
   23431         <exampleNumber>711234567</exampleNumber>
   23432       </mobile>
   23433       <tollFree>
   23434         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
   23435         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   23436         <exampleNumber>8001234567</exampleNumber>
   23437       </tollFree>
   23438       <!-- No premiumRate information can be found. -->
   23439       <voip>
   23440         <nationalNumberPattern>
   23441           86(?:
   23442             1[12]|
   23443             30|
   23444             55|
   23445             77|
   23446             8[367]|
   23447             99
   23448           )\d{6}
   23449         </nationalNumberPattern>
   23450         <possibleNumberPattern>\d{10}</possibleNumberPattern>
   23451         <exampleNumber>8686123456</exampleNumber>
   23452       </voip>
   23453     </territory>
   23454 
   23455     <!-- Universal International Toll Free Number -->
   23456     <!-- http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx -->
   23457     <territory id="001" countryCode="800" leadingZeroPossible="true">
   23458       <availableFormats>
   23459         <numberFormat pattern="(\d{4})(\d{4})">
   23460           <format>$1 $2</format>
   23461         </numberFormat>
   23462       </availableFormats>
   23463       <generalDesc>
   23464         <nationalNumberPattern>\d{8}</nationalNumberPattern>
   23465         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   23466         <exampleNumber>12345678</exampleNumber>
   23467       </generalDesc>
   23468       <fixedLine>
   23469         <nationalNumberPattern>NA</nationalNumberPattern>
   23470         <possibleNumberPattern>NA</possibleNumberPattern>
   23471       </fixedLine>
   23472       <mobile>
   23473         <nationalNumberPattern>NA</nationalNumberPattern>
   23474         <possibleNumberPattern>NA</possibleNumberPattern>
   23475       </mobile>
   23476       <tollFree>
   23477         <nationalNumberPattern>\d{8}</nationalNumberPattern>
   23478       </tollFree>
   23479     </territory>
   23480 
   23481     <!-- Universal International Shared Cost Number -->
   23482     <!-- http://www.itu.int/rec/T-REC-E.169-200205-I/en -->
   23483     <territory id="001" countryCode="808" leadingZeroPossible="true">
   23484       <availableFormats>
   23485         <numberFormat pattern="(\d{4})(\d{4})">
   23486           <format>$1 $2</format>
   23487         </numberFormat>
   23488       </availableFormats>
   23489       <generalDesc>
   23490         <nationalNumberPattern>\d{8}</nationalNumberPattern>
   23491         <possibleNumberPattern>\d{8}</possibleNumberPattern>
   23492         <exampleNumber>12345678</exampleNumber>
   23493       </generalDesc>
   23494       <fixedLine>
   23495         <nationalNumberPattern>NA</nationalNumberPattern>
   23496         <possibleNumberPattern>NA</possibleNumberPattern>
   23497       </fixedLine>
   23498       <mobile>
   23499         <nationalNumberPattern>NA</nationalNumberPattern>
   23500         <possibleNumberPattern>NA</possibleNumberPattern>
   23501       </mobile>
   23502       <sharedCost>
   23503         <nationalNumberPattern>\d{8}</nationalNumberPattern>
   23504       </sharedCost>
   23505     </territory>
   23506 
   23507     <!-- Inmarsat Global Limited -->
   23508     <!-- http://www.itu.int/oth/T0202000065/en -->
   23509     <!-- www.inmarsat.com -->
   23510     <territory id="001" countryCode="870">
   23511       <availableFormats>
   23512         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   23513           <format>$1 $2 $3</format>
   23514         </numberFormat>
   23515       </availableFormats>
   23516       <generalDesc>
   23517         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
   23518         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23519         <exampleNumber>301234567</exampleNumber>
   23520       </generalDesc>
   23521       <fixedLine>
   23522         <nationalNumberPattern>NA</nationalNumberPattern>
   23523         <possibleNumberPattern>NA</possibleNumberPattern>
   23524       </fixedLine>
   23525       <mobile>
   23526         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
   23527         <nationalNumberPattern>
   23528           (?:
   23529             [356]\d|
   23530             7[6-8]
   23531           )\d{7}
   23532         </nationalNumberPattern>
   23533       </mobile>
   23534     </territory>
   23535 
   23536     <!-- VISIONng -->
   23537     <!-- http://www.itu.int/oth/T02020000E5/en -->
   23538     <!-- Number length has been derived from examples found online. -->
   23539     <territory id="001" countryCode="878">
   23540       <availableFormats>
   23541         <!-- Formatting chosen based on online examples. -->
   23542         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
   23543           <format>$1 $2 $3</format>
   23544         </numberFormat>
   23545       </availableFormats>
   23546       <generalDesc>
   23547         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
   23548         <possibleNumberPattern>\d{12}</possibleNumberPattern>
   23549         <exampleNumber>101234567890</exampleNumber>
   23550       </generalDesc>
   23551       <fixedLine>
   23552         <nationalNumberPattern>NA</nationalNumberPattern>
   23553         <possibleNumberPattern>NA</possibleNumberPattern>
   23554       </fixedLine>
   23555       <mobile>
   23556         <nationalNumberPattern>NA</nationalNumberPattern>
   23557         <possibleNumberPattern>NA</possibleNumberPattern>
   23558       </mobile>
   23559       <voip>
   23560         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
   23561       </voip>
   23562     </territory>
   23563 
   23564     <!-- Iridium -->
   23565     <!-- www.iridium.com -->
   23566     <!-- http://www.itu.int/oth/T0202000069/en -->
   23567     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
   23568          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
   23569          are. For this reason, we only support Iridium numbers at the moment. -->
   23570     <territory id="001" countryCode="881">
   23571       <availableFormats>
   23572         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
   23573         <numberFormat pattern="(\d)(\d{3})(\d{5})">
   23574           <leadingDigits>[67]</leadingDigits>
   23575           <format>$1 $2 $3</format>
   23576         </numberFormat>
   23577       </availableFormats>
   23578       <generalDesc>
   23579         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
   23580         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23581         <exampleNumber>612345678</exampleNumber>
   23582       </generalDesc>
   23583       <fixedLine>
   23584         <nationalNumberPattern>NA</nationalNumberPattern>
   23585         <possibleNumberPattern>NA</possibleNumberPattern>
   23586       </fixedLine>
   23587       <mobile>
   23588         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
   23589       </mobile>
   23590     </territory>
   23591 
   23592     <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
   23593     <!-- http://www.itu.int/oth/T0202000054/en -->
   23594     <!-- http://www.gsm.aq/numberplan.php -->
   23595     <!-- http://www.global.aq -->
   23596     <!-- Maritime Communications Partner (MCP) +88232 -->
   23597     <!-- http://www.itu.int/oth/T02020000F4/en -->
   23598     <!-- Oration Technologies +88237 -->
   23599     <!-- http://www.itu.int/oth/T02020000A0/en -->
   23600     <!-- Telespazio S.p.A. +88213 -->
   23601     <!-- http://www.itu.int/oth/T02020000CC/en -->
   23602     <!-- Thuraya +88216 -->
   23603     <!-- http://www.itu.int/oth/T02020000CF/en -->
   23604     <territory id="001" countryCode="882">
   23605       <availableFormats>
   23606         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
   23607           <leadingDigits>3[23]</leadingDigits>
   23608           <format>$1 $2 $3</format>
   23609         </numberFormat>
   23610         <numberFormat pattern="(\d{2})(\d{5})">
   23611           <leadingDigits>
   23612             16|
   23613             342
   23614           </leadingDigits>
   23615           <format>$1 $2</format>
   23616         </numberFormat>
   23617         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
   23618           <leadingDigits>34[57]</leadingDigits>
   23619           <format>$1 $2 $3</format>
   23620         </numberFormat>
   23621         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
   23622           <leadingDigits>348</leadingDigits>
   23623           <format>$1 $2 $3</format>
   23624         </numberFormat>
   23625         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
   23626           <leadingDigits>1</leadingDigits>
   23627           <format>$1 $2 $3</format>
   23628         </numberFormat>
   23629         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
   23630           <leadingDigits>16</leadingDigits>
   23631           <format>$1 $2 $3</format>
   23632         </numberFormat>
   23633         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
   23634           <leadingDigits>16</leadingDigits>
   23635           <format>$1 $2 $3</format>
   23636         </numberFormat>
   23637       </availableFormats>
   23638       <generalDesc>
   23639         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
   23640         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
   23641         <exampleNumber>3451234567</exampleNumber>
   23642       </generalDesc>
   23643       <fixedLine>
   23644         <nationalNumberPattern>NA</nationalNumberPattern>
   23645         <possibleNumberPattern>NA</possibleNumberPattern>
   23646       </fixedLine>
   23647       <mobile>
   23648         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
   23649              Oration based on numbers found online. -->
   23650         <nationalNumberPattern>
   23651           3(?:
   23652             2\d{3}|
   23653             37\d{2}|
   23654             4(?:
   23655               2|
   23656               7\d{3}
   23657             )
   23658           )\d{4}
   23659         </nationalNumberPattern>
   23660         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
   23661       </mobile>
   23662       <voip>
   23663         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
   23664         <nationalNumberPattern>
   23665           1(?:
   23666             3(?:
   23667               0[0347]|
   23668               [13][0139]|
   23669               2[035]|
   23670               4[013568]|
   23671               6[0459]|
   23672               7[06]|
   23673               8[15678]|
   23674               9[0689]
   23675             )\d{4}|
   23676             6\d{5,10}
   23677           )|
   23678           345\d{7}
   23679         </nationalNumberPattern>
   23680         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
   23681       </voip>
   23682       <voicemail>
   23683         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
   23684         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   23685       </voicemail>
   23686     </territory>
   23687 
   23688     <!-- http://www.itu.int/oth/T02020000F3/en -->
   23689     <!-- http://www.republicwireless.com/world-wi-fi-number -->
   23690     <territory id="001" countryCode="883">
   23691       <availableFormats>
   23692         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
   23693           <format>$1 $2 $3</format>
   23694         </numberFormat>
   23695         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
   23696           <format>$1 $2 $3 $4</format>
   23697         </numberFormat>
   23698       </availableFormats>
   23699       <generalDesc>
   23700         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
   23701              costs can be found online, so we don't include them here for now. -->
   23702         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
   23703         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
   23704         <exampleNumber>510012345</exampleNumber>
   23705       </generalDesc>
   23706       <fixedLine>
   23707         <nationalNumberPattern>NA</nationalNumberPattern>
   23708         <possibleNumberPattern>NA</possibleNumberPattern>
   23709       </fixedLine>
   23710       <mobile>
   23711         <nationalNumberPattern>NA</nationalNumberPattern>
   23712         <possibleNumberPattern>NA</possibleNumberPattern>
   23713       </mobile>
   23714       <voip>
   23715         <nationalNumberPattern>
   23716           51(?:
   23717             00\d{5}(?:\d{3})?|
   23718             10\d{8}
   23719           )
   23720         </nationalNumberPattern>
   23721       </voip>
   23722     </territory>
   23723 
   23724     <!-- United Nations- OCHA -->
   23725     <!-- http://www.itu.int/oth/T02020000FA/en -->
   23726     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
   23727          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
   23728          the tariff of a national call. -->
   23729     <territory id="001" countryCode="888" leadingZeroPossible="true">
   23730       <availableFormats>
   23731         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
   23732           <format>$1 $2 $3</format>
   23733         </numberFormat>
   23734       </availableFormats>
   23735       <generalDesc>
   23736         <nationalNumberPattern>\d{11}</nationalNumberPattern>
   23737         <possibleNumberPattern>\d{11}</possibleNumberPattern>
   23738         <exampleNumber>12345678901</exampleNumber>
   23739       </generalDesc>
   23740       <fixedLine>
   23741         <nationalNumberPattern>NA</nationalNumberPattern>
   23742         <possibleNumberPattern>NA</possibleNumberPattern>
   23743       </fixedLine>
   23744       <mobile>
   23745         <nationalNumberPattern>NA</nationalNumberPattern>
   23746         <possibleNumberPattern>NA</possibleNumberPattern>
   23747       </mobile>
   23748       <uan>
   23749         <nationalNumberPattern>\d{11}</nationalNumberPattern>
   23750       </uan>
   23751     </territory>
   23752 
   23753     <!-- Universal International Premium Rate Number -->
   23754     <!-- http://www.itu.int/rec/T-REC-E.169-200205-I/en -->
   23755     <territory id="001" countryCode="979" leadingZeroPossible="true">
   23756       <availableFormats>
   23757         <numberFormat pattern="(\d)(\d{4})(\d{4})">
   23758           <format>$1 $2 $3</format>
   23759         </numberFormat>
   23760       </availableFormats>
   23761       <generalDesc>
   23762         <nationalNumberPattern>\d{9}</nationalNumberPattern>
   23763         <possibleNumberPattern>\d{9}</possibleNumberPattern>
   23764         <exampleNumber>123456789</exampleNumber>
   23765       </generalDesc>
   23766       <fixedLine>
   23767         <nationalNumberPattern>NA</nationalNumberPattern>
   23768         <possibleNumberPattern>NA</possibleNumberPattern>
   23769       </fixedLine>
   23770       <mobile>
   23771         <nationalNumberPattern>NA</nationalNumberPattern>
   23772         <possibleNumberPattern>NA</possibleNumberPattern>
   23773       </mobile>
   23774       <premiumRate>
   23775         <nationalNumberPattern>\d{9}</nationalNumberPattern>
   23776       </premiumRate>
   23777     </territory>
   23778   </territories>
   23779 </phoneNumberMetadata>
   23780