e3b0b3c997b9269ce0fdd40e09e0bf14da68a81a
[platform/upstream/libphonenumber.git] / resources / PhoneNumberMetadata.xml
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
17      Metadata on Phone Number Plan and formatting rules
18      Note: Territories are in alphabetical order by their IDs, which are based on ISO 3166-1
19            two-letter country codes (or are set to "001" for non-geographical entities, which
20            represents "World" in the UN M.49 standard). The country names in the comments are the
21            official short names in English according to ISO 3166-1.
22
23      For more information on what each element represents, see
24      resources/phonemetadata.proto
25
26      Note that if you want to add validation metadata, the generalDesc nationalNumberPattern and
27      possibleNumberPattern must be provided. If this is missing, then the country will be
28      considered to have no more specific phone-number type metadata (fixedLine, mobile etc) and
29      hence only basic validation rules (numbers should be between 3 and 15 digits long) will be
30      applied.
31
32      If adding an element for a non-geographical entity, please add an example number element to the
33      general description.
34
35      Country code, international and national prefix information main source:
36      http://www.itu.int/pub/T-SP-E.164C-2011
37 -->
38
39 <!DOCTYPE phoneNumberMetadata [
40     <!ELEMENT phoneNumberMetadata (territories)>
41     <!ELEMENT territories (territory+)>
42     <!ELEMENT territory (references?, availableFormats?, generalDesc?, noInternationalDialling?,
43         areaCodeOptional?, fixedLine?, mobile?, pager?, tollFree?, premiumRate?,
44         sharedCost?, personalNumber?, voip?, uan?, voicemail?)>
45     <!ELEMENT references (sourceUrl+)>
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 sourceUrl (#PCDATA)>
61     <!ELEMENT availableFormats (numberFormat+)>
62     <!ELEMENT nationalNumberPattern (#PCDATA)>
63     <!ELEMENT possibleNumberPattern (#PCDATA)>
64     <!ELEMENT exampleNumber (#PCDATA)>
65     <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)>
66     <!ELEMENT format (#PCDATA)>
67     <!ELEMENT intlFormat (#PCDATA)>
68     <!ELEMENT leadingDigits (#PCDATA)>
69
70     <!ATTLIST territory id CDATA #REQUIRED>
71     <!ATTLIST territory countryCode CDATA #REQUIRED>
72     <!ATTLIST territory mainCountryForCode (true) #IMPLIED>
73     <!ATTLIST territory leadingDigits CDATA #IMPLIED>
74     <!ATTLIST territory preferredInternationalPrefix CDATA #IMPLIED>
75     <!ATTLIST territory internationalPrefix CDATA #IMPLIED>
76     <!ATTLIST territory nationalPrefix CDATA #IMPLIED>
77     <!ATTLIST territory nationalPrefixForParsing CDATA #IMPLIED>
78     <!ATTLIST territory nationalPrefixTransformRule CDATA #IMPLIED>
79     <!ATTLIST territory preferredExtnPrefix CDATA #IMPLIED>
80     <!ATTLIST territory nationalPrefixFormattingRule CDATA #IMPLIED>
81     <!ATTLIST territory nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
82     <!ATTLIST territory leadingZeroPossible (true) #IMPLIED>
83     <!ATTLIST territory carrierCodeFormattingRule CDATA #IMPLIED>
84     <!ATTLIST territory mobileNumberPortableRegion (true) #IMPLIED>
85     <!ATTLIST numberFormat nationalPrefixFormattingRule CDATA #IMPLIED>
86     <!ATTLIST numberFormat nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
87     <!ATTLIST numberFormat carrierCodeFormattingRule CDATA #IMPLIED>
88     <!ATTLIST numberFormat pattern CDATA #REQUIRED>
89 ]>
90
91 <phoneNumberMetadata>
92   <territories>
93     <!-- Ascension Island -->
94     <territory id="AC" countryCode="247" internationalPrefix="00">
95       <references>
96         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
97       </references>
98       <!-- Formatted as a block. -->
99       <generalDesc>
100         <nationalNumberPattern>[2-7]\d{3,5}</nationalNumberPattern>
101         <possibleNumberPattern>\d{4,6}</possibleNumberPattern>
102       </generalDesc>
103       <fixedLine>
104         <nationalNumberPattern>
105           (?:
106             [267]\d|
107             3[0-5]|
108             4[4-69]
109           )\d{2}
110         </nationalNumberPattern>
111         <possibleNumberPattern>\d{4}</possibleNumberPattern>
112         <exampleNumber>6889</exampleNumber>
113       </fixedLine>
114       <mobile>
115         <nationalNumberPattern>5\d{5}</nationalNumberPattern>
116         <possibleNumberPattern>\d{6}</possibleNumberPattern>
117         <exampleNumber>501234</exampleNumber>
118       </mobile>
119     </territory>
120
121     <!-- Andorra -->
122     <territory id="AD" countryCode="376" internationalPrefix="00">
123       <references>
124         <sourceUrl>http://www.itu.int/oth/T0202000005/en</sourceUrl>
125       </references>
126       <availableFormats>
127         <numberFormat pattern="(\d{3})(\d{3})">
128           <leadingDigits>[346-9]</leadingDigits>
129           <format>$1 $2</format>
130         </numberFormat>
131         <numberFormat pattern="(180[02])(\d{4})">
132           <leadingDigits>1</leadingDigits>
133           <format>$1 $2</format>
134         </numberFormat>
135       </availableFormats>
136       <generalDesc>
137         <nationalNumberPattern>
138           (?:
139             [346-9]|
140             180
141           )\d{5}
142         </nationalNumberPattern>
143         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
144       </generalDesc>
145       <fixedLine>
146         <nationalNumberPattern>[78]\d{5}</nationalNumberPattern>
147         <possibleNumberPattern>\d{6}</possibleNumberPattern>
148         <exampleNumber>712345</exampleNumber>
149       </fixedLine>
150       <mobile>
151         <nationalNumberPattern>[346]\d{5}</nationalNumberPattern>
152         <possibleNumberPattern>\d{6}</possibleNumberPattern>
153         <exampleNumber>312345</exampleNumber>
154       </mobile>
155       <tollFree>
156         <!-- Note that the definitions of 1800 and 1802 numbers differ in the plan and on the
157              Andorran http://www.sta.ad website, but we consider both to be freephone here. -->
158         <nationalNumberPattern>180[02]\d{4}</nationalNumberPattern>
159         <possibleNumberPattern>\d{8}</possibleNumberPattern>
160         <exampleNumber>18001234</exampleNumber>
161       </tollFree>
162       <!-- The national numbering plan says that numbers beginning with 9 are reserved for special
163            services, so we assume they are premium rate here, although we cannot find examples
164            online. -->
165       <premiumRate>
166         <nationalNumberPattern>9\d{5}</nationalNumberPattern>
167         <possibleNumberPattern>\d{6}</possibleNumberPattern>
168         <exampleNumber>912345</exampleNumber>
169       </premiumRate>
170     </territory>
171
172     <!-- United Arab Emirates -->
173     <territory id="AE" countryCode="971" internationalPrefix="00"
174                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
175       <references>
176         <sourceUrl>http://www.itu.int/oth/T02020000DC/en</sourceUrl>
177       </references>
178       <availableFormats>
179         <numberFormat pattern="([2-4679])(\d{3})(\d{4})">
180           <leadingDigits>[2-4679][2-8]</leadingDigits>
181           <format>$1 $2 $3</format>
182         </numberFormat>
183         <numberFormat pattern="(5[0256])(\d{3})(\d{4})">
184           <leadingDigits>5</leadingDigits>
185           <format>$1 $2 $3</format>
186         </numberFormat>
187         <numberFormat pattern="([479]00)(\d)(\d{5})" nationalPrefixFormattingRule="$FG">
188           <leadingDigits>[479]0</leadingDigits>
189           <format>$1 $2 $3</format>
190         </numberFormat>
191         <numberFormat pattern="([68]00)(\d{2,9})" nationalPrefixFormattingRule="$FG">
192           <leadingDigits>
193             60|
194             8
195           </leadingDigits>
196           <format>$1 $2</format>
197         </numberFormat>
198       </availableFormats>
199       <generalDesc>
200         <nationalNumberPattern>
201           [2-79]\d{7,8}|
202           800\d{2,9}
203         </nationalNumberPattern>
204         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
205       </generalDesc>
206       <fixedLine>
207         <nationalNumberPattern>[2-4679][2-8]\d{6}</nationalNumberPattern>
208         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
209         <exampleNumber>22345678</exampleNumber>
210       </fixedLine>
211       <mobile>
212         <nationalNumberPattern>5[0256]\d{7}</nationalNumberPattern>
213         <possibleNumberPattern>\d{9}</possibleNumberPattern>
214         <exampleNumber>501234567</exampleNumber>
215       </mobile>
216       <tollFree>
217         <nationalNumberPattern>
218           400\d{6}|
219           800\d{2,9}
220         </nationalNumberPattern>
221         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
222         <exampleNumber>800123456</exampleNumber>
223       </tollFree>
224       <premiumRate>
225         <nationalNumberPattern>900[02]\d{5}</nationalNumberPattern>
226         <possibleNumberPattern>\d{9}</possibleNumberPattern>
227         <exampleNumber>900234567</exampleNumber>
228       </premiumRate>
229       <sharedCost>
230         <nationalNumberPattern>700[05]\d{5}</nationalNumberPattern>
231         <possibleNumberPattern>\d{9}</possibleNumberPattern>
232         <exampleNumber>700012345</exampleNumber>
233       </sharedCost>
234       <uan>
235         <nationalNumberPattern>600[25]\d{5}</nationalNumberPattern>
236         <possibleNumberPattern>\d{9}</possibleNumberPattern>
237         <exampleNumber>600212345</exampleNumber>
238       </uan>
239     </territory>
240
241     <!-- Afghanistan -->
242     <territory id="AF" countryCode="93" internationalPrefix="00"
243                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
244       <references>
245         <sourceUrl>http://www.itu.int/oth/T0202000001/en</sourceUrl>
246       </references>
247       <availableFormats>
248         <!-- Formatting based primarily on ITU document. -->
249         <numberFormat pattern="([2-7]\d)(\d{3})(\d{4})">
250           <leadingDigits>
251             [2-6]|
252             7[013-9]
253           </leadingDigits>
254           <format>$1 $2 $3</format>
255         </numberFormat>
256         <!-- Formatting 729 numbers differently based on numbers seen online. -->
257         <numberFormat pattern="(729)(\d{3})(\d{3})">
258           <leadingDigits>729</leadingDigits>
259           <format>$1 $2 $3</format>
260         </numberFormat>
261       </availableFormats>
262       <generalDesc>
263         <nationalNumberPattern>[2-7]\d{8}</nationalNumberPattern>
264         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
265       </generalDesc>
266       <fixedLine>
267         <nationalNumberPattern>
268           (?:
269             [25][0-8]|
270             [34][0-4]|
271             6[0-5]
272           )[2-9]\d{6}
273         </nationalNumberPattern>
274         <exampleNumber>234567890</exampleNumber>
275       </fixedLine>
276       <mobile>
277         <nationalNumberPattern>
278           7(?:
279             [05-9]\d{7}|
280             29\d{6}
281           )
282         </nationalNumberPattern>
283         <possibleNumberPattern>\d{9}</possibleNumberPattern>
284         <exampleNumber>701234567</exampleNumber>
285       </mobile>
286     </territory>
287
288     <!-- Antigua and Barbuda -->
289     <territory id="AG" countryCode="1" leadingDigits="268" nationalPrefix="1"
290                internationalPrefix="011">
291       <references>
292         <sourceUrl>http://www.itu.int/oth/T0202000008/en</sourceUrl>
293       </references>
294       <generalDesc>
295         <!-- NANPA country - uses US formatting rules -->
296         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
297         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
298       </generalDesc>
299       <fixedLine>
300         <!-- 268 468 is not in the plan, but has been added after numbers with this prefix have been
301              found in online searches. -->
302         <nationalNumberPattern>
303           268(?:
304             4(?:
305               6[0-38]|
306               84
307             )|
308             56[0-2]
309           )\d{4}
310         </nationalNumberPattern>
311         <exampleNumber>2684601234</exampleNumber>
312       </fixedLine>
313       <mobile>
314         <!-- 268 776/778/779 are not in the plan, but have been added after numbers with these
315              prefixes have been found in online searches. Same for 268 780/782/784/786. -->
316         <nationalNumberPattern>
317           268(?:
318             464|
319             7(?:
320               2[0-9]|
321               64|
322               7[0-689]|
323               8[02-68]
324             )
325           )\d{4}
326         </nationalNumberPattern>
327         <possibleNumberPattern>\d{10}</possibleNumberPattern>
328         <exampleNumber>2684641234</exampleNumber>
329       </mobile>
330       <pager>
331         <nationalNumberPattern>26840[69]\d{4}</nationalNumberPattern>
332         <possibleNumberPattern>\d{10}</possibleNumberPattern>
333         <exampleNumber>2684061234</exampleNumber>
334       </pager>
335       <tollFree>
336         <nationalNumberPattern>
337           8(?:
338             00|
339             44|
340             55|
341             66|
342             77|
343             88
344           )[2-9]\d{6}
345         </nationalNumberPattern>
346         <possibleNumberPattern>\d{10}</possibleNumberPattern>
347         <exampleNumber>8002123456</exampleNumber>
348       </tollFree>
349       <premiumRate>
350         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
351         <possibleNumberPattern>\d{10}</possibleNumberPattern>
352         <exampleNumber>9002123456</exampleNumber>
353       </premiumRate>
354       <personalNumber>
355         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
356         <nationalNumberPattern>
357           5(?:
358             00|
359             33|
360             44|
361             66|
362             77
363           )[2-9]\d{6}
364         </nationalNumberPattern>
365         <possibleNumberPattern>\d{10}</possibleNumberPattern>
366         <exampleNumber>5002345678</exampleNumber>
367       </personalNumber>
368       <voip>
369         <!-- This is included as Centrex in the plan. -->
370         <nationalNumberPattern>26848[01]\d{4}</nationalNumberPattern>
371         <possibleNumberPattern>\d{10}</possibleNumberPattern>
372         <exampleNumber>2684801234</exampleNumber>
373       </voip>
374     </territory>
375
376     <!-- Anguilla -->
377     <territory id="AI" countryCode="1" leadingDigits="264" nationalPrefix="1"
378                internationalPrefix="011">
379       <references>
380         <sourceUrl>http://www.itu.int/oth/T0202000007/en</sourceUrl>
381       </references>
382       <generalDesc>
383         <!-- NANPA country - uses US formatting rules -->
384         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
385         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
386       </generalDesc>
387       <fixedLine>
388         <nationalNumberPattern>
389           2644(?:
390             6[12]|
391             9[78]
392           )\d{4}
393         </nationalNumberPattern>
394         <exampleNumber>2644612345</exampleNumber>
395       </fixedLine>
396       <mobile>
397         <nationalNumberPattern>
398           264(?:
399             235|
400             476|
401             5(?:
402               3[6-9]|
403               8[1-4]
404             )|
405             7(?:
406               29|
407               72
408             )
409           )\d{4}
410         </nationalNumberPattern>
411         <possibleNumberPattern>\d{10}</possibleNumberPattern>
412         <exampleNumber>2642351234</exampleNumber>
413       </mobile>
414       <tollFree>
415         <nationalNumberPattern>
416           8(?:
417             00|
418             44|
419             55|
420             66|
421             77|
422             88
423           )[2-9]\d{6}
424         </nationalNumberPattern>
425         <possibleNumberPattern>\d{10}</possibleNumberPattern>
426         <exampleNumber>8002123456</exampleNumber>
427       </tollFree>
428       <premiumRate>
429         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
430         <possibleNumberPattern>\d{10}</possibleNumberPattern>
431         <exampleNumber>9002123456</exampleNumber>
432       </premiumRate>
433       <personalNumber>
434         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
435         <nationalNumberPattern>
436           5(?:
437             00|
438             33|
439             44|
440             66|
441             77
442           )[2-9]\d{6}
443         </nationalNumberPattern>
444         <possibleNumberPattern>\d{10}</possibleNumberPattern>
445         <exampleNumber>5002345678</exampleNumber>
446       </personalNumber>
447     </territory>
448
449     <!-- Albania -->
450     <territory id="AL" countryCode="355" internationalPrefix="00"
451                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
452                mobileNumberPortableRegion="true">
453       <references>
454         <sourceUrl>http://www.itu.int/oth/T0202000002/en</sourceUrl>
455       </references>
456       <availableFormats>
457         <!-- Formats mostly follow http://tirana.usembassy.gov/list_of_doctors.html -->
458         <numberFormat pattern="(4)(\d{3})(\d{4})">
459           <leadingDigits>4[0-6]</leadingDigits>
460           <format>$1 $2 $3</format>
461         </numberFormat>
462         <numberFormat pattern="(6[6-9])(\d{3})(\d{4})">
463           <leadingDigits>6</leadingDigits>
464           <format>$1 $2 $3</format>
465         </numberFormat>
466         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
467           <leadingDigits>
468             [2358][2-5]|
469             4[7-9]
470           </leadingDigits>
471           <format>$1 $2 $3</format>
472         </numberFormat>
473         <numberFormat pattern="(\d{3})(\d{3,5})">
474           <leadingDigits>
475             [235][16-9]|
476             8[016-9]|
477             [79]
478           </leadingDigits>
479           <format>$1 $2</format>
480         </numberFormat>
481       </availableFormats>
482       <generalDesc>
483         <nationalNumberPattern>
484           [2-57]\d{7}|
485           6\d{8}|
486           8\d{5,7}|
487           9\d{5}
488         </nationalNumberPattern>
489         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
490       </generalDesc>
491       <fixedLine>
492         <nationalNumberPattern>
493           (?:
494             2(?:
495               [168][1-9]|
496               [247]\d|
497               9[1-7]
498             )|
499             3(?:
500               1[1-3]|
501               [2-6]\d|
502               [79][1-8]|
503               8[1-9]
504             )|
505             4\d{2}|
506             5(?:
507               1[1-4]|
508               [2-578]\d|
509               6[1-5]|
510               9[1-7]
511             )|
512             8(?:
513               [19][1-5]|
514               [2-6]\d|
515               [78][1-7]
516             )
517           )\d{5}
518         </nationalNumberPattern>
519         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
520         <exampleNumber>22345678</exampleNumber>
521       </fixedLine>
522       <mobile>
523         <nationalNumberPattern>6[6-9]\d{7}</nationalNumberPattern>
524         <possibleNumberPattern>\d{9}</possibleNumberPattern>
525         <exampleNumber>661234567</exampleNumber>
526       </mobile>
527       <tollFree>
528         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
529         <possibleNumberPattern>\d{7}</possibleNumberPattern>
530         <exampleNumber>8001234</exampleNumber>
531       </tollFree>
532       <premiumRate>
533         <!-- It is named "Shared Revenue Services" in the plan, but as there is a separate "Shared
534              Cost Services", it is highly likely these numbers are premium rate numbers. No
535              information/example is found in the Internet. -->
536         <nationalNumberPattern>900\d{3}</nationalNumberPattern>
537         <possibleNumberPattern>\d{6}</possibleNumberPattern>
538         <exampleNumber>900123</exampleNumber>
539       </premiumRate>
540       <sharedCost>
541         <nationalNumberPattern>808\d{3}</nationalNumberPattern>
542         <possibleNumberPattern>\d{6}</possibleNumberPattern>
543         <exampleNumber>808123</exampleNumber>
544       </sharedCost>
545       <personalNumber>
546         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
547         <possibleNumberPattern>\d{8}</possibleNumberPattern>
548         <exampleNumber>70012345</exampleNumber>
549       </personalNumber>
550     </territory>
551
552     <!-- Armenia -->
553     <!-- We think the national dialling prefix is 0 - it seems this was a change in 2005 (or 2008)
554          along with the new city codes. However, their official document makes no mention of it,
555          websites disagree, and we are not sure if the change has actually been made. -->
556     <territory id="AM" countryCode="374" internationalPrefix="00"
557                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
558                mobileNumberPortableRegion="true" >
559       <references>
560         <sourceUrl>http://www.itu.int/oth/T020200000A/en</sourceUrl>
561         <sourceUrl>http://en.wikipedia.org/wiki/%2B374</sourceUrl>
562         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nagorno-Karabakh_Republic</sourceUrl>
563       </references>
564       <availableFormats>
565         <numberFormat pattern="(\d{2})(\d{6})">
566           <leadingDigits>
567             1|
568             47
569           </leadingDigits>
570           <format>$1 $2</format>
571         </numberFormat>
572         <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
573           <leadingDigits>
574             4[139]|
575             [5-7]|
576             9[1-9]
577           </leadingDigits>
578           <format>$1 $2</format>
579         </numberFormat>
580         <numberFormat pattern="(\d{3})(\d{5})">
581           <leadingDigits>[23]</leadingDigits>
582           <format>$1 $2</format>
583         </numberFormat>
584         <numberFormat pattern="(\d{3})(\d{2})(\d{3})" nationalPrefixFormattingRule="$NP $FG">
585           <leadingDigits>
586             8|
587             90
588           </leadingDigits>
589           <format>$1 $2 $3</format>
590         </numberFormat>
591       </availableFormats>
592       <generalDesc>
593         <nationalNumberPattern>[1-9]\d{7}</nationalNumberPattern>
594         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
595       </generalDesc>
596       <fixedLine>
597         <!-- Includes telephone numbers in Nagorno-Karabakh Republic, physically located inside
598              Azerbaijan, which use prefix 47. -->
599         <nationalNumberPattern>
600           (?:
601             1[01]\d|
602             2(?:
603               2[2-46]|
604               3[1-8]|
605               4[2-69]|
606               5[2-7]|
607               6[1-9]|
608               8[1-7]
609             )|
610             3[12]2|
611             47\d
612           )\d{5}
613         </nationalNumberPattern>
614         <exampleNumber>10123456</exampleNumber>
615       </fixedLine>
616       <mobile>
617         <!-- Part of the range 97 is used by Nagorno-Karabakh Republic. -->
618         <nationalNumberPattern>
619           (?:
620             4[139]|
621             55|
622             77|
623             9[1-9]
624           )\d{6}
625         </nationalNumberPattern>
626         <possibleNumberPattern>\d{8}</possibleNumberPattern>
627         <exampleNumber>77123456</exampleNumber>
628       </mobile>
629       <tollFree>
630         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
631         <possibleNumberPattern>\d{8}</possibleNumberPattern>
632         <exampleNumber>80012345</exampleNumber>
633       </tollFree>
634       <premiumRate>
635         <nationalNumberPattern>90[016]\d{5}</nationalNumberPattern>
636         <possibleNumberPattern>\d{8}</possibleNumberPattern>
637         <exampleNumber>90012345</exampleNumber>
638       </premiumRate>
639       <sharedCost>
640         <nationalNumberPattern>80[1-4]\d{5}</nationalNumberPattern>
641         <possibleNumberPattern>\d{8}</possibleNumberPattern>
642         <exampleNumber>80112345</exampleNumber>
643       </sharedCost>
644       <voip>
645         <nationalNumberPattern>60[2-6]\d{5}</nationalNumberPattern>
646         <possibleNumberPattern>\d{8}</possibleNumberPattern>
647         <exampleNumber>60271234</exampleNumber>
648       </voip>
649     </territory>
650
651     <!-- Angola -->
652     <territory id="AO" countryCode="244" internationalPrefix="00">
653       <references>
654         <sourceUrl>http://www.itu.int/oth/T0202000006/en</sourceUrl>
655       </references>
656       <availableFormats>
657         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
658           <format>$1 $2 $3</format>
659         </numberFormat>
660       </availableFormats>
661       <generalDesc>
662         <nationalNumberPattern>[29]\d{8}</nationalNumberPattern>
663         <possibleNumberPattern>\d{9}</possibleNumberPattern>
664       </generalDesc>
665       <fixedLine>
666         <nationalNumberPattern>
667           2\d(?:
668             [26-9]\d|
669             \d[26-9]
670           )\d{5}
671         </nationalNumberPattern>
672         <exampleNumber>222123456</exampleNumber>
673       </fixedLine>
674       <mobile>
675         <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel
676              apparently launched the prefix 94 on 25th April 2012, and Movicel has 99. -->
677         <nationalNumberPattern>9[1-49]\d{7}</nationalNumberPattern>
678         <exampleNumber>923123456</exampleNumber>
679       </mobile>
680     </territory>
681
682     <!-- Argentina -->
683     <!-- The national prefix for parsing here consists of a 0 (optional), followed by the area code
684          (which is captured, so that it can be retained), followed by 15, which is the mobile token,
685          which will be stripped if present. We expect the following combinations: 0AC15 and AC15
686          (where the 0 and 15 will be stripped, and it will be transformed into 9AC), 0, and 15 (in
687          the latter two cases we just strip the 0 or 15 as appropriate and leave the number as is.)
688          -->
689     <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
690        nationalPrefixForParsing="
691          0?(?:
692            (11|
693             2(?:
694               2(?:
695                 02?|
696                 [13]|
697                 2[13-79]|
698                 4[1-6]|
699                 5[2457]|
700                 6[124-8]|
701                 7[1-4]|
702                 8[13-6]|
703                 9[1267]
704               )|
705               3(?:
706                 02?|
707                 1[467]|
708                 2[03-6]|
709                 3[13-8]|
710                 [49][2-6]|
711                 5[2-8]|
712                 [67]
713               )|
714               4(?:
715                 7[3-578]|
716                 9
717               )|
718               6(?:
719                 [0136]|
720                 2[24-6]|
721                 4[6-8]?|
722                 5[15-8]
723               )|
724               80|
725               9(?:
726                 0[1-3]|
727                 [19]|
728                 2\d|
729                 3[1-6]|
730                 4[02568]?|
731                 5[2-4]|
732                 6[2-46]|
733                 72?|
734                 8[23]?
735               )
736            )|
737            3(?:
738              3(?:
739                2[79]|
740                6|
741                8[2578]
742              )|
743              4(?:
744                0[124-9]|
745                [12]|
746                3[5-8]?|
747                4[24-7]|
748                5[4-68]?|
749                6[02-9]|
750                7[126]|
751                8[2379]?|
752                9[1-36-8]
753              )|
754              5(?:
755                1|
756                2[1245]|
757                3[237]?|
758                4[1-46-9]|
759                6[2-4]|
760                7[1-6]|
761                8[2-5]?
762              )|
763              6[24]|
764              7(?:
765                1[1568]|
766                2[15]|
767                3[145]|
768                4[13]|
769                5[14-8]|
770                [069]|
771                7[2-57]|
772                8[126]
773              )|
774              8(?:
775                [01]|
776                2[15-7]|
777                3[2578]?|
778                4[13-6]|
779                5[4-8]?|
780                6[1-357-9]|
781                7[36-8]?|
782                8[5-8]?|
783                9[124]
784              )
785            )
786          )?15
787        )?"
788        nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG"
789        mobileNumberPortableRegion="true">
790       <references>
791         <sourceUrl>http://www.itu.int/oth/T0202000009/en</sourceUrl>
792         <!-- On the following link, click on Indicativos Interurbanos to access detailed
793              information. -->
794         <sourceUrl>http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp</sourceUrl>
795         <sourceUrl>http://en.wikipedia.org/wiki/+54</sourceUrl>
796       </references>
797       <availableFormats>
798         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
799           <leadingDigits>[68]</leadingDigits>
800           <format>$1-$2-$3</format>
801         </numberFormat>
802         <!-- Format local numbers in two groups. The leading digits are 2-9 since the ITU document
803              says that the digit zero and one will not be present at the start of the subscriber
804              number (which starts with an "Exchange characteristic"). -->
805         <numberFormat pattern="(\d{2})(\d{4})" nationalPrefixFormattingRule="$FG">
806           <leadingDigits>[2-9]</leadingDigits>
807           <format>$1-$2</format>
808           <intlFormat>NA</intlFormat>
809         </numberFormat>
810         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
811           <leadingDigits>[2-9]</leadingDigits>
812           <format>$1-$2</format>
813           <intlFormat>NA</intlFormat>
814         </numberFormat>
815         <numberFormat pattern="(\d{4})(\d{4})" nationalPrefixFormattingRule="$FG">
816           <leadingDigits>[2-9]</leadingDigits>
817           <format>$1-$2</format>
818           <intlFormat>NA</intlFormat>
819         </numberFormat>
820         <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
821           <leadingDigits>911</leadingDigits>
822           <format>$2 15-$3-$4</format>
823           <intlFormat>$1 $2 $3-$4</intlFormat>
824         </numberFormat>
825         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
826           <!-- Some 4-digit area codes actually are caught by this rule. Preference is given however
827                to the 3-digit area codes, since they are considerably larger communities. -->
828           <leadingDigits>
829             9(?:
830               2[234689]|
831               3[3-8]
832             )
833           </leadingDigits>
834           <leadingDigits>
835             9(?:
836               2(?:
837                 2[013]|
838                 3[067]|
839                 49|
840                 6[01346]|
841                 80|
842                 9[147-9]
843               )|
844               3(?:
845                 36|
846                 4[12358]|
847                 5[138]|
848                 6[24]|
849                 7[069]|
850                 8[013578]
851               )
852             )
853           </leadingDigits>
854           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948,
855                298[23], and several 38[3578]X four-digit area codes. -->
856           <leadingDigits>
857             9(?:
858               2(?:
859                 2[013]|
860                 3[067]|
861                 49|
862                 6[01346]|
863                 80|
864                 9(?:
865                   [179]|
866                   4[13479]|
867                   8[014-9]
868                 )
869               )|
870               3(?:
871                 36|
872                 4[12358]|
873                 5(?:
874                   [18]|
875                   3[014-689]
876                 )|
877                 6[24]|
878                 7[069]|
879                 8(?:
880                   [01]|
881                   3[013469]|
882                   5[0-39]|
883                   7[0-2459]|
884                   8[0-49]
885                 )
886               )
887             )
888           </leadingDigits>
889           <format>$2 15-$3-$4</format>
890           <intlFormat>$1 $2 $3-$4</intlFormat>
891         </numberFormat>
892         <!-- Both 4-3-3 and 4-2-4 have been seen online; we prefer the latter since it matches the
893              Argentinian ITU doc and wikipedia. -->
894         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
895           <leadingDigits>9[23]</leadingDigits>
896           <format>$2 15-$3-$4</format>
897           <intlFormat>$1 $2 $3-$4</intlFormat>
898         </numberFormat>
899         <numberFormat pattern="(11)(\d{4})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
900           <leadingDigits>1</leadingDigits>
901           <format>$1 $2-$3</format>
902         </numberFormat>
903         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
904         <numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
905           <leadingDigits>
906             2(?:
907               2[013]|
908               3[067]|
909               49|
910               6[01346]|
911               80|
912               9[147-9]
913             )|
914             3(?:
915               36|
916               4[12358]|
917               5[138]|
918               6[24]|
919               7[069]|
920               8[013578]
921             )
922           </leadingDigits>
923           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948,
924                298[23], and several 38[3578]X four-digit area codes. -->
925           <leadingDigits>
926             2(?:
927               2[013]|
928               3[067]|
929               49|
930               6[01346]|
931               80|
932               9(?:
933                 [179]|
934                 4[13479]|
935                 8[014-9]
936               )
937             )|
938             3(?:
939               36|
940               4[12358]|
941               5(?:
942                 [18]|
943                 3[0-689]
944               )|
945               6[24]|
946               7[069]|
947               8(?:
948                 [01]|
949                 3[013469]|
950                 5[0-39]|
951                 7[0-2459]|
952                 8[0-49]
953               )
954             )
955           </leadingDigits>
956           <format>$1 $2-$3</format>
957         </numberFormat>
958         <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
959           <leadingDigits>[23]</leadingDigits>
960           <format>$1 $2-$3</format>
961         </numberFormat>
962         <!-- Format short numbers as a block. -->
963         <numberFormat pattern="(\d{3})" nationalPrefixFormattingRule="$FG">
964           <leadingDigits>
965             1[012]|
966             911
967           </leadingDigits>
968           <format>$1</format>
969           <intlFormat>NA</intlFormat>
970         </numberFormat>
971       </availableFormats>
972       <generalDesc>
973         <!-- We restrict the second digit after 1 here so we can recognise and strip the 15 mobile
974            carrier prefix when we see it. -->
975         <nationalNumberPattern>
976           11\d{8}|
977           [2368]\d{9}|
978           9\d{10}
979         </nationalNumberPattern>
980         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
981       </generalDesc>
982       <noInternationalDialling>
983         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
984         <possibleNumberPattern>\d{10}</possibleNumberPattern>
985         <exampleNumber>8101234567</exampleNumber>
986       </noInternationalDialling>
987       <fixedLine>
988         <!-- Also covering fixed satellite service numbers (670). -->
989         <nationalNumberPattern>
990           11\d{8}|
991           (?:
992             2(?:
993               2(?:
994                 [013]\d|
995                 2[13-79]|
996                 4[1-6]|
997                 5[2457]|
998                 6[124-8]|
999                 7[1-4]|
1000                 8[13-6]|
1001                 9[1267]
1002               )|
1003               3(?:
1004                 1[467]|
1005                 2[03-6]|
1006                 3[13-8]|
1007                 [49][2-6]|
1008                 5[2-8]|
1009                 [067]\d
1010               )|
1011               4(?:
1012                 7[3-8]|
1013                 9\d
1014               )|
1015               6(?:
1016                 [01346]\d|
1017                 2[24-6]|
1018                 5[15-8]
1019               )|
1020               80\d|
1021               9(?:
1022                 [0124789]\d|
1023                 3[1-6]|
1024                 5[234]|
1025                 6[2-46]
1026               )
1027             )|
1028             3(?:
1029               3(?:
1030                 2[79]|
1031                 6\d|
1032                 8[2578]
1033               )|
1034               4(?:
1035                 [78]\d|
1036                 0[0124-9]|
1037                 [1-35]\d|
1038                 4[24-7]|
1039                 6[02-9]|
1040                 9[123678]
1041               )|
1042               5(?:
1043                 [138]\d|
1044                 2[1245]|
1045                 4[1-9]|
1046                 6[2-4]|
1047                 7[1-6]
1048               )|
1049               6[24]\d|
1050               7(?:
1051                 [0469]\d|
1052                 1[1568]|
1053                 2[013-9]|
1054                 3[145]|
1055                 5[14-8]|
1056                 7[2-57]|
1057                 8[0-24-9]
1058               )|
1059               8(?:
1060                 [013578]\d|
1061                 2[15-7]|
1062                 4[13-6]|
1063                 6[1-357-9]|
1064                 9[124]
1065               )
1066             )|
1067             670\d
1068           )\d{6}
1069         </nationalNumberPattern>
1070         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1071         <exampleNumber>1123456789</exampleNumber>
1072       </fixedLine>
1073       <mobile>
1074         <!-- Also covers mobile satellite services (675 numbers). -->
1075         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
1076              area code is in the range 2-9. The four-digit area-code checking is done in detail if
1077              we attempt to strip the caller-pays token (15) from the number. -->
1078         <nationalNumberPattern>
1079           675\d{7}|
1080           9(?:
1081             11[2-9]\d{7}|
1082             (?:
1083               2(?:
1084                 2[013]|
1085                 3[067]|
1086                 49|
1087                 6[01346]|
1088                 80|
1089                 9[147-9]
1090               )|
1091               3(?:
1092                 36|
1093                 4[12358]|
1094                 5[138]|
1095                 6[24]|
1096                 7[069]|
1097                 8[013578]
1098               )
1099             )[2-9]\d{6}|
1100             \d{4}[2-9]\d{5}
1101           )
1102         </nationalNumberPattern>
1103         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1104         <exampleNumber>91123456789</exampleNumber>
1105       </mobile>
1106       <tollFree>
1107         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
1108         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1109         <exampleNumber>8001234567</exampleNumber>
1110       </tollFree>
1111       <premiumRate>
1112         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
1113         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1114         <exampleNumber>6001234567</exampleNumber>
1115       </premiumRate>
1116       <uan>
1117         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1118         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1119         <exampleNumber>8101234567</exampleNumber>
1120       </uan>
1121     </territory>
1122
1123     <!-- American Samoa -->
1124     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
1125                internationalPrefix="011">
1126       <references>
1127         <sourceUrl>http://www.itu.int/oth/T0202000004/en</sourceUrl>
1128       </references>
1129       <generalDesc>
1130         <!-- NANPA country - uses US formatting rules -->
1131         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
1132         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1133       </generalDesc>
1134       <fixedLine>
1135         <nationalNumberPattern>
1136           6846(?:
1137             22|
1138             33|
1139             44|
1140             55|
1141             77|
1142             88|
1143             9[19]
1144           )\d{4}
1145         </nationalNumberPattern>
1146         <exampleNumber>6846221234</exampleNumber>
1147       </fixedLine>
1148       <mobile>
1149         <!-- Added 25[246], operated from Blue Sky. Added 731, 770, operated by ASTCA. -->
1150         <nationalNumberPattern>
1151           684(?:
1152             25[2468]|
1153             7(?:
1154               3[13]|
1155               70
1156             )
1157           )\d{4}
1158         </nationalNumberPattern>
1159         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1160         <exampleNumber>6847331234</exampleNumber>
1161       </mobile>
1162       <tollFree>
1163         <nationalNumberPattern>
1164           8(?:
1165             00|
1166             44|
1167             55|
1168             66|
1169             77|
1170             88
1171           )[2-9]\d{6}
1172         </nationalNumberPattern>
1173         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1174         <exampleNumber>8002123456</exampleNumber>
1175       </tollFree>
1176       <premiumRate>
1177         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1178         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1179         <exampleNumber>9002123456</exampleNumber>
1180       </premiumRate>
1181       <personalNumber>
1182         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1183         <nationalNumberPattern>
1184           5(?:
1185             00|
1186             33|
1187             44|
1188             66|
1189             77
1190           )[2-9]\d{6}
1191         </nationalNumberPattern>
1192         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1193         <exampleNumber>5002345678</exampleNumber>
1194       </personalNumber>
1195     </territory>
1196
1197     <!-- Austria -->
1198     <territory id="AT" countryCode="43" internationalPrefix="00"
1199                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1200                mobileNumberPortableRegion="true">
1201       <references>
1202         <sourceUrl>http://www.rtr.at/en/tk/E129</sourceUrl>
1203       </references>
1204       <availableFormats>
1205         <numberFormat pattern="(1)(\d{3,12})">
1206           <leadingDigits>1</leadingDigits>
1207           <format>$1 $2</format>
1208         </numberFormat>
1209         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
1210              found on Austrian web pages. -->
1211         <numberFormat pattern="(5\d)(\d{3,5})">
1212           <leadingDigits>5[079]</leadingDigits>
1213           <format>$1 $2</format>
1214         </numberFormat>
1215         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
1216           <leadingDigits>5[079]</leadingDigits>
1217           <format>$1 $2 $3</format>
1218         </numberFormat>
1219         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
1220           <leadingDigits>5[079]</leadingDigits>
1221           <format>$1 $2 $3</format>
1222         </numberFormat>
1223         <numberFormat pattern="(\d{3})(\d{3,10})">
1224           <leadingDigits>
1225             316|
1226             46|
1227             51|
1228             732|
1229             6(?:
1230               44|
1231               5[0-3579]|
1232               [6-9]
1233             )|
1234             7(?:
1235               1|
1236               [28]0
1237             )|
1238             [89]
1239           </leadingDigits>
1240           <format>$1 $2</format>
1241         </numberFormat>
1242         <numberFormat pattern="(\d{4})(\d{3,9})">
1243           <leadingDigits>
1244             2|
1245             3(?:
1246               1[1-578]|
1247               [3-8]
1248             )|
1249             4[2378]|
1250             5[2-6]|
1251             6(?:
1252               [12]|
1253               4[1-35-9]|
1254               5[468]
1255             )|
1256             7(?:
1257               2[1-8]|
1258               35|
1259               4[1-8]|
1260               [5-79]
1261             )
1262           </leadingDigits>
1263             <format>$1 $2</format>
1264           </numberFormat>
1265       </availableFormats>
1266       <generalDesc>
1267         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
1268         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
1269       </generalDesc>
1270       <fixedLine>
1271         <!-- Note that the full area code is not validated - just the first 3 digits. This also
1272              means that even though for most Austrian numbers the minimum length is 7, we allow 6
1273              since we don't differentiate below between 3 and 4 digit area codes for reasons of
1274              efficiency. -->
1275         <nationalNumberPattern>
1276           1\d{3,12}|
1277           (?:
1278             2(?:
1279               1[467]|
1280               2[13-8]|
1281               5[2357]|
1282               6[1-46-8]|
1283               7[1-8]|
1284               8[124-7]|
1285               9[1458]
1286             )|
1287             3(?:
1288               1[1-8]|
1289               3[23568]|
1290               4[5-7]|
1291               5[1378]|
1292               6[1-38]|
1293               8[3-68]
1294             )|
1295             4(?:
1296               2[1-8]|
1297               35|
1298               63|
1299               7[1368]|
1300               8[2457]
1301             )|
1302             5(?:
1303               12|
1304               2[1-8]|
1305               3[357]|
1306               4[147]|
1307               5[12578]|
1308               6[37]
1309             )|
1310             6(?:
1311               13|
1312               2[1-47]|
1313               4[1-35-8]|
1314               5[468]|
1315               62
1316             )|
1317             7(?:
1318               2[1-8]|
1319               3[25]|
1320               4[13478]|
1321               5[68]|
1322               6[16-8]|
1323               7[1-6]|
1324               9[45]
1325             )
1326           )\d{3,10}
1327         </nationalNumberPattern>
1328         <exampleNumber>1234567890</exampleNumber>
1329       </fixedLine>
1330       <mobile>
1331         <nationalNumberPattern>
1332           6(?:
1333             44|
1334             5[0-3579]|
1335             6[013-9]|
1336             [7-9]\d
1337           )\d{4,10}
1338         </nationalNumberPattern>
1339         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
1340         <exampleNumber>644123456</exampleNumber>
1341       </mobile>
1342       <tollFree>
1343         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
1344         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1345         <exampleNumber>800123456</exampleNumber>
1346       </tollFree>
1347       <premiumRate>
1348         <nationalNumberPattern>
1349           (?:
1350             711|
1351             9(?:
1352               0[01]|
1353               3[019]
1354             )
1355           )\d{6,10}
1356         </nationalNumberPattern>
1357         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1358         <exampleNumber>900123456</exampleNumber>
1359       </premiumRate>
1360       <sharedCost>
1361         <nationalNumberPattern>
1362           8(?:
1363             10|
1364             2[018]
1365           )\d{6,10}
1366         </nationalNumberPattern>
1367         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1368         <exampleNumber>810123456</exampleNumber>
1369       </sharedCost>
1370       <voip>
1371         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
1372         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1373         <exampleNumber>780123456</exampleNumber>
1374       </voip>
1375       <uan>
1376         <nationalNumberPattern>
1377           5(?:
1378             (?:
1379               0[1-9]|
1380               17
1381             )\d{2,10}|
1382             [79]\d{3,11}
1383           )|
1384           720\d{6,10}
1385         </nationalNumberPattern>
1386         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
1387         <exampleNumber>50123</exampleNumber>
1388       </uan>
1389     </territory>
1390
1391     <!-- Australia -->
1392     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
1393     <territory id="AU" countryCode="61" mainCountryForCode="true"
1394                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
1395                preferredInternationalPrefix="0011" nationalPrefix="0"
1396                mobileNumberPortableRegion="true">
1397       <references>
1398         <sourceUrl>http://www.itu.int/oth/T020200000D/en</sourceUrl>
1399         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
1400       </references>
1401       <availableFormats>
1402         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
1403           pattern="([2378])(\d{4})(\d{4})">
1404           <leadingDigits>[2378]</leadingDigits>
1405           <format>$1 $2 $3</format>
1406         </numberFormat>
1407         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1408           pattern="(\d{3})(\d{3})(\d{3})">
1409           <leadingDigits>
1410             [45]|
1411             14
1412           </leadingDigits>
1413           <format>$1 $2 $3</format>
1414         </numberFormat>
1415         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1416           pattern="(16)(\d{3})(\d{2,4})">
1417           <leadingDigits>16</leadingDigits>
1418           <format>$1 $2 $3</format>
1419         </numberFormat>
1420         <numberFormat nationalPrefixFormattingRule="$FG"
1421           pattern="(1[389]\d{2})(\d{3})(\d{3})">
1422           <leadingDigits>
1423             1(?:
1424               [38]0|
1425               90
1426             )
1427           </leadingDigits>
1428           <leadingDigits>
1429             1(?:
1430               [38]00|
1431               90
1432             )
1433           </leadingDigits>
1434           <format>$1 $2 $3</format>
1435         </numberFormat>
1436         <numberFormat nationalPrefixFormattingRule="$FG"
1437           pattern="(180)(2\d{3})">
1438           <leadingDigits>180</leadingDigits>
1439           <leadingDigits>1802</leadingDigits>
1440           <format>$1 $2</format>
1441         </numberFormat>
1442         <numberFormat nationalPrefixFormattingRule="$FG"
1443           pattern="(19\d)(\d{3})">
1444           <leadingDigits>19[13]</leadingDigits>
1445           <format>$1 $2</format>
1446         </numberFormat>
1447         <numberFormat nationalPrefixFormattingRule="$FG"
1448           pattern="(19\d{2})(\d{4})">
1449           <leadingDigits>19[67]</leadingDigits>
1450           <format>$1 $2</format>
1451         </numberFormat>
1452         <numberFormat nationalPrefixFormattingRule="$FG"
1453           pattern="(13)(\d{2})(\d{2})">
1454           <leadingDigits>13[1-9]</leadingDigits>
1455           <format>$1 $2 $3</format>
1456         </numberFormat>
1457       </availableFormats>
1458       <generalDesc>
1459         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
1460         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1461       </generalDesc>
1462       <noInternationalDialling>
1463         <nationalNumberPattern>
1464           1(?:
1465             3(?:
1466               \d{4}|
1467               00\d{6}
1468             )|
1469             80(?:
1470               0\d{6}|
1471               2\d{3}
1472             )
1473           )
1474         </nationalNumberPattern>
1475         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1476         <exampleNumber>1300123456</exampleNumber>
1477       </noInternationalDialling>
1478       <fixedLine>
1479         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
1480         <nationalNumberPattern>
1481           [237]\d{8}|
1482           8(?:
1483             [68]\d{3}|
1484             7[0-69]\d{2}|
1485             9(?:
1486               [02-9]\d{2}|
1487               1(?:
1488                 [0-57-9]\d|
1489                 6[0135-9]
1490               )
1491             )
1492           )\d{4}
1493         </nationalNumberPattern>
1494         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1495         <exampleNumber>212345678</exampleNumber>
1496       </fixedLine>
1497       <mobile>
1498         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
1499              other ranges 14[1-3] are not currently used. Note CC and CX should be updated as well
1500              if this pattern changes. -->
1501         <nationalNumberPattern>
1502           14(?:
1503             5\d|
1504             71
1505           )\d{5}|
1506           4(?:
1507             [0-2]\d|
1508             3[0-57-9]|
1509             4[47-9]|
1510             5[0-25-9]|
1511             6[6-9]|
1512             7[03-9]|
1513             8[17-9]|
1514             9[017-9]
1515           )\d{6}
1516         </nationalNumberPattern>
1517         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1518         <exampleNumber>412345678</exampleNumber>
1519       </mobile>
1520       <pager>
1521         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
1522         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
1523         <exampleNumber>1612345</exampleNumber>
1524       </pager>
1525       <tollFree>
1526         <nationalNumberPattern>
1527           180(?:
1528             0\d{3}|
1529             2
1530           )\d{3}
1531         </nationalNumberPattern>
1532         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1533         <exampleNumber>1800123456</exampleNumber>
1534       </tollFree>
1535       <premiumRate>
1536         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
1537         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1538         <exampleNumber>1900123456</exampleNumber>
1539       </premiumRate>
1540       <sharedCost>
1541       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
1542            although they charge a small local call connect fee (around 25c). These start with 13
1543            or 1300. -->
1544         <nationalNumberPattern>
1545           13(?:
1546             00\d{2}
1547           )?\d{4}
1548         </nationalNumberPattern>
1549         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1550         <exampleNumber>1300123456</exampleNumber>
1551       </sharedCost>
1552       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
1553            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
1554            from 0500000000 to 0590000000) -->
1555       <personalNumber>
1556         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
1557         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1558         <exampleNumber>500123456</exampleNumber>
1559       </personalNumber>
1560       <voip>
1561         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
1562         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1563         <exampleNumber>550123456</exampleNumber>
1564       </voip>
1565     </territory>
1566
1567     <!-- Aruba -->
1568     <territory id="AW" countryCode="297" internationalPrefix="00">
1569       <references>
1570         <sourceUrl>http://www.itu.int/oth/T020200000B/en</sourceUrl>
1571       </references>
1572       <availableFormats>
1573         <numberFormat pattern="(\d{3})(\d{4})">
1574           <format>$1 $2</format>
1575         </numberFormat>
1576       </availableFormats>
1577       <generalDesc>
1578         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
1579         <possibleNumberPattern>\d{7}</possibleNumberPattern>
1580       </generalDesc>
1581       <fixedLine>
1582         <nationalNumberPattern>
1583           5(?:
1584             2\d|
1585             8[1-9]
1586           )\d{4}
1587         </nationalNumberPattern>
1588         <exampleNumber>5212345</exampleNumber>
1589       </fixedLine>
1590       <mobile>
1591         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
1592              numbers found online. -->
1593         <nationalNumberPattern>
1594           (?:
1595             5(?:
1596               6\d|
1597               9[2-478]
1598             )|
1599             6(?:
1600               [039]0|
1601               22|
1602               4[01]|
1603               6[0-2]
1604             )|
1605             7[34]\d|
1606             9(?:
1607               6[45]|
1608               9[4-8]
1609             )
1610           )\d{4}
1611         </nationalNumberPattern>
1612         <exampleNumber>5601234</exampleNumber>
1613       </mobile>
1614       <tollFree>
1615         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
1616         <exampleNumber>8001234</exampleNumber>
1617       </tollFree>
1618       <premiumRate>
1619         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
1620         <exampleNumber>9001234</exampleNumber>
1621       </premiumRate>
1622       <voip>
1623         <nationalNumberPattern>
1624           28\d{5}|
1625           501\d{4}
1626         </nationalNumberPattern>
1627         <exampleNumber>5011234</exampleNumber>
1628       </voip>
1629     </territory>
1630
1631     <!-- Ã…land Islands. -->
1632     <!-- Metadata shared with Finland. -->
1633     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
1634                nationalPrefixFormattingRule="$NP$FG">
1635       <references>
1636         <sourceUrl>http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html</sourceUrl>
1637       </references>
1638       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
1639       <generalDesc>
1640         <nationalNumberPattern>
1641           [135]\d{5,9}|
1642           [27]\d{4,9}|
1643           4\d{5,10}|
1644           6\d{7,8}|
1645           8\d{6,9}
1646         </nationalNumberPattern>
1647         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
1648       </generalDesc>
1649       <noInternationalDialling>
1650         <!-- According to the national numbering plan, service numbers are in general not accessible
1651              from abroad, although 600/700/800 numbers may be. -->
1652         <nationalNumberPattern>
1653           [13]00\d{3,7}|
1654           2(?:
1655             0(?:
1656               0\d{3,7}|
1657               2[023]\d{1,6}|
1658               9[89]\d{1,6}
1659             )
1660           )|
1661           60(?:
1662             [12]\d{5,6}|
1663             6\d{7}
1664           )|
1665           7(?:
1666             1\d{7}|
1667             3\d{8}|
1668             5[03-9]\d{2,7}
1669           )
1670         </nationalNumberPattern>
1671         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1672         <exampleNumber>100123</exampleNumber>
1673       </noInternationalDialling>
1674       <fixedLine>
1675         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
1676         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
1677         <exampleNumber>1812345678</exampleNumber>
1678       </fixedLine>
1679       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
1680       <mobile>
1681         <nationalNumberPattern>
1682           4\d{5,10}|
1683           50\d{4,8}
1684         </nationalNumberPattern>
1685         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1686         <exampleNumber>412345678</exampleNumber>
1687       </mobile>
1688       <tollFree>
1689         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
1690         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1691         <exampleNumber>8001234567</exampleNumber>
1692       </tollFree>
1693       <premiumRate>
1694         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
1695         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1696         <exampleNumber>600123456</exampleNumber>
1697       </premiumRate>
1698       <uan>
1699         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
1700              assigned to institutions such as universities, the national post, etc, where they are
1701              not otherwise classified as toll-free or premium-rate numbers. -->
1702         <nationalNumberPattern>
1703           [13]0\d{4,8}|
1704           2(?:
1705             0(?:
1706               [016-8]\d{3,7}|
1707               [2-59]\d{2,7}
1708             )|
1709             9\d{4,8}
1710           )|
1711           60(?:
1712             [12]\d{5,6}|
1713             6\d{7}
1714           )|
1715           7(?:
1716             1\d{7}|
1717             3\d{8}|
1718             5[03-9]\d{2,7}
1719           )
1720         </nationalNumberPattern>
1721         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1722         <exampleNumber>10112345</exampleNumber>
1723       </uan>
1724     </territory>
1725
1726     <!-- Azerbaijan -->
1727     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
1728                nationalPrefixFormattingRule="($NP$FG)" mobileNumberPortableRegion="true">
1729       <references>
1730         <sourceUrl>http://www.itu.int/oth/T020200000F/en</sourceUrl>
1731       </references>
1732       <availableFormats>
1733         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
1734           <leadingDigits>
1735             (?:
1736               1[28]|
1737               2(?:
1738                 [45]2|
1739                 [0-36]
1740               )|
1741               365
1742             )
1743           </leadingDigits>
1744           <format>$1 $2 $3 $4</format>
1745         </numberFormat>
1746         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
1747           <leadingDigits>[4-8]</leadingDigits>
1748           <format>$1 $2 $3 $4</format>
1749         </numberFormat>
1750         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
1751           nationalPrefixFormattingRule="$NP$FG">
1752           <leadingDigits>9</leadingDigits>
1753           <format>$1 $2 $3 $4</format>
1754         </numberFormat>
1755       </availableFormats>
1756       <generalDesc>
1757         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
1758         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
1759       </generalDesc>
1760       <fixedLine>
1761         <nationalNumberPattern>
1762           (?:
1763             1[28]\d|
1764             2(?:
1765               02|
1766               1[24]|
1767               2[2-4]|
1768               33|
1769               [45]2|
1770               6[23]
1771             )|
1772             365
1773           )\d{6}
1774         </nationalNumberPattern>
1775         <exampleNumber>123123456</exampleNumber>
1776       </fixedLine>
1777       <mobile>
1778         <nationalNumberPattern>
1779           (?:
1780             4[04]|
1781             5[015]|
1782             60|
1783             7[07]
1784           )\d{7}
1785         </nationalNumberPattern>
1786         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1787         <exampleNumber>401234567</exampleNumber>
1788       </mobile>
1789       <tollFree>
1790         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
1791              suggest they are in fact national toll-free numbers. -->
1792         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
1793         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1794         <exampleNumber>881234567</exampleNumber>
1795       </tollFree>
1796       <premiumRate>
1797         <!-- These are marked as Interactive Calls in the ITU document. -->
1798         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
1799         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1800         <exampleNumber>900200123</exampleNumber>
1801       </premiumRate>
1802     </territory>
1803
1804     <!-- Bosnia and Herzegovina -->
1805     <territory id="BA" countryCode="387" internationalPrefix="00"
1806                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1807                mobileNumberPortableRegion="true">
1808       <references>
1809         <!-- accessible from http://www.cra.ba/en/telecom/numbering/ -->
1810         <sourceUrl>http://www.rak.ba/eng/index.php?uid=1272016657</sourceUrl>
1811         <sourceUrl>http://en.wikipedia.org/wiki/+387</sourceUrl>
1812       </references>
1813       <availableFormats>
1814         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1815           <leadingDigits>[3-5]</leadingDigits>
1816           <format>$1 $2-$3</format>
1817         </numberFormat>
1818         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1819           <leadingDigits>
1820             6[1-356]|
1821             [7-9]
1822           </leadingDigits>
1823           <format>$1 $2 $3</format>
1824         </numberFormat>
1825         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
1826           <leadingDigits>6[047]</leadingDigits>
1827           <format>$1 $2 $3 $4</format>
1828         </numberFormat>
1829       </availableFormats>
1830       <generalDesc>
1831         <nationalNumberPattern>[3-9]\d{7,8}</nationalNumberPattern>
1832         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
1833       </generalDesc>
1834       <fixedLine>
1835         <nationalNumberPattern>
1836           (?:
1837             [35]\d|
1838             49
1839           )\d{6}
1840         </nationalNumberPattern>
1841         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
1842         <exampleNumber>30123456</exampleNumber>
1843       </fixedLine>
1844       <mobile>
1845         <nationalNumberPattern>
1846           6(?:
1847             03|
1848             44|
1849             71|
1850             [1-356]
1851           )\d{6}
1852         </nationalNumberPattern>
1853         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1854         <exampleNumber>61123456</exampleNumber>
1855       </mobile>
1856       <tollFree>
1857         <nationalNumberPattern>8[08]\d{6}</nationalNumberPattern>
1858         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1859         <exampleNumber>80123456</exampleNumber>
1860       </tollFree>
1861       <premiumRate>
1862         <nationalNumberPattern>9[0246]\d{6}</nationalNumberPattern>
1863         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1864         <exampleNumber>90123456</exampleNumber>
1865       </premiumRate>
1866       <sharedCost>
1867         <!-- Using this category to model national tariff numbers - these are under Shared Cost in
1868              the plan. -->
1869         <nationalNumberPattern>8[12]\d{6}</nationalNumberPattern>
1870         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1871         <exampleNumber>82123456</exampleNumber>
1872       </sharedCost>
1873       <uan>
1874         <!-- Using this to classify nomad numbers. -->
1875         <nationalNumberPattern>70[23]\d{5}</nationalNumberPattern>
1876         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1877         <exampleNumber>70223456</exampleNumber>
1878       </uan>
1879     </territory>
1880
1881     <!-- Barbados -->
1882     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
1883                internationalPrefix="011">
1884       <references>
1885         <sourceUrl>http://www.itu.int/oth/T0202000013/en</sourceUrl>
1886       </references>
1887       <generalDesc>
1888         <!-- NANPA country - uses US formatting rules -->
1889         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
1890         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1891       </generalDesc>
1892       <fixedLine>
1893         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
1894         <exampleNumber>2462345678</exampleNumber>
1895       </fixedLine>
1896       <mobile>
1897         <nationalNumberPattern>
1898           246(?:
1899             (?:
1900               2[346]|
1901               45|
1902               82
1903             )\d|
1904             25[0-4]
1905           )\d{4}
1906         </nationalNumberPattern>
1907         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1908         <exampleNumber>2462501234</exampleNumber>
1909       </mobile>
1910       <tollFree>
1911         <nationalNumberPattern>
1912           8(?:
1913             00|
1914             44|
1915             55|
1916             66|
1917             77|
1918             88
1919           )[2-9]\d{6}
1920         </nationalNumberPattern>
1921         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1922         <exampleNumber>8002123456</exampleNumber>
1923       </tollFree>
1924       <premiumRate>
1925         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1926         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1927         <exampleNumber>9002123456</exampleNumber>
1928       </premiumRate>
1929       <personalNumber>
1930         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1931         <nationalNumberPattern>
1932           5(?:
1933             00|
1934             33|
1935             44|
1936             66|
1937             77
1938           )[2-9]\d{6}
1939         </nationalNumberPattern>
1940         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1941         <exampleNumber>5002345678</exampleNumber>
1942       </personalNumber>
1943     </territory>
1944
1945     <!-- Bangladesh -->
1946     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
1947                preferredInternationalPrefix="00"
1948                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
1949       <references>
1950         <sourceUrl>http://www.itu.int/oth/T0202000012/en</sourceUrl>
1951         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh</sourceUrl>
1952         <sourceUrl>http://www.btrc.gov.bd/engineering/national_numbering_plan_2005.pdf</sourceUrl>
1953       </references>
1954       <availableFormats>
1955         <numberFormat pattern="(2)(\d{7})">
1956           <leadingDigits>2</leadingDigits>
1957           <format>$1-$2</format>
1958         </numberFormat>
1959         <numberFormat pattern="(\d{2})(\d{4,6})">
1960           <leadingDigits>[3-79]1</leadingDigits>
1961           <format>$1-$2</format>
1962         </numberFormat>
1963         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
1964         <numberFormat pattern="(\d{4})(\d{3,6})">
1965           <leadingDigits>
1966             1|
1967             3(?:
1968               0|
1969               [2-58]2
1970             )|
1971             4(?:
1972               0|
1973               [25]2|
1974               3[23]|
1975               [4689][25]
1976             )|
1977             5(?:
1978               [02-578]2|
1979               6[25]
1980             )|
1981             6(?:
1982               [0347-9]2|
1983               [26][25]
1984             )|
1985             7[02-9]2|
1986             8(?:
1987               [023][23]|
1988               [4-7]2
1989             )|
1990             9(?:
1991               [02][23]|
1992               [458]2|
1993               6[016]
1994             )
1995           </leadingDigits>
1996           <format>$1-$2</format>
1997         </numberFormat>
1998         <numberFormat pattern="(\d{3})(\d{3,7})">
1999           <leadingDigits>
2000             [3-79][2-9]|
2001             8
2002           </leadingDigits>
2003           <format>$1-$2</format>
2004         </numberFormat>
2005       </availableFormats>
2006       <generalDesc>
2007       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
2008            plan, so the country code can be accurately stripped off. -->
2009         <nationalNumberPattern>
2010           [2-79]\d{5,9}|
2011           1\d{9}|
2012           8[0-7]\d{4,8}
2013         </nationalNumberPattern>
2014         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
2015       </generalDesc>
2016       <fixedLine>
2017         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
2018              been realised, judging by online numbers and wikipedia. These patterns are grouped
2019              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731
2020              etc) are included despite not being mentioned on the wikipedia page or ITU doc due to
2021              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
2022              do not - both are allowed for now. For some area codes, the subscriber number length
2023              described in our source documentation doesn't match numbers online (e.g. 05222) so we
2024              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
2025              also added 04452 and 04923 from numbers found online. -->
2026         <nationalNumberPattern>
2027           2(?:
2028             7(?:
2029               1[0-267]|
2030               2[0-289]|
2031               3[0-29]|
2032               [46][01]|
2033               5[1-3]|
2034               7[017]|
2035               91
2036             )|
2037             8(?:
2038               0[125]|
2039               [139][1-6]|
2040               2[0157-9]|
2041               6[1-35]|
2042               7[1-5]|
2043               8[1-8]
2044             )|
2045             9(?:
2046               0[0-2]|
2047               1[1-4]|
2048               2[568]|
2049               3[3-6]|
2050               5[5-7]|
2051               6[0167]|
2052               7[15]|
2053               8[016-8]
2054             )
2055           )\d{4}|
2056           3(?:
2057             12?[5-7]\d{2}|
2058             0(?:
2059               2(?:
2060                 [025-79]\d|
2061                 [348]\d{1,2}
2062               )|
2063               3(?:
2064                 [2-4]\d|
2065                 [56]\d?
2066               )
2067             )|
2068             2(?:
2069               1\d{2}|
2070               2(?:
2071                 [12]\d|
2072                 [35]\d{1,2}|
2073                 4\d?
2074               )
2075             )|
2076             3(?:
2077               1\d{2}|
2078               2(?:
2079                 [2356]\d|
2080                 4\d{1,2}
2081               )
2082             )|
2083             4(?:
2084               1\d{2}|
2085               2(?:
2086                 2\d{1,2}|
2087                 [47]|
2088                 5\d{2}
2089               )
2090             )|
2091             5(?:
2092               1\d{2}|
2093               29
2094             )|
2095             [67]1\d{2}|
2096             8(?:
2097               1\d{2}|
2098               2(?:
2099                 2\d{2}|
2100                 3|
2101                 4\d
2102               )
2103             )
2104           )\d{3}|
2105           4(?:
2106             0(?:
2107               2(?:
2108                 [09]\d|
2109                 7
2110               )|
2111               33\d{2}
2112             )|
2113             1\d{3}|
2114             2(?:
2115               1\d{2}|
2116               2(?:
2117                 [25]\d?|
2118                 [348]\d|
2119                 [67]\d{1,2}
2120               )
2121             )|
2122             3(?:
2123               1\d{2}(?:\d{2})?|
2124               2(?:
2125                 [045]\d|
2126                 [236-9]\d{1,2}
2127               )|
2128               32\d{2}
2129             )|
2130             4(?:
2131               [18]\d{2}|
2132               2(?:
2133                 [2-46]\d{2}|
2134                 3
2135               )|
2136               5[25]\d{2}
2137             )|
2138             5(?:
2139               1\d{2}|
2140               2(?:
2141                 3\d|
2142                 5
2143               )
2144             )|
2145             6(?:
2146               [18]\d{2}|
2147               2(?:
2148                 3(?:\d{2})?|
2149                 [46]\d{1,2}|
2150                 5\d{2}|
2151                 7\d
2152               )|
2153               5(?:
2154                 3\d?|
2155                 4\d|
2156                 [57]\d{1,2}|
2157                 6\d{2}|
2158                 8
2159               )
2160             )|
2161             71\d{2}|
2162             8(?:
2163               [18]\d{2}|
2164               23\d{2}|
2165               54\d{2}
2166             )|
2167             9(?:
2168               [18]\d{2}|
2169               2[2-5]\d{2}|
2170               53\d{1,2}
2171             )
2172           )\d{3}|
2173           5(?:
2174             02[03489]\d{2}|
2175             1\d{2}|
2176             2(?:
2177               1\d{2}|
2178               2(?:
2179                 2(?:\d{2})?|
2180                 [457]\d{2}
2181               )
2182             )|
2183             3(?:
2184               1\d{2}|
2185               2(?:
2186                 [37](?:\d{2})?|
2187                 [569]\d{2}
2188               )
2189             )|
2190             4(?:
2191               1\d{2}|
2192               2[46]\d{2}
2193             )|
2194             5(?:
2195               1\d{2}|
2196               26\d{1,2}
2197             )|
2198             6(?:
2199               [18]\d{2}|
2200               2|
2201               53\d{2}
2202             )|
2203             7(?:
2204               1|
2205               24
2206             )\d{2}|
2207             8(?:
2208               1|
2209               26
2210             )\d{2}|
2211             91\d{2}
2212           )\d{3}|
2213           6(?:
2214             0(?:
2215               1\d{2}|
2216               2(?:
2217                 3\d{2}|
2218                 4\d{1,2}
2219               )
2220             )|
2221             2(?:
2222               2[2-5]\d{2}|
2223               5(?:
2224                 [3-5]\d{2}|
2225                 7
2226               )|
2227               8\d{2}
2228             )|
2229             3(?:
2230               1|
2231               2[3478]
2232             )\d{2}|
2233             4(?:
2234               1|
2235               2[34]
2236             )\d{2}|
2237             5(?:
2238               1|
2239               2[47]
2240             )\d{2}|
2241             6(?:
2242               [18]\d{2}|
2243               6(?:
2244                 2(?:
2245                   2\d|
2246                   [34]\d{2}
2247                 )|
2248                 5(?:
2249                   [24]\d{2}|
2250                   3\d|
2251                   5\d{1,2}
2252                 )
2253               )
2254             )|
2255             72[2-5]\d{2}|
2256             8(?:
2257               1\d{2}|
2258               2[2-5]\d{2}
2259             )|
2260             9(?:
2261               1\d{2}|
2262               2[2-6]\d{2}
2263             )
2264           )\d{3}|
2265           7(?:
2266             (?:
2267               02|
2268               [3-589]1|
2269               6[12]|
2270               72[24]
2271             )\d{2}|
2272             21\d{3}|
2273             32
2274           )\d{3}|
2275           8(?:
2276             (?:
2277               4[12]|
2278               [5-7]2|
2279               1\d?
2280             )|
2281             (?:
2282               0|
2283               3[12]|
2284               [5-7]1|
2285               217
2286             )\d
2287           )\d{4}|
2288           9(?:
2289             [35]1|
2290             (?:
2291               [024]2|
2292               81
2293             )\d|
2294             (?:
2295               1|
2296               [24]1
2297             )\d{2}
2298           )\d{3}
2299         </nationalNumberPattern>
2300         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
2301         <exampleNumber>27111234</exampleNumber>
2302       </fixedLine>
2303       <mobile>
2304         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
2305              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
2306              numbers should be moving to 1[13-9] anyway. -->
2307         <nationalNumberPattern>
2308           (?:
2309             1[13-9]\d|
2310             (?:
2311               3[78]|
2312               44
2313             )[02-9]|
2314             6(?:
2315               44|
2316               6[02-9]
2317             )
2318           )\d{7}
2319         </nationalNumberPattern>
2320         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2321         <exampleNumber>1812345678</exampleNumber>
2322       </mobile>
2323       <tollFree>
2324         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
2325         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
2326         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2327         <exampleNumber>8001234567</exampleNumber>
2328       </tollFree>
2329       <voip>
2330         <nationalNumberPattern>
2331           96(?:
2332             0[49]|
2333             1[0-4]|
2334             6[69]
2335           )\d{6}
2336         </nationalNumberPattern>
2337         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2338         <exampleNumber>9604123456</exampleNumber>
2339       </voip>
2340     </territory>
2341
2342     <!-- Belgium -->
2343     <territory id="BE" countryCode="32" internationalPrefix="00"
2344                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2345                mobileNumberPortableRegion="true">
2346       <references>
2347         <sourceUrl>http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx</sourceUrl>
2348         <sourceUrl>http://www.telefoonzones.be/</sourceUrl>
2349       </references>
2350       <availableFormats>
2351         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
2352           <leadingDigits>4[6-9]</leadingDigits>
2353           <format>$1 $2 $3 $4</format>
2354         </numberFormat>
2355         <numberFormat pattern="([2-49])(\d{3})(\d{2})(\d{2})">
2356           <leadingDigits>
2357             [23]|
2358             [49][23]
2359           </leadingDigits>
2360           <format>$1 $2 $3 $4</format>
2361         </numberFormat>
2362         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
2363           <leadingDigits>
2364             [156]|
2365             7[018]|
2366             8(?:
2367               0[1-9]|
2368               [1-79]
2369             )
2370           </leadingDigits>
2371           <format>$1 $2 $3 $4</format>
2372         </numberFormat>
2373         <numberFormat pattern="([89]\d{2})(\d{2})(\d{3})">
2374           <leadingDigits>
2375             (?:
2376               80|
2377               9
2378             )0
2379           </leadingDigits>
2380           <format>$1 $2 $3</format>
2381         </numberFormat>
2382       </availableFormats>
2383       <generalDesc>
2384         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
2385         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2386       </generalDesc>
2387       <fixedLine>
2388         <!-- According to the published Excel document the third digit must be 1-9. -->
2389         <nationalNumberPattern>
2390           (?:
2391             1[0-69]|
2392             [49][23]|
2393             5\d|
2394             6[013-57-9]|
2395             71|
2396             8[0-79]
2397           )[1-9]\d{5}|
2398           [23][2-8]\d{6}
2399         </nationalNumberPattern>
2400         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2401         <exampleNumber>12345678</exampleNumber>
2402       </fixedLine>
2403       <mobile>
2404         <!-- Numbers beginning with 46 outside the ranges allocated by the plan have been included
2405              since many were found online. -->
2406         <nationalNumberPattern>
2407           4(?:
2408             [679]\d|
2409             8[03-9]
2410           )\d{6}
2411         </nationalNumberPattern>
2412         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2413         <exampleNumber>470123456</exampleNumber>
2414       </mobile>
2415       <tollFree>
2416         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2417         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2418         <exampleNumber>80012345</exampleNumber>
2419       </tollFree>
2420       <premiumRate>
2421         <nationalNumberPattern>
2422           (?:
2423             70[2-7]|
2424             90\d
2425           )\d{5}
2426         </nationalNumberPattern>
2427         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2428         <exampleNumber>90123456</exampleNumber>
2429       </premiumRate>
2430       <uan>
2431         <!-- Using this for National Rate Services, since
2432              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
2433              says it will be priced the same as any other national calls. -->
2434         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
2435         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2436         <exampleNumber>78123456</exampleNumber>
2437       </uan>
2438     </territory>
2439
2440     <!-- Burkina Faso -->
2441     <territory id="BF" countryCode="226" internationalPrefix="00">
2442       <references>
2443         <sourceUrl>http://www.itu.int/oth/T0202000021/en</sourceUrl>
2444         <sourceUrl>http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf</sourceUrl>
2445       </references>
2446       <availableFormats>
2447         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
2448              chosen to use the standard from numbers found on the internet instead. -->
2449         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2450           <format>$1 $2 $3 $4</format>
2451         </numberFormat>
2452       </availableFormats>
2453       <generalDesc>
2454         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
2455         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2456       </generalDesc>
2457       <fixedLine>
2458         <nationalNumberPattern>
2459           (?:
2460             20(?:
2461               49|
2462               5[23]|
2463               9[016-9]
2464             )|
2465             40(?:
2466               4[569]|
2467               5[4-6]|
2468               7[0179]
2469             )|
2470             50(?:
2471               [34]\d|
2472               50
2473             )
2474           )\d{4}
2475         </nationalNumberPattern>
2476         <exampleNumber>20491234</exampleNumber>
2477       </fixedLine>
2478       <mobile>
2479         <nationalNumberPattern>
2480           6(?:
2481             [0-689]\d|
2482             7[0-5]
2483           )\d{5}|
2484           7\d{7}
2485         </nationalNumberPattern>
2486         <exampleNumber>70123456</exampleNumber>
2487       </mobile>
2488     </territory>
2489
2490     <!-- Bulgaria -->
2491     <territory id="BG" countryCode="359" internationalPrefix="00"
2492                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2493                mobileNumberPortableRegion="true">
2494       <references>
2495         <sourceUrl>http://www.itu.int/oth/T0202000020/en</sourceUrl>
2496       </references>
2497       <availableFormats>
2498         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
2499              used to separate the area code from the rest of the number, based on sites like
2500              http://www.goldenpages.bg. -->
2501         <numberFormat pattern="(2)(\d{5})">
2502           <leadingDigits>29</leadingDigits>
2503           <format>$1 $2</format>
2504         </numberFormat>
2505         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
2506           <leadingDigits>2</leadingDigits>
2507           <format>$1 $2 $3</format>
2508         </numberFormat>
2509         <numberFormat pattern="(\d{3})(\d{4})">
2510           <leadingDigits>
2511             43[124-7]|
2512             70[1-9]
2513           </leadingDigits>
2514           <format>$1 $2</format>
2515         </numberFormat>
2516         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
2517           <leadingDigits>
2518             43[124-7]|
2519             70[1-9]
2520           </leadingDigits>
2521           <format>$1 $2 $3</format>
2522         </numberFormat>
2523         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2524           <leadingDigits>[78]00</leadingDigits>
2525           <format>$1 $2 $3</format>
2526         </numberFormat>
2527         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
2528           <leadingDigits>
2529             [356]|
2530             4[124-7]|
2531             7[1-9]|
2532             8[1-6]|
2533             9[1-7]
2534           </leadingDigits>
2535           <format>$1 $2 $3</format>
2536         </numberFormat>
2537         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2538           <leadingDigits>
2539             48|
2540             8[7-9]|
2541             9[08]
2542           </leadingDigits>
2543           <format>$1 $2 $3</format>
2544         </numberFormat>
2545       </availableFormats>
2546       <generalDesc>
2547         <nationalNumberPattern>
2548           [23567]\d{5,7}|
2549           [489]\d{6,8}
2550         </nationalNumberPattern>
2551         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
2552       </generalDesc>
2553       <fixedLine>
2554         <!-- 29xxxx numbers have been added because they can be found online, and are typically
2555              used by taxi companies. -->
2556         <nationalNumberPattern>
2557           2(?:
2558             [0-8]\d{5,6}|
2559             9\d{4,6}
2560           )|
2561           (?:
2562             [36]\d|
2563             5[1-9]|
2564             8[1-6]|
2565             9[1-7]
2566           )\d{5,6}|
2567           (?:
2568             4(?:
2569               [124-7]\d|
2570               3[1-6]
2571             )|
2572             7(?:
2573               0[1-9]|
2574               [1-9]\d
2575             )
2576           )\d{4,5}
2577         </nationalNumberPattern>
2578         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
2579         <exampleNumber>2123456</exampleNumber>
2580       </fixedLine>
2581       <mobile>
2582         <nationalNumberPattern>
2583           (?:
2584             8[7-9]|
2585             98
2586           )\d{7}|
2587           4(?:
2588             3[0789]|
2589             8\d
2590           )\d{5}
2591         </nationalNumberPattern>
2592         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2593         <exampleNumber>48123456</exampleNumber>
2594       </mobile>
2595       <tollFree>
2596         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2597         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2598         <exampleNumber>80012345</exampleNumber>
2599       </tollFree>
2600       <premiumRate>
2601         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
2602         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2603         <exampleNumber>90123456</exampleNumber>
2604       </premiumRate>
2605       <personalNumber>
2606         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
2607         <exampleNumber>70012345</exampleNumber>
2608       </personalNumber>
2609     </territory>
2610
2611     <!-- Bahrain -->
2612     <territory id="BH" countryCode="973" internationalPrefix="00" mobileNumberPortableRegion="true">
2613       <references>
2614         <sourceUrl>http://www.itu.int/oth/T0202000011/en</sourceUrl>
2615         <sourceUrl>http://www.tra.org.bh/en/marketNumbering.aspx</sourceUrl>
2616         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain</sourceUrl>
2617       </references>
2618       <availableFormats>
2619         <numberFormat pattern="(\d{4})(\d{4})">
2620           <format>$1 $2</format>
2621         </numberFormat>
2622       </availableFormats>
2623       <generalDesc>
2624         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
2625         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2626       </generalDesc>
2627       <!-- Some ranges were previously described as "universal", but in subsequent versions of the
2628            ITU doc they have been specified to be mobile or fixed-line. We follow the ITU
2629            designations, even though some publications still refer to them as universal. -->
2630       <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
2631            "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts the ITU doc
2632            which lists "6966, 6969, 6996, 6999". We follow ITU here. -->
2633       <fixedLine>
2634         <nationalNumberPattern>
2635           (?:
2636             1(?:
2637               3[13-6]|
2638               6[0156]|
2639               7\d
2640             )\d|
2641             6(?:
2642               1[16]\d|
2643               500|
2644               6(?:
2645                 0\d|
2646                 3[12]|
2647                 44|
2648                 88
2649               )|
2650               9[69][69]
2651             )|
2652             7(?:
2653               7\d{2}|
2654               178
2655             )
2656           )\d{4}
2657         </nationalNumberPattern>
2658         <exampleNumber>17001234</exampleNumber>
2659       </fixedLine>
2660       <!-- 31 is assigned to Royal Court, as per documents on Bahrain's own telecom site, even
2661            though it is omitted from the ITU document. -->
2662       <mobile>
2663         <nationalNumberPattern>
2664           (?:
2665             3(?:
2666               [1-4679]\d|
2667               5[0135]|
2668               8[0-48]
2669             )\d|
2670             6(?:
2671               3(?:
2672                 00|
2673                 33|
2674                 6[16]
2675               )|
2676               6(?:
2677                 [69]\d|
2678                 3[03-9]
2679               )
2680             )
2681           )\d{4}
2682         </nationalNumberPattern>
2683         <exampleNumber>36001234</exampleNumber>
2684       </mobile>
2685       <tollFree>
2686         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
2687         <exampleNumber>80123456</exampleNumber>
2688       </tollFree>
2689       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
2690            now. -->
2691       <premiumRate>
2692         <nationalNumberPattern>
2693           (?:
2694             87|
2695             9[014578]
2696           )\d{6}
2697         </nationalNumberPattern>
2698         <exampleNumber>90123456</exampleNumber>
2699       </premiumRate>
2700       <sharedCost>
2701         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
2702         <exampleNumber>84123456</exampleNumber>
2703       </sharedCost>
2704     </territory>
2705
2706     <!-- Burundi -->
2707     <territory id="BI" countryCode="257" internationalPrefix="00">
2708       <references>
2709         <sourceUrl>http://www.itu.int/oth/T0202000022/en</sourceUrl>
2710       </references>
2711       <availableFormats>
2712         <numberFormat
2713           pattern="([27]\d)(\d{2})(\d{2})(\d{2})">
2714           <format>$1 $2 $3 $4</format>
2715         </numberFormat>
2716       </availableFormats>
2717       <generalDesc>
2718         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
2719         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2720       </generalDesc>
2721       <fixedLine>
2722         <nationalNumberPattern>
2723           22(?:
2724             2[0-7]|
2725             [3-5]0
2726           )\d{4}
2727         </nationalNumberPattern>
2728         <exampleNumber>22201234</exampleNumber>
2729       </fixedLine>
2730       <mobile>
2731         <!-- Extra online mobile number prefixes found: 74.
2732              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
2733              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
2734              satellite phones. -->
2735         <nationalNumberPattern>
2736           (?:
2737             29|
2738             7[14-9]
2739           )\d{6}
2740         </nationalNumberPattern>
2741         <exampleNumber>79561234</exampleNumber>
2742       </mobile>
2743     </territory>
2744
2745     <!-- Benin -->
2746     <territory id="BJ" countryCode="229" internationalPrefix="00">
2747       <references>
2748         <sourceUrl>http://www.itu.int/oth/T0202000017/en</sourceUrl>
2749       </references>
2750       <availableFormats>
2751         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2752           <format>$1 $2 $3 $4</format>
2753         </numberFormat>
2754         <!-- Numbers beginning with 7 should be formatted as a block. -->
2755       </availableFormats>
2756       <generalDesc>
2757         <nationalNumberPattern>
2758           [2689]\d{7}|
2759           7\d{3}
2760         </nationalNumberPattern>
2761         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
2762       </generalDesc>
2763       <fixedLine>
2764         <!-- These come from the national numbering plan, but have been widened to include other
2765              prefixes found in the yellow pages - specifically 21 0. -->
2766         <nationalNumberPattern>
2767           2(?:
2768             02|
2769             1[037]|
2770             2[45]|
2771             3[68]
2772           )\d{5}
2773         </nationalNumberPattern>
2774         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2775         <exampleNumber>20211234</exampleNumber>
2776       </fixedLine>
2777       <mobile>
2778         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
2779              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
2780              6[167] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
2781              reported as having prefixes 68 and 9[89]. -->
2782         <nationalNumberPattern>
2783           (?:
2784             6[146-8]|
2785             9[03-9]
2786           )\d{6}
2787         </nationalNumberPattern>
2788         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2789         <exampleNumber>90011234</exampleNumber>
2790       </mobile>
2791       <tollFree>
2792         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
2793         <possibleNumberPattern>\d{4}</possibleNumberPattern>
2794         <exampleNumber>7312</exampleNumber>
2795       </tollFree>
2796       <voip>
2797         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
2798         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2799         <exampleNumber>85751234</exampleNumber>
2800       </voip>
2801       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
2802            as a local-call.) We model these as UAN since we have no more detailed information. -->
2803       <uan>
2804         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
2805         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2806         <exampleNumber>81123456</exampleNumber>
2807       </uan>
2808     </territory>
2809
2810     <!-- Saint Barthélemy, French Antilles -->
2811     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
2812          national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but
2813          it appears from searches in online white and yellow pages that a subset of the prefixes
2814          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
2815          of these region codes will be returned, although numbers will be valid for both regions.
2816          -->
2817     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
2818       <references>
2819         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
2820       </references>
2821       <!-- Formatting rules borrowed from Guadeloupe. -->
2822       <generalDesc>
2823         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
2824         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2825       </generalDesc>
2826       <fixedLine>
2827         <nationalNumberPattern>
2828           590(?:
2829             2[7-9]|
2830             5[12]|
2831             87
2832           )\d{4}
2833         </nationalNumberPattern>
2834         <exampleNumber>590271234</exampleNumber>
2835       </fixedLine>
2836       <mobile>
2837         <!-- Any ranges assigned from
2838              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
2839              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
2840              them. -->
2841         <nationalNumberPattern>
2842           690(?:
2843             0[0-7]|
2844             [1-9]\d
2845           )\d{4}
2846         </nationalNumberPattern>
2847         <exampleNumber>690301234</exampleNumber>
2848       </mobile>
2849     </territory>
2850
2851     <!-- Bermuda -->
2852     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
2853                internationalPrefix="011">
2854       <references>
2855         <sourceUrl>http://www.itu.int/oth/T0202000018/en</sourceUrl>
2856       </references>
2857       <generalDesc>
2858         <!-- NANPA country - uses US formatting rules -->
2859         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
2860         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
2861       </generalDesc>
2862       <fixedLine>
2863         <nationalNumberPattern>
2864           441(?:
2865             2(?:
2866               02|
2867               23|
2868               61|
2869               [3479]\d
2870             )|
2871             [46]\d{2}|
2872             5(?:
2873               4\d|
2874               60|
2875               89
2876             )|
2877             824
2878           )\d{4}
2879         </nationalNumberPattern>
2880         <exampleNumber>4412345678</exampleNumber>
2881       </fixedLine>
2882       <mobile>
2883         <nationalNumberPattern>
2884           441(?:
2885             [37]\d|
2886             5[0-39]
2887           )\d{5}
2888         </nationalNumberPattern>
2889         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2890         <exampleNumber>4413701234</exampleNumber>
2891       </mobile>
2892       <tollFree>
2893         <nationalNumberPattern>
2894           8(?:
2895             00|
2896             44|
2897             55|
2898             66|
2899             77|
2900             88
2901           )[2-9]\d{6}
2902         </nationalNumberPattern>
2903         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2904         <exampleNumber>8002123456</exampleNumber>
2905       </tollFree>
2906       <premiumRate>
2907         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
2908         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2909         <exampleNumber>9002123456</exampleNumber>
2910       </premiumRate>
2911       <personalNumber>
2912         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
2913         <nationalNumberPattern>
2914           5(?:
2915             00|
2916             33|
2917             44|
2918             66|
2919             77
2920           )[2-9]\d{6}
2921         </nationalNumberPattern>
2922         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2923         <exampleNumber>5002345678</exampleNumber>
2924       </personalNumber>
2925     </territory>
2926
2927     <!-- Brunei Darussalam -->
2928     <territory id="BN" countryCode="673" internationalPrefix="00">
2929       <references>
2930         <sourceUrl>http://www.itu.int/oth/T020200001F/en</sourceUrl>
2931       </references>
2932       <!-- Format is from http://aiti.gov.bn/contact.html -->
2933       <availableFormats>
2934         <numberFormat pattern="([2-578]\d{2})(\d{4})">
2935           <format>$1 $2</format>
2936         </numberFormat>
2937       </availableFormats>
2938       <generalDesc>
2939         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
2940         <possibleNumberPattern>\d{7}</possibleNumberPattern>
2941       </generalDesc>
2942       <fixedLine>
2943         <nationalNumberPattern>
2944           2(?:
2945             [013-9]\d|
2946             2[0-7]
2947           )\d{4}|
2948           [3-5]\d{6}
2949         </nationalNumberPattern>
2950         <exampleNumber>2345678</exampleNumber>
2951       </fixedLine>
2952       <mobile>
2953         <nationalNumberPattern>
2954           22[89]\d{4}|
2955           [78]\d{6}
2956         </nationalNumberPattern>
2957         <exampleNumber>7123456</exampleNumber>
2958       </mobile>
2959     </territory>
2960
2961     <!-- Bolivia -->
2962     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
2963                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
2964       <references>
2965         <sourceUrl>http://www.itu.int/oth/T020200001A/en</sourceUrl>
2966         <sourceUrl>http://www.bolivia.com/Servicios/Plandenumeracion.pdf</sourceUrl>
2967       </references>
2968       <availableFormats>
2969         <numberFormat pattern="([234])(\d{7})">
2970           <leadingDigits>[234]</leadingDigits>
2971           <format>$1 $2</format>
2972         </numberFormat>
2973         <numberFormat pattern="([67]\d{7})">
2974           <leadingDigits>[67]</leadingDigits>
2975           <format>$1</format>
2976         </numberFormat>
2977       </availableFormats>
2978       <generalDesc>
2979         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
2980         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
2981       </generalDesc>
2982       <fixedLine>
2983         <nationalNumberPattern>
2984           (?:
2985             2(?:
2986               2\d{2}|
2987               5(?:11|[258]\d|9[67])|
2988               6(?:12|2\d|9[34])|
2989               8(?:2[34]|39|62)
2990             )|
2991             3(?:
2992               3\d{2}|
2993               4(?:6\d|8[24])|
2994               8(?:25|42|5[257]|86|9[25])|
2995               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
2996             )|
2997             4(?:
2998               4\d{2}|
2999               6(?:11|[24689]\d|72)
3000             )
3001           )\d{4}
3002         </nationalNumberPattern>
3003         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3004         <exampleNumber>22123456</exampleNumber>
3005       </fixedLine>
3006       <mobile>
3007         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
3008         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3009         <exampleNumber>71234567</exampleNumber>
3010       </mobile>
3011     </territory>
3012
3013     <!-- Bonaire, Sint Eustatius and Saba -->
3014     <territory id="BQ" countryCode="599" internationalPrefix="00">
3015       <references>
3016         <sourceUrl>http://www.itu.int/oth/T02020000F8/en</sourceUrl>
3017       </references>
3018       <!-- Shares formatting patterns with CW. -->
3019       <generalDesc>
3020         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
3021         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3022       </generalDesc>
3023       <fixedLine>
3024         <nationalNumberPattern>
3025           (?:
3026             318[023]|
3027             416[023]|
3028             7(?:
3029               1[578]|
3030               50
3031             )\d
3032           )\d{3}
3033         </nationalNumberPattern>
3034         <exampleNumber>7151234</exampleNumber>
3035       </fixedLine>
3036       <mobile>
3037         <nationalNumberPattern>
3038           (?:
3039             318[14-68]|
3040             416[15-9]|
3041             7(?:
3042               0[01]|
3043               7[07]|
3044               [89]\d
3045             )\d
3046           )\d{3}
3047         </nationalNumberPattern>
3048         <exampleNumber>3181234</exampleNumber>
3049       </mobile>
3050     </territory>
3051
3052     <!-- Brazil -->
3053     <territory id="BR" countryCode="55"
3054                internationalPrefix="00(?:1[45]|2[135]|31|4[13])"
3055                nationalPrefix="0"
3056                nationalPrefixForParsing="0(?:(1[245]|2[135]|31|4[13])(\d{10,11}))?"
3057                nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true">
3058       <references>
3059         <sourceUrl>http://en.wikipedia.org/wiki/%2B55</sourceUrl>
3060         <sourceUrl>http://www.itu.int/oth/T020200001D/en</sourceUrl>
3061       </references>
3062       <!-- The national prefix for parsing here also contains a capturing group for the main number,
3063            since the carrier codes here may also be area codes, so we want to check the length of
3064            the number after capturing. We also need a nationalTransformRule to repopulate with the
3065            number without the carrier code. -->
3066       <availableFormats>
3067         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
3068              rules here handle this case. The leading digits pattern must be specific enough such
3069              that it doesn't match X00 numbers (e.g. toll-free). -->
3070         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
3071           <leadingDigits>
3072             [2-9](?:
3073               [1-9]|
3074               0[1-9]
3075             )
3076           </leadingDigits>
3077           <format>$1-$2</format>
3078           <intlFormat>NA</intlFormat>
3079         </numberFormat>
3080         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
3081           <leadingDigits>
3082             9(?:
3083               [1-9]|
3084               0[1-9]
3085             )
3086           </leadingDigits>
3087           <format>$1-$2</format>
3088           <intlFormat>NA</intlFormat>
3089         </numberFormat>
3090         <!-- Format short numbers as a block. -->
3091         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
3092           <leadingDigits>1[125689]</leadingDigits>
3093           <format>$1</format>
3094           <intlFormat>NA</intlFormat>
3095         </numberFormat>
3096         <numberFormat nationalPrefixFormattingRule="($FG)"
3097             pattern="(\d{2})(\d{5})(\d{4})"
3098             carrierCodeFormattingRule="$NP $CC ($FG)">
3099           <leadingDigits>
3100             (?:
3101               1[1-9]|
3102               2[12478]|
3103               9[1-9]
3104             )9
3105           </leadingDigits>
3106           <format>$1 $2-$3</format>
3107         </numberFormat>
3108         <numberFormat nationalPrefixFormattingRule="($FG)"
3109             pattern="(\d{2})(\d{4})(\d{4})"
3110             carrierCodeFormattingRule="$NP $CC ($FG)">
3111           <leadingDigits>[1-9][1-9]</leadingDigits>
3112           <format>$1 $2-$3</format>
3113         </numberFormat>
3114         <numberFormat pattern="([34]00\d)(\d{4})">
3115           <leadingDigits>[34]00</leadingDigits>
3116           <format>$1-$2</format>
3117         </numberFormat>
3118         <numberFormat nationalPrefixFormattingRule="$NP$FG"
3119             pattern="([3589]00)(\d{2,3})(\d{4})">
3120           <leadingDigits>[3589]00</leadingDigits>
3121           <format>$1 $2 $3</format>
3122         </numberFormat>
3123       </availableFormats>
3124       <generalDesc>
3125         <nationalNumberPattern>
3126           [1-46-9]\d{7,10}|
3127           5\d{8,9}
3128         </nationalNumberPattern>
3129         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
3130       </generalDesc>
3131       <noInternationalDialling>
3132         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3133         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3134         <exampleNumber>40041234</exampleNumber>
3135       </noInternationalDialling>
3136       <fixedLine>
3137         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
3138              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
3139              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
3140              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
3141              -->
3142         <nationalNumberPattern>
3143           1[1-9][2-5]\d{7}|
3144           (?:
3145             [4689][1-9]|
3146             2[12478]|
3147             3[1-578]|
3148             5[13-5]|
3149             7[13-579]
3150           )[2-5]\d{7}
3151         </nationalNumberPattern>
3152         <exampleNumber>1123456789</exampleNumber>
3153       </fixedLine>
3154       <mobile>
3155         <!-- Since 2012, Brazil has been migrating from 10 to 11 digits by inserting a 9 before the
3156              last 8 digits. The following pattern is divided into 3 sections: ranges for which the
3157              migration has been completed, ranges which are in transition, and ranges which are
3158              still in the old format. (Ranges which were supposed to have been deprecated in
3159              Oct. 2013 are still working as of Jan. 2014.) Note that mobile radio services are
3160              still 10 digits, with the subscriber number (the last 8 digits) beginning with 7. -->
3161         <nationalNumberPattern>
3162           1[1-9](?:
3163             7|
3164             9\d
3165           )\d{7}|
3166           (?:
3167             2[12478]|
3168             9[1-9]
3169           )9?[6-9]\d{7}|
3170           (?:
3171             3[1-578]|
3172             [468][1-9]|
3173             5[13-5]|
3174             7[13-579]
3175           )[6-9]\d{7}
3176         </nationalNumberPattern>
3177         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3178         <exampleNumber>11961234567</exampleNumber>
3179       </mobile>
3180       <tollFree>
3181         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
3182         <exampleNumber>800123456</exampleNumber>
3183       </tollFree>
3184       <premiumRate>
3185         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
3186         <exampleNumber>300123456</exampleNumber>
3187       </premiumRate>
3188       <sharedCost>
3189         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3190         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3191         <exampleNumber>40041234</exampleNumber>
3192       </sharedCost>
3193     </territory>
3194
3195     <!-- Bahamas -->
3196     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
3197                internationalPrefix="011">
3198       <references>
3199         <sourceUrl>http://www.itu.int/oth/T0202000010/en</sourceUrl>
3200       </references>
3201       <generalDesc>
3202         <!-- NANPA country - uses US formatting rules -->
3203         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
3204         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3205       </generalDesc>
3206       <fixedLine>
3207         <nationalNumberPattern>
3208           242(?:
3209             3(?:
3210               02|
3211               [236][1-9]|
3212               4[0-24-9]|
3213               5[0-68]|
3214               7[3467]|
3215               8[0-4]|
3216               9[2-467]
3217             )|
3218             461|
3219             502|
3220             6(?:
3221               0[12]|
3222               12|
3223               7[67]|
3224               8[78]|
3225               9[89]
3226             )|
3227             702
3228           )\d{4}
3229         </nationalNumberPattern>
3230         <exampleNumber>2423456789</exampleNumber>
3231       </fixedLine>
3232       <mobile>
3233         <nationalNumberPattern>
3234           242(?:
3235             3(?:
3236               5[79]|
3237               [79]5
3238             )|
3239             4(?:
3240               [2-4][1-9]|
3241               5[1-8]|
3242               6[2-8]|
3243               7\d|
3244               81
3245             )|
3246             5(?:
3247               2[45]|
3248               3[35]|
3249               44|
3250               5[1-9]|
3251               65|
3252               77
3253             )|
3254             6[34]6|
3255             727
3256           )\d{4}
3257         </nationalNumberPattern>
3258         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3259         <exampleNumber>2423591234</exampleNumber>
3260       </mobile>
3261       <tollFree>
3262         <!-- 242 300 is a Domestic Toll Free service. -->
3263         <nationalNumberPattern>
3264           242300\d{4}|
3265           8(?:
3266             00|
3267             44|
3268             55|
3269             66|
3270             77|
3271             88
3272           )[2-9]\d{6}
3273         </nationalNumberPattern>
3274         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3275         <exampleNumber>8002123456</exampleNumber>
3276       </tollFree>
3277       <premiumRate>
3278         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3279         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3280         <exampleNumber>9002123456</exampleNumber>
3281       </premiumRate>
3282       <personalNumber>
3283         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3284         <nationalNumberPattern>
3285           5(?:
3286             00|
3287             33|
3288             44|
3289             66|
3290             77
3291           )[2-9]\d{6}
3292         </nationalNumberPattern>
3293         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3294         <exampleNumber>5002345678</exampleNumber>
3295       </personalNumber>
3296     </territory>
3297
3298     <!-- Bhutan -->
3299     <territory id="BT" countryCode="975" internationalPrefix="00">
3300       <references>
3301         <sourceUrl>http://www.itu.int/oth/T0202000019/en</sourceUrl>
3302       </references>
3303       <availableFormats>
3304         <!-- Format is from
3305              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
3306         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
3307           <leadingDigits>
3308             1|
3309             77
3310           </leadingDigits>
3311           <format>$1 $2 $3 $4</format>
3312         </numberFormat>
3313         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
3314           <leadingDigits>
3315             [2-68]|
3316             7[246]
3317           </leadingDigits>
3318           <format>$1 $2 $3</format>
3319         </numberFormat>
3320       </availableFormats>
3321       <generalDesc>
3322         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
3323         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
3324       </generalDesc>
3325       <fixedLine>
3326         <nationalNumberPattern>
3327           (?:
3328             2[3-6]|
3329             [34][5-7]|
3330             5[236]|
3331             6[2-46]|
3332             7[246]|
3333             8[2-4]
3334           )\d{5}
3335         </nationalNumberPattern>
3336         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
3337         <exampleNumber>2345678</exampleNumber>
3338       </fixedLine>
3339       <mobile>
3340         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
3341              is in use. -->
3342         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
3343         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3344         <exampleNumber>17123456</exampleNumber>
3345       </mobile>
3346       <!-- No information on other types of phone numbers for Bhutan has been found. -->
3347     </territory>
3348
3349     <!-- Botswana -->
3350     <territory id="BW" countryCode="267" internationalPrefix="00">
3351       <references>
3352         <sourceUrl>http://www.itu.int/oth/T020200001C/en</sourceUrl>
3353       </references>
3354       <availableFormats>
3355         <numberFormat pattern="(\d{3})(\d{4})">
3356           <leadingDigits>[2-6]</leadingDigits>
3357           <format>$1 $2</format>
3358         </numberFormat>
3359         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
3360           <leadingDigits>7</leadingDigits>
3361           <format>$1 $2 $3</format>
3362         </numberFormat>
3363         <numberFormat pattern="(90)(\d{5})">
3364           <leadingDigits>9</leadingDigits>
3365           <format>$1 $2</format>
3366         </numberFormat>
3367       </availableFormats>
3368       <generalDesc>
3369         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
3370         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3371       </generalDesc>
3372       <fixedLine>
3373         <nationalNumberPattern>
3374           (?:
3375             2(?:
3376               4[0-48]|
3377               6[0-24]|
3378               9[0578]
3379             )|
3380             3(?:
3381               1[0235-9]|
3382               55|
3383               6\d|
3384               7[01]|
3385               9[0-57]
3386             )|
3387             4(?:
3388               6[03]|
3389               7[1267]|
3390               9[0-5]
3391             )|
3392             5(?:
3393               3[0389]|
3394               4[0489]|
3395               7[1-47]|
3396               88|
3397               9[0-49]
3398             )|
3399             6(?:
3400               2[1-35]|
3401               5[149]|
3402               8[067]
3403             )
3404           )\d{4}
3405         </nationalNumberPattern>
3406         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3407         <exampleNumber>2401234</exampleNumber>
3408       </fixedLine>
3409       <mobile>
3410         <nationalNumberPattern>
3411           7(?:
3412             [1-356]\d|
3413             4[0-7]|
3414             7[014-7]
3415           )\d{5}
3416         </nationalNumberPattern>
3417         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3418         <exampleNumber>71123456</exampleNumber>
3419       </mobile>
3420       <!-- No reliable information about toll-free numbers can be found; many are written on the
3421            internet like 0800 123 456, but this is not supported by any documentation and no
3422            numbers can be found that actually work. -->
3423       <premiumRate>
3424         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
3425         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3426         <exampleNumber>9012345</exampleNumber>
3427       </premiumRate>
3428       <voip>
3429         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
3430         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3431         <exampleNumber>79101234</exampleNumber>
3432       </voip>
3433     </territory>
3434
3435     <!-- Belarus -->
3436     <!-- Information on national prefix provided by a Belarussian person. -->
3437     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
3438                internationalPrefix="810" nationalPrefixForParsing="8?0?"
3439                nationalPrefix="8" mobileNumberPortableRegion="true">
3440       <references>
3441         <sourceUrl>http://www.eng.beltelecom.by/en/subscribers/phone-codes</sourceUrl>
3442       </references>
3443       <availableFormats>
3444         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3445           pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
3446           <leadingDigits>
3447             17[0-3589]|
3448             2[4-9]|
3449             [34]
3450           </leadingDigits>
3451           <leadingDigits>
3452             17(?:
3453               [02358]|
3454               1[0-2]|
3455               9[0189]
3456             )|
3457             2[4-9]|
3458             [34]
3459           </leadingDigits>
3460           <format>$1 $2-$3-$4</format>
3461         </numberFormat>
3462         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3463           pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
3464           <leadingDigits>
3465             1(?:
3466               5[24]|
3467               6[235]|
3468               7[467]
3469             )|
3470             2(?:
3471               1[246]|
3472               2[25]|
3473               3[26]
3474             )
3475           </leadingDigits>
3476           <leadingDigits>
3477             1(?:
3478               5[24]|
3479               6(?:
3480                 2|
3481                 3[04-9]|
3482                 5[0346-9]
3483               )|
3484               7(?:
3485                 [46]|
3486                 7[37-9]
3487               )
3488             )|
3489             2(?:
3490               1[246]|
3491               2[25]|
3492               3[26]
3493             )
3494           </leadingDigits>
3495           <format>$1 $2-$3-$4</format>
3496         </numberFormat>
3497         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3498           pattern="(\d{4})(\d{2})(\d{3})">
3499           <leadingDigits>
3500             1(?:
3501               5[169]|
3502               6[3-5]|
3503               7[179]
3504             )|
3505             2(?:
3506               1[35]|
3507               2[34]|
3508               3[3-5]
3509             )
3510           </leadingDigits>
3511           <leadingDigits>
3512             1(?:
3513               5[169]|
3514               6(?:
3515                 3[1-3]|
3516                 4|
3517                 5[125]
3518               )|
3519               7(?:
3520                 1[3-9]|
3521                 7[0-24-6]|
3522                 9[2-7]
3523               )
3524             )|
3525             2(?:
3526               1[35]|
3527               2[34]|
3528               3[3-5]
3529             )
3530           </leadingDigits>
3531           <format>$1 $2-$3</format>
3532         </numberFormat>
3533         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3534           pattern="([89]\d{2})(\d{3})(\d{4})">
3535           <leadingDigits>
3536             8[01]|
3537             9
3538           </leadingDigits>
3539           <format>$1 $2 $3</format>
3540         </numberFormat>
3541         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3542           pattern="(8\d{2})(\d{4})(\d{4})">
3543           <leadingDigits>82</leadingDigits>
3544           <format>$1 $2 $3</format>
3545         </numberFormat>
3546       </availableFormats>
3547       <generalDesc>
3548         <nationalNumberPattern>
3549           [1-4]\d{8}|
3550           [89]\d{9,10}
3551         </nationalNumberPattern>
3552         <!-- Numbers are often written without the city code. -->
3553         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
3554       </generalDesc>
3555       <!-- Toll-free and premium rate numbers are not available from abroad. -->
3556       <noInternationalDialling>
3557         <nationalNumberPattern>
3558           8(?:
3559             [013]|
3560             [12]0
3561           )\d{8}|
3562           902\d{7}
3563         </nationalNumberPattern>
3564         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3565         <exampleNumber>82012345678</exampleNumber>
3566       </noInternationalDialling>
3567       <fixedLine>
3568         <nationalNumberPattern>
3569           (?:
3570             1(?:
3571               5(?:
3572                 1[1-5]|
3573                 [24]\d|
3574                 6[2-4]|
3575                 9[1-7]
3576               )|
3577               6(?:
3578                 [235]\d|
3579                 4[1-7]
3580               )|
3581               7\d{2}
3582             )|
3583             2(?:
3584               1(?:
3585                 [246]\d|
3586                 3[0-35-9]|
3587                 5[1-9]
3588               )|
3589               2(?:
3590                 [235]\d|
3591                 4[0-8]
3592               )|
3593               3(?:
3594                 [26]\d|
3595                 3[02-79]|
3596                 4[024-7]|
3597                 5[03-7]
3598               )
3599             )
3600           )\d{5}
3601         </nationalNumberPattern>
3602         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3603         <!-- Using test number for Grodno from the plan. -->
3604         <exampleNumber>152450911</exampleNumber>
3605       </fixedLine>
3606       <mobile>
3607         <nationalNumberPattern>
3608           (?:
3609             2(?:
3610               5[5679]|
3611               9[1-9]
3612             )|
3613             33\d|
3614             44\d
3615           )\d{6}
3616         </nationalNumberPattern>
3617         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3618         <!-- Using test number for BelCel from the plan. -->
3619         <exampleNumber>294911911</exampleNumber>
3620       </mobile>
3621       <tollFree>
3622         <!-- Putting Interactive Polling Service (free) here too. -->
3623         <nationalNumberPattern>
3624           8(?:
3625             0[13]|
3626             20\d
3627           )\d{7}
3628         </nationalNumberPattern>
3629         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3630         <exampleNumber>8011234567</exampleNumber>
3631       </tollFree>
3632       <premiumRate>
3633         <!-- Putting Interactive Polling Service (paid) here too. -->
3634         <nationalNumberPattern>
3635           (?:
3636             810|
3637             902
3638           )\d{7}
3639         </nationalNumberPattern>
3640         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3641         <exampleNumber>9021234567</exampleNumber>
3642       </premiumRate>
3643     </territory>
3644
3645     <!-- Belize -->
3646     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
3647          -->
3648     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
3649       <references>
3650         <sourceUrl>http://www.itu.int/oth/T0202000016/en</sourceUrl>
3651       </references>
3652       <availableFormats>
3653         <numberFormat pattern="(\d{3})(\d{4})">
3654           <leadingDigits>[2-8]</leadingDigits>
3655           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
3656           <format>$1-$2</format>
3657         </numberFormat>
3658         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
3659           <leadingDigits>0</leadingDigits>
3660           <format>$1-$2-$3-$4</format>
3661         </numberFormat>
3662       </availableFormats>
3663       <generalDesc>
3664         <nationalNumberPattern>
3665           [2-8]\d{6}|
3666           0\d{10}
3667         </nationalNumberPattern>
3668         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
3669       </generalDesc>
3670       <fixedLine>
3671         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
3672         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3673         <exampleNumber>2221234</exampleNumber>
3674       </fixedLine>
3675       <mobile>
3676         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
3677              to these numbers or many numbers have been found online. -->
3678         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
3679         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3680         <exampleNumber>6221234</exampleNumber>
3681       </mobile>
3682       <!-- We don't know how these would be dialled internationally - it is possible that they can't
3683            be dialled internationally at all - so we represent the leading 0 as part of the number.
3684            Information from http://www.belizetelemedia.net. -->
3685       <tollFree>
3686         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
3687         <possibleNumberPattern>\d{11}</possibleNumberPattern>
3688         <exampleNumber>08001234123</exampleNumber>
3689       </tollFree>
3690     </territory>
3691
3692     <!-- Canada -->
3693     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1"
3694                mobileNumberPortableRegion="true">
3695       <references>
3696         <sourceUrl>http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm</sourceUrl>
3697       </references>
3698       <generalDesc>
3699         <!-- NANPA country - uses US formatting rules -->
3700         <nationalNumberPattern>
3701           [2-9]\d{9}|
3702           3\d{6}
3703         </nationalNumberPattern>
3704         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3705       </generalDesc>
3706       <fixedLine>
3707         <nationalNumberPattern>
3708           (?:
3709             2(?:
3710               04|
3711               [23]6|
3712               [48]9|
3713               50
3714             )|
3715             3(?:
3716               06|
3717               43|
3718               65
3719             )|
3720             4(?:
3721               03|
3722               1[68]|
3723               3[178]|
3724               50
3725             )|
3726             5(?:
3727               06|
3728               1[49]|
3729               79|
3730               8[17]
3731             )|
3732             6(?:
3733               0[04]|
3734               13|
3735               39|
3736               47
3737             )|
3738             7(?:
3739               0[59]|
3740               78|
3741               8[02]
3742             )|
3743             8(?:
3744               [06]7|
3745               19|
3746               73
3747             )|
3748             90[25]
3749           )[2-9]\d{6}|
3750           310\d{4}
3751         </nationalNumberPattern>
3752         <exampleNumber>2042345678</exampleNumber>
3753       </fixedLine>
3754       <mobile>
3755         <nationalNumberPattern>
3756           (?:
3757             2(?:
3758               04|
3759               [23]6|
3760               [48]9|
3761               50
3762             )|
3763             3(?:
3764               06|
3765               43|
3766               65
3767             )|
3768             4(?:
3769               03|
3770               1[68]|
3771               3[178]|
3772               50
3773             )|
3774             5(?:
3775               06|
3776               1[49]|
3777               79|
3778               8[17]
3779             )|
3780             6(?:
3781               0[04]|
3782               13|
3783               39|
3784               47
3785             )|
3786             7(?:
3787               0[59]|
3788               78|
3789               8[02]
3790             )|
3791             8(?:
3792               [06]7|
3793               19|
3794               73
3795             )|
3796             90[25]
3797           )[2-9]\d{6}
3798         </nationalNumberPattern>
3799         <exampleNumber>2042345678</exampleNumber>
3800       </mobile>
3801       <tollFree>
3802         <nationalNumberPattern>
3803           8(?:
3804             00|
3805             44|
3806             55|
3807             66|
3808             77|
3809             88
3810           )[2-9]\d{6}|
3811           310\d{4}
3812         </nationalNumberPattern>
3813         <exampleNumber>8002123456</exampleNumber>
3814       </tollFree>
3815       <premiumRate>
3816         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3817         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3818         <exampleNumber>9002123456</exampleNumber>
3819       </premiumRate>
3820       <personalNumber>
3821         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3822         <nationalNumberPattern>
3823           5(?:
3824             00|
3825             33|
3826             44|
3827             66|
3828             77
3829           )[2-9]\d{6}
3830         </nationalNumberPattern>
3831         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3832         <exampleNumber>5002345678</exampleNumber>
3833       </personalNumber>
3834     </territory>
3835
3836     <!-- Cocos Islands -->
3837     <!-- Metadata shared with Australia. -->
3838     <!-- References state Cocos Islands have fixed line numbers starting +61 8 9162. -->
3839     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
3840                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
3841                nationalPrefix="0">
3842       <references>
3843         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
3844         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
3845       </references>
3846       <!-- Uses AU formatting rules. -->
3847       <!-- General desc and fixed line rules different from Australia. -->
3848       <generalDesc>
3849         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
3850         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3851       </generalDesc>
3852       <fixedLine>
3853         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
3854         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
3855         <exampleNumber>891621234</exampleNumber>
3856       </fixedLine>
3857       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
3858       <mobile>
3859         <nationalNumberPattern>
3860           14(?:
3861             5\d|
3862             71
3863           )\d{5}|
3864           4(?:
3865             [0-2]\d|
3866             3[0-57-9]|
3867             4[47-9]|
3868             5[0-25-9]|
3869             6[6-9]|
3870             7[03-9]|
3871             8[17-9]|
3872             9[017-9]
3873           )\d{6}
3874         </nationalNumberPattern>
3875         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3876         <exampleNumber>412345678</exampleNumber>
3877       </mobile>
3878       <tollFree>
3879         <nationalNumberPattern>
3880           1(?:
3881             80(?:
3882               0\d{2}
3883             )?|
3884             3(?:
3885               00\d{2}
3886             )?
3887           )\d{4}
3888         </nationalNumberPattern>
3889         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3890         <exampleNumber>1800123456</exampleNumber>
3891       </tollFree>
3892       <premiumRate>
3893         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
3894         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3895         <exampleNumber>1900123456</exampleNumber>
3896       </premiumRate>
3897       <personalNumber>
3898         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
3899         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3900         <exampleNumber>500123456</exampleNumber>
3901       </personalNumber>
3902       <voip>
3903         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
3904         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3905         <exampleNumber>550123456</exampleNumber>
3906       </voip>
3907     </territory>
3908
3909     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
3910     <territory id="CD" countryCode="243" internationalPrefix="00"
3911                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
3912       <references>
3913         <sourceUrl>http://www.itu.int/oth/T0202000037/en</sourceUrl>
3914       </references>
3915       <availableFormats>
3916         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3917           <leadingDigits>12</leadingDigits>
3918           <format>$1 $2 $3</format>
3919         </numberFormat>
3920         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
3921           <leadingDigits>
3922             8[0-2459]|
3923             9
3924           </leadingDigits>
3925           <format>$1 $2 $3</format>
3926         </numberFormat>
3927         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
3928           <leadingDigits>88</leadingDigits>
3929           <format>$1 $2 $3</format>
3930         </numberFormat>
3931         <numberFormat pattern="(\d{2})(\d{5})">
3932           <leadingDigits>[1-6]</leadingDigits>
3933           <format>$1 $2</format>
3934         </numberFormat>
3935       </availableFormats>
3936       <generalDesc>
3937         <nationalNumberPattern>
3938           [2-6]\d{6}|
3939           [18]\d{6,8}|
3940           9\d{8}
3941         </nationalNumberPattern>
3942         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3943       </generalDesc>
3944       <fixedLine>
3945         <nationalNumberPattern>
3946           1(?:
3947             2\d{7}|
3948             \d{6}
3949           )|
3950           [2-6]\d{6}
3951         </nationalNumberPattern>
3952         <exampleNumber>1234567</exampleNumber>
3953       </fixedLine>
3954       <mobile>
3955         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
3956              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
3957              holdings company http://www.timeturnsholdings.com/products does not show a link for
3958              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
3959              tried were valid. If the holdings company does not respond to requests about this
3960              range and unless we receive further information, we will remove this range. -->
3961         <nationalNumberPattern>
3962           8(?:
3963             [0-2459]\d{2}|
3964             8
3965           )\d{5}|
3966           9[7-9]\d{7}
3967         </nationalNumberPattern>
3968         <exampleNumber>991234567</exampleNumber>
3969       </mobile>
3970     </territory>
3971
3972     <!-- Central African Republic -->
3973     <territory id="CF" countryCode="236" internationalPrefix="00">
3974       <references>
3975         <sourceUrl>http://www.itu.int/oth/T0202000028/en</sourceUrl>
3976       </references>
3977       <availableFormats>
3978         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
3979           <format>$1 $2 $3 $4</format>
3980         </numberFormat>
3981       </availableFormats>
3982       <generalDesc>
3983         <nationalNumberPattern>[278]\d{7}</nationalNumberPattern>
3984         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3985       </generalDesc>
3986       <fixedLine>
3987         <nationalNumberPattern>2[12]\d{6}</nationalNumberPattern>
3988         <exampleNumber>21612345</exampleNumber>
3989       </fixedLine>
3990       <mobile>
3991         <nationalNumberPattern>7[0257]\d{6}</nationalNumberPattern>
3992         <exampleNumber>70012345</exampleNumber>
3993       </mobile>
3994       <premiumRate>
3995         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
3996         <exampleNumber>87761234</exampleNumber>
3997       </premiumRate>
3998     </territory>
3999
4000     <!-- Congo (Rep. of the) (Brazzaville) -->
4001     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
4002       <references>
4003         <sourceUrl>http://www.itu.int/oth/T020200002E/en</sourceUrl>
4004       </references>
4005       <availableFormats>
4006         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
4007           <leadingDigits>[02]</leadingDigits>
4008           <format>$1 $2 $3</format>
4009         </numberFormat>
4010         <numberFormat pattern="(\d)(\d{4})(\d{4})">
4011           <leadingDigits>8</leadingDigits>
4012           <format>$1 $2 $3</format>
4013         </numberFormat>
4014       </availableFormats>
4015       <generalDesc>
4016         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
4017         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4018       </generalDesc>
4019       <fixedLine>
4020         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
4021         <exampleNumber>222123456</exampleNumber>
4022       </fixedLine>
4023       <mobile>
4024         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
4025         <exampleNumber>061234567</exampleNumber>
4026       </mobile>
4027       <!-- Referred to as a "Green number" in the telephone plan. -->
4028       <tollFree>
4029         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4030         <exampleNumber>800123456</exampleNumber>
4031       </tollFree>
4032     </territory>
4033
4034     <!-- Switzerland -->
4035     <territory id="CH" countryCode="41" internationalPrefix="00"
4036                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG"
4037                mobileNumberPortableRegion="true">
4038       <references>
4039         <!-- Under Technical prescriptions: Numbering plan for international carriers. -->
4040         <sourceUrl>http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en</sourceUrl>
4041       </references>
4042       <availableFormats>
4043         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
4044           <leadingDigits>
4045             [2-7]|
4046             [89]1
4047           </leadingDigits>
4048           <format>$1 $2 $3 $4</format>
4049         </numberFormat>
4050         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4051           <leadingDigits>
4052             8[047]|
4053             90
4054           </leadingDigits>
4055           <format>$1 $2 $3</format>
4056         </numberFormat>
4057         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
4058           <leadingDigits>860</leadingDigits>
4059           <format>$1 $2 $3 $4 $5</format>
4060         </numberFormat>
4061       </availableFormats>
4062       <generalDesc>
4063         <nationalNumberPattern>
4064           [2-9]\d{8}|
4065           860\d{9}
4066         </nationalNumberPattern>
4067         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
4068       </generalDesc>
4069       <fixedLine>
4070         <nationalNumberPattern>
4071           (?:
4072             2[12467]|
4073             3[1-4]|
4074             4[134]|
4075             5[256]|
4076             6[12]|
4077             [7-9]1
4078           )\d{7}
4079         </nationalNumberPattern>
4080         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4081         <exampleNumber>212345678</exampleNumber>
4082       </fixedLine>
4083       <mobile>
4084         <nationalNumberPattern>7[5-9]\d{7}</nationalNumberPattern>
4085         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4086         <exampleNumber>781234567</exampleNumber>
4087       </mobile>
4088       <pager>
4089         <!-- https://www.eofcom.admin.ch/eofcom/public/listEofcom_e164Allocated.do -->
4090         <nationalNumberPattern>74[0248]\d{6}</nationalNumberPattern>
4091         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4092         <exampleNumber>740123456</exampleNumber>
4093       </pager>
4094       <tollFree>
4095         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4096         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4097         <exampleNumber>800123456</exampleNumber>
4098       </tollFree>
4099       <premiumRate>
4100         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
4101         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4102         <exampleNumber>900123456</exampleNumber>
4103       </premiumRate>
4104       <sharedCost>
4105         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
4106         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4107         <exampleNumber>840123456</exampleNumber>
4108       </sharedCost>
4109       <personalNumber>
4110         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
4111         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4112         <exampleNumber>878123456</exampleNumber>
4113       </personalNumber>
4114       <uan>
4115         <!-- Used for corporate networks. -->
4116         <nationalNumberPattern>5[18]\d{7}</nationalNumberPattern>
4117         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4118         <exampleNumber>581234567</exampleNumber>
4119       </uan>
4120       <voicemail>
4121         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
4122         <possibleNumberPattern>\d{12}</possibleNumberPattern>
4123         <exampleNumber>860123456789</exampleNumber>
4124       </voicemail>
4125     </territory>
4126
4127     <!-- Côte d'Ivoire -->
4128     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
4129       <references>
4130         <sourceUrl>http://www.itu.int/oth/T0202000031/en</sourceUrl>
4131       </references>
4132       <availableFormats>
4133         <!-- Using format from online yellow pages over format implied in national numbering plan.
4134              -->
4135         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4136           <format>$1 $2 $3 $4</format>
4137         </numberFormat>
4138       </availableFormats>
4139       <generalDesc>
4140         <nationalNumberPattern>[02-7]\d{7}</nationalNumberPattern>
4141         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4142       </generalDesc>
4143       <fixedLine>
4144         <nationalNumberPattern>
4145           (?:
4146             2(?:
4147               0[023]|
4148               1[02357]|
4149               [23][045]|
4150               4[03-5]
4151             )|
4152             3(?:
4153               0[06]|
4154               1[069]|
4155               [2-4][07]|
4156               5[09]|
4157               6[08]
4158             )
4159           )\d{5}
4160         </nationalNumberPattern>
4161         <exampleNumber>21234567</exampleNumber>
4162       </fixedLine>
4163       <mobile>
4164         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 6[15] because SMS messages have been
4165              successfully delivered. Supported by numbers found on the internet. The prefix 56 was
4166              assigned to MTN in July 2013:
4167              http://www.atci.ci/images/stories/pdf/decisions-dg/decision_002.pdf
4168              The prefix 75 is from an open-source bug report.
4169              50 has been removed since Warid seems to have stopped operation in Côte d'Ivoire. -->
4170           <nationalNumberPattern>
4171           (?:
4172             0[1-9]|
4173             4[0-24-9]|
4174             5[4-9]|
4175             6[015-79]|
4176             7[57]
4177           )\d{6}
4178         </nationalNumberPattern>
4179         <exampleNumber>01234567</exampleNumber>
4180       </mobile>
4181     </territory>
4182
4183     <!-- Cook Islands -->
4184     <territory id="CK" countryCode="682" internationalPrefix="00">
4185       <references>
4186         <sourceUrl>http://www.itu.int/oth/T020200002F/en</sourceUrl>
4187       </references>
4188       <availableFormats>
4189         <numberFormat pattern="(\d{2})(\d{3})">
4190           <format>$1 $2</format>
4191         </numberFormat>
4192       </availableFormats>
4193       <generalDesc>
4194         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
4195         <possibleNumberPattern>\d{5}</possibleNumberPattern>
4196       </generalDesc>
4197       <fixedLine>
4198         <nationalNumberPattern>
4199           (?:
4200             2\d|
4201             3[13-7]|
4202             4[1-5]
4203           )\d{3}
4204         </nationalNumberPattern>
4205         <exampleNumber>21234</exampleNumber>
4206       </fixedLine>
4207       <mobile>
4208         <nationalNumberPattern>
4209           (?:
4210             5[0-68]|
4211             7\d
4212           )\d{3}
4213         </nationalNumberPattern>
4214         <exampleNumber>71234</exampleNumber>
4215       </mobile>
4216     </territory>
4217
4218     <!-- Chile -->
4219     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
4220     <territory id="CL" countryCode="56"
4221                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
4222                nationalPrefix="0"
4223                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
4224                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
4225       <references>
4226         <sourceUrl>http://www.itu.int/oth/T020200002A/en</sourceUrl>
4227         <sourceUrl>http://en.wikipedia.org/wiki/%2B56</sourceUrl>
4228         <sourceUrl>http://www.subtel.gob.cl/base_numeracion/tabla_numeracion_ido_idd.xlsx</sourceUrl>
4229       </references>
4230       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
4231            we strip here. National destinations may be dialled with a carrier if they are not local
4232            so we extract these carrier codes as well. -->
4233       <availableFormats>
4234         <numberFormat pattern="(\d)(\d{4})(\d{4})"
4235           nationalPrefixFormattingRule="($FG)"
4236           carrierCodeFormattingRule="$CC ($FG)">
4237           <leadingDigits>22</leadingDigits>
4238           <format>$1 $2 $3</format>
4239         </numberFormat>
4240         <numberFormat pattern="(\d{2})(\d{3})(\d{4})"
4241           nationalPrefixFormattingRule="($FG)"
4242           carrierCodeFormattingRule="$CC ($FG)">
4243           <leadingDigits>
4244             [357]|
4245             4[1-35]|
4246             6[13-57]
4247           </leadingDigits>
4248           <format>$1 $2 $3</format>
4249         </numberFormat>
4250         <numberFormat pattern="(9)(\d{4})(\d{4})">
4251           <leadingDigits>9</leadingDigits>
4252           <format>$1 $2 $3</format>
4253         </numberFormat>
4254         <numberFormat pattern="(44)(\d{3})(\d{4})">
4255           <leadingDigits>44</leadingDigits>
4256           <format>$1 $2 $3</format>
4257         </numberFormat>
4258         <numberFormat nationalPrefixFormattingRule="$FG"
4259           pattern="([68]00)(\d{3})(\d{3,4})">
4260           <leadingDigits>
4261             60|
4262             8
4263           </leadingDigits>
4264           <format>$1 $2 $3</format>
4265         </numberFormat>
4266         <numberFormat nationalPrefixFormattingRule="$FG"
4267           pattern="(600)(\d{3})(\d{2})(\d{3})">
4268           <leadingDigits>60</leadingDigits>
4269           <format>$1 $2 $3 $4</format>
4270         </numberFormat>
4271         <numberFormat nationalPrefixFormattingRule="$FG"
4272           pattern="(1230)(\d{3})(\d{4})">
4273           <leadingDigits>1</leadingDigits>
4274           <format>$1 $2 $3</format>
4275         </numberFormat>
4276         <numberFormat pattern="(\d{5})(\d{4})"
4277           nationalPrefixFormattingRule="($FG)"
4278           carrierCodeFormattingRule="$CC ($FG)">
4279           <leadingDigits>219</leadingDigits>
4280           <format>$1 $2</format>
4281         </numberFormat>
4282         <!-- Format some short numbers as a block. -->
4283         <numberFormat nationalPrefixFormattingRule="$FG"
4284           pattern="(\d{4,5})">
4285           <leadingDigits>[1-9]</leadingDigits>
4286           <format>$1</format>
4287           <intlFormat>NA</intlFormat>
4288         </numberFormat>
4289       </availableFormats>
4290       <generalDesc>
4291         <nationalNumberPattern>
4292           (?:
4293             [2-9]|
4294             600|
4295             123
4296           )\d{7,8}
4297         </nationalNumberPattern>
4298         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4299       </generalDesc>
4300       <noInternationalDialling>
4301         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4302         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4303         <exampleNumber>6001234567</exampleNumber>
4304       </noInternationalDialling>
4305       <fixedLine>
4306         <!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by
4307              inserting a '2' after the area code (which are 2 digits, with the exception of '2').
4308              As of Aug. 2014, all of the prefixes have been switched over to the new plan.
4309              IMPORTANT: The fact that Santiago numbers have a prefix of "22", and that numbers in
4310              other areas have '2' as their third digit, is likely to change in the future. At some
4311              stage, Santiago numbers will probably switch to prefix "2\d", and the third digit in
4312              other areas will probably be allowed to take on other values.
4313              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
4314                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
4315              -->
4316         <nationalNumberPattern>
4317           2(?:
4318             2\d{7}|
4319             1962\d{4}
4320           )|
4321           (?:
4322             3[2-5]|
4323             [47][1-35]|
4324             5[1-3578]|
4325             6[13-57]
4326           )\d{7}
4327         </nationalNumberPattern>
4328         <!-- Area codes do not need to be dialled when dialling within the same area, so the
4329              smallest possible number is length 7. -->
4330         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4331         <exampleNumber>221234567</exampleNumber>
4332       </fixedLine>
4333       <mobile>
4334         <nationalNumberPattern>9[4-9]\d{7}</nationalNumberPattern>
4335         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4336         <exampleNumber>961234567</exampleNumber>
4337       </mobile>
4338       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
4339            from a definitive source. -->
4340       <tollFree>
4341         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
4342         <nationalNumberPattern>
4343           800\d{6}|
4344           1230\d{7}
4345         </nationalNumberPattern>
4346         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
4347         <exampleNumber>800123456</exampleNumber>
4348       </tollFree>
4349       <sharedCost>
4350         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
4351         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4352         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4353         <exampleNumber>6001234567</exampleNumber>
4354       </sharedCost>
4355       <voip>
4356         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
4357         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4358         <exampleNumber>441234567</exampleNumber>
4359       </voip>
4360     </territory>
4361
4362     <!-- Cameroon -->
4363     <territory id="CM" countryCode="237" internationalPrefix="00">
4364       <references>
4365         <sourceUrl>http://www.itu.int/oth/T0202000024/en</sourceUrl>
4366       </references>
4367       <availableFormats>
4368         <!-- Formatting on the internet is consistently with the first 2 extracted, and usually in
4369              the same format as France (all 2 digit groups) so we use this instead of the guidance
4370              of the national numbering plan (which has 1 3 2 2 and 4 4 as its two formatting
4371              examples.) -->
4372         <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
4373           <leadingDigits>
4374             [23579]|
4375             88
4376           </leadingDigits>
4377           <format>$1 $2 $3 $4</format>
4378         </numberFormat>
4379         <numberFormat pattern="(800)(\d{2})(\d{3})">
4380           <leadingDigits>80</leadingDigits>
4381           <format>$1 $2 $3</format>
4382         </numberFormat>
4383       </availableFormats>
4384       <generalDesc>
4385         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
4386         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4387       </generalDesc>
4388       <fixedLine>
4389         <!-- Technically, the numbers are required only to start with a 2 or a 3, but all numbers at
4390              the moment start with 22 or 33 since they have been migrated from seven digit numbers
4391              beginning with these numbers. This rule should be relaxed if/when we start getting
4392              numbers beginning in other ways. -->
4393         <nationalNumberPattern>
4394           (?:
4395             22|
4396             33
4397           )\d{6}
4398         </nationalNumberPattern>
4399         <exampleNumber>22123456</exampleNumber>
4400       </fixedLine>
4401       <mobile>
4402         <!-- Mobile numbers beginning with 5 were found online. -->
4403         <nationalNumberPattern>[579]\d{7}</nationalNumberPattern>
4404         <exampleNumber>71234567</exampleNumber>
4405       </mobile>
4406       <tollFree>
4407         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
4408         <exampleNumber>80012345</exampleNumber>
4409       </tollFree>
4410       <premiumRate>
4411         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
4412              with 88 (usually 880). No information can be found as to whether these are premium rate
4413              or shared cost. -->
4414         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
4415         <exampleNumber>88012345</exampleNumber>
4416       </premiumRate>
4417     </territory>
4418
4419     <!-- China -->
4420     <territory id="CN" countryCode="86" internationalPrefix="(1[1279]\d{3})?00"
4421                preferredInternationalPrefix="00" nationalPrefix="0"
4422                nationalPrefixForParsing="(1[1279]\d{3})|0">
4423       <references>
4424         <sourceUrl>http://www.itu.int/oth/T020200002B/en</sourceUrl>
4425       </references>
4426       <availableFormats>
4427         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
4428                       nationalPrefixOptionalWhenFormatting="true"
4429                       carrierCodeFormattingRule="$CC $FG">
4430           <leadingDigits>80[2678]</leadingDigits>
4431           <format>$1 $2</format>
4432         </numberFormat>
4433         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
4434           <leadingDigits>[48]00</leadingDigits>
4435           <format>$1 $2 $3</format>
4436         </numberFormat>
4437         <!-- 100xx and 95xxx(x) short numbers without area codes. Without this rule, these short
4438              numbers will be formatted incorrectly by the AsYouTypeFormatter because they overlap
4439              with area codes 010, 095x. These numbers are defined in ShortNumberMetadata.xml but
4440              must be accounted for here. Note although ITU says the format is more like 95 xxx, in
4441              reality no space is used when writing such numbers in China. -->
4442         <numberFormat pattern="(\d{5,6})">
4443           <leadingDigits>
4444             100|
4445             95
4446           </leadingDigits>
4447           <format>$1</format>
4448           <intlFormat>NA</intlFormat>
4449         </numberFormat>
4450         <!-- 100xx and 95xxx(x) numbers with area codes (these numbers without an area code are now
4451              dealt with by ShortNumberMetadata.xml) and 96xxx(x) numbers with area codes (we don't
4452              support these as short numbers because they are only unique within a province, not
4453              within a country). -->
4454         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
4455                       carrierCodeFormattingRule="$CC $FG">
4456           <leadingDigits>
4457             (?:
4458               10|
4459               2\d
4460             )[19]
4461           </leadingDigits>
4462           <leadingDigits>
4463             (?:
4464               10|
4465               2\d
4466             )(?:
4467               10|
4468               9[56]
4469             )
4470           </leadingDigits>
4471           <leadingDigits>
4472             (?:
4473               10|
4474               2\d
4475             )(?:
4476               100|
4477               9[56]
4478             )
4479           </leadingDigits>
4480           <format>$1 $2</format>
4481         </numberFormat>
4482         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{5,6})"
4483                       carrierCodeFormattingRule="$CC $FG">
4484           <leadingDigits>[3-9]</leadingDigits>
4485           <leadingDigits>[3-9]\d{2}[19]</leadingDigits>
4486           <leadingDigits>
4487             [3-9]\d{2}(?:
4488               10|
4489               9[56]
4490             )
4491           </leadingDigits>
4492           <format>$1 $2</format>
4493         </numberFormat>
4494         <!-- Local numbers -->
4495         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
4496              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
4497              people frequently store them in their cellphones. It has to stay before formatting
4498              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
4499              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
4500         <numberFormat pattern="(\d{3,4})(\d{4})">
4501           <leadingDigits>[2-9]</leadingDigits>
4502           <format>$1 $2</format>
4503           <intlFormat>NA</intlFormat>
4504         </numberFormat>
4505         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
4506                       nationalPrefixOptionalWhenFormatting="true"
4507                       carrierCodeFormattingRule="$CC $FG">
4508           <leadingDigits>21</leadingDigits>
4509           <format>$1 $2 $3</format>
4510         </numberFormat>
4511         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
4512                       nationalPrefixOptionalWhenFormatting="true"
4513                       carrierCodeFormattingRule="$CC $FG">
4514           <leadingDigits>
4515             10[1-9]|
4516             2[02-9]
4517           </leadingDigits>
4518           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
4519           <leadingDigits>
4520             10[1-9]|
4521             2[02-9]
4522           </leadingDigits>
4523           <leadingDigits>
4524             10(?:
4525               [1-79]|
4526               8(?:
4527                 [1-9]|
4528                 0[1-9]
4529               )
4530             )|
4531             2[02-9]
4532           </leadingDigits>
4533           <format>$1 $2 $3</format>
4534         </numberFormat>
4535         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
4536                       nationalPrefixOptionalWhenFormatting="true"
4537                       carrierCodeFormattingRule="$CC $FG">
4538           <leadingDigits>
4539             3(?:
4540               11|
4541               7[179]
4542             )|
4543             4(?:
4544               [15]1|
4545               3[12]
4546             )|
4547             5(?:
4548               1|
4549               2[37]|
4550               3[12]|
4551               51|
4552               7[13-79]|
4553               9[15]
4554             )|
4555             7(?:
4556               31|
4557               5[457]|
4558               6[09]|
4559               91
4560             )|
4561             8(?:
4562               71|
4563               98
4564             )
4565           </leadingDigits>
4566           <format>$1 $2 $3</format>
4567         </numberFormat>
4568         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
4569                       nationalPrefixOptionalWhenFormatting="true"
4570                       carrierCodeFormattingRule="$CC $FG">
4571           <leadingDigits>
4572             3(?:
4573               1[02-9]|
4574               35|
4575               49|
4576               5|
4577               7[02-68]|
4578               9[1-68]
4579             )|
4580             4(?:
4581               1[02-9]|
4582               2[179]|
4583               [35][2-9]|
4584               6[4789]|
4585               7\d|
4586               8[23]
4587             )|
4588             5(?:
4589               3[03-9]|
4590               4[36]|
4591               5[02-9]|
4592               6[1-46]|
4593               7[028]|
4594               80|
4595               9[2-46-9]
4596             )|
4597             6(?:
4598               3[1-5]|
4599               6[0238]|
4600               9[12]
4601             )|
4602             7(?:
4603               01|
4604               [1579]|
4605               2[248]|
4606               3[04-9]|
4607               4[3-6]|
4608               6[2368]
4609             )|
4610             8(?:
4611               1[236-8]|
4612               2[5-7]|
4613               3|
4614               5[1-9]|
4615               7[02-9]|
4616               8[3678]|
4617               9[1-7]
4618             )|
4619             9(?:
4620               0[1-3689]|
4621               1[1-79]|
4622               [379]|
4623               4[13]|
4624               5[1-5]
4625             )
4626           </leadingDigits>
4627           <format>$1 $2 $3</format>
4628         </numberFormat>
4629         <numberFormat pattern="(\d{3})(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
4630           <leadingDigits>1[3-578]</leadingDigits>
4631           <format>$1 $2 $3</format>
4632         </numberFormat>
4633         <numberFormat pattern="(10800)(\d{3})(\d{4})">
4634           <leadingDigits>108</leadingDigits>
4635           <leadingDigits>1080</leadingDigits>
4636           <leadingDigits>10800</leadingDigits>
4637           <format>$1 $2 $3</format>
4638         </numberFormat>
4639       </availableFormats>
4640       <generalDesc>
4641         <nationalNumberPattern>
4642           [1-7]\d{6,11}|
4643           8[0-357-9]\d{6,9}|
4644           9\d{7,9}
4645         </nationalNumberPattern>
4646         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
4647       </generalDesc>
4648       <noInternationalDialling>
4649         <nationalNumberPattern>
4650           (?:
4651             4|
4652             (?:
4653               10
4654             )?8
4655           )00\d{7}
4656         </nationalNumberPattern>
4657         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4658         <exampleNumber>4001234567</exampleNumber>
4659       </noInternationalDialling>
4660       <fixedLine>
4661         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
4662              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
4663              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
4664              in the ITU data.
4665              10xxx and 95xxx(x) numbers with area codes are also included here, as they behave
4666              exactly like fixed-line numbers. We don't support them for 4-digit area codes though,
4667              as they don't seem to be used there based on making actual phone calls.
4668          -->
4669         <nationalNumberPattern>
4670           21(?:
4671             100\d{2}|
4672             95\d{3,4}|
4673             \d{8,10}
4674           )|
4675           (?:
4676             10|
4677             2[02-57-9]|
4678             3(?:
4679               11|
4680               7[179]
4681             )|
4682             4(?:
4683               [15]1|
4684               3[12]
4685             )|
4686             5(?:
4687               1\d|
4688               2[37]|
4689               3[12]|
4690               51|
4691               7[13-79]|
4692               9[15]
4693             )|
4694             7(?:
4695               31|
4696               5[457]|
4697               6[09]|
4698               91
4699             )|
4700             8(?:
4701               71|
4702               98
4703             )
4704           )(?:
4705             100\d{2}|
4706             95\d{3,4}|
4707             \d{8}
4708           )|
4709           (?:
4710             3(?:
4711               1[02-9]|
4712               35|
4713               49|
4714               5\d|
4715               7[02-68]|
4716               9[1-68]
4717             )|
4718             4(?:
4719               1[02-9]|
4720               2[179]|
4721               3[3-9]|
4722               5[2-9]|
4723               6[4789]|
4724               7\d|
4725               8[23]
4726             )|
4727             5(?:
4728               3[03-9]|
4729               4[36]|
4730               5[02-9]|
4731               6[1-46]|
4732               7[028]|
4733               80|
4734               9[2-46-9]
4735             )|
4736             6(?:
4737               3[1-5]|
4738               6[0238]|
4739               9[12]
4740             )|
4741             7(?:
4742               01|
4743               [17]\d|
4744               2[248]|
4745               3[04-9]|
4746               4[3-6]|
4747               5[0-3689]|
4748               6[2368]|
4749               9[02-9]
4750             )|
4751             8(?:
4752               1[236-8]|
4753               2[5-7]|
4754               3\d|
4755               5[1-9]|
4756               7[02-9]|
4757               8[3678]|
4758               9[1-7]
4759             )|
4760             9(?:
4761               0[1-3689]|
4762               1[1-79]|
4763               [379]\d|
4764               4[13]|
4765               5[1-5]
4766             )
4767           )(?:
4768             100\d{2}|
4769             95\d{3,4}|
4770             \d{7}
4771           )|
4772           80(?:
4773             29|
4774             6[03578]|
4775             7[018]|
4776             81
4777           )\d{4}
4778         </nationalNumberPattern>
4779         <exampleNumber>1012345678</exampleNumber>
4780       </fixedLine>
4781       <mobile>
4782         <!-- 170, 176, 177 and 178 prefixes are introduced in early 2014 for 4G networks. -->
4783         <nationalNumberPattern>
4784           1(?:
4785             [38]\d|
4786             4[57]|
4787             5[0-35-9]|
4788             7[06-8]
4789           )\d{8}
4790         </nationalNumberPattern>
4791         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4792         <exampleNumber>13123456789</exampleNumber>
4793       </mobile>
4794       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
4795            number plan, and do not seem to have been standardized. The information below is
4796            collected from searching the web. -->
4797       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
4798       <tollFree>
4799         <nationalNumberPattern>
4800           (?:
4801             10
4802           )?800\d{7}
4803         </nationalNumberPattern>
4804         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4805         <exampleNumber>8001234567</exampleNumber>
4806       </tollFree>
4807       <premiumRate>
4808         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
4809         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4810         <exampleNumber>16812345</exampleNumber>
4811       </premiumRate>
4812       <sharedCost>
4813         <!-- 96xxx(x) numbers with area codes are included here. Their costs are not well
4814              documented, but they are thought to be mostly local costs with certain exceptions. We
4815              don't support them for 4-digit area codes though, as they don't seem to be used there
4816              based on online searches. -->
4817         <nationalNumberPattern>
4818           400\d{7}|
4819           (?:
4820             10|
4821             2[0-57-9]|
4822             3(?:
4823               [157]\d|
4824               35|
4825               49|
4826               9[1-68]
4827             )|
4828             4(?:
4829               [17]\d|
4830               2[179]|
4831               [35][1-9]|
4832               6[4789]|
4833               8[23]
4834             )|
4835             5(?:
4836               [1357]\d|
4837               2[37]|
4838               4[36]|
4839               6[1-46]|
4840               80|
4841               9[1-9]
4842             )|
4843             6(?:
4844               3[1-5]|
4845               6[0238]|
4846               9[12]
4847             )|
4848             7(?:
4849               01|
4850               [1579]\d|
4851               2[248]|
4852               3[014-9]|
4853               4[3-6]|
4854               6[023689]
4855             )|
4856             8(?:
4857               1[236-8]|
4858               2[5-7]|
4859               [37]\d|
4860               5[1-9]|
4861               8[3678]|
4862               9[1-8]
4863             )|
4864             9(?:
4865               0[1-3689]|
4866               1[1-79]|
4867               [379]\d|
4868               4[13]|
4869               5[1-5]
4870             )
4871           )96\d{3,4}
4872         </nationalNumberPattern>
4873         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
4874         <exampleNumber>4001234567</exampleNumber>
4875       </sharedCost>
4876     </territory>
4877
4878     <!-- Colombia -->
4879     <!-- Extra international dialling prefixes from http://www.claro.com.co and
4880          http://www.tigo.com.co. -->
4881     <!-- 05 and 005 are for Orbitel: co.orbitel.com -->
4882     <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])"
4883                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?"
4884                mobileNumberPortableRegion="true">
4885       <references>
4886         <sourceUrl>http://www.itu.int/oth/T020200002C/en</sourceUrl>
4887         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia</sourceUrl>
4888       </references>
4889       <availableFormats>
4890         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
4891           nationalPrefixFormattingRule="($FG)">
4892           <leadingDigits>
4893             1(?:
4894               8[2-9]|
4895               9[0-3]|
4896               [2-7]
4897             )|
4898             [24-8]
4899           </leadingDigits>
4900           <leadingDigits>
4901             1(?:
4902               8[2-9]|
4903               9(?:
4904                 09|
4905                 [1-3]
4906               )|
4907               [2-7]
4908             )|
4909             [24-8]
4910           </leadingDigits>
4911           <format>$1 $2</format>
4912         </numberFormat>
4913         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
4914           <leadingDigits>3</leadingDigits>
4915           <format>$1 $2</format>
4916         </numberFormat>
4917         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
4918           <leadingDigits>
4919             1(?:
4920               80|
4921               9[04]
4922             )
4923           </leadingDigits>
4924           <leadingDigits>
4925             1(?:
4926               800|
4927               9(?:
4928                 0[01]|
4929                 4[78]
4930               )
4931             )
4932           </leadingDigits>
4933           <format>$1-$2-$3</format>
4934           <intlFormat>$1 $2 $3</intlFormat>
4935         </numberFormat>
4936       </availableFormats>
4937       <generalDesc>
4938         <nationalNumberPattern>
4939           (?:
4940             [13]\d{0,3}|
4941             [24-8]
4942           )\d{7}
4943         </nationalNumberPattern>
4944         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4945       </generalDesc>
4946       <fixedLine>
4947         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
4948         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4949         <exampleNumber>12345678</exampleNumber>
4950       </fixedLine>
4951       <mobile>
4952         <nationalNumberPattern>
4953           3(?:
4954             0[0-5]|
4955             1\d|
4956             2[0-2]|
4957             5[01]
4958           )\d{7}
4959         </nationalNumberPattern>
4960         <possibleNumberPattern>\d{10}</possibleNumberPattern>
4961         <exampleNumber>3211234567</exampleNumber>
4962       </mobile>
4963       <tollFree>
4964         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
4965         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4966         <exampleNumber>18001234567</exampleNumber>
4967       </tollFree>
4968       <premiumRate>
4969         <nationalNumberPattern>
4970           19(?:
4971             0[01]|
4972             4[78]
4973           )\d{7}
4974         </nationalNumberPattern>
4975         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4976         <exampleNumber>19001234567</exampleNumber>
4977       </premiumRate>
4978     </territory>
4979
4980     <!-- Costa Rica -->
4981     <territory id="CR" countryCode="506" internationalPrefix="00"
4982                nationalPrefixForParsing="(19(?:0[012468]|1[09]|20|66|77|99))"
4983                carrierCodeFormattingRule="$CC $FG">
4984       <references>
4985         <sourceUrl>http://www.itu.int/oth/T0202000030/en</sourceUrl>
4986       </references>
4987       <availableFormats>
4988         <numberFormat pattern="(\d{4})(\d{4})">
4989           <leadingDigits>
4990             [24-7]|
4991             8[3-9]
4992           </leadingDigits>
4993           <format>$1 $2</format>
4994         </numberFormat>
4995         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
4996           <leadingDigits>[89]0</leadingDigits>
4997           <format>$1-$2-$3</format>
4998         </numberFormat>
4999       </availableFormats>
5000       <generalDesc>
5001         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
5002         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
5003       </generalDesc>
5004       <fixedLine>
5005         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
5006         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5007         <exampleNumber>22123456</exampleNumber>
5008       </fixedLine>
5009       <mobile>
5010         <nationalNumberPattern>
5011           5(?:
5012             0[01]|
5013             7[0-3]
5014           )\d{5}|
5015           6(?:
5016             [0-2]\d|
5017             30
5018           )\d{5}|
5019           7[0-3]\d{6}|
5020           8[3-9]\d{6}
5021         </nationalNumberPattern>
5022         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5023         <exampleNumber>83123456</exampleNumber>
5024       </mobile>
5025       <tollFree>
5026         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
5027         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5028         <exampleNumber>8001234567</exampleNumber>
5029       </tollFree>
5030       <premiumRate>
5031         <!-- Includes "mass calls" numbers with prefix 905. -->
5032         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
5033         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5034         <exampleNumber>9001234567</exampleNumber>
5035       </premiumRate>
5036       <voip>
5037         <!-- Including trunking service numbers starting with 5100. 4001 (callmyway.com) was added
5038              from an open-source bug report supported by numbers found online. -->
5039         <nationalNumberPattern>
5040           210[0-6]\d{4}|
5041           4(?:
5042             0(?:
5043               0[01]\d{4}|
5044               10[0-3]\d{3}|
5045               2(?:
5046                 00\d{3}|
5047                 900\d{2}
5048               )|
5049               3[01]\d{4}|
5050               40\d{4}|
5051               5\d{5}|
5052               60\d{4}|
5053               70[01]\d{3}|
5054               8[0-2]\d{4}
5055             )|
5056             1[01]\d{5}|
5057             20[0-3]\d{4}|
5058             400\d{4}|
5059             70[0-2]\d{4}
5060           )|
5061           5100\d{4}
5062         </nationalNumberPattern>
5063         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5064         <exampleNumber>40001234</exampleNumber>
5065       </voip>
5066     </territory>
5067
5068     <!-- Cuba -->
5069     <territory id="CU" countryCode="53" internationalPrefix="119"
5070                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
5071       <references>
5072         <sourceUrl>http://www.itu.int/oth/T0202000033/en</sourceUrl>
5073       </references>
5074       <availableFormats>
5075         <numberFormat pattern="(\d)(\d{6,7})">
5076           <leadingDigits>7</leadingDigits>
5077           <format>$1 $2</format>
5078         </numberFormat>
5079         <numberFormat pattern="(\d{2})(\d{4,6})">
5080           <leadingDigits>[2-4]</leadingDigits>
5081           <format>$1 $2</format>
5082         </numberFormat>
5083         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5084           <leadingDigits>5</leadingDigits>
5085           <format>$1 $2</format>
5086         </numberFormat>
5087       </availableFormats>
5088       <generalDesc>
5089         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
5090         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
5091       </generalDesc>
5092       <fixedLine>
5093         <nationalNumberPattern>
5094           2[1-4]\d{5,6}|
5095           3(?:
5096             1\d{6}|
5097             [23]\d{4,6}
5098           )|
5099           4(?:
5100             [125]\d{5,6}|
5101             [36]\d{6}|
5102             [78]\d{4,6}
5103           )|
5104           7\d{6,7}
5105         </nationalNumberPattern>
5106         <exampleNumber>71234567</exampleNumber>
5107       </fixedLine>
5108       <mobile>
5109         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
5110         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5111         <exampleNumber>51234567</exampleNumber>
5112       </mobile>
5113     </territory>
5114
5115     <!-- Cape Verde -->
5116     <territory id="CV" countryCode="238" internationalPrefix="0">
5117       <references>
5118         <sourceUrl>http://www.itu.int/oth/T0202000026/en</sourceUrl>
5119       </references>
5120       <availableFormats>
5121         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
5122           <format>$1 $2 $3</format>
5123         </numberFormat>
5124       </availableFormats>
5125       <generalDesc>
5126         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
5127         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5128       </generalDesc>
5129       <fixedLine>
5130         <nationalNumberPattern>
5131           2(?:
5132             2[1-7]|
5133             3[0-8]|
5134             4[12]|
5135             5[1256]|
5136             6\d|
5137             7[1-3]|
5138             8[1-5]
5139           )\d{4}
5140         </nationalNumberPattern>
5141         <exampleNumber>2211234</exampleNumber>
5142       </fixedLine>
5143       <mobile>
5144         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
5145              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
5146              example, and there are plenty of numbers on the internet that start with these
5147              prefixes. -->
5148         <nationalNumberPattern>
5149           (?:
5150             9\d|
5151             59
5152           )\d{5}
5153         </nationalNumberPattern>
5154         <exampleNumber>9911234</exampleNumber>
5155       </mobile>
5156     </territory>
5157
5158     <!-- Curaçao -->
5159     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
5160       <references>
5161         <sourceUrl>http://www.itu.int/oth/T02020000F5/en</sourceUrl>
5162       </references>
5163       <!-- All the formatting patterns for country-code 599 are here. -->
5164       <availableFormats>
5165         <numberFormat pattern="(\d{3})(\d{4})">
5166           <leadingDigits>[13-7]</leadingDigits>
5167           <format>$1 $2</format>
5168         </numberFormat>
5169         <numberFormat pattern="(9)(\d{3})(\d{4})">
5170           <leadingDigits>9</leadingDigits>
5171           <format>$1 $2 $3</format>
5172         </numberFormat>
5173       </availableFormats>
5174       <generalDesc>
5175         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
5176         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
5177       </generalDesc>
5178       <fixedLine>
5179         <nationalNumberPattern>
5180           9(?:
5181             [48]\d{2}|
5182             50\d|
5183             7(?:
5184               2[0-24]|
5185               [34]\d|
5186               6[35-7]|
5187               77|
5188               8[7-9]
5189             )
5190           )\d{4}
5191         </nationalNumberPattern>
5192         <exampleNumber>94151234</exampleNumber>
5193       </fixedLine>
5194       <mobile>
5195         <nationalNumberPattern>
5196           9(?:
5197             5(?:
5198               [1246]\d|
5199               3[01]
5200             )|
5201             6(?:
5202               [16-9]\d|
5203               3[01]
5204             )
5205           )\d{4}
5206         </nationalNumberPattern>
5207         <exampleNumber>95181234</exampleNumber>
5208       </mobile>
5209       <pager>
5210         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
5211         <exampleNumber>95581234</exampleNumber>
5212       </pager>
5213       <sharedCost>
5214         <!-- Value-added services are lumped together under shared cost, since we are not sure
5215              exactly what they are. -->
5216         <nationalNumberPattern>
5217           (?:
5218             10|
5219             69
5220           )\d{5}
5221         </nationalNumberPattern>
5222         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5223         <exampleNumber>1011234</exampleNumber>
5224       </sharedCost>
5225     </territory>
5226
5227     <!-- Christmas Islands -->
5228     <!-- Metadata shared with Australia. -->
5229     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
5230     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
5231                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
5232                nationalPrefix="0">
5233       <references>
5234         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
5235         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
5236       </references>
5237       <!-- Uses AU formatting rules. -->
5238       <!-- General desc and fixed line rules different from Australia. -->
5239       <generalDesc>
5240         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
5241         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5242       </generalDesc>
5243       <fixedLine>
5244         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
5245         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
5246         <exampleNumber>891641234</exampleNumber>
5247       </fixedLine>
5248       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5249       <mobile>
5250         <nationalNumberPattern>
5251           14(?:
5252             5\d|
5253             71
5254           )\d{5}|
5255           4(?:
5256             [0-2]\d|
5257             3[0-57-9]|
5258             4[47-9]|
5259             5[0-25-9]|
5260             6[6-9]|
5261             7[03-9]|
5262             8[17-9]|
5263             9[017-9]
5264           )\d{6}
5265         </nationalNumberPattern>
5266         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5267         <exampleNumber>412345678</exampleNumber>
5268       </mobile>
5269       <tollFree>
5270         <nationalNumberPattern>
5271           1(?:
5272             80(?:
5273               0\d{2}
5274             )?|
5275             3(?:
5276               00\d{2}
5277             )?
5278           )\d{4}
5279         </nationalNumberPattern>
5280         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5281         <exampleNumber>1800123456</exampleNumber>
5282       </tollFree>
5283       <premiumRate>
5284         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
5285         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5286         <exampleNumber>1900123456</exampleNumber>
5287       </premiumRate>
5288       <personalNumber>
5289         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
5290         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5291         <exampleNumber>500123456</exampleNumber>
5292       </personalNumber>
5293       <voip>
5294         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
5295         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5296         <exampleNumber>550123456</exampleNumber>
5297       </voip>
5298     </territory>
5299
5300     <!-- Cyprus -->
5301     <territory id="CY" countryCode="357" internationalPrefix="00" mobileNumberPortableRegion="true">
5302       <references>
5303         <sourceUrl>http://www.itu.int/oth/T0202000034/en</sourceUrl>
5304       </references>
5305       <availableFormats>
5306         <!-- Format from http://www.cyprusyellowpages.com -->
5307         <numberFormat pattern="(\d{2})(\d{6})">
5308           <format>$1 $2</format>
5309         </numberFormat>
5310       </availableFormats>
5311       <generalDesc>
5312         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
5313         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5314       </generalDesc>
5315       <fixedLine>
5316         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
5317         <exampleNumber>22345678</exampleNumber>
5318       </fixedLine>
5319       <mobile>
5320         <!-- Includes paging numbers (they are mixed into the same block). -->
5321         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
5322         <exampleNumber>96123456</exampleNumber>
5323       </mobile>
5324       <tollFree>
5325         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
5326         <exampleNumber>80001234</exampleNumber>
5327       </tollFree>
5328       <premiumRate>
5329         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
5330         <exampleNumber>90012345</exampleNumber>
5331       </premiumRate>
5332       <sharedCost>
5333         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
5334         <exampleNumber>80112345</exampleNumber>
5335       </sharedCost>
5336       <personalNumber>
5337         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
5338         <exampleNumber>70012345</exampleNumber>
5339       </personalNumber>
5340       <uan>
5341         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
5342         <nationalNumberPattern>
5343           (?:
5344             50|
5345             77
5346           )\d{6}
5347         </nationalNumberPattern>
5348         <exampleNumber>77123456</exampleNumber>
5349       </uan>
5350     </territory>
5351
5352     <!-- Czech Rep. -->
5353     <territory id="CZ" countryCode="420" internationalPrefix="00" mobileNumberPortableRegion="true">
5354       <references>
5355         <sourceUrl>http://www.itu.int/oth/T0202000035/en</sourceUrl>
5356         <sourceUrl>http://en.wikipedia.org/wiki/%2B420</sourceUrl>
5357       </references>
5358       <availableFormats>
5359         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
5360           <leadingDigits>
5361             [2-8]|
5362             9[015-7]
5363           </leadingDigits>
5364           <format>$1 $2 $3</format>
5365         </numberFormat>
5366         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
5367           <leadingDigits>96</leadingDigits>
5368           <format>$1 $2 $3 $4</format>
5369         </numberFormat>
5370         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
5371           <leadingDigits>9[36]</leadingDigits>
5372           <format>$1 $2 $3 $4</format>
5373         </numberFormat>
5374       </availableFormats>
5375       <generalDesc>
5376         <nationalNumberPattern>
5377           [2-8]\d{8}|
5378           9\d{8,11}
5379         </nationalNumberPattern>
5380         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5381       </generalDesc>
5382       <fixedLine>
5383         <nationalNumberPattern>
5384           2\d{8}|
5385           (?:
5386             3[1257-9]|
5387             4[16-9]|
5388             5[13-9]
5389           )\d{7}
5390         </nationalNumberPattern>
5391         <exampleNumber>212345678</exampleNumber>
5392       </fixedLine>
5393       <mobile>
5394         <nationalNumberPattern>
5395           (?:
5396             60[1-8]|
5397             7(?:
5398               0[2-5]|
5399               [2379]\d
5400             )
5401           )\d{6}
5402         </nationalNumberPattern>
5403         <exampleNumber>601123456</exampleNumber>
5404       </mobile>
5405       <tollFree>
5406         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
5407         <exampleNumber>800123456</exampleNumber>
5408       </tollFree>
5409       <premiumRate>
5410         <!-- Includes premium rate dial-up. -->
5411         <nationalNumberPattern>
5412           9(?:
5413             0[05689]|
5414             76
5415           )\d{6}
5416         </nationalNumberPattern>
5417         <exampleNumber>900123456</exampleNumber>
5418       </premiumRate>
5419       <sharedCost>
5420         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
5421         <exampleNumber>811234567</exampleNumber>
5422       </sharedCost>
5423       <personalNumber>
5424         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
5425         <exampleNumber>700123456</exampleNumber>
5426       </personalNumber>
5427       <voip>
5428         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
5429         <exampleNumber>910123456</exampleNumber>
5430       </voip>
5431       <uan>
5432         <!-- Numbers belonging to private communication networks are included here. These are
5433              classified as Institutional networks, belonging to institutions like the police, armed
5434              forces and railways, along with a couple of formerly government-owned banks. These
5435              numbers are reachable by the public. -->
5436         <nationalNumberPattern>
5437           9(?:
5438             5\d|
5439             7[234]
5440           )\d{6}
5441         </nationalNumberPattern>
5442         <exampleNumber>972123456</exampleNumber>
5443       </uan>
5444       <voicemail>
5445         <nationalNumberPattern>
5446           9(?:
5447             3\d{9}|
5448             6\d{7,10}
5449           )
5450         </nationalNumberPattern>
5451         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5452         <exampleNumber>93123456789</exampleNumber>
5453       </voicemail>
5454     </territory>
5455
5456     <!-- Germany -->
5457     <territory id="DE" countryCode="49" internationalPrefix="00"
5458                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
5459                mobileNumberPortableRegion="true">
5460       <references>
5461         <sourceUrl>http://www.itu.int/oth/T0202000051/en</sourceUrl>
5462         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_germany</sourceUrl>
5463       </references>
5464       <availableFormats>
5465         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
5466              these should best be formatted, even though actual usage varies. -->
5467         <numberFormat pattern="(1\d{2})(\d{7,8})">
5468           <leadingDigits>1[67]</leadingDigits>
5469           <format>$1 $2</format>
5470         </numberFormat>
5471         <numberFormat pattern="(1\d{3})(\d{7})">
5472           <leadingDigits>15</leadingDigits>
5473           <format>$1 $2</format>
5474         </numberFormat>
5475         <numberFormat pattern="(\d{2})(\d{3,11})">
5476           <leadingDigits>
5477             3[02]|
5478             40|
5479             [68]9
5480           </leadingDigits>
5481           <format>$1 $2</format>
5482         </numberFormat>
5483         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
5484         <!-- 3 digit area codes. -->
5485         <numberFormat pattern="(\d{3})(\d{3,11})">
5486           <leadingDigits>
5487             2(?:
5488               \d1|
5489               0[2389]|
5490               1[24]|
5491               28|
5492               34
5493             )|
5494             3(?:
5495               [3-9][15]|
5496               40
5497             )|
5498             [4-8][1-9]1|
5499             9(?:
5500               06|
5501               [1-9]1
5502             )
5503           </leadingDigits>
5504           <format>$1 $2</format>
5505         </numberFormat>
5506         <!-- 4 digit area codes. -->
5507         <numberFormat pattern="(\d{4})(\d{2,11})">
5508           <leadingDigits>
5509             [24-6]|
5510             [7-9](?:
5511               \d[1-9]|
5512               [1-9]\d
5513             )|
5514             3(?:
5515               [3569][02-46-9]|
5516               4[2-4679]|
5517               7[2-467]|
5518               8[2-46-8]
5519             )
5520           </leadingDigits>
5521           <leadingDigits>
5522             [24-6]|
5523             [7-9](?:
5524               \d[1-9]|
5525               [1-9]\d
5526             )|
5527             3(?:
5528               3(?:
5529                 0[1-467]|
5530                 2[127-9]|
5531                 3[124578]|
5532                 [46][1246]|
5533                 7[1257-9]|
5534                 8[1256]|
5535                 9[145]
5536               )|
5537               4(?:
5538                 2[135]|
5539                 3[1357]|
5540                 4[13578]|
5541                 6[1246]|
5542                 7[1356]|
5543                 9[1346]
5544               )|
5545               5(?:
5546                 0[14]|
5547                 2[1-3589]|
5548                 3[1357]|
5549                 4[1246]|
5550                 6[1-4]|
5551                 7[1346]|
5552                 8[13568]|
5553                 9[1246]
5554               )|
5555               6(?:
5556                 0[356]|
5557                 2[1-489]|
5558                 3[124-6]|
5559                 4[1347]|
5560                 6[13]|
5561                 7[12579]|
5562                 8[1-356]|
5563                 9[135]
5564               )|
5565               7(?:
5566                 2[1-7]|
5567                 3[1357]|
5568                 4[145]|
5569                 6[1-5]|
5570                 7[1-4]
5571               )|
5572               8(?:
5573                 21|
5574                 3[1468]|
5575                 4[1347]|
5576                 6[0135-9]|
5577                 7[1467]|
5578                 8[136]
5579               )|
5580               9(?:
5581                 0[12479]|
5582                 2[1358]|
5583                 3[1357]|
5584                 4[134679]|
5585                 6[1-9]|
5586                 7[136]|
5587                 8[147]|
5588                 9[1468]
5589               )
5590             )
5591           </leadingDigits>
5592           <format>$1 $2</format>
5593         </numberFormat>
5594         <!-- 5 digit area codes. -->
5595         <numberFormat pattern="(3\d{4})(\d{1,10})">
5596           <leadingDigits>3</leadingDigits>
5597           <format>$1 $2</format>
5598         </numberFormat>
5599         <!-- Note: this is getting ridiculous! How can we format these better? -->
5600         <numberFormat pattern="(800)(\d{7,12})">
5601           <leadingDigits>800</leadingDigits>
5602           <format>$1 $2</format>
5603         </numberFormat>
5604         <!-- Voicemail access numbers for the carrier Blau. -->
5605         <numberFormat pattern="(177)(99)(\d{7,8})">
5606           <leadingDigits>177</leadingDigits>
5607           <leadingDigits>1779</leadingDigits>
5608           <leadingDigits>17799</leadingDigits>
5609           <format>$1 $2 $3</format>
5610         </numberFormat>
5611         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
5612           <leadingDigits>
5613             (?:
5614               18|
5615               90
5616             )0|
5617             137
5618           </leadingDigits>
5619           <leadingDigits>
5620             1(?:
5621               37|
5622               80
5623             )|
5624             900[1359]
5625           </leadingDigits>
5626           <format>$1 $2 $3</format>
5627         </numberFormat>
5628         <numberFormat pattern="(1\d{2})(\d{5,11})">
5629           <leadingDigits>181</leadingDigits>
5630           <format>$1 $2</format>
5631         </numberFormat>
5632         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
5633              way it is generally written. For other prefixes, we fall back to using a three-digit
5634              prefix since we have currently no more information to allow us to format these more
5635              precisely. -->
5636         <numberFormat pattern="(18\d{3})(\d{6})">
5637           <leadingDigits>185</leadingDigits>
5638           <leadingDigits>1850</leadingDigits>
5639           <leadingDigits>18500</leadingDigits>
5640           <format>$1 $2</format>
5641         </numberFormat>
5642         <numberFormat pattern="(18\d{2})(\d{7})">
5643           <leadingDigits>18[68]</leadingDigits>
5644           <format>$1 $2</format>
5645         </numberFormat>
5646         <numberFormat pattern="(18\d)(\d{8})">
5647           <leadingDigits>18[2-579]</leadingDigits>
5648           <format>$1 $2</format>
5649         </numberFormat>
5650         <numberFormat pattern="(700)(\d{4})(\d{4})">
5651           <leadingDigits>700</leadingDigits>
5652           <format>$1 $2 $3</format>
5653         </numberFormat>
5654         <numberFormat pattern="(138)(\d{4})">
5655           <leadingDigits>138</leadingDigits>
5656           <format>$1 $2</format>
5657         </numberFormat>
5658       </availableFormats>
5659       <generalDesc>
5660         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
5661              examined to see if it is valid with the 49 as part of the number. Due to the variable
5662              length of German numbers, this test is hard to do. The national pattern is hence
5663              stricter for numbers starting with 49, to try and remove the country code if the number
5664              begins with 49 whenever possible. -->
5665         <nationalNumberPattern>
5666           [1-35-9]\d{3,14}|
5667           4(?:
5668             [0-8]\d{4,12}|
5669             9(?:
5670               [0-37]\d|
5671               4(?:
5672                 [1-35-8]|
5673                 4\d?
5674               )|
5675               5\d{1,2}|
5676               6[1-8]\d?
5677             )\d{2,8}
5678           )
5679         </nationalNumberPattern>
5680         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
5681       </generalDesc>
5682       <fixedLine>
5683         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
5684              don't seem to respect this. The max-length is hence extended. -->
5685         <nationalNumberPattern>
5686           [246]\d{5,13}|
5687           3(?:
5688             0\d{3,13}|
5689             2\d{9}|
5690             [3-9]\d{4,13}
5691           )|
5692           5(?:
5693             0[2-8]|
5694             [1256]\d|
5695             [38][0-8]|
5696             4\d{0,2}|
5697             [79][0-7]
5698           )\d{3,11}|
5699           7(?:
5700             0[2-8]|
5701             [1-9]\d
5702           )\d{3,10}|
5703           8(?:
5704             0[2-9]|
5705             [1-9]\d
5706           )\d{3,10}|
5707           9(?:
5708             0[6-9]\d{3,10}|
5709             1\d{4,12}|
5710             [2-9]\d{4,11}
5711           )
5712         </nationalNumberPattern>
5713         <exampleNumber>30123456</exampleNumber>
5714       </fixedLine>
5715       <mobile>
5716         <!-- According to
5717              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
5718              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
5719              The ranges 15[056] have been removed from the ITU doc, but information found online
5720              indicates that they may still be working.
5721              -->
5722         <nationalNumberPattern>
5723           1(?:
5724             5[0-2579]\d{8}|
5725             6[023]\d{7,8}|
5726             7(?:
5727               [0-57-9]\d?|
5728               6\d
5729             )\d{7}
5730           )
5731         </nationalNumberPattern>
5732         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5733         <exampleNumber>15123456789</exampleNumber>
5734       </mobile>
5735       <pager>
5736         <nationalNumberPattern>
5737           16(?:
5738             4\d{1,10}|
5739             [89]\d{1,11}
5740           )
5741         </nationalNumberPattern>
5742         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
5743         <exampleNumber>16412345</exampleNumber>
5744       </pager>
5745       <tollFree>
5746         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
5747         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
5748         <exampleNumber>8001234567890</exampleNumber>
5749       </tollFree>
5750       <premiumRate>
5751         <!-- Includes the more expensive of the "televoting" line numbers. See the shared cost
5752              section for more information. -->
5753         <nationalNumberPattern>
5754           137[7-9]\d{6}|
5755           900(?:
5756             [135]\d{6}|
5757             9\d{7}
5758           )
5759         </nationalNumberPattern>
5760         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5761         <exampleNumber>9001234567</exampleNumber>
5762       </premiumRate>
5763       <sharedCost>
5764         <!-- Includes some mass-traffic numbers, used for e.g. phone voting, raffles, since their
5765              costs when dialling from a fixed-line phone is similar.
5766              Prices:
5767              http://www.billiger-telefonieren.de/0180-0137-0900-sonderrufnummern/
5768              Documentation:
5769              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/0137/0137_Nummernplan.pdf?__blob=publicationFile&v=2
5770         -->
5771         <nationalNumberPattern>
5772           1(?:
5773             3(?:
5774               7[1-6]\d{6}|
5775               8\d{4}
5776             )|
5777             80\d{5,11}
5778           )
5779         </nationalNumberPattern>
5780         <possibleNumberPattern>\d{7,14}</possibleNumberPattern>
5781         <exampleNumber>18012345</exampleNumber>
5782       </sharedCost>
5783       <personalNumber>
5784         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
5785         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5786         <exampleNumber>70012345678</exampleNumber>
5787       </personalNumber>
5788       <uan>
5789         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
5790              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
5791              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
5792         <nationalNumberPattern>
5793           18(?:
5794             1\d{5,11}|
5795             [2-9]\d{8}
5796           )
5797         </nationalNumberPattern>
5798         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5799         <exampleNumber>18500123456</exampleNumber>
5800       </uan>
5801       <voicemail>
5802         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
5803         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
5804         <exampleNumber>177991234567</exampleNumber>
5805       </voicemail>
5806     </territory>
5807
5808     <!-- Djibouti -->
5809     <territory id="DJ" countryCode="253" internationalPrefix="00">
5810       <references>
5811         <sourceUrl>http://www.itu.int/oth/T020200003A/en</sourceUrl>
5812       </references>
5813       <availableFormats>
5814         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5815           <format>$1 $2 $3 $4</format>
5816         </numberFormat>
5817       </availableFormats>
5818       <generalDesc>
5819         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
5820         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5821       </generalDesc>
5822       <fixedLine>
5823         <!-- Includes "Numéro long CDMA fixe" numbers. -->
5824         <nationalNumberPattern>
5825           2(?:
5826             1[2-5]|
5827             7[45]
5828           )\d{5}
5829         </nationalNumberPattern>
5830         <exampleNumber>21360003</exampleNumber>
5831       </fixedLine>
5832       <mobile>
5833         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
5834         <exampleNumber>77831001</exampleNumber>
5835       </mobile>
5836     </territory>
5837
5838     <!-- Denmark -->
5839     <territory id="DK" countryCode="45" internationalPrefix="00" mobileNumberPortableRegion="true">
5840       <references>
5841         <sourceUrl>http://www.dba.erhvervsstyrelsen.dk/numbering-lists</sourceUrl>
5842       </references>
5843       <availableFormats>
5844         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5845           <format>$1 $2 $3 $4</format>
5846         </numberFormat>
5847       </availableFormats>
5848       <generalDesc>
5849         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
5850         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5851       </generalDesc>
5852       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
5853            safe. -->
5854       <fixedLine>
5855         <nationalNumberPattern>
5856           (?:
5857             [2-7]\d|
5858             8[126-9]|
5859             9[1-36-9]
5860           )\d{6}
5861         </nationalNumberPattern>
5862         <exampleNumber>32123456</exampleNumber>
5863       </fixedLine>
5864       <mobile>
5865         <nationalNumberPattern>
5866           (?:
5867             [2-7]\d|
5868             8[126-9]|
5869             9[1-36-9]
5870           )\d{6}
5871         </nationalNumberPattern>
5872         <exampleNumber>20123456</exampleNumber>
5873       </mobile>
5874       <tollFree>
5875         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
5876         <exampleNumber>80123456</exampleNumber>
5877       </tollFree>
5878       <premiumRate>
5879         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
5880         <exampleNumber>90123456</exampleNumber>
5881       </premiumRate>
5882     </territory>
5883
5884     <!-- Dominica -->
5885     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
5886                internationalPrefix="011">
5887       <references>
5888         <sourceUrl>http://www.itu.int/oth/T020200003B/en</sourceUrl>
5889       </references>
5890       <generalDesc>
5891         <!-- NANPA country - uses US formatting rules -->
5892         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
5893         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5894       </generalDesc>
5895       <fixedLine>
5896         <nationalNumberPattern>
5897           767(?:
5898             2(?:
5899               55|
5900               66
5901             )|
5902             4(?:
5903               2[01]|
5904               4[0-25-9]
5905             )|
5906             50[0-4]|
5907             70[1-3]
5908           )\d{4}
5909         </nationalNumberPattern>
5910         <exampleNumber>7674201234</exampleNumber>
5911       </fixedLine>
5912       <mobile>
5913         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
5914         <nationalNumberPattern>
5915           767(?:
5916             2(?:
5917               [234689]5|
5918               7[5-7]
5919             )|
5920             31[5-7]|
5921             61[2-7]
5922           )\d{4}
5923         </nationalNumberPattern>
5924         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5925         <exampleNumber>7672251234</exampleNumber>
5926       </mobile>
5927       <tollFree>
5928         <nationalNumberPattern>
5929           8(?:
5930             00|
5931             44|
5932             55|
5933             66|
5934             77|
5935             88
5936           )[2-9]\d{6}
5937         </nationalNumberPattern>
5938         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5939         <exampleNumber>8002123456</exampleNumber>
5940       </tollFree>
5941       <premiumRate>
5942         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
5943         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5944         <exampleNumber>9002123456</exampleNumber>
5945       </premiumRate>
5946       <personalNumber>
5947         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
5948         <nationalNumberPattern>
5949           5(?:
5950             00|
5951             33|
5952             44|
5953             66|
5954             77
5955           )[2-9]\d{6}
5956         </nationalNumberPattern>
5957         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5958         <exampleNumber>5002345678</exampleNumber>
5959       </personalNumber>
5960     </territory>
5961
5962     <!-- Dominican Rep. -->
5963     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
5964                internationalPrefix="011" mobileNumberPortableRegion="true">
5965       <references>
5966         <sourceUrl>http://www.itu.int/oth/T020200003C/en</sourceUrl>
5967       </references>
5968       <generalDesc>
5969         <!-- NANPA country - uses US formatting rules -->
5970         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
5971         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5972       </generalDesc>
5973       <fixedLine>
5974         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
5975              prefixes in the document are classified as such by excluding them from the fixed-line
5976              ranges, but other than this have a generic rule. -->
5977         <nationalNumberPattern>
5978           8(?:
5979             [04]9[2-9]\d{6}|
5980             29(?:
5981               2(?:
5982                 [0-59]\d|
5983                 6[04-9]|
5984                 7[0-27]|
5985                 8[0237-9]
5986               )|
5987               3(?:
5988                 [0-35-9]\d|
5989                 4[7-9]
5990               )|
5991               [45]\d{2}|
5992               6(?:
5993                 [0-27-9]\d|
5994                 [3-5][1-9]|
5995                 6[0135-8]
5996               )|
5997               7(?:
5998                 0[013-9]|
5999                 [1-37]\d|
6000                 4[1-35689]|
6001                 5[1-4689]|
6002                 6[1-57-9]|
6003                 8[1-79]|
6004                 9[1-8]
6005               )|
6006               8(?:
6007                 0[146-9]|
6008                 1[0-48]|
6009                 [248]\d|
6010                 3[1-79]|
6011                 5[01589]|
6012                 6[013-68]|
6013                 7[124-8]|
6014                 9[0-8]
6015               )|
6016               9(?:
6017                 [0-24]\d|
6018                 3[02-46-9]|
6019                 5[0-79]|
6020                 60|
6021                 7[0169]|
6022                 8[57-9]|
6023                 9[02-9]
6024               )
6025             )\d{4}
6026           )
6027         </nationalNumberPattern>
6028         <exampleNumber>8092345678</exampleNumber>
6029       </fixedLine>
6030       <mobile>
6031         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
6032         <exampleNumber>8092345678</exampleNumber>
6033       </mobile>
6034       <tollFree>
6035         <nationalNumberPattern>
6036           8(?:
6037             00|
6038             44|
6039             55|
6040             66|
6041             77|
6042             88
6043           )[2-9]\d{6}
6044         </nationalNumberPattern>
6045         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6046         <exampleNumber>8002123456</exampleNumber>
6047       </tollFree>
6048       <premiumRate>
6049         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6050         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6051         <exampleNumber>9002123456</exampleNumber>
6052       </premiumRate>
6053       <personalNumber>
6054         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6055         <nationalNumberPattern>
6056           5(?:
6057             00|
6058             33|
6059             44|
6060             66|
6061             77
6062           )[2-9]\d{6}
6063         </nationalNumberPattern>
6064         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6065         <exampleNumber>5002345678</exampleNumber>
6066       </personalNumber>
6067    </territory>
6068
6069     <!-- Algeria -->
6070     <territory id="DZ" countryCode="213" internationalPrefix="00"
6071                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6072       <references>
6073         <sourceUrl>http://www.itu.int/oth/T0202000003/en</sourceUrl>
6074         <sourceUrl>http://www.arpt.dz</sourceUrl>
6075       </references>
6076       <availableFormats>
6077         <!-- Formatting from http://www.pagesjaunes-dz.com. -->
6078         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
6079           <leadingDigits>[1-4]</leadingDigits>
6080           <format>$1 $2 $3 $4</format>
6081         </numberFormat>
6082         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
6083           <leadingDigits>[5-8]</leadingDigits>
6084           <format>$1 $2 $3 $4</format>
6085         </numberFormat>
6086         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
6087           <leadingDigits>9</leadingDigits>
6088           <format>$1 $2 $3 $4</format>
6089         </numberFormat>
6090       </availableFormats>
6091       <generalDesc>
6092         <nationalNumberPattern>
6093           (?:
6094             [1-4]|
6095             [5-9]\d
6096           )\d{7}
6097         </nationalNumberPattern>
6098         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6099       </generalDesc>
6100       <fixedLine>
6101         <!-- We include the VSAT lines here. -->
6102         <nationalNumberPattern>
6103           (?:
6104             1\d|
6105             2[014-79]|
6106             3[0-8]|
6107             4[0135689]
6108           )\d{6}|
6109           9619\d{5}
6110         </nationalNumberPattern>
6111         <exampleNumber>12345678</exampleNumber>
6112       </fixedLine>
6113       <mobile>
6114         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6115              Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-4] were also added for
6116              Mobilis Algeria based on evidence found online. -->
6117         <nationalNumberPattern>
6118           (?:
6119             5[4-6]|
6120             7[7-9]
6121           )\d{7}|
6122           6(?:
6123             [569]\d|
6124             7[0-4]
6125           )\d{6}
6126         </nationalNumberPattern>
6127         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6128         <exampleNumber>551234567</exampleNumber>
6129       </mobile>
6130       <tollFree>
6131         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
6132         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6133         <exampleNumber>800123456</exampleNumber>
6134       </tollFree>
6135       <premiumRate>
6136         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
6137         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6138         <exampleNumber>808123456</exampleNumber>
6139       </premiumRate>
6140       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
6141            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
6142            -->
6143       <sharedCost>
6144         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
6145         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6146         <exampleNumber>801123456</exampleNumber>
6147       </sharedCost>
6148       <voip>
6149         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
6150         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6151         <exampleNumber>983123456</exampleNumber>
6152       </voip>
6153    </territory>
6154
6155     <!-- Ecuador -->
6156     <territory id="EC" countryCode="593" internationalPrefix="00"
6157                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
6158                mobileNumberPortableRegion="true">
6159       <references>
6160         <sourceUrl>http://en.wikipedia.org/wiki/+593</sourceUrl>
6161         <sourceUrl>http://www.conatel.gob.ec/site_conatel/index.php?option=com_content&amp;view=category&amp;layout=blog&amp;id=52&amp;Itemid=153</sourceUrl>
6162         <sourceUrl>http://www.itu.int/oth/T020200003D/en</sourceUrl>
6163       </references>
6164       <availableFormats>
6165         <numberFormat pattern="(\d)(\d{3})(\d{4})">
6166           <leadingDigits>
6167             [247]|
6168             [356][2-8]
6169           </leadingDigits>
6170           <format>$1 $2-$3</format>
6171           <intlFormat>$1-$2-$3</intlFormat>
6172         </numberFormat>
6173         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
6174              change on the http://www.conatel.gob.ec site. -->
6175         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
6176           <leadingDigits>9</leadingDigits>
6177           <format>$1 $2 $3</format>
6178         </numberFormat>
6179         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
6180           <leadingDigits>1</leadingDigits>
6181           <format>$1 $2 $3</format>
6182         </numberFormat>
6183       </availableFormats>
6184       <generalDesc>
6185         <nationalNumberPattern>
6186           1\d{9,10}|
6187           [2-8]\d{7}|
6188           9\d{8}
6189         </nationalNumberPattern>
6190         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
6191       </generalDesc>
6192       <fixedLine>
6193         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
6194         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6195         <exampleNumber>22123456</exampleNumber>
6196       </fixedLine>
6197       <mobile>
6198         <nationalNumberPattern>
6199           9(?:
6200             39|
6201             [45][89]|
6202             [67][7-9]|
6203             [89]\d
6204           )\d{6}
6205         </nationalNumberPattern>
6206         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6207         <exampleNumber>991234567</exampleNumber>
6208       </mobile>
6209       <tollFree>
6210         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
6211         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
6212         <exampleNumber>18001234567</exampleNumber>
6213       </tollFree>
6214       <voip>
6215         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
6216         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6217         <exampleNumber>28901234</exampleNumber>
6218       </voip>
6219     </territory>
6220
6221     <!-- Estonia -->
6222     <territory id="EE" countryCode="372" internationalPrefix="00" mobileNumberPortableRegion="true">
6223       <references>
6224         <sourceUrl>http://www.itu.int/oth/T0202000043/en</sourceUrl>
6225         <sourceUrl>http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm</sourceUrl>
6226       </references>
6227       <availableFormats>
6228         <numberFormat pattern="([3-79]\d{2})(\d{4})">
6229           <leadingDigits>
6230             [369]|
6231             4[3-8]|
6232             5(?:
6233               [0-2]|
6234               5[0-478]|
6235               6[45]
6236             )|
6237             7[1-9]
6238           </leadingDigits>
6239           <leadingDigits>
6240             [369]|
6241             4[3-8]|
6242             5(?:
6243               [02]|
6244               1(?:
6245                 [0-8]|
6246                 95
6247               )|
6248               5[0-478]|
6249               6(?:
6250                 4[0-4]|
6251                 5[1-589]
6252               )
6253             )|
6254             7[1-9]
6255           </leadingDigits>
6256           <format>$1 $2</format>
6257         </numberFormat>
6258         <numberFormat pattern="(70)(\d{2})(\d{4})">
6259           <leadingDigits>70</leadingDigits>
6260           <format>$1 $2 $3</format>
6261         </numberFormat>
6262         <numberFormat pattern="(8000)(\d{3})(\d{3})">
6263           <leadingDigits>800</leadingDigits>
6264           <leadingDigits>8000</leadingDigits>
6265           <format>$1 $2 $3</format>
6266         </numberFormat>
6267         <numberFormat pattern="([458]\d{3})(\d{3,4})">
6268           <leadingDigits>
6269             40|
6270             5|
6271             8(?:
6272               00|
6273               [1-5]
6274             )
6275           </leadingDigits>
6276           <leadingDigits>
6277             40|
6278             5|
6279             8(?:
6280               00[1-9]|
6281               [1-5]
6282             )
6283           </leadingDigits>
6284           <format>$1 $2</format>
6285         </numberFormat>
6286       </availableFormats>
6287       <generalDesc>
6288         <nationalNumberPattern>
6289           1\d{3,4}|
6290           [3-9]\d{6,7}|
6291           800\d{6,7}
6292         </nationalNumberPattern>
6293         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
6294       </generalDesc>
6295       <noInternationalDialling>
6296         <nationalNumberPattern>
6297           1\d{3,4}|
6298           800[2-9]\d{3}
6299         </nationalNumberPattern>
6300         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
6301         <exampleNumber>8002123</exampleNumber>
6302       </noInternationalDialling>
6303       <fixedLine>
6304         <nationalNumberPattern>
6305           (?:
6306             3[23589]|
6307             4[3-8]|
6308             6\d|
6309             7[1-9]|
6310             88
6311           )\d{5}
6312         </nationalNumberPattern>
6313         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6314         <exampleNumber>3212345</exampleNumber>
6315       </fixedLine>
6316       <mobile>
6317         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
6318              numbers are 8 digits. -->
6319         <nationalNumberPattern>
6320           (?:
6321             5\d|
6322             8[1-5]
6323           )\d{6}|
6324           5(?:
6325             [02]\d{2}|
6326             1(?:
6327               [0-8]\d|
6328               95
6329             )|
6330             5[0-478]\d|
6331             64[0-4]|
6332             65[1-589]
6333           )\d{3}
6334         </nationalNumberPattern>
6335         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6336         <exampleNumber>51234567</exampleNumber>
6337       </mobile>
6338       <tollFree>
6339         <nationalNumberPattern>
6340           800(?:
6341             0\d{3}|
6342             1\d|
6343             [2-9]
6344           )\d{3}
6345         </nationalNumberPattern>
6346         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6347         <exampleNumber>80012345</exampleNumber>
6348       </tollFree>
6349       <premiumRate>
6350         <!-- Supporting eFax numbers here as well. We aren't sure the exact cost, but have
6351              had user reports that they are expensive to dial. -->
6352         <nationalNumberPattern>
6353           (?:
6354             40\d{2}|
6355             900
6356           )\d{4}
6357         </nationalNumberPattern>
6358         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6359         <exampleNumber>9001234</exampleNumber>
6360       </premiumRate>
6361       <personalNumber>
6362         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
6363         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6364         <exampleNumber>70012345</exampleNumber>
6365       </personalNumber>
6366       <uan>
6367         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
6368              included here. -->
6369         <nationalNumberPattern>
6370           1(?:
6371             2[01245]|
6372             3[0-6]|
6373             4[1-489]|
6374             5[0-59]|
6375             6[1-46-9]|
6376             7[0-27-9]|
6377             8[189]|
6378             9[012]
6379           )\d{1,2}
6380         </nationalNumberPattern>
6381         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
6382         <exampleNumber>12123</exampleNumber>
6383       </uan>
6384     </territory>
6385
6386     <!-- Egypt -->
6387     <territory id="EG" countryCode="20" internationalPrefix="00"
6388                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
6389                mobileNumberPortableRegion="true">
6390        <references>
6391          <sourceUrl>http://www.itu.int/oth/T020200003E/en</sourceUrl>
6392        </references>
6393        <availableFormats>
6394          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
6395               or 19. These are formatted without national prefix, as a block, so do not need to be
6396               listed here. -->
6397          <numberFormat pattern="(\d)(\d{7,8})">
6398            <leadingDigits>[23]</leadingDigits>
6399            <format>$1 $2</format>
6400          </numberFormat>
6401          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
6402            <leadingDigits>
6403              1[012]|
6404              [89]00
6405            </leadingDigits>
6406            <format>$1 $2 $3</format>
6407          </numberFormat>
6408          <numberFormat pattern="(\d{2})(\d{6,7})">
6409            <leadingDigits>
6410              1[35]|
6411              [4-6]|
6412              [89][2-9]
6413            </leadingDigits>
6414            <format>$1 $2</format>
6415          </numberFormat>
6416        </availableFormats>
6417       <generalDesc>
6418         <nationalNumberPattern>
6419           1\d{4,9}|
6420           [2456]\d{8}|
6421           3\d{7}|
6422           [89]\d{8,9}
6423         </nationalNumberPattern>
6424         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6425       </generalDesc>
6426       <fixedLine>
6427         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
6428              that the plan says numbers starting with 15 should be followed by seven digit
6429              subscriber numbers, but some numbers we have found online are in fact six digit.
6430              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
6431              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
6432              092 and with 5 and 6 for 96. -->
6433         <nationalNumberPattern>
6434           (?:
6435             1(?:
6436               3[23]\d|
6437               5(?:
6438                 [23]|
6439                 9\d
6440               )
6441             )|
6442             2[2-4]\d{2}|
6443             3\d{2}|
6444             4(?:
6445               0[2-5]|
6446               [578][23]|
6447               64
6448             )\d|
6449             5(?:
6450               0[2-7]|
6451               [57][23]
6452             )\d|
6453             6[24-689]3\d|
6454             8(?:
6455               2[2-57]|
6456               4[26]|
6457               6[237]|
6458               8[2-4]
6459             )\d|
6460             9(?:
6461               2[27]|
6462               3[24]|
6463               52|
6464               6[2356]|
6465               7[2-4]
6466             )\d
6467           )\d{5}|
6468           1[69]\d{3}
6469         </nationalNumberPattern>
6470         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
6471         <exampleNumber>234567890</exampleNumber>
6472       </fixedLine>
6473       <mobile>
6474         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
6475              started allocating numbers beginning with these prefixes, along with 115 from numbers
6476              found online. Etisalat is using 110. -->
6477         <nationalNumberPattern>
6478           1(?:
6479             0[0-269]|
6480             1[0-245]|
6481             2[0-278]
6482           )\d{7}
6483         </nationalNumberPattern>
6484         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6485         <exampleNumber>1001234567</exampleNumber>
6486       </mobile>
6487       <tollFree>
6488         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
6489         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6490         <exampleNumber>8001234567</exampleNumber>
6491       </tollFree>
6492       <premiumRate>
6493         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
6494         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6495         <exampleNumber>9001234567</exampleNumber>
6496       </premiumRate>
6497     </territory>
6498
6499     <!-- Western Sahara -->
6500     <!-- Country calling code shared with Morocco (MA). -->
6501     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
6502     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
6503                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6504       <references>
6505         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
6506       </references>
6507       <!-- Uses MA formatting rules and shares general description
6508            (non-geographical numbers for Morocco are still valid). -->
6509       <generalDesc>
6510         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
6511         <!-- Closed numbering plan. -->
6512         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6513       </generalDesc>
6514       <fixedLine>
6515         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
6516         <exampleNumber>528812345</exampleNumber>
6517       </fixedLine>
6518       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
6519            numbers to be recognized as available from within Western Sahara. -->
6520       <mobile>
6521         <nationalNumberPattern>
6522           6(?:
6523             0[0-8]|
6524             [12-7]\d|
6525             8[01]|
6526             9[2457-9]
6527           )\d{6}
6528         </nationalNumberPattern>
6529         <exampleNumber>650123456</exampleNumber>
6530       </mobile>
6531       <tollFree>
6532         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
6533         <exampleNumber>801234567</exampleNumber>
6534       </tollFree>
6535       <premiumRate>
6536         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
6537         <exampleNumber>891234567</exampleNumber>
6538       </premiumRate>
6539     </territory>
6540
6541     <!-- Eritrea -->
6542     <territory id="ER" countryCode="291" internationalPrefix="00"
6543                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6544       <references>
6545         <sourceUrl>http://www.itu.int/oth/T0202000042/en</sourceUrl>
6546       </references>
6547       <availableFormats>
6548         <numberFormat pattern="(\d)(\d{3})(\d{3})">
6549           <format>$1 $2 $3</format>
6550         </numberFormat>
6551       </availableFormats>
6552       <generalDesc>
6553         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
6554         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
6555       </generalDesc>
6556       <fixedLine>
6557         <nationalNumberPattern>
6558           1(?:
6559             1[12568]|
6560             20|
6561             40|
6562             55|
6563             6[146]
6564           )\d{4}|
6565           8\d{6}
6566         </nationalNumberPattern>
6567         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
6568       </fixedLine>
6569       <mobile>
6570         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
6571              numbers or was in addition to them, so we support both here. -->
6572         <nationalNumberPattern>
6573           17[1-3]\d{4}|
6574           7\d{6}
6575         </nationalNumberPattern>
6576         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6577         <exampleNumber>7123456</exampleNumber>
6578       </mobile>
6579     </territory>
6580
6581     <!-- Spain -->
6582     <territory id="ES" countryCode="34" internationalPrefix="00" mobileNumberPortableRegion="true">
6583       <references>
6584         <sourceUrl>http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx</sourceUrl>
6585       </references>
6586       <availableFormats>
6587         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
6588           <leadingDigits>
6589             [568]|
6590             [79][0-8]
6591           </leadingDigits>
6592           <format>$1 $2 $3 $4</format>
6593         </numberFormat>
6594       </availableFormats>
6595       <generalDesc>
6596         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
6597         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6598       </generalDesc>
6599       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
6600            fixed-line ranges. -->
6601       <fixedLine>
6602         <nationalNumberPattern>
6603           8(?:
6604             [13]0|
6605             [28][0-8]|
6606             [47][1-9]|
6607             5[01346-9]|
6608             6[0457-9]
6609           )\d{6}|
6610           9(?:
6611             [1238][0-8]\d{6}|
6612             4[1-9]\d{6}|
6613             5\d{7}|
6614             6(?:
6615               [0-8]\d{6}|
6616               9(?:
6617                 0(?:
6618                   [0-57-9]\d{4}|
6619                   6(?:
6620                     0[0-8]|
6621                     1[1-9]|
6622                     [2-9]\d
6623                   )\d{2}
6624                 )|
6625                 [1-9]\d{5}
6626               )
6627             )|
6628             7(?:
6629               [124-9]\d{2}|
6630               3(?:
6631                 [0-8]\d|
6632                 9[1-9]
6633               )
6634             )\d{4}
6635           )
6636         </nationalNumberPattern>
6637         <exampleNumber>810123456</exampleNumber>
6638       </fixedLine>
6639       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
6640            information received from Lleida Networks. -->
6641       <mobile>
6642         <nationalNumberPattern>
6643           (?:
6644             6\d{6}|
6645             7[1-4]\d{5}|
6646             9(?:
6647               6906(?:
6648                 09|
6649                 10
6650               )|
6651               7390\d{2}
6652             )
6653           )\d{2}
6654         </nationalNumberPattern>
6655         <exampleNumber>612345678</exampleNumber>
6656       </mobile>
6657       <tollFree>
6658         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
6659         <exampleNumber>800123456</exampleNumber>
6660       </tollFree>
6661       <premiumRate>
6662         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
6663         <exampleNumber>803123456</exampleNumber>
6664       </premiumRate>
6665       <sharedCost>
6666         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
6667         <exampleNumber>901123456</exampleNumber>
6668       </sharedCost>
6669       <personalNumber>
6670         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
6671         <exampleNumber>701234567</exampleNumber>
6672       </personalNumber>
6673       <!-- Modelling non-geographic nomadic numbers as UAN. -->
6674       <uan>
6675         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
6676         <exampleNumber>511234567</exampleNumber>
6677       </uan>
6678     </territory>
6679
6680     <!-- Ethiopia -->
6681     <territory id="ET" countryCode="251" internationalPrefix="00"
6682                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6683       <references>
6684         <sourceUrl>http://www.itu.int/oth/T0202000044/en</sourceUrl>
6685       </references>
6686       <availableFormats>
6687         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
6688           <format>$1 $2 $3</format>
6689         </numberFormat>
6690       </availableFormats>
6691       <generalDesc>
6692         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
6693         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
6694       </generalDesc>
6695       <fixedLine>
6696         <nationalNumberPattern>
6697           (?:
6698             11(?:
6699               1(?:
6700                 1[124]|
6701                 2[2-57]|
6702                 3[1-5]|
6703                 5[5-8]|
6704                 8[6-8]
6705               )|
6706               2(?:
6707                 13|
6708                 3[6-8]|
6709                 5[89]|
6710                 7[05-9]|
6711                 8[2-6]
6712               )|
6713               3(?:
6714                 2[01]|
6715                 3[0-289]|
6716                 4[1289]|
6717                 7[1-4]|
6718                 87
6719               )|
6720               4(?:
6721                 1[69]|
6722                 3[2-49]|
6723                 4[0-3]|
6724                 6[5-8]
6725               )|
6726               5(?:
6727                 1[57]|
6728                 44|
6729                 5[0-4]
6730               )|
6731               6(?:
6732                 18|
6733                 2[69]|
6734                 4[5-7]|
6735                 5[1-5]|
6736                 6[0-59]|
6737                 8[015-8]
6738               )
6739             )|
6740             2(?:
6741               2(?:
6742                 11[1-9]|
6743                 22[0-7]|
6744                 33\d|
6745                 44[1467]|
6746                 66[1-68]
6747               )|
6748               5(?:
6749                 11[124-6]|
6750                 33[2-8]|
6751                 44[1467]|
6752                 55[14]|
6753                 66[1-3679]|
6754                 77[124-79]|
6755                 880
6756               )
6757             )|
6758             3(?:
6759               3(?:
6760                 11[0-46-8]|
6761                 22[0-6]|
6762                 33[0134689]|
6763                 44[04]|
6764                 55[0-6]|
6765                 66[01467]
6766               )|
6767               4(?:
6768                 44[0-8]|
6769                 55[0-69]|
6770                 66[0-3]|
6771                 77[1-5]
6772               )
6773             )|
6774             4(?:
6775               6(?:
6776                 22[0-24-7]|
6777                 33[1-5]|
6778                 44[13-69]|
6779                 55[14-689]|
6780                 660|
6781                 88[1-4]
6782               )|
6783               7(?:
6784                 11[1-9]|
6785                 22[1-9]|
6786                 33[13-7]|
6787                 44[13-6]|
6788                 55[1-689]
6789               )
6790             )|
6791             5(?:
6792               7(?:
6793                 227|
6794                 55[05]|
6795                 (?:
6796                   66|
6797                   77
6798                 )[14-8]
6799               )|
6800               8(?:
6801                 11[149]|
6802                 22[013-79]|
6803                 33[0-68]|
6804                 44[013-8]|
6805                 550|
6806                 66[1-5]|
6807                 77\d
6808               )
6809             )
6810           )\d{4}
6811         </nationalNumberPattern>
6812         <exampleNumber>111112345</exampleNumber>
6813       </fixedLine>
6814       <mobile>
6815         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
6816              numbers are visible online than are reported in the ITU document. This pattern is
6817              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
6818              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
6819         <nationalNumberPattern>
6820           9(?:
6821             [1-3]\d|
6822             5[89]
6823           )\d{6}
6824         </nationalNumberPattern>
6825         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6826         <exampleNumber>911234567</exampleNumber>
6827       </mobile>
6828     </territory>
6829
6830     <!-- Finland -->
6831     <!-- Metadata shared with Ã…land (AX) -->
6832     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
6833                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
6834                mobileNumberPortableRegion="true">
6835       <references>
6836         <sourceUrl>http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html</sourceUrl>
6837       </references>
6838       <availableFormats>
6839         <numberFormat pattern="(\d{3})(\d{3,7})">
6840           <leadingDigits>
6841             (?:
6842               [1-3]00|
6843               [6-8]0
6844             )
6845           </leadingDigits>
6846           <format>$1 $2</format>
6847         </numberFormat>
6848         <numberFormat pattern="(\d{2})(\d{4,10})">
6849           <leadingDigits>
6850             [14]|
6851             2[09]|
6852             50|
6853             7[135]
6854           </leadingDigits>
6855           <format>$1 $2</format>
6856         </numberFormat>
6857         <numberFormat pattern="(\d)(\d{4,11})">
6858           <leadingDigits>
6859             [25689][1-8]|
6860             3
6861           </leadingDigits>
6862           <format>$1 $2</format>
6863         </numberFormat>
6864       </availableFormats>
6865       <generalDesc>
6866         <nationalNumberPattern>
6867           1\d{4,11}|
6868           [2-9]\d{4,10}
6869         </nationalNumberPattern>
6870         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
6871       </generalDesc>
6872       <noInternationalDialling>
6873         <!-- According to the national numbering plan, service numbers are in general not accessible
6874              from abroad, although 600/700/800 numbers may be. -->
6875         <nationalNumberPattern>
6876           [13]00\d{3,7}|
6877           2(?:
6878             0(?:
6879               0\d{3,7}|
6880               2[023]\d{1,6}|
6881               9[89]\d{1,6}
6882             )
6883           )|
6884           60(?:
6885             [12]\d{5,6}|
6886             6\d{7}
6887           )|
6888           7(?:
6889             1\d{7}|
6890             3\d{8}|
6891             5[03-9]\d{2,7}
6892           )
6893         </nationalNumberPattern>
6894         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6895         <exampleNumber>100123</exampleNumber>
6896       </noInternationalDialling>
6897       <fixedLine>
6898         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
6899              are listed under UAN. It also excludes Ã…land numbers. -->
6900         <nationalNumberPattern>
6901           1(?:
6902             [3569][1-8]\d{3,9}|
6903             [47]\d{5,10}
6904           )|
6905           2[1-8]\d{3,9}|
6906           3(?:
6907             [1-8]\d{3,9}|
6908             9\d{4,8}
6909           )|
6910           [5689][1-8]\d{3,9}
6911         </nationalNumberPattern>
6912         <exampleNumber>1312345678</exampleNumber>
6913       </fixedLine>
6914       <mobile>
6915         <nationalNumberPattern>
6916           4\d{5,10}|
6917           50\d{4,8}
6918         </nationalNumberPattern>
6919         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
6920         <exampleNumber>412345678</exampleNumber>
6921       </mobile>
6922       <tollFree>
6923         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
6924         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6925         <exampleNumber>8001234567</exampleNumber>
6926       </tollFree>
6927       <premiumRate>
6928         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
6929         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6930         <exampleNumber>600123456</exampleNumber>
6931       </premiumRate>
6932       <uan>
6933         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
6934              assigned to institutions such as universities, the national post, etc, where they are
6935              not otherwise classified as toll-free or premium-rate numbers. -->
6936         <nationalNumberPattern>
6937           [13]0\d{4,8}|
6938           2(?:
6939             0(?:
6940               [016-8]\d{3,7}|
6941               [2-59]\d{2,7}
6942             )|
6943             9\d{4,8}
6944           )|
6945           60(?:
6946             [12]\d{5,6}|
6947             6\d{7}
6948           )|
6949           7(?:
6950             1\d{7}|
6951             3\d{8}|
6952             5[03-9]\d{2,7}
6953           )
6954         </nationalNumberPattern>
6955         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6956         <exampleNumber>10112345</exampleNumber>
6957       </uan>
6958     </territory>
6959
6960     <!-- Fiji -->
6961     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
6962                preferredInternationalPrefix="00" leadingZeroPossible="true">
6963       <references>
6964         <sourceUrl>http://www.itu.int/oth/T0202000048/en</sourceUrl>
6965         <sourceUrl>http://www.tfl.com.fj</sourceUrl>
6966       </references>
6967       <availableFormats>
6968         <numberFormat pattern="(\d{3})(\d{4})">
6969           <leadingDigits>[36-9]</leadingDigits>
6970           <format>$1 $2</format>
6971         </numberFormat>
6972         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
6973           <leadingDigits>0</leadingDigits>
6974           <format>$1 $2 $3</format>
6975         </numberFormat>
6976       </availableFormats>
6977       <generalDesc>
6978         <nationalNumberPattern>
6979           [36-9]\d{6}|
6980           0\d{10}
6981         </nationalNumberPattern>
6982         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
6983       </generalDesc>
6984       <fixedLine>
6985         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
6986              online, including in the white pages. 35X and 85X were found in the exchanges listed on
6987              http://www.tfl.com.fj. -->
6988         <nationalNumberPattern>
6989           (?:
6990             3[0-5]|
6991             6[25-7]|
6992             8[58]
6993           )\d{5}
6994         </nationalNumberPattern>
6995         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6996         <exampleNumber>3212345</exampleNumber>
6997       </fixedLine>
6998       <mobile>
6999         <!-- Adding 7[5-8], 8[03679], and 9[034678] from numbers found online and numbers where SMSs
7000              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
7001         <nationalNumberPattern>
7002           (?:
7003             7[0-8]|
7004             8[034679]|
7005             9\d
7006           )\d{5}
7007         </nationalNumberPattern>
7008         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7009         <exampleNumber>7012345</exampleNumber>
7010       </mobile>
7011       <tollFree>
7012         <!-- Information found on http://www.tfl.com.fj. It is not clear if these are
7013              internationally diallable, or if so, how. -->
7014         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
7015         <possibleNumberPattern>\d{11}</possibleNumberPattern>
7016         <exampleNumber>08001234567</exampleNumber>
7017       </tollFree>
7018     </territory>
7019
7020     <!-- Falkland Islands (Malvinas) -->
7021     <territory id="FK" countryCode="500" internationalPrefix="00">
7022       <references>
7023         <sourceUrl>http://www.itu.int/oth/T0202000046/en</sourceUrl>
7024       </references>
7025       <!-- All numbers are formatted together, as a block. -->
7026       <generalDesc>
7027         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
7028         <possibleNumberPattern>\d{5}</possibleNumberPattern>
7029       </generalDesc>
7030       <fixedLine>
7031         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
7032         <exampleNumber>31234</exampleNumber>
7033       </fixedLine>
7034       <mobile>
7035         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
7036         <exampleNumber>51234</exampleNumber>
7037       </mobile>
7038     </territory>
7039
7040     <!-- Micronesia, Federated States of -->
7041     <territory id="FM" countryCode="691" internationalPrefix="00">
7042       <references>
7043         <sourceUrl>http://www.itu.int/oth/T020200008B/en</sourceUrl>
7044       </references>
7045       <availableFormats>
7046         <numberFormat pattern="(\d{3})(\d{4})">
7047           <format>$1 $2</format>
7048         </numberFormat>
7049       </availableFormats>
7050       <generalDesc>
7051         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
7052         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7053       </generalDesc>
7054       <fixedLine>
7055         <nationalNumberPattern>
7056             3[2357]0[1-9]\d{3}|
7057             9[2-6]\d{5}
7058         </nationalNumberPattern>
7059         <exampleNumber>3201234</exampleNumber>
7060       </fixedLine>
7061       <mobile>
7062         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
7063              are exclusively mobile. -->
7064         <nationalNumberPattern>
7065           3[2357]0[1-9]\d{3}|
7066           9[2-7]\d{5}
7067         </nationalNumberPattern>
7068         <exampleNumber>3501234</exampleNumber>
7069       </mobile>
7070     </territory>
7071
7072     <!-- Faroe Islands -->
7073     <territory id="FO" countryCode="298" internationalPrefix="00"
7074                nationalPrefixForParsing="(10(?:01|[12]0|88))"
7075                carrierCodeFormattingRule="$CC $FG">
7076       <references>
7077         <sourceUrl>http://www.itu.int/oth/T0202000047/en</sourceUrl>
7078       </references>
7079       <!-- All numbers are formatted together, as a block. -->
7080       <availableFormats>
7081         <numberFormat pattern="(\d{6})">
7082           <format>$1</format>
7083         </numberFormat>
7084       </availableFormats>
7085       <generalDesc>
7086         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
7087         <possibleNumberPattern>\d{6}</possibleNumberPattern>
7088       </generalDesc>
7089       <fixedLine>
7090         <nationalNumberPattern>
7091           (?:
7092             20|
7093             [3-4]\d|
7094             8[19]
7095           )\d{4}
7096         </nationalNumberPattern>
7097         <exampleNumber>201234</exampleNumber>
7098       </fixedLine>
7099       <mobile>
7100         <nationalNumberPattern>
7101           (?:
7102             2[1-9]|
7103             5\d|
7104             7[1-79]
7105           )\d{4}
7106         </nationalNumberPattern>
7107         <exampleNumber>211234</exampleNumber>
7108       </mobile>
7109       <tollFree>
7110         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
7111         <exampleNumber>802123</exampleNumber>
7112       </tollFree>
7113       <premiumRate>
7114         <nationalNumberPattern>
7115           90(?:
7116             [1345][15-7]|
7117             2[125-7]|
7118             99
7119             )\d{2}
7120         </nationalNumberPattern>
7121         <exampleNumber>901123</exampleNumber>
7122       </premiumRate>
7123       <voip>
7124         <nationalNumberPattern>
7125           (?:
7126             6[0-36]|
7127             88
7128           )\d{4}
7129         </nationalNumberPattern>
7130         <exampleNumber>601234</exampleNumber>
7131       </voip>
7132     </territory>
7133
7134     <!-- France -->
7135     <territory id="FR" countryCode="33" internationalPrefix="00" nationalPrefix="0"
7136                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
7137       <references>
7138         <sourceUrl>http://www.itu.int/oth/T020200004A/en</sourceUrl>
7139         <sourceUrl>http://www.arcep.fr/index.php?id=8146</sourceUrl>
7140         <sourceUrl>http://en.wikipedia.org/wiki/%2B33</sourceUrl>
7141       </references>
7142       <!-- Short numbers will be formatted as a block without a national prefix. -->
7143       <availableFormats>
7144         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
7145           <leadingDigits>[1-79]</leadingDigits>
7146           <format>$1 $2 $3 $4 $5</format>
7147         </numberFormat>
7148         <numberFormat pattern="(1\d{2})(\d{3})" nationalPrefixFormattingRule="$FG">
7149           <leadingDigits>11</leadingDigits>
7150           <format>$1 $2</format>
7151           <intlFormat>NA</intlFormat>
7152         </numberFormat>
7153         <numberFormat nationalPrefixFormattingRule="$NP $FG"
7154           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
7155           <leadingDigits>8</leadingDigits>
7156           <format>$1 $2 $3 $4</format>
7157         </numberFormat>
7158       </availableFormats>
7159       <generalDesc>
7160         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
7161         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7162       </generalDesc>
7163       <fixedLine>
7164         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
7165         <exampleNumber>123456789</exampleNumber>
7166       </fixedLine>
7167       <mobile>
7168         <nationalNumberPattern>
7169           6\d{8}|
7170           7[5-9]\d{7}
7171         </nationalNumberPattern>
7172         <exampleNumber>612345678</exampleNumber>
7173       </mobile>
7174       <tollFree>
7175         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
7176         <exampleNumber>801234567</exampleNumber>
7177       </tollFree>
7178       <premiumRate>
7179         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
7180         <exampleNumber>891123456</exampleNumber>
7181       </premiumRate>
7182       <sharedCost>
7183         <nationalNumberPattern>
7184           8(?:
7185             1[019]|
7186             2[0156]|
7187             84|
7188             90
7189           )\d{6}
7190         </nationalNumberPattern>
7191         <exampleNumber>810123456</exampleNumber>
7192       </sharedCost>
7193       <voip>
7194         <!-- 087 numbers used to be used for this. -->
7195         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
7196         <exampleNumber>912345678</exampleNumber>
7197       </voip>
7198     </territory>
7199
7200     <!-- Gabon -->
7201     <!-- Note: We cannot set nationalPrefix="0" while fixed line numbers can start with a zero
7202          as this breaks parsing (it treats all leading zeros as national prefixes. -->
7203     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true" >
7204       <references>
7205         <sourceUrl>http://www.itu.int/oth/T020200004E/en</sourceUrl>
7206         <sourceUrl>http://www.arcep.ga</sourceUrl>
7207       </references>
7208       <availableFormats>
7209         <!-- If no leading zero was supplied, format with the national prefix. -->
7210         <numberFormat pattern="(\d)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="0$FG">
7211           <leadingDigits>[2-7]</leadingDigits>
7212           <format>$1 $2 $3 $4</format>
7213         </numberFormat>
7214         <!-- This already has a leading zero so we format is "as is". -->
7215         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
7216           <leadingDigits>0</leadingDigits>
7217          <format>$1 $2 $3 $4</format>
7218         </numberFormat>
7219       </availableFormats>
7220       <generalDesc>
7221         <nationalNumberPattern>0?\d{7}</nationalNumberPattern>
7222         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
7223       </generalDesc>
7224       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
7225            line and mobile numbering. However, this has only partially happened; mobile numbers can
7226            now be dialed without a leading zero, but fixed line numbers still require it. Their own
7227            website still lists fixed line numbers as "+241 01 44 68 11" and upon ringing they will
7228            not connect from outside the country without the 0. This was last tested March 2014. -->
7229       <fixedLine>
7230         <nationalNumberPattern>01\d{6}</nationalNumberPattern>
7231         <possibleNumberPattern>\d{8}</possibleNumberPattern>
7232         <exampleNumber>01441234</exampleNumber>
7233       </fixedLine>
7234       <mobile>
7235         <!-- Mobile numbers can be 7 or 8 digits (with or without a leading zero). -->
7236         <nationalNumberPattern>0?[2-7]\d{6}</nationalNumberPattern>
7237         <exampleNumber>06031234</exampleNumber>
7238       </mobile>
7239     </territory>
7240
7241     <!-- United Kingdom -->
7242     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
7243          validation, although the formatting rules are shared. -->
7244     <territory id="GB" countryCode="44" internationalPrefix="00"
7245                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
7246                mainCountryForCode="true" mobileNumberPortableRegion="true">
7247       <references>
7248         <sourceUrl>http://stakeholders.ofcom.org.uk/telecoms/numbering/</sourceUrl>
7249         <sourceUrl>http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes</sourceUrl>
7250         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=GB</sourceUrl>
7251       </references>
7252       <availableFormats>
7253         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
7254         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
7255           <leadingDigits>
7256             2|
7257             5[56]|
7258             7(?:
7259               0|
7260               6[013-9]
7261             )
7262           </leadingDigits>
7263           <leadingDigits>
7264             2|
7265             5[56]|
7266             7(?:
7267               0|
7268               6(?:
7269                 [013-9]|
7270                 2[0-35-9]
7271               )
7272             )
7273           </leadingDigits>
7274           <format>$1 $2 $3</format>
7275         </numberFormat>
7276         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
7277         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
7278           <leadingDigits>
7279             1(?:
7280               1|
7281               \d1
7282             )|
7283             3|
7284             9[018]
7285           </leadingDigits>
7286           <format>$1 $2 $3</format>
7287         </numberFormat>
7288         <!-- 1dddd with 9 or 10 digits.
7289              These area codes are very rare in GB, and are only available in the following places:
7290              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
7291              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
7292              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
7293         <numberFormat pattern="(\d{5})(\d{4,5})">
7294           <leadingDigits>
7295             1(?:
7296               38|
7297               5[23]|
7298               69|
7299               76|
7300               94
7301             )
7302           </leadingDigits>
7303           <leadingDigits>
7304             1(?:
7305               387|
7306               5(?:
7307                 24|
7308                 39
7309               )|
7310               697|
7311               768|
7312               946
7313             )
7314           </leadingDigits>
7315           <leadingDigits>
7316             1(?:
7317               3873|
7318               5(?:
7319                 242|
7320                 39[456]
7321               )|
7322               697[347]|
7323               768[347]|
7324               9467
7325             )
7326           </leadingDigits>
7327           <format>$1 $2</format>
7328         </numberFormat>
7329         <!-- 1ddd with 9 or 10 digits. -->
7330         <numberFormat pattern="(1\d{3})(\d{5,6})">
7331           <leadingDigits>1</leadingDigits>
7332           <format>$1 $2</format>
7333         </numberFormat>
7334         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
7335         <numberFormat pattern="(7\d{3})(\d{6})">
7336           <leadingDigits>
7337             7(?:
7338               [1-5789]|
7339               62
7340             )
7341           </leadingDigits>
7342           <leadingDigits>
7343             7(?:
7344               [1-5789]|
7345               624
7346             )
7347           </leadingDigits>
7348           <format>$1 $2</format>
7349         </numberFormat>
7350         <!-- 800 1111 : UK ChildLine. -->
7351         <numberFormat pattern="(800)(\d{4})">
7352           <leadingDigits>800</leadingDigits>
7353           <leadingDigits>8001</leadingDigits>
7354           <leadingDigits>80011</leadingDigits>
7355           <leadingDigits>800111</leadingDigits>
7356           <leadingDigits>8001111</leadingDigits>
7357           <format>$1 $2</format>
7358         </numberFormat>
7359         <!-- 845 46 47 : UK NHS Direct. -->
7360         <numberFormat pattern="(845)(46)(4\d)">
7361           <leadingDigits>845</leadingDigits>
7362           <leadingDigits>8454</leadingDigits>
7363           <leadingDigits>84546</leadingDigits>
7364           <leadingDigits>845464</leadingDigits>
7365           <format>$1 $2 $3</format>
7366         </numberFormat>
7367         <!-- 84d, 87d with 10 digits. -->
7368         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
7369           <leadingDigits>
7370             8(?:
7371               4[2-5]|
7372               7[0-3]
7373             )
7374           </leadingDigits>
7375           <format>$1 $2 $3</format>
7376         </numberFormat>
7377         <!-- 80d (including 800) with 10 digits. -->
7378         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
7379           <leadingDigits>80</leadingDigits>
7380           <format>$1 $2 $3</format>
7381         </numberFormat>
7382         <!-- 500, 800 with 9 digits. -->
7383         <numberFormat pattern="([58]00)(\d{6})">
7384           <leadingDigits>[58]00</leadingDigits>
7385           <format>$1 $2</format>
7386         </numberFormat>
7387       </availableFormats>
7388       <generalDesc>
7389         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
7390         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
7391       </generalDesc>
7392       <areaCodeOptional>
7393         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
7394              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
7395              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
7396              necessarily valid numbers. -->
7397         <nationalNumberPattern>
7398           2\d[2-9]\d{7}|
7399           1(?:
7400             1\d|
7401             \d1
7402           )[2-9]\d{6}|
7403           1(?:
7404             [248][02-9]\d[2-9]\d{4,5}|
7405             (?:
7406               3(?:
7407                 [02-79]\d|
7408                 8[0-69]
7409               )|
7410               5(?:
7411                 [04-9]\d|
7412                 2[0-35-9]|
7413                 3[0-8]
7414               )|
7415               6(?:
7416                 [02-8]\d|
7417                 9[0-689]
7418               )|
7419               7(?:
7420                 [02-5789]\d|
7421                 6[0-79]
7422               )|
7423               9(?:
7424                 [0235-9]\d|
7425                 4[0-5789]
7426               )
7427             )[2-9]\d{4,5}|
7428             (?:
7429               387(?:
7430                 3[2-9]|
7431                 [24-9]\d
7432               )|
7433               5(?:
7434                 24(?:
7435                   2[2-9]|
7436                   [3-9]\d
7437                 )|
7438                 39(?:
7439                   [4-6][2-9]|
7440                   [237-9]\d
7441                 )
7442               )|
7443               697(?:
7444                 [347][2-9]|
7445                 [25689]\d
7446               )|
7447               768(?:
7448                 [347][2-9]|
7449                 [25679]\d
7450               )|
7451               946(?:
7452                 7[2-9]|
7453                 [2-689]\d
7454               )
7455             )\d{3,4}
7456           )
7457         </nationalNumberPattern>
7458         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
7459         <exampleNumber>1332456789</exampleNumber>
7460       </areaCodeOptional>
7461       <fixedLine>
7462         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7463         <!-- Pattern matches geographic NSN=10 numbers as follows:
7464              - area code and local number first digit for 2+8,
7465              - area code and local number first digit for 3+7,
7466              - area code only for 4+6 (including areas with embedded 5+5).
7467              Pattern matches geographic NSN=9 numbers as follows:
7468              - area code and local number first two digits for 4+5,
7469              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
7470              - area code and local number first digit for 5+4 special case (016977) Dddd.
7471              All patterns exclude ranges used in GG, IM, JE. -->
7472         <nationalNumberPattern>
7473           2(?:
7474             0[01378]|
7475             3[0189]|
7476             4[017]|
7477             8[0-46-9]|
7478             9[012]
7479           )\d{7}|
7480           1(?:
7481             (?:
7482               1(?:
7483                 3[0-48]|
7484                 [46][0-4]|
7485                 5[012789]|
7486                 7[0-49]|
7487                 8[01349]
7488               )|
7489               21[0-7]|
7490               31[0-8]|
7491               [459]1\d|
7492               61[0-46-9]
7493             )
7494           )\d{6}|
7495           1(?:
7496             2(?:
7497               0[024-9]|
7498               2[3-9]|
7499               3[3-79]|
7500               4[1-689]|
7501               [58][02-9]|
7502               6[0-4789]|
7503               7[013-9]|
7504               9\d
7505             )|
7506             3(?:
7507               0\d|
7508               [25][02-9]|
7509               3[02-579]|
7510               [468][0-46-9]|
7511               7[1235679]|
7512               9[24578]
7513             )|
7514             4(?:
7515               0[03-9]|
7516               [28][02-5789]|
7517               [37]\d|
7518               4[02-69]|
7519               5[0-8]|
7520               [69][0-79]
7521             )|
7522             5(?:
7523               0[1235-9]|
7524               2[024-9]|
7525               3[015689]|
7526               4[02-9]|
7527               5[03-9]|
7528               6\d|
7529               7[0-35-9]|
7530               8[0-468]|
7531               9[0-5789]
7532             )|
7533             6(?:
7534               0[034689]|
7535               2[0-35689]|
7536               [38][013-9]|
7537               4[1-467]|
7538               5[0-69]|
7539               6[13-9]|
7540               7[0-8]|
7541               9[0124578]
7542             )|
7543             7(?:
7544               0[0246-9]|
7545               2\d|
7546               3[023678]|
7547               4[03-9]|
7548               5[0-46-9]|
7549               6[013-9]|
7550               7[0-35-9]|
7551               8[024-9]|
7552               9[02-9]
7553             )|
7554             8(?:
7555               0[35-9]|
7556               2[1-5789]|
7557               3[02-578]|
7558               4[0-578]|
7559               5[124-9]|
7560               6[2-69]|
7561               7\d|
7562               8[02-9]|
7563               9[02569]
7564             )|
7565             9(?:
7566               0[02-589]|
7567               2[02-689]|
7568               3[1-5789]|
7569               4[2-9]|
7570               5[0-579]|
7571               6[234789]|
7572               7[0124578]|
7573               8\d|
7574               9[2-57]
7575             )
7576           )\d{6}|
7577           1(?:
7578             2(?:
7579               0(?:
7580                 46[1-4]|
7581                 87[2-9]
7582               )|
7583               545[1-79]|
7584               76(?:
7585                 2\d|
7586                 3[1-8]|
7587                 6[1-6]
7588               )|
7589               9(?:
7590                 7(?:
7591                   2[0-4]|
7592                   3[2-5]
7593                 )|
7594                 8(?:
7595                   2[2-8]|
7596                   7[0-4789]|
7597                   8[345]
7598                 )
7599               )
7600             )|
7601             3(?:
7602               638[2-5]|
7603               647[23]|
7604               8(?:
7605                 47[04-9]|
7606                 64[015789]
7607               )
7608             )|
7609             4(?:
7610               044[1-7]|
7611               20(?:
7612                 2[23]|
7613                 8\d
7614               )|
7615               6(?:
7616                 0(?:
7617                   30|
7618                   5[2-57]|
7619                   6[1-8]|
7620                   7[2-8]
7621                 )|
7622                 140
7623               )|
7624               8(?:
7625                 052|
7626                 87[123]
7627               )
7628             )|
7629             5(?:
7630               24(?:
7631                 3[2-79]|
7632                 6\d
7633               )|
7634               276\d|
7635               6(?:
7636                 26[06-9]|
7637                 686
7638               )
7639             )|
7640             6(?:
7641               06(?:
7642                 4\d|
7643                 7[4-79]
7644               )|
7645               295[567]|
7646               35[34]\d|
7647               47(?:
7648                 24|
7649                 61
7650               )|
7651               59(?:
7652                 5[08]|
7653                 6[67]|
7654                 74
7655               )|
7656               955[0-4]
7657             )|
7658             7(?:
7659               26(?:
7660                 6[13-9]|
7661                 7[0-7]
7662               )|
7663               442\d|
7664               50(?:
7665                 2[0-3]|
7666                 [3-68]2|
7667                 76
7668               )
7669             )|
7670             8(?:
7671               27[56]\d|
7672               37(?:
7673                 5[2-5]|
7674                 8[239]
7675               )|
7676               84(?:
7677                 3[2-58]
7678               )
7679             )|
7680             9(?:
7681               0(?:
7682                 0(?:
7683                   6[1-8]|
7684                   85
7685                 )|
7686                 52\d
7687               )|
7688               3583|
7689               4(?:
7690                 66[1-8]|
7691                 9(?:
7692                   2[01]|
7693                   81
7694                 )
7695               )|
7696               63(?:
7697                 23|
7698                 3[1-4]
7699               )|
7700               9561
7701             )
7702           )\d{3}|
7703           176888[234678]\d{2}|
7704           16977[23]\d{3}
7705         </nationalNumberPattern>
7706         <exampleNumber>1212345678</exampleNumber>
7707       </fixedLine>
7708       <mobile>
7709         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
7710              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
7711         <nationalNumberPattern>
7712           7(?:
7713             [1-4]\d\d|
7714             5(?:
7715               0[0-8]|
7716               [13-9]\d|
7717               2[0-35-9]
7718             )|
7719             7(?:
7720               0[1-9]|
7721               [1-7]\d|
7722               8[02-9]|
7723               9[0-689]
7724             )|
7725             8(?:
7726               [014-9]\d|
7727               [23][0-8]
7728             )|
7729             9(?:
7730               [04-9]\d|
7731               1[02-9]|
7732               2[0-35-9]|
7733               3[0-689]
7734             )
7735           )\d{6}
7736         </nationalNumberPattern>
7737         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7738         <exampleNumber>7400123456</exampleNumber>
7739       </mobile>
7740       <pager>
7741         <!-- 76 with 10 digits; excluding ranges used in IM. -->
7742         <nationalNumberPattern>
7743           76(?:
7744             0[012]|
7745             2[356]|
7746             4[0134]|
7747             5[49]|
7748             6[0-369]|
7749             77|
7750             81|
7751             9[39]
7752           )\d{6}
7753         </nationalNumberPattern>
7754         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7755         <exampleNumber>7640123456</exampleNumber>
7756       </pager>
7757       <!-- Source for non geographic numbers:
7758            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
7759       <tollFree>
7760         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
7761              -->
7762         <nationalNumberPattern>
7763           80(?:
7764             0(?:
7765               1111|
7766               \d{6,7}
7767             )|
7768             8\d{7}
7769           )|
7770           500\d{6}
7771         </nationalNumberPattern>
7772         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
7773         <exampleNumber>8001234567</exampleNumber>
7774       </tollFree>
7775       <premiumRate>
7776         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
7777              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
7778              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
7779              910-919 are reserved for standard premium rate services. -->
7780         <nationalNumberPattern>
7781           (?:
7782             87[123]|
7783             9(?:
7784               [01]\d|
7785               8[2349]
7786             )
7787           )\d{7}
7788         </nationalNumberPattern>
7789         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7790         <exampleNumber>9012345678</exampleNumber>
7791       </premiumRate>
7792       <sharedCost>
7793         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
7794              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
7795         <nationalNumberPattern>
7796           8(?:
7797             4(?:
7798               5464\d|
7799               [2-5]\d{7}
7800             )|
7801             70\d{7}
7802           )
7803         </nationalNumberPattern>
7804         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7805         <exampleNumber>8431234567</exampleNumber>
7806       </sharedCost>
7807       <personalNumber>
7808         <!-- 70 with 10 digits. -->
7809         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
7810         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7811         <exampleNumber>7012345678</exampleNumber>
7812       </personalNumber>
7813       <voip>
7814         <!-- 56 with 10 digits. -->
7815         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
7816         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7817         <exampleNumber>5612345678</exampleNumber>
7818       </voip>
7819       <uan>
7820         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
7821         <nationalNumberPattern>
7822           (?:
7823             3[0347]|
7824             55
7825           )\d{8}
7826         </nationalNumberPattern>
7827         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7828         <exampleNumber>5512345678</exampleNumber>
7829       </uan>
7830     </territory>
7831
7832     <!-- Grenada -->
7833     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
7834                internationalPrefix="011">
7835       <references>
7836         <sourceUrl>http://www.itu.int/oth/T0202000057/en</sourceUrl>
7837       </references>
7838       <generalDesc>
7839         <!-- NANPA country - uses US formatting rules -->
7840         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
7841         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7842       </generalDesc>
7843       <fixedLine>
7844         <nationalNumberPattern>
7845           473(?:
7846             2(?:
7847               3[0-2]|
7848               69
7849             )|
7850             3(?:
7851               2[89]|
7852               86
7853             )|
7854             4(?:
7855               [06]8|
7856               3[5-9]|
7857               4[0-49]|
7858               5[5-79]|
7859               68|
7860               73|
7861               90
7862             )|
7863             63[68]|
7864             7(?:
7865               58|
7866               84
7867             )|
7868             800|
7869             938
7870           )\d{4}
7871         </nationalNumberPattern>
7872         <exampleNumber>4732691234</exampleNumber>
7873       </fixedLine>
7874       <mobile>
7875         <nationalNumberPattern>
7876           473(?:
7877             4(?:
7878               0[2-79]|
7879               1[04-9]|
7880               20|
7881               58
7882             )|
7883             5(?:
7884               2[01]|
7885               3[3-8]
7886             )|
7887             901
7888           )\d{4}
7889         </nationalNumberPattern>
7890         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7891         <exampleNumber>4734031234</exampleNumber>
7892       </mobile>
7893       <tollFree>
7894         <nationalNumberPattern>
7895           8(?:
7896             00|
7897             44|
7898             55|
7899             66|
7900             77|
7901             88
7902           )[2-9]\d{6}
7903         </nationalNumberPattern>
7904         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7905         <exampleNumber>8002123456</exampleNumber>
7906       </tollFree>
7907       <premiumRate>
7908         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
7909         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7910         <exampleNumber>9002123456</exampleNumber>
7911       </premiumRate>
7912       <personalNumber>
7913         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
7914         <nationalNumberPattern>
7915           5(?:
7916             00|
7917             33|
7918             44|
7919             66|
7920             77
7921           )[2-9]\d{6}
7922         </nationalNumberPattern>
7923         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7924         <exampleNumber>5002345678</exampleNumber>
7925       </personalNumber>
7926     </territory>
7927
7928     <!-- Georgia -->
7929     <territory id="GE" countryCode="995" internationalPrefix="00" nationalPrefix="0"
7930                mobileNumberPortableRegion="true">
7931       <references>
7932         <sourceUrl>http://www.itu.int/oth/T0202000050/en</sourceUrl>
7933         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia_(country)</sourceUrl>
7934       </references>
7935       <availableFormats>
7936         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
7937              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
7938         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
7939           <leadingDigits>[348]</leadingDigits>
7940           <format>$1 $2 $3 $4</format>
7941         </numberFormat>
7942         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
7943           <leadingDigits>7</leadingDigits>
7944           <format>$1 $2 $3</format>
7945         </numberFormat>
7946         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
7947           <leadingDigits>5</leadingDigits>
7948           <format>$1 $2 $3 $4</format>
7949         </numberFormat>
7950       </availableFormats>
7951       <noInternationalDialling>
7952         <!-- Online numbers mention that this is not internationally diallable. -->
7953         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
7954         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7955         <exampleNumber>706123456</exampleNumber>
7956       </noInternationalDialling>
7957       <generalDesc>
7958         <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
7959         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
7960       </generalDesc>
7961       <fixedLine>
7962         <nationalNumberPattern>
7963           (?:
7964             3(?:
7965               [256]\d|
7966               4[124-9]|
7967               7[0-4]
7968             )|
7969             4(?:
7970               1\d|
7971               2[2-7]|
7972               3[1-79]|
7973               4[2-8]|
7974               7[239]|
7975               9[1-7]
7976             )
7977           )\d{6}
7978         </nationalNumberPattern>
7979         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
7980         <exampleNumber>322123456</exampleNumber>
7981       </fixedLine>
7982       <mobile>
7983         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
7984              about the change in numbers, and online numbers found. -->
7985         <nationalNumberPattern>
7986           5(?:
7987             14|
7988             5[01578]|
7989             68|
7990             7[0147-9]|
7991             9[0-35-9]
7992           )\d{6}
7993         </nationalNumberPattern>
7994         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7995         <exampleNumber>555123456</exampleNumber>
7996       </mobile>
7997       <!-- Information from http://www.yell.ge, examples such as Wissol Petroleum Georgia
7998            hotline. -->
7999       <tollFree>
8000         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
8001         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8002         <exampleNumber>800123456</exampleNumber>
8003       </tollFree>
8004       <voip>
8005         <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
8006         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8007         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8008         <exampleNumber>706123456</exampleNumber>
8009       </voip>
8010       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
8011            these are omitted for now. -->
8012     </territory>
8013
8014     <!-- French Guiana (French Dept. of) -->
8015     <!-- Using a national prefix here as online numbers are formatted with it. -->
8016     <territory id="GF" countryCode="594" internationalPrefix="00"
8017                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
8018       <references>
8019         <sourceUrl>http://www.itu.int/oth/T020200004C/en</sourceUrl>
8020         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0594&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
8021         <sourceUrl>http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf</sourceUrl>
8022       </references>
8023       <availableFormats>
8024         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8025           <format>$1 $2 $3 $4</format>
8026         </numberFormat>
8027       </availableFormats>
8028       <generalDesc>
8029         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8030         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8031       </generalDesc>
8032       <fixedLine>
8033         <nationalNumberPattern>
8034           594(?:
8035             10|
8036             2[012457-9]|
8037             3[0-57-9]|
8038             4[3-9]|
8039             5[7-9]|
8040             6[0-3]|
8041             9[014]
8042           )\d{4}
8043         </nationalNumberPattern>
8044         <exampleNumber>594101234</exampleNumber>
8045       </fixedLine>
8046       <mobile>
8047         <nationalNumberPattern>
8048           694(?:
8049             [04][0-7]|
8050             1[0-5]|
8051             3[018]|
8052             [29]\d
8053           )\d{4}
8054         </nationalNumberPattern>
8055         <exampleNumber>694201234</exampleNumber>
8056       </mobile>
8057       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
8058            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
8059            too. -->
8060     </territory>
8061
8062     <!-- Guernsey -->
8063     <!-- Inherits formatting rules from the UK. -->
8064     <territory id="GG" countryCode="44" internationalPrefix="00"
8065                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
8066       <references>
8067         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
8068       </references>
8069       <generalDesc>
8070         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
8071         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
8072       </generalDesc>
8073       <areaCodeOptional>
8074         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
8075         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8076         <exampleNumber>1481250123</exampleNumber>
8077       </areaCodeOptional>
8078       <!-- Specific to GG. -->
8079       <fixedLine>
8080         <!-- 1481 with 10 digits. -->
8081         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
8082         <exampleNumber>1481456789</exampleNumber>
8083       </fixedLine>
8084       <mobile>
8085         <!-- 7781, 7839, 7911 with 10 digits. -->
8086         <nationalNumberPattern>
8087           7(?:
8088             781|
8089             839|
8090             911
8091           )\d{6}
8092         </nationalNumberPattern>
8093         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8094         <exampleNumber>7781123456</exampleNumber>
8095       </mobile>
8096       <!-- Other numbers as per GB. -->
8097       <pager>
8098         <nationalNumberPattern>
8099           76(?:
8100             0[012]|
8101             2[356]|
8102             4[0134]|
8103             5[49]|
8104             6[0-369]|
8105             77|
8106             81|
8107             9[39]
8108           )\d{6}
8109         </nationalNumberPattern>
8110         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8111         <exampleNumber>7640123456</exampleNumber>
8112       </pager>
8113       <tollFree>
8114         <nationalNumberPattern>
8115           80(?:
8116             0(?:
8117               1111|
8118               \d{6,7}
8119             )|
8120             8\d{7}
8121           )|
8122           500\d{6}
8123         </nationalNumberPattern>
8124         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
8125         <exampleNumber>8001234567</exampleNumber>
8126       </tollFree>
8127       <premiumRate>
8128         <nationalNumberPattern>
8129           (?:
8130             87[123]|
8131             9(?:
8132               [01]\d|
8133               8[0-3]
8134             )
8135           )\d{7}
8136         </nationalNumberPattern>
8137         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8138         <exampleNumber>9012345678</exampleNumber>
8139       </premiumRate>
8140       <sharedCost>
8141         <nationalNumberPattern>
8142           8(?:
8143             4(?:
8144               5464\d|
8145               [2-5]\d{7}
8146             )|
8147             70\d{7}
8148           )
8149         </nationalNumberPattern>
8150         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8151         <exampleNumber>8431234567</exampleNumber>
8152       </sharedCost>
8153       <personalNumber>
8154         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8155         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8156         <exampleNumber>7012345678</exampleNumber>
8157       </personalNumber>
8158       <voip>
8159         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
8160         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8161         <exampleNumber>5612345678</exampleNumber>
8162       </voip>
8163       <uan>
8164         <nationalNumberPattern>
8165           (?:
8166             3[0347]|
8167             55
8168           )\d{8}
8169         </nationalNumberPattern>
8170         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8171         <exampleNumber>5512345678</exampleNumber>
8172       </uan>
8173     </territory>
8174
8175     <!-- Ghana -->
8176     <territory id="GH" countryCode="233" internationalPrefix="00"
8177                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
8178                mobileNumberPortableRegion="true">
8179       <references>
8180         <sourceUrl>http://www.itu.int/oth/T0202000052/en</sourceUrl>
8181         <sourceUrl>http://www.nca.org.gh/index.php?option=com_content&amp;view=article&amp;id=90&amp;Itemid=65</sourceUrl>
8182       </references>
8183       <availableFormats>
8184         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
8185           <leadingDigits>[235]</leadingDigits>
8186           <format>$1 $2 $3</format>
8187         </numberFormat>
8188         <numberFormat pattern="(\d{3})(\d{5})">
8189           <leadingDigits>8</leadingDigits>
8190           <format>$1 $2</format>
8191         </numberFormat>
8192       </availableFormats>
8193       <generalDesc>
8194         <nationalNumberPattern>
8195           [235]\d{8}|
8196           8\d{7}
8197         </nationalNumberPattern>
8198         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8199       </generalDesc>
8200       <noInternationalDialling>
8201         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8202         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8203         <exampleNumber>80012345</exampleNumber>
8204       </noInternationalDialling>
8205       <fixedLine>
8206         <nationalNumberPattern>
8207           3(?:
8208             0[237]\d|
8209             [167](?:
8210               2[0-6]|
8211               7\d
8212             )|
8213             2(?:
8214               2[0-5]|
8215               7\d
8216             )|
8217             3(?:
8218               2[0-3]|
8219               7\d
8220             )|
8221             4(?:
8222               2[013-9]|
8223               3[01]|
8224               7\d
8225             )|
8226             5(?:
8227               2[0-7]|
8228               7\d
8229             )|
8230             8(?:
8231               2[0-2]|
8232               7\d
8233             )|
8234             9(?:
8235               20|
8236               7\d
8237             )
8238           )\d{5}
8239         </nationalNumberPattern>
8240         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8241         <exampleNumber>302345678</exampleNumber>
8242       </fixedLine>
8243       <mobile>
8244         <nationalNumberPattern>
8245           (?:
8246             2[034678]\d|
8247             5(?:
8248               [047]\d|
8249               54
8250             )
8251           )\d{6}
8252         </nationalNumberPattern>
8253         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8254         <exampleNumber>231234567</exampleNumber>
8255       </mobile>
8256       <tollFree>
8257         <!-- Found online references to these numbers, although they are not in the plan since they
8258              are not internationally diallable. -->
8259         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8260         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8261         <exampleNumber>80012345</exampleNumber>
8262       </tollFree>
8263       <!-- No premiumRate information can be found. -->
8264     </territory>
8265
8266     <!-- Gibraltar -->
8267     <territory id="GI" countryCode="350" internationalPrefix="00">
8268       <references>
8269         <sourceUrl>http://www.gra.gi/index.php?topic=numbering+plan&amp;section=legislation&amp;site=communications</sourceUrl>
8270       </references>
8271       <availableFormats>
8272         <!-- Most numbers are formatted as a block -->
8273         <numberFormat pattern="(\d{3})(\d{5})">
8274           <leadingDigits>2</leadingDigits>
8275           <format>$1 $2</format>
8276         </numberFormat>
8277       </availableFormats>
8278       <generalDesc>
8279         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
8280         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8281       </generalDesc>
8282       <fixedLine>
8283         <nationalNumberPattern>
8284           2(?:
8285             00\d|
8286             1(?:
8287               6[24-7]|
8288               9\d
8289             )|
8290             2(?:
8291               00|
8292               2[2457]
8293             )
8294           )\d{4}
8295         </nationalNumberPattern>
8296         <exampleNumber>20012345</exampleNumber>
8297       </fixedLine>
8298       <mobile>
8299         <nationalNumberPattern>
8300           (?:
8301             5[46-8]|
8302             62
8303           )\d{6}
8304         </nationalNumberPattern>
8305         <exampleNumber>57123456</exampleNumber>
8306       </mobile>
8307       <tollFree>
8308         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
8309         <exampleNumber>80123456</exampleNumber>
8310       </tollFree>
8311       <premiumRate>
8312         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
8313         <exampleNumber>88123456</exampleNumber>
8314       </premiumRate>
8315       <sharedCost>
8316         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
8317         <exampleNumber>87123456</exampleNumber>
8318       </sharedCost>
8319     </territory>
8320
8321     <!-- Greenland -->
8322     <territory id="GL" countryCode="299" internationalPrefix="00">
8323       <references>
8324         <sourceUrl>http://www.itu.int/oth/T0202000056/en</sourceUrl>
8325       </references>
8326       <availableFormats>
8327         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
8328           <format>$1 $2 $3</format>
8329         </numberFormat>
8330       </availableFormats>
8331       <generalDesc>
8332         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
8333         <possibleNumberPattern>\d{6}</possibleNumberPattern>
8334       </generalDesc>
8335       <fixedLine>
8336         <!-- Including VSAT numbers here. -->
8337         <nationalNumberPattern>
8338           (?:
8339             19|
8340             3[1-6]|
8341             6[14689]|
8342             8[14-79]|
8343             9\d
8344           )\d{4}
8345         </nationalNumberPattern>
8346         <exampleNumber>321000</exampleNumber>
8347       </fixedLine>
8348       <mobile>
8349         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
8350         <exampleNumber>221234</exampleNumber>
8351       </mobile>
8352       <tollFree>
8353         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
8354         <exampleNumber>801234</exampleNumber>
8355       </tollFree>
8356       <voip>
8357         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
8358         <exampleNumber>381234</exampleNumber>
8359       </voip>
8360     </territory>
8361
8362     <!-- Gambia -->
8363     <territory id="GM" countryCode="220" internationalPrefix="00">
8364       <references>
8365         <sourceUrl>http://www.itu.int/oth/T020200004F/en</sourceUrl>
8366       </references>
8367       <availableFormats>
8368         <numberFormat pattern="(\d{3})(\d{4})">
8369           <format>$1 $2</format>
8370         </numberFormat>
8371       </availableFormats>
8372       <generalDesc>
8373         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
8374         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8375       </generalDesc>
8376       <fixedLine>
8377         <nationalNumberPattern>
8378           (?:
8379             4(?:
8380               [23]\d{2}|
8381               4(?:
8382                 1[024679]|
8383                 [6-9]\d
8384               )
8385             )|
8386             5(?:
8387               54[0-7]|
8388               6(?:
8389                 [67]\d
8390               )|
8391               7(?:
8392                 1[04]|
8393                 2[035]|
8394                 3[58]|
8395                 48
8396               )
8397             )|
8398             8\d{3}
8399           )\d{3}
8400         </nationalNumberPattern>
8401         <exampleNumber>5661234</exampleNumber>
8402       </fixedLine>
8403       <mobile>
8404         <nationalNumberPattern>
8405           (?:
8406             2[0-6]|
8407             [3679]\d
8408           )\d{5}
8409         </nationalNumberPattern>
8410         <exampleNumber>3012345</exampleNumber>
8411       </mobile>
8412     </territory>
8413
8414     <!-- Guinea -->
8415     <territory id="GN" countryCode="224" internationalPrefix="00">
8416       <references>
8417         <sourceUrl>http://www.itu.int/oth/T020200005B/en</sourceUrl>
8418       </references>
8419       <availableFormats>
8420         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
8421           <leadingDigits>3</leadingDigits>
8422           <format>$1 $2 $3 $4</format>
8423         </numberFormat>
8424         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8425           <leadingDigits>[67]</leadingDigits>
8426           <format>$1 $2 $3 $4</format>
8427         </numberFormat>
8428       </availableFormats>
8429       <generalDesc>
8430         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
8431         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
8432       </generalDesc>
8433       <fixedLine>
8434         <nationalNumberPattern>
8435           30(?:
8436             24|
8437             3[12]|
8438             4[1-35-7]|
8439             5[13]|
8440             6[189]|
8441             [78]1|
8442             9[1478]
8443           )\d{4}
8444         </nationalNumberPattern>
8445         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8446         <exampleNumber>30241234</exampleNumber>
8447       </fixedLine>
8448       <mobile>
8449         <!-- Prefixes here match those assigned to carriers, as per the ITU communication Jan 23rd
8450              2013. -->
8451         <nationalNumberPattern>6[02356]\d{7}</nationalNumberPattern>
8452         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8453         <exampleNumber>601123456</exampleNumber>
8454       </mobile>
8455       <voip>
8456         <!-- Gamma concept network is being listed as VoIP as per
8457              http://www.gammaconcept.com/internet%20sat.html -->
8458         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
8459         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8460         <exampleNumber>722123456</exampleNumber>
8461       </voip>
8462     </territory>
8463
8464     <!-- Guadeloupe -->
8465     <territory id="GP" countryCode="590" internationalPrefix="00"
8466                mainCountryForCode="true" nationalPrefix="0"
8467                nationalPrefixFormattingRule="$NP$FG">
8468       <references>
8469         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
8470         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
8471         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
8472       </references>
8473       <availableFormats>
8474         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
8475           <format>$1 $2-$3</format>
8476         </numberFormat>
8477       </availableFormats>
8478       <generalDesc>
8479         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8480         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8481       </generalDesc>
8482       <fixedLine>
8483         <nationalNumberPattern>
8484           590(?:
8485             0[13468]|
8486             1[012]|
8487             2[0-68]|
8488             3[28]|
8489             4[0-8]|
8490             5[579]|
8491             6[0189]|
8492             70|
8493             8[0-689]|
8494             9\d
8495           )\d{4}
8496         </nationalNumberPattern>
8497         <exampleNumber>590201234</exampleNumber>
8498       </fixedLine>
8499       <mobile>
8500         <!-- Any ranges assigned from
8501              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
8502              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
8503              them. -->
8504         <nationalNumberPattern>
8505           690(?:
8506             0[0-7]|
8507             [1-9]\d
8508           )\d{4}
8509         </nationalNumberPattern>
8510         <exampleNumber>690301234</exampleNumber>
8511       </mobile>
8512     </territory>
8513
8514     <!-- Equatorial Guinea -->
8515     <territory id="GQ" countryCode="240" internationalPrefix="00">
8516       <references>
8517         <sourceUrl>http://www.itu.int/oth/T0202000041/en</sourceUrl>
8518       </references>
8519       <availableFormats>
8520         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
8521           <leadingDigits>[235]</leadingDigits>
8522           <format>$1 $2 $3</format>
8523         </numberFormat>
8524         <numberFormat pattern="(\d{3})(\d{6})">
8525           <leadingDigits>[89]</leadingDigits>
8526           <format>$1 $2</format>
8527         </numberFormat>
8528       </availableFormats>
8529       <generalDesc>
8530         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
8531         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8532       </generalDesc>
8533       <fixedLine>
8534         <nationalNumberPattern>
8535           3(?:
8536             3(?:
8537               3\d[7-9]|
8538               [0-24-9]\d[46]
8539             )|
8540             5\d{2}[7-9]
8541           )\d{4}
8542         </nationalNumberPattern>
8543         <exampleNumber>333091234</exampleNumber>
8544       </fixedLine>
8545       <mobile>
8546         <nationalNumberPattern>
8547           (?:
8548             222|
8549             551
8550           )\d{6}
8551         </nationalNumberPattern>
8552         <exampleNumber>222123456</exampleNumber>
8553       </mobile>
8554       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
8555            they start allocating them there will be a differentiation of prefixes, but this is not
8556            clear now. -->
8557       <tollFree>
8558         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
8559         <exampleNumber>800123456</exampleNumber>
8560       </tollFree>
8561       <premiumRate>
8562         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
8563         <exampleNumber>900123456</exampleNumber>
8564       </premiumRate>
8565     </territory>
8566
8567     <!-- Greece -->
8568     <territory id="GR" countryCode="30" internationalPrefix="00" mobileNumberPortableRegion="true">
8569       <references>
8570         <sourceUrl>http://www.itu.int/oth/T0202000055/en</sourceUrl>
8571         <sourceUrl>http://en.wikipedia.org/wiki/%2B30</sourceUrl>
8572       </references>
8573       <availableFormats>
8574         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
8575           <leadingDigits>
8576             21|
8577             7
8578           </leadingDigits>
8579           <format>$1 $2 $3</format>
8580         </numberFormat>
8581         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
8582           <leadingDigits>
8583             2[2-9]1|
8584             [689]
8585           </leadingDigits>
8586           <format>$1 $2 $3</format>
8587         </numberFormat>
8588         <numberFormat pattern="(2\d{3})(\d{6})">
8589           <leadingDigits>2[2-9][02-9]</leadingDigits>
8590           <format>$1 $2</format>
8591         </numberFormat>
8592       </availableFormats>
8593       <generalDesc>
8594         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
8595         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8596       </generalDesc>
8597       <fixedLine>
8598         <nationalNumberPattern>
8599           2(?:
8600             1\d{2}|
8601             2(?:
8602               2[1-46-9]|
8603               3[1-8]|
8604               4[1-7]|
8605               5[1-4]|
8606               6[1-8]|
8607               7[1-5]|
8608               [89][1-9]
8609             )|
8610             3(?:
8611               1\d|
8612               2[1-57]|
8613               [35][1-3]|
8614               4[13]|
8615               7[1-7]|
8616               8[124-6]|
8617               9[1-79]
8618             )|
8619             4(?:
8620               1\d|
8621               2[1-8]|
8622               3[1-4]|
8623               4[13-5]|
8624               6[1-578]|
8625               9[1-5]
8626             )|
8627             5(?:
8628               1\d|
8629               [29][1-4]|
8630               3[1-5]|
8631               4[124]|
8632               5[1-6]
8633             )|
8634             6(?:
8635               1\d|
8636               3[1245]|
8637               4[1-7]|
8638               5[13-9]|
8639               [269][1-6]|
8640               7[14]|
8641               8[1-5]
8642             )|
8643             7(?:
8644               1\d|
8645               2[1-5]|
8646               3[1-6]|
8647               4[1-7]|
8648               5[1-57]|
8649               6[135]|
8650               9[125-7]
8651             )|
8652             8(?:
8653               1\d|
8654               2[1-5]|
8655               [34][1-4]|
8656               9[1-57]
8657             )
8658           )\d{6}
8659         </nationalNumberPattern>
8660         <exampleNumber>2123456789</exampleNumber>
8661       </fixedLine>
8662       <mobile>
8663         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
8664         <exampleNumber>6912345678</exampleNumber>
8665       </mobile>
8666       <tollFree>
8667         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
8668         <exampleNumber>8001234567</exampleNumber>
8669       </tollFree>
8670       <premiumRate>
8671         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
8672         <exampleNumber>9091234567</exampleNumber>
8673       </premiumRate>
8674       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
8675            rate. -->
8676       <sharedCost>
8677         <nationalNumberPattern>
8678           8(?:
8679             0[16]|
8680             12|
8681             25
8682           )\d{7}
8683         </nationalNumberPattern>
8684         <exampleNumber>8011234567</exampleNumber>
8685       </sharedCost>
8686       <personalNumber>
8687         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8688         <exampleNumber>7012345678</exampleNumber>
8689       </personalNumber>
8690     </territory>
8691
8692     <!-- Guatemala -->
8693     <territory id="GT" countryCode="502" internationalPrefix="00">
8694       <references>
8695         <sourceUrl>http://www.itu.int/oth/T020200005A/en</sourceUrl>
8696         <sourceUrl>http://www.sit.gob.gt/index.php?page=plan-de-numeracion</sourceUrl>
8697         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala</sourceUrl>
8698       </references>
8699       <availableFormats>
8700         <numberFormat pattern="(\d{4})(\d{4})">
8701           <leadingDigits>[2-7]</leadingDigits>
8702           <format>$1 $2</format>
8703         </numberFormat>
8704         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
8705           <leadingDigits>1</leadingDigits>
8706           <format>$1 $2 $3</format>
8707         </numberFormat>
8708       </availableFormats>
8709       <generalDesc>
8710         <nationalNumberPattern>
8711           [2-7]\d{7}|
8712           1[89]\d{9}
8713         </nationalNumberPattern>
8714         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
8715       </generalDesc>
8716       <fixedLine>
8717         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
8718         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8719         <exampleNumber>22456789</exampleNumber>
8720       </fixedLine>
8721       <mobile>
8722         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
8723              they are just reserved. -->
8724         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
8725         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8726         <exampleNumber>51234567</exampleNumber>
8727       </mobile>
8728       <tollFree>
8729         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
8730         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8731         <exampleNumber>18001112222</exampleNumber>
8732       </tollFree>
8733       <premiumRate>
8734         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
8735         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8736         <exampleNumber>19001112222</exampleNumber>
8737       </premiumRate>
8738     </territory>
8739
8740     <!-- Guam -->
8741     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
8742                internationalPrefix="011">
8743       <references>
8744         <sourceUrl>http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel</sourceUrl>
8745       </references>
8746       <generalDesc>
8747         <!-- NANPA country - uses US formatting rules -->
8748         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
8749         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8750       </generalDesc>
8751       <fixedLine>
8752         <!-- Added 671 489/555/720/721 based on information from
8753              http://www.area-codes.com/area-code/area-code-671.asp -->
8754         <nationalNumberPattern>
8755           671(?:
8756             3(?:
8757               00|
8758               3[39]|
8759               4[349]|
8760               55|
8761               6[26]
8762             )|
8763             4(?:
8764               56|
8765               7[1-9]|
8766               8[236-9]
8767             )|
8768             5(?:
8769               55|
8770               6[2-5]|
8771               88
8772             )|
8773             6(?:
8774               3[2-578]|
8775               4[24-9]|
8776               5[34]|
8777               78|
8778               8[5-9]
8779             )|
8780             7(?:
8781               [079]7|
8782               2[0167]|
8783               3[45]|
8784               8[789]
8785             )|
8786             8(?:
8787               [2-5789]8|
8788               6[48]
8789             )|
8790             9(?:
8791               2[29]|
8792               6[79]|
8793               7[179]|
8794               8[789]|
8795               9[78]
8796             )
8797           )\d{4}
8798         </nationalNumberPattern>
8799         <exampleNumber>6713001234</exampleNumber>
8800       </fixedLine>
8801       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
8802            -->
8803       <mobile>
8804         <nationalNumberPattern>
8805           671(?:
8806             3(?:
8807               00|
8808               3[39]|
8809               4[349]|
8810               55|
8811               6[26]
8812             )|
8813             4(?:
8814               56|
8815               7[1-9]|
8816               8[236-9]
8817             )|
8818             5(?:
8819               55|
8820               6[2-5]|
8821               88
8822             )|
8823             6(?:
8824               3[2-578]|
8825               4[24-9]|
8826               5[34]|
8827               78|
8828               8[5-9]
8829             )|
8830             7(?:
8831               [079]7|
8832               2[0167]|
8833               3[45]|
8834               8[789]
8835             )|
8836             8(?:
8837               [2-5789]8|
8838               6[48]
8839             )|
8840             9(?:
8841               2[29]|
8842               6[79]|
8843               7[179]|
8844               8[789]|
8845               9[78]
8846             )
8847           )\d{4}
8848         </nationalNumberPattern>
8849         <exampleNumber>6713001234</exampleNumber>
8850       </mobile>
8851       <tollFree>
8852         <nationalNumberPattern>
8853           8(?:
8854             00|
8855             44|
8856             55|
8857             66|
8858             77|
8859             88
8860           )[2-9]\d{6}
8861         </nationalNumberPattern>
8862         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8863         <exampleNumber>8002123456</exampleNumber>
8864       </tollFree>
8865       <premiumRate>
8866         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8867         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8868         <exampleNumber>9002123456</exampleNumber>
8869       </premiumRate>
8870       <personalNumber>
8871         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8872         <nationalNumberPattern>
8873           5(?:
8874             00|
8875             33|
8876             44|
8877             66|
8878             77
8879           )[2-9]\d{6}
8880         </nationalNumberPattern>
8881         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8882         <exampleNumber>5002345678</exampleNumber>
8883       </personalNumber>
8884     </territory>
8885
8886     <!-- Guinea-Bissau -->
8887     <territory id="GW" countryCode="245" internationalPrefix="00">
8888       <references>
8889         <sourceUrl>http://www.itu.int/oth/T020200005C/en</sourceUrl>
8890       </references>
8891       <availableFormats>
8892         <numberFormat pattern="(\d{3})(\d{4})">
8893           <format>$1 $2</format>
8894         </numberFormat>
8895       </availableFormats>
8896       <generalDesc>
8897         <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
8898         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8899       </generalDesc>
8900       <fixedLine>
8901         <nationalNumberPattern>
8902           3(?:
8903             2[0125]|
8904             3[1245]|
8905             4[12]|
8906             5[1-4]|
8907             70|
8908             9[1-467]
8909           )\d{4}
8910         </nationalNumberPattern>
8911         <exampleNumber>3201234</exampleNumber>
8912       </fixedLine>
8913       <mobile>
8914         <nationalNumberPattern>
8915           (?:
8916             [5-7]\d|
8917             9[012]
8918           )\d{5}
8919         </nationalNumberPattern>
8920         <exampleNumber>5012345</exampleNumber>
8921       </mobile>
8922       <voip>
8923         <nationalNumberPattern>40\d{5}</nationalNumberPattern>
8924         <exampleNumber>4012345</exampleNumber>
8925       </voip>
8926     </territory>
8927
8928     <!-- Guyana -->
8929     <territory id="GY" countryCode="592" internationalPrefix="001">
8930       <references>
8931         <sourceUrl>http://www.itu.int/oth/T020200005D/en</sourceUrl>
8932       </references>
8933       <availableFormats>
8934         <numberFormat pattern="(\d{3})(\d{4})">
8935           <format>$1 $2</format>
8936         </numberFormat>
8937       </availableFormats>
8938       <generalDesc>
8939         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
8940         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8941       </generalDesc>
8942       <fixedLine>
8943         <nationalNumberPattern>
8944           (?:
8945             2(?:
8946               1[6-9]|
8947               2[0-35-9]|
8948               3[1-4]|
8949               5[3-9]|
8950               6\d|
8951               7[0-24-79]
8952             )|
8953             3(?:
8954               2[25-9]|
8955               3\d
8956             )|
8957             4(?:
8958               4[0-24]|
8959               5[56]
8960             )|
8961             77[1-57]
8962           )\d{4}
8963         </nationalNumberPattern>
8964         <exampleNumber>2201234</exampleNumber>
8965       </fixedLine>
8966       <mobile>
8967         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
8968              that SMS messages have been succesfully sent to numbers in the entire range prefixed
8969              with 6. -->
8970         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
8971         <exampleNumber>6091234</exampleNumber>
8972       </mobile>
8973       <tollFree>
8974         <nationalNumberPattern>
8975           (?:
8976             289|
8977             862
8978           )\d{4}
8979         </nationalNumberPattern>
8980         <exampleNumber>2891234</exampleNumber>
8981       </tollFree>
8982       <premiumRate>
8983         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
8984         <exampleNumber>9008123</exampleNumber>
8985       </premiumRate>
8986     </territory>
8987
8988     <!-- Hong Kong -->
8989     <territory id="HK" countryCode="852" internationalPrefix="00" mobileNumberPortableRegion="true">
8990       <references>
8991         <sourceUrl>http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html</sourceUrl>
8992       </references>
8993       <availableFormats>
8994         <numberFormat pattern="(\d{4})(\d{4})">
8995           <leadingDigits>
8996             [235-7]|
8997             [89](?:
8998               0[1-9]|
8999               [1-9]
9000             )
9001           </leadingDigits>
9002           <format>$1 $2</format>
9003         </numberFormat>
9004         <numberFormat pattern="(800)(\d{3})(\d{3})">
9005           <leadingDigits>800</leadingDigits>
9006           <format>$1 $2 $3</format>
9007         </numberFormat>
9008         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
9009           <leadingDigits>900</leadingDigits>
9010           <format>$1 $2 $3 $4</format>
9011         </numberFormat>
9012         <numberFormat pattern="(900)(\d{2,5})">
9013           <leadingDigits>900</leadingDigits>
9014           <format>$1 $2</format>
9015         </numberFormat>
9016       </availableFormats>
9017       <generalDesc>
9018         <!-- Slightly more complex pattern to allow the country code to be stripped off if
9019              necessary. -->
9020         <nationalNumberPattern>
9021           [235-7]\d{7}|
9022           8\d{7,8}|
9023           9\d{4,10}
9024         </nationalNumberPattern>
9025         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9026       </generalDesc>
9027       <fixedLine>
9028         <nationalNumberPattern>
9029           (?:
9030             [23]\d|
9031             5[78]
9032           )\d{6}
9033         </nationalNumberPattern>
9034         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9035         <exampleNumber>21234567</exampleNumber>
9036       </fixedLine>
9037       <mobile>
9038         <nationalNumberPattern>
9039           (?:
9040             5[1-69]\d|
9041             6\d{2}|
9042             9(?:
9043               0[1-9]|
9044               [1-8]\d
9045             )
9046           )\d{5}
9047         </nationalNumberPattern>
9048         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9049         <exampleNumber>51234567</exampleNumber>
9050       </mobile>
9051       <pager>
9052         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
9053         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9054         <exampleNumber>71234567</exampleNumber>
9055       </pager>
9056       <tollFree>
9057         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
9058         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9059         <exampleNumber>800123456</exampleNumber>
9060       </tollFree>
9061       <premiumRate>
9062         <nationalNumberPattern>
9063           900(?:
9064             [0-24-9]\d{7}|
9065             3\d{1,4}
9066           )
9067         </nationalNumberPattern>
9068         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9069         <exampleNumber>90012345678</exampleNumber>
9070       </premiumRate>
9071       <personalNumber>
9072         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
9073         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9074         <exampleNumber>81123456</exampleNumber>
9075       </personalNumber>
9076    </territory>
9077
9078     <!-- Honduras -->
9079     <!-- It seems there is no longer a trunk prefix in use, based on websites like
9080          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
9081          national format. -->
9082     <territory id="HN" countryCode="504" internationalPrefix="00" >
9083       <references>
9084         <sourceUrl>http://www.itu.int/oth/T020200005F/en</sourceUrl>
9085       </references>
9086       <availableFormats>
9087        <numberFormat pattern="(\d{4})(\d{4})">
9088          <format>$1-$2</format>
9089        </numberFormat>
9090       </availableFormats>
9091       <generalDesc>
9092         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
9093         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9094       </generalDesc>
9095       <fixedLine>
9096         <!-- Extra prefixes 227[01389], 228X, 2292 & 260X were added from numbers found online. -->
9097         <nationalNumberPattern>
9098           2(?:
9099             2(?:
9100               0[019]|
9101               1[1-36]|
9102               [23]\d|
9103               4[056]|
9104               5[57]|
9105               7[01389]|
9106               8[0146-9]|
9107               9[012]
9108             )|
9109             4(?:
9110               2[3-59]|
9111               3[13-689]|
9112               4[0-68]|
9113               5[1-35]
9114             )|
9115             5(?:
9116               4[3-5]|
9117               5\d|
9118               6[56]|
9119               74
9120             )|
9121             6(?:
9122               [056]\d|
9123               4[0-378]|
9124               [78][0-8]|
9125               9[01]
9126             )|
9127             7(?:
9128               6[46-9]|
9129               7[02-9]|
9130               8[34]
9131             )|
9132             8(?:
9133               79|
9134               8[0-35789]|
9135               9[1-57-9]
9136             )
9137           )\d{4}
9138         </nationalNumberPattern>
9139         <exampleNumber>22123456</exampleNumber>
9140       </fixedLine>
9141       <mobile>
9142         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
9143         <exampleNumber>91234567</exampleNumber>
9144       </mobile>
9145     </territory>
9146
9147     <!-- Croatia -->
9148     <territory id="HR" countryCode="385" internationalPrefix="00"
9149                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
9150                mobileNumberPortableRegion="true">
9151       <references>
9152         <sourceUrl>http://www.itu.int/oth/T0202000032/en</sourceUrl>
9153         <sourceUrl>http://en.wikipedia.org/wiki/%2B385</sourceUrl>
9154       </references>
9155       <availableFormats>
9156         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
9157              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
9158              XXXX as well. -->
9159        <numberFormat pattern="(1)(\d{4})(\d{3})">
9160          <leadingDigits>1</leadingDigits>
9161          <format>$1 $2 $3</format>
9162        </numberFormat>
9163        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
9164          <leadingDigits>6[09]</leadingDigits>
9165          <format>$1 $2 $3</format>
9166        </numberFormat>
9167        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
9168          <leadingDigits>62</leadingDigits>
9169          <format>$1 $2 $3</format>
9170        </numberFormat>
9171        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
9172          <leadingDigits>[2-5]</leadingDigits>
9173           <format>$1 $2 $3</format>
9174         </numberFormat>
9175         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
9176           <leadingDigits>9</leadingDigits>
9177           <format>$1 $2 $3</format>
9178         </numberFormat>
9179         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
9180           <leadingDigits>9</leadingDigits>
9181           <format>$1 $2 $3</format>
9182         </numberFormat>
9183         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
9184           <leadingDigits>9</leadingDigits>
9185           <format>$1 $2 $3 $4</format>
9186         </numberFormat>
9187         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
9188           <leadingDigits>
9189             6[145]|
9190             7
9191           </leadingDigits>
9192           <format>$1 $2 $3</format>
9193         </numberFormat>
9194         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
9195           <leadingDigits>
9196             6[145]|
9197             7
9198           </leadingDigits>
9199           <format>$1 $2 $3</format>
9200         </numberFormat>
9201         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
9202           <leadingDigits>8</leadingDigits>
9203           <format>$1 $2 $3</format>
9204         </numberFormat>
9205         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
9206           <leadingDigits>8</leadingDigits>
9207           <format>$1 $2 $3</format>
9208         </numberFormat>
9209       </availableFormats>
9210       <generalDesc>
9211         <nationalNumberPattern>
9212           [1-7]\d{5,8}|
9213           [89]\d{6,11}
9214         </nationalNumberPattern>
9215         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
9216       </generalDesc>
9217       <fixedLine>
9218         <nationalNumberPattern>
9219           1\d{7}|
9220           (?:
9221             2[0-3]|
9222             3[1-5]|
9223             4[02-47-9]|
9224             5[1-3]
9225           )\d{6}
9226         </nationalNumberPattern>
9227         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
9228         <exampleNumber>12345678</exampleNumber>
9229       </fixedLine>
9230       <uan>
9231         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
9232              are numbers on the internet with 6 or 7 digits after the prefix. -->
9233         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
9234         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
9235         <exampleNumber>62123456</exampleNumber>
9236       </uan>
9237       <mobile>
9238         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
9239         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
9240         <exampleNumber>912345678</exampleNumber>
9241       </mobile>
9242       <tollFree>
9243         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
9244         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9245         <exampleNumber>8001234567</exampleNumber>
9246       </tollFree>
9247       <premiumRate>
9248         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
9249              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
9250              -->
9251         <nationalNumberPattern>
9252           6(?:
9253             [09]\d{7}|
9254             [145]\d{4,7}
9255           )
9256         </nationalNumberPattern>
9257         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9258         <exampleNumber>611234</exampleNumber>
9259       </premiumRate>
9260       <personalNumber>
9261         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
9262         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9263         <exampleNumber>741234567</exampleNumber>
9264       </personalNumber>
9265     </territory>
9266
9267     <!-- Haiti -->
9268     <territory id="HT" countryCode="509" internationalPrefix="00">
9269       <references>
9270         <sourceUrl>http://www.itu.int/oth/T020200005E/en</sourceUrl>
9271         <sourceUrl>http://www.numberingplans.com/</sourceUrl>
9272       </references>
9273       <availableFormats>
9274         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
9275           <format>$1 $2 $3</format>
9276         </numberFormat>
9277       </availableFormats>
9278       <generalDesc>
9279         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9280         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9281       </generalDesc>
9282       <fixedLine>
9283         <!-- The prefix 24 seems to be also used, based on online searches. -->
9284         <nationalNumberPattern>
9285           2(?:
9286             [24]\d|
9287             5[1-5]|
9288             94
9289           )\d{5}
9290         </nationalNumberPattern>
9291         <exampleNumber>22453300</exampleNumber>
9292       </fixedLine>
9293       <mobile>
9294         <!-- The prefix 31 seems to be also used, based on online searches. -->
9295         <nationalNumberPattern>
9296           (?:
9297             3[1-9]|
9298             4\d
9299           )\d{6}
9300         </nationalNumberPattern>
9301         <exampleNumber>34101234</exampleNumber>
9302       </mobile>
9303       <tollFree>
9304         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
9305              without making any further distinction. However, http://www.numberingplans.com/ seems
9306              to suggest they are free. -->
9307         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
9308         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9309         <exampleNumber>80012345</exampleNumber>
9310       </tollFree>
9311       <voip>
9312         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
9313              98[89]\d{5}. -->
9314         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
9315         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9316         <exampleNumber>98901234</exampleNumber>
9317       </voip>
9318     </territory>
9319
9320     <!-- Hungary -->
9321     <territory id="HU" countryCode="36" internationalPrefix="00"
9322                nationalPrefix="06" nationalPrefixFormattingRule="($FG)"
9323                mobileNumberPortableRegion="true">
9324       <references>
9325         <sourceUrl>http://www.itu.int/oth/T0202000061/en</sourceUrl>
9326       </references>
9327       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
9328            by a Hungarian person and following the yellow pages) is to omit this when formatting.
9329            Yellow pages: http://www.aranyoldalak.hu -->
9330       <availableFormats>
9331         <numberFormat pattern="(1)(\d{3})(\d{4})">
9332           <leadingDigits>1</leadingDigits>
9333           <format>$1 $2 $3</format>
9334         </numberFormat>
9335         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9336           <leadingDigits>[2-9]</leadingDigits>
9337           <format>$1 $2 $3</format>
9338         </numberFormat>
9339       </availableFormats>
9340       <generalDesc>
9341         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
9342         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9343       </generalDesc>
9344       <noInternationalDialling>
9345         <nationalNumberPattern>[48]0\d{6}</nationalNumberPattern>
9346         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9347         <exampleNumber>80123456</exampleNumber>
9348       </noInternationalDialling>
9349       <fixedLine>
9350         <!-- Includes numbers for corporate networks. -->
9351         <nationalNumberPattern>
9352           (?:
9353             1\d|
9354             2(?:
9355               1\d|
9356               [2-9]
9357             )|
9358             3[2-7]|
9359             4[24-9]|
9360             5[2-79]|
9361             6[23689]|
9362             7(?:
9363               1\d|
9364               [2-9]
9365             )|
9366             8[2-57-9]|
9367             9[2-69]
9368           )\d{6}
9369         </nationalNumberPattern>
9370         <exampleNumber>12345678</exampleNumber>
9371       </fixedLine>
9372       <mobile>
9373         <nationalNumberPattern>
9374           (?:
9375             [27]0|
9376             3[01]
9377           )\d{7}
9378         </nationalNumberPattern>
9379         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9380         <exampleNumber>201234567</exampleNumber>
9381       </mobile>
9382       <tollFree>
9383         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
9384         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9385         <exampleNumber>80123456</exampleNumber>
9386       </tollFree>
9387       <premiumRate>
9388         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
9389         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9390         <exampleNumber>90123456</exampleNumber>
9391       </premiumRate>
9392       <sharedCost>
9393         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
9394         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9395         <exampleNumber>40123456</exampleNumber>
9396       </sharedCost>
9397     </territory>
9398
9399     <!-- Indonesia -->
9400     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
9401                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9402       <references>
9403         <!-- From 2001, very out of date. -->
9404         <sourceUrl>http://www.itu.int/oth/T0202000064/en</sourceUrl>
9405         <sourceUrl>http://en.wikipedia.org/wiki/%2B62</sourceUrl>
9406       </references>
9407       <availableFormats>
9408         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9409           pattern="(\d{2})(\d{5,8})">
9410           <leadingDigits>
9411             2[124]|
9412             [36]1
9413           </leadingDigits>
9414           <format>$1 $2</format>
9415         </numberFormat>
9416         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9417           pattern="(\d{3})(\d{5,7})">
9418           <leadingDigits>
9419             [4579]|
9420             2[035-9]|
9421             [36][02-9]
9422           </leadingDigits>
9423           <format>$1 $2</format>
9424         </numberFormat>
9425         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
9426           <leadingDigits>8[1-35-9]</leadingDigits>
9427           <format>$1-$2-$3</format>
9428         </numberFormat>
9429         <numberFormat pattern="(177)(\d{6,8})">
9430           <leadingDigits>1</leadingDigits>
9431           <format>$1 $2</format>
9432         </numberFormat>
9433         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
9434              that sometimes they are followed by less digits. -->
9435         <numberFormat pattern="(800)(\d{5,7})">
9436           <leadingDigits>800</leadingDigits>
9437           <format>$1 $2</format>
9438         </numberFormat>
9439         <numberFormat pattern="(80\d)(\d)(\d{3})(\d{3})">
9440           <leadingDigits>80[79]</leadingDigits>
9441           <format>$1 $2 $3 $4</format>
9442         </numberFormat>
9443       </availableFormats>
9444       <generalDesc>
9445         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
9446         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9447       </generalDesc>
9448       <fixedLine>
9449         <!-- Area codes taken from wikipedia, with missing ones added from
9450              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
9451              We also added 0770 after user feedback because it seems to be used on Bintan island.
9452              Where known, fixed mobile prefixes have been represented as Mobile. -->
9453         <!-- Very short (5/6 digit) local numbers in Jakarta seem to be special cases for various
9454              well known companies (Mc Donalds, KFC etc...). Some of these are listed in:
9455              http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf -->
9456         <nationalNumberPattern>
9457           2(?:
9458             1(?:
9459               14\d{3}|
9460               [0-8]\d{6,7}|
9461               500\d{3}|
9462               9\d{6}
9463             )|
9464             [24]\d{7,8}
9465           )|
9466           (?:
9467             2(?:
9468               [35][1-4]|
9469               6[0-8]|
9470               7[1-6]|
9471               8\d|
9472               9[1-8]
9473             )|
9474             3(?:
9475               1|
9476               2[1-578]|
9477               3[1-68]|
9478               4[1-3]|
9479               5[1-8]|
9480               6[1-3568]|
9481               7[0-46]|
9482               8\d
9483             )|
9484             4(?:
9485               0[1-589]|
9486               1[01347-9]|
9487               2[0-36-8]|
9488               3[0-24-68]|
9489               5[1-378]|
9490               6[1-5]|
9491               7[134]|
9492               8[1245]
9493             )|
9494             5(?:
9495               1[1-35-9]|
9496               2[25-8]|
9497               3[1246-9]|
9498               4[1-3589]|
9499               5[1-46]|
9500               6[1-8]
9501             )|
9502             6(?:
9503               19?|
9504               [25]\d|
9505               3[1-469]|
9506               4[1-6]
9507             )|
9508             7(?:
9509               1[1-46-9]|
9510               2[14-9]|
9511               [36]\d|
9512               4[1-8]|
9513               5[1-9]|
9514               7[0-36-9]
9515             )|
9516             9(?:
9517               0[12]|
9518               1[013-8]|
9519               2[0-479]|
9520               5[125-8]|
9521               6[23679]|
9522               7[159]|
9523               8[01346]
9524             )
9525           )\d{5,8}
9526         </nationalNumberPattern>
9527         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9528         <exampleNumber>612345678</exampleNumber>
9529       </fixedLine>
9530       <mobile>
9531         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
9532              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
9533              are captured below. The pattern covers the area code plus the first one-two digits of
9534              the subscriber number. -->
9535         <nationalNumberPattern>
9536           (?:
9537             2(?:
9538               1(?:
9539                 3[145]|
9540                 4[01]|
9541                 5[1-469]|
9542                 60|
9543                 8[0359]|
9544                 9\d
9545               )|
9546               2(?:
9547                 88|
9548                 9[1256]
9549               )|
9550               3[1-4]9|
9551               4(?:
9552                 36|
9553                 91
9554               )|
9555               5(?:
9556                 1[349]|
9557                 [2-4]9
9558               )|
9559               6[0-7]9|
9560               7(?:
9561                 [1-36]9|
9562                 4[39]
9563               )|
9564               8[1-5]9|
9565               9[1-48]9
9566             )|
9567             3(?:
9568               19[1-3]|
9569               2[12]9|
9570               3[13]9|
9571               4(?:
9572                 1[69]|
9573                 39
9574               )|
9575               5[14]9|
9576               6(?:
9577                 1[69]|
9578                 2[89]
9579               )|
9580               709
9581             )|
9582             4[13]19|
9583             5(?:
9584               1(?:
9585                 19|
9586                 8[39]
9587               )|
9588               4[129]9|
9589               6[12]9
9590             )|
9591             6(?:
9592               19[12]|
9593               2(?:
9594                 [23]9|
9595                 77
9596               )
9597             )|
9598             7(?:
9599               1[13]9|
9600               2[15]9|
9601               419|
9602               5(?:
9603                 1[89]|
9604                 29
9605               )|
9606               6[15]9|
9607               7[178]9
9608             )
9609           )\d{5,6}|
9610           8[1-35-9]\d{7,9}
9611         </nationalNumberPattern>
9612         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
9613         <exampleNumber>812345678</exampleNumber>
9614       </mobile>
9615       <tollFree>
9616         <nationalNumberPattern>
9617           177\d{6,8}|
9618           800\d{5,7}
9619         </nationalNumberPattern>
9620         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
9621         <exampleNumber>8001234567</exampleNumber>
9622       </tollFree>
9623       <uan>
9624         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9625         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9626         <exampleNumber>8071123456</exampleNumber>
9627       </uan>
9628       <noInternationalDialling>
9629         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9630         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9631         <exampleNumber>8071123456</exampleNumber>
9632       </noInternationalDialling>
9633       <!-- The information below is provided by an Indonesian -->
9634       <premiumRate>
9635         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
9636         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9637         <exampleNumber>8091234567</exampleNumber>
9638       </premiumRate>
9639     </territory>
9640
9641     <!-- Ireland -->
9642     <territory id="IE" countryCode="353" internationalPrefix="00"
9643                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
9644                mobileNumberPortableRegion="true">
9645       <references>
9646         <sourceUrl>http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html</sourceUrl>
9647         <sourceUrl>http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf</sourceUrl>
9648       </references>
9649       <availableFormats>
9650         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
9651           <leadingDigits>1</leadingDigits>
9652           <format>$1 $2 $3</format>
9653         </numberFormat>
9654         <numberFormat pattern="(\d{2})(\d{5})">
9655           <leadingDigits>
9656             2[24-9]|
9657             47|
9658             58|
9659             6[237-9]|
9660             9[35-9]
9661           </leadingDigits>
9662           <format>$1 $2</format>
9663         </numberFormat>
9664         <numberFormat pattern="(\d{3})(\d{5})">
9665           <leadingDigits>
9666             40[24]|
9667             50[45]
9668           </leadingDigits>
9669           <format>$1 $2</format>
9670         </numberFormat>
9671         <numberFormat pattern="(48)(\d{4})(\d{4})">
9672           <leadingDigits>48</leadingDigits>
9673           <format>$1 $2 $3</format>
9674         </numberFormat>
9675         <numberFormat pattern="(818)(\d{3})(\d{3})">
9676           <leadingDigits>81</leadingDigits>
9677           <format>$1 $2 $3</format>
9678         </numberFormat>
9679         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9680           <leadingDigits>
9681             [24-69]|
9682             7[14]
9683           </leadingDigits>
9684           <format>$1 $2 $3</format>
9685         </numberFormat>
9686         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9687           pattern="([78]\d)(\d{3,4})(\d{4})">
9688           <leadingDigits>
9689             76|
9690             8[35-9]
9691           </leadingDigits>
9692           <format>$1 $2 $3</format>
9693         </numberFormat>
9694         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9695           pattern="(700)(\d{3})(\d{3})">
9696           <leadingDigits>70</leadingDigits>
9697           <format>$1 $2 $3</format>
9698         </numberFormat>
9699         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
9700           <leadingDigits>
9701             1(?:
9702               8[059]|
9703               5
9704             )
9705           </leadingDigits>
9706           <leadingDigits>
9707             1(?:
9708               8[059]0|
9709               5
9710             )
9711           </leadingDigits>
9712           <format>$1 $2 $3</format>
9713         </numberFormat>
9714       </availableFormats>
9715       <generalDesc>
9716         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
9717         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9718       </generalDesc>
9719       <noInternationalDialling>
9720         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9721         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9722         <exampleNumber>1850123456</exampleNumber>
9723       </noInternationalDialling>
9724       <fixedLine>
9725         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
9726              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
9727              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
9728              Ireland. We support these numbers here, although technically they are numbers for the
9729              UK. -->
9730         <nationalNumberPattern>
9731           1\d{7,8}|
9732           2(?:
9733             1\d{6,7}|
9734             3\d{7}|
9735             [24-9]\d{5}
9736           )|
9737           4(?:
9738             0[24]\d{5}|
9739             [1-469]\d{7}|
9740             5\d{6}|
9741             7\d{5}|
9742             8[0-46-9]\d{7}
9743           )|
9744           5(?:
9745             0[45]\d{5}|
9746             1\d{6}|
9747             [23679]\d{7}|
9748             8\d{5}
9749           )|
9750           6(?:
9751             1\d{6}|
9752             [237-9]\d{5}|
9753             [4-6]\d{7}
9754           )|
9755           7[14]\d{7}|
9756           9(?:
9757             1\d{6}|
9758             [04]\d{7}|
9759             [35-9]\d{5}
9760           )
9761         </nationalNumberPattern>
9762         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9763         <exampleNumber>2212345</exampleNumber>
9764       </fixedLine>
9765       <mobile>
9766         <nationalNumberPattern>
9767           8(?:
9768             22\d{6}|
9769             [35-9]\d{7}
9770           )
9771         </nationalNumberPattern>
9772         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9773         <exampleNumber>850123456</exampleNumber>
9774       </mobile>
9775       <tollFree>
9776         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
9777         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9778         <exampleNumber>1800123456</exampleNumber>
9779       </tollFree>
9780       <premiumRate>
9781         <nationalNumberPattern>
9782           15(?:
9783             1[2-8]|
9784             [2-8]0|
9785             9[089]
9786           )\d{6}
9787         </nationalNumberPattern>
9788         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9789         <exampleNumber>1520123456</exampleNumber>
9790       </premiumRate>
9791       <sharedCost>
9792         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9793         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9794         <exampleNumber>1850123456</exampleNumber>
9795       </sharedCost>
9796       <personalNumber>
9797         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
9798         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9799         <exampleNumber>700123456</exampleNumber>
9800       </personalNumber>
9801       <voip>
9802         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
9803         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9804         <exampleNumber>761234567</exampleNumber>
9805       </voip>
9806       <uan>
9807         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
9808         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9809         <exampleNumber>818123456</exampleNumber>
9810       </uan>
9811       <voicemail>
9812         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
9813         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9814         <exampleNumber>8501234567</exampleNumber>
9815       </voicemail>
9816     </territory>
9817
9818     <!-- Israel -->
9819     <!-- Formatting practice following wikipedia, and government sites. -->
9820     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
9821                nationalPrefix="0" nationalPrefixFormattingRule="$FG"
9822                mobileNumberPortableRegion="true">
9823       <references>
9824         <sourceUrl>http://www.itu.int/oth/T020200006A/en</sourceUrl>
9825         <sourceUrl>http://en.wikipedia.org/wiki/%2B972</sourceUrl>
9826         <!-- in Hebrew -->
9827         <sourceUrl>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</sourceUrl>
9828       </references>
9829       <availableFormats>
9830         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9831           pattern="([2-489])(\d{3})(\d{4})">
9832           <leadingDigits>[2-489]</leadingDigits>
9833           <format>$1-$2-$3</format>
9834         </numberFormat>
9835         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9836           pattern="([57]\d)(\d{3})(\d{4})">
9837           <leadingDigits>[57]</leadingDigits>
9838           <format>$1-$2-$3</format>
9839         </numberFormat>
9840         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
9841           <leadingDigits>1[7-9]</leadingDigits>
9842           <format>$1-$2-$3-$4</format>
9843         </numberFormat>
9844         <!-- The following number is for hospitals. -->
9845         <numberFormat pattern="(1255)(\d{3})">
9846           <leadingDigits>125</leadingDigits>
9847           <format>$1-$2</format>
9848         </numberFormat>
9849         <numberFormat pattern="(1200)(\d{3})(\d{3})">
9850           <leadingDigits>120</leadingDigits>
9851           <format>$1-$2-$3</format>
9852         </numberFormat>
9853         <numberFormat pattern="(1212)(\d{2})(\d{2})">
9854           <leadingDigits>121</leadingDigits>
9855           <format>$1-$2-$3</format>
9856         </numberFormat>
9857         <!-- The following is for voicemail access. -->
9858         <numberFormat pattern="(1599)(\d{6})">
9859           <leadingDigits>15</leadingDigits>
9860           <format>$1-$2</format>
9861         </numberFormat>
9862         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
9863              dialed with a star in front of the number. -->
9864         <numberFormat pattern="(\d{4})">
9865           <leadingDigits>[2-689]</leadingDigits>
9866           <format>*$1</format>
9867         </numberFormat>
9868       </availableFormats>
9869       <generalDesc >
9870         <nationalNumberPattern>
9871           [17]\d{6,9}|
9872           [2-589]\d{3}(?:\d{3,6})?|
9873           6\d{3}
9874         </nationalNumberPattern>
9875         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9876       </generalDesc>
9877       <noInternationalDialling>
9878         <nationalNumberPattern>
9879           1700\d{6}|
9880           [2-689]\d{3}
9881         </nationalNumberPattern>
9882         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9883         <exampleNumber>1700123456</exampleNumber>
9884       </noInternationalDialling>
9885       <fixedLine>
9886         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9887         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
9888         <exampleNumber>21234567</exampleNumber>
9889       </fixedLine>
9890       <mobile>
9891         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
9892              sure wikipedia is accurate based on news coverage of the launch of these numbers. -->
9893         <nationalNumberPattern>
9894           5(?:
9895             [02347-9]\d{2}|
9896             5(?:
9897               01|
9898               2[23]|
9899               3[34]|
9900               4[45]|
9901               5[5689]|
9902               6[67]|
9903               7[78]|
9904               8[89]|
9905               9[7-9]
9906             )|
9907             6[2-9]\d
9908           )\d{5}
9909         </nationalNumberPattern>
9910         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9911         <exampleNumber>501234567</exampleNumber>
9912       </mobile>
9913       <tollFree>
9914         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
9915         <nationalNumberPattern>
9916           1(?:
9917             80[019]\d{3}|
9918             255
9919           )\d{3}
9920         </nationalNumberPattern>
9921         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9922         <exampleNumber>1800123456</exampleNumber>
9923       </tollFree>
9924       <premiumRate>
9925           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
9926                However, no online numbers starting with these prefixes can be found, and this data
9927                is not found in any other source. -->
9928           <!-- 1200 and 1212 numbers are for televoting. -->
9929         <nationalNumberPattern>
9930           1(?:
9931             212|
9932             (?:
9933               9(?:
9934                 0[01]|
9935                 19
9936               )|
9937               200
9938             )\d{2}
9939           )\d{4}
9940         </nationalNumberPattern>
9941         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
9942         <exampleNumber>1919123456</exampleNumber>
9943       </premiumRate>
9944       <sharedCost>
9945         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
9946         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9947         <exampleNumber>1700123456</exampleNumber>
9948       </sharedCost>
9949       <voip>
9950         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
9951              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
9952              Dialing) numbers, that most people forward to VoIP numbers. -->
9953         <nationalNumberPattern>
9954           7(?:
9955             2[23]\d|
9956             3[237]\d|
9957             47\d|
9958             6(?:
9959               5\d|
9960               8[068]
9961             )|
9962             7\d{2}|
9963             8(?:
9964               33|
9965               55|
9966               77|
9967               81
9968             )
9969           )\d{5}
9970         </nationalNumberPattern>
9971         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9972         <exampleNumber>771234567</exampleNumber>
9973       </voip>
9974       <uan>
9975         <!-- 4-digit star numbers and 1-599 numbers. The latter are actually labelled "interactive
9976              voicemail" in the ITU document, but according to reports from businesses in Israel and
9977              the Hebrew version of the wikipedia page, these are actually a router for business
9978              calls, and incur a normal call cost on account of the caller. -->
9979         <nationalNumberPattern>
9980           [2-689]\d{3}|
9981           1599\d{6}
9982         </nationalNumberPattern>
9983         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
9984         <exampleNumber>1599123456</exampleNumber>
9985       </uan>
9986     </territory>
9987
9988     <!-- Isle of Man -->
9989     <!-- Inherits formatting rules from the UK. -->
9990     <territory id="IM" countryCode="44" internationalPrefix="00"
9991                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
9992       <references>
9993         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
9994       </references>
9995       <generalDesc>
9996         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
9997         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
9998       </generalDesc>
9999       <areaCodeOptional>
10000         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
10001         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10002         <exampleNumber>1624250123</exampleNumber>
10003       </areaCodeOptional>
10004       <!-- Specific to IM. -->
10005       <fixedLine>
10006         <!-- 1624 with 10 digits. -->
10007         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
10008         <exampleNumber>1624456789</exampleNumber>
10009       </fixedLine>
10010       <mobile>
10011         <!-- 7524, 7624, 7924 with 10 digits. -->
10012         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
10013         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10014         <exampleNumber>7924123456</exampleNumber>
10015       </mobile>
10016       <tollFree>
10017         <!-- 808 162 with 10 digits. -->
10018         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
10019         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10020         <exampleNumber>8081624567</exampleNumber>
10021       </tollFree>
10022       <premiumRate>
10023         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
10024         <nationalNumberPattern>
10025           (?:
10026             872299|
10027             90[0167]624
10028           )\d{4}
10029         </nationalNumberPattern>
10030         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10031         <exampleNumber>9016247890</exampleNumber>
10032       </premiumRate>
10033       <sharedCost>
10034         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
10035         <nationalNumberPattern>
10036           8(?:
10037             4(?:
10038               40[49]06|
10039               5624\d
10040             )|
10041             70624\d
10042           )\d{3}
10043         </nationalNumberPattern>
10044         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10045         <exampleNumber>8456247890</exampleNumber>
10046       </sharedCost>
10047       <!-- Other numbers as per GB. -->
10048       <personalNumber>
10049         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
10050         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10051         <exampleNumber>7012345678</exampleNumber>
10052       </personalNumber>
10053       <voip>
10054         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
10055         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10056         <exampleNumber>5612345678</exampleNumber>
10057       </voip>
10058       <uan>
10059         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
10060         <nationalNumberPattern>
10061           3(?:
10062             08162\d|
10063             3\d{5}|
10064             4(?:
10065               40[49]06|
10066               5624\d
10067             )|
10068             7(?:
10069               0624\d|
10070               2299\d
10071             )
10072           )\d{3}|
10073           55\d{8}
10074         </nationalNumberPattern>
10075         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10076         <exampleNumber>5512345678</exampleNumber>
10077       </uan>
10078     </territory>
10079
10080     <!-- India -->
10081     <!-- Note that several changes in area codes have occurred since the numbering plan was released
10082          - fixed line changes are notified on the http://www.bsnl.co.in website. Area codes can be
10083          verified here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
10084     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
10085                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true"
10086                mobileNumberPortableRegion="true">
10087       <references>
10088         <sourceUrl>http://www.itu.int/oth/T0202000063/en</sourceUrl>
10089         <sourceUrl>http://en.wikipedia.org/wiki/%2B91</sourceUrl>
10090         <sourceUrl>http://www.coai.in/msccodes.php</sourceUrl>
10091       </references>
10092        <availableFormats>
10093          <!-- Mobile numbers. -->
10094          <numberFormat pattern="(\d{5})(\d{5})">
10095            <leadingDigits>
10096              7(?:
10097                0[2-9]|
10098                2[0579]|
10099                3[057-9]|
10100                4[0-389]|
10101                6[0-35-9]|
10102                [57]|
10103                8[0-79]
10104              )|
10105              8(?:
10106                0[015689]|
10107                1[0-57-9]|
10108                2[2356-9]|
10109                3[0-57-9]|
10110                [45]|
10111                6[02457-9]|
10112                7[1-69]|
10113                8[0124-9]|
10114                9[02-9]
10115              )|
10116              9
10117            </leadingDigits>
10118            <leadingDigits>
10119              7(?:
10120                0(?:
10121                  2[2-9]|
10122                  [3-8]|
10123                  9[0-4]
10124                )|
10125                2(?:
10126                  0[04-9]|
10127                  5[09]|
10128                  7[5-8]|
10129                  9[389]
10130                )|
10131                3(?:
10132                  0[1-9]|
10133                  [58]|
10134                  7[3679]|
10135                  9[689]
10136                )|
10137                4(?:
10138                  0[1-9]|
10139                  1[15-9]|
10140                  [29][89]|
10141                  39|
10142                  8[389]
10143                )|
10144                5(?:
10145                  [034678]|
10146                  2[03-9]|
10147                  5[017-9]|
10148                  9[7-9]
10149                )|
10150                6(?:
10151                  0[0-27]|
10152                  1[0-257-9]|
10153                  2[0-4]|
10154                  3[19]|
10155                  5[4589]|
10156                  [6-9]
10157                )|
10158                7(?:
10159                  0[2-9]|
10160                  [1-79]|
10161                  8[1-9]
10162                )|
10163                8(?:
10164                  [0-7]|
10165                  9[013-9]
10166                )
10167              )|
10168              8(?:
10169                0(?:
10170                  [01589]|
10171                  6[67]
10172                )|
10173                1(?:
10174                  [02-589]|
10175                  1[0135-9]|
10176                  7[0-79]
10177                )|
10178                2(?:
10179                  [236-9]|
10180                  5[1-9]
10181                )|
10182                3(?:
10183                  [0357-9]|
10184                  4[1-9]
10185                )|
10186                [45]|
10187                6[02457-9]|
10188                7[1-69]|
10189                8(?:
10190                  [0-26-9]|
10191                  44|
10192                  5[2-9]
10193                )|
10194                9(?:
10195                  [035-9]|
10196                  2[2-9]|
10197                  4[0-8]
10198                )
10199              )|
10200              9
10201            </leadingDigits>
10202            <format>$1 $2</format>
10203          </numberFormat>
10204          <!-- 2 digits area code -->
10205          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10206            <leadingDigits>
10207              11|
10208              2[02]|
10209              33|
10210              4[04]|
10211              79|
10212              80[2-46]
10213            </leadingDigits>
10214            <format>$1 $2 $3</format>
10215          </numberFormat>
10216          <!-- 3 digit area codes that don't clash with mobile patterns. -->
10217          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10218            <leadingDigits>
10219              1(?:
10220                2[0-249]|
10221                3[0-25]|
10222                4[145]|
10223                [569][14]|
10224                7[1257]|
10225                8[1346]|
10226                [68][1-9]
10227              )|
10228              2(?:
10229                1[257]|
10230                3[013]|
10231                4[01]|
10232                5[0137]|
10233                6[0158]|
10234                78|
10235                8[1568]|
10236                9[14]
10237              )|
10238              3(?:
10239                26|
10240                4[1-3]|
10241                5[34]|
10242                6[01489]|
10243                7[02-46]|
10244                8[159]
10245              )|
10246              4(?:
10247                1[36]|
10248                2[1-47]|
10249                3[15]|
10250                5[12]|
10251                6[126-9]|
10252                7[0-24-9]|
10253                8[013-57]|
10254                9[014-7]
10255              )|
10256              5(?:
10257                [136][25]|
10258                22|
10259                4[28]|
10260                5[12]|
10261                [78]1|
10262                9[15]
10263              )|
10264              6(?:
10265                12|
10266                [2345]1|
10267                57|
10268                6[13]|
10269                7[14]|
10270                80
10271              )
10272            </leadingDigits>
10273            <format>$1 $2 $3</format>
10274          </numberFormat>
10275          <!-- Three-digit area codes that potentially overlap with mobile. -->
10276          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10277            <leadingDigits>
10278              7(?:
10279                12|
10280                2[14]|
10281                3[134]|
10282                4[47]|
10283                5[15]|
10284                [67]1|
10285                88
10286              )
10287            </leadingDigits>
10288            <leadingDigits>
10289              7(?:
10290                12|
10291                2[14]|
10292                3[134]|
10293                4[47]|
10294                5(?:
10295                  1|
10296                  5[2-6]
10297                )|
10298                [67]1|
10299                88
10300              )
10301            </leadingDigits>
10302            <format>$1 $2 $3</format>
10303          </numberFormat>
10304          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10305            <leadingDigits>
10306              8(?:
10307                16|
10308                2[014]|
10309                3[126]|
10310                6[136]|
10311                7[078]|
10312                8[34]|
10313                91
10314              )
10315            </leadingDigits>
10316            <format>$1 $2 $3</format>
10317          </numberFormat>
10318          <!-- 4 digits area code -->
10319          <!-- Fallback for fixed-line numbers. -->
10320          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
10321            <leadingDigits>
10322              1(?:
10323                [23579]|
10324                [468][1-9]
10325              )|
10326              [2-8]
10327            </leadingDigits>
10328            <format>$1 $2 $3</format>
10329          </numberFormat>
10330          <numberFormat nationalPrefixFormattingRule="$FG"
10331            pattern="(1600)(\d{2})(\d{4})">
10332            <leadingDigits>160</leadingDigits>
10333            <leadingDigits>1600</leadingDigits>
10334            <format>$1 $2 $3</format>
10335          </numberFormat>
10336          <numberFormat nationalPrefixFormattingRule="$FG"
10337            pattern="(1800)(\d{4,5})">
10338            <leadingDigits>180</leadingDigits>
10339            <leadingDigits>1800</leadingDigits>
10340            <format>$1 $2</format>
10341          </numberFormat>
10342          <numberFormat nationalPrefixFormattingRule="$FG"
10343            pattern="(18[06]0)(\d{2,4})(\d{4})">
10344            <leadingDigits>18[06]</leadingDigits>
10345            <leadingDigits>18[06]0</leadingDigits>
10346            <format>$1 $2 $3</format>
10347          </numberFormat>
10348          <numberFormat nationalPrefixFormattingRule="$FG"
10349            pattern="(140)(\d{3})(\d{4})">
10350            <leadingDigits>140</leadingDigits>
10351            <format>$1 $2 $3</format>
10352          </numberFormat>
10353          <!-- Televoting numbers. Formatting information is from
10354               http://www.bsnl.co.in/service/telev.htm -->
10355          <numberFormat nationalPrefixFormattingRule="$FG"
10356            pattern="(\d{4})(\d{3})(\d{4})(\d{2})">
10357            <leadingDigits>18[06]</leadingDigits>
10358            <leadingDigits>
10359              18(?:
10360                03|
10361                6[12]
10362              )
10363            </leadingDigits>
10364            <format>$1 $2 $3 $4</format>
10365          </numberFormat>
10366       </availableFormats>
10367       <generalDesc>
10368         <nationalNumberPattern>
10369           1\d{7,12}|
10370           [2-9]\d{9,10}
10371         </nationalNumberPattern>
10372         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
10373       </generalDesc>
10374       <noInternationalDialling>
10375         <nationalNumberPattern>
10376           1(?:
10377             600\d{6}|
10378             8(?:
10379               0(?:
10380                 0\d{4,8}|
10381                 3\d{9}
10382               )|
10383               6(?:
10384                 0\d{7}|
10385                 [12]\d{9}
10386               )
10387             )
10388           )
10389         </nationalNumberPattern>
10390         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10391         <exampleNumber>1800123456</exampleNumber>
10392       </noInternationalDialling>
10393       <fixedLine>
10394         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
10395              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
10396              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
10397              Not all operator codes are available in all areas, but we don't maintain that
10398              distinction here.
10399              Area codes starting with a 7 are listed separately, since the prefixes need to be more
10400              detailed so they clash less with mobile phone prefixes. -->
10401         <nationalNumberPattern>
10402           (?:
10403             11|
10404             2[02]|
10405             33|
10406             4[04]|
10407             79
10408           )[2-7]\d{7}|
10409           80[2-467]\d{7}|
10410           (?:
10411             1(?:
10412               2[0-249]|
10413               3[0-25]|
10414               4[145]|
10415               [59][14]|
10416               6[014]|
10417               7[1257]|
10418               8[01346]
10419             )|
10420             2(?:
10421               1[257]|
10422               3[013]|
10423               4[01]|
10424               5[0137]|
10425               6[0158]|
10426               78|
10427               8[1568]|
10428               9[14]
10429             )|
10430             3(?:
10431               26|
10432               4[1-3]|
10433               5[34]|
10434               6[01489]|
10435               7[02-46]|
10436               8[159]
10437             )|
10438             4(?:
10439               1[36]|
10440               2[1-47]|
10441               3[15]|
10442               5[12]|
10443               6[126-9]|
10444               7[0-24-9]|
10445               8[013-57]|
10446               9[014-7]
10447             )|
10448             5(?:
10449               [136][25]|
10450               22|
10451               4[28]|
10452               5[12]|
10453               [78]1|
10454               9[15]
10455             )|
10456             6(?:
10457               12|
10458               [2345]1|
10459               57|
10460               6[13]|
10461               7[14]|
10462               80
10463             )|
10464             7(?:
10465               12|
10466               2[14]|
10467               3[134]|
10468               4[47]|
10469               5[15]|
10470               [67]1|
10471               88
10472             )|
10473             8(?:
10474               16|
10475               2[014]|
10476               3[126]|
10477               6[136]|
10478               7[078]|
10479               8[34]|
10480               91
10481             )
10482           )[2-7]\d{6}|
10483           (?:
10484             (?:
10485               1(?:
10486                 2[35-8]|
10487                 3[346-9]|
10488                 4[236-9]|
10489                 [59][0235-9]|
10490                 6[235-9]|
10491                 7[34689]|
10492                 8[257-9]
10493               )|
10494               2(?:
10495                 1[134689]|
10496                 3[24-8]|
10497                 4[2-8]|
10498                 5[25689]|
10499                 6[2-4679]|
10500                 7[13-79]|
10501                 8[2-479]|
10502                 9[235-9]
10503               )|
10504               3(?:
10505                 01|
10506                 1[79]|
10507                 2[1-5]|
10508                 4[25-8]|
10509                 5[125689]|
10510                 6[235-7]|
10511                 7[157-9]|
10512                 8[2-467]
10513               )|
10514               4(?:
10515                 1[14578]|
10516                 2[5689]|
10517                 3[2-467]|
10518                 5[4-7]|
10519                 6[35]|
10520                 73|
10521                 8[2689]|
10522                 9[2389]
10523               )|
10524               5(?:
10525                 [16][146-9]|
10526                 2[14-8]|
10527                 3[1346]|
10528                 4[14-69]|
10529                 5[46]|
10530                 7[2-4]|
10531                 8[2-8]|
10532                 9[246]
10533               )|
10534               6(?:
10535                 1[1358]|
10536                 2[2457]|
10537                 3[2-4]|
10538                 4[235-7]|
10539                 [57][2-689]|
10540                 6[24-578]|
10541                 8[1-6]
10542               )|
10543               8(?:
10544                 1[1357-9]|
10545                 2[235-8]|
10546                 3[03-57-9]|
10547                 4[0-24-9]|
10548                 5\d|
10549                 6[2457-9]|
10550                 7[1-6]|
10551                 8[1256]|
10552                 9[2-4]
10553               )
10554             )\d|
10555             7(?:
10556               (?:
10557                 1[013-9]|
10558                 2[0235-9]|
10559                 3[2679]|
10560                 4[1-35689]|
10561                 5[2-46-9]|
10562                 [67][02-9]|
10563                 9\d
10564               )\d|
10565               8(?:
10566                 2[0-6]|
10567                 [013-8]\d
10568               )
10569             )
10570           )[2-7]\d{5}
10571         </nationalNumberPattern>
10572         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10573         <exampleNumber>1123456789</exampleNumber>
10574       </fixedLine>
10575       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
10576       <!-- The document titled "List of MSC codes" linked off
10577            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
10578            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
10579       <mobile>
10580         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10581              codes list, are added because SMS messages have been successfully sent to these
10582              numbers. It seems almost impossible to know for some of these numbers whether they are
10583              land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[567],
10584              7695, 8299, 8309. New prefixes were also added based on the document provided from
10585              mobile carriers: https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
10586         <nationalNumberPattern>
10587           (?:
10588             7(?:
10589               0(?:
10590                 2[2-9]|
10591                 [3-8]\d|
10592                 9[0-4]
10593               )|
10594               2(?:
10595                 0[04-9]|
10596                 5[09]|
10597                 7[5-8]|
10598                 9[389]
10599               )|
10600               3(?:
10601                 0[1-9]|
10602                 [58]\d|
10603                 7[3679]|
10604                 9[689]
10605               )|
10606               4(?:
10607                 0[1-9]|
10608                 1[15-9]|
10609                 [29][89]|
10610                 39|
10611                 8[389]
10612               )|
10613               5(?:
10614                 [034678]\d|
10615                 2[03-9]|
10616                 5[017-9]|
10617                 9[7-9]
10618               )|
10619               6(?:
10620                 0[0127]|
10621                 1[0-257-9]|
10622                 2[0-4]|
10623                 3[19]|
10624                 5[4589]|
10625                 [6-9]\d
10626               )|
10627               7(?:
10628                 0[2-9]|
10629                 [1-79]\d|
10630                 8[1-9]
10631               )|
10632               8(?:
10633                 [0-7]\d|
10634                 9[013-9]
10635               )
10636             )|
10637             8(?:
10638               0(?:
10639                 [01589]\d|
10640                 6[67]
10641               )|
10642               1(?:
10643                 [02-589]\d|
10644                 1[0135-9]|
10645                 7[0-79]
10646               )|
10647               2(?:
10648                 [236-9]\d|
10649                 5[1-9]
10650               )|
10651               3(?:
10652                 [0357-9]\d|
10653                 4[1-9]
10654               )|
10655               [45]\d{2}|
10656               6[02457-9]\d|
10657               7[1-69]\d|
10658               8(?:
10659                 [0-26-9]\d|
10660                 44|
10661                 5[2-9]
10662               )|
10663               9(?:
10664                 [035-9]\d|
10665                 2[2-9]|
10666                 4[0-8]
10667               )
10668             )|
10669             9\d{3}
10670           )\d{6}
10671         </nationalNumberPattern>
10672         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10673         <exampleNumber>9123456789</exampleNumber>
10674       </mobile>
10675       <tollFree>
10676         <!-- Information gathered from sites such as
10677              http://www.surfindia.com/india-facts/toll-free-no.html and
10678              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
10679              http://www.bsnl.co.in/service/telev.htm -->
10680         <nationalNumberPattern>
10681           1(?:
10682             600\d{6}|
10683             80(?:
10684               0\d{4,8}|
10685               3\d{9}
10686             )
10687           )
10688         </nationalNumberPattern>
10689         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10690         <exampleNumber>1800123456</exampleNumber>
10691       </tollFree>
10692       <premiumRate>
10693         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
10694              because they overlap with mobile, and we haven't found any real numbers online. -->
10695         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
10696         <possibleNumberPattern>\d{13}</possibleNumberPattern>
10697         <exampleNumber>1861123456789</exampleNumber>
10698       </premiumRate>
10699       <sharedCost>
10700         <!-- While described as "universal numbers" in the numbering plan, evidence suggests
10701              that 1860 number are best described as shared cost. See "Call Local Service" in:
10702              http://www.tatadocomo.com/corporates/toll-free.aspx -->
10703         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
10704         <possibleNumberPattern>\d{11}</possibleNumberPattern>
10705         <exampleNumber>18603451234</exampleNumber>
10706       </sharedCost>
10707       <uan>
10708         <!-- Telemarketing numbers: http://en.wikipedia.org/wiki/Telephone_numbers_in_India -->
10709         <nationalNumberPattern>140\d{7}</nationalNumberPattern>
10710         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10711         <exampleNumber>1409305260</exampleNumber>
10712       </uan>
10713     </territory>
10714
10715     <!-- British Indian Ocean Territory / Diego Garcia -->
10716     <territory id="IO" countryCode="246" internationalPrefix="00">
10717       <references>
10718         <sourceUrl>http://www.itu.int/oth/T0202000039/en</sourceUrl>
10719       </references>
10720       <availableFormats>
10721         <numberFormat pattern="(\d{3})(\d{4})">
10722           <format>$1 $2</format>
10723         </numberFormat>
10724       </availableFormats>
10725       <generalDesc>
10726         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
10727         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10728       </generalDesc>
10729       <fixedLine>
10730         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
10731         <exampleNumber>3709100</exampleNumber>
10732       </fixedLine>
10733       <mobile>
10734         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
10735         <exampleNumber>3801234</exampleNumber>
10736       </mobile>
10737     </territory>
10738
10739     <!-- Iraq -->
10740     <territory id="IQ" countryCode="964" internationalPrefix="00"
10741                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10742       <references>
10743         <sourceUrl>http://en.wikipedia.org/wiki/%2B964</sourceUrl>
10744         <sourceUrl>http://wtng.info/wtng-964-ik.html</sourceUrl>
10745       </references>
10746       <availableFormats>
10747         <numberFormat pattern="(1)(\d{3})(\d{4})">
10748           <leadingDigits>1</leadingDigits>
10749           <format>$1 $2 $3</format>
10750         </numberFormat>
10751         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
10752           <leadingDigits>[2-6]</leadingDigits>
10753           <format>$1 $2 $3</format>
10754         </numberFormat>
10755         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
10756           <leadingDigits>7</leadingDigits>
10757           <format>$1 $2 $3</format>
10758         </numberFormat>
10759       </availableFormats>
10760       <generalDesc>
10761         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
10762         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10763       </generalDesc>
10764       <fixedLine>
10765         <nationalNumberPattern>
10766           1\d{7}|
10767           (?:
10768             2[13-5]|
10769             3[02367]|
10770             4[023]|
10771             5[03]|
10772             6[026]
10773           )\d{6,7}
10774         </nationalNumberPattern>
10775         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
10776         <exampleNumber>12345678</exampleNumber>
10777       </fixedLine>
10778       <mobile>
10779         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
10780         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10781         <exampleNumber>7912345678</exampleNumber>
10782       </mobile>
10783       <!-- No tollFree or premiumRate information can be found. -->
10784     </territory>
10785
10786     <!-- Iran, Islamic Republic of -->
10787     <territory id="IR" countryCode="98" internationalPrefix="00"
10788                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10789       <references>
10790         <sourceUrl>http://en.wikipedia.org/wiki/%2B98</sourceUrl>
10791         <sourceUrl>http://www.itu.int/oth/T0202000066/en</sourceUrl>
10792         <sourceUrl>http://www.tct.ir/?siteid=1&amp;pageid=195</sourceUrl>
10793         <sourceUrl>http://118.tct.ir/citycode.htm</sourceUrl>
10794       </references>
10795       <availableFormats>
10796         <!-- Formatting follows wikipedia. -->
10797         <numberFormat pattern="(21)(\d{3,5})">
10798           <leadingDigits>21</leadingDigits>
10799           <format>$1 $2</format>
10800         </numberFormat>
10801         <numberFormat pattern="(2[15])(\d{3})(\d{3,4})">
10802           <leadingDigits>
10803             2(?:
10804               1|
10805               5[0-47-9]
10806             )
10807           </leadingDigits>
10808           <format>$1 $2 $3</format>
10809         </numberFormat>
10810         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10811           <leadingDigits>
10812             2[156]|
10813             31|
10814             51|
10815             71|
10816             86
10817           </leadingDigits>
10818           <format>$1 $2 $3</format>
10819         </numberFormat>
10820         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
10821           <leadingDigits>
10822             [13-9]|
10823             2[02-47-9]
10824           </leadingDigits>
10825           <format>$1 $2 $3</format>
10826         </numberFormat>
10827         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
10828           <leadingDigits>
10829             [13-9]|
10830             2[02-47-9]
10831           </leadingDigits>
10832           <format>$1 $2 $3</format>
10833         </numberFormat>
10834         <numberFormat pattern="(\d{3})(\d{3})">
10835           <leadingDigits>
10836             [13-9]|
10837             2[02-47-9]
10838           </leadingDigits>
10839           <format>$1 $2</format>
10840         </numberFormat>
10841       </availableFormats>
10842       <generalDesc>
10843         <nationalNumberPattern>
10844           [14-8]\d{6,9}|
10845           [23]\d{4,9}|
10846           9(?:
10847             [0-4]\d{8}|
10848             9\d{2,8}
10849           )
10850         </nationalNumberPattern>
10851         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10852       </generalDesc>
10853       <fixedLine>
10854         <!-- We are following the more specific lengths specified in the communication in the ITU
10855              doc of 26.VIII.2012, rather than the brief summary lengths (which actually contradict).
10856              The prefixes have been verified by looking at the Persian telecommunications site.
10857              22[189], 29[12] have become 21, as part of the shift to unify prefixes. 746 was also
10858              found on the website http://www.tct.ir/?siteid=1&pageid=410&siteid=1 but this seems
10859              to be a typo. -->
10860         <nationalNumberPattern>
10861           1(?:
10862             [13-589][12]|
10863             [27][1-4]
10864           )\d{7}|
10865           2(?:
10866             1\d{3,8}|
10867             3[12]\d{7}|
10868             4(?:
10869               1\d{4,7}|
10870               2\d{7}
10871             )|
10872             53\d{7}|
10873             6\d{8}|
10874             7[34]\d{7}|
10875             [89][12]\d{7}
10876           )|
10877           3(?:
10878             1[2-5]\d{7}|
10879             2[1-4]\d{7}|
10880             3(?:
10881               [125]\d{7}|
10882               4\d{6,7}
10883             )|
10884             4(?:
10885               1\d{6,7}
10886               [24-9]\d{7}
10887             )|
10888             5(?:
10889               1\d{4,7}|
10890               [23]\d{7}
10891             )|
10892             [6-9][12]\d{7}
10893           )|
10894           4(?:
10895             [135-9][12]\d{7}|
10896             2[1-467]\d{7}|
10897             4(?:
10898               1\d{4,7}|
10899               [2-4]\d{7}
10900             )
10901           )|
10902           5(?:
10903             1[2-5]\d{7}|
10904             2[89]\d{7}|
10905             3[1-5]\d{7}|
10906             4(?:
10907               1\d{4,7}|
10908               [2-8]\d{7}
10909             )|
10910             [5-7][12]\d{7}|
10911             8[1245]\d{7}
10912           )|
10913           6(?:
10914             1(?:
10915               1\d{6,7}|
10916               2\d{7}
10917             )|
10918             [347-9][12]\d{7}|
10919             5(?:
10920               1\d{7}|
10921               2\d{6,7}
10922             )|
10923             6[1-6]\d{7}
10924           )|
10925           7(?:
10926             1[2-5]|
10927             2[1289]|
10928             [3589][12]|
10929             4[1-4]|
10930             6[1-6]|
10931             7[1-3]
10932           )\d{7}|
10933           8(?:
10934             [145][12]|
10935             3[124578]|
10936             6[2-6]|
10937             7[1245]
10938           )\d{7}
10939         </nationalNumberPattern>
10940         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
10941         <exampleNumber>2123456789</exampleNumber>
10942       </fixedLine>
10943       <mobile>
10944         <nationalNumberPattern>
10945           9(?:
10946             0[12]|
10947             [1-3]\d
10948           )\d{7}
10949         </nationalNumberPattern>
10950         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10951         <exampleNumber>9123456789</exampleNumber>
10952       </mobile>
10953       <pager>
10954         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
10955         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10956         <exampleNumber>9432123456</exampleNumber>
10957       </pager>
10958       <!-- No tollFree or premiumRate information can be found. -->
10959       <voip>
10960         <!-- Includes VSAT and Boomehen Satellite numbers. -->
10961         <nationalNumberPattern>
10962           (?:
10963             [2-6]0\d|
10964             993
10965           )\d{7}
10966         </nationalNumberPattern>
10967         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10968         <exampleNumber>9932123456</exampleNumber>
10969       </voip>
10970       <uan>
10971         <!-- MCI Public Relations numbers -->
10972         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
10973         <exampleNumber>9990123456</exampleNumber>
10974       </uan>
10975     </territory>
10976
10977     <!-- Iceland -->
10978     <territory id="IS" countryCode="354" internationalPrefix="00" mobileNumberPortableRegion="true">
10979       <references>
10980         <sourceUrl>http://www.pta.is/default.aspx?cat_id=85</sourceUrl>
10981         <sourceUrl>http://www.pfs.is/default.aspx?cat_id=14&amp;module_id=210&amp;element_id=4</sourceUrl>
10982       </references>
10983       <availableFormats>
10984         <numberFormat pattern="(\d{3})(\d{4})">
10985           <leadingDigits>[4-9]</leadingDigits>
10986           <format>$1 $2</format>
10987         </numberFormat>
10988         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
10989           <leadingDigits>3</leadingDigits>
10990           <format>$1 $2 $3</format>
10991         </numberFormat>
10992       </availableFormats>
10993       <generalDesc>
10994         <nationalNumberPattern>
10995           [4-9]\d{6}|
10996           38\d{7}
10997         </nationalNumberPattern>
10998         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
10999       </generalDesc>
11000       <fixedLine>
11001         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
11002         <nationalNumberPattern>
11003           (?:
11004             4(?:
11005               1[0-24-6]|
11006               2[0-7]|
11007               [37][0-8]|
11008               4[0-245]|
11009               5[0-3568]|
11010               6\d|
11011               8[0-36-8]
11012             )|
11013             5(?:
11014               05|
11015               [156]\d|
11016               2[02578]|
11017               3[013-7]|
11018               4[03-7]|
11019               7[0-2578]|
11020               8[0-35-9]|
11021               9[013-689]
11022             )|
11023             87[23]
11024           )\d{4}
11025         </nationalNumberPattern>
11026         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11027         <exampleNumber>4101234</exampleNumber>
11028       </fixedLine>
11029       <mobile>
11030         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
11031         <nationalNumberPattern>
11032           38[589]\d{6}|
11033           (?:
11034             6(?:
11035               1[1-8]|
11036               3[089]|
11037               4[0167]|
11038               5[019]|
11039               [67][0-69]|
11040               9\d
11041             )|
11042             7(?:
11043               5[057]|
11044               7\d|
11045               8[0-36-8]
11046             )|
11047             8(?:
11048               2[0-5]|
11049               3[0-4]|
11050               [469]\d|
11051               5[1-9]
11052             )
11053           )\d{4}
11054         </nationalNumberPattern>
11055         <exampleNumber>6111234</exampleNumber>
11056       </mobile>
11057       <tollFree>
11058         <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
11059              numbers can be found online, and it is not clear what these are; the standard
11060              definition would have them under the +800 country code instead of Iceland. -->
11061         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
11062         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11063         <exampleNumber>8001234</exampleNumber>
11064       </tollFree>
11065       <premiumRate>
11066         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
11067         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11068         <exampleNumber>9011234</exampleNumber>
11069       </premiumRate>
11070       <voip>
11071         <nationalNumberPattern>49\d{5}</nationalNumberPattern>
11072         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11073         <exampleNumber>4921234</exampleNumber>
11074       </voip>
11075       <voicemail>
11076         <nationalNumberPattern>
11077           (?:
11078             6(?:
11079               2[0-8]|
11080               49|
11081               8\d
11082             )|
11083             87[0189]|
11084             95[48]
11085           )\d{4}
11086         </nationalNumberPattern>
11087         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11088         <exampleNumber>6201234</exampleNumber>
11089       </voicemail>
11090     </territory>
11091
11092     <!-- Italy -->
11093     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true"
11094                mobileNumberPortableRegion="true">
11095       <references>
11096         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
11097       </references>
11098       <availableFormats>
11099         <!-- The leading zero for fixed numbers will be prepended before the matching of these
11100              regular expressions. -->
11101         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
11102           <leadingDigits>
11103             0[26]|
11104             55
11105           </leadingDigits>
11106           <format>$1 $2 $3</format>
11107         </numberFormat>
11108         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
11109           <leadingDigits>0[26]</leadingDigits>
11110           <format>$1 $2 $3</format>
11111         </numberFormat>
11112         <numberFormat pattern="(0[26])(\d{4,6})">
11113           <leadingDigits>0[26]</leadingDigits>
11114           <format>$1 $2</format>
11115         </numberFormat>
11116         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
11117           <leadingDigits>0[13-57-9][0159]</leadingDigits>
11118           <format>$1 $2 $3</format>
11119         </numberFormat>
11120         <numberFormat pattern="(\d{3})(\d{3,6})">
11121           <leadingDigits>
11122             0[13-57-9][0159]|
11123             8(?:
11124               03|
11125               4[17]|
11126               9[245]
11127             )
11128           </leadingDigits>
11129           <leadingDigits>
11130             0[13-57-9][0159]|
11131             8(?:
11132               03|
11133               4[17]|
11134               9(?:
11135                 2|
11136                 [45][0-4]
11137               )
11138             )
11139           </leadingDigits>
11140           <format>$1 $2</format>
11141         </numberFormat>
11142         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
11143           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11144           <format>$1 $2 $3</format>
11145         </numberFormat>
11146         <numberFormat pattern="(0\d{3})(\d{2,6})">
11147           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11148           <format>$1 $2</format>
11149         </numberFormat>
11150         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11151           <leadingDigits>
11152             [13]|
11153             8(?:
11154               00|
11155               4[08]|
11156               9[59]
11157             )
11158           </leadingDigits>
11159           <leadingDigits>
11160             [13]|
11161             8(?:
11162               00|
11163               4[08]|
11164               9(?:
11165                 5[5-9]|
11166                 9
11167               )
11168             )
11169           </leadingDigits>
11170           <format>$1 $2 $3</format>
11171         </numberFormat>
11172         <numberFormat pattern="(\d{4})(\d{4})">
11173           <leadingDigits>894</leadingDigits>
11174           <leadingDigits>894[5-9]</leadingDigits>
11175           <format>$1 $2</format>
11176         </numberFormat>
11177         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
11178           <leadingDigits>3</leadingDigits>
11179           <format>$1 $2 $3</format>
11180         </numberFormat>
11181       </availableFormats>
11182       <generalDesc>
11183         <nationalNumberPattern>
11184           [01589]\d{5,10}|
11185           3(?:
11186             [12457-9]\d{8}|
11187             [36]\d{7,9}
11188           )
11189         </nationalNumberPattern>
11190         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11191       </generalDesc>
11192       <noInternationalDialling>
11193         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
11194         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11195         <exampleNumber>848123456</exampleNumber>
11196       </noInternationalDialling>
11197       <fixedLine>
11198         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
11199              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
11200              found with other prefixes that are 11 digits long as well, so we allow it for all the
11201              three and four digit area codes. -->
11202         <nationalNumberPattern>
11203           0(?:
11204             [26]\d{4,9}|
11205             (?:
11206               1(?:
11207                 [0159]\d|
11208                 [27][1-5]|
11209                 31|
11210                 4[1-4]|
11211                 6[1356]|
11212                 8[2-57]
11213               )|
11214               3(?:
11215                 [0159]\d|
11216                 2[1-4]|
11217                 3[12]|
11218                 [48][1-6]|
11219                 6[2-59]|
11220                 7[1-7]
11221               )|
11222               4(?:
11223                 [0159]\d|
11224                 [23][1-9]|
11225                 4[245]|
11226                 6[1-5]|
11227                 7[1-4]|
11228                 81
11229               )|
11230               5(?:
11231                 [0159]\d|
11232                 2[1-5]|
11233                 3[2-6]|
11234                 4[1-79]|
11235                 6[4-6]|
11236                 7[1-578]|
11237                 8[3-8]
11238               )|
11239               7(?:
11240                 [0159]\d|
11241                 2[12]|
11242                 3[1-7]|
11243                 4[2346]|
11244                 6[13569]|
11245                 7[13-6]|
11246                 8[1-59]
11247               )|
11248               8(?:
11249                 [0159]\d|
11250                 2[34578]|
11251                 3[1-356]|
11252                 [6-8][1-5]
11253               )|
11254               9(?:
11255                 [0159]\d|
11256                 [238][1-5]|
11257                 4[12]|
11258                 6[1-8]|
11259                 7[1-6]
11260               )
11261             )\d{2,7}
11262           )
11263         </nationalNumberPattern>
11264         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11265         <exampleNumber>0212345678</exampleNumber>
11266       </fixedLine>
11267       <mobile>
11268         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
11269              digits long. However, a user reported the existence of new 11 digit long numbers for
11270              TIM with the prefix 33X, so this is supported also. -->
11271         <nationalNumberPattern>
11272           3(?:
11273             [12457-9]\d{8}|
11274             6\d{7,8}|
11275             3\d{7,9}
11276           )
11277         </nationalNumberPattern>
11278         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
11279         <exampleNumber>3123456789</exampleNumber>
11280       </mobile>
11281       <tollFree>
11282         <nationalNumberPattern>
11283           80(?:
11284             0\d{6}|
11285             3\d{3}
11286           )
11287         </nationalNumberPattern>
11288         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11289         <exampleNumber>800123456</exampleNumber>
11290       </tollFree>
11291       <premiumRate>
11292         <!-- Adding 0878 numbers, as per
11293              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
11294              premium prefixes are mentioned here:
11295              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
11296         <nationalNumberPattern>
11297           0878\d{5}|
11298           1(?:
11299             44|
11300             6[346]
11301           )\d{6}|
11302           89(?:
11303             2\d{3}|
11304             4(?:
11305               [0-4]\d{2}|
11306               [5-9]\d{4}
11307             )|
11308             5(?:
11309               [0-4]\d{2}|
11310               [5-9]\d{6}
11311             )|
11312             9\d{6}
11313           )
11314         </nationalNumberPattern>
11315         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11316         <exampleNumber>899123456</exampleNumber>
11317       </premiumRate>
11318       <sharedCost>
11319         <nationalNumberPattern>
11320           84(?:
11321             [08]\d{6}|
11322             [17]\d{3}
11323           )
11324         </nationalNumberPattern>
11325         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11326         <exampleNumber>848123456</exampleNumber>
11327       </sharedCost>
11328       <personalNumber>
11329         <nationalNumberPattern>
11330           1(?:
11331             78\d|
11332             99
11333           )\d{6}
11334         </nationalNumberPattern>
11335         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
11336         <exampleNumber>1781234567</exampleNumber>
11337       </personalNumber>
11338       <voip>
11339         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
11340         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11341         <exampleNumber>5512345678</exampleNumber>
11342       </voip>
11343     </territory>
11344
11345     <!-- Jersey -->
11346     <!-- Inherits formatting rules from the UK. -->
11347     <territory id="JE" countryCode="44" internationalPrefix="00"
11348                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
11349       <references>
11350         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
11351         <sourceUrl>http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&amp;childID=1036</sourceUrl>
11352       </references>
11353       <generalDesc>
11354         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
11355         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11356       </generalDesc>
11357       <areaCodeOptional>
11358         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
11359         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11360         <exampleNumber>1534250123</exampleNumber>
11361       </areaCodeOptional>
11362       <!-- Specific to JE. -->
11363       <fixedLine>
11364         <!-- 1534 with 10 digits. -->
11365         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
11366         <exampleNumber>1534456789</exampleNumber>
11367       </fixedLine>
11368       <mobile>
11369         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
11370         <nationalNumberPattern>
11371           7(?:
11372             509|
11373             7(?:
11374               00|
11375               97
11376             )|
11377             829|
11378             937
11379           )\d{6}
11380         </nationalNumberPattern>
11381         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11382         <exampleNumber>7797123456</exampleNumber>
11383       </mobile>
11384       <pager>
11385         <!-- Pager numbers as per GB. -->
11386         <nationalNumberPattern>
11387           76(?:
11388             0[012]|
11389             2[356]|
11390             4[0134]|
11391             5[49]|
11392             6[0-369]|
11393             77|
11394             81|
11395             9[39]
11396           )\d{6}
11397         </nationalNumberPattern>
11398         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11399         <exampleNumber>7640123456</exampleNumber>
11400       </pager>
11401       <!-- Specific to JE. -->
11402       <tollFree>
11403         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
11404         <nationalNumberPattern>
11405           80(?:
11406             07(?:
11407               35|
11408               81
11409             )|
11410             8901
11411           )\d{4}
11412         </nationalNumberPattern>
11413         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11414         <exampleNumber>8007354567</exampleNumber>
11415       </tollFree>
11416       <premiumRate>
11417         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
11418         <nationalNumberPattern>
11419           (?:
11420             871206|
11421             90(?:
11422               066[59]|
11423               1810|
11424               71(?:
11425                 07|
11426                 55
11427               )
11428             )
11429           )\d{4}
11430         </nationalNumberPattern>
11431         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11432         <exampleNumber>9018105678</exampleNumber>
11433       </premiumRate>
11434       <sharedCost>
11435         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
11436         <nationalNumberPattern>
11437           8(?:
11438             4(?:
11439               4(?:
11440                 4(?:
11441                   05|
11442                   42|
11443                   69
11444                 )|
11445                 703
11446               )|
11447               5(?:
11448                 041|
11449                 800
11450               )
11451             )|
11452             70002
11453           )\d{4}
11454         </nationalNumberPattern>
11455         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11456         <exampleNumber>8447034567</exampleNumber>
11457       </sharedCost>
11458       <personalNumber>
11459         <!-- 70 1511 with 10 digits. -->
11460         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
11461         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11462         <exampleNumber>7015115678</exampleNumber>
11463       </personalNumber>
11464       <voip>
11465         <!-- VoIP numbers as per GB. -->
11466         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
11467         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11468         <exampleNumber>5612345678</exampleNumber>
11469       </voip>
11470       <uan>
11471         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
11472              370 002, 371 206, 55 with 10 digits. -->
11473         <nationalNumberPattern>
11474           3(?:
11475             0(?:
11476               07(?:
11477                 35|
11478                 81
11479               )|
11480               8901
11481             )|
11482             3\d{4}|
11483             4(?:
11484               4(?:
11485                 4(?:
11486                   05|
11487                   42|
11488                   69
11489                 )|
11490                 703
11491               )|
11492               5(?:
11493                 041|
11494                 800
11495               )
11496             )|
11497             7(?:
11498               0002|
11499               1206
11500             )
11501           )\d{4}|
11502           55\d{8}
11503         </nationalNumberPattern>
11504         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11505         <exampleNumber>5512345678</exampleNumber>
11506       </uan>
11507     </territory>
11508
11509     <!-- Jamaica -->
11510     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
11511                internationalPrefix="011">
11512       <references>
11513         <sourceUrl>http://www.itu.int/oth/T020200006C/en</sourceUrl>
11514       </references>
11515       <generalDesc>
11516         <!-- NANPA country - uses US formatting rules -->
11517         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
11518         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
11519       </generalDesc>
11520       <fixedLine>
11521         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
11522         <nationalNumberPattern>
11523           876(?:
11524             5(?:
11525               0[12]|
11526               1[0-468]|
11527               2[35]|
11528               63
11529             )|
11530             6(?:
11531               0[1-3579]|
11532               1[027-9]|
11533               [23]\d|
11534               40|
11535               5[06]|
11536               6[2-589]|
11537               7[05]|
11538               8[04]|
11539               9[4-9]
11540             )|
11541             7(?:
11542               0[2-689]|
11543               [1-6]\d|
11544               8[056]|
11545               9[45]
11546             )|
11547             9(?:
11548               0[1-8]|
11549               1[02378]|
11550               [2-8]\d|
11551               9[2-468]
11552             )
11553           )\d{4}
11554         </nationalNumberPattern>
11555         <exampleNumber>8765123456</exampleNumber>
11556       </fixedLine>
11557       <mobile>
11558         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
11559              be valid by sending SMSs and looking at online number lookup sites.
11560
11561              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
11562              Most have mobile numbers online so we have put them under mobile but is possible
11563              they are a mixture of fixed line and mobile. -->
11564         <nationalNumberPattern>
11565           876(?:
11566             2[1789]\d|
11567             [348]\d{2}|
11568             5(?:
11569               08|
11570               27|
11571               6[0-24-9]|
11572               [3-578]\d
11573             )|
11574             7(?:
11575               0[07]|
11576               7\d|
11577               8[1-47-9]|
11578               9[0-36-9]
11579             )|
11580             9(?:
11581               [01]9|
11582               9[0579]
11583             )
11584           )\d{4}
11585         </nationalNumberPattern>
11586         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11587         <exampleNumber>8762101234</exampleNumber>
11588       </mobile>
11589       <tollFree>
11590         <nationalNumberPattern>
11591           8(?:
11592             00|
11593             44|
11594             55|
11595             66|
11596             77|
11597             88
11598           )[2-9]\d{6}
11599         </nationalNumberPattern>
11600         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11601         <exampleNumber>8002123456</exampleNumber>
11602       </tollFree>
11603       <premiumRate>
11604         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
11605         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11606         <exampleNumber>9002123456</exampleNumber>
11607       </premiumRate>
11608       <personalNumber>
11609         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
11610         <nationalNumberPattern>
11611           5(?:
11612             00|
11613             33|
11614             44|
11615             66|
11616             77
11617           )[2-9]\d{6}
11618         </nationalNumberPattern>
11619         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11620         <exampleNumber>5002345678</exampleNumber>
11621       </personalNumber>
11622     </territory>
11623
11624     <!-- Jordan -->
11625     <territory id="JO" countryCode="962" internationalPrefix="00"
11626                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
11627                mobileNumberPortableRegion="true">
11628       <references>
11629         <sourceUrl>http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english</sourceUrl>
11630         <sourceUrl>http://www.itu.int/oth/T020200006E/en</sourceUrl>
11631         <sourceUrl>http://en.wikipedia.org/wiki/%2B962</sourceUrl>
11632       </references>
11633       <availableFormats>
11634         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
11635           pattern="(\d)(\d{3})(\d{4})">
11636           <leadingDigits>
11637             [2356]|
11638             87
11639           </leadingDigits>
11640           <format>$1 $2 $3</format>
11641         </numberFormat>
11642         <numberFormat pattern="(7)(\d{4})(\d{4})">
11643           <leadingDigits>7[457-9]</leadingDigits>
11644           <format>$1 $2 $3</format>
11645         </numberFormat>
11646         <numberFormat pattern="(\d{3})(\d{5,6})">
11647           <leadingDigits>
11648             70|
11649             8[0158]|
11650             9
11651           </leadingDigits>
11652           <format>$1 $2</format>
11653         </numberFormat>
11654       </availableFormats>
11655       <generalDesc>
11656         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
11657         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11658       </generalDesc>
11659       <fixedLine>
11660         <nationalNumberPattern>
11661           (?:
11662             2(?:
11663               6(?:
11664                 2[0-35-9]|
11665                 3[0-57-8]|
11666                 4[24-7]|
11667                 5[0-24-8]|
11668                 [6-8][02]|
11669                 9[0-2]
11670               )|
11671               7(?:
11672                 0[1-79]|
11673                 10|
11674                 2[014-7]|
11675                 3[0-689]|
11676                 4[019]|
11677                 5[0-3578]
11678               )
11679             )|
11680             32(?:
11681               0[1-69]|
11682               1[1-35-7]|
11683               2[024-7]|
11684               3\d|
11685               4[0-2]|
11686               [57][02]|
11687               60
11688             )|
11689             53(?:
11690               0[0-2]|
11691               [13][02]|
11692               2[0-59]|
11693               49|
11694               5[0-35-9]|
11695               6[15]|
11696               7[45]|
11697               8[1-6]|
11698               9[0-36-9]
11699             )|
11700             6(?:
11701               2[50]0|
11702               300|
11703               4(?:
11704                 0[0125]|
11705                 1[2-7]|
11706                 2[0569]|
11707                 [38][07-9]|
11708                 4[025689]|
11709                 6[0-589]|
11710                 7\d|
11711                 9[0-2]
11712               )|
11713               5(?:
11714                 [01][056]|
11715                 2[034]|
11716                 3[0-57-9]|
11717                 4[17-8]|
11718                 5[0-69]|
11719                 6[0-35-9]|
11720                 7[1-379]|
11721                 8[0-68]|
11722                 9[02-39]
11723               )
11724             )|
11725             87(?:
11726               [02]0|
11727               7[08]|
11728               9[09]
11729             )
11730           )\d{4}
11731         </nationalNumberPattern>
11732         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
11733         <exampleNumber>62001234</exampleNumber>
11734       </fixedLine>
11735       <mobile>
11736         <nationalNumberPattern>
11737           7(?:
11738             55|
11739             7[25-9]|
11740             8[05-9]|
11741             9[015-9]
11742           )\d{6}
11743         </nationalNumberPattern>
11744         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11745         <exampleNumber>790123456</exampleNumber>
11746       </mobile>
11747       <pager>
11748         <nationalNumberPattern>
11749           74(?:
11750             66|
11751             77
11752           )\d{5}
11753         </nationalNumberPattern>
11754         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11755         <exampleNumber>746612345</exampleNumber>
11756       </pager>
11757       <tollFree>
11758         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
11759         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11760         <exampleNumber>80012345</exampleNumber>
11761       </tollFree>
11762       <premiumRate>
11763         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
11764         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11765         <exampleNumber>90012345</exampleNumber>
11766       </premiumRate>
11767       <sharedCost>
11768         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
11769         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11770         <exampleNumber>85012345</exampleNumber>
11771       </sharedCost>
11772       <personalNumber>
11773         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
11774         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11775         <exampleNumber>700123456</exampleNumber>
11776       </personalNumber>
11777       <uan>
11778         <!-- These numbers are Location Independent Services / Fixed cost according to
11779              http://www.trc.gov.jo -->
11780         <nationalNumberPattern>
11781           8(?:
11782             10|
11783             8\d
11784           )\d{5}
11785         </nationalNumberPattern>
11786         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11787         <exampleNumber>88101234</exampleNumber>
11788       </uan>
11789     </territory>
11790
11791     <!-- Japan -->
11792     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
11793                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true"
11794                mobileNumberPortableRegion="true">
11795       <references>
11796         <sourceUrl>http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html</sourceUrl>
11797         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=JP</sourceUrl>
11798       </references>
11799       <availableFormats>
11800         <!-- Toll-free, premium-rate and UAN numbers -->
11801         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
11802           <leadingDigits>
11803             (?:
11804               12|
11805               57|
11806               99
11807             )0
11808           </leadingDigits>
11809           <format>$1-$2-$3</format>
11810         </numberFormat>
11811         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
11812           <leadingDigits>800</leadingDigits>
11813           <format>$1-$2-$3</format>
11814         </numberFormat>
11815         <!-- National-only toll-free numbers (0037, 0066, 0077 and 0088). -->
11816         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
11817           <leadingDigits>0077</leadingDigits>
11818           <format>$1-$2</format>
11819           <intlFormat>NA</intlFormat>
11820         </numberFormat>
11821         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{3,4})">
11822           <leadingDigits>0077</leadingDigits>
11823           <format>$1-$2-$3</format>
11824           <intlFormat>NA</intlFormat>
11825         </numberFormat>
11826         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{4})">
11827           <leadingDigits>0088</leadingDigits>
11828           <format>$1-$2-$3</format>
11829           <intlFormat>NA</intlFormat>
11830         </numberFormat>
11831         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3,4})">
11832           <leadingDigits>
11833             00(?:
11834                37|
11835                66
11836             )
11837           </leadingDigits>
11838           <format>$1-$2-$3</format>
11839           <intlFormat>NA</intlFormat>
11840         </numberFormat>
11841         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})(\d{4,5})">
11842           <leadingDigits>
11843             00(?:
11844                37|
11845                66
11846             )
11847           </leadingDigits>
11848           <format>$1-$2-$3</format>
11849           <intlFormat>NA</intlFormat>
11850         </numberFormat>
11851         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{5})(\d{5,6})">
11852           <leadingDigits>
11853             00(?:
11854                37|
11855                66
11856             )
11857           </leadingDigits>
11858           <format>$1-$2-$3</format>
11859           <intlFormat>NA</intlFormat>
11860         </numberFormat>
11861         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{6})(\d{6,7})">
11862           <leadingDigits>
11863             00(?:
11864                37|
11865                66
11866             )
11867           </leadingDigits>
11868           <format>$1-$2-$3</format>
11869           <intlFormat>NA</intlFormat>
11870         </numberFormat>
11871         <!-- Some leading digits are explicitly reserved for a particular purpose.
11872              We handle them first in this rule, and let the following rules ignore those exceptions.
11873              Note: The rule here is not in the files we rely on when creating the other rules.
11874                    We would need to manually modify it if the Japanese goverment
11875                    decided to change the rule.
11876
11877              (prefix): purpose
11878              "20": Pagers
11879              "50": IP phone
11880              "70": PHS (Personal Handy-phone System, which has been used in Japan
11881                    with Non-3G, Japanese-specific protocol).
11882                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
11883              "80" and "90": Mobile phone
11884           -->
11885         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
11886           <leadingDigits>
11887             [2579]0|
11888             80[1-9]
11889           </leadingDigits>
11890           <format>$1-$2-$3</format>
11891         </numberFormat>
11892         <!-- The order of the reg-exps are important.
11893              Examples (not all):
11894              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
11895              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
11896              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
11897              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
11898              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
11899              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
11900           -->
11901         <numberFormat pattern="(\d{4})(\d)(\d{4})">
11902           <leadingDigits>
11903             1(?:
11904               26|
11905               3[79]|
11906               4[56]|
11907               5[4-68]|
11908               6[3-5]
11909             )|
11910             5(?:
11911               76|
11912               97
11913             )|
11914             499|
11915             746|
11916             8(?:
11917               3[89]|
11918               63|
11919               47|
11920               51
11921             )|
11922             9(?:
11923               49|
11924               80|
11925               9[16]
11926             )
11927           </leadingDigits>
11928           <leadingDigits>
11929             1(?:
11930               267|
11931               3(?:
11932                 7[247]|
11933                 9[278]
11934               )|
11935               4(?:
11936                 5[67]|
11937                 66
11938               )|
11939               5(?:
11940                 47|
11941                 58|
11942                 64|
11943                 8[67]
11944               )|
11945               6(?:
11946                 3[245]|
11947                 48|
11948                 5[4-68]
11949               )
11950             )|
11951             5(?:
11952               76|
11953               97
11954             )9|
11955             499[2468]|
11956             7468|
11957             8(?:
11958               3(?:
11959                 8[78]|
11960                 96
11961               )|
11962               636|
11963               477|
11964               51[24]
11965             )|
11966             9(?:
11967               496|
11968               802|
11969               9(?:
11970                 1[23]|
11971                 69
11972               )
11973             )
11974           </leadingDigits>
11975           <leadingDigits>
11976             1(?:
11977               267|
11978               3(?:
11979                 7[247]|
11980                 9[278]
11981               )|
11982               4(?:
11983                 5[67]|
11984                 66
11985               )|
11986               5(?:
11987                 47|
11988                 58|
11989                 64|
11990                 8[67]
11991               )|
11992               6(?:
11993                 3[245]|
11994                 48|
11995                 5[4-68]
11996               )
11997             )|
11998             5(?:
11999               769|
12000               979[2-69]
12001             )|
12002             499[2468]|
12003             7468|
12004             8(?:
12005               3(?:
12006                 8[78]|
12007                 96[2457-9]
12008               )|
12009               636[2-57-9]|
12010               477|
12011               51[24]
12012             )|
12013             9(?:
12014               496|
12015               802|
12016               9(?:
12017                 1[23]|
12018                 69
12019               )
12020             )
12021           </leadingDigits>
12022           <format>$1-$2-$3</format>
12023         </numberFormat>
12024         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12025           <leadingDigits>
12026             1(?:
12027               2[3-6]|
12028               3[3-9]|
12029               4[2-6]|
12030               5[2-8]|
12031               [68][2-7]|
12032               7[2-689]|
12033               9[1-578]
12034             )|
12035             2(?:
12036               2[03-689]|
12037               3[3-58]|
12038               4[0-468]|
12039               5[04-8]|
12040               6[013-8]|
12041               7[06-9]|
12042               8[02-57-9]|
12043               9[13]
12044             )|
12045             4(?:
12046               2[28]|
12047               3[689]|
12048               6[035-7]|
12049               7[05689]|
12050               80|
12051               9[3-5]
12052             )|
12053             5(?:
12054               3[1-36-9]|
12055               4[4578]|
12056               5[013-8]|
12057               6[1-9]|
12058               7[2-8]|
12059               8[14-7]|
12060               9[4-9]
12061             )|
12062             7(?:
12063               2[15]|
12064               3[5-9]|
12065               4[02-9]|
12066               6[135-8]|
12067               7[0-4689]|
12068               9[014-9]
12069             )|
12070             8(?:
12071               2[49]|
12072               3[3-8]|
12073               4[5-8]|
12074               5[2-9]|
12075               6[35-9]|
12076               7[579]|
12077               8[03-579]|
12078               9[2-8]
12079             )|
12080             9(?:
12081               [23]0|
12082               4[02-46-9]|
12083               5[024-79]|
12084               6[4-9]|
12085               7[2-47-9]|
12086               8[02-7]|
12087               9[3-7]
12088             )
12089           </leadingDigits>
12090           <leadingDigits>
12091             1(?:
12092               2[3-6]|
12093               3[3-9]|
12094               4[2-6]|
12095               5(?:
12096                 [236-8]|
12097                 [45][2-69]
12098               )|
12099               [68][2-7]|
12100               7[2-689]|
12101               9[1-578]
12102             )|
12103             2(?:
12104               2(?:
12105                 [04-689]|
12106                 3[23]
12107               )|
12108               3[3-58]|
12109               4[0-468]|
12110               5(?:
12111                 5[78]|
12112                 7[2-4]|
12113                 [0468][2-9]
12114               )|
12115               6(?:
12116                 [0135-8]|
12117                 4[2-5]
12118               )|
12119               7(?:
12120                 [0679]|
12121                 8[2-7]
12122               )|
12123               8(?:
12124                 [024578]|
12125                 3[25-9]|
12126                 9[6-9]
12127               )|
12128               9(?:
12129                 11|
12130                 3[2-4]
12131               )
12132             )|
12133             4(?:
12134               2(?:
12135                 2[2-9]|
12136                 8[237-9]
12137               )|
12138               3[689]|
12139               6[035-7]|
12140               7(?:
12141                 [059][2-8]|
12142                 [68]
12143               )|
12144               80|
12145               9[3-5]
12146             )|
12147             5(?:
12148               3[1-36-9]|
12149               4[4578]|
12150               5[013-8]|
12151               6[1-9]|
12152               7[2-8]|
12153               8[14-7]|
12154               9(?:
12155                 [89][2-8]|
12156                 [4-7]
12157               )
12158             )|
12159             7(?:
12160               2[15]|
12161               3[5-9]|
12162               4[02-9]|
12163               6[135-8]|
12164               7[0-4689]|
12165               9(?:
12166                 [017-9]|
12167                 4[6-8]|
12168                 5[2-478]|
12169                 6[2-589]
12170               )
12171             )|
12172             8(?:
12173               2(?:
12174                 4[4-8]|
12175                 9[2-8]
12176               )|
12177               3(?:
12178                 7[2-6]|
12179                 [3-6][2-9]|
12180                 8[2-5]
12181               )|
12182               4[5-8]|
12183               5[2-9]|
12184               6(?:
12185                 [37]|
12186                 5[4-7]|
12187                 6[2-9]|
12188                 8[2-8]|
12189                 9[236-9]
12190               )|
12191               7[579]|
12192               8[03-579]|
12193               9[2-8]
12194             )|
12195             9(?:
12196               [23]0|
12197               4[02-46-9]|
12198               5[024-79]|
12199               6[4-9]|
12200               7[2-47-9]|
12201               8[02-7]|
12202               9(?:
12203                 3[34]|
12204                 [4-7]
12205               )
12206             )
12207           </leadingDigits>
12208           <leadingDigits>
12209             1(?:
12210               2[3-6]|
12211               3[3-9]|
12212               4[2-6]|
12213               5(?:
12214                 [236-8]|
12215                 [45][2-69]
12216               )|
12217               [68][2-7]|
12218               7[2-689]|
12219               9[1-578]
12220             )|
12221             2(?:
12222               2(?:
12223                 [04-689]|
12224                 3[23]
12225               )|
12226               3[3-58]|
12227               4[0-468]|
12228               5(?:
12229                 5[78]|
12230                 7[2-4]|
12231                 [0468][2-9]
12232               )|
12233               6(?:
12234                 [0135-8]|
12235                 4[2-5]
12236               )|
12237               7(?:
12238                 [0679]|
12239                 8[2-7]
12240               )|
12241               8(?:
12242                 [024578]|
12243                 3[25-9]|
12244                 9[6-9]
12245               )|
12246               9(?:
12247                 11|
12248                 3[2-4]
12249               )
12250             )|
12251             4(?:
12252               2(?:
12253                 2[2-9]|
12254                 8[237-9]
12255               )|
12256               3[689]|
12257               6[035-7]|
12258               7(?:
12259                 [059][2-8]|
12260                 [68]
12261               )|
12262               80|
12263               9[3-5]
12264             )|
12265             5(?:
12266               3[1-36-9]|
12267               4[4578]|
12268               5[013-8]|
12269               6[1-9]|
12270               7[2-8]|
12271               8[14-7]|
12272               9(?:
12273                 [89][2-8]|
12274                 [4-7]
12275               )
12276             )|
12277             7(?:
12278               2[15]|
12279               3[5-9]|
12280               4[02-9]|
12281               6[135-8]|
12282               7[0-4689]|
12283               9(?:
12284                 [017-9]|
12285                 4[6-8]|
12286                 5[2-478]|
12287                 6[2-589]
12288               )
12289             )|
12290             8(?:
12291               2(?:
12292                 4[4-8]|
12293                 9(?:
12294                   [3578]|
12295                   20|
12296                   4[04-9]|
12297                   6[56]
12298                 )
12299               )|
12300               3(?:
12301                 7(?:
12302                   [2-5]|
12303                   6[0-59]
12304                 )|
12305                 [3-6][2-9]|
12306                 8[2-5]
12307               )|
12308               4[5-8]|
12309               5[2-9]|
12310               6(?:
12311                 [37]|
12312                 5(?:
12313                   [467]|
12314                   5[014-9]
12315                 )|
12316                 6(?:
12317                   [2-8]|
12318                   9[02-69]
12319                 )|
12320                 8[2-8]|
12321                 9(?:
12322                   [236-8]|
12323                   9[23]
12324                 )
12325               )|
12326               7[579]|
12327               8[03-579]|
12328               9[2-8]
12329             )|
12330             9(?:
12331               [23]0|
12332               4[02-46-9]|
12333               5[024-79]|
12334               6[4-9]|
12335               7[2-47-9]|
12336               8[02-7]|
12337               9(?:
12338                 3(?:
12339                   3[02-9]|
12340                   4[0-24689]
12341                 )|
12342                 4[2-69]|
12343                 [5-7]
12344               )
12345             )
12346           </leadingDigits>
12347           <leadingDigits>
12348             1(?:
12349               2[3-6]|
12350               3[3-9]|
12351               4[2-6]|
12352               5(?:
12353                 [236-8]|
12354                 [45][2-69]
12355               )|
12356               [68][2-7]|
12357               7[2-689]|
12358               9[1-578]
12359             )|
12360             2(?:
12361               2(?:
12362                 [04-689]|
12363                 3[23]
12364               )|
12365               3[3-58]|
12366               4[0-468]|
12367               5(?:
12368                 5[78]|
12369                 7[2-4]|
12370                 [0468][2-9]
12371               )|
12372               6(?:
12373                 [0135-8]|
12374                 4[2-5]
12375               )|
12376               7(?:
12377                 [0679]|
12378                 8[2-7]
12379               )|
12380               8(?:
12381                 [024578]|
12382                 3[25-9]|
12383                 9[6-9]
12384               )|
12385               9(?:
12386                 11|
12387                 3[2-4]
12388               )
12389             )|
12390             4(?:
12391               2(?:
12392                 2[2-9]|
12393                 8[237-9]
12394               )|
12395               3[689]|
12396               6[035-7]|
12397               7(?:
12398                 [059][2-8]|
12399                 [68]
12400               )|
12401               80|
12402               9[3-5]
12403             )|
12404             5(?:
12405               3[1-36-9]|
12406               4[4578]|
12407               5[013-8]|
12408               6[1-9]|
12409               7[2-8]|
12410               8[14-7]|
12411               9(?:
12412                 [89][2-8]|
12413                 [4-7]
12414               )
12415             )|
12416             7(?:
12417               2[15]|
12418               3[5-9]|
12419               4[02-9]|
12420               6[135-8]|
12421               7[0-4689]|
12422               9(?:
12423                 [017-9]|
12424                 4[6-8]|
12425                 5[2-478]|
12426                 6[2-589]
12427               )
12428             )|
12429             8(?:
12430               2(?:
12431                 4[4-8]|
12432                 9(?:
12433                   [3578]|
12434                   20|
12435                   4[04-9]|
12436                   6(?:
12437                     5[25]|
12438                     60
12439                   )
12440                 )
12441               )|
12442               3(?:
12443                 7(?:
12444                   [2-5]|
12445                   6[0-59]
12446                 )|
12447                 [3-6][2-9]|
12448                 8[2-5]
12449               )|
12450               4[5-8]|
12451               5[2-9]|
12452               6(?:
12453                 [37]|
12454                 5(?:
12455                   [467]|
12456                   5[014-9]
12457                 )|
12458                 6(?:
12459                   [2-8]|
12460                   9[02-69]
12461                 )|
12462                 8[2-8]|
12463                 9(?:
12464                   [236-8]|
12465                   9[23]
12466                 )
12467               )|
12468               7[579]|
12469               8[03-579]|
12470               9[2-8]
12471             )|
12472             9(?:
12473               [23]0|
12474               4[02-46-9]|
12475               5[024-79]|
12476               6[4-9]|
12477               7[2-47-9]|
12478               8[02-7]|
12479               9(?:
12480                 3(?:
12481                   3[02-9]|
12482                   4[0-24689]
12483                 )|
12484                 4[2-69]|
12485                 [5-7]
12486               )
12487             )
12488           </leadingDigits>
12489           <format>$1-$2-$3</format>
12490         </numberFormat>
12491         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12492           <leadingDigits>
12493             1|
12494             2(?:
12495               2[37]|
12496               5[5-9]|
12497               64|
12498               78|
12499               8[39]|
12500               91
12501             )|
12502             4(?:
12503               2[2689]|
12504               64|
12505               7[347]
12506             )|
12507             5(?:
12508               [2-589]|
12509               39
12510             )|
12511             60|
12512             8(?:
12513               [46-9]|
12514               3[279]|
12515               2[124589]
12516             )|
12517             9(?:
12518               [235-8]|
12519               93
12520             )
12521           </leadingDigits>
12522           <leadingDigits>
12523             1|
12524             2(?:
12525               2[37]|
12526               5(?:
12527                 [57]|
12528                 [68]0|
12529                 9[19]
12530               )|
12531               64|
12532               78|
12533               8[39]|
12534               917
12535             )|
12536             4(?:
12537               2(?:
12538                 [68]|
12539                 20|
12540                 9[178]
12541               )|
12542               64|
12543               7[347]
12544             )|
12545             5(?:
12546               [2-589]|
12547               39[67]
12548             )|
12549             60|
12550             8(?:
12551               [46-9]|
12552               3[279]|
12553               2[124589]
12554             )|
12555             9(?:
12556               [235-8]|
12557               93[34]
12558             )
12559           </leadingDigits>
12560           <leadingDigits>
12561             1|
12562             2(?:
12563               2[37]|
12564               5(?:
12565                 [57]|
12566                 [68]0|
12567                 9(?:
12568                   17|
12569                   99
12570                 )
12571               )|
12572               64|
12573               78|
12574               8[39]|
12575               917
12576             )|
12577             4(?:
12578               2(?:
12579                 [68]|
12580                 20|
12581                 9[178]
12582               )|
12583               64|
12584               7[347]
12585             )|
12586             5(?:
12587               [2-589]|
12588               39[67]
12589             )|
12590             60|
12591             8(?:
12592               [46-9]|
12593               3[279]|
12594               2[124589]
12595             )|
12596             9(?:
12597               [235-8]|
12598               93(?:
12599                 31|
12600                 4
12601               )
12602             )
12603           </leadingDigits>
12604           <format>$1-$2-$3</format>
12605         </numberFormat>
12606         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12607           <leadingDigits>
12608             2(?:
12609               9[14-79]|
12610               74|
12611               [34]7|
12612               [56]9
12613             )|
12614             82|
12615             993
12616           </leadingDigits>
12617           <format>$1-$2-$3</format>
12618         </numberFormat>
12619         <numberFormat pattern="(\d)(\d{4})(\d{4})">
12620           <leadingDigits>
12621             3|
12622             4(?:
12623               2[09]|
12624               7[01]
12625             )|
12626             6[1-9]
12627           </leadingDigits>
12628           <format>$1-$2-$3</format>
12629         </numberFormat>
12630         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12631           <leadingDigits>[2479][1-9]</leadingDigits>
12632           <format>$1-$2-$3</format>
12633         </numberFormat>
12634       </availableFormats>
12635       <generalDesc>
12636         <nationalNumberPattern>
12637           [1-9]\d{8,9}|
12638           00(?:
12639              [36]\d{7,14}|
12640              7\d{5,7}|
12641              8\d{7}
12642           )
12643         </nationalNumberPattern>
12644         <possibleNumberPattern>\d{8,17}</possibleNumberPattern>
12645       </generalDesc>
12646       <noInternationalDialling>
12647         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
12648         <nationalNumberPattern>
12649           00(?:
12650              37\d{6,13}|
12651              66\d{6,13}|
12652              777(?:
12653                [01]\d{2}|
12654                5\d{3}|
12655                8\d{4}
12656              )|
12657              882[1245]\d{4}
12658           )
12659         </nationalNumberPattern>
12660         <exampleNumber>00777012</exampleNumber>
12661       </noInternationalDialling>
12662       <fixedLine>
12663         <nationalNumberPattern>
12664           (?:
12665             1(?:
12666               1[235-8]|
12667               2[3-6]|
12668               3[3-9]|
12669               4[2-6]|
12670               [58][2-8]|
12671               6[2-7]|
12672               7[2-9]|
12673               9[1-9]
12674             )|
12675             2[2-9]\d|
12676             [36][1-9]\d|
12677             4(?:
12678               6[02-8]|
12679               [2-578]\d|
12680               9[2-59]
12681             )|
12682             5(?:
12683               6[1-9]|
12684               7[2-8]|
12685               [2-589]\d
12686             )|
12687             7(?:
12688               3[4-9]|
12689               4[02-9]|
12690               [25-9]\d
12691             )|
12692             8(?:
12693               3[2-9]|
12694               4[5-9]|
12695               5[1-9]|
12696               8[03-9]|
12697               [2679]\d
12698             )|
12699             9(?:
12700               [679][1-9]|
12701               [2-58]\d
12702             )
12703           )\d{6}
12704         </nationalNumberPattern>
12705         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12706         <exampleNumber>312345678</exampleNumber>
12707       </fixedLine>
12708       <mobile>
12709         <nationalNumberPattern>[7-9]0[1-9]\d{7}</nationalNumberPattern>
12710         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12711         <exampleNumber>7012345678</exampleNumber>
12712       </mobile>
12713       <pager>
12714         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
12715         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12716         <exampleNumber>2012345678</exampleNumber>
12717       </pager>
12718       <tollFree>
12719         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
12720              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
12721              http://eonet.jp/home/denwa/service/access.html
12722              http://ci.fusioncom.co.jp/feature/
12723              http://www.auhikari.jp/service/tel/connection/index.html -->
12724         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
12725              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
12726              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
12727              for now (including both leading 00s). -->
12728         <nationalNumberPattern>
12729           120\d{6}|
12730           800\d{7}|
12731           00(?:
12732              37\d{6,13}|
12733              66\d{6,13}|
12734              777(?:
12735                [01]\d{2}|
12736                5\d{3}|
12737                8\d{4}
12738              )|
12739              882[1245]\d{4}
12740           )
12741         </nationalNumberPattern>
12742         <exampleNumber>120123456</exampleNumber>
12743       </tollFree>
12744       <premiumRate>
12745         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
12746         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12747         <exampleNumber>990123456</exampleNumber>
12748       </premiumRate>
12749       <personalNumber>
12750         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
12751         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12752         <exampleNumber>601234567</exampleNumber>
12753       </personalNumber>
12754       <voip>
12755         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
12756         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12757         <exampleNumber>5012345678</exampleNumber>
12758       </voip>
12759       <!-- Storing "unified number service" as UAN. -->
12760       <uan>
12761         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
12762         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12763         <exampleNumber>570123456</exampleNumber>
12764       </uan>
12765     </territory>
12766
12767     <!-- Kenya -->
12768     <territory id="KE" countryCode="254" internationalPrefix="000"
12769                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
12770                mobileNumberPortableRegion="true">
12771       <references>
12772         <sourceUrl>http://www.cck.go.ke/licensing/numbering/plan.html</sourceUrl>
12773         <sourceUrl>http://en.wikipedia.org/wiki/+254</sourceUrl>
12774       </references>
12775       <availableFormats>
12776         <numberFormat pattern="(\d{2})(\d{5,7})">
12777           <leadingDigits>[24-6]</leadingDigits>
12778           <format>$1 $2</format>
12779         </numberFormat>
12780         <numberFormat pattern="(\d{3})(\d{6,7})">
12781           <leadingDigits>7</leadingDigits>
12782           <format>$1 $2</format>
12783         </numberFormat>
12784         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12785           <leadingDigits>[89]</leadingDigits>
12786           <format>$1 $2 $3</format>
12787         </numberFormat>
12788       </availableFormats>
12789       <generalDesc>
12790         <nationalNumberPattern>
12791           20\d{6,7}|
12792           [4-9]\d{6,9}
12793         </nationalNumberPattern>
12794         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
12795       </generalDesc>
12796       <fixedLine>
12797         <!-- The prefixes 046, 050, 058, and 066 may appear online in less than 9 digits but
12798              calling them has confirmed these are outdated. However a 7-digit 068 number was
12799              dialed successfully so we consider these valid despite the plan. -->
12800         <nationalNumberPattern>
12801           20\d{6,7}|
12802           4(?:
12803             [0136]\d{7}|
12804             [245]\d{5,7}
12805           )|
12806           5(?:
12807             [08]\d{7}|
12808             [1-79]\d{5,7}
12809           )|
12810           6(?:
12811             [01457-9]\d{5,7}|
12812             [26]\d{7}
12813           )
12814         </nationalNumberPattern>
12815         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
12816         <exampleNumber>202012345</exampleNumber>
12817       </fixedLine>
12818       <mobile>
12819         <nationalNumberPattern>
12820           7(?:
12821             [0-36]\d|
12822             5[0-6]|
12823             7[0-5]|
12824             8[0-25-9]
12825           )\d{6}
12826         </nationalNumberPattern>
12827         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12828         <exampleNumber>712123456</exampleNumber>
12829       </mobile>
12830       <tollFree>
12831         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
12832         <!-- The plan suggests 0844 and 0845 may belong here, but these are short numbers rather
12833              than prefixes:
12834              http://www.telkomkenya.8k.com/Products/v/2.html
12835              http://www.kenya-advisor.com/phone-calls-kenya.html
12836              http://www.telkom.co.ke/index.php?option=com_content&view=article&id=64&Itemid=98 -->
12837         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
12838         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12839         <exampleNumber>800223456</exampleNumber>
12840       </tollFree>
12841       <premiumRate>
12842         <nationalNumberPattern>900[02-9]\d{5}</nationalNumberPattern>
12843         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12844         <exampleNumber>900223456</exampleNumber>
12845       </premiumRate>
12846     </territory>
12847
12848     <!-- Kyrgyzstan -->
12849     <territory id="KG" countryCode="996" internationalPrefix="00"
12850                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
12851       <references>
12852         <sourceUrl>http://www.itu.int/oth/T0202000074/en</sourceUrl>
12853       </references>
12854       <availableFormats>
12855         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
12856           <leadingDigits>
12857             [25-7]|
12858             31[25]
12859           </leadingDigits>
12860           <format>$1 $2 $3</format>
12861         </numberFormat>
12862         <numberFormat pattern="(\d{4})(\d{5})">
12863           <leadingDigits>
12864             3(?:
12865               1[36]|
12866               [2-9]
12867             )
12868           </leadingDigits>
12869           <format>$1 $2</format>
12870         </numberFormat>
12871         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
12872           <leadingDigits>8</leadingDigits>
12873           <format>$1 $2 $3 $4</format>
12874         </numberFormat>
12875       </availableFormats>
12876       <generalDesc>
12877         <nationalNumberPattern>[235-8]\d{8,9}</nationalNumberPattern>
12878         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12879       </generalDesc>
12880       <fixedLine>
12881         <!-- Extra area codes found on Web Search: 3147. -->
12882         <nationalNumberPattern>
12883           (?:
12884             3(?:
12885               1(?:
12886                 [256]\d|
12887                 3[1-9]|
12888                 47
12889               )|
12890               2(?:
12891                 22|
12892                 3[0-479]|
12893                 6[0-7]
12894               )|
12895               4(?:
12896                 22|
12897                 5[6-9]|
12898                 6\d
12899               )|
12900               5(?:
12901                 22|
12902                 3[4-7]|
12903                 59|
12904                 6\d
12905               )|
12906               6(?:
12907                 22|
12908                 5[35-7]|
12909                 6\d
12910               )|
12911               7(?:
12912                 22|
12913                 3[468]|
12914                 4[1-9]|
12915                 59|
12916                 [67]\d
12917               )|
12918               9(?:
12919                 22|
12920                 4[1-8]|
12921                 6\d
12922               )
12923             )|
12924             6(?:
12925               09|
12926               12|
12927               2[2-4]
12928             )\d
12929           )\d{5}
12930         </nationalNumberPattern>
12931         <exampleNumber>312123456</exampleNumber>
12932       </fixedLine>
12933       <mobile>
12934         <nationalNumberPattern>
12935           (?:
12936             20[0-35]|
12937             5[124-7]\d|
12938             7[07]\d
12939           )\d{6}
12940         </nationalNumberPattern>
12941         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12942         <exampleNumber>700123456</exampleNumber>
12943       </mobile>
12944       <tollFree>
12945         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
12946              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
12947         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
12948         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12949         <exampleNumber>800123456</exampleNumber>
12950       </tollFree>
12951       <!-- No premiumRate information can be found. -->
12952       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
12953     </territory>
12954
12955     <!-- Cambodia -->
12956     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
12957                nationalPrefix="0">
12958       <references>
12959         <sourceUrl>http://www.itu.int/oth/T0202000023/en</sourceUrl>
12960         <sourceUrl>http://en.wikipedia.org/wiki/+855</sourceUrl>
12961       </references>
12962       <availableFormats>
12963         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
12964           <leadingDigits>
12965             1\d[1-9]|
12966             [2-9]
12967           </leadingDigits>
12968           <format>$1 $2 $3</format>
12969         </numberFormat>
12970         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
12971           <leadingDigits>1[89]0</leadingDigits>
12972           <format>$1 $2 $3</format>
12973         </numberFormat>
12974       </availableFormats>
12975       <generalDesc>
12976         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
12977         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
12978       </generalDesc>
12979       <fixedLine>
12980         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
12981              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
12982              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
12983              range beginning with 6 seems to include some numbers that are one digit longer as well.
12984              Allowing 238\d{6} and 234[234]\d{4} based on information from Cambodia Yellow Pages.
12985              Note that numbers beginning with 234 are split across two patterns. -->
12986         <nationalNumberPattern>
12987           (?:
12988             2[3-6]|
12989             3[2-6]|
12990             4[2-4]|
12991             [5-7][2-5]
12992           )(?:
12993             [237-9]|
12994             4[56]|
12995             5\d|
12996             6\d?
12997           )\d{5}|
12998           23(?:
12999             4[234]|
13000             8\d{2}
13001           )\d{4}
13002         </nationalNumberPattern>
13003         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13004         <exampleNumber>23756789</exampleNumber>
13005       </fixedLine>
13006       <mobile>
13007         <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
13008              Beeline uses 060.
13009              Mobitel uses 01[1247].
13010              Cellcard uses 0857 and 061.
13011              Extra prefixes found online: 088, 097.
13012              Allowing 9-digit 12, 31, 38 and 76 numbers based on information from Cambodia Yellow
13013              Pages and online search. -->
13014         <nationalNumberPattern>
13015           (?:
13016             1(?:
13017               [013-9]|
13018               2\d?
13019             )|
13020             3[18]\d|
13021             6[016-9]|
13022             7(?:
13023               [07-9]|
13024               6\d
13025             )|
13026             8(?:
13027               [013-79]|
13028               8\d
13029             )|
13030             9(?:
13031               6\d|
13032               7\d?|
13033               [0-589]
13034             )
13035           )\d{6}
13036         </nationalNumberPattern>
13037         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
13038         <exampleNumber>91234567</exampleNumber>
13039       </mobile>
13040       <tollFree>
13041         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
13042         <nationalNumberPattern>
13043           1800(?:
13044             1\d|
13045             2[019]
13046           )\d{4}
13047         </nationalNumberPattern>
13048         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13049         <exampleNumber>1800123456</exampleNumber>
13050       </tollFree>
13051       <premiumRate>
13052         <nationalNumberPattern>
13053           1900(?:
13054             1\d|
13055             2[09]
13056           )\d{4}
13057         </nationalNumberPattern>
13058         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13059         <exampleNumber>1900123456</exampleNumber>
13060       </premiumRate>
13061     </territory>
13062
13063     <!-- Kiribati -->
13064     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
13065          leading 0 - no numbers online have been found formatted this way, but the ITU document
13066          lists it as a national dialling prefix. -->
13067     <territory id="KI" countryCode="686" internationalPrefix="00"
13068                nationalPrefixForParsing="0">
13069       <references>
13070         <sourceUrl>http://www.itu.int/oth/T0202000071/en</sourceUrl>
13071       </references>
13072       <!-- Numbers should be formatted as a block." -->
13073       <generalDesc>
13074         <nationalNumberPattern>
13075           [2458]\d{4}|
13076           3\d{4,7}|
13077           7\d{7}
13078         </nationalNumberPattern>
13079         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
13080       </generalDesc>
13081       <fixedLine>
13082         <nationalNumberPattern>
13083           (?:
13084             [24]\d|
13085             3[1-9]|
13086             50|
13087             8[0-5]
13088           )\d{3}
13089         </nationalNumberPattern>
13090         <possibleNumberPattern>\d{5}</possibleNumberPattern>
13091         <exampleNumber>31234</exampleNumber>
13092       </fixedLine>
13093       <mobile>
13094         <!-- North Tarawa is listed as 720XXXXX-729XXXXX but considering that this deviates from the
13095              pattern followed by every other place, we are assuming 731XXXXX-732XXXXX for now. -->
13096         <nationalNumberPattern>
13097           7(?:
13098             [24]\d|
13099             3[1-9]|
13100             8[0-5]
13101           )\d{5}
13102         </nationalNumberPattern>
13103         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13104         <exampleNumber>72012345</exampleNumber>
13105       </mobile>
13106       <premiumRate>
13107         <!-- ITU refers to these as "Telemedia and audiotext". -->
13108         <nationalNumberPattern>3001\d{4}</nationalNumberPattern>
13109         <exampleNumber>30010000</exampleNumber>
13110       </premiumRate>
13111     </territory>
13112
13113     <!-- Comoros -->
13114     <territory id="KM" countryCode="269" internationalPrefix="00">
13115       <references>
13116         <sourceUrl>http://www.itu.int/oth/T020200002D/en</sourceUrl>
13117       </references>
13118       <availableFormats>
13119         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
13120           <format>$1 $2 $3</format>
13121         </numberFormat>
13122       </availableFormats>
13123       <generalDesc>
13124         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
13125         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13126       </generalDesc>
13127       <fixedLine>
13128         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
13129              http://www.comorestelecom.km/presentationcdma.php -->
13130         <nationalNumberPattern>
13131           7(?:
13132             6[0-37-9]|
13133             7[0-57-9]
13134           )\d{4}
13135         </nationalNumberPattern>
13136         <exampleNumber>7712345</exampleNumber>
13137       </fixedLine>
13138       <mobile>
13139         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
13140         <exampleNumber>3212345</exampleNumber>
13141       </mobile>
13142       <premiumRate>
13143         <!-- These are referred to as value-added services in the plan and no further information
13144              can be found. -->
13145         <nationalNumberPattern>
13146           (?:
13147             39[01]|
13148             9[01]0
13149           )\d{4}
13150         </nationalNumberPattern>
13151         <exampleNumber>9001234</exampleNumber>
13152       </premiumRate>
13153     </territory>
13154
13155     <!-- Saint Kitts and Nevis -->
13156     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
13157                internationalPrefix="011">
13158       <references>
13159         <sourceUrl>http://www.itu.int/oth/T02020000B0/en</sourceUrl>
13160       </references>
13161       <generalDesc>
13162         <!-- NANPA country - uses US formatting rules -->
13163         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
13164         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13165       </generalDesc>
13166       <fixedLine>
13167         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
13168              of it can be found. -->
13169         <nationalNumberPattern>
13170           869(?:
13171             2(?:
13172               29|
13173               36
13174             )|
13175             302|
13176             4(?:
13177               6[015-9]|
13178               70
13179             )
13180           )\d{4}
13181         </nationalNumberPattern>
13182         <exampleNumber>8692361234</exampleNumber>
13183       </fixedLine>
13184       <mobile>
13185         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
13186         <nationalNumberPattern>
13187           869(?:
13188             5(?:
13189               5[6-8]|
13190               6[5-7]
13191             )|
13192             66\d|
13193             76[02-6]
13194           )\d{4}
13195         </nationalNumberPattern>
13196         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13197         <!-- Example number from the ITU document. -->
13198         <exampleNumber>8697652917</exampleNumber>
13199       </mobile>
13200       <tollFree>
13201         <nationalNumberPattern>
13202           8(?:
13203             00|
13204             44|
13205             55|
13206             66|
13207             77|
13208             88
13209           )[2-9]\d{6}
13210         </nationalNumberPattern>
13211         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13212         <exampleNumber>8002123456</exampleNumber>
13213       </tollFree>
13214       <premiumRate>
13215         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
13216         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13217         <exampleNumber>9002123456</exampleNumber>
13218       </premiumRate>
13219       <personalNumber>
13220         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13221         <nationalNumberPattern>
13222           5(?:
13223             00|
13224             33|
13225             44|
13226             66|
13227             77
13228           )[2-9]\d{6}
13229         </nationalNumberPattern>
13230         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13231         <exampleNumber>5002345678</exampleNumber>
13232       </personalNumber>
13233     </territory>
13234
13235     <!-- Korea, Dem. People's Rep. of -->
13236     <territory id="KP" countryCode="850" internationalPrefix="00|99"
13237                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13238       <references>
13239         <sourceUrl>http://en.wikipedia.org/wiki/%2B850</sourceUrl>
13240       </references>
13241       <availableFormats>
13242         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13243           <leadingDigits>1</leadingDigits>
13244           <format>$1 $2 $3</format>
13245         </numberFormat>
13246         <numberFormat pattern="(\d)(\d{3})(\d{4})">
13247           <leadingDigits>2</leadingDigits>
13248           <format>$1 $2 $3</format>
13249         </numberFormat>
13250         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
13251           <leadingDigits>8</leadingDigits>
13252           <format>$1 $2 $3</format>
13253         </numberFormat>
13254       </availableFormats>
13255       <generalDesc>
13256         <nationalNumberPattern>
13257           1\d{9}|
13258           [28]\d{7}
13259         </nationalNumberPattern>
13260         <possibleNumberPattern>
13261           \d{6,8}|
13262           \d{10}
13263         </possibleNumberPattern>
13264       </generalDesc>
13265       <noInternationalDialling>
13266         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
13267         <nationalNumberPattern>
13268           2(?:
13269             [0-24-9]\d{2}|
13270             3(?:
13271               [0-79]\d|
13272               8[02-9]
13273             )
13274           )\d{4}
13275         </nationalNumberPattern>
13276         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13277         <exampleNumber>23821234</exampleNumber>
13278       </noInternationalDialling>
13279       <fixedLine>
13280         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
13281              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
13282              from overseas. Also, there is conflicting information about the length of fixed-line
13283              numbers, so here we are following Wikipedia. -->
13284         <nationalNumberPattern>
13285           2\d{7}|
13286           85\d{6}
13287         </nationalNumberPattern>
13288         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
13289         <exampleNumber>21234567</exampleNumber>
13290       </fixedLine>
13291       <mobile>
13292         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
13293         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13294         <exampleNumber>1921234567</exampleNumber>
13295       </mobile>
13296     </territory>
13297
13298     <!-- Korea (Rep. of) -->
13299     <!-- Exceptions :
13300         internationalPrefix
13301             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
13302         nationalPrefix
13303             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
13304     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
13305                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
13306                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG"
13307                mobileNumberPortableRegion="true">
13308       <references>
13309         <sourceUrl>http://www.itu.int/oth/T0202000072/en</sourceUrl>
13310         <sourceUrl>http://en.wikipedia.org/wiki/%2B82</sourceUrl>
13311         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2349</sourceUrl>
13312         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2240</sourceUrl>
13313         <sourceUrl>http://www.telecentro.co.kr/sub/index.php?job=detail&amp;ebcf_id=faq&amp;page=1&amp;mid=0503&amp;eb_seq=36</sourceUrl>
13314       </references>
13315       <availableFormats>
13316         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
13317           <leadingDigits>
13318             1(?:
13319               0|
13320               1[19]|
13321               [69]9|
13322               5[458]
13323             )|
13324             [57]0
13325           </leadingDigits>
13326           <leadingDigits>
13327             1(?:
13328               0|
13329               1[19]|
13330               [69]9|
13331               5(?:
13332                 44|
13333                 59|
13334                 8
13335               )
13336             )|
13337             [57]0
13338           </leadingDigits>
13339           <format>$1-$2-$3</format>
13340         </numberFormat>
13341         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
13342           <leadingDigits>
13343             1(?:
13344               [169][2-8]|
13345               [78]|
13346               5[1-4]
13347             )|
13348             [68]0|
13349             [3-6][1-9][1-9]
13350           </leadingDigits>
13351           <leadingDigits>
13352             1(?:
13353               [169][2-8]|
13354               [78]|
13355               5(?:
13356                 [1-3]|
13357                 4[56]
13358               )
13359             )|
13360             [68]0|
13361             [3-6][1-9][1-9]
13362           </leadingDigits>
13363           <format>$1-$2-$3</format>
13364         </numberFormat>
13365         <numberFormat pattern="(\d{3})(\d)(\d{4})">
13366           <leadingDigits>131</leadingDigits>
13367           <leadingDigits>1312</leadingDigits>
13368           <format>$1-$2-$3</format>
13369         </numberFormat>
13370         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
13371           <leadingDigits>131</leadingDigits>
13372           <leadingDigits>131[13-9]</leadingDigits>
13373           <format>$1-$2-$3</format>
13374         </numberFormat>
13375         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13376           <leadingDigits>13[2-9]</leadingDigits>
13377           <format>$1-$2-$3</format>
13378         </numberFormat>
13379         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
13380              limit of what digits may follow the 030, but we ignore that here. These numbers are
13381              actually not supported for validation purposes by the library at the moment as no
13382              online examples can be found, but we leave theme here so formatting continues to work
13383              if they are entered. -->
13384         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
13385           <leadingDigits>30</leadingDigits>
13386           <format>$1-$2-$3-$4</format>
13387         </numberFormat>
13388         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
13389           <leadingDigits>2[1-9]</leadingDigits>
13390           <format>$1-$2-$3</format>
13391         </numberFormat>
13392         <numberFormat pattern="(\d)(\d{3,4})">
13393           <leadingDigits>21[0-46-9]</leadingDigits>
13394           <format>$1-$2</format>
13395         </numberFormat>
13396         <numberFormat pattern="(\d{2})(\d{3,4})">
13397           <leadingDigits>[3-6][1-9]1</leadingDigits>
13398           <leadingDigits>
13399             [3-6][1-9]1(?:
13400               [0-46-9]
13401             )
13402           </leadingDigits>
13403           <format>$1-$2</format>
13404         </numberFormat>
13405         <!-- Company numbers. -->
13406         <numberFormat pattern="(\d{4})(\d{4})"
13407           nationalPrefixFormattingRule="$FG">
13408           <leadingDigits>
13409             1(?:
13410               5[46-9]|
13411               6[04678]
13412             )
13413           </leadingDigits>
13414           <leadingDigits>
13415             1(?:
13416               5(?:
13417                 44|
13418                 66|
13419                 77|
13420                 88|
13421                 99
13422               )|
13423               6(?:
13424                 00|
13425                 44|
13426                 6[16]|
13427                 70|
13428                 88
13429               )
13430             )
13431           </leadingDigits>
13432           <format>$1-$2</format>
13433         </numberFormat>
13434       </availableFormats>
13435       <generalDesc>
13436         <nationalNumberPattern>
13437           [1-7]\d{3,9}|
13438           8\d{8}
13439         </nationalNumberPattern>
13440         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13441       </generalDesc>
13442       <fixedLine>
13443         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
13444              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
13445              starting with 1 based on evidence of real numbers found online. -->
13446         <nationalNumberPattern>
13447           (?:
13448             2|
13449             3[1-3]|
13450             [46][1-4]|
13451             5[1-5]
13452           )(?:
13453             1\d{2,3}|
13454             [1-9]\d{6,7}
13455           )
13456         </nationalNumberPattern>
13457         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13458         <exampleNumber>22123456</exampleNumber>
13459       </fixedLine>
13460       <mobile>
13461         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
13462         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13463         <exampleNumber>1023456789</exampleNumber>
13464       </mobile>
13465       <pager>
13466         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
13467         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13468         <exampleNumber>1523456789</exampleNumber>
13469       </pager>
13470       <tollFree>
13471         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
13472         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13473         <exampleNumber>801234567</exampleNumber>
13474       </tollFree>
13475       <!-- The information below is provided by a Korean person. -->
13476       <premiumRate>
13477         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
13478         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13479         <exampleNumber>602345678</exampleNumber>
13480       </premiumRate>
13481       <personalNumber>
13482         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
13483         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13484         <exampleNumber>5012345678</exampleNumber>
13485       </personalNumber>
13486       <voip>
13487         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
13488         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13489         <exampleNumber>7012345678</exampleNumber>
13490       </voip>
13491       <uan>
13492         <nationalNumberPattern>
13493           1(?:
13494             5(?:
13495               44|
13496               66|
13497               77|
13498               88|
13499               99
13500             )|
13501             6(?:
13502               00|
13503               44|
13504               6[16]|
13505               70|
13506               88
13507             )
13508           )\d{4}
13509         </nationalNumberPattern>
13510         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13511         <exampleNumber>15441234</exampleNumber>
13512       </uan>
13513     </territory>
13514
13515     <!-- Kuwait -->
13516     <territory id="KW" countryCode="965" internationalPrefix="00" mobileNumberPortableRegion="true">
13517       <references>
13518         <sourceUrl>http://www.itu.int/oth/T0202000073/en</sourceUrl>
13519       </references>
13520       <availableFormats>
13521         <!-- Format is from ITU. -->
13522         <numberFormat pattern="(\d{4})(\d{3,4})">
13523           <leadingDigits>[1269]</leadingDigits>
13524           <format>$1 $2</format>
13525         </numberFormat>
13526         <numberFormat pattern="(5[015]\d)(\d{5})">
13527           <leadingDigits>5</leadingDigits>
13528           <format>$1 $2</format>
13529         </numberFormat>
13530       </availableFormats>
13531       <generalDesc>
13532         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
13533         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13534       </generalDesc>
13535       <fixedLine>
13536         <nationalNumberPattern>
13537           (?:
13538             18\d|
13539             2(?:
13540               [23]\d{2}|
13541               4(?:
13542                 [1-35-9]\d|
13543                 44
13544               )|
13545               5(?:
13546                 0[034]|
13547                 [2-46]\d|
13548                 5[1-3]|
13549                 7[1-7]
13550               )
13551             )
13552           )\d{4}
13553         </nationalNumberPattern>
13554         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13555         <exampleNumber>22345678</exampleNumber>
13556       </fixedLine>
13557       <mobile>
13558         <nationalNumberPattern>
13559           (?:
13560             5(?:
13561               [05]\d|
13562               1[0-6]
13563             )|
13564             6(?:
13565               0[034679]|
13566               5[015-9]|
13567               6\d|
13568               7[067]|
13569               9[0369]
13570             )|
13571             9(?:
13572               0[09]|
13573               4[049]|
13574               55|
13575               6[069]|
13576               [79]\d|
13577               8[089]
13578             )
13579           )\d{5}
13580         </nationalNumberPattern>
13581         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13582         <exampleNumber>50012345</exampleNumber>
13583       </mobile>
13584       <!-- No tollFree or premiumRate information can be found. -->
13585     </territory>
13586
13587     <!-- Cayman Islands -->
13588     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
13589                internationalPrefix="011">
13590       <references>
13591         <sourceUrl>http://www.itu.int/oth/T0202000027/en</sourceUrl>
13592       </references>
13593       <generalDesc>
13594         <!-- NANPA country - uses US formatting rules -->
13595         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
13596         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13597       </generalDesc>
13598       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
13599            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
13600       <fixedLine>
13601         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
13602              as per numbers found online and their website http://www.logic.ky. -->
13603         <nationalNumberPattern>
13604           345(?:
13605             2(?:
13606               22|
13607               44
13608             )|
13609             444|
13610             6(?:
13611               23|
13612               38|
13613               40
13614             )|
13615             7(?:
13616               4[35-79]|
13617               6[6-9]|
13618               77
13619             )|
13620             8(?:
13621               00|
13622               1[45]|
13623               25|
13624               [48]8
13625             )|
13626             9(?:
13627               14|
13628               4[035-9]
13629             )
13630           )\d{4}
13631         </nationalNumberPattern>
13632         <exampleNumber>3452221234</exampleNumber>
13633       </fixedLine>
13634       <mobile>
13635         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
13636              Most central office codes that were surrendered have not been included, with the
13637              exception of 546 where numbers have been found. -->
13638         <nationalNumberPattern>
13639           345(?:
13640             32[1-9]|
13641             5(?:
13642               1[67]|
13643               2[5-7]|
13644               4[6-8]|
13645               76
13646             )|
13647             9(?:
13648               1[67]|
13649               2[3-9]|
13650               3[689]
13651             )
13652           )\d{4}
13653         </nationalNumberPattern>
13654         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13655         <exampleNumber>3453231234</exampleNumber>
13656       </mobile>
13657       <pager>
13658         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
13659         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13660         <exampleNumber>3458491234</exampleNumber>
13661       </pager>
13662       <tollFree>
13663         <nationalNumberPattern>
13664           8(?:
13665             00|
13666             44|
13667             55|
13668             66|
13669             77|
13670             88
13671           )[2-9]\d{6}
13672         </nationalNumberPattern>
13673         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13674         <exampleNumber>8002345678</exampleNumber>
13675       </tollFree>
13676       <premiumRate>
13677         <nationalNumberPattern>
13678           900[2-9]\d{6}|
13679           345976\d{4}
13680         </nationalNumberPattern>
13681         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13682         <exampleNumber>9002345678</exampleNumber>
13683       </premiumRate>
13684       <personalNumber>
13685         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13686         <nationalNumberPattern>
13687           5(?:
13688             00|
13689             33|
13690             44|
13691             66|
13692             77
13693           )[2-9]\d{6}
13694         </nationalNumberPattern>
13695         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13696         <exampleNumber>5002345678</exampleNumber>
13697       </personalNumber>
13698     </territory>
13699
13700     <!-- Kazakhstan -->
13701     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
13702                internationalPrefix="810" nationalPrefix="8">
13703       <references>
13704         <sourceUrl>http://www.itu.int/oth/T020200006F/en</sourceUrl>
13705       </references>
13706        <!-- Formatting rules obtained from Russia. -->
13707       <generalDesc>
13708         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
13709              determining the country is faster. -->
13710         <nationalNumberPattern>
13711           (?:
13712             33\d|
13713             7\d{2}|
13714             80[09]
13715           )\d{7}
13716         </nationalNumberPattern>
13717         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13718       </generalDesc>
13719       <noInternationalDialling>
13720         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13721         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13722         <exampleNumber>7511234567</exampleNumber>
13723       </noInternationalDialling>
13724       <fixedLine>
13725         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
13726              22), which is within Kazakhstan but in fact rented and administered by Russia at the
13727              moment. -->
13728         <nationalNumberPattern>
13729           33622\d{5}|
13730           7(?:
13731             1(?:
13732               0(?:
13733                 [23]\d|
13734                 4[023]|
13735                 59|
13736                 63
13737               )|
13738               1(?:
13739                 [23]\d|
13740                 4[0-79]|
13741                 59
13742               )|
13743               2(?:
13744                 [23]\d|
13745                 59
13746               )|
13747               3(?:
13748                 2\d|
13749                 3[1-79]|
13750                 4[0-35-9]|
13751                 59
13752               )|
13753               4(?:
13754                 2\d|
13755                 3[013-79]|
13756                 4[0-8]|
13757                 5[1-79]
13758               )|
13759               5(?:
13760                 2\d|
13761                 3[1-8]|
13762                 4[1-7]|
13763                 59
13764               )|
13765               6(?:
13766                 [234]\d|
13767                 5[19]|
13768                 61
13769               )|
13770               72\d|
13771               8(?:
13772                 [27]\d|
13773                 3[1-46-9]|
13774                 4[0-5]
13775               )
13776             )|
13777             2(?:
13778               1(?:
13779                 [23]\d|
13780                 4[46-9]|
13781                 5[3469]
13782               )|
13783               2(?:
13784                 2\d|
13785                 3[0679]|
13786                 46|
13787                 5[12679]
13788               )|
13789               3(?:
13790                 [234]\d|
13791                 5[139]
13792               )|
13793               4(?:
13794                 2\d|
13795                 3[1235-9]|
13796                 59
13797               )|
13798               5(?:
13799                 [23]\d|
13800                 4[01246-8]|
13801                 59|
13802                 61
13803               )|
13804               6(?:
13805                 2\d|
13806                 3[1-9]|
13807                 4[0-4]|
13808                 59
13809               )|
13810               7(?:
13811                 [237]\d|
13812                 40|
13813                 5[279]
13814               )|
13815               8(?:
13816                 [23]\d|
13817                 4[0-3]|
13818                 59
13819               )|
13820               9(?:
13821                 2\d|
13822                 3[124578]|
13823                 59
13824               )
13825             )
13826           )\d{5}
13827         </nationalNumberPattern>
13828         <exampleNumber>7123456789</exampleNumber>
13829       </fixedLine>
13830       <mobile>
13831         <!-- Added 708 for Altel, 776 for Beeline, 747 for Tele2. -->
13832         <nationalNumberPattern>
13833           7(?:
13834             0[012578]|
13835             47|
13836             6[02-4]|
13837             7[15-8]|
13838             85
13839           )\d{7}
13840         </nationalNumberPattern>
13841         <exampleNumber>7710009998</exampleNumber>
13842       </mobile>
13843       <tollFree>
13844         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
13845         <exampleNumber>8001234567</exampleNumber>
13846       </tollFree>
13847       <premiumRate>
13848         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
13849         <exampleNumber>8091234567</exampleNumber>
13850       </premiumRate>
13851       <voip>
13852         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13853         <exampleNumber>7511234567</exampleNumber>
13854       </voip>
13855     </territory>
13856
13857     <!-- Lao People's Dem. Rep. -->
13858     <territory id="LA" countryCode="856" internationalPrefix="00"
13859                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13860       <references>
13861         <!-- Seems incomplete -->
13862         <sourceUrl>http://www.itu.int/oth/T0202000075/en</sourceUrl>
13863         <sourceUrl>http://en.wikipedia.org/wiki/+856</sourceUrl>
13864       </references>
13865       <availableFormats>
13866         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
13867           <leadingDigits>20</leadingDigits>
13868           <format>$1 $2 $3 $4</format>
13869         </numberFormat>
13870         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
13871           <leadingDigits>
13872             2[13]|
13873             3[14]|
13874             [4-8]
13875           </leadingDigits>
13876           <format>$1 $2 $3</format>
13877         </numberFormat>
13878         <numberFormat pattern="(30)(\d{2})(\d{2})(\d{3})">
13879           <leadingDigits>30</leadingDigits>
13880           <format>$1 $2 $3 $4</format>
13881         </numberFormat>
13882       </availableFormats>
13883       <generalDesc>
13884         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
13885         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13886       </generalDesc>
13887       <fixedLine>
13888         <!-- The Lonely Planet says that newer WIN phones (fixed phones without a physical landline)
13889              start with 030 (and are longer). There are plenty of examples online. -->
13890         <nationalNumberPattern>
13891           (?:
13892             2[13]|
13893             3(?:
13894               0\d|
13895               [14]
13896             )|
13897             [5-7][14]|
13898             41|
13899             8[1468]
13900           )\d{6}
13901         </nationalNumberPattern>
13902         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13903         <exampleNumber>21212862</exampleNumber>
13904       </fixedLine>
13905       <mobile>
13906         <!-- Adding 202[89], 205[89], 207[68] and 209[57] from numbers found online. -->
13907         <nationalNumberPattern>
13908           20(?:
13909             2[2389]|
13910             5[4-689]|
13911             7[6-8]|
13912             9[57-9]
13913           )\d{6}
13914         </nationalNumberPattern>
13915         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13916         <exampleNumber>2023123456</exampleNumber>
13917       </mobile>
13918       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
13919     </territory>
13920
13921     <!-- Lebanon -->
13922     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
13923       <references>
13924         <sourceUrl>http://www.itu.int/oth/T0202000077/en</sourceUrl>
13925         <sourceUrl>http://en.wikipedia.org/wiki/%2B961</sourceUrl>
13926       </references>
13927       <availableFormats>
13928         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
13929           <leadingDigits>
13930             [13-6]|
13931             7(?:
13932               [2-579]|
13933               62|
13934               8[0-7]
13935             )|
13936             [89][2-9]
13937             </leadingDigits>
13938           <format>$1 $2 $3</format>
13939         </numberFormat>
13940         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
13941           <leadingDigits>
13942             [89][01]|
13943             7(?:
13944               [019]|
13945               6[013-9]|
13946               8[89]
13947             )
13948           </leadingDigits>
13949           <format>$1 $2 $3</format>
13950         </numberFormat>
13951       </availableFormats>
13952       <generalDesc>
13953         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
13954         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13955       </generalDesc>
13956       <fixedLine>
13957         <!-- The ITU document from October 2012 seems to have accidentally dropped the 79 prefix for
13958              fixed-line numbers, which had been in the version from July 2012. We consider these
13959              valid since we successfully dialed such a number in July 2014. -->
13960         <nationalNumberPattern>
13961           (?:
13962             [14-6]\d{2}|
13963             7(?:
13964               [2-579]\d|
13965               62|
13966               8[0-7]
13967             )|
13968             [89][2-9]\d
13969           )\d{4}
13970         </nationalNumberPattern>
13971         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13972         <exampleNumber>1123456</exampleNumber>
13973       </fixedLine>
13974       <mobile>
13975         <!-- We only validate the first three digits here, since the ranges are growing rapidly.
13976              The 79[02-9] prefixes were added from bug reports and numbers found online. -->
13977         <nationalNumberPattern>
13978           (?:
13979             3\d|
13980             7(?:
13981               [019]\d|
13982               6[013-9]|
13983               8[89]
13984             )
13985           )\d{5}
13986         </nationalNumberPattern>
13987         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13988         <exampleNumber>71123456</exampleNumber>
13989       </mobile>
13990       <premiumRate>
13991         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
13992         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13993         <exampleNumber>90123456</exampleNumber>
13994       </premiumRate>
13995       <sharedCost>
13996         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
13997         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13998         <exampleNumber>80123456</exampleNumber>
13999       </sharedCost>
14000     </territory>
14001
14002     <!-- Saint Lucia -->
14003     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
14004                internationalPrefix="011">
14005       <references>
14006         <sourceUrl>http://www.itu.int/oth/T02020000B1/en</sourceUrl>
14007       </references>
14008       <generalDesc>
14009         <!-- NANPA country - uses US formatting rules -->
14010         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
14011         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
14012       </generalDesc>
14013       <fixedLine>
14014         <!-- Adding 430 since numbers have been found with these prefixes online. -->
14015         <nationalNumberPattern>
14016           758(?:
14017             4(?:
14018               30|
14019               5[0-9]|
14020               6[2-9]|
14021               8[0-2]
14022             )|
14023             57[0-2]|
14024             638
14025           )\d{4}
14026         </nationalNumberPattern>
14027         <exampleNumber>7584305678</exampleNumber>
14028       </fixedLine>
14029       <mobile>
14030         <nationalNumberPattern>
14031           758(?:
14032             28[4-7]|
14033             384|
14034             4(?:
14035               6[01]|
14036               8[4-9]
14037             )|
14038             5(?:
14039               1[89]|
14040               20|
14041               84
14042             )|
14043             7(?:
14044               1[2-9]|
14045               2[0-8]
14046             )
14047           )\d{4}
14048         </nationalNumberPattern>
14049         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14050         <exampleNumber>7582845678</exampleNumber>
14051       </mobile>
14052       <tollFree>
14053         <nationalNumberPattern>
14054           8(?:
14055             00|
14056             44|
14057             55|
14058             66|
14059             77|
14060             88
14061           )[2-9]\d{6}
14062         </nationalNumberPattern>
14063         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14064         <exampleNumber>8002123456</exampleNumber>
14065       </tollFree>
14066       <premiumRate>
14067         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
14068         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14069         <exampleNumber>9002123456</exampleNumber>
14070       </premiumRate>
14071       <personalNumber>
14072         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
14073         <nationalNumberPattern>
14074           5(?:
14075             00|
14076             33|
14077             44|
14078             66|
14079             77
14080           )[2-9]\d{6}
14081         </nationalNumberPattern>
14082         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14083         <exampleNumber>5002345678</exampleNumber>
14084       </personalNumber>
14085     </territory>
14086
14087     <!-- Liechtenstein -->
14088     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
14089     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
14090       <references>
14091         <sourceUrl>http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm</sourceUrl>
14092       </references>
14093       <availableFormats>
14094         <!-- Some different patterns for tollfree and shared cost numbers may be found by searching
14095              for "Mehrwertnummer" at http://www.telecom.li. -->
14096         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
14097           <leadingDigits>
14098             [23]|
14099             7[3-57-9]|
14100             87
14101           </leadingDigits>
14102           <format>$1 $2 $3</format>
14103         </numberFormat>
14104         <numberFormat pattern="(6\d)(\d{3})(\d{3})">
14105           <leadingDigits>6</leadingDigits>
14106           <format>$1 $2 $3</format>
14107         </numberFormat>
14108         <numberFormat pattern="(6[567]\d)(\d{3})(\d{3})">
14109           <leadingDigits>6[567]</leadingDigits>
14110           <format>$1 $2 $3</format>
14111         </numberFormat>
14112         <numberFormat pattern="(69)(7\d{2})(\d{4})">
14113           <leadingDigits>697</leadingDigits>
14114           <format>$1 $2 $3</format>
14115         </numberFormat>
14116         <numberFormat pattern="([7-9]0\d)(\d{2})(\d{2})">
14117           <leadingDigits>[7-9]0</leadingDigits>
14118           <format>$1 $2 $3</format>
14119         </numberFormat>
14120         <!-- Numbers of the form [89]00\d{6} are Swiss numbers callable from Liechtenstein. -->
14121         <numberFormat pattern="([89]0\d)(\d{2})(\d{2})(\d{2})"
14122           nationalPrefixFormattingRule="$NP$FG">
14123           <leadingDigits>[89]0</leadingDigits>
14124           <format>$1 $2 $3 $4</format>
14125         </numberFormat>
14126       </availableFormats>
14127       <generalDesc>
14128         <nationalNumberPattern>
14129           6\d{8}|
14130           [23789]\d{6}
14131         </nationalNumberPattern>
14132         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14133       </generalDesc>
14134       <fixedLine>
14135         <nationalNumberPattern>
14136           (?:
14137             2(?:
14138               01|
14139               1[27]|
14140               3\d|
14141               6[02-578]|
14142               96
14143             )|
14144             3(?:
14145               7[0135-7]|
14146               8[048]|
14147               9[0269]
14148             )
14149           )\d{4}
14150         </nationalNumberPattern>
14151         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14152         <exampleNumber>2345678</exampleNumber>
14153       </fixedLine>
14154       <mobile>
14155         <nationalNumberPattern>
14156           6(?:
14157             51[01]|
14158             6(?:
14159               [01][0-4]|
14160               2[016-9]|
14161               88
14162             )|
14163             710
14164           )\d{5}|
14165           7(?:
14166             36|
14167             4[25]|
14168             56|
14169             [7-9]\d
14170           )\d{4}
14171         </nationalNumberPattern>
14172         <exampleNumber>661234567</exampleNumber>
14173       </mobile>
14174       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
14175            even though it doesn't appear in the plan. -->
14176       <tollFree>
14177         <nationalNumberPattern>
14178           80(?:
14179             0(?:
14180               2[238]|
14181               79
14182             )|
14183             9\d{2}
14184           )\d{2}
14185         </nationalNumberPattern>
14186         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14187         <exampleNumber>8002222</exampleNumber>
14188       </tollFree>
14189       <premiumRate>
14190         <nationalNumberPattern>
14191           90(?:
14192             0(?:
14193               2[278]|
14194               79
14195             )|
14196             1(?:
14197               23|
14198               3[012]
14199             )|
14200             6(?:
14201               4\d|
14202               6[0126]
14203             )
14204           )\d{2}
14205         </nationalNumberPattern>
14206         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14207         <exampleNumber>9002222</exampleNumber>
14208       </premiumRate>
14209       <uan>
14210         <nationalNumberPattern>
14211           87(?:
14212             0[128]|
14213             7[0-4]
14214           )\d{3}
14215         </nationalNumberPattern>
14216         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14217         <exampleNumber>8770123</exampleNumber>
14218       </uan>
14219       <voicemail>
14220         <nationalNumberPattern>
14221           697(?:
14222             [35]6|
14223             4[25]|
14224             [7-9]\d
14225           )\d{4}
14226         </nationalNumberPattern>
14227         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14228         <exampleNumber>697361234</exampleNumber>
14229       </voicemail>
14230       <personalNumber>
14231         <nationalNumberPattern>701\d{4}</nationalNumberPattern>
14232         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14233         <exampleNumber>7011234</exampleNumber>
14234       </personalNumber>
14235     </territory>
14236
14237     <!-- Sri Lanka -->
14238     <territory id="LK" countryCode="94" internationalPrefix="00"
14239                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14240       <references>
14241         <sourceUrl>http://en.wikipedia.org/wiki/%2B94</sourceUrl>
14242         <sourceUrl>http://www.itu.int/oth/T02020000C3/en</sourceUrl>
14243       </references>
14244       <availableFormats>
14245         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
14246           <leadingDigits>[1-689]</leadingDigits>
14247           <format>$1 $2 $3</format>
14248         </numberFormat>
14249         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14250           <leadingDigits>7</leadingDigits>
14251           <format>$1 $2 $3</format>
14252         </numberFormat>
14253       </availableFormats>
14254       <generalDesc>
14255         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
14256         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14257       </generalDesc>
14258       <fixedLine>
14259         <nationalNumberPattern>
14260           (?:
14261             [189]1|
14262             2[13-7]|
14263             3[1-8]|
14264             4[157]|
14265             5[12457]|
14266             6[35-7]
14267           )[2-57]\d{6}
14268         </nationalNumberPattern>
14269         <exampleNumber>112345678</exampleNumber>
14270       </fixedLine>
14271       <mobile>
14272         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
14273         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
14274         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14275         <exampleNumber>712345678</exampleNumber>
14276       </mobile>
14277     </territory>
14278
14279     <!-- Liberia -->
14280     <territory id="LR" countryCode="231" internationalPrefix="00"
14281                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14282       <references>
14283         <sourceUrl>http://www.itu.int/oth/T0202000079/en</sourceUrl>
14284       </references>
14285       <availableFormats>
14286         <!-- Formatting from Ministry of Agriculture,
14287         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
14288         <numberFormat pattern="(2\d)(\d{3})(\d{3})">
14289           <leadingDigits>2</leadingDigits>
14290           <format>$1 $2 $3</format>
14291         </numberFormat>
14292         <numberFormat pattern="([79]\d{2})(\d{3})(\d{3})">
14293           <leadingDigits>[79]</leadingDigits>
14294           <format>$1 $2 $3</format>
14295         </numberFormat>
14296         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
14297           <leadingDigits>[4-6]</leadingDigits>
14298           <format>$1 $2 $3</format>
14299         </numberFormat>
14300         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14301           <leadingDigits>[38]</leadingDigits>
14302           <format>$1 $2 $3</format>
14303         </numberFormat>
14304       </availableFormats>
14305       <generalDesc>
14306         <nationalNumberPattern>
14307           2\d{7}|
14308           [37-9]\d{8}|
14309           [45]\d{6}
14310         </nationalNumberPattern>
14311         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14312       </generalDesc>
14313       <fixedLine>
14314         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14315         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14316         <exampleNumber>21234567</exampleNumber>
14317       </fixedLine>
14318       <mobile>
14319         <!-- West Africa Telecom seems to be a mobile company from their website. Adding Atlantic
14320              Wireless from the document, even though from online news reports it is not clear they
14321              are still operating. -->
14322         <nationalNumberPattern>
14323           (?:
14324             330\d|
14325             4[67]|
14326             5\d|
14327             77\d{2}|
14328             88\d{2}|
14329             994\d
14330           )\d{5}
14331         </nationalNumberPattern>
14332         <exampleNumber>770123456</exampleNumber>
14333       </mobile>
14334       <premiumRate>
14335         <!-- Telelinks and Interactive media service are listed under premium rate. -->
14336         <nationalNumberPattern>90[03]\d{6}</nationalNumberPattern>
14337         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14338         <exampleNumber>900123456</exampleNumber>
14339       </premiumRate>
14340       <voip>
14341         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
14342              say they are involved in the VoIP sector. Adding WASSCOM and Atlantic Realty &
14343              Investment Corporation here as well; no numbers can be found online, nor company
14344              information. -->
14345         <nationalNumberPattern>
14346           332(?:
14347             0[02]|
14348             5\d
14349           )\d{4}
14350         </nationalNumberPattern>
14351         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14352         <exampleNumber>332001234</exampleNumber>
14353       </voip>
14354     </territory>
14355
14356     <!-- Lesotho -->
14357     <territory id="LS" countryCode="266" internationalPrefix="00">
14358       <references>
14359         <sourceUrl>http://www.itu.int/oth/T0202000078/en</sourceUrl>
14360       </references>
14361       <availableFormats>
14362         <!-- Formatting following yellow pages: http://www.yellowpages.co.ls -->
14363         <numberFormat pattern="(\d{4})(\d{4})">
14364           <format>$1 $2</format>
14365         </numberFormat>
14366       </availableFormats>
14367       <generalDesc>
14368         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
14369         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14370       </generalDesc>
14371       <fixedLine>
14372         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14373         <exampleNumber>22123456</exampleNumber>
14374       </fixedLine>
14375       <mobile>
14376         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
14377         <exampleNumber>50123456</exampleNumber>
14378       </mobile>
14379       <tollFree>
14380         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
14381         <exampleNumber>80021234</exampleNumber>
14382       </tollFree>
14383     </territory>
14384
14385     <!-- Lithuania -->
14386     <!-- Note that Lithuania is switching to a national prefix of 0. We support
14387          both 0 and 8 when parsing until this switch is complete. -->
14388     <territory id="LT" countryCode="370" internationalPrefix="00"
14389                nationalPrefix="8" nationalPrefixForParsing="[08]"
14390                nationalPrefixFormattingRule="($NP-$FG)"
14391                nationalPrefixOptionalWhenFormatting="true" mobileNumberPortableRegion="true">
14392       <references>
14393         <sourceUrl>http://www.itu.int/oth/T020200007C/en</sourceUrl>
14394       </references>
14395       <!-- National Prefix formatting rule from http://www.yellowpages.lt -->
14396       <availableFormats>
14397         <!-- Two-digit area codes -->
14398         <numberFormat pattern="([34]\d)(\d{6})">
14399           <leadingDigits>
14400             37|
14401             4(?:
14402               1|
14403               5[45]|
14404               6[2-4]
14405             )
14406           </leadingDigits>
14407           <format>$1 $2</format>
14408         </numberFormat>
14409         <!-- Three-digit area codes -->
14410         <numberFormat pattern="([3-6]\d{2})(\d{5})">
14411           <leadingDigits>
14412             3[148]|
14413             4(?:
14414               [24]|
14415               6[09]
14416             )|
14417             528|
14418             6
14419           </leadingDigits>
14420           <format>$1 $2</format>
14421         </numberFormat>
14422         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
14423           nationalPrefixFormattingRule="$NP $FG">
14424           <leadingDigits>[7-9]</leadingDigits>
14425           <format>$1 $2 $3</format>
14426         </numberFormat>
14427         <numberFormat pattern="(5)(2\d{2})(\d{4})">
14428           <leadingDigits>52[0-79]</leadingDigits>
14429           <format>$1 $2 $3</format>
14430         </numberFormat>
14431       </availableFormats>
14432       <generalDesc>
14433         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
14434         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14435       </generalDesc>
14436       <fixedLine>
14437         <nationalNumberPattern>
14438           (?:
14439             3[1478]|
14440             4[124-6]|
14441             52
14442           )\d{6}
14443         </nationalNumberPattern>
14444         <exampleNumber>31234567</exampleNumber>
14445       </fixedLine>
14446       <mobile>
14447         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
14448         <exampleNumber>61234567</exampleNumber>
14449       </mobile>
14450       <tollFree>
14451         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14452         <exampleNumber>80012345</exampleNumber>
14453       </tollFree>
14454       <premiumRate>
14455         <nationalNumberPattern>
14456           9(?:
14457             0[0239]|
14458             10
14459           )\d{5}
14460         </nationalNumberPattern>
14461         <exampleNumber>90012345</exampleNumber>
14462       </premiumRate>
14463       <personalNumber>
14464         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
14465         <exampleNumber>70012345</exampleNumber>
14466       </personalNumber>
14467       <sharedCost>
14468         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14469         <exampleNumber>80812345</exampleNumber>
14470       </sharedCost>
14471       <uan>
14472         <!-- Including government service numbers here too. -->
14473         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
14474         <exampleNumber>70712345</exampleNumber>
14475       </uan>
14476     </territory>
14477
14478     <!-- Luxembourg -->
14479     <territory id="LU" countryCode="352" internationalPrefix="00"
14480                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
14481                carrierCodeFormattingRule="$CC $FG" mobileNumberPortableRegion="true">
14482       <references>
14483         <sourceUrl>http://www.ilr.public.lu/communications_electroniques/numerotation/index.html</sourceUrl>
14484       </references>
14485       <availableFormats>
14486         <!-- Patterns overlap because of variable number length. -->
14487         <numberFormat pattern="(\d{2})(\d{3})">
14488           <leadingDigits>
14489             [2-5]|
14490             7[1-9]|
14491             [89](?:
14492               [1-9]|
14493               0[2-9]
14494             )
14495           </leadingDigits>
14496           <format>$1 $2</format>
14497         </numberFormat>
14498         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
14499           <leadingDigits>
14500             [2-5]|
14501             7[1-9]|
14502             [89](?:
14503               [1-9]|
14504               0[2-9]
14505             )
14506           </leadingDigits>
14507           <format>$1 $2 $3</format>
14508         </numberFormat>
14509         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
14510           <leadingDigits>20</leadingDigits>
14511           <format>$1 $2 $3</format>
14512         </numberFormat>
14513         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
14514              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
14515              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
14516              -->
14517         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
14518           <leadingDigits>
14519             2(?:
14520               [0367]|
14521               4[3-8]
14522             )
14523           </leadingDigits>
14524           <format>$1 $2 $3 $4</format>
14525         </numberFormat>
14526         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
14527           <leadingDigits>20</leadingDigits>
14528           <format>$1 $2 $3 $4</format>
14529         </numberFormat>
14530         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
14531           <leadingDigits>
14532             2(?:
14533               [0367]|
14534               4[3-8]
14535             )
14536           </leadingDigits>
14537           <format>$1 $2 $3 $4 $5</format>
14538         </numberFormat>
14539         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
14540           <leadingDigits>
14541             2(?:
14542               [12589]|
14543               4[12]
14544             )|
14545             [3-5]|
14546             7[1-9]|
14547             [89](?:
14548               [1-9]|
14549               0[2-9]
14550             )
14551           </leadingDigits>
14552           <format>$1 $2 $3 $4</format>
14553         </numberFormat>
14554         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
14555           <leadingDigits>
14556             [89]0[01]|
14557             70
14558           </leadingDigits>
14559           <format>$1 $2 $3</format>
14560         </numberFormat>
14561         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14562           <leadingDigits>6</leadingDigits>
14563           <format>$1 $2 $3</format>
14564         </numberFormat>
14565       </availableFormats>
14566       <generalDesc>
14567         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
14568              necessary since the numbers have a variable number length. -->
14569         <nationalNumberPattern>
14570           [24-9]\d{3,10}|
14571           3(?:
14572             [0-46-9]\d{2,9}|
14573             5[013-9]\d{1,8}
14574           )
14575         </nationalNumberPattern>
14576         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
14577       </generalDesc>
14578       <fixedLine>
14579         <!-- Note that numbers starting with 2[367] can be a maximum of 10 digits - all others a
14580              maximum of 11. -->
14581         <nationalNumberPattern>
14582           (?:
14583             2(?:
14584               2\d{1,2}|
14585               3[2-9]|
14586               [67]\d|
14587               4[1-8]\d?|
14588               5[1-5]\d?|
14589               9[0-24-9]\d?
14590             )|
14591             3(?:
14592               [059][05-9]|
14593               [13]\d|
14594               [26][015-9]|
14595               4[0-26-9]|
14596               7[0-389]|
14597               8[08]
14598             )\d?|
14599             4\d{2,3}|
14600             5(?:
14601               [01458]\d|
14602               [27][0-69]|
14603               3[0-3]|
14604               [69][0-7]
14605             )\d?|
14606             7(?:
14607               1[019]|
14608               2[05-9]|
14609               3[05]|
14610               [45][07-9]|
14611               [679][089]|
14612               8[06-9]
14613             )\d?|
14614             8(?:
14615               0[2-9]|
14616               1[0-36-9]|
14617               3[3-9]|
14618               [469]9|
14619               [58][7-9]|
14620               7[89]
14621             )\d?|
14622             9(?:
14623               0[89]|
14624               2[0-49]|
14625               37|
14626               49|
14627               5[0-27-9]|
14628               7[7-9]|
14629               9[0-478]
14630             )\d?
14631           )\d{1,7}
14632         </nationalNumberPattern>
14633         <exampleNumber>27123456</exampleNumber>
14634       </fixedLine>
14635       <mobile>
14636         <nationalNumberPattern>
14637           6(?:
14638             [269][18]|
14639             71
14640           )\d{6}
14641         </nationalNumberPattern>
14642         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14643         <exampleNumber>628123456</exampleNumber>
14644       </mobile>
14645       <tollFree>
14646         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14647         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14648         <exampleNumber>80012345</exampleNumber>
14649       </tollFree>
14650       <premiumRate>
14651         <nationalNumberPattern>90[01]\d{5}</nationalNumberPattern>
14652         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14653         <exampleNumber>90012345</exampleNumber>
14654       </premiumRate>
14655       <sharedCost>
14656         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
14657         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14658         <exampleNumber>80112345</exampleNumber>
14659       </sharedCost>
14660       <personalNumber>
14661         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
14662         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14663         <exampleNumber>70123456</exampleNumber>
14664       </personalNumber>
14665       <voip>
14666         <!-- The document says the normal length will be 8 digits, but many numbers found online
14667              deviate from that. The prefixes from the following document have been added:
14668              http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
14669              201 has also been added since a diallable number was found online, and it says in
14670              http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
14671              numbers will be issued that begin with 200, numbers beginning with 201 will be issued
14672              one at a time, and 202-209 in blocks. -->
14673         <nationalNumberPattern>
14674           20(?:
14675             1\d{5}|
14676             [2-689]\d{1,7}
14677           )
14678         </nationalNumberPattern>
14679         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
14680         <exampleNumber>20201234</exampleNumber>
14681       </voip>
14682     </territory>
14683
14684     <!-- Latvia -->
14685     <territory id="LV" countryCode="371" internationalPrefix="00" mobileNumberPortableRegion="true">
14686       <references>
14687         <sourceUrl>http://www.itu.int/oth/T0202000076/en</sourceUrl>
14688         <sourceUrl>http://en.wikipedia.org/wiki/+371</sourceUrl>
14689       </references>
14690       <availableFormats>
14691         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
14692           <format>$1 $2 $3</format>
14693         </numberFormat>
14694       </availableFormats>
14695       <generalDesc>
14696         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
14697         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14698       </generalDesc>
14699       <fixedLine>
14700         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
14701         <exampleNumber>63123456</exampleNumber>
14702       </fixedLine>
14703       <mobile>
14704         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14705         <exampleNumber>21234567</exampleNumber>
14706       </mobile>
14707       <tollFree>
14708         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
14709         <exampleNumber>80123456</exampleNumber>
14710       </tollFree>
14711       <premiumRate>
14712         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14713         <exampleNumber>90123456</exampleNumber>
14714       </premiumRate>
14715       <sharedCost>
14716         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
14717         <exampleNumber>81123456</exampleNumber>
14718       </sharedCost>
14719     </territory>
14720
14721     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
14722     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
14723          and itu.int. The new area codes are on the Arabic website of the main telecommunication
14724          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
14725          using 096 (they are allowing customers to register numbers currently), so their code has
14726          also been added. -->
14727     <territory id="LY" countryCode="218" internationalPrefix="00"
14728                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14729       <references>
14730         <sourceUrl>http://hlc.ly/price.php</sourceUrl>
14731       </references>
14732       <availableFormats>
14733         <numberFormat pattern="([25679]\d)(\d{7})">
14734           <format>$1-$2</format>
14735         </numberFormat>
14736       </availableFormats>
14737       <generalDesc>
14738         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
14739         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14740       </generalDesc>
14741       <fixedLine>
14742         <nationalNumberPattern>
14743           (?:
14744             2[1345]|
14745             5[1347]|
14746             6[123479]|
14747             71
14748           )\d{7}
14749         </nationalNumberPattern>
14750         <exampleNumber>212345678</exampleNumber>
14751       </fixedLine>
14752       <mobile>
14753         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
14754              where SMS messages have been apparently successfully received. -->
14755         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
14756         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14757         <exampleNumber>912345678</exampleNumber>
14758       </mobile>
14759     </territory>
14760
14761     <!-- Morocco -->
14762     <!-- Shares formatting and some metadata with Western Sahara. -->
14763     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
14764                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
14765                mobileNumberPortableRegion="true">
14766       <references>
14767         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
14768         <sourceUrl>http://en.wikipedia.org/wiki/+212</sourceUrl>
14769       </references>
14770       <availableFormats>
14771         <numberFormat pattern="([56]\d{2})(\d{6})">
14772           <leadingDigits>
14773             5(?:
14774               2[015-7]|
14775               3[0-4]
14776             )|
14777             6
14778           </leadingDigits>
14779           <format>$1-$2</format>
14780         </numberFormat>
14781         <numberFormat pattern="([58]\d{3})(\d{5})">
14782           <leadingDigits>
14783             5(?:
14784               2[2-489]|
14785               3[5-9]
14786             )|
14787             892
14788           </leadingDigits>
14789           <leadingDigits>
14790             5(?:
14791               2(?:
14792                 [2-48]|
14793                 90
14794               )|
14795               3(?:
14796                 [5-79]|
14797                 80
14798               )
14799             )|
14800             892
14801           </leadingDigits>
14802           <format>$1-$2</format>
14803         </numberFormat>
14804         <numberFormat pattern="(5\d{4})(\d{4})">
14805           <leadingDigits>
14806             5(?:
14807               29|
14808               38
14809             )
14810           </leadingDigits>
14811           <leadingDigits>
14812             5(?:
14813               29|
14814               38
14815             )[89]
14816           </leadingDigits>
14817           <format>$1-$2</format>
14818         </numberFormat>
14819         <numberFormat pattern="(8[09])(\d{7})">
14820           <leadingDigits>
14821             8(?:
14822               0|
14823               9[013-9]
14824             )
14825           </leadingDigits>
14826           <format>$1-$2</format>
14827         </numberFormat>
14828       </availableFormats>
14829       <generalDesc>
14830         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
14831         <!-- Closed numbering plan. -->
14832         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14833       </generalDesc>
14834       <fixedLine>
14835         <nationalNumberPattern>
14836           5(?:
14837             2(?:
14838               (?:
14839                 [015-7]\d|
14840                 2[2-9]|
14841                 3[2-57]|
14842                 4[2-8]|
14843                 8[235-7]
14844               )\d|
14845               9(?:
14846                 0\d|
14847                 [89]0
14848               )
14849             )|
14850             3(?:
14851               (?:
14852                 [0-4]\d|
14853                 [57][2-9]|
14854                 6[235-8]|
14855                 9[3-9]
14856               )\d|
14857               8(?:
14858                 0\d|
14859                 [89]0
14860               )
14861             )
14862           )\d{4}
14863         </nationalNumberPattern>
14864         <exampleNumber>520123456</exampleNumber>
14865       </fixedLine>
14866       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
14867       <mobile>
14868         <!-- http://www.anrt.ma/sites/default/files/Blocs_de_numeros_par_operateur.pdf -->
14869         <nationalNumberPattern>
14870           6(?:
14871             0[0-8]|
14872             [12-7]\d|
14873             8[01]|
14874             9[2457-9]
14875           )\d{6}
14876         </nationalNumberPattern>
14877         <exampleNumber>650123456</exampleNumber>
14878       </mobile>
14879       <tollFree>
14880         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
14881         <exampleNumber>801234567</exampleNumber>
14882       </tollFree>
14883       <premiumRate>
14884         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
14885         <exampleNumber>891234567</exampleNumber>
14886       </premiumRate>
14887     </territory>
14888
14889     <!-- Monaco -->
14890     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
14891          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
14892          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
14893     <territory id="MC" countryCode="377" internationalPrefix="00"
14894                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14895       <references>
14896         <sourceUrl>http://www.itu.int/oth/T020200008D/en</sourceUrl>
14897       </references>
14898       <availableFormats>
14899         <!-- Following formatting found online rather than in the ITU document example. -->
14900         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
14901           <leadingDigits>9</leadingDigits>
14902           <format>$1 $2 $3 $4</format>
14903         </numberFormat>
14904         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14905           <leadingDigits>4</leadingDigits>
14906           <format>$1 $2 $3</format>
14907         </numberFormat>
14908         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
14909           <leadingDigits>6</leadingDigits>
14910           <format>$1 $2 $3 $4 $5</format>
14911         </numberFormat>
14912         <numberFormat pattern="(\d{3})(\d{3})(\d{2})" nationalPrefixFormattingRule="$FG">
14913           <leadingDigits>8</leadingDigits>
14914           <format>$1 $2 $3</format>
14915         </numberFormat>
14916       </availableFormats>
14917       <generalDesc>
14918         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
14919         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
14920       </generalDesc>
14921       <noInternationalDialling>
14922         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
14923         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14924       </noInternationalDialling>
14925       <fixedLine>
14926         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
14927         <nationalNumberPattern>
14928           870\d{5}|
14929           9[2-47-9]\d{6}
14930         </nationalNumberPattern>
14931         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14932         <exampleNumber>99123456</exampleNumber>
14933       </fixedLine>
14934       <mobile>
14935         <!-- 4X mobile numbers are actually used by Kosovo. -->
14936         <nationalNumberPattern>
14937           6\d{8}|
14938           4(?:
14939             4\d|
14940             5[2-9]
14941           )\d{5}
14942         </nationalNumberPattern>
14943         <exampleNumber>612345678</exampleNumber>
14944       </mobile>
14945       <tollFree>
14946         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14947         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14948         <exampleNumber>90123456</exampleNumber>
14949       </tollFree>
14950     </territory>
14951
14952     <!-- Moldova, Rep. of -->
14953     <territory id="MD" countryCode="373" internationalPrefix="00"
14954                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
14955                mobileNumberPortableRegion="true">
14956       <references>
14957         <sourceUrl>http://www.itu.int/oth/T020200008C/en</sourceUrl>
14958         <!-- Announcements -->
14959         <sourceUrl>http://anrceti.md/fileupload/58</sourceUrl>
14960         <!-- Mobile ranges -->
14961         <sourceUrl>http://en.anrceti.md/resurse_numerotare_tel_mobila</sourceUrl>
14962       </references>
14963       <availableFormats>
14964         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14965           <leadingDigits>
14966             22|
14967             3
14968           </leadingDigits>
14969           <format>$1 $2 $3</format>
14970         </numberFormat>
14971         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
14972           <leadingDigits>
14973             2[13-79]|
14974             [5-7]
14975           </leadingDigits>
14976           <format>$1 $2 $3</format>
14977         </numberFormat>
14978         <numberFormat pattern="([89]\d{2})(\d{5})">
14979           <leadingDigits>[89]</leadingDigits>
14980           <format>$1 $2</format>
14981         </numberFormat>
14982       </availableFormats>
14983       <generalDesc>
14984         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
14985         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14986       </generalDesc>
14987       <fixedLine>
14988         <nationalNumberPattern>
14989           (?:
14990             2(?:
14991               1[0569]|
14992               2\d|
14993               3[015-7]|
14994               4[1-46-9]|
14995               5[0-24689]|
14996               6[2-589]|
14997               7[1-37]|
14998               9[1347-9]
14999             )|
15000             5(?:
15001               33|
15002               5[257]
15003             )
15004           )\d{5}
15005         </nationalNumberPattern>
15006         <exampleNumber>22212345</exampleNumber>
15007       </fixedLine>
15008       <mobile>
15009         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
15010         <nationalNumberPattern>
15011           (?:
15012             562\d|
15013             6(?:
15014               [089]\d{2}|
15015               1[01]\d|
15016               21\d|
15017               50\d|
15018               7(?:
15019                 [1-6]\d|
15020                 7[0-4]
15021               )
15022             )|
15023             7(?:
15024               6[07]|
15025               7[457-9]|
15026               [89]\d
15027             )\d
15028           )\d{4}
15029         </nationalNumberPattern>
15030         <exampleNumber>65012345</exampleNumber>
15031       </mobile>
15032       <tollFree>
15033         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15034         <exampleNumber>80012345</exampleNumber>
15035       </tollFree>
15036       <premiumRate>
15037         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
15038         <exampleNumber>90012345</exampleNumber>
15039       </premiumRate>
15040       <!-- Information came from en.anrceti.md/node/81 -->
15041       <sharedCost>
15042         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
15043         <exampleNumber>80812345</exampleNumber>
15044       </sharedCost>
15045       <uan>
15046         <!-- Includes numbers used for access to different transport directory services of general
15047              interest, since these are charged at the same rate as fixed-line numbers. -->
15048         <nationalNumberPattern>
15049           8(?:
15050             03|
15051             14
15052           )\d{5}
15053         </nationalNumberPattern>
15054         <exampleNumber>80312345</exampleNumber>
15055       </uan>
15056       <voip>
15057         <!-- Used for "nomadic numbers". -->
15058         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
15059         <exampleNumber>30123456</exampleNumber>
15060       </voip>
15061     </territory>
15062
15063     <!-- Montenegro -->
15064     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
15065                nationalPrefixFormattingRule="$NP$FG">
15066       <references>
15067         <sourceUrl>http://www.itu.int/oth/T02020000DA/en</sourceUrl>
15068         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro</sourceUrl>
15069         <sourceUrl>http://www.ekip.me/numeracija/dodijeljena.php</sourceUrl>
15070       </references>
15071       <availableFormats>
15072          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15073           <leadingDigits>[2-57-9]|6[3789]</leadingDigits>
15074           <leadingDigits>
15075             [2-57-9]|
15076             6(?:
15077               [389]|
15078               7(?:
15079                 [0-8]|
15080                 9[3-9]
15081               )
15082             )
15083           </leadingDigits>
15084           <format>$1 $2 $3</format>
15085         </numberFormat>
15086         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
15087           <leadingDigits>679</leadingDigits>
15088           <leadingDigits>679[0-2]</leadingDigits>
15089           <format>$1 $2 $3 $4</format>
15090         </numberFormat>
15091       </availableFormats>
15092       <generalDesc>
15093         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
15094         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
15095       </generalDesc>
15096       <fixedLine>
15097         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
15098              The valid options for the third digit were from
15099              http://www.ekip.me/numeracija/dodijeljena.php -->
15100         <nationalNumberPattern>
15101           (?:
15102             20[2-8]|
15103             3(?:
15104               0[2-7]|
15105               1[35-7]|
15106               2[3567]|
15107               3[4-7]
15108             )|
15109             4(?:
15110               0[237]|
15111               1[27]
15112             )|
15113             5(?:
15114               0[47]|
15115               1[27]|
15116               2[378]
15117             )
15118           )\d{5}
15119         </nationalNumberPattern>
15120         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15121         <exampleNumber>30234567</exampleNumber>
15122       </fixedLine>
15123       <mobile>
15124         <!-- Mobile numbers start with 632, 67, 68 or 69. -->
15125         <nationalNumberPattern>
15126           6(?:
15127             32\d|
15128             [89]\d{2}|
15129             7(?:
15130               [0-8]\d|
15131               9(?:
15132                 [3-9]|
15133                 [0-2]\d
15134               )
15135             )
15136           )\d{4}
15137         </nationalNumberPattern>
15138         <!-- According to ITU it is possible for the numbers to be between length 4-12
15139              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
15140              digits long, based on the Montenegro document. -->
15141         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15142         <exampleNumber>67622901</exampleNumber>
15143       </mobile>
15144       <tollFree>
15145         <!-- All toll free numbers have prefix 80 followed by 02 or 08. -->
15146         <nationalNumberPattern>800[28]\d{4}</nationalNumberPattern>
15147         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15148         <exampleNumber>80080002</exampleNumber>
15149       </tollFree>
15150       <premiumRate>
15151         <!-- Numbers with prefix 88, 94 or 95 are services with additional charges. -->
15152         <nationalNumberPattern>
15153           (?:
15154             88\d|
15155             9(?:
15156               4[13-8]|
15157               5[16-8]
15158             )
15159           )\d{5}
15160         </nationalNumberPattern>
15161         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15162         <exampleNumber>94515151</exampleNumber>
15163       </premiumRate>
15164       <voip>
15165         <!-- VOIP are prefixed with 78. -->
15166         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
15167         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15168         <exampleNumber>78108780</exampleNumber>
15169       </voip>
15170       <uan>
15171         <!-- Corporate Telephony are prefixed with 77. -->
15172         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
15173         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15174         <exampleNumber>77273012</exampleNumber>
15175       </uan>
15176     </territory>
15177
15178     <!-- Saint-Martin, French Antilles -->
15179     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
15180       <references>
15181         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
15182         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
15183         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
15184       </references>
15185       <!-- Formatting rules borrowed from Guadeloupe. -->
15186       <generalDesc>
15187         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15188         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15189       </generalDesc>
15190       <fixedLine>
15191         <nationalNumberPattern>
15192           590(?:
15193             [02][79]|
15194             13|
15195             5[0-268]|
15196             [78]7
15197           )\d{4}
15198         </nationalNumberPattern>
15199         <exampleNumber>590271234</exampleNumber>
15200       </fixedLine>
15201       <mobile>
15202         <!-- Any ranges assigned from
15203              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
15204              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
15205              them. -->
15206         <nationalNumberPattern>
15207           690(?:
15208             0[0-7]|
15209             [1-9]\d
15210           )\d{4}
15211         </nationalNumberPattern>
15212         <exampleNumber>690301234</exampleNumber>
15213       </mobile>
15214     </territory>
15215
15216     <!-- Madagascar -->
15217     <territory id="MG" countryCode="261" internationalPrefix="00"
15218                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15219       <references>
15220         <sourceUrl>http://www.itu.int/oth/T020200007F/en</sourceUrl>
15221       </references>
15222       <availableFormats>
15223         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
15224           <format>$1 $2 $3 $4</format>
15225         </numberFormat>
15226       </availableFormats>
15227       <generalDesc>
15228         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
15229         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15230       </generalDesc>
15231       <fixedLine>
15232         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
15233              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
15234              codes beginning with 4. -->
15235         <nationalNumberPattern>
15236           20(?:
15237             2\d{2}|
15238             4[47]\d|
15239             5[3467]\d|
15240             6[279]\d|
15241             7(?:
15242               2[29]|
15243               [35]\d
15244             )|
15245             8[268]\d|
15246             9[245]\d
15247           )\d{4}
15248         </nationalNumberPattern>
15249         <exampleNumber>202123456</exampleNumber>
15250       </fixedLine>
15251       <mobile>
15252         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
15253              out by reality. -->
15254         <nationalNumberPattern>3[2-49]\d{7}</nationalNumberPattern>
15255         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15256         <exampleNumber>321234567</exampleNumber>
15257       </mobile>
15258       <!-- Putting VSAT numbers here. -->
15259       <voip>
15260         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
15261         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15262         <exampleNumber>221234567</exampleNumber>
15263       </voip>
15264     </territory>
15265
15266     <!-- Marshall Islands -->
15267     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
15268       <references>
15269         <sourceUrl>http://www.itu.int/oth/T0202000085/en</sourceUrl>
15270       </references>
15271       <availableFormats>
15272         <numberFormat pattern="(\d{3})(\d{4})">
15273           <format>$1-$2</format>
15274         </numberFormat>
15275       </availableFormats>
15276       <generalDesc>
15277         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
15278         <possibleNumberPattern>\d{7}</possibleNumberPattern>
15279       </generalDesc>
15280       <fixedLine>
15281         <nationalNumberPattern>
15282           (?:
15283             247|
15284             528|
15285             625
15286           )\d{4}
15287         </nationalNumberPattern>
15288         <exampleNumber>2471234</exampleNumber>
15289       </fixedLine>
15290       <mobile>
15291         <nationalNumberPattern>
15292           (?:
15293             235|
15294             329|
15295             45[56]|
15296             545
15297           )\d{4}
15298         </nationalNumberPattern>
15299         <exampleNumber>2351234</exampleNumber>
15300       </mobile>
15301       <voip>
15302         <!-- VSAT prefixes are here. -->
15303         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
15304         <exampleNumber>6351234</exampleNumber>
15305       </voip>
15306     </territory>
15307
15308     <!-- Macedonia, Former Yugoslav Rep. of -->
15309     <territory id="MK" countryCode="389" internationalPrefix="00"
15310                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
15311                mobileNumberPortableRegion="true">
15312       <references>
15313         <sourceUrl>http://www.itu.int/oth/T02020000CE/en</sourceUrl>
15314       </references>
15315       <availableFormats>
15316         <!-- Formats follow wikipedia. -->
15317         <numberFormat pattern="(2)(\d{3})(\d{4})">
15318           <leadingDigits>2</leadingDigits>
15319           <format>$1 $2 $3</format>
15320         </numberFormat>
15321         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
15322           <leadingDigits>[347]</leadingDigits>
15323           <format>$1 $2 $3</format>
15324         </numberFormat>
15325         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
15326           <leadingDigits>[58]</leadingDigits>
15327           <format>$1 $2 $3 $4</format>
15328         </numberFormat>
15329       </availableFormats>
15330       <generalDesc>
15331         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
15332         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15333       </generalDesc>
15334       <fixedLine>
15335         <nationalNumberPattern>
15336           (?:
15337             2(?:
15338               [23]\d|
15339               5[124578]|
15340               6[01]
15341             )|
15342             3(?:
15343               1[3-6]|
15344               [23][2-6]|
15345               4[2356]
15346             )|
15347             4(?:
15348               [23][2-6]|
15349               4[3-6]|
15350               5[256]|
15351               6[25-8]|
15352               7[24-6]|
15353               8[4-6]
15354             )
15355           )\d{5}
15356         </nationalNumberPattern>
15357         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15358         <exampleNumber>22212345</exampleNumber>
15359       </fixedLine>
15360       <mobile>
15361         <nationalNumberPattern>
15362           7(?:
15363             [0-25-8]\d{2}|
15364             32\d|
15365             421
15366           )\d{4}
15367         </nationalNumberPattern>
15368         <exampleNumber>72345678</exampleNumber>
15369       </mobile>
15370       <tollFree>
15371         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15372         <exampleNumber>80012345</exampleNumber>
15373       </tollFree>
15374       <premiumRate>
15375         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
15376         <exampleNumber>50012345</exampleNumber>
15377       </premiumRate>
15378       <sharedCost>
15379         <nationalNumberPattern>
15380           8(?:
15381             0[1-9]|
15382             [1-9]\d
15383           )\d{5}
15384         </nationalNumberPattern>
15385         <exampleNumber>80123456</exampleNumber>
15386       </sharedCost>
15387     </territory>
15388
15389     <!-- Mali -->
15390     <territory id="ML" countryCode="223" internationalPrefix="00">
15391       <references>
15392         <sourceUrl>http://www.itu.int/oth/T0202000083/en</sourceUrl>
15393         <sourceUrl>http://crt-mali.org/pdf/plan_num</sourceUrl>
15394       </references>
15395       <availableFormats>
15396         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
15397           <leadingDigits>[246-9]</leadingDigits>
15398           <format>$1 $2 $3 $4</format>
15399         </numberFormat>
15400         <!-- Formatting some short numbers as a block. -->
15401         <numberFormat pattern="(\d{4})">
15402           <leadingDigits>
15403             67|
15404             74
15405           </leadingDigits>
15406           <intlFormat>NA</intlFormat>
15407           <format>$1</format>
15408         </numberFormat>
15409       </availableFormats>
15410       <generalDesc>
15411         <nationalNumberPattern>[246-9]\d{7}</nationalNumberPattern>
15412         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15413       </generalDesc>
15414       <fixedLine>
15415         <!-- Patterns from ITU with extra ranges 20 25, 20 7[13-9] and 217 provided by Sotelma and
15416              confirmed by searches online. -->
15417         <nationalNumberPattern>
15418           (?:
15419             2(?:
15420               0(?:
15421                 2[0-589]|
15422                 7\d
15423               )|
15424               1(?:
15425                 2[5-7]|
15426                 [3-689]\d|
15427                 7[2-4689]
15428               )
15429             )|
15430             44[239]\d
15431           )\d{4}
15432         </nationalNumberPattern>
15433         <exampleNumber>20212345</exampleNumber>
15434       </fixedLine>
15435       <mobile>
15436         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
15437              document (which is very stale). All mobile numbers starting with 7 are now Orange.
15438              Includes 6x from Malitel IR21. Numbers beginning with 9 have been found online and
15439              reported by open-source users, although the exact possible second digits are uncertain.
15440              -->
15441         <nationalNumberPattern>
15442           [67]\d{7}|
15443           9[0-25-9]\d{6}
15444         </nationalNumberPattern>
15445         <exampleNumber>65012345</exampleNumber>
15446       </mobile>
15447       <tollFree>
15448         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
15449              plan. -->
15450         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15451         <exampleNumber>80012345</exampleNumber>
15452       </tollFree>
15453    </territory>
15454
15455     <!-- Myanmar -->
15456     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
15457                nationalPrefixFormattingRule="$NP$FG">
15458       <references>
15459         <sourceUrl>http://www.itu.int/oth/T0202000092/en</sourceUrl>
15460       </references>
15461       <availableFormats>
15462         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
15463           <leadingDigits>
15464             1|
15465             2[45]
15466           </leadingDigits>
15467           <format>$1 $2 $3</format>
15468         </numberFormat>
15469         <numberFormat pattern="(2)(\d{4})(\d{4})">
15470           <leadingDigits>251</leadingDigits>
15471           <format>$1 $2 $3</format>
15472         </numberFormat>
15473         <numberFormat pattern="(\d)(\d{2})(\d{3})">
15474           <leadingDigits>
15475             16|
15476             2
15477           </leadingDigits>
15478           <format>$1 $2 $3</format>
15479         </numberFormat>
15480         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
15481           <leadingDigits>
15482             67|
15483             81
15484           </leadingDigits>
15485           <format>$1 $2 $3</format>
15486         </numberFormat>
15487         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
15488           <leadingDigits>[4-8]</leadingDigits>
15489           <format>$1 $2 $3</format>
15490         </numberFormat>
15491         <numberFormat pattern="(9)(\d{3})(\d{4,6})">
15492           <leadingDigits>
15493             9(?:
15494               2[0-4]|
15495               [35-9]|
15496               4[13789]
15497             )
15498           </leadingDigits>
15499           <format>$1 $2 $3</format>
15500         </numberFormat>
15501         <numberFormat pattern="(9)(4\d{4})(\d{4})">
15502           <leadingDigits>94[0245]</leadingDigits>
15503           <format>$1 $2 $3</format>
15504         </numberFormat>
15505         <!-- Following majority of numbers found online. -->
15506         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{3})">
15507           <leadingDigits>925</leadingDigits>
15508           <format>$1 $2 $3 $4</format>
15509         </numberFormat>
15510       </availableFormats>
15511       <generalDesc>
15512         <nationalNumberPattern>
15513           [14578]\d{5,7}|
15514           [26]\d{5,8}|
15515           9(?:
15516             2\d{0,2}|
15517             [58]|
15518             3\d|
15519             4\d{1,2}|
15520             6\d?|
15521             [79]\d{0,2}
15522           )\d{6}
15523         </nationalNumberPattern>
15524         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
15525       </generalDesc>
15526       <fixedLine>
15527         <nationalNumberPattern>
15528           1(?:
15529             2\d{1,2}|
15530             [3-5]\d|
15531             6\d?|
15532             [89][0-6]\d
15533           )\d{4}|
15534           2(?:
15535             [236-9]\d{4}|
15536             4(?:
15537               0\d{5}|
15538               \d{4}
15539             )|
15540             5(?:
15541               1\d{3,6}|
15542               [02-9]\d{3,5}
15543             )
15544           )|
15545           4(?:
15546             2[245-8]|
15547             [346][2-6]|
15548             5[3-5]
15549           )\d{4}|
15550           5(?:
15551             2(?:
15552               20?|
15553               [3-8]
15554             )|
15555             3[2-68]|
15556             4(?:
15557               21?|
15558               [4-8]
15559             )|
15560             5[23]|
15561             6[2-4]|
15562             7[2-8]|
15563             8[24-7]|
15564             9[2-7]
15565           )\d{4}|
15566           6(?:
15567             0[23]|
15568             1[2356]|
15569             [24][2-6]|
15570             3[24-6]|
15571             5[2-4]|
15572             6[2-8]|
15573             7(?:
15574               [2367]|
15575               4\d|
15576               5\d?|
15577               8[145]\d
15578             )|
15579             8[245]|
15580             9[24]
15581           )\d{4}|
15582           7(?:
15583             [04][24-8]|
15584             [15][2-7]|
15585             22|
15586             3[2-4]
15587           )\d{4}|
15588           8(?:
15589             1(?:
15590               2\d?|
15591               [3-689]
15592             )|
15593             2[2-8]|
15594             3[24]|
15595             4[24-7]|
15596             5[245]|
15597             6[23]
15598           )\d{4}
15599         </nationalNumberPattern>
15600         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
15601         <exampleNumber>1234567</exampleNumber>
15602       </fixedLine>
15603       <mobile>
15604         <!-- Added 99[089] (8 digits), 961 (9 digits), and 979 & 997 (10 digits) from bug
15605              reports/numbers found online. -->
15606         <nationalNumberPattern>
15607           17[01]\d{4}|
15608           9(?:
15609             2(?:
15610               [0-4]|
15611               5\d{2}
15612             )|
15613             3[136]\d|
15614             4(?:
15615               0[0-4]\d|
15616               [1379]\d|
15617               [24][0-589]\d|
15618               5\d{2}|
15619               88
15620             )|
15621             5[0-6]|
15622             61?\d|
15623             7(?:
15624               3\d|
15625               9\d{2}
15626             )|
15627             8\d|
15628             9(?:
15629               1\d|
15630               7\d{2}|
15631               [089]
15632             )
15633           )\d{5}
15634         </nationalNumberPattern>
15635         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
15636         <exampleNumber>92123456</exampleNumber>
15637       </mobile>
15638       <voip>
15639         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
15640         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15641         <exampleNumber>13331234</exampleNumber>
15642       </voip>
15643       <!-- No information on other types of phone numbers for Myanmar has been found. -->
15644     </territory>
15645
15646     <!-- Mongolia -->
15647     <territory id="MN" countryCode="976" internationalPrefix="001"
15648                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15649       <references>
15650         <sourceUrl>http://www.itu.int/oth/T020200008E/en</sourceUrl>
15651       </references>
15652       <availableFormats>
15653         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
15654           <leadingDigits>[12]1</leadingDigits>
15655           <format>$1 $2 $3</format>
15656         </numberFormat>
15657         <numberFormat pattern="([12]2\d)(\d{5,6})">
15658           <leadingDigits>[12]2[1-3]</leadingDigits>
15659           <format>$1 $2</format>
15660         </numberFormat>
15661         <numberFormat pattern="([12]\d{3})(\d{5})">
15662           <leadingDigits>
15663             [12](?:
15664               27|
15665               [3-5]
15666             )
15667           </leadingDigits>
15668           <leadingDigits>
15669             [12](?:
15670               27|
15671               [3-5]\d
15672             )2
15673           </leadingDigits>
15674           <format>$1 $2</format>
15675         </numberFormat>
15676         <!-- It seems from online formatting that the national prefix is not written (or perhaps
15677              needed?) for numbers in these ranges. -->
15678         <numberFormat pattern="(\d{4})(\d{4})"
15679           nationalPrefixFormattingRule="$FG">
15680           <leadingDigits>[57-9]</leadingDigits>
15681           <format>$1 $2</format>
15682         </numberFormat>
15683         <numberFormat pattern="([12]\d{4})(\d{4,5})">
15684           <leadingDigits>
15685             [12](?:
15686               27|
15687               [3-5]
15688             )
15689           </leadingDigits>
15690           <leadingDigits>
15691             [12](?:
15692               27|
15693               [3-5]\d
15694             )[4-9]
15695           </leadingDigits>
15696           <format>$1 $2</format>
15697         </numberFormat>
15698       </availableFormats>
15699       <generalDesc>
15700         <nationalNumberPattern>
15701           [12]\d{7,9}|
15702           [57-9]\d{7}
15703         </nationalNumberPattern>
15704         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
15705       </generalDesc>
15706       <fixedLine>
15707         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
15708              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
15709              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
15710              as well, even though we are not certain whether they are in fact fixed or mobile in
15711              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
15712              online numbers being found. -->
15713         <nationalNumberPattern>
15714           [12](?:
15715             1\d|
15716             2(?:
15717               [1-3]\d?|
15718               7\d
15719             )|
15720             3[2-8]\d{1,2}|
15721             4[2-68]\d{1,2}|
15722             5[1-4689]\d{1,2}
15723           )\d{5}|
15724           5[0568]\d{6}
15725         </nationalNumberPattern>
15726         <exampleNumber>50123456</exampleNumber>
15727       </fixedLine>
15728       <mobile>
15729         <nationalNumberPattern>
15730           (?:
15731             8[689]|
15732             9[013-9]
15733           )\d{6}
15734         </nationalNumberPattern>
15735         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15736         <exampleNumber>88123456</exampleNumber>
15737       </mobile>
15738       <!-- No tollFree or premiumRate information can be found. -->
15739       <voip>
15740         <!-- According to the document this could be stricter, but there are counter examples
15741              online. -->
15742         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
15743         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15744         <exampleNumber>75123456</exampleNumber>
15745       </voip>
15746     </territory>
15747
15748     <!-- Macao, China -->
15749     <territory id="MO" countryCode="853" internationalPrefix="00">
15750       <references>
15751         <sourceUrl>http://www.itu.int/oth/T020200007E/en</sourceUrl>
15752       </references>
15753       <availableFormats>
15754         <numberFormat pattern="([268]\d{3})(\d{4})">
15755           <format>$1 $2</format>
15756         </numberFormat>
15757       </availableFormats>
15758       <generalDesc>
15759         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
15760         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15761       </generalDesc>
15762       <fixedLine>
15763         <nationalNumberPattern>
15764           (?:
15765             28[2-57-9]|
15766             8[2-57-9]\d
15767           )\d{5}
15768         </nationalNumberPattern>
15769         <exampleNumber>28212345</exampleNumber>
15770       </fixedLine>
15771       <mobile>
15772         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
15773              numbers, and they are also widely present on the Internet. -->
15774         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
15775         <exampleNumber>66123456</exampleNumber>
15776       </mobile>
15777       <!-- No tollFree or premiumRate information can be found. -->
15778     </territory>
15779
15780     <!-- Northern Mariana Islands -->
15781     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
15782                internationalPrefix="011">
15783       <references>
15784         <sourceUrl>http://www.itu.int/oth/T02020000EE/en</sourceUrl>
15785         <sourceUrl>http://www.cnmiphonebook.com/</sourceUrl>
15786       </references>
15787       <generalDesc>
15788         <!-- NANPA country - uses US formatting rules -->
15789         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15790         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15791       </generalDesc>
15792       <fixedLine>
15793         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
15794              were seen in the white and yellow pages, but no numbers with these exchange codes have
15795              proved to be diallable so we exclude them for now.. -->
15796         <nationalNumberPattern>
15797           670(?:
15798             2(?:
15799               3[3-7]|
15800               56|
15801               8[5-8]
15802             )|
15803             32[1238]|
15804             4(?:
15805               33|
15806               8[348]
15807             )|
15808             5(?:
15809               32|
15810               55|
15811               88
15812             )|
15813             6(?:
15814               64|
15815               70|
15816               82
15817             )|
15818             78[589]|
15819             8[3-9]8|
15820             989
15821           )\d{4}
15822         </nationalNumberPattern>
15823         <exampleNumber>6702345678</exampleNumber>
15824       </fixedLine>
15825       <mobile>
15826         <nationalNumberPattern>
15827           670(?:
15828             2(?:
15829               3[3-7]|
15830               56|
15831               8[5-8]
15832             )|
15833             32[1238]|
15834             4(?:
15835               33|
15836               8[348]
15837             )|
15838             5(?:
15839               32|
15840               55|
15841               88
15842             )|
15843             6(?:
15844               64|
15845               70|
15846               82
15847             )|
15848             78[589]|
15849             8[3-9]8|
15850             989
15851           )\d{4}
15852         </nationalNumberPattern>
15853         <exampleNumber>6702345678</exampleNumber>
15854       </mobile>
15855       <tollFree>
15856         <nationalNumberPattern>
15857           8(?:
15858             00|
15859             44|
15860             55|
15861             66|
15862             77|
15863             88
15864           )[2-9]\d{6}
15865         </nationalNumberPattern>
15866         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15867         <exampleNumber>8002123456</exampleNumber>
15868       </tollFree>
15869       <premiumRate>
15870         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15871         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15872         <exampleNumber>9002123456</exampleNumber>
15873       </premiumRate>
15874       <personalNumber>
15875         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15876         <nationalNumberPattern>
15877           5(?:
15878             00|
15879             33|
15880             44|
15881             66|
15882             77
15883           )[2-9]\d{6}
15884         </nationalNumberPattern>
15885         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15886         <exampleNumber>5002345678</exampleNumber>
15887       </personalNumber>
15888     </territory>
15889
15890     <!-- Martinique (French Dept. of) -->
15891     <territory id="MQ" countryCode="596" internationalPrefix="00"
15892                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15893       <references>
15894         <sourceUrl>http://www.itu.int/oth/T0202000086/en</sourceUrl>
15895         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0596&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
15896       </references>
15897       <availableFormats>
15898         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
15899           <format>$1 $2 $3 $4</format>
15900         </numberFormat>
15901       </availableFormats>
15902       <generalDesc>
15903         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15904         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15905       </generalDesc>
15906       <fixedLine>
15907         <nationalNumberPattern>
15908           596(?:
15909             0[2-5]|
15910             [12]0|
15911             3[05-9]|
15912             4[024-8]|
15913             [5-7]\d|
15914             89|
15915             9[4-8]
15916           )\d{4}
15917         </nationalNumberPattern>
15918         <exampleNumber>596301234</exampleNumber>
15919       </fixedLine>
15920       <mobile>
15921         <nationalNumberPattern>
15922           696(?:
15923             [0-479]\d|
15924             5[01]|
15925             8[0-689]
15926           )\d{4}
15927         </nationalNumberPattern>
15928         <exampleNumber>696201234</exampleNumber>
15929       </mobile>
15930       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
15931            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
15932            too. -->
15933     </territory>
15934
15935     <!-- Mauritania -->
15936     <territory id="MR" countryCode="222" internationalPrefix="00" >
15937       <references>
15938         <sourceUrl>http://www.itu.int/oth/T0202000087/en</sourceUrl>
15939         <sourceUrl>http://are.mr/pdfs/pnn2010.pdf</sourceUrl>
15940       </references>
15941       <availableFormats>
15942         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
15943           <format>$1 $2 $3 $4</format>
15944         </numberFormat>
15945       </availableFormats>
15946       <generalDesc>
15947         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
15948         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15949       </generalDesc>
15950       <fixedLine>
15951         <nationalNumberPattern>
15952           25[08]\d{5}|
15953           35\d{6}|
15954           45[1-7]\d{5}
15955         </nationalNumberPattern>
15956         <exampleNumber>35123456</exampleNumber>
15957       </fixedLine>
15958       <!-- Added "49\d" in response to https://code.google.com/p/libphonenumber/issues/detail?id=529
15959            which might be overly permissive, but we don't have an official documentation for this
15960            and only a small number of numbers were found online. At least 492 and 495 are valid.
15961            -->
15962       <mobile>
15963         <nationalNumberPattern>
15964           (?:
15965             2(?:
15966               2\d|
15967               70
15968             )|
15969             3(?:
15970               3\d|
15971               6[1-36]|
15972               7[1-3]
15973             )|
15974             4(?:
15975               [49]\d|
15976               6[0457-9]|
15977               7[4-9]|
15978               8[01346-8]
15979             )
15980           )\d{5}
15981         </nationalNumberPattern>
15982         <exampleNumber>22123456</exampleNumber>
15983       </mobile>
15984       <tollFree>
15985         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15986         <exampleNumber>80012345</exampleNumber>
15987       </tollFree>
15988     </territory>
15989
15990     <!-- Montserrat -->
15991     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
15992                internationalPrefix="011">
15993       <references>
15994         <sourceUrl>http://www.itu.int/oth/T020200008F/en</sourceUrl>
15995       </references>
15996       <generalDesc>
15997         <!-- NANPA country - uses US formatting rules -->
15998         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15999         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
16000       </generalDesc>
16001       <fixedLine>
16002         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
16003         <exampleNumber>6644912345</exampleNumber>
16004       </fixedLine>
16005       <mobile>
16006         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
16007         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16008         <exampleNumber>6644923456</exampleNumber>
16009       </mobile>
16010       <tollFree>
16011         <nationalNumberPattern>
16012           8(?:
16013             00|
16014             44|
16015             55|
16016             66|
16017             77|
16018             88
16019           )[2-9]\d{6}
16020         </nationalNumberPattern>
16021         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16022         <exampleNumber>8002123456</exampleNumber>
16023       </tollFree>
16024       <premiumRate>
16025         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
16026         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16027         <exampleNumber>9002123456</exampleNumber>
16028       </premiumRate>
16029       <personalNumber>
16030         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
16031         <nationalNumberPattern>
16032           5(?:
16033             00|
16034             33|
16035             44|
16036             66|
16037             77
16038           )[2-9]\d{6}
16039         </nationalNumberPattern>
16040         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16041         <exampleNumber>5002345678</exampleNumber>
16042       </personalNumber>
16043     </territory>
16044
16045     <!-- Malta -->
16046     <territory id="MT" countryCode="356" internationalPrefix="00" mobileNumberPortableRegion="true">
16047       <references>
16048         <sourceUrl>http://www.itu.int/oth/T0202000084/en</sourceUrl>
16049         <!-- Numbering link in the LHS menu - has more up-to-date allocations -->
16050         <sourceUrl>http://www.mca.org.mt</sourceUrl>
16051       </references>
16052       <availableFormats>
16053         <numberFormat pattern="(\d{4})(\d{4})">
16054           <format>$1 $2</format>
16055         </numberFormat>
16056       </availableFormats>
16057       <generalDesc>
16058         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
16059         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16060       </generalDesc>
16061       <fixedLine>
16062         <nationalNumberPattern>
16063           2(?:
16064             0(?:
16065               1[0-6]|
16066               3[1-4]|
16067               [69]\d
16068             )|
16069             [1-357]\d{2}
16070           )\d{4}
16071         </nationalNumberPattern>
16072         <exampleNumber>21001234</exampleNumber>
16073       </fixedLine>
16074       <mobile>
16075         <!-- 7210 and 92XX come from the allocations listed on http://www.mca.org.mt, but they are
16076              not listed in the latest ITU document. -->
16077         <nationalNumberPattern>
16078           (?:
16079             7(?:
16080               210|
16081               [79]\d{2}
16082             )|
16083             9(?:
16084               2(?:
16085                1[01]|
16086                31
16087               )|
16088               696|
16089               8(?:
16090                 1[1-3]|
16091                 89|
16092                 97
16093               )|
16094               9\d{2}
16095             )
16096           )\d{4}
16097         </nationalNumberPattern>
16098         <exampleNumber>96961234</exampleNumber>
16099       </mobile>
16100       <pager>
16101         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
16102         <exampleNumber>71171234</exampleNumber>
16103       </pager>
16104       <tollFree>
16105         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
16106         <exampleNumber>80071234</exampleNumber>
16107       </tollFree>
16108       <premiumRate>
16109         <nationalNumberPattern>
16110           5(?:
16111             0(?:
16112               0(?:
16113                 37|
16114                 43
16115               )|
16116               6\d{2}|
16117               70\d|
16118               9[0168]
16119             )|
16120             [12]\d0[1-5]
16121           )\d{3}
16122         </nationalNumberPattern>
16123         <exampleNumber>50037123</exampleNumber>
16124       </premiumRate>
16125       <voip>
16126         <!-- In the plan as Non-PATS ECS. -->
16127         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
16128         <exampleNumber>35501234</exampleNumber>
16129       </voip>
16130       <uan>
16131         <!-- Using this for governmental numbers. -->
16132         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
16133         <exampleNumber>50112345</exampleNumber>
16134       </uan>
16135     </territory>
16136
16137     <!-- Mauritius -->
16138     <!-- Preferred international prefix is expected to standardize on just '00' -->
16139     <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
16140                preferredInternationalPrefix="020">
16141       <references>
16142         <sourceUrl>http://www.icta.mu/telecommunications/numbering.htm</sourceUrl>
16143       </references>
16144       <availableFormats>
16145         <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
16146           <leadingDigits>[2-46-9]</leadingDigits>
16147           <format>$1 $2</format>
16148         </numberFormat>
16149         <numberFormat pattern="(5\d{3})(\d{4})">
16150           <leadingDigits>5</leadingDigits>
16151           <format>$1 $2</format>
16152         </numberFormat>
16153       </availableFormats>
16154       <generalDesc>
16155         <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
16156         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
16157       </generalDesc>
16158       <fixedLine>
16159         <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
16160         <nationalNumberPattern>
16161           (?:
16162             2(?:
16163               [03478]\d|
16164               1[0-7]|
16165               6[1-69]
16166             )|
16167             4(?:
16168               [013568]\d|
16169               2[4-7]
16170             )|
16171             5(?:
16172               44\d|
16173               471
16174             )|
16175             6\d{2}|
16176             8(?:
16177               14|
16178               3[129]
16179             )
16180           )\d{4}
16181         </nationalNumberPattern>
16182         <exampleNumber>2012345</exampleNumber>
16183       </fixedLine>
16184       <mobile>
16185         <nationalNumberPattern>
16186           5(?:
16187             2[59]\d|
16188             4(?:
16189               2[1-389]|
16190               4\d|
16191               7[1-9]|
16192               9\d
16193             )|
16194             7\d{2}|
16195             8(?:
16196               [256]\d|
16197               7[15-8]
16198             )|
16199             9[0-8]\d
16200           )\d{4}
16201         </nationalNumberPattern>
16202         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16203         <exampleNumber>52512345</exampleNumber>
16204       </mobile>
16205       <tollFree>
16206         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
16207         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16208         <exampleNumber>8001234</exampleNumber>
16209       </tollFree>
16210       <premiumRate>
16211         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
16212         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16213         <exampleNumber>3012345</exampleNumber>
16214       </premiumRate>
16215       <voip>
16216         <nationalNumberPattern>
16217           3(?:
16218             20|
16219             9\d
16220           )\d{4}
16221         </nationalNumberPattern>
16222         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16223         <exampleNumber>3201234</exampleNumber>
16224       </voip>
16225     </territory>
16226
16227     <!-- Maldives -->
16228     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
16229                preferredInternationalPrefix="00">
16230       <references>
16231         <sourceUrl>http://www.itu.int/oth/T0202000082/en</sourceUrl>
16232         <sourceUrl>http://www.dhiraagu.com.mv</sourceUrl>
16233       </references>
16234       <availableFormats>
16235         <numberFormat pattern="(\d{3})(\d{4})">
16236           <leadingDigits>
16237             [3467]|
16238             9(?:
16239               [1-9]|
16240               0[1-9]
16241             )
16242           </leadingDigits>
16243           <format>$1-$2</format>
16244         </numberFormat>
16245         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16246           <leadingDigits>900</leadingDigits>
16247           <format>$1 $2 $3</format>
16248         </numberFormat>
16249       </availableFormats>
16250       <generalDesc>
16251         <nationalNumberPattern>
16252           [3467]\d{6}|
16253           9(?:
16254             00\d{7}|
16255             \d{6}
16256           )
16257         </nationalNumberPattern>
16258         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16259       </generalDesc>
16260       <fixedLine>
16261         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
16262              diallable. -->
16263         <nationalNumberPattern>
16264           (?:
16265             3(?:
16266               0[01]|
16267               3[0-59]
16268             )|
16269             6(?:
16270               [567][02468]|
16271               8[024689]|
16272               90
16273             )
16274           )\d{4}
16275         </nationalNumberPattern>
16276         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16277         <exampleNumber>6701234</exampleNumber>
16278       </fixedLine>
16279       <mobile>
16280         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
16281              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
16282              91 was added based on information from Wataniya Telecom. -->
16283         <nationalNumberPattern>
16284           (?:
16285             46[46]|
16286             7[3-9]\d|
16287             9[16-9]\d
16288           )\d{4}
16289         </nationalNumberPattern>
16290         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16291         <exampleNumber>7712345</exampleNumber>
16292       </mobile>
16293       <pager>
16294         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
16295         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16296         <exampleNumber>7812345</exampleNumber>
16297       </pager>
16298       <premiumRate>
16299         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16300         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16301         <exampleNumber>9001234567</exampleNumber>
16302       </premiumRate>
16303     </territory>
16304
16305     <!-- Malawi -->
16306     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
16307          consistent in having one. -->
16308     <territory id="MW" countryCode="265" internationalPrefix="00"
16309                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16310       <references>
16311         <sourceUrl>http://www.itu.int/oth/T0202000080/en</sourceUrl>
16312       </references>
16313       <availableFormats>
16314         <numberFormat pattern="(\d)(\d{3})(\d{3})">
16315           <leadingDigits>1</leadingDigits>
16316           <format>$1 $2 $3</format>
16317         </numberFormat>
16318         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
16319           <leadingDigits>2</leadingDigits>
16320           <format>$1 $2 $3</format>
16321         </numberFormat>
16322         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16323           <leadingDigits>[1789]</leadingDigits>
16324           <format>$1 $2 $3 $4</format>
16325         </numberFormat>
16326       </availableFormats>
16327       <generalDesc>
16328         <nationalNumberPattern>
16329           (?:
16330             1(?:
16331               \d{2}
16332             )?|
16333             [2789]\d{2}
16334           )\d{6}
16335         </nationalNumberPattern>
16336         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
16337       </generalDesc>
16338       <fixedLine>
16339         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
16340              been found so this is being retained for now. It is possible however that these may be
16341              old-format mobile numbers. -->
16342         <nationalNumberPattern>
16343           (?:
16344             1[2-9]|
16345             21\d{2}
16346           )\d{5}
16347         </nationalNumberPattern>
16348         <exampleNumber>1234567</exampleNumber>
16349       </fixedLine>
16350       <mobile>
16351         <nationalNumberPattern>
16352           (?:
16353             111|
16354             77\d|
16355             88\d|
16356             99\d
16357           )\d{6}
16358         </nationalNumberPattern>
16359         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16360         <exampleNumber>991234567</exampleNumber>
16361       </mobile>
16362     </territory>
16363
16364     <!-- Mexico -->
16365     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
16366                nationalPrefix="01"
16367                nationalPrefixForParsing="0[12]|04[45](\d{10})"
16368                nationalPrefixTransformRule="1$1"
16369                nationalPrefixFormattingRule="$NP $FG"
16370                nationalPrefixOptionalWhenFormatting="true"
16371                leadingZeroPossible="true" mobileNumberPortableRegion="true">
16372       <references>
16373         <sourceUrl>http://www.itu.int/oth/T020200008A/en</sourceUrl>
16374         <sourceUrl>http://en.wikipedia.org/wiki/%2B52</sourceUrl>
16375         <sourceUrl>http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico</sourceUrl>
16376         <sourceUrl>http://en.wikipedia.org/wiki/Toll-free_telephone_number</sourceUrl>
16377       </references>
16378       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
16379            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
16380            numbers, regardless of whether they are written in international format (leading 1) or
16381            national format (leading 044/045), will be parsed into the same form. -->
16382       <availableFormats>
16383         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
16384           <leadingDigits>
16385             33|
16386             55|
16387             81
16388           </leadingDigits>
16389           <format>$1 $2 $3</format>
16390         </numberFormat>
16391         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16392           <leadingDigits>
16393             [2467]|
16394             3[12457-9]|
16395             5[89]|
16396             8[02-9]|
16397             9[0-35-9]
16398           </leadingDigits>
16399           <format>$1 $2 $3</format>
16400         </numberFormat>
16401         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
16402           <leadingDigits>
16403             1(?:
16404               33|
16405               55|
16406               81
16407             )
16408           </leadingDigits>
16409           <format>044 $2 $3 $4</format>
16410           <intlFormat>$1 $2 $3 $4</intlFormat>
16411         </numberFormat>
16412         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
16413           <leadingDigits>
16414             1(?:
16415               [2467]|
16416               3[12457-9]|
16417               5[89]|
16418               8[2-9]|
16419               9[1-35-9]
16420             )
16421           </leadingDigits>
16422           <format>044 $2 $3 $4</format>
16423           <intlFormat>$1 $2 $3 $4</intlFormat>
16424         </numberFormat>
16425       </availableFormats>
16426       <generalDesc>
16427         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
16428         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
16429       </generalDesc>
16430       <fixedLine>
16431         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
16432         <nationalNumberPattern>
16433           (?:
16434             33|
16435             55|
16436             81
16437           )\d{8}|
16438           (?:
16439             2(?:
16440               2[2-9]|
16441               3[1-35-8]|
16442               4[13-9]|
16443               7[1-689]|
16444               8[1-578]|
16445               9[467]
16446             )|
16447             3(?:
16448               1[1-79]|
16449               [2458][1-9]|
16450               7[1-8]|
16451               9[1-5]
16452             )|
16453             4(?:
16454               1[1-57-9]|
16455               [24-6][1-9]|
16456               [37][1-8]|
16457               8[1-35-9]|
16458               9[2-689]
16459             )|
16460             5(?:
16461               88|
16462               9[1-79]
16463             )|
16464             6(?:
16465               1[2-68]|
16466               [234][1-9]|
16467               5[1-3689]|
16468               6[12457-9]|
16469               7[1-7]|
16470               8[67]|
16471               9[4-8]
16472             )|
16473             7(?:
16474               [13467][1-9]|
16475               2[1-8]|
16476               5[13-9]|
16477               8[1-69]|
16478               9[17]
16479             )|
16480             8(?:
16481               2[13-689]|
16482               3[1-6]|
16483               4[124-6]|
16484               6[1246-9]|
16485               7[1-378]|
16486               9[12479]
16487             )|
16488             9(?:
16489               1[346-9]|
16490               2[1-4]|
16491               3[2-46-8]|
16492               5[1348]|
16493               [69][1-9]|
16494               7[12]|
16495               8[1-8]
16496             )
16497           )\d{7}
16498         </nationalNumberPattern>
16499         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16500         <exampleNumber>2221234567</exampleNumber>
16501       </fixedLine>
16502       <mobile>
16503         <nationalNumberPattern>
16504           1(?:
16505             (?:
16506               33|
16507               55|
16508               81
16509             )\d{8}|
16510             (?:
16511               2(?:
16512                 2[2-9]|
16513                 3[1-35-8]|
16514                 4[13-9]|
16515                 7[1-689]|
16516                 8[1-578]|
16517                 9[467]
16518               )|
16519               3(?:
16520                 1[1-79]|
16521                 [2458][1-9]|
16522                 7[1-8]|
16523                 9[1-5]
16524               )|
16525               4(?:
16526                 1[1-57-9]|
16527                 [24-6][1-9]|
16528                 [37][1-8]|
16529                 8[1-35-9]|
16530                 9[2-689]
16531               )|
16532               5(?:
16533                 88|
16534                 9[1-79]
16535               )|
16536               6(?:
16537                 1[2-68]|
16538                 [2-4][1-9]|
16539                 5[1-3689]|
16540                 6[12457-9]|
16541                 7[1-7]|
16542                 8[67]|
16543                 9[4-8]
16544               )|
16545               7(?:
16546                 [13467][1-9]|
16547                 2[1-8]|
16548                 5[13-9]|
16549                 8[1-69]|
16550                 9[17]
16551               )|
16552               8(?:
16553                 2[13-689]|
16554                 3[1-6]|
16555                 4[124-6]|
16556                 6[1246-9]|
16557                 7[1-378]|
16558                 9[12479]
16559               )|
16560               9(?:
16561                 1[346-9]|
16562                 2[1-4]|
16563                 3[2-46-8]|
16564                 5[1348]|
16565                 [69][1-9]|
16566                 7[12]|
16567                 8[1-8]
16568               )
16569             )\d{7}
16570           )
16571         </nationalNumberPattern>
16572         <possibleNumberPattern>\d{11}</possibleNumberPattern>
16573         <exampleNumber>12221234567</exampleNumber>
16574       </mobile>
16575       <tollFree>
16576         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
16577         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16578         <exampleNumber>8001234567</exampleNumber>
16579       </tollFree>
16580       <premiumRate>
16581         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16582         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16583         <exampleNumber>9001234567</exampleNumber>
16584       </premiumRate>
16585     </territory>
16586
16587     <!-- Malaysia -->
16588     <territory id="MY" countryCode="60" internationalPrefix="00"
16589                nationalPrefix="0" mobileNumberPortableRegion="true">
16590       <references>
16591         <sourceUrl>http://en.wikipedia.org/wiki/%2B60</sourceUrl>
16592         <sourceUrl>http://www.skmm.gov.my</sourceUrl>
16593       </references>
16594       <availableFormats>
16595         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16596           pattern="([4-79])(\d{3})(\d{4})">
16597           <leadingDigits>[4-79]</leadingDigits>
16598           <format>$1-$2 $3</format>
16599         </numberFormat>
16600         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16601           pattern="(3)(\d{4})(\d{4})">
16602           <leadingDigits>3</leadingDigits>
16603           <format>$1-$2 $3</format>
16604         </numberFormat>
16605         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16606           pattern="([18]\d)(\d{3})(\d{3,4})">
16607           <leadingDigits>
16608             1[02-46-9][1-9]|
16609             8
16610           </leadingDigits>
16611           <format>$1-$2 $3</format>
16612         </numberFormat>
16613         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
16614           <leadingDigits>1[36-8]0</leadingDigits>
16615           <format>$1-$2-$3-$4</format>
16616         </numberFormat>
16617         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16618           pattern="(11)(\d{4})(\d{4})">
16619           <leadingDigits>11</leadingDigits>
16620           <format>$1-$2 $3</format>
16621         </numberFormat>
16622         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16623           pattern="(15[49])(\d{3})(\d{4})">
16624           <leadingDigits>15</leadingDigits>
16625           <format>$1-$2 $3</format>
16626         </numberFormat>
16627       </availableFormats>
16628       <generalDesc>
16629         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
16630         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
16631       </generalDesc>
16632       <fixedLine>
16633         <nationalNumberPattern>
16634           (?:
16635             3[2-9]\d|
16636             [4-9][2-9]
16637           )\d{6}
16638         </nationalNumberPattern>
16639         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
16640         <exampleNumber>323456789</exampleNumber>
16641       </fixedLine>
16642       <mobile>
16643         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
16644              is possible to send SMSs (and receive them) from numbers in this block, so we are
16645              listing them as mobile. -->
16646         <nationalNumberPattern>
16647           1(?:
16648             1[1-3]\d{2}|
16649             [02-4679][2-9]\d|
16650             59\d{2}|
16651             8(?:
16652               1[23]|
16653               [2-9]\d
16654             )
16655           )\d{5}
16656         </nationalNumberPattern>
16657         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
16658         <exampleNumber>123456789</exampleNumber>
16659       </mobile>
16660       <tollFree>
16661         <!-- http://www.skmm.gov.my/skmmgovmy/media/General/pdf/Special_Service_Number.pdf -->
16662         <nationalNumberPattern>1[378]00\d{6}</nationalNumberPattern>
16663         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16664         <exampleNumber>1300123456</exampleNumber>
16665       </tollFree>
16666       <premiumRate>
16667         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
16668         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16669         <exampleNumber>1600123456</exampleNumber>
16670       </premiumRate>
16671       <voip>
16672         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
16673         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16674         <exampleNumber>1541234567</exampleNumber>
16675       </voip>
16676     </territory>
16677
16678     <!-- Mozambique -->
16679     <territory id="MZ" countryCode="258" internationalPrefix="00">
16680       <references>
16681         <sourceUrl>http://www.itu.int/oth/T0202000091/en</sourceUrl>
16682       </references>
16683       <availableFormats>
16684         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
16685           <leadingDigits>
16686             2|
16687             8[2-7]
16688           </leadingDigits>
16689           <format>$1 $2 $3</format>
16690         </numberFormat>
16691         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
16692           <leadingDigits>80</leadingDigits>
16693           <format>$1 $2 $3</format>
16694         </numberFormat>
16695       </availableFormats>
16696       <generalDesc>
16697         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
16698         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16699       </generalDesc>
16700       <fixedLine>
16701         <nationalNumberPattern>
16702           2(?:
16703             [1346]\d|
16704             5[0-2]|
16705             [78][12]|
16706             93
16707           )\d{5}
16708         </nationalNumberPattern>
16709         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16710         <exampleNumber>21123456</exampleNumber>
16711       </fixedLine>
16712       <mobile>
16713         <nationalNumberPattern>8[23467]\d{7}</nationalNumberPattern>
16714         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16715         <exampleNumber>821234567</exampleNumber>
16716       </mobile>
16717       <tollFree>
16718         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
16719              examples. -->
16720         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
16721         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16722         <exampleNumber>800123456</exampleNumber>
16723       </tollFree>
16724       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
16725            a 9 are premium rate, but no online examples can be found of any of these so they are
16726            omitted for the time-being. -->
16727     </territory>
16728
16729     <!-- Namibia -->
16730     <territory id="NA" countryCode="264" internationalPrefix="00"
16731                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16732       <references>
16733         <sourceUrl>http://www.itu.int/oth/T0202000093/en</sourceUrl>
16734       </references>
16735       <availableFormats>
16736         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
16737           <leadingDigits>8[1235]</leadingDigits>
16738           <format>$1 $2 $3</format>
16739         </numberFormat>
16740         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
16741           <leadingDigits>6</leadingDigits>
16742           <format>$1 $2 $3</format>
16743         </numberFormat>
16744         <numberFormat pattern="(88)(\d{3})(\d{3})">
16745           <leadingDigits>88</leadingDigits>
16746           <format>$1 $2 $3</format>
16747         </numberFormat>
16748         <numberFormat pattern="(870)(\d{3})(\d{3})">
16749           <leadingDigits>870</leadingDigits>
16750           <format>$1 $2 $3</format>
16751         </numberFormat>
16752       </availableFormats>
16753       <generalDesc>
16754         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
16755         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16756       </generalDesc>
16757       <fixedLine>
16758         <!-- Includes VSAT service. -->
16759         <nationalNumberPattern>
16760           6(?:
16761             1(?:
16762               17|
16763               2(?:
16764                 [0189]\d|
16765                 [2-6]|
16766                 7\d?
16767               )|
16768               3(?:
16769                 [01378]|
16770                 2\d
16771               )|
16772               4[01]|
16773               69|
16774               7[014]
16775             )|
16776             2(?:
16777               17|
16778               5(?:
16779                 [0-36-8]|
16780                 4\d?
16781               )|
16782               69|
16783               70
16784             )|
16785             3(?:
16786               17|
16787               2(?:
16788                 [0237]\d?|
16789                 [14-689]
16790               )|
16791               34|
16792               6[29]|
16793               7[01]|
16794               81
16795             )|
16796             4(?:
16797               17|
16798               2(?:
16799                 [012]|
16800                 7?
16801               )|
16802               4(?:
16803                 [06]|
16804                 1\d
16805               )|
16806               5(?:
16807                 [01357]|
16808                 [25]\d?
16809               )|
16810               69|
16811               7[01]
16812             )|
16813             5(?:
16814               17|
16815               2(?:
16816                 [0459]|
16817                 [23678]\d?
16818               )|
16819               69|
16820               7[01]
16821             )|
16822             6(?:
16823               17|
16824               2(?:
16825                 5|
16826                 6\d?
16827               )|
16828               38|
16829               42|
16830               69|
16831               7[01]
16832             )|
16833             7(?:
16834               17|
16835               2(?:
16836                 [569]|
16837                 [234]\d?
16838               )|
16839               3(?:
16840                 0\d?|
16841                 [13]
16842               )|
16843               69|
16844               7[01]
16845             )
16846           )\d{4}
16847         </nationalNumberPattern>
16848         <exampleNumber>61221234</exampleNumber>
16849       </fixedLine>
16850       <mobile>
16851         <!-- Includes the Switch CDMA Service. -->
16852         <nationalNumberPattern>
16853           (?:
16854             60|
16855             8[125]
16856           )\d{7}
16857         </nationalNumberPattern>
16858         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16859         <exampleNumber>811234567</exampleNumber>
16860       </mobile>
16861       <premiumRate>
16862         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
16863         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16864         <exampleNumber>870123456</exampleNumber>
16865       </premiumRate>
16866       <voip>
16867         <!-- Including virtual telephone and VOIP services. -->
16868         <nationalNumberPattern>
16869           8(?:
16870             3\d{2}|
16871             86
16872           )\d{5}
16873         </nationalNumberPattern>
16874         <exampleNumber>88612345</exampleNumber>
16875       </voip>
16876     </territory>
16877
16878     <!-- New Caledonia (Territoire français d'outre-mer) -->
16879     <territory id="NC" countryCode="687" internationalPrefix="00">
16880       <references>
16881         <sourceUrl>http://www.itu.int/oth/T0202000098/en</sourceUrl>
16882         <sourceUrl>http://www.opt.nc</sourceUrl>
16883       </references>
16884       <availableFormats>
16885         <!-- From http://www.1012.nc, the local yellow pages. -->
16886         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
16887           <!-- We exclude short-codes here so they are formatted as a block -->
16888           <leadingDigits>
16889             [2-46-9]|
16890             5[0-4]
16891           </leadingDigits>
16892           <format>$1.$2.$3</format>
16893         </numberFormat>
16894       </availableFormats>
16895       <generalDesc>
16896         <nationalNumberPattern>[2-57-9]\d{5}</nationalNumberPattern>
16897         <possibleNumberPattern>\d{6}</possibleNumberPattern>
16898       </generalDesc>
16899       <fixedLine>
16900         <!-- Including the 88 prefix for public payphones. -->
16901         <nationalNumberPattern>
16902           (?:
16903             2[03-9]|
16904             3[0-5]|
16905             4[1-7]|
16906             88
16907           )\d{4}
16908         </nationalNumberPattern>
16909         <exampleNumber>201234</exampleNumber>
16910       </fixedLine>
16911       <mobile>
16912         <nationalNumberPattern>
16913           (?:
16914             5[0-4]|
16915             [79]\d|
16916             8[0-79]
16917           )\d{4}
16918         </nationalNumberPattern>
16919         <exampleNumber>751234</exampleNumber>
16920       </mobile>
16921       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
16922       <!-- Note that OPT lists 3631 as a free short number for caller ID services, but the ITU
16923            document says that all 36 numbers are 6 digits. See ShortNumberMetadata.xml for more. -->
16924       <premiumRate>
16925         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
16926         <exampleNumber>366711</exampleNumber>
16927       </premiumRate>
16928     </territory>
16929
16930     <!-- Niger -->
16931     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
16932       <references>
16933         <sourceUrl>http://www.itu.int/oth/T020200009B/en</sourceUrl>
16934       </references>
16935       <availableFormats>
16936         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
16937           <leadingDigits>
16938             [289]|
16939             09
16940           </leadingDigits>
16941           <format>$1 $2 $3 $4</format>
16942         </numberFormat>
16943         <numberFormat pattern="(08)(\d{3})(\d{3})">
16944           <leadingDigits>08</leadingDigits>
16945           <format>$1 $2 $3</format>
16946         </numberFormat>
16947       </availableFormats>
16948       <generalDesc>
16949         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
16950         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16951       </generalDesc>
16952       <fixedLine>
16953         <!-- Adding 20 61 from online numbers. -->
16954         <nationalNumberPattern>
16955           2(?:
16956             0(?:
16957               20|
16958               3[1-7]|
16959               4[134]|
16960               5[14]|
16961               6[14578]|
16962               7[1-578]
16963             )|
16964             1(?:
16965               4[145]|
16966               5[14]|
16967               6[14-68]|
16968               7[169]|
16969               88
16970             )
16971           )\d{4}
16972         </nationalNumberPattern>
16973         <exampleNumber>20201234</exampleNumber>
16974       </fixedLine>
16975       <mobile>
16976         <!-- Added 90, 91, 92, 95, 97, 98 & 99 from online data. Airtel have confirmed that they use the
16977              89 and 97 prefixes, and Orange use 92. MOOV started using 95 in Jan 2014. -->
16978         <nationalNumberPattern>
16979           (?:
16980             89|
16981             9\d
16982           )\d{6}
16983         </nationalNumberPattern>
16984         <exampleNumber>93123456</exampleNumber>
16985       </mobile>
16986       <tollFree>
16987         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
16988         <exampleNumber>08123456</exampleNumber>
16989       </tollFree>
16990       <premiumRate>
16991         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
16992         <exampleNumber>09123456</exampleNumber>
16993       </premiumRate>
16994     </territory>
16995
16996     <!-- Norfolk Island -->
16997     <!-- Including numbers for Australian Antarctic stations. -->
16998     <territory id="NF" countryCode="672" internationalPrefix="00">
16999       <references>
17000         <sourceUrl>http://www.itu.int/oth/T020200009D/en</sourceUrl>
17001       </references>
17002       <availableFormats>
17003         <numberFormat pattern="(\d{2})(\d{4})">
17004            <leadingDigits>1</leadingDigits>
17005           <format>$1 $2</format>
17006         </numberFormat>
17007         <numberFormat pattern="(\d)(\d{5})">
17008           <leadingDigits>3</leadingDigits>
17009           <format>$1 $2</format>
17010         </numberFormat>
17011       </availableFormats>
17012       <generalDesc>
17013         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
17014         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17015       </generalDesc>
17016       <fixedLine>
17017         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
17018              connect after we tried calling them. -->
17019         <nationalNumberPattern>
17020           (?:
17021             1(?:
17022               06|
17023               17|
17024               28|
17025               39
17026             )|
17027             3[012]\d
17028           )\d{3}
17029         </nationalNumberPattern>
17030         <exampleNumber>106609</exampleNumber>
17031       </fixedLine>
17032       <mobile>
17033         <nationalNumberPattern>38\d{4}</nationalNumberPattern>
17034         <exampleNumber>381234</exampleNumber>
17035       </mobile>
17036     </territory>
17037
17038     <!-- Nigeria -->
17039     <territory id="NG" countryCode="234" internationalPrefix="009"
17040                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17041                mobileNumberPortableRegion="true">
17042       <references>
17043         <sourceUrl>http://www.itu.int/oth/T020200009C/en</sourceUrl>
17044       </references>
17045       <availableFormats>
17046         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
17047           <leadingDigits>[129]</leadingDigits>
17048           <format>$1 $2 $3</format>
17049         </numberFormat>
17050         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
17051           <leadingDigits>
17052             [3-6]|
17053             7(?:
17054               [1-79]|
17055               0[1-9]
17056             )|
17057             8[2-9]
17058           </leadingDigits>
17059           <format>$1 $2 $3</format>
17060         </numberFormat>
17061         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17062           <leadingDigits>
17063             70|
17064             8[01]|
17065             90[239]
17066           </leadingDigits>
17067           <format>$1 $2 $3</format>
17068         </numberFormat>
17069         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17070           <leadingDigits>[78]00</leadingDigits>
17071           <format>$1 $2 $3</format>
17072         </numberFormat>
17073         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
17074           <leadingDigits>[78]00</leadingDigits>
17075           <format>$1 $2 $3</format>
17076         </numberFormat>
17077         <numberFormat pattern="(78)(\d{2})(\d{3})">
17078           <leadingDigits>78</leadingDigits>
17079           <format>$1 $2 $3</format>
17080         </numberFormat>
17081       </availableFormats>
17082       <generalDesc>
17083         <nationalNumberPattern>
17084           [1-6]\d{5,8}|
17085           9\d{5,9}|
17086           [78]\d{5,13}
17087         </nationalNumberPattern>
17088         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
17089       </generalDesc>
17090       <fixedLine>
17091         <nationalNumberPattern>
17092           [12]\d{6,7}|
17093           9(?:
17094             0[3-9]|
17095             [1-9]\d
17096           )\d{5}|
17097           (?:
17098             3\d|
17099             4[023568]|
17100             5[02368]|
17101             6[02-469]|
17102             7[4-69]|
17103             8[2-9]
17104           )\d{6}|
17105           (?:
17106             4[47]|
17107             5[14579]|
17108             6[1578]|
17109             7[0-357]
17110           )\d{5,6}|
17111           (?:
17112             78|
17113             41
17114           )\d{5}
17115         </nationalNumberPattern>
17116         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
17117         <exampleNumber>12345678</exampleNumber>
17118       </fixedLine>
17119       <mobile>
17120         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17121              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17122              Starcomms have apparently, according to the company, been used for mobile numbers too,
17123              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17124              903 has been added for MTN and 909 has been added for Etisalat. -->
17125         <nationalNumberPattern>
17126           (?:
17127             1(?:
17128               7[34]\d|
17129               8(?:
17130                 04|
17131                 [124579]\d|
17132                 8[0-3]
17133               )|
17134               95\d
17135             )|
17136             287[0-7]|
17137             3(?:
17138               18[1-8]|
17139               88[0-7]|
17140               9(?:
17141                 8[5-9]|
17142                 6[1-5]
17143               )
17144             )|
17145             4(?:
17146               28[0-2]|
17147               6(?:
17148                 7[1-9]|
17149                 8[02-47]
17150               )|
17151               88[0-2]
17152             )|
17153             5(?:
17154               2(?:
17155                 7[7-9]|
17156                 8\d
17157               )|
17158               38[1-79]|
17159               48[0-7]|
17160               68[4-7]
17161             )|
17162             6(?:
17163               2(?:
17164                 7[7-9]|
17165                 8\d
17166               )|
17167               4(?:
17168                 3[7-9]|
17169                 [68][129]|
17170                 7[04-69]|
17171                 9[1-8]
17172               )|
17173               58[0-2]|
17174               98[7-9]
17175             )|
17176             7(?:
17177               38[0-7]|
17178               69[1-8]|
17179               78[2-4]
17180             )|
17181             8(?:
17182               28[3-9]|
17183               38[0-2]|
17184               4(?:
17185                 2[12]|
17186                 3[147-9]|
17187                 5[346]|
17188                 7[4-9]|
17189                 8[014-689]|
17190                 90
17191               )|
17192               58[1-8]|
17193               78[2-9]|
17194               88[5-7]
17195             )|
17196             98[07]\d
17197           )\d{4}|
17198           (?:
17199             70(?:
17200               [13-9]\d|
17201               2[1-9]
17202             )|
17203             8(?:
17204               0[2-9]|
17205               1\d
17206             )\d|
17207             90[239]\d
17208           )\d{6}
17209         </nationalNumberPattern>
17210         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17211         <exampleNumber>8021234567</exampleNumber>
17212       </mobile>
17213       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
17214       <tollFree>
17215         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
17216         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17217         <exampleNumber>80017591759</exampleNumber>
17218       </tollFree>
17219       <uan>
17220         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
17221         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17222         <exampleNumber>7001234567</exampleNumber>
17223       </uan>
17224     </territory>
17225
17226     <!-- Nicaragua -->
17227     <territory id="NI" countryCode="505" internationalPrefix="00">
17228       <references>
17229         <sourceUrl>http://www.itu.int/oth/T020200009A/en</sourceUrl>
17230       </references>
17231       <availableFormats>
17232         <numberFormat pattern="(\d{4})(\d{4})">
17233           <format>$1 $2</format>
17234         </numberFormat>
17235       </availableFormats>
17236       <generalDesc>
17237         <nationalNumberPattern>[12578]\d{7}</nationalNumberPattern>
17238         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17239       </generalDesc>
17240       <fixedLine>
17241         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
17242         <exampleNumber>21234567</exampleNumber>
17243       </fixedLine>
17244       <mobile>
17245         <!-- 55[0-7], 57, 58 and 7[5-8] were added from bug reports/numbers found online. -->
17246         <nationalNumberPattern>
17247           5(?:
17248             5[0-7]\d{5}|
17249             [78]\d{6}
17250           )|
17251           7[5-8]\d{6}|
17252           8\d{7}
17253         </nationalNumberPattern>
17254         <exampleNumber>81234567</exampleNumber>
17255       </mobile>
17256       <tollFree>
17257         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
17258         <exampleNumber>18001234</exampleNumber>
17259       </tollFree>
17260     </territory>
17261
17262     <!-- Netherlands -->
17263     <territory id="NL" countryCode="31" internationalPrefix="00"
17264                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17265                mobileNumberPortableRegion="true">
17266       <references>
17267         <sourceUrl>http://en.wikipedia.org/wiki/%2B31</sourceUrl>
17268         <sourceUrl>http://www.opta.nl/en/numbers/search-for-numbers</sourceUrl>
17269       </references>
17270       <availableFormats>
17271         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
17272           <leadingDigits>
17273             1[035]|
17274             2[0346]|
17275             3[03568]|
17276             4[0356]|
17277             5[0358]|
17278             7|
17279             8[4578]
17280           </leadingDigits>
17281           <format>$1 $2 $3</format>
17282         </numberFormat>
17283         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
17284           <leadingDigits>
17285             1[16-8]|
17286             2[259]|
17287             3[124]|
17288             4[17-9]|
17289             5[124679]
17290           </leadingDigits>
17291           <format>$1 $2 $3</format>
17292         </numberFormat>
17293         <numberFormat pattern="(6)(\d{8})">
17294           <leadingDigits>6[0-57-9]</leadingDigits>
17295           <format>$1 $2</format>
17296         </numberFormat>
17297         <numberFormat pattern="(66)(\d{7})">
17298           <leadingDigits>66</leadingDigits>
17299           <format>$1 $2</format>
17300         </numberFormat>
17301         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
17302           <leadingDigits>14</leadingDigits>
17303           <format>$1 $2</format>
17304         </numberFormat>
17305         <numberFormat pattern="([89]0\d)(\d{4,7})">
17306           <leadingDigits>
17307             80|
17308             9
17309           </leadingDigits>
17310           <format>$1 $2</format>
17311         </numberFormat>
17312       </availableFormats>
17313       <generalDesc>
17314         <nationalNumberPattern>
17315           1\d{4,8}|
17316           [2-7]\d{8}|
17317           [89]\d{6,9}
17318         </nationalNumberPattern>
17319         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
17320       </generalDesc>
17321       <noInternationalDialling>
17322         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
17323         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17324       </noInternationalDialling>
17325       <fixedLine>
17326         <nationalNumberPattern>
17327           (?:
17328             1[0135-8]|
17329             2[02-69]|
17330             3[0-68]|
17331             4[0135-9]|
17332             [57]\d|
17333             8[478]
17334           )\d{7}
17335         </nationalNumberPattern>
17336         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17337         <exampleNumber>101234567</exampleNumber>
17338       </fixedLine>
17339       <mobile>
17340         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
17341         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17342         <exampleNumber>612345678</exampleNumber>
17343       </mobile>
17344       <pager>
17345         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
17346         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17347         <exampleNumber>662345678</exampleNumber>
17348       </pager>
17349       <tollFree>
17350         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
17351         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17352         <exampleNumber>8001234</exampleNumber>
17353       </tollFree>
17354       <premiumRate>
17355         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
17356         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17357         <exampleNumber>9061234</exampleNumber>
17358       </premiumRate>
17359       <voip>
17360         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
17361         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17362         <exampleNumber>851234567</exampleNumber>
17363       </voip>
17364       <uan>
17365         <!-- These numbers are used for local government. They are formed by the appending the local
17366              dialling code (including the national prefix 0) after the leading digits "14". -->
17367         <nationalNumberPattern>
17368           140(?:
17369             1(?:
17370               [035]|
17371               [16-8]\d
17372             )|
17373             2(?:
17374               [0346]|
17375               [259]\d
17376             )|
17377             3(?:
17378               [03568]|
17379               [124]\d
17380             )|
17381             4(?:
17382               [0356]|
17383               [17-9]\d
17384             )|
17385             5(?:
17386               [0358]|
17387               [124679]\d
17388             )|
17389             7\d|
17390             8[458]
17391           )
17392         </nationalNumberPattern>
17393         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17394         <exampleNumber>14020</exampleNumber>
17395       </uan>
17396     </territory>
17397
17398     <!-- Norway -->
17399     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
17400     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
17401                mainCountryForCode="true" mobileNumberPortableRegion="true">
17402       <references>
17403         <sourceUrl>http://www.npt.no/npt/numsys/E.164.pdf</sourceUrl>
17404       </references>
17405       <availableFormats>
17406         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
17407           <leadingDigits>[489]</leadingDigits>
17408           <format>$1 $2 $3</format>
17409         </numberFormat>
17410         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
17411           <leadingDigits>[235-7]</leadingDigits>
17412           <format>$1 $2 $3 $4</format>
17413         </numberFormat>
17414       </availableFormats>
17415       <generalDesc>
17416         <nationalNumberPattern>
17417           0\d{4}|
17418           [2-9]\d{7}
17419         </nationalNumberPattern>
17420         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
17421       </generalDesc>
17422       <fixedLine>
17423         <!-- Excludes Svalbard fixed-line numbers. -->
17424         <nationalNumberPattern>
17425           (?:
17426             2[1-4]|
17427             3[1-3578]|
17428             5[1-35-7]|
17429             6[1-4679]|
17430             7[0-8]
17431           )\d{6}
17432         </nationalNumberPattern>
17433         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17434         <exampleNumber>21234567</exampleNumber>
17435       </fixedLine>
17436       <mobile>
17437         <nationalNumberPattern>
17438           (?:
17439             4[015-8]|
17440             5[89]|
17441             9\d
17442           )\d{6}
17443         </nationalNumberPattern>
17444         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17445         <exampleNumber>40612345</exampleNumber>
17446       </mobile>
17447       <tollFree>
17448         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
17449         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17450         <exampleNumber>80012345</exampleNumber>
17451       </tollFree>
17452       <premiumRate>
17453         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
17454         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17455         <exampleNumber>82012345</exampleNumber>
17456       </premiumRate>
17457       <sharedCost>
17458         <nationalNumberPattern>
17459           810(?:
17460             0[0-6]|
17461             [2-8]\d
17462           )\d{3}
17463         </nationalNumberPattern>
17464         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17465         <exampleNumber>81021234</exampleNumber>
17466       </sharedCost>
17467       <personalNumber>
17468         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
17469         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17470         <exampleNumber>88012345</exampleNumber>
17471       </personalNumber>
17472       <voip>
17473         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
17474         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17475         <exampleNumber>85012345</exampleNumber>
17476       </voip>
17477       <uan>
17478         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
17479         <nationalNumberPattern>
17480           0\d{4}|
17481           81(?:
17482             0(?:
17483               0[7-9]|
17484               1\d
17485             )|
17486             5\d{2}
17487           )\d{3}
17488         </nationalNumberPattern>
17489         <exampleNumber>01234</exampleNumber>
17490       </uan>
17491       <voicemail>
17492         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
17493         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17494         <exampleNumber>81212345</exampleNumber>
17495       </voicemail>
17496     </territory>
17497
17498     <!-- Nepal -->
17499     <territory id="NP" countryCode="977" internationalPrefix="00"
17500                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17501       <references>
17502         <sourceUrl>http://www.itu.int/oth/T0202000095/en</sourceUrl>
17503         <sourceUrl>http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php</sourceUrl>
17504       </references>
17505       <availableFormats>
17506         <!-- Formatting patterns taken from pages like http://www.nepalgov.gov.np -->
17507         <numberFormat pattern="(1)(\d{7})">
17508           <leadingDigits>1[2-6]</leadingDigits>
17509           <format>$1-$2</format>
17510         </numberFormat>
17511         <numberFormat pattern="(\d{2})(\d{6})">
17512           <leadingDigits>
17513             1[01]|
17514             [2-8]|
17515             9(?:
17516               [1-69]|
17517               7[15-9]
17518             )
17519           </leadingDigits>
17520           <format>$1-$2</format>
17521         </numberFormat>
17522         <numberFormat pattern="(9\d{2})(\d{7})">
17523           <leadingDigits>
17524             9(?:
17525               7[45]|
17526               8
17527             )
17528             </leadingDigits>
17529           <format>$1-$2</format>
17530         </numberFormat>
17531       </availableFormats>
17532       <generalDesc>
17533         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
17534              numbers that have the country code prefixed. -->
17535         <nationalNumberPattern>
17536           [1-8]\d{7}|
17537           9(?:
17538             [1-69]\d{6}|
17539             7[2-6]\d{5,7}|
17540             8\d{8}
17541           )
17542         </nationalNumberPattern>
17543         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17544       </generalDesc>
17545       <fixedLine>
17546         <!-- Added (1) 2XXXXXX and (88) from numbers found online. -->
17547         <nationalNumberPattern>
17548           (?:
17549             1[0124-6]|
17550             2[13-79]|
17551             3[135-8]|
17552             4[146-9]|
17553             5[135-7]|
17554             6[13-9]|
17555             7[15-9]|
17556             8[1-46-9]|
17557             9[1-79]
17558           )\d{6}
17559         </nationalNumberPattern>
17560         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17561         <exampleNumber>14567890</exampleNumber>
17562       </fixedLine>
17563       <!-- There is no definitive source of information for mobile numbers in Nepal. The information
17564            here is collected by searching the Internet. -->
17565       <mobile>
17566         <nationalNumberPattern>
17567           9(?:
17568             7[45]|
17569             8[01456]
17570           )\d{7}
17571         </nationalNumberPattern>
17572         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17573         <exampleNumber>9841234567</exampleNumber>
17574       </mobile>
17575       <!-- No information on other types of phone numbers for Nepal has been found. -->
17576     </territory>
17577
17578     <!-- Nauru -->
17579     <territory id="NR" countryCode="674" internationalPrefix="00">
17580       <references>
17581         <sourceUrl>http://www.itu.int/oth/T0202000094/en</sourceUrl>
17582         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru</sourceUrl>
17583       </references>
17584       <availableFormats>
17585         <numberFormat pattern="(\d{3})(\d{4})">
17586           <format>$1 $2</format>
17587         </numberFormat>
17588       </availableFormats>
17589       <generalDesc>
17590         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
17591         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17592       </generalDesc>
17593       <fixedLine>
17594         <nationalNumberPattern>
17595           (?:
17596             444|
17597             888
17598           )\d{4}
17599         </nationalNumberPattern>
17600         <exampleNumber>4441234</exampleNumber>
17601       </fixedLine>
17602       <mobile>
17603         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
17604         <exampleNumber>5551234</exampleNumber>
17605       </mobile>
17606     </territory>
17607
17608     <!-- Niue -->
17609     <territory id="NU" countryCode="683" internationalPrefix="00">
17610       <references>
17611         <sourceUrl>http://www.itu.int/oth/T02020000EC/en</sourceUrl>
17612         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue</sourceUrl>
17613       </references>
17614       <!-- Numbers are always formatted as a block. -->
17615       <generalDesc>
17616         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
17617         <possibleNumberPattern>\d{4}</possibleNumberPattern>
17618       </generalDesc>
17619       <fixedLine>
17620         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
17621         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
17622         <exampleNumber>4002</exampleNumber>
17623       </fixedLine>
17624       <mobile>
17625         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
17626         <exampleNumber>1234</exampleNumber>
17627       </mobile>
17628     </territory>
17629
17630     <!-- New Zealand -->
17631     <!-- Includes Ross Dependency, Antarctica -->
17632     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
17633          numbers and 050 "Nation-Wide Service". -->
17634     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
17635                preferredInternationalPrefix="00" nationalPrefix="0"
17636                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
17637       <references>
17638         <sourceUrl>http://www.itu.int/oth/T0202000099/en</sourceUrl>
17639       </references>
17640       <availableFormats>
17641         <!-- Pattern for fixed-line formats. -->
17642         <numberFormat pattern="([34679])(\d{3})(\d{4})">
17643           <leadingDigits>
17644             [3467]|
17645             9[1-9]
17646           </leadingDigits>
17647           <format>$1-$2 $3</format>
17648         </numberFormat>
17649         <!-- Area code for NZ's Scott Base, in Antarctica. -->
17650         <numberFormat pattern="(24099)(\d{3})">
17651           <leadingDigits>240</leadingDigits>
17652           <leadingDigits>2409</leadingDigits>
17653           <leadingDigits>24099</leadingDigits>
17654           <format>$1 $2</format>
17655         </numberFormat>
17656         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
17657              length. -->
17658         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
17659         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
17660           <leadingDigits>21</leadingDigits>
17661           <format>$1 $2 $3</format>
17662         </numberFormat>
17663         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
17664         <numberFormat pattern="(\d{2})(\d{3})(\d{3,5})">
17665           <leadingDigits>
17666             2(?:
17667               1[1-9]|
17668               [69]|
17669               7[0-35-9]
17670             )|
17671             86
17672           </leadingDigits>
17673           <format>$1 $2 $3</format>
17674         </numberFormat>
17675         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
17676              than writing the first group as 022X based on Google web searches, and is used by
17677              2Degrees themselves. See formatting on http://www.2degreesmobile.co.nz for an example
17678              of the latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
17679         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
17680           <leadingDigits>2[028]</leadingDigits>
17681           <format>$1 $2 $3</format>
17682         </numberFormat>
17683         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17684           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900. -->
17685           <leadingDigits>
17686             2(?:
17687               10|
17688               74
17689             )|
17690             5|
17691             [89]0
17692           </leadingDigits>
17693           <format>$1 $2 $3</format>
17694         </numberFormat>
17695       </availableFormats>
17696       <generalDesc>
17697         <nationalNumberPattern>
17698           6[235-9]\d{6}|
17699           [2-57-9]\d{7,10}
17700         </nationalNumberPattern>
17701         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
17702       </generalDesc>
17703       <fixedLine>
17704         <!-- 07 788 was assigned to Voxbox according to
17705              http://www.nad.org.nz/07GeographicalCodes.php -->
17706         <nationalNumberPattern>
17707           (?:
17708             3[2-79]|
17709             [49][2-689]|
17710             6[235-9]|
17711             7[2-5789]
17712           )\d{6}|
17713           24099\d{3}
17714         </nationalNumberPattern>
17715         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17716         <exampleNumber>32345678</exampleNumber>
17717       </fixedLine>
17718       <mobile>
17719         <!-- Includes mobile radio service numbers (e.g. TeamTalk). The lengths of numbers with
17720              prefix 21 are different from what's specified in the ITU doc, because of numbers found
17721              online. -->
17722         <nationalNumberPattern>
17723           2(?:
17724             [028]\d{7,8}|
17725             1(?:
17726               [03]\d{5,7}|
17727               [12457]\d{5,6}|
17728               [689]\d{5}
17729             )|
17730             [79]\d{7}
17731           )
17732         </nationalNumberPattern>
17733         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17734         <exampleNumber>211234567</exampleNumber>
17735       </mobile>
17736       <pager>
17737         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
17738         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17739         <exampleNumber>26123456</exampleNumber>
17740       </pager>
17741       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
17742            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
17743            not covered, as telecom companies don't seem to support them yet. -->
17744       <tollFree>
17745         <nationalNumberPattern>
17746           508\d{6,7}|
17747           80\d{6,8}
17748         </nationalNumberPattern>
17749         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17750         <exampleNumber>800123456</exampleNumber>
17751       </tollFree>
17752       <premiumRate>
17753         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
17754         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
17755         <exampleNumber>900123456</exampleNumber>
17756       </premiumRate>
17757     </territory>
17758
17759     <!-- Oman -->
17760     <territory id="OM" countryCode="968" internationalPrefix="00" mobileNumberPortableRegion="true">
17761       <references>
17762         <sourceUrl>http://www.itu.int/oth/T020200009F/en</sourceUrl>
17763       </references>
17764       <availableFormats>
17765         <numberFormat pattern="(2\d)(\d{6})">
17766           <leadingDigits>2</leadingDigits>
17767           <format>$1 $2</format>
17768         </numberFormat>
17769         <numberFormat pattern="(9\d{3})(\d{4})">
17770           <leadingDigits>9</leadingDigits>
17771           <format>$1 $2</format>
17772         </numberFormat>
17773         <numberFormat pattern="([58]00)(\d{4,6})">
17774           <leadingDigits>[58]</leadingDigits>
17775           <format>$1 $2</format>
17776         </numberFormat>
17777       </availableFormats>
17778       <generalDesc>
17779         <nationalNumberPattern>
17780           (?:
17781             2[2-6]|
17782             5|
17783             9[1-9]
17784           )\d{6}|
17785           800\d{5,6}
17786         </nationalNumberPattern>
17787         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17788       </generalDesc>
17789       <fixedLine>
17790         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
17791         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17792         <exampleNumber>23123456</exampleNumber>
17793       </fixedLine>
17794       <mobile>
17795         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
17796         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17797         <exampleNumber>92123456</exampleNumber>
17798       </mobile>
17799       <tollFree>
17800         <!-- Link to document about toll-free numbers on http://www.tra.gov.om, which suggests they
17801              should be 8007 followed by 4 digits. However, the only examples I can find, including
17802              the customer help line for the main telephony company there (omantel), is 8007 followed
17803              by 5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to
17804              offer international toll-free dialing numbers - +968 500 1300 for international help
17805              desk for omantel, for example. -->
17806         <nationalNumberPattern>
17807           8007\d{4,5}|
17808           500\d{4}
17809         </nationalNumberPattern>
17810         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17811         <exampleNumber>80071234</exampleNumber>
17812       </tollFree>
17813       <!-- No premiumRate information can be found. -->
17814     </territory>
17815
17816     <!-- Panama -->
17817     <territory id="PA" countryCode="507" internationalPrefix="00" mobileNumberPortableRegion="true">
17818       <references>
17819         <!-- Last read July 9, 2014. -->
17820         <sourceUrl>http://www.asep.gob.pa/telecom/pnn/default.asp</sourceUrl>
17821         <!-- Omits the fact that mobile phones are 8 digits long. -->
17822         <sourceUrl>http://en.wikipedia.org/wiki/%2B507</sourceUrl>
17823       </references>
17824       <availableFormats>
17825         <numberFormat pattern="(\d{3})(\d{4})">
17826           <leadingDigits>[1-57-9]</leadingDigits>
17827           <format>$1-$2</format>
17828         </numberFormat>
17829         <numberFormat pattern="(\d{4})(\d{4})">
17830           <leadingDigits>6</leadingDigits>
17831           <format>$1-$2</format>
17832         </numberFormat>
17833       </availableFormats>
17834       <generalDesc>
17835         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
17836         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17837       </generalDesc>
17838       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
17839            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
17840       <fixedLine>
17841         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
17842              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
17843         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
17844              proved to be diallable. -->
17845         <nationalNumberPattern>
17846           (?:
17847             1(?:
17848               0[02-579]|
17849               19|
17850               2[37]|
17851               3[03]|
17852               4[479]|
17853               57|
17854               65|
17855               7[016-8]|
17856               8[58]|
17857               9[1349]
17858             )|
17859             2(?:
17860               [0235679]\d|
17861               1[0-7]|
17862               4[04-9]|
17863               8[028]
17864             )|
17865             3(?:
17866               [09]\d|
17867               1[14-7]|
17868               2[0-3]|
17869               3[03]|
17870               4[0457]|
17871               5[56]|
17872               6[068]|
17873               7[06-8]|
17874               8[089]
17875             )|
17876             4(?:
17877               3[013-69]|
17878               4\d|
17879               7[0-689]
17880             )|
17881             5(?:
17882               [01]\d|
17883               2[0-7]|
17884               [56]0|
17885               79
17886             )|
17887             7(?:
17888               0[09]|
17889               2[0-267]|
17890               3[06]|
17891               [49]0|
17892               5[06-9]|
17893               7[0-24-7]|
17894               8[89]
17895             )|
17896             8(?:
17897               [34]\d|
17898               5[0-4]|
17899               8[02]
17900             )|
17901             9(?:
17902               0[6-8]|
17903               1[016-8]|
17904               2[036-8]|
17905               3[3679]|
17906               40|
17907               5[0489]|
17908               6[06-9]|
17909               7[046-9]|
17910               8[36-8]|
17911               9[1-9]
17912             )
17913           )\d{4}
17914         </nationalNumberPattern>
17915         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17916         <exampleNumber>2001234</exampleNumber>
17917       </fixedLine>
17918       <mobile>
17919         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
17920              service "210", "Servicio de Busca Personas". -->
17921         <nationalNumberPattern>
17922           (?:
17923             1[16]1|
17924             21[89]|
17925             8(?:
17926               1[01]|
17927               7[23]
17928             )
17929           )\d{4}|
17930           6(?:
17931             [024-9]\d|
17932             1[0-5]|
17933             3[0-24-9]
17934           )\d{5}
17935         </nationalNumberPattern>
17936         <exampleNumber>60012345</exampleNumber>
17937       </mobile>
17938       <tollFree>
17939         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
17940         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17941         <exampleNumber>8001234</exampleNumber>
17942       </tollFree>
17943       <premiumRate>
17944         <!-- Value-added services are represented as "400" in the plan. -->
17945         <nationalNumberPattern>
17946           (?:
17947             779|
17948             8(?:
17949               2[235]|
17950               55|
17951               60|
17952               7[578]|
17953               86|
17954               95
17955             )|
17956             9(?:
17957               0[0-2]|
17958               81
17959             )
17960           )\d{4}
17961         </nationalNumberPattern>
17962         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17963         <exampleNumber>8601234</exampleNumber>
17964       </premiumRate>
17965     </territory>
17966
17967     <!-- Peru -->
17968     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
17969                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
17970                preferredExtnPrefix=" Anexo " mobileNumberPortableRegion="true">
17971       <references>
17972         <sourceUrl>http://www.itu.int/oth/T02020000A6/en</sourceUrl>
17973         <sourceUrl>http://en.wikipedia.org/wiki/+51</sourceUrl>
17974         <sourceUrl>http://www.assistbook.com/South%20America/Peru/widecodes</sourceUrl>
17975       </references>
17976       <availableFormats>
17977         <numberFormat pattern="(1)(\d{7})">
17978           <leadingDigits>1</leadingDigits>
17979           <format>$1 $2</format>
17980         </numberFormat>
17981         <numberFormat pattern="([4-8]\d)(\d{6})">
17982           <leadingDigits>
17983             [4-7]|
17984             8[2-4]
17985           </leadingDigits>
17986           <format>$1 $2</format>
17987         </numberFormat>
17988         <numberFormat pattern="(\d{3})(\d{5})">
17989           <leadingDigits>80</leadingDigits>
17990           <format>$1 $2</format>
17991         </numberFormat>
17992         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
17993         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
17994                       nationalPrefixFormattingRule="$FG">
17995           <leadingDigits>9</leadingDigits>
17996           <format>$1 $2 $3</format>
17997         </numberFormat>
17998       </availableFormats>
17999       <generalDesc>
18000         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
18001         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18002       </generalDesc>
18003       <fixedLine>
18004         <nationalNumberPattern>
18005           (?:
18006             1\d|
18007             4[1-4]|
18008             5[1-46]|
18009             6[1-7]|
18010             7[2-46]|
18011             8[2-4]
18012           )\d{6}
18013         </nationalNumberPattern>
18014         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
18015         <exampleNumber>11234567</exampleNumber>
18016       </fixedLine>
18017       <mobile>
18018         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
18019         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18020         <exampleNumber>912345678</exampleNumber>
18021       </mobile>
18022       <tollFree>
18023         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18024         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18025         <exampleNumber>80012345</exampleNumber>
18026       </tollFree>
18027       <premiumRate>
18028         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
18029         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18030         <exampleNumber>80512345</exampleNumber>
18031       </premiumRate>
18032       <sharedCost>
18033         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
18034         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18035         <exampleNumber>80112345</exampleNumber>
18036       </sharedCost>
18037       <personalNumber>
18038         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
18039         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18040         <exampleNumber>80212345</exampleNumber>
18041       </personalNumber>
18042     </territory>
18043
18044     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
18045     <territory id="PF" countryCode="689" internationalPrefix="00">
18046       <references>
18047         <sourceUrl>http://www.itu.int/oth/T020200004D/en</sourceUrl>
18048       </references>
18049       <availableFormats>
18050         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
18051           <leadingDigits>
18052             4[09]|
18053             8[79]
18054           </leadingDigits>
18055           <format>$1 $2 $3 $4</format>
18056         </numberFormat>
18057         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
18058           <leadingDigits>44</leadingDigits>
18059           <format>$1 $2 $3</format>
18060         </numberFormat>
18061       </availableFormats>
18062       <generalDesc>
18063         <nationalNumberPattern>
18064           4\d{5,7}|
18065           8\d{7}
18066         </nationalNumberPattern>
18067         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
18068       </generalDesc>
18069       <noInternationalDialling>
18070         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
18071         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18072         <exampleNumber>441234</exampleNumber>
18073       </noInternationalDialling>
18074       <fixedLine>
18075         <!-- Includes payphone prefixes. -->
18076         <nationalNumberPattern>
18077           4(?:
18078             [09][45689]\d|
18079             4
18080           )\d{4}
18081         </nationalNumberPattern>
18082         <exampleNumber>40412345</exampleNumber>
18083       </fixedLine>
18084       <mobile>
18085         <nationalNumberPattern>8[79]\d{6}</nationalNumberPattern>
18086         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18087         <exampleNumber>87123456</exampleNumber>
18088       </mobile>
18089     </territory>
18090
18091     <!-- Papua New Guinea -->
18092     <territory id="PG" countryCode="675" internationalPrefix="00">
18093       <references>
18094         <sourceUrl>http://www.itu.int/oth/T02020000A4/en</sourceUrl>
18095         <sourceUrl>http://en.wikipedia.org/wiki/%2B675</sourceUrl>
18096       </references>
18097       <availableFormats>
18098         <numberFormat pattern="(\d{3})(\d{4})">
18099           <leadingDigits>
18100             [13-689]|
18101             27
18102           </leadingDigits>
18103           <format>$1 $2</format>
18104         </numberFormat>
18105         <numberFormat pattern="(\d{4})(\d{4})">
18106           <leadingDigits>
18107             20|
18108             7
18109           </leadingDigits>
18110           <format>$1 $2</format>
18111         </numberFormat>
18112       </availableFormats>
18113       <generalDesc>
18114         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18115         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18116       </generalDesc>
18117       <fixedLine>
18118         <nationalNumberPattern>
18119           (?:
18120             3[0-2]\d|
18121             4[25]\d|
18122             5[34]\d|
18123             64[1-9]|
18124             77(?:
18125               [0-24]\d|
18126               30
18127             )|
18128             85[02-46-9]|
18129             9[78]\d
18130           )\d{4}
18131         </nationalNumberPattern>
18132         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18133         <exampleNumber>3123456</exampleNumber>
18134       </fixedLine>
18135       <mobile>
18136         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
18137              Wikipedia.
18138              As per ITU doc, prefix 20150 will expire at the end of 2015. -->
18139         <nationalNumberPattern>
18140           (?:
18141             20150|
18142             68\d{2}|
18143             7(?:
18144               [0-369]\d|
18145               75
18146             )\d{2}
18147           )\d{3}
18148         </nationalNumberPattern>
18149         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18150         <exampleNumber>6812345</exampleNumber>
18151       </mobile>
18152       <tollFree>
18153         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
18154         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18155         <exampleNumber>1801234</exampleNumber>
18156       </tollFree>
18157       <voip>
18158         <!-- VSAT prefixes are here. -->
18159         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
18160         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18161         <exampleNumber>2751234</exampleNumber>
18162       </voip>
18163     </territory>
18164
18165     <!-- Philippines -->
18166     <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
18167       <references>
18168         <sourceUrl>http://en.wikipedia.org/wiki/%2B63</sourceUrl>
18169       </references>
18170       <availableFormats>
18171         <!-- Area code separated from number. Area codes found here:
18172         http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
18173         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18174           pattern="(2)(\d{3})(\d{4})">
18175           <leadingDigits>2</leadingDigits>
18176           <format>$1 $2 $3</format>
18177         </numberFormat>
18178         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18179           pattern="(2)(\d{5})">
18180           <leadingDigits>2</leadingDigits>
18181           <format>$1 $2</format>
18182         </numberFormat>
18183         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18184           pattern="(\d{4})(\d{4,6})">
18185           <leadingDigits>
18186             3(?:
18187               23|
18188               39|
18189               46
18190             )|
18191             4(?:
18192               2[3-6]|
18193               [35]9|
18194               4[26]|
18195               76
18196             )|
18197             5(?:
18198               22|
18199               44
18200             )|
18201             642|
18202             8(?:
18203               62|
18204               8[245]
18205             )
18206           </leadingDigits>
18207           <leadingDigits>
18208             3(?:
18209               230|
18210               397|
18211               461
18212             )|
18213             4(?:
18214               2(?:
18215                 35|
18216                 [46]4|
18217                 51
18218               )|
18219               396|
18220               4(?:
18221                 22|
18222                 63
18223               )|
18224               59[347]|
18225               76[15]
18226             )|
18227             5(?:
18228               221|
18229               446
18230             )|
18231             642[23]|
18232             8(?:
18233               622|
18234               8(?:
18235                 [24]2|
18236                 5[13]
18237               )
18238             )
18239           </leadingDigits>
18240           <format>$1 $2</format>
18241         </numberFormat>
18242         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18243           pattern="(\d{5})(\d{4})">
18244           <leadingDigits>
18245             346|
18246             4(?:
18247               27|
18248               9[35]
18249             )|
18250             883
18251           </leadingDigits>
18252           <leadingDigits>
18253             3469|
18254             4(?:
18255               279|
18256               9(?:
18257                 30|
18258                 56
18259               )
18260             )|
18261             8834
18262           </leadingDigits>
18263           <format>$1 $2</format>
18264         </numberFormat>
18265         <!-- This rule is a fallback for the more specific area codes. -->
18266         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18267           pattern="([3-8]\d)(\d{3})(\d{4})">
18268           <leadingDigits>[3-8]</leadingDigits>
18269           <format>$1 $2 $3</format>
18270         </numberFormat>
18271         <numberFormat nationalPrefixFormattingRule="$NP$FG"
18272           pattern="(\d{3})(\d{3})(\d{4})">
18273           <leadingDigits>
18274             81|
18275             9
18276           </leadingDigits>
18277           <format>$1 $2 $3</format>
18278         </numberFormat>
18279         <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
18280         <numberFormat pattern="(1800)(\d{3})(\d{4})">
18281           <leadingDigits>1</leadingDigits>
18282           <format>$1 $2 $3</format>
18283         </numberFormat>
18284         <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
18285           <leadingDigits>1</leadingDigits>
18286           <format>$1 $2 $3 $4</format>
18287         </numberFormat>
18288       </availableFormats>
18289       <generalDesc>
18290         <nationalNumberPattern>
18291           2\d{5,7}|
18292           [3-9]\d{7,9}|
18293           1800\d{7,9}
18294         </nationalNumberPattern>
18295         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
18296       </generalDesc>
18297       <fixedLine>
18298         <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
18299              that have only 5 digits after the area code; plus it seems the 8822 area code is
18300              followed by 6 digits, and 8842 by only 4. -->
18301         <nationalNumberPattern>
18302           2\d{5}(?:\d{2})?|
18303           (?:
18304             3[2-68]|
18305             4[2-9]|
18306             5[2-6]|
18307             6[2-58]|
18308             7[24578]|
18309             8[2-8]
18310           )\d{7}|
18311           88(?:
18312             22\d{6}|
18313             42\d{4}
18314           )
18315         </nationalNumberPattern>
18316         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
18317         <exampleNumber>21234567</exampleNumber>
18318       </fixedLine>
18319       <mobile>
18320         <nationalNumberPattern>
18321           (?:
18322             81[37]|
18323             9(?:
18324               0[5-9]|
18325               1[024-9]|
18326               2[0-35-9]|
18327               3[02-9]|
18328               4[236-9]|
18329               7[34-79]|
18330               89|
18331               9[4-9]
18332             )
18333           )\d{7}
18334         </nationalNumberPattern>
18335         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18336         <exampleNumber>9051234567</exampleNumber>
18337       </mobile>
18338       <!-- Information on toll-free numbers collected from searching the internet -->
18339       <tollFree>
18340         <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
18341         <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
18342         <exampleNumber>180012345678</exampleNumber>
18343       </tollFree>
18344       <!-- No information can be found about other types of numbers (such as premium rate) in the
18345            Philippines. -->
18346     </territory>
18347
18348     <!-- Pakistan -->
18349     <territory id="PK" countryCode="92" internationalPrefix="00"
18350                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18351                mobileNumberPortableRegion="true">
18352       <references>
18353         <sourceUrl>http://www.itu.int/oth/T02020000A1/en</sourceUrl>
18354         <sourceUrl>http://en.wikipedia.org/wiki/%2B92</sourceUrl>
18355       </references>
18356       <availableFormats>
18357         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
18358              formatted nicely by the AYTF. -->
18359         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
18360           <leadingDigits>
18361             (?:
18362               2[125]|
18363               4[0-246-9]|
18364               5[1-35-7]|
18365               6[1-8]|
18366               7[14]|
18367               8[16]|
18368               91
18369             )1
18370           </leadingDigits>
18371           <leadingDigits>
18372             (?:
18373               2[125]|
18374               4[0-246-9]|
18375               5[1-35-7]|
18376               6[1-8]|
18377               7[14]|
18378               8[16]|
18379               91
18380             )11
18381           </leadingDigits>
18382           <leadingDigits>
18383             (?:
18384               2[125]|
18385               4[0-246-9]|
18386               5[1-35-7]|
18387               6[1-8]|
18388               7[14]|
18389               8[16]|
18390               91
18391             )111
18392           </leadingDigits>
18393           <format>$1 $2 $3 $4</format>
18394         </numberFormat>
18395         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
18396           <leadingDigits>
18397             2[349]|
18398             45|
18399             54|
18400             60|
18401             72|
18402             8[2-5]|
18403             9[2-9]
18404           </leadingDigits>
18405           <leadingDigits>
18406             (?:
18407               2[349]|
18408               45|
18409               54|
18410               60|
18411               72|
18412               8[2-5]|
18413               9[2-9]
18414             )\d1
18415           </leadingDigits>
18416           <leadingDigits>
18417             (?:
18418               2[349]|
18419               45|
18420               54|
18421               60|
18422               72|
18423               8[2-5]|
18424               9[2-9]
18425             )\d11
18426           </leadingDigits>
18427           <leadingDigits>
18428             (?:
18429               2[349]|
18430               45|
18431               54|
18432               60|
18433               72|
18434               8[2-5]|
18435               9[2-9]
18436             )\d111
18437           </leadingDigits>
18438           <format>$1 $2 $3 $4</format>
18439         </numberFormat>
18440         <numberFormat pattern="(\d{2})(\d{7,8})">
18441           <leadingDigits>
18442             (?:
18443               2[125]|
18444               4[0-246-9]|
18445               5[1-35-7]|
18446               6[1-8]|
18447               7[14]|
18448               8[16]|
18449               91
18450             )[2-9]
18451           </leadingDigits>
18452           <format>$1 $2</format>
18453         </numberFormat>
18454         <numberFormat pattern="(\d{3})(\d{6,7})">
18455           <leadingDigits>
18456             2[349]|
18457             45|
18458             54|
18459             60|
18460             72|
18461             8[2-5]|
18462             9[2-9]
18463           </leadingDigits>
18464           <leadingDigits>
18465             (?:
18466               2[349]|
18467               45|
18468               54|
18469               60|
18470               72|
18471               8[2-5]|
18472               9[2-9]
18473             )\d[2-9]
18474           </leadingDigits>
18475           <format>$1 $2</format>
18476         </numberFormat>
18477         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
18478           <leadingDigits>3</leadingDigits>
18479           <format>$1 $2</format>
18480         </numberFormat>
18481         <numberFormat pattern="([15]\d{3})(\d{5,6})">
18482           <leadingDigits>
18483             58[12]|
18484             1
18485           </leadingDigits>
18486           <format>$1 $2</format>
18487         </numberFormat>
18488         <!-- This is from online examples. -->
18489         <numberFormat pattern="(586\d{2})(\d{5})">
18490           <leadingDigits>586</leadingDigits>
18491           <format>$1 $2</format>
18492         </numberFormat>
18493         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
18494           <leadingDigits>[89]00</leadingDigits>
18495           <format>$1 $2 $3</format>
18496         </numberFormat>
18497       </availableFormats>
18498       <generalDesc>
18499         <!-- This is horribly complex because the country code is 92, and several area codes start
18500              with 92, and the number length is widely variable. -->
18501         <nationalNumberPattern>
18502           1\d{8}|
18503           [2-8]\d{5,11}|
18504           9(?:
18505             [013-9]\d{4,9}|
18506             2\d(?:
18507               111\d{6}|
18508               \d{3,7}
18509             )
18510           )
18511         </nationalNumberPattern>
18512         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
18513       </generalDesc>
18514       <fixedLine>
18515         <!-- The subscriber number length is not well defined for some area codes. From online
18516              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
18517              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
18518              of Karachi and Lahore (both 8). -->
18519         <nationalNumberPattern>
18520           (?:
18521             21|
18522             42
18523           )[2-9]\d{7}|
18524           (?:
18525             2[25]|
18526             4[0146-9]|
18527             5[1-35-7]|
18528             6[1-8]|
18529             7[14]|
18530             8[16]|
18531             91
18532           )[2-9]\d{6}|
18533           (?:
18534             2(?:
18535               3[2358]|
18536               4[2-4]|
18537               9[2-8]
18538             )|
18539             45[3479]|
18540             54[2-467]|
18541             60[468]|
18542             72[236]|
18543             8(?:
18544               2[2-689]|
18545               3[23578]|
18546               4[3478]|
18547               5[2356]
18548             )|
18549             9(?:
18550               1|
18551               2[2-8]|
18552               3[27-9]|
18553               4[2-6]|
18554               6[3569]|
18555               9[25-8]
18556             )
18557           )[2-9]\d{5,6}|
18558           58[126]\d{7}
18559         </nationalNumberPattern>
18560         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
18561         <exampleNumber>2123456789</exampleNumber>
18562       </fixedLine>
18563       <mobile>
18564         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
18565              can be found online with these prefixes. Added 310 based on information from Zong. -->
18566         <nationalNumberPattern>
18567           3(?:
18568             0\d|
18569             [12][0-5]|
18570             3[1-7]|
18571             4[0-7]|
18572             55|
18573             64
18574           )\d{7}
18575         </nationalNumberPattern>
18576         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18577         <exampleNumber>3012345678</exampleNumber>
18578       </mobile>
18579       <tollFree>
18580         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18581         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18582         <exampleNumber>80012345</exampleNumber>
18583       </tollFree>
18584       <premiumRate>
18585         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
18586         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18587         <exampleNumber>90012345</exampleNumber>
18588       </premiumRate>
18589       <!-- These are referred to as UPT numbers in the plan. -->
18590       <personalNumber>
18591         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
18592         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18593         <!-- The example number here is the test number from the plan. -->
18594         <exampleNumber>122044444</exampleNumber>
18595       </personalNumber>
18596       <uan>
18597         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
18598              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
18599              what type of number they are. We exclude Azad Jammu, Kashmir and Northern Areas here
18600              since no online example UANs can be found, and they have an "access code" at the start,
18601              making it difficult to guess what a UAN in these areas would look like. -->
18602         <nationalNumberPattern>
18603           (?:
18604             2(?:
18605               [125]|
18606               3[2358]|
18607               4[2-4]|
18608               9[2-8]
18609             )|
18610             4(?:
18611               [0-246-9]|
18612               5[3479]
18613             )|
18614             5(?:
18615               [1-35-7]|
18616               4[2-467]
18617             )|
18618             6(?:
18619               [1-8]|
18620               0[468]
18621             )|
18622             7(?:
18623               [14]|
18624               2[236]
18625             )|
18626             8(?:
18627               [16]|
18628               2[2-689]|
18629               3[23578]|
18630               4[3478]|
18631               5[2356]
18632             )|
18633             9(?:
18634               1|
18635               22|
18636               3[27-9]|
18637               4[2-6]|
18638               6[3569]|
18639               9[2-7]
18640             )
18641           )111\d{6}
18642         </nationalNumberPattern>
18643         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
18644         <exampleNumber>21111825888</exampleNumber>
18645       </uan>
18646     </territory>
18647
18648     <!-- Poland -->
18649     <territory id="PL" countryCode="48" internationalPrefix="00" mobileNumberPortableRegion="true">
18650       <references>
18651         <sourceUrl>http://en.wikipedia.org/wiki/%2B48</sourceUrl>
18652         <sourceUrl>http://www.itu.int/oth/T02020000A8/en</sourceUrl>
18653         <!-- Source is in Polish. -->
18654         <sourceUrl>http://www.uke.gov.pl/uke/index.jsp?place=Lead24&amp;news_cat_id=277&amp;news_id=3791&amp;layout=9&amp;page=text</sourceUrl>
18655       </references>
18656       <availableFormats>
18657         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
18658           <leadingDigits>
18659             [124]|
18660             3[2-4]|
18661             5[24-689]|
18662             6[1-3578]|
18663             7[14-7]|
18664             8[1-79]|
18665             9[145]
18666           </leadingDigits>
18667           <format>$1 $2 $3 $4</format>
18668         </numberFormat>
18669         <numberFormat pattern="(\d{2})(\d{1})(\d{4})">
18670           <leadingDigits>[12]2</leadingDigits>
18671           <format>$1 $2 $3</format>
18672         </numberFormat>
18673         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
18674              Poles that this is more usual. -->
18675         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
18676           <leadingDigits>
18677             39|
18678             5[0137]|
18679             6[0469]|
18680             7[02389]|
18681             8[08]
18682           </leadingDigits>
18683           <format>$1 $2 $3</format>
18684         </numberFormat>
18685         <!-- Additional patterns for shorter pager numbers. -->
18686         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
18687           <leadingDigits>64</leadingDigits>
18688           <format>$1 $2 $3</format>
18689         </numberFormat>
18690         <numberFormat pattern="(\d{3})(\d{3})">
18691           <leadingDigits>64</leadingDigits>
18692           <format>$1 $2</format>
18693         </numberFormat>
18694       </availableFormats>
18695       <generalDesc>
18696         <nationalNumberPattern>
18697           [12]\d{6,8}|
18698           [3-57-9]\d{8}|
18699           6\d{5,8}
18700         </nationalNumberPattern>
18701         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18702       </generalDesc>
18703       <fixedLine>
18704         <!-- The plan says all geographical numbers are 9 digits; but in at least Warsaw (22) and
18705              Krakow (12) we have found internationally diallable numbers that are 7 digits instead,
18706              so we support those too. -->
18707         <nationalNumberPattern>
18708           (?:
18709             1[2-8]|
18710             2[2-59]|
18711             3[2-4]|
18712             4[1-468]|
18713             5[24-689]|
18714             6[1-3578]|
18715             7[14-7]|
18716             8[1-79]|
18717             9[145]
18718           )\d{7}|
18719           [12]2\d{5}
18720         </nationalNumberPattern>
18721         <exampleNumber>123456789</exampleNumber>
18722       </fixedLine>
18723       <mobile>
18724         <nationalNumberPattern>
18725           (?:
18726             5[0137]|
18727             6[069]|
18728             7[2389]|
18729             88
18730           )\d{7}
18731         </nationalNumberPattern>
18732         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18733         <exampleNumber>512345678</exampleNumber>
18734       </mobile>
18735       <pager>
18736         <nationalNumberPattern>64\d{4,7}</nationalNumberPattern>
18737         <exampleNumber>641234567</exampleNumber>
18738       </pager>
18739       <tollFree>
18740         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
18741         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18742         <exampleNumber>800123456</exampleNumber>
18743       </tollFree>
18744       <premiumRate>
18745         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
18746         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18747         <exampleNumber>701234567</exampleNumber>
18748       </premiumRate>
18749       <sharedCost>
18750         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
18751         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18752         <exampleNumber>801234567</exampleNumber>
18753       </sharedCost>
18754       <voip>
18755         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
18756         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18757         <exampleNumber>391234567</exampleNumber>
18758       </voip>
18759     </territory>
18760
18761     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
18762     <territory id="PM" countryCode="508" internationalPrefix="00"
18763                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18764       <references>
18765         <sourceUrl>http://www.itu.int/oth/T02020000B2/en</sourceUrl>
18766       </references>
18767       <availableFormats>
18768         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
18769           <format>$1 $2 $3</format>
18770         </numberFormat>
18771       </availableFormats>
18772       <generalDesc>
18773         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
18774         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18775       </generalDesc>
18776       <fixedLine>
18777         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
18778         <exampleNumber>411234</exampleNumber>
18779       </fixedLine>
18780       <mobile>
18781         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
18782         <exampleNumber>551234</exampleNumber>
18783       </mobile>
18784     </territory>
18785
18786     <!-- Pitcairn Island -->
18787     <!-- id="PN" -->
18788     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
18789          satellite phones. -->
18790
18791     <!-- Puerto Rico -->
18792     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
18793                internationalPrefix="011">
18794       <references>
18795         <sourceUrl>http://www.itu.int/oth/T02020000AA/en</sourceUrl>
18796       </references>
18797       <generalDesc>
18798         <!-- NANPA country - uses US formatting rules -->
18799         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
18800         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
18801       </generalDesc>
18802       <fixedLine>
18803         <nationalNumberPattern>
18804           (?:
18805             787|
18806             939
18807           )[2-9]\d{6}
18808         </nationalNumberPattern>
18809         <exampleNumber>7872345678</exampleNumber>
18810       </fixedLine>
18811       <mobile>
18812         <nationalNumberPattern>
18813           (?:
18814             787|
18815             939
18816           )[2-9]\d{6}
18817         </nationalNumberPattern>
18818         <exampleNumber>7872345678</exampleNumber>
18819       </mobile>
18820       <tollFree>
18821         <nationalNumberPattern>
18822           8(?:
18823             00|
18824             44|
18825             55|
18826             66|
18827             77|
18828             88
18829           )[2-9]\d{6}
18830         </nationalNumberPattern>
18831         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18832         <exampleNumber>8002345678</exampleNumber>
18833       </tollFree>
18834       <premiumRate>
18835         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
18836         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18837         <exampleNumber>9002345678</exampleNumber>
18838       </premiumRate>
18839       <personalNumber>
18840         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
18841         <nationalNumberPattern>
18842           5(?:
18843             00|
18844             33|
18845             44|
18846             66|
18847             77
18848           )[2-9]\d{6}
18849         </nationalNumberPattern>
18850         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18851         <exampleNumber>5002345678</exampleNumber>
18852       </personalNumber>
18853     </territory>
18854
18855     <!-- Palestinian Authority -->
18856     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
18857          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
18858          subset of the Israeli formats. -->
18859     <territory id="PS" countryCode="970" internationalPrefix="00"
18860                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18861       <references>
18862         <sourceUrl>http://en.wikipedia.org/wiki/%2B970</sourceUrl>
18863         <sourceUrl>http://www.wtng.info/wtng-970-ps.html</sourceUrl>
18864         <sourceUrl>http://www.paltel.ps</sourceUrl>
18865       </references>
18866       <availableFormats>
18867         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
18868           <leadingDigits>[2489]</leadingDigits>
18869           <format>$1 $2 $3</format>
18870         </numberFormat>
18871         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
18872           <leadingDigits>5</leadingDigits>
18873           <format>$1 $2 $3</format>
18874         </numberFormat>
18875         <numberFormat nationalPrefixFormattingRule="$FG"
18876           pattern="(1[78]00)(\d{3})(\d{3})">
18877           <leadingDigits>1[78]</leadingDigits>
18878           <format>$1 $2 $3</format>
18879         </numberFormat>
18880         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
18881       </availableFormats>
18882       <generalDesc>
18883         <nationalNumberPattern>
18884           [24589]\d{7,8}|
18885           1(?:
18886             [78]\d{8}|
18887             [49]\d{2,3}
18888           )
18889         </nationalNumberPattern>
18890         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
18891       </generalDesc>
18892       <fixedLine>
18893         <nationalNumberPattern>
18894           (?:
18895             22[234789]|
18896             42[45]|
18897             82[01458]|
18898             92[369]
18899           )\d{5}
18900         </nationalNumberPattern>
18901         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18902         <exampleNumber>22234567</exampleNumber>
18903       </fixedLine>
18904       <mobile>
18905         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
18906         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18907         <exampleNumber>599123456</exampleNumber>
18908       </mobile>
18909       <tollFree>
18910         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
18911         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18912         <exampleNumber>1800123456</exampleNumber>
18913       </tollFree>
18914       <premiumRate>
18915         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
18916         <nationalNumberPattern>
18917           1(?:
18918             4|
18919             9\d
18920            )\d{2}
18921         </nationalNumberPattern>
18922         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
18923         <exampleNumber>19123</exampleNumber>
18924       </premiumRate>
18925       <sharedCost>
18926         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
18927         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18928         <exampleNumber>1700123456</exampleNumber>
18929       </sharedCost>
18930     </territory>
18931
18932     <!-- Portugal -->
18933     <territory id="PT" countryCode="351" internationalPrefix="00" mobileNumberPortableRegion="true">
18934       <references>
18935         <sourceUrl>http://www.anacom.pt/render.jsp?categoryId=279098</sourceUrl>
18936       </references>
18937       <availableFormats>
18938         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
18939              two digits in the first group; however, this doesn't seem to be majority usage based on
18940              searches online. -->
18941         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
18942           <leadingDigits>2[12]</leadingDigits>
18943           <format>$1 $2 $3</format>
18944         </numberFormat>
18945         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
18946           <leadingDigits>
18947             2[3-9]|
18948             [346-9]
18949           </leadingDigits>
18950           <format>$1 $2 $3</format>
18951         </numberFormat>
18952       </availableFormats>
18953       <generalDesc>
18954         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
18955         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18956       </generalDesc>
18957       <fixedLine>
18958         <nationalNumberPattern>
18959           2(?:
18960             [12]\d|
18961             [35][1-689]|
18962             4[1-59]|
18963             6[1-35689]|
18964             7[1-9]|
18965             8[1-69]|
18966             9[1256]
18967           )\d{6}
18968         </nationalNumberPattern>
18969         <exampleNumber>212345678</exampleNumber>
18970       </fixedLine>
18971       <mobile>
18972         <nationalNumberPattern>
18973           9(?:
18974             [136]\d{2}|
18975             2[0-79]\d|
18976             480
18977           )\d{5}
18978         </nationalNumberPattern>
18979         <exampleNumber>912345678</exampleNumber>
18980       </mobile>
18981       <tollFree>
18982         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
18983         <exampleNumber>800123456</exampleNumber>
18984       </tollFree>
18985       <premiumRate>
18986         <!-- Fixed maximum cost numbers: 761=0.60€, 761=1€, 762=2€. -->
18987         <nationalNumberPattern>
18988           76(?:
18989             0[1-57]|
18990             1[2-47]|
18991             2[237]
18992           )\d{5}
18993         </nationalNumberPattern>
18994         <exampleNumber>760123456</exampleNumber>
18995       </premiumRate>
18996       <sharedCost>
18997         <!-- 808 are priced as local calls, 809 are national calls. -->
18998         <nationalNumberPattern>
18999           80(?:
19000             8\d|
19001             9[1579]
19002           )\d{5}
19003         </nationalNumberPattern>
19004         <exampleNumber>808123456</exampleNumber>
19005       </sharedCost>
19006       <personalNumber>
19007         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
19008         <exampleNumber>884123456</exampleNumber>
19009       </personalNumber>
19010       <voip>
19011         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
19012         <exampleNumber>301234567</exampleNumber>
19013       </voip>
19014       <uan>
19015         <nationalNumberPattern>
19016           70(?:
19017             7\d|
19018             8[17]
19019           )\d{5}
19020         </nationalNumberPattern>
19021         <exampleNumber>707123456</exampleNumber>
19022       </uan>
19023     </territory>
19024
19025     <!-- Palau -->
19026     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
19027       <references>
19028         <sourceUrl>http://www.itu.int/oth/T02020000A2/en</sourceUrl>
19029       </references>
19030       <availableFormats>
19031         <numberFormat pattern="(\d{3})(\d{4})">
19032           <format>$1 $2</format>
19033         </numberFormat>
19034       </availableFormats>
19035       <generalDesc>
19036         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
19037         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19038       </generalDesc>
19039       <fixedLine>
19040         <nationalNumberPattern>
19041           2552255|
19042           (?:
19043             277|
19044             345|
19045             488|
19046             5(?:
19047               35|
19048               44|
19049               87
19050             )|
19051             6(?:
19052               22|
19053               54|
19054               79
19055             )|
19056             7(?:
19057               33|
19058               47
19059             )|
19060             8(?:
19061               24|
19062               55|
19063               76
19064             )
19065           )\d{4}
19066         </nationalNumberPattern>
19067         <exampleNumber>2771234</exampleNumber>
19068       </fixedLine>
19069       <mobile>
19070         <nationalNumberPattern>
19071           (?:
19072             6[234689]0|
19073             77[45789]
19074           )\d{4}
19075         </nationalNumberPattern>
19076         <exampleNumber>6201234</exampleNumber>
19077       </mobile>
19078     </territory>
19079
19080     <!-- Paraguay -->
19081     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0"
19082                mobileNumberPortableRegion="true">
19083       <references>
19084         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay</sourceUrl>
19085         <sourceUrl>http://www.itu.int/oth/T02020000A5/en</sourceUrl>
19086         <sourceUrl>http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html</sourceUrl>
19087       </references>
19088       <availableFormats>
19089         <!-- CONATEL plan. -->
19090         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
19091           <leadingDigits>
19092             (?:
19093               [26]1|
19094               3[289]|
19095               4[124678]|
19096               7[123]|
19097               8[1236]
19098             )
19099           </leadingDigits>
19100           <format>$1 $2</format>
19101         </numberFormat>
19102         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
19103           <leadingDigits>[2-9]0</leadingDigits>
19104           <format>$1 $2</format>
19105         </numberFormat>
19106         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
19107           <leadingDigits>9[1-9]</leadingDigits>
19108           <format>$1 $2</format>
19109         </numberFormat>
19110         <!-- Format seen in examples found online. -->
19111         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19112           <leadingDigits>8700</leadingDigits>
19113           <format>$1 $2 $3</format>
19114         </numberFormat>
19115         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
19116              -->
19117         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
19118           <leadingDigits>[2-8][1-9]</leadingDigits>
19119           <format>$1 $2</format>
19120         </numberFormat>
19121       </availableFormats>
19122       <generalDesc>
19123         <nationalNumberPattern>
19124           5[0-5]\d{4,7}|
19125           [2-46-9]\d{5,8}
19126         </nationalNumberPattern>
19127         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
19128       </generalDesc>
19129       <fixedLine>
19130         <nationalNumberPattern>
19131           (?:
19132             [26]1|
19133             3[289]|
19134             4[124678]|
19135             7[123]|
19136             8[1236]
19137           )\d{5,7}|
19138           (?:
19139             2(?:
19140               2[4568]|
19141               7[15]|
19142               9[1-5]
19143             )|
19144             3(?:
19145               18|
19146               3[167]|
19147               4[2357]|
19148               51
19149             )|
19150             4(?:
19151               18|
19152               2[45]|
19153               3[12]|
19154               5[13]|
19155               64|
19156               71|
19157               9[1-47]
19158             )|
19159             5(?:
19160               [1-4]\d|
19161               5[0234]
19162             )|
19163             6(?:
19164               3[1-3]|
19165               44|
19166               7[1-4678]
19167             )|
19168             7(?:
19169               17|
19170               4[0-4]|
19171               6[1-578]|
19172               75|
19173               8[0-8]
19174             )|
19175             858
19176           )\d{5,6}
19177         </nationalNumberPattern>
19178         <exampleNumber>212345678</exampleNumber>
19179       </fixedLine>
19180       <mobile>
19181         <!-- 962 was added for Tigo. -->
19182         <nationalNumberPattern>
19183           9(?:
19184             6[12]|
19185             [78][1-6]|
19186             9[1-5]
19187           )\d{6}
19188         </nationalNumberPattern>
19189         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19190         <exampleNumber>961456789</exampleNumber>
19191       </mobile>
19192       <voip>
19193         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
19194         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19195         <exampleNumber>870012345</exampleNumber>
19196       </voip>
19197       <uan>
19198         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
19199         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19200         <exampleNumber>201234567</exampleNumber>
19201       </uan>
19202     </territory>
19203
19204     <!-- Qatar -->
19205     <territory id="QA" countryCode="974" internationalPrefix="00" mobileNumberPortableRegion="true">
19206       <references>
19207         <sourceUrl>http://www.itu.int/oth/T02020000AB/en</sourceUrl>
19208         <sourceUrl>http://wtng.info/wtng-qq.html</sourceUrl>
19209       </references>
19210       <availableFormats>
19211         <numberFormat pattern="([28]\d{2})(\d{4})">
19212           <leadingDigits>[28]</leadingDigits>
19213           <format>$1 $2</format>
19214         </numberFormat>
19215         <numberFormat pattern="([3-7]\d{3})(\d{4})">
19216           <leadingDigits>[3-7]</leadingDigits>
19217           <format>$1 $2</format>
19218         </numberFormat>
19219       </availableFormats>
19220       <generalDesc>
19221         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
19222         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19223       </generalDesc>
19224       <fixedLine>
19225         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
19226         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
19227         <exampleNumber>44123456</exampleNumber>
19228       </fixedLine>
19229       <mobile>
19230         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
19231         <exampleNumber>33123456</exampleNumber>
19232       </mobile>
19233       <pager>
19234         <nationalNumberPattern>
19235           2(?:
19236             [12]\d|
19237             61
19238           )\d{4}
19239         </nationalNumberPattern>
19240         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19241         <exampleNumber>2123456</exampleNumber>
19242       </pager>
19243       <tollFree>
19244         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
19245         <exampleNumber>8001234</exampleNumber>
19246       </tollFree>
19247       <!-- No premiumRate information can be found. -->
19248     </territory>
19249
19250     <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
19251     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
19252          used by both of them. -->
19253     <territory id="RE" countryCode="262" internationalPrefix="00"
19254                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19255                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
19256       <references>
19257         <sourceUrl>http://www.itu.int/oth/T020200004B/en</sourceUrl>
19258       </references>
19259       <availableFormats>
19260         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
19261           <format>$1 $2 $3 $4</format>
19262         </numberFormat>
19263       </availableFormats>
19264       <generalDesc>
19265         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
19266         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19267       </generalDesc>
19268       <fixedLine>
19269         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
19270         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
19271         <exampleNumber>262161234</exampleNumber>
19272       </fixedLine>
19273       <mobile>
19274         <nationalNumberPattern>
19275           6(?:
19276             9[23]|
19277             47
19278           )\d{6}
19279         </nationalNumberPattern>
19280         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19281         <exampleNumber>692123456</exampleNumber>
19282       </mobile>
19283       <!-- 08* Numbers in Réunion are the same as those valid in France. -->
19284       <tollFree>
19285         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
19286         <exampleNumber>801234567</exampleNumber>
19287       </tollFree>
19288       <premiumRate>
19289         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
19290         <exampleNumber>891123456</exampleNumber>
19291       </premiumRate>
19292       <sharedCost>
19293         <nationalNumberPattern>
19294           8(?:
19295             1[019]|
19296             2[0156]|
19297             84|
19298             90
19299           )\d{6}
19300         </nationalNumberPattern>
19301         <exampleNumber>810123456</exampleNumber>
19302       </sharedCost>
19303     </territory>
19304
19305     <!-- Romania -->
19306     <!-- Extension prefix found online, confirmed by a Romanian. -->
19307     <territory id="RO" countryCode="40" internationalPrefix="00"
19308                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19309                preferredExtnPrefix=" int " mobileNumberPortableRegion="true">
19310       <references>
19311         <sourceUrl>http://www.itu.int/oth/T02020000AC/en</sourceUrl>
19312         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania</sourceUrl>
19313       </references>
19314       <availableFormats>
19315         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
19316           <leadingDigits>[23]1</leadingDigits>
19317           <format>$1 $2 $3</format>
19318         </numberFormat>
19319         <numberFormat pattern="(21)(\d{4})">
19320           <leadingDigits>21</leadingDigits>
19321           <format>$1 $2</format>
19322         </numberFormat>
19323         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19324           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
19325                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
19326                majority of numbers found online follow this convention. -->
19327           <leadingDigits>
19328             [23][3-7]|
19329             [7-9]
19330           </leadingDigits>
19331           <format>$1 $2 $3</format>
19332         </numberFormat>
19333         <numberFormat pattern="(2\d{2})(\d{3})">
19334           <leadingDigits>2[3-6]</leadingDigits>
19335           <format>$1 $2</format>
19336         </numberFormat>
19337       </availableFormats>
19338       <generalDesc>
19339         <nationalNumberPattern>
19340           2\d{5,8}|
19341           [37-9]\d{8}
19342         </nationalNumberPattern>
19343         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
19344              to wikipedia and people must dial the full number. However, there are still short
19345              numbers that total 6 digits long, so the possible number pattern should take these into
19346              account. -->
19347         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19348       </generalDesc>
19349       <fixedLine>
19350         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
19351              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
19352              this based on numbers found online and the wikipedia article which indicate that these
19353              are four digits long in Bucharest only, and three digits elsewhere. -->
19354         <nationalNumberPattern>
19355           2(?:
19356             1(?:
19357               \d{7}|
19358               9\d{3}
19359             )|
19360             [3-6](?:
19361               \d{7}|
19362               \d9\d{2}
19363             )
19364           )|
19365           3[13-6]\d{7}
19366           </nationalNumberPattern>
19367         <exampleNumber>211234567</exampleNumber>
19368       </fixedLine>
19369       <mobile>
19370         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
19371              numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
19372              open-source report and confirmation by existence of such numbers online. -->
19373         <nationalNumberPattern>
19374           7(?:
19375             000|
19376             [1-8]\d{2}|
19377             99\d
19378           )\d{5}
19379         </nationalNumberPattern>
19380         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19381         <exampleNumber>712345678</exampleNumber>
19382       </mobile>
19383       <tollFree>
19384         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19385         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19386         <exampleNumber>800123456</exampleNumber>
19387       </tollFree>
19388       <premiumRate>
19389         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
19390         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19391         <exampleNumber>900123456</exampleNumber>
19392       </premiumRate>
19393       <sharedCost>
19394         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19395         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19396         <exampleNumber>801123456</exampleNumber>
19397       </sharedCost>
19398       <personalNumber>
19399         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
19400         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19401         <exampleNumber>802123456</exampleNumber>
19402       </personalNumber>
19403       <uan>
19404         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
19405              location-independent national numbers. Only numbers beginning with 37 have been seen so
19406              these are the only ones supported for now. -->
19407         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
19408         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19409         <exampleNumber>372123456</exampleNumber>
19410       </uan>
19411     </territory>
19412
19413     <!-- Serbia -->
19414     <territory id="RS" countryCode="381" internationalPrefix="00"
19415                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19416                mobileNumberPortableRegion="true">
19417       <references>
19418         <sourceUrl>http://www.itu.int/oth/T02020000B9/en</sourceUrl>
19419         <sourceUrl>http://registar.ratel.rs/en/reg202</sourceUrl>
19420       </references>
19421       <availableFormats>
19422         <numberFormat pattern="([23]\d{2})(\d{4,9})">
19423           <leadingDigits>
19424             (?:
19425               2[389]|
19426               39
19427             )0
19428           </leadingDigits>
19429           <format>$1 $2</format>
19430         </numberFormat>
19431         <numberFormat pattern="([1-3]\d)(\d{5,10})">
19432           <leadingDigits>
19433             1|
19434             2(?:
19435               [0-24-7]|
19436               [389][1-9]
19437             )|
19438             3(?:
19439               [0-8]|
19440               9[1-9]
19441             )
19442           </leadingDigits>
19443           <format>$1 $2</format>
19444         </numberFormat>
19445         <numberFormat pattern="(6\d)(\d{6,8})">
19446           <leadingDigits>6</leadingDigits>
19447           <format>$1 $2</format>
19448         </numberFormat>
19449         <numberFormat pattern="([89]\d{2})(\d{3,9})">
19450           <leadingDigits>[89]</leadingDigits>
19451           <format>$1 $2</format>
19452         </numberFormat>
19453         <numberFormat pattern="(7[26])(\d{4,9})">
19454           <leadingDigits>7[26]</leadingDigits>
19455           <format>$1 $2</format>
19456         </numberFormat>
19457         <numberFormat pattern="(7[08]\d)(\d{4,9})">
19458           <leadingDigits>7[08]</leadingDigits>
19459           <format>$1 $2</format>
19460         </numberFormat>
19461       </availableFormats>
19462       <generalDesc>
19463         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
19464              by 2-9) and the country calling code (381). -->
19465         <nationalNumberPattern>
19466           [126-9]\d{4,11}|
19467           3(?:
19468             [0-79]\d{3,10}|
19469             8[2-9]\d{2,9}
19470           )
19471         </nationalNumberPattern>
19472         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19473       </generalDesc>
19474       <fixedLine>
19475         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
19476              has been issused, so we allow 11 1X here. -->
19477         <nationalNumberPattern>
19478           (?:
19479             1(?:
19480               [02-9][2-9]|
19481               1[1-9]
19482             )\d|
19483             2(?:
19484               [0-24-7][2-9]\d|
19485               [389](?:
19486                 0[2-9]|
19487                 [2-9]\d
19488               )
19489             )|
19490             3(?:
19491               [0-8][2-9]\d|
19492               9(?:
19493                 [2-9]\d|
19494                 0[2-9]
19495               )
19496             )
19497           )\d{3,8}
19498         </nationalNumberPattern>
19499         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19500         <exampleNumber>10234567</exampleNumber>
19501       </fixedLine>
19502       <mobile>
19503         <nationalNumberPattern>
19504           6(?:
19505             [0-689]|
19506             7\d
19507           )\d{6,7}
19508         </nationalNumberPattern>
19509         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
19510         <exampleNumber>601234567</exampleNumber>
19511       </mobile>
19512       <tollFree>
19513         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
19514         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19515         <exampleNumber>80012345</exampleNumber>
19516       </tollFree>
19517       <premiumRate>
19518         <nationalNumberPattern>
19519           (?:
19520             90[0169]|
19521             78\d
19522           )\d{3,7}
19523         </nationalNumberPattern>
19524         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19525         <exampleNumber>90012345</exampleNumber>
19526       </premiumRate>
19527       <uan>
19528         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
19529         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19530         <exampleNumber>700123456</exampleNumber>
19531       </uan>
19532     </territory>
19533
19534     <!-- Russian Federation -->
19535     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
19536                internationalPrefix="810" nationalPrefix="8"
19537                nationalPrefixFormattingRule="$NP ($FG)"
19538                nationalPrefixOptionalWhenFormatting="true" >
19539       <references>
19540         <sourceUrl>http://www.itu.int/oth/T02020000AD/en</sourceUrl>
19541         <sourceUrl>http://en.wikipedia.org/wiki/%2B7</sourceUrl>
19542       </references>
19543       <availableFormats>
19544         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
19545              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
19546              Kazakhstan as well. -->
19547         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
19548           <!-- Local numbers only - these do not start with the national prefix. -->
19549           <leadingDigits>[1-79]</leadingDigits>
19550           <format>$1-$2-$3</format>
19551           <intlFormat>NA</intlFormat>
19552         </numberFormat>
19553         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
19554           <leadingDigits>[34689]</leadingDigits>
19555           <format>$1 $2-$3-$4</format>
19556         </numberFormat>
19557         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
19558           <leadingDigits>7</leadingDigits>
19559           <format>$1 $2 $3</format>
19560         </numberFormat>
19561       </availableFormats>
19562       <generalDesc>
19563         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
19564         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19565       </generalDesc>
19566       <fixedLine>
19567         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
19568              in the yellow pages, and on their own website and is listed on wikipedia. This applies
19569              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
19570         <nationalNumberPattern>
19571           (?:
19572             3(?:
19573               0[12]|
19574               4[1-35-79]|
19575               5[1-3]|
19576               8[1-58]|
19577               9[0145]
19578             )|
19579             4(?:
19580               01|
19581               1[1356]|
19582               2[13467]|
19583               7[1-5]|
19584               8[1-7]|
19585               9[1-689]
19586             )|
19587             8(?:
19588               1[1-8]|
19589               2[01]|
19590               3[13-6]|
19591               4[0-8]|
19592               5[15]|
19593               6[1-35-7]|
19594               7[1-37-9]
19595             )
19596           )\d{7}
19597         </nationalNumberPattern>
19598         <exampleNumber>3011234567</exampleNumber>
19599       </fixedLine>
19600       <mobile>
19601         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
19602         <exampleNumber>9123456789</exampleNumber>
19603       </mobile>
19604       <tollFree>
19605         <!-- The metadata states that 804 numbers are UAN numbers, but
19606              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
19607              numbers. -->
19608         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
19609         <exampleNumber>8001234567</exampleNumber>
19610       </tollFree>
19611       <premiumRate>
19612         <!-- Covers tele-voting numbers as well. -->
19613         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
19614         <exampleNumber>8091234567</exampleNumber>
19615       </premiumRate>
19616     </territory>
19617
19618     <!-- Rwanda -->
19619     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
19620          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
19621          as http://www.tigo.co.rw "Choose Your Number" service. -->
19622     <territory id="RW" countryCode="250" internationalPrefix="00"
19623                nationalPrefix="0" leadingZeroPossible="true">
19624       <references>
19625         <sourceUrl>http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf</sourceUrl>
19626         <sourceUrl>http://en.wikipedia.org/wiki/+250</sourceUrl>
19627       </references>
19628       <availableFormats>
19629         <numberFormat nationalPrefixFormattingRule="$FG"
19630           pattern="(2\d{2})(\d{3})(\d{3})">
19631           <leadingDigits>2</leadingDigits>
19632           <format>$1 $2 $3</format>
19633         </numberFormat>
19634         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
19635           <leadingDigits>[7-9]</leadingDigits>
19636           <format>$1 $2 $3</format>
19637         </numberFormat>
19638         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
19639           <leadingDigits>0</leadingDigits>
19640           <format>$1 $2 $3 $4</format>
19641         </numberFormat>
19642       </availableFormats>
19643       <generalDesc>
19644         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
19645         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
19646       </generalDesc>
19647       <fixedLine>
19648         <!-- We support satellite numbers here, since they are in the plan, although no recent
19649              online examples can be found. We also support fixed-line ranges that have been reserved
19650              and paid for, even where no online numbers can be found. -->
19651         <nationalNumberPattern>
19652           2[258]\d{7}|
19653           06\d{6}
19654         </nationalNumberPattern>
19655         <exampleNumber>250123456</exampleNumber>
19656       </fixedLine>
19657       <mobile>
19658         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
19659              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
19660              license revoked. -->
19661         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
19662         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19663         <exampleNumber>720123456</exampleNumber>
19664       </mobile>
19665       <tollFree>
19666         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19667         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19668         <exampleNumber>800123456</exampleNumber>
19669       </tollFree>
19670       <premiumRate>
19671         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
19672         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19673         <exampleNumber>900123456</exampleNumber>
19674       </premiumRate>
19675     </territory>
19676
19677     <!-- Saudi Arabia -->
19678     <territory id="SA" countryCode="966" internationalPrefix="00"
19679                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19680                mobileNumberPortableRegion="true">
19681       <references>
19682         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia</sourceUrl>
19683         <sourceUrl>http://www.itu.int/oth/T02020000B7/en</sourceUrl>
19684       </references>
19685       <availableFormats>
19686         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
19687           <leadingDigits>[1-467]</leadingDigits>
19688           <format>$1 $2 $3</format>
19689         </numberFormat>
19690         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
19691           <leadingDigits>1[1-467]</leadingDigits>
19692           <format>$1 $2 $3</format>
19693         </numberFormat>
19694         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
19695           <leadingDigits>5</leadingDigits>
19696           <format>$1 $2 $3</format>
19697         </numberFormat>
19698         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
19699              the fact that no numbers of this form found online have a trunk prefix added. -->
19700         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
19701           <leadingDigits>92</leadingDigits>
19702           <format>$1 $2</format>
19703         </numberFormat>
19704         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
19705           <leadingDigits>80</leadingDigits>
19706           <format>$1 $2 $3</format>
19707         </numberFormat>
19708         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
19709           <leadingDigits>81</leadingDigits>
19710           <format>$1 $2 $3</format>
19711         </numberFormat>
19712       </availableFormats>
19713       <generalDesc>
19714         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
19715              fixed-line numbers. -->
19716         <nationalNumberPattern>
19717           1\d{7,8}|
19718           (?:
19719             [2-467]|
19720             92
19721           )\d{7}|
19722           5\d{8}|
19723           8\d{9}
19724         </nationalNumberPattern>
19725         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
19726       </generalDesc>
19727       <fixedLine>
19728         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
19729              happened in May for area code 1 (parallel running ended July 13th, 2013) and then in
19730              August for the other fixed-line numbers (parallel running ends October 18th, 2013). -->
19731         <nationalNumberPattern>
19732           11\d{7}|
19733           1?(?:
19734             2[24-8]|
19735             3[35-8]|
19736             4[3-68]|
19737             6[2-5]|
19738             7[235-7]
19739           )\d{6}
19740         </nationalNumberPattern>
19741         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
19742         <exampleNumber>112345678</exampleNumber>
19743       </fixedLine>
19744       <mobile>
19745         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
19746              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
19747              until we find evidence that this is an error, leaving them at 10 for now. -->
19748         <nationalNumberPattern>
19749           (?:
19750             5(?:
19751               [013-689]\d|
19752               7[0-26-8]
19753             )|
19754             811\d
19755           )\d{6}
19756         </nationalNumberPattern>
19757         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
19758         <exampleNumber>512345678</exampleNumber>
19759       </mobile>
19760       <tollFree>
19761         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
19762         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19763         <exampleNumber>8001234567</exampleNumber>
19764       </tollFree>
19765       <sharedCost>
19766         <!-- Including shared revenue with shared cost here. -->
19767         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
19768         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19769         <exampleNumber>920012345</exampleNumber>
19770       </sharedCost>
19771     </territory>
19772
19773     <!-- Solomon Islands -->
19774     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
19775       <references>
19776         <sourceUrl>http://www.itu.int/oth/T02020000BF/en</sourceUrl>
19777       </references>
19778       <!-- A single group is used to format 5-digit numbers. This formatting pattern follows
19779            the guidelines in the ITU document. -->
19780       <availableFormats>
19781         <numberFormat pattern="(\d{2})(\d{5})">
19782           <leadingDigits>[7-9]</leadingDigits>
19783           <format>$1 $2</format>
19784         </numberFormat>
19785       </availableFormats>
19786       <generalDesc>
19787         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
19788         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
19789       </generalDesc>
19790       <fixedLine>
19791         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
19792              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
19793         <nationalNumberPattern>
19794           (?:
19795             1[4-79]|
19796             [23]\d|
19797             4[01]|
19798             5[03]|
19799             6[0-37]
19800           )\d{3}
19801         </nationalNumberPattern>
19802         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19803         <exampleNumber>40123</exampleNumber>
19804       </fixedLine>
19805       <mobile>
19806         <nationalNumberPattern>
19807           48\d{3}|
19808           7(?:
19809             [0146-8]\d|
19810             5[025-9]|
19811             9[0124]
19812           )\d{4}|
19813           8[4-8]\d{5}|
19814           9(?:
19815             [46]\d|
19816             5[0-46-9]|
19817             7[0-689]|
19818             8[0-79]|
19819             9[0-8]
19820           )\d{4}
19821         </nationalNumberPattern>
19822         <exampleNumber>7421234</exampleNumber>
19823       </mobile>
19824       <tollFree>
19825         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
19826         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19827         <exampleNumber>18123</exampleNumber>
19828       </tollFree>
19829       <voip>
19830         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
19831         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19832         <exampleNumber>51123</exampleNumber>
19833       </voip>
19834     </territory>
19835
19836     <!-- Seychelles -->
19837     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
19838                preferredInternationalPrefix="00">
19839       <references>
19840         <sourceUrl>http://www.itu.int/oth/T02020000BA/en</sourceUrl>
19841         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles</sourceUrl>
19842       </references>
19843       <availableFormats>
19844         <numberFormat pattern="(\d{3})(\d{3})">
19845           <leadingDigits>[89]</leadingDigits>
19846           <format>$1 $2</format>
19847         </numberFormat>
19848         <numberFormat pattern="(\d)(\d{3})(\d{3})">
19849           <leadingDigits>[246]</leadingDigits>
19850           <format>$1 $2 $3</format>
19851         </numberFormat>
19852       </availableFormats>
19853       <generalDesc>
19854         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
19855         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
19856       </generalDesc>
19857       <fixedLine>
19858         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
19859              they are more expensive to call than other Fixed Line services. ISDN and DID services
19860              are here too, since they seem to be also fixed-line phone numbers. -->
19861         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
19862         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19863         <exampleNumber>4217123</exampleNumber>
19864       </fixedLine>
19865       <mobile>
19866         <!-- Includes Fixed Cellular. -->
19867         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
19868         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19869         <exampleNumber>2510123</exampleNumber>
19870       </mobile>
19871       <tollFree>
19872         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
19873         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19874         <exampleNumber>800000</exampleNumber>
19875       </tollFree>
19876       <premiumRate>
19877         <!-- Using this to represent Value Added Service in the plan. -->
19878         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
19879         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19880         <exampleNumber>981234</exampleNumber>
19881       </premiumRate>
19882       <voip>
19883         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
19884         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19885         <exampleNumber>6412345</exampleNumber>
19886       </voip>
19887     </territory>
19888
19889     <!-- Sudan -->
19890     <territory id="SD" countryCode="249" internationalPrefix="00"
19891                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19892       <references>
19893         <sourceUrl>http://www.itu.int/oth/T02020000C4/en</sourceUrl>
19894       </references>
19895       <availableFormats>
19896         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19897           <format>$1 $2 $3</format>
19898         </numberFormat>
19899       </availableFormats>
19900       <generalDesc>
19901         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
19902         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19903       </generalDesc>
19904       <fixedLine>
19905         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
19906              found online. -->
19907         <nationalNumberPattern>
19908           1(?:
19909             [125]\d|
19910             8[3567]
19911           )\d{6}
19912         </nationalNumberPattern>
19913         <exampleNumber>121231234</exampleNumber>
19914       </fixedLine>
19915       <mobile>
19916         <!-- Adding 90X as online numbers have been found with this prefix. -->
19917         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
19918         <exampleNumber>911231234</exampleNumber>
19919       </mobile>
19920     </territory>
19921
19922     <!-- Sweden -->
19923     <territory id="SE" countryCode="46" internationalPrefix="00"
19924                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19925                mobileNumberPortableRegion="true">
19926       <references>
19927         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf</sourceUrl>
19928         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Nrplansammanst%C3%A4llning-2013-07-05.pdf</sourceUrl>
19929       </references>
19930       <availableFormats>
19931       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
19932            http://gulasidorna.eniro.se -->
19933         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
19934           <leadingDigits>8</leadingDigits>
19935           <format>$1-$2 $3 $4</format>
19936           <intlFormat>$1 $2 $3 $4</intlFormat>
19937         </numberFormat>
19938         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
19939           <leadingDigits>
19940             1[013689]|
19941             2[0136]|
19942             3[1356]|
19943             4[0246]|
19944             54|
19945             6[03]|
19946             90
19947           </leadingDigits>
19948           <format>$1-$2 $3 $4</format>
19949           <intlFormat>$1 $2 $3 $4</intlFormat>
19950         </numberFormat>
19951         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
19952           <leadingDigits>
19953             1[13689]|
19954             2[136]|
19955             3[1356]|
19956             4[0246]|
19957             54|
19958             6[03]|
19959             90
19960           </leadingDigits>
19961           <format>$1-$2 $3</format>
19962           <intlFormat>$1 $2 $3</intlFormat>
19963         </numberFormat>
19964         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
19965           <leadingDigits>
19966             1[2457]|
19967             2[2457-9]|
19968             3[0247-9]|
19969             4[1357-9]|
19970             5[0-35-9]|
19971             6[124-9]|
19972             9(?:
19973               [125-8]|
19974               3[0-5]|
19975               4[0-3]
19976             )
19977           </leadingDigits>
19978           <format>$1-$2 $3 $4</format>
19979           <intlFormat>$1 $2 $3 $4</intlFormat>
19980         </numberFormat>
19981         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
19982           <leadingDigits>
19983             1[2457]|
19984             2[2457-9]|
19985             3[0247-9]|
19986             4[1357-9]|
19987             5[0-35-9]|
19988             6[124-9]|
19989             9(?:
19990               [125-8]|
19991               3[0-5]|
19992               4[0-3]
19993             )
19994           </leadingDigits>
19995           <format>$1-$2 $3</format>
19996           <intlFormat>$1 $2 $3</intlFormat>
19997         </numberFormat>
19998         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
19999           <leadingDigits>7</leadingDigits>
20000           <format>$1-$2 $3 $4</format>
20001           <intlFormat>$1 $2 $3 $4</intlFormat>
20002         </numberFormat>
20003         <numberFormat pattern="(77)(\d{2})(\d{2})">
20004           <leadingDigits>7</leadingDigits>
20005           <format>$1-$2$3</format>
20006           <intlFormat>$1 $2 $3</intlFormat>
20007         </numberFormat>
20008         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
20009           <leadingDigits>20</leadingDigits>
20010           <format>$1-$2 $3</format>
20011           <intlFormat>$1 $2 $3</intlFormat>
20012         </numberFormat>
20013         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
20014           <leadingDigits>9[034]</leadingDigits>
20015           <format>$1-$2 $3 $4</format>
20016           <intlFormat>$1 $2 $3 $4</intlFormat>
20017         </numberFormat>
20018         <numberFormat pattern="(9[034]\d)(\d{4})">
20019           <leadingDigits>9[034]</leadingDigits>
20020           <format>$1-$2</format>
20021           <intlFormat>$1 $2</intlFormat>
20022         </numberFormat>
20023       </availableFormats>
20024       <generalDesc>
20025         <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
20026         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
20027       </generalDesc>
20028       <fixedLine>
20029         <nationalNumberPattern>
20030           1(?:
20031             0[1-8]\d{6}|
20032             [136]\d{5,7}|
20033             (?:
20034               2[0-35]|
20035               4[0-4]|
20036               5[0-25-9]|
20037               7[13-6]|
20038               [89]\d
20039             )\d{5,6}
20040           )|
20041           2(?:
20042             [136]\d{5,7}|
20043             (?:
20044               2[0-7]|
20045               4[0136-8]|
20046               5[0138]|
20047               7[018]|
20048               8[01]|
20049               9[0-57]
20050             )\d{5,6}
20051           )|
20052           3(?:
20053             [356]\d{5,7}|
20054             (?:
20055               0[0-4]|
20056               1\d|
20057               2[0-25]|
20058               4[056]|
20059               7[0-2]|
20060               8[0-3]|
20061               9[023]
20062             )\d{5,6}
20063           )|
20064           4(?:
20065             0[1-9]\d{4,6}|
20066             [246]\d{5,7}|
20067             (?:
20068               1[013-8]|
20069               3[0135]|
20070               5[14-79]|
20071               7[0-246-9]|
20072               8[0156]|
20073               9[0-689]
20074             )\d{5,6}
20075           )|
20076           5(?:
20077             0[0-6]|
20078             [15][0-5]|
20079             2[0-68]|
20080             3[0-4]|
20081             4\d|
20082             6[03-5]|
20083             7[013]|
20084             8[0-79]|
20085             9[01]
20086           )\d{5,6}|
20087           6(?:
20088             0[1-9]\d{4,6}|
20089             3\d{5,7}|
20090             (?:
20091               1[1-3]|
20092               2[0-4]|
20093               4[02-57]|
20094               5[0-37]|
20095               6[0-3]|
20096               7[0-2]|
20097               8[0247]|
20098               9[0-356]
20099             )\d{5,6}
20100           )|
20101           8[1-9]\d{5,7}|
20102           9(?:
20103             0[1-9]\d{4,6}|
20104             (?:
20105               1[0-68]|
20106               2\d|
20107               3[02-5]|
20108               4[0-3]|
20109               5[0-4]|
20110               [68][01]|
20111               7[0135-8]
20112             )\d{5,6}
20113           )
20114         </nationalNumberPattern>
20115         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20116         <exampleNumber>8123456</exampleNumber>
20117       </fixedLine>
20118       <mobile>
20119         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
20120         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20121         <exampleNumber>701234567</exampleNumber>
20122       </mobile>
20123       <pager>
20124         <nationalNumberPattern>74[02-9]\d{6}</nationalNumberPattern>
20125         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20126         <exampleNumber>740123456</exampleNumber>
20127       </pager>
20128       <tollFree>
20129         <nationalNumberPattern>
20130           20(?:
20131             0(?:
20132               0\d{2}|
20133               [1-9](?:
20134                 0\d{1,4}|
20135                 [1-9]\d{4}
20136               )
20137             )|
20138             1(?:
20139               0\d{4}|
20140               [1-9]\d{4,5}
20141             )|
20142             [2-9]\d{5}
20143           )
20144         </nationalNumberPattern>
20145         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20146         <exampleNumber>20123456</exampleNumber>
20147       </tollFree>
20148       <premiumRate>
20149         <nationalNumberPattern>
20150           9(?:
20151             00|
20152             39|
20153             44
20154           )(?:
20155             1(?:
20156               [0-26]\d{5}|
20157               [3-57-9]\d{2}
20158             )|
20159             2(?:
20160               [0-2]\d{5}|
20161               [3-9]\d{2}
20162             )|
20163             3(?:
20164               [0139]\d{5}|
20165               [24-8]\d{2}
20166             )|
20167             4(?:
20168               [045]\d{5}|
20169               [1-36-9]\d{2}
20170             )|
20171             5(?:
20172               5\d{5}|
20173               [0-46-9]\d{2}
20174             )|
20175             6(?:
20176               [679]\d{5}|
20177               [0-58]\d{2}
20178             )|
20179             7(?:
20180               [078]\d{5}|
20181               [1-69]\d{2}
20182             )|
20183             8(?:
20184               [578]\d{5}|
20185               [0-469]\d{2}
20186             )
20187           )
20188         </nationalNumberPattern>
20189         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
20190         <exampleNumber>9001234567</exampleNumber>
20191       </premiumRate>
20192       <sharedCost>
20193         <nationalNumberPattern>
20194           77(?:
20195             0(?:
20196               0\d{2}|
20197               [1-9](?:
20198                 0\d|
20199                 [1-9]\d{4}
20200               )
20201             )|
20202             [1-6][1-9]\d{5}
20203           )
20204         </nationalNumberPattern>
20205         <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
20206         <exampleNumber>771234567</exampleNumber>
20207       </sharedCost>
20208       <personalNumber>
20209         <nationalNumberPattern>75[1-8]\d{6}</nationalNumberPattern>
20210         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20211         <exampleNumber>751234567</exampleNumber>
20212       </personalNumber>
20213     </territory>
20214
20215     <!-- Singapore -->
20216     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d"
20217                mobileNumberPortableRegion="true">
20218       <references>
20219         <sourceUrl>http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx</sourceUrl>
20220       </references>
20221       <availableFormats>
20222         <numberFormat pattern="([3689]\d{3})(\d{4})">
20223           <leadingDigits>
20224             [369]|
20225             8[1-9]
20226           </leadingDigits>
20227           <format>$1 $2</format>
20228         </numberFormat>
20229         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
20230           <leadingDigits>1[89]</leadingDigits>
20231           <format>$1 $2 $3</format>
20232         </numberFormat>
20233         <numberFormat pattern="(7000)(\d{4})(\d{3})">
20234           <leadingDigits>70</leadingDigits>
20235           <format>$1 $2 $3</format>
20236         </numberFormat>
20237         <numberFormat pattern="(800)(\d{3})(\d{4})">
20238           <leadingDigits>80</leadingDigits>
20239           <format>$1 $2 $3</format>
20240         </numberFormat>
20241       </availableFormats>
20242       <generalDesc>
20243         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
20244              easily strip off leading "65" country codes. -->
20245         <nationalNumberPattern>
20246           [36]\d{7}|
20247           [17-9]\d{7,10}
20248         </nationalNumberPattern>
20249         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
20250       </generalDesc>
20251       <fixedLine>
20252         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
20253         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20254         <exampleNumber>61234567</exampleNumber>
20255       </fixedLine>
20256       <mobile>
20257         <nationalNumberPattern>
20258           (?:
20259             8[1-7]|
20260             9[0-8]
20261           )\d{6}
20262         </nationalNumberPattern>
20263         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20264         <exampleNumber>81234567</exampleNumber>
20265       </mobile>
20266       <tollFree>
20267         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
20268         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
20269         <exampleNumber>18001234567</exampleNumber>
20270       </tollFree>
20271       <premiumRate>
20272         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
20273         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20274         <exampleNumber>19001234567</exampleNumber>
20275       </premiumRate>
20276       <voip>
20277         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
20278         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20279         <exampleNumber>31234567</exampleNumber>
20280       </voip>
20281       <uan>
20282         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
20283              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
20284              -->
20285         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
20286         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20287         <exampleNumber>70001234567</exampleNumber>
20288       </uan>
20289     </territory>
20290
20291     <!-- Saint Helena -->
20292     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
20293       <references>
20294         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
20295       </references>
20296       <!-- Numbers are formatted as a block. -->
20297       <generalDesc>
20298         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
20299         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
20300       </generalDesc>
20301       <fixedLine>
20302         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
20303              The new pattern is first, followed by the old (hence the repetition of the leading 2).
20304              -->
20305         <nationalNumberPattern>
20306           2(?:
20307             [0-57-9]\d|
20308             6[4-9]
20309           )\d{2}|
20310           (?:
20311             [2-46]\d|
20312             7[01]
20313           )\d{2}
20314         </nationalNumberPattern>
20315         <!-- Using St Helena Tourism as the example number. -->
20316         <exampleNumber>2158</exampleNumber>
20317       </fixedLine>
20318       <mobile>
20319         <nationalNumberPattern>NA</nationalNumberPattern>
20320         <possibleNumberPattern>NA</possibleNumberPattern>
20321       </mobile>
20322       <premiumRate>
20323         <nationalNumberPattern>
20324           (?:
20325             [59]\d|
20326             7[2-9]
20327           )\d{2}
20328         </nationalNumberPattern>
20329         <exampleNumber>5012</exampleNumber>
20330       </premiumRate>
20331     </territory>
20332
20333     <!-- Slovenia -->
20334     <territory id="SI" countryCode="386" internationalPrefix="00"
20335                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20336                mobileNumberPortableRegion="true">
20337       <references>
20338         <sourceUrl>http://www.itu.int/oth/T02020000BE/en</sourceUrl>
20339       </references>
20340       <availableFormats>
20341         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
20342           pattern="(\d)(\d{3})(\d{2})(\d{2})">
20343           <leadingDigits>
20344             [12]|
20345             3[4-8]|
20346             4[24-8]|
20347             5[2-8]|
20348             7[3-8]
20349           </leadingDigits>
20350           <format>$1 $2 $3 $4</format>
20351           </numberFormat>
20352         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
20353           <leadingDigits>
20354             [37][01]|
20355             4[0139]|
20356             51|
20357             6
20358           </leadingDigits>
20359           <format>$1 $2 $3</format>
20360           </numberFormat>
20361         <numberFormat pattern="([89][09])(\d{3,6})">
20362           <leadingDigits>[89][09]</leadingDigits>
20363           <format>$1 $2</format>
20364         </numberFormat>
20365         <numberFormat pattern="([58]\d{2})(\d{5})">
20366           <leadingDigits>
20367             59|
20368             8[1-3]
20369           </leadingDigits>
20370           <format>$1 $2</format>
20371         </numberFormat>
20372       </availableFormats>
20373       <generalDesc>
20374         <nationalNumberPattern>
20375           [1-7]\d{6,7}|
20376           [89]\d{4,7}
20377         </nationalNumberPattern>
20378         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20379       </generalDesc>
20380       <fixedLine>
20381         <nationalNumberPattern>
20382           (?:
20383             1\d|
20384             [25][2-8]|
20385             3[4-8]|
20386             4[24-8]|
20387             7[3-8]
20388           )\d{6}
20389         </nationalNumberPattern>
20390         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
20391         <exampleNumber>11234567</exampleNumber>
20392       </fixedLine>
20393       <mobile>
20394         <!-- We include 043 and 049 here - it is VoIP in the plan, but is actually used to provide
20395              mobile coverage to Kosovo. Also added 068, which is used by the mobile operator bob.si
20396          -->
20397         <nationalNumberPattern>
20398           (?:
20399             [37][01]|
20400             4[0139]|
20401             51|
20402             6[48]
20403           )\d{6}
20404         </nationalNumberPattern>
20405         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20406         <exampleNumber>31234567</exampleNumber>
20407       </mobile>
20408       <tollFree>
20409         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
20410         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20411         <exampleNumber>80123456</exampleNumber>
20412       </tollFree>
20413       <premiumRate>
20414         <!-- Includes televoting, mass calling -->
20415         <nationalNumberPattern>
20416           90\d{4,6}|
20417           89[1-3]\d{2,5}
20418         </nationalNumberPattern>
20419         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20420         <exampleNumber>90123456</exampleNumber>
20421       </premiumRate>
20422       <voip>
20423         <nationalNumberPattern>
20424           (?:
20425             59|
20426             8[1-3]
20427           )\d{6}
20428         </nationalNumberPattern>
20429         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20430         <exampleNumber>59012345</exampleNumber>
20431       </voip>
20432     </territory>
20433
20434     <!-- Svalbard -->
20435     <!-- Metadata shared with Norway. -->
20436     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
20437       <references>
20438         <sourceUrl>http://www.npt.no/pt_internet/numsys/E.164.pdf</sourceUrl>
20439       </references>
20440       <generalDesc>
20441         <nationalNumberPattern>
20442           0\d{4}|
20443           [4789]\d{7}
20444         </nationalNumberPattern>
20445         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
20446       </generalDesc>
20447       <fixedLine>
20448         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
20449         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20450         <exampleNumber>79123456</exampleNumber>
20451       </fixedLine>
20452       <!-- Copied from Norway metadata. -->
20453       <mobile>
20454         <nationalNumberPattern>
20455           (?:
20456             4[015-8]|
20457             5[89]|
20458             9\d
20459           )\d{6}
20460         </nationalNumberPattern>
20461         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20462         <exampleNumber>41234567</exampleNumber>
20463       </mobile>
20464       <tollFree>
20465         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
20466         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20467         <exampleNumber>80012345</exampleNumber>
20468       </tollFree>
20469       <premiumRate>
20470         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
20471         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20472         <exampleNumber>82012345</exampleNumber>
20473       </premiumRate>
20474       <sharedCost>
20475         <nationalNumberPattern>
20476           810(?:
20477             0[0-6]|
20478             [2-8]\d
20479           )\d{3}
20480         </nationalNumberPattern>
20481         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20482         <exampleNumber>81021234</exampleNumber>
20483       </sharedCost>
20484       <personalNumber>
20485         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
20486         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20487         <exampleNumber>88012345</exampleNumber>
20488       </personalNumber>
20489       <voip>
20490         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
20491         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20492         <exampleNumber>85012345</exampleNumber>
20493       </voip>
20494       <uan>
20495         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
20496         <nationalNumberPattern>
20497           0\d{4}|
20498           81(?:
20499             0(?:
20500               0[7-9]|
20501               1\d
20502             )|
20503             5\d{2}
20504           )\d{3}
20505         </nationalNumberPattern>
20506         <exampleNumber>01234</exampleNumber>
20507       </uan>
20508       <voicemail>
20509         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
20510         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20511         <exampleNumber>81212345</exampleNumber>
20512       </voicemail>
20513     </territory>
20514
20515     <!-- Slovakia -->
20516     <territory id="SK" countryCode="421" internationalPrefix="00"
20517                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20518                mobileNumberPortableRegion="true">
20519       <references>
20520         <sourceUrl>http://www.itu.int/oth/T02020000BD/en</sourceUrl>
20521       </references>
20522       <availableFormats>
20523         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
20524           <leadingDigits>2</leadingDigits>
20525           <format>$1/$2 $3 $4</format>
20526         </numberFormat>
20527         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
20528           <leadingDigits>[3-5]</leadingDigits>
20529           <format>$1/$2 $3 $4</format>
20530         </numberFormat>
20531         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
20532           <leadingDigits>[689]</leadingDigits>
20533           <format>$1 $2 $3</format>
20534         </numberFormat>
20535       </availableFormats>
20536       <generalDesc>
20537         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
20538         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20539       </generalDesc>
20540       <noInternationalDialling>
20541         <nationalNumberPattern>
20542           (?:
20543             8(?:
20544               00|
20545               [5-9]\d
20546             )|
20547             9(?:
20548               00|
20549               [78]\d
20550             )
20551           )\d{6}
20552         </nationalNumberPattern>
20553         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20554         <exampleNumber>800123456</exampleNumber>
20555       </noInternationalDialling>
20556       <fixedLine>
20557         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
20558         <exampleNumber>212345678</exampleNumber>
20559       </fixedLine>
20560       <mobile>
20561         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
20562              deeming it valid for now. -->
20563         <nationalNumberPattern>
20564           9(?:
20565             0[1-8]|
20566             1[0-24-9]|
20567             4[0489]
20568           )\d{6}
20569         </nationalNumberPattern>
20570         <exampleNumber>912123456</exampleNumber>
20571       </mobile>
20572       <tollFree>
20573         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20574         <exampleNumber>800123456</exampleNumber>
20575       </tollFree>
20576       <premiumRate>
20577         <nationalNumberPattern>
20578           9(?:
20579             [78]\d{7}|
20580             00\d{6}
20581           )
20582         </nationalNumberPattern>
20583         <exampleNumber>900123456</exampleNumber>
20584       </premiumRate>
20585       <sharedCost>
20586         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
20587         <exampleNumber>850123456</exampleNumber>
20588       </sharedCost>
20589       <voip>
20590         <nationalNumberPattern>
20591           6(?:
20592             5[0-4]|
20593             9[0-6]
20594           )\d{6}
20595         </nationalNumberPattern>
20596         <exampleNumber>690123456</exampleNumber>
20597       </voip>
20598       <uan>
20599         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
20600         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20601         <exampleNumber>961234567</exampleNumber>
20602       </uan>
20603     </territory>
20604
20605     <!-- Sierra Leone -->
20606     <territory id="SL" countryCode="232" internationalPrefix="00"
20607                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
20608       <references>
20609         <sourceUrl>http://www.itu.int/oth/T02020000BB/en</sourceUrl>
20610       </references>
20611       <availableFormats>
20612         <!-- Following formatting of online yellow pages http://www.leonedirect.com -->
20613         <numberFormat pattern="(\d{2})(\d{6})">
20614           <format>$1 $2</format>
20615         </numberFormat>
20616       </availableFormats>
20617       <generalDesc>
20618         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
20619         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20620       </generalDesc>
20621       <fixedLine>
20622         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
20623         <exampleNumber>22221234</exampleNumber>
20624       </fixedLine>
20625       <mobile>
20626         <nationalNumberPattern>
20627           (?:
20628             2[15]|
20629             3[034]|
20630             4[04]|
20631             5[05]|
20632             7[6-9]|
20633             88
20634           )\d{6}
20635         </nationalNumberPattern>
20636         <exampleNumber>25123456</exampleNumber>
20637       </mobile>
20638     </territory>
20639
20640     <!-- San Marino -->
20641     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
20642          optional when dialling from outside the country; the phone number can be reached both with
20643          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
20644          are used to ensure that if the 0549 is not present, it will be added. -->
20645     <territory id="SM" countryCode="378" internationalPrefix="00"
20646                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
20647                leadingZeroPossible="true">
20648       <references>
20649         <sourceUrl>http://www.itu.int/oth/T02020000B5/en</sourceUrl>
20650         <!-- Information about Italy. -->
20651         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
20652         <sourceUrl>http://en.wikipedia.org/wiki/%2B378</sourceUrl>
20653       </references>
20654       <availableFormats>
20655         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
20656           <leadingDigits>[5-7]</leadingDigits>
20657           <format>$1 $2 $3 $4</format>
20658         </numberFormat>
20659         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
20660         <numberFormat pattern="(0549)(\d{6})">
20661           <leadingDigits>0</leadingDigits>
20662           <format>$1 $2</format>
20663           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
20664                formatting in international format. -->
20665           <intlFormat>($1) $2</intlFormat>
20666         </numberFormat>
20667         <!-- A rule in case the number has been stored without the leading 0549 necessary for
20668              fixed-lines. -->
20669         <numberFormat pattern="(\d{6})">
20670           <leadingDigits>[89]</leadingDigits>
20671           <format>0549 $1</format>
20672           <intlFormat>(0549) $1</intlFormat>
20673         </numberFormat>
20674       </availableFormats>
20675       <generalDesc>
20676         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
20677         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
20678       </generalDesc>
20679       <!-- Example numbers provided by the Telecommunications Services. -->
20680       <fixedLine>
20681         <nationalNumberPattern>
20682           0549(?:
20683             8[0157-9]|
20684             9\d
20685           )\d{4}
20686         </nationalNumberPattern>
20687         <exampleNumber>0549886377</exampleNumber>
20688       </fixedLine>
20689       <mobile>
20690         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
20691         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20692         <exampleNumber>66661212</exampleNumber>
20693       </mobile>
20694       <premiumRate>
20695         <!-- Includes Video Call numbers. -->
20696         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
20697         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20698         <exampleNumber>71123456</exampleNumber>
20699       </premiumRate>
20700       <voip>
20701         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
20702         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20703         <exampleNumber>58001110</exampleNumber>
20704       </voip>
20705     </territory>
20706
20707     <!-- Senegal -->
20708     <territory id="SN" countryCode="221" internationalPrefix="00">
20709       <references>
20710         <sourceUrl>http://www.itu.int/oth/T02020000B8/en</sourceUrl>
20711         <sourceUrl>http://www.artpsenegal.net</sourceUrl>
20712       </references>
20713       <availableFormats>
20714         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
20715              the national numbering plan. -->
20716         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
20717           <leadingDigits>[379]</leadingDigits>
20718           <format>$1 $2 $3 $4</format>
20719         </numberFormat>
20720         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20721           <leadingDigits>8</leadingDigits>
20722           <format>$1 $2 $3 $4</format>
20723         </numberFormat>
20724       </availableFormats>
20725       <generalDesc>
20726         <nationalNumberPattern>[3789]\d{8}</nationalNumberPattern>
20727         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20728       </generalDesc>
20729       <fixedLine>
20730         <nationalNumberPattern>
20731           3(?:
20732             0(?:
20733               1[0-2]|
20734               80
20735             )|
20736             282|
20737             3(?:
20738               8[1-9]|
20739               9[3-9]
20740             )|
20741             611|
20742             90[1-5]
20743           )\d{5}
20744         </nationalNumberPattern>
20745         <exampleNumber>301012345</exampleNumber>
20746       </fixedLine>
20747       <mobile>
20748         <nationalNumberPattern>
20749           7(?:
20750             [067]\d|
20751             21|
20752             8[0-26]|
20753             90
20754           )\d{6}
20755         </nationalNumberPattern>
20756         <exampleNumber>701234567</exampleNumber>
20757       </mobile>
20758       <tollFree>
20759         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20760         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20761         <exampleNumber>800123456</exampleNumber>
20762       </tollFree>
20763       <premiumRate>
20764         <!-- Revenu Partagé in the plan. -->
20765         <nationalNumberPattern>88[4689]\d{6}</nationalNumberPattern>
20766         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20767         <exampleNumber>884123456</exampleNumber>
20768       </premiumRate>
20769       <sharedCost>
20770         <nationalNumberPattern>81[02468]\d{6}</nationalNumberPattern>
20771         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20772         <exampleNumber>810123456</exampleNumber>
20773       </sharedCost>
20774       <voip>
20775         <!-- Also covers satellite telephony ranges. -->
20776         <nationalNumberPattern>
20777           3392\d{5}|
20778           93330\d{4}
20779         </nationalNumberPattern>
20780         <exampleNumber>933301234</exampleNumber>
20781       </voip>
20782     </territory>
20783
20784     <!-- Somalia -->
20785     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
20786          information available, and the numerous telecom carriers were previously working under an
20787          unregulated environment. The extra prefixes were added from the contact phone numbers of
20788          the countries main telecom operators. We also have received information that a national
20789          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
20790          for some operators, so that is included here although we do not use it when formatting. -->
20791     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
20792       <references>
20793         <sourceUrl>http://www.itu.int/oth/T02020000C0/en</sourceUrl>
20794         <sourceUrl>http://en.wikipedia.org/wiki/+252</sourceUrl>
20795       </references>
20796       <availableFormats>
20797         <!-- These follow formats online, such as http://www.hortel.net/contact_us.html -->
20798         <numberFormat pattern="(\d)(\d{6})">
20799           <leadingDigits>
20800             2[0-79]|
20801             [13-5]
20802           </leadingDigits>
20803           <format>$1 $2</format>
20804         </numberFormat>
20805         <numberFormat pattern="(\d)(\d{7})">
20806           <leadingDigits>
20807             24|
20808             [67]
20809           </leadingDigits>
20810           <format>$1 $2</format>
20811         </numberFormat>
20812         <numberFormat pattern="(\d{2})(\d{5,7})">
20813           <leadingDigits>
20814             15|
20815             28|
20816             6[1378]
20817           </leadingDigits>
20818           <format>$1 $2</format>
20819         </numberFormat>
20820         <numberFormat pattern="(69\d)(\d{6})">
20821           <leadingDigits>69</leadingDigits>
20822           <format>$1 $2</format>
20823         </numberFormat>
20824         <numberFormat pattern="(90\d)(\d{3})(\d{3})">
20825           <leadingDigits>90</leadingDigits>
20826           <format>$1 $2 $3</format>
20827         </numberFormat>
20828       </availableFormats>
20829       <generalDesc>
20830         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
20831         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20832       </generalDesc>
20833       <fixedLine>
20834         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
20835              here since that is apparently used for mobile. -->
20836         <nationalNumberPattern>
20837           (?:
20838             1\d|
20839             2[0-79]|
20840             3[0-46-8]|
20841             4[0-7]|
20842             59
20843           )\d{5}
20844         </nationalNumberPattern>
20845         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20846         <exampleNumber>4012345</exampleNumber>
20847       </fixedLine>
20848       <mobile>
20849         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
20850              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
20851              Somtel. 6 followed by only 7 digits is used by Telecom. Note that in June 2014 many
20852              ranges were suspended by the government. 90\d{6} was listed as one of the ranges to be
20853              suspended, but open-source contributors confirm that 907\d{6} is still in use, even if
20854              the shorter 90 ranges are no longer. -->
20855         <nationalNumberPattern>
20856           (?:
20857             15\d|
20858             2(?:
20859               4\d|
20860               8
20861             )|
20862             6[137-9]?\d{2}|
20863             7[1-9]\d|
20864             907\d
20865           )\d{5}
20866         </nationalNumberPattern>
20867         <exampleNumber>71123456</exampleNumber>
20868       </mobile>
20869     </territory>
20870
20871     <!-- Suriname -->
20872     <territory id="SR" countryCode="597" internationalPrefix="00">
20873       <references>
20874         <sourceUrl>http://www.itu.int/oth/T02020000C5/en</sourceUrl>
20875       </references>
20876       <availableFormats>
20877         <!-- Following conventions used in the Suriname Yellow Pages. -->
20878         <numberFormat pattern="(\d{3})(\d{3})">
20879           <leadingDigits>
20880             [2-4]|
20881             5[2-58]
20882           </leadingDigits>
20883           <format>$1-$2</format>
20884         </numberFormat>
20885         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
20886           <leadingDigits>56</leadingDigits>
20887           <format>$1-$2-$3</format>
20888         </numberFormat>
20889         <numberFormat pattern="(\d{3})(\d{4})">
20890           <leadingDigits>
20891             59|
20892             [6-8]
20893           </leadingDigits>
20894           <format>$1-$2</format>
20895         </numberFormat>
20896       </availableFormats>
20897       <generalDesc>
20898         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
20899         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20900       </generalDesc>
20901       <fixedLine>
20902         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
20903         <nationalNumberPattern>
20904           (?:
20905             2[1-3]|
20906             3[0-7]|
20907             4\d|
20908             5[2-58]|
20909             68\d
20910           )\d{4}
20911         </nationalNumberPattern>
20912         <exampleNumber>211234</exampleNumber>
20913       </fixedLine>
20914       <mobile>
20915         <nationalNumberPattern>
20916           (?:
20917             7[124-7]|
20918             8[1-9]
20919           )\d{5}
20920         </nationalNumberPattern>
20921         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20922         <exampleNumber>7412345</exampleNumber>
20923       </mobile>
20924       <voip>
20925         <nationalNumberPattern>
20926           5(?:
20927             6\d{4}|
20928             90[0-4]\d{3}
20929           )
20930         </nationalNumberPattern>
20931         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20932         <exampleNumber>561234</exampleNumber>
20933       </voip>
20934     </territory>
20935
20936     <!-- South Sudan -->
20937     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
20938       <references>
20939         <sourceUrl>http://www.itu.int/oth/T02020000F9/en</sourceUrl>
20940         <sourceUrl>http://en.wikipedia.org/wiki/+211</sourceUrl>
20941       </references>
20942       <availableFormats>
20943         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
20944           <format>$1 $2 $3</format>
20945         </numberFormat>
20946       </availableFormats>
20947       <generalDesc>
20948         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
20949         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20950       </generalDesc>
20951       <fixedLine>
20952         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
20953         <exampleNumber>181234567</exampleNumber>
20954       </fixedLine>
20955       <mobile>
20956         <nationalNumberPattern>
20957           (?:
20958             12|
20959             9[1257]
20960           )\d{7}
20961         </nationalNumberPattern>
20962         <exampleNumber>977123456</exampleNumber>
20963       </mobile>
20964     </territory>
20965
20966     <!-- Sao Tome and Principe -->
20967     <territory id="ST" countryCode="239" internationalPrefix="00">
20968       <references>
20969         <sourceUrl>http://www.itu.int/oth/T02020000B6/en</sourceUrl>
20970       </references>
20971       <availableFormats>
20972         <numberFormat pattern="(\d{3})(\d{4})">
20973           <format>$1 $2</format>
20974         </numberFormat>
20975       </availableFormats>
20976       <generalDesc>
20977         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
20978         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20979       </generalDesc>
20980       <fixedLine>
20981         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
20982         <exampleNumber>2221234</exampleNumber>
20983       </fixedLine>
20984       <mobile>
20985         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
20986         <exampleNumber>9812345</exampleNumber>
20987       </mobile>
20988     </territory>
20989
20990     <!-- El Salvador -->
20991     <territory id="SV" countryCode="503" internationalPrefix="00">
20992       <references>
20993         <sourceUrl>http://www.itu.int/oth/T020200003F/en</sourceUrl>
20994         <sourceUrl>http://www.siget.gob.sv/BusquedaPublica.aspx?pagina=3&amp;tipo=27&amp;titulo=t8&amp;sector=2&amp;ordenar=&amp;dir=DESC</sourceUrl>
20995       </references>
20996       <availableFormats>
20997         <numberFormat pattern="(\d{4})(\d{4})">
20998           <leadingDigits>[267]</leadingDigits>
20999           <format>$1 $2</format>
21000         </numberFormat>
21001         <numberFormat pattern="(\d{3})(\d{4})">
21002           <leadingDigits>[89]</leadingDigits>
21003           <format>$1 $2</format>
21004         </numberFormat>
21005         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
21006           <leadingDigits>[89]</leadingDigits>
21007           <format>$1 $2 $3</format>
21008         </numberFormat>
21009       </availableFormats>
21010       <generalDesc>
21011         <nationalNumberPattern>
21012           [267]\d{7}|
21013           [89]\d{6}(?:\d{4})?
21014         </nationalNumberPattern>
21015         <possibleNumberPattern>
21016           \d{7,8}|
21017           \d{11}
21018         </possibleNumberPattern>
21019       </generalDesc>
21020       <fixedLine>
21021         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
21022         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
21023         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21024         <exampleNumber>21234567</exampleNumber>
21025       </fixedLine>
21026       <mobile>
21027         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
21028         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21029         <exampleNumber>70123456</exampleNumber>
21030       </mobile>
21031       <tollFree>
21032         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
21033         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
21034         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21035         <exampleNumber>8001234</exampleNumber>
21036       </tollFree>
21037       <premiumRate>
21038         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
21039         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
21040         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21041         <exampleNumber>9001234</exampleNumber>
21042       </premiumRate>
21043     </territory>
21044
21045     <!-- Sint Maarten -->
21046     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
21047                internationalPrefix="011">
21048       <references>
21049         <sourceUrl>http://www.nanpa.com/pdf/PL_429.pdf</sourceUrl>
21050         <sourceUrl>http://www.itu.int/oth/T02020000F7/en</sourceUrl>
21051       </references>
21052       <generalDesc>
21053         <!-- NANPA country - uses US formatting rules -->
21054         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
21055         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21056       </generalDesc>
21057       <fixedLine>
21058         <nationalNumberPattern>
21059           7215(?:
21060             4[2-8]|
21061             8[239]|
21062             9[056]
21063           )\d{4}
21064         </nationalNumberPattern>
21065         <exampleNumber>7215425678</exampleNumber>
21066       </fixedLine>
21067       <mobile>
21068         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
21069              include these as mobile numbers. -->
21070         <nationalNumberPattern>
21071           7215(?:
21072             1[02]|
21073             2\d|
21074             5[034679]|
21075             8[014-8]
21076           )\d{4}
21077         </nationalNumberPattern>
21078         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21079         <exampleNumber>7215205678</exampleNumber>
21080       </mobile>
21081       <tollFree>
21082         <nationalNumberPattern>
21083           8(?:
21084             00|
21085             44|
21086             55|
21087             66|
21088             77|
21089             88
21090           )[2-9]\d{6}
21091         </nationalNumberPattern>
21092         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21093         <exampleNumber>8002123456</exampleNumber>
21094       </tollFree>
21095       <premiumRate>
21096         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21097         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21098         <exampleNumber>9002123456</exampleNumber>
21099       </premiumRate>
21100       <personalNumber>
21101         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21102         <nationalNumberPattern>
21103           5(?:
21104             00|
21105             33|
21106             44|
21107             66|
21108             77
21109           )[2-9]\d{6}
21110         </nationalNumberPattern>
21111         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21112         <exampleNumber>5002345678</exampleNumber>
21113       </personalNumber>
21114     </territory>
21115
21116     <!-- Syrian Arab Republic -->
21117     <territory id="SY" countryCode="963" internationalPrefix="00"
21118                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21119                nationalPrefixOptionalWhenFormatting="true">
21120       <references>
21121         <sourceUrl>http://www.itu.int/oth/T02020000C9/en</sourceUrl>
21122         <sourceUrl>http://en.wikipedia.org/wiki/%2B963</sourceUrl>
21123       </references>
21124       <availableFormats>
21125         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
21126           <leadingDigits>[1-5]</leadingDigits>
21127           <format>$1 $2 $3</format>
21128         </numberFormat>
21129         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
21130           <leadingDigits>9</leadingDigits>
21131           <format>$1 $2 $3</format>
21132         </numberFormat>
21133       </availableFormats>
21134       <generalDesc>
21135         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
21136         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
21137       </generalDesc>
21138       <fixedLine>
21139       <!-- Numbers with the 21 prefix are made optionally 1-digit longer based on numbers found on
21140            the Internet. -->
21141         <nationalNumberPattern>
21142           (?:
21143             1(?:
21144               1\d?|
21145               4\d|
21146               [2356]
21147             )|
21148             2(?:
21149               1\d?|
21150               [235]
21151             )|
21152             3(?:
21153               [13]\d|
21154               4
21155             )|
21156             4[13]|
21157             5[1-3]
21158           )\d{6}
21159         </nationalNumberPattern>
21160         <exampleNumber>112345678</exampleNumber>
21161       </fixedLine>
21162       <mobile>
21163         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
21164              95[138], and 96[05]. -->
21165         <nationalNumberPattern>
21166           9(?:
21167             22|
21168             [35][0-8]|
21169             4\d|
21170             6[024-9]|
21171             88|
21172             9[0-489]
21173           )\d{6}
21174         </nationalNumberPattern>
21175         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21176         <exampleNumber>944567890</exampleNumber>
21177       </mobile>
21178       <!-- No tollFree or premiumRate information can be found. -->
21179     </territory>
21180
21181     <!-- Swaziland -->
21182     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
21183       <references>
21184         <sourceUrl>http://www.itu.int/oth/T02020000C6/en</sourceUrl>
21185       </references>
21186       <availableFormats>
21187         <numberFormat pattern="(\d{4})(\d{4})">
21188           <leadingDigits>[027]</leadingDigits>
21189           <format>$1 $2</format>
21190         </numberFormat>
21191       </availableFormats>
21192       <generalDesc>
21193         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
21194         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21195       </generalDesc>
21196       <noInternationalDialling>
21197         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21198         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21199         <exampleNumber>08001234</exampleNumber>
21200       </noInternationalDialling>
21201       <fixedLine>
21202         <nationalNumberPattern>
21203           2(?:
21204             2(?:
21205               0[07]|
21206               [13]7|
21207               2[57]
21208             )|
21209             3(?:
21210               0[34]|
21211               [1278]3|
21212               3[23]|
21213               [46][34]
21214             )|
21215             (?:
21216               40[4-69]|
21217               67
21218             )|
21219             5(?:
21220               0[5-7]|
21221               1[6-9]|
21222               [23][78]|
21223               48|
21224               5[01]
21225             )
21226           )\d{4}
21227         </nationalNumberPattern>
21228         <exampleNumber>22171234</exampleNumber>
21229       </fixedLine>
21230       <mobile>
21231         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
21232         <exampleNumber>76123456</exampleNumber>
21233       </mobile>
21234       <tollFree>
21235         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21236         <exampleNumber>08001234</exampleNumber>
21237       </tollFree>
21238     </territory>
21239
21240     <!-- Tristan da Cunha -->
21241     <territory id="TA" countryCode="290" internationalPrefix="00">
21242       <references>
21243         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
21244       </references>
21245       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
21246       <generalDesc>
21247         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21248         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21249       </generalDesc>
21250       <fixedLine>
21251         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21252         <exampleNumber>8999</exampleNumber>
21253       </fixedLine>
21254       <mobile>
21255         <nationalNumberPattern>NA</nationalNumberPattern>
21256         <possibleNumberPattern>NA</possibleNumberPattern>
21257       </mobile>
21258     </territory>
21259
21260     <!-- Turks and Caicos Islands -->
21261     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
21262                internationalPrefix="011">
21263       <references>
21264         <sourceUrl>http://www.itu.int/oth/T02020000D8/en</sourceUrl>
21265       </references>
21266       <generalDesc>
21267         <!-- NANPA country - uses US formatting rules -->
21268         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
21269         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21270       </generalDesc>
21271       <fixedLine>
21272         <nationalNumberPattern>
21273           649(?:
21274             712|
21275             9(?:
21276               4\d|
21277               50
21278             )
21279           )\d{4}
21280         </nationalNumberPattern>
21281         <exampleNumber>6497121234</exampleNumber>
21282       </fixedLine>
21283       <mobile>
21284         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
21285         <nationalNumberPattern>
21286           649(?:
21287             2(?:
21288               3[129]|
21289               4[1-7]
21290             )|
21291             3(?:
21292               3[1-389]|
21293               4[1-7]
21294             )|
21295             4[34][1-3]
21296           )\d{4}
21297         </nationalNumberPattern>
21298         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21299         <exampleNumber>6492311234</exampleNumber>
21300       </mobile>
21301       <tollFree>
21302         <nationalNumberPattern>
21303           8(?:
21304             00|
21305             44|
21306             55|
21307             66|
21308             77|
21309             88
21310           )[2-9]\d{6}
21311         </nationalNumberPattern>
21312         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21313         <exampleNumber>8002345678</exampleNumber>
21314       </tollFree>
21315       <premiumRate>
21316         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21317         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21318         <exampleNumber>9002345678</exampleNumber>
21319       </premiumRate>
21320       <personalNumber>
21321         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21322         <nationalNumberPattern>
21323           5(?:
21324             00|
21325             33|
21326             44|
21327             66|
21328             77
21329           )[2-9]\d{6}
21330         </nationalNumberPattern>
21331         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21332         <exampleNumber>5002345678</exampleNumber>
21333       </personalNumber>
21334       <voip>
21335         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
21336         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21337         <exampleNumber>6497101234</exampleNumber>
21338       </voip>
21339     </territory>
21340
21341     <!-- Chad -->
21342     <!-- The international prefix includes 16 as the international manual exchange. -->
21343     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
21344                internationalPrefix="00|16">
21345       <references>
21346         <sourceUrl>http://www.itu.int/oth/T0202000029/en</sourceUrl>
21347       </references>
21348       <availableFormats>
21349         <numberFormat
21350           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21351           <format>$1 $2 $3 $4</format>
21352         </numberFormat>
21353       </availableFormats>
21354       <generalDesc>
21355         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
21356         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21357       </generalDesc>
21358       <fixedLine>
21359         <nationalNumberPattern>
21360           22(?:
21361             [3789]0|
21362             5[0-5]|
21363             6[89]
21364           )\d{4}
21365         </nationalNumberPattern>
21366         <exampleNumber>22501234</exampleNumber>
21367       </fixedLine>
21368       <mobile>
21369         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
21370              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
21371              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
21372         <nationalNumberPattern>
21373           (?:
21374             6[02368]\d|
21375             77\d|
21376             9(?:
21377               5[0-4]|
21378               9\d
21379             )
21380           )\d{5}
21381         </nationalNumberPattern>
21382         <exampleNumber>63012345</exampleNumber>
21383       </mobile>
21384     </territory>
21385
21386     <!-- French Southern Territories -->
21387     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
21388     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
21389          temporary inhabitants. -->
21390
21391     <!-- Togo -->
21392     <territory id="TG" countryCode="228" internationalPrefix="00">
21393       <references>
21394         <sourceUrl>http://www.itu.int/oth/T02020000D1/en</sourceUrl>
21395       </references>
21396       <availableFormats>
21397         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21398           <format>$1 $2 $3 $4</format>
21399         </numberFormat>
21400       </availableFormats>
21401       <generalDesc>
21402         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
21403         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21404       </generalDesc>
21405       <fixedLine>
21406         <nationalNumberPattern>
21407           2(?:
21408             2[2-7]|
21409             3[23]|
21410             44|
21411             55|
21412             66|
21413             77
21414           )\d{5}
21415         </nationalNumberPattern>
21416         <exampleNumber>22212345</exampleNumber>
21417       </fixedLine>
21418       <mobile>
21419         <nationalNumberPattern>9[0-289]\d{6}</nationalNumberPattern>
21420         <exampleNumber>90112345</exampleNumber>
21421       </mobile>
21422     </territory>
21423
21424     <!-- Thailand -->
21425     <territory id="TH" countryCode="66" internationalPrefix="00"
21426                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21427                mobileNumberPortableRegion="true">
21428       <references>
21429         <sourceUrl>http://www.itu.int/oth/T02020000CD/en</sourceUrl>
21430         <sourceUrl>http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf</sourceUrl>
21431       </references>
21432       <availableFormats>
21433         <!-- Formatting patterns from wikipedia and the document itself -
21434              http://en.wikipedia.org/wiki/%2B66 -->
21435         <numberFormat pattern="(2)(\d{3})(\d{4})">
21436           <leadingDigits>2</leadingDigits>
21437           <format>$1 $2 $3</format>
21438         </numberFormat>
21439         <numberFormat pattern="([3-9]\d)(\d{3})(\d{3,4})">
21440           <leadingDigits>[3-9]</leadingDigits>
21441           <format>$1 $2 $3</format>
21442         </numberFormat>
21443         <numberFormat nationalPrefixFormattingRule="$FG"
21444           pattern="(1[89]00)(\d{3})(\d{3})">
21445           <leadingDigits>1</leadingDigits>
21446           <format>$1 $2 $3</format>
21447         </numberFormat>
21448       </availableFormats>
21449       <generalDesc>
21450         <nationalNumberPattern>
21451           [2-9]\d{7,8}|
21452           1\d{3}(?:\d{6})?
21453         </nationalNumberPattern>
21454         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
21455       </generalDesc>
21456       <noInternationalDialling>
21457         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21458         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21459         <exampleNumber>1100</exampleNumber>
21460       </noInternationalDialling>
21461       <fixedLine>
21462         <!-- Numbers online have been found that start with 20, despite the ITU doc not covering
21463              these. -->
21464         <nationalNumberPattern>
21465           (?:
21466             2\d|
21467             3[2-9]|
21468             4[2-5]|
21469             5[2-6]|
21470             7[3-7]
21471           )\d{6}
21472         </nationalNumberPattern>
21473         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21474         <exampleNumber>21234567</exampleNumber>
21475       </fixedLine>
21476       <mobile>
21477         <nationalNumberPattern>
21478           (?:
21479             61|
21480             [89]\d
21481           )\d{7}
21482         </nationalNumberPattern>
21483         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21484         <exampleNumber>812345678</exampleNumber>
21485       </mobile>
21486       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
21487       <tollFree>
21488         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
21489         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21490         <exampleNumber>1800123456</exampleNumber>
21491       </tollFree>
21492       <premiumRate>
21493         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
21494         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21495         <exampleNumber>1900123456</exampleNumber>
21496       </premiumRate>
21497       <voip>
21498         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
21499              online to suggest they are actually used as mobile numbers. -->
21500         <nationalNumberPattern>6[08]\d{7}</nationalNumberPattern>
21501         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21502         <exampleNumber>601234567</exampleNumber>
21503       </voip>
21504       <uan>
21505         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
21506              their costs range from free to 6 Baht/min. -->
21507         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21508         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21509         <exampleNumber>1100</exampleNumber>
21510       </uan>
21511     </territory>
21512
21513     <!-- Tajikistan -->
21514     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
21515                internationalPrefix="810" nationalPrefix="8"
21516                nationalPrefixFormattingRule="($NP) $FG"
21517                nationalPrefixOptionalWhenFormatting="true">
21518       <references>
21519         <sourceUrl>http://www.itu.int/oth/T02020000CA/en</sourceUrl>
21520       </references>
21521       <availableFormats>
21522         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
21523           <leadingDigits>
21524             [34]7|
21525             91[78]
21526           </leadingDigits>
21527           <format>$1 $2 $3</format>
21528         </numberFormat>
21529         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
21530           <leadingDigits>
21531             4[48]|
21532             5|
21533             9(?:
21534               1[59]|
21535               [0235-9]
21536             )
21537           </leadingDigits>
21538           <format>$1 $2 $3</format>
21539         </numberFormat>
21540         <numberFormat pattern="(331700)(\d)(\d{2})">
21541           <leadingDigits>331</leadingDigits>
21542           <leadingDigits>3317</leadingDigits>
21543           <leadingDigits>33170</leadingDigits>
21544           <leadingDigits>331700</leadingDigits>
21545           <format>$1 $2 $3</format>
21546         </numberFormat>
21547         <numberFormat pattern="(\d{4})(\d)(\d{4})">
21548           <leadingDigits>3[1-5]</leadingDigits>
21549           <leadingDigits>
21550             3(?:
21551               [1245]|
21552               3(?:
21553                 [02-9]|
21554                 1[0-589]
21555               )
21556             )
21557           </leadingDigits>
21558           <format>$1 $2 $3</format>
21559         </numberFormat>
21560       </availableFormats>
21561       <generalDesc>
21562         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
21563         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
21564       </generalDesc>
21565       <fixedLine>
21566         <nationalNumberPattern>
21567           (?:
21568             3(?:
21569               1[3-5]|
21570               2[245]|
21571               3[12]|
21572               4[24-7]|
21573               5[25]|
21574               72
21575             )|
21576             4(?:
21577               46|
21578               74|
21579               87
21580             )
21581           )\d{6}
21582         </nationalNumberPattern>
21583         <exampleNumber>372123456</exampleNumber>
21584       </fixedLine>
21585       <mobile>
21586         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
21587              numbers, and 50[12] for TCell from bug reports. -->
21588         <nationalNumberPattern>
21589           (?:
21590             50[125]|
21591             9[0-35-9]\d
21592           )\d{6}
21593         </nationalNumberPattern>
21594         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21595         <exampleNumber>917123456</exampleNumber>
21596       </mobile>
21597       <!-- No tollFree or premiumRate information can be found. -->
21598     </territory>
21599
21600     <!-- Tokelau -->
21601     <territory id="TK" countryCode="690" internationalPrefix="00">
21602       <references>
21603         <sourceUrl>http://www.itu.int/oth/T02020000D2/en</sourceUrl>
21604       </references>
21605       <generalDesc>
21606         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
21607         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21608       </generalDesc>
21609       <fixedLine>
21610         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
21611         <!-- The example number is the contact number from the ITU document. -->
21612         <exampleNumber>3010</exampleNumber>
21613       </fixedLine>
21614       <mobile>
21615         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
21616         <exampleNumber>5190</exampleNumber>
21617       </mobile>
21618     </territory>
21619
21620     <!-- Timor-Leste (East Timor) -->
21621     <territory id="TL" countryCode="670" internationalPrefix="00">
21622       <references>
21623         <sourceUrl>http://www.itu.int/oth/T02020000D0/en</sourceUrl>
21624       </references>
21625       <availableFormats>
21626         <numberFormat pattern="(\d{3})(\d{4})">
21627           <leadingDigits>[2-489]</leadingDigits>
21628           <format>$1 $2</format>
21629         </numberFormat>
21630         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
21631              them. If we see another pattern being used, we should change this later. -->
21632         <numberFormat pattern="(\d{4})(\d{4})">
21633           <leadingDigits>7</leadingDigits>
21634           <format>$1 $2</format>
21635         </numberFormat>
21636       </availableFormats>
21637       <generalDesc>
21638         <nationalNumberPattern>
21639           [2-489]\d{6}|
21640           7\d{6,7}
21641         </nationalNumberPattern>
21642         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
21643       </generalDesc>
21644       <fixedLine>
21645         <nationalNumberPattern>
21646           (?:
21647             2[1-5]|
21648             3[1-9]|
21649             4[1-4]
21650           )\d{5}
21651         </nationalNumberPattern>
21652         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21653         <exampleNumber>2112345</exampleNumber>
21654       </fixedLine>
21655       <mobile>
21656         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
21657         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21658         <exampleNumber>77212345</exampleNumber>
21659       </mobile>
21660       <tollFree>
21661         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
21662         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21663         <exampleNumber>8012345</exampleNumber>
21664       </tollFree>
21665       <premiumRate>
21666         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
21667         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21668         <exampleNumber>9012345</exampleNumber>
21669       </premiumRate>
21670       <!-- We don't include paging or voicemail because the identified paging range was used by
21671            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
21672            numbers, or if the range was indeed previously used for voicemail at all. -->
21673       <personalNumber>
21674         <!-- We presume this wasn't affected by the numbering plan update. -->
21675         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
21676         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21677         <exampleNumber>7012345</exampleNumber>
21678       </personalNumber>
21679     </territory>
21680
21681     <!-- Turkmenistan -->
21682     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
21683                internationalPrefix="810" nationalPrefix="8"
21684                nationalPrefixFormattingRule="($NP $FG)">
21685       <references>
21686         <sourceUrl>http://www.itu.int/oth/T02020000D7/en</sourceUrl>
21687         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan</sourceUrl>
21688       </references>
21689       <availableFormats>
21690         <!-- There doesn't seem to be a standardized format. The format below is based on the
21691              Turkmenistan embassy at
21692              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
21693           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21694             <leadingDigits>12</leadingDigits>
21695             <format>$1 $2-$3-$4</format>
21696           </numberFormat>
21697           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
21698             <leadingDigits>6</leadingDigits>
21699             <format>$1 $2</format>
21700           </numberFormat>
21701           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
21702             <leadingDigits>
21703               13|
21704               [2-5]
21705             </leadingDigits>
21706             <format>$1 $2-$3-$4</format>
21707           </numberFormat>
21708       </availableFormats>
21709       <generalDesc>
21710         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
21711         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21712       </generalDesc>
21713       <fixedLine>
21714         <!-- Additional prefixes from the wikipedia page. -->
21715         <nationalNumberPattern>
21716           (?:
21717             1(?:
21718               2\d|
21719               3[1-9]
21720             )|
21721             2(?:
21722               22|
21723               4[0-35-8]
21724             )|
21725             3(?:
21726               22|
21727               4[03-9]
21728             )|
21729             4(?:
21730               22|
21731               3[128]|
21732               4\d|
21733               6[15]
21734             )|
21735             5(?:
21736               22|
21737               5[7-9]|
21738               6[014-689]
21739             )
21740           )\d{5}
21741         </nationalNumberPattern>
21742         <exampleNumber>12345678</exampleNumber>
21743       </fixedLine>
21744       <mobile>
21745         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
21746              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
21747              has been suspended. It is unclear whether it will resume. We support both ranges in the
21748              meantime. The range 62 seems also now to be in use, according to numbers found online.
21749              -->
21750         <nationalNumberPattern>6[2-8]\d{6}</nationalNumberPattern>
21751         <exampleNumber>66123456</exampleNumber>
21752       </mobile>
21753       <!-- No tollFree or premiumRate information can be found. -->
21754     </territory>
21755
21756     <!-- Tunisia -->
21757     <territory id="TN" countryCode="216" internationalPrefix="00">
21758       <references>
21759         <sourceUrl>http://www.itu.int/oth/T02020000D5/en</sourceUrl>
21760         <sourceUrl>http://www.tunisietelecom.tn/tt/wcm/connect/?MOD=PDMProxy&amp;TYPE=personalization&amp;ID=NONE&amp;KEY=NONE&amp;LIBRARY=%2FcontentRoot%2Ficm%3Alibraries%5B16%5D&amp;FOLDER=%2F&amp;DOC_NAME=%2FcontentRoot%2Ficm%3Alibraries%5B16%5D%2FOTTI+2011.pdf</sourceUrl>
21761         <sourceUrl>http://www.tunisietelecom.tn/tt/internet/fr/pme/fixe/numeros_acceuil</sourceUrl>
21762       </references>
21763       <availableFormats>
21764         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
21765           <format>$1 $2 $3</format>
21766         </numberFormat>
21767       </availableFormats>
21768       <generalDesc>
21769         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
21770         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21771       </generalDesc>
21772       <fixedLine>
21773         <!-- 3[012] numbers are no longer listed in the ITU doc, but we support them based on
21774              online searches. -->
21775         <nationalNumberPattern>
21776           3[012]\d{6}|
21777           7\d{7}|
21778           81200\d{3}
21779         </nationalNumberPattern>
21780         <exampleNumber>71234567</exampleNumber>
21781       </fixedLine>
21782       <mobile>
21783         <!-- Numbers starting with 5 are no longer listed in the ITU doc, but we support them based
21784              on online searches and Wikipedia. -->
21785         <nationalNumberPattern>
21786           (?:
21787             [259]\d|
21788             4[0-24]
21789           )\d{6}
21790         </nationalNumberPattern>
21791         <exampleNumber>20123456</exampleNumber>
21792       </mobile>
21793       <tollFree>
21794         <!-- ITU lists 80 xx xx xx, but the document published by Tunisie Telecom has more specific
21795              information which is followed here. -->
21796         <nationalNumberPattern>8010\d{4}</nationalNumberPattern>
21797         <exampleNumber>80101234</exampleNumber>
21798       </tollFree>
21799       <premiumRate>
21800         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
21801         <exampleNumber>88123456</exampleNumber>
21802       </premiumRate>
21803       <sharedCost>
21804         <!-- 8110xxxx numbers are listed as being "discounted non-geographical numbers" and are put
21805              here for now. In the future we might consider them as UAN.
21806              ITU lists 82 xx xx xx, but the document published by Tunisie Telecom has more specific
21807              information which is followed here. -->
21808         <nationalNumberPattern>8[12]10\d{4}</nationalNumberPattern>
21809         <exampleNumber>81101234</exampleNumber>
21810       </sharedCost>
21811     </territory>
21812
21813     <!-- Tonga -->
21814     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
21815       <references>
21816         <sourceUrl>http://www.itu.int/oth/T02020000D3/en</sourceUrl>
21817         <sourceUrl>http://www.wtng.info/wtng-676-to.html</sourceUrl>
21818       </references>
21819       <availableFormats>
21820         <numberFormat pattern="(\d{2})(\d{3})">
21821           <leadingDigits>
21822             [1-6]|
21823             7[0-4]|
21824             8[05]
21825           </leadingDigits>
21826           <format>$1-$2</format>
21827         </numberFormat>
21828         <numberFormat pattern="(\d{3})(\d{4})">
21829           <leadingDigits>
21830             7[5-9]|
21831             8[7-9]
21832           </leadingDigits>
21833           <format>$1 $2</format>
21834         </numberFormat>
21835         <numberFormat pattern="(\d{4})(\d{3})">
21836           <leadingDigits>0</leadingDigits>
21837           <format>$1 $2</format>
21838         </numberFormat>
21839       </availableFormats>
21840       <generalDesc>
21841         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
21842         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
21843       </generalDesc>
21844       <fixedLine>
21845         <nationalNumberPattern>
21846           (?:
21847             2\d|
21848             3[1-8]|
21849             4[1-4]|
21850             [56]0|
21851             7[0149]|
21852             8[05]
21853           )\d{3}
21854         </nationalNumberPattern>
21855         <possibleNumberPattern>\d{5}</possibleNumberPattern>
21856         <exampleNumber>20123</exampleNumber>
21857       </fixedLine>
21858       <mobile>
21859         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
21860              in their ITU document. Numbers with a prefix of "75" have also been found. -->
21861         <nationalNumberPattern>
21862           (?:
21863             7[578]|
21864             8[7-9]
21865           )\d{5}
21866         </nationalNumberPattern>
21867         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21868         <exampleNumber>7715123</exampleNumber>
21869       </mobile>
21870       <tollFree>
21871         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
21872         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21873         <exampleNumber>0800222</exampleNumber>
21874       </tollFree>
21875     </territory>
21876
21877     <!-- Turkey -->
21878     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0"
21879                mobileNumberPortableRegion="true">
21880       <references>
21881         <sourceUrl>http://en.wikipedia.org/wiki/%2B90</sourceUrl>
21882         <sourceUrl>http://www.itu.int/oth/T02020000D6/en</sourceUrl>
21883       </references>
21884       <availableFormats>
21885         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
21886           nationalPrefixOptionalWhenFormatting="true">
21887           <leadingDigits>
21888             [23]|
21889             4(?:
21890               [0-35-9]|
21891               4[0-35-9]
21892             )
21893           </leadingDigits>
21894           <format>$1 $2 $3</format>
21895         </numberFormat>
21896         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
21897           nationalPrefixOptionalWhenFormatting="true">
21898           <leadingDigits>[589]</leadingDigits>
21899           <format>$1 $2 $3</format>
21900         </numberFormat>
21901         <numberFormat pattern="(444)(\d{1})(\d{3})">
21902           <leadingDigits>444</leadingDigits>
21903           <format>$1 $2 $3</format>
21904         </numberFormat>
21905       </availableFormats>
21906       <generalDesc>
21907         <nationalNumberPattern>
21908           [2-589]\d{9}|
21909           444\d{4}
21910         </nationalNumberPattern>
21911         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21912       </generalDesc>
21913       <noInternationalDialling>
21914         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
21915         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21916         <exampleNumber>4441444</exampleNumber>
21917       </noInternationalDialling>
21918       <fixedLine>
21919         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
21920         <nationalNumberPattern>
21921           (?:
21922             2(?:
21923               [13][26]|
21924               [28][2468]|
21925               [45][268]|
21926               [67][246]
21927             )|
21928             3(?:
21929               [13][28]|
21930               [24-6][2468]|
21931               [78][02468]|
21932               92
21933             )|
21934             4(?:
21935               [16][246]|
21936               [23578][2468]|
21937               4[26]
21938             )
21939           )\d{7}
21940         </nationalNumberPattern>
21941         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21942         <exampleNumber>2123456789</exampleNumber>
21943       </fixedLine>
21944       <mobile>
21945         <!-- There are some differences between the Turkish and English wikipedia pages here, and
21946              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
21947              509 from the English page because of this. -->
21948         <nationalNumberPattern>
21949           5(?:
21950             0[1-7]|
21951             22|
21952             [34]\d|
21953             5[1-59]|
21954             9[246]
21955           )\d{7}
21956         </nationalNumberPattern>
21957         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21958         <exampleNumber>5012345678</exampleNumber>
21959       </mobile>
21960       <pager>
21961         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
21962         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21963         <exampleNumber>5123456789</exampleNumber>
21964       </pager>
21965       <tollFree>
21966         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
21967         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21968         <exampleNumber>8001234567</exampleNumber>
21969       </tollFree>
21970       <premiumRate>
21971         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
21972         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21973         <exampleNumber>9001234567</exampleNumber>
21974       </premiumRate>
21975       <uan>
21976         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
21977         <nationalNumberPattern>
21978           444\d{4}|
21979           850\d{7}
21980         </nationalNumberPattern>
21981         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21982         <exampleNumber>4441444</exampleNumber>
21983       </uan>
21984     </territory>
21985
21986     <!-- Trinidad and Tobago -->
21987     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
21988                internationalPrefix="011">
21989       <references>
21990         <sourceUrl>http://www.itu.int/oth/T02020000D4/en</sourceUrl>
21991       </references>
21992       <generalDesc>
21993         <!-- NANPA country - uses US formatting rules -->
21994         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
21995         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21996       </generalDesc>
21997       <fixedLine>
21998         <nationalNumberPattern>
21999           868(?:
22000             2(?:
22001               01|
22002               2[1-5]
22003             )|
22004             6(?:
22005               0[79]|
22006               1[02-9]|
22007               2[1-9]|
22008               [3-69]\d|
22009               7[0-79]
22010             )|
22011             82[124]
22012           )\d{4}
22013         </nationalNumberPattern>
22014         <exampleNumber>8682211234</exampleNumber>
22015       </fixedLine>
22016       <mobile>
22017         <nationalNumberPattern>
22018           868(?:
22019             2(?:
22020               [89]\d
22021             )|
22022             3(?:
22023               0[1-9]|
22024               1[02-9]|
22025               [2-9]\d
22026             )|
22027             4[6-9]\d|
22028             6(?:
22029               20|
22030               78|
22031               8\d
22032             )|
22033             7(?:
22034               0[1-9]|
22035               1[02-9]|
22036               [2-9]\d
22037             )
22038           )\d{4}
22039         </nationalNumberPattern>
22040         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22041         <exampleNumber>8682911234</exampleNumber>
22042       </mobile>
22043       <tollFree>
22044         <nationalNumberPattern>
22045           8(?:
22046             00|
22047             44|
22048             55|
22049             66|
22050             77|
22051             88
22052           )[2-9]\d{6}
22053         </nationalNumberPattern>
22054         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22055         <exampleNumber>8002345678</exampleNumber>
22056       </tollFree>
22057       <premiumRate>
22058         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22059         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22060         <exampleNumber>9002345678</exampleNumber>
22061       </premiumRate>
22062       <personalNumber>
22063         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22064         <nationalNumberPattern>
22065           5(?:
22066             00|
22067             33|
22068             44|
22069             66|
22070             77
22071           )[2-9]\d{6}
22072         </nationalNumberPattern>
22073         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22074         <exampleNumber>5002345678</exampleNumber>
22075       </personalNumber>
22076     </territory>
22077
22078     <!-- Tuvalu -->
22079     <territory id="TV" countryCode="688" internationalPrefix="00">
22080       <references>
22081         <sourceUrl>http://www.itu.int/oth/T02020000D9/en</sourceUrl>
22082         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu</sourceUrl>
22083       </references>
22084       <!-- Numbers are formatted as a block. -->
22085       <generalDesc>
22086         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
22087         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
22088       </generalDesc>
22089       <fixedLine>
22090         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
22091         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22092         <exampleNumber>20123</exampleNumber>
22093       </fixedLine>
22094       <mobile>
22095         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
22096              don't know if these are valid or not - the ITU document excludes them - so are not
22097              covering these for now. -->
22098         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
22099         <possibleNumberPattern>\d{6}</possibleNumberPattern>
22100         <exampleNumber>901234</exampleNumber>
22101       </mobile>
22102     </territory>
22103
22104     <!-- Taiwan, China -->
22105     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
22106          chosen as the preferred extension prefix. -->
22107     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
22108                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG"
22109                mobileNumberPortableRegion="true">
22110       <references>
22111         <sourceUrl>http://www.itu.int/oth/T02020000EB/en</sourceUrl>
22112       </references>
22113       <availableFormats>
22114         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
22115           <leadingDigits>
22116             [2-6]|
22117             [78][1-9]
22118           </leadingDigits>
22119           <format>$1 $2 $3</format>
22120         </numberFormat>
22121         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
22122           <leadingDigits>
22123             80|
22124             9
22125           </leadingDigits>
22126           <format>$1 $2 $3</format>
22127         </numberFormat>
22128         <numberFormat pattern="(70)(\d{4})(\d{4})">
22129           <leadingDigits>70</leadingDigits>
22130           <format>$1 $2 $3</format>
22131         </numberFormat>
22132       </availableFormats>
22133       <generalDesc>
22134         <nationalNumberPattern>
22135           [2-689]\d{7,8}|
22136           7\d{7,9}
22137         </nationalNumberPattern>
22138         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
22139       </generalDesc>
22140       <fixedLine>
22141         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
22142         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22143         <exampleNumber>21234567</exampleNumber>
22144       </fixedLine>
22145       <mobile>
22146         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
22147         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22148         <exampleNumber>912345678</exampleNumber>
22149       </mobile>
22150       <tollFree>
22151         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22152         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22153         <exampleNumber>800123456</exampleNumber>
22154       </tollFree>
22155       <premiumRate>
22156         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22157         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22158         <exampleNumber>900123456</exampleNumber>
22159       </premiumRate>
22160       <!-- http://www.chief.com.tw/telecom_eng/front/bin/ptlist.phtml?Category=107 -->
22161       <voip>
22162         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
22163         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22164         <exampleNumber>7012345678</exampleNumber>
22165       </voip>
22166     </territory>
22167
22168     <!-- Tanzania -->
22169     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
22170                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22171       <references>
22172         <sourceUrl>http://www.itu.int/oth/T02020000CB/en</sourceUrl>
22173       </references>
22174       <availableFormats>
22175         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
22176           <leadingDigits>[24]</leadingDigits>
22177           <format>$1 $2 $3</format>
22178         </numberFormat>
22179         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
22180           <leadingDigits>[67]</leadingDigits>
22181           <format>$1 $2 $3</format>
22182         </numberFormat>
22183         <!-- Formatting for special numbers from http://www.tcra.go.tz -->
22184         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
22185           <leadingDigits>[89]</leadingDigits>
22186           <format>$1 $2 $3</format>
22187         </numberFormat>
22188       </availableFormats>
22189       <generalDesc>
22190         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22191         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22192       </generalDesc>
22193       <fixedLine>
22194         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
22195         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22196         <exampleNumber>222345678</exampleNumber>
22197       </fixedLine>
22198       <mobile>
22199         <nationalNumberPattern>
22200           (?:
22201             6[158]|
22202             7[1-9]
22203           )\d{7}
22204         </nationalNumberPattern>
22205         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22206         <exampleNumber>612345678</exampleNumber>
22207       </mobile>
22208       <tollFree>
22209         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
22210         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22211         <exampleNumber>800123456</exampleNumber>
22212       </tollFree>
22213       <premiumRate>
22214         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
22215         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22216         <exampleNumber>900123456</exampleNumber>
22217       </premiumRate>
22218       <sharedCost>
22219         <nationalNumberPattern>
22220           8(?:
22221             40|
22222             6[01]
22223           )\d{6}
22224         </nationalNumberPattern>
22225         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22226         <exampleNumber>840123456</exampleNumber>
22227       </sharedCost>
22228       <voip>
22229         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
22230         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22231         <exampleNumber>412345678</exampleNumber>
22232       </voip>
22233     </territory>
22234
22235     <!-- Ukraine -->
22236     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
22237                internationalPrefix="00"
22238                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22239       <references>
22240         <sourceUrl>http://www.itu.int/oth/T02020000DB/en</sourceUrl>
22241         <sourceUrl>http://en.wikipedia.org/wiki/%2B380</sourceUrl>
22242       </references>
22243       <availableFormats>
22244         <!-- City codes separated out. No definitive list has been found of what constitutes the
22245              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
22246              Have used local yellow pages guidelines, Google searches and regression tests to
22247              reverse-engineer these rules as well as bugs. -->
22248         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
22249           <leadingDigits>
22250             [38]9|
22251             4(?:
22252               [45][0-5]|
22253               87
22254             )|
22255             5(?:
22256               0|
22257               6[37]|
22258               7[37]
22259             )|
22260             6[36-8]|
22261             9[1-9]
22262           </leadingDigits>
22263           <leadingDigits>
22264             [38]9|
22265             4(?:
22266               [45][0-5]|
22267               87
22268             )|
22269             5(?:
22270               0|
22271               6(?:
22272                 3[14-7]|
22273                 7
22274               )|
22275               7[37]
22276             )|
22277             6[36-8]|
22278             9[1-9]
22279           </leadingDigits>
22280           <format>$1 $2 $3</format>
22281         </numberFormat>
22282         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
22283           <leadingDigits>
22284             3[1-8]2|
22285             4[13678]2|
22286             5(?:
22287               [12457]2|
22288               6[24]
22289             )|
22290             6(?:
22291               [49]2|
22292               [12][29]|
22293               5[24]
22294             )|
22295             8[0-8]|
22296             90
22297           </leadingDigits>
22298           <leadingDigits>
22299             3(?:
22300               [1-46-8]2[013-9]|
22301               52
22302             )|
22303             4(?:
22304               [1378]2|
22305               62[013-9]
22306             )|
22307             5(?:
22308               [12457]2|
22309               6[24]
22310             )|
22311             6(?:
22312               [49]2|
22313               [12][29]|
22314               5[24]
22315             )|
22316             8[0-8]|
22317             90
22318           </leadingDigits>
22319           <format>$1 $2 $3</format>
22320         </numberFormat>
22321         <numberFormat pattern="([3-6]\d{3})(\d{5})">
22322           <leadingDigits>
22323             3(?:
22324               5[013-9]|
22325               [1-46-8]
22326             )|
22327             4(?:
22328               [137][013-9]|
22329               6|
22330               [45][6-9]|
22331               8[4-6]
22332             )|
22333             5(?:
22334               [1245][013-9]|
22335               6[0135-9]|
22336               3|
22337               7[4-6]
22338             )|
22339             6(?:
22340               [49][013-9]|
22341               5[0135-9]|
22342               [12][13-8]
22343             )
22344           </leadingDigits>
22345           <leadingDigits>
22346             3(?:
22347               5[013-9]|
22348               [1-46-8](?:
22349                 22|
22350                 [013-9]
22351               )
22352             )|
22353             4(?:
22354               [137][013-9]|
22355               6(?:
22356                 [013-9]|
22357                 22
22358               )|
22359               [45][6-9]|
22360               8[4-6]
22361             )|
22362             5(?:
22363               [1245][013-9]|
22364               6(?:
22365                 3[02389]|
22366                 [015689]
22367               )|
22368               3|
22369               7[4-6]
22370             )|
22371             6(?:
22372               [49][013-9]|
22373               5[0135-9]|
22374               [12][13-8]
22375             )
22376           </leadingDigits>
22377           <format>$1 $2</format>
22378         </numberFormat>
22379       </availableFormats>
22380       <generalDesc>
22381         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
22382         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22383       </generalDesc>
22384       <fixedLine>
22385         <nationalNumberPattern>
22386           (?:
22387             3[1-8]|
22388             4[13-8]|
22389             5[1-7]|
22390             6[12459]
22391           )\d{7}
22392         </nationalNumberPattern>
22393         <exampleNumber>311234567</exampleNumber>
22394       </fixedLine>
22395       <mobile>
22396         <nationalNumberPattern>
22397           (?:
22398             39|
22399             50|
22400             6[36-8]|
22401             9[1-9]
22402           )\d{7}
22403         </nationalNumberPattern>
22404         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22405         <exampleNumber>391234567</exampleNumber>
22406       </mobile>
22407       <tollFree>
22408         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22409         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22410         <exampleNumber>800123456</exampleNumber>
22411       </tollFree>
22412       <premiumRate>
22413         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22414         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22415         <exampleNumber>900123456</exampleNumber>
22416       </premiumRate>
22417       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
22418       <voip>
22419         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
22420         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22421         <exampleNumber>891234567</exampleNumber>
22422       </voip>
22423     </territory>
22424
22425     <!-- Uganda -->
22426     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
22427                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22428       <references>
22429         <sourceUrl>http://www.itu.int/oth/T02020000F1/en</sourceUrl>
22430         <sourceUrl>http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf</sourceUrl>
22431       </references>
22432       <availableFormats>
22433         <numberFormat pattern="(\d{3})(\d{6})">
22434           <leadingDigits>
22435             [7-9]|
22436             20(?:
22437               [013-8]|
22438               2[5-9]
22439             )|
22440             4(?:
22441               6[45]|
22442               [7-9]
22443             )
22444           </leadingDigits>
22445           <format>$1 $2</format>
22446         </numberFormat>
22447         <numberFormat pattern="(\d{2})(\d{7})">
22448           <leadingDigits>
22449             3|
22450             4(?:
22451               [1-5]|
22452               6[0-36-9]
22453             )
22454           </leadingDigits>
22455           <format>$1 $2</format>
22456         </numberFormat>
22457         <numberFormat pattern="(2024)(\d{5})">
22458           <leadingDigits>2024</leadingDigits>
22459           <format>$1 $2</format>
22460         </numberFormat>
22461       </availableFormats>
22462       <generalDesc>
22463         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22464         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22465       </generalDesc>
22466       <fixedLine>
22467         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
22468         <nationalNumberPattern>
22469           20(?:
22470             [0147]\d{2}|
22471             2(?:
22472               40|
22473               [5-9]\d
22474             )|
22475             3[23]\d|
22476             5[0-4]\d|
22477             6[03]\d|
22478             8[0-2]\d
22479           )\d{4}|
22480           [34]\d{8}
22481         </nationalNumberPattern>
22482         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
22483              local dialing is still possible. We assume it is for now. -->
22484         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22485         <exampleNumber>312345678</exampleNumber>
22486       </fixedLine>
22487       <mobile>
22488         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
22489         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
22490         <!-- Ranges with prefixes 2030 or 723 are "not yet operational" as of Oct. 2014. -->
22491         <nationalNumberPattern>
22492           2030\d{5}|
22493           7(?:
22494             0[0-7]|
22495             [15789]\d|
22496             2[03]|
22497             30|
22498             [46][0-4]
22499           )\d{6}
22500         </nationalNumberPattern>
22501         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22502         <exampleNumber>712345678</exampleNumber>
22503       </mobile>
22504       <tollFree>
22505         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
22506         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22507         <exampleNumber>800123456</exampleNumber>
22508       </tollFree>
22509       <premiumRate>
22510         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
22511         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22512         <exampleNumber>901123456</exampleNumber>
22513       </premiumRate>
22514     </territory>
22515
22516     <!-- United States -->
22517     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
22518          numbers in the national format, it is not included. Therefore, we omit it here to make
22519          formatting consistent with the rest of the world. The same applies to all the
22520          countries/regions under NANPA -->
22521     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
22522          when formatting, but is set here so that users who are calling formatByPattern can specify
22523          NationalPrefixFormattingRule if they want to. -->
22524     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
22525                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true"
22526                mobileNumberPortableRegion="true">
22527       <references>
22528         <sourceUrl>http://www.nanpa.com/reports/reports_npa.html</sourceUrl>
22529         <sourceUrl>http://en.wikipedia.org/wiki/North_American_Numbering_Plan</sourceUrl>
22530       </references>
22531       <availableFormats>
22532         <numberFormat pattern="(\d{3})(\d{4})">
22533           <format>$1-$2</format>
22534           <intlFormat>NA</intlFormat>
22535         </numberFormat>
22536         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
22537           <format>($1) $2-$3</format>
22538           <!-- A different pattern is used when formatting internationally, as the area code is no
22539                longer optional and should not be in brackets. -->
22540           <intlFormat>$1-$2-$3</intlFormat>
22541         </numberFormat>
22542       </availableFormats>
22543       <generalDesc>
22544         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
22545         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22546       </generalDesc>
22547       <fixedLine>
22548         <nationalNumberPattern>
22549           (?:
22550             2(?:
22551               0[1-35-9]|
22552               1[02-9]|
22553               2[4589]|
22554               3[149]|
22555               4[08]|
22556               5[1-46]|
22557               6[0279]|
22558               7[026]|
22559               8[13]
22560             )|
22561             3(?:
22562               0[1-57-9]|
22563               1[02-9]|
22564               2[0135]|
22565               3[014679]|
22566               4[67]|
22567               5[12]|
22568               6[014]|
22569               8[56]
22570             )|
22571             4(?:
22572               0[124-9]|
22573               1[02-579]|
22574               2[3-5]|
22575               3[0245]|
22576               4[0235]|
22577               58|
22578               69|
22579               7[0589]|
22580               8[04]
22581             )|
22582             5(?:
22583               0[1-57-9]|
22584               1[0235-8]|
22585               20|
22586               3[0149]|
22587               4[01]|
22588               5[19]|
22589               6[1-37]|
22590               7[013-5]|
22591               8[056]
22592             )|
22593             6(?:
22594               0[1-35-9]|
22595               1[024-9]|
22596               2[036]|
22597               3[016]|
22598               4[16]|
22599               5[017]|
22600               6[0-279]|
22601               78|
22602               8[12]
22603             )|
22604             7(?:
22605               0[1-46-8]|
22606               1[02-9]|
22607               2[0457]|
22608               3[1247]|
22609               4[07]|
22610               5[47]|
22611               6[02359]|
22612               7[02-59]|
22613               8[156]
22614             )|
22615             8(?:
22616               0[1-68]|
22617               1[02-8]|
22618               28|
22619               3[0-25]|
22620               4[3578]|
22621               5[06-9]|
22622               6[02-5]|
22623               7[028]
22624             )|
22625             9(?:
22626               0[1346-9]|
22627               1[02-9]|
22628               2[0589]|
22629               3[01678]|
22630               4[0179]|
22631               5[12469]|
22632               7[0-3589]|
22633               8[0459]
22634             )
22635           )[2-9]\d{6}
22636         </nationalNumberPattern>
22637         <exampleNumber>2015555555</exampleNumber>
22638       </fixedLine>
22639       <mobile>
22640         <nationalNumberPattern>
22641           (?:
22642             2(?:
22643               0[1-35-9]|
22644               1[02-9]|
22645               2[4589]|
22646               3[149]|
22647               4[08]|
22648               5[1-46]|
22649               6[0279]|
22650               7[026]|
22651               8[13]
22652             )|
22653             3(?:
22654               0[1-57-9]|
22655               1[02-9]|
22656               2[0135]|
22657               3[014679]|
22658               4[67]|
22659               5[12]|
22660               6[014]|
22661               8[56]
22662             )|
22663             4(?:
22664               0[124-9]|
22665               1[02-579]|
22666               2[3-5]|
22667               3[0245]|
22668               4[0235]|
22669               58|
22670               69|
22671               7[0589]|
22672               8[04]
22673             )|
22674             5(?:
22675               0[1-57-9]|
22676               1[0235-8]|
22677               20|
22678               3[0149]|
22679               4[01]|
22680               5[19]|
22681               6[1-37]|
22682               7[013-5]|
22683               8[056]
22684             )|
22685             6(?:
22686               0[1-35-9]|
22687               1[024-9]|
22688               2[036]|
22689               3[016]|
22690               4[16]|
22691               5[017]|
22692               6[0-279]|
22693               78|
22694               8[12]
22695             )|
22696             7(?:
22697               0[1-46-8]|
22698               1[02-9]|
22699               2[0457]|
22700               3[1247]|
22701               4[07]|
22702               5[47]|
22703               6[02359]|
22704               7[02-59]|
22705               8[156]
22706             )|
22707             8(?:
22708               0[1-68]|
22709               1[02-8]|
22710               28|
22711               3[0-25]|
22712               4[3578]|
22713               5[06-9]|
22714               6[02-5]|
22715               7[028]
22716             )|
22717             9(?:
22718               0[1346-9]|
22719               1[02-9]|
22720               2[0589]|
22721               3[01678]|
22722               4[0179]|
22723               5[12469]|
22724               7[0-3589]|
22725               8[0459]
22726             )
22727           )[2-9]\d{6}
22728         </nationalNumberPattern>
22729         <exampleNumber>2015555555</exampleNumber>
22730       </mobile>
22731       <tollFree>
22732         <nationalNumberPattern>
22733           8(?:
22734             00|
22735             44|
22736             55|
22737             66|
22738             77|
22739             88
22740           )[2-9]\d{6}
22741         </nationalNumberPattern>
22742         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22743         <exampleNumber>8002345678</exampleNumber>
22744       </tollFree>
22745       <premiumRate>
22746         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22747         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22748         <exampleNumber>9002345678</exampleNumber>
22749       </premiumRate>
22750       <personalNumber>
22751         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22752         <nationalNumberPattern>
22753           5(?:
22754             00|
22755             33|
22756             44|
22757             66|
22758             77
22759           )[2-9]\d{6}
22760         </nationalNumberPattern>
22761         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22762         <exampleNumber>5002345678</exampleNumber>
22763       </personalNumber>
22764     </territory>
22765
22766     <!-- Uruguay -->
22767     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
22768          code JK, where J = [3-9] and K is any digit. -->
22769     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
22770                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
22771       <references>
22772         <sourceUrl>http://www.itu.int/oth/T02020000E0/en</sourceUrl>
22773         <sourceUrl>http://www.ursec.gub.uy</sourceUrl>
22774         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay</sourceUrl>
22775       </references>
22776       <availableFormats>
22777         <!-- Following paginasamarillas.com.uy formatting. -->
22778         <numberFormat pattern="(\d{4})(\d{4})">
22779           <leadingDigits>[24]</leadingDigits>
22780           <format>$1 $2</format>
22781         </numberFormat>
22782         <!-- Including the national prefix here since URSEC does when formatting these. -->
22783         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
22784           <leadingDigits>9[1-9]</leadingDigits>
22785           <format>$1 $2 $3</format>
22786         </numberFormat>
22787         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
22788           <leadingDigits>[89]0</leadingDigits>
22789           <format>$1 $2</format>
22790         </numberFormat>
22791       </availableFormats>
22792       <generalDesc>
22793         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
22794         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
22795       </generalDesc>
22796       <fixedLine>
22797         <nationalNumberPattern>
22798           2\d{7}|
22799           4[2-7]\d{6}
22800         </nationalNumberPattern>
22801         <exampleNumber>21231234</exampleNumber>
22802       </fixedLine>
22803       <mobile>
22804         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
22805         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22806         <exampleNumber>94231234</exampleNumber>
22807       </mobile>
22808       <tollFree>
22809         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
22810         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22811         <exampleNumber>8001234</exampleNumber>
22812       </tollFree>
22813       <premiumRate>
22814         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
22815         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22816         <exampleNumber>9001234</exampleNumber>
22817       </premiumRate>
22818      </territory>
22819
22820     <!-- Uzbekistan -->
22821     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
22822                internationalPrefix="810" nationalPrefix="8"
22823                nationalPrefixFormattingRule="$NP $FG">
22824       <references>
22825         <sourceUrl>http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng</sourceUrl>
22826         <sourceUrl>http://www.itu.int/oth/T02020000E1/en</sourceUrl>
22827       </references>
22828       <availableFormats>
22829         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
22830           <format>$1 $2 $3 $4</format>
22831         </numberFormat>
22832       </availableFormats>
22833       <generalDesc>
22834         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
22835         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22836       </generalDesc>
22837       <fixedLine>
22838         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
22839              be used in Namangan. -->
22840         <nationalNumberPattern>
22841           (?:
22842             6(?:
22843               1(?:
22844                 22|
22845                 3[124]|
22846                 4[1-4]|
22847                 5[123578]|
22848                 64
22849               )|
22850               2(?:
22851                 22|
22852                 3[0-57-9]|
22853                 41
22854               )|
22855               5(?:
22856                 22|
22857                 3[3-7]|
22858                 5[024-8]
22859               )|
22860               6\d{2}|
22861               7(?:
22862                 [23]\d|
22863                 7[69]
22864               )|
22865               9(?:
22866                 22|
22867                 4[1-8]|
22868                 6[135]
22869               )
22870             )|
22871             7(?:
22872               0(?:
22873                 5[4-9]|
22874                 6[0146]|
22875                 7[12456]|
22876                 9[135-8]
22877               )|
22878               1[12]\d|
22879               2(?:
22880                 22|
22881                 3[1345789]|
22882                 4[123579]|
22883                 5[14]
22884               )|
22885               3(?:
22886                 2\d|
22887                 3[1578]|
22888                 4[1-35-7]|
22889                 5[1-57]|
22890                 61
22891               )|
22892               4(?:
22893                 2\d|
22894                 3[1-579]|
22895                 7[1-79]
22896               )|
22897               5(?:
22898                 22|
22899                 5[1-9]|
22900                 6[1457]
22901               )|
22902               6(?:
22903                 22|
22904                 3[12457]|
22905                 4[13-8]
22906               )|
22907               9(?:
22908                 22|
22909                 5[1-9]
22910               )
22911             )
22912           )\d{5}
22913         </nationalNumberPattern>
22914         <exampleNumber>662345678</exampleNumber>
22915       </fixedLine>
22916       <mobile>
22917         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
22918              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
22919              prefixes Tyntec has a carrier mapped to. -->
22920         <nationalNumberPattern>
22921           6(?:
22922             1(?:
22923               2(?:
22924                 98|
22925                 2[01]
22926               )|
22927               35[0-4]|
22928               50\d|
22929               61[23]|
22930               7(?:
22931                 [01][017]|
22932                 4\d|
22933                 55|
22934                 9[5-9]
22935               )
22936             )|
22937             2(?:
22938               11\d|
22939               2(?:
22940                 [12]1|
22941                 9[01379]
22942               )|
22943               5(?:
22944                 [126]\d|
22945                 3[0-4]
22946               )|
22947               7\d{2}
22948             )|
22949             5(?:
22950               19[01]|
22951               2(?:
22952                 27|
22953                 9[26]
22954               )|
22955               30\d|
22956               59\d|
22957               7\d{2}
22958             )|
22959             6(?:
22960               2(?:
22961                 1[5-9]|
22962                 2[0367]|
22963                 38|
22964                 41|
22965                 52|
22966                 60
22967               )|
22968               3[79]\d|
22969               4(?:
22970                 56|
22971                 83
22972               )|
22973               7(?:
22974                 [07]\d|
22975                 1[017]|
22976                 3[07]|
22977                 4[047]|
22978                 5[057]|
22979                 67|
22980                 8[0178]|
22981                 9[79]
22982                 )|
22983               9[0-3]\d
22984             )|
22985             7(?:
22986               2(?:
22987                 24|
22988                 3[237]|
22989                 4[5-9]|
22990                 7[15-8]
22991               )|
22992               5(?:
22993                 7[12]|
22994                 8[0589]
22995               )|
22996               7(?:
22997                 0\d|
22998                 [39][07]
22999               )|
23000               9(?:
23001                 0\d|
23002                 7[079]
23003               )
23004             )|
23005             9(?:
23006               2(?:
23007                 1[1267]|
23008                 5\d|
23009                 3[01]|
23010                 7[0-4]
23011               )|
23012               5[67]\d|
23013               6(?:
23014                 2[0-26]|
23015                 8\d
23016               )|
23017               7\d{2}
23018             )
23019           )\d{4}|
23020           7(?:
23021             0\d{3}|
23022             1(?:
23023               13[01]|
23024               6(?:
23025                 0[47]|
23026                 1[67]|
23027                 66
23028               )|
23029               71[3-69]|
23030               98\d
23031             )|
23032             2(?:
23033               2(?:
23034                 2[79]|
23035                 95
23036               )|
23037               3(?:
23038                 2[5-9]|
23039                 6[0-6]
23040               )|
23041               57\d|
23042               7(?:
23043                 0\d|
23044                 1[17]|
23045                 2[27]|
23046                 3[37]|
23047                 44|
23048                 5[057]|
23049                 66|
23050                 88
23051               )
23052             )|
23053             3(?:
23054               2(?:
23055                 1[0-6]|
23056                 21|
23057                 3[469]|
23058                 7[159]
23059               )|
23060               33\d|
23061               5(?:
23062                 0[0-4]|
23063                 5[579]|
23064                 9\d
23065               )|
23066               7(?:
23067                 [0-3579]\d|
23068                 4[0467]|
23069                 6[67]|
23070                 8[078]
23071               )|
23072               9[4-6]\d
23073             )|
23074             4(?:
23075               2(?:
23076                 29|
23077                 5[0257]|
23078                 6[0-7]|
23079                 7[1-57]
23080               )|
23081               5(?:
23082                 1[0-4]|
23083                 8\d|
23084                 9[5-9]
23085               )|
23086               7(?:
23087                 0\d|
23088                 1[024589]|
23089                 2[0127]|
23090                 3[0137]|
23091                 [46][07]|
23092                 5[01]|
23093                 7[5-9]|
23094                 9[079]
23095               )|
23096               9(?:
23097                 7[015-9]|
23098                 [89]\d
23099               )
23100             )|
23101             5(?:
23102               112|
23103               2(?:
23104                 0\d|
23105                 2[29]|
23106                 [49]4
23107               )|
23108               3[1568]\d|
23109               52[6-9]|
23110               7(?:
23111                 0[01578]|
23112                 1[017]|
23113                 [23]7|
23114                 4[047]|
23115                 [5-7]\d|
23116                 8[78]|
23117                 9[079]
23118               )
23119             )|
23120             6(?:
23121               2(?:
23122                 2[1245]|
23123                 4[2-4]
23124               )|
23125               39\d|
23126               41[179]|
23127               5(?:
23128                 [349]\d|
23129                 5[0-2]
23130               )|
23131               7(?:
23132                 0[017]|
23133                 [13]\d|
23134                 22|
23135                 44|
23136                 55|
23137                 67|
23138                 88
23139               )
23140             )|
23141             9(?:
23142               22[128]|
23143               3(?:
23144                 2[0-4]|
23145                 7\d
23146               )|
23147               57[05629]|
23148               7(?:
23149                 2[05-9]|
23150                 3[37]|
23151                 4\d|
23152                 60|
23153                 7[2579]|
23154                 87|
23155                 9[07]
23156               )
23157             )
23158           )\d{4}|
23159           9[0-57-9]\d{7}
23160         </nationalNumberPattern>
23161         <exampleNumber>912345678</exampleNumber>
23162       </mobile>
23163       <!-- No tollFree or premiumRate information can be found. -->
23164     </territory>
23165
23166     <!-- Vatican City -->
23167     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
23168          also be dialled with the Vatican City country code. -->
23169     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
23170       <references>
23171         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City</sourceUrl>
23172       </references>
23173       <availableFormats>
23174         <numberFormat pattern="(06)(\d{4})(\d{4})">
23175           <format>$1 $2 $3</format>
23176         </numberFormat>
23177       </availableFormats>
23178       <generalDesc>
23179         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
23180         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23181       </generalDesc>
23182       <fixedLine>
23183         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
23184         <exampleNumber>0669812345</exampleNumber>
23185       </fixedLine>
23186       <mobile>
23187         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
23188              Italian mobile contracts. -->
23189         <nationalNumberPattern>NA</nationalNumberPattern>
23190         <possibleNumberPattern>NA</possibleNumberPattern>
23191       </mobile>
23192       <!-- No information exists about other types of numbers. -->
23193     </territory>
23194
23195     <!-- Saint Vincent and the Grenadines -->
23196     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
23197                internationalPrefix="011">
23198       <references>
23199         <sourceUrl>http://www.itu.int/oth/T02020000B3/en</sourceUrl>
23200       </references>
23201       <generalDesc>
23202         <!-- NANPA country - uses US formatting rules -->
23203         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
23204         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23205       </generalDesc>
23206       <!-- For 570, 571 and 572 prefixes, we believe the ITU doc incorrectly listed them to be under
23207            area code 758, which should be 784. -->
23208       <fixedLine>
23209         <nationalNumberPattern>
23210           784(?:
23211             266|
23212             3(?:
23213               6[6-9]|
23214               7\d|
23215               8[0-24-6]
23216             )|
23217             4(?:
23218               38|
23219               5[0-36-8]|
23220               8[0-8]
23221             )|
23222             5(?:
23223               55|
23224               7[0-2]|
23225               93
23226             )|
23227             638|
23228             784
23229           )\d{4}
23230         </nationalNumberPattern>
23231         <exampleNumber>7842661234</exampleNumber>
23232       </fixedLine>
23233       <mobile>
23234         <nationalNumberPattern>
23235           784(?:
23236             4(?:
23237               3[0-4]|
23238               5[45]|
23239               89|
23240               9[0-5]
23241             )|
23242             5(?:
23243               2[6-9]|
23244               3[0-4]
23245             )
23246           )\d{4}
23247         </nationalNumberPattern>
23248         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23249         <exampleNumber>7844301234</exampleNumber>
23250       </mobile>
23251       <tollFree>
23252         <nationalNumberPattern>
23253           8(?:
23254             00|
23255             44|
23256             55|
23257             66|
23258             77|
23259             88
23260           )[2-9]\d{6}
23261         </nationalNumberPattern>
23262         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23263         <exampleNumber>8002345678</exampleNumber>
23264       </tollFree>
23265       <premiumRate>
23266         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23267         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23268         <exampleNumber>9002345678</exampleNumber>
23269       </premiumRate>
23270       <personalNumber>
23271         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23272         <nationalNumberPattern>
23273           5(?:
23274             00|
23275             33|
23276             44|
23277             66|
23278             77
23279           )[2-9]\d{6}
23280         </nationalNumberPattern>
23281         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23282         <exampleNumber>5002345678</exampleNumber>
23283       </personalNumber>
23284     </territory>
23285
23286     <!-- Venezuela -->
23287     <!-- 1XX specifies a particular carrier to route a call to, but none of these have been
23288          implemented. -->
23289     <territory id="VE" countryCode="58" internationalPrefix="00"
23290                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23291                carrierCodeFormattingRule="$CC $FG">
23292       <references>
23293         <sourceUrl>http://www.itu.int/oth/T02020000E3/en</sourceUrl>
23294         <sourceUrl>http://en.wikipedia.org/wiki/+58</sourceUrl>
23295       </references>
23296       <availableFormats>
23297         <numberFormat pattern="(\d{3})(\d{7})">
23298           <format>$1-$2</format>
23299         </numberFormat>
23300       </availableFormats>
23301       <generalDesc>
23302         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
23303         <!-- Open numbering plan. -->
23304         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23305       </generalDesc>
23306       <fixedLine>
23307         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
23308              mentions these as 5XX, but online examples that can be found are seemingly restricted
23309              to 50[01]. -->
23310         <nationalNumberPattern>
23311           (?:
23312             2(?:
23313               12|
23314               3[457-9]|
23315               [58][1-9]|
23316               [467]\d|
23317               9[1-6]
23318             )|
23319             50[01]
23320           )\d{7}
23321         </nationalNumberPattern>
23322         <exampleNumber>2121234567</exampleNumber>
23323       </fixedLine>
23324       <mobile>
23325         <nationalNumberPattern>
23326           4(?:
23327             1[24-8]|
23328             2[46]
23329           )\d{7}
23330         </nationalNumberPattern>
23331         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23332         <exampleNumber>4121234567</exampleNumber>
23333       </mobile>
23334       <tollFree>
23335         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
23336         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23337         <exampleNumber>8001234567</exampleNumber>
23338       </tollFree>
23339       <premiumRate>
23340         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
23341         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23342         <exampleNumber>9001234567</exampleNumber>
23343       </premiumRate>
23344     </territory>
23345
23346     <!-- Virgin Islands, British -->
23347     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
23348                internationalPrefix="011">
23349       <references>
23350         <sourceUrl>http://www.itu.int/oth/T020200001E/en</sourceUrl>
23351       </references>
23352       <generalDesc>
23353         <!-- NANPA country - uses US formatting rules -->
23354         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
23355         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23356       </generalDesc>
23357       <fixedLine>
23358         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
23359              and 774 have been added from numbers found in the white pages. -->
23360         <nationalNumberPattern>
23361           284(?:
23362             (?:
23363               229|
23364               4(?:
23365                 22|
23366                 9[45]
23367               )|
23368               774|
23369               8(?:
23370                 52|
23371                 6[459]
23372               )
23373             )\d{4}|
23374             496[0-5]\d{3}
23375           )
23376         </nationalNumberPattern>
23377         <exampleNumber>2842291234</exampleNumber>
23378       </fixedLine>
23379       <mobile>
23380         <!-- No data on central office codes can be found on the nanpa.com website. The codes
23381              34[0-367], 446 and 54[57] have been added from numbers found in the white pages. -->
23382         <nationalNumberPattern>
23383           284(?:
23384             (?:
23385               3(?:
23386                 0[0-3]|
23387                 4[0-367]
23388               )|
23389               4(?:
23390                 4[0-6]|
23391                 68|
23392                 99
23393               )|
23394               54[0-57]
23395             )\d{4}|
23396             496[6-9]\d{3}
23397           )
23398         </nationalNumberPattern>
23399         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23400         <exampleNumber>2843001234</exampleNumber>
23401       </mobile>
23402       <tollFree>
23403         <nationalNumberPattern>
23404           8(?:
23405             00|
23406             44|
23407             55|
23408             66|
23409             77|
23410             88
23411           )[2-9]\d{6}
23412         </nationalNumberPattern>
23413         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23414         <exampleNumber>8002345678</exampleNumber>
23415       </tollFree>
23416       <premiumRate>
23417         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23418         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23419         <exampleNumber>9002345678</exampleNumber>
23420       </premiumRate>
23421       <personalNumber>
23422         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23423         <nationalNumberPattern>
23424           5(?:
23425             00|
23426             33|
23427             44|
23428             66|
23429             77
23430           )[2-9]\d{6}
23431         </nationalNumberPattern>
23432         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23433         <exampleNumber>5002345678</exampleNumber>
23434       </personalNumber>
23435     </territory>
23436
23437     <!-- Virgin Islands, United States -->
23438     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
23439                internationalPrefix="011">
23440       <references>
23441         <sourceUrl>http://www.itu.int/oth/T02020000DF/en</sourceUrl>
23442       </references>
23443       <generalDesc>
23444         <!-- NANPA country - uses US formatting rules -->
23445         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
23446         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23447       </generalDesc>
23448       <fixedLine>
23449         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
23450              yellow pages have been added, and the list of exchanges found on
23451              http://www.allareacodes.com/340 -->
23452         <nationalNumberPattern>
23453           340(?:
23454             2(?:
23455               01|
23456               2[0678]|
23457               44|
23458               77
23459             )|
23460             3(?:
23461               32|
23462               44
23463             )|
23464             4(?:
23465               22|
23466               7[34]
23467             )|
23468             5(?:
23469               1[34]|
23470               55
23471             )|
23472             6(?:
23473               26|
23474               4[23]|
23475               77|
23476               9[023]
23477             )|
23478             7(?:
23479               1[2-589]|
23480               27|
23481               7\d
23482             )|
23483             884|
23484             998
23485           )\d{4}
23486         </nationalNumberPattern>
23487         <exampleNumber>3406421234</exampleNumber>
23488       </fixedLine>
23489       <mobile>
23490         <nationalNumberPattern>
23491           340(?:
23492             2(?:
23493               01|
23494               2[0678]|
23495               44|
23496               77
23497             )|
23498             3(?:
23499               32|
23500               44
23501             )|
23502             4(?:
23503               22|
23504               7[34]
23505             )|
23506             5(?:
23507               1[34]|
23508               55
23509             )|
23510             6(?:
23511               26|
23512               4[23]|
23513               77|
23514               9[023]
23515             )|
23516             7(?:
23517               1[2-589]|
23518               27|
23519               7\d
23520             )|
23521             884|
23522             998
23523           )\d{4}
23524         </nationalNumberPattern>
23525         <exampleNumber>3406421234</exampleNumber>
23526       </mobile>
23527       <tollFree>
23528         <nationalNumberPattern>
23529           8(?:
23530             00|
23531             44|
23532             55|
23533             66|
23534             77|
23535             88
23536           )[2-9]\d{6}
23537         </nationalNumberPattern>
23538         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23539         <exampleNumber>8002345678</exampleNumber>
23540       </tollFree>
23541       <premiumRate>
23542         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23543         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23544         <exampleNumber>9002345678</exampleNumber>
23545       </premiumRate>
23546       <personalNumber>
23547         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23548         <nationalNumberPattern>
23549           5(?:
23550             00|
23551             33|
23552             44|
23553             66|
23554             77
23555           )[2-9]\d{6}
23556         </nationalNumberPattern>
23557         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23558         <exampleNumber>5002345678</exampleNumber>
23559       </personalNumber>
23560     </territory>
23561
23562     <!-- Viet Nam (Vietnam) -->
23563     <territory id="VN" countryCode="84" internationalPrefix="00"
23564                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23565                nationalPrefixOptionalWhenFormatting="true">
23566       <references>
23567         <sourceUrl>http://www.itu.int/oth/T02020000E4/en</sourceUrl>
23568         <sourceUrl>http://en.wikipedia.org/wiki/%2B84</sourceUrl>
23569       </references>
23570       <availableFormats>
23571         <numberFormat pattern="([17]99)(\d{4})">
23572           <leadingDigits>[17]99</leadingDigits>
23573           <format>$1 $2</format>
23574         </numberFormat>
23575         <numberFormat pattern="([48])(\d{4})(\d{4})">
23576           <leadingDigits>[48]</leadingDigits>
23577           <format>$1 $2 $3</format>
23578         </numberFormat>
23579         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
23580           <leadingDigits>
23581             2[025-79]|
23582             3[0136-9]|
23583             5[2-9]|
23584             6[0-46-8]|
23585             7[02-79]
23586           </leadingDigits>
23587           <format>$1 $2 $3</format>
23588         </numberFormat>
23589         <numberFormat pattern="(80)(\d{5})">
23590           <leadingDigits>80</leadingDigits>
23591           <format>$1 $2</format>
23592         </numberFormat>
23593         <numberFormat pattern="(69\d)(\d{4,5})">
23594           <leadingDigits>69</leadingDigits>
23595           <format>$1 $2</format>
23596         </numberFormat>
23597         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
23598           <leadingDigits>
23599             2[1348]|
23600             3[25]|
23601             5[01]|
23602             65|
23603             7[18]
23604           </leadingDigits>
23605           <format>$1 $2 $3</format>
23606         </numberFormat>
23607         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
23608           <leadingDigits>9</leadingDigits>
23609           <format>$1 $2 $3 $4</format>
23610         </numberFormat>
23611         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
23612           <leadingDigits>
23613             1(?:
23614               [26]|
23615               8[68]|
23616               99
23617             )
23618           </leadingDigits>
23619           <format>$1 $2 $3</format>
23620         </numberFormat>
23621         <numberFormat nationalPrefixFormattingRule="$FG"
23622           pattern="(1[89]00)(\d{4,6})">
23623           <leadingDigits>1[89]0</leadingDigits>
23624           <format>$1 $2</format>
23625         </numberFormat>
23626       </availableFormats>
23627       <generalDesc>
23628         <nationalNumberPattern>
23629           [17]\d{6,9}|
23630           [2-69]\d{7,9}|
23631           8\d{6,8}
23632         </nationalNumberPattern>
23633         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23634       </generalDesc>
23635       <noInternationalDialling>
23636         <nationalNumberPattern>
23637           [17]99\d{4}|
23638           69\d{5,6}
23639         </nationalNumberPattern>
23640         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23641         <exampleNumber>1992000</exampleNumber>
23642       </noInternationalDialling>
23643       <fixedLine>
23644         <nationalNumberPattern>
23645           (?:
23646             2(?:
23647               [025-79]|
23648               1[0189]|
23649               [348][01]
23650             )|
23651             3(?:
23652               [0136-9]|
23653               [25][01]
23654             )|
23655             4\d|
23656             5(?:
23657               [01][01]|
23658               [2-9]
23659             )|
23660             6(?:
23661               [0-46-8]|
23662               5[01]
23663             )|
23664             7(?:
23665               [02-79]|
23666               [18][01]
23667             )|
23668             8[1-9]
23669           )\d{7}
23670         </nationalNumberPattern>
23671         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23672         <exampleNumber>2101234567</exampleNumber>
23673       </fixedLine>
23674       <mobile>
23675         <nationalNumberPattern>
23676           (?:
23677             9\d|
23678             1(?:
23679               2\d|
23680               6[2-9]|
23681               8[68]|
23682               99
23683             )
23684           )\d{7}
23685         </nationalNumberPattern>
23686         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23687         <exampleNumber>912345678</exampleNumber>
23688       </mobile>
23689       <tollFree>
23690         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
23691         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23692         <exampleNumber>1800123456</exampleNumber>
23693       </tollFree>
23694       <premiumRate>
23695         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
23696         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23697         <exampleNumber>1900123456</exampleNumber>
23698       </premiumRate>
23699       <uan>
23700         <!-- These include non-geographic fixed numbers, such as for government ministries. While
23701         listed as "private networks", they may actually be callable from within Vietnam. (They are
23702         "private" in the sense that ordinary people could not be assigned these numbers.) -->
23703         <nationalNumberPattern>
23704           [17]99\d{4}|
23705           69\d{5,6}|
23706           80\d{5}
23707         </nationalNumberPattern>
23708         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23709         <exampleNumber>1992000</exampleNumber>
23710       </uan>
23711     </territory>
23712
23713     <!-- Vanuatu -->
23714     <territory id="VU" countryCode="678" internationalPrefix="00">
23715       <references>
23716         <sourceUrl>http://www.itu.int/oth/T02020000E2/en</sourceUrl>
23717       </references>
23718       <!-- Should be formatted in one block, apart from the mobile numbers. -->
23719       <availableFormats>
23720         <numberFormat pattern="(\d{3})(\d{4})">
23721           <leadingDigits>[579]</leadingDigits>
23722           <format>$1 $2</format>
23723         </numberFormat>
23724       </availableFormats>
23725       <generalDesc>
23726         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
23727         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23728       </generalDesc>
23729       <fixedLine>
23730         <nationalNumberPattern>
23731           (?:
23732             2[02-9]\d|
23733             3(?:
23734               [5-7]\d|
23735               8[0-8]
23736             )|
23737             48[4-9]|
23738             88\d
23739           )\d{2}
23740         </nationalNumberPattern>
23741         <possibleNumberPattern>\d{5}</possibleNumberPattern>
23742         <exampleNumber>22123</exampleNumber>
23743       </fixedLine>
23744       <mobile>
23745         <nationalNumberPattern>
23746           (?:
23747             5(?:
23748               7[2-5]|
23749               [3-69]\d
23750             )|
23751             7[013-7]\d
23752           )\d{4}
23753         </nationalNumberPattern>
23754         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23755         <exampleNumber>5912345</exampleNumber>
23756       </mobile>
23757       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
23758            for government fixed-line numbers. -->
23759       <uan>
23760         <nationalNumberPattern>
23761           3[03]\d{3}|
23762           900\d{4}
23763         </nationalNumberPattern>
23764         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23765         <exampleNumber>30123</exampleNumber>
23766       </uan>
23767     </territory>
23768
23769     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
23770     <territory id="WF" countryCode="681" internationalPrefix="00">
23771       <references>
23772         <sourceUrl>http://www.itu.int/oth/T02020000E6/en</sourceUrl>
23773       </references>
23774       <availableFormats>
23775         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
23776           <format>$1 $2 $3</format>
23777         </numberFormat>
23778       </availableFormats>
23779       <generalDesc>
23780         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
23781         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23782       </generalDesc>
23783       <fixedLine>
23784         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
23785              50 and 68 are possible, so they are included here. -->
23786         <nationalNumberPattern>
23787           (?:
23788             50|
23789             68|
23790             72
23791           )\d{4}
23792         </nationalNumberPattern>
23793         <exampleNumber>501234</exampleNumber>
23794       </fixedLine>
23795       <mobile>
23796         <nationalNumberPattern>
23797           (?:
23798             50|
23799             68|
23800             72
23801           )\d{4}
23802         </nationalNumberPattern>
23803         <exampleNumber>501234</exampleNumber>
23804       </mobile>
23805     </territory>
23806
23807     <!-- Samoa -->
23808     <territory id="WS" countryCode="685" internationalPrefix="0">
23809       <references>
23810         <sourceUrl>http://www.itu.int/oth/T02020000B4/en</sourceUrl>
23811       </references>
23812       <availableFormats>
23813         <!-- Should be formatted in one block, apart from the specific series below. -->
23814         <numberFormat pattern="(8\d{2})(\d{3,4})">
23815           <leadingDigits>8</leadingDigits>
23816           <format>$1 $2</format>
23817         </numberFormat>
23818         <numberFormat pattern="(7\d)(\d{5})">
23819           <leadingDigits>7</leadingDigits>
23820           <format>$1 $2</format>
23821         </numberFormat>
23822       </availableFormats>
23823       <generalDesc>
23824         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
23825         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23826       </generalDesc>
23827       <fixedLine>
23828         <nationalNumberPattern>
23829           (?:
23830             [2-5]\d|
23831             6[1-9]|
23832             84\d{2}
23833           )\d{3}
23834         </nationalNumberPattern>
23835         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23836         <exampleNumber>22123</exampleNumber>
23837       </fixedLine>
23838       <mobile>
23839         <nationalNumberPattern>
23840           (?:
23841             60|
23842             7[25-7]\d
23843           )\d{4}
23844         </nationalNumberPattern>
23845         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
23846         <exampleNumber>601234</exampleNumber>
23847       </mobile>
23848       <tollFree>
23849         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
23850              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
23851              for now, so may be also used for other purposes than toll free, but until we have
23852              further evidence of these we will keep it as toll free. -->
23853         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
23854         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23855         <exampleNumber>800123</exampleNumber>
23856       </tollFree>
23857       <!-- Current research suggests other types of numbers are not used in Samoa. -->
23858     </territory>
23859
23860     <!-- Yemen -->
23861     <territory id="YE" countryCode="967" internationalPrefix="00"
23862                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
23863       <references>
23864         <sourceUrl>http://www.itu.int/oth/T02020000E7/en</sourceUrl>
23865       </references>
23866       <availableFormats>
23867         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
23868           <leadingDigits>
23869             [1-6]|
23870             7[24-68]
23871           </leadingDigits>
23872           <format>$1 $2 $3</format>
23873         </numberFormat>
23874         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
23875           <leadingDigits>7[0137]</leadingDigits>
23876           <format>$1 $2 $3</format>
23877         </numberFormat>
23878       </availableFormats>
23879       <generalDesc>
23880         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
23881         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
23882       </generalDesc>
23883       <fixedLine>
23884         <nationalNumberPattern>
23885           (?:
23886             1(?:
23887               7\d|
23888               [2-68]
23889             )|
23890             2[2-68]|
23891             3[2358]|
23892             4[2-58]|
23893             5[2-6]|
23894             6[3-58]|
23895             7[24-68]
23896           )\d{5}
23897         </nationalNumberPattern>
23898         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
23899         <exampleNumber>1234567</exampleNumber>
23900       </fixedLine>
23901       <mobile>
23902         <!-- Adding 70 from numbers found online. -->
23903         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
23904         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23905         <exampleNumber>712345678</exampleNumber>
23906       </mobile>
23907       <!-- No tollFree or premiumRate information can be found. -->
23908     </territory>
23909
23910     <!-- Mayotte -->
23911     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
23912                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
23913       <references>
23914         <!-- Some information at the following source, but most from collection of internet data.
23915              -->
23916         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_France</sourceUrl>
23917         <!-- Verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
23918              -->
23919         <sourceUrl>http://www.comores-online.com/mwezinet/internet/262</sourceUrl>
23920       </references>
23921       <!-- Formatting as per La Réunion. -->
23922       <generalDesc>
23923         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
23924         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23925       </generalDesc>
23926       <fixedLine>
23927         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
23928         <exampleNumber>269601234</exampleNumber>
23929       </fixedLine>
23930       <mobile>
23931         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
23932         <exampleNumber>639123456</exampleNumber>
23933       </mobile>
23934       <!-- Same as in France. -->
23935       <tollFree>
23936         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23937         <exampleNumber>801234567</exampleNumber>
23938       </tollFree>
23939     </territory>
23940
23941     <!-- South Africa -->
23942     <territory id="ZA" countryCode="27" internationalPrefix="00"
23943                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23944                mobileNumberPortableRegion="true">
23945       <references>
23946         <sourceUrl>http://www.itu.int/oth/T02020000C1/en</sourceUrl>
23947         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa</sourceUrl>
23948       </references>
23949       <availableFormats>
23950         <numberFormat pattern="(860)(\d{3})(\d{3})">
23951           <leadingDigits>860</leadingDigits>
23952           <format>$1 $2 $3</format>
23953         </numberFormat>
23954         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
23955           <leadingDigits>
23956             [1-79]|
23957             8(?:
23958               [0-47]|
23959               6[1-9]
23960             )
23961           </leadingDigits>
23962           <format>$1 $2 $3</format>
23963         </numberFormat>
23964         <numberFormat pattern="(\d{2})(\d{3,4})">
23965           <leadingDigits>8[1-4]</leadingDigits>
23966           <format>$1 $2</format>
23967         </numberFormat>
23968         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
23969           <leadingDigits>8[1-4]</leadingDigits>
23970           <format>$1 $2 $3</format>
23971         </numberFormat>
23972       </availableFormats>
23973       <generalDesc>
23974         <nationalNumberPattern>
23975           [1-79]\d{8}|
23976           8(?:
23977             [067]\d{7}|
23978             [1-4]\d{3,7}
23979           )
23980         </nationalNumberPattern>
23981         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
23982       </generalDesc>
23983       <fixedLine>
23984         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
23985              used in 1996. -->
23986         <nationalNumberPattern>
23987           (?:
23988             1[0-8]|
23989             2[0-378]|
23990             3[1-69]|
23991             4\d|
23992             5[1346-8]
23993           )\d{7}
23994         </nationalNumberPattern>
23995         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23996         <exampleNumber>101234567</exampleNumber>
23997       </fixedLine>
23998       <mobile>
23999         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
24000              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
24001              in prominent places online, even though the ITU document says numbers must be 10 digits
24002              long (including the national prefix). -->
24003         <nationalNumberPattern>
24004           (?:
24005             6[0-5]|
24006             7[0-46-9]
24007           )\d{7}|
24008           8[1-4]\d{3,7}
24009         </nationalNumberPattern>
24010         <exampleNumber>711234567</exampleNumber>
24011       </mobile>
24012       <tollFree>
24013         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
24014         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24015         <exampleNumber>801234567</exampleNumber>
24016       </tollFree>
24017       <premiumRate>
24018         <nationalNumberPattern>
24019           86[2-9]\d{6}|
24020           90\d{7}
24021         </nationalNumberPattern>
24022         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24023         <exampleNumber>862345678</exampleNumber>
24024       </premiumRate>
24025       <sharedCost>
24026         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
24027         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24028         <exampleNumber>860123456</exampleNumber>
24029       </sharedCost>
24030       <voip>
24031         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
24032         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24033         <exampleNumber>871234567</exampleNumber>
24034       </voip>
24035       <uan>
24036         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
24037              numbers. -->
24038         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
24039         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24040         <exampleNumber>861123456</exampleNumber>
24041       </uan>
24042     </territory>
24043
24044     <!-- Zambia -->
24045     <territory id="ZM" countryCode="260" internationalPrefix="00"
24046                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24047       <references>
24048         <sourceUrl>http://www.itu.int/oth/T02020000E8/en</sourceUrl>
24049       </references>
24050       <availableFormats>
24051         <numberFormat pattern="([29]\d)(\d{7})">
24052           <leadingDigits>[29]</leadingDigits>
24053           <format>$1 $2</format>
24054         </numberFormat>
24055         <numberFormat pattern="(800)(\d{3})(\d{3})">
24056           <leadingDigits>8</leadingDigits>
24057           <format>$1 $2 $3</format>
24058         </numberFormat>
24059       </availableFormats>
24060       <generalDesc>
24061         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
24062         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24063       </generalDesc>
24064       <fixedLine>
24065         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
24066         <exampleNumber>211234567</exampleNumber>
24067       </fixedLine>
24068       <mobile>
24069         <!-- Adding extra prefixes 50 and 6[1-57-9] since SMS messages have been successfully
24070              delivered to these numbers, and numbers like this can be found on the Internet. Adding
24071              prefix 960 based on information received from MTN Zambia. The 97 range has been
24072              expanded based on their IR21 document, which states the range 97[1-9] is used. -->
24073         <nationalNumberPattern>
24074           9(?:
24075             5[05]|
24076             6\d|
24077             7[1-9]
24078           )\d{6}
24079         </nationalNumberPattern>
24080         <exampleNumber>955123456</exampleNumber>
24081       </mobile>
24082       <tollFree>
24083         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
24084         <exampleNumber>800123456</exampleNumber>
24085       </tollFree>
24086     </territory>
24087
24088     <!-- Zimbabwe -->
24089     <territory id="ZW" countryCode="263" internationalPrefix="00"
24090                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24091       <references>
24092         <sourceUrl>http://www.itu.int/oth/T02020000E9/en</sourceUrl>
24093       </references>
24094       <availableFormats>
24095         <!-- One-digit area codes -->
24096         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
24097           <leadingDigits>
24098             4|
24099             9[2-9]
24100           </leadingDigits>
24101           <format>$1 $2 $3</format>
24102         </numberFormat>
24103         <!-- Mobile numbers -->
24104         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
24105           <leadingDigits>
24106             [19]1|
24107             7
24108           </leadingDigits>
24109           <format>$1 $2 $3</format>
24110         </numberFormat>
24111         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
24112           <leadingDigits>86[24]</leadingDigits>
24113           <format>$1 $2 $3</format>
24114         </numberFormat>
24115         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
24116         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
24117           <leadingDigits>
24118             2(?:
24119               [278]|
24120               0[45]|
24121               [49]8
24122             )|
24123             3(?:
24124               08|
24125               17|
24126               3[78]|
24127               [78]
24128             )|
24129             5[15][78]|
24130             6(?:
24131               [29]8|
24132               37|
24133               [68][78]
24134             )
24135           </leadingDigits>
24136           <format>$1 $2</format>
24137         </numberFormat>
24138         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
24139           <leadingDigits>
24140             2(?:
24141               [278]|
24142               0[45]|
24143               48
24144             )|
24145             3(?:
24146               08|
24147               17|
24148               3[78]|
24149               [78]
24150             )|
24151             5[15][78]|
24152             6(?:
24153               [29]8|
24154               37|
24155               [68][78]
24156             )|
24157             80
24158           </leadingDigits>
24159           <format>$1 $2 $3</format>
24160         </numberFormat>
24161         <!-- Two-digit area codes -->
24162         <numberFormat pattern="([1-356]\d)(\d{3,5})">
24163           <leadingDigits>
24164             1[3-9]|
24165             2(?:
24166               [1-469]|
24167               0[0-35-9]|
24168               [45][0-79]
24169             )|
24170             3(?:
24171               0[0-79]|
24172               1[0-689]|
24173               [24-69]|
24174               3[0-69]
24175             )|
24176             5(?:
24177               [02-46-9]|
24178               [15][0-69]
24179             )|
24180             6(?:
24181               [0145]|
24182               [29][0-79]|
24183               3[0-689]|
24184               [68][0-69]
24185             )
24186           </leadingDigits>
24187           <format>$1 $2</format>
24188         </numberFormat>
24189         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
24190           <leadingDigits>
24191             1[3-9]|
24192             2(?:
24193               [1-469]|
24194               0[0-35-9]|
24195               [45][0-79]
24196             )|
24197             3(?:
24198               0[0-79]|
24199               1[0-689]|
24200               [24-69]|
24201               3[0-69]
24202             )|
24203             5(?:
24204               [02-46-9]|
24205               [15][0-69]
24206             )|
24207             6(?:
24208               [0145]|
24209               [29][0-79]|
24210               3[0-689]|
24211               [68][0-69]
24212             )
24213           </leadingDigits>
24214           <format>$1 $2 $3</format>
24215         </numberFormat>
24216         <!-- Four-digit area codes -->
24217         <numberFormat pattern="([25]\d{3})(\d{3,5})">
24218           <leadingDigits>
24219             (?:
24220               25|
24221               54
24222             )8
24223           </leadingDigits>
24224           <leadingDigits>
24225             258[23]|
24226             5483
24227           </leadingDigits>
24228           <format>$1 $2</format>
24229         </numberFormat>
24230         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
24231           <leadingDigits>
24232             (?:
24233               25|
24234               54
24235             )8
24236           </leadingDigits>
24237           <leadingDigits>
24238             258[23]|
24239             5483
24240           </leadingDigits>
24241           <format>$1 $2 $3</format>
24242         </numberFormat>
24243         <!-- VOIP numbers -->
24244         <numberFormat pattern="(8\d{3})(\d{6})">
24245           <leadingDigits>86</leadingDigits>
24246           <format>$1 $2</format>
24247         </numberFormat>
24248       </availableFormats>
24249       <generalDesc>
24250         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
24251              variable in length and the possible prefixes clash with the country code. -->
24252         <nationalNumberPattern>
24253           2(?:
24254             [012457-9]\d{3,8}|
24255             6\d{3,6}
24256           )|
24257           [13-79]\d{4,8}|
24258           8[06]\d{8}
24259         </nationalNumberPattern>
24260         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
24261       </generalDesc>
24262       <fixedLine>
24263         <!-- Numbering is grouped by subscriber-number length. -->
24264         <nationalNumberPattern>
24265           (?:
24266             1[3-9]|
24267             2(?:
24268               0[45]|
24269               [16]|
24270               2[28]|
24271               [49]8?|
24272               58[23]|
24273               7[246]|
24274               8[1346-9]
24275             )|
24276             3(?:
24277               08?|
24278               17?|
24279               3[78]|
24280               [2456]|
24281               7[1569]|
24282               8[379]
24283             )|
24284             5(?:
24285               [07-9]|
24286               1[78]|
24287               483|
24288               5(?:
24289                 7?|
24290                 8
24291               )
24292             )|
24293             6(?:
24294               0|
24295               28|
24296               37?|
24297               [45][68][78]|
24298               98?
24299             )|
24300             848
24301           )\d{3,6}|
24302           (?:
24303             2(?:
24304               27|
24305               5|
24306               7[135789]|
24307               8[25]
24308             )|
24309             3[39]|
24310             5[1-46]|
24311             6[126-8]
24312           )\d{4,6}|
24313           2(?:
24314             (?:
24315               0|
24316               70
24317             )\d{5,6}|
24318             2[05]\d{7}
24319           )|
24320           (?:
24321             4\d|
24322             9[2-8]
24323           )\d{4,7}
24324         </nationalNumberPattern>
24325         <exampleNumber>1312345</exampleNumber>
24326       </fixedLine>
24327       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
24328            also being used by the carriers as mobile prefixes. -->
24329       <mobile>
24330         <nationalNumberPattern>
24331           7[1378]\d{7}|
24332           86(?:
24333             22|
24334             44
24335           )\d{6}
24336         </nationalNumberPattern>
24337         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24338         <exampleNumber>711234567</exampleNumber>
24339       </mobile>
24340       <tollFree>
24341         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
24342         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24343         <exampleNumber>8001234567</exampleNumber>
24344       </tollFree>
24345       <!-- No premiumRate information can be found. -->
24346       <voip>
24347         <nationalNumberPattern>
24348           86(?:
24349             1[12]|
24350             30|
24351             55|
24352             77|
24353             8[367]|
24354             99
24355           )\d{6}
24356         </nationalNumberPattern>
24357         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24358         <exampleNumber>8686123456</exampleNumber>
24359       </voip>
24360     </territory>
24361
24362     <!-- Universal International Toll Free Number -->
24363     <territory id="001" countryCode="800" leadingZeroPossible="true">
24364       <references>
24365         <sourceUrl>http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx</sourceUrl>
24366       </references>
24367       <availableFormats>
24368         <numberFormat pattern="(\d{4})(\d{4})">
24369           <format>$1 $2</format>
24370         </numberFormat>
24371       </availableFormats>
24372       <generalDesc>
24373         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24374         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24375         <exampleNumber>12345678</exampleNumber>
24376       </generalDesc>
24377       <fixedLine>
24378         <nationalNumberPattern>NA</nationalNumberPattern>
24379         <possibleNumberPattern>NA</possibleNumberPattern>
24380       </fixedLine>
24381       <mobile>
24382         <nationalNumberPattern>NA</nationalNumberPattern>
24383         <possibleNumberPattern>NA</possibleNumberPattern>
24384       </mobile>
24385       <tollFree>
24386         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24387       </tollFree>
24388     </territory>
24389
24390     <!-- Universal International Shared Cost Number -->
24391     <territory id="001" countryCode="808" leadingZeroPossible="true">
24392       <references>
24393         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24394       </references>
24395       <availableFormats>
24396         <numberFormat pattern="(\d{4})(\d{4})">
24397           <format>$1 $2</format>
24398         </numberFormat>
24399       </availableFormats>
24400       <generalDesc>
24401         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24402         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24403         <exampleNumber>12345678</exampleNumber>
24404       </generalDesc>
24405       <fixedLine>
24406         <nationalNumberPattern>NA</nationalNumberPattern>
24407         <possibleNumberPattern>NA</possibleNumberPattern>
24408       </fixedLine>
24409       <mobile>
24410         <nationalNumberPattern>NA</nationalNumberPattern>
24411         <possibleNumberPattern>NA</possibleNumberPattern>
24412       </mobile>
24413       <sharedCost>
24414         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24415       </sharedCost>
24416     </territory>
24417
24418     <!-- Inmarsat Global Limited -->
24419     <territory id="001" countryCode="870">
24420       <references>
24421         <sourceUrl>http://www.itu.int/oth/T0202000065/en</sourceUrl>
24422         <sourceUrl>http://www.inmarsat.com</sourceUrl>
24423       </references>
24424       <availableFormats>
24425         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24426           <format>$1 $2 $3</format>
24427         </numberFormat>
24428       </availableFormats>
24429       <generalDesc>
24430         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
24431         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24432         <exampleNumber>301234567</exampleNumber>
24433       </generalDesc>
24434       <fixedLine>
24435         <nationalNumberPattern>NA</nationalNumberPattern>
24436         <possibleNumberPattern>NA</possibleNumberPattern>
24437       </fixedLine>
24438       <mobile>
24439         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
24440         <nationalNumberPattern>
24441           (?:
24442             [356]\d|
24443             7[6-8]
24444           )\d{7}
24445         </nationalNumberPattern>
24446       </mobile>
24447     </territory>
24448
24449     <!-- VISIONng -->
24450     <!-- Number length has been derived from examples found online. -->
24451     <territory id="001" countryCode="878">
24452       <references>
24453         <sourceUrl>http://www.itu.int/oth/T02020000E5/en</sourceUrl>
24454       </references>
24455       <availableFormats>
24456         <!-- Formatting chosen based on online examples. -->
24457         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
24458           <format>$1 $2 $3</format>
24459         </numberFormat>
24460       </availableFormats>
24461       <generalDesc>
24462         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
24463         <possibleNumberPattern>\d{12}</possibleNumberPattern>
24464         <exampleNumber>101234567890</exampleNumber>
24465       </generalDesc>
24466       <fixedLine>
24467         <nationalNumberPattern>NA</nationalNumberPattern>
24468         <possibleNumberPattern>NA</possibleNumberPattern>
24469       </fixedLine>
24470       <mobile>
24471         <nationalNumberPattern>NA</nationalNumberPattern>
24472         <possibleNumberPattern>NA</possibleNumberPattern>
24473       </mobile>
24474       <voip>
24475         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
24476       </voip>
24477     </territory>
24478
24479     <!-- Iridium -->
24480     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
24481          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
24482          are. For this reason, we only support Iridium numbers at the moment. -->
24483     <territory id="001" countryCode="881">
24484       <references>
24485         <sourceUrl>http://www.iridium.com</sourceUrl>
24486         <sourceUrl>http://www.itu.int/oth/T0202000069/en</sourceUrl>
24487       </references>
24488       <availableFormats>
24489         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
24490         <numberFormat pattern="(\d)(\d{3})(\d{5})">
24491           <leadingDigits>[67]</leadingDigits>
24492           <format>$1 $2 $3</format>
24493         </numberFormat>
24494       </availableFormats>
24495       <generalDesc>
24496         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24497         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24498         <exampleNumber>612345678</exampleNumber>
24499       </generalDesc>
24500       <fixedLine>
24501         <nationalNumberPattern>NA</nationalNumberPattern>
24502         <possibleNumberPattern>NA</possibleNumberPattern>
24503       </fixedLine>
24504       <mobile>
24505         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24506       </mobile>
24507     </territory>
24508
24509     <territory id="001" countryCode="882">
24510       <references>
24511         <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
24512         <sourceUrl>http://www.itu.int/oth/T0202000054/en</sourceUrl>
24513         <sourceUrl>http://www.gsm.aq/numberplan.php</sourceUrl>
24514         <sourceUrl>http://www.global.aq</sourceUrl>
24515         <!-- Maritime Communications Partner (MCP) +88232 -->
24516         <sourceUrl>http://www.itu.int/oth/T02020000F4/en</sourceUrl>
24517         <!-- Oration Technologies +88237 -->
24518         <sourceUrl>http://www.itu.int/oth/T02020000A0/en</sourceUrl>
24519         <!-- Telespazio S.p.A. +88213 -->
24520         <sourceUrl>http://www.itu.int/oth/T02020000CC/en</sourceUrl>
24521         <!-- Thuraya +88216 -->
24522         <sourceUrl>http://www.itu.int/oth/T02020000CF/en</sourceUrl>
24523       </references>
24524       <availableFormats>
24525         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
24526           <leadingDigits>3[23]</leadingDigits>
24527           <format>$1 $2 $3</format>
24528         </numberFormat>
24529         <numberFormat pattern="(\d{2})(\d{5})">
24530           <leadingDigits>
24531             16|
24532             342
24533           </leadingDigits>
24534           <format>$1 $2</format>
24535         </numberFormat>
24536         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
24537           <leadingDigits>34[57]</leadingDigits>
24538           <format>$1 $2 $3</format>
24539         </numberFormat>
24540         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
24541           <leadingDigits>348</leadingDigits>
24542           <format>$1 $2 $3</format>
24543         </numberFormat>
24544         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
24545           <leadingDigits>1</leadingDigits>
24546           <format>$1 $2 $3</format>
24547         </numberFormat>
24548         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
24549           <leadingDigits>16</leadingDigits>
24550           <format>$1 $2 $3</format>
24551         </numberFormat>
24552         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
24553           <leadingDigits>16</leadingDigits>
24554           <format>$1 $2 $3</format>
24555         </numberFormat>
24556       </availableFormats>
24557       <generalDesc>
24558         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
24559         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24560         <exampleNumber>3451234567</exampleNumber>
24561       </generalDesc>
24562       <fixedLine>
24563         <nationalNumberPattern>NA</nationalNumberPattern>
24564         <possibleNumberPattern>NA</possibleNumberPattern>
24565       </fixedLine>
24566       <mobile>
24567         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
24568              Oration based on numbers found online. -->
24569         <nationalNumberPattern>
24570           3(?:
24571             2\d{3}|
24572             37\d{2}|
24573             4(?:
24574               2|
24575               7\d{3}
24576             )
24577           )\d{4}
24578         </nationalNumberPattern>
24579         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
24580       </mobile>
24581       <voip>
24582         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
24583         <nationalNumberPattern>
24584           1(?:
24585             3(?:
24586               0[0347]|
24587               [13][0139]|
24588               2[035]|
24589               4[013568]|
24590               6[0459]|
24591               7[06]|
24592               8[15678]|
24593               9[0689]
24594             )\d{4}|
24595             6\d{5,10}
24596           )|
24597           345\d{7}
24598         </nationalNumberPattern>
24599         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24600       </voip>
24601       <voicemail>
24602         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
24603         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24604       </voicemail>
24605     </territory>
24606
24607     <territory id="001" countryCode="883">
24608       <references>
24609         <!-- bandwidth.com -->
24610         <sourceUrl>http://www.itu.int/oth/T02020000FB/en</sourceUrl>
24611         <!-- SipMe -->
24612         <sourceUrl>http://www.itu.int/oth/T02020000FC/en</sourceUrl>
24613         <!-- Voxbone -->
24614         <sourceUrl>http://www.itu.int/oth/T02020000F3/en</sourceUrl>
24615       </references>
24616       <availableFormats>
24617         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24618           <leadingDigits>510</leadingDigits>
24619           <format>$1 $2 $3</format>
24620         </numberFormat>
24621         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
24622           <leadingDigits>510</leadingDigits>
24623           <format>$1 $2 $3 $4</format>
24624         </numberFormat>
24625         <!-- When only 8 digits follow the "area code" formatting as XXXX XXXX
24626              seems preferred (see Bandwidth.com and SipMe). -->
24627         <numberFormat pattern="(\d{4})(\d{4})(\d{4})">
24628           <leadingDigits>51[13]</leadingDigits>
24629           <format>$1 $2 $3</format>
24630         </numberFormat>
24631       </availableFormats>
24632       <generalDesc>
24633         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
24634              costs can be found online, so we don't include them here for now. -->
24635         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
24636         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
24637         <exampleNumber>510012345</exampleNumber>
24638       </generalDesc>
24639       <fixedLine>
24640         <nationalNumberPattern>NA</nationalNumberPattern>
24641         <possibleNumberPattern>NA</possibleNumberPattern>
24642       </fixedLine>
24643       <mobile>
24644         <nationalNumberPattern>NA</nationalNumberPattern>
24645         <possibleNumberPattern>NA</possibleNumberPattern>
24646       </mobile>
24647       <voip>
24648         <nationalNumberPattern>
24649           51(?:
24650             00\d{5}(?:\d{3})?|
24651             [13]0\d{8}
24652           )
24653         </nationalNumberPattern>
24654       </voip>
24655     </territory>
24656
24657     <!-- United Nations- OCHA -->
24658     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
24659          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
24660          the tariff of a national call. -->
24661     <territory id="001" countryCode="888" leadingZeroPossible="true">
24662       <references>
24663         <sourceUrl>http://www.itu.int/oth/T02020000FA/en</sourceUrl>
24664       </references>
24665       <availableFormats>
24666         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
24667           <format>$1 $2 $3</format>
24668         </numberFormat>
24669       </availableFormats>
24670       <generalDesc>
24671         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24672         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24673         <exampleNumber>12345678901</exampleNumber>
24674       </generalDesc>
24675       <fixedLine>
24676         <nationalNumberPattern>NA</nationalNumberPattern>
24677         <possibleNumberPattern>NA</possibleNumberPattern>
24678       </fixedLine>
24679       <mobile>
24680         <nationalNumberPattern>NA</nationalNumberPattern>
24681         <possibleNumberPattern>NA</possibleNumberPattern>
24682       </mobile>
24683       <uan>
24684         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24685       </uan>
24686     </territory>
24687
24688     <!-- Universal International Premium Rate Number -->
24689     <territory id="001" countryCode="979" leadingZeroPossible="true">
24690       <references>
24691         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24692       </references>
24693       <availableFormats>
24694         <numberFormat pattern="(\d)(\d{4})(\d{4})">
24695           <format>$1 $2 $3</format>
24696         </numberFormat>
24697       </availableFormats>
24698       <generalDesc>
24699         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24700         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24701         <exampleNumber>123456789</exampleNumber>
24702       </generalDesc>
24703       <fixedLine>
24704         <nationalNumberPattern>NA</nationalNumberPattern>
24705         <possibleNumberPattern>NA</possibleNumberPattern>
24706       </fixedLine>
24707       <mobile>
24708         <nationalNumberPattern>NA</nationalNumberPattern>
24709         <possibleNumberPattern>NA</possibleNumberPattern>
24710       </mobile>
24711       <premiumRate>
24712         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24713       </premiumRate>
24714     </territory>
24715   </territories>
24716 </phoneNumberMetadata>