cc70f1a836c694048a43df6a02e54d92564ead32
[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-467]\d{3}</nationalNumberPattern>
101         <possibleNumberPattern>\d{4}</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>NA</nationalNumberPattern>
116         <possibleNumberPattern>NA</possibleNumberPattern>
117       </mobile>
118     </territory>
119
120     <!-- Andorra -->
121     <territory id="AD" countryCode="376" internationalPrefix="00">
122       <references>
123         <sourceUrl>http://www.itu.int/oth/T0202000005/en</sourceUrl>
124       </references>
125       <availableFormats>
126         <numberFormat pattern="(\d{3})(\d{3})">
127           <leadingDigits>[346-9]</leadingDigits>
128           <format>$1 $2</format>
129         </numberFormat>
130         <numberFormat pattern="(180[02])(\d{4})">
131           <leadingDigits>1</leadingDigits>
132           <format>$1 $2</format>
133         </numberFormat>
134       </availableFormats>
135       <generalDesc>
136         <nationalNumberPattern>
137           (?:
138             [346-9]|
139             180
140           )\d{5}
141         </nationalNumberPattern>
142         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
143       </generalDesc>
144       <fixedLine>
145         <nationalNumberPattern>[78]\d{5}</nationalNumberPattern>
146         <possibleNumberPattern>\d{6}</possibleNumberPattern>
147         <exampleNumber>712345</exampleNumber>
148       </fixedLine>
149       <mobile>
150         <nationalNumberPattern>[346]\d{5}</nationalNumberPattern>
151         <possibleNumberPattern>\d{6}</possibleNumberPattern>
152         <exampleNumber>312345</exampleNumber>
153       </mobile>
154       <tollFree>
155         <!-- Note that the definitions of 1800 and 1802 numbers differ in the plan and on the
156              Andorran http://www.sta.ad website, but we consider both to be freephone here. -->
157         <nationalNumberPattern>180[02]\d{4}</nationalNumberPattern>
158         <possibleNumberPattern>\d{8}</possibleNumberPattern>
159         <exampleNumber>18001234</exampleNumber>
160       </tollFree>
161       <!-- The national numbering plan says that numbers beginning with 9 are reserved for special
162            services, so we assume they are premium rate here, although we cannot find examples
163            online. -->
164       <premiumRate>
165         <nationalNumberPattern>9\d{5}</nationalNumberPattern>
166         <possibleNumberPattern>\d{6}</possibleNumberPattern>
167         <exampleNumber>912345</exampleNumber>
168       </premiumRate>
169     </territory>
170
171     <!-- United Arab Emirates -->
172     <territory id="AE" countryCode="971" internationalPrefix="00"
173                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
174       <references>
175         <sourceUrl>http://www.itu.int/oth/T02020000DC/en</sourceUrl>
176       </references>
177       <availableFormats>
178         <numberFormat pattern="([2-4679])(\d{3})(\d{4})">
179           <leadingDigits>[2-4679][2-8]</leadingDigits>
180           <format>$1 $2 $3</format>
181         </numberFormat>
182         <numberFormat pattern="(5[0256])(\d{3})(\d{4})">
183           <leadingDigits>5</leadingDigits>
184           <format>$1 $2 $3</format>
185         </numberFormat>
186         <numberFormat pattern="([479]00)(\d)(\d{5})" nationalPrefixFormattingRule="$FG">
187           <leadingDigits>[479]0</leadingDigits>
188           <format>$1 $2 $3</format>
189         </numberFormat>
190         <numberFormat pattern="([68]00)(\d{2,9})" nationalPrefixFormattingRule="$FG">
191           <leadingDigits>
192             60|
193             8
194           </leadingDigits>
195           <format>$1 $2</format>
196         </numberFormat>
197       </availableFormats>
198       <generalDesc>
199         <nationalNumberPattern>
200           [2-79]\d{7,8}|
201           800\d{2,9}
202         </nationalNumberPattern>
203         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
204       </generalDesc>
205       <fixedLine>
206         <nationalNumberPattern>[2-4679][2-8]\d{6}</nationalNumberPattern>
207         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
208         <exampleNumber>22345678</exampleNumber>
209       </fixedLine>
210       <mobile>
211         <nationalNumberPattern>5[0256]\d{7}</nationalNumberPattern>
212         <possibleNumberPattern>\d{9}</possibleNumberPattern>
213         <exampleNumber>501234567</exampleNumber>
214       </mobile>
215       <tollFree>
216         <nationalNumberPattern>
217           400\d{6}|
218           800\d{2,9}
219         </nationalNumberPattern>
220         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
221         <exampleNumber>800123456</exampleNumber>
222       </tollFree>
223       <premiumRate>
224         <nationalNumberPattern>900[02]\d{5}</nationalNumberPattern>
225         <possibleNumberPattern>\d{9}</possibleNumberPattern>
226         <exampleNumber>900234567</exampleNumber>
227       </premiumRate>
228       <sharedCost>
229         <nationalNumberPattern>700[05]\d{5}</nationalNumberPattern>
230         <possibleNumberPattern>\d{9}</possibleNumberPattern>
231         <exampleNumber>700012345</exampleNumber>
232       </sharedCost>
233       <uan>
234         <nationalNumberPattern>600[25]\d{5}</nationalNumberPattern>
235         <possibleNumberPattern>\d{9}</possibleNumberPattern>
236         <exampleNumber>600212345</exampleNumber>
237       </uan>
238     </territory>
239
240     <!-- Afghanistan -->
241     <territory id="AF" countryCode="93" internationalPrefix="00"
242                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
243       <references>
244         <sourceUrl>http://www.itu.int/oth/T0202000001/en</sourceUrl>
245       </references>
246       <availableFormats>
247         <!-- Formatting based primarily on ITU document. -->
248         <numberFormat pattern="([2-7]\d)(\d{3})(\d{4})">
249           <leadingDigits>
250             [2-6]|
251             7[013-9]
252           </leadingDigits>
253           <format>$1 $2 $3</format>
254         </numberFormat>
255         <!-- Formatting 729 numbers differently based on numbers seen online. -->
256         <numberFormat pattern="(729)(\d{3})(\d{3})">
257           <leadingDigits>729</leadingDigits>
258           <format>$1 $2 $3</format>
259         </numberFormat>
260       </availableFormats>
261       <generalDesc>
262         <nationalNumberPattern>[2-7]\d{8}</nationalNumberPattern>
263         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
264       </generalDesc>
265       <fixedLine>
266         <nationalNumberPattern>
267           (?:
268             [25][0-8]|
269             [34][0-4]|
270             6[0-5]
271           )[2-9]\d{6}
272         </nationalNumberPattern>
273         <exampleNumber>234567890</exampleNumber>
274       </fixedLine>
275       <mobile>
276         <nationalNumberPattern>
277           7(?:
278             [05-9]\d{7}|
279             29\d{6}
280           )
281         </nationalNumberPattern>
282         <possibleNumberPattern>\d{9}</possibleNumberPattern>
283         <exampleNumber>701234567</exampleNumber>
284       </mobile>
285     </territory>
286
287     <!-- Antigua and Barbuda -->
288     <territory id="AG" countryCode="1" leadingDigits="268" nationalPrefix="1"
289                internationalPrefix="011">
290       <references>
291         <sourceUrl>http://www.itu.int/oth/T0202000008/en</sourceUrl>
292       </references>
293       <generalDesc>
294         <!-- NANPA country - uses US formatting rules -->
295         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
296         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
297       </generalDesc>
298       <fixedLine>
299         <!-- 268 468 is not in the plan, but has been added after numbers with this prefix have been
300              found in online searches. -->
301         <nationalNumberPattern>
302           268(?:
303             4(?:
304               6[0-38]|
305               84
306             )|
307             56[0-2]
308           )\d{4}
309         </nationalNumberPattern>
310         <exampleNumber>2684601234</exampleNumber>
311       </fixedLine>
312       <mobile>
313         <!-- 268 776/778/779 are not in the plan, but have been added after numbers with these
314              prefixes have been found in online searches. Same for 268 780/782/784/786. -->
315         <nationalNumberPattern>
316           268(?:
317             464|
318             7(?:
319               2[0-9]|
320               64|
321               7[0-689]|
322               8[02-68]
323             )
324           )\d{4}
325         </nationalNumberPattern>
326         <possibleNumberPattern>\d{10}</possibleNumberPattern>
327         <exampleNumber>2684641234</exampleNumber>
328       </mobile>
329       <pager>
330         <nationalNumberPattern>26840[69]\d{4}</nationalNumberPattern>
331         <possibleNumberPattern>\d{10}</possibleNumberPattern>
332         <exampleNumber>2684061234</exampleNumber>
333       </pager>
334       <tollFree>
335         <nationalNumberPattern>
336           8(?:
337             00|
338             44|
339             55|
340             66|
341             77|
342             88
343           )[2-9]\d{6}
344         </nationalNumberPattern>
345         <possibleNumberPattern>\d{10}</possibleNumberPattern>
346         <exampleNumber>8002123456</exampleNumber>
347       </tollFree>
348       <premiumRate>
349         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
350         <possibleNumberPattern>\d{10}</possibleNumberPattern>
351         <exampleNumber>9002123456</exampleNumber>
352       </premiumRate>
353       <personalNumber>
354         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
355         <nationalNumberPattern>
356           5(?:
357             00|
358             33|
359             44|
360             66|
361             77
362           )[2-9]\d{6}
363         </nationalNumberPattern>
364         <possibleNumberPattern>\d{10}</possibleNumberPattern>
365         <exampleNumber>5002345678</exampleNumber>
366       </personalNumber>
367       <voip>
368         <!-- This is included as Centrex in the plan. -->
369         <nationalNumberPattern>26848[01]\d{4}</nationalNumberPattern>
370         <possibleNumberPattern>\d{10}</possibleNumberPattern>
371         <exampleNumber>2684801234</exampleNumber>
372       </voip>
373     </territory>
374
375     <!-- Anguilla -->
376     <territory id="AI" countryCode="1" leadingDigits="264" nationalPrefix="1"
377                internationalPrefix="011">
378       <references>
379         <sourceUrl>http://www.itu.int/oth/T0202000007/en</sourceUrl>
380       </references>
381       <generalDesc>
382         <!-- NANPA country - uses US formatting rules -->
383         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
384         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
385       </generalDesc>
386       <fixedLine>
387         <nationalNumberPattern>
388           2644(?:
389             6[12]|
390             9[78]
391           )\d{4}
392         </nationalNumberPattern>
393         <exampleNumber>2644612345</exampleNumber>
394       </fixedLine>
395       <mobile>
396         <nationalNumberPattern>
397           264(?:
398             235|
399             476|
400             5(?:
401               3[6-9]|
402               8[1-4]
403             )|
404             7(?:
405               29|
406               72
407             )
408           )\d{4}
409         </nationalNumberPattern>
410         <possibleNumberPattern>\d{10}</possibleNumberPattern>
411         <exampleNumber>2642351234</exampleNumber>
412       </mobile>
413       <tollFree>
414         <nationalNumberPattern>
415           8(?:
416             00|
417             44|
418             55|
419             66|
420             77|
421             88
422           )[2-9]\d{6}
423         </nationalNumberPattern>
424         <possibleNumberPattern>\d{10}</possibleNumberPattern>
425         <exampleNumber>8002123456</exampleNumber>
426       </tollFree>
427       <premiumRate>
428         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
429         <possibleNumberPattern>\d{10}</possibleNumberPattern>
430         <exampleNumber>9002123456</exampleNumber>
431       </premiumRate>
432       <personalNumber>
433         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
434         <nationalNumberPattern>
435           5(?:
436             00|
437             33|
438             44|
439             66|
440             77
441           )[2-9]\d{6}
442         </nationalNumberPattern>
443         <possibleNumberPattern>\d{10}</possibleNumberPattern>
444         <exampleNumber>5002345678</exampleNumber>
445       </personalNumber>
446     </territory>
447
448     <!-- Albania -->
449     <territory id="AL" countryCode="355" internationalPrefix="00"
450                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
451                mobileNumberPortableRegion="true">
452       <references>
453         <sourceUrl>http://www.itu.int/oth/T0202000002/en</sourceUrl>
454       </references>
455       <availableFormats>
456         <!-- Formats mostly follow http://tirana.usembassy.gov/list_of_doctors.html -->
457         <numberFormat pattern="(4)(\d{3})(\d{4})">
458           <leadingDigits>4[0-6]</leadingDigits>
459           <format>$1 $2 $3</format>
460         </numberFormat>
461         <numberFormat pattern="(6[6-9])(\d{3})(\d{4})">
462           <leadingDigits>6</leadingDigits>
463           <format>$1 $2 $3</format>
464         </numberFormat>
465         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
466           <leadingDigits>
467             [2358][2-5]|
468             4[7-9]
469           </leadingDigits>
470           <format>$1 $2 $3</format>
471         </numberFormat>
472         <numberFormat pattern="(\d{3})(\d{3,5})">
473           <leadingDigits>
474             [235][16-9]|
475             8[016-9]|
476             [79]
477           </leadingDigits>
478           <format>$1 $2</format>
479         </numberFormat>
480       </availableFormats>
481       <generalDesc>
482         <nationalNumberPattern>
483           [2-57]\d{7}|
484           6\d{8}|
485           8\d{5,7}|
486           9\d{5}
487         </nationalNumberPattern>
488         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
489       </generalDesc>
490       <fixedLine>
491         <nationalNumberPattern>
492           (?:
493             2(?:
494               [168][1-9]|
495               [247]\d|
496               9[1-7]
497             )|
498             3(?:
499               1[1-3]|
500               [2-6]\d|
501               [79][1-8]|
502               8[1-9]
503             )|
504             4\d{2}|
505             5(?:
506               1[1-4]|
507               [2-578]\d|
508               6[1-5]|
509               9[1-7]
510             )|
511             8(?:
512               [19][1-5]|
513               [2-6]\d|
514               [78][1-7]
515             )
516           )\d{5}
517         </nationalNumberPattern>
518         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
519         <exampleNumber>22345678</exampleNumber>
520       </fixedLine>
521       <mobile>
522         <nationalNumberPattern>6[6-9]\d{7}</nationalNumberPattern>
523         <possibleNumberPattern>\d{9}</possibleNumberPattern>
524         <exampleNumber>661234567</exampleNumber>
525       </mobile>
526       <tollFree>
527         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
528         <possibleNumberPattern>\d{7}</possibleNumberPattern>
529         <exampleNumber>8001234</exampleNumber>
530       </tollFree>
531       <premiumRate>
532         <!-- It is named "Shared Revenue Services" in the plan, but as there is a separate "Shared
533              Cost Services", it is highly likely these numbers are premium rate numbers. No
534              information/example is found in the Internet. -->
535         <nationalNumberPattern>900\d{3}</nationalNumberPattern>
536         <possibleNumberPattern>\d{6}</possibleNumberPattern>
537         <exampleNumber>900123</exampleNumber>
538       </premiumRate>
539       <sharedCost>
540         <nationalNumberPattern>808\d{3}</nationalNumberPattern>
541         <possibleNumberPattern>\d{6}</possibleNumberPattern>
542         <exampleNumber>808123</exampleNumber>
543       </sharedCost>
544       <personalNumber>
545         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
546         <possibleNumberPattern>\d{8}</possibleNumberPattern>
547         <exampleNumber>70012345</exampleNumber>
548       </personalNumber>
549     </territory>
550
551     <!-- Armenia -->
552     <!-- We think the national dialling prefix is 0 - it seems this was a change in 2005 (or 2008)
553          along with the new city codes. However, their official document makes no mention of it,
554          websites disagree, and we are not sure if the change has actually been made. -->
555     <territory id="AM" countryCode="374" internationalPrefix="00"
556                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
557                mobileNumberPortableRegion="true" >
558       <references>
559         <sourceUrl>http://www.itu.int/oth/T020200000A/en</sourceUrl>
560         <sourceUrl>http://en.wikipedia.org/wiki/%2B374</sourceUrl>
561         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nagorno-Karabakh_Republic</sourceUrl>
562       </references>
563       <availableFormats>
564         <numberFormat pattern="(\d{2})(\d{6})">
565           <leadingDigits>
566             1|
567             47
568           </leadingDigits>
569           <format>$1 $2</format>
570         </numberFormat>
571         <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
572           <leadingDigits>
573             4[139]|
574             [5-7]|
575             9[1-9]
576           </leadingDigits>
577           <format>$1 $2</format>
578         </numberFormat>
579         <numberFormat pattern="(\d{3})(\d{5})">
580           <leadingDigits>[23]</leadingDigits>
581           <format>$1 $2</format>
582         </numberFormat>
583         <numberFormat pattern="(\d{3})(\d{2})(\d{3})" nationalPrefixFormattingRule="$NP $FG">
584           <leadingDigits>
585             8|
586             90
587           </leadingDigits>
588           <format>$1 $2 $3</format>
589         </numberFormat>
590       </availableFormats>
591       <generalDesc>
592         <nationalNumberPattern>[1-9]\d{7}</nationalNumberPattern>
593         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
594       </generalDesc>
595       <fixedLine>
596         <!-- Includes telephone numbers in Nagorno-Karabakh Republic, physically located inside
597              Azerbaijan, which use prefix 47. -->
598         <nationalNumberPattern>
599           (?:
600             1[01]\d|
601             2(?:
602               2[2-46]|
603               3[1-8]|
604               4[2-69]|
605               5[2-7]|
606               6[1-9]|
607               8[1-7]
608             )|
609             3[12]2|
610             47\d
611           )\d{5}
612         </nationalNumberPattern>
613         <exampleNumber>10123456</exampleNumber>
614       </fixedLine>
615       <mobile>
616         <!-- Part of the range 97 is used by Nagorno-Karabakh Republic. -->
617         <nationalNumberPattern>
618           (?:
619             4[139]|
620             55|
621             77|
622             9[1-9]
623           )\d{6}
624         </nationalNumberPattern>
625         <possibleNumberPattern>\d{8}</possibleNumberPattern>
626         <exampleNumber>77123456</exampleNumber>
627       </mobile>
628       <tollFree>
629         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
630         <possibleNumberPattern>\d{8}</possibleNumberPattern>
631         <exampleNumber>80012345</exampleNumber>
632       </tollFree>
633       <premiumRate>
634         <nationalNumberPattern>90[016]\d{5}</nationalNumberPattern>
635         <possibleNumberPattern>\d{8}</possibleNumberPattern>
636         <exampleNumber>90012345</exampleNumber>
637       </premiumRate>
638       <sharedCost>
639         <nationalNumberPattern>80[1-4]\d{5}</nationalNumberPattern>
640         <possibleNumberPattern>\d{8}</possibleNumberPattern>
641         <exampleNumber>80112345</exampleNumber>
642       </sharedCost>
643       <voip>
644         <nationalNumberPattern>60[2-6]\d{5}</nationalNumberPattern>
645         <possibleNumberPattern>\d{8}</possibleNumberPattern>
646         <exampleNumber>60271234</exampleNumber>
647       </voip>
648     </territory>
649
650     <!-- Angola -->
651     <territory id="AO" countryCode="244" internationalPrefix="00">
652       <references>
653         <sourceUrl>http://www.itu.int/oth/T0202000006/en</sourceUrl>
654       </references>
655       <availableFormats>
656         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
657           <format>$1 $2 $3</format>
658         </numberFormat>
659       </availableFormats>
660       <generalDesc>
661         <nationalNumberPattern>[29]\d{8}</nationalNumberPattern>
662         <possibleNumberPattern>\d{9}</possibleNumberPattern>
663       </generalDesc>
664       <fixedLine>
665         <nationalNumberPattern>
666           2\d(?:
667             [26-9]\d|
668             \d[26-9]
669           )\d{5}
670         </nationalNumberPattern>
671         <exampleNumber>222123456</exampleNumber>
672       </fixedLine>
673       <mobile>
674         <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel
675              apparently launched the prefix 94 on 25th April 2012, and Movicel has 99. -->
676         <nationalNumberPattern>9[1-49]\d{7}</nationalNumberPattern>
677         <exampleNumber>923123456</exampleNumber>
678       </mobile>
679     </territory>
680
681     <!-- Argentina -->
682     <!-- The national prefix for parsing here consists of a 0 (optional), followed by the area code
683          (which is captured, so that it can be retained), followed by 15, which is the mobile token,
684          which will be stripped if present. We expect the following combinations: 0AC15 and AC15
685          (where the 0 and 15 will be stripped, and it will be transformed into 9AC), 0, and 15 (in
686          the latter two cases we just strip the 0 or 15 as appropriate and leave the number as is.)
687          -->
688     <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
689        nationalPrefixForParsing="
690          0?(?:
691            (11|
692             2(?:
693               2(?:
694                 02?|
695                 [13]|
696                 2[13-79]|
697                 4[1-6]|
698                 5[2457]|
699                 6[124-8]|
700                 7[1-4]|
701                 8[13-6]|
702                 9[1267]
703               )|
704               3(?:
705                 02?|
706                 1[467]|
707                 2[03-6]|
708                 3[13-8]|
709                 [49][2-6]|
710                 5[2-8]|
711                 [67]
712               )|
713               4(?:
714                 7[3-578]|
715                 9
716               )|
717               6(?:
718                 [0136]|
719                 2[24-6]|
720                 4[6-8]?|
721                 5[15-8]
722               )|
723               80|
724               9(?:
725                 0[1-3]|
726                 [19]|
727                 2\d|
728                 3[1-6]|
729                 4[02568]?|
730                 5[2-4]|
731                 6[2-46]|
732                 72?|
733                 8[23]?
734               )
735            )|
736            3(?:
737              3(?:
738                2[79]|
739                6|
740                8[2578]
741              )|
742              4(?:
743                0[124-9]|
744                [12]|
745                3[5-8]?|
746                4[24-7]|
747                5[4-68]?|
748                6[02-9]|
749                7[126]|
750                8[2379]?|
751                9[1-36-8]
752              )|
753              5(?:
754                1|
755                2[1245]|
756                3[237]?|
757                4[1-46-9]|
758                6[2-4]|
759                7[1-6]|
760                8[2-5]?
761              )|
762              6[24]|
763              7(?:
764                1[1568]|
765                2[15]|
766                3[145]|
767                4[13]|
768                5[14-8]|
769                [069]|
770                7[2-57]|
771                8[126]
772              )|
773              8(?:
774                [01]|
775                2[15-7]|
776                3[2578]?|
777                4[13-6]|
778                5[4-8]?|
779                6[1-357-9]|
780                7[36-8]?|
781                8[5-8]?|
782                9[124]
783              )
784            )
785          )?15
786        )?"
787        nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG"
788        mobileNumberPortableRegion="true">
789       <references>
790         <sourceUrl>http://www.itu.int/oth/T0202000009/en</sourceUrl>
791         <!-- On the following link, click on Indicativos Interurbanos to access detailed
792              information. -->
793         <sourceUrl>http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp</sourceUrl>
794         <sourceUrl>http://en.wikipedia.org/wiki/+54</sourceUrl>
795       </references>
796       <availableFormats>
797         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
798           <leadingDigits>[68]</leadingDigits>
799           <format>$1-$2-$3</format>
800         </numberFormat>
801         <!-- Format local numbers in two groups. The leading digits are 2-9 since the ITU document
802              says that the digit zero and one will not be present at the start of the subscriber
803              number (which starts with an "Exchange characteristic"). -->
804         <numberFormat pattern="(\d{2})(\d{4})" nationalPrefixFormattingRule="$FG">
805           <leadingDigits>[2-9]</leadingDigits>
806           <format>$1-$2</format>
807           <intlFormat>NA</intlFormat>
808         </numberFormat>
809         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
810           <leadingDigits>[2-9]</leadingDigits>
811           <format>$1-$2</format>
812           <intlFormat>NA</intlFormat>
813         </numberFormat>
814         <numberFormat pattern="(\d{4})(\d{4})" nationalPrefixFormattingRule="$FG">
815           <leadingDigits>[2-9]</leadingDigits>
816           <format>$1-$2</format>
817           <intlFormat>NA</intlFormat>
818         </numberFormat>
819         <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
820           <leadingDigits>911</leadingDigits>
821           <format>$2 15-$3-$4</format>
822           <intlFormat>$1 $2 $3-$4</intlFormat>
823         </numberFormat>
824         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
825           <!-- Some 4-digit area codes actually are caught by this rule. Preference is given however
826                to the 3-digit area codes, since they are considerably larger communities. -->
827           <leadingDigits>
828             9(?:
829               2[234689]|
830               3[3-8]
831             )
832           </leadingDigits>
833           <leadingDigits>
834             9(?:
835               2(?:
836                 2[013]|
837                 3[067]|
838                 49|
839                 6[01346]|
840                 80|
841                 9[147-9]
842               )|
843               3(?:
844                 36|
845                 4[12358]|
846                 5[138]|
847                 6[24]|
848                 7[069]|
849                 8[013578]
850               )
851             )
852           </leadingDigits>
853           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948,
854                2983, and several 38[3578]X four-digit area codes. -->
855           <leadingDigits>
856             9(?:
857               2(?:
858                 2[013]|
859                 3[067]|
860                 49|
861                 6[01346]|
862                 80|
863                 9(?:
864                   [179]|
865                   4[13479]|
866                   8[0-24-9]
867                 )
868               )|
869               3(?:
870                 36|
871                 4[12358]|
872                 5(?:
873                   [18]|
874                   3[014-689]
875                 )|
876                 6[24]|
877                 7[069]|
878                 8(?:
879                   [01]|
880                   3[013469]|
881                   5[0-39]|
882                   7[0-2459]|
883                   8[0-49]
884                 )
885               )
886             )
887           </leadingDigits>
888           <format>$2 15-$3-$4</format>
889           <intlFormat>$1 $2 $3-$4</intlFormat>
890         </numberFormat>
891         <!-- Both 4-3-3 and 4-2-4 have been seen online; we prefer the latter since it matches the
892              Argentinian ITU doc and wikipedia. -->
893         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
894           <leadingDigits>9[23]</leadingDigits>
895           <format>$2 15-$3-$4</format>
896           <intlFormat>$1 $2 $3-$4</intlFormat>
897         </numberFormat>
898         <numberFormat pattern="(11)(\d{4})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
899           <leadingDigits>1</leadingDigits>
900           <format>$1 $2-$3</format>
901         </numberFormat>
902         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
903         <numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
904           <leadingDigits>
905             2(?:
906               2[013]|
907               3[067]|
908               49|
909               6[01346]|
910               80|
911               9[147-9]
912             )|
913             3(?:
914               36|
915               4[12358]|
916               5[138]|
917               6[24]|
918               7[069]|
919               8[013578]
920             )
921           </leadingDigits>
922           <!-- Several 294X four-digit area codes exist: 2940, 2942, 2945, 2946 and 2948. -->
923           <leadingDigits>
924             2(?:
925               2[013]|
926               3[067]|
927               49|
928               6[01346]|
929               80|
930               9(?:
931                 [17-9]|
932                 4[13479]
933               )
934             )|
935             3(?:
936               36|
937               4[12358]|
938               5(?:
939                 [18]|
940                 3[0-689]
941               )|
942               6[24]|
943               7[069]|
944               8(?:
945                 [01]|
946                 3[013469]|
947                 5[0-39]|
948                 7[0-2459]|
949                 8[0-49]
950               )
951             )
952           </leadingDigits>
953           <format>$1 $2-$3</format>
954         </numberFormat>
955         <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
956           <leadingDigits>[23]</leadingDigits>
957           <format>$1 $2-$3</format>
958         </numberFormat>
959         <!-- Format short numbers as a block. -->
960         <numberFormat pattern="(\d{3})" nationalPrefixFormattingRule="$FG">
961           <leadingDigits>
962             1[012]|
963             911
964           </leadingDigits>
965           <format>$1</format>
966           <intlFormat>NA</intlFormat>
967         </numberFormat>
968       </availableFormats>
969       <generalDesc>
970         <!-- We restrict the second digit after 1 here so we can recognise and strip the 15 mobile
971            carrier prefix when we see it. -->
972         <nationalNumberPattern>
973           11\d{8}|
974           [2368]\d{9}|
975           9\d{10}
976         </nationalNumberPattern>
977         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
978       </generalDesc>
979       <noInternationalDialling>
980         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
981         <possibleNumberPattern>\d{10}</possibleNumberPattern>
982         <exampleNumber>8101234567</exampleNumber>
983       </noInternationalDialling>
984       <fixedLine>
985         <!-- Also covering fixed satellite service numbers (670). -->
986         <nationalNumberPattern>
987           11\d{8}|
988           (?:
989             2(?:
990               2(?:
991                 [013]\d|
992                 2[13-79]|
993                 4[1-6]|
994                 5[2457]|
995                 6[124-8]|
996                 7[1-4]|
997                 8[13-6]|
998                 9[1267]
999               )|
1000               3(?:
1001                 1[467]|
1002                 2[03-6]|
1003                 3[13-8]|
1004                 [49][2-6]|
1005                 5[2-8]|
1006                 [067]\d
1007               )|
1008               4(?:
1009                 7[3-8]|
1010                 9\d
1011               )|
1012               6(?:
1013                 [01346]\d|
1014                 2[24-6]|
1015                 5[15-8]
1016               )|
1017               80\d|
1018               9(?:
1019                 [0124789]\d|
1020                 3[1-6]|
1021                 5[234]|
1022                 6[2-46]
1023               )
1024             )|
1025             3(?:
1026               3(?:
1027                 2[79]|
1028                 6\d|
1029                 8[2578]
1030               )|
1031               4(?:
1032                 [78]\d|
1033                 0[0124-9]|
1034                 [1-35]\d|
1035                 4[24-7]|
1036                 6[02-9]|
1037                 9[123678]
1038               )|
1039               5(?:
1040                 [138]\d|
1041                 2[1245]|
1042                 4[1-9]|
1043                 6[2-4]|
1044                 7[1-6]
1045               )|
1046               6[24]\d|
1047               7(?:
1048                 [0469]\d|
1049                 1[1568]|
1050                 2[013-9]|
1051                 3[145]|
1052                 5[14-8]|
1053                 7[2-57]|
1054                 8[0-24-9]
1055               )|
1056               8(?:
1057                 [013578]\d|
1058                 2[15-7]|
1059                 4[13-6]|
1060                 6[1-357-9]|
1061                 9[124]
1062               )
1063             )|
1064             670\d
1065           )\d{6}
1066         </nationalNumberPattern>
1067         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1068         <exampleNumber>1123456789</exampleNumber>
1069       </fixedLine>
1070       <mobile>
1071         <!-- Also covers mobile satellite services (675 numbers). -->
1072         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
1073              area code is in the range 2-9. The four-digit area-code checking is done in detail if
1074              we attempt to strip the caller-pays token (15) from the number. -->
1075         <nationalNumberPattern>
1076           675\d{7}|
1077           9(?:
1078             11[2-9]\d{7}|
1079             (?:
1080               2(?:
1081                 2[013]|
1082                 3[067]|
1083                 49|
1084                 6[01346]|
1085                 80|
1086                 9[147-9]
1087               )|
1088               3(?:
1089                 36|
1090                 4[12358]|
1091                 5[138]|
1092                 6[24]|
1093                 7[069]|
1094                 8[013578]
1095               )
1096             )[2-9]\d{6}|
1097             \d{4}[2-9]\d{5}
1098           )
1099         </nationalNumberPattern>
1100         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1101         <exampleNumber>91123456789</exampleNumber>
1102       </mobile>
1103       <tollFree>
1104         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
1105         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1106         <exampleNumber>8001234567</exampleNumber>
1107       </tollFree>
1108       <premiumRate>
1109         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
1110         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1111         <exampleNumber>6001234567</exampleNumber>
1112       </premiumRate>
1113       <uan>
1114         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1115         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1116         <exampleNumber>8101234567</exampleNumber>
1117       </uan>
1118     </territory>
1119
1120     <!-- American Samoa -->
1121     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
1122                internationalPrefix="011">
1123       <references>
1124         <sourceUrl>http://www.itu.int/oth/T0202000004/en</sourceUrl>
1125       </references>
1126       <generalDesc>
1127         <!-- NANPA country - uses US formatting rules -->
1128         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
1129         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1130       </generalDesc>
1131       <fixedLine>
1132         <nationalNumberPattern>
1133           6846(?:
1134             22|
1135             33|
1136             44|
1137             55|
1138             77|
1139             88|
1140             9[19]
1141           )\d{4}
1142         </nationalNumberPattern>
1143         <exampleNumber>6846221234</exampleNumber>
1144       </fixedLine>
1145       <mobile>
1146         <!-- Added 25[246], operated from Blue Sky. Added 731, 770, operated by ASTCA. -->
1147         <nationalNumberPattern>
1148           684(?:
1149             25[2468]|
1150             7(?:
1151               3[13]|
1152               70
1153             )
1154           )\d{4}
1155         </nationalNumberPattern>
1156         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1157         <exampleNumber>6847331234</exampleNumber>
1158       </mobile>
1159       <tollFree>
1160         <nationalNumberPattern>
1161           8(?:
1162             00|
1163             44|
1164             55|
1165             66|
1166             77|
1167             88
1168           )[2-9]\d{6}
1169         </nationalNumberPattern>
1170         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1171         <exampleNumber>8002123456</exampleNumber>
1172       </tollFree>
1173       <premiumRate>
1174         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1175         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1176         <exampleNumber>9002123456</exampleNumber>
1177       </premiumRate>
1178       <personalNumber>
1179         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1180         <nationalNumberPattern>
1181           5(?:
1182             00|
1183             33|
1184             44|
1185             66|
1186             77
1187           )[2-9]\d{6}
1188         </nationalNumberPattern>
1189         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1190         <exampleNumber>5002345678</exampleNumber>
1191       </personalNumber>
1192     </territory>
1193
1194     <!-- Austria -->
1195     <territory id="AT" countryCode="43" internationalPrefix="00"
1196                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1197                mobileNumberPortableRegion="true">
1198       <references>
1199         <sourceUrl>http://www.rtr.at/en/tk/E129</sourceUrl>
1200       </references>
1201       <availableFormats>
1202         <numberFormat pattern="(1)(\d{3,12})">
1203           <leadingDigits>1</leadingDigits>
1204           <format>$1 $2</format>
1205         </numberFormat>
1206         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
1207              found on Austrian web pages. -->
1208         <numberFormat pattern="(5\d)(\d{3,5})">
1209           <leadingDigits>5[079]</leadingDigits>
1210           <format>$1 $2</format>
1211         </numberFormat>
1212         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
1213           <leadingDigits>5[079]</leadingDigits>
1214           <format>$1 $2 $3</format>
1215         </numberFormat>
1216         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
1217           <leadingDigits>5[079]</leadingDigits>
1218           <format>$1 $2 $3</format>
1219         </numberFormat>
1220         <numberFormat pattern="(\d{3})(\d{3,10})">
1221           <leadingDigits>
1222             316|
1223             46|
1224             51|
1225             732|
1226             6(?:
1227               44|
1228               5[0-3579]|
1229               [6-9]
1230             )|
1231             7(?:
1232               1|
1233               [28]0
1234             )|
1235             [89]
1236           </leadingDigits>
1237           <format>$1 $2</format>
1238         </numberFormat>
1239         <numberFormat pattern="(\d{4})(\d{3,9})">
1240           <leadingDigits>
1241             2|
1242             3(?:
1243               1[1-578]|
1244               [3-8]
1245             )|
1246             4[2378]|
1247             5[2-6]|
1248             6(?:
1249               [12]|
1250               4[1-35-9]|
1251               5[468]
1252             )|
1253             7(?:
1254               2[1-8]|
1255               35|
1256               4[1-8]|
1257               [5-79]
1258             )
1259           </leadingDigits>
1260             <format>$1 $2</format>
1261           </numberFormat>
1262       </availableFormats>
1263       <generalDesc>
1264         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
1265         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
1266       </generalDesc>
1267       <fixedLine>
1268         <!-- Note that the full area code is not validated - just the first 3 digits. This also
1269              means that even though for most Austrian numbers the minimum length is 7, we allow 6
1270              since we don't differentiate below between 3 and 4 digit area codes for reasons of
1271              efficiency. -->
1272         <nationalNumberPattern>
1273           1\d{3,12}|
1274           (?:
1275             2(?:
1276               1[467]|
1277               2[13-8]|
1278               5[2357]|
1279               6[1-46-8]|
1280               7[1-8]|
1281               8[124-7]|
1282               9[1458]
1283             )|
1284             3(?:
1285               1[1-8]|
1286               3[23568]|
1287               4[5-7]|
1288               5[1378]|
1289               6[1-38]|
1290               8[3-68]
1291             )|
1292             4(?:
1293               2[1-8]|
1294               35|
1295               63|
1296               7[1368]|
1297               8[2457]
1298             )|
1299             5(?:
1300               12|
1301               2[1-8]|
1302               3[357]|
1303               4[147]|
1304               5[12578]|
1305               6[37]
1306             )|
1307             6(?:
1308               13|
1309               2[1-47]|
1310               4[1-35-8]|
1311               5[468]|
1312               62
1313             )|
1314             7(?:
1315               2[1-8]|
1316               3[25]|
1317               4[13478]|
1318               5[68]|
1319               6[16-8]|
1320               7[1-6]|
1321               9[45]
1322             )
1323           )\d{3,10}
1324         </nationalNumberPattern>
1325         <exampleNumber>1234567890</exampleNumber>
1326       </fixedLine>
1327       <mobile>
1328         <nationalNumberPattern>
1329           6(?:
1330             44|
1331             5[0-3579]|
1332             6[013-9]|
1333             [7-9]\d
1334           )\d{4,10}
1335         </nationalNumberPattern>
1336         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
1337         <exampleNumber>644123456</exampleNumber>
1338       </mobile>
1339       <tollFree>
1340         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
1341         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1342         <exampleNumber>800123456</exampleNumber>
1343       </tollFree>
1344       <premiumRate>
1345         <nationalNumberPattern>
1346           (?:
1347             711|
1348             9(?:
1349               0[01]|
1350               3[019]
1351             )
1352           )\d{6,10}
1353         </nationalNumberPattern>
1354         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1355         <exampleNumber>900123456</exampleNumber>
1356       </premiumRate>
1357       <sharedCost>
1358         <nationalNumberPattern>
1359           8(?:
1360             10|
1361             2[018]
1362           )\d{6,10}
1363         </nationalNumberPattern>
1364         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1365         <exampleNumber>810123456</exampleNumber>
1366       </sharedCost>
1367       <voip>
1368         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
1369         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1370         <exampleNumber>780123456</exampleNumber>
1371       </voip>
1372       <uan>
1373         <nationalNumberPattern>
1374           5(?:
1375             (?:
1376               0[1-9]|
1377               17
1378             )\d{2,10}|
1379             [79]\d{3,11}
1380           )|
1381           720\d{6,10}
1382         </nationalNumberPattern>
1383         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
1384         <exampleNumber>50123</exampleNumber>
1385       </uan>
1386     </territory>
1387
1388     <!-- Australia -->
1389     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
1390     <territory id="AU" countryCode="61" mainCountryForCode="true"
1391                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
1392                preferredInternationalPrefix="0011" nationalPrefix="0"
1393                mobileNumberPortableRegion="true">
1394       <references>
1395         <sourceUrl>http://www.itu.int/oth/T020200000D/en</sourceUrl>
1396         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
1397       </references>
1398       <availableFormats>
1399         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
1400           pattern="([2378])(\d{4})(\d{4})">
1401           <leadingDigits>[2378]</leadingDigits>
1402           <format>$1 $2 $3</format>
1403         </numberFormat>
1404         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1405           pattern="(\d{3})(\d{3})(\d{3})">
1406           <leadingDigits>
1407             [45]|
1408             14
1409           </leadingDigits>
1410           <format>$1 $2 $3</format>
1411         </numberFormat>
1412         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1413           pattern="(16)(\d{3})(\d{2,4})">
1414           <leadingDigits>16</leadingDigits>
1415           <format>$1 $2 $3</format>
1416         </numberFormat>
1417         <numberFormat nationalPrefixFormattingRule="$FG"
1418           pattern="(1[389]\d{2})(\d{3})(\d{3})">
1419           <leadingDigits>
1420             1(?:
1421               [38]0|
1422               90
1423             )
1424           </leadingDigits>
1425           <leadingDigits>
1426             1(?:
1427               [38]00|
1428               90
1429             )
1430           </leadingDigits>
1431           <format>$1 $2 $3</format>
1432         </numberFormat>
1433         <numberFormat nationalPrefixFormattingRule="$FG"
1434           pattern="(180)(2\d{3})">
1435           <leadingDigits>180</leadingDigits>
1436           <leadingDigits>1802</leadingDigits>
1437           <format>$1 $2</format>
1438         </numberFormat>
1439         <numberFormat nationalPrefixFormattingRule="$FG"
1440           pattern="(19\d)(\d{3})">
1441           <leadingDigits>19[13]</leadingDigits>
1442           <format>$1 $2</format>
1443         </numberFormat>
1444         <numberFormat nationalPrefixFormattingRule="$FG"
1445           pattern="(19\d{2})(\d{4})">
1446           <leadingDigits>19[67]</leadingDigits>
1447           <format>$1 $2</format>
1448         </numberFormat>
1449         <numberFormat nationalPrefixFormattingRule="$FG"
1450           pattern="(13)(\d{2})(\d{2})">
1451           <leadingDigits>13[1-9]</leadingDigits>
1452           <format>$1 $2 $3</format>
1453         </numberFormat>
1454       </availableFormats>
1455       <generalDesc>
1456         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
1457         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1458       </generalDesc>
1459       <noInternationalDialling>
1460         <nationalNumberPattern>
1461           1(?:
1462             3(?:
1463               \d{4}|
1464               00\d{6}
1465             )|
1466             80(?:
1467               0\d{6}|
1468               2\d{3}
1469             )
1470           )
1471         </nationalNumberPattern>
1472         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1473         <exampleNumber>1300123456</exampleNumber>
1474       </noInternationalDialling>
1475       <fixedLine>
1476         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
1477         <nationalNumberPattern>
1478           [237]\d{8}|
1479           8(?:
1480             [68]\d{3}|
1481             7[0-69]\d{2}|
1482             9(?:
1483               [02-9]\d{2}|
1484               1(?:
1485                 [0-57-9]\d|
1486                 6[0135-9]
1487               )
1488             )
1489           )\d{4}
1490         </nationalNumberPattern>
1491         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1492         <exampleNumber>212345678</exampleNumber>
1493       </fixedLine>
1494       <mobile>
1495         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
1496              other ranges 14[1-3] are not currently used. -->
1497         <nationalNumberPattern>
1498           14(?:
1499             5\d|
1500             71
1501           )\d{5}|
1502           4(?:
1503             [0-2]\d|
1504             3[0-57-9]|
1505             4[47-9]|
1506             5[0-25-9]|
1507             6[6-9]|
1508             7[0457-9]|
1509             8[17-9]|
1510             9[07-9]
1511           )\d{6}
1512         </nationalNumberPattern>
1513         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1514         <exampleNumber>412345678</exampleNumber>
1515       </mobile>
1516       <pager>
1517         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
1518         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
1519         <exampleNumber>1612345</exampleNumber>
1520       </pager>
1521       <tollFree>
1522         <nationalNumberPattern>
1523           180(?:
1524             0\d{3}|
1525             2
1526           )\d{3}
1527         </nationalNumberPattern>
1528         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1529         <exampleNumber>1800123456</exampleNumber>
1530       </tollFree>
1531       <premiumRate>
1532         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
1533         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1534         <exampleNumber>1900123456</exampleNumber>
1535       </premiumRate>
1536       <sharedCost>
1537       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
1538            although they charge a small local call connect fee (around 25c). These start with 13
1539            or 1300. -->
1540         <nationalNumberPattern>
1541           13(?:
1542             00\d{2}
1543           )?\d{4}
1544         </nationalNumberPattern>
1545         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1546         <exampleNumber>1300123456</exampleNumber>
1547       </sharedCost>
1548       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
1549            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
1550            from 0500000000 to 0590000000) -->
1551       <personalNumber>
1552         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
1553         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1554         <exampleNumber>500123456</exampleNumber>
1555       </personalNumber>
1556       <voip>
1557         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
1558         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1559         <exampleNumber>550123456</exampleNumber>
1560       </voip>
1561     </territory>
1562
1563     <!-- Aruba -->
1564     <territory id="AW" countryCode="297" internationalPrefix="00">
1565       <references>
1566         <sourceUrl>http://www.itu.int/oth/T020200000B/en</sourceUrl>
1567       </references>
1568       <availableFormats>
1569         <numberFormat pattern="(\d{3})(\d{4})">
1570           <format>$1 $2</format>
1571         </numberFormat>
1572       </availableFormats>
1573       <generalDesc>
1574         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
1575         <possibleNumberPattern>\d{7}</possibleNumberPattern>
1576       </generalDesc>
1577       <fixedLine>
1578         <nationalNumberPattern>
1579           5(?:
1580             2\d|
1581             8[1-9]
1582           )\d{4}
1583         </nationalNumberPattern>
1584         <exampleNumber>5212345</exampleNumber>
1585       </fixedLine>
1586       <mobile>
1587         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
1588              numbers found online. -->
1589         <nationalNumberPattern>
1590           (?:
1591             5(?:
1592               6\d|
1593               9[2-478]
1594             )|
1595             6(?:
1596               [039]0|
1597               22|
1598               4[01]|
1599               6[0-2]
1600             )|
1601             7[34]\d|
1602             9(?:
1603               6[45]|
1604               9[4-8]
1605             )
1606           )\d{4}
1607         </nationalNumberPattern>
1608         <exampleNumber>5601234</exampleNumber>
1609       </mobile>
1610       <tollFree>
1611         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
1612         <exampleNumber>8001234</exampleNumber>
1613       </tollFree>
1614       <premiumRate>
1615         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
1616         <exampleNumber>9001234</exampleNumber>
1617       </premiumRate>
1618       <voip>
1619         <nationalNumberPattern>
1620           28\d{5}|
1621           501\d{4}
1622         </nationalNumberPattern>
1623         <exampleNumber>5011234</exampleNumber>
1624       </voip>
1625     </territory>
1626
1627     <!-- Ã…land Islands. -->
1628     <!-- Metadata shared with Finland. -->
1629     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
1630                nationalPrefixFormattingRule="$NP$FG">
1631       <references>
1632         <sourceUrl>http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html</sourceUrl>
1633       </references>
1634       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
1635       <generalDesc>
1636         <nationalNumberPattern>
1637           [135]\d{5,9}|
1638           [27]\d{4,9}|
1639           4\d{5,10}|
1640           6\d{7,8}|
1641           8\d{6,9}
1642         </nationalNumberPattern>
1643         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
1644       </generalDesc>
1645       <noInternationalDialling>
1646         <!-- According to the national numbering plan, service numbers are in general not accessible
1647              from abroad, although 600/700/800 numbers may be. -->
1648         <nationalNumberPattern>
1649           [13]00\d{3,7}|
1650           2(?:
1651             0(?:
1652               0\d{3,7}|
1653               2[023]\d{1,6}|
1654               9[89]\d{1,6}
1655             )
1656           )|
1657           60(?:
1658             [12]\d{5,6}|
1659             6\d{7}
1660           )|
1661           7(?:
1662             1\d{7}|
1663             3\d{8}|
1664             5[03-9]\d{2,7}
1665           )
1666         </nationalNumberPattern>
1667         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1668         <exampleNumber>100123</exampleNumber>
1669       </noInternationalDialling>
1670       <fixedLine>
1671         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
1672         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
1673         <exampleNumber>1812345678</exampleNumber>
1674       </fixedLine>
1675       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
1676       <mobile>
1677         <nationalNumberPattern>
1678           4\d{5,10}|
1679           50\d{4,8}
1680         </nationalNumberPattern>
1681         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1682         <exampleNumber>412345678</exampleNumber>
1683       </mobile>
1684       <tollFree>
1685         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
1686         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1687         <exampleNumber>8001234567</exampleNumber>
1688       </tollFree>
1689       <premiumRate>
1690         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
1691         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1692         <exampleNumber>600123456</exampleNumber>
1693       </premiumRate>
1694       <uan>
1695         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
1696              assigned to institutions such as universities, the national post, etc, where they are
1697              not otherwise classified as toll-free or premium-rate numbers. -->
1698         <nationalNumberPattern>
1699           [13]0\d{4,8}|
1700           2(?:
1701             0(?:
1702               [016-8]\d{3,7}|
1703               [2-59]\d{2,7}
1704             )|
1705             9\d{4,8}
1706           )|
1707           60(?:
1708             [12]\d{5,6}|
1709             6\d{7}
1710           )|
1711           7(?:
1712             1\d{7}|
1713             3\d{8}|
1714             5[03-9]\d{2,7}
1715           )
1716         </nationalNumberPattern>
1717         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1718         <exampleNumber>10112345</exampleNumber>
1719       </uan>
1720     </territory>
1721
1722     <!-- Azerbaijan -->
1723     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
1724                nationalPrefixFormattingRule="($NP$FG)" mobileNumberPortableRegion="true">
1725       <references>
1726         <sourceUrl>http://www.itu.int/oth/T020200000F/en</sourceUrl>
1727       </references>
1728       <availableFormats>
1729         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
1730           <leadingDigits>
1731             (?:
1732               1[28]|
1733               2(?:
1734                 [45]2|
1735                 [0-36]
1736               )|
1737               365
1738             )
1739           </leadingDigits>
1740           <format>$1 $2 $3 $4</format>
1741         </numberFormat>
1742         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
1743           <leadingDigits>[4-8]</leadingDigits>
1744           <format>$1 $2 $3 $4</format>
1745         </numberFormat>
1746         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
1747           nationalPrefixFormattingRule="$NP$FG">
1748           <leadingDigits>9</leadingDigits>
1749           <format>$1 $2 $3 $4</format>
1750         </numberFormat>
1751       </availableFormats>
1752       <generalDesc>
1753         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
1754         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
1755       </generalDesc>
1756       <fixedLine>
1757         <nationalNumberPattern>
1758           (?:
1759             1[28]\d|
1760             2(?:
1761               02|
1762               1[24]|
1763               2[2-4]|
1764               33|
1765               [45]2|
1766               6[23]
1767             )|
1768             365
1769           )\d{6}
1770         </nationalNumberPattern>
1771         <exampleNumber>123123456</exampleNumber>
1772       </fixedLine>
1773       <mobile>
1774         <nationalNumberPattern>
1775           (?:
1776             4[04]|
1777             5[015]|
1778             60|
1779             7[07]
1780           )\d{7}
1781         </nationalNumberPattern>
1782         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1783         <exampleNumber>401234567</exampleNumber>
1784       </mobile>
1785       <tollFree>
1786         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
1787              suggest they are in fact national toll-free numbers. -->
1788         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
1789         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1790         <exampleNumber>881234567</exampleNumber>
1791       </tollFree>
1792       <premiumRate>
1793         <!-- These are marked as Interactive Calls in the ITU document. -->
1794         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
1795         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1796         <exampleNumber>900200123</exampleNumber>
1797       </premiumRate>
1798     </territory>
1799
1800     <!-- Bosnia and Herzegovina -->
1801     <territory id="BA" countryCode="387" internationalPrefix="00"
1802                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1803                mobileNumberPortableRegion="true">
1804       <references>
1805         <!-- accessible from http://www.cra.ba/en/telecom/numbering/ -->
1806         <sourceUrl>http://www.rak.ba/eng/index.php?uid=1272016657</sourceUrl>
1807         <sourceUrl>http://en.wikipedia.org/wiki/+387</sourceUrl>
1808       </references>
1809       <availableFormats>
1810         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1811           <leadingDigits>[3-5]</leadingDigits>
1812           <format>$1 $2-$3</format>
1813         </numberFormat>
1814         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1815           <leadingDigits>
1816             6[1-356]|
1817             [7-9]
1818           </leadingDigits>
1819           <format>$1 $2 $3</format>
1820         </numberFormat>
1821         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
1822           <leadingDigits>6[047]</leadingDigits>
1823           <format>$1 $2 $3 $4</format>
1824         </numberFormat>
1825       </availableFormats>
1826       <generalDesc>
1827         <nationalNumberPattern>[3-9]\d{7,8}</nationalNumberPattern>
1828         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
1829       </generalDesc>
1830       <fixedLine>
1831         <nationalNumberPattern>
1832           (?:
1833             [35]\d|
1834             49
1835           )\d{6}
1836         </nationalNumberPattern>
1837         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
1838         <exampleNumber>30123456</exampleNumber>
1839       </fixedLine>
1840       <mobile>
1841         <nationalNumberPattern>
1842           6(?:
1843             03|
1844             44|
1845             71|
1846             [1-356]
1847           )\d{6}
1848         </nationalNumberPattern>
1849         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1850         <exampleNumber>61123456</exampleNumber>
1851       </mobile>
1852       <tollFree>
1853         <nationalNumberPattern>8[08]\d{6}</nationalNumberPattern>
1854         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1855         <exampleNumber>80123456</exampleNumber>
1856       </tollFree>
1857       <premiumRate>
1858         <nationalNumberPattern>9[0246]\d{6}</nationalNumberPattern>
1859         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1860         <exampleNumber>90123456</exampleNumber>
1861       </premiumRate>
1862       <sharedCost>
1863         <!-- Using this category to model national tariff numbers - these are under Shared Cost in
1864              the plan. -->
1865         <nationalNumberPattern>8[12]\d{6}</nationalNumberPattern>
1866         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1867         <exampleNumber>82123456</exampleNumber>
1868       </sharedCost>
1869       <uan>
1870         <!-- Using this to classify nomad numbers. -->
1871         <nationalNumberPattern>70[23]\d{5}</nationalNumberPattern>
1872         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1873         <exampleNumber>70223456</exampleNumber>
1874       </uan>
1875     </territory>
1876
1877     <!-- Barbados -->
1878     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
1879                internationalPrefix="011">
1880       <references>
1881         <sourceUrl>http://www.itu.int/oth/T0202000013/en</sourceUrl>
1882       </references>
1883       <generalDesc>
1884         <!-- NANPA country - uses US formatting rules -->
1885         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
1886         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1887       </generalDesc>
1888       <fixedLine>
1889         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
1890         <exampleNumber>2462345678</exampleNumber>
1891       </fixedLine>
1892       <mobile>
1893         <nationalNumberPattern>
1894           246(?:
1895             (?:
1896               2[346]|
1897               45|
1898               82
1899             )\d|
1900             25[0-4]
1901           )\d{4}
1902         </nationalNumberPattern>
1903         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1904         <exampleNumber>2462501234</exampleNumber>
1905       </mobile>
1906       <tollFree>
1907         <nationalNumberPattern>
1908           8(?:
1909             00|
1910             44|
1911             55|
1912             66|
1913             77|
1914             88
1915           )[2-9]\d{6}
1916         </nationalNumberPattern>
1917         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1918         <exampleNumber>8002123456</exampleNumber>
1919       </tollFree>
1920       <premiumRate>
1921         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1922         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1923         <exampleNumber>9002123456</exampleNumber>
1924       </premiumRate>
1925       <personalNumber>
1926         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1927         <nationalNumberPattern>
1928           5(?:
1929             00|
1930             33|
1931             44|
1932             66|
1933             77
1934           )[2-9]\d{6}
1935         </nationalNumberPattern>
1936         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1937         <exampleNumber>5002345678</exampleNumber>
1938       </personalNumber>
1939     </territory>
1940
1941     <!-- Bangladesh -->
1942     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
1943                preferredInternationalPrefix="00"
1944                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
1945       <references>
1946         <sourceUrl>http://www.itu.int/oth/T0202000012/en</sourceUrl>
1947         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh</sourceUrl>
1948         <sourceUrl>http://www.btrc.gov.bd/engineering/national_numbering_plan_2005.pdf</sourceUrl>
1949       </references>
1950       <availableFormats>
1951         <numberFormat pattern="(2)(\d{7})">
1952           <leadingDigits>2</leadingDigits>
1953           <format>$1-$2</format>
1954         </numberFormat>
1955         <numberFormat pattern="(\d{2})(\d{4,6})">
1956           <leadingDigits>[3-79]1</leadingDigits>
1957           <format>$1-$2</format>
1958         </numberFormat>
1959         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
1960         <numberFormat pattern="(\d{4})(\d{3,6})">
1961           <leadingDigits>
1962             1|
1963             3(?:
1964               0|
1965               [2-58]2
1966             )|
1967             4(?:
1968               0|
1969               [25]2|
1970               3[23]|
1971               [4689][25]
1972             )|
1973             5(?:
1974               [02-578]2|
1975               6[25]
1976             )|
1977             6(?:
1978               [0347-9]2|
1979               [26][25]
1980             )|
1981             7[02-9]2|
1982             8(?:
1983               [023][23]|
1984               [4-7]2
1985             )|
1986             9(?:
1987               [02][23]|
1988               [458]2|
1989               6[016]
1990             )
1991           </leadingDigits>
1992           <format>$1-$2</format>
1993         </numberFormat>
1994         <numberFormat pattern="(\d{3})(\d{3,7})">
1995           <leadingDigits>
1996             [3-79][2-9]|
1997             8
1998           </leadingDigits>
1999           <format>$1-$2</format>
2000         </numberFormat>
2001       </availableFormats>
2002       <generalDesc>
2003       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
2004            plan, so the country code can be accurately stripped off. -->
2005         <nationalNumberPattern>
2006           [2-79]\d{5,9}|
2007           1\d{9}|
2008           8[0-7]\d{4,8}
2009         </nationalNumberPattern>
2010         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
2011       </generalDesc>
2012       <fixedLine>
2013         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
2014              been realised, judging by online numbers and wikipedia. These patterns are grouped
2015              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731
2016              etc) are included despite not being mentioned on the wikipedia page or ITU doc due to
2017              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
2018              do not - both are allowed for now. For some area codes, the subscriber number length
2019              described in our source documentation doesn't match numbers online (e.g. 05222) so we
2020              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
2021              also added 04452 and 04923 from numbers found online. -->
2022         <nationalNumberPattern>
2023           2(?:
2024             7(?:
2025               1[0-267]|
2026               2[0-289]|
2027               3[0-29]|
2028               [46][01]|
2029               5[1-3]|
2030               7[017]|
2031               91
2032             )|
2033             8(?:
2034               0[125]|
2035               [139][1-6]|
2036               2[0157-9]|
2037               6[1-35]|
2038               7[1-5]|
2039               8[1-8]
2040             )|
2041             9(?:
2042               0[0-2]|
2043               1[1-4]|
2044               2[568]|
2045               3[3-6]|
2046               5[5-7]|
2047               6[0167]|
2048               7[15]|
2049               8[016-8]
2050             )
2051           )\d{4}|
2052           3(?:
2053             12?[5-7]\d{2}|
2054             0(?:
2055               2(?:
2056                 [025-79]\d|
2057                 [348]\d{1,2}
2058               )|
2059               3(?:
2060                 [2-4]\d|
2061                 [56]\d?
2062               )
2063             )|
2064             2(?:
2065               1\d{2}|
2066               2(?:
2067                 [12]\d|
2068                 [35]\d{1,2}|
2069                 4\d?
2070               )
2071             )|
2072             3(?:
2073               1\d{2}|
2074               2(?:
2075                 [2356]\d|
2076                 4\d{1,2}
2077               )
2078             )|
2079             4(?:
2080               1\d{2}|
2081               2(?:
2082                 2\d{1,2}|
2083                 [47]|
2084                 5\d{2}
2085               )
2086             )|
2087             5(?:
2088               1\d{2}|
2089               29
2090             )|
2091             [67]1\d{2}|
2092             8(?:
2093               1\d{2}|
2094               2(?:
2095                 2\d{2}|
2096                 3|
2097                 4\d
2098               )
2099             )
2100           )\d{3}|
2101           4(?:
2102             0(?:
2103               2(?:
2104                 [09]\d|
2105                 7
2106               )|
2107               33\d{2}
2108             )|
2109             1\d{3}|
2110             2(?:
2111               1\d{2}|
2112               2(?:
2113                 [25]\d?|
2114                 [348]\d|
2115                 [67]\d{1,2}
2116               )
2117             )|
2118             3(?:
2119               1\d{2}(?:\d{2})?|
2120               2(?:
2121                 [045]\d|
2122                 [236-9]\d{1,2}
2123               )|
2124               32\d{2}
2125             )|
2126             4(?:
2127               [18]\d{2}|
2128               2(?:
2129                 [2-46]\d{2}|
2130                 3
2131               )|
2132               5[25]\d{2}
2133             )|
2134             5(?:
2135               1\d{2}|
2136               2(?:
2137                 3\d|
2138                 5
2139               )
2140             )|
2141             6(?:
2142               [18]\d{2}|
2143               2(?:
2144                 3(?:\d{2})?|
2145                 [46]\d{1,2}|
2146                 5\d{2}|
2147                 7\d
2148               )|
2149               5(?:
2150                 3\d?|
2151                 4\d|
2152                 [57]\d{1,2}|
2153                 6\d{2}|
2154                 8
2155               )
2156             )|
2157             71\d{2}|
2158             8(?:
2159               [18]\d{2}|
2160               23\d{2}|
2161               54\d{2}
2162             )|
2163             9(?:
2164               [18]\d{2}|
2165               2[2-5]\d{2}|
2166               53\d{1,2}
2167             )
2168           )\d{3}|
2169           5(?:
2170             02[03489]\d{2}|
2171             1\d{2}|
2172             2(?:
2173               1\d{2}|
2174               2(?:
2175                 2(?:\d{2})?|
2176                 [457]\d{2}
2177               )
2178             )|
2179             3(?:
2180               1\d{2}|
2181               2(?:
2182                 [37](?:\d{2})?|
2183                 [569]\d{2}
2184               )
2185             )|
2186             4(?:
2187               1\d{2}|
2188               2[46]\d{2}
2189             )|
2190             5(?:
2191               1\d{2}|
2192               26\d{1,2}
2193             )|
2194             6(?:
2195               [18]\d{2}|
2196               2|
2197               53\d{2}
2198             )|
2199             7(?:
2200               1|
2201               24
2202             )\d{2}|
2203             8(?:
2204               1|
2205               26
2206             )\d{2}|
2207             91\d{2}
2208           )\d{3}|
2209           6(?:
2210             0(?:
2211               1\d{2}|
2212               2(?:
2213                 3\d{2}|
2214                 4\d{1,2}
2215               )
2216             )|
2217             2(?:
2218               2[2-5]\d{2}|
2219               5(?:
2220                 [3-5]\d{2}|
2221                 7
2222               )|
2223               8\d{2}
2224             )|
2225             3(?:
2226               1|
2227               2[3478]
2228             )\d{2}|
2229             4(?:
2230               1|
2231               2[34]
2232             )\d{2}|
2233             5(?:
2234               1|
2235               2[47]
2236             )\d{2}|
2237             6(?:
2238               [18]\d{2}|
2239               6(?:
2240                 2(?:
2241                   2\d|
2242                   [34]\d{2}
2243                 )|
2244                 5(?:
2245                   [24]\d{2}|
2246                   3\d|
2247                   5\d{1,2}
2248                 )
2249               )
2250             )|
2251             72[2-5]\d{2}|
2252             8(?:
2253               1\d{2}|
2254               2[2-5]\d{2}
2255             )|
2256             9(?:
2257               1\d{2}|
2258               2[2-6]\d{2}
2259             )
2260           )\d{3}|
2261           7(?:
2262             (?:
2263               02|
2264               [3-589]1|
2265               6[12]|
2266               72[24]
2267             )\d{2}|
2268             21\d{3}|
2269             32
2270           )\d{3}|
2271           8(?:
2272             (?:
2273               4[12]|
2274               [5-7]2|
2275               1\d?
2276             )|
2277             (?:
2278               0|
2279               3[12]|
2280               [5-7]1|
2281               217
2282             )\d
2283           )\d{4}|
2284           9(?:
2285             [35]1|
2286             (?:
2287               [024]2|
2288               81
2289             )\d|
2290             (?:
2291               1|
2292               [24]1
2293             )\d{2}
2294           )\d{3}
2295         </nationalNumberPattern>
2296         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
2297         <exampleNumber>27111234</exampleNumber>
2298       </fixedLine>
2299       <mobile>
2300         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
2301              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
2302              numbers should be moving to 1[13-9] anyway. -->
2303         <nationalNumberPattern>
2304           (?:
2305             1[13-9]\d|
2306             (?:
2307               3[78]|
2308               44
2309             )[02-9]|
2310             6(?:
2311               44|
2312               6[02-9]
2313             )
2314           )\d{7}
2315         </nationalNumberPattern>
2316         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2317         <exampleNumber>1812345678</exampleNumber>
2318       </mobile>
2319       <tollFree>
2320         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
2321         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
2322         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2323         <exampleNumber>8001234567</exampleNumber>
2324       </tollFree>
2325       <voip>
2326         <nationalNumberPattern>
2327           96(?:
2328             0[49]|
2329             1[0-4]|
2330             6[69]
2331           )\d{6}
2332         </nationalNumberPattern>
2333         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2334         <exampleNumber>9604123456</exampleNumber>
2335       </voip>
2336     </territory>
2337
2338     <!-- Belgium -->
2339     <territory id="BE" countryCode="32" internationalPrefix="00"
2340                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2341                mobileNumberPortableRegion="true">
2342       <references>
2343         <sourceUrl>http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx</sourceUrl>
2344         <sourceUrl>http://www.telefoonzones.be/</sourceUrl>
2345       </references>
2346       <availableFormats>
2347         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
2348           <leadingDigits>4[6-9]</leadingDigits>
2349           <format>$1 $2 $3 $4</format>
2350         </numberFormat>
2351         <numberFormat pattern="([2-49])(\d{3})(\d{2})(\d{2})">
2352           <leadingDigits>
2353             [23]|
2354             [49][23]
2355           </leadingDigits>
2356           <format>$1 $2 $3 $4</format>
2357         </numberFormat>
2358         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
2359           <leadingDigits>
2360             [156]|
2361             7[018]|
2362             8(?:
2363               0[1-9]|
2364               [1-79]
2365             )
2366           </leadingDigits>
2367           <format>$1 $2 $3 $4</format>
2368         </numberFormat>
2369         <numberFormat pattern="([89]\d{2})(\d{2})(\d{3})">
2370           <leadingDigits>
2371             (?:
2372               80|
2373               9
2374             )0
2375           </leadingDigits>
2376           <format>$1 $2 $3</format>
2377         </numberFormat>
2378       </availableFormats>
2379       <generalDesc>
2380         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
2381         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2382       </generalDesc>
2383       <fixedLine>
2384         <!-- According to the published Excel document the third digit must be 1-9. -->
2385         <nationalNumberPattern>
2386           (?:
2387             1[0-69]|
2388             [49][23]|
2389             5\d|
2390             6[013-57-9]|
2391             71|
2392             8[0-79]
2393           )[1-9]\d{5}|
2394           [23][2-8]\d{6}
2395         </nationalNumberPattern>
2396         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2397         <exampleNumber>12345678</exampleNumber>
2398       </fixedLine>
2399       <mobile>
2400         <!-- Numbers beginning with 46 outside the ranges allocated by the plan have been included
2401              since many were found online. -->
2402         <nationalNumberPattern>
2403           4(?:
2404             [679]\d|
2405             8[03-9]
2406           )\d{6}
2407         </nationalNumberPattern>
2408         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2409         <exampleNumber>470123456</exampleNumber>
2410       </mobile>
2411       <tollFree>
2412         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2413         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2414         <exampleNumber>80012345</exampleNumber>
2415       </tollFree>
2416       <premiumRate>
2417         <nationalNumberPattern>
2418           (?:
2419             70[2-7]|
2420             90\d
2421           )\d{5}
2422         </nationalNumberPattern>
2423         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2424         <exampleNumber>90123456</exampleNumber>
2425       </premiumRate>
2426       <uan>
2427         <!-- Using this for National Rate Services, since
2428              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
2429              says it will be priced the same as any other national calls. -->
2430         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
2431         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2432         <exampleNumber>78123456</exampleNumber>
2433       </uan>
2434     </territory>
2435
2436     <!-- Burkina Faso -->
2437     <territory id="BF" countryCode="226" internationalPrefix="00">
2438       <references>
2439         <sourceUrl>http://www.itu.int/oth/T0202000021/en</sourceUrl>
2440         <sourceUrl>http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf</sourceUrl>
2441       </references>
2442       <availableFormats>
2443         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
2444              chosen to use the standard from numbers found on the internet instead. -->
2445         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2446           <format>$1 $2 $3 $4</format>
2447         </numberFormat>
2448       </availableFormats>
2449       <generalDesc>
2450         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
2451         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2452       </generalDesc>
2453       <fixedLine>
2454         <nationalNumberPattern>
2455           (?:
2456             20(?:
2457               49|
2458               5[23]|
2459               9[016-9]
2460             )|
2461             40(?:
2462               4[569]|
2463               5[4-6]|
2464               7[0179]
2465             )|
2466             50(?:
2467               [34]\d|
2468               50
2469             )
2470           )\d{4}
2471         </nationalNumberPattern>
2472         <exampleNumber>20491234</exampleNumber>
2473       </fixedLine>
2474       <mobile>
2475         <nationalNumberPattern>
2476           6(?:
2477             [0-689]\d|
2478             7[0-5]
2479           )\d{5}|
2480           7\d{7}
2481         </nationalNumberPattern>
2482         <exampleNumber>70123456</exampleNumber>
2483       </mobile>
2484     </territory>
2485
2486     <!-- Bulgaria -->
2487     <territory id="BG" countryCode="359" internationalPrefix="00"
2488                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2489                mobileNumberPortableRegion="true">
2490       <references>
2491         <sourceUrl>http://www.itu.int/oth/T0202000020/en</sourceUrl>
2492       </references>
2493       <availableFormats>
2494         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
2495              used to separate the area code from the rest of the number, based on sites like
2496              http://www.goldenpages.bg. -->
2497         <numberFormat pattern="(2)(\d{5})">
2498           <leadingDigits>29</leadingDigits>
2499           <format>$1 $2</format>
2500         </numberFormat>
2501         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
2502           <leadingDigits>2</leadingDigits>
2503           <format>$1 $2 $3</format>
2504         </numberFormat>
2505         <numberFormat pattern="(\d{3})(\d{4})">
2506           <leadingDigits>
2507             43[124-7]|
2508             70[1-9]
2509           </leadingDigits>
2510           <format>$1 $2</format>
2511         </numberFormat>
2512         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
2513           <leadingDigits>
2514             43[124-7]|
2515             70[1-9]
2516           </leadingDigits>
2517           <format>$1 $2 $3</format>
2518         </numberFormat>
2519         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2520           <leadingDigits>[78]00</leadingDigits>
2521           <format>$1 $2 $3</format>
2522         </numberFormat>
2523         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
2524           <leadingDigits>
2525             [356]|
2526             4[124-7]|
2527             7[1-9]|
2528             8[1-6]|
2529             9[1-7]
2530           </leadingDigits>
2531           <format>$1 $2 $3</format>
2532         </numberFormat>
2533         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2534           <leadingDigits>
2535             48|
2536             8[7-9]|
2537             9[08]
2538           </leadingDigits>
2539           <format>$1 $2 $3</format>
2540         </numberFormat>
2541       </availableFormats>
2542       <generalDesc>
2543         <nationalNumberPattern>
2544           [23567]\d{5,7}|
2545           [489]\d{6,8}
2546         </nationalNumberPattern>
2547         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
2548       </generalDesc>
2549       <fixedLine>
2550         <!-- 29xxxx numbers have been added because they can be found online, and are typically
2551              used by taxi companies. -->
2552         <nationalNumberPattern>
2553           2(?:
2554             [0-8]\d{5,6}|
2555             9\d{4,6}
2556           )|
2557           (?:
2558             [36]\d|
2559             5[1-9]|
2560             8[1-6]|
2561             9[1-7]
2562           )\d{5,6}|
2563           (?:
2564             4(?:
2565               [124-7]\d|
2566               3[1-6]
2567             )|
2568             7(?:
2569               0[1-9]|
2570               [1-9]\d
2571             )
2572           )\d{4,5}
2573         </nationalNumberPattern>
2574         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
2575         <exampleNumber>2123456</exampleNumber>
2576       </fixedLine>
2577       <mobile>
2578         <nationalNumberPattern>
2579           (?:
2580             8[7-9]|
2581             98
2582           )\d{7}|
2583           4(?:
2584             3[0789]|
2585             8\d
2586           )\d{5}
2587         </nationalNumberPattern>
2588         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2589         <exampleNumber>48123456</exampleNumber>
2590       </mobile>
2591       <tollFree>
2592         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2593         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2594         <exampleNumber>80012345</exampleNumber>
2595       </tollFree>
2596       <premiumRate>
2597         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
2598         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2599         <exampleNumber>90123456</exampleNumber>
2600       </premiumRate>
2601       <personalNumber>
2602         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
2603         <exampleNumber>70012345</exampleNumber>
2604       </personalNumber>
2605     </territory>
2606
2607     <!-- Bahrain -->
2608     <territory id="BH" countryCode="973" internationalPrefix="00" mobileNumberPortableRegion="true">
2609       <references>
2610         <sourceUrl>http://www.itu.int/oth/T0202000011/en</sourceUrl>
2611         <sourceUrl>http://www.tra.org.bh/en/marketNumbering.aspx</sourceUrl>
2612         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain</sourceUrl>
2613       </references>
2614       <availableFormats>
2615         <numberFormat pattern="(\d{4})(\d{4})">
2616           <format>$1 $2</format>
2617         </numberFormat>
2618       </availableFormats>
2619       <generalDesc>
2620         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
2621         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2622       </generalDesc>
2623       <!-- Some ranges were previously described as "universal", but in subsequent versions of the
2624            ITU doc they have been specified to be mobile or fixed-line. We follow the ITU
2625            designations, even though some publications still refer to them as universal. -->
2626       <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
2627            "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts the ITU doc
2628            which lists "6966, 6969, 6996, 6999". We follow ITU here. -->
2629       <fixedLine>
2630         <nationalNumberPattern>
2631           (?:
2632             1(?:
2633               3[13-6]|
2634               6[0156]|
2635               7\d
2636             )\d|
2637             6(?:
2638               1[16]\d|
2639               500|
2640               6(?:
2641                 0\d|
2642                 3[12]|
2643                 44|
2644                 88
2645               )|
2646               9[69][69]
2647             )|
2648             7(?:
2649               7\d{2}|
2650               178
2651             )
2652           )\d{4}
2653         </nationalNumberPattern>
2654         <exampleNumber>17001234</exampleNumber>
2655       </fixedLine>
2656       <!-- 31 is assigned to Royal Court, as per documents on Bahrain's own telecom site, even
2657            though it is omitted from the ITU document. -->
2658       <mobile>
2659         <nationalNumberPattern>
2660           (?:
2661             3(?:
2662               [1-4679]\d|
2663               5[0135]|
2664               8[0-48]
2665             )\d|
2666             6(?:
2667               3(?:
2668                 00|
2669                 33|
2670                 6[16]
2671               )|
2672               6(?:
2673                 [69]\d|
2674                 3[03-9]
2675               )
2676             )
2677           )\d{4}
2678         </nationalNumberPattern>
2679         <exampleNumber>36001234</exampleNumber>
2680       </mobile>
2681       <tollFree>
2682         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
2683         <exampleNumber>80123456</exampleNumber>
2684       </tollFree>
2685       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
2686            now. -->
2687       <premiumRate>
2688         <nationalNumberPattern>
2689           (?:
2690             87|
2691             9[014578]
2692           )\d{6}
2693         </nationalNumberPattern>
2694         <exampleNumber>90123456</exampleNumber>
2695       </premiumRate>
2696       <sharedCost>
2697         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
2698         <exampleNumber>84123456</exampleNumber>
2699       </sharedCost>
2700     </territory>
2701
2702     <!-- Burundi -->
2703     <territory id="BI" countryCode="257" internationalPrefix="00">
2704       <references>
2705         <sourceUrl>http://www.itu.int/oth/T0202000022/en</sourceUrl>
2706       </references>
2707       <availableFormats>
2708         <numberFormat
2709           pattern="([27]\d)(\d{2})(\d{2})(\d{2})">
2710           <format>$1 $2 $3 $4</format>
2711         </numberFormat>
2712       </availableFormats>
2713       <generalDesc>
2714         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
2715         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2716       </generalDesc>
2717       <fixedLine>
2718         <nationalNumberPattern>
2719           22(?:
2720             2[0-7]|
2721             [3-5]0
2722           )\d{4}
2723         </nationalNumberPattern>
2724         <exampleNumber>22201234</exampleNumber>
2725       </fixedLine>
2726       <mobile>
2727         <!-- Extra online mobile number prefixes found: 74.
2728              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
2729              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
2730              satellite phones. -->
2731         <nationalNumberPattern>
2732           (?:
2733             29|
2734             7[14-9]
2735           )\d{6}
2736         </nationalNumberPattern>
2737         <exampleNumber>79561234</exampleNumber>
2738       </mobile>
2739     </territory>
2740
2741     <!-- Benin -->
2742     <territory id="BJ" countryCode="229" internationalPrefix="00">
2743       <references>
2744         <sourceUrl>http://www.itu.int/oth/T0202000017/en</sourceUrl>
2745       </references>
2746       <availableFormats>
2747         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2748           <format>$1 $2 $3 $4</format>
2749         </numberFormat>
2750         <!-- Numbers beginning with 7 should be formatted as a block. -->
2751       </availableFormats>
2752       <generalDesc>
2753         <nationalNumberPattern>
2754           [2689]\d{7}|
2755           7\d{3}
2756         </nationalNumberPattern>
2757         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
2758       </generalDesc>
2759       <fixedLine>
2760         <!-- These come from the national numbering plan, but have been widened to include other
2761              prefixes found in the yellow pages - specifically 21 0. -->
2762         <nationalNumberPattern>
2763           2(?:
2764             02|
2765             1[037]|
2766             2[45]|
2767             3[68]
2768           )\d{5}
2769         </nationalNumberPattern>
2770         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2771         <exampleNumber>20211234</exampleNumber>
2772       </fixedLine>
2773       <mobile>
2774         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
2775              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
2776              6[167] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
2777              reported as having prefixes 68 and 9[89]. -->
2778         <nationalNumberPattern>
2779           (?:
2780             6[146-8]|
2781             9[03-9]
2782           )\d{6}
2783         </nationalNumberPattern>
2784         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2785         <exampleNumber>90011234</exampleNumber>
2786       </mobile>
2787       <tollFree>
2788         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
2789         <possibleNumberPattern>\d{4}</possibleNumberPattern>
2790         <exampleNumber>7312</exampleNumber>
2791       </tollFree>
2792       <voip>
2793         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
2794         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2795         <exampleNumber>85751234</exampleNumber>
2796       </voip>
2797       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
2798            as a local-call.) We model these as UAN since we have no more detailed information. -->
2799       <uan>
2800         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
2801         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2802         <exampleNumber>81123456</exampleNumber>
2803       </uan>
2804     </territory>
2805
2806     <!-- Saint Barthélemy, French Antilles -->
2807     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
2808          national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but
2809          it appears from searches in online white and yellow pages that a subset of the prefixes
2810          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
2811          of these region codes will be returned, although numbers will be valid for both regions.
2812          -->
2813     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
2814       <references>
2815         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
2816       </references>
2817       <!-- Formatting rules borrowed from Guadeloupe. -->
2818       <generalDesc>
2819         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
2820         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2821       </generalDesc>
2822       <fixedLine>
2823         <nationalNumberPattern>
2824           590(?:
2825             2[7-9]|
2826             5[12]|
2827             87
2828           )\d{4}
2829         </nationalNumberPattern>
2830         <exampleNumber>590271234</exampleNumber>
2831       </fixedLine>
2832       <mobile>
2833         <!-- Any ranges assigned from
2834              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
2835              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
2836              them. -->
2837         <nationalNumberPattern>
2838           690(?:
2839             0[0-7]|
2840             [1-9]\d
2841           )\d{4}
2842         </nationalNumberPattern>
2843         <exampleNumber>690301234</exampleNumber>
2844       </mobile>
2845     </territory>
2846
2847     <!-- Bermuda -->
2848     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
2849                internationalPrefix="011">
2850       <references>
2851         <sourceUrl>http://www.itu.int/oth/T0202000018/en</sourceUrl>
2852       </references>
2853       <generalDesc>
2854         <!-- NANPA country - uses US formatting rules -->
2855         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
2856         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
2857       </generalDesc>
2858       <fixedLine>
2859         <nationalNumberPattern>
2860           441(?:
2861             2(?:
2862               02|
2863               23|
2864               61|
2865               [3479]\d
2866             )|
2867             [46]\d{2}|
2868             5(?:
2869               4\d|
2870               60|
2871               89
2872             )|
2873             824
2874           )\d{4}
2875         </nationalNumberPattern>
2876         <exampleNumber>4412345678</exampleNumber>
2877       </fixedLine>
2878       <mobile>
2879         <nationalNumberPattern>
2880           441(?:
2881             [37]\d|
2882             5[0-39]
2883           )\d{5}
2884         </nationalNumberPattern>
2885         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2886         <exampleNumber>4413701234</exampleNumber>
2887       </mobile>
2888       <tollFree>
2889         <nationalNumberPattern>
2890           8(?:
2891             00|
2892             44|
2893             55|
2894             66|
2895             77|
2896             88
2897           )[2-9]\d{6}
2898         </nationalNumberPattern>
2899         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2900         <exampleNumber>8002123456</exampleNumber>
2901       </tollFree>
2902       <premiumRate>
2903         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
2904         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2905         <exampleNumber>9002123456</exampleNumber>
2906       </premiumRate>
2907       <personalNumber>
2908         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
2909         <nationalNumberPattern>
2910           5(?:
2911             00|
2912             33|
2913             44|
2914             66|
2915             77
2916           )[2-9]\d{6}
2917         </nationalNumberPattern>
2918         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2919         <exampleNumber>5002345678</exampleNumber>
2920       </personalNumber>
2921     </territory>
2922
2923     <!-- Brunei Darussalam -->
2924     <territory id="BN" countryCode="673" internationalPrefix="00">
2925       <references>
2926         <sourceUrl>http://www.itu.int/oth/T020200001F/en</sourceUrl>
2927       </references>
2928       <!-- Format is from http://aiti.gov.bn/contact.html -->
2929       <availableFormats>
2930         <numberFormat pattern="([2-578]\d{2})(\d{4})">
2931           <format>$1 $2</format>
2932         </numberFormat>
2933       </availableFormats>
2934       <generalDesc>
2935         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
2936         <possibleNumberPattern>\d{7}</possibleNumberPattern>
2937       </generalDesc>
2938       <fixedLine>
2939         <nationalNumberPattern>
2940           2(?:
2941             [013-9]\d|
2942             2[0-7]
2943           )\d{4}|
2944           [3-5]\d{6}
2945         </nationalNumberPattern>
2946         <exampleNumber>2345678</exampleNumber>
2947       </fixedLine>
2948       <mobile>
2949         <nationalNumberPattern>
2950           22[89]\d{4}|
2951           [78]\d{6}
2952         </nationalNumberPattern>
2953         <exampleNumber>7123456</exampleNumber>
2954       </mobile>
2955     </territory>
2956
2957     <!-- Bolivia -->
2958     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
2959                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
2960       <references>
2961         <sourceUrl>http://www.itu.int/oth/T020200001A/en</sourceUrl>
2962         <sourceUrl>http://www.bolivia.com/Servicios/Plandenumeracion.pdf</sourceUrl>
2963       </references>
2964       <availableFormats>
2965         <numberFormat pattern="([234])(\d{7})">
2966           <leadingDigits>[234]</leadingDigits>
2967           <format>$1 $2</format>
2968         </numberFormat>
2969         <numberFormat pattern="([67]\d{7})">
2970           <leadingDigits>[67]</leadingDigits>
2971           <format>$1</format>
2972         </numberFormat>
2973       </availableFormats>
2974       <generalDesc>
2975         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
2976         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
2977       </generalDesc>
2978       <fixedLine>
2979         <nationalNumberPattern>
2980           (?:
2981             2(?:
2982               2\d{2}|
2983               5(?:11|[258]\d|9[67])|
2984               6(?:12|2\d|9[34])|
2985               8(?:2[34]|39|62)
2986             )|
2987             3(?:
2988               3\d{2}|
2989               4(?:6\d|8[24])|
2990               8(?:25|42|5[257]|86|9[25])|
2991               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
2992             )|
2993             4(?:
2994               4\d{2}|
2995               6(?:11|[24689]\d|72)
2996             )
2997           )\d{4}
2998         </nationalNumberPattern>
2999         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3000         <exampleNumber>22123456</exampleNumber>
3001       </fixedLine>
3002       <mobile>
3003         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
3004         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3005         <exampleNumber>71234567</exampleNumber>
3006       </mobile>
3007     </territory>
3008
3009     <!-- Bonaire, Sint Eustatius and Saba -->
3010     <territory id="BQ" countryCode="599" internationalPrefix="00">
3011       <references>
3012         <sourceUrl>http://www.itu.int/oth/T02020000F8/en</sourceUrl>
3013       </references>
3014       <!-- Shares formatting patterns with CW. -->
3015       <generalDesc>
3016         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
3017         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3018       </generalDesc>
3019       <fixedLine>
3020         <nationalNumberPattern>
3021           (?:
3022             318[023]|
3023             416[023]|
3024             7(?:
3025               1[578]|
3026               50
3027             )\d
3028           )\d{3}
3029         </nationalNumberPattern>
3030         <exampleNumber>7151234</exampleNumber>
3031       </fixedLine>
3032       <mobile>
3033         <nationalNumberPattern>
3034           (?:
3035             318[14-68]|
3036             416[15-9]|
3037             7(?:
3038               0[01]|
3039               7[07]|
3040               [89]\d
3041             )\d
3042           )\d{3}
3043         </nationalNumberPattern>
3044         <exampleNumber>3181234</exampleNumber>
3045       </mobile>
3046     </territory>
3047
3048     <!-- Brazil -->
3049     <territory id="BR" countryCode="55"
3050                internationalPrefix="00(?:1[45]|2[135]|31|4[13])"
3051                nationalPrefix="0"
3052                nationalPrefixForParsing="0(?:(1[245]|2[135]|31|4[13])(\d{10,11}))?"
3053                nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true">
3054       <references>
3055         <sourceUrl>http://en.wikipedia.org/wiki/%2B55</sourceUrl>
3056         <sourceUrl>http://www.itu.int/oth/T020200001D/en</sourceUrl>
3057       </references>
3058       <!-- The national prefix for parsing here also contains a capturing group for the main number,
3059            since the carrier codes here may also be area codes, so we want to check the length of
3060            the number after capturing. We also need a nationalTransformRule to repopulate with the
3061            number without the carrier code. -->
3062       <availableFormats>
3063         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
3064              rules here handle this case. The leading digits pattern must be specific enough such
3065              that it doesn't match X00 numbers (e.g. toll-free). -->
3066         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
3067           <leadingDigits>
3068             [2-9](?:
3069               [1-9]|
3070               0[1-9]
3071             )
3072           </leadingDigits>
3073           <format>$1-$2</format>
3074           <intlFormat>NA</intlFormat>
3075         </numberFormat>
3076         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
3077           <leadingDigits>
3078             9(?:
3079               [1-9]|
3080               0[1-9]
3081             )
3082           </leadingDigits>
3083           <format>$1-$2</format>
3084           <intlFormat>NA</intlFormat>
3085         </numberFormat>
3086         <!-- Format short numbers as a block. -->
3087         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
3088           <leadingDigits>1[125689]</leadingDigits>
3089           <format>$1</format>
3090           <intlFormat>NA</intlFormat>
3091         </numberFormat>
3092         <numberFormat nationalPrefixFormattingRule="($FG)"
3093             pattern="(\d{2})(\d{5})(\d{4})"
3094             carrierCodeFormattingRule="$NP $CC ($FG)">
3095           <leadingDigits>
3096             (?:
3097               1[1-9]|
3098               2[12478]|
3099               9[1-9]
3100             )9
3101           </leadingDigits>
3102           <format>$1 $2-$3</format>
3103         </numberFormat>
3104         <numberFormat nationalPrefixFormattingRule="($FG)"
3105             pattern="(\d{2})(\d{4})(\d{4})"
3106             carrierCodeFormattingRule="$NP $CC ($FG)">
3107           <leadingDigits>[1-9][1-9]</leadingDigits>
3108           <format>$1 $2-$3</format>
3109         </numberFormat>
3110         <numberFormat pattern="([34]00\d)(\d{4})">
3111           <leadingDigits>[34]00</leadingDigits>
3112           <format>$1-$2</format>
3113         </numberFormat>
3114         <numberFormat nationalPrefixFormattingRule="$NP$FG"
3115             pattern="([3589]00)(\d{2,3})(\d{4})">
3116           <leadingDigits>[3589]00</leadingDigits>
3117           <format>$1 $2 $3</format>
3118         </numberFormat>
3119       </availableFormats>
3120       <generalDesc>
3121         <nationalNumberPattern>
3122           [1-46-9]\d{7,10}|
3123           5\d{8,9}
3124         </nationalNumberPattern>
3125         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
3126       </generalDesc>
3127       <noInternationalDialling>
3128         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3129         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3130         <exampleNumber>40041234</exampleNumber>
3131       </noInternationalDialling>
3132       <fixedLine>
3133         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
3134              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
3135              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
3136              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
3137              -->
3138         <nationalNumberPattern>
3139           1[1-9][2-5]\d{7}|
3140           (?:
3141             [4689][1-9]|
3142             2[12478]|
3143             3[1-578]|
3144             5[13-5]|
3145             7[13-579]
3146           )[2-5]\d{7}
3147         </nationalNumberPattern>
3148         <exampleNumber>1123456789</exampleNumber>
3149       </fixedLine>
3150       <mobile>
3151         <!-- Since 2012, Brazil has been migrating from 10 to 11 digits by inserting a 9 before the
3152              last 8 digits. The following pattern is divided into 3 sections: ranges for which the
3153              migration has been completed, ranges which are in transition, and ranges which are
3154              still in the old format. (Ranges which were supposed to have been deprecated in
3155              Oct. 2013 are still working as of Jan. 2014.) Note that mobile radio services are
3156              still 10 digits, with the subscriber number (the last 8 digits) beginning with 7. -->
3157         <nationalNumberPattern>
3158           1[1-9](?:
3159             7|
3160             9\d
3161           )\d{7}|
3162           (?:
3163             2[12478]|
3164             9[1-9]
3165           )9?[6-9]\d{7}|
3166           (?:
3167             3[1-578]|
3168             [468][1-9]|
3169             5[13-5]|
3170             7[13-579]
3171           )[6-9]\d{7}
3172         </nationalNumberPattern>
3173         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3174         <exampleNumber>11961234567</exampleNumber>
3175       </mobile>
3176       <tollFree>
3177         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
3178         <exampleNumber>800123456</exampleNumber>
3179       </tollFree>
3180       <premiumRate>
3181         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
3182         <exampleNumber>300123456</exampleNumber>
3183       </premiumRate>
3184       <sharedCost>
3185         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3186         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3187         <exampleNumber>40041234</exampleNumber>
3188       </sharedCost>
3189     </territory>
3190
3191     <!-- Bahamas -->
3192     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
3193                internationalPrefix="011">
3194       <references>
3195         <sourceUrl>http://www.itu.int/oth/T0202000010/en</sourceUrl>
3196       </references>
3197       <generalDesc>
3198         <!-- NANPA country - uses US formatting rules -->
3199         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
3200         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3201       </generalDesc>
3202       <fixedLine>
3203         <nationalNumberPattern>
3204           242(?:
3205             3(?:
3206               02|
3207               [236][1-9]|
3208               4[0-24-9]|
3209               5[0-68]|
3210               7[3467]|
3211               8[0-4]|
3212               9[2-467]
3213             )|
3214             461|
3215             502|
3216             6(?:
3217               0[12]|
3218               12|
3219               7[67]|
3220               8[78]|
3221               9[89]
3222             )|
3223             702
3224           )\d{4}
3225         </nationalNumberPattern>
3226         <exampleNumber>2423456789</exampleNumber>
3227       </fixedLine>
3228       <mobile>
3229         <nationalNumberPattern>
3230           242(?:
3231             3(?:
3232               5[79]|
3233               [79]5
3234             )|
3235             4(?:
3236               [2-4][1-9]|
3237               5[1-8]|
3238               6[2-8]|
3239               7\d|
3240               81
3241             )|
3242             5(?:
3243               2[45]|
3244               3[35]|
3245               44|
3246               5[1-9]|
3247               65|
3248               77
3249             )|
3250             6[34]6|
3251             727
3252           )\d{4}
3253         </nationalNumberPattern>
3254         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3255         <exampleNumber>2423591234</exampleNumber>
3256       </mobile>
3257       <tollFree>
3258         <!-- 242 300 is a Domestic Toll Free service. -->
3259         <nationalNumberPattern>
3260           242300\d{4}|
3261           8(?:
3262             00|
3263             44|
3264             55|
3265             66|
3266             77|
3267             88
3268           )[2-9]\d{6}
3269         </nationalNumberPattern>
3270         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3271         <exampleNumber>8002123456</exampleNumber>
3272       </tollFree>
3273       <premiumRate>
3274         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3275         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3276         <exampleNumber>9002123456</exampleNumber>
3277       </premiumRate>
3278       <personalNumber>
3279         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3280         <nationalNumberPattern>
3281           5(?:
3282             00|
3283             33|
3284             44|
3285             66|
3286             77
3287           )[2-9]\d{6}
3288         </nationalNumberPattern>
3289         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3290         <exampleNumber>5002345678</exampleNumber>
3291       </personalNumber>
3292     </territory>
3293
3294     <!-- Bhutan -->
3295     <territory id="BT" countryCode="975" internationalPrefix="00">
3296       <references>
3297         <sourceUrl>http://www.itu.int/oth/T0202000019/en</sourceUrl>
3298       </references>
3299       <availableFormats>
3300         <!-- Format is from
3301              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
3302         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
3303           <leadingDigits>
3304             1|
3305             77
3306           </leadingDigits>
3307           <format>$1 $2 $3 $4</format>
3308         </numberFormat>
3309         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
3310           <leadingDigits>
3311             [2-68]|
3312             7[246]
3313           </leadingDigits>
3314           <format>$1 $2 $3</format>
3315         </numberFormat>
3316       </availableFormats>
3317       <generalDesc>
3318         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
3319         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
3320       </generalDesc>
3321       <fixedLine>
3322         <nationalNumberPattern>
3323           (?:
3324             2[3-6]|
3325             [34][5-7]|
3326             5[236]|
3327             6[2-46]|
3328             7[246]|
3329             8[2-4]
3330           )\d{5}
3331         </nationalNumberPattern>
3332         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
3333         <exampleNumber>2345678</exampleNumber>
3334       </fixedLine>
3335       <mobile>
3336         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
3337              is in use. -->
3338         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
3339         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3340         <exampleNumber>17123456</exampleNumber>
3341       </mobile>
3342       <!-- No information on other types of phone numbers for Bhutan has been found. -->
3343     </territory>
3344
3345     <!-- Botswana -->
3346     <territory id="BW" countryCode="267" internationalPrefix="00">
3347       <references>
3348         <sourceUrl>http://www.itu.int/oth/T020200001C/en</sourceUrl>
3349       </references>
3350       <availableFormats>
3351         <numberFormat pattern="(\d{3})(\d{4})">
3352           <leadingDigits>[2-6]</leadingDigits>
3353           <format>$1 $2</format>
3354         </numberFormat>
3355         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
3356           <leadingDigits>7</leadingDigits>
3357           <format>$1 $2 $3</format>
3358         </numberFormat>
3359         <numberFormat pattern="(90)(\d{5})">
3360           <leadingDigits>9</leadingDigits>
3361           <format>$1 $2</format>
3362         </numberFormat>
3363       </availableFormats>
3364       <generalDesc>
3365         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
3366         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3367       </generalDesc>
3368       <fixedLine>
3369         <nationalNumberPattern>
3370           (?:
3371             2(?:
3372               4[0-48]|
3373               6[0-24]|
3374               9[0578]
3375             )|
3376             3(?:
3377               1[0235-9]|
3378               55|
3379               6\d|
3380               7[01]|
3381               9[0-57]
3382             )|
3383             4(?:
3384               6[03]|
3385               7[1267]|
3386               9[0-5]
3387             )|
3388             5(?:
3389               3[0389]|
3390               4[0489]|
3391               7[1-47]|
3392               88|
3393               9[0-49]
3394             )|
3395             6(?:
3396               2[1-35]|
3397               5[149]|
3398               8[067]
3399             )
3400           )\d{4}
3401         </nationalNumberPattern>
3402         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3403         <exampleNumber>2401234</exampleNumber>
3404       </fixedLine>
3405       <mobile>
3406         <nationalNumberPattern>
3407           7(?:
3408             [1-356]\d|
3409             4[0-7]|
3410             7[014-7]
3411           )\d{5}
3412         </nationalNumberPattern>
3413         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3414         <exampleNumber>71123456</exampleNumber>
3415       </mobile>
3416       <!-- No reliable information about toll-free numbers can be found; many are written on the
3417            internet like 0800 123 456, but this is not supported by any documentation and no
3418            numbers can be found that actually work. -->
3419       <premiumRate>
3420         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
3421         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3422         <exampleNumber>9012345</exampleNumber>
3423       </premiumRate>
3424       <voip>
3425         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
3426         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3427         <exampleNumber>79101234</exampleNumber>
3428       </voip>
3429     </territory>
3430
3431     <!-- Belarus -->
3432     <!-- Information on national prefix provided by a Belarussian person. -->
3433     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
3434                internationalPrefix="810" nationalPrefixForParsing="8?0?"
3435                nationalPrefix="8" mobileNumberPortableRegion="true">
3436       <references>
3437         <sourceUrl>http://www.eng.beltelecom.by/en/subscribers/phone-codes</sourceUrl>
3438       </references>
3439       <availableFormats>
3440         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3441           pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
3442           <leadingDigits>
3443             17[0-3589]|
3444             2[4-9]|
3445             [34]
3446           </leadingDigits>
3447           <leadingDigits>
3448             17(?:
3449               [02358]|
3450               1[0-2]|
3451               9[0189]
3452             )|
3453             2[4-9]|
3454             [34]
3455           </leadingDigits>
3456           <format>$1 $2-$3-$4</format>
3457         </numberFormat>
3458         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3459           pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
3460           <leadingDigits>
3461             1(?:
3462               5[24]|
3463               6[235]|
3464               7[467]
3465             )|
3466             2(?:
3467               1[246]|
3468               2[25]|
3469               3[26]
3470             )
3471           </leadingDigits>
3472           <leadingDigits>
3473             1(?:
3474               5[24]|
3475               6(?:
3476                 2|
3477                 3[04-9]|
3478                 5[0346-9]
3479               )|
3480               7(?:
3481                 [46]|
3482                 7[37-9]
3483               )
3484             )|
3485             2(?:
3486               1[246]|
3487               2[25]|
3488               3[26]
3489             )
3490           </leadingDigits>
3491           <format>$1 $2-$3-$4</format>
3492         </numberFormat>
3493         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3494           pattern="(\d{4})(\d{2})(\d{3})">
3495           <leadingDigits>
3496             1(?:
3497               5[169]|
3498               6[3-5]|
3499               7[179]
3500             )|
3501             2(?:
3502               1[35]|
3503               2[34]|
3504               3[3-5]
3505             )
3506           </leadingDigits>
3507           <leadingDigits>
3508             1(?:
3509               5[169]|
3510               6(?:
3511                 3[1-3]|
3512                 4|
3513                 5[125]
3514               )|
3515               7(?:
3516                 1[3-9]|
3517                 7[0-24-6]|
3518                 9[2-7]
3519               )
3520             )|
3521             2(?:
3522               1[35]|
3523               2[34]|
3524               3[3-5]
3525             )
3526           </leadingDigits>
3527           <format>$1 $2-$3</format>
3528         </numberFormat>
3529         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3530           pattern="([89]\d{2})(\d{3})(\d{4})">
3531           <leadingDigits>
3532             8[01]|
3533             9
3534           </leadingDigits>
3535           <format>$1 $2 $3</format>
3536         </numberFormat>
3537         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3538           pattern="(8\d{2})(\d{4})(\d{4})">
3539           <leadingDigits>82</leadingDigits>
3540           <format>$1 $2 $3</format>
3541         </numberFormat>
3542       </availableFormats>
3543       <generalDesc>
3544         <nationalNumberPattern>
3545           [1-4]\d{8}|
3546           [89]\d{9,10}
3547         </nationalNumberPattern>
3548         <!-- Numbers are often written without the city code. -->
3549         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
3550       </generalDesc>
3551       <!-- Toll-free and premium rate numbers are not available from abroad. -->
3552       <noInternationalDialling>
3553         <nationalNumberPattern>
3554           8(?:
3555             [013]|
3556             [12]0
3557           )\d{8}|
3558           902\d{7}
3559         </nationalNumberPattern>
3560         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3561         <exampleNumber>82012345678</exampleNumber>
3562       </noInternationalDialling>
3563       <fixedLine>
3564         <nationalNumberPattern>
3565           (?:
3566             1(?:
3567               5(?:
3568                 1[1-5]|
3569                 [24]\d|
3570                 6[2-4]|
3571                 9[1-7]
3572               )|
3573               6(?:
3574                 [235]\d|
3575                 4[1-7]
3576               )|
3577               7\d{2}
3578             )|
3579             2(?:
3580               1(?:
3581                 [246]\d|
3582                 3[0-35-9]|
3583                 5[1-9]
3584               )|
3585               2(?:
3586                 [235]\d|
3587                 4[0-8]
3588               )|
3589               3(?:
3590                 [26]\d|
3591                 3[02-79]|
3592                 4[024-7]|
3593                 5[03-7]
3594               )
3595             )
3596           )\d{5}
3597         </nationalNumberPattern>
3598         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3599         <!-- Using test number for Grodno from the plan. -->
3600         <exampleNumber>152450911</exampleNumber>
3601       </fixedLine>
3602       <mobile>
3603         <nationalNumberPattern>
3604           (?:
3605             2(?:
3606               5[5679]|
3607               9[1-9]
3608             )|
3609             33\d|
3610             44\d
3611           )\d{6}
3612         </nationalNumberPattern>
3613         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3614         <!-- Using test number for BelCel from the plan. -->
3615         <exampleNumber>294911911</exampleNumber>
3616       </mobile>
3617       <tollFree>
3618         <!-- Putting Interactive Polling Service (free) here too. -->
3619         <nationalNumberPattern>
3620           8(?:
3621             0[13]|
3622             20\d
3623           )\d{7}
3624         </nationalNumberPattern>
3625         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3626         <exampleNumber>8011234567</exampleNumber>
3627       </tollFree>
3628       <premiumRate>
3629         <!-- Putting Interactive Polling Service (paid) here too. -->
3630         <nationalNumberPattern>
3631           (?:
3632             810|
3633             902
3634           )\d{7}
3635         </nationalNumberPattern>
3636         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3637         <exampleNumber>9021234567</exampleNumber>
3638       </premiumRate>
3639     </territory>
3640
3641     <!-- Belize -->
3642     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
3643          -->
3644     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
3645       <references>
3646         <sourceUrl>http://www.itu.int/oth/T0202000016/en</sourceUrl>
3647       </references>
3648       <availableFormats>
3649         <numberFormat pattern="(\d{3})(\d{4})">
3650           <leadingDigits>[2-8]</leadingDigits>
3651           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
3652           <format>$1-$2</format>
3653         </numberFormat>
3654         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
3655           <leadingDigits>0</leadingDigits>
3656           <format>$1-$2-$3-$4</format>
3657         </numberFormat>
3658       </availableFormats>
3659       <generalDesc>
3660         <nationalNumberPattern>
3661           [2-8]\d{6}|
3662           0\d{10}
3663         </nationalNumberPattern>
3664         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
3665       </generalDesc>
3666       <fixedLine>
3667         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
3668         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3669         <exampleNumber>2221234</exampleNumber>
3670       </fixedLine>
3671       <mobile>
3672         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
3673              to these numbers or many numbers have been found online. -->
3674         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
3675         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3676         <exampleNumber>6221234</exampleNumber>
3677       </mobile>
3678       <!-- We don't know how these would be dialled internationally - it is possible that they can't
3679            be dialled internationally at all - so we represent the leading 0 as part of the number.
3680            Information from http://www.belizetelemedia.net. -->
3681       <tollFree>
3682         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
3683         <possibleNumberPattern>\d{11}</possibleNumberPattern>
3684         <exampleNumber>08001234123</exampleNumber>
3685       </tollFree>
3686     </territory>
3687
3688     <!-- Canada -->
3689     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1"
3690                mobileNumberPortableRegion="true">
3691       <references>
3692         <sourceUrl>http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm</sourceUrl>
3693       </references>
3694       <generalDesc>
3695         <!-- NANPA country - uses US formatting rules -->
3696         <nationalNumberPattern>
3697           [2-9]\d{9}|
3698           3\d{6}
3699         </nationalNumberPattern>
3700         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3701       </generalDesc>
3702       <fixedLine>
3703         <nationalNumberPattern>
3704           (?:
3705             2(?:
3706               04|
3707               [23]6|
3708               [48]9|
3709               50
3710             )|
3711             3(?:
3712               06|
3713               43|
3714               65
3715             )|
3716             4(?:
3717               03|
3718               1[68]|
3719               3[178]|
3720               50
3721             )|
3722             5(?:
3723               06|
3724               1[49]|
3725               79|
3726               8[17]
3727             )|
3728             6(?:
3729               0[04]|
3730               13|
3731               39|
3732               47
3733             )|
3734             7(?:
3735               0[59]|
3736               78|
3737               8[02]
3738             )|
3739             8(?:
3740               [06]7|
3741               19|
3742               73
3743             )|
3744             90[25]
3745           )[2-9]\d{6}|
3746           310\d{4}
3747         </nationalNumberPattern>
3748         <exampleNumber>2042345678</exampleNumber>
3749       </fixedLine>
3750       <mobile>
3751         <nationalNumberPattern>
3752           (?:
3753             2(?:
3754               04|
3755               [23]6|
3756               [48]9|
3757               50
3758             )|
3759             3(?:
3760               06|
3761               43|
3762               65
3763             )|
3764             4(?:
3765               03|
3766               1[68]|
3767               3[178]|
3768               50
3769             )|
3770             5(?:
3771               06|
3772               1[49]|
3773               79|
3774               8[17]
3775             )|
3776             6(?:
3777               0[04]|
3778               13|
3779               39|
3780               47
3781             )|
3782             7(?:
3783               0[59]|
3784               78|
3785               8[02]
3786             )|
3787             8(?:
3788               [06]7|
3789               19|
3790               73
3791             )|
3792             90[25]
3793           )[2-9]\d{6}
3794         </nationalNumberPattern>
3795         <exampleNumber>2042345678</exampleNumber>
3796       </mobile>
3797       <tollFree>
3798         <nationalNumberPattern>
3799           8(?:
3800             00|
3801             44|
3802             55|
3803             66|
3804             77|
3805             88
3806           )[2-9]\d{6}|
3807           310\d{4}
3808         </nationalNumberPattern>
3809         <exampleNumber>8002123456</exampleNumber>
3810       </tollFree>
3811       <premiumRate>
3812         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3813         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3814         <exampleNumber>9002123456</exampleNumber>
3815       </premiumRate>
3816       <personalNumber>
3817         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3818         <nationalNumberPattern>
3819           5(?:
3820             00|
3821             33|
3822             44|
3823             66|
3824             77
3825           )[2-9]\d{6}
3826         </nationalNumberPattern>
3827         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3828         <exampleNumber>5002345678</exampleNumber>
3829       </personalNumber>
3830     </territory>
3831
3832     <!-- Cocos Islands -->
3833     <!-- Metadata shared with Australia. -->
3834     <!-- References state Cocos Islands have fixed line numbers starting +61 8 9162. -->
3835     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
3836                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
3837                nationalPrefix="0">
3838       <references>
3839         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
3840         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
3841       </references>
3842       <!-- Uses AU formatting rules. -->
3843       <!-- General desc and fixed line rules different from Australia. -->
3844       <generalDesc>
3845         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
3846         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3847       </generalDesc>
3848       <fixedLine>
3849         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
3850         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
3851         <exampleNumber>891621234</exampleNumber>
3852       </fixedLine>
3853       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
3854       <mobile>
3855         <nationalNumberPattern>
3856           4(?:
3857             [0-2]\d|
3858             3[0-57-9]|
3859             4[47-9]|
3860             5[0-37-9]|
3861             6[6-9]|
3862             7[07-9]|
3863             8[7-9]
3864           )\d{6}
3865         </nationalNumberPattern>
3866         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3867         <exampleNumber>412345678</exampleNumber>
3868       </mobile>
3869       <tollFree>
3870         <nationalNumberPattern>
3871           1(?:
3872             80(?:
3873               0\d{2}
3874             )?|
3875             3(?:
3876               00\d{2}
3877             )?
3878           )\d{4}
3879         </nationalNumberPattern>
3880         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3881         <exampleNumber>1800123456</exampleNumber>
3882       </tollFree>
3883       <premiumRate>
3884         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
3885         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3886         <exampleNumber>1900123456</exampleNumber>
3887       </premiumRate>
3888       <personalNumber>
3889         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
3890         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3891         <exampleNumber>500123456</exampleNumber>
3892       </personalNumber>
3893       <voip>
3894         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
3895         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3896         <exampleNumber>550123456</exampleNumber>
3897       </voip>
3898     </territory>
3899
3900     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
3901     <territory id="CD" countryCode="243" internationalPrefix="00"
3902                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
3903       <references>
3904         <sourceUrl>http://www.itu.int/oth/T0202000037/en</sourceUrl>
3905       </references>
3906       <availableFormats>
3907         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3908           <leadingDigits>12</leadingDigits>
3909           <format>$1 $2 $3</format>
3910         </numberFormat>
3911         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
3912           <leadingDigits>
3913             8[0-2459]|
3914             9
3915           </leadingDigits>
3916           <format>$1 $2 $3</format>
3917         </numberFormat>
3918         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
3919           <leadingDigits>88</leadingDigits>
3920           <format>$1 $2 $3</format>
3921         </numberFormat>
3922         <numberFormat pattern="(\d{2})(\d{5})">
3923           <leadingDigits>[1-6]</leadingDigits>
3924           <format>$1 $2</format>
3925         </numberFormat>
3926       </availableFormats>
3927       <generalDesc>
3928         <nationalNumberPattern>
3929           [2-6]\d{6}|
3930           [18]\d{6,8}|
3931           9\d{8}
3932         </nationalNumberPattern>
3933         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3934       </generalDesc>
3935       <fixedLine>
3936         <nationalNumberPattern>
3937           1(?:
3938             2\d{7}|
3939             \d{6}
3940           )|
3941           [2-6]\d{6}
3942         </nationalNumberPattern>
3943         <exampleNumber>1234567</exampleNumber>
3944       </fixedLine>
3945       <mobile>
3946         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
3947              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
3948              holdings company http://www.timeturnsholdings.com/products does not show a link for
3949              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
3950              tried were valid. If the holdings company does not respond to requests about this
3951              range and unless we receive further information, we will remove this range. -->
3952         <nationalNumberPattern>
3953           8(?:
3954             [0-2459]\d{2}|
3955             8
3956           )\d{5}|
3957           9[7-9]\d{7}
3958         </nationalNumberPattern>
3959         <exampleNumber>991234567</exampleNumber>
3960       </mobile>
3961     </territory>
3962
3963     <!-- Central African Republic -->
3964     <territory id="CF" countryCode="236" internationalPrefix="00">
3965       <references>
3966         <sourceUrl>http://www.itu.int/oth/T0202000028/en</sourceUrl>
3967       </references>
3968       <availableFormats>
3969         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
3970           <format>$1 $2 $3 $4</format>
3971         </numberFormat>
3972       </availableFormats>
3973       <generalDesc>
3974         <nationalNumberPattern>[278]\d{7}</nationalNumberPattern>
3975         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3976       </generalDesc>
3977       <fixedLine>
3978         <nationalNumberPattern>2[12]\d{6}</nationalNumberPattern>
3979         <exampleNumber>21612345</exampleNumber>
3980       </fixedLine>
3981       <mobile>
3982         <nationalNumberPattern>7[0257]\d{6}</nationalNumberPattern>
3983         <exampleNumber>70012345</exampleNumber>
3984       </mobile>
3985       <premiumRate>
3986         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
3987         <exampleNumber>87761234</exampleNumber>
3988       </premiumRate>
3989     </territory>
3990
3991     <!-- Congo (Rep. of the) (Brazzaville) -->
3992     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
3993       <references>
3994         <sourceUrl>http://www.itu.int/oth/T020200002E/en</sourceUrl>
3995       </references>
3996       <availableFormats>
3997         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3998           <leadingDigits>[02]</leadingDigits>
3999           <format>$1 $2 $3</format>
4000         </numberFormat>
4001         <numberFormat pattern="(\d)(\d{4})(\d{4})">
4002           <leadingDigits>8</leadingDigits>
4003           <format>$1 $2 $3</format>
4004         </numberFormat>
4005       </availableFormats>
4006       <generalDesc>
4007         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
4008         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4009       </generalDesc>
4010       <fixedLine>
4011         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
4012         <exampleNumber>222123456</exampleNumber>
4013       </fixedLine>
4014       <mobile>
4015         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
4016         <exampleNumber>061234567</exampleNumber>
4017       </mobile>
4018       <!-- Referred to as a "Green number" in the telephone plan. -->
4019       <tollFree>
4020         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4021         <exampleNumber>800123456</exampleNumber>
4022       </tollFree>
4023     </territory>
4024
4025     <!-- Switzerland -->
4026     <territory id="CH" countryCode="41" internationalPrefix="00"
4027                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG"
4028                mobileNumberPortableRegion="true">
4029       <references>
4030         <!-- Under Technical prescriptions: Numbering plan for international carriers. -->
4031         <sourceUrl>http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en</sourceUrl>
4032       </references>
4033       <availableFormats>
4034         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
4035           <leadingDigits>
4036             [2-7]|
4037             [89]1
4038           </leadingDigits>
4039           <format>$1 $2 $3 $4</format>
4040         </numberFormat>
4041         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4042           <leadingDigits>
4043             8[047]|
4044             90
4045           </leadingDigits>
4046           <format>$1 $2 $3</format>
4047         </numberFormat>
4048         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
4049           <leadingDigits>860</leadingDigits>
4050           <format>$1 $2 $3 $4 $5</format>
4051         </numberFormat>
4052       </availableFormats>
4053       <generalDesc>
4054         <nationalNumberPattern>
4055           [2-9]\d{8}|
4056           860\d{9}
4057         </nationalNumberPattern>
4058         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
4059       </generalDesc>
4060       <fixedLine>
4061         <nationalNumberPattern>
4062           (?:
4063             2[12467]|
4064             3[1-4]|
4065             4[134]|
4066             5[256]|
4067             6[12]|
4068             [7-9]1
4069           )\d{7}
4070         </nationalNumberPattern>
4071         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4072         <exampleNumber>212345678</exampleNumber>
4073       </fixedLine>
4074       <mobile>
4075         <nationalNumberPattern>7[5-9]\d{7}</nationalNumberPattern>
4076         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4077         <exampleNumber>781234567</exampleNumber>
4078       </mobile>
4079       <pager>
4080         <!-- https://www.eofcom.admin.ch/eofcom/public/listEofcom_e164Allocated.do -->
4081         <nationalNumberPattern>74[0248]\d{6}</nationalNumberPattern>
4082         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4083         <exampleNumber>740123456</exampleNumber>
4084       </pager>
4085       <tollFree>
4086         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4087         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4088         <exampleNumber>800123456</exampleNumber>
4089       </tollFree>
4090       <premiumRate>
4091         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
4092         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4093         <exampleNumber>900123456</exampleNumber>
4094       </premiumRate>
4095       <sharedCost>
4096         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
4097         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4098         <exampleNumber>840123456</exampleNumber>
4099       </sharedCost>
4100       <personalNumber>
4101         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
4102         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4103         <exampleNumber>878123456</exampleNumber>
4104       </personalNumber>
4105       <uan>
4106         <!-- Used for corporate networks. -->
4107         <nationalNumberPattern>5[18]\d{7}</nationalNumberPattern>
4108         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4109         <exampleNumber>581234567</exampleNumber>
4110       </uan>
4111       <voicemail>
4112         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
4113         <possibleNumberPattern>\d{12}</possibleNumberPattern>
4114         <exampleNumber>860123456789</exampleNumber>
4115       </voicemail>
4116     </territory>
4117
4118     <!-- Côte d'Ivoire -->
4119     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
4120       <references>
4121         <sourceUrl>http://www.itu.int/oth/T0202000031/en</sourceUrl>
4122       </references>
4123       <availableFormats>
4124         <!-- Using format from online yellow pages over format implied in national numbering plan.
4125              -->
4126         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4127           <format>$1 $2 $3 $4</format>
4128         </numberFormat>
4129       </availableFormats>
4130       <generalDesc>
4131         <nationalNumberPattern>[02-7]\d{7}</nationalNumberPattern>
4132         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4133       </generalDesc>
4134       <fixedLine>
4135         <nationalNumberPattern>
4136           (?:
4137             2(?:
4138               0[023]|
4139               1[02357]|
4140               [23][045]|
4141               4[03-5]
4142             )|
4143             3(?:
4144               0[06]|
4145               1[069]|
4146               [2-4][07]|
4147               5[09]|
4148               6[08]
4149             )
4150           )\d{5}
4151         </nationalNumberPattern>
4152         <exampleNumber>21234567</exampleNumber>
4153       </fixedLine>
4154       <mobile>
4155         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 6[15] because SMS messages have been
4156              successfully delivered. Supported by numbers found on the internet. The prefix 56 was
4157              assigned to MTN in July 2013:
4158              http://www.atci.ci/images/stories/pdf/decisions-dg/decision_002.pdf
4159              50 has been removed since Warid seems to have stopped operation in Côte d'Ivoire. -->
4160           <nationalNumberPattern>
4161           (?:
4162             0[1-9]|
4163             4[0-24-9]|
4164             5[4-9]|
4165             6[015-79]|
4166             77
4167           )\d{6}
4168         </nationalNumberPattern>
4169         <exampleNumber>01234567</exampleNumber>
4170       </mobile>
4171     </territory>
4172
4173     <!-- Cook Islands -->
4174     <territory id="CK" countryCode="682" internationalPrefix="00">
4175       <references>
4176         <sourceUrl>http://www.itu.int/oth/T020200002F/en</sourceUrl>
4177       </references>
4178       <availableFormats>
4179         <numberFormat pattern="(\d{2})(\d{3})">
4180           <format>$1 $2</format>
4181         </numberFormat>
4182       </availableFormats>
4183       <generalDesc>
4184         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
4185         <possibleNumberPattern>\d{5}</possibleNumberPattern>
4186       </generalDesc>
4187       <fixedLine>
4188         <nationalNumberPattern>
4189           (?:
4190             2\d|
4191             3[13-7]|
4192             4[1-5]
4193           )\d{3}
4194         </nationalNumberPattern>
4195         <exampleNumber>21234</exampleNumber>
4196       </fixedLine>
4197       <mobile>
4198         <nationalNumberPattern>
4199           (?:
4200             5[0-68]|
4201             7\d
4202           )\d{3}
4203         </nationalNumberPattern>
4204         <exampleNumber>71234</exampleNumber>
4205       </mobile>
4206     </territory>
4207
4208     <!-- Chile -->
4209     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
4210     <territory id="CL" countryCode="56"
4211                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
4212                nationalPrefix="0"
4213                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
4214                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
4215       <references>
4216         <sourceUrl>http://www.itu.int/oth/T020200002A/en</sourceUrl>
4217         <sourceUrl>http://en.wikipedia.org/wiki/%2B56</sourceUrl>
4218         <sourceUrl>http://www.subtel.gob.cl/base_numeracion/tabla_numeracion_ido_idd.xlsx</sourceUrl>
4219       </references>
4220       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
4221            we strip here. National destinations may be dialled with a carrier if they are not local
4222            so we extract these carrier codes as well. -->
4223       <availableFormats>
4224         <numberFormat pattern="(\d)(\d{4})(\d{4})"
4225           nationalPrefixFormattingRule="($FG)"
4226           carrierCodeFormattingRule="$CC ($FG)">
4227           <leadingDigits>22</leadingDigits>
4228           <format>$1 $2 $3</format>
4229         </numberFormat>
4230         <numberFormat pattern="(\d{2})(\d{3})(\d{4})"
4231           nationalPrefixFormattingRule="($FG)"
4232           carrierCodeFormattingRule="$CC ($FG)">
4233           <leadingDigits>
4234             [357]|
4235             4[1-35]|
4236             6[13-57]
4237           </leadingDigits>
4238           <format>$1 $2 $3</format>
4239         </numberFormat>
4240         <numberFormat pattern="(9)(\d{4})(\d{4})">
4241           <leadingDigits>9</leadingDigits>
4242           <format>$1 $2 $3</format>
4243         </numberFormat>
4244         <numberFormat pattern="(44)(\d{3})(\d{4})">
4245           <leadingDigits>44</leadingDigits>
4246           <format>$1 $2 $3</format>
4247         </numberFormat>
4248         <numberFormat nationalPrefixFormattingRule="$FG"
4249           pattern="([68]00)(\d{3})(\d{3,4})">
4250           <leadingDigits>
4251             60|
4252             8
4253           </leadingDigits>
4254           <format>$1 $2 $3</format>
4255         </numberFormat>
4256         <numberFormat nationalPrefixFormattingRule="$FG"
4257           pattern="(600)(\d{3})(\d{2})(\d{3})">
4258           <leadingDigits>60</leadingDigits>
4259           <format>$1 $2 $3 $4</format>
4260         </numberFormat>
4261         <numberFormat nationalPrefixFormattingRule="$FG"
4262           pattern="(1230)(\d{3})(\d{4})">
4263           <leadingDigits>1</leadingDigits>
4264           <format>$1 $2 $3</format>
4265         </numberFormat>
4266         <numberFormat pattern="(\d{5})(\d{4})"
4267           nationalPrefixFormattingRule="($FG)"
4268           carrierCodeFormattingRule="$CC ($FG)">
4269           <leadingDigits>219</leadingDigits>
4270           <format>$1 $2</format>
4271         </numberFormat>
4272         <!-- Format some short numbers as a block. -->
4273         <numberFormat nationalPrefixFormattingRule="$FG"
4274           pattern="(\d{4,5})">
4275           <leadingDigits>[1-9]</leadingDigits>
4276           <format>$1</format>
4277           <intlFormat>NA</intlFormat>
4278         </numberFormat>
4279       </availableFormats>
4280       <generalDesc>
4281         <nationalNumberPattern>
4282           (?:
4283             [2-9]|
4284             600|
4285             123
4286           )\d{7,8}
4287         </nationalNumberPattern>
4288         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4289       </generalDesc>
4290       <noInternationalDialling>
4291         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4292         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4293         <exampleNumber>6001234567</exampleNumber>
4294       </noInternationalDialling>
4295       <fixedLine>
4296         <!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by
4297              inserting a '2' after the area code (which are 2 digits, with the exception of '2').
4298              As of Aug. 2014, all of the prefixes have been switched over to the new plan.
4299              IMPORTANT: The fact that Santiago numbers have a prefix of "22", and that numbers in
4300              other areas have '2' as their third digit, is likely to change in the future. At some
4301              stage, Santiago numbers will probably switch to prefix "2\d", and the third digit in
4302              other areas will probably be allowed to take on other values.
4303              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
4304                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
4305              -->
4306         <nationalNumberPattern>
4307           2(?:
4308             2\d{7}|
4309             1962\d{4}
4310           )|
4311           (?:
4312             3[2-5]|
4313             [47][1-35]|
4314             5[1-3578]|
4315             6[13-57]
4316           )\d{7}
4317         </nationalNumberPattern>
4318         <!-- Area codes do not need to be dialled when dialling within the same area, so the
4319              smallest possible number is length 7. -->
4320         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4321         <exampleNumber>221234567</exampleNumber>
4322       </fixedLine>
4323       <mobile>
4324         <nationalNumberPattern>9[4-9]\d{7}</nationalNumberPattern>
4325         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4326         <exampleNumber>961234567</exampleNumber>
4327       </mobile>
4328       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
4329            from a definitive source. -->
4330       <tollFree>
4331         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
4332         <nationalNumberPattern>
4333           800\d{6}|
4334           1230\d{7}
4335         </nationalNumberPattern>
4336         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
4337         <exampleNumber>800123456</exampleNumber>
4338       </tollFree>
4339       <sharedCost>
4340         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
4341         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4342         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4343         <exampleNumber>6001234567</exampleNumber>
4344       </sharedCost>
4345       <voip>
4346         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
4347         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4348         <exampleNumber>441234567</exampleNumber>
4349       </voip>
4350     </territory>
4351
4352     <!-- Cameroon -->
4353     <territory id="CM" countryCode="237" internationalPrefix="00">
4354       <references>
4355         <sourceUrl>http://www.itu.int/oth/T0202000024/en</sourceUrl>
4356       </references>
4357       <availableFormats>
4358         <!-- Formatting on the internet is consistently with the first 2 extracted, and usually in
4359              the same format as France (all 2 digit groups) so we use this instead of the guidance
4360              of the national numbering plan (which has 1 3 2 2 and 4 4 as its two formatting
4361              examples.) -->
4362         <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
4363           <leadingDigits>
4364             [23579]|
4365             88
4366           </leadingDigits>
4367           <format>$1 $2 $3 $4</format>
4368         </numberFormat>
4369         <numberFormat pattern="(800)(\d{2})(\d{3})">
4370           <leadingDigits>80</leadingDigits>
4371           <format>$1 $2 $3</format>
4372         </numberFormat>
4373       </availableFormats>
4374       <generalDesc>
4375         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
4376         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4377       </generalDesc>
4378       <fixedLine>
4379         <!-- Technically, the numbers are required only to start with a 2 or a 3, but all numbers at
4380              the moment start with 22 or 33 since they have been migrated from seven digit numbers
4381              beginning with these numbers. This rule should be relaxed if/when we start getting
4382              numbers beginning in other ways. -->
4383         <nationalNumberPattern>
4384           (?:
4385             22|
4386             33
4387           )\d{6}
4388         </nationalNumberPattern>
4389         <exampleNumber>22123456</exampleNumber>
4390       </fixedLine>
4391       <mobile>
4392         <!-- Mobile numbers beginning with 5 were found online. -->
4393         <nationalNumberPattern>[579]\d{7}</nationalNumberPattern>
4394         <exampleNumber>71234567</exampleNumber>
4395       </mobile>
4396       <tollFree>
4397         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
4398         <exampleNumber>80012345</exampleNumber>
4399       </tollFree>
4400       <premiumRate>
4401         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
4402              with 88 (usually 880). No information can be found as to whether these are premium rate
4403              or shared cost. -->
4404         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
4405         <exampleNumber>88012345</exampleNumber>
4406       </premiumRate>
4407     </territory>
4408
4409     <!-- China -->
4410     <territory id="CN" countryCode="86" internationalPrefix="(1[1279]\d{3})?00"
4411                preferredInternationalPrefix="00" nationalPrefix="0"
4412                nationalPrefixForParsing="(1[1279]\d{3})|0">
4413       <references>
4414         <sourceUrl>http://www.itu.int/oth/T020200002B/en</sourceUrl>
4415       </references>
4416       <availableFormats>
4417         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
4418                       nationalPrefixOptionalWhenFormatting="true"
4419                       carrierCodeFormattingRule="$CC $FG">
4420           <leadingDigits>80[2678]</leadingDigits>
4421           <format>$1 $2</format>
4422         </numberFormat>
4423         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
4424           <leadingDigits>[48]00</leadingDigits>
4425           <format>$1 $2 $3</format>
4426         </numberFormat>
4427         <!-- 100xx and 95xxx(x) short numbers without area codes. Without this rule, these short
4428              numbers will be formatted incorrectly by the AsYouTypeFormatter because they overlap
4429              with area codes 010, 095x. These numbers are defined in ShortNumberMetadata.xml but
4430              must be accounted for here. Note although ITU says the format is more like 95 xxx, in
4431              reality no space is used when writing such numbers in China. -->
4432         <numberFormat pattern="(\d{5,6})">
4433           <leadingDigits>
4434             100|
4435             95
4436           </leadingDigits>
4437           <format>$1</format>
4438           <intlFormat>NA</intlFormat>
4439         </numberFormat>
4440         <!-- 100xx and 95xxx(x) numbers with area codes (these numbers without an area code are now
4441              dealt with by ShortNumberMetadata.xml) and 96xxx(x) numbers with area codes (we don't
4442              support these as short numbers because they are only unique within a province, not
4443              within a country). -->
4444         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
4445                       carrierCodeFormattingRule="$CC $FG">
4446           <leadingDigits>
4447             (?:
4448               10|
4449               2\d
4450             )[19]
4451           </leadingDigits>
4452           <leadingDigits>
4453             (?:
4454               10|
4455               2\d
4456             )(?:
4457               10|
4458               9[56]
4459             )
4460           </leadingDigits>
4461           <leadingDigits>
4462             (?:
4463               10|
4464               2\d
4465             )(?:
4466               100|
4467               9[56]
4468             )
4469           </leadingDigits>
4470           <format>$1 $2</format>
4471         </numberFormat>
4472         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{5,6})"
4473                       carrierCodeFormattingRule="$CC $FG">
4474           <leadingDigits>[3-9]</leadingDigits>
4475           <leadingDigits>[3-9]\d{2}[19]</leadingDigits>
4476           <leadingDigits>
4477             [3-9]\d{2}(?:
4478               10|
4479               9[56]
4480             )
4481           </leadingDigits>
4482           <format>$1 $2</format>
4483         </numberFormat>
4484         <!-- Local numbers -->
4485         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
4486              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
4487              people frequently store them in their cellphones. It has to stay before formatting
4488              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
4489              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
4490         <numberFormat pattern="(\d{3,4})(\d{4})">
4491           <leadingDigits>[2-9]</leadingDigits>
4492           <format>$1 $2</format>
4493           <intlFormat>NA</intlFormat>
4494         </numberFormat>
4495         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
4496                       nationalPrefixOptionalWhenFormatting="true"
4497                       carrierCodeFormattingRule="$CC $FG">
4498           <leadingDigits>21</leadingDigits>
4499           <format>$1 $2 $3</format>
4500         </numberFormat>
4501         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
4502                       nationalPrefixOptionalWhenFormatting="true"
4503                       carrierCodeFormattingRule="$CC $FG">
4504           <leadingDigits>
4505             10[1-9]|
4506             2[02-9]
4507           </leadingDigits>
4508           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
4509           <leadingDigits>
4510             10[1-9]|
4511             2[02-9]
4512           </leadingDigits>
4513           <leadingDigits>
4514             10(?:
4515               [1-79]|
4516               8(?:
4517                 [1-9]|
4518                 0[1-9]
4519               )
4520             )|
4521             2[02-9]
4522           </leadingDigits>
4523           <format>$1 $2 $3</format>
4524         </numberFormat>
4525         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
4526                       nationalPrefixOptionalWhenFormatting="true"
4527                       carrierCodeFormattingRule="$CC $FG">
4528           <leadingDigits>
4529             3(?:
4530               11|
4531               7[179]
4532             )|
4533             4(?:
4534               [15]1|
4535               3[12]
4536             )|
4537             5(?:
4538               1|
4539               2[37]|
4540               3[12]|
4541               51|
4542               7[13-79]|
4543               9[15]
4544             )|
4545             7(?:
4546               31|
4547               5[457]|
4548               6[09]|
4549               91
4550             )|
4551             8(?:
4552               71|
4553               98
4554             )
4555           </leadingDigits>
4556           <format>$1 $2 $3</format>
4557         </numberFormat>
4558         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
4559                       nationalPrefixOptionalWhenFormatting="true"
4560                       carrierCodeFormattingRule="$CC $FG">
4561           <leadingDigits>
4562             3(?:
4563               1[02-9]|
4564               35|
4565               49|
4566               5|
4567               7[02-68]|
4568               9[1-68]
4569             )|
4570             4(?:
4571               1[02-9]|
4572               2[179]|
4573               [35][2-9]|
4574               6[4789]|
4575               7\d|
4576               8[23]
4577             )|
4578             5(?:
4579               3[03-9]|
4580               4[36]|
4581               5[02-9]|
4582               6[1-46]|
4583               7[028]|
4584               80|
4585               9[2-46-9]
4586             )|
4587             6(?:
4588               3[1-5]|
4589               6[0238]|
4590               9[12]
4591             )|
4592             7(?:
4593               01|
4594               [1579]|
4595               2[248]|
4596               3[04-9]|
4597               4[3-6]|
4598               6[2368]
4599             )|
4600             8(?:
4601               1[236-8]|
4602               2[5-7]|
4603               3|
4604               5[1-9]|
4605               7[02-9]|
4606               8[3678]|
4607               9[1-7]
4608             )|
4609             9(?:
4610               0[1-3689]|
4611               1[1-79]|
4612               [379]|
4613               4[13]|
4614               5[1-5]
4615             )
4616           </leadingDigits>
4617           <format>$1 $2 $3</format>
4618         </numberFormat>
4619         <numberFormat pattern="(\d{3})(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
4620           <leadingDigits>1[3-578]</leadingDigits>
4621           <format>$1 $2 $3</format>
4622         </numberFormat>
4623         <numberFormat pattern="(10800)(\d{3})(\d{4})">
4624           <leadingDigits>108</leadingDigits>
4625           <leadingDigits>1080</leadingDigits>
4626           <leadingDigits>10800</leadingDigits>
4627           <format>$1 $2 $3</format>
4628         </numberFormat>
4629       </availableFormats>
4630       <generalDesc>
4631         <nationalNumberPattern>
4632           [1-7]\d{6,11}|
4633           8[0-357-9]\d{6,9}|
4634           9\d{7,9}
4635         </nationalNumberPattern>
4636         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
4637       </generalDesc>
4638       <noInternationalDialling>
4639         <nationalNumberPattern>
4640           (?:
4641             4|
4642             (?:
4643               10
4644             )?8
4645           )00\d{7}
4646         </nationalNumberPattern>
4647         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4648         <exampleNumber>4001234567</exampleNumber>
4649       </noInternationalDialling>
4650       <fixedLine>
4651         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
4652              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
4653              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
4654              in the ITU data.
4655              10xxx and 95xxx(x) numbers with area codes are also included here, as they behave
4656              exactly like fixed-line numbers. We don't support them for 4-digit area codes though,
4657              as they don't seem to be used there based on making actual phone calls.
4658          -->
4659         <nationalNumberPattern>
4660           21(?:
4661             100\d{2}|
4662             95\d{3,4}|
4663             \d{8,10}
4664           )|
4665           (?:
4666             10|
4667             2[02-57-9]|
4668             3(?:
4669               11|
4670               7[179]
4671             )|
4672             4(?:
4673               [15]1|
4674               3[12]
4675             )|
4676             5(?:
4677               1\d|
4678               2[37]|
4679               3[12]|
4680               51|
4681               7[13-79]|
4682               9[15]
4683             )|
4684             7(?:
4685               31|
4686               5[457]|
4687               6[09]|
4688               91
4689             )|
4690             8(?:
4691               71|
4692               98
4693             )
4694           )(?:
4695             100\d{2}|
4696             95\d{3,4}|
4697             \d{8}
4698           )|
4699           (?:
4700             3(?:
4701               1[02-9]|
4702               35|
4703               49|
4704               5\d|
4705               7[02-68]|
4706               9[1-68]
4707             )|
4708             4(?:
4709               1[02-9]|
4710               2[179]|
4711               3[3-9]|
4712               5[2-9]|
4713               6[4789]|
4714               7\d|
4715               8[23]
4716             )|
4717             5(?:
4718               3[03-9]|
4719               4[36]|
4720               5[02-9]|
4721               6[1-46]|
4722               7[028]|
4723               80|
4724               9[2-46-9]
4725             )|
4726             6(?:
4727               3[1-5]|
4728               6[0238]|
4729               9[12]
4730             )|
4731             7(?:
4732               01|
4733               [17]\d|
4734               2[248]|
4735               3[04-9]|
4736               4[3-6]|
4737               5[0-3689]|
4738               6[2368]|
4739               9[02-9]
4740             )|
4741             8(?:
4742               1[236-8]|
4743               2[5-7]|
4744               3\d|
4745               5[1-9]|
4746               7[02-9]|
4747               8[3678]|
4748               9[1-7]
4749             )|
4750             9(?:
4751               0[1-3689]|
4752               1[1-79]|
4753               [379]\d|
4754               4[13]|
4755               5[1-5]
4756             )
4757           )(?:
4758             100\d{2}|
4759             95\d{3,4}|
4760             \d{7}
4761           )|
4762           80(?:
4763             29|
4764             6[03578]|
4765             7[018]|
4766             81
4767           )\d{4}
4768         </nationalNumberPattern>
4769         <exampleNumber>1012345678</exampleNumber>
4770       </fixedLine>
4771       <mobile>
4772         <!-- 170, 176, 177 and 178 prefixes are introduced in early 2014 for 4G networks. -->
4773         <nationalNumberPattern>
4774           1(?:
4775             [38]\d|
4776             4[57]|
4777             5[0-35-9]|
4778             7[06-8]
4779           )\d{8}
4780         </nationalNumberPattern>
4781         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4782         <exampleNumber>13123456789</exampleNumber>
4783       </mobile>
4784       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
4785            number plan, and do not seem to have been standardized. The information below is
4786            collected from searching the web. -->
4787       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
4788       <tollFree>
4789         <nationalNumberPattern>
4790           (?:
4791             10
4792           )?800\d{7}
4793         </nationalNumberPattern>
4794         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4795         <exampleNumber>8001234567</exampleNumber>
4796       </tollFree>
4797       <premiumRate>
4798         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
4799         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4800         <exampleNumber>16812345</exampleNumber>
4801       </premiumRate>
4802       <sharedCost>
4803         <!-- 96xxx(x) numbers with area codes are included here. Their costs are not well
4804              documented, but they are thought to be mostly local costs with certain exceptions. We
4805              don't support them for 4-digit area codes though, as they don't seem to be used there
4806              based on online searches. -->
4807         <nationalNumberPattern>
4808           400\d{7}|
4809           (?:
4810             10|
4811             2[0-57-9]|
4812             3(?:
4813               [157]\d|
4814               35|
4815               49|
4816               9[1-68]
4817             )|
4818             4(?:
4819               [17]\d|
4820               2[179]|
4821               [35][1-9]|
4822               6[4789]|
4823               8[23]
4824             )|
4825             5(?:
4826               [1357]\d|
4827               2[37]|
4828               4[36]|
4829               6[1-46]|
4830               80|
4831               9[1-9]
4832             )|
4833             6(?:
4834               3[1-5]|
4835               6[0238]|
4836               9[12]
4837             )|
4838             7(?:
4839               01|
4840               [1579]\d|
4841               2[248]|
4842               3[014-9]|
4843               4[3-6]|
4844               6[023689]
4845             )|
4846             8(?:
4847               1[236-8]|
4848               2[5-7]|
4849               [37]\d|
4850               5[1-9]|
4851               8[3678]|
4852               9[1-8]
4853             )|
4854             9(?:
4855               0[1-3689]|
4856               1[1-79]|
4857               [379]\d|
4858               4[13]|
4859               5[1-5]
4860             )
4861           )96\d{3,4}
4862         </nationalNumberPattern>
4863         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
4864         <exampleNumber>4001234567</exampleNumber>
4865       </sharedCost>
4866     </territory>
4867
4868     <!-- Colombia -->
4869     <!-- Extra international dialling prefixes from http://www.claro.com.co and
4870          http://www.tigo.com.co. -->
4871     <!-- 05 and 005 are for Orbitel: co.orbitel.com -->
4872     <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])"
4873                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?"
4874                mobileNumberPortableRegion="true">
4875       <references>
4876         <sourceUrl>http://www.itu.int/oth/T020200002C/en</sourceUrl>
4877         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia</sourceUrl>
4878       </references>
4879       <availableFormats>
4880         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
4881           nationalPrefixFormattingRule="($FG)">
4882           <leadingDigits>
4883             1(?:
4884               8[2-9]|
4885               9[0-3]|
4886               [2-7]
4887             )|
4888             [24-8]
4889           </leadingDigits>
4890           <leadingDigits>
4891             1(?:
4892               8[2-9]|
4893               9(?:
4894                 09|
4895                 [1-3]
4896               )|
4897               [2-7]
4898             )|
4899             [24-8]
4900           </leadingDigits>
4901           <format>$1 $2</format>
4902         </numberFormat>
4903         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
4904           <leadingDigits>3</leadingDigits>
4905           <format>$1 $2</format>
4906         </numberFormat>
4907         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
4908           <leadingDigits>
4909             1(?:
4910               80|
4911               9[04]
4912             )
4913           </leadingDigits>
4914           <leadingDigits>
4915             1(?:
4916               800|
4917               9(?:
4918                 0[01]|
4919                 4[78]
4920               )
4921             )
4922           </leadingDigits>
4923           <format>$1-$2-$3</format>
4924           <intlFormat>$1 $2 $3</intlFormat>
4925         </numberFormat>
4926       </availableFormats>
4927       <generalDesc>
4928         <nationalNumberPattern>
4929           (?:
4930             [13]\d{0,3}|
4931             [24-8]
4932           )\d{7}
4933         </nationalNumberPattern>
4934         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4935       </generalDesc>
4936       <fixedLine>
4937         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
4938         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4939         <exampleNumber>12345678</exampleNumber>
4940       </fixedLine>
4941       <mobile>
4942         <nationalNumberPattern>
4943           3(?:
4944             0[0-5]|
4945             1\d|
4946             2[0-2]|
4947             5[01]
4948           )\d{7}
4949         </nationalNumberPattern>
4950         <possibleNumberPattern>\d{10}</possibleNumberPattern>
4951         <exampleNumber>3211234567</exampleNumber>
4952       </mobile>
4953       <tollFree>
4954         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
4955         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4956         <exampleNumber>18001234567</exampleNumber>
4957       </tollFree>
4958       <premiumRate>
4959         <nationalNumberPattern>
4960           19(?:
4961             0[01]|
4962             4[78]
4963           )\d{7}
4964         </nationalNumberPattern>
4965         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4966         <exampleNumber>19001234567</exampleNumber>
4967       </premiumRate>
4968     </territory>
4969
4970     <!-- Costa Rica -->
4971     <territory id="CR" countryCode="506" internationalPrefix="00"
4972                nationalPrefixForParsing="(19(?:0[01468]|19|20|66|77))"
4973                carrierCodeFormattingRule="$CC $FG">
4974       <references>
4975         <sourceUrl>http://www.itu.int/oth/T0202000030/en</sourceUrl>
4976       </references>
4977       <availableFormats>
4978         <numberFormat pattern="(\d{4})(\d{4})">
4979           <leadingDigits>
4980             [24-7]|
4981             8[3-9]
4982           </leadingDigits>
4983           <format>$1 $2</format>
4984         </numberFormat>
4985         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
4986           <leadingDigits>[89]0</leadingDigits>
4987           <format>$1-$2-$3</format>
4988         </numberFormat>
4989       </availableFormats>
4990       <generalDesc>
4991         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
4992         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
4993       </generalDesc>
4994       <fixedLine>
4995         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
4996         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4997         <exampleNumber>22123456</exampleNumber>
4998       </fixedLine>
4999       <mobile>
5000         <nationalNumberPattern>
5001           57[0-3]\d{5}|
5002           6(?:
5003             [0-2]\d|
5004             30
5005           )\d{5}|
5006           7[0-3]\d{6}|
5007           8[3-9]\d{6}
5008         </nationalNumberPattern>
5009         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5010         <exampleNumber>83123456</exampleNumber>
5011       </mobile>
5012       <tollFree>
5013         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
5014         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5015         <exampleNumber>8001234567</exampleNumber>
5016       </tollFree>
5017       <premiumRate>
5018         <!-- Includes "mass calls" numbers with prefix 905. -->
5019         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
5020         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5021         <exampleNumber>9001234567</exampleNumber>
5022       </premiumRate>
5023       <voip>
5024         <!-- Including trunking service numbers starting with 5100. 4001 (callmyway.com) was added
5025              from an open-source bug report supported by numbers found online. -->
5026         <nationalNumberPattern>
5027           210[0-6]\d{4}|
5028           4(?:
5029             0(?:
5030               0[01]\d{4}|
5031               10[0-3]\d{3}|
5032               2900\d{2}|
5033               3[01]\d{4}|
5034               40\d{4}|
5035               5\d{5}|
5036               70[01]\d{3}|
5037               8[0-2]\d{4}
5038             )|
5039             1[01]\d{5}|
5040             20[0-3]\d{4}|
5041             400\d{4}|
5042             70[0-2]\d{4}
5043           )|
5044           5100\d{4}
5045         </nationalNumberPattern>
5046         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5047         <exampleNumber>40001234</exampleNumber>
5048       </voip>
5049     </territory>
5050
5051     <!-- Cuba -->
5052     <territory id="CU" countryCode="53" internationalPrefix="119"
5053                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
5054       <references>
5055         <sourceUrl>http://www.itu.int/oth/T0202000033/en</sourceUrl>
5056       </references>
5057       <availableFormats>
5058         <numberFormat pattern="(\d)(\d{6,7})">
5059           <leadingDigits>7</leadingDigits>
5060           <format>$1 $2</format>
5061         </numberFormat>
5062         <numberFormat pattern="(\d{2})(\d{4,6})">
5063           <leadingDigits>[2-4]</leadingDigits>
5064           <format>$1 $2</format>
5065         </numberFormat>
5066         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5067           <leadingDigits>5</leadingDigits>
5068           <format>$1 $2</format>
5069         </numberFormat>
5070       </availableFormats>
5071       <generalDesc>
5072         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
5073         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
5074       </generalDesc>
5075       <fixedLine>
5076         <nationalNumberPattern>
5077           2[1-4]\d{5,6}|
5078           3(?:
5079             1\d{6}|
5080             [23]\d{4,6}
5081           )|
5082           4(?:
5083             [125]\d{5,6}|
5084             [36]\d{6}|
5085             [78]\d{4,6}
5086           )|
5087           7\d{6,7}
5088         </nationalNumberPattern>
5089         <exampleNumber>71234567</exampleNumber>
5090       </fixedLine>
5091       <mobile>
5092         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
5093         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5094         <exampleNumber>51234567</exampleNumber>
5095       </mobile>
5096     </territory>
5097
5098     <!-- Cape Verde -->
5099     <territory id="CV" countryCode="238" internationalPrefix="0">
5100       <references>
5101         <sourceUrl>http://www.itu.int/oth/T0202000026/en</sourceUrl>
5102       </references>
5103       <availableFormats>
5104         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
5105           <format>$1 $2 $3</format>
5106         </numberFormat>
5107       </availableFormats>
5108       <generalDesc>
5109         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
5110         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5111       </generalDesc>
5112       <fixedLine>
5113         <nationalNumberPattern>
5114           2(?:
5115             2[1-7]|
5116             3[0-8]|
5117             4[12]|
5118             5[1256]|
5119             6\d|
5120             7[1-3]|
5121             8[1-5]
5122           )\d{4}
5123         </nationalNumberPattern>
5124         <exampleNumber>2211234</exampleNumber>
5125       </fixedLine>
5126       <mobile>
5127         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
5128              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
5129              example, and there are plenty of numbers on the internet that start with these
5130              prefixes. -->
5131         <nationalNumberPattern>
5132           (?:
5133             9\d|
5134             59
5135           )\d{5}
5136         </nationalNumberPattern>
5137         <exampleNumber>9911234</exampleNumber>
5138       </mobile>
5139     </territory>
5140
5141     <!-- Curaçao -->
5142     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
5143       <references>
5144         <sourceUrl>http://www.itu.int/oth/T02020000F5/en</sourceUrl>
5145       </references>
5146       <!-- All the formatting patterns for country-code 599 are here. -->
5147       <availableFormats>
5148         <numberFormat pattern="(\d{3})(\d{4})">
5149           <leadingDigits>[13-7]</leadingDigits>
5150           <format>$1 $2</format>
5151         </numberFormat>
5152         <numberFormat pattern="(9)(\d{3})(\d{4})">
5153           <leadingDigits>9</leadingDigits>
5154           <format>$1 $2 $3</format>
5155         </numberFormat>
5156       </availableFormats>
5157       <generalDesc>
5158         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
5159         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
5160       </generalDesc>
5161       <fixedLine>
5162         <nationalNumberPattern>
5163           9(?:
5164             [48]\d{2}|
5165             50\d|
5166             7(?:
5167               2[0-24]|
5168               [34]\d|
5169               6[35-7]|
5170               77|
5171               8[7-9]
5172             )
5173           )\d{4}
5174         </nationalNumberPattern>
5175         <exampleNumber>94151234</exampleNumber>
5176       </fixedLine>
5177       <mobile>
5178         <nationalNumberPattern>
5179           9(?:
5180             5(?:
5181               [1246]\d|
5182               3[01]
5183             )|
5184             6(?:
5185               [16-9]\d|
5186               3[01]
5187             )
5188           )\d{4}
5189         </nationalNumberPattern>
5190         <exampleNumber>95181234</exampleNumber>
5191       </mobile>
5192       <pager>
5193         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
5194         <exampleNumber>95581234</exampleNumber>
5195       </pager>
5196       <sharedCost>
5197         <!-- Value-added services are lumped together under shared cost, since we are not sure
5198              exactly what they are. -->
5199         <nationalNumberPattern>
5200           (?:
5201             10|
5202             69
5203           )\d{5}
5204         </nationalNumberPattern>
5205         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5206         <exampleNumber>1011234</exampleNumber>
5207       </sharedCost>
5208     </territory>
5209
5210     <!-- Christmas Islands -->
5211     <!-- Metadata shared with Australia. -->
5212     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
5213     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
5214                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
5215                nationalPrefix="0">
5216       <references>
5217         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
5218         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
5219       </references>
5220       <!-- Uses AU formatting rules. -->
5221       <!-- General desc and fixed line rules different from Australia. -->
5222       <generalDesc>
5223         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
5224         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5225       </generalDesc>
5226       <fixedLine>
5227         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
5228         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
5229         <exampleNumber>891641234</exampleNumber>
5230       </fixedLine>
5231       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5232       <mobile>
5233         <nationalNumberPattern>
5234           4(?:
5235             [0-2]\d|
5236             3[0-57-9]|
5237             4[47-9]|
5238             5[0-37-9]|
5239             6[6-9]|
5240             7[07-9]|
5241             8[7-9]
5242           )\d{6}
5243         </nationalNumberPattern>
5244         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5245         <exampleNumber>412345678</exampleNumber>
5246       </mobile>
5247       <tollFree>
5248         <nationalNumberPattern>
5249           1(?:
5250             80(?:
5251               0\d{2}
5252             )?|
5253             3(?:
5254               00\d{2}
5255             )?
5256           )\d{4}
5257         </nationalNumberPattern>
5258         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5259         <exampleNumber>1800123456</exampleNumber>
5260       </tollFree>
5261       <premiumRate>
5262         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
5263         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5264         <exampleNumber>1900123456</exampleNumber>
5265       </premiumRate>
5266       <personalNumber>
5267         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
5268         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5269         <exampleNumber>500123456</exampleNumber>
5270       </personalNumber>
5271       <voip>
5272         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
5273         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5274         <exampleNumber>550123456</exampleNumber>
5275       </voip>
5276     </territory>
5277
5278     <!-- Cyprus -->
5279     <territory id="CY" countryCode="357" internationalPrefix="00" mobileNumberPortableRegion="true">
5280       <references>
5281         <sourceUrl>http://www.itu.int/oth/T0202000034/en</sourceUrl>
5282       </references>
5283       <availableFormats>
5284         <!-- Format from http://www.cyprusyellowpages.com -->
5285         <numberFormat pattern="(\d{2})(\d{6})">
5286           <format>$1 $2</format>
5287         </numberFormat>
5288       </availableFormats>
5289       <generalDesc>
5290         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
5291         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5292       </generalDesc>
5293       <fixedLine>
5294         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
5295         <exampleNumber>22345678</exampleNumber>
5296       </fixedLine>
5297       <mobile>
5298         <!-- Includes paging numbers (they are mixed into the same block). -->
5299         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
5300         <exampleNumber>96123456</exampleNumber>
5301       </mobile>
5302       <tollFree>
5303         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
5304         <exampleNumber>80001234</exampleNumber>
5305       </tollFree>
5306       <premiumRate>
5307         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
5308         <exampleNumber>90012345</exampleNumber>
5309       </premiumRate>
5310       <sharedCost>
5311         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
5312         <exampleNumber>80112345</exampleNumber>
5313       </sharedCost>
5314       <personalNumber>
5315         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
5316         <exampleNumber>70012345</exampleNumber>
5317       </personalNumber>
5318       <uan>
5319         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
5320         <nationalNumberPattern>
5321           (?:
5322             50|
5323             77
5324           )\d{6}
5325         </nationalNumberPattern>
5326         <exampleNumber>77123456</exampleNumber>
5327       </uan>
5328     </territory>
5329
5330     <!-- Czech Rep. -->
5331     <territory id="CZ" countryCode="420" internationalPrefix="00" mobileNumberPortableRegion="true">
5332       <references>
5333         <sourceUrl>http://www.itu.int/oth/T0202000035/en</sourceUrl>
5334         <sourceUrl>http://en.wikipedia.org/wiki/%2B420</sourceUrl>
5335       </references>
5336       <availableFormats>
5337         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
5338           <leadingDigits>
5339             [2-8]|
5340             9[015-7]
5341           </leadingDigits>
5342           <format>$1 $2 $3</format>
5343         </numberFormat>
5344         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
5345           <leadingDigits>96</leadingDigits>
5346           <format>$1 $2 $3 $4</format>
5347         </numberFormat>
5348         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
5349           <leadingDigits>9[36]</leadingDigits>
5350           <format>$1 $2 $3 $4</format>
5351         </numberFormat>
5352       </availableFormats>
5353       <generalDesc>
5354         <nationalNumberPattern>
5355           [2-8]\d{8}|
5356           9\d{8,11}
5357         </nationalNumberPattern>
5358         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5359       </generalDesc>
5360       <fixedLine>
5361         <nationalNumberPattern>
5362           2\d{8}|
5363           (?:
5364             3[1257-9]|
5365             4[16-9]|
5366             5[13-9]
5367           )\d{7}
5368         </nationalNumberPattern>
5369         <exampleNumber>212345678</exampleNumber>
5370       </fixedLine>
5371       <mobile>
5372         <nationalNumberPattern>
5373           (?:
5374             60[1-8]|
5375             7(?:
5376               0[2-5]|
5377               [2379]\d
5378             )
5379           )\d{6}
5380         </nationalNumberPattern>
5381         <exampleNumber>601123456</exampleNumber>
5382       </mobile>
5383       <tollFree>
5384         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
5385         <exampleNumber>800123456</exampleNumber>
5386       </tollFree>
5387       <premiumRate>
5388         <!-- Includes premium rate dial-up. -->
5389         <nationalNumberPattern>
5390           9(?:
5391             0[05689]|
5392             76
5393           )\d{6}
5394         </nationalNumberPattern>
5395         <exampleNumber>900123456</exampleNumber>
5396       </premiumRate>
5397       <sharedCost>
5398         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
5399         <exampleNumber>811234567</exampleNumber>
5400       </sharedCost>
5401       <personalNumber>
5402         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
5403         <exampleNumber>700123456</exampleNumber>
5404       </personalNumber>
5405       <voip>
5406         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
5407         <exampleNumber>910123456</exampleNumber>
5408       </voip>
5409       <uan>
5410         <!-- Numbers belonging to private communication networks are included here. These are
5411              classified as Institutional networks, belonging to institutions like the police, armed
5412              forces and railways, along with a couple of formerly government-owned banks. These
5413              numbers are reachable by the public. -->
5414         <nationalNumberPattern>
5415           9(?:
5416             5\d|
5417             7[234]
5418           )\d{6}
5419         </nationalNumberPattern>
5420         <exampleNumber>972123456</exampleNumber>
5421       </uan>
5422       <voicemail>
5423         <nationalNumberPattern>
5424           9(?:
5425             3\d{9}|
5426             6\d{7,10}
5427           )
5428         </nationalNumberPattern>
5429         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5430         <exampleNumber>93123456789</exampleNumber>
5431       </voicemail>
5432     </territory>
5433
5434     <!-- Germany -->
5435     <territory id="DE" countryCode="49" internationalPrefix="00"
5436                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
5437                mobileNumberPortableRegion="true">
5438       <references>
5439         <sourceUrl>http://www.itu.int/oth/T0202000051/en</sourceUrl>
5440         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_germany</sourceUrl>
5441       </references>
5442       <availableFormats>
5443         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
5444              these should best be formatted, even though actual usage varies. -->
5445         <numberFormat pattern="(1\d{2})(\d{7,8})">
5446           <leadingDigits>1[67]</leadingDigits>
5447           <format>$1 $2</format>
5448         </numberFormat>
5449         <numberFormat pattern="(1\d{3})(\d{7})">
5450           <leadingDigits>15</leadingDigits>
5451           <format>$1 $2</format>
5452         </numberFormat>
5453         <numberFormat pattern="(\d{2})(\d{3,11})">
5454           <leadingDigits>
5455             3[02]|
5456             40|
5457             [68]9
5458           </leadingDigits>
5459           <format>$1 $2</format>
5460         </numberFormat>
5461         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
5462         <!-- 3 digit area codes. -->
5463         <numberFormat pattern="(\d{3})(\d{3,11})">
5464           <leadingDigits>
5465             2(?:
5466               \d1|
5467               0[2389]|
5468               1[24]|
5469               28|
5470               34
5471             )|
5472             3(?:
5473               [3-9][15]|
5474               40
5475             )|
5476             [4-8][1-9]1|
5477             9(?:
5478               06|
5479               [1-9]1
5480             )
5481           </leadingDigits>
5482           <format>$1 $2</format>
5483         </numberFormat>
5484         <!-- 4 digit area codes. -->
5485         <numberFormat pattern="(\d{4})(\d{2,11})">
5486           <leadingDigits>
5487             [24-6]|
5488             [7-9](?:
5489               \d[1-9]|
5490               [1-9]\d
5491             )|
5492             3(?:
5493               [3569][02-46-9]|
5494               4[2-4679]|
5495               7[2-467]|
5496               8[2-46-8]
5497             )
5498           </leadingDigits>
5499           <leadingDigits>
5500             [24-6]|
5501             [7-9](?:
5502               \d[1-9]|
5503               [1-9]\d
5504             )|
5505             3(?:
5506               3(?:
5507                 0[1-467]|
5508                 2[127-9]|
5509                 3[124578]|
5510                 [46][1246]|
5511                 7[1257-9]|
5512                 8[1256]|
5513                 9[145]
5514               )|
5515               4(?:
5516                 2[135]|
5517                 3[1357]|
5518                 4[13578]|
5519                 6[1246]|
5520                 7[1356]|
5521                 9[1346]
5522               )|
5523               5(?:
5524                 0[14]|
5525                 2[1-3589]|
5526                 3[1357]|
5527                 4[1246]|
5528                 6[1-4]|
5529                 7[1346]|
5530                 8[13568]|
5531                 9[1246]
5532               )|
5533               6(?:
5534                 0[356]|
5535                 2[1-489]|
5536                 3[124-6]|
5537                 4[1347]|
5538                 6[13]|
5539                 7[12579]|
5540                 8[1-356]|
5541                 9[135]
5542               )|
5543               7(?:
5544                 2[1-7]|
5545                 3[1357]|
5546                 4[145]|
5547                 6[1-5]|
5548                 7[1-4]
5549               )|
5550               8(?:
5551                 21|
5552                 3[1468]|
5553                 4[1347]|
5554                 6[0135-9]|
5555                 7[1467]|
5556                 8[136]
5557               )|
5558               9(?:
5559                 0[12479]|
5560                 2[1358]|
5561                 3[1357]|
5562                 4[134679]|
5563                 6[1-9]|
5564                 7[136]|
5565                 8[147]|
5566                 9[1468]
5567               )
5568             )
5569           </leadingDigits>
5570           <format>$1 $2</format>
5571         </numberFormat>
5572         <!-- 5 digit area codes. -->
5573         <numberFormat pattern="(3\d{4})(\d{1,10})">
5574           <leadingDigits>3</leadingDigits>
5575           <format>$1 $2</format>
5576         </numberFormat>
5577         <!-- Note: this is getting ridiculous! How can we format these better? -->
5578         <numberFormat pattern="(800)(\d{7,12})">
5579           <leadingDigits>800</leadingDigits>
5580           <format>$1 $2</format>
5581         </numberFormat>
5582         <!-- Voicemail access numbers for the carrier Blau. -->
5583         <numberFormat pattern="(177)(99)(\d{7,8})">
5584           <leadingDigits>177</leadingDigits>
5585           <leadingDigits>1779</leadingDigits>
5586           <leadingDigits>17799</leadingDigits>
5587           <format>$1 $2 $3</format>
5588         </numberFormat>
5589         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
5590           <leadingDigits>
5591             (?:
5592               18|
5593               90
5594             )0|
5595             137
5596           </leadingDigits>
5597           <leadingDigits>
5598             1(?:
5599               37|
5600               80
5601             )|
5602             900[1359]
5603           </leadingDigits>
5604           <format>$1 $2 $3</format>
5605         </numberFormat>
5606         <numberFormat pattern="(1\d{2})(\d{5,11})">
5607           <leadingDigits>181</leadingDigits>
5608           <format>$1 $2</format>
5609         </numberFormat>
5610         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
5611              way it is generally written. For other prefixes, we fall back to using a three-digit
5612              prefix since we have currently no more information to allow us to format these more
5613              precisely. -->
5614         <numberFormat pattern="(18\d{3})(\d{6})">
5615           <leadingDigits>185</leadingDigits>
5616           <leadingDigits>1850</leadingDigits>
5617           <leadingDigits>18500</leadingDigits>
5618           <format>$1 $2</format>
5619         </numberFormat>
5620         <numberFormat pattern="(18\d{2})(\d{7})">
5621           <leadingDigits>18[68]</leadingDigits>
5622           <format>$1 $2</format>
5623         </numberFormat>
5624         <numberFormat pattern="(18\d)(\d{8})">
5625           <leadingDigits>18[2-579]</leadingDigits>
5626           <format>$1 $2</format>
5627         </numberFormat>
5628         <numberFormat pattern="(700)(\d{4})(\d{4})">
5629           <leadingDigits>700</leadingDigits>
5630           <format>$1 $2 $3</format>
5631         </numberFormat>
5632         <numberFormat pattern="(138)(\d{4})">
5633           <leadingDigits>138</leadingDigits>
5634           <format>$1 $2</format>
5635         </numberFormat>
5636       </availableFormats>
5637       <generalDesc>
5638         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
5639              examined to see if it is valid with the 49 as part of the number. Due to the variable
5640              length of German numbers, this test is hard to do. The national pattern is hence
5641              stricter for numbers starting with 49, to try and remove the country code if the number
5642              begins with 49 whenever possible. -->
5643         <nationalNumberPattern>
5644           [1-35-9]\d{3,14}|
5645           4(?:
5646             [0-8]\d{4,12}|
5647             9(?:
5648               [0-37]\d|
5649               4(?:
5650                 [1-35-8]|
5651                 4\d?
5652               )|
5653               5\d{1,2}|
5654               6[1-8]\d?
5655             )\d{2,7}
5656           )
5657         </nationalNumberPattern>
5658         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
5659       </generalDesc>
5660       <fixedLine>
5661         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
5662              don't seem to respect this. The max-length is hence extended. -->
5663         <nationalNumberPattern>
5664           [246]\d{5,13}|
5665           3(?:
5666             0\d{3,13}|
5667             2\d{9}|
5668             [3-9]\d{4,13}
5669           )|
5670           5(?:
5671             0[2-8]|
5672             [1256]\d|
5673             [38][0-8]|
5674             4\d{0,2}|
5675             [79][0-7]
5676           )\d{3,11}|
5677           7(?:
5678             0[2-8]|
5679             [1-9]\d
5680           )\d{3,10}|
5681           8(?:
5682             0[2-9]|
5683             [1-9]\d
5684           )\d{3,10}|
5685           9(?:
5686             0[6-9]\d{3,10}|
5687             1\d{4,12}|
5688             [2-9]\d{4,11}
5689           )
5690         </nationalNumberPattern>
5691         <exampleNumber>30123456</exampleNumber>
5692       </fixedLine>
5693       <mobile>
5694         <!-- According to
5695              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
5696              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
5697              The ranges 15[056] have been removed from the ITU doc, but information found online
5698              indicates that they may still be working.
5699              -->
5700         <nationalNumberPattern>
5701           1(?:
5702             5[0-2579]\d{8}|
5703             6[023]\d{7,8}|
5704             7(?:
5705               [0-57-9]\d?|
5706               6\d
5707             )\d{7}
5708           )
5709         </nationalNumberPattern>
5710         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5711         <exampleNumber>15123456789</exampleNumber>
5712       </mobile>
5713       <pager>
5714         <nationalNumberPattern>
5715           16(?:
5716             4\d{1,10}|
5717             [89]\d{1,11}
5718           )
5719         </nationalNumberPattern>
5720         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
5721         <exampleNumber>16412345</exampleNumber>
5722       </pager>
5723       <tollFree>
5724         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
5725         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
5726         <exampleNumber>8001234567890</exampleNumber>
5727       </tollFree>
5728       <premiumRate>
5729         <!-- Includes the more expensive of the "televoting" line numbers. See the shared cost
5730              section for more information. -->
5731         <nationalNumberPattern>
5732           137[7-9]\d{6}|
5733           900(?:
5734             [135]\d{6}|
5735             9\d{7}
5736           )
5737         </nationalNumberPattern>
5738         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5739         <exampleNumber>9001234567</exampleNumber>
5740       </premiumRate>
5741       <sharedCost>
5742         <!-- Includes some mass-traffic numbers, used for e.g. phone voting, raffles, since their
5743              costs when dialling from a fixed-line phone is similar.
5744              Prices:
5745              http://www.billiger-telefonieren.de/0180-0137-0900-sonderrufnummern/
5746              Documentation:
5747              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/0137/0137_Nummernplan.pdf?__blob=publicationFile&v=2
5748         -->
5749         <nationalNumberPattern>
5750           1(?:
5751             3(?:
5752               7[1-6]\d{6}|
5753               8\d{4}
5754             )|
5755             80\d{5,11}
5756           )
5757         </nationalNumberPattern>
5758         <possibleNumberPattern>\d{7,14}</possibleNumberPattern>
5759         <exampleNumber>18012345</exampleNumber>
5760       </sharedCost>
5761       <personalNumber>
5762         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
5763         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5764         <exampleNumber>70012345678</exampleNumber>
5765       </personalNumber>
5766       <uan>
5767         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
5768              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
5769              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
5770         <nationalNumberPattern>
5771           18(?:
5772             1\d{5,11}|
5773             [2-9]\d{8}
5774           )
5775         </nationalNumberPattern>
5776         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5777         <exampleNumber>18500123456</exampleNumber>
5778       </uan>
5779       <voicemail>
5780         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
5781         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
5782         <exampleNumber>177991234567</exampleNumber>
5783       </voicemail>
5784     </territory>
5785
5786     <!-- Djibouti -->
5787     <territory id="DJ" countryCode="253" internationalPrefix="00">
5788       <references>
5789         <sourceUrl>http://www.itu.int/oth/T020200003A/en</sourceUrl>
5790       </references>
5791       <availableFormats>
5792         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5793           <format>$1 $2 $3 $4</format>
5794         </numberFormat>
5795       </availableFormats>
5796       <generalDesc>
5797         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
5798         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5799       </generalDesc>
5800       <fixedLine>
5801         <!-- Includes "Numéro long CDMA fixe" numbers. -->
5802         <nationalNumberPattern>
5803           2(?:
5804             1[2-5]|
5805             7[45]
5806           )\d{5}
5807         </nationalNumberPattern>
5808         <exampleNumber>21360003</exampleNumber>
5809       </fixedLine>
5810       <mobile>
5811         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
5812         <exampleNumber>77831001</exampleNumber>
5813       </mobile>
5814     </territory>
5815
5816     <!-- Denmark -->
5817     <territory id="DK" countryCode="45" internationalPrefix="00" mobileNumberPortableRegion="true">
5818       <references>
5819         <sourceUrl>http://www.dba.erhvervsstyrelsen.dk/numbering-lists</sourceUrl>
5820       </references>
5821       <availableFormats>
5822         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5823           <format>$1 $2 $3 $4</format>
5824         </numberFormat>
5825       </availableFormats>
5826       <generalDesc>
5827         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
5828         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5829       </generalDesc>
5830       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
5831            safe. -->
5832       <fixedLine>
5833         <nationalNumberPattern>
5834           (?:
5835             [2-7]\d|
5836             8[126-9]|
5837             9[1-36-9]
5838           )\d{6}
5839         </nationalNumberPattern>
5840         <exampleNumber>32123456</exampleNumber>
5841       </fixedLine>
5842       <mobile>
5843         <nationalNumberPattern>
5844           (?:
5845             [2-7]\d|
5846             8[126-9]|
5847             9[1-36-9]
5848           )\d{6}
5849         </nationalNumberPattern>
5850         <exampleNumber>20123456</exampleNumber>
5851       </mobile>
5852       <tollFree>
5853         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
5854         <exampleNumber>80123456</exampleNumber>
5855       </tollFree>
5856       <premiumRate>
5857         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
5858         <exampleNumber>90123456</exampleNumber>
5859       </premiumRate>
5860     </territory>
5861
5862     <!-- Dominica -->
5863     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
5864                internationalPrefix="011">
5865       <references>
5866         <sourceUrl>http://www.itu.int/oth/T020200003B/en</sourceUrl>
5867       </references>
5868       <generalDesc>
5869         <!-- NANPA country - uses US formatting rules -->
5870         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
5871         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5872       </generalDesc>
5873       <fixedLine>
5874         <nationalNumberPattern>
5875           767(?:
5876             2(?:
5877               55|
5878               66
5879             )|
5880             4(?:
5881               2[01]|
5882               4[0-25-9]
5883             )|
5884             50[0-4]|
5885             70[1-3]
5886           )\d{4}
5887         </nationalNumberPattern>
5888         <exampleNumber>7674201234</exampleNumber>
5889       </fixedLine>
5890       <mobile>
5891         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
5892         <nationalNumberPattern>
5893           767(?:
5894             2(?:
5895               [234689]5|
5896               7[5-7]
5897             )|
5898             31[5-7]|
5899             61[2-7]
5900           )\d{4}
5901         </nationalNumberPattern>
5902         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5903         <exampleNumber>7672251234</exampleNumber>
5904       </mobile>
5905       <tollFree>
5906         <nationalNumberPattern>
5907           8(?:
5908             00|
5909             44|
5910             55|
5911             66|
5912             77|
5913             88
5914           )[2-9]\d{6}
5915         </nationalNumberPattern>
5916         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5917         <exampleNumber>8002123456</exampleNumber>
5918       </tollFree>
5919       <premiumRate>
5920         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
5921         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5922         <exampleNumber>9002123456</exampleNumber>
5923       </premiumRate>
5924       <personalNumber>
5925         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
5926         <nationalNumberPattern>
5927           5(?:
5928             00|
5929             33|
5930             44|
5931             66|
5932             77
5933           )[2-9]\d{6}
5934         </nationalNumberPattern>
5935         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5936         <exampleNumber>5002345678</exampleNumber>
5937       </personalNumber>
5938     </territory>
5939
5940     <!-- Dominican Rep. -->
5941     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
5942                internationalPrefix="011" mobileNumberPortableRegion="true">
5943       <references>
5944         <sourceUrl>http://www.itu.int/oth/T020200003C/en</sourceUrl>
5945       </references>
5946       <generalDesc>
5947         <!-- NANPA country - uses US formatting rules -->
5948         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
5949         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5950       </generalDesc>
5951       <fixedLine>
5952         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
5953              prefixes in the document are classified as such by excluding them from the fixed-line
5954              ranges, but other than this have a generic rule. -->
5955         <nationalNumberPattern>
5956           8(?:
5957             [04]9[2-9]\d{6}|
5958             29(?:
5959               2(?:
5960                 [0-59]\d|
5961                 6[04-9]|
5962                 7[0-27]|
5963                 8[0237-9]
5964               )|
5965               3(?:
5966                 [0-35-9]\d|
5967                 4[7-9]
5968               )|
5969               [45]\d{2}|
5970               6(?:
5971                 [0-27-9]\d|
5972                 [3-5][1-9]|
5973                 6[0135-8]
5974               )|
5975               7(?:
5976                 0[013-9]|
5977                 [1-37]\d|
5978                 4[1-35689]|
5979                 5[1-4689]|
5980                 6[1-57-9]|
5981                 8[1-79]|
5982                 9[1-8]
5983               )|
5984               8(?:
5985                 0[146-9]|
5986                 1[0-48]|
5987                 [248]\d|
5988                 3[1-79]|
5989                 5[01589]|
5990                 6[013-68]|
5991                 7[124-8]|
5992                 9[0-8]
5993               )|
5994               9(?:
5995                 [0-24]\d|
5996                 3[02-46-9]|
5997                 5[0-79]|
5998                 60|
5999                 7[0169]|
6000                 8[57-9]|
6001                 9[02-9]
6002               )
6003             )\d{4}
6004           )
6005         </nationalNumberPattern>
6006         <exampleNumber>8092345678</exampleNumber>
6007       </fixedLine>
6008       <mobile>
6009         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
6010         <exampleNumber>8092345678</exampleNumber>
6011       </mobile>
6012       <tollFree>
6013         <nationalNumberPattern>
6014           8(?:
6015             00|
6016             44|
6017             55|
6018             66|
6019             77|
6020             88
6021           )[2-9]\d{6}
6022         </nationalNumberPattern>
6023         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6024         <exampleNumber>8002123456</exampleNumber>
6025       </tollFree>
6026       <premiumRate>
6027         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6028         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6029         <exampleNumber>9002123456</exampleNumber>
6030       </premiumRate>
6031       <personalNumber>
6032         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6033         <nationalNumberPattern>
6034           5(?:
6035             00|
6036             33|
6037             44|
6038             66|
6039             77
6040           )[2-9]\d{6}
6041         </nationalNumberPattern>
6042         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6043         <exampleNumber>5002345678</exampleNumber>
6044       </personalNumber>
6045    </territory>
6046
6047     <!-- Algeria -->
6048     <territory id="DZ" countryCode="213" internationalPrefix="00"
6049                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6050       <references>
6051         <sourceUrl>http://www.itu.int/oth/T0202000003/en</sourceUrl>
6052         <sourceUrl>http://www.arpt.dz</sourceUrl>
6053       </references>
6054       <availableFormats>
6055         <!-- Formatting from http://www.pagesjaunes-dz.com. -->
6056         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
6057           <leadingDigits>[1-4]</leadingDigits>
6058           <format>$1 $2 $3 $4</format>
6059         </numberFormat>
6060         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
6061           <leadingDigits>[5-8]</leadingDigits>
6062           <format>$1 $2 $3 $4</format>
6063         </numberFormat>
6064         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
6065           <leadingDigits>9</leadingDigits>
6066           <format>$1 $2 $3 $4</format>
6067         </numberFormat>
6068       </availableFormats>
6069       <generalDesc>
6070         <nationalNumberPattern>
6071           (?:
6072             [1-4]|
6073             [5-9]\d
6074           )\d{7}
6075         </nationalNumberPattern>
6076         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6077       </generalDesc>
6078       <fixedLine>
6079         <!-- We include the VSAT lines here. -->
6080         <nationalNumberPattern>
6081           (?:
6082             1\d|
6083             2[014-79]|
6084             3[0-8]|
6085             4[0135689]
6086           )\d{6}|
6087           9619\d{5}
6088         </nationalNumberPattern>
6089         <exampleNumber>12345678</exampleNumber>
6090       </fixedLine>
6091       <mobile>
6092         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6093              Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-3] were also added for
6094              Mobilis Algeria based on evidence found online. -->
6095         <nationalNumberPattern>
6096           (?:
6097             5[4-6]|
6098             7[7-9]
6099           )\d{7}|
6100           6(?:
6101             [569]\d|
6102             7[0-3]
6103           )\d{6}
6104         </nationalNumberPattern>
6105         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6106         <exampleNumber>551234567</exampleNumber>
6107       </mobile>
6108       <tollFree>
6109         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
6110         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6111         <exampleNumber>800123456</exampleNumber>
6112       </tollFree>
6113       <premiumRate>
6114         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
6115         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6116         <exampleNumber>808123456</exampleNumber>
6117       </premiumRate>
6118       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
6119            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
6120            -->
6121       <sharedCost>
6122         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
6123         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6124         <exampleNumber>801123456</exampleNumber>
6125       </sharedCost>
6126       <voip>
6127         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
6128         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6129         <exampleNumber>983123456</exampleNumber>
6130       </voip>
6131    </territory>
6132
6133     <!-- Ecuador -->
6134     <territory id="EC" countryCode="593" internationalPrefix="00"
6135                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
6136                mobileNumberPortableRegion="true">
6137       <references>
6138         <sourceUrl>http://en.wikipedia.org/wiki/+593</sourceUrl>
6139         <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>
6140         <sourceUrl>http://www.itu.int/oth/T020200003D/en</sourceUrl>
6141       </references>
6142       <availableFormats>
6143         <numberFormat pattern="(\d)(\d{3})(\d{4})">
6144           <leadingDigits>
6145             [247]|
6146             [356][2-8]
6147           </leadingDigits>
6148           <format>$1 $2-$3</format>
6149           <intlFormat>$1-$2-$3</intlFormat>
6150         </numberFormat>
6151         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
6152              change on the http://www.conatel.gob.ec site. -->
6153         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
6154           <leadingDigits>9</leadingDigits>
6155           <format>$1 $2 $3</format>
6156         </numberFormat>
6157         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
6158           <leadingDigits>1</leadingDigits>
6159           <format>$1 $2 $3</format>
6160         </numberFormat>
6161       </availableFormats>
6162       <generalDesc>
6163         <nationalNumberPattern>
6164           1\d{9,10}|
6165           [2-8]\d{7}|
6166           9\d{8}
6167         </nationalNumberPattern>
6168         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
6169       </generalDesc>
6170       <fixedLine>
6171         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
6172         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6173         <exampleNumber>22123456</exampleNumber>
6174       </fixedLine>
6175       <mobile>
6176         <nationalNumberPattern>
6177           9(?:
6178             39|
6179             [45][89]|
6180             [67][7-9]|
6181             [89]\d
6182           )\d{6}
6183         </nationalNumberPattern>
6184         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6185         <exampleNumber>991234567</exampleNumber>
6186       </mobile>
6187       <tollFree>
6188         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
6189         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
6190         <exampleNumber>18001234567</exampleNumber>
6191       </tollFree>
6192       <voip>
6193         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
6194         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6195         <exampleNumber>28901234</exampleNumber>
6196       </voip>
6197     </territory>
6198
6199     <!-- Estonia -->
6200     <territory id="EE" countryCode="372" internationalPrefix="00" mobileNumberPortableRegion="true">
6201       <references>
6202         <sourceUrl>http://www.itu.int/oth/T0202000043/en</sourceUrl>
6203         <sourceUrl>http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm</sourceUrl>
6204       </references>
6205       <availableFormats>
6206         <numberFormat pattern="([3-79]\d{2})(\d{4})">
6207           <leadingDigits>
6208             [369]|
6209             4[3-8]|
6210             5(?:
6211               [0-2]|
6212               5[0-478]|
6213               6[45]
6214             )|
6215             7[1-9]
6216           </leadingDigits>
6217           <leadingDigits>
6218             [369]|
6219             4[3-8]|
6220             5(?:
6221               [02]|
6222               1(?:
6223                 [0-8]|
6224                 95
6225               )|
6226               5[0-478]|
6227               6(?:
6228                 4[0-4]|
6229                 5[1-589]
6230               )
6231             )|
6232             7[1-9]
6233           </leadingDigits>
6234           <format>$1 $2</format>
6235         </numberFormat>
6236         <numberFormat pattern="(70)(\d{2})(\d{4})">
6237           <leadingDigits>70</leadingDigits>
6238           <format>$1 $2 $3</format>
6239         </numberFormat>
6240         <numberFormat pattern="(8000)(\d{3})(\d{3})">
6241           <leadingDigits>800</leadingDigits>
6242           <leadingDigits>8000</leadingDigits>
6243           <format>$1 $2 $3</format>
6244         </numberFormat>
6245         <numberFormat pattern="([458]\d{3})(\d{3,4})">
6246           <leadingDigits>
6247             40|
6248             5|
6249             8(?:
6250               00|
6251               [1-5]
6252             )
6253           </leadingDigits>
6254           <leadingDigits>
6255             40|
6256             5|
6257             8(?:
6258               00[1-9]|
6259               [1-5]
6260             )
6261           </leadingDigits>
6262           <format>$1 $2</format>
6263         </numberFormat>
6264       </availableFormats>
6265       <generalDesc>
6266         <nationalNumberPattern>
6267           1\d{3,4}|
6268           [3-9]\d{6,7}|
6269           800\d{6,7}
6270         </nationalNumberPattern>
6271         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
6272       </generalDesc>
6273       <noInternationalDialling>
6274         <nationalNumberPattern>
6275           1\d{3,4}|
6276           800[2-9]\d{3}
6277         </nationalNumberPattern>
6278         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
6279         <exampleNumber>8002123</exampleNumber>
6280       </noInternationalDialling>
6281       <fixedLine>
6282         <!-- Supporting eFax numbers here as well. -->
6283         <nationalNumberPattern>
6284           (?:
6285             3[23589]|
6286             4(?:
6287               0\d|
6288               [3-8]
6289             )|
6290             6\d|
6291             7[1-9]|
6292             88
6293           )\d{5}
6294         </nationalNumberPattern>
6295         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6296         <exampleNumber>3212345</exampleNumber>
6297       </fixedLine>
6298       <mobile>
6299         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
6300              numbers are 8 digits. -->
6301         <nationalNumberPattern>
6302           (?:
6303             5\d|
6304             8[1-5]
6305           )\d{6}|
6306           5(?:
6307             [02]\d{2}|
6308             1(?:
6309               [0-8]\d|
6310               95
6311             )|
6312             5[0-478]\d|
6313             64[0-4]|
6314             65[1-589]
6315           )\d{3}
6316         </nationalNumberPattern>
6317         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6318         <exampleNumber>51234567</exampleNumber>
6319       </mobile>
6320       <tollFree>
6321         <nationalNumberPattern>
6322           800(?:
6323             0\d{3}|
6324             1\d|
6325             [2-9]
6326           )\d{3}
6327         </nationalNumberPattern>
6328         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6329         <exampleNumber>80012345</exampleNumber>
6330       </tollFree>
6331       <premiumRate>
6332         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
6333         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6334         <exampleNumber>9001234</exampleNumber>
6335       </premiumRate>
6336       <personalNumber>
6337         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
6338         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6339         <exampleNumber>70012345</exampleNumber>
6340       </personalNumber>
6341       <uan>
6342         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
6343              included here. -->
6344         <nationalNumberPattern>
6345           1(?:
6346             2[01245]|
6347             3[0-6]|
6348             4[1-489]|
6349             5[0-59]|
6350             6[1-46-9]|
6351             7[0-27-9]|
6352             8[189]|
6353             9[012]
6354           )\d{1,2}
6355         </nationalNumberPattern>
6356         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
6357         <exampleNumber>12123</exampleNumber>
6358       </uan>
6359     </territory>
6360
6361     <!-- Egypt -->
6362     <territory id="EG" countryCode="20" internationalPrefix="00"
6363                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
6364                mobileNumberPortableRegion="true">
6365        <references>
6366          <sourceUrl>http://www.itu.int/oth/T020200003E/en</sourceUrl>
6367        </references>
6368        <availableFormats>
6369          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
6370               or 19. These are formatted without national prefix, as a block, so do not need to be
6371               listed here. -->
6372          <numberFormat pattern="(\d)(\d{7,8})">
6373            <leadingDigits>[23]</leadingDigits>
6374            <format>$1 $2</format>
6375          </numberFormat>
6376          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
6377            <leadingDigits>
6378              1[012]|
6379              [89]00
6380            </leadingDigits>
6381            <format>$1 $2 $3</format>
6382          </numberFormat>
6383          <numberFormat pattern="(\d{2})(\d{6,7})">
6384            <leadingDigits>
6385              1[35]|
6386              [4-6]|
6387              [89][2-9]
6388            </leadingDigits>
6389            <format>$1 $2</format>
6390          </numberFormat>
6391        </availableFormats>
6392       <generalDesc>
6393         <nationalNumberPattern>
6394           1\d{4,9}|
6395           [2456]\d{8}|
6396           3\d{7}|
6397           [89]\d{8,9}
6398         </nationalNumberPattern>
6399         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6400       </generalDesc>
6401       <fixedLine>
6402         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
6403              that the plan says numbers starting with 15 should be followed by seven digit
6404              subscriber numbers, but some numbers we have found online are in fact six digit.
6405              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
6406              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
6407              092 and with 5 and 6 for 96. -->
6408         <nationalNumberPattern>
6409           (?:
6410             1(?:
6411               3[23]\d|
6412               5(?:
6413                 [23]|
6414                 9\d
6415               )
6416             )|
6417             2[2-4]\d{2}|
6418             3\d{2}|
6419             4(?:
6420               0[2-5]|
6421               [578][23]|
6422               64
6423             )\d|
6424             5(?:
6425               0[2-7]|
6426               [57][23]
6427             )\d|
6428             6[24-689]3\d|
6429             8(?:
6430               2[2-57]|
6431               4[26]|
6432               6[237]|
6433               8[2-4]
6434             )\d|
6435             9(?:
6436               2[27]|
6437               3[24]|
6438               52|
6439               6[2356]|
6440               7[2-4]
6441             )\d
6442           )\d{5}|
6443           1[69]\d{3}
6444         </nationalNumberPattern>
6445         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
6446         <exampleNumber>234567890</exampleNumber>
6447       </fixedLine>
6448       <mobile>
6449         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
6450              started allocating numbers beginning with these prefixes, along with 115 from numbers
6451              found online. Etisalat is using 110. -->
6452         <nationalNumberPattern>
6453           1(?:
6454             0[0-269]|
6455             1[0-245]|
6456             2[0-278]
6457           )\d{7}
6458         </nationalNumberPattern>
6459         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6460         <exampleNumber>1001234567</exampleNumber>
6461       </mobile>
6462       <tollFree>
6463         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
6464         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6465         <exampleNumber>8001234567</exampleNumber>
6466       </tollFree>
6467       <premiumRate>
6468         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
6469         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6470         <exampleNumber>9001234567</exampleNumber>
6471       </premiumRate>
6472     </territory>
6473
6474     <!-- Western Sahara -->
6475     <!-- Country calling code shared with Morocco (MA). -->
6476     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
6477     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
6478                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6479       <references>
6480         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
6481       </references>
6482       <!-- Uses MA formatting rules and shares general description
6483            (non-geographical numbers for Morocco are still valid). -->
6484       <generalDesc>
6485         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
6486         <!-- Closed numbering plan. -->
6487         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6488       </generalDesc>
6489       <fixedLine>
6490         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
6491         <exampleNumber>528812345</exampleNumber>
6492       </fixedLine>
6493       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
6494            numbers to be recognized as available from within Western Sahara. -->
6495       <mobile>
6496         <nationalNumberPattern>
6497           6(?:
6498             0[0-8]|
6499             [12-7]\d|
6500             8[01]|
6501             9[2457-9]
6502           )\d{6}
6503         </nationalNumberPattern>
6504         <exampleNumber>650123456</exampleNumber>
6505       </mobile>
6506       <tollFree>
6507         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
6508         <exampleNumber>801234567</exampleNumber>
6509       </tollFree>
6510       <premiumRate>
6511         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
6512         <exampleNumber>891234567</exampleNumber>
6513       </premiumRate>
6514     </territory>
6515
6516     <!-- Eritrea -->
6517     <territory id="ER" countryCode="291" internationalPrefix="00"
6518                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6519       <references>
6520         <sourceUrl>http://www.itu.int/oth/T0202000042/en</sourceUrl>
6521       </references>
6522       <availableFormats>
6523         <numberFormat pattern="(\d)(\d{3})(\d{3})">
6524           <format>$1 $2 $3</format>
6525         </numberFormat>
6526       </availableFormats>
6527       <generalDesc>
6528         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
6529         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
6530       </generalDesc>
6531       <fixedLine>
6532         <nationalNumberPattern>
6533           1(?:
6534             1[12568]|
6535             20|
6536             40|
6537             55|
6538             6[146]
6539           )\d{4}|
6540           8\d{6}
6541         </nationalNumberPattern>
6542         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
6543       </fixedLine>
6544       <mobile>
6545         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
6546              numbers or was in addition to them, so we support both here. -->
6547         <nationalNumberPattern>
6548           17[1-3]\d{4}|
6549           7\d{6}
6550         </nationalNumberPattern>
6551         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6552         <exampleNumber>7123456</exampleNumber>
6553       </mobile>
6554     </territory>
6555
6556     <!-- Spain -->
6557     <territory id="ES" countryCode="34" internationalPrefix="00" mobileNumberPortableRegion="true">
6558       <references>
6559         <sourceUrl>http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx</sourceUrl>
6560       </references>
6561       <availableFormats>
6562         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
6563           <leadingDigits>
6564             [568]|
6565             [79][0-8]
6566           </leadingDigits>
6567           <format>$1 $2 $3 $4</format>
6568         </numberFormat>
6569       </availableFormats>
6570       <generalDesc>
6571         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
6572         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6573       </generalDesc>
6574       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
6575            fixed-line ranges. -->
6576       <fixedLine>
6577         <nationalNumberPattern>
6578           8(?:
6579             [13]0|
6580             [28][0-8]|
6581             [47][1-9]|
6582             5[01346-9]|
6583             6[0457-9]
6584           )\d{6}|
6585           9(?:
6586             [1238][0-8]\d{6}|
6587             4[1-9]\d{6}|
6588             5\d{7}|
6589             6(?:
6590               [0-8]\d{6}|
6591               9(?:
6592                 0(?:
6593                   [0-57-9]\d{4}|
6594                   6(?:
6595                     0[0-8]|
6596                     1[1-9]|
6597                     [2-9]\d
6598                   )\d{2}
6599                 )|
6600                 [1-9]\d{5}
6601               )
6602             )|
6603             7(?:
6604               [124-9]\d{2}|
6605               3(?:
6606                 [0-8]\d|
6607                 9[1-9]
6608               )
6609             )\d{4}
6610           )
6611         </nationalNumberPattern>
6612         <exampleNumber>810123456</exampleNumber>
6613       </fixedLine>
6614       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
6615            information received from Lleida Networks. -->
6616       <mobile>
6617         <nationalNumberPattern>
6618           (?:
6619             6\d{6}|
6620             7[1-4]\d{5}|
6621             9(?:
6622               6906(?:
6623                 09|
6624                 10
6625               )|
6626               7390\d{2}
6627             )
6628           )\d{2}
6629         </nationalNumberPattern>
6630         <exampleNumber>612345678</exampleNumber>
6631       </mobile>
6632       <tollFree>
6633         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
6634         <exampleNumber>800123456</exampleNumber>
6635       </tollFree>
6636       <premiumRate>
6637         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
6638         <exampleNumber>803123456</exampleNumber>
6639       </premiumRate>
6640       <sharedCost>
6641         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
6642         <exampleNumber>901123456</exampleNumber>
6643       </sharedCost>
6644       <personalNumber>
6645         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
6646         <exampleNumber>701234567</exampleNumber>
6647       </personalNumber>
6648       <!-- Modelling non-geographic nomadic numbers as UAN. -->
6649       <uan>
6650         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
6651         <exampleNumber>511234567</exampleNumber>
6652       </uan>
6653     </territory>
6654
6655     <!-- Ethiopia -->
6656     <territory id="ET" countryCode="251" internationalPrefix="00"
6657                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6658       <references>
6659         <sourceUrl>http://www.itu.int/oth/T0202000044/en</sourceUrl>
6660       </references>
6661       <availableFormats>
6662         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
6663           <format>$1 $2 $3</format>
6664         </numberFormat>
6665       </availableFormats>
6666       <generalDesc>
6667         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
6668         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
6669       </generalDesc>
6670       <fixedLine>
6671         <nationalNumberPattern>
6672           (?:
6673             11(?:
6674               1(?:
6675                 1[124]|
6676                 2[2-57]|
6677                 3[1-5]|
6678                 5[5-8]|
6679                 8[6-8]
6680               )|
6681               2(?:
6682                 13|
6683                 3[6-8]|
6684                 5[89]|
6685                 7[05-9]|
6686                 8[2-6]
6687               )|
6688               3(?:
6689                 2[01]|
6690                 3[0-289]|
6691                 4[1289]|
6692                 7[1-4]|
6693                 87
6694               )|
6695               4(?:
6696                 1[69]|
6697                 3[2-49]|
6698                 4[0-3]|
6699                 6[5-8]
6700               )|
6701               5(?:
6702                 1[57]|
6703                 44|
6704                 5[0-4]
6705               )|
6706               6(?:
6707                 18|
6708                 2[69]|
6709                 4[5-7]|
6710                 5[1-5]|
6711                 6[0-59]|
6712                 8[015-8]
6713               )
6714             )|
6715             2(?:
6716               2(?:
6717                 11[1-9]|
6718                 22[0-7]|
6719                 33\d|
6720                 44[1467]|
6721                 66[1-68]
6722               )|
6723               5(?:
6724                 11[124-6]|
6725                 33[2-8]|
6726                 44[1467]|
6727                 55[14]|
6728                 66[1-3679]|
6729                 77[124-79]|
6730                 880
6731               )
6732             )|
6733             3(?:
6734               3(?:
6735                 11[0-46-8]|
6736                 22[0-6]|
6737                 33[0134689]|
6738                 44[04]|
6739                 55[0-6]|
6740                 66[01467]
6741               )|
6742               4(?:
6743                 44[0-8]|
6744                 55[0-69]|
6745                 66[0-3]|
6746                 77[1-5]
6747               )
6748             )|
6749             4(?:
6750               6(?:
6751                 22[0-24-7]|
6752                 33[1-5]|
6753                 44[13-69]|
6754                 55[14-689]|
6755                 660|
6756                 88[1-4]
6757               )|
6758               7(?:
6759                 11[1-9]|
6760                 22[1-9]|
6761                 33[13-7]|
6762                 44[13-6]|
6763                 55[1-689]
6764               )
6765             )|
6766             5(?:
6767               7(?:
6768                 227|
6769                 55[05]|
6770                 (?:
6771                   66|
6772                   77
6773                 )[14-8]
6774               )|
6775               8(?:
6776                 11[149]|
6777                 22[013-79]|
6778                 33[0-68]|
6779                 44[013-8]|
6780                 550|
6781                 66[1-5]|
6782                 77\d
6783               )
6784             )
6785           )\d{4}
6786         </nationalNumberPattern>
6787         <exampleNumber>111112345</exampleNumber>
6788       </fixedLine>
6789       <mobile>
6790         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
6791              numbers are visible online than are reported in the ITU document. This pattern is
6792              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
6793              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
6794         <nationalNumberPattern>
6795           9(?:
6796             [1-3]\d|
6797             5[89]
6798           )\d{6}
6799         </nationalNumberPattern>
6800         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6801         <exampleNumber>911234567</exampleNumber>
6802       </mobile>
6803     </territory>
6804
6805     <!-- Finland -->
6806     <!-- Metadata shared with Ã…land (AX) -->
6807     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
6808                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
6809                mobileNumberPortableRegion="true">
6810       <references>
6811         <sourceUrl>http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html</sourceUrl>
6812       </references>
6813       <availableFormats>
6814         <numberFormat pattern="(\d{3})(\d{3,7})">
6815           <leadingDigits>
6816             (?:
6817               [1-3]00|
6818               [6-8]0
6819             )
6820           </leadingDigits>
6821           <format>$1 $2</format>
6822         </numberFormat>
6823         <numberFormat pattern="(\d{2})(\d{4,10})">
6824           <leadingDigits>
6825             [14]|
6826             2[09]|
6827             50|
6828             7[135]
6829           </leadingDigits>
6830           <format>$1 $2</format>
6831         </numberFormat>
6832         <numberFormat pattern="(\d)(\d{4,11})">
6833           <leadingDigits>
6834             [25689][1-8]|
6835             3
6836           </leadingDigits>
6837           <format>$1 $2</format>
6838         </numberFormat>
6839       </availableFormats>
6840       <generalDesc>
6841         <nationalNumberPattern>
6842           1\d{4,11}|
6843           [2-9]\d{4,10}
6844         </nationalNumberPattern>
6845         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
6846       </generalDesc>
6847       <noInternationalDialling>
6848         <!-- According to the national numbering plan, service numbers are in general not accessible
6849              from abroad, although 600/700/800 numbers may be. -->
6850         <nationalNumberPattern>
6851           [13]00\d{3,7}|
6852           2(?:
6853             0(?:
6854               0\d{3,7}|
6855               2[023]\d{1,6}|
6856               9[89]\d{1,6}
6857             )
6858           )|
6859           60(?:
6860             [12]\d{5,6}|
6861             6\d{7}
6862           )|
6863           7(?:
6864             1\d{7}|
6865             3\d{8}|
6866             5[03-9]\d{2,7}
6867           )
6868         </nationalNumberPattern>
6869         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6870         <exampleNumber>100123</exampleNumber>
6871       </noInternationalDialling>
6872       <fixedLine>
6873         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
6874              are listed under UAN. It also excludes Ã…land numbers. -->
6875         <nationalNumberPattern>
6876           1(?:
6877             [3569][1-8]\d{3,9}|
6878             [47]\d{5,10}
6879           )|
6880           2[1-8]\d{3,9}|
6881           3(?:
6882             [1-8]\d{3,9}|
6883             9\d{4,8}
6884           )|
6885           [5689][1-8]\d{3,9}
6886         </nationalNumberPattern>
6887         <exampleNumber>1312345678</exampleNumber>
6888       </fixedLine>
6889       <mobile>
6890         <nationalNumberPattern>
6891           4\d{5,10}|
6892           50\d{4,8}
6893         </nationalNumberPattern>
6894         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
6895         <exampleNumber>412345678</exampleNumber>
6896       </mobile>
6897       <tollFree>
6898         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
6899         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6900         <exampleNumber>8001234567</exampleNumber>
6901       </tollFree>
6902       <premiumRate>
6903         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
6904         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6905         <exampleNumber>600123456</exampleNumber>
6906       </premiumRate>
6907       <uan>
6908         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
6909              assigned to institutions such as universities, the national post, etc, where they are
6910              not otherwise classified as toll-free or premium-rate numbers. -->
6911         <nationalNumberPattern>
6912           [13]0\d{4,8}|
6913           2(?:
6914             0(?:
6915               [016-8]\d{3,7}|
6916               [2-59]\d{2,7}
6917             )|
6918             9\d{4,8}
6919           )|
6920           60(?:
6921             [12]\d{5,6}|
6922             6\d{7}
6923           )|
6924           7(?:
6925             1\d{7}|
6926             3\d{8}|
6927             5[03-9]\d{2,7}
6928           )
6929         </nationalNumberPattern>
6930         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6931         <exampleNumber>10112345</exampleNumber>
6932       </uan>
6933     </territory>
6934
6935     <!-- Fiji -->
6936     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
6937                preferredInternationalPrefix="00" leadingZeroPossible="true">
6938       <references>
6939         <sourceUrl>http://www.itu.int/oth/T0202000048/en</sourceUrl>
6940         <sourceUrl>http://www.tfl.com.fj</sourceUrl>
6941       </references>
6942       <availableFormats>
6943         <numberFormat pattern="(\d{3})(\d{4})">
6944           <leadingDigits>[36-9]</leadingDigits>
6945           <format>$1 $2</format>
6946         </numberFormat>
6947         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
6948           <leadingDigits>0</leadingDigits>
6949           <format>$1 $2 $3</format>
6950         </numberFormat>
6951       </availableFormats>
6952       <generalDesc>
6953         <nationalNumberPattern>
6954           [36-9]\d{6}|
6955           0\d{10}
6956         </nationalNumberPattern>
6957         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
6958       </generalDesc>
6959       <fixedLine>
6960         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
6961              online, including in the white pages. 35X and 85X were found in the exchanges listed on
6962              http://www.tfl.com.fj. -->
6963         <nationalNumberPattern>
6964           (?:
6965             3[0-5]|
6966             6[25-7]|
6967             8[58]
6968           )\d{5}
6969         </nationalNumberPattern>
6970         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6971         <exampleNumber>3212345</exampleNumber>
6972       </fixedLine>
6973       <mobile>
6974         <!-- Adding 7[5-8], 8[03679], and 9[034678] from numbers found online and numbers where SMSs
6975              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
6976         <nationalNumberPattern>
6977           (?:
6978             7[0-8]|
6979             8[034679]|
6980             9\d
6981           )\d{5}
6982         </nationalNumberPattern>
6983         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6984         <exampleNumber>7012345</exampleNumber>
6985       </mobile>
6986       <tollFree>
6987         <!-- Information found on http://www.tfl.com.fj. It is not clear if these are
6988              internationally diallable, or if so, how. -->
6989         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
6990         <possibleNumberPattern>\d{11}</possibleNumberPattern>
6991         <exampleNumber>08001234567</exampleNumber>
6992       </tollFree>
6993     </territory>
6994
6995     <!-- Falkland Islands (Malvinas) -->
6996     <territory id="FK" countryCode="500" internationalPrefix="00">
6997       <references>
6998         <sourceUrl>http://www.itu.int/oth/T0202000046/en</sourceUrl>
6999       </references>
7000       <!-- All numbers are formatted together, as a block. -->
7001       <generalDesc>
7002         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
7003         <possibleNumberPattern>\d{5}</possibleNumberPattern>
7004       </generalDesc>
7005       <fixedLine>
7006         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
7007         <exampleNumber>31234</exampleNumber>
7008       </fixedLine>
7009       <mobile>
7010         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
7011         <exampleNumber>51234</exampleNumber>
7012       </mobile>
7013     </territory>
7014
7015     <!-- Micronesia, Federated States of -->
7016     <territory id="FM" countryCode="691" internationalPrefix="00">
7017       <references>
7018         <sourceUrl>http://www.itu.int/oth/T020200008B/en</sourceUrl>
7019       </references>
7020       <availableFormats>
7021         <numberFormat pattern="(\d{3})(\d{4})">
7022           <format>$1 $2</format>
7023         </numberFormat>
7024       </availableFormats>
7025       <generalDesc>
7026         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
7027         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7028       </generalDesc>
7029       <fixedLine>
7030         <nationalNumberPattern>
7031             3[2357]0[1-9]\d{3}|
7032             9[2-6]\d{5}
7033         </nationalNumberPattern>
7034         <exampleNumber>3201234</exampleNumber>
7035       </fixedLine>
7036       <mobile>
7037         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
7038              are exclusively mobile. -->
7039         <nationalNumberPattern>
7040           3[2357]0[1-9]\d{3}|
7041           9[2-7]\d{5}
7042         </nationalNumberPattern>
7043         <exampleNumber>3501234</exampleNumber>
7044       </mobile>
7045     </territory>
7046
7047     <!-- Faroe Islands -->
7048     <territory id="FO" countryCode="298" internationalPrefix="00"
7049                nationalPrefixForParsing="(10(?:01|[12]0|88))"
7050                carrierCodeFormattingRule="$CC $FG">
7051       <references>
7052         <sourceUrl>http://www.itu.int/oth/T0202000047/en</sourceUrl>
7053       </references>
7054       <!-- All numbers are formatted together, as a block. -->
7055       <availableFormats>
7056         <numberFormat pattern="(\d{6})">
7057           <format>$1</format>
7058         </numberFormat>
7059       </availableFormats>
7060       <generalDesc>
7061         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
7062         <possibleNumberPattern>\d{6}</possibleNumberPattern>
7063       </generalDesc>
7064       <fixedLine>
7065         <nationalNumberPattern>
7066           (?:
7067             20|
7068             [3-4]\d|
7069             8[19]
7070           )\d{4}
7071         </nationalNumberPattern>
7072         <exampleNumber>201234</exampleNumber>
7073       </fixedLine>
7074       <mobile>
7075         <nationalNumberPattern>
7076           (?:
7077             2[1-9]|
7078             5\d|
7079             7[1-79]
7080           )\d{4}
7081         </nationalNumberPattern>
7082         <exampleNumber>211234</exampleNumber>
7083       </mobile>
7084       <tollFree>
7085         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
7086         <exampleNumber>802123</exampleNumber>
7087       </tollFree>
7088       <premiumRate>
7089         <nationalNumberPattern>
7090           90(?:
7091             [1345][15-7]|
7092             2[125-7]|
7093             99
7094             )\d{2}
7095         </nationalNumberPattern>
7096         <exampleNumber>901123</exampleNumber>
7097       </premiumRate>
7098       <voip>
7099         <nationalNumberPattern>
7100           (?:
7101             6[0-36]|
7102             88
7103           )\d{4}
7104         </nationalNumberPattern>
7105         <exampleNumber>601234</exampleNumber>
7106       </voip>
7107     </territory>
7108
7109     <!-- France -->
7110     <territory id="FR" countryCode="33" internationalPrefix="00" nationalPrefix="0"
7111                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
7112       <references>
7113         <sourceUrl>http://www.itu.int/oth/T020200004A/en</sourceUrl>
7114         <sourceUrl>http://www.arcep.fr/index.php?id=8146</sourceUrl>
7115         <sourceUrl>http://en.wikipedia.org/wiki/%2B33</sourceUrl>
7116       </references>
7117       <!-- Short numbers will be formatted as a block without a national prefix. -->
7118       <availableFormats>
7119         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
7120           <leadingDigits>[1-79]</leadingDigits>
7121           <format>$1 $2 $3 $4 $5</format>
7122         </numberFormat>
7123         <numberFormat pattern="(1\d{2})(\d{3})" nationalPrefixFormattingRule="$FG">
7124           <leadingDigits>11</leadingDigits>
7125           <format>$1 $2</format>
7126           <intlFormat>NA</intlFormat>
7127         </numberFormat>
7128         <numberFormat nationalPrefixFormattingRule="$NP $FG"
7129           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
7130           <leadingDigits>8</leadingDigits>
7131           <format>$1 $2 $3 $4</format>
7132         </numberFormat>
7133       </availableFormats>
7134       <generalDesc>
7135         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
7136         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7137       </generalDesc>
7138       <fixedLine>
7139         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
7140         <exampleNumber>123456789</exampleNumber>
7141       </fixedLine>
7142       <mobile>
7143         <nationalNumberPattern>
7144           6\d{8}|
7145           7[5-9]\d{7}
7146         </nationalNumberPattern>
7147         <exampleNumber>612345678</exampleNumber>
7148       </mobile>
7149       <tollFree>
7150         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
7151         <exampleNumber>801234567</exampleNumber>
7152       </tollFree>
7153       <premiumRate>
7154         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
7155         <exampleNumber>891123456</exampleNumber>
7156       </premiumRate>
7157       <sharedCost>
7158         <nationalNumberPattern>
7159           8(?:
7160             1[019]|
7161             2[0156]|
7162             84|
7163             90
7164           )\d{6}
7165         </nationalNumberPattern>
7166         <exampleNumber>810123456</exampleNumber>
7167       </sharedCost>
7168       <voip>
7169         <!-- 087 numbers used to be used for this. -->
7170         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
7171         <exampleNumber>912345678</exampleNumber>
7172       </voip>
7173     </territory>
7174
7175     <!-- Gabon -->
7176     <!-- Note: We cannot set nationalPrefix="0" while fixed line numbers can start with a zero
7177          as this breaks parsing (it treats all leading zeros as national prefixes. -->
7178     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true" >
7179       <references>
7180         <sourceUrl>http://www.itu.int/oth/T020200004E/en</sourceUrl>
7181         <sourceUrl>http://www.arcep.ga</sourceUrl>
7182       </references>
7183       <availableFormats>
7184         <!-- If no leading zero was supplied, format with the national prefix. -->
7185         <numberFormat pattern="(\d)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="0$FG">
7186           <leadingDigits>[2-7]</leadingDigits>
7187           <format>$1 $2 $3 $4</format>
7188         </numberFormat>
7189         <!-- This already has a leading zero so we format is "as is". -->
7190         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
7191           <leadingDigits>0</leadingDigits>
7192          <format>$1 $2 $3 $4</format>
7193         </numberFormat>
7194       </availableFormats>
7195       <generalDesc>
7196         <nationalNumberPattern>0?\d{7}</nationalNumberPattern>
7197         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
7198       </generalDesc>
7199       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
7200            line and mobile numbering. However, this has only partially happened; mobile numbers can
7201            now be dialed without a leading zero, but fixed line numbers still require it. Their own
7202            website still lists fixed line numbers as "+241 01 44 68 11" and upon ringing they will
7203            not connect from outside the country without the 0. This was last tested March 2014. -->
7204       <fixedLine>
7205         <nationalNumberPattern>01\d{6}</nationalNumberPattern>
7206         <possibleNumberPattern>\d{8}</possibleNumberPattern>
7207         <exampleNumber>01441234</exampleNumber>
7208       </fixedLine>
7209       <mobile>
7210         <!-- Mobile numbers can be 7 or 8 digits (with or without a leading zero). -->
7211         <nationalNumberPattern>0?[2-7]\d{6}</nationalNumberPattern>
7212         <exampleNumber>06031234</exampleNumber>
7213       </mobile>
7214     </territory>
7215
7216     <!-- United Kingdom -->
7217     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
7218          validation, although the formatting rules are shared. -->
7219     <territory id="GB" countryCode="44" internationalPrefix="00"
7220                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
7221                mainCountryForCode="true" mobileNumberPortableRegion="true">
7222       <references>
7223         <sourceUrl>http://stakeholders.ofcom.org.uk/telecoms/numbering/</sourceUrl>
7224         <sourceUrl>http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes</sourceUrl>
7225         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=GB</sourceUrl>
7226       </references>
7227       <availableFormats>
7228         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
7229         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
7230           <leadingDigits>
7231             2|
7232             5[56]|
7233             7(?:
7234               0|
7235               6[013-9]
7236             )
7237           </leadingDigits>
7238           <leadingDigits>
7239             2|
7240             5[56]|
7241             7(?:
7242               0|
7243               6(?:
7244                 [013-9]|
7245                 2[0-35-9]
7246               )
7247             )
7248           </leadingDigits>
7249           <format>$1 $2 $3</format>
7250         </numberFormat>
7251         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
7252         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
7253           <leadingDigits>
7254             1(?:
7255               1|
7256               \d1
7257             )|
7258             3|
7259             9[018]
7260           </leadingDigits>
7261           <format>$1 $2 $3</format>
7262         </numberFormat>
7263         <!-- 1dddd with 9 or 10 digits.
7264              These area codes are very rare in GB, and are only available in the following places:
7265              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
7266              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
7267              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
7268         <numberFormat pattern="(\d{5})(\d{4,5})">
7269           <leadingDigits>
7270             1(?:
7271               38|
7272               5[23]|
7273               69|
7274               76|
7275               94
7276             )
7277           </leadingDigits>
7278           <leadingDigits>
7279             1(?:
7280               387|
7281               5(?:
7282                 24|
7283                 39
7284               )|
7285               697|
7286               768|
7287               946
7288             )
7289           </leadingDigits>
7290           <leadingDigits>
7291             1(?:
7292               3873|
7293               5(?:
7294                 242|
7295                 39[456]
7296               )|
7297               697[347]|
7298               768[347]|
7299               9467
7300             )
7301           </leadingDigits>
7302           <format>$1 $2</format>
7303         </numberFormat>
7304         <!-- 1ddd with 9 or 10 digits. -->
7305         <numberFormat pattern="(1\d{3})(\d{5,6})">
7306           <leadingDigits>1</leadingDigits>
7307           <format>$1 $2</format>
7308         </numberFormat>
7309         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
7310         <numberFormat pattern="(7\d{3})(\d{6})">
7311           <leadingDigits>
7312             7(?:
7313               [1-5789]|
7314               62
7315             )
7316           </leadingDigits>
7317           <leadingDigits>
7318             7(?:
7319               [1-5789]|
7320               624
7321             )
7322           </leadingDigits>
7323           <format>$1 $2</format>
7324         </numberFormat>
7325         <!-- 800 1111 : UK ChildLine. -->
7326         <numberFormat pattern="(800)(\d{4})">
7327           <leadingDigits>800</leadingDigits>
7328           <leadingDigits>8001</leadingDigits>
7329           <leadingDigits>80011</leadingDigits>
7330           <leadingDigits>800111</leadingDigits>
7331           <leadingDigits>8001111</leadingDigits>
7332           <format>$1 $2</format>
7333         </numberFormat>
7334         <!-- 845 46 47 : UK NHS Direct. -->
7335         <numberFormat pattern="(845)(46)(4\d)">
7336           <leadingDigits>845</leadingDigits>
7337           <leadingDigits>8454</leadingDigits>
7338           <leadingDigits>84546</leadingDigits>
7339           <leadingDigits>845464</leadingDigits>
7340           <format>$1 $2 $3</format>
7341         </numberFormat>
7342         <!-- 84d, 87d with 10 digits. -->
7343         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
7344           <leadingDigits>
7345             8(?:
7346               4[2-5]|
7347               7[0-3]
7348             )
7349           </leadingDigits>
7350           <format>$1 $2 $3</format>
7351         </numberFormat>
7352         <!-- 80d (including 800) with 10 digits. -->
7353         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
7354           <leadingDigits>80</leadingDigits>
7355           <format>$1 $2 $3</format>
7356         </numberFormat>
7357         <!-- 500, 800 with 9 digits. -->
7358         <numberFormat pattern="([58]00)(\d{6})">
7359           <leadingDigits>[58]00</leadingDigits>
7360           <format>$1 $2</format>
7361         </numberFormat>
7362       </availableFormats>
7363       <generalDesc>
7364         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
7365         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
7366       </generalDesc>
7367       <areaCodeOptional>
7368         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
7369              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
7370              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
7371              necessarily valid numbers. -->
7372         <nationalNumberPattern>
7373           2\d[2-9]\d{7}|
7374           1(?:
7375             1\d|
7376             \d1
7377           )[2-9]\d{6}|
7378           1(?:
7379             [248][02-9]\d[2-9]\d{4,5}|
7380             (?:
7381               3(?:
7382                 [02-79]\d|
7383                 8[0-69]
7384               )|
7385               5(?:
7386                 [04-9]\d|
7387                 2[0-35-9]|
7388                 3[0-8]
7389               )|
7390               6(?:
7391                 [02-8]\d|
7392                 9[0-689]
7393               )|
7394               7(?:
7395                 [02-5789]\d|
7396                 6[0-79]
7397               )|
7398               9(?:
7399                 [0235-9]\d|
7400                 4[0-5789]
7401               )
7402             )[2-9]\d{4,5}|
7403             (?:
7404               387(?:
7405                 3[2-9]|
7406                 [24-9]\d
7407               )|
7408               5(?:
7409                 24(?:
7410                   2[2-9]|
7411                   [3-9]\d
7412                 )|
7413                 39(?:
7414                   [4-6][2-9]|
7415                   [237-9]\d
7416                 )
7417               )|
7418               697(?:
7419                 [347][2-9]|
7420                 [25689]\d
7421               )|
7422               768(?:
7423                 [347][2-9]|
7424                 [25679]\d
7425               )|
7426               946(?:
7427                 7[2-9]|
7428                 [2-689]\d
7429               )
7430             )\d{3,4}
7431           )
7432         </nationalNumberPattern>
7433         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
7434         <exampleNumber>1332456789</exampleNumber>
7435       </areaCodeOptional>
7436       <fixedLine>
7437         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7438         <!-- Pattern matches geographic NSN=10 numbers as follows:
7439              - area code and local number first digit for 2+8,
7440              - area code and local number first digit for 3+7,
7441              - area code only for 4+6 (including areas with embedded 5+5).
7442              Pattern matches geographic NSN=9 numbers as follows:
7443              - area code and local number first two digits for 4+5,
7444              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
7445              - area code and local number first digit for 5+4 special case (016977) Dddd.
7446              All patterns exclude ranges used in GG, IM, JE. -->
7447         <nationalNumberPattern>
7448           2(?:
7449             0[01378]|
7450             3[0189]|
7451             4[017]|
7452             8[0-46-9]|
7453             9[012]
7454           )\d{7}|
7455           1(?:
7456             (?:
7457               1(?:
7458                 3[0-48]|
7459                 [46][0-4]|
7460                 5[012789]|
7461                 7[0-49]|
7462                 8[01349]
7463               )|
7464               21[0-7]|
7465               31[0-8]|
7466               [459]1\d|
7467               61[0-46-9]
7468             )
7469           )\d{6}|
7470           1(?:
7471             2(?:
7472               0[024-9]|
7473               2[3-9]|
7474               3[3-79]|
7475               4[1-689]|
7476               [58][02-9]|
7477               6[0-4789]|
7478               7[013-9]|
7479               9\d
7480             )|
7481             3(?:
7482               0\d|
7483               [25][02-9]|
7484               3[02-579]|
7485               [468][0-46-9]|
7486               7[1235679]|
7487               9[24578]
7488             )|
7489             4(?:
7490               0[03-9]|
7491               [28][02-5789]|
7492               [37]\d|
7493               4[02-69]|
7494               5[0-8]|
7495               [69][0-79]
7496             )|
7497             5(?:
7498               0[1235-9]|
7499               2[024-9]|
7500               3[015689]|
7501               4[02-9]|
7502               5[03-9]|
7503               6\d|
7504               7[0-35-9]|
7505               8[0-468]|
7506               9[0-5789]
7507             )|
7508             6(?:
7509               0[034689]|
7510               2[0-35689]|
7511               [38][013-9]|
7512               4[1-467]|
7513               5[0-69]|
7514               6[13-9]|
7515               7[0-8]|
7516               9[0124578]
7517             )|
7518             7(?:
7519               0[0246-9]|
7520               2\d|
7521               3[023678]|
7522               4[03-9]|
7523               5[0-46-9]|
7524               6[013-9]|
7525               7[0-35-9]|
7526               8[024-9]|
7527               9[02-9]
7528             )|
7529             8(?:
7530               0[35-9]|
7531               2[1-5789]|
7532               3[02-578]|
7533               4[0-578]|
7534               5[124-9]|
7535               6[2-69]|
7536               7\d|
7537               8[02-9]|
7538               9[02569]
7539             )|
7540             9(?:
7541               0[02-589]|
7542               2[02-689]|
7543               3[1-5789]|
7544               4[2-9]|
7545               5[0-579]|
7546               6[234789]|
7547               7[0124578]|
7548               8\d|
7549               9[2-57]
7550             )
7551           )\d{6}|
7552           1(?:
7553             2(?:
7554               0(?:
7555                 46[1-4]|
7556                 87[2-9]
7557               )|
7558               545[1-79]|
7559               76(?:
7560                 2\d|
7561                 3[1-8]|
7562                 6[1-6]
7563               )|
7564               9(?:
7565                 7(?:
7566                   2[0-4]|
7567                   3[2-5]
7568                 )|
7569                 8(?:
7570                   2[2-8]|
7571                   7[0-4789]|
7572                   8[345]
7573                 )
7574               )
7575             )|
7576             3(?:
7577               638[2-5]|
7578               647[23]|
7579               8(?:
7580                 47[04-9]|
7581                 64[015789]
7582               )
7583             )|
7584             4(?:
7585               044[1-7]|
7586               20(?:
7587                 2[23]|
7588                 8\d
7589               )|
7590               6(?:
7591                 0(?:
7592                   30|
7593                   5[2-57]|
7594                   6[1-8]|
7595                   7[2-8]
7596                 )|
7597                 140
7598               )|
7599               8(?:
7600                 052|
7601                 87[123]
7602               )
7603             )|
7604             5(?:
7605               24(?:
7606                 3[2-79]|
7607                 6\d
7608               )|
7609               276\d|
7610               6(?:
7611                 26[06-9]|
7612                 686
7613               )
7614             )|
7615             6(?:
7616               06(?:
7617                 4\d|
7618                 7[4-79]
7619               )|
7620               295[567]|
7621               35[34]\d|
7622               47(?:
7623                 24|
7624                 61
7625               )|
7626               59(?:
7627                 5[08]|
7628                 6[67]|
7629                 74
7630               )|
7631               955[0-4]
7632             )|
7633             7(?:
7634               26(?:
7635                 6[13-9]|
7636                 7[0-7]
7637               )|
7638               442\d|
7639               50(?:
7640                 2[0-3]|
7641                 [3-68]2|
7642                 76
7643               )
7644             )|
7645             8(?:
7646               27[56]\d|
7647               37(?:
7648                 5[2-5]|
7649                 8[239]
7650               )|
7651               84(?:
7652                 3[2-58]
7653               )
7654             )|
7655             9(?:
7656               0(?:
7657                 0(?:
7658                   6[1-8]|
7659                   85
7660                 )|
7661                 52\d
7662               )|
7663               3583|
7664               4(?:
7665                 66[1-8]|
7666                 9(?:
7667                   2[01]|
7668                   81
7669                 )
7670               )|
7671               63(?:
7672                 23|
7673                 3[1-4]
7674               )|
7675               9561
7676             )
7677           )\d{3}|
7678           176888[234678]\d{2}|
7679           16977[23]\d{3}
7680         </nationalNumberPattern>
7681         <exampleNumber>1212345678</exampleNumber>
7682       </fixedLine>
7683       <mobile>
7684         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
7685              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
7686         <nationalNumberPattern>
7687           7(?:
7688             [1-4]\d\d|
7689             5(?:
7690               0[0-8]|
7691               [13-9]\d|
7692               2[0-35-9]
7693             )|
7694             7(?:
7695               0[1-9]|
7696               [1-7]\d|
7697               8[02-9]|
7698               9[0-689]
7699             )|
7700             8(?:
7701               [014-9]\d|
7702               [23][0-8]
7703             )|
7704             9(?:
7705               [04-9]\d|
7706               1[02-9]|
7707               2[0-35-9]|
7708               3[0-689]
7709             )
7710           )\d{6}
7711         </nationalNumberPattern>
7712         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7713         <exampleNumber>7400123456</exampleNumber>
7714       </mobile>
7715       <pager>
7716         <!-- 76 with 10 digits; excluding ranges used in IM. -->
7717         <nationalNumberPattern>
7718           76(?:
7719             0[012]|
7720             2[356]|
7721             4[0134]|
7722             5[49]|
7723             6[0-369]|
7724             77|
7725             81|
7726             9[39]
7727           )\d{6}
7728         </nationalNumberPattern>
7729         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7730         <exampleNumber>7640123456</exampleNumber>
7731       </pager>
7732       <!-- Source for non geographic numbers:
7733            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
7734       <tollFree>
7735         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
7736              -->
7737         <nationalNumberPattern>
7738           80(?:
7739             0(?:
7740               1111|
7741               \d{6,7}
7742             )|
7743             8\d{7}
7744           )|
7745           500\d{6}
7746         </nationalNumberPattern>
7747         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
7748         <exampleNumber>8001234567</exampleNumber>
7749       </tollFree>
7750       <premiumRate>
7751         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
7752              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
7753              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
7754              910-919 are reserved for standard premium rate services. -->
7755         <nationalNumberPattern>
7756           (?:
7757             87[123]|
7758             9(?:
7759               [01]\d|
7760               8[2349]
7761             )
7762           )\d{7}
7763         </nationalNumberPattern>
7764         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7765         <exampleNumber>9012345678</exampleNumber>
7766       </premiumRate>
7767       <sharedCost>
7768         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
7769              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
7770         <nationalNumberPattern>
7771           8(?:
7772             4(?:
7773               5464\d|
7774               [2-5]\d{7}
7775             )|
7776             70\d{7}
7777           )
7778         </nationalNumberPattern>
7779         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7780         <exampleNumber>8431234567</exampleNumber>
7781       </sharedCost>
7782       <personalNumber>
7783         <!-- 70 with 10 digits. -->
7784         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
7785         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7786         <exampleNumber>7012345678</exampleNumber>
7787       </personalNumber>
7788       <voip>
7789         <!-- 56 with 10 digits. -->
7790         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
7791         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7792         <exampleNumber>5612345678</exampleNumber>
7793       </voip>
7794       <uan>
7795         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
7796         <nationalNumberPattern>
7797           (?:
7798             3[0347]|
7799             55
7800           )\d{8}
7801         </nationalNumberPattern>
7802         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7803         <exampleNumber>5512345678</exampleNumber>
7804       </uan>
7805     </territory>
7806
7807     <!-- Grenada -->
7808     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
7809                internationalPrefix="011">
7810       <references>
7811         <sourceUrl>http://www.itu.int/oth/T0202000057/en</sourceUrl>
7812       </references>
7813       <generalDesc>
7814         <!-- NANPA country - uses US formatting rules -->
7815         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
7816         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7817       </generalDesc>
7818       <fixedLine>
7819         <nationalNumberPattern>
7820           473(?:
7821             2(?:
7822               3[0-2]|
7823               69
7824             )|
7825             3(?:
7826               2[89]|
7827               86
7828             )|
7829             4(?:
7830               [06]8|
7831               3[5-9]|
7832               4[0-49]|
7833               5[5-79]|
7834               68|
7835               73|
7836               90
7837             )|
7838             63[68]|
7839             7(?:
7840               58|
7841               84
7842             )|
7843             800|
7844             938
7845           )\d{4}
7846         </nationalNumberPattern>
7847         <exampleNumber>4732691234</exampleNumber>
7848       </fixedLine>
7849       <mobile>
7850         <nationalNumberPattern>
7851           473(?:
7852             4(?:
7853               0[2-79]|
7854               1[04-9]|
7855               20|
7856               58
7857             )|
7858             5(?:
7859               2[01]|
7860               3[3-8]
7861             )|
7862             901
7863           )\d{4}
7864         </nationalNumberPattern>
7865         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7866         <exampleNumber>4734031234</exampleNumber>
7867       </mobile>
7868       <tollFree>
7869         <nationalNumberPattern>
7870           8(?:
7871             00|
7872             44|
7873             55|
7874             66|
7875             77|
7876             88
7877           )[2-9]\d{6}
7878         </nationalNumberPattern>
7879         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7880         <exampleNumber>8002123456</exampleNumber>
7881       </tollFree>
7882       <premiumRate>
7883         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
7884         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7885         <exampleNumber>9002123456</exampleNumber>
7886       </premiumRate>
7887       <personalNumber>
7888         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
7889         <nationalNumberPattern>
7890           5(?:
7891             00|
7892             33|
7893             44|
7894             66|
7895             77
7896           )[2-9]\d{6}
7897         </nationalNumberPattern>
7898         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7899         <exampleNumber>5002345678</exampleNumber>
7900       </personalNumber>
7901     </territory>
7902
7903     <!-- Georgia -->
7904     <territory id="GE" countryCode="995" internationalPrefix="00" nationalPrefix="0"
7905                mobileNumberPortableRegion="true">
7906       <references>
7907         <sourceUrl>http://www.itu.int/oth/T0202000050/en</sourceUrl>
7908         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia_(country)</sourceUrl>
7909       </references>
7910       <availableFormats>
7911         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
7912              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
7913         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
7914           <leadingDigits>[348]</leadingDigits>
7915           <format>$1 $2 $3 $4</format>
7916         </numberFormat>
7917         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
7918           <leadingDigits>7</leadingDigits>
7919           <format>$1 $2 $3</format>
7920         </numberFormat>
7921         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
7922           <leadingDigits>5</leadingDigits>
7923           <format>$1 $2 $3 $4</format>
7924         </numberFormat>
7925       </availableFormats>
7926       <noInternationalDialling>
7927         <!-- Online numbers mention that this is not internationally diallable. -->
7928         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
7929         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7930         <exampleNumber>706123456</exampleNumber>
7931       </noInternationalDialling>
7932       <generalDesc>
7933         <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
7934         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
7935       </generalDesc>
7936       <fixedLine>
7937         <nationalNumberPattern>
7938           (?:
7939             3(?:
7940               [256]\d|
7941               4[124-9]|
7942               7[0-4]
7943             )|
7944             4(?:
7945               1\d|
7946               2[2-7]|
7947               3[1-79]|
7948               4[2-8]|
7949               7[239]|
7950               9[1-7]
7951             )
7952           )\d{6}
7953         </nationalNumberPattern>
7954         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
7955         <exampleNumber>322123456</exampleNumber>
7956       </fixedLine>
7957       <mobile>
7958         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
7959              about the change in numbers, and online numbers found. -->
7960         <nationalNumberPattern>
7961           5(?:
7962             14|
7963             5[01578]|
7964             68|
7965             7[0147-9]|
7966             9[0-35-9]
7967           )\d{6}
7968         </nationalNumberPattern>
7969         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7970         <exampleNumber>555123456</exampleNumber>
7971       </mobile>
7972       <!-- Information from http://www.yell.ge, examples such as Wissol Petroleum Georgia
7973            hotline. -->
7974       <tollFree>
7975         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
7976         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7977         <exampleNumber>800123456</exampleNumber>
7978       </tollFree>
7979       <voip>
7980         <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
7981         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
7982         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7983         <exampleNumber>706123456</exampleNumber>
7984       </voip>
7985       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
7986            these are omitted for now. -->
7987     </territory>
7988
7989     <!-- French Guiana (French Dept. of) -->
7990     <!-- Using a national prefix here as online numbers are formatted with it. -->
7991     <territory id="GF" countryCode="594" internationalPrefix="00"
7992                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
7993       <references>
7994         <sourceUrl>http://www.itu.int/oth/T020200004C/en</sourceUrl>
7995         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0594&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
7996         <sourceUrl>http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf</sourceUrl>
7997       </references>
7998       <availableFormats>
7999         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8000           <format>$1 $2 $3 $4</format>
8001         </numberFormat>
8002       </availableFormats>
8003       <generalDesc>
8004         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8005         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8006       </generalDesc>
8007       <fixedLine>
8008         <nationalNumberPattern>
8009           594(?:
8010             10|
8011             2[012457-9]|
8012             3[0-57-9]|
8013             4[3-9]|
8014             5[7-9]|
8015             6[0-3]|
8016             9[014]
8017           )\d{4}
8018         </nationalNumberPattern>
8019         <exampleNumber>594101234</exampleNumber>
8020       </fixedLine>
8021       <mobile>
8022         <nationalNumberPattern>
8023           694(?:
8024             [04][0-7]|
8025             1[0-5]|
8026             3[018]|
8027             [29]\d
8028           )\d{4}
8029         </nationalNumberPattern>
8030         <exampleNumber>694201234</exampleNumber>
8031       </mobile>
8032       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
8033            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
8034            too. -->
8035     </territory>
8036
8037     <!-- Guernsey -->
8038     <!-- Inherits formatting rules from the UK. -->
8039     <territory id="GG" countryCode="44" internationalPrefix="00"
8040                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
8041       <references>
8042         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
8043       </references>
8044       <generalDesc>
8045         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
8046         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
8047       </generalDesc>
8048       <areaCodeOptional>
8049         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
8050         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8051         <exampleNumber>1481250123</exampleNumber>
8052       </areaCodeOptional>
8053       <!-- Specific to GG. -->
8054       <fixedLine>
8055         <!-- 1481 with 10 digits. -->
8056         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
8057         <exampleNumber>1481456789</exampleNumber>
8058       </fixedLine>
8059       <mobile>
8060         <!-- 7781, 7839, 7911 with 10 digits. -->
8061         <nationalNumberPattern>
8062           7(?:
8063             781|
8064             839|
8065             911
8066           )\d{6}
8067         </nationalNumberPattern>
8068         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8069         <exampleNumber>7781123456</exampleNumber>
8070       </mobile>
8071       <!-- Other numbers as per GB. -->
8072       <pager>
8073         <nationalNumberPattern>
8074           76(?:
8075             0[012]|
8076             2[356]|
8077             4[0134]|
8078             5[49]|
8079             6[0-369]|
8080             77|
8081             81|
8082             9[39]
8083           )\d{6}
8084         </nationalNumberPattern>
8085         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8086         <exampleNumber>7640123456</exampleNumber>
8087       </pager>
8088       <tollFree>
8089         <nationalNumberPattern>
8090           80(?:
8091             0(?:
8092               1111|
8093               \d{6,7}
8094             )|
8095             8\d{7}
8096           )|
8097           500\d{6}
8098         </nationalNumberPattern>
8099         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
8100         <exampleNumber>8001234567</exampleNumber>
8101       </tollFree>
8102       <premiumRate>
8103         <nationalNumberPattern>
8104           (?:
8105             87[123]|
8106             9(?:
8107               [01]\d|
8108               8[0-3]
8109             )
8110           )\d{7}
8111         </nationalNumberPattern>
8112         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8113         <exampleNumber>9012345678</exampleNumber>
8114       </premiumRate>
8115       <sharedCost>
8116         <nationalNumberPattern>
8117           8(?:
8118             4(?:
8119               5464\d|
8120               [2-5]\d{7}
8121             )|
8122             70\d{7}
8123           )
8124         </nationalNumberPattern>
8125         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8126         <exampleNumber>8431234567</exampleNumber>
8127       </sharedCost>
8128       <personalNumber>
8129         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8130         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8131         <exampleNumber>7012345678</exampleNumber>
8132       </personalNumber>
8133       <voip>
8134         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
8135         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8136         <exampleNumber>5612345678</exampleNumber>
8137       </voip>
8138       <uan>
8139         <nationalNumberPattern>
8140           (?:
8141             3[0347]|
8142             55
8143           )\d{8}
8144         </nationalNumberPattern>
8145         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8146         <exampleNumber>5512345678</exampleNumber>
8147       </uan>
8148     </territory>
8149
8150     <!-- Ghana -->
8151     <territory id="GH" countryCode="233" internationalPrefix="00"
8152                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
8153                mobileNumberPortableRegion="true">
8154       <references>
8155         <sourceUrl>http://www.itu.int/oth/T0202000052/en</sourceUrl>
8156         <sourceUrl>http://www.nca.org.gh/index.php?option=com_content&amp;view=article&amp;id=90&amp;Itemid=65</sourceUrl>
8157       </references>
8158       <availableFormats>
8159         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
8160           <leadingDigits>[235]</leadingDigits>
8161           <format>$1 $2 $3</format>
8162         </numberFormat>
8163         <numberFormat pattern="(\d{3})(\d{5})">
8164           <leadingDigits>8</leadingDigits>
8165           <format>$1 $2</format>
8166         </numberFormat>
8167       </availableFormats>
8168       <generalDesc>
8169         <nationalNumberPattern>
8170           [235]\d{8}|
8171           8\d{7}
8172         </nationalNumberPattern>
8173         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8174       </generalDesc>
8175       <noInternationalDialling>
8176         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8177         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8178         <exampleNumber>80012345</exampleNumber>
8179       </noInternationalDialling>
8180       <fixedLine>
8181         <nationalNumberPattern>
8182           3(?:
8183             0[237]\d|
8184             [167](?:
8185               2[0-6]|
8186               7\d
8187             )|
8188             2(?:
8189               2[0-5]|
8190               7\d
8191             )|
8192             3(?:
8193               2[0-3]|
8194               7\d
8195             )|
8196             4(?:
8197               2[013-9]|
8198               3[01]|
8199               7\d
8200             )|
8201             5(?:
8202               2[0-7]|
8203               7\d
8204             )|
8205             8(?:
8206               2[0-2]|
8207               7\d
8208             )|
8209             9(?:
8210               20|
8211               7\d
8212             )
8213           )\d{5}
8214         </nationalNumberPattern>
8215         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8216         <exampleNumber>302345678</exampleNumber>
8217       </fixedLine>
8218       <mobile>
8219         <nationalNumberPattern>
8220           (?:
8221             2[034678]\d|
8222             5(?:
8223               [047]\d|
8224               54
8225             )
8226           )\d{6}
8227         </nationalNumberPattern>
8228         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8229         <exampleNumber>231234567</exampleNumber>
8230       </mobile>
8231       <tollFree>
8232         <!-- Found online references to these numbers, although they are not in the plan since they
8233              are not internationally diallable. -->
8234         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8235         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8236         <exampleNumber>80012345</exampleNumber>
8237       </tollFree>
8238       <!-- No premiumRate information can be found. -->
8239     </territory>
8240
8241     <!-- Gibraltar -->
8242     <territory id="GI" countryCode="350" internationalPrefix="00">
8243       <references>
8244         <sourceUrl>http://www.gra.gi/index.php?topic=numbering+plan&amp;section=legislation&amp;site=communications</sourceUrl>
8245       </references>
8246       <availableFormats>
8247         <!-- Most numbers are formatted as a block -->
8248         <numberFormat pattern="(\d{3})(\d{5})">
8249           <leadingDigits>2</leadingDigits>
8250           <format>$1 $2</format>
8251         </numberFormat>
8252       </availableFormats>
8253       <generalDesc>
8254         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
8255         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8256       </generalDesc>
8257       <fixedLine>
8258         <nationalNumberPattern>
8259           2(?:
8260             00\d|
8261             1(?:
8262               6[24-7]|
8263               9\d
8264             )|
8265             2(?:
8266               00|
8267               2[2457]
8268             )
8269           )\d{4}
8270         </nationalNumberPattern>
8271         <exampleNumber>20012345</exampleNumber>
8272       </fixedLine>
8273       <mobile>
8274         <nationalNumberPattern>
8275           (?:
8276             5[46-8]|
8277             62
8278           )\d{6}
8279         </nationalNumberPattern>
8280         <exampleNumber>57123456</exampleNumber>
8281       </mobile>
8282       <tollFree>
8283         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
8284         <exampleNumber>80123456</exampleNumber>
8285       </tollFree>
8286       <premiumRate>
8287         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
8288         <exampleNumber>88123456</exampleNumber>
8289       </premiumRate>
8290       <sharedCost>
8291         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
8292         <exampleNumber>87123456</exampleNumber>
8293       </sharedCost>
8294     </territory>
8295
8296     <!-- Greenland -->
8297     <territory id="GL" countryCode="299" internationalPrefix="00">
8298       <references>
8299         <sourceUrl>http://www.itu.int/oth/T0202000056/en</sourceUrl>
8300       </references>
8301       <availableFormats>
8302         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
8303           <format>$1 $2 $3</format>
8304         </numberFormat>
8305       </availableFormats>
8306       <generalDesc>
8307         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
8308         <possibleNumberPattern>\d{6}</possibleNumberPattern>
8309       </generalDesc>
8310       <fixedLine>
8311         <!-- Including VSAT numbers here. -->
8312         <nationalNumberPattern>
8313           (?:
8314             19|
8315             3[1-6]|
8316             6[14689]|
8317             8[14-79]|
8318             9\d
8319           )\d{4}
8320         </nationalNumberPattern>
8321         <exampleNumber>321000</exampleNumber>
8322       </fixedLine>
8323       <mobile>
8324         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
8325         <exampleNumber>221234</exampleNumber>
8326       </mobile>
8327       <tollFree>
8328         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
8329         <exampleNumber>801234</exampleNumber>
8330       </tollFree>
8331       <voip>
8332         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
8333         <exampleNumber>381234</exampleNumber>
8334       </voip>
8335     </territory>
8336
8337     <!-- Gambia -->
8338     <territory id="GM" countryCode="220" internationalPrefix="00">
8339       <references>
8340         <sourceUrl>http://www.itu.int/oth/T020200004F/en</sourceUrl>
8341       </references>
8342       <availableFormats>
8343         <numberFormat pattern="(\d{3})(\d{4})">
8344           <format>$1 $2</format>
8345         </numberFormat>
8346       </availableFormats>
8347       <generalDesc>
8348         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
8349         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8350       </generalDesc>
8351       <fixedLine>
8352         <nationalNumberPattern>
8353           (?:
8354             4(?:
8355               [23]\d{2}|
8356               4(?:
8357                 1[024679]|
8358                 [6-9]\d
8359               )
8360             )|
8361             5(?:
8362               54[0-7]|
8363               6(?:
8364                 [67]\d
8365               )|
8366               7(?:
8367                 1[04]|
8368                 2[035]|
8369                 3[58]|
8370                 48
8371               )
8372             )|
8373             8\d{3}
8374           )\d{3}
8375         </nationalNumberPattern>
8376         <exampleNumber>5661234</exampleNumber>
8377       </fixedLine>
8378       <mobile>
8379         <nationalNumberPattern>
8380           (?:
8381             2[0-6]|
8382             [3679]\d
8383           )\d{5}
8384         </nationalNumberPattern>
8385         <exampleNumber>3012345</exampleNumber>
8386       </mobile>
8387     </territory>
8388
8389     <!-- Guinea -->
8390     <territory id="GN" countryCode="224" internationalPrefix="00">
8391       <references>
8392         <sourceUrl>http://www.itu.int/oth/T020200005B/en</sourceUrl>
8393       </references>
8394       <availableFormats>
8395         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
8396           <leadingDigits>3</leadingDigits>
8397           <format>$1 $2 $3 $4</format>
8398         </numberFormat>
8399         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8400           <leadingDigits>[67]</leadingDigits>
8401           <format>$1 $2 $3 $4</format>
8402         </numberFormat>
8403       </availableFormats>
8404       <generalDesc>
8405         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
8406         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
8407       </generalDesc>
8408       <fixedLine>
8409         <nationalNumberPattern>
8410           30(?:
8411             24|
8412             3[12]|
8413             4[1-35-7]|
8414             5[13]|
8415             6[189]|
8416             [78]1|
8417             9[1478]
8418           )\d{4}
8419         </nationalNumberPattern>
8420         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8421         <exampleNumber>30241234</exampleNumber>
8422       </fixedLine>
8423       <mobile>
8424         <!-- Prefixes here match those assigned to carriers, as per the ITU communication Jan 23rd
8425              2013. -->
8426         <nationalNumberPattern>6[02356]\d{7}</nationalNumberPattern>
8427         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8428         <exampleNumber>601123456</exampleNumber>
8429       </mobile>
8430       <voip>
8431         <!-- Gamma concept network is being listed as VoIP as per
8432              http://www.gammaconcept.com/internet%20sat.html -->
8433         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
8434         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8435         <exampleNumber>722123456</exampleNumber>
8436       </voip>
8437     </territory>
8438
8439     <!-- Guadeloupe -->
8440     <territory id="GP" countryCode="590" internationalPrefix="00"
8441                mainCountryForCode="true" nationalPrefix="0"
8442                nationalPrefixFormattingRule="$NP$FG">
8443       <references>
8444         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
8445         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
8446         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
8447       </references>
8448       <availableFormats>
8449         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
8450           <format>$1 $2-$3</format>
8451         </numberFormat>
8452       </availableFormats>
8453       <generalDesc>
8454         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8455         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8456       </generalDesc>
8457       <fixedLine>
8458         <nationalNumberPattern>
8459           590(?:
8460             0[13468]|
8461             1[012]|
8462             2[0-68]|
8463             3[28]|
8464             4[0-8]|
8465             5[579]|
8466             6[0189]|
8467             70|
8468             8[0-689]|
8469             9\d
8470           )\d{4}
8471         </nationalNumberPattern>
8472         <exampleNumber>590201234</exampleNumber>
8473       </fixedLine>
8474       <mobile>
8475         <!-- Any ranges assigned from
8476              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
8477              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
8478              them. -->
8479         <nationalNumberPattern>
8480           690(?:
8481             0[0-7]|
8482             [1-9]\d
8483           )\d{4}
8484         </nationalNumberPattern>
8485         <exampleNumber>690301234</exampleNumber>
8486       </mobile>
8487     </territory>
8488
8489     <!-- Equatorial Guinea -->
8490     <territory id="GQ" countryCode="240" internationalPrefix="00">
8491       <references>
8492         <sourceUrl>http://www.itu.int/oth/T0202000041/en</sourceUrl>
8493       </references>
8494       <availableFormats>
8495         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
8496           <leadingDigits>[235]</leadingDigits>
8497           <format>$1 $2 $3</format>
8498         </numberFormat>
8499         <numberFormat pattern="(\d{3})(\d{6})">
8500           <leadingDigits>[89]</leadingDigits>
8501           <format>$1 $2</format>
8502         </numberFormat>
8503       </availableFormats>
8504       <generalDesc>
8505         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
8506         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8507       </generalDesc>
8508       <fixedLine>
8509         <nationalNumberPattern>
8510           3(?:
8511             3(?:
8512               3\d[7-9]|
8513               [0-24-9]\d[46]
8514             )|
8515             5\d{2}[7-9]
8516           )\d{4}
8517         </nationalNumberPattern>
8518         <exampleNumber>333091234</exampleNumber>
8519       </fixedLine>
8520       <mobile>
8521         <nationalNumberPattern>
8522           (?:
8523             222|
8524             551
8525           )\d{6}
8526         </nationalNumberPattern>
8527         <exampleNumber>222123456</exampleNumber>
8528       </mobile>
8529       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
8530            they start allocating them there will be a differentiation of prefixes, but this is not
8531            clear now. -->
8532       <tollFree>
8533         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
8534         <exampleNumber>800123456</exampleNumber>
8535       </tollFree>
8536       <premiumRate>
8537         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
8538         <exampleNumber>900123456</exampleNumber>
8539       </premiumRate>
8540     </territory>
8541
8542     <!-- Greece -->
8543     <territory id="GR" countryCode="30" internationalPrefix="00" mobileNumberPortableRegion="true">
8544       <references>
8545         <sourceUrl>http://www.itu.int/oth/T0202000055/en</sourceUrl>
8546         <sourceUrl>http://en.wikipedia.org/wiki/%2B30</sourceUrl>
8547       </references>
8548       <availableFormats>
8549         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
8550           <leadingDigits>
8551             21|
8552             7
8553           </leadingDigits>
8554           <format>$1 $2 $3</format>
8555         </numberFormat>
8556         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
8557           <leadingDigits>
8558             2[2-9]1|
8559             [689]
8560           </leadingDigits>
8561           <format>$1 $2 $3</format>
8562         </numberFormat>
8563         <numberFormat pattern="(2\d{3})(\d{6})">
8564           <leadingDigits>2[2-9][02-9]</leadingDigits>
8565           <format>$1 $2</format>
8566         </numberFormat>
8567       </availableFormats>
8568       <generalDesc>
8569         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
8570         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8571       </generalDesc>
8572       <fixedLine>
8573         <nationalNumberPattern>
8574           2(?:
8575             1\d{2}|
8576             2(?:
8577               2[1-46-9]|
8578               3[1-8]|
8579               4[1-7]|
8580               5[1-4]|
8581               6[1-8]|
8582               7[1-5]|
8583               [89][1-9]
8584             )|
8585             3(?:
8586               1\d|
8587               2[1-57]|
8588               [35][1-3]|
8589               4[13]|
8590               7[1-7]|
8591               8[124-6]|
8592               9[1-79]
8593             )|
8594             4(?:
8595               1\d|
8596               2[1-8]|
8597               3[1-4]|
8598               4[13-5]|
8599               6[1-578]|
8600               9[1-5]
8601             )|
8602             5(?:
8603               1\d|
8604               [29][1-4]|
8605               3[1-5]|
8606               4[124]|
8607               5[1-6]
8608             )|
8609             6(?:
8610               1\d|
8611               3[1245]|
8612               4[1-7]|
8613               5[13-9]|
8614               [269][1-6]|
8615               7[14]|
8616               8[1-5]
8617             )|
8618             7(?:
8619               1\d|
8620               2[1-5]|
8621               3[1-6]|
8622               4[1-7]|
8623               5[1-57]|
8624               6[135]|
8625               9[125-7]
8626             )|
8627             8(?:
8628               1\d|
8629               2[1-5]|
8630               [34][1-4]|
8631               9[1-57]
8632             )
8633           )\d{6}
8634         </nationalNumberPattern>
8635         <exampleNumber>2123456789</exampleNumber>
8636       </fixedLine>
8637       <mobile>
8638         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
8639         <exampleNumber>6912345678</exampleNumber>
8640       </mobile>
8641       <tollFree>
8642         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
8643         <exampleNumber>8001234567</exampleNumber>
8644       </tollFree>
8645       <premiumRate>
8646         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
8647         <exampleNumber>9091234567</exampleNumber>
8648       </premiumRate>
8649       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
8650            rate. -->
8651       <sharedCost>
8652         <nationalNumberPattern>
8653           8(?:
8654             0[16]|
8655             12|
8656             25
8657           )\d{7}
8658         </nationalNumberPattern>
8659         <exampleNumber>8011234567</exampleNumber>
8660       </sharedCost>
8661       <personalNumber>
8662         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8663         <exampleNumber>7012345678</exampleNumber>
8664       </personalNumber>
8665     </territory>
8666
8667     <!-- Guatemala -->
8668     <territory id="GT" countryCode="502" internationalPrefix="00">
8669       <references>
8670         <sourceUrl>http://www.itu.int/oth/T020200005A/en</sourceUrl>
8671         <sourceUrl>http://www.sit.gob.gt/index.php?page=plan-de-numeracion</sourceUrl>
8672         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala</sourceUrl>
8673       </references>
8674       <availableFormats>
8675         <numberFormat pattern="(\d{4})(\d{4})">
8676           <leadingDigits>[2-7]</leadingDigits>
8677           <format>$1 $2</format>
8678         </numberFormat>
8679         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
8680           <leadingDigits>1</leadingDigits>
8681           <format>$1 $2 $3</format>
8682         </numberFormat>
8683       </availableFormats>
8684       <generalDesc>
8685         <nationalNumberPattern>
8686           [2-7]\d{7}|
8687           1[89]\d{9}
8688         </nationalNumberPattern>
8689         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
8690       </generalDesc>
8691       <fixedLine>
8692         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
8693         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8694         <exampleNumber>22456789</exampleNumber>
8695       </fixedLine>
8696       <mobile>
8697         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
8698              they are just reserved. -->
8699         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
8700         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8701         <exampleNumber>51234567</exampleNumber>
8702       </mobile>
8703       <tollFree>
8704         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
8705         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8706         <exampleNumber>18001112222</exampleNumber>
8707       </tollFree>
8708       <premiumRate>
8709         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
8710         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8711         <exampleNumber>19001112222</exampleNumber>
8712       </premiumRate>
8713     </territory>
8714
8715     <!-- Guam -->
8716     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
8717                internationalPrefix="011">
8718       <references>
8719         <sourceUrl>http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel</sourceUrl>
8720       </references>
8721       <generalDesc>
8722         <!-- NANPA country - uses US formatting rules -->
8723         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
8724         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8725       </generalDesc>
8726       <fixedLine>
8727         <!-- Added 671 489/555/720/721 based on information from
8728              http://www.area-codes.com/area-code/area-code-671.asp -->
8729         <nationalNumberPattern>
8730           671(?:
8731             3(?:
8732               00|
8733               3[39]|
8734               4[349]|
8735               55|
8736               6[26]
8737             )|
8738             4(?:
8739               56|
8740               7[1-9]|
8741               8[236-9]
8742             )|
8743             5(?:
8744               55|
8745               6[2-5]|
8746               88
8747             )|
8748             6(?:
8749               3[2-578]|
8750               4[24-9]|
8751               5[34]|
8752               78|
8753               8[5-9]
8754             )|
8755             7(?:
8756               [079]7|
8757               2[0167]|
8758               3[45]|
8759               8[789]
8760             )|
8761             8(?:
8762               [2-5789]8|
8763               6[48]
8764             )|
8765             9(?:
8766               2[29]|
8767               6[79]|
8768               7[179]|
8769               8[789]|
8770               9[78]
8771             )
8772           )\d{4}
8773         </nationalNumberPattern>
8774         <exampleNumber>6713001234</exampleNumber>
8775       </fixedLine>
8776       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
8777            -->
8778       <mobile>
8779         <nationalNumberPattern>
8780           671(?:
8781             3(?:
8782               00|
8783               3[39]|
8784               4[349]|
8785               55|
8786               6[26]
8787             )|
8788             4(?:
8789               56|
8790               7[1-9]|
8791               8[236-9]
8792             )|
8793             5(?:
8794               55|
8795               6[2-5]|
8796               88
8797             )|
8798             6(?:
8799               3[2-578]|
8800               4[24-9]|
8801               5[34]|
8802               78|
8803               8[5-9]
8804             )|
8805             7(?:
8806               [079]7|
8807               2[0167]|
8808               3[45]|
8809               8[789]
8810             )|
8811             8(?:
8812               [2-5789]8|
8813               6[48]
8814             )|
8815             9(?:
8816               2[29]|
8817               6[79]|
8818               7[179]|
8819               8[789]|
8820               9[78]
8821             )
8822           )\d{4}
8823         </nationalNumberPattern>
8824         <exampleNumber>6713001234</exampleNumber>
8825       </mobile>
8826       <tollFree>
8827         <nationalNumberPattern>
8828           8(?:
8829             00|
8830             44|
8831             55|
8832             66|
8833             77|
8834             88
8835           )[2-9]\d{6}
8836         </nationalNumberPattern>
8837         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8838         <exampleNumber>8002123456</exampleNumber>
8839       </tollFree>
8840       <premiumRate>
8841         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8842         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8843         <exampleNumber>9002123456</exampleNumber>
8844       </premiumRate>
8845       <personalNumber>
8846         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8847         <nationalNumberPattern>
8848           5(?:
8849             00|
8850             33|
8851             44|
8852             66|
8853             77
8854           )[2-9]\d{6}
8855         </nationalNumberPattern>
8856         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8857         <exampleNumber>5002345678</exampleNumber>
8858       </personalNumber>
8859     </territory>
8860
8861     <!-- Guinea-Bissau -->
8862     <territory id="GW" countryCode="245" internationalPrefix="00">
8863       <references>
8864         <sourceUrl>http://www.itu.int/oth/T020200005C/en</sourceUrl>
8865       </references>
8866       <availableFormats>
8867         <numberFormat pattern="(\d{3})(\d{4})">
8868           <format>$1 $2</format>
8869         </numberFormat>
8870       </availableFormats>
8871       <generalDesc>
8872         <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
8873         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8874       </generalDesc>
8875       <fixedLine>
8876         <nationalNumberPattern>
8877           3(?:
8878             2[0125]|
8879             3[1245]|
8880             4[12]|
8881             5[1-4]|
8882             70|
8883             9[1-467]
8884           )\d{4}
8885         </nationalNumberPattern>
8886         <exampleNumber>3201234</exampleNumber>
8887       </fixedLine>
8888       <mobile>
8889         <nationalNumberPattern>
8890           (?:
8891             [5-7]\d|
8892             9[012]
8893           )\d{5}
8894         </nationalNumberPattern>
8895         <exampleNumber>5012345</exampleNumber>
8896       </mobile>
8897       <voip>
8898         <nationalNumberPattern>40\d{5}</nationalNumberPattern>
8899         <exampleNumber>4012345</exampleNumber>
8900       </voip>
8901     </territory>
8902
8903     <!-- Guyana -->
8904     <territory id="GY" countryCode="592" internationalPrefix="001">
8905       <references>
8906         <sourceUrl>http://www.itu.int/oth/T020200005D/en</sourceUrl>
8907       </references>
8908       <availableFormats>
8909         <numberFormat pattern="(\d{3})(\d{4})">
8910           <format>$1 $2</format>
8911         </numberFormat>
8912       </availableFormats>
8913       <generalDesc>
8914         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
8915         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8916       </generalDesc>
8917       <fixedLine>
8918         <nationalNumberPattern>
8919           (?:
8920             2(?:
8921               1[6-9]|
8922               2[0-35-9]|
8923               3[1-4]|
8924               5[3-9]|
8925               6\d|
8926               7[0-24-79]
8927             )|
8928             3(?:
8929               2[25-9]|
8930               3\d
8931             )|
8932             4(?:
8933               4[0-24]|
8934               5[56]
8935             )|
8936             77[1-57]
8937           )\d{4}
8938         </nationalNumberPattern>
8939         <exampleNumber>2201234</exampleNumber>
8940       </fixedLine>
8941       <mobile>
8942         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
8943              that SMS messages have been succesfully sent to numbers in the entire range prefixed
8944              with 6. -->
8945         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
8946         <exampleNumber>6091234</exampleNumber>
8947       </mobile>
8948       <tollFree>
8949         <nationalNumberPattern>
8950           (?:
8951             289|
8952             862
8953           )\d{4}
8954         </nationalNumberPattern>
8955         <exampleNumber>2891234</exampleNumber>
8956       </tollFree>
8957       <premiumRate>
8958         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
8959         <exampleNumber>9008123</exampleNumber>
8960       </premiumRate>
8961     </territory>
8962
8963     <!-- Hong Kong -->
8964     <territory id="HK" countryCode="852" internationalPrefix="00" mobileNumberPortableRegion="true">
8965       <references>
8966         <sourceUrl>http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html</sourceUrl>
8967       </references>
8968       <availableFormats>
8969         <numberFormat pattern="(\d{4})(\d{4})">
8970           <leadingDigits>
8971             [235-7]|
8972             [89](?:
8973               0[1-9]|
8974               [1-9]
8975             )
8976           </leadingDigits>
8977           <format>$1 $2</format>
8978         </numberFormat>
8979         <numberFormat pattern="(800)(\d{3})(\d{3})">
8980           <leadingDigits>800</leadingDigits>
8981           <format>$1 $2 $3</format>
8982         </numberFormat>
8983         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
8984           <leadingDigits>900</leadingDigits>
8985           <format>$1 $2 $3 $4</format>
8986         </numberFormat>
8987         <numberFormat pattern="(900)(\d{2,5})">
8988           <leadingDigits>900</leadingDigits>
8989           <format>$1 $2</format>
8990         </numberFormat>
8991       </availableFormats>
8992       <generalDesc>
8993         <!-- Slightly more complex pattern to allow the country code to be stripped off if
8994              necessary. -->
8995         <nationalNumberPattern>
8996           [235-7]\d{7}|
8997           8\d{7,8}|
8998           9\d{4,10}
8999         </nationalNumberPattern>
9000         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9001       </generalDesc>
9002       <fixedLine>
9003         <nationalNumberPattern>
9004           (?:
9005             [23]\d|
9006             5[78]
9007           )\d{6}
9008         </nationalNumberPattern>
9009         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9010         <exampleNumber>21234567</exampleNumber>
9011       </fixedLine>
9012       <mobile>
9013         <nationalNumberPattern>
9014           (?:
9015             5[1-69]\d|
9016             6\d{2}|
9017             9(?:
9018               0[1-9]|
9019               [1-8]\d
9020             )
9021           )\d{5}
9022         </nationalNumberPattern>
9023         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9024         <exampleNumber>51234567</exampleNumber>
9025       </mobile>
9026       <pager>
9027         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
9028         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9029         <exampleNumber>71234567</exampleNumber>
9030       </pager>
9031       <tollFree>
9032         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
9033         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9034         <exampleNumber>800123456</exampleNumber>
9035       </tollFree>
9036       <premiumRate>
9037         <nationalNumberPattern>
9038           900(?:
9039             [0-24-9]\d{7}|
9040             3\d{1,4}
9041           )
9042         </nationalNumberPattern>
9043         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9044         <exampleNumber>90012345678</exampleNumber>
9045       </premiumRate>
9046       <personalNumber>
9047         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
9048         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9049         <exampleNumber>81123456</exampleNumber>
9050       </personalNumber>
9051    </territory>
9052
9053     <!-- Honduras -->
9054     <!-- It seems there is no longer a trunk prefix in use, based on websites like
9055          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
9056          national format. -->
9057     <territory id="HN" countryCode="504" internationalPrefix="00" >
9058       <references>
9059         <sourceUrl>http://www.itu.int/oth/T020200005F/en</sourceUrl>
9060       </references>
9061       <availableFormats>
9062        <numberFormat pattern="(\d{4})(\d{4})">
9063          <format>$1-$2</format>
9064        </numberFormat>
9065       </availableFormats>
9066       <generalDesc>
9067         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
9068         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9069       </generalDesc>
9070       <fixedLine>
9071         <!-- Extra prefixes 227[01389], 228X, 2292 & 260X were added from numbers found online. -->
9072         <nationalNumberPattern>
9073           2(?:
9074             2(?:
9075               0[019]|
9076               1[1-36]|
9077               [23]\d|
9078               4[056]|
9079               5[57]|
9080               7[01389]|
9081               8[0146-9]|
9082               9[012]
9083             )|
9084             4(?:
9085               2[3-59]|
9086               3[13-689]|
9087               4[0-68]|
9088               5[1-35]
9089             )|
9090             5(?:
9091               4[3-5]|
9092               5\d|
9093               6[56]|
9094               74
9095             )|
9096             6(?:
9097               [056]\d|
9098               4[0-378]|
9099               [78][0-8]|
9100               9[01]
9101             )|
9102             7(?:
9103               6[46-9]|
9104               7[02-9]|
9105               8[34]
9106             )|
9107             8(?:
9108               79|
9109               8[0-35789]|
9110               9[1-57-9]
9111             )
9112           )\d{4}
9113         </nationalNumberPattern>
9114         <exampleNumber>22123456</exampleNumber>
9115       </fixedLine>
9116       <mobile>
9117         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
9118         <exampleNumber>91234567</exampleNumber>
9119       </mobile>
9120     </territory>
9121
9122     <!-- Croatia -->
9123     <territory id="HR" countryCode="385" internationalPrefix="00"
9124                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
9125                mobileNumberPortableRegion="true">
9126       <references>
9127         <sourceUrl>http://www.itu.int/oth/T0202000032/en</sourceUrl>
9128         <sourceUrl>http://en.wikipedia.org/wiki/%2B385</sourceUrl>
9129       </references>
9130       <availableFormats>
9131         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
9132              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
9133              XXXX as well. -->
9134        <numberFormat pattern="(1)(\d{4})(\d{3})">
9135          <leadingDigits>1</leadingDigits>
9136          <format>$1 $2 $3</format>
9137        </numberFormat>
9138        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
9139          <leadingDigits>6[09]</leadingDigits>
9140          <format>$1 $2 $3</format>
9141        </numberFormat>
9142        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
9143          <leadingDigits>62</leadingDigits>
9144          <format>$1 $2 $3</format>
9145        </numberFormat>
9146        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
9147          <leadingDigits>[2-5]</leadingDigits>
9148           <format>$1 $2 $3</format>
9149         </numberFormat>
9150         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
9151           <leadingDigits>9</leadingDigits>
9152           <format>$1 $2 $3</format>
9153         </numberFormat>
9154         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
9155           <leadingDigits>9</leadingDigits>
9156           <format>$1 $2 $3</format>
9157         </numberFormat>
9158         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
9159           <leadingDigits>9</leadingDigits>
9160           <format>$1 $2 $3 $4</format>
9161         </numberFormat>
9162         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
9163           <leadingDigits>
9164             6[145]|
9165             7
9166           </leadingDigits>
9167           <format>$1 $2 $3</format>
9168         </numberFormat>
9169         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
9170           <leadingDigits>
9171             6[145]|
9172             7
9173           </leadingDigits>
9174           <format>$1 $2 $3</format>
9175         </numberFormat>
9176         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
9177           <leadingDigits>8</leadingDigits>
9178           <format>$1 $2 $3</format>
9179         </numberFormat>
9180         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
9181           <leadingDigits>8</leadingDigits>
9182           <format>$1 $2 $3</format>
9183         </numberFormat>
9184       </availableFormats>
9185       <generalDesc>
9186         <nationalNumberPattern>
9187           [1-7]\d{5,8}|
9188           [89]\d{6,11}
9189         </nationalNumberPattern>
9190         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
9191       </generalDesc>
9192       <fixedLine>
9193         <nationalNumberPattern>
9194           1\d{7}|
9195           (?:
9196             2[0-3]|
9197             3[1-5]|
9198             4[02-47-9]|
9199             5[1-3]
9200           )\d{6}
9201         </nationalNumberPattern>
9202         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
9203         <exampleNumber>12345678</exampleNumber>
9204       </fixedLine>
9205       <uan>
9206         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
9207              are numbers on the internet with 6 or 7 digits after the prefix. -->
9208         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
9209         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
9210         <exampleNumber>62123456</exampleNumber>
9211       </uan>
9212       <mobile>
9213         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
9214         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
9215         <exampleNumber>912345678</exampleNumber>
9216       </mobile>
9217       <tollFree>
9218         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
9219         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9220         <exampleNumber>8001234567</exampleNumber>
9221       </tollFree>
9222       <premiumRate>
9223         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
9224              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
9225              -->
9226         <nationalNumberPattern>
9227           6(?:
9228             [09]\d{7}|
9229             [145]\d{4,7}
9230           )
9231         </nationalNumberPattern>
9232         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9233         <exampleNumber>611234</exampleNumber>
9234       </premiumRate>
9235       <personalNumber>
9236         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
9237         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9238         <exampleNumber>741234567</exampleNumber>
9239       </personalNumber>
9240     </territory>
9241
9242     <!-- Haiti -->
9243     <territory id="HT" countryCode="509" internationalPrefix="00">
9244       <references>
9245         <sourceUrl>http://www.itu.int/oth/T020200005E/en</sourceUrl>
9246         <sourceUrl>http://www.numberingplans.com/</sourceUrl>
9247       </references>
9248       <availableFormats>
9249         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
9250           <format>$1 $2 $3</format>
9251         </numberFormat>
9252       </availableFormats>
9253       <generalDesc>
9254         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9255         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9256       </generalDesc>
9257       <fixedLine>
9258         <!-- The prefix 24 seems to be also used, based on online searches. -->
9259         <nationalNumberPattern>
9260           2(?:
9261             [24]\d|
9262             5[1-5]|
9263             94
9264           )\d{5}
9265         </nationalNumberPattern>
9266         <exampleNumber>22453300</exampleNumber>
9267       </fixedLine>
9268       <mobile>
9269         <!-- The prefix 31 seems to be also used, based on online searches. -->
9270         <nationalNumberPattern>
9271           (?:
9272             3[1-9]|
9273             4\d
9274           )\d{6}
9275         </nationalNumberPattern>
9276         <exampleNumber>34101234</exampleNumber>
9277       </mobile>
9278       <tollFree>
9279         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
9280              without making any further distinction. However, http://www.numberingplans.com/ seems
9281              to suggest they are free. -->
9282         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
9283         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9284         <exampleNumber>80012345</exampleNumber>
9285       </tollFree>
9286       <voip>
9287         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
9288              98[89]\d{5}. -->
9289         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
9290         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9291         <exampleNumber>98901234</exampleNumber>
9292       </voip>
9293     </territory>
9294
9295     <!-- Hungary -->
9296     <territory id="HU" countryCode="36" internationalPrefix="00"
9297                nationalPrefix="06" nationalPrefixFormattingRule="($FG)"
9298                mobileNumberPortableRegion="true">
9299       <references>
9300         <sourceUrl>http://www.itu.int/oth/T0202000061/en</sourceUrl>
9301       </references>
9302       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
9303            by a Hungarian person and following the yellow pages) is to omit this when formatting.
9304            Yellow pages: http://www.aranyoldalak.hu -->
9305       <availableFormats>
9306         <numberFormat pattern="(1)(\d{3})(\d{4})">
9307           <leadingDigits>1</leadingDigits>
9308           <format>$1 $2 $3</format>
9309         </numberFormat>
9310         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9311           <leadingDigits>[2-9]</leadingDigits>
9312           <format>$1 $2 $3</format>
9313         </numberFormat>
9314       </availableFormats>
9315       <generalDesc>
9316         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
9317         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9318       </generalDesc>
9319       <noInternationalDialling>
9320         <nationalNumberPattern>[48]0\d{6}</nationalNumberPattern>
9321         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9322         <exampleNumber>80123456</exampleNumber>
9323       </noInternationalDialling>
9324       <fixedLine>
9325         <!-- Includes numbers for corporate networks. -->
9326         <nationalNumberPattern>
9327           (?:
9328             1\d|
9329             2(?:
9330               1\d|
9331               [2-9]
9332             )|
9333             3[2-7]|
9334             4[24-9]|
9335             5[2-79]|
9336             6[23689]|
9337             7(?:
9338               1\d|
9339               [2-9]
9340             )|
9341             8[2-57-9]|
9342             9[2-69]
9343           )\d{6}
9344         </nationalNumberPattern>
9345         <exampleNumber>12345678</exampleNumber>
9346       </fixedLine>
9347       <mobile>
9348         <nationalNumberPattern>
9349           (?:
9350             [27]0|
9351             3[01]
9352           )\d{7}
9353         </nationalNumberPattern>
9354         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9355         <exampleNumber>201234567</exampleNumber>
9356       </mobile>
9357       <tollFree>
9358         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
9359         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9360         <exampleNumber>80123456</exampleNumber>
9361       </tollFree>
9362       <premiumRate>
9363         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
9364         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9365         <exampleNumber>90123456</exampleNumber>
9366       </premiumRate>
9367       <sharedCost>
9368         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
9369         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9370         <exampleNumber>40123456</exampleNumber>
9371       </sharedCost>
9372     </territory>
9373
9374     <!-- Indonesia -->
9375     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
9376                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9377       <references>
9378         <!-- From 2001, very out of date. -->
9379         <sourceUrl>http://www.itu.int/oth/T0202000064/en</sourceUrl>
9380         <sourceUrl>http://en.wikipedia.org/wiki/%2B62</sourceUrl>
9381       </references>
9382       <availableFormats>
9383         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9384           pattern="(\d{2})(\d{5,8})">
9385           <leadingDigits>
9386             2[124]|
9387             [36]1
9388           </leadingDigits>
9389           <format>$1 $2</format>
9390         </numberFormat>
9391         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9392           pattern="(\d{3})(\d{5,7})">
9393           <leadingDigits>
9394             [4579]|
9395             2[035-9]|
9396             [36][02-9]
9397           </leadingDigits>
9398           <format>$1 $2</format>
9399         </numberFormat>
9400         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
9401           <leadingDigits>8[1-35-9]</leadingDigits>
9402           <format>$1-$2-$3</format>
9403         </numberFormat>
9404         <numberFormat pattern="(177)(\d{6,8})">
9405           <leadingDigits>1</leadingDigits>
9406           <format>$1 $2</format>
9407         </numberFormat>
9408         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
9409              that sometimes they are followed by less digits. -->
9410         <numberFormat pattern="(800)(\d{5,7})">
9411           <leadingDigits>800</leadingDigits>
9412           <format>$1 $2</format>
9413         </numberFormat>
9414         <numberFormat pattern="(80\d)(\d)(\d{3})(\d{3})">
9415           <leadingDigits>80[79]</leadingDigits>
9416           <format>$1 $2 $3 $4</format>
9417         </numberFormat>
9418       </availableFormats>
9419       <generalDesc>
9420         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
9421         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9422       </generalDesc>
9423       <fixedLine>
9424         <!-- Area codes taken from wikipedia, with missing ones added from
9425              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
9426              We also added 0770 after user feedback because it seems to be used on Bintan island.
9427              Where known, fixed mobile prefixes have been represented as Mobile. -->
9428         <!-- Very short (5/6 digit) local numbers in Jakarta seem to be special cases for various
9429              well known companies (Mc Donalds, KFC etc...). Some of these are listed in:
9430              http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf -->
9431         <nationalNumberPattern>
9432           2(?:
9433             1(?:
9434               14\d{3}|
9435               [0-8]\d{6,7}|
9436               500\d{3}|
9437               9\d{6}
9438             )|
9439             [24]\d{7,8}
9440           )|
9441           (?:
9442             2(?:
9443               [35][1-4]|
9444               6[0-8]|
9445               7[1-6]|
9446               8\d|
9447               9[1-8]
9448             )|
9449             3(?:
9450               1|
9451               2[1-578]|
9452               3[1-68]|
9453               4[1-3]|
9454               5[1-8]|
9455               6[1-3568]|
9456               7[0-46]|
9457               8\d
9458             )|
9459             4(?:
9460               0[1-589]|
9461               1[01347-9]|
9462               2[0-36-8]|
9463               3[0-24-68]|
9464               5[1-378]|
9465               6[1-5]|
9466               7[134]|
9467               8[1245]
9468             )|
9469             5(?:
9470               1[1-35-9]|
9471               2[25-8]|
9472               3[1246-9]|
9473               4[1-3589]|
9474               5[1-46]|
9475               6[1-8]
9476             )|
9477             6(?:
9478               19?|
9479               [25]\d|
9480               3[1-469]|
9481               4[1-6]
9482             )|
9483             7(?:
9484               1[1-46-9]|
9485               2[14-9]|
9486               [36]\d|
9487               4[1-8]|
9488               5[1-9]|
9489               7[0-36-9]
9490             )|
9491             9(?:
9492               0[12]|
9493               1[013-8]|
9494               2[0-479]|
9495               5[125-8]|
9496               6[23679]|
9497               7[159]|
9498               8[01346]
9499             )
9500           )\d{5,8}
9501         </nationalNumberPattern>
9502         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9503         <exampleNumber>612345678</exampleNumber>
9504       </fixedLine>
9505       <mobile>
9506         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
9507              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
9508              are captured below. The pattern covers the area code plus the first one-two digits of
9509              the subscriber number. -->
9510         <nationalNumberPattern>
9511           (?:
9512             2(?:
9513               1(?:
9514                 3[145]|
9515                 4[01]|
9516                 5[1-469]|
9517                 60|
9518                 8[0359]|
9519                 9\d
9520               )|
9521               2(?:
9522                 88|
9523                 9[1256]
9524               )|
9525               3[1-4]9|
9526               4(?:
9527                 36|
9528                 91
9529               )|
9530               5(?:
9531                 1[349]|
9532                 [2-4]9
9533               )|
9534               6[0-7]9|
9535               7(?:
9536                 [1-36]9|
9537                 4[39]
9538               )|
9539               8[1-5]9|
9540               9[1-48]9
9541             )|
9542             3(?:
9543               19[1-3]|
9544               2[12]9|
9545               3[13]9|
9546               4(?:
9547                 1[69]|
9548                 39
9549               )|
9550               5[14]9|
9551               6(?:
9552                 1[69]|
9553                 2[89]
9554               )|
9555               709
9556             )|
9557             4[13]19|
9558             5(?:
9559               1(?:
9560                 19|
9561                 8[39]
9562               )|
9563               4[129]9|
9564               6[12]9
9565             )|
9566             6(?:
9567               19[12]|
9568               2(?:
9569                 [23]9|
9570                 77
9571               )
9572             )|
9573             7(?:
9574               1[13]9|
9575               2[15]9|
9576               419|
9577               5(?:
9578                 1[89]|
9579                 29
9580               )|
9581               6[15]9|
9582               7[178]9
9583             )
9584           )\d{5,6}|
9585           8[1-35-9]\d{7,9}
9586         </nationalNumberPattern>
9587         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
9588         <exampleNumber>812345678</exampleNumber>
9589       </mobile>
9590       <tollFree>
9591         <nationalNumberPattern>
9592           177\d{6,8}|
9593           800\d{5,7}
9594         </nationalNumberPattern>
9595         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
9596         <exampleNumber>8001234567</exampleNumber>
9597       </tollFree>
9598       <uan>
9599         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9600         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9601         <exampleNumber>8071123456</exampleNumber>
9602       </uan>
9603       <noInternationalDialling>
9604         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9605         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9606         <exampleNumber>8071123456</exampleNumber>
9607       </noInternationalDialling>
9608       <!-- The information below is provided by an Indonesian -->
9609       <premiumRate>
9610         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
9611         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9612         <exampleNumber>8091234567</exampleNumber>
9613       </premiumRate>
9614     </territory>
9615
9616     <!-- Ireland -->
9617     <territory id="IE" countryCode="353" internationalPrefix="00"
9618                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
9619                mobileNumberPortableRegion="true">
9620       <references>
9621         <sourceUrl>http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html</sourceUrl>
9622         <sourceUrl>http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf</sourceUrl>
9623       </references>
9624       <availableFormats>
9625         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
9626           <leadingDigits>1</leadingDigits>
9627           <format>$1 $2 $3</format>
9628         </numberFormat>
9629         <numberFormat pattern="(\d{2})(\d{5})">
9630           <leadingDigits>
9631             2[24-9]|
9632             47|
9633             58|
9634             6[237-9]|
9635             9[35-9]
9636           </leadingDigits>
9637           <format>$1 $2</format>
9638         </numberFormat>
9639         <numberFormat pattern="(\d{3})(\d{5})">
9640           <leadingDigits>
9641             40[24]|
9642             50[45]
9643           </leadingDigits>
9644           <format>$1 $2</format>
9645         </numberFormat>
9646         <numberFormat pattern="(48)(\d{4})(\d{4})">
9647           <leadingDigits>48</leadingDigits>
9648           <format>$1 $2 $3</format>
9649         </numberFormat>
9650         <numberFormat pattern="(818)(\d{3})(\d{3})">
9651           <leadingDigits>81</leadingDigits>
9652           <format>$1 $2 $3</format>
9653         </numberFormat>
9654         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9655           <leadingDigits>
9656             [24-69]|
9657             7[14]
9658           </leadingDigits>
9659           <format>$1 $2 $3</format>
9660         </numberFormat>
9661         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9662           pattern="([78]\d)(\d{3,4})(\d{4})">
9663           <leadingDigits>
9664             76|
9665             8[35-9]
9666           </leadingDigits>
9667           <format>$1 $2 $3</format>
9668         </numberFormat>
9669         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9670           pattern="(700)(\d{3})(\d{3})">
9671           <leadingDigits>70</leadingDigits>
9672           <format>$1 $2 $3</format>
9673         </numberFormat>
9674         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
9675           <leadingDigits>
9676             1(?:
9677               8[059]|
9678               5
9679             )
9680           </leadingDigits>
9681           <leadingDigits>
9682             1(?:
9683               8[059]0|
9684               5
9685             )
9686           </leadingDigits>
9687           <format>$1 $2 $3</format>
9688         </numberFormat>
9689       </availableFormats>
9690       <generalDesc>
9691         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
9692         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9693       </generalDesc>
9694       <noInternationalDialling>
9695         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9696         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9697         <exampleNumber>1850123456</exampleNumber>
9698       </noInternationalDialling>
9699       <fixedLine>
9700         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
9701              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
9702              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
9703              Ireland. We support these numbers here, although technically they are numbers for the
9704              UK. -->
9705         <nationalNumberPattern>
9706           1\d{7,8}|
9707           2(?:
9708             1\d{6,7}|
9709             3\d{7}|
9710             [24-9]\d{5}
9711           )|
9712           4(?:
9713             0[24]\d{5}|
9714             [1-469]\d{7}|
9715             5\d{6}|
9716             7\d{5}|
9717             8[0-46-9]\d{7}
9718           )|
9719           5(?:
9720             0[45]\d{5}|
9721             1\d{6}|
9722             [23679]\d{7}|
9723             8\d{5}
9724           )|
9725           6(?:
9726             1\d{6}|
9727             [237-9]\d{5}|
9728             [4-6]\d{7}
9729           )|
9730           7[14]\d{7}|
9731           9(?:
9732             1\d{6}|
9733             [04]\d{7}|
9734             [35-9]\d{5}
9735           )
9736         </nationalNumberPattern>
9737         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9738         <exampleNumber>2212345</exampleNumber>
9739       </fixedLine>
9740       <mobile>
9741         <nationalNumberPattern>
9742           8(?:
9743             22\d{6}|
9744             [35-9]\d{7}
9745           )
9746         </nationalNumberPattern>
9747         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9748         <exampleNumber>850123456</exampleNumber>
9749       </mobile>
9750       <tollFree>
9751         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
9752         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9753         <exampleNumber>1800123456</exampleNumber>
9754       </tollFree>
9755       <premiumRate>
9756         <nationalNumberPattern>
9757           15(?:
9758             1[2-8]|
9759             [2-8]0|
9760             9[089]
9761           )\d{6}
9762         </nationalNumberPattern>
9763         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9764         <exampleNumber>1520123456</exampleNumber>
9765       </premiumRate>
9766       <sharedCost>
9767         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9768         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9769         <exampleNumber>1850123456</exampleNumber>
9770       </sharedCost>
9771       <personalNumber>
9772         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
9773         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9774         <exampleNumber>700123456</exampleNumber>
9775       </personalNumber>
9776       <voip>
9777         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
9778         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9779         <exampleNumber>761234567</exampleNumber>
9780       </voip>
9781       <uan>
9782         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
9783         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9784         <exampleNumber>818123456</exampleNumber>
9785       </uan>
9786       <voicemail>
9787         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
9788         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9789         <exampleNumber>8501234567</exampleNumber>
9790       </voicemail>
9791     </territory>
9792
9793     <!-- Israel -->
9794     <!-- Formatting practice following wikipedia, and government sites. -->
9795     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
9796                nationalPrefix="0" nationalPrefixFormattingRule="$FG"
9797                mobileNumberPortableRegion="true">
9798       <references>
9799         <sourceUrl>http://www.itu.int/oth/T020200006A/en</sourceUrl>
9800         <sourceUrl>http://en.wikipedia.org/wiki/%2B972</sourceUrl>
9801         <!-- in Hebrew -->
9802         <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>
9803       </references>
9804       <availableFormats>
9805         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9806           pattern="([2-489])(\d{3})(\d{4})">
9807           <leadingDigits>[2-489]</leadingDigits>
9808           <format>$1-$2-$3</format>
9809         </numberFormat>
9810         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9811           pattern="([57]\d)(\d{3})(\d{4})">
9812           <leadingDigits>[57]</leadingDigits>
9813           <format>$1-$2-$3</format>
9814         </numberFormat>
9815         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
9816           <leadingDigits>1[7-9]</leadingDigits>
9817           <format>$1-$2-$3-$4</format>
9818         </numberFormat>
9819         <!-- The following number is for hospitals. -->
9820         <numberFormat pattern="(1255)(\d{3})">
9821           <leadingDigits>125</leadingDigits>
9822           <format>$1-$2</format>
9823         </numberFormat>
9824         <numberFormat pattern="(1200)(\d{3})(\d{3})">
9825           <leadingDigits>120</leadingDigits>
9826           <format>$1-$2-$3</format>
9827         </numberFormat>
9828         <numberFormat pattern="(1212)(\d{2})(\d{2})">
9829           <leadingDigits>121</leadingDigits>
9830           <format>$1-$2-$3</format>
9831         </numberFormat>
9832         <!-- The following is for voicemail access. -->
9833         <numberFormat pattern="(1599)(\d{6})">
9834           <leadingDigits>15</leadingDigits>
9835           <format>$1-$2</format>
9836         </numberFormat>
9837         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
9838              dialed with a star in front of the number. -->
9839         <numberFormat pattern="(\d{4})">
9840           <leadingDigits>[2-689]</leadingDigits>
9841           <format>*$1</format>
9842         </numberFormat>
9843       </availableFormats>
9844       <generalDesc >
9845         <nationalNumberPattern>
9846           [17]\d{6,9}|
9847           [2-589]\d{3}(?:\d{3,6})?|
9848           6\d{3}
9849         </nationalNumberPattern>
9850         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9851       </generalDesc>
9852       <noInternationalDialling>
9853         <nationalNumberPattern>
9854           1700\d{6}|
9855           [2-689]\d{3}
9856         </nationalNumberPattern>
9857         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9858         <exampleNumber>1700123456</exampleNumber>
9859       </noInternationalDialling>
9860       <fixedLine>
9861         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9862         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
9863         <exampleNumber>21234567</exampleNumber>
9864       </fixedLine>
9865       <mobile>
9866         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
9867              sure wikipedia is accurate based on news coverage of the launch of these numbers. -->
9868         <nationalNumberPattern>
9869           5(?:
9870             [02347-9]\d{2}|
9871             5(?:
9872               01|
9873               2[23]|
9874               3[34]|
9875               4[45]|
9876               5[5689]|
9877               6[67]|
9878               7[78]|
9879               8[89]
9880             )|
9881             6[2-9]\d
9882           )\d{5}
9883         </nationalNumberPattern>
9884         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9885         <exampleNumber>501234567</exampleNumber>
9886       </mobile>
9887       <tollFree>
9888         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
9889         <nationalNumberPattern>
9890           1(?:
9891             80[019]\d{3}|
9892             255
9893           )\d{3}
9894         </nationalNumberPattern>
9895         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9896         <exampleNumber>1800123456</exampleNumber>
9897       </tollFree>
9898       <premiumRate>
9899           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
9900                However, no online numbers starting with these prefixes can be found, and this data
9901                is not found in any other source. -->
9902           <!-- 1200 and 1212 numbers are for televoting. -->
9903         <nationalNumberPattern>
9904           1(?:
9905             212|
9906             (?:
9907               9(?:
9908                 0[01]|
9909                 19
9910               )|
9911               200
9912             )\d{2}
9913           )\d{4}
9914         </nationalNumberPattern>
9915         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
9916         <exampleNumber>1919123456</exampleNumber>
9917       </premiumRate>
9918       <sharedCost>
9919         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
9920         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9921         <exampleNumber>1700123456</exampleNumber>
9922       </sharedCost>
9923       <voip>
9924         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
9925              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
9926              Dialing) numbers, that most people forward to VoIP numbers. -->
9927         <nationalNumberPattern>
9928           7(?:
9929             2[23]\d|
9930             3[237]\d|
9931             47\d|
9932             6(?:
9933               5\d|
9934               8[068]
9935             )|
9936             7\d{2}|
9937             8(?:
9938               33|
9939               55|
9940               77|
9941               81
9942             )
9943           )\d{5}
9944         </nationalNumberPattern>
9945         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9946         <exampleNumber>771234567</exampleNumber>
9947       </voip>
9948       <uan>
9949         <!-- 4-digit star numbers and 1-599 numbers. The latter are actually labelled "interactive
9950              voicemail" in the ITU document, but according to reports from businesses in Israel and
9951              the Hebrew version of the wikipedia page, these are actually a router for business
9952              calls, and incur a normal call cost on account of the caller. -->
9953         <nationalNumberPattern>
9954           [2-689]\d{3}|
9955           1599\d{6}
9956         </nationalNumberPattern>
9957         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
9958         <exampleNumber>1599123456</exampleNumber>
9959       </uan>
9960     </territory>
9961
9962     <!-- Isle of Man -->
9963     <!-- Inherits formatting rules from the UK. -->
9964     <territory id="IM" countryCode="44" internationalPrefix="00"
9965                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
9966       <references>
9967         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
9968       </references>
9969       <generalDesc>
9970         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
9971         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
9972       </generalDesc>
9973       <areaCodeOptional>
9974         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
9975         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9976         <exampleNumber>1624250123</exampleNumber>
9977       </areaCodeOptional>
9978       <!-- Specific to IM. -->
9979       <fixedLine>
9980         <!-- 1624 with 10 digits. -->
9981         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
9982         <exampleNumber>1624456789</exampleNumber>
9983       </fixedLine>
9984       <mobile>
9985         <!-- 7524, 7624, 7924 with 10 digits. -->
9986         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
9987         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9988         <exampleNumber>7924123456</exampleNumber>
9989       </mobile>
9990       <tollFree>
9991         <!-- 808 162 with 10 digits. -->
9992         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
9993         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9994         <exampleNumber>8081624567</exampleNumber>
9995       </tollFree>
9996       <premiumRate>
9997         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
9998         <nationalNumberPattern>
9999           (?:
10000             872299|
10001             90[0167]624
10002           )\d{4}
10003         </nationalNumberPattern>
10004         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10005         <exampleNumber>9016247890</exampleNumber>
10006       </premiumRate>
10007       <sharedCost>
10008         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
10009         <nationalNumberPattern>
10010           8(?:
10011             4(?:
10012               40[49]06|
10013               5624\d
10014             )|
10015             70624\d
10016           )\d{3}
10017         </nationalNumberPattern>
10018         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10019         <exampleNumber>8456247890</exampleNumber>
10020       </sharedCost>
10021       <!-- Other numbers as per GB. -->
10022       <personalNumber>
10023         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
10024         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10025         <exampleNumber>7012345678</exampleNumber>
10026       </personalNumber>
10027       <voip>
10028         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
10029         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10030         <exampleNumber>5612345678</exampleNumber>
10031       </voip>
10032       <uan>
10033         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
10034         <nationalNumberPattern>
10035           3(?:
10036             08162\d|
10037             3\d{5}|
10038             4(?:
10039               40[49]06|
10040               5624\d
10041             )|
10042             7(?:
10043               0624\d|
10044               2299\d
10045             )
10046           )\d{3}|
10047           55\d{8}
10048         </nationalNumberPattern>
10049         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10050         <exampleNumber>5512345678</exampleNumber>
10051       </uan>
10052     </territory>
10053
10054     <!-- India -->
10055     <!-- Note that several changes in area codes have occurred since the numbering plan was released
10056          - fixed line changes are notified on the http://www.bsnl.co.in website. Area codes can be
10057          verified here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
10058     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
10059                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true"
10060                mobileNumberPortableRegion="true">
10061       <references>
10062         <sourceUrl>http://www.itu.int/oth/T0202000063/en</sourceUrl>
10063         <sourceUrl>http://en.wikipedia.org/wiki/%2B91</sourceUrl>
10064         <sourceUrl>http://www.coai.in/msccodes.php</sourceUrl>
10065       </references>
10066        <availableFormats>
10067          <!-- Mobile numbers. -->
10068          <numberFormat pattern="(\d{5})(\d{5})">
10069            <leadingDigits>
10070              7(?:
10071                0[2-8]|
10072                2[0579]|
10073                3[057-9]|
10074                4[0-389]|
10075                6[0-35-9]|
10076                [57]|
10077                8[0-79]
10078              )|
10079              8(?:
10080                0[015689]|
10081                1[0-57-9]|
10082                2[2356-9]|
10083                3[0-57-9]|
10084                [45]|
10085                6[02457-9]|
10086                7[1-69]|
10087                8[0124-9]|
10088                9[02-9]
10089              )|
10090              9
10091            </leadingDigits>
10092            <leadingDigits>
10093              7(?:
10094                0(?:
10095                  2[2-9]|
10096                  [3-7]|
10097                  8[0-7]
10098                )|
10099                2(?:
10100                  0[04-9]|
10101                  5[09]|
10102                  7[5-8]|
10103                  9[389]
10104                )|
10105                3(?:
10106                  0[1-9]|
10107                  [58]|
10108                  7[3679]|
10109                  9[689]
10110                )|
10111                4(?:
10112                  0[1-9]|
10113                  1[15-9]|
10114                  [29][89]|
10115                  39|
10116                  8[389]
10117                )|
10118                5(?:
10119                  [034678]|
10120                  2[03-9]|
10121                  5[017-9]|
10122                  9[7-9]
10123                )|
10124                6(?:
10125                  0[0-27]|
10126                  1[0-257-9]|
10127                  2[0-4]|
10128                  3[19]|
10129                  5[4589]|
10130                  [6-9]
10131                )|
10132                7(?:
10133                  0[2-9]|
10134                  [1-79]|
10135                  8[1-9]
10136                )|
10137                8(?:
10138                  [0-7]|
10139                  9[013-9]
10140                )
10141              )|
10142              8(?:
10143                0(?:
10144                  [01589]|
10145                  6[67]
10146                )|
10147                1(?:
10148                  [02-589]|
10149                  1[0135-9]|
10150                  7[0-79]
10151                )|
10152                2(?:
10153                  [236-9]|
10154                  5[1-9]
10155                )|
10156                3(?:
10157                  [0357-9]|
10158                  4[1-9]
10159                )|
10160                [45]|
10161                6[02457-9]|
10162                7[1-69]|
10163                8(?:
10164                  [0-26-9]|
10165                  44|
10166                  5[2-9]
10167                )|
10168                9(?:
10169                  [035-9]|
10170                  2[2-9]|
10171                  4[0-8]
10172                )
10173              )|
10174              9
10175            </leadingDigits>
10176            <format>$1 $2</format>
10177          </numberFormat>
10178          <!-- 2 digits area code -->
10179          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10180            <leadingDigits>
10181              11|
10182              2[02]|
10183              33|
10184              4[04]|
10185              79|
10186              80[2-46]
10187            </leadingDigits>
10188            <format>$1 $2 $3</format>
10189          </numberFormat>
10190          <!-- 3 digit area codes that don't clash with mobile patterns. -->
10191          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10192            <leadingDigits>
10193              1(?:
10194                2[0-249]|
10195                3[0-25]|
10196                4[145]|
10197                [569][14]|
10198                7[1257]|
10199                8[1346]|
10200                [68][1-9]
10201              )|
10202              2(?:
10203                1[257]|
10204                3[013]|
10205                4[01]|
10206                5[0137]|
10207                6[0158]|
10208                78|
10209                8[1568]|
10210                9[14]
10211              )|
10212              3(?:
10213                26|
10214                4[1-3]|
10215                5[34]|
10216                6[01489]|
10217                7[02-46]|
10218                8[159]
10219              )|
10220              4(?:
10221                1[36]|
10222                2[1-47]|
10223                3[15]|
10224                5[12]|
10225                6[126-9]|
10226                7[0-24-9]|
10227                8[013-57]|
10228                9[014-7]
10229              )|
10230              5(?:
10231                [136][25]|
10232                22|
10233                4[28]|
10234                5[12]|
10235                [78]1|
10236                9[15]
10237              )|
10238              6(?:
10239                12|
10240                [2345]1|
10241                57|
10242                6[13]|
10243                7[14]|
10244                80
10245              )
10246            </leadingDigits>
10247            <format>$1 $2 $3</format>
10248          </numberFormat>
10249          <!-- Three-digit area codes that potentially overlap with mobile. -->
10250          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10251            <leadingDigits>
10252              7(?:
10253                12|
10254                2[14]|
10255                3[134]|
10256                4[47]|
10257                5[15]|
10258                [67]1|
10259                88
10260              )
10261            </leadingDigits>
10262            <leadingDigits>
10263              7(?:
10264                12|
10265                2[14]|
10266                3[134]|
10267                4[47]|
10268                5(?:
10269                  1|
10270                  5[2-6]
10271                )|
10272                [67]1|
10273                88
10274              )
10275            </leadingDigits>
10276            <format>$1 $2 $3</format>
10277          </numberFormat>
10278          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10279            <leadingDigits>
10280              8(?:
10281                16|
10282                2[014]|
10283                3[126]|
10284                6[136]|
10285                7[078]|
10286                8[34]|
10287                91
10288              )
10289            </leadingDigits>
10290            <format>$1 $2 $3</format>
10291          </numberFormat>
10292          <!-- 4 digits area code -->
10293          <!-- Fallback for fixed-line numbers. -->
10294          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
10295            <leadingDigits>
10296              1(?:
10297                [23579]|
10298                [468][1-9]
10299              )|
10300              [2-8]
10301            </leadingDigits>
10302            <format>$1 $2 $3</format>
10303          </numberFormat>
10304          <numberFormat nationalPrefixFormattingRule="$FG"
10305            pattern="(1600)(\d{2})(\d{4})">
10306            <leadingDigits>160</leadingDigits>
10307            <leadingDigits>1600</leadingDigits>
10308            <format>$1 $2 $3</format>
10309          </numberFormat>
10310          <numberFormat nationalPrefixFormattingRule="$FG"
10311            pattern="(1800)(\d{4,5})">
10312            <leadingDigits>180</leadingDigits>
10313            <leadingDigits>1800</leadingDigits>
10314            <format>$1 $2</format>
10315          </numberFormat>
10316          <numberFormat nationalPrefixFormattingRule="$FG"
10317            pattern="(18[06]0)(\d{2,4})(\d{4})">
10318            <leadingDigits>18[06]</leadingDigits>
10319            <leadingDigits>18[06]0</leadingDigits>
10320            <format>$1 $2 $3</format>
10321          </numberFormat>
10322          <numberFormat nationalPrefixFormattingRule="$FG"
10323            pattern="(140)(\d{3})(\d{4})">
10324            <leadingDigits>140</leadingDigits>
10325            <format>$1 $2 $3</format>
10326          </numberFormat>
10327          <!-- Televoting numbers. Formatting information is from
10328               http://www.bsnl.co.in/service/telev.htm -->
10329          <numberFormat nationalPrefixFormattingRule="$FG"
10330            pattern="(\d{4})(\d{3})(\d{4})(\d{2})">
10331            <leadingDigits>18[06]</leadingDigits>
10332            <leadingDigits>
10333              18(?:
10334                03|
10335                6[12]
10336              )
10337            </leadingDigits>
10338            <format>$1 $2 $3 $4</format>
10339          </numberFormat>
10340       </availableFormats>
10341       <generalDesc>
10342         <nationalNumberPattern>
10343           1\d{7,12}|
10344           [2-9]\d{9,10}
10345         </nationalNumberPattern>
10346         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
10347       </generalDesc>
10348       <noInternationalDialling>
10349         <nationalNumberPattern>
10350           1(?:
10351             600\d{6}|
10352             8(?:
10353               0(?:
10354                 0\d{4,8}|
10355                 3\d{9}
10356               )|
10357               6(?:
10358                 0\d{7}|
10359                 [12]\d{9}
10360               )
10361             )
10362           )
10363         </nationalNumberPattern>
10364         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10365         <exampleNumber>1800123456</exampleNumber>
10366       </noInternationalDialling>
10367       <fixedLine>
10368         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
10369              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
10370              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
10371              Not all operator codes are available in all areas, but we don't maintain that
10372              distinction here.
10373              Area codes starting with a 7 are listed separately, since the prefixes need to be more
10374              detailed so they clash less with mobile phone prefixes. -->
10375         <nationalNumberPattern>
10376           (?:
10377             11|
10378             2[02]|
10379             33|
10380             4[04]|
10381             79
10382           )[2-7]\d{7}|
10383           80[2-467]\d{7}|
10384           (?:
10385             1(?:
10386               2[0-249]|
10387               3[0-25]|
10388               4[145]|
10389               [59][14]|
10390               6[014]|
10391               7[1257]|
10392               8[01346]
10393             )|
10394             2(?:
10395               1[257]|
10396               3[013]|
10397               4[01]|
10398               5[0137]|
10399               6[0158]|
10400               78|
10401               8[1568]|
10402               9[14]
10403             )|
10404             3(?:
10405               26|
10406               4[1-3]|
10407               5[34]|
10408               6[01489]|
10409               7[02-46]|
10410               8[159]
10411             )|
10412             4(?:
10413               1[36]|
10414               2[1-47]|
10415               3[15]|
10416               5[12]|
10417               6[126-9]|
10418               7[0-24-9]|
10419               8[013-57]|
10420               9[014-7]
10421             )|
10422             5(?:
10423               [136][25]|
10424               22|
10425               4[28]|
10426               5[12]|
10427               [78]1|
10428               9[15]
10429             )|
10430             6(?:
10431               12|
10432               [2345]1|
10433               57|
10434               6[13]|
10435               7[14]|
10436               80
10437             )|
10438             7(?:
10439               12|
10440               2[14]|
10441               3[134]|
10442               4[47]|
10443               5[15]|
10444               [67]1|
10445               88
10446             )|
10447             8(?:
10448               16|
10449               2[014]|
10450               3[126]|
10451               6[136]|
10452               7[078]|
10453               8[34]|
10454               91
10455             )
10456           )[2-7]\d{6}|
10457           (?:
10458             (?:
10459               1(?:
10460                 2[35-8]|
10461                 3[346-9]|
10462                 4[236-9]|
10463                 [59][0235-9]|
10464                 6[235-9]|
10465                 7[34689]|
10466                 8[257-9]
10467               )|
10468               2(?:
10469                 1[134689]|
10470                 3[24-8]|
10471                 4[2-8]|
10472                 5[25689]|
10473                 6[2-4679]|
10474                 7[13-79]|
10475                 8[2-479]|
10476                 9[235-9]
10477               )|
10478               3(?:
10479                 01|
10480                 1[79]|
10481                 2[1-5]|
10482                 4[25-8]|
10483                 5[125689]|
10484                 6[235-7]|
10485                 7[157-9]|
10486                 8[2-467]
10487               )|
10488               4(?:
10489                 1[14578]|
10490                 2[5689]|
10491                 3[2-467]|
10492                 5[4-7]|
10493                 6[35]|
10494                 73|
10495                 8[2689]|
10496                 9[2389]
10497               )|
10498               5(?:
10499                 [16][146-9]|
10500                 2[14-8]|
10501                 3[1346]|
10502                 4[14-69]|
10503                 5[46]|
10504                 7[2-4]|
10505                 8[2-8]|
10506                 9[246]
10507               )|
10508               6(?:
10509                 1[1358]|
10510                 2[2457]|
10511                 3[2-4]|
10512                 4[235-7]|
10513                 [57][2-689]|
10514                 6[24-578]|
10515                 8[1-6]
10516               )|
10517               8(?:
10518                 1[1357-9]|
10519                 2[235-8]|
10520                 3[03-57-9]|
10521                 4[0-24-9]|
10522                 5\d|
10523                 6[2457-9]|
10524                 7[1-6]|
10525                 8[1256]|
10526                 9[2-4]
10527               )
10528             )\d|
10529             7(?:
10530               (?:
10531                 1[013-9]|
10532                 2[0235-9]|
10533                 3[2679]|
10534                 4[1-35689]|
10535                 5[2-46-9]|
10536                 [67][02-9]|
10537                 9\d
10538               )\d|
10539               8(?:
10540                 2[0-6]|
10541                 [013-8]\d
10542               )
10543             )
10544           )[2-7]\d{5}
10545         </nationalNumberPattern>
10546         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10547         <exampleNumber>1123456789</exampleNumber>
10548       </fixedLine>
10549       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
10550       <!-- The document titled "List of MSC codes" linked off
10551            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
10552            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
10553       <mobile>
10554         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10555              codes list, are added because SMS messages have been successfully sent to these
10556              numbers. It seems almost impossible to know for some of these numbers whether they are
10557              land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[567],
10558              7695, 8299, 8309. New prefixes were also added based on the document provided from
10559              mobile carriers: https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
10560         <nationalNumberPattern>
10561           (?:
10562             7(?:
10563               0(?:
10564                 2[2-9]|
10565                 [3-7]\d|
10566                 8[0-7]
10567               )|
10568               2(?:
10569                 0[04-9]|
10570                 5[09]|
10571                 7[5-8]|
10572                 9[389]
10573               )|
10574               3(?:
10575                 0[1-9]|
10576                 [58]\d|
10577                 7[3679]|
10578                 9[689]
10579               )|
10580               4(?:
10581                 0[1-9]|
10582                 1[15-9]|
10583                 [29][89]|
10584                 39|
10585                 8[389]
10586               )|
10587               5(?:
10588                 [034678]\d|
10589                 2[03-9]|
10590                 5[017-9]|
10591                 9[7-9]
10592               )|
10593               6(?:
10594                 0[0127]|
10595                 1[0-257-9]|
10596                 2[0-4]|
10597                 3[19]|
10598                 5[4589]|
10599                 [6-9]\d
10600               )|
10601               7(?:
10602                 0[2-9]|
10603                 [1-79]\d|
10604                 8[1-9]
10605               )|
10606               8(?:
10607                 [0-7]\d|
10608                 9[013-9]
10609               )
10610             )|
10611             8(?:
10612               0(?:
10613                 [01589]\d|
10614                 6[67]
10615               )|
10616               1(?:
10617                 [02-589]\d|
10618                 1[0135-9]|
10619                 7[0-79]
10620               )|
10621               2(?:
10622                 [236-9]\d|
10623                 5[1-9]
10624               )|
10625               3(?:
10626                 [0357-9]\d|
10627                 4[1-9]
10628               )|
10629               [45]\d{2}|
10630               6[02457-9]\d|
10631               7[1-69]\d|
10632               8(?:
10633                 [0-26-9]\d|
10634                 44|
10635                 5[2-9]
10636               )|
10637               9(?:
10638                 [035-9]\d|
10639                 2[2-9]|
10640                 4[0-8]
10641               )
10642             )|
10643             9\d{3}
10644           )\d{6}
10645         </nationalNumberPattern>
10646         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10647         <exampleNumber>9123456789</exampleNumber>
10648       </mobile>
10649       <tollFree>
10650         <!-- Information gathered from sites such as
10651              http://www.surfindia.com/india-facts/toll-free-no.html and
10652              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
10653              http://www.bsnl.co.in/service/telev.htm -->
10654         <nationalNumberPattern>
10655           1(?:
10656             600\d{6}|
10657             80(?:
10658               0\d{4,8}|
10659               3\d{9}
10660             )
10661           )
10662         </nationalNumberPattern>
10663         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10664         <exampleNumber>1800123456</exampleNumber>
10665       </tollFree>
10666       <premiumRate>
10667         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
10668              because they overlap with mobile, and we haven't found any real numbers online. -->
10669         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
10670         <possibleNumberPattern>\d{13}</possibleNumberPattern>
10671         <exampleNumber>1861123456789</exampleNumber>
10672       </premiumRate>
10673       <sharedCost>
10674         <!-- While described as "universal numbers" in the numbering plan, evidence suggests
10675              that 1860 number are best described as shared cost. See "Call Local Service" in:
10676              http://www.tatadocomo.com/corporates/toll-free.aspx -->
10677         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
10678         <possibleNumberPattern>\d{11}</possibleNumberPattern>
10679         <exampleNumber>18603451234</exampleNumber>
10680       </sharedCost>
10681       <uan>
10682         <!-- Telemarketing numbers: http://en.wikipedia.org/wiki/Telephone_numbers_in_India -->
10683         <nationalNumberPattern>140\d{7}</nationalNumberPattern>
10684         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10685         <exampleNumber>1409305260</exampleNumber>
10686       </uan>
10687     </territory>
10688
10689     <!-- British Indian Ocean Territory / Diego Garcia -->
10690     <territory id="IO" countryCode="246" internationalPrefix="00">
10691       <references>
10692         <sourceUrl>http://www.itu.int/oth/T0202000039/en</sourceUrl>
10693       </references>
10694       <availableFormats>
10695         <numberFormat pattern="(\d{3})(\d{4})">
10696           <format>$1 $2</format>
10697         </numberFormat>
10698       </availableFormats>
10699       <generalDesc>
10700         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
10701         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10702       </generalDesc>
10703       <fixedLine>
10704         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
10705         <exampleNumber>3709100</exampleNumber>
10706       </fixedLine>
10707       <mobile>
10708         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
10709         <exampleNumber>3801234</exampleNumber>
10710       </mobile>
10711     </territory>
10712
10713     <!-- Iraq -->
10714     <territory id="IQ" countryCode="964" internationalPrefix="00"
10715                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10716       <references>
10717         <sourceUrl>http://en.wikipedia.org/wiki/%2B964</sourceUrl>
10718         <sourceUrl>http://wtng.info/wtng-964-ik.html</sourceUrl>
10719       </references>
10720       <availableFormats>
10721         <numberFormat pattern="(1)(\d{3})(\d{4})">
10722           <leadingDigits>1</leadingDigits>
10723           <format>$1 $2 $3</format>
10724         </numberFormat>
10725         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
10726           <leadingDigits>[2-6]</leadingDigits>
10727           <format>$1 $2 $3</format>
10728         </numberFormat>
10729         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
10730           <leadingDigits>7</leadingDigits>
10731           <format>$1 $2 $3</format>
10732         </numberFormat>
10733       </availableFormats>
10734       <generalDesc>
10735         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
10736         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10737       </generalDesc>
10738       <fixedLine>
10739         <nationalNumberPattern>
10740           1\d{7}|
10741           (?:
10742             2[13-5]|
10743             3[02367]|
10744             4[023]|
10745             5[03]|
10746             6[026]
10747           )\d{6,7}
10748         </nationalNumberPattern>
10749         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
10750         <exampleNumber>12345678</exampleNumber>
10751       </fixedLine>
10752       <mobile>
10753         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
10754         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10755         <exampleNumber>7912345678</exampleNumber>
10756       </mobile>
10757       <!-- No tollFree or premiumRate information can be found. -->
10758     </territory>
10759
10760     <!-- Iran, Islamic Republic of -->
10761     <territory id="IR" countryCode="98" internationalPrefix="00"
10762                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10763       <references>
10764         <sourceUrl>http://en.wikipedia.org/wiki/%2B98</sourceUrl>
10765         <sourceUrl>http://www.itu.int/oth/T0202000066/en</sourceUrl>
10766         <sourceUrl>http://www.tct.ir/?siteid=1&amp;pageid=195</sourceUrl>
10767         <sourceUrl>http://118.tct.ir/citycode.htm</sourceUrl>
10768       </references>
10769       <availableFormats>
10770         <!-- Formatting follows wikipedia. -->
10771         <numberFormat pattern="(21)(\d{3,5})">
10772           <leadingDigits>21</leadingDigits>
10773           <format>$1 $2</format>
10774         </numberFormat>
10775         <numberFormat pattern="(2[15])(\d{3})(\d{3,4})">
10776           <leadingDigits>
10777             2(?:
10778               1|
10779               5[0-47-9]
10780             )
10781           </leadingDigits>
10782           <format>$1 $2 $3</format>
10783         </numberFormat>
10784         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10785           <leadingDigits>
10786             2[156]|
10787             31|
10788             51|
10789             71|
10790             86
10791           </leadingDigits>
10792           <format>$1 $2 $3</format>
10793         </numberFormat>
10794         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
10795           <leadingDigits>
10796             [13-9]|
10797             2[02-47-9]
10798           </leadingDigits>
10799           <format>$1 $2 $3</format>
10800         </numberFormat>
10801         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
10802           <leadingDigits>
10803             [13-9]|
10804             2[02-47-9]
10805           </leadingDigits>
10806           <format>$1 $2 $3</format>
10807         </numberFormat>
10808         <numberFormat pattern="(\d{3})(\d{3})">
10809           <leadingDigits>
10810             [13-9]|
10811             2[02-47-9]
10812           </leadingDigits>
10813           <format>$1 $2</format>
10814         </numberFormat>
10815       </availableFormats>
10816       <generalDesc>
10817         <nationalNumberPattern>
10818           [14-8]\d{6,9}|
10819           [23]\d{4,9}|
10820           9(?:
10821             [0-4]\d{8}|
10822             9\d{2,8}
10823           )
10824         </nationalNumberPattern>
10825         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10826       </generalDesc>
10827       <fixedLine>
10828         <!-- We are following the more specific lengths specified in the communication in the ITU
10829              doc of 26.VIII.2012, rather than the brief summary lengths (which actually contradict).
10830              The prefixes have been verified by looking at the Persian telecommunications site.
10831              22[189], 29[12] have become 21, as part of the shift to unify prefixes. 746 was also
10832              found on the website http://www.tct.ir/?siteid=1&pageid=410&siteid=1 but this seems
10833              to be a typo. -->
10834         <nationalNumberPattern>
10835           1(?:
10836             [13-589][12]|
10837             [27][1-4]
10838           )\d{7}|
10839           2(?:
10840             1\d{3,8}|
10841             3[12]\d{7}|
10842             4(?:
10843               1\d{4,7}|
10844               2\d{7}
10845             )|
10846             53\d{7}|
10847             6\d{8}|
10848             7[34]\d{7}|
10849             [89][12]\d{7}
10850           )|
10851           3(?:
10852             1[2-5]\d{7}|
10853             2[1-4]\d{7}|
10854             3(?:
10855               [125]\d{7}|
10856               4\d{6,7}
10857             )|
10858             4(?:
10859               1\d{6,7}
10860               [24-9]\d{7}
10861             )|
10862             5(?:
10863               1\d{4,7}|
10864               [23]\d{7}
10865             )|
10866             [6-9][12]\d{7}
10867           )|
10868           4(?:
10869             [135-9][12]\d{7}|
10870             2[1-467]\d{7}|
10871             4(?:
10872               1\d{4,7}|
10873               [2-4]\d{7}
10874             )
10875           )|
10876           5(?:
10877             1[2-5]\d{7}|
10878             2[89]\d{7}|
10879             3[1-5]\d{7}|
10880             4(?:
10881               1\d{4,7}|
10882               [2-8]\d{7}
10883             )|
10884             [5-7][12]\d{7}|
10885             8[1245]\d{7}
10886           )|
10887           6(?:
10888             1(?:
10889               1\d{6,7}|
10890               2\d{7}
10891             )|
10892             [347-9][12]\d{7}|
10893             5(?:
10894               1\d{7}|
10895               2\d{6,7}
10896             )|
10897             6[1-6]\d{7}
10898           )|
10899           7(?:
10900             1[2-5]|
10901             2[1289]|
10902             [3589][12]|
10903             4[1-4]|
10904             6[1-6]|
10905             7[1-3]
10906           )\d{7}|
10907           8(?:
10908             [145][12]|
10909             3[124578]|
10910             6[2-6]|
10911             7[1245]
10912           )\d{7}
10913         </nationalNumberPattern>
10914         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
10915         <exampleNumber>2123456789</exampleNumber>
10916       </fixedLine>
10917       <mobile>
10918         <nationalNumberPattern>
10919           9(?:
10920             0[12]|
10921             [1-3]\d
10922           )\d{7}
10923         </nationalNumberPattern>
10924         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10925         <exampleNumber>9123456789</exampleNumber>
10926       </mobile>
10927       <pager>
10928         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
10929         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10930         <exampleNumber>9432123456</exampleNumber>
10931       </pager>
10932       <!-- No tollFree or premiumRate information can be found. -->
10933       <voip>
10934         <!-- Includes VSAT and Boomehen Satellite numbers. -->
10935         <nationalNumberPattern>
10936           (?:
10937             [2-6]0\d|
10938             993
10939           )\d{7}
10940         </nationalNumberPattern>
10941         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10942         <exampleNumber>9932123456</exampleNumber>
10943       </voip>
10944       <uan>
10945         <!-- MCI Public Relations numbers -->
10946         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
10947         <exampleNumber>9990123456</exampleNumber>
10948       </uan>
10949     </territory>
10950
10951     <!-- Iceland -->
10952     <territory id="IS" countryCode="354" internationalPrefix="00" mobileNumberPortableRegion="true">
10953       <references>
10954         <sourceUrl>http://www.pta.is/default.aspx?cat_id=85</sourceUrl>
10955         <sourceUrl>http://www.pfs.is/default.aspx?cat_id=14&amp;module_id=210&amp;element_id=4</sourceUrl>
10956       </references>
10957       <availableFormats>
10958         <numberFormat pattern="(\d{3})(\d{4})">
10959           <leadingDigits>[4-9]</leadingDigits>
10960           <format>$1 $2</format>
10961         </numberFormat>
10962         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
10963           <leadingDigits>3</leadingDigits>
10964           <format>$1 $2 $3</format>
10965         </numberFormat>
10966       </availableFormats>
10967       <generalDesc>
10968         <nationalNumberPattern>
10969           [4-9]\d{6}|
10970           38\d{7}
10971         </nationalNumberPattern>
10972         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
10973       </generalDesc>
10974       <fixedLine>
10975         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
10976         <nationalNumberPattern>
10977           (?:
10978             4(?:
10979               1[0-24-6]|
10980               2[0-7]|
10981               [37][0-8]|
10982               4[0-245]|
10983               5[0-3568]|
10984               6\d|
10985               8[0-36-8]
10986             )|
10987             5(?:
10988               05|
10989               [156]\d|
10990               2[02578]|
10991               3[013-7]|
10992               4[03-7]|
10993               7[0-2578]|
10994               8[0-35-9]|
10995               9[013-689]
10996             )|
10997             87[23]
10998           )\d{4}
10999         </nationalNumberPattern>
11000         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11001         <exampleNumber>4101234</exampleNumber>
11002       </fixedLine>
11003       <mobile>
11004         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
11005         <nationalNumberPattern>
11006           38[589]\d{6}|
11007           (?:
11008             6(?:
11009               1[1-8]|
11010               3[089]|
11011               4[0167]|
11012               5[019]|
11013               [67][0-69]|
11014               9\d
11015             )|
11016             7(?:
11017               5[057]|
11018               7\d|
11019               8[0-36-8]
11020             )|
11021             8(?:
11022               2[0-5]|
11023               3[0-4]|
11024               [469]\d|
11025               5[1-9]
11026             )
11027           )\d{4}
11028         </nationalNumberPattern>
11029         <exampleNumber>6111234</exampleNumber>
11030       </mobile>
11031       <tollFree>
11032         <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
11033              numbers can be found online, and it is not clear what these are; the standard
11034              definition would have them under the +800 country code instead of Iceland. -->
11035         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
11036         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11037         <exampleNumber>8001234</exampleNumber>
11038       </tollFree>
11039       <premiumRate>
11040         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
11041         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11042         <exampleNumber>9011234</exampleNumber>
11043       </premiumRate>
11044       <voip>
11045         <nationalNumberPattern>49\d{5}</nationalNumberPattern>
11046         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11047         <exampleNumber>4921234</exampleNumber>
11048       </voip>
11049       <voicemail>
11050         <nationalNumberPattern>
11051           (?:
11052             6(?:
11053               2[0-8]|
11054               49|
11055               8\d
11056             )|
11057             87[0189]|
11058             95[48]
11059           )\d{4}
11060         </nationalNumberPattern>
11061         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11062         <exampleNumber>6201234</exampleNumber>
11063       </voicemail>
11064     </territory>
11065
11066     <!-- Italy -->
11067     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true"
11068                mobileNumberPortableRegion="true">
11069       <references>
11070         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
11071       </references>
11072       <availableFormats>
11073         <!-- The leading zero for fixed numbers will be prepended before the matching of these
11074              regular expressions. -->
11075         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
11076           <leadingDigits>
11077             0[26]|
11078             55
11079           </leadingDigits>
11080           <format>$1 $2 $3</format>
11081         </numberFormat>
11082         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
11083           <leadingDigits>0[26]</leadingDigits>
11084           <format>$1 $2 $3</format>
11085         </numberFormat>
11086         <numberFormat pattern="(0[26])(\d{4,6})">
11087           <leadingDigits>0[26]</leadingDigits>
11088           <format>$1 $2</format>
11089         </numberFormat>
11090         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
11091           <leadingDigits>0[13-57-9][0159]</leadingDigits>
11092           <format>$1 $2 $3</format>
11093         </numberFormat>
11094         <numberFormat pattern="(\d{3})(\d{3,6})">
11095           <leadingDigits>
11096             0[13-57-9][0159]|
11097             8(?:
11098               03|
11099               4[17]|
11100               9[245]
11101             )
11102           </leadingDigits>
11103           <leadingDigits>
11104             0[13-57-9][0159]|
11105             8(?:
11106               03|
11107               4[17]|
11108               9(?:
11109                 2|
11110                 [45][0-4]
11111               )
11112             )
11113           </leadingDigits>
11114           <format>$1 $2</format>
11115         </numberFormat>
11116         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
11117           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11118           <format>$1 $2 $3</format>
11119         </numberFormat>
11120         <numberFormat pattern="(0\d{3})(\d{2,6})">
11121           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11122           <format>$1 $2</format>
11123         </numberFormat>
11124         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11125           <leadingDigits>
11126             [13]|
11127             8(?:
11128               00|
11129               4[08]|
11130               9[59]
11131             )
11132           </leadingDigits>
11133           <leadingDigits>
11134             [13]|
11135             8(?:
11136               00|
11137               4[08]|
11138               9(?:
11139                 5[5-9]|
11140                 9
11141               )
11142             )
11143           </leadingDigits>
11144           <format>$1 $2 $3</format>
11145         </numberFormat>
11146         <numberFormat pattern="(\d{4})(\d{4})">
11147           <leadingDigits>894</leadingDigits>
11148           <leadingDigits>894[5-9]</leadingDigits>
11149           <format>$1 $2</format>
11150         </numberFormat>
11151         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
11152           <leadingDigits>3</leadingDigits>
11153           <format>$1 $2 $3</format>
11154         </numberFormat>
11155       </availableFormats>
11156       <generalDesc>
11157         <nationalNumberPattern>
11158           [01589]\d{5,10}|
11159           3(?:
11160             [12457-9]\d{8}|
11161             [36]\d{7,9}
11162           )
11163         </nationalNumberPattern>
11164         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11165       </generalDesc>
11166       <noInternationalDialling>
11167         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
11168         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11169         <exampleNumber>848123456</exampleNumber>
11170       </noInternationalDialling>
11171       <fixedLine>
11172         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
11173              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
11174              found with other prefixes that are 11 digits long as well, so we allow it for all the
11175              three and four digit area codes. -->
11176         <nationalNumberPattern>
11177           0(?:
11178             [26]\d{4,9}|
11179             (?:
11180               1(?:
11181                 [0159]\d|
11182                 [27][1-5]|
11183                 31|
11184                 4[1-4]|
11185                 6[1356]|
11186                 8[2-57]
11187               )|
11188               3(?:
11189                 [0159]\d|
11190                 2[1-4]|
11191                 3[12]|
11192                 [48][1-6]|
11193                 6[2-59]|
11194                 7[1-7]
11195               )|
11196               4(?:
11197                 [0159]\d|
11198                 [23][1-9]|
11199                 4[245]|
11200                 6[1-5]|
11201                 7[1-4]|
11202                 81
11203               )|
11204               5(?:
11205                 [0159]\d|
11206                 2[1-5]|
11207                 3[2-6]|
11208                 4[1-79]|
11209                 6[4-6]|
11210                 7[1-578]|
11211                 8[3-8]
11212               )|
11213               7(?:
11214                 [0159]\d|
11215                 2[12]|
11216                 3[1-7]|
11217                 4[2346]|
11218                 6[13569]|
11219                 7[13-6]|
11220                 8[1-59]
11221               )|
11222               8(?:
11223                 [0159]\d|
11224                 2[34578]|
11225                 3[1-356]|
11226                 [6-8][1-5]
11227               )|
11228               9(?:
11229                 [0159]\d|
11230                 [238][1-5]|
11231                 4[12]|
11232                 6[1-8]|
11233                 7[1-6]
11234               )
11235             )\d{2,7}
11236           )
11237         </nationalNumberPattern>
11238         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11239         <exampleNumber>0212345678</exampleNumber>
11240       </fixedLine>
11241       <mobile>
11242         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
11243              digits long. However, a user reported the existence of new 11 digit long numbers for
11244              TIM with the prefix 33X, so this is supported also. -->
11245         <nationalNumberPattern>
11246           3(?:
11247             [12457-9]\d{8}|
11248             6\d{7,8}|
11249             3\d{7,9}
11250           )
11251         </nationalNumberPattern>
11252         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
11253         <exampleNumber>3123456789</exampleNumber>
11254       </mobile>
11255       <tollFree>
11256         <nationalNumberPattern>
11257           80(?:
11258             0\d{6}|
11259             3\d{3}
11260           )
11261         </nationalNumberPattern>
11262         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11263         <exampleNumber>800123456</exampleNumber>
11264       </tollFree>
11265       <premiumRate>
11266         <!-- Adding 0878 numbers, as per
11267              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
11268              premium prefixes are mentioned here:
11269              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
11270         <nationalNumberPattern>
11271           0878\d{5}|
11272           1(?:
11273             44|
11274             6[346]
11275           )\d{6}|
11276           89(?:
11277             2\d{3}|
11278             4(?:
11279               [0-4]\d{2}|
11280               [5-9]\d{4}
11281             )|
11282             5(?:
11283               [0-4]\d{2}|
11284               [5-9]\d{6}
11285             )|
11286             9\d{6}
11287           )
11288         </nationalNumberPattern>
11289         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11290         <exampleNumber>899123456</exampleNumber>
11291       </premiumRate>
11292       <sharedCost>
11293         <nationalNumberPattern>
11294           84(?:
11295             [08]\d{6}|
11296             [17]\d{3}
11297           )
11298         </nationalNumberPattern>
11299         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11300         <exampleNumber>848123456</exampleNumber>
11301       </sharedCost>
11302       <personalNumber>
11303         <nationalNumberPattern>
11304           1(?:
11305             78\d|
11306             99
11307           )\d{6}
11308         </nationalNumberPattern>
11309         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
11310         <exampleNumber>1781234567</exampleNumber>
11311       </personalNumber>
11312       <voip>
11313         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
11314         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11315         <exampleNumber>5512345678</exampleNumber>
11316       </voip>
11317     </territory>
11318
11319     <!-- Jersey -->
11320     <!-- Inherits formatting rules from the UK. -->
11321     <territory id="JE" countryCode="44" internationalPrefix="00"
11322                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
11323       <references>
11324         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
11325         <sourceUrl>http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&amp;childID=1036</sourceUrl>
11326       </references>
11327       <generalDesc>
11328         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
11329         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11330       </generalDesc>
11331       <areaCodeOptional>
11332         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
11333         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11334         <exampleNumber>1534250123</exampleNumber>
11335       </areaCodeOptional>
11336       <!-- Specific to JE. -->
11337       <fixedLine>
11338         <!-- 1534 with 10 digits. -->
11339         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
11340         <exampleNumber>1534456789</exampleNumber>
11341       </fixedLine>
11342       <mobile>
11343         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
11344         <nationalNumberPattern>
11345           7(?:
11346             509|
11347             7(?:
11348               00|
11349               97
11350             )|
11351             829|
11352             937
11353           )\d{6}
11354         </nationalNumberPattern>
11355         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11356         <exampleNumber>7797123456</exampleNumber>
11357       </mobile>
11358       <pager>
11359         <!-- Pager numbers as per GB. -->
11360         <nationalNumberPattern>
11361           76(?:
11362             0[012]|
11363             2[356]|
11364             4[0134]|
11365             5[49]|
11366             6[0-369]|
11367             77|
11368             81|
11369             9[39]
11370           )\d{6}
11371         </nationalNumberPattern>
11372         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11373         <exampleNumber>7640123456</exampleNumber>
11374       </pager>
11375       <!-- Specific to JE. -->
11376       <tollFree>
11377         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
11378         <nationalNumberPattern>
11379           80(?:
11380             07(?:
11381               35|
11382               81
11383             )|
11384             8901
11385           )\d{4}
11386         </nationalNumberPattern>
11387         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11388         <exampleNumber>8007354567</exampleNumber>
11389       </tollFree>
11390       <premiumRate>
11391         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
11392         <nationalNumberPattern>
11393           (?:
11394             871206|
11395             90(?:
11396               066[59]|
11397               1810|
11398               71(?:
11399                 07|
11400                 55
11401               )
11402             )
11403           )\d{4}
11404         </nationalNumberPattern>
11405         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11406         <exampleNumber>9018105678</exampleNumber>
11407       </premiumRate>
11408       <sharedCost>
11409         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
11410         <nationalNumberPattern>
11411           8(?:
11412             4(?:
11413               4(?:
11414                 4(?:
11415                   05|
11416                   42|
11417                   69
11418                 )|
11419                 703
11420               )|
11421               5(?:
11422                 041|
11423                 800
11424               )
11425             )|
11426             70002
11427           )\d{4}
11428         </nationalNumberPattern>
11429         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11430         <exampleNumber>8447034567</exampleNumber>
11431       </sharedCost>
11432       <personalNumber>
11433         <!-- 70 1511 with 10 digits. -->
11434         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
11435         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11436         <exampleNumber>7015115678</exampleNumber>
11437       </personalNumber>
11438       <voip>
11439         <!-- VoIP numbers as per GB. -->
11440         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
11441         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11442         <exampleNumber>5612345678</exampleNumber>
11443       </voip>
11444       <uan>
11445         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
11446              370 002, 371 206, 55 with 10 digits. -->
11447         <nationalNumberPattern>
11448           3(?:
11449             0(?:
11450               07(?:
11451                 35|
11452                 81
11453               )|
11454               8901
11455             )|
11456             3\d{4}|
11457             4(?:
11458               4(?:
11459                 4(?:
11460                   05|
11461                   42|
11462                   69
11463                 )|
11464                 703
11465               )|
11466               5(?:
11467                 041|
11468                 800
11469               )
11470             )|
11471             7(?:
11472               0002|
11473               1206
11474             )
11475           )\d{4}|
11476           55\d{8}
11477         </nationalNumberPattern>
11478         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11479         <exampleNumber>5512345678</exampleNumber>
11480       </uan>
11481     </territory>
11482
11483     <!-- Jamaica -->
11484     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
11485                internationalPrefix="011">
11486       <references>
11487         <sourceUrl>http://www.itu.int/oth/T020200006C/en</sourceUrl>
11488       </references>
11489       <generalDesc>
11490         <!-- NANPA country - uses US formatting rules -->
11491         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
11492         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
11493       </generalDesc>
11494       <fixedLine>
11495         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
11496         <nationalNumberPattern>
11497           876(?:
11498             5(?:
11499               0[12]|
11500               1[0-468]|
11501               2[35]|
11502               63
11503             )|
11504             6(?:
11505               0[1-3579]|
11506               1[027-9]|
11507               [23]\d|
11508               40|
11509               5[06]|
11510               6[2-589]|
11511               7[05]|
11512               8[04]|
11513               9[4-9]
11514             )|
11515             7(?:
11516               0[2-689]|
11517               [1-6]\d|
11518               8[056]|
11519               9[45]
11520             )|
11521             9(?:
11522               0[1-8]|
11523               1[02378]|
11524               [2-8]\d|
11525               9[2-468]
11526             )
11527           )\d{4}
11528         </nationalNumberPattern>
11529         <exampleNumber>8765123456</exampleNumber>
11530       </fixedLine>
11531       <mobile>
11532         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
11533              be valid by sending SMSs and looking at online number lookup sites.
11534
11535              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
11536              Most have mobile numbers online so we have put them under mobile but is possible
11537              they are a mixture of fixed line and mobile. -->
11538         <nationalNumberPattern>
11539           876(?:
11540             2[1789]\d|
11541             [348]\d{2}|
11542             5(?:
11543               08|
11544               27|
11545               6[0-24-9]|
11546               [3-578]\d
11547             )|
11548             7(?:
11549               0[07]|
11550               7\d|
11551               8[1-47-9]|
11552               9[0-36-9]
11553             )|
11554             9(?:
11555               [01]9|
11556               9[0579]
11557             )
11558           )\d{4}
11559         </nationalNumberPattern>
11560         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11561         <exampleNumber>8762101234</exampleNumber>
11562       </mobile>
11563       <tollFree>
11564         <nationalNumberPattern>
11565           8(?:
11566             00|
11567             44|
11568             55|
11569             66|
11570             77|
11571             88
11572           )[2-9]\d{6}
11573         </nationalNumberPattern>
11574         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11575         <exampleNumber>8002123456</exampleNumber>
11576       </tollFree>
11577       <premiumRate>
11578         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
11579         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11580         <exampleNumber>9002123456</exampleNumber>
11581       </premiumRate>
11582       <personalNumber>
11583         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
11584         <nationalNumberPattern>
11585           5(?:
11586             00|
11587             33|
11588             44|
11589             66|
11590             77
11591           )[2-9]\d{6}
11592         </nationalNumberPattern>
11593         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11594         <exampleNumber>5002345678</exampleNumber>
11595       </personalNumber>
11596     </territory>
11597
11598     <!-- Jordan -->
11599     <territory id="JO" countryCode="962" internationalPrefix="00"
11600                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
11601                mobileNumberPortableRegion="true">
11602       <references>
11603         <sourceUrl>http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english</sourceUrl>
11604         <sourceUrl>http://www.itu.int/oth/T020200006E/en</sourceUrl>
11605         <sourceUrl>http://en.wikipedia.org/wiki/%2B962</sourceUrl>
11606       </references>
11607       <availableFormats>
11608         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
11609           pattern="(\d)(\d{3})(\d{4})">
11610           <leadingDigits>
11611             [2356]|
11612             87
11613           </leadingDigits>
11614           <format>$1 $2 $3</format>
11615         </numberFormat>
11616         <numberFormat pattern="(7)(\d{4})(\d{4})">
11617           <leadingDigits>7[457-9]</leadingDigits>
11618           <format>$1 $2 $3</format>
11619         </numberFormat>
11620         <numberFormat pattern="(\d{3})(\d{5,6})">
11621           <leadingDigits>
11622             70|
11623             8[0158]|
11624             9
11625           </leadingDigits>
11626           <format>$1 $2</format>
11627         </numberFormat>
11628       </availableFormats>
11629       <generalDesc>
11630         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
11631         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11632       </generalDesc>
11633       <fixedLine>
11634         <nationalNumberPattern>
11635           (?:
11636             2(?:
11637               6(?:
11638                 2[0-35-9]|
11639                 3[0-57-8]|
11640                 4[24-7]|
11641                 5[0-24-8]|
11642                 [6-8][02]|
11643                 9[0-2]
11644               )|
11645               7(?:
11646                 0[1-79]|
11647                 10|
11648                 2[014-7]|
11649                 3[0-689]|
11650                 4[019]|
11651                 5[0-3578]
11652               )
11653             )|
11654             32(?:
11655               0[1-69]|
11656               1[1-35-7]|
11657               2[024-7]|
11658               3\d|
11659               4[0-2]|
11660               [57][02]|
11661               60
11662             )|
11663             53(?:
11664               0[0-2]|
11665               [13][02]|
11666               2[0-59]|
11667               49|
11668               5[0-35-9]|
11669               6[15]|
11670               7[45]|
11671               8[1-6]|
11672               9[0-36-9]
11673             )|
11674             6(?:
11675               2[50]0|
11676               300|
11677               4(?:
11678                 0[0125]|
11679                 1[2-7]|
11680                 2[0569]|
11681                 [38][07-9]|
11682                 4[025689]|
11683                 6[0-589]|
11684                 7\d|
11685                 9[0-2]
11686               )|
11687               5(?:
11688                 [01][056]|
11689                 2[034]|
11690                 3[0-57-9]|
11691                 4[17-8]|
11692                 5[0-69]|
11693                 6[0-35-9]|
11694                 7[1-379]|
11695                 8[0-68]|
11696                 9[02-39]
11697               )
11698             )|
11699             87(?:
11700               [02]0|
11701               7[08]|
11702               9[09]
11703             )
11704           )\d{4}
11705         </nationalNumberPattern>
11706         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
11707         <exampleNumber>62001234</exampleNumber>
11708       </fixedLine>
11709       <mobile>
11710         <nationalNumberPattern>
11711           7(?:
11712             55|
11713             7[25-9]|
11714             8[05-9]|
11715             9[015-9]
11716           )\d{6}
11717         </nationalNumberPattern>
11718         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11719         <exampleNumber>790123456</exampleNumber>
11720       </mobile>
11721       <pager>
11722         <nationalNumberPattern>
11723           74(?:
11724             66|
11725             77
11726           )\d{5}
11727         </nationalNumberPattern>
11728         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11729         <exampleNumber>746612345</exampleNumber>
11730       </pager>
11731       <tollFree>
11732         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
11733         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11734         <exampleNumber>80012345</exampleNumber>
11735       </tollFree>
11736       <premiumRate>
11737         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
11738         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11739         <exampleNumber>90012345</exampleNumber>
11740       </premiumRate>
11741       <sharedCost>
11742         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
11743         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11744         <exampleNumber>85012345</exampleNumber>
11745       </sharedCost>
11746       <personalNumber>
11747         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
11748         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11749         <exampleNumber>700123456</exampleNumber>
11750       </personalNumber>
11751       <uan>
11752         <!-- These numbers are Location Independent Services / Fixed cost according to
11753              http://www.trc.gov.jo -->
11754         <nationalNumberPattern>
11755           8(?:
11756             10|
11757             8\d
11758           )\d{5}
11759         </nationalNumberPattern>
11760         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11761         <exampleNumber>88101234</exampleNumber>
11762       </uan>
11763     </territory>
11764
11765     <!-- Japan -->
11766     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
11767                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true"
11768                mobileNumberPortableRegion="true">
11769       <references>
11770         <sourceUrl>http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html</sourceUrl>
11771         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=JP</sourceUrl>
11772       </references>
11773       <availableFormats>
11774         <!-- Toll-free, premium-rate and UAN numbers -->
11775         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
11776           <leadingDigits>
11777             (?:
11778               12|
11779               57|
11780               99
11781             )0
11782           </leadingDigits>
11783           <format>$1-$2-$3</format>
11784         </numberFormat>
11785         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
11786           <leadingDigits>800</leadingDigits>
11787           <format>$1-$2-$3</format>
11788         </numberFormat>
11789         <!-- National-only toll-free numbers (0037, 0066, 0077 and 0088). -->
11790         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
11791           <leadingDigits>0077</leadingDigits>
11792           <format>$1-$2</format>
11793           <intlFormat>NA</intlFormat>
11794         </numberFormat>
11795         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{3,4})">
11796           <leadingDigits>0077</leadingDigits>
11797           <format>$1-$2-$3</format>
11798           <intlFormat>NA</intlFormat>
11799         </numberFormat>
11800         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{4})">
11801           <leadingDigits>0088</leadingDigits>
11802           <format>$1-$2-$3</format>
11803           <intlFormat>NA</intlFormat>
11804         </numberFormat>
11805         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3,4})">
11806           <leadingDigits>
11807             00(?:
11808                37|
11809                66
11810             )
11811           </leadingDigits>
11812           <format>$1-$2-$3</format>
11813           <intlFormat>NA</intlFormat>
11814         </numberFormat>
11815         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})(\d{4,5})">
11816           <leadingDigits>
11817             00(?:
11818                37|
11819                66
11820             )
11821           </leadingDigits>
11822           <format>$1-$2-$3</format>
11823           <intlFormat>NA</intlFormat>
11824         </numberFormat>
11825         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{5})(\d{5,6})">
11826           <leadingDigits>
11827             00(?:
11828                37|
11829                66
11830             )
11831           </leadingDigits>
11832           <format>$1-$2-$3</format>
11833           <intlFormat>NA</intlFormat>
11834         </numberFormat>
11835         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{6})(\d{6,7})">
11836           <leadingDigits>
11837             00(?:
11838                37|
11839                66
11840             )
11841           </leadingDigits>
11842           <format>$1-$2-$3</format>
11843           <intlFormat>NA</intlFormat>
11844         </numberFormat>
11845         <!-- Some leading digits are explicitly reserved for a particular purpose.
11846              We handle them first in this rule, and let the following rules ignore those exceptions.
11847              Note: The rule here is not in the files we rely on when creating the other rules.
11848                    We would need to manually modify it if the Japanese goverment
11849                    decided to change the rule.
11850
11851              (prefix): purpose
11852              "20": Pagers
11853              "50": IP phone
11854              "70": PHS (Personal Handy-phone System, which has been used in Japan
11855                    with Non-3G, Japanese-specific protocol).
11856                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
11857              "80" and "90": Mobile phone
11858           -->
11859         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
11860           <leadingDigits>
11861             [2579]0|
11862             80[1-9]
11863           </leadingDigits>
11864           <format>$1-$2-$3</format>
11865         </numberFormat>
11866         <!-- The order of the reg-exps are important.
11867              Examples (not all):
11868              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
11869              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
11870              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
11871              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
11872              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
11873              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
11874           -->
11875         <numberFormat pattern="(\d{4})(\d)(\d{4})">
11876           <leadingDigits>
11877             1(?:
11878               26|
11879               3[79]|
11880               4[56]|
11881               5[4-68]|
11882               6[3-5]
11883             )|
11884             5(?:
11885               76|
11886               97
11887             )|
11888             499|
11889             746|
11890             8(?:
11891               3[89]|
11892               63|
11893               47|
11894               51
11895             )|
11896             9(?:
11897               49|
11898               80|
11899               9[16]
11900             )
11901           </leadingDigits>
11902           <leadingDigits>
11903             1(?:
11904               267|
11905               3(?:
11906                 7[247]|
11907                 9[278]
11908               )|
11909               4(?:
11910                 5[67]|
11911                 66
11912               )|
11913               5(?:
11914                 47|
11915                 58|
11916                 64|
11917                 8[67]
11918               )|
11919               6(?:
11920                 3[245]|
11921                 48|
11922                 5[4-68]
11923               )
11924             )|
11925             5(?:
11926               76|
11927               97
11928             )9|
11929             499[2468]|
11930             7468|
11931             8(?:
11932               3(?:
11933                 8[78]|
11934                 96
11935               )|
11936               636|
11937               477|
11938               51[24]
11939             )|
11940             9(?:
11941               496|
11942               802|
11943               9(?:
11944                 1[23]|
11945                 69
11946               )
11947             )
11948           </leadingDigits>
11949           <leadingDigits>
11950             1(?:
11951               267|
11952               3(?:
11953                 7[247]|
11954                 9[278]
11955               )|
11956               4(?:
11957                 5[67]|
11958                 66
11959               )|
11960               5(?:
11961                 47|
11962                 58|
11963                 64|
11964                 8[67]
11965               )|
11966               6(?:
11967                 3[245]|
11968                 48|
11969                 5[4-68]
11970               )
11971             )|
11972             5(?:
11973               769|
11974               979[2-69]
11975             )|
11976             499[2468]|
11977             7468|
11978             8(?:
11979               3(?:
11980                 8[78]|
11981                 96[2457-9]
11982               )|
11983               636[2-57-9]|
11984               477|
11985               51[24]
11986             )|
11987             9(?:
11988               496|
11989               802|
11990               9(?:
11991                 1[23]|
11992                 69
11993               )
11994             )
11995           </leadingDigits>
11996           <format>$1-$2-$3</format>
11997         </numberFormat>
11998         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
11999           <leadingDigits>
12000             1(?:
12001               2[3-6]|
12002               3[3-9]|
12003               4[2-6]|
12004               5[2-8]|
12005               [68][2-7]|
12006               7[2-689]|
12007               9[1-578]
12008             )|
12009             2(?:
12010               2[03-689]|
12011               3[3-58]|
12012               4[0-468]|
12013               5[04-8]|
12014               6[013-8]|
12015               7[06-9]|
12016               8[02-57-9]|
12017               9[13]
12018             )|
12019             4(?:
12020               2[28]|
12021               3[689]|
12022               6[035-7]|
12023               7[05689]|
12024               80|
12025               9[3-5]
12026             )|
12027             5(?:
12028               3[1-36-9]|
12029               4[4578]|
12030               5[013-8]|
12031               6[1-9]|
12032               7[2-8]|
12033               8[14-7]|
12034               9[4-9]
12035             )|
12036             7(?:
12037               2[15]|
12038               3[5-9]|
12039               4[02-9]|
12040               6[135-8]|
12041               7[0-4689]|
12042               9[014-9]
12043             )|
12044             8(?:
12045               2[49]|
12046               3[3-8]|
12047               4[5-8]|
12048               5[2-9]|
12049               6[35-9]|
12050               7[579]|
12051               8[03-579]|
12052               9[2-8]
12053             )|
12054             9(?:
12055               [23]0|
12056               4[02-46-9]|
12057               5[024-79]|
12058               6[4-9]|
12059               7[2-47-9]|
12060               8[02-7]|
12061               9[3-7]
12062             )
12063           </leadingDigits>
12064           <leadingDigits>
12065             1(?:
12066               2[3-6]|
12067               3[3-9]|
12068               4[2-6]|
12069               5(?:
12070                 [236-8]|
12071                 [45][2-69]
12072               )|
12073               [68][2-7]|
12074               7[2-689]|
12075               9[1-578]
12076             )|
12077             2(?:
12078               2(?:
12079                 [04-689]|
12080                 3[23]
12081               )|
12082               3[3-58]|
12083               4[0-468]|
12084               5(?:
12085                 5[78]|
12086                 7[2-4]|
12087                 [0468][2-9]
12088               )|
12089               6(?:
12090                 [0135-8]|
12091                 4[2-5]
12092               )|
12093               7(?:
12094                 [0679]|
12095                 8[2-7]
12096               )|
12097               8(?:
12098                 [024578]|
12099                 3[25-9]|
12100                 9[6-9]
12101               )|
12102               9(?:
12103                 11|
12104                 3[2-4]
12105               )
12106             )|
12107             4(?:
12108               2(?:
12109                 2[2-9]|
12110                 8[237-9]
12111               )|
12112               3[689]|
12113               6[035-7]|
12114               7(?:
12115                 [059][2-8]|
12116                 [68]
12117               )|
12118               80|
12119               9[3-5]
12120             )|
12121             5(?:
12122               3[1-36-9]|
12123               4[4578]|
12124               5[013-8]|
12125               6[1-9]|
12126               7[2-8]|
12127               8[14-7]|
12128               9(?:
12129                 [89][2-8]|
12130                 [4-7]
12131               )
12132             )|
12133             7(?:
12134               2[15]|
12135               3[5-9]|
12136               4[02-9]|
12137               6[135-8]|
12138               7[0-4689]|
12139               9(?:
12140                 [017-9]|
12141                 4[6-8]|
12142                 5[2-478]|
12143                 6[2-589]
12144               )
12145             )|
12146             8(?:
12147               2(?:
12148                 4[4-8]|
12149                 9[2-8]
12150               )|
12151               3(?:
12152                 7[2-6]|
12153                 [3-6][2-9]|
12154                 8[2-5]
12155               )|
12156               4[5-8]|
12157               5[2-9]|
12158               6(?:
12159                 [37]|
12160                 5[4-7]|
12161                 6[2-9]|
12162                 8[2-8]|
12163                 9[236-9]
12164               )|
12165               7[579]|
12166               8[03-579]|
12167               9[2-8]
12168             )|
12169             9(?:
12170               [23]0|
12171               4[02-46-9]|
12172               5[024-79]|
12173               6[4-9]|
12174               7[2-47-9]|
12175               8[02-7]|
12176               9(?:
12177                 3[34]|
12178                 [4-7]
12179               )
12180             )
12181           </leadingDigits>
12182           <leadingDigits>
12183             1(?:
12184               2[3-6]|
12185               3[3-9]|
12186               4[2-6]|
12187               5(?:
12188                 [236-8]|
12189                 [45][2-69]
12190               )|
12191               [68][2-7]|
12192               7[2-689]|
12193               9[1-578]
12194             )|
12195             2(?:
12196               2(?:
12197                 [04-689]|
12198                 3[23]
12199               )|
12200               3[3-58]|
12201               4[0-468]|
12202               5(?:
12203                 5[78]|
12204                 7[2-4]|
12205                 [0468][2-9]
12206               )|
12207               6(?:
12208                 [0135-8]|
12209                 4[2-5]
12210               )|
12211               7(?:
12212                 [0679]|
12213                 8[2-7]
12214               )|
12215               8(?:
12216                 [024578]|
12217                 3[25-9]|
12218                 9[6-9]
12219               )|
12220               9(?:
12221                 11|
12222                 3[2-4]
12223               )
12224             )|
12225             4(?:
12226               2(?:
12227                 2[2-9]|
12228                 8[237-9]
12229               )|
12230               3[689]|
12231               6[035-7]|
12232               7(?:
12233                 [059][2-8]|
12234                 [68]
12235               )|
12236               80|
12237               9[3-5]
12238             )|
12239             5(?:
12240               3[1-36-9]|
12241               4[4578]|
12242               5[013-8]|
12243               6[1-9]|
12244               7[2-8]|
12245               8[14-7]|
12246               9(?:
12247                 [89][2-8]|
12248                 [4-7]
12249               )
12250             )|
12251             7(?:
12252               2[15]|
12253               3[5-9]|
12254               4[02-9]|
12255               6[135-8]|
12256               7[0-4689]|
12257               9(?:
12258                 [017-9]|
12259                 4[6-8]|
12260                 5[2-478]|
12261                 6[2-589]
12262               )
12263             )|
12264             8(?:
12265               2(?:
12266                 4[4-8]|
12267                 9(?:
12268                   [3578]|
12269                   20|
12270                   4[04-9]|
12271                   6[56]
12272                 )
12273               )|
12274               3(?:
12275                 7(?:
12276                   [2-5]|
12277                   6[0-59]
12278                 )|
12279                 [3-6][2-9]|
12280                 8[2-5]
12281               )|
12282               4[5-8]|
12283               5[2-9]|
12284               6(?:
12285                 [37]|
12286                 5(?:
12287                   [467]|
12288                   5[014-9]
12289                 )|
12290                 6(?:
12291                   [2-8]|
12292                   9[02-69]
12293                 )|
12294                 8[2-8]|
12295                 9(?:
12296                   [236-8]|
12297                   9[23]
12298                 )
12299               )|
12300               7[579]|
12301               8[03-579]|
12302               9[2-8]
12303             )|
12304             9(?:
12305               [23]0|
12306               4[02-46-9]|
12307               5[024-79]|
12308               6[4-9]|
12309               7[2-47-9]|
12310               8[02-7]|
12311               9(?:
12312                 3(?:
12313                   3[02-9]|
12314                   4[0-24689]
12315                 )|
12316                 4[2-69]|
12317                 [5-7]
12318               )
12319             )
12320           </leadingDigits>
12321           <leadingDigits>
12322             1(?:
12323               2[3-6]|
12324               3[3-9]|
12325               4[2-6]|
12326               5(?:
12327                 [236-8]|
12328                 [45][2-69]
12329               )|
12330               [68][2-7]|
12331               7[2-689]|
12332               9[1-578]
12333             )|
12334             2(?:
12335               2(?:
12336                 [04-689]|
12337                 3[23]
12338               )|
12339               3[3-58]|
12340               4[0-468]|
12341               5(?:
12342                 5[78]|
12343                 7[2-4]|
12344                 [0468][2-9]
12345               )|
12346               6(?:
12347                 [0135-8]|
12348                 4[2-5]
12349               )|
12350               7(?:
12351                 [0679]|
12352                 8[2-7]
12353               )|
12354               8(?:
12355                 [024578]|
12356                 3[25-9]|
12357                 9[6-9]
12358               )|
12359               9(?:
12360                 11|
12361                 3[2-4]
12362               )
12363             )|
12364             4(?:
12365               2(?:
12366                 2[2-9]|
12367                 8[237-9]
12368               )|
12369               3[689]|
12370               6[035-7]|
12371               7(?:
12372                 [059][2-8]|
12373                 [68]
12374               )|
12375               80|
12376               9[3-5]
12377             )|
12378             5(?:
12379               3[1-36-9]|
12380               4[4578]|
12381               5[013-8]|
12382               6[1-9]|
12383               7[2-8]|
12384               8[14-7]|
12385               9(?:
12386                 [89][2-8]|
12387                 [4-7]
12388               )
12389             )|
12390             7(?:
12391               2[15]|
12392               3[5-9]|
12393               4[02-9]|
12394               6[135-8]|
12395               7[0-4689]|
12396               9(?:
12397                 [017-9]|
12398                 4[6-8]|
12399                 5[2-478]|
12400                 6[2-589]
12401               )
12402             )|
12403             8(?:
12404               2(?:
12405                 4[4-8]|
12406                 9(?:
12407                   [3578]|
12408                   20|
12409                   4[04-9]|
12410                   6(?:
12411                     5[25]|
12412                     60
12413                   )
12414                 )
12415               )|
12416               3(?:
12417                 7(?:
12418                   [2-5]|
12419                   6[0-59]
12420                 )|
12421                 [3-6][2-9]|
12422                 8[2-5]
12423               )|
12424               4[5-8]|
12425               5[2-9]|
12426               6(?:
12427                 [37]|
12428                 5(?:
12429                   [467]|
12430                   5[014-9]
12431                 )|
12432                 6(?:
12433                   [2-8]|
12434                   9[02-69]
12435                 )|
12436                 8[2-8]|
12437                 9(?:
12438                   [236-8]|
12439                   9[23]
12440                 )
12441               )|
12442               7[579]|
12443               8[03-579]|
12444               9[2-8]
12445             )|
12446             9(?:
12447               [23]0|
12448               4[02-46-9]|
12449               5[024-79]|
12450               6[4-9]|
12451               7[2-47-9]|
12452               8[02-7]|
12453               9(?:
12454                 3(?:
12455                   3[02-9]|
12456                   4[0-24689]
12457                 )|
12458                 4[2-69]|
12459                 [5-7]
12460               )
12461             )
12462           </leadingDigits>
12463           <format>$1-$2-$3</format>
12464         </numberFormat>
12465         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12466           <leadingDigits>
12467             1|
12468             2(?:
12469               2[37]|
12470               5[5-9]|
12471               64|
12472               78|
12473               8[39]|
12474               91
12475             )|
12476             4(?:
12477               2[2689]|
12478               64|
12479               7[347]
12480             )|
12481             5(?:
12482               [2-589]|
12483               39
12484             )|
12485             60|
12486             8(?:
12487               [46-9]|
12488               3[279]|
12489               2[124589]
12490             )|
12491             9(?:
12492               [235-8]|
12493               93
12494             )
12495           </leadingDigits>
12496           <leadingDigits>
12497             1|
12498             2(?:
12499               2[37]|
12500               5(?:
12501                 [57]|
12502                 [68]0|
12503                 9[19]
12504               )|
12505               64|
12506               78|
12507               8[39]|
12508               917
12509             )|
12510             4(?:
12511               2(?:
12512                 [68]|
12513                 20|
12514                 9[178]
12515               )|
12516               64|
12517               7[347]
12518             )|
12519             5(?:
12520               [2-589]|
12521               39[67]
12522             )|
12523             60|
12524             8(?:
12525               [46-9]|
12526               3[279]|
12527               2[124589]
12528             )|
12529             9(?:
12530               [235-8]|
12531               93[34]
12532             )
12533           </leadingDigits>
12534           <leadingDigits>
12535             1|
12536             2(?:
12537               2[37]|
12538               5(?:
12539                 [57]|
12540                 [68]0|
12541                 9(?:
12542                   17|
12543                   99
12544                 )
12545               )|
12546               64|
12547               78|
12548               8[39]|
12549               917
12550             )|
12551             4(?:
12552               2(?:
12553                 [68]|
12554                 20|
12555                 9[178]
12556               )|
12557               64|
12558               7[347]
12559             )|
12560             5(?:
12561               [2-589]|
12562               39[67]
12563             )|
12564             60|
12565             8(?:
12566               [46-9]|
12567               3[279]|
12568               2[124589]
12569             )|
12570             9(?:
12571               [235-8]|
12572               93(?:
12573                 31|
12574                 4
12575               )
12576             )
12577           </leadingDigits>
12578           <format>$1-$2-$3</format>
12579         </numberFormat>
12580         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12581           <leadingDigits>
12582             2(?:
12583               9[14-79]|
12584               74|
12585               [34]7|
12586               [56]9
12587             )|
12588             82|
12589             993
12590           </leadingDigits>
12591           <format>$1-$2-$3</format>
12592         </numberFormat>
12593         <numberFormat pattern="(\d)(\d{4})(\d{4})">
12594           <leadingDigits>
12595             3|
12596             4(?:
12597               2[09]|
12598               7[01]
12599             )|
12600             6[1-9]
12601           </leadingDigits>
12602           <format>$1-$2-$3</format>
12603         </numberFormat>
12604         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12605           <leadingDigits>[2479][1-9]</leadingDigits>
12606           <format>$1-$2-$3</format>
12607         </numberFormat>
12608       </availableFormats>
12609       <generalDesc>
12610         <nationalNumberPattern>
12611           [1-9]\d{8,9}|
12612           00(?:
12613              [36]\d{7,14}|
12614              7\d{5,7}|
12615              8\d{7}
12616           )
12617         </nationalNumberPattern>
12618         <possibleNumberPattern>\d{8,17}</possibleNumberPattern>
12619       </generalDesc>
12620       <noInternationalDialling>
12621         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
12622         <nationalNumberPattern>
12623           00(?:
12624              37\d{6,13}|
12625              66\d{6,13}|
12626              777(?:
12627                [01]\d{2}|
12628                5\d{3}|
12629                8\d{4}
12630              )|
12631              882[1245]\d{4}
12632           )
12633         </nationalNumberPattern>
12634         <exampleNumber>00777012</exampleNumber>
12635       </noInternationalDialling>
12636       <fixedLine>
12637         <nationalNumberPattern>
12638           (?:
12639             1(?:
12640               1[235-8]|
12641               2[3-6]|
12642               3[3-9]|
12643               4[2-6]|
12644               [58][2-8]|
12645               6[2-7]|
12646               7[2-9]|
12647               9[1-9]
12648             )|
12649             2[2-9]\d|
12650             [36][1-9]\d|
12651             4(?:
12652               6[02-8]|
12653               [2-578]\d|
12654               9[2-59]
12655             )|
12656             5(?:
12657               6[1-9]|
12658               7[2-8]|
12659               [2-589]\d
12660             )|
12661             7(?:
12662               3[4-9]|
12663               4[02-9]|
12664               [25-9]\d
12665             )|
12666             8(?:
12667               3[2-9]|
12668               4[5-9]|
12669               5[1-9]|
12670               8[03-9]|
12671               [2679]\d
12672             )|
12673             9(?:
12674               [679][1-9]|
12675               [2-58]\d
12676             )
12677           )\d{6}
12678         </nationalNumberPattern>
12679         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12680         <exampleNumber>312345678</exampleNumber>
12681       </fixedLine>
12682       <mobile>
12683         <nationalNumberPattern>[7-9]0[1-9]\d{7}</nationalNumberPattern>
12684         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12685         <exampleNumber>7012345678</exampleNumber>
12686       </mobile>
12687       <pager>
12688         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
12689         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12690         <exampleNumber>2012345678</exampleNumber>
12691       </pager>
12692       <tollFree>
12693         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
12694              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
12695              http://eonet.jp/home/denwa/service/access.html
12696              http://ci.fusioncom.co.jp/feature/
12697              http://www.auhikari.jp/service/tel/connection/index.html -->
12698         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
12699              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
12700              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
12701              for now (including both leading 00s). -->
12702         <nationalNumberPattern>
12703           120\d{6}|
12704           800\d{7}|
12705           00(?:
12706              37\d{6,13}|
12707              66\d{6,13}|
12708              777(?:
12709                [01]\d{2}|
12710                5\d{3}|
12711                8\d{4}
12712              )|
12713              882[1245]\d{4}
12714           )
12715         </nationalNumberPattern>
12716         <exampleNumber>120123456</exampleNumber>
12717       </tollFree>
12718       <premiumRate>
12719         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
12720         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12721         <exampleNumber>990123456</exampleNumber>
12722       </premiumRate>
12723       <personalNumber>
12724         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
12725         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12726         <exampleNumber>601234567</exampleNumber>
12727       </personalNumber>
12728       <voip>
12729         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
12730         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12731         <exampleNumber>5012345678</exampleNumber>
12732       </voip>
12733       <!-- Storing "unified number service" as UAN. -->
12734       <uan>
12735         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
12736         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12737         <exampleNumber>570123456</exampleNumber>
12738       </uan>
12739     </territory>
12740
12741     <!-- Kenya -->
12742     <territory id="KE" countryCode="254" internationalPrefix="000"
12743                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
12744                mobileNumberPortableRegion="true">
12745       <references>
12746         <sourceUrl>http://www.cck.go.ke/licensing/numbering/plan.html</sourceUrl>
12747         <sourceUrl>http://en.wikipedia.org/wiki/+254</sourceUrl>
12748       </references>
12749       <availableFormats>
12750         <numberFormat pattern="(\d{2})(\d{5,7})">
12751           <leadingDigits>[24-6]</leadingDigits>
12752           <format>$1 $2</format>
12753         </numberFormat>
12754         <numberFormat pattern="(\d{3})(\d{6,7})">
12755           <leadingDigits>7</leadingDigits>
12756           <format>$1 $2</format>
12757         </numberFormat>
12758         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12759           <leadingDigits>[89]</leadingDigits>
12760           <format>$1 $2 $3</format>
12761         </numberFormat>
12762       </availableFormats>
12763       <generalDesc>
12764         <nationalNumberPattern>
12765           20\d{6,7}|
12766           [4-9]\d{6,9}
12767         </nationalNumberPattern>
12768         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
12769       </generalDesc>
12770       <fixedLine>
12771         <!-- The prefixes 046, 050, 058, and 066 may appear online in less than 9 digits but
12772              calling them has confirmed these are outdated. However a 7-digit 068 number was
12773              dialed successfully so we consider these valid despite the plan. -->
12774         <nationalNumberPattern>
12775           20\d{6,7}|
12776           4(?:
12777             [0136]\d{7}|
12778             [245]\d{5,7}
12779           )|
12780           5(?:
12781             [08]\d{7}|
12782             [1-79]\d{5,7}
12783           )|
12784           6(?:
12785             [01457-9]\d{5,7}|
12786             [26]\d{7}
12787           )
12788         </nationalNumberPattern>
12789         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
12790         <exampleNumber>202012345</exampleNumber>
12791       </fixedLine>
12792       <mobile>
12793         <nationalNumberPattern>
12794           7(?:
12795             [0-36]\d|
12796             5[0-6]|
12797             7[0-5]|
12798             8[0-25-9]
12799           )\d{6}
12800         </nationalNumberPattern>
12801         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12802         <exampleNumber>712123456</exampleNumber>
12803       </mobile>
12804       <tollFree>
12805         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
12806         <!-- The plan suggests 0844 and 0845 may belong here, but these are short numbers rather
12807              than prefixes:
12808              http://www.telkomkenya.8k.com/Products/v/2.html
12809              http://www.kenya-advisor.com/phone-calls-kenya.html
12810              http://www.telkom.co.ke/index.php?option=com_content&view=article&id=64&Itemid=98 -->
12811         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
12812         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12813         <exampleNumber>800223456</exampleNumber>
12814       </tollFree>
12815       <premiumRate>
12816         <nationalNumberPattern>900[02-9]\d{5}</nationalNumberPattern>
12817         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12818         <exampleNumber>900223456</exampleNumber>
12819       </premiumRate>
12820     </territory>
12821
12822     <!-- Kyrgyzstan -->
12823     <territory id="KG" countryCode="996" internationalPrefix="00"
12824                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
12825       <references>
12826         <sourceUrl>http://www.itu.int/oth/T0202000074/en</sourceUrl>
12827       </references>
12828       <availableFormats>
12829         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
12830           <leadingDigits>
12831             [25-7]|
12832             31[25]
12833           </leadingDigits>
12834           <format>$1 $2 $3</format>
12835         </numberFormat>
12836         <numberFormat pattern="(\d{4})(\d{5})">
12837           <leadingDigits>
12838             3(?:
12839               1[36]|
12840               [2-9]
12841             )
12842           </leadingDigits>
12843           <format>$1 $2</format>
12844         </numberFormat>
12845         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
12846           <leadingDigits>8</leadingDigits>
12847           <format>$1 $2 $3 $4</format>
12848         </numberFormat>
12849       </availableFormats>
12850       <generalDesc>
12851         <nationalNumberPattern>[235-8]\d{8,9}</nationalNumberPattern>
12852         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12853       </generalDesc>
12854       <fixedLine>
12855         <!-- Extra area codes found on Web Search: 3147. -->
12856         <nationalNumberPattern>
12857           (?:
12858             3(?:
12859               1(?:
12860                 [256]\d|
12861                 3[1-9]|
12862                 47
12863               )|
12864               2(?:
12865                 22|
12866                 3[0-479]|
12867                 6[0-7]
12868               )|
12869               4(?:
12870                 22|
12871                 5[6-9]|
12872                 6\d
12873               )|
12874               5(?:
12875                 22|
12876                 3[4-7]|
12877                 59|
12878                 6\d
12879               )|
12880               6(?:
12881                 22|
12882                 5[35-7]|
12883                 6\d
12884               )|
12885               7(?:
12886                 22|
12887                 3[468]|
12888                 4[1-9]|
12889                 59|
12890                 [67]\d
12891               )|
12892               9(?:
12893                 22|
12894                 4[1-8]|
12895                 6\d
12896               )
12897             )|
12898             6(?:
12899               09|
12900               12|
12901               2[2-4]
12902             )\d
12903           )\d{5}
12904         </nationalNumberPattern>
12905         <exampleNumber>312123456</exampleNumber>
12906       </fixedLine>
12907       <mobile>
12908         <nationalNumberPattern>
12909           (?:
12910             20[0-35]|
12911             5[124-7]\d|
12912             7[07]\d
12913           )\d{6}
12914         </nationalNumberPattern>
12915         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12916         <exampleNumber>700123456</exampleNumber>
12917       </mobile>
12918       <tollFree>
12919         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
12920              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
12921         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
12922         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12923         <exampleNumber>800123456</exampleNumber>
12924       </tollFree>
12925       <!-- No premiumRate information can be found. -->
12926       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
12927     </territory>
12928
12929     <!-- Cambodia -->
12930     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
12931                nationalPrefix="0">
12932       <references>
12933         <sourceUrl>http://www.itu.int/oth/T0202000023/en</sourceUrl>
12934         <sourceUrl>http://en.wikipedia.org/wiki/+855</sourceUrl>
12935       </references>
12936       <availableFormats>
12937         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
12938           <leadingDigits>
12939             1\d[1-9]|
12940             [2-9]
12941           </leadingDigits>
12942           <format>$1 $2 $3</format>
12943         </numberFormat>
12944         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
12945           <leadingDigits>1[89]0</leadingDigits>
12946           <format>$1 $2 $3</format>
12947         </numberFormat>
12948       </availableFormats>
12949       <generalDesc>
12950         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
12951         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
12952       </generalDesc>
12953       <fixedLine>
12954         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
12955              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
12956              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
12957              range beginning with 6 seems to include some numbers that are one digit longer as well.
12958              Allowing 238\d{6} and 234[234]\d{4} based on information from Cambodia Yellow Pages.
12959              Note that numbers beginning with 234 are split across two patterns. -->
12960         <nationalNumberPattern>
12961           (?:
12962             2[3-6]|
12963             3[2-6]|
12964             4[2-4]|
12965             [5-7][2-5]
12966           )(?:
12967             [237-9]|
12968             4[56]|
12969             5\d|
12970             6\d?
12971           )\d{5}|
12972           23(?:
12973             4[234]|
12974             8\d{2}
12975           )\d{4}
12976         </nationalNumberPattern>
12977         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
12978         <exampleNumber>23756789</exampleNumber>
12979       </fixedLine>
12980       <mobile>
12981         <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
12982              Beeline uses 060.
12983              Mobitel uses 01[1247].
12984              Cellcard uses 0857 and 061.
12985              Extra prefixes found online: 088, 097.
12986              Allowing 9-digit 12, 31, 38 and 76 numbers based on information from Cambodia Yellow
12987              Pages and online search. -->
12988         <nationalNumberPattern>
12989           (?:
12990             1(?:
12991               [013-9]|
12992               2\d?
12993             )|
12994             3[18]\d|
12995             6[016-9]|
12996             7(?:
12997               [07-9]|
12998               6\d
12999             )|
13000             8(?:
13001               [013-79]|
13002               8\d
13003             )|
13004             9(?:
13005               6\d|
13006               7\d?|
13007               [0-589]
13008             )
13009           )\d{6}
13010         </nationalNumberPattern>
13011         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
13012         <exampleNumber>91234567</exampleNumber>
13013       </mobile>
13014       <tollFree>
13015         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
13016         <nationalNumberPattern>
13017           1800(?:
13018             1\d|
13019             2[019]
13020           )\d{4}
13021         </nationalNumberPattern>
13022         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13023         <exampleNumber>1800123456</exampleNumber>
13024       </tollFree>
13025       <premiumRate>
13026         <nationalNumberPattern>
13027           1900(?:
13028             1\d|
13029             2[09]
13030           )\d{4}
13031         </nationalNumberPattern>
13032         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13033         <exampleNumber>1900123456</exampleNumber>
13034       </premiumRate>
13035     </territory>
13036
13037     <!-- Kiribati -->
13038     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
13039          leading 0 - no numbers online have been found formatted this way, but the ITU document
13040          lists it as a national dialling prefix. -->
13041     <territory id="KI" countryCode="686" internationalPrefix="00"
13042                nationalPrefixForParsing="0">
13043       <references>
13044         <sourceUrl>http://www.itu.int/oth/T0202000071/en</sourceUrl>
13045       </references>
13046       <!-- Numbers should be formatted as a block." -->
13047       <generalDesc>
13048         <nationalNumberPattern>
13049           [2458]\d{4}|
13050           3\d{4,7}|
13051           7\d{7}
13052         </nationalNumberPattern>
13053         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
13054       </generalDesc>
13055       <fixedLine>
13056         <nationalNumberPattern>
13057           (?:
13058             [24]\d|
13059             3[1-9]|
13060             50|
13061             8[0-5]
13062           )\d{3}
13063         </nationalNumberPattern>
13064         <possibleNumberPattern>\d{5}</possibleNumberPattern>
13065         <exampleNumber>31234</exampleNumber>
13066       </fixedLine>
13067       <mobile>
13068         <!-- North Tarawa is listed as 720XXXXX-729XXXXX but considering that this deviates from the
13069              pattern followed by every other place, we are assuming 731XXXXX-732XXXXX for now. -->
13070         <nationalNumberPattern>
13071           7(?:
13072             [24]\d|
13073             3[1-9]|
13074             8[0-5]
13075           )\d{5}
13076         </nationalNumberPattern>
13077         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13078         <exampleNumber>72012345</exampleNumber>
13079       </mobile>
13080       <premiumRate>
13081         <!-- ITU refers to these as "Telemedia and audiotext". -->
13082         <nationalNumberPattern>3001\d{4}</nationalNumberPattern>
13083         <exampleNumber>30010000</exampleNumber>
13084       </premiumRate>
13085     </territory>
13086
13087     <!-- Comoros -->
13088     <territory id="KM" countryCode="269" internationalPrefix="00">
13089       <references>
13090         <sourceUrl>http://www.itu.int/oth/T020200002D/en</sourceUrl>
13091       </references>
13092       <availableFormats>
13093         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
13094           <format>$1 $2 $3</format>
13095         </numberFormat>
13096       </availableFormats>
13097       <generalDesc>
13098         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
13099         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13100       </generalDesc>
13101       <fixedLine>
13102         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
13103              http://www.comorestelecom.km/presentationcdma.php -->
13104         <nationalNumberPattern>
13105           7(?:
13106             6[0-37-9]|
13107             7[0-57-9]
13108           )\d{4}
13109         </nationalNumberPattern>
13110         <exampleNumber>7712345</exampleNumber>
13111       </fixedLine>
13112       <mobile>
13113         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
13114         <exampleNumber>3212345</exampleNumber>
13115       </mobile>
13116       <premiumRate>
13117         <!-- These are referred to as value-added services in the plan and no further information
13118              can be found. -->
13119         <nationalNumberPattern>
13120           (?:
13121             39[01]|
13122             9[01]0
13123           )\d{4}
13124         </nationalNumberPattern>
13125         <exampleNumber>9001234</exampleNumber>
13126       </premiumRate>
13127     </territory>
13128
13129     <!-- Saint Kitts and Nevis -->
13130     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
13131                internationalPrefix="011">
13132       <references>
13133         <sourceUrl>http://www.itu.int/oth/T02020000B0/en</sourceUrl>
13134       </references>
13135       <generalDesc>
13136         <!-- NANPA country - uses US formatting rules -->
13137         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
13138         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13139       </generalDesc>
13140       <fixedLine>
13141         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
13142              of it can be found. -->
13143         <nationalNumberPattern>
13144           869(?:
13145             2(?:
13146               29|
13147               36
13148             )|
13149             302|
13150             4(?:
13151               6[015-9]|
13152               70
13153             )
13154           )\d{4}
13155         </nationalNumberPattern>
13156         <exampleNumber>8692361234</exampleNumber>
13157       </fixedLine>
13158       <mobile>
13159         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
13160         <nationalNumberPattern>
13161           869(?:
13162             5(?:
13163               5[6-8]|
13164               6[5-7]
13165             )|
13166             66\d|
13167             76[02-6]
13168           )\d{4}
13169         </nationalNumberPattern>
13170         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13171         <!-- Example number from the ITU document. -->
13172         <exampleNumber>8697652917</exampleNumber>
13173       </mobile>
13174       <tollFree>
13175         <nationalNumberPattern>
13176           8(?:
13177             00|
13178             44|
13179             55|
13180             66|
13181             77|
13182             88
13183           )[2-9]\d{6}
13184         </nationalNumberPattern>
13185         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13186         <exampleNumber>8002123456</exampleNumber>
13187       </tollFree>
13188       <premiumRate>
13189         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
13190         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13191         <exampleNumber>9002123456</exampleNumber>
13192       </premiumRate>
13193       <personalNumber>
13194         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13195         <nationalNumberPattern>
13196           5(?:
13197             00|
13198             33|
13199             44|
13200             66|
13201             77
13202           )[2-9]\d{6}
13203         </nationalNumberPattern>
13204         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13205         <exampleNumber>5002345678</exampleNumber>
13206       </personalNumber>
13207     </territory>
13208
13209     <!-- Korea, Dem. People's Rep. of -->
13210     <territory id="KP" countryCode="850" internationalPrefix="00|99"
13211                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13212       <references>
13213         <sourceUrl>http://en.wikipedia.org/wiki/%2B850</sourceUrl>
13214       </references>
13215       <availableFormats>
13216         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13217           <leadingDigits>1</leadingDigits>
13218           <format>$1 $2 $3</format>
13219         </numberFormat>
13220         <numberFormat pattern="(\d)(\d{3})(\d{4})">
13221           <leadingDigits>2</leadingDigits>
13222           <format>$1 $2 $3</format>
13223         </numberFormat>
13224         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
13225           <leadingDigits>8</leadingDigits>
13226           <format>$1 $2 $3</format>
13227         </numberFormat>
13228       </availableFormats>
13229       <generalDesc>
13230         <nationalNumberPattern>
13231           1\d{9}|
13232           [28]\d{7}
13233         </nationalNumberPattern>
13234         <possibleNumberPattern>
13235           \d{6,8}|
13236           \d{10}
13237         </possibleNumberPattern>
13238       </generalDesc>
13239       <noInternationalDialling>
13240         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
13241         <nationalNumberPattern>
13242           2(?:
13243             [0-24-9]\d{2}|
13244             3(?:
13245               [0-79]\d|
13246               8[02-9]
13247             )
13248           )\d{4}
13249         </nationalNumberPattern>
13250         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13251         <exampleNumber>23821234</exampleNumber>
13252       </noInternationalDialling>
13253       <fixedLine>
13254         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
13255              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
13256              from overseas. Also, there is conflicting information about the length of fixed-line
13257              numbers, so here we are following Wikipedia. -->
13258         <nationalNumberPattern>
13259           2\d{7}|
13260           85\d{6}
13261         </nationalNumberPattern>
13262         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
13263         <exampleNumber>21234567</exampleNumber>
13264       </fixedLine>
13265       <mobile>
13266         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
13267         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13268         <exampleNumber>1921234567</exampleNumber>
13269       </mobile>
13270     </territory>
13271
13272     <!-- Korea (Rep. of) -->
13273     <!-- Exceptions :
13274         internationalPrefix
13275             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
13276         nationalPrefix
13277             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
13278     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
13279                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
13280                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG"
13281                mobileNumberPortableRegion="true">
13282       <references>
13283         <sourceUrl>http://www.itu.int/oth/T0202000072/en</sourceUrl>
13284         <sourceUrl>http://en.wikipedia.org/wiki/%2B82</sourceUrl>
13285         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2349</sourceUrl>
13286         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2240</sourceUrl>
13287         <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>
13288       </references>
13289       <availableFormats>
13290         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
13291           <leadingDigits>
13292             1(?:
13293               0|
13294               1[19]|
13295               [69]9|
13296               5[458]
13297             )|
13298             [57]0
13299           </leadingDigits>
13300           <leadingDigits>
13301             1(?:
13302               0|
13303               1[19]|
13304               [69]9|
13305               5(?:
13306                 44|
13307                 59|
13308                 8
13309               )
13310             )|
13311             [57]0
13312           </leadingDigits>
13313           <format>$1-$2-$3</format>
13314         </numberFormat>
13315         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
13316           <leadingDigits>
13317             1(?:
13318               [169][2-8]|
13319               [78]|
13320               5[1-4]
13321             )|
13322             [68]0|
13323             [3-6][1-9][1-9]
13324           </leadingDigits>
13325           <leadingDigits>
13326             1(?:
13327               [169][2-8]|
13328               [78]|
13329               5(?:
13330                 [1-3]|
13331                 4[56]
13332               )
13333             )|
13334             [68]0|
13335             [3-6][1-9][1-9]
13336           </leadingDigits>
13337           <format>$1-$2-$3</format>
13338         </numberFormat>
13339         <numberFormat pattern="(\d{3})(\d)(\d{4})">
13340           <leadingDigits>131</leadingDigits>
13341           <leadingDigits>1312</leadingDigits>
13342           <format>$1-$2-$3</format>
13343         </numberFormat>
13344         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
13345           <leadingDigits>131</leadingDigits>
13346           <leadingDigits>131[13-9]</leadingDigits>
13347           <format>$1-$2-$3</format>
13348         </numberFormat>
13349         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13350           <leadingDigits>13[2-9]</leadingDigits>
13351           <format>$1-$2-$3</format>
13352         </numberFormat>
13353         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
13354              limit of what digits may follow the 030, but we ignore that here. These numbers are
13355              actually not supported for validation purposes by the library at the moment as no
13356              online examples can be found, but we leave theme here so formatting continues to work
13357              if they are entered. -->
13358         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
13359           <leadingDigits>30</leadingDigits>
13360           <format>$1-$2-$3-$4</format>
13361         </numberFormat>
13362         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
13363           <leadingDigits>2[1-9]</leadingDigits>
13364           <format>$1-$2-$3</format>
13365         </numberFormat>
13366         <numberFormat pattern="(\d)(\d{3,4})">
13367           <leadingDigits>21[0-46-9]</leadingDigits>
13368           <format>$1-$2</format>
13369         </numberFormat>
13370         <numberFormat pattern="(\d{2})(\d{3,4})">
13371           <leadingDigits>[3-6][1-9]1</leadingDigits>
13372           <leadingDigits>
13373             [3-6][1-9]1(?:
13374               [0-46-9]
13375             )
13376           </leadingDigits>
13377           <format>$1-$2</format>
13378         </numberFormat>
13379         <!-- Company numbers. -->
13380         <numberFormat pattern="(\d{4})(\d{4})"
13381           nationalPrefixFormattingRule="$FG">
13382           <leadingDigits>
13383             1(?:
13384               5[46-9]|
13385               6[04678]
13386             )
13387           </leadingDigits>
13388           <leadingDigits>
13389             1(?:
13390               5(?:
13391                 44|
13392                 66|
13393                 77|
13394                 88|
13395                 99
13396               )|
13397               6(?:
13398                 00|
13399                 44|
13400                 6[16]|
13401                 70|
13402                 88
13403               )
13404             )
13405           </leadingDigits>
13406           <format>$1-$2</format>
13407         </numberFormat>
13408       </availableFormats>
13409       <generalDesc>
13410         <nationalNumberPattern>
13411           [1-7]\d{3,9}|
13412           8\d{8}
13413         </nationalNumberPattern>
13414         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13415       </generalDesc>
13416       <fixedLine>
13417         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
13418              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
13419              starting with 1 based on evidence of real numbers found online. -->
13420         <nationalNumberPattern>
13421           (?:
13422             2|
13423             3[1-3]|
13424             [46][1-4]|
13425             5[1-5]
13426           )(?:
13427             1\d{2,3}|
13428             [1-9]\d{6,7}
13429           )
13430         </nationalNumberPattern>
13431         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13432         <exampleNumber>22123456</exampleNumber>
13433       </fixedLine>
13434       <mobile>
13435         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
13436         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13437         <exampleNumber>1023456789</exampleNumber>
13438       </mobile>
13439       <pager>
13440         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
13441         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13442         <exampleNumber>1523456789</exampleNumber>
13443       </pager>
13444       <tollFree>
13445         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
13446         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13447         <exampleNumber>801234567</exampleNumber>
13448       </tollFree>
13449       <!-- The information below is provided by a Korean person. -->
13450       <premiumRate>
13451         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
13452         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13453         <exampleNumber>602345678</exampleNumber>
13454       </premiumRate>
13455       <personalNumber>
13456         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
13457         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13458         <exampleNumber>5012345678</exampleNumber>
13459       </personalNumber>
13460       <voip>
13461         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
13462         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13463         <exampleNumber>7012345678</exampleNumber>
13464       </voip>
13465       <uan>
13466         <nationalNumberPattern>
13467           1(?:
13468             5(?:
13469               44|
13470               66|
13471               77|
13472               88|
13473               99
13474             )|
13475             6(?:
13476               00|
13477               44|
13478               6[16]|
13479               70|
13480               88
13481             )
13482           )\d{4}
13483         </nationalNumberPattern>
13484         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13485         <exampleNumber>15441234</exampleNumber>
13486       </uan>
13487     </territory>
13488
13489     <!-- Kuwait -->
13490     <territory id="KW" countryCode="965" internationalPrefix="00" mobileNumberPortableRegion="true">
13491       <references>
13492         <sourceUrl>http://www.itu.int/oth/T0202000073/en</sourceUrl>
13493       </references>
13494       <availableFormats>
13495         <!-- Format is from ITU. -->
13496         <numberFormat pattern="(\d{4})(\d{3,4})">
13497           <leadingDigits>[1269]</leadingDigits>
13498           <format>$1 $2</format>
13499         </numberFormat>
13500         <numberFormat pattern="(5[015]\d)(\d{5})">
13501           <leadingDigits>5</leadingDigits>
13502           <format>$1 $2</format>
13503         </numberFormat>
13504       </availableFormats>
13505       <generalDesc>
13506         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
13507         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13508       </generalDesc>
13509       <fixedLine>
13510         <nationalNumberPattern>
13511           (?:
13512             18\d|
13513             2(?:
13514               [23]\d{2}|
13515               4(?:
13516                 [1-35-9]\d|
13517                 44
13518               )|
13519               5(?:
13520                 0[034]|
13521                 [2-46]\d|
13522                 5[1-3]|
13523                 7[1-7]
13524               )
13525             )
13526           )\d{4}
13527         </nationalNumberPattern>
13528         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13529         <exampleNumber>22345678</exampleNumber>
13530       </fixedLine>
13531       <mobile>
13532         <nationalNumberPattern>
13533           (?:
13534             5(?:
13535               [05]\d|
13536               1[0-6]
13537             )|
13538             6(?:
13539               0[034679]|
13540               5[015-9]|
13541               6\d|
13542               7[067]|
13543               9[0369]
13544             )|
13545             9(?:
13546               0[09]|
13547               4[049]|
13548               55|
13549               6[069]|
13550               [79]\d|
13551               8[089]
13552             )
13553           )\d{5}
13554         </nationalNumberPattern>
13555         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13556         <exampleNumber>50012345</exampleNumber>
13557       </mobile>
13558       <!-- No tollFree or premiumRate information can be found. -->
13559     </territory>
13560
13561     <!-- Cayman Islands -->
13562     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
13563                internationalPrefix="011">
13564       <references>
13565         <sourceUrl>http://www.itu.int/oth/T0202000027/en</sourceUrl>
13566       </references>
13567       <generalDesc>
13568         <!-- NANPA country - uses US formatting rules -->
13569         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
13570         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13571       </generalDesc>
13572       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
13573            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
13574       <fixedLine>
13575         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
13576              as per numbers found online and their website http://www.logic.ky. -->
13577         <nationalNumberPattern>
13578           345(?:
13579             2(?:
13580               22|
13581               44
13582             )|
13583             444|
13584             6(?:
13585               23|
13586               38|
13587               40
13588             )|
13589             7(?:
13590               4[35-79]|
13591               6[6-9]|
13592               77
13593             )|
13594             8(?:
13595               00|
13596               1[45]|
13597               25|
13598               [48]8
13599             )|
13600             9(?:
13601               14|
13602               4[035-9]
13603             )
13604           )\d{4}
13605         </nationalNumberPattern>
13606         <exampleNumber>3452221234</exampleNumber>
13607       </fixedLine>
13608       <mobile>
13609         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
13610              Most central office codes that were surrendered have not been included, with the
13611              exception of 546 where numbers have been found. -->
13612         <nationalNumberPattern>
13613           345(?:
13614             32[1-9]|
13615             5(?:
13616               1[67]|
13617               2[5-7]|
13618               4[6-8]|
13619               76
13620             )|
13621             9(?:
13622               1[67]|
13623               2[3-9]|
13624               3[689]
13625             )
13626           )\d{4}
13627         </nationalNumberPattern>
13628         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13629         <exampleNumber>3453231234</exampleNumber>
13630       </mobile>
13631       <pager>
13632         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
13633         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13634         <exampleNumber>3458491234</exampleNumber>
13635       </pager>
13636       <tollFree>
13637         <nationalNumberPattern>
13638           8(?:
13639             00|
13640             44|
13641             55|
13642             66|
13643             77|
13644             88
13645           )[2-9]\d{6}
13646         </nationalNumberPattern>
13647         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13648         <exampleNumber>8002345678</exampleNumber>
13649       </tollFree>
13650       <premiumRate>
13651         <nationalNumberPattern>
13652           900[2-9]\d{6}|
13653           345976\d{4}
13654         </nationalNumberPattern>
13655         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13656         <exampleNumber>9002345678</exampleNumber>
13657       </premiumRate>
13658       <personalNumber>
13659         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13660         <nationalNumberPattern>
13661           5(?:
13662             00|
13663             33|
13664             44|
13665             66|
13666             77
13667           )[2-9]\d{6}
13668         </nationalNumberPattern>
13669         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13670         <exampleNumber>5002345678</exampleNumber>
13671       </personalNumber>
13672     </territory>
13673
13674     <!-- Kazakhstan -->
13675     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
13676                internationalPrefix="810" nationalPrefix="8">
13677       <references>
13678         <sourceUrl>http://www.itu.int/oth/T020200006F/en</sourceUrl>
13679       </references>
13680        <!-- Formatting rules obtained from Russia. -->
13681       <generalDesc>
13682         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
13683              determining the country is faster. -->
13684         <nationalNumberPattern>
13685           (?:
13686             33\d|
13687             7\d{2}|
13688             80[09]
13689           )\d{7}
13690         </nationalNumberPattern>
13691         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13692       </generalDesc>
13693       <noInternationalDialling>
13694         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13695         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13696         <exampleNumber>7511234567</exampleNumber>
13697       </noInternationalDialling>
13698       <fixedLine>
13699         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
13700              22), which is within Kazakhstan but in fact rented and administered by Russia at the
13701              moment. -->
13702         <nationalNumberPattern>
13703           33622\d{5}|
13704           7(?:
13705             1(?:
13706               0(?:
13707                 [23]\d|
13708                 4[023]|
13709                 59|
13710                 63
13711               )|
13712               1(?:
13713                 [23]\d|
13714                 4[0-79]|
13715                 59
13716               )|
13717               2(?:
13718                 [23]\d|
13719                 59
13720               )|
13721               3(?:
13722                 2\d|
13723                 3[1-79]|
13724                 4[0-35-9]|
13725                 59
13726               )|
13727               4(?:
13728                 2\d|
13729                 3[013-79]|
13730                 4[0-8]|
13731                 5[1-79]
13732               )|
13733               5(?:
13734                 2\d|
13735                 3[1-8]|
13736                 4[1-7]|
13737                 59
13738               )|
13739               6(?:
13740                 [234]\d|
13741                 5[19]|
13742                 61
13743               )|
13744               72\d|
13745               8(?:
13746                 [27]\d|
13747                 3[1-46-9]|
13748                 4[0-5]
13749               )
13750             )|
13751             2(?:
13752               1(?:
13753                 [23]\d|
13754                 4[46-9]|
13755                 5[3469]
13756               )|
13757               2(?:
13758                 2\d|
13759                 3[0679]|
13760                 46|
13761                 5[12679]
13762               )|
13763               3(?:
13764                 [234]\d|
13765                 5[139]
13766               )|
13767               4(?:
13768                 2\d|
13769                 3[1235-9]|
13770                 59
13771               )|
13772               5(?:
13773                 [23]\d|
13774                 4[01246-8]|
13775                 59|
13776                 61
13777               )|
13778               6(?:
13779                 2\d|
13780                 3[1-9]|
13781                 4[0-4]|
13782                 59
13783               )|
13784               7(?:
13785                 [237]\d|
13786                 40|
13787                 5[279]
13788               )|
13789               8(?:
13790                 [23]\d|
13791                 4[0-3]|
13792                 59
13793               )|
13794               9(?:
13795                 2\d|
13796                 3[124578]|
13797                 59
13798               )
13799             )
13800           )\d{5}
13801         </nationalNumberPattern>
13802         <exampleNumber>7123456789</exampleNumber>
13803       </fixedLine>
13804       <mobile>
13805         <!-- Added 776, apparently assigned to Beeline, and 747 for Tele2. -->
13806         <nationalNumberPattern>
13807           7(?:
13808             0[01257]|
13809             47|
13810             6[02-4]|
13811             7[15-8]|
13812             85
13813           )\d{7}
13814         </nationalNumberPattern>
13815         <exampleNumber>7710009998</exampleNumber>
13816       </mobile>
13817       <tollFree>
13818         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
13819         <exampleNumber>8001234567</exampleNumber>
13820       </tollFree>
13821       <premiumRate>
13822         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
13823         <exampleNumber>8091234567</exampleNumber>
13824       </premiumRate>
13825       <voip>
13826         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13827         <exampleNumber>7511234567</exampleNumber>
13828       </voip>
13829     </territory>
13830
13831     <!-- Lao People's Dem. Rep. -->
13832     <territory id="LA" countryCode="856" internationalPrefix="00"
13833                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13834       <references>
13835         <!-- Seems incomplete -->
13836         <sourceUrl>http://www.itu.int/oth/T0202000075/en</sourceUrl>
13837         <sourceUrl>http://en.wikipedia.org/wiki/+856</sourceUrl>
13838       </references>
13839       <availableFormats>
13840         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
13841           <leadingDigits>20</leadingDigits>
13842           <format>$1 $2 $3 $4</format>
13843         </numberFormat>
13844         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
13845           <leadingDigits>
13846             2[13]|
13847             3[14]|
13848             [4-8]
13849           </leadingDigits>
13850           <format>$1 $2 $3</format>
13851         </numberFormat>
13852         <numberFormat pattern="(30)(\d{2})(\d{2})(\d{3})">
13853           <leadingDigits>30</leadingDigits>
13854           <format>$1 $2 $3 $4</format>
13855         </numberFormat>
13856       </availableFormats>
13857       <generalDesc>
13858         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
13859         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13860       </generalDesc>
13861       <fixedLine>
13862         <!-- The Lonely Planet says that newer WIN phones (fixed phones without a physical landline)
13863              start with 030 (and are longer). There are plenty of examples online. -->
13864         <nationalNumberPattern>
13865           (?:
13866             2[13]|
13867             3(?:
13868               0\d|
13869               [14]
13870             )|
13871             [5-7][14]|
13872             41|
13873             8[1468]
13874           )\d{6}
13875         </nationalNumberPattern>
13876         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13877         <exampleNumber>21212862</exampleNumber>
13878       </fixedLine>
13879       <mobile>
13880         <!-- Adding 202[89], 205[89], 207[68] and 209[57] from numbers found online. -->
13881         <nationalNumberPattern>
13882           20(?:
13883             2[2389]|
13884             5[4-689]|
13885             7[6-8]|
13886             9[57-9]
13887           )\d{6}
13888         </nationalNumberPattern>
13889         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13890         <exampleNumber>2023123456</exampleNumber>
13891       </mobile>
13892       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
13893     </territory>
13894
13895     <!-- Lebanon -->
13896     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
13897       <references>
13898         <sourceUrl>http://www.itu.int/oth/T0202000077/en</sourceUrl>
13899         <sourceUrl>http://en.wikipedia.org/wiki/%2B961</sourceUrl>
13900       </references>
13901       <availableFormats>
13902         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
13903           <leadingDigits>
13904             [13-6]|
13905             7(?:
13906               [2-579]|
13907               62|
13908               8[0-7]
13909             )|
13910             [89][2-9]
13911             </leadingDigits>
13912           <format>$1 $2 $3</format>
13913         </numberFormat>
13914         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
13915           <leadingDigits>
13916             [89][01]|
13917             7(?:
13918               [019]|
13919               6[013-9]|
13920               8[89]
13921             )
13922           </leadingDigits>
13923           <format>$1 $2 $3</format>
13924         </numberFormat>
13925       </availableFormats>
13926       <generalDesc>
13927         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
13928         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13929       </generalDesc>
13930       <fixedLine>
13931         <!-- The ITU document from October 2012 seems to have accidentally dropped the 79 prefix for
13932              fixed-line numbers, which had been in the version from July 2012. We consider these
13933              valid since we successfully dialed such a number in July 2014. -->
13934         <nationalNumberPattern>
13935           (?:
13936             [14-6]\d{2}|
13937             7(?:
13938               [2-579]\d|
13939               62|
13940               8[0-7]
13941             )|
13942             [89][2-9]\d
13943           )\d{4}
13944         </nationalNumberPattern>
13945         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13946         <exampleNumber>1123456</exampleNumber>
13947       </fixedLine>
13948       <mobile>
13949         <!-- We only validate the first three digits here, since the ranges are growing rapidly.
13950              The 79[02-9] prefixes were added from bug reports and numbers found online. -->
13951         <nationalNumberPattern>
13952           (?:
13953             3\d|
13954             7(?:
13955               [019]\d|
13956               6[013-9]|
13957               8[89]
13958             )
13959           )\d{5}
13960         </nationalNumberPattern>
13961         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13962         <exampleNumber>71123456</exampleNumber>
13963       </mobile>
13964       <premiumRate>
13965         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
13966         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13967         <exampleNumber>90123456</exampleNumber>
13968       </premiumRate>
13969       <sharedCost>
13970         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
13971         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13972         <exampleNumber>80123456</exampleNumber>
13973       </sharedCost>
13974     </territory>
13975
13976     <!-- Saint Lucia -->
13977     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
13978                internationalPrefix="011">
13979       <references>
13980         <sourceUrl>http://www.itu.int/oth/T02020000B1/en</sourceUrl>
13981       </references>
13982       <generalDesc>
13983         <!-- NANPA country - uses US formatting rules -->
13984         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
13985         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13986       </generalDesc>
13987       <fixedLine>
13988         <!-- Adding 430 since numbers have been found with these prefixes online. -->
13989         <nationalNumberPattern>
13990           758(?:
13991             4(?:
13992               30|
13993               5[0-9]|
13994               6[2-9]|
13995               8[0-2]
13996             )|
13997             57[0-2]|
13998             638
13999           )\d{4}
14000         </nationalNumberPattern>
14001         <exampleNumber>7584305678</exampleNumber>
14002       </fixedLine>
14003       <mobile>
14004         <nationalNumberPattern>
14005           758(?:
14006             28[4-7]|
14007             384|
14008             4(?:
14009               6[01]|
14010               8[4-9]
14011             )|
14012             5(?:
14013               1[89]|
14014               20|
14015               84
14016             )|
14017             7(?:
14018               1[2-9]|
14019               2[0-8]
14020             )
14021           )\d{4}
14022         </nationalNumberPattern>
14023         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14024         <exampleNumber>7582845678</exampleNumber>
14025       </mobile>
14026       <tollFree>
14027         <nationalNumberPattern>
14028           8(?:
14029             00|
14030             44|
14031             55|
14032             66|
14033             77|
14034             88
14035           )[2-9]\d{6}
14036         </nationalNumberPattern>
14037         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14038         <exampleNumber>8002123456</exampleNumber>
14039       </tollFree>
14040       <premiumRate>
14041         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
14042         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14043         <exampleNumber>9002123456</exampleNumber>
14044       </premiumRate>
14045       <personalNumber>
14046         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
14047         <nationalNumberPattern>
14048           5(?:
14049             00|
14050             33|
14051             44|
14052             66|
14053             77
14054           )[2-9]\d{6}
14055         </nationalNumberPattern>
14056         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14057         <exampleNumber>5002345678</exampleNumber>
14058       </personalNumber>
14059     </territory>
14060
14061     <!-- Liechtenstein -->
14062     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
14063     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
14064       <references>
14065         <sourceUrl>http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm</sourceUrl>
14066       </references>
14067       <availableFormats>
14068         <!-- Some different patterns for tollfree and shared cost numbers may be found by searching
14069              for "Mehrwertnummer" at http://www.telecom.li. -->
14070         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
14071           <leadingDigits>
14072             [23]|
14073             7[3-57-9]|
14074             87
14075           </leadingDigits>
14076           <format>$1 $2 $3</format>
14077         </numberFormat>
14078         <numberFormat pattern="(6\d)(\d{3})(\d{3})">
14079           <leadingDigits>6</leadingDigits>
14080           <format>$1 $2 $3</format>
14081         </numberFormat>
14082         <numberFormat pattern="(6[567]\d)(\d{3})(\d{3})">
14083           <leadingDigits>6[567]</leadingDigits>
14084           <format>$1 $2 $3</format>
14085         </numberFormat>
14086         <numberFormat pattern="(69)(7\d{2})(\d{4})">
14087           <leadingDigits>697</leadingDigits>
14088           <format>$1 $2 $3</format>
14089         </numberFormat>
14090         <numberFormat pattern="([7-9]0\d)(\d{2})(\d{2})">
14091           <leadingDigits>[7-9]0</leadingDigits>
14092           <format>$1 $2 $3</format>
14093         </numberFormat>
14094         <!-- Numbers of the form [89]00\d{6} are Swiss numbers callable from Liechtenstein. -->
14095         <numberFormat pattern="([89]0\d)(\d{2})(\d{2})(\d{2})"
14096           nationalPrefixFormattingRule="$NP$FG">
14097           <leadingDigits>[89]0</leadingDigits>
14098           <format>$1 $2 $3 $4</format>
14099         </numberFormat>
14100       </availableFormats>
14101       <generalDesc>
14102         <nationalNumberPattern>
14103           6\d{8}|
14104           [23789]\d{6}
14105         </nationalNumberPattern>
14106         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14107       </generalDesc>
14108       <fixedLine>
14109         <nationalNumberPattern>
14110           (?:
14111             2(?:
14112               01|
14113               1[27]|
14114               3\d|
14115               6[02-578]|
14116               96
14117             )|
14118             3(?:
14119               7[0135-7]|
14120               8[048]|
14121               9[0269]
14122             )
14123           )\d{4}
14124         </nationalNumberPattern>
14125         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14126         <exampleNumber>2345678</exampleNumber>
14127       </fixedLine>
14128       <mobile>
14129         <nationalNumberPattern>
14130           6(?:
14131             51[01]|
14132             6(?:
14133               [01][0-4]|
14134               2[016-9]|
14135               88
14136             )|
14137             710
14138           )\d{5}|
14139           7(?:
14140             36|
14141             4[25]|
14142             56|
14143             [7-9]\d
14144           )\d{4}
14145         </nationalNumberPattern>
14146         <exampleNumber>661234567</exampleNumber>
14147       </mobile>
14148       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
14149            even though it doesn't appear in the plan. -->
14150       <tollFree>
14151         <nationalNumberPattern>
14152           80(?:
14153             0(?:
14154               2[238]|
14155               79
14156             )|
14157             9\d{2}
14158           )\d{2}
14159         </nationalNumberPattern>
14160         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14161         <exampleNumber>8002222</exampleNumber>
14162       </tollFree>
14163       <premiumRate>
14164         <nationalNumberPattern>
14165           90(?:
14166             0(?:
14167               2[278]|
14168               79
14169             )|
14170             1(?:
14171               23|
14172               3[012]
14173             )|
14174             6(?:
14175               4\d|
14176               6[0126]
14177             )
14178           )\d{2}
14179         </nationalNumberPattern>
14180         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14181         <exampleNumber>9002222</exampleNumber>
14182       </premiumRate>
14183       <uan>
14184         <nationalNumberPattern>
14185           87(?:
14186             0[128]|
14187             7[0-4]
14188           )\d{3}
14189         </nationalNumberPattern>
14190         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14191         <exampleNumber>8770123</exampleNumber>
14192       </uan>
14193       <voicemail>
14194         <nationalNumberPattern>
14195           697(?:
14196             [35]6|
14197             4[25]|
14198             [7-9]\d
14199           )\d{4}
14200         </nationalNumberPattern>
14201         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14202         <exampleNumber>697361234</exampleNumber>
14203       </voicemail>
14204       <personalNumber>
14205         <nationalNumberPattern>701\d{4}</nationalNumberPattern>
14206         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14207         <exampleNumber>7011234</exampleNumber>
14208       </personalNumber>
14209     </territory>
14210
14211     <!-- Sri Lanka -->
14212     <territory id="LK" countryCode="94" internationalPrefix="00"
14213                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14214       <references>
14215         <sourceUrl>http://en.wikipedia.org/wiki/%2B94</sourceUrl>
14216         <sourceUrl>http://www.itu.int/oth/T02020000C3/en</sourceUrl>
14217       </references>
14218       <availableFormats>
14219         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
14220           <leadingDigits>[1-689]</leadingDigits>
14221           <format>$1 $2 $3</format>
14222         </numberFormat>
14223         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14224           <leadingDigits>7</leadingDigits>
14225           <format>$1 $2 $3</format>
14226         </numberFormat>
14227       </availableFormats>
14228       <generalDesc>
14229         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
14230         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14231       </generalDesc>
14232       <fixedLine>
14233         <nationalNumberPattern>
14234           (?:
14235             [189]1|
14236             2[13-7]|
14237             3[1-8]|
14238             4[157]|
14239             5[12457]|
14240             6[35-7]
14241           )[2-57]\d{6}
14242         </nationalNumberPattern>
14243         <exampleNumber>112345678</exampleNumber>
14244       </fixedLine>
14245       <mobile>
14246         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
14247         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
14248         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14249         <exampleNumber>712345678</exampleNumber>
14250       </mobile>
14251     </territory>
14252
14253     <!-- Liberia -->
14254     <territory id="LR" countryCode="231" internationalPrefix="00"
14255                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14256       <references>
14257         <sourceUrl>http://www.itu.int/oth/T0202000079/en</sourceUrl>
14258       </references>
14259       <availableFormats>
14260         <!-- Formatting from Ministry of Agriculture,
14261         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
14262         <numberFormat pattern="(2\d)(\d{3})(\d{3})">
14263           <leadingDigits>2</leadingDigits>
14264           <format>$1 $2 $3</format>
14265         </numberFormat>
14266         <numberFormat pattern="([79]\d{2})(\d{3})(\d{3})">
14267           <leadingDigits>[79]</leadingDigits>
14268           <format>$1 $2 $3</format>
14269         </numberFormat>
14270         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
14271           <leadingDigits>[4-6]</leadingDigits>
14272           <format>$1 $2 $3</format>
14273         </numberFormat>
14274         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14275           <leadingDigits>[38]</leadingDigits>
14276           <format>$1 $2 $3</format>
14277         </numberFormat>
14278       </availableFormats>
14279       <generalDesc>
14280         <nationalNumberPattern>
14281           2\d{7}|
14282           [37-9]\d{8}|
14283           [45]\d{6}
14284         </nationalNumberPattern>
14285         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14286       </generalDesc>
14287       <fixedLine>
14288         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14289         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14290         <exampleNumber>21234567</exampleNumber>
14291       </fixedLine>
14292       <mobile>
14293         <!-- West Africa Telecom seems to be a mobile company from their website. Adding Atlantic
14294              Wireless from the document, even though from online news reports it is not clear they
14295              are still operating. -->
14296         <nationalNumberPattern>
14297           (?:
14298             330\d|
14299             4[67]|
14300             5\d|
14301             77\d{2}|
14302             88\d{2}|
14303             994\d
14304           )\d{5}
14305         </nationalNumberPattern>
14306         <exampleNumber>770123456</exampleNumber>
14307       </mobile>
14308       <premiumRate>
14309         <!-- Telelinks and Interactive media service are listed under premium rate. -->
14310         <nationalNumberPattern>90[03]\d{6}</nationalNumberPattern>
14311         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14312         <exampleNumber>900123456</exampleNumber>
14313       </premiumRate>
14314       <voip>
14315         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
14316              say they are involved in the VoIP sector. Adding WASSCOM and Atlantic Realty &
14317              Investment Corporation here as well; no numbers can be found online, nor company
14318              information. -->
14319         <nationalNumberPattern>
14320           332(?:
14321             0[02]|
14322             5\d
14323           )\d{4}
14324         </nationalNumberPattern>
14325         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14326         <exampleNumber>332001234</exampleNumber>
14327       </voip>
14328     </territory>
14329
14330     <!-- Lesotho -->
14331     <territory id="LS" countryCode="266" internationalPrefix="00">
14332       <references>
14333         <sourceUrl>http://www.itu.int/oth/T0202000078/en</sourceUrl>
14334       </references>
14335       <availableFormats>
14336         <!-- Formatting following yellow pages: http://www.yellowpages.co.ls -->
14337         <numberFormat pattern="(\d{4})(\d{4})">
14338           <format>$1 $2</format>
14339         </numberFormat>
14340       </availableFormats>
14341       <generalDesc>
14342         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
14343         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14344       </generalDesc>
14345       <fixedLine>
14346         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14347         <exampleNumber>22123456</exampleNumber>
14348       </fixedLine>
14349       <mobile>
14350         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
14351         <exampleNumber>50123456</exampleNumber>
14352       </mobile>
14353       <tollFree>
14354         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
14355         <exampleNumber>80021234</exampleNumber>
14356       </tollFree>
14357     </territory>
14358
14359     <!-- Lithuania -->
14360     <!-- Note that Lithuania is switching to a national prefix of 0. We support
14361          both 0 and 8 when parsing until this switch is complete. -->
14362     <territory id="LT" countryCode="370" internationalPrefix="00"
14363                nationalPrefix="8" nationalPrefixForParsing="[08]"
14364                nationalPrefixFormattingRule="($NP-$FG)"
14365                nationalPrefixOptionalWhenFormatting="true" mobileNumberPortableRegion="true">
14366       <references>
14367         <sourceUrl>http://www.itu.int/oth/T020200007C/en</sourceUrl>
14368       </references>
14369       <!-- National Prefix formatting rule from http://www.yellowpages.lt -->
14370       <availableFormats>
14371         <!-- Two-digit area codes -->
14372         <numberFormat pattern="([34]\d)(\d{6})">
14373           <leadingDigits>
14374             37|
14375             4(?:
14376               1|
14377               5[45]|
14378               6[2-4]
14379             )
14380           </leadingDigits>
14381           <format>$1 $2</format>
14382         </numberFormat>
14383         <!-- Three-digit area codes -->
14384         <numberFormat pattern="([3-6]\d{2})(\d{5})">
14385           <leadingDigits>
14386             3[148]|
14387             4(?:
14388               [24]|
14389               6[09]
14390             )|
14391             528|
14392             6
14393           </leadingDigits>
14394           <format>$1 $2</format>
14395         </numberFormat>
14396         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
14397           nationalPrefixFormattingRule="$NP $FG">
14398           <leadingDigits>[7-9]</leadingDigits>
14399           <format>$1 $2 $3</format>
14400         </numberFormat>
14401         <numberFormat pattern="(5)(2\d{2})(\d{4})">
14402           <leadingDigits>52[0-79]</leadingDigits>
14403           <format>$1 $2 $3</format>
14404         </numberFormat>
14405       </availableFormats>
14406       <generalDesc>
14407         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
14408         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14409       </generalDesc>
14410       <fixedLine>
14411         <nationalNumberPattern>
14412           (?:
14413             3[1478]|
14414             4[124-6]|
14415             52
14416           )\d{6}
14417         </nationalNumberPattern>
14418         <exampleNumber>31234567</exampleNumber>
14419       </fixedLine>
14420       <mobile>
14421         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
14422         <exampleNumber>61234567</exampleNumber>
14423       </mobile>
14424       <tollFree>
14425         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14426         <exampleNumber>80012345</exampleNumber>
14427       </tollFree>
14428       <premiumRate>
14429         <nationalNumberPattern>
14430           9(?:
14431             0[0239]|
14432             10
14433           )\d{5}
14434         </nationalNumberPattern>
14435         <exampleNumber>90012345</exampleNumber>
14436       </premiumRate>
14437       <personalNumber>
14438         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
14439         <exampleNumber>70012345</exampleNumber>
14440       </personalNumber>
14441       <sharedCost>
14442         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14443         <exampleNumber>80812345</exampleNumber>
14444       </sharedCost>
14445       <uan>
14446         <!-- Including government service numbers here too. -->
14447         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
14448         <exampleNumber>70712345</exampleNumber>
14449       </uan>
14450     </territory>
14451
14452     <!-- Luxembourg -->
14453     <territory id="LU" countryCode="352" internationalPrefix="00"
14454                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
14455                carrierCodeFormattingRule="$CC $FG" mobileNumberPortableRegion="true">
14456       <references>
14457         <sourceUrl>http://www.ilr.public.lu/communications_electroniques/numerotation/index.html</sourceUrl>
14458       </references>
14459       <availableFormats>
14460         <!-- Patterns overlap because of variable number length. -->
14461         <numberFormat pattern="(\d{2})(\d{3})">
14462           <leadingDigits>
14463             [2-5]|
14464             7[1-9]|
14465             [89](?:
14466               [1-9]|
14467               0[2-9]
14468             )
14469           </leadingDigits>
14470           <format>$1 $2</format>
14471         </numberFormat>
14472         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
14473           <leadingDigits>
14474             [2-5]|
14475             7[1-9]|
14476             [89](?:
14477               [1-9]|
14478               0[2-9]
14479             )
14480           </leadingDigits>
14481           <format>$1 $2 $3</format>
14482         </numberFormat>
14483         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
14484           <leadingDigits>20</leadingDigits>
14485           <format>$1 $2 $3</format>
14486         </numberFormat>
14487         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
14488              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
14489              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
14490              -->
14491         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
14492           <leadingDigits>
14493             2(?:
14494               [0367]|
14495               4[3-8]
14496             )
14497           </leadingDigits>
14498           <format>$1 $2 $3 $4</format>
14499         </numberFormat>
14500         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
14501           <leadingDigits>20</leadingDigits>
14502           <format>$1 $2 $3 $4</format>
14503         </numberFormat>
14504         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
14505           <leadingDigits>
14506             2(?:
14507               [0367]|
14508               4[3-8]
14509             )
14510           </leadingDigits>
14511           <format>$1 $2 $3 $4 $5</format>
14512         </numberFormat>
14513         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
14514           <leadingDigits>
14515             2(?:
14516               [12589]|
14517               4[12]
14518             )|
14519             [3-5]|
14520             7[1-9]|
14521             [89](?:
14522               [1-9]|
14523               0[2-9]
14524             )
14525           </leadingDigits>
14526           <format>$1 $2 $3 $4</format>
14527         </numberFormat>
14528         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
14529           <leadingDigits>
14530             [89]0[01]|
14531             70
14532           </leadingDigits>
14533           <format>$1 $2 $3</format>
14534         </numberFormat>
14535         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14536           <leadingDigits>6</leadingDigits>
14537           <format>$1 $2 $3</format>
14538         </numberFormat>
14539       </availableFormats>
14540       <generalDesc>
14541         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
14542              necessary since the numbers have a variable number length. -->
14543         <nationalNumberPattern>
14544           [24-9]\d{3,10}|
14545           3(?:
14546             [0-46-9]\d{2,9}|
14547             5[013-9]\d{1,8}
14548           )
14549         </nationalNumberPattern>
14550         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
14551       </generalDesc>
14552       <fixedLine>
14553         <!-- Note that numbers starting with 2[367] can be a maximum of 10 digits - all others a
14554              maximum of 11. -->
14555         <nationalNumberPattern>
14556           (?:
14557             2(?:
14558               2\d{1,2}|
14559               3[2-9]|
14560               [67]\d|
14561               4[1-8]\d?|
14562               5[1-5]\d?|
14563               9[0-24-9]\d?
14564             )|
14565             3(?:
14566               [059][05-9]|
14567               [13]\d|
14568               [26][015-9]|
14569               4[0-26-9]|
14570               7[0-389]|
14571               8[08]
14572             )\d?|
14573             4\d{2,3}|
14574             5(?:
14575               [01458]\d|
14576               [27][0-69]|
14577               3[0-3]|
14578               [69][0-7]
14579             )\d?|
14580             7(?:
14581               1[019]|
14582               2[05-9]|
14583               3[05]|
14584               [45][07-9]|
14585               [679][089]|
14586               8[06-9]
14587             )\d?|
14588             8(?:
14589               0[2-9]|
14590               1[0-36-9]|
14591               3[3-9]|
14592               [469]9|
14593               [58][7-9]|
14594               7[89]
14595             )\d?|
14596             9(?:
14597               0[89]|
14598               2[0-49]|
14599               37|
14600               49|
14601               5[0-27-9]|
14602               7[7-9]|
14603               9[0-478]
14604             )\d?
14605           )\d{1,7}
14606         </nationalNumberPattern>
14607         <exampleNumber>27123456</exampleNumber>
14608       </fixedLine>
14609       <mobile>
14610         <nationalNumberPattern>
14611           6(?:
14612             [269][18]|
14613             71
14614           )\d{6}
14615         </nationalNumberPattern>
14616         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14617         <exampleNumber>628123456</exampleNumber>
14618       </mobile>
14619       <tollFree>
14620         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14621         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14622         <exampleNumber>80012345</exampleNumber>
14623       </tollFree>
14624       <premiumRate>
14625         <nationalNumberPattern>90[01]\d{5}</nationalNumberPattern>
14626         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14627         <exampleNumber>90012345</exampleNumber>
14628       </premiumRate>
14629       <sharedCost>
14630         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
14631         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14632         <exampleNumber>80112345</exampleNumber>
14633       </sharedCost>
14634       <personalNumber>
14635         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
14636         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14637         <exampleNumber>70123456</exampleNumber>
14638       </personalNumber>
14639       <voip>
14640         <!-- The document says the normal length will be 8 digits, but many numbers found online
14641              deviate from that. The prefixes from the following document have been added:
14642              http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
14643              201 has also been added since a diallable number was found online, and it says in
14644              http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
14645              numbers will be issued that begin with 200, numbers beginning with 201 will be issued
14646              one at a time, and 202-209 in blocks. -->
14647         <nationalNumberPattern>
14648           20(?:
14649             1\d{5}|
14650             [2-689]\d{1,7}
14651           )
14652         </nationalNumberPattern>
14653         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
14654         <exampleNumber>20201234</exampleNumber>
14655       </voip>
14656     </territory>
14657
14658     <!-- Latvia -->
14659     <territory id="LV" countryCode="371" internationalPrefix="00" mobileNumberPortableRegion="true">
14660       <references>
14661         <sourceUrl>http://www.itu.int/oth/T0202000076/en</sourceUrl>
14662         <sourceUrl>http://en.wikipedia.org/wiki/+371</sourceUrl>
14663       </references>
14664       <availableFormats>
14665         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
14666           <format>$1 $2 $3</format>
14667         </numberFormat>
14668       </availableFormats>
14669       <generalDesc>
14670         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
14671         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14672       </generalDesc>
14673       <fixedLine>
14674         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
14675         <exampleNumber>63123456</exampleNumber>
14676       </fixedLine>
14677       <mobile>
14678         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14679         <exampleNumber>21234567</exampleNumber>
14680       </mobile>
14681       <tollFree>
14682         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
14683         <exampleNumber>80123456</exampleNumber>
14684       </tollFree>
14685       <premiumRate>
14686         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14687         <exampleNumber>90123456</exampleNumber>
14688       </premiumRate>
14689       <sharedCost>
14690         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
14691         <exampleNumber>81123456</exampleNumber>
14692       </sharedCost>
14693     </territory>
14694
14695     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
14696     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
14697          and itu.int. The new area codes are on the Arabic website of the main telecommunication
14698          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
14699          using 096 (they are allowing customers to register numbers currently), so their code has
14700          also been added. -->
14701     <territory id="LY" countryCode="218" internationalPrefix="00"
14702                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14703       <references>
14704         <sourceUrl>http://hlc.ly/price.php</sourceUrl>
14705       </references>
14706       <availableFormats>
14707         <numberFormat pattern="([25679]\d)(\d{7})">
14708           <format>$1-$2</format>
14709         </numberFormat>
14710       </availableFormats>
14711       <generalDesc>
14712         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
14713         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14714       </generalDesc>
14715       <fixedLine>
14716         <nationalNumberPattern>
14717           (?:
14718             2[1345]|
14719             5[1347]|
14720             6[123479]|
14721             71
14722           )\d{7}
14723         </nationalNumberPattern>
14724         <exampleNumber>212345678</exampleNumber>
14725       </fixedLine>
14726       <mobile>
14727         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
14728              where SMS messages have been apparently successfully received. -->
14729         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
14730         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14731         <exampleNumber>912345678</exampleNumber>
14732       </mobile>
14733     </territory>
14734
14735     <!-- Morocco -->
14736     <!-- Shares formatting and some metadata with Western Sahara. -->
14737     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
14738                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
14739                mobileNumberPortableRegion="true">
14740       <references>
14741         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
14742         <sourceUrl>http://en.wikipedia.org/wiki/+212</sourceUrl>
14743       </references>
14744       <availableFormats>
14745         <numberFormat pattern="([56]\d{2})(\d{6})">
14746           <leadingDigits>
14747             5(?:
14748               2[015-7]|
14749               3[0-4]
14750             )|
14751             6
14752           </leadingDigits>
14753           <format>$1-$2</format>
14754         </numberFormat>
14755         <numberFormat pattern="([58]\d{3})(\d{5})">
14756           <leadingDigits>
14757             5(?:
14758               2[2-489]|
14759               3[5-9]
14760             )|
14761             892
14762           </leadingDigits>
14763           <leadingDigits>
14764             5(?:
14765               2(?:
14766                 [2-48]|
14767                 90
14768               )|
14769               3(?:
14770                 [5-79]|
14771                 80
14772               )
14773             )|
14774             892
14775           </leadingDigits>
14776           <format>$1-$2</format>
14777         </numberFormat>
14778         <numberFormat pattern="(5\d{4})(\d{4})">
14779           <leadingDigits>
14780             5(?:
14781               29|
14782               38
14783             )
14784           </leadingDigits>
14785           <leadingDigits>
14786             5(?:
14787               29|
14788               38
14789             )[89]
14790           </leadingDigits>
14791           <format>$1-$2</format>
14792         </numberFormat>
14793         <numberFormat pattern="(8[09])(\d{7})">
14794           <leadingDigits>
14795             8(?:
14796               0|
14797               9[013-9]
14798             )
14799           </leadingDigits>
14800           <format>$1-$2</format>
14801         </numberFormat>
14802       </availableFormats>
14803       <generalDesc>
14804         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
14805         <!-- Closed numbering plan. -->
14806         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14807       </generalDesc>
14808       <fixedLine>
14809         <nationalNumberPattern>
14810           5(?:
14811             2(?:
14812               (?:
14813                 [015-7]\d|
14814                 2[2-9]|
14815                 3[2-57]|
14816                 4[2-8]|
14817                 8[235-7]
14818               )\d|
14819               9(?:
14820                 0\d|
14821                 [89]0
14822               )
14823             )|
14824             3(?:
14825               (?:
14826                 [0-4]\d|
14827                 [57][2-9]|
14828                 6[235-8]|
14829                 9[3-9]
14830               )\d|
14831               8(?:
14832                 0\d|
14833                 [89]0
14834               )
14835             )
14836           )\d{4}
14837         </nationalNumberPattern>
14838         <exampleNumber>520123456</exampleNumber>
14839       </fixedLine>
14840       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
14841       <mobile>
14842         <!-- http://www.anrt.ma/sites/default/files/Blocs_de_numeros_par_operateur.pdf -->
14843         <nationalNumberPattern>
14844           6(?:
14845             0[0-8]|
14846             [12-7]\d|
14847             8[01]|
14848             9[2457-9]
14849           )\d{6}
14850         </nationalNumberPattern>
14851         <exampleNumber>650123456</exampleNumber>
14852       </mobile>
14853       <tollFree>
14854         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
14855         <exampleNumber>801234567</exampleNumber>
14856       </tollFree>
14857       <premiumRate>
14858         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
14859         <exampleNumber>891234567</exampleNumber>
14860       </premiumRate>
14861     </territory>
14862
14863     <!-- Monaco -->
14864     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
14865          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
14866          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
14867     <territory id="MC" countryCode="377" internationalPrefix="00"
14868                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14869       <references>
14870         <sourceUrl>http://www.itu.int/oth/T020200008D/en</sourceUrl>
14871       </references>
14872       <availableFormats>
14873         <!-- Following formatting found online rather than in the ITU document example. -->
14874         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
14875           <leadingDigits>[89]</leadingDigits>
14876           <format>$1 $2 $3 $4</format>
14877         </numberFormat>
14878         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14879           <leadingDigits>4</leadingDigits>
14880           <format>$1 $2 $3</format>
14881         </numberFormat>
14882         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
14883           <leadingDigits>6</leadingDigits>
14884           <format>$1 $2 $3 $4 $5</format>
14885         </numberFormat>
14886       </availableFormats>
14887       <generalDesc>
14888         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
14889         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
14890       </generalDesc>
14891       <noInternationalDialling>
14892         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
14893         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14894       </noInternationalDialling>
14895       <fixedLine>
14896         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
14897         <nationalNumberPattern>9[2-47-9]\d{6}</nationalNumberPattern>
14898         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14899         <exampleNumber>99123456</exampleNumber>
14900       </fixedLine>
14901       <mobile>
14902         <!-- 4X mobile numbers are actually used by Kosovo. -->
14903         <nationalNumberPattern>
14904           6\d{8}|
14905           4\d{7}
14906         </nationalNumberPattern>
14907         <exampleNumber>612345678</exampleNumber>
14908       </mobile>
14909       <tollFree>
14910         <nationalNumberPattern>
14911           (?:
14912             8\d|
14913             90
14914           )\d{6}
14915         </nationalNumberPattern>
14916         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14917         <exampleNumber>90123456</exampleNumber>
14918       </tollFree>
14919     </territory>
14920
14921     <!-- Moldova, Rep. of -->
14922     <territory id="MD" countryCode="373" internationalPrefix="00"
14923                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
14924                mobileNumberPortableRegion="true">
14925       <references>
14926         <sourceUrl>http://www.itu.int/oth/T020200008C/en</sourceUrl>
14927         <!-- Announcements -->
14928         <sourceUrl>http://anrceti.md/fileupload/58</sourceUrl>
14929         <!-- Mobile ranges -->
14930         <sourceUrl>http://en.anrceti.md/resurse_numerotare_tel_mobila</sourceUrl>
14931       </references>
14932       <availableFormats>
14933         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14934           <leadingDigits>
14935             22|
14936             3
14937           </leadingDigits>
14938           <format>$1 $2 $3</format>
14939         </numberFormat>
14940         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
14941           <leadingDigits>
14942             2[13-79]|
14943             [5-7]
14944           </leadingDigits>
14945           <format>$1 $2 $3</format>
14946         </numberFormat>
14947         <numberFormat pattern="([89]\d{2})(\d{5})">
14948           <leadingDigits>[89]</leadingDigits>
14949           <format>$1 $2</format>
14950         </numberFormat>
14951       </availableFormats>
14952       <generalDesc>
14953         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
14954         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14955       </generalDesc>
14956       <fixedLine>
14957         <nationalNumberPattern>
14958           (?:
14959             2(?:
14960               1[0569]|
14961               2\d|
14962               3[015-7]|
14963               4[1-46-9]|
14964               5[0-24689]|
14965               6[2-589]|
14966               7[1-37]|
14967               9[1347-9]
14968             )|
14969             5(?:
14970               33|
14971               5[257]
14972             )
14973           )\d{5}
14974         </nationalNumberPattern>
14975         <exampleNumber>22212345</exampleNumber>
14976       </fixedLine>
14977       <mobile>
14978         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
14979         <nationalNumberPattern>
14980           (?:
14981             562\d|
14982             6(?:
14983               [089]\d{2}|
14984               1[01]\d|
14985               21\d|
14986               50\d|
14987               7(?:
14988                 [1-6]\d|
14989                 7[0-4]
14990               )
14991             )|
14992             7(?:
14993               6[07]|
14994               7[457-9]|
14995               [89]\d
14996             )\d
14997           )\d{4}
14998         </nationalNumberPattern>
14999         <exampleNumber>65012345</exampleNumber>
15000       </mobile>
15001       <tollFree>
15002         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15003         <exampleNumber>80012345</exampleNumber>
15004       </tollFree>
15005       <premiumRate>
15006         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
15007         <exampleNumber>90012345</exampleNumber>
15008       </premiumRate>
15009       <!-- Information came from en.anrceti.md/node/81 -->
15010       <sharedCost>
15011         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
15012         <exampleNumber>80812345</exampleNumber>
15013       </sharedCost>
15014       <uan>
15015         <!-- Includes numbers used for access to different transport directory services of general
15016              interest, since these are charged at the same rate as fixed-line numbers. -->
15017         <nationalNumberPattern>
15018           8(?:
15019             03|
15020             14
15021           )\d{5}
15022         </nationalNumberPattern>
15023         <exampleNumber>80312345</exampleNumber>
15024       </uan>
15025       <voip>
15026         <!-- Used for "nomadic numbers". -->
15027         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
15028         <exampleNumber>30123456</exampleNumber>
15029       </voip>
15030     </territory>
15031
15032     <!-- Montenegro -->
15033     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
15034                nationalPrefixFormattingRule="$NP$FG">
15035       <references>
15036         <sourceUrl>http://www.itu.int/oth/T02020000DA/en</sourceUrl>
15037         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro</sourceUrl>
15038         <sourceUrl>http://www.ekip.me/numeracija/dodijeljena.php</sourceUrl>
15039       </references>
15040       <availableFormats>
15041          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15042           <leadingDigits>[2-57-9]|6[3789]</leadingDigits>
15043           <leadingDigits>
15044             [2-57-9]|
15045             6(?:
15046               [389]|
15047               7(?:
15048                 [0-8]|
15049                 9[3-9]
15050               )
15051             )
15052           </leadingDigits>
15053           <format>$1 $2 $3</format>
15054         </numberFormat>
15055         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
15056           <leadingDigits>679</leadingDigits>
15057           <leadingDigits>679[0-2]</leadingDigits>
15058           <format>$1 $2 $3 $4</format>
15059         </numberFormat>
15060       </availableFormats>
15061       <generalDesc>
15062         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
15063         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
15064       </generalDesc>
15065       <fixedLine>
15066         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
15067              The valid options for the third digit were from
15068              http://www.ekip.me/numeracija/dodijeljena.php -->
15069         <nationalNumberPattern>
15070           (?:
15071             20[2-8]|
15072             3(?:
15073               0[2-7]|
15074               1[35-7]|
15075               2[3567]|
15076               3[4-7]
15077             )|
15078             4(?:
15079               0[237]|
15080               1[27]
15081             )|
15082             5(?:
15083               0[47]|
15084               1[27]|
15085               2[378]
15086             )
15087           )\d{5}
15088         </nationalNumberPattern>
15089         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15090         <exampleNumber>30234567</exampleNumber>
15091       </fixedLine>
15092       <mobile>
15093         <!-- Mobile numbers start with 632, 67, 68 or 69. -->
15094         <nationalNumberPattern>
15095           6(?:
15096             32\d|
15097             [89]\d{2}|
15098             7(?:
15099               [0-8]\d|
15100               9(?:
15101                 [3-9]|
15102                 [0-2]\d
15103               )
15104             )
15105           )\d{4}
15106         </nationalNumberPattern>
15107         <!-- According to ITU it is possible for the numbers to be between length 4-12
15108              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
15109              digits long, based on the Montenegro document. -->
15110         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15111         <exampleNumber>67622901</exampleNumber>
15112       </mobile>
15113       <tollFree>
15114         <!-- All toll free numbers have prefix 80 followed by 02 or 08. -->
15115         <nationalNumberPattern>800[28]\d{4}</nationalNumberPattern>
15116         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15117         <exampleNumber>80080002</exampleNumber>
15118       </tollFree>
15119       <premiumRate>
15120         <!-- Numbers with prefix 88, 94 or 95 are services with additional charges. -->
15121         <nationalNumberPattern>
15122           (?:
15123             88\d|
15124             9(?:
15125               4[13-8]|
15126               5[16-8]
15127             )
15128           )\d{5}
15129         </nationalNumberPattern>
15130         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15131         <exampleNumber>94515151</exampleNumber>
15132       </premiumRate>
15133       <voip>
15134         <!-- VOIP are prefixed with 78. -->
15135         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
15136         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15137         <exampleNumber>78108780</exampleNumber>
15138       </voip>
15139       <uan>
15140         <!-- Corporate Telephony are prefixed with 77. -->
15141         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
15142         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15143         <exampleNumber>77273012</exampleNumber>
15144       </uan>
15145     </territory>
15146
15147     <!-- Saint-Martin, French Antilles -->
15148     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
15149       <references>
15150         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
15151         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
15152         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
15153       </references>
15154       <!-- Formatting rules borrowed from Guadeloupe. -->
15155       <generalDesc>
15156         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15157         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15158       </generalDesc>
15159       <fixedLine>
15160         <nationalNumberPattern>
15161           590(?:
15162             [02][79]|
15163             13|
15164             5[0-268]|
15165             [78]7
15166           )\d{4}
15167         </nationalNumberPattern>
15168         <exampleNumber>590271234</exampleNumber>
15169       </fixedLine>
15170       <mobile>
15171         <!-- Any ranges assigned from
15172              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
15173              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
15174              them. -->
15175         <nationalNumberPattern>
15176           690(?:
15177             0[0-7]|
15178             [1-9]\d
15179           )\d{4}
15180         </nationalNumberPattern>
15181         <exampleNumber>690301234</exampleNumber>
15182       </mobile>
15183     </territory>
15184
15185     <!-- Madagascar -->
15186     <territory id="MG" countryCode="261" internationalPrefix="00"
15187                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15188       <references>
15189         <sourceUrl>http://www.itu.int/oth/T020200007F/en</sourceUrl>
15190       </references>
15191       <availableFormats>
15192         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
15193           <format>$1 $2 $3 $4</format>
15194         </numberFormat>
15195       </availableFormats>
15196       <generalDesc>
15197         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
15198         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15199       </generalDesc>
15200       <fixedLine>
15201         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
15202              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
15203              codes beginning with 4. -->
15204         <nationalNumberPattern>
15205           20(?:
15206             2\d{2}|
15207             4[47]\d|
15208             5[3467]\d|
15209             6[279]\d|
15210             7(?:
15211               2[29]|
15212               [35]\d
15213             )|
15214             8[268]\d|
15215             9[245]\d
15216           )\d{4}
15217         </nationalNumberPattern>
15218         <exampleNumber>202123456</exampleNumber>
15219       </fixedLine>
15220       <mobile>
15221         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
15222              out by reality. -->
15223         <nationalNumberPattern>3[2-49]\d{7}</nationalNumberPattern>
15224         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15225         <exampleNumber>321234567</exampleNumber>
15226       </mobile>
15227       <!-- Putting VSAT numbers here. -->
15228       <voip>
15229         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
15230         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15231         <exampleNumber>221234567</exampleNumber>
15232       </voip>
15233     </territory>
15234
15235     <!-- Marshall Islands -->
15236     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
15237       <references>
15238         <sourceUrl>http://www.itu.int/oth/T0202000085/en</sourceUrl>
15239       </references>
15240       <availableFormats>
15241         <numberFormat pattern="(\d{3})(\d{4})">
15242           <format>$1-$2</format>
15243         </numberFormat>
15244       </availableFormats>
15245       <generalDesc>
15246         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
15247         <possibleNumberPattern>\d{7}</possibleNumberPattern>
15248       </generalDesc>
15249       <fixedLine>
15250         <nationalNumberPattern>
15251           (?:
15252             247|
15253             528|
15254             625
15255           )\d{4}
15256         </nationalNumberPattern>
15257         <exampleNumber>2471234</exampleNumber>
15258       </fixedLine>
15259       <mobile>
15260         <nationalNumberPattern>
15261           (?:
15262             235|
15263             329|
15264             45[56]|
15265             545
15266           )\d{4}
15267         </nationalNumberPattern>
15268         <exampleNumber>2351234</exampleNumber>
15269       </mobile>
15270       <voip>
15271         <!-- VSAT prefixes are here. -->
15272         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
15273         <exampleNumber>6351234</exampleNumber>
15274       </voip>
15275     </territory>
15276
15277     <!-- Macedonia, Former Yugoslav Rep. of -->
15278     <territory id="MK" countryCode="389" internationalPrefix="00"
15279                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
15280                mobileNumberPortableRegion="true">
15281       <references>
15282         <sourceUrl>http://www.itu.int/oth/T02020000CE/en</sourceUrl>
15283       </references>
15284       <availableFormats>
15285         <!-- Formats follow wikipedia. -->
15286         <numberFormat pattern="(2)(\d{3})(\d{4})">
15287           <leadingDigits>2</leadingDigits>
15288           <format>$1 $2 $3</format>
15289         </numberFormat>
15290         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
15291           <leadingDigits>[347]</leadingDigits>
15292           <format>$1 $2 $3</format>
15293         </numberFormat>
15294         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
15295           <leadingDigits>[58]</leadingDigits>
15296           <format>$1 $2 $3 $4</format>
15297         </numberFormat>
15298       </availableFormats>
15299       <generalDesc>
15300         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
15301         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15302       </generalDesc>
15303       <fixedLine>
15304         <nationalNumberPattern>
15305           (?:
15306             2(?:
15307               [23]\d|
15308               5[124578]|
15309               6[01]
15310             )|
15311             3(?:
15312               1[3-6]|
15313               [23][2-6]|
15314               4[2356]
15315             )|
15316             4(?:
15317               [23][2-6]|
15318               4[3-6]|
15319               5[256]|
15320               6[25-8]|
15321               7[24-6]|
15322               8[4-6]
15323             )
15324           )\d{5}
15325         </nationalNumberPattern>
15326         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15327         <exampleNumber>22212345</exampleNumber>
15328       </fixedLine>
15329       <mobile>
15330         <nationalNumberPattern>
15331           7(?:
15332             [0-25-8]\d{2}|
15333             32\d|
15334             421
15335           )\d{4}
15336         </nationalNumberPattern>
15337         <exampleNumber>72345678</exampleNumber>
15338       </mobile>
15339       <tollFree>
15340         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15341         <exampleNumber>80012345</exampleNumber>
15342       </tollFree>
15343       <premiumRate>
15344         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
15345         <exampleNumber>50012345</exampleNumber>
15346       </premiumRate>
15347       <sharedCost>
15348         <nationalNumberPattern>
15349           8(?:
15350             0[1-9]|
15351             [1-9]\d
15352           )\d{5}
15353         </nationalNumberPattern>
15354         <exampleNumber>80123456</exampleNumber>
15355       </sharedCost>
15356     </territory>
15357
15358     <!-- Mali -->
15359     <territory id="ML" countryCode="223" internationalPrefix="00">
15360       <references>
15361         <sourceUrl>http://www.itu.int/oth/T0202000083/en</sourceUrl>
15362         <sourceUrl>http://crt-mali.org/pdf/plan_num</sourceUrl>
15363       </references>
15364       <availableFormats>
15365         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
15366           <leadingDigits>[246-9]</leadingDigits>
15367           <format>$1 $2 $3 $4</format>
15368         </numberFormat>
15369         <!-- Formatting some short numbers as a block. -->
15370         <numberFormat pattern="(\d{4})">
15371           <leadingDigits>
15372             67|
15373             74
15374           </leadingDigits>
15375           <intlFormat>NA</intlFormat>
15376           <format>$1</format>
15377         </numberFormat>
15378       </availableFormats>
15379       <generalDesc>
15380         <nationalNumberPattern>[246-9]\d{7}</nationalNumberPattern>
15381         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15382       </generalDesc>
15383       <fixedLine>
15384         <!-- Patterns from ITU with extra ranges 20 25, 20 7[13-9] and 217 provided by Sotelma and
15385              confirmed by searches online. -->
15386         <nationalNumberPattern>
15387           (?:
15388             2(?:
15389               0(?:
15390                 2[0-589]|
15391                 7\d
15392               )|
15393               1(?:
15394                 2[5-7]|
15395                 [3-689]\d|
15396                 7[2-4689]
15397               )
15398             )|
15399             44[239]\d
15400           )\d{4}
15401         </nationalNumberPattern>
15402         <exampleNumber>20212345</exampleNumber>
15403       </fixedLine>
15404       <mobile>
15405         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
15406              document (which is very stale). All mobile numbers starting with 7 are now Orange.
15407              Includes 6x from Malitel IR21. Numbers beginning with 9 have been found online and
15408              reported by open-source users, although the exact possible second digits are uncertain.
15409              -->
15410         <nationalNumberPattern>
15411           [67]\d{7}|
15412           9[0-25-9]\d{6}
15413         </nationalNumberPattern>
15414         <exampleNumber>65012345</exampleNumber>
15415       </mobile>
15416       <tollFree>
15417         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
15418              plan. -->
15419         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15420         <exampleNumber>80012345</exampleNumber>
15421       </tollFree>
15422    </territory>
15423
15424     <!-- Myanmar -->
15425     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
15426                nationalPrefixFormattingRule="$NP$FG">
15427       <references>
15428         <sourceUrl>http://www.itu.int/oth/T0202000092/en</sourceUrl>
15429       </references>
15430       <availableFormats>
15431         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
15432           <leadingDigits>
15433             1|
15434             2[45]
15435           </leadingDigits>
15436           <format>$1 $2 $3</format>
15437         </numberFormat>
15438         <numberFormat pattern="(2)(\d{4})(\d{4})">
15439           <leadingDigits>251</leadingDigits>
15440           <format>$1 $2 $3</format>
15441         </numberFormat>
15442         <numberFormat pattern="(\d)(\d{2})(\d{3})">
15443           <leadingDigits>
15444             16|
15445             2
15446           </leadingDigits>
15447           <format>$1 $2 $3</format>
15448         </numberFormat>
15449         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
15450           <leadingDigits>
15451             67|
15452             81
15453           </leadingDigits>
15454           <format>$1 $2 $3</format>
15455         </numberFormat>
15456         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
15457           <leadingDigits>[4-8]</leadingDigits>
15458           <format>$1 $2 $3</format>
15459         </numberFormat>
15460         <numberFormat pattern="(9)(\d{3})(\d{4,6})">
15461           <leadingDigits>
15462             9(?:
15463               2[0-4]|
15464               [35-9]|
15465               4[13789]
15466             )
15467           </leadingDigits>
15468           <format>$1 $2 $3</format>
15469         </numberFormat>
15470         <numberFormat pattern="(9)(4\d{4})(\d{4})">
15471           <leadingDigits>94[0245]</leadingDigits>
15472           <format>$1 $2 $3</format>
15473         </numberFormat>
15474         <!-- Following majority of numbers found online. -->
15475         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{3})">
15476           <leadingDigits>925</leadingDigits>
15477           <format>$1 $2 $3 $4</format>
15478         </numberFormat>
15479       </availableFormats>
15480       <generalDesc>
15481         <nationalNumberPattern>
15482           [14578]\d{5,7}|
15483           [26]\d{5,8}|
15484           9(?:
15485             2\d{0,2}|
15486             [58]|
15487             3\d|
15488             4\d{1,2}|
15489             6\d?|
15490             [79]\d{0,2}
15491           )\d{6}
15492         </nationalNumberPattern>
15493         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
15494       </generalDesc>
15495       <fixedLine>
15496         <nationalNumberPattern>
15497           1(?:
15498             2\d{1,2}|
15499             [3-5]\d|
15500             6\d?|
15501             [89][0-6]\d
15502           )\d{4}|
15503           2(?:
15504             [236-9]\d{4}|
15505             4(?:
15506               0\d{5}|
15507               \d{4}
15508             )|
15509             5(?:
15510               1\d{3,6}|
15511               [02-9]\d{3,5}
15512             )
15513           )|
15514           4(?:
15515             2[245-8]|
15516             [346][2-6]|
15517             5[3-5]
15518           )\d{4}|
15519           5(?:
15520             2(?:
15521               20?|
15522               [3-8]
15523             )|
15524             3[2-68]|
15525             4(?:
15526               21?|
15527               [4-8]
15528             )|
15529             5[23]|
15530             6[2-4]|
15531             7[2-8]|
15532             8[24-7]|
15533             9[2-7]
15534           )\d{4}|
15535           6(?:
15536             0[23]|
15537             1[2356]|
15538             [24][2-6]|
15539             3[24-6]|
15540             5[2-4]|
15541             6[2-8]|
15542             7(?:
15543               [2367]|
15544               4\d|
15545               5\d?|
15546               8[145]\d
15547             )|
15548             8[245]|
15549             9[24]
15550           )\d{4}|
15551           7(?:
15552             [04][24-8]|
15553             [15][2-7]|
15554             22|
15555             3[2-4]
15556           )\d{4}|
15557           8(?:
15558             1(?:
15559               2\d?|
15560               [3-689]
15561             )|
15562             2[2-8]|
15563             3[24]|
15564             4[24-7]|
15565             5[245]|
15566             6[23]
15567           )\d{4}
15568         </nationalNumberPattern>
15569         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
15570         <exampleNumber>1234567</exampleNumber>
15571       </fixedLine>
15572       <mobile>
15573         <!-- Added 99[089] (8 digits), 961 (9 digits), and 979 & 997 (10 digits) from bug
15574              reports/numbers found online. -->
15575         <nationalNumberPattern>
15576           17[01]\d{4}|
15577           9(?:
15578             2(?:
15579               [0-4]|
15580               5\d{2}
15581             )|
15582             3[136]\d|
15583             4(?:
15584               0[0-4]\d|
15585               [1379]\d|
15586               [24][0-589]\d|
15587               5\d{2}|
15588               88
15589             )|
15590             5[0-6]|
15591             61?\d|
15592             7(?:
15593               3\d|
15594               9\d{2}
15595             )|
15596             8\d|
15597             9(?:
15598               1\d|
15599               7\d{2}|
15600               [089]
15601             )
15602           )\d{5}
15603         </nationalNumberPattern>
15604         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
15605         <exampleNumber>92123456</exampleNumber>
15606       </mobile>
15607       <voip>
15608         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
15609         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15610         <exampleNumber>13331234</exampleNumber>
15611       </voip>
15612       <!-- No information on other types of phone numbers for Myanmar has been found. -->
15613     </territory>
15614
15615     <!-- Mongolia -->
15616     <territory id="MN" countryCode="976" internationalPrefix="001"
15617                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15618       <references>
15619         <sourceUrl>http://www.itu.int/oth/T020200008E/en</sourceUrl>
15620       </references>
15621       <availableFormats>
15622         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
15623           <leadingDigits>[12]1</leadingDigits>
15624           <format>$1 $2 $3</format>
15625         </numberFormat>
15626         <numberFormat pattern="([12]2\d)(\d{5,6})">
15627           <leadingDigits>[12]2[1-3]</leadingDigits>
15628           <format>$1 $2</format>
15629         </numberFormat>
15630         <numberFormat pattern="([12]\d{3})(\d{5})">
15631           <leadingDigits>
15632             [12](?:
15633               27|
15634               [3-5]
15635             )
15636           </leadingDigits>
15637           <leadingDigits>
15638             [12](?:
15639               27|
15640               [3-5]\d
15641             )2
15642           </leadingDigits>
15643           <format>$1 $2</format>
15644         </numberFormat>
15645         <!-- It seems from online formatting that the national prefix is not written (or perhaps
15646              needed?) for numbers in these ranges. -->
15647         <numberFormat pattern="(\d{4})(\d{4})"
15648           nationalPrefixFormattingRule="$FG">
15649           <leadingDigits>[57-9]</leadingDigits>
15650           <format>$1 $2</format>
15651         </numberFormat>
15652         <numberFormat pattern="([12]\d{4})(\d{4,5})">
15653           <leadingDigits>
15654             [12](?:
15655               27|
15656               [3-5]
15657             )
15658           </leadingDigits>
15659           <leadingDigits>
15660             [12](?:
15661               27|
15662               [3-5]\d
15663             )[4-9]
15664           </leadingDigits>
15665           <format>$1 $2</format>
15666         </numberFormat>
15667       </availableFormats>
15668       <generalDesc>
15669         <nationalNumberPattern>
15670           [12]\d{7,9}|
15671           [57-9]\d{7}
15672         </nationalNumberPattern>
15673         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
15674       </generalDesc>
15675       <fixedLine>
15676         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
15677              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
15678              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
15679              as well, even though we are not certain whether they are in fact fixed or mobile in
15680              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
15681              online numbers being found. -->
15682         <nationalNumberPattern>
15683           [12](?:
15684             1\d|
15685             2(?:
15686               [1-3]\d?|
15687               7\d
15688             )|
15689             3[2-8]\d{1,2}|
15690             4[2-68]\d{1,2}|
15691             5[1-4689]\d{1,2}
15692           )\d{5}|
15693           5[0568]\d{6}
15694         </nationalNumberPattern>
15695         <exampleNumber>50123456</exampleNumber>
15696       </fixedLine>
15697       <mobile>
15698         <nationalNumberPattern>
15699           (?:
15700             8[689]|
15701             9[013-9]
15702           )\d{6}
15703         </nationalNumberPattern>
15704         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15705         <exampleNumber>88123456</exampleNumber>
15706       </mobile>
15707       <!-- No tollFree or premiumRate information can be found. -->
15708       <voip>
15709         <!-- According to the document this could be stricter, but there are counter examples
15710              online. -->
15711         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
15712         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15713         <exampleNumber>75123456</exampleNumber>
15714       </voip>
15715     </territory>
15716
15717     <!-- Macao, China -->
15718     <territory id="MO" countryCode="853" internationalPrefix="00">
15719       <references>
15720         <sourceUrl>http://www.itu.int/oth/T020200007E/en</sourceUrl>
15721       </references>
15722       <availableFormats>
15723         <numberFormat pattern="([268]\d{3})(\d{4})">
15724           <format>$1 $2</format>
15725         </numberFormat>
15726       </availableFormats>
15727       <generalDesc>
15728         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
15729         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15730       </generalDesc>
15731       <fixedLine>
15732         <nationalNumberPattern>
15733           (?:
15734             28[2-57-9]|
15735             8[2-57-9]\d
15736           )\d{5}
15737         </nationalNumberPattern>
15738         <exampleNumber>28212345</exampleNumber>
15739       </fixedLine>
15740       <mobile>
15741         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
15742              numbers, and they are also widely present on the Internet. -->
15743         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
15744         <exampleNumber>66123456</exampleNumber>
15745       </mobile>
15746       <!-- No tollFree or premiumRate information can be found. -->
15747     </territory>
15748
15749     <!-- Northern Mariana Islands -->
15750     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
15751                internationalPrefix="011">
15752       <references>
15753         <sourceUrl>http://www.itu.int/oth/T02020000EE/en</sourceUrl>
15754         <sourceUrl>http://www.cnmiphonebook.com/</sourceUrl>
15755       </references>
15756       <generalDesc>
15757         <!-- NANPA country - uses US formatting rules -->
15758         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15759         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15760       </generalDesc>
15761       <fixedLine>
15762         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
15763              were seen in the white and yellow pages, but no numbers with these exchange codes have
15764              proved to be diallable so we exclude them for now.. -->
15765         <nationalNumberPattern>
15766           670(?:
15767             2(?:
15768               3[3-7]|
15769               56|
15770               8[5-8]
15771             )|
15772             32[1238]|
15773             4(?:
15774               33|
15775               8[348]
15776             )|
15777             5(?:
15778               32|
15779               55|
15780               88
15781             )|
15782             6(?:
15783               64|
15784               70|
15785               82
15786             )|
15787             78[589]|
15788             8[3-9]8|
15789             989
15790           )\d{4}
15791         </nationalNumberPattern>
15792         <exampleNumber>6702345678</exampleNumber>
15793       </fixedLine>
15794       <mobile>
15795         <nationalNumberPattern>
15796           670(?:
15797             2(?:
15798               3[3-7]|
15799               56|
15800               8[5-8]
15801             )|
15802             32[1238]|
15803             4(?:
15804               33|
15805               8[348]
15806             )|
15807             5(?:
15808               32|
15809               55|
15810               88
15811             )|
15812             6(?:
15813               64|
15814               70|
15815               82
15816             )|
15817             78[589]|
15818             8[3-9]8|
15819             989
15820           )\d{4}
15821         </nationalNumberPattern>
15822         <exampleNumber>6702345678</exampleNumber>
15823       </mobile>
15824       <tollFree>
15825         <nationalNumberPattern>
15826           8(?:
15827             00|
15828             44|
15829             55|
15830             66|
15831             77|
15832             88
15833           )[2-9]\d{6}
15834         </nationalNumberPattern>
15835         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15836         <exampleNumber>8002123456</exampleNumber>
15837       </tollFree>
15838       <premiumRate>
15839         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15840         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15841         <exampleNumber>9002123456</exampleNumber>
15842       </premiumRate>
15843       <personalNumber>
15844         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15845         <nationalNumberPattern>
15846           5(?:
15847             00|
15848             33|
15849             44|
15850             66|
15851             77
15852           )[2-9]\d{6}
15853         </nationalNumberPattern>
15854         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15855         <exampleNumber>5002345678</exampleNumber>
15856       </personalNumber>
15857     </territory>
15858
15859     <!-- Martinique (French Dept. of) -->
15860     <territory id="MQ" countryCode="596" internationalPrefix="00"
15861                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15862       <references>
15863         <sourceUrl>http://www.itu.int/oth/T0202000086/en</sourceUrl>
15864         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0596&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
15865       </references>
15866       <availableFormats>
15867         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
15868           <format>$1 $2 $3 $4</format>
15869         </numberFormat>
15870       </availableFormats>
15871       <generalDesc>
15872         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15873         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15874       </generalDesc>
15875       <fixedLine>
15876         <nationalNumberPattern>
15877           596(?:
15878             0[2-5]|
15879             [12]0|
15880             3[05-9]|
15881             4[024-8]|
15882             [5-7]\d|
15883             89|
15884             9[4-8]
15885           )\d{4}
15886         </nationalNumberPattern>
15887         <exampleNumber>596301234</exampleNumber>
15888       </fixedLine>
15889       <mobile>
15890         <nationalNumberPattern>
15891           696(?:
15892             [0-479]\d|
15893             5[01]|
15894             8[0-689]
15895           )\d{4}
15896         </nationalNumberPattern>
15897         <exampleNumber>696201234</exampleNumber>
15898       </mobile>
15899       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
15900            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
15901            too. -->
15902     </territory>
15903
15904     <!-- Mauritania -->
15905     <territory id="MR" countryCode="222" internationalPrefix="00" >
15906       <references>
15907         <sourceUrl>http://www.itu.int/oth/T0202000087/en</sourceUrl>
15908         <sourceUrl>http://www.are.mr/com-1-4-1.html</sourceUrl>
15909       </references>
15910       <availableFormats>
15911         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
15912           <format>$1 $2 $3 $4</format>
15913         </numberFormat>
15914       </availableFormats>
15915       <generalDesc>
15916         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
15917         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15918       </generalDesc>
15919       <fixedLine>
15920         <nationalNumberPattern>
15921           25[08]\d{5}|
15922           35\d{6}|
15923           45[1-7]\d{5}
15924         </nationalNumberPattern>
15925         <exampleNumber>35123456</exampleNumber>
15926       </fixedLine>
15927       <mobile>
15928         <nationalNumberPattern>
15929           (?:
15930             2(?:
15931               2\d|
15932               70
15933             )|
15934             3(?:
15935               3\d|
15936               6[1-36]|
15937               7[1-3]
15938             )|
15939             4(?:
15940               4\d|
15941               6[0457-9]|
15942               7[4-9]|
15943               8[01346-8]
15944             )
15945           )\d{5}
15946         </nationalNumberPattern>
15947         <exampleNumber>22123456</exampleNumber>
15948       </mobile>
15949       <tollFree>
15950         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15951         <exampleNumber>80012345</exampleNumber>
15952       </tollFree>
15953     </territory>
15954
15955     <!-- Montserrat -->
15956     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
15957                internationalPrefix="011">
15958       <references>
15959         <sourceUrl>http://www.itu.int/oth/T020200008F/en</sourceUrl>
15960       </references>
15961       <generalDesc>
15962         <!-- NANPA country - uses US formatting rules -->
15963         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15964         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15965       </generalDesc>
15966       <fixedLine>
15967         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
15968         <exampleNumber>6644912345</exampleNumber>
15969       </fixedLine>
15970       <mobile>
15971         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
15972         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15973         <exampleNumber>6644923456</exampleNumber>
15974       </mobile>
15975       <tollFree>
15976         <nationalNumberPattern>
15977           8(?:
15978             00|
15979             44|
15980             55|
15981             66|
15982             77|
15983             88
15984           )[2-9]\d{6}
15985         </nationalNumberPattern>
15986         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15987         <exampleNumber>8002123456</exampleNumber>
15988       </tollFree>
15989       <premiumRate>
15990         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15991         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15992         <exampleNumber>9002123456</exampleNumber>
15993       </premiumRate>
15994       <personalNumber>
15995         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15996         <nationalNumberPattern>
15997           5(?:
15998             00|
15999             33|
16000             44|
16001             66|
16002             77
16003           )[2-9]\d{6}
16004         </nationalNumberPattern>
16005         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16006         <exampleNumber>5002345678</exampleNumber>
16007       </personalNumber>
16008     </territory>
16009
16010     <!-- Malta -->
16011     <territory id="MT" countryCode="356" internationalPrefix="00" mobileNumberPortableRegion="true">
16012       <references>
16013         <sourceUrl>http://www.itu.int/oth/T0202000084/en</sourceUrl>
16014         <!-- Numbering link in the LHS menu - has more up-to-date allocations -->
16015         <sourceUrl>http://www.mca.org.mt</sourceUrl>
16016       </references>
16017       <availableFormats>
16018         <numberFormat pattern="(\d{4})(\d{4})">
16019           <format>$1 $2</format>
16020         </numberFormat>
16021       </availableFormats>
16022       <generalDesc>
16023         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
16024         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16025       </generalDesc>
16026       <fixedLine>
16027         <nationalNumberPattern>
16028           2(?:
16029             0(?:
16030               1[0-6]|
16031               3[1-4]|
16032               [69]\d
16033             )|
16034             [1-357]\d{2}
16035           )\d{4}
16036         </nationalNumberPattern>
16037         <exampleNumber>21001234</exampleNumber>
16038       </fixedLine>
16039       <mobile>
16040         <!-- 7210 and 92XX come from the allocations listed on http://www.mca.org.mt, but they are
16041              not listed in the latest ITU document. -->
16042         <nationalNumberPattern>
16043           (?:
16044             7(?:
16045               210|
16046               [79]\d{2}
16047             )|
16048             9(?:
16049               2(?:
16050                1[01]|
16051                31
16052               )|
16053               696|
16054               8(?:
16055                 1[1-3]|
16056                 89|
16057                 97
16058               )|
16059               9\d{2}
16060             )
16061           )\d{4}
16062         </nationalNumberPattern>
16063         <exampleNumber>96961234</exampleNumber>
16064       </mobile>
16065       <pager>
16066         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
16067         <exampleNumber>71171234</exampleNumber>
16068       </pager>
16069       <tollFree>
16070         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
16071         <exampleNumber>80071234</exampleNumber>
16072       </tollFree>
16073       <premiumRate>
16074         <nationalNumberPattern>
16075           5(?:
16076             0(?:
16077               0(?:
16078                 37|
16079                 43
16080               )|
16081               6\d{2}|
16082               70\d|
16083               9[0168]
16084             )|
16085             [12]\d0[1-5]
16086           )\d{3}
16087         </nationalNumberPattern>
16088         <exampleNumber>50037123</exampleNumber>
16089       </premiumRate>
16090       <voip>
16091         <!-- In the plan as Non-PATS ECS. -->
16092         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
16093         <exampleNumber>35501234</exampleNumber>
16094       </voip>
16095       <uan>
16096         <!-- Using this for governmental numbers. -->
16097         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
16098         <exampleNumber>50112345</exampleNumber>
16099       </uan>
16100     </territory>
16101
16102     <!-- Mauritius -->
16103     <!-- Preferred international prefix is expected to standardize on just '00' -->
16104     <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
16105                preferredInternationalPrefix="020">
16106       <references>
16107         <sourceUrl>http://www.icta.mu/telecommunications/numbering.htm</sourceUrl>
16108       </references>
16109       <availableFormats>
16110         <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
16111           <leadingDigits>[2-46-9]</leadingDigits>
16112           <format>$1 $2</format>
16113         </numberFormat>
16114         <numberFormat pattern="(5\d{3})(\d{4})">
16115           <leadingDigits>5</leadingDigits>
16116           <format>$1 $2</format>
16117         </numberFormat>
16118       </availableFormats>
16119       <generalDesc>
16120         <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
16121         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
16122       </generalDesc>
16123       <fixedLine>
16124         <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
16125         <nationalNumberPattern>
16126           (?:
16127             2(?:
16128               [03478]\d|
16129               1[0-7]|
16130               6[1-69]
16131             )|
16132             4(?:
16133               [013568]\d|
16134               2[4-7]
16135             )|
16136             5(?:
16137               44\d|
16138               471
16139             )|
16140             6\d{2}|
16141             8(?:
16142               14|
16143               3[129]
16144             )
16145           )\d{4}
16146         </nationalNumberPattern>
16147         <exampleNumber>2012345</exampleNumber>
16148       </fixedLine>
16149       <mobile>
16150         <nationalNumberPattern>
16151           5(?:
16152             2[59]\d|
16153             4(?:
16154               2[1-389]|
16155               4\d|
16156               7[1-9]|
16157               9\d
16158             )|
16159             7\d{2}|
16160             8(?:
16161               [256]\d|
16162               7[15-8]
16163             )|
16164             9[0-8]\d
16165           )\d{4}
16166         </nationalNumberPattern>
16167         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16168         <exampleNumber>52512345</exampleNumber>
16169       </mobile>
16170       <tollFree>
16171         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
16172         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16173         <exampleNumber>8001234</exampleNumber>
16174       </tollFree>
16175       <premiumRate>
16176         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
16177         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16178         <exampleNumber>3012345</exampleNumber>
16179       </premiumRate>
16180       <voip>
16181         <nationalNumberPattern>
16182           3(?:
16183             20|
16184             9\d
16185           )\d{4}
16186         </nationalNumberPattern>
16187         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16188         <exampleNumber>3201234</exampleNumber>
16189       </voip>
16190     </territory>
16191
16192     <!-- Maldives -->
16193     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
16194                preferredInternationalPrefix="00">
16195       <references>
16196         <sourceUrl>http://www.itu.int/oth/T0202000082/en</sourceUrl>
16197         <sourceUrl>http://www.dhiraagu.com.mv</sourceUrl>
16198       </references>
16199       <availableFormats>
16200         <numberFormat pattern="(\d{3})(\d{4})">
16201           <leadingDigits>
16202             [3467]|
16203             9(?:
16204               [1-9]|
16205               0[1-9]
16206             )
16207           </leadingDigits>
16208           <format>$1-$2</format>
16209         </numberFormat>
16210         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16211           <leadingDigits>900</leadingDigits>
16212           <format>$1 $2 $3</format>
16213         </numberFormat>
16214       </availableFormats>
16215       <generalDesc>
16216         <nationalNumberPattern>
16217           [3467]\d{6}|
16218           9(?:
16219             00\d{7}|
16220             \d{6}
16221           )
16222         </nationalNumberPattern>
16223         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16224       </generalDesc>
16225       <fixedLine>
16226         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
16227              diallable. -->
16228         <nationalNumberPattern>
16229           (?:
16230             3(?:
16231               0[01]|
16232               3[0-59]
16233             )|
16234             6(?:
16235               [567][02468]|
16236               8[024689]|
16237               90
16238             )
16239           )\d{4}
16240         </nationalNumberPattern>
16241         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16242         <exampleNumber>6701234</exampleNumber>
16243       </fixedLine>
16244       <mobile>
16245         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
16246              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
16247              91 was added based on information from Wataniya Telecom. -->
16248         <nationalNumberPattern>
16249           (?:
16250             46[46]|
16251             7[3-9]\d|
16252             9[16-9]\d
16253           )\d{4}
16254         </nationalNumberPattern>
16255         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16256         <exampleNumber>7712345</exampleNumber>
16257       </mobile>
16258       <pager>
16259         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
16260         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16261         <exampleNumber>7812345</exampleNumber>
16262       </pager>
16263       <premiumRate>
16264         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16265         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16266         <exampleNumber>9001234567</exampleNumber>
16267       </premiumRate>
16268     </territory>
16269
16270     <!-- Malawi -->
16271     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
16272          consistent in having one. -->
16273     <territory id="MW" countryCode="265" internationalPrefix="00"
16274                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16275       <references>
16276         <sourceUrl>http://www.itu.int/oth/T0202000080/en</sourceUrl>
16277       </references>
16278       <availableFormats>
16279         <numberFormat pattern="(\d)(\d{3})(\d{3})">
16280           <leadingDigits>1</leadingDigits>
16281           <format>$1 $2 $3</format>
16282         </numberFormat>
16283         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
16284           <leadingDigits>2</leadingDigits>
16285           <format>$1 $2 $3</format>
16286         </numberFormat>
16287         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16288           <leadingDigits>[1789]</leadingDigits>
16289           <format>$1 $2 $3 $4</format>
16290         </numberFormat>
16291       </availableFormats>
16292       <generalDesc>
16293         <nationalNumberPattern>
16294           (?:
16295             1(?:
16296               \d{2}
16297             )?|
16298             [2789]\d{2}
16299           )\d{6}
16300         </nationalNumberPattern>
16301         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
16302       </generalDesc>
16303       <fixedLine>
16304         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
16305              been found so this is being retained for now. It is possible however that these may be
16306              old-format mobile numbers. -->
16307         <nationalNumberPattern>
16308           (?:
16309             1[2-9]|
16310             21\d{2}
16311           )\d{5}
16312         </nationalNumberPattern>
16313         <exampleNumber>1234567</exampleNumber>
16314       </fixedLine>
16315       <mobile>
16316         <nationalNumberPattern>
16317           (?:
16318             111|
16319             77\d|
16320             88\d|
16321             99\d
16322           )\d{6}
16323         </nationalNumberPattern>
16324         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16325         <exampleNumber>991234567</exampleNumber>
16326       </mobile>
16327     </territory>
16328
16329     <!-- Mexico -->
16330     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
16331                nationalPrefix="01"
16332                nationalPrefixForParsing="0[12]|04[45](\d{10})"
16333                nationalPrefixTransformRule="1$1"
16334                nationalPrefixFormattingRule="$NP $FG"
16335                nationalPrefixOptionalWhenFormatting="true"
16336                leadingZeroPossible="true" mobileNumberPortableRegion="true">
16337       <references>
16338         <sourceUrl>http://www.itu.int/oth/T020200008A/en</sourceUrl>
16339         <sourceUrl>http://en.wikipedia.org/wiki/%2B52</sourceUrl>
16340         <sourceUrl>http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico</sourceUrl>
16341         <sourceUrl>http://en.wikipedia.org/wiki/Toll-free_telephone_number</sourceUrl>
16342       </references>
16343       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
16344            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
16345            numbers, regardless of whether they are written in international format (leading 1) or
16346            national format (leading 044/045), will be parsed into the same form. -->
16347       <availableFormats>
16348         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
16349           <leadingDigits>
16350             33|
16351             55|
16352             81
16353           </leadingDigits>
16354           <format>$1 $2 $3</format>
16355         </numberFormat>
16356         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16357           <leadingDigits>
16358             [2467]|
16359             3[12457-9]|
16360             5[89]|
16361             8[02-9]|
16362             9[0-35-9]
16363           </leadingDigits>
16364           <format>$1 $2 $3</format>
16365         </numberFormat>
16366         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
16367           <leadingDigits>
16368             1(?:
16369               33|
16370               55|
16371               81
16372             )
16373           </leadingDigits>
16374           <format>044 $2 $3 $4</format>
16375           <intlFormat>$1 $2 $3 $4</intlFormat>
16376         </numberFormat>
16377         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
16378           <leadingDigits>
16379             1(?:
16380               [2467]|
16381               3[12457-9]|
16382               5[89]|
16383               8[2-9]|
16384               9[1-35-9]
16385             )
16386           </leadingDigits>
16387           <format>044 $2 $3 $4</format>
16388           <intlFormat>$1 $2 $3 $4</intlFormat>
16389         </numberFormat>
16390       </availableFormats>
16391       <generalDesc>
16392         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
16393         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
16394       </generalDesc>
16395       <fixedLine>
16396         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
16397         <nationalNumberPattern>
16398           (?:
16399             33|
16400             55|
16401             81
16402           )\d{8}|
16403           (?:
16404             2(?:
16405               2[2-9]|
16406               3[1-35-8]|
16407               4[13-9]|
16408               7[1-689]|
16409               8[1-578]|
16410               9[467]
16411             )|
16412             3(?:
16413               1[1-79]|
16414               [2458][1-9]|
16415               7[1-8]|
16416               9[1-5]
16417             )|
16418             4(?:
16419               1[1-57-9]|
16420               [24-6][1-9]|
16421               [37][1-8]|
16422               8[1-35-9]|
16423               9[2-689]
16424             )|
16425             5(?:
16426               88|
16427               9[1-79]
16428             )|
16429             6(?:
16430               1[2-68]|
16431               [234][1-9]|
16432               5[1-3689]|
16433               6[12457-9]|
16434               7[1-7]|
16435               8[67]|
16436               9[4-8]
16437             )|
16438             7(?:
16439               [13467][1-9]|
16440               2[1-8]|
16441               5[13-9]|
16442               8[1-69]|
16443               9[17]
16444             )|
16445             8(?:
16446               2[13-689]|
16447               3[1-6]|
16448               4[124-6]|
16449               6[1246-9]|
16450               7[1-378]|
16451               9[12479]
16452             )|
16453             9(?:
16454               1[346-9]|
16455               2[1-4]|
16456               3[2-46-8]|
16457               5[1348]|
16458               [69][1-9]|
16459               7[12]|
16460               8[1-8]
16461             )
16462           )\d{7}
16463         </nationalNumberPattern>
16464         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16465         <exampleNumber>2221234567</exampleNumber>
16466       </fixedLine>
16467       <mobile>
16468         <nationalNumberPattern>
16469           1(?:
16470             (?:
16471               33|
16472               55|
16473               81
16474             )\d{8}|
16475             (?:
16476               2(?:
16477                 2[2-9]|
16478                 3[1-35-8]|
16479                 4[13-9]|
16480                 7[1-689]|
16481                 8[1-578]|
16482                 9[467]
16483               )|
16484               3(?:
16485                 1[1-79]|
16486                 [2458][1-9]|
16487                 7[1-8]|
16488                 9[1-5]
16489               )|
16490               4(?:
16491                 1[1-57-9]|
16492                 [24-6][1-9]|
16493                 [37][1-8]|
16494                 8[1-35-9]|
16495                 9[2-689]
16496               )|
16497               5(?:
16498                 88|
16499                 9[1-79]
16500               )|
16501               6(?:
16502                 1[2-68]|
16503                 [2-4][1-9]|
16504                 5[1-3689]|
16505                 6[12457-9]|
16506                 7[1-7]|
16507                 8[67]|
16508                 9[4-8]
16509               )|
16510               7(?:
16511                 [13467][1-9]|
16512                 2[1-8]|
16513                 5[13-9]|
16514                 8[1-69]|
16515                 9[17]
16516               )|
16517               8(?:
16518                 2[13-689]|
16519                 3[1-6]|
16520                 4[124-6]|
16521                 6[1246-9]|
16522                 7[1-378]|
16523                 9[12479]
16524               )|
16525               9(?:
16526                 1[346-9]|
16527                 2[1-4]|
16528                 3[2-46-8]|
16529                 5[1348]|
16530                 [69][1-9]|
16531                 7[12]|
16532                 8[1-8]
16533               )
16534             )\d{7}
16535           )
16536         </nationalNumberPattern>
16537         <possibleNumberPattern>\d{11}</possibleNumberPattern>
16538         <exampleNumber>12221234567</exampleNumber>
16539       </mobile>
16540       <tollFree>
16541         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
16542         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16543         <exampleNumber>8001234567</exampleNumber>
16544       </tollFree>
16545       <premiumRate>
16546         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16547         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16548         <exampleNumber>9001234567</exampleNumber>
16549       </premiumRate>
16550     </territory>
16551
16552     <!-- Malaysia -->
16553     <territory id="MY" countryCode="60" internationalPrefix="00"
16554                nationalPrefix="0" mobileNumberPortableRegion="true">
16555       <references>
16556         <sourceUrl>http://en.wikipedia.org/wiki/%2B60</sourceUrl>
16557         <sourceUrl>http://www.skmm.gov.my</sourceUrl>
16558       </references>
16559       <availableFormats>
16560         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16561           pattern="([4-79])(\d{3})(\d{4})">
16562           <leadingDigits>[4-79]</leadingDigits>
16563           <format>$1-$2 $3</format>
16564         </numberFormat>
16565         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16566           pattern="(3)(\d{4})(\d{4})">
16567           <leadingDigits>3</leadingDigits>
16568           <format>$1-$2 $3</format>
16569         </numberFormat>
16570         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16571           pattern="([18]\d)(\d{3})(\d{3,4})">
16572           <leadingDigits>
16573             1[02-46-9][1-9]|
16574             8
16575           </leadingDigits>
16576           <format>$1-$2 $3</format>
16577         </numberFormat>
16578         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
16579           <leadingDigits>1[36-8]0</leadingDigits>
16580           <format>$1-$2-$3-$4</format>
16581         </numberFormat>
16582         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16583           pattern="(11)(\d{4})(\d{4})">
16584           <leadingDigits>11</leadingDigits>
16585           <format>$1-$2 $3</format>
16586         </numberFormat>
16587         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16588           pattern="(15[49])(\d{3})(\d{4})">
16589           <leadingDigits>15</leadingDigits>
16590           <format>$1-$2 $3</format>
16591         </numberFormat>
16592       </availableFormats>
16593       <generalDesc>
16594         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
16595         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
16596       </generalDesc>
16597       <fixedLine>
16598         <nationalNumberPattern>
16599           (?:
16600             3[2-9]\d|
16601             [4-9][2-9]
16602           )\d{6}
16603         </nationalNumberPattern>
16604         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
16605         <exampleNumber>323456789</exampleNumber>
16606       </fixedLine>
16607       <mobile>
16608         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
16609              is possible to send SMSs (and receive them) from numbers in this block, so we are
16610              listing them as mobile. -->
16611         <nationalNumberPattern>
16612           1(?:
16613             1[1-3]\d{2}|
16614             [02-4679][2-9]\d|
16615             59\d{2}|
16616             8(?:
16617               1[23]|
16618               [2-9]\d
16619             )
16620           )\d{5}
16621         </nationalNumberPattern>
16622         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
16623         <exampleNumber>123456789</exampleNumber>
16624       </mobile>
16625       <tollFree>
16626         <!-- http://www.skmm.gov.my/skmmgovmy/media/General/pdf/Special_Service_Number.pdf -->
16627         <nationalNumberPattern>1[378]00\d{6}</nationalNumberPattern>
16628         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16629         <exampleNumber>1300123456</exampleNumber>
16630       </tollFree>
16631       <premiumRate>
16632         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
16633         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16634         <exampleNumber>1600123456</exampleNumber>
16635       </premiumRate>
16636       <voip>
16637         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
16638         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16639         <exampleNumber>1541234567</exampleNumber>
16640       </voip>
16641     </territory>
16642
16643     <!-- Mozambique -->
16644     <territory id="MZ" countryCode="258" internationalPrefix="00">
16645       <references>
16646         <sourceUrl>http://www.itu.int/oth/T0202000091/en</sourceUrl>
16647       </references>
16648       <availableFormats>
16649         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
16650           <leadingDigits>
16651             2|
16652             8[2-7]
16653           </leadingDigits>
16654           <format>$1 $2 $3</format>
16655         </numberFormat>
16656         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
16657           <leadingDigits>80</leadingDigits>
16658           <format>$1 $2 $3</format>
16659         </numberFormat>
16660       </availableFormats>
16661       <generalDesc>
16662         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
16663         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16664       </generalDesc>
16665       <fixedLine>
16666         <nationalNumberPattern>
16667           2(?:
16668             [1346]\d|
16669             5[0-2]|
16670             [78][12]|
16671             93
16672           )\d{5}
16673         </nationalNumberPattern>
16674         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16675         <exampleNumber>21123456</exampleNumber>
16676       </fixedLine>
16677       <mobile>
16678         <nationalNumberPattern>8[23467]\d{7}</nationalNumberPattern>
16679         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16680         <exampleNumber>821234567</exampleNumber>
16681       </mobile>
16682       <tollFree>
16683         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
16684              examples. -->
16685         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
16686         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16687         <exampleNumber>800123456</exampleNumber>
16688       </tollFree>
16689       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
16690            a 9 are premium rate, but no online examples can be found of any of these so they are
16691            omitted for the time-being. -->
16692     </territory>
16693
16694     <!-- Namibia -->
16695     <territory id="NA" countryCode="264" internationalPrefix="00"
16696                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16697       <references>
16698         <sourceUrl>http://www.itu.int/oth/T0202000093/en</sourceUrl>
16699       </references>
16700       <availableFormats>
16701         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
16702           <leadingDigits>8[1235]</leadingDigits>
16703           <format>$1 $2 $3</format>
16704         </numberFormat>
16705         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
16706           <leadingDigits>6</leadingDigits>
16707           <format>$1 $2 $3</format>
16708         </numberFormat>
16709         <numberFormat pattern="(88)(\d{3})(\d{3})">
16710           <leadingDigits>88</leadingDigits>
16711           <format>$1 $2 $3</format>
16712         </numberFormat>
16713         <numberFormat pattern="(870)(\d{3})(\d{3})">
16714           <leadingDigits>870</leadingDigits>
16715           <format>$1 $2 $3</format>
16716         </numberFormat>
16717       </availableFormats>
16718       <generalDesc>
16719         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
16720         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16721       </generalDesc>
16722       <fixedLine>
16723         <!-- Includes VSAT service. -->
16724         <nationalNumberPattern>
16725           6(?:
16726             1(?:
16727               17|
16728               2(?:
16729                 [0189]\d|
16730                 [2-6]|
16731                 7\d?
16732               )|
16733               3(?:
16734                 [01378]|
16735                 2\d
16736               )|
16737               4[01]|
16738               69|
16739               7[014]
16740             )|
16741             2(?:
16742               17|
16743               5(?:
16744                 [0-36-8]|
16745                 4\d?
16746               )|
16747               69|
16748               70
16749             )|
16750             3(?:
16751               17|
16752               2(?:
16753                 [0237]\d?|
16754                 [14-689]
16755               )|
16756               34|
16757               6[29]|
16758               7[01]|
16759               81
16760             )|
16761             4(?:
16762               17|
16763               2(?:
16764                 [012]|
16765                 7?
16766               )|
16767               4(?:
16768                 [06]|
16769                 1\d
16770               )|
16771               5(?:
16772                 [01357]|
16773                 [25]\d?
16774               )|
16775               69|
16776               7[01]
16777             )|
16778             5(?:
16779               17|
16780               2(?:
16781                 [0459]|
16782                 [23678]\d?
16783               )|
16784               69|
16785               7[01]
16786             )|
16787             6(?:
16788               17|
16789               2(?:
16790                 5|
16791                 6\d?
16792               )|
16793               38|
16794               42|
16795               69|
16796               7[01]
16797             )|
16798             7(?:
16799               17|
16800               2(?:
16801                 [569]|
16802                 [234]\d?
16803               )|
16804               3(?:
16805                 0\d?|
16806                 [13]
16807               )|
16808               69|
16809               7[01]
16810             )
16811           )\d{4}
16812         </nationalNumberPattern>
16813         <exampleNumber>61221234</exampleNumber>
16814       </fixedLine>
16815       <mobile>
16816         <!-- Includes the Switch CDMA Service. -->
16817         <nationalNumberPattern>
16818           (?:
16819             60|
16820             8[125]
16821           )\d{7}
16822         </nationalNumberPattern>
16823         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16824         <exampleNumber>811234567</exampleNumber>
16825       </mobile>
16826       <premiumRate>
16827         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
16828         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16829         <exampleNumber>870123456</exampleNumber>
16830       </premiumRate>
16831       <voip>
16832         <!-- Including virtual telephone and VOIP services. -->
16833         <nationalNumberPattern>
16834           8(?:
16835             3\d{2}|
16836             86
16837           )\d{5}
16838         </nationalNumberPattern>
16839         <exampleNumber>88612345</exampleNumber>
16840       </voip>
16841     </territory>
16842
16843     <!-- New Caledonia (Territoire français d'outre-mer) -->
16844     <territory id="NC" countryCode="687" internationalPrefix="00">
16845       <references>
16846         <sourceUrl>http://www.itu.int/oth/T0202000098/en</sourceUrl>
16847         <sourceUrl>http://www.opt.nc</sourceUrl>
16848       </references>
16849       <availableFormats>
16850         <!-- From http://www.1012.nc, the local yellow pages. -->
16851         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
16852           <!-- We exclude short-codes here so they are formatted as a block -->
16853           <leadingDigits>
16854             [2-46-9]|
16855             5[0-4]
16856           </leadingDigits>
16857           <format>$1.$2.$3</format>
16858         </numberFormat>
16859       </availableFormats>
16860       <generalDesc>
16861         <nationalNumberPattern>[2-57-9]\d{5}</nationalNumberPattern>
16862         <possibleNumberPattern>\d{6}</possibleNumberPattern>
16863       </generalDesc>
16864       <fixedLine>
16865         <!-- Including the 88 prefix for public payphones. -->
16866         <nationalNumberPattern>
16867           (?:
16868             2[03-9]|
16869             3[0-5]|
16870             4[1-7]|
16871             88
16872           )\d{4}
16873         </nationalNumberPattern>
16874         <exampleNumber>201234</exampleNumber>
16875       </fixedLine>
16876       <mobile>
16877         <nationalNumberPattern>
16878           (?:
16879             5[0-4]|
16880             [79]\d|
16881             8[0-79]
16882           )\d{4}
16883         </nationalNumberPattern>
16884         <exampleNumber>751234</exampleNumber>
16885       </mobile>
16886       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
16887       <!-- Note that OPT lists 3631 as a free short number for caller ID services, but the ITU
16888            document says that all 36 numbers are 6 digits. See ShortNumberMetadata.xml for more. -->
16889       <premiumRate>
16890         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
16891         <exampleNumber>366711</exampleNumber>
16892       </premiumRate>
16893     </territory>
16894
16895     <!-- Niger -->
16896     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
16897       <references>
16898         <sourceUrl>http://www.itu.int/oth/T020200009B/en</sourceUrl>
16899       </references>
16900       <availableFormats>
16901         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
16902           <leadingDigits>
16903             [289]|
16904             09
16905           </leadingDigits>
16906           <format>$1 $2 $3 $4</format>
16907         </numberFormat>
16908         <numberFormat pattern="(08)(\d{3})(\d{3})">
16909           <leadingDigits>08</leadingDigits>
16910           <format>$1 $2 $3</format>
16911         </numberFormat>
16912       </availableFormats>
16913       <generalDesc>
16914         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
16915         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16916       </generalDesc>
16917       <fixedLine>
16918         <!-- Adding 20 61 from online numbers. -->
16919         <nationalNumberPattern>
16920           2(?:
16921             0(?:
16922               20|
16923               3[1-7]|
16924               4[134]|
16925               5[14]|
16926               6[14578]|
16927               7[1-578]
16928             )|
16929             1(?:
16930               4[145]|
16931               5[14]|
16932               6[14-68]|
16933               7[169]|
16934               88
16935             )
16936           )\d{4}
16937         </nationalNumberPattern>
16938         <exampleNumber>20201234</exampleNumber>
16939       </fixedLine>
16940       <mobile>
16941         <!-- Added 90, 91, 92, 95, 97, 98 & 99 from online data. Airtel have confirmed that they use the
16942              89 and 97 prefixes, and Orange use 92. MOOV started using 95 in Jan 2014. -->
16943         <nationalNumberPattern>
16944           (?:
16945             89|
16946             9\d
16947           )\d{6}
16948         </nationalNumberPattern>
16949         <exampleNumber>93123456</exampleNumber>
16950       </mobile>
16951       <tollFree>
16952         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
16953         <exampleNumber>08123456</exampleNumber>
16954       </tollFree>
16955       <premiumRate>
16956         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
16957         <exampleNumber>09123456</exampleNumber>
16958       </premiumRate>
16959     </territory>
16960
16961     <!-- Norfolk Island -->
16962     <!-- Including numbers for Australian Antarctic stations. -->
16963     <territory id="NF" countryCode="672" internationalPrefix="00">
16964       <references>
16965         <sourceUrl>http://www.itu.int/oth/T020200009D/en</sourceUrl>
16966       </references>
16967       <availableFormats>
16968         <numberFormat pattern="(\d{2})(\d{4})">
16969            <leadingDigits>1</leadingDigits>
16970           <format>$1 $2</format>
16971         </numberFormat>
16972         <numberFormat pattern="(\d)(\d{5})">
16973           <leadingDigits>3</leadingDigits>
16974           <format>$1 $2</format>
16975         </numberFormat>
16976       </availableFormats>
16977       <generalDesc>
16978         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
16979         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
16980       </generalDesc>
16981       <fixedLine>
16982         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
16983              connect after we tried calling them. -->
16984         <nationalNumberPattern>
16985           (?:
16986             1(?:
16987               06|
16988               17|
16989               28|
16990               39
16991             )|
16992             3[012]\d
16993           )\d{3}
16994         </nationalNumberPattern>
16995         <exampleNumber>106609</exampleNumber>
16996       </fixedLine>
16997       <mobile>
16998         <nationalNumberPattern>38\d{4}</nationalNumberPattern>
16999         <exampleNumber>381234</exampleNumber>
17000       </mobile>
17001     </territory>
17002
17003     <!-- Nigeria -->
17004     <territory id="NG" countryCode="234" internationalPrefix="009"
17005                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17006                mobileNumberPortableRegion="true">
17007       <references>
17008         <sourceUrl>http://www.itu.int/oth/T020200009C/en</sourceUrl>
17009       </references>
17010       <availableFormats>
17011         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
17012           <leadingDigits>[129]</leadingDigits>
17013           <format>$1 $2 $3</format>
17014         </numberFormat>
17015         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
17016           <leadingDigits>
17017             [3-6]|
17018             7(?:
17019               [1-79]|
17020               0[1-9]
17021             )|
17022             8[2-9]
17023           </leadingDigits>
17024           <format>$1 $2 $3</format>
17025         </numberFormat>
17026         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17027           <leadingDigits>
17028             70|
17029             8[01]|
17030             90[239]
17031           </leadingDigits>
17032           <format>$1 $2 $3</format>
17033         </numberFormat>
17034         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17035           <leadingDigits>[78]00</leadingDigits>
17036           <format>$1 $2 $3</format>
17037         </numberFormat>
17038         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
17039           <leadingDigits>[78]00</leadingDigits>
17040           <format>$1 $2 $3</format>
17041         </numberFormat>
17042         <numberFormat pattern="(78)(\d{2})(\d{3})">
17043           <leadingDigits>78</leadingDigits>
17044           <format>$1 $2 $3</format>
17045         </numberFormat>
17046       </availableFormats>
17047       <generalDesc>
17048         <nationalNumberPattern>
17049           [1-6]\d{5,8}|
17050           9\d{5,9}|
17051           [78]\d{5,13}
17052         </nationalNumberPattern>
17053         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
17054       </generalDesc>
17055       <fixedLine>
17056         <nationalNumberPattern>
17057           [12]\d{6,7}|
17058           9(?:
17059             0[3-9]|
17060             [1-9]\d
17061           )\d{5}|
17062           (?:
17063             3\d|
17064             4[023568]|
17065             5[02368]|
17066             6[02-469]|
17067             7[4-69]|
17068             8[2-9]
17069           )\d{6}|
17070           (?:
17071             4[47]|
17072             5[14579]|
17073             6[1578]|
17074             7[0-357]
17075           )\d{5,6}|
17076           (?:
17077             78|
17078             41
17079           )\d{5}
17080         </nationalNumberPattern>
17081         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
17082         <exampleNumber>12345678</exampleNumber>
17083       </fixedLine>
17084       <mobile>
17085         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17086              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17087              Starcomms have apparently, according to the company, been used for mobile numbers too,
17088              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17089              903 has been added for MTN and 909 has been added for Etisalat. -->
17090         <nationalNumberPattern>
17091           (?:
17092             1(?:
17093               7[34]\d|
17094               8(?:
17095                 04|
17096                 [124579]\d|
17097                 8[0-3]
17098               )|
17099               95\d
17100             )|
17101             287[0-7]|
17102             3(?:
17103               18[1-8]|
17104               88[0-7]|
17105               9(?:
17106                 8[5-9]|
17107                 6[1-5]
17108               )
17109             )|
17110             4(?:
17111               28[0-2]|
17112               6(?:
17113                 7[1-9]|
17114                 8[02-47]
17115               )|
17116               88[0-2]
17117             )|
17118             5(?:
17119               2(?:
17120                 7[7-9]|
17121                 8\d
17122               )|
17123               38[1-79]|
17124               48[0-7]|
17125               68[4-7]
17126             )|
17127             6(?:
17128               2(?:
17129                 7[7-9]|
17130                 8\d
17131               )|
17132               4(?:
17133                 3[7-9]|
17134                 [68][129]|
17135                 7[04-69]|
17136                 9[1-8]
17137               )|
17138               58[0-2]|
17139               98[7-9]
17140             )|
17141             7(?:
17142               38[0-7]|
17143               69[1-8]|
17144               78[2-4]
17145             )|
17146             8(?:
17147               28[3-9]|
17148               38[0-2]|
17149               4(?:
17150                 2[12]|
17151                 3[147-9]|
17152                 5[346]|
17153                 7[4-9]|
17154                 8[014-689]|
17155                 90
17156               )|
17157               58[1-8]|
17158               78[2-9]|
17159               88[5-7]
17160             )|
17161             98[07]\d
17162           )\d{4}|
17163           (?:
17164             70(?:
17165               [13-9]\d|
17166               2[1-9]
17167             )|
17168             8(?:
17169               0[2-9]|
17170               1\d
17171             )\d|
17172             90[239]\d
17173           )\d{6}
17174         </nationalNumberPattern>
17175         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17176         <exampleNumber>8021234567</exampleNumber>
17177       </mobile>
17178       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
17179       <tollFree>
17180         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
17181         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17182         <exampleNumber>80017591759</exampleNumber>
17183       </tollFree>
17184       <uan>
17185         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
17186         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17187         <exampleNumber>7001234567</exampleNumber>
17188       </uan>
17189     </territory>
17190
17191     <!-- Nicaragua -->
17192     <territory id="NI" countryCode="505" internationalPrefix="00">
17193       <references>
17194         <sourceUrl>http://www.itu.int/oth/T020200009A/en</sourceUrl>
17195       </references>
17196       <availableFormats>
17197         <numberFormat pattern="(\d{4})(\d{4})">
17198           <format>$1 $2</format>
17199         </numberFormat>
17200       </availableFormats>
17201       <generalDesc>
17202         <nationalNumberPattern>[12578]\d{7}</nationalNumberPattern>
17203         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17204       </generalDesc>
17205       <fixedLine>
17206         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
17207         <exampleNumber>21234567</exampleNumber>
17208       </fixedLine>
17209       <mobile>
17210         <!-- 55[0-7], 57, 58 and 7[5-8] were added from bug reports/numbers found online. -->
17211         <nationalNumberPattern>
17212           5(?:
17213             5[0-7]\d{5}|
17214             [78]\d{6}
17215           )|
17216           7[5-8]\d{6}|
17217           8\d{7}
17218         </nationalNumberPattern>
17219         <exampleNumber>81234567</exampleNumber>
17220       </mobile>
17221       <tollFree>
17222         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
17223         <exampleNumber>18001234</exampleNumber>
17224       </tollFree>
17225     </territory>
17226
17227     <!-- Netherlands -->
17228     <territory id="NL" countryCode="31" internationalPrefix="00"
17229                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17230                mobileNumberPortableRegion="true">
17231       <references>
17232         <sourceUrl>http://en.wikipedia.org/wiki/%2B31</sourceUrl>
17233         <sourceUrl>http://www.opta.nl/en/numbers/search-for-numbers</sourceUrl>
17234       </references>
17235       <availableFormats>
17236         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
17237           <leadingDigits>
17238             1[035]|
17239             2[0346]|
17240             3[03568]|
17241             4[0356]|
17242             5[0358]|
17243             7|
17244             8[4578]
17245           </leadingDigits>
17246           <format>$1 $2 $3</format>
17247         </numberFormat>
17248         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
17249           <leadingDigits>
17250             1[16-8]|
17251             2[259]|
17252             3[124]|
17253             4[17-9]|
17254             5[124679]
17255           </leadingDigits>
17256           <format>$1 $2 $3</format>
17257         </numberFormat>
17258         <numberFormat pattern="(6)(\d{8})">
17259           <leadingDigits>6[0-57-9]</leadingDigits>
17260           <format>$1 $2</format>
17261         </numberFormat>
17262         <numberFormat pattern="(66)(\d{7})">
17263           <leadingDigits>66</leadingDigits>
17264           <format>$1 $2</format>
17265         </numberFormat>
17266         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
17267           <leadingDigits>14</leadingDigits>
17268           <format>$1 $2</format>
17269         </numberFormat>
17270         <numberFormat pattern="([89]0\d)(\d{4,7})">
17271           <leadingDigits>
17272             80|
17273             9
17274           </leadingDigits>
17275           <format>$1 $2</format>
17276         </numberFormat>
17277       </availableFormats>
17278       <generalDesc>
17279         <nationalNumberPattern>
17280           1\d{4,8}|
17281           [2-7]\d{8}|
17282           [89]\d{6,9}
17283         </nationalNumberPattern>
17284         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
17285       </generalDesc>
17286       <noInternationalDialling>
17287         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
17288         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17289       </noInternationalDialling>
17290       <fixedLine>
17291         <nationalNumberPattern>
17292           (?:
17293             1[0135-8]|
17294             2[02-69]|
17295             3[0-68]|
17296             4[0135-9]|
17297             [57]\d|
17298             8[478]
17299           )\d{7}
17300         </nationalNumberPattern>
17301         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17302         <exampleNumber>101234567</exampleNumber>
17303       </fixedLine>
17304       <mobile>
17305         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
17306         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17307         <exampleNumber>612345678</exampleNumber>
17308       </mobile>
17309       <pager>
17310         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
17311         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17312         <exampleNumber>662345678</exampleNumber>
17313       </pager>
17314       <tollFree>
17315         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
17316         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17317         <exampleNumber>8001234</exampleNumber>
17318       </tollFree>
17319       <premiumRate>
17320         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
17321         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17322         <exampleNumber>9061234</exampleNumber>
17323       </premiumRate>
17324       <voip>
17325         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
17326         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17327         <exampleNumber>851234567</exampleNumber>
17328       </voip>
17329       <uan>
17330         <!-- These numbers are used for local government. They are formed by the appending the local
17331              dialling code (including the national prefix 0) after the leading digits "14". -->
17332         <nationalNumberPattern>
17333           140(?:
17334             1(?:
17335               [035]|
17336               [16-8]\d
17337             )|
17338             2(?:
17339               [0346]|
17340               [259]\d
17341             )|
17342             3(?:
17343               [03568]|
17344               [124]\d
17345             )|
17346             4(?:
17347               [0356]|
17348               [17-9]\d
17349             )|
17350             5(?:
17351               [0358]|
17352               [124679]\d
17353             )|
17354             7\d|
17355             8[458]
17356           )
17357         </nationalNumberPattern>
17358         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17359         <exampleNumber>14020</exampleNumber>
17360       </uan>
17361     </territory>
17362
17363     <!-- Norway -->
17364     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
17365     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
17366                mainCountryForCode="true" mobileNumberPortableRegion="true">
17367       <references>
17368         <sourceUrl>http://www.npt.no/npt/numsys/E.164.pdf</sourceUrl>
17369       </references>
17370       <availableFormats>
17371         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
17372           <leadingDigits>[489]</leadingDigits>
17373           <format>$1 $2 $3</format>
17374         </numberFormat>
17375         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
17376           <leadingDigits>[235-7]</leadingDigits>
17377           <format>$1 $2 $3 $4</format>
17378         </numberFormat>
17379       </availableFormats>
17380       <generalDesc>
17381         <nationalNumberPattern>
17382           0\d{4}|
17383           [2-9]\d{7}
17384         </nationalNumberPattern>
17385         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
17386       </generalDesc>
17387       <fixedLine>
17388         <!-- Excludes Svalbard fixed-line numbers. -->
17389         <nationalNumberPattern>
17390           (?:
17391             2[1-4]|
17392             3[1-3578]|
17393             5[1-35-7]|
17394             6[1-4679]|
17395             7[0-8]
17396           )\d{6}
17397         </nationalNumberPattern>
17398         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17399         <exampleNumber>21234567</exampleNumber>
17400       </fixedLine>
17401       <mobile>
17402         <nationalNumberPattern>
17403           (?:
17404             4[015-8]|
17405             5[89]|
17406             9\d
17407           )\d{6}
17408         </nationalNumberPattern>
17409         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17410         <exampleNumber>41234567</exampleNumber>
17411       </mobile>
17412       <tollFree>
17413         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
17414         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17415         <exampleNumber>80012345</exampleNumber>
17416       </tollFree>
17417       <premiumRate>
17418         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
17419         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17420         <exampleNumber>82012345</exampleNumber>
17421       </premiumRate>
17422       <sharedCost>
17423         <nationalNumberPattern>
17424           810(?:
17425             0[0-6]|
17426             [2-8]\d
17427           )\d{3}
17428         </nationalNumberPattern>
17429         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17430         <exampleNumber>81021234</exampleNumber>
17431       </sharedCost>
17432       <personalNumber>
17433         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
17434         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17435         <exampleNumber>88012345</exampleNumber>
17436       </personalNumber>
17437       <voip>
17438         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
17439         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17440         <exampleNumber>85012345</exampleNumber>
17441       </voip>
17442       <uan>
17443         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
17444         <nationalNumberPattern>
17445           0\d{4}|
17446           81(?:
17447             0(?:
17448               0[7-9]|
17449               1\d
17450             )|
17451             5\d{2}
17452           )\d{3}
17453         </nationalNumberPattern>
17454         <exampleNumber>01234</exampleNumber>
17455       </uan>
17456       <voicemail>
17457         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
17458         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17459         <exampleNumber>81212345</exampleNumber>
17460       </voicemail>
17461     </territory>
17462
17463     <!-- Nepal -->
17464     <territory id="NP" countryCode="977" internationalPrefix="00"
17465                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17466       <references>
17467         <sourceUrl>http://www.itu.int/oth/T0202000095/en</sourceUrl>
17468         <sourceUrl>http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php</sourceUrl>
17469       </references>
17470       <availableFormats>
17471         <!-- Formatting patterns taken from pages like http://www.nepalgov.gov.np -->
17472         <numberFormat pattern="(1)(\d{7})">
17473           <leadingDigits>1[2-6]</leadingDigits>
17474           <format>$1-$2</format>
17475         </numberFormat>
17476         <numberFormat pattern="(\d{2})(\d{6})">
17477           <leadingDigits>
17478             1[01]|
17479             [2-8]|
17480             9(?:
17481               [1-69]|
17482               7[15-9]
17483             )
17484           </leadingDigits>
17485           <format>$1-$2</format>
17486         </numberFormat>
17487         <numberFormat pattern="(9\d{2})(\d{7})">
17488           <leadingDigits>
17489             9(?:
17490               7[45]|
17491               8
17492             )
17493             </leadingDigits>
17494           <format>$1-$2</format>
17495         </numberFormat>
17496       </availableFormats>
17497       <generalDesc>
17498         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
17499              numbers that have the country code prefixed. -->
17500         <nationalNumberPattern>
17501           [1-8]\d{7}|
17502           9(?:
17503             [1-69]\d{6}|
17504             7[2-6]\d{5,7}|
17505             8\d{8}
17506           )
17507         </nationalNumberPattern>
17508         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17509       </generalDesc>
17510       <fixedLine>
17511         <!-- Added (1) 2XXXXXX and (88) from numbers found online. -->
17512         <nationalNumberPattern>
17513           (?:
17514             1[0124-6]|
17515             2[13-79]|
17516             3[135-8]|
17517             4[146-9]|
17518             5[135-7]|
17519             6[13-9]|
17520             7[15-9]|
17521             8[1-46-9]|
17522             9[1-79]
17523           )\d{6}
17524         </nationalNumberPattern>
17525         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17526         <exampleNumber>14567890</exampleNumber>
17527       </fixedLine>
17528       <!-- There is no definitive source of information for mobile numbers in Nepal. The information
17529            here is collected by searching the Internet. -->
17530       <mobile>
17531         <nationalNumberPattern>
17532           9(?:
17533             7[45]|
17534             8[01456]
17535           )\d{7}
17536         </nationalNumberPattern>
17537         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17538         <exampleNumber>9841234567</exampleNumber>
17539       </mobile>
17540       <!-- No information on other types of phone numbers for Nepal has been found. -->
17541     </territory>
17542
17543     <!-- Nauru -->
17544     <territory id="NR" countryCode="674" internationalPrefix="00">
17545       <references>
17546         <sourceUrl>http://www.itu.int/oth/T0202000094/en</sourceUrl>
17547         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru</sourceUrl>
17548       </references>
17549       <availableFormats>
17550         <numberFormat pattern="(\d{3})(\d{4})">
17551           <format>$1 $2</format>
17552         </numberFormat>
17553       </availableFormats>
17554       <generalDesc>
17555         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
17556         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17557       </generalDesc>
17558       <fixedLine>
17559         <nationalNumberPattern>
17560           (?:
17561             444|
17562             888
17563           )\d{4}
17564         </nationalNumberPattern>
17565         <exampleNumber>4441234</exampleNumber>
17566       </fixedLine>
17567       <mobile>
17568         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
17569         <exampleNumber>5551234</exampleNumber>
17570       </mobile>
17571     </territory>
17572
17573     <!-- Niue -->
17574     <territory id="NU" countryCode="683" internationalPrefix="00">
17575       <references>
17576         <sourceUrl>http://www.itu.int/oth/T02020000EC/en</sourceUrl>
17577         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue</sourceUrl>
17578       </references>
17579       <!-- Numbers are always formatted as a block. -->
17580       <generalDesc>
17581         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
17582         <possibleNumberPattern>\d{4}</possibleNumberPattern>
17583       </generalDesc>
17584       <fixedLine>
17585         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
17586         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
17587         <exampleNumber>4002</exampleNumber>
17588       </fixedLine>
17589       <mobile>
17590         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
17591         <exampleNumber>1234</exampleNumber>
17592       </mobile>
17593     </territory>
17594
17595     <!-- New Zealand -->
17596     <!-- Includes Ross Dependency, Antarctica -->
17597     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
17598          numbers and 050 "Nation-Wide Service". -->
17599     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
17600                preferredInternationalPrefix="00" nationalPrefix="0"
17601                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
17602       <references>
17603         <sourceUrl>http://www.itu.int/oth/T0202000099/en</sourceUrl>
17604       </references>
17605       <availableFormats>
17606         <!-- Pattern for fixed-line formats. -->
17607         <numberFormat pattern="([34679])(\d{3})(\d{4})">
17608           <leadingDigits>
17609             [3467]|
17610             9[1-9]
17611           </leadingDigits>
17612           <format>$1-$2 $3</format>
17613         </numberFormat>
17614         <!-- Area code for NZ's Scott Base, in Antarctica. -->
17615         <numberFormat pattern="(24099)(\d{3})">
17616           <leadingDigits>240</leadingDigits>
17617           <leadingDigits>2409</leadingDigits>
17618           <leadingDigits>24099</leadingDigits>
17619           <format>$1 $2</format>
17620         </numberFormat>
17621         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
17622              length. -->
17623         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
17624         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
17625           <leadingDigits>21</leadingDigits>
17626           <format>$1 $2 $3</format>
17627         </numberFormat>
17628         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
17629         <numberFormat pattern="(\d{2})(\d{3})(\d{3,5})">
17630           <leadingDigits>
17631             2(?:
17632               1[1-9]|
17633               [69]|
17634               7[0-35-9]
17635             )|
17636             86
17637           </leadingDigits>
17638           <format>$1 $2 $3</format>
17639         </numberFormat>
17640         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
17641              than writing the first group as 022X based on Google web searches, and is used by
17642              2Degrees themselves. See formatting on http://www.2degreesmobile.co.nz for an example
17643              of the latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
17644         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
17645           <leadingDigits>2[028]</leadingDigits>
17646           <format>$1 $2 $3</format>
17647         </numberFormat>
17648         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17649           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900. -->
17650           <leadingDigits>
17651             2(?:
17652               10|
17653               74
17654             )|
17655             5|
17656             [89]0
17657           </leadingDigits>
17658           <format>$1 $2 $3</format>
17659         </numberFormat>
17660       </availableFormats>
17661       <generalDesc>
17662         <nationalNumberPattern>
17663           6[235-9]\d{6}|
17664           [2-57-9]\d{7,10}
17665         </nationalNumberPattern>
17666         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
17667       </generalDesc>
17668       <fixedLine>
17669         <!-- 07 788 was assigned to Voxbox according to
17670              http://www.nad.org.nz/07GeographicalCodes.php -->
17671         <nationalNumberPattern>
17672           (?:
17673             3[2-79]|
17674             [49][2-689]|
17675             6[235-9]|
17676             7[2-5789]
17677           )\d{6}|
17678           24099\d{3}
17679         </nationalNumberPattern>
17680         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17681         <exampleNumber>32345678</exampleNumber>
17682       </fixedLine>
17683       <mobile>
17684         <!-- Includes mobile radio service numbers (e.g. TeamTalk). The lengths of numbers with
17685              prefix 21 are different from what's specified in the ITU doc, because of numbers found
17686              online. -->
17687         <nationalNumberPattern>
17688           2(?:
17689             [028]\d{7,8}|
17690             1(?:
17691               [03]\d{5,7}|
17692               [12457]\d{5,6}|
17693               [689]\d{5}
17694             )|
17695             [79]\d{7}
17696           )
17697         </nationalNumberPattern>
17698         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17699         <exampleNumber>211234567</exampleNumber>
17700       </mobile>
17701       <pager>
17702         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
17703         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17704         <exampleNumber>26123456</exampleNumber>
17705       </pager>
17706       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
17707            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
17708            not covered, as telecom companies don't seem to support them yet. -->
17709       <tollFree>
17710         <nationalNumberPattern>
17711           508\d{6,7}|
17712           80\d{6,8}
17713         </nationalNumberPattern>
17714         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17715         <exampleNumber>800123456</exampleNumber>
17716       </tollFree>
17717       <premiumRate>
17718         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
17719         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
17720         <exampleNumber>900123456</exampleNumber>
17721       </premiumRate>
17722     </territory>
17723
17724     <!-- Oman -->
17725     <territory id="OM" countryCode="968" internationalPrefix="00" mobileNumberPortableRegion="true">
17726       <references>
17727         <sourceUrl>http://www.itu.int/oth/T020200009F/en</sourceUrl>
17728       </references>
17729       <availableFormats>
17730         <numberFormat pattern="(2\d)(\d{6})">
17731           <leadingDigits>2</leadingDigits>
17732           <format>$1 $2</format>
17733         </numberFormat>
17734         <numberFormat pattern="(9\d{3})(\d{4})">
17735           <leadingDigits>9</leadingDigits>
17736           <format>$1 $2</format>
17737         </numberFormat>
17738         <numberFormat pattern="([58]00)(\d{4,6})">
17739           <leadingDigits>[58]</leadingDigits>
17740           <format>$1 $2</format>
17741         </numberFormat>
17742       </availableFormats>
17743       <generalDesc>
17744         <nationalNumberPattern>
17745           (?:
17746             2[2-6]|
17747             5|
17748             9[1-9]
17749           )\d{6}|
17750           800\d{5,6}
17751         </nationalNumberPattern>
17752         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17753       </generalDesc>
17754       <fixedLine>
17755         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
17756         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17757         <exampleNumber>23123456</exampleNumber>
17758       </fixedLine>
17759       <mobile>
17760         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
17761         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17762         <exampleNumber>92123456</exampleNumber>
17763       </mobile>
17764       <tollFree>
17765         <!-- Link to document about toll-free numbers on http://www.tra.gov.om, which suggests they
17766              should be 8007 followed by 4 digits. However, the only examples I can find, including
17767              the customer help line for the main telephony company there (omantel), is 8007 followed
17768              by 5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to
17769              offer international toll-free dialing numbers - +968 500 1300 for international help
17770              desk for omantel, for example. -->
17771         <nationalNumberPattern>
17772           8007\d{4,5}|
17773           500\d{4}
17774         </nationalNumberPattern>
17775         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17776         <exampleNumber>80071234</exampleNumber>
17777       </tollFree>
17778       <!-- No premiumRate information can be found. -->
17779     </territory>
17780
17781     <!-- Panama -->
17782     <territory id="PA" countryCode="507" internationalPrefix="00" mobileNumberPortableRegion="true">
17783       <references>
17784         <!-- Last read July 9, 2014. -->
17785         <sourceUrl>http://www.asep.gob.pa/telecom/pnn/default.asp</sourceUrl>
17786         <!-- Omits the fact that mobile phones are 8 digits long. -->
17787         <sourceUrl>http://en.wikipedia.org/wiki/%2B507</sourceUrl>
17788       </references>
17789       <availableFormats>
17790         <numberFormat pattern="(\d{3})(\d{4})">
17791           <leadingDigits>[1-57-9]</leadingDigits>
17792           <format>$1-$2</format>
17793         </numberFormat>
17794         <numberFormat pattern="(\d{4})(\d{4})">
17795           <leadingDigits>6</leadingDigits>
17796           <format>$1-$2</format>
17797         </numberFormat>
17798       </availableFormats>
17799       <generalDesc>
17800         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
17801         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17802       </generalDesc>
17803       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
17804            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
17805       <fixedLine>
17806         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
17807              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
17808         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
17809              proved to be diallable. -->
17810         <nationalNumberPattern>
17811           (?:
17812             1(?:
17813               0[02-579]|
17814               19|
17815               2[37]|
17816               3[03]|
17817               4[479]|
17818               57|
17819               65|
17820               7[016-8]|
17821               8[58]|
17822               9[1349]
17823             )|
17824             2(?:
17825               [0235679]\d|
17826               1[0-7]|
17827               4[04-9]|
17828               8[028]
17829             )|
17830             3(?:
17831               [09]\d|
17832               1[14-7]|
17833               2[0-3]|
17834               3[03]|
17835               4[0457]|
17836               5[56]|
17837               6[068]|
17838               7[06-8]|
17839               8[089]
17840             )|
17841             4(?:
17842               3[013-69]|
17843               4\d|
17844               7[0-689]
17845             )|
17846             5(?:
17847               [01]\d|
17848               2[0-7]|
17849               [56]0|
17850               79
17851             )|
17852             7(?:
17853               0[09]|
17854               2[0-267]|
17855               3[06]|
17856               [49]0|
17857               5[06-9]|
17858               7[0-24-7]|
17859               8[89]
17860             )|
17861             8(?:
17862               [34]\d|
17863               5[0-4]|
17864               8[02]
17865             )|
17866             9(?:
17867               0[6-8]|
17868               1[016-8]|
17869               2[036-8]|
17870               3[3679]|
17871               40|
17872               5[0489]|
17873               6[06-9]|
17874               7[046-9]|
17875               8[36-8]|
17876               9[1-9]
17877             )
17878           )\d{4}
17879         </nationalNumberPattern>
17880         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17881         <exampleNumber>2001234</exampleNumber>
17882       </fixedLine>
17883       <mobile>
17884         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
17885              service "210", "Servicio de Busca Personas". -->
17886         <nationalNumberPattern>
17887           (?:
17888             1[16]1|
17889             21[89]|
17890             8(?:
17891               1[01]|
17892               7[23]
17893             )
17894           )\d{4}|
17895           6(?:
17896             [024-9]\d|
17897             1[0-5]|
17898             3[0-24-9]
17899           )\d{5}
17900         </nationalNumberPattern>
17901         <exampleNumber>60012345</exampleNumber>
17902       </mobile>
17903       <tollFree>
17904         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
17905         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17906         <exampleNumber>8001234</exampleNumber>
17907       </tollFree>
17908       <premiumRate>
17909         <!-- Value-added services are represented as "400" in the plan. -->
17910         <nationalNumberPattern>
17911           (?:
17912             779|
17913             8(?:
17914               2[235]|
17915               55|
17916               60|
17917               7[578]|
17918               86|
17919               95
17920             )|
17921             9(?:
17922               0[0-2]|
17923               81
17924             )
17925           )\d{4}
17926         </nationalNumberPattern>
17927         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17928         <exampleNumber>8601234</exampleNumber>
17929       </premiumRate>
17930     </territory>
17931
17932     <!-- Peru -->
17933     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
17934                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
17935                preferredExtnPrefix=" Anexo " mobileNumberPortableRegion="true">
17936       <references>
17937         <sourceUrl>http://www.itu.int/oth/T02020000A6/en</sourceUrl>
17938         <sourceUrl>http://en.wikipedia.org/wiki/+51</sourceUrl>
17939         <sourceUrl>http://www.assistbook.com/South%20America/Peru/widecodes</sourceUrl>
17940       </references>
17941       <availableFormats>
17942         <numberFormat pattern="(1)(\d{7})">
17943           <leadingDigits>1</leadingDigits>
17944           <format>$1 $2</format>
17945         </numberFormat>
17946         <numberFormat pattern="([4-8]\d)(\d{6})">
17947           <leadingDigits>
17948             [4-7]|
17949             8[2-4]
17950           </leadingDigits>
17951           <format>$1 $2</format>
17952         </numberFormat>
17953         <numberFormat pattern="(\d{3})(\d{5})">
17954           <leadingDigits>80</leadingDigits>
17955           <format>$1 $2</format>
17956         </numberFormat>
17957         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
17958         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
17959                       nationalPrefixFormattingRule="$FG">
17960           <leadingDigits>9</leadingDigits>
17961           <format>$1 $2 $3</format>
17962         </numberFormat>
17963       </availableFormats>
17964       <generalDesc>
17965         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
17966         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
17967       </generalDesc>
17968       <fixedLine>
17969         <nationalNumberPattern>
17970           (?:
17971             1\d|
17972             4[1-4]|
17973             5[1-46]|
17974             6[1-7]|
17975             7[2-46]|
17976             8[2-4]
17977           )\d{6}
17978         </nationalNumberPattern>
17979         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17980         <exampleNumber>11234567</exampleNumber>
17981       </fixedLine>
17982       <mobile>
17983         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
17984         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17985         <exampleNumber>912345678</exampleNumber>
17986       </mobile>
17987       <tollFree>
17988         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
17989         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17990         <exampleNumber>80012345</exampleNumber>
17991       </tollFree>
17992       <premiumRate>
17993         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
17994         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17995         <exampleNumber>80512345</exampleNumber>
17996       </premiumRate>
17997       <sharedCost>
17998         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
17999         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18000         <exampleNumber>80112345</exampleNumber>
18001       </sharedCost>
18002       <personalNumber>
18003         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
18004         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18005         <exampleNumber>80212345</exampleNumber>
18006       </personalNumber>
18007     </territory>
18008
18009     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
18010     <territory id="PF" countryCode="689" internationalPrefix="00">
18011       <references>
18012         <sourceUrl>http://www.itu.int/oth/T020200004D/en</sourceUrl>
18013       </references>
18014       <availableFormats>
18015         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
18016           <leadingDigits>
18017             4[09]|
18018             8[79]
18019           </leadingDigits>
18020           <format>$1 $2 $3 $4</format>
18021         </numberFormat>
18022         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
18023           <leadingDigits>44</leadingDigits>
18024           <format>$1 $2 $3</format>
18025         </numberFormat>
18026       </availableFormats>
18027       <generalDesc>
18028         <nationalNumberPattern>
18029           4\d{5,7}|
18030           8\d{7}
18031         </nationalNumberPattern>
18032         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
18033       </generalDesc>
18034       <noInternationalDialling>
18035         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
18036         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18037         <exampleNumber>441234</exampleNumber>
18038       </noInternationalDialling>
18039       <fixedLine>
18040         <!-- Includes payphone prefixes. -->
18041         <nationalNumberPattern>
18042           4(?:
18043             [09][45689]\d|
18044             4
18045           )\d{4}
18046         </nationalNumberPattern>
18047         <exampleNumber>40412345</exampleNumber>
18048       </fixedLine>
18049       <mobile>
18050         <nationalNumberPattern>8[79]\d{6}</nationalNumberPattern>
18051         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18052         <exampleNumber>87123456</exampleNumber>
18053       </mobile>
18054     </territory>
18055
18056     <!-- Papua New Guinea -->
18057     <territory id="PG" countryCode="675" internationalPrefix="00">
18058       <references>
18059         <sourceUrl>http://www.itu.int/oth/T02020000A4/en</sourceUrl>
18060         <sourceUrl>http://en.wikipedia.org/wiki/%2B675</sourceUrl>
18061       </references>
18062       <availableFormats>
18063         <numberFormat pattern="(\d{3})(\d{4})">
18064           <leadingDigits>
18065             [13-689]|
18066             27
18067           </leadingDigits>
18068           <format>$1 $2</format>
18069         </numberFormat>
18070         <numberFormat pattern="(\d{4})(\d{4})">
18071           <leadingDigits>
18072             20|
18073             7
18074           </leadingDigits>
18075           <format>$1 $2</format>
18076         </numberFormat>
18077       </availableFormats>
18078       <generalDesc>
18079         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18080         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18081       </generalDesc>
18082       <fixedLine>
18083         <nationalNumberPattern>
18084           (?:
18085             3[0-2]\d|
18086             4[25]\d|
18087             5[34]\d|
18088             64[1-9]|
18089             77(?:
18090               [0-24]\d|
18091               30
18092             )|
18093             85[02-46-9]|
18094             9[78]\d
18095           )\d{4}
18096         </nationalNumberPattern>
18097         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18098         <exampleNumber>3123456</exampleNumber>
18099       </fixedLine>
18100       <mobile>
18101         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
18102              Wikipedia.
18103              As per ITU doc, prefix 20150 will expire at the end of 2015. -->
18104         <nationalNumberPattern>
18105           (?:
18106             20150|
18107             68\d{2}|
18108             7(?:
18109               [0-369]\d|
18110               75
18111             )\d{2}
18112           )\d{3}
18113         </nationalNumberPattern>
18114         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18115         <exampleNumber>6812345</exampleNumber>
18116       </mobile>
18117       <tollFree>
18118         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
18119         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18120         <exampleNumber>1801234</exampleNumber>
18121       </tollFree>
18122       <voip>
18123         <!-- VSAT prefixes are here. -->
18124         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
18125         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18126         <exampleNumber>2751234</exampleNumber>
18127       </voip>
18128     </territory>
18129
18130     <!-- Philippines -->
18131     <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
18132       <references>
18133         <sourceUrl>http://en.wikipedia.org/wiki/%2B63</sourceUrl>
18134       </references>
18135       <availableFormats>
18136         <!-- Area code separated from number. Area codes found here:
18137         http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
18138         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18139           pattern="(2)(\d{3})(\d{4})">
18140           <leadingDigits>2</leadingDigits>
18141           <format>$1 $2 $3</format>
18142         </numberFormat>
18143         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18144           pattern="(2)(\d{5})">
18145           <leadingDigits>2</leadingDigits>
18146           <format>$1 $2</format>
18147         </numberFormat>
18148         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18149           pattern="(\d{4})(\d{4,6})">
18150           <leadingDigits>
18151             3(?:
18152               23|
18153               39|
18154               46
18155             )|
18156             4(?:
18157               2[3-6]|
18158               [35]9|
18159               4[26]|
18160               76
18161             )|
18162             5(?:
18163               22|
18164               44
18165             )|
18166             642|
18167             8(?:
18168               62|
18169               8[245]
18170             )
18171           </leadingDigits>
18172           <leadingDigits>
18173             3(?:
18174               230|
18175               397|
18176               461
18177             )|
18178             4(?:
18179               2(?:
18180                 35|
18181                 [46]4|
18182                 51
18183               )|
18184               396|
18185               4(?:
18186                 22|
18187                 63
18188               )|
18189               59[347]|
18190               76[15]
18191             )|
18192             5(?:
18193               221|
18194               446
18195             )|
18196             642[23]|
18197             8(?:
18198               622|
18199               8(?:
18200                 [24]2|
18201                 5[13]
18202               )
18203             )
18204           </leadingDigits>
18205           <format>$1 $2</format>
18206         </numberFormat>
18207         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18208           pattern="(\d{5})(\d{4})">
18209           <leadingDigits>
18210             346|
18211             4(?:
18212               27|
18213               9[35]
18214             )|
18215             883
18216           </leadingDigits>
18217           <leadingDigits>
18218             3469|
18219             4(?:
18220               279|
18221               9(?:
18222                 30|
18223                 56
18224               )
18225             )|
18226             8834
18227           </leadingDigits>
18228           <format>$1 $2</format>
18229         </numberFormat>
18230         <!-- This rule is a fallback for the more specific area codes. -->
18231         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18232           pattern="([3-8]\d)(\d{3})(\d{4})">
18233           <leadingDigits>[3-8]</leadingDigits>
18234           <format>$1 $2 $3</format>
18235         </numberFormat>
18236         <numberFormat nationalPrefixFormattingRule="$NP$FG"
18237           pattern="(\d{3})(\d{3})(\d{4})">
18238           <leadingDigits>
18239             81|
18240             9
18241           </leadingDigits>
18242           <format>$1 $2 $3</format>
18243         </numberFormat>
18244         <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
18245         <numberFormat pattern="(1800)(\d{3})(\d{4})">
18246           <leadingDigits>1</leadingDigits>
18247           <format>$1 $2 $3</format>
18248         </numberFormat>
18249         <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
18250           <leadingDigits>1</leadingDigits>
18251           <format>$1 $2 $3 $4</format>
18252         </numberFormat>
18253       </availableFormats>
18254       <generalDesc>
18255         <nationalNumberPattern>
18256           2\d{5,7}|
18257           [3-9]\d{7,9}|
18258           1800\d{7,9}
18259         </nationalNumberPattern>
18260         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
18261       </generalDesc>
18262       <fixedLine>
18263         <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
18264              that have only 5 digits after the area code; plus it seems the 8822 area code is
18265              followed by 6 digits, and 8842 by only 4. -->
18266         <nationalNumberPattern>
18267           2\d{5}(?:\d{2})?|
18268           (?:
18269             3[2-68]|
18270             4[2-9]|
18271             5[2-6]|
18272             6[2-58]|
18273             7[24578]|
18274             8[2-8]
18275           )\d{7}|
18276           88(?:
18277             22\d{6}|
18278             42\d{4}
18279           )
18280         </nationalNumberPattern>
18281         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
18282         <exampleNumber>21234567</exampleNumber>
18283       </fixedLine>
18284       <mobile>
18285         <nationalNumberPattern>
18286           (?:
18287             81[37]|
18288             9(?:
18289               0[5-9]|
18290               1[024-9]|
18291               2[0-35-9]|
18292               3[02-9]|
18293               4[236-9]|
18294               7[34-79]|
18295               89|
18296               9[4-9]
18297             )
18298           )\d{7}
18299         </nationalNumberPattern>
18300         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18301         <exampleNumber>9051234567</exampleNumber>
18302       </mobile>
18303       <!-- Information on toll-free numbers collected from searching the internet -->
18304       <tollFree>
18305         <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
18306         <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
18307         <exampleNumber>180012345678</exampleNumber>
18308       </tollFree>
18309       <!-- No information can be found about other types of numbers (such as premium rate) in the
18310            Philippines. -->
18311     </territory>
18312
18313     <!-- Pakistan -->
18314     <territory id="PK" countryCode="92" internationalPrefix="00"
18315                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18316                mobileNumberPortableRegion="true">
18317       <references>
18318         <sourceUrl>http://www.itu.int/oth/T02020000A1/en</sourceUrl>
18319         <sourceUrl>http://en.wikipedia.org/wiki/%2B92</sourceUrl>
18320       </references>
18321       <availableFormats>
18322         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
18323              formatted nicely by the AYTF. -->
18324         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
18325           <leadingDigits>
18326             (?:
18327               2[125]|
18328               4[0-246-9]|
18329               5[1-35-7]|
18330               6[1-8]|
18331               7[14]|
18332               8[16]|
18333               91
18334             )1
18335           </leadingDigits>
18336           <leadingDigits>
18337             (?:
18338               2[125]|
18339               4[0-246-9]|
18340               5[1-35-7]|
18341               6[1-8]|
18342               7[14]|
18343               8[16]|
18344               91
18345             )11
18346           </leadingDigits>
18347           <leadingDigits>
18348             (?:
18349               2[125]|
18350               4[0-246-9]|
18351               5[1-35-7]|
18352               6[1-8]|
18353               7[14]|
18354               8[16]|
18355               91
18356             )111
18357           </leadingDigits>
18358           <format>$1 $2 $3 $4</format>
18359         </numberFormat>
18360         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
18361           <leadingDigits>
18362             2[349]|
18363             45|
18364             54|
18365             60|
18366             72|
18367             8[2-5]|
18368             9[2-9]
18369           </leadingDigits>
18370           <leadingDigits>
18371             (?:
18372               2[349]|
18373               45|
18374               54|
18375               60|
18376               72|
18377               8[2-5]|
18378               9[2-9]
18379             )\d1
18380           </leadingDigits>
18381           <leadingDigits>
18382             (?:
18383               2[349]|
18384               45|
18385               54|
18386               60|
18387               72|
18388               8[2-5]|
18389               9[2-9]
18390             )\d11
18391           </leadingDigits>
18392           <leadingDigits>
18393             (?:
18394               2[349]|
18395               45|
18396               54|
18397               60|
18398               72|
18399               8[2-5]|
18400               9[2-9]
18401             )\d111
18402           </leadingDigits>
18403           <format>$1 $2 $3 $4</format>
18404         </numberFormat>
18405         <numberFormat pattern="(\d{2})(\d{7,8})">
18406           <leadingDigits>
18407             (?:
18408               2[125]|
18409               4[0-246-9]|
18410               5[1-35-7]|
18411               6[1-8]|
18412               7[14]|
18413               8[16]|
18414               91
18415             )[2-9]
18416           </leadingDigits>
18417           <format>$1 $2</format>
18418         </numberFormat>
18419         <numberFormat pattern="(\d{3})(\d{6,7})">
18420           <leadingDigits>
18421             2[349]|
18422             45|
18423             54|
18424             60|
18425             72|
18426             8[2-5]|
18427             9[2-9]
18428           </leadingDigits>
18429           <leadingDigits>
18430             (?:
18431               2[349]|
18432               45|
18433               54|
18434               60|
18435               72|
18436               8[2-5]|
18437               9[2-9]
18438             )\d[2-9]
18439           </leadingDigits>
18440           <format>$1 $2</format>
18441         </numberFormat>
18442         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
18443           <leadingDigits>3</leadingDigits>
18444           <format>$1 $2</format>
18445         </numberFormat>
18446         <numberFormat pattern="([15]\d{3})(\d{5,6})">
18447           <leadingDigits>
18448             58[12]|
18449             1
18450           </leadingDigits>
18451           <format>$1 $2</format>
18452         </numberFormat>
18453         <!-- This is from online examples. -->
18454         <numberFormat pattern="(586\d{2})(\d{5})">
18455           <leadingDigits>586</leadingDigits>
18456           <format>$1 $2</format>
18457         </numberFormat>
18458         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
18459           <leadingDigits>[89]00</leadingDigits>
18460           <format>$1 $2 $3</format>
18461         </numberFormat>
18462       </availableFormats>
18463       <generalDesc>
18464         <!-- This is horribly complex because the country code is 92, and several area codes start
18465              with 92, and the number length is widely variable. -->
18466         <nationalNumberPattern>
18467           1\d{8}|
18468           [2-8]\d{5,11}|
18469           9(?:
18470             [013-9]\d{4,9}|
18471             2\d(?:
18472               111\d{6}|
18473               \d{3,7}
18474             )
18475           )
18476         </nationalNumberPattern>
18477         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
18478       </generalDesc>
18479       <fixedLine>
18480         <!-- The subscriber number length is not well defined for some area codes. From online
18481              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
18482              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
18483              of Karachi and Lahore (both 8). -->
18484         <nationalNumberPattern>
18485           (?:
18486             21|
18487             42
18488           )[2-9]\d{7}|
18489           (?:
18490             2[25]|
18491             4[0146-9]|
18492             5[1-35-7]|
18493             6[1-8]|
18494             7[14]|
18495             8[16]|
18496             91
18497           )[2-9]\d{6}|
18498           (?:
18499             2(?:
18500               3[2358]|
18501               4[2-4]|
18502               9[2-8]
18503             )|
18504             45[3479]|
18505             54[2-467]|
18506             60[468]|
18507             72[236]|
18508             8(?:
18509               2[2-689]|
18510               3[23578]|
18511               4[3478]|
18512               5[2356]
18513             )|
18514             9(?:
18515               1|
18516               2[2-8]|
18517               3[27-9]|
18518               4[2-6]|
18519               6[3569]|
18520               9[25-8]
18521             )
18522           )[2-9]\d{5,6}|
18523           58[126]\d{7}
18524         </nationalNumberPattern>
18525         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
18526         <exampleNumber>2123456789</exampleNumber>
18527       </fixedLine>
18528       <mobile>
18529         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
18530              can be found online with these prefixes. Added 310 based on information from Zong. -->
18531         <nationalNumberPattern>
18532           3(?:
18533             0\d|
18534             [12][0-5]|
18535             3[1-7]|
18536             4[0-7]|
18537             55|
18538             64
18539           )\d{7}
18540         </nationalNumberPattern>
18541         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18542         <exampleNumber>3012345678</exampleNumber>
18543       </mobile>
18544       <tollFree>
18545         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18546         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18547         <exampleNumber>80012345</exampleNumber>
18548       </tollFree>
18549       <premiumRate>
18550         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
18551         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18552         <exampleNumber>90012345</exampleNumber>
18553       </premiumRate>
18554       <!-- These are referred to as UPT numbers in the plan. -->
18555       <personalNumber>
18556         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
18557         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18558         <!-- The example number here is the test number from the plan. -->
18559         <exampleNumber>122044444</exampleNumber>
18560       </personalNumber>
18561       <uan>
18562         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
18563              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
18564              what type of number they are. We exclude Azad Jammu, Kashmir and Northern Areas here
18565              since no online example UANs can be found, and they have an "access code" at the start,
18566              making it difficult to guess what a UAN in these areas would look like. -->
18567         <nationalNumberPattern>
18568           (?:
18569             2(?:
18570               [125]|
18571               3[2358]|
18572               4[2-4]|
18573               9[2-8]
18574             )|
18575             4(?:
18576               [0-246-9]|
18577               5[3479]
18578             )|
18579             5(?:
18580               [1-35-7]|
18581               4[2-467]
18582             )|
18583             6(?:
18584               [1-8]|
18585               0[468]
18586             )|
18587             7(?:
18588               [14]|
18589               2[236]
18590             )|
18591             8(?:
18592               [16]|
18593               2[2-689]|
18594               3[23578]|
18595               4[3478]|
18596               5[2356]
18597             )|
18598             9(?:
18599               1|
18600               22|
18601               3[27-9]|
18602               4[2-6]|
18603               6[3569]|
18604               9[2-7]
18605             )
18606           )111\d{6}
18607         </nationalNumberPattern>
18608         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
18609         <exampleNumber>21111825888</exampleNumber>
18610       </uan>
18611     </territory>
18612
18613     <!-- Poland -->
18614     <territory id="PL" countryCode="48" internationalPrefix="00" mobileNumberPortableRegion="true">
18615       <references>
18616         <sourceUrl>http://en.wikipedia.org/wiki/%2B48</sourceUrl>
18617         <sourceUrl>http://www.itu.int/oth/T02020000A8/en</sourceUrl>
18618         <!-- Source is in Polish. -->
18619         <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>
18620       </references>
18621       <availableFormats>
18622         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
18623           <leadingDigits>
18624             [124]|
18625             3[2-4]|
18626             5[24-689]|
18627             6[1-3578]|
18628             7[14-7]|
18629             8[1-79]|
18630             9[145]
18631           </leadingDigits>
18632           <format>$1 $2 $3 $4</format>
18633         </numberFormat>
18634         <numberFormat pattern="(\d{2})(\d{1})(\d{4})">
18635           <leadingDigits>[12]2</leadingDigits>
18636           <format>$1 $2 $3</format>
18637         </numberFormat>
18638         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
18639              Poles that this is more usual. -->
18640         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
18641           <leadingDigits>
18642             39|
18643             5[0137]|
18644             6[0469]|
18645             7[02389]|
18646             8[08]
18647           </leadingDigits>
18648           <format>$1 $2 $3</format>
18649         </numberFormat>
18650         <!-- Additional patterns for shorter pager numbers. -->
18651         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
18652           <leadingDigits>64</leadingDigits>
18653           <format>$1 $2 $3</format>
18654         </numberFormat>
18655         <numberFormat pattern="(\d{3})(\d{3})">
18656           <leadingDigits>64</leadingDigits>
18657           <format>$1 $2</format>
18658         </numberFormat>
18659       </availableFormats>
18660       <generalDesc>
18661         <nationalNumberPattern>
18662           [12]\d{6,8}|
18663           [3-57-9]\d{8}|
18664           6\d{5,8}
18665         </nationalNumberPattern>
18666         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18667       </generalDesc>
18668       <fixedLine>
18669         <!-- The plan says all geographical numbers are 9 digits; but in at least Warsaw (22) and
18670              Krakow (12) we have found internationally diallable numbers that are 7 digits instead,
18671              so we support those too. -->
18672         <nationalNumberPattern>
18673           (?:
18674             1[2-8]|
18675             2[2-59]|
18676             3[2-4]|
18677             4[1-468]|
18678             5[24-689]|
18679             6[1-3578]|
18680             7[14-7]|
18681             8[1-79]|
18682             9[145]
18683           )\d{7}|
18684           [12]2\d{5}
18685         </nationalNumberPattern>
18686         <exampleNumber>123456789</exampleNumber>
18687       </fixedLine>
18688       <mobile>
18689         <nationalNumberPattern>
18690           (?:
18691             5[0137]|
18692             6[069]|
18693             7[2389]|
18694             88
18695           )\d{7}
18696         </nationalNumberPattern>
18697         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18698         <exampleNumber>512345678</exampleNumber>
18699       </mobile>
18700       <pager>
18701         <nationalNumberPattern>64\d{4,7}</nationalNumberPattern>
18702         <exampleNumber>641234567</exampleNumber>
18703       </pager>
18704       <tollFree>
18705         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
18706         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18707         <exampleNumber>800123456</exampleNumber>
18708       </tollFree>
18709       <premiumRate>
18710         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
18711         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18712         <exampleNumber>701234567</exampleNumber>
18713       </premiumRate>
18714       <sharedCost>
18715         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
18716         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18717         <exampleNumber>801234567</exampleNumber>
18718       </sharedCost>
18719       <voip>
18720         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
18721         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18722         <exampleNumber>391234567</exampleNumber>
18723       </voip>
18724     </territory>
18725
18726     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
18727     <territory id="PM" countryCode="508" internationalPrefix="00"
18728                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18729       <references>
18730         <sourceUrl>http://www.itu.int/oth/T02020000B2/en</sourceUrl>
18731       </references>
18732       <availableFormats>
18733         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
18734           <format>$1 $2 $3</format>
18735         </numberFormat>
18736       </availableFormats>
18737       <generalDesc>
18738         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
18739         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18740       </generalDesc>
18741       <fixedLine>
18742         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
18743         <exampleNumber>411234</exampleNumber>
18744       </fixedLine>
18745       <mobile>
18746         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
18747         <exampleNumber>551234</exampleNumber>
18748       </mobile>
18749     </territory>
18750
18751     <!-- Pitcairn Island -->
18752     <!-- id="PN" -->
18753     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
18754          satellite phones. -->
18755
18756     <!-- Puerto Rico -->
18757     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
18758                internationalPrefix="011">
18759       <references>
18760         <sourceUrl>http://www.itu.int/oth/T02020000AA/en</sourceUrl>
18761       </references>
18762       <generalDesc>
18763         <!-- NANPA country - uses US formatting rules -->
18764         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
18765         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
18766       </generalDesc>
18767       <fixedLine>
18768         <nationalNumberPattern>
18769           (?:
18770             787|
18771             939
18772           )[2-9]\d{6}
18773         </nationalNumberPattern>
18774         <exampleNumber>7872345678</exampleNumber>
18775       </fixedLine>
18776       <mobile>
18777         <nationalNumberPattern>
18778           (?:
18779             787|
18780             939
18781           )[2-9]\d{6}
18782         </nationalNumberPattern>
18783         <exampleNumber>7872345678</exampleNumber>
18784       </mobile>
18785       <tollFree>
18786         <nationalNumberPattern>
18787           8(?:
18788             00|
18789             44|
18790             55|
18791             66|
18792             77|
18793             88
18794           )[2-9]\d{6}
18795         </nationalNumberPattern>
18796         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18797         <exampleNumber>8002345678</exampleNumber>
18798       </tollFree>
18799       <premiumRate>
18800         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
18801         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18802         <exampleNumber>9002345678</exampleNumber>
18803       </premiumRate>
18804       <personalNumber>
18805         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
18806         <nationalNumberPattern>
18807           5(?:
18808             00|
18809             33|
18810             44|
18811             66|
18812             77
18813           )[2-9]\d{6}
18814         </nationalNumberPattern>
18815         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18816         <exampleNumber>5002345678</exampleNumber>
18817       </personalNumber>
18818     </territory>
18819
18820     <!-- Palestinian Authority -->
18821     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
18822          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
18823          subset of the Israeli formats. -->
18824     <territory id="PS" countryCode="970" internationalPrefix="00"
18825                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18826       <references>
18827         <sourceUrl>http://en.wikipedia.org/wiki/%2B970</sourceUrl>
18828         <sourceUrl>http://www.wtng.info/wtng-970-ps.html</sourceUrl>
18829         <sourceUrl>http://www.paltel.ps</sourceUrl>
18830       </references>
18831       <availableFormats>
18832         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
18833           <leadingDigits>[2489]</leadingDigits>
18834           <format>$1 $2 $3</format>
18835         </numberFormat>
18836         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
18837           <leadingDigits>5</leadingDigits>
18838           <format>$1 $2 $3</format>
18839         </numberFormat>
18840         <numberFormat nationalPrefixFormattingRule="$FG"
18841           pattern="(1[78]00)(\d{3})(\d{3})">
18842           <leadingDigits>1[78]</leadingDigits>
18843           <format>$1 $2 $3</format>
18844         </numberFormat>
18845         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
18846       </availableFormats>
18847       <generalDesc>
18848         <nationalNumberPattern>
18849           [24589]\d{7,8}|
18850           1(?:
18851             [78]\d{8}|
18852             [49]\d{2,3}
18853           )
18854         </nationalNumberPattern>
18855         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
18856       </generalDesc>
18857       <fixedLine>
18858         <nationalNumberPattern>
18859           (?:
18860             22[234789]|
18861             42[45]|
18862             82[01458]|
18863             92[369]
18864           )\d{5}
18865         </nationalNumberPattern>
18866         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18867         <exampleNumber>22234567</exampleNumber>
18868       </fixedLine>
18869       <mobile>
18870         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
18871         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18872         <exampleNumber>599123456</exampleNumber>
18873       </mobile>
18874       <tollFree>
18875         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
18876         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18877         <exampleNumber>1800123456</exampleNumber>
18878       </tollFree>
18879       <premiumRate>
18880         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
18881         <nationalNumberPattern>
18882           1(?:
18883             4|
18884             9\d
18885            )\d{2}
18886         </nationalNumberPattern>
18887         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
18888         <exampleNumber>19123</exampleNumber>
18889       </premiumRate>
18890       <sharedCost>
18891         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
18892         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18893         <exampleNumber>1700123456</exampleNumber>
18894       </sharedCost>
18895     </territory>
18896
18897     <!-- Portugal -->
18898     <territory id="PT" countryCode="351" internationalPrefix="00" mobileNumberPortableRegion="true">
18899       <references>
18900         <sourceUrl>http://www.anacom.pt/render.jsp?categoryId=279098</sourceUrl>
18901       </references>
18902       <availableFormats>
18903         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
18904              two digits in the first group; however, this doesn't seem to be majority usage based on
18905              searches online. -->
18906         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
18907           <leadingDigits>2[12]</leadingDigits>
18908           <format>$1 $2 $3</format>
18909         </numberFormat>
18910         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
18911           <leadingDigits>
18912             2[3-9]|
18913             [346-9]
18914           </leadingDigits>
18915           <format>$1 $2 $3</format>
18916         </numberFormat>
18917       </availableFormats>
18918       <generalDesc>
18919         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
18920         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18921       </generalDesc>
18922       <fixedLine>
18923         <nationalNumberPattern>
18924           2(?:
18925             [12]\d|
18926             [35][1-689]|
18927             4[1-59]|
18928             6[1-35689]|
18929             7[1-9]|
18930             8[1-69]|
18931             9[1256]
18932           )\d{6}
18933         </nationalNumberPattern>
18934         <exampleNumber>212345678</exampleNumber>
18935       </fixedLine>
18936       <mobile>
18937         <nationalNumberPattern>
18938           9(?:
18939             [136]\d{2}|
18940             2[0-79]\d|
18941             480
18942           )\d{5}
18943         </nationalNumberPattern>
18944         <exampleNumber>912345678</exampleNumber>
18945       </mobile>
18946       <tollFree>
18947         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
18948         <exampleNumber>800123456</exampleNumber>
18949       </tollFree>
18950       <premiumRate>
18951         <!-- Fixed maximum cost numbers: 761=0.60€, 761=1€, 762=2€. -->
18952         <nationalNumberPattern>
18953           76(?:
18954             0[1-57]|
18955             1[2-47]|
18956             2[237]
18957           )\d{5}
18958         </nationalNumberPattern>
18959         <exampleNumber>760123456</exampleNumber>
18960       </premiumRate>
18961       <sharedCost>
18962         <!-- 808 are priced as local calls, 809 are national calls. -->
18963         <nationalNumberPattern>
18964           80(?:
18965             8\d|
18966             9[1579]
18967           )\d{5}
18968         </nationalNumberPattern>
18969         <exampleNumber>808123456</exampleNumber>
18970       </sharedCost>
18971       <personalNumber>
18972         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
18973         <exampleNumber>884123456</exampleNumber>
18974       </personalNumber>
18975       <voip>
18976         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
18977         <exampleNumber>301234567</exampleNumber>
18978       </voip>
18979       <uan>
18980         <nationalNumberPattern>
18981           70(?:
18982             7\d|
18983             8[17]
18984           )\d{5}
18985         </nationalNumberPattern>
18986         <exampleNumber>707123456</exampleNumber>
18987       </uan>
18988     </territory>
18989
18990     <!-- Palau -->
18991     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
18992       <references>
18993         <sourceUrl>http://www.itu.int/oth/T02020000A2/en</sourceUrl>
18994       </references>
18995       <availableFormats>
18996         <numberFormat pattern="(\d{3})(\d{4})">
18997           <format>$1 $2</format>
18998         </numberFormat>
18999       </availableFormats>
19000       <generalDesc>
19001         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
19002         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19003       </generalDesc>
19004       <fixedLine>
19005         <nationalNumberPattern>
19006           2552255|
19007           (?:
19008             277|
19009             345|
19010             488|
19011             5(?:
19012               35|
19013               44|
19014               87
19015             )|
19016             6(?:
19017               22|
19018               54|
19019               79
19020             )|
19021             7(?:
19022               33|
19023               47
19024             )|
19025             8(?:
19026               24|
19027               55|
19028               76
19029             )
19030           )\d{4}
19031         </nationalNumberPattern>
19032         <exampleNumber>2771234</exampleNumber>
19033       </fixedLine>
19034       <mobile>
19035         <nationalNumberPattern>
19036           (?:
19037             6[234689]0|
19038             77[45789]
19039           )\d{4}
19040         </nationalNumberPattern>
19041         <exampleNumber>6201234</exampleNumber>
19042       </mobile>
19043     </territory>
19044
19045     <!-- Paraguay -->
19046     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0"
19047                mobileNumberPortableRegion="true">
19048       <references>
19049         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay</sourceUrl>
19050         <sourceUrl>http://www.itu.int/oth/T02020000A5/en</sourceUrl>
19051         <sourceUrl>http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html</sourceUrl>
19052       </references>
19053       <availableFormats>
19054         <!-- CONATEL plan. -->
19055         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
19056           <leadingDigits>
19057             (?:
19058               [26]1|
19059               3[289]|
19060               4[124678]|
19061               7[123]|
19062               8[1236]
19063             )
19064           </leadingDigits>
19065           <format>$1 $2</format>
19066         </numberFormat>
19067         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
19068           <leadingDigits>[2-9]0</leadingDigits>
19069           <format>$1 $2</format>
19070         </numberFormat>
19071         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
19072           <leadingDigits>9[1-9]</leadingDigits>
19073           <format>$1 $2</format>
19074         </numberFormat>
19075         <!-- Format seen in examples found online. -->
19076         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19077           <leadingDigits>8700</leadingDigits>
19078           <format>$1 $2 $3</format>
19079         </numberFormat>
19080         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
19081              -->
19082         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
19083           <leadingDigits>[2-8][1-9]</leadingDigits>
19084           <format>$1 $2</format>
19085         </numberFormat>
19086       </availableFormats>
19087       <generalDesc>
19088         <nationalNumberPattern>
19089           5[0-5]\d{4,7}|
19090           [2-46-9]\d{5,8}
19091         </nationalNumberPattern>
19092         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
19093       </generalDesc>
19094       <fixedLine>
19095         <nationalNumberPattern>
19096           (?:
19097             [26]1|
19098             3[289]|
19099             4[124678]|
19100             7[123]|
19101             8[1236]
19102           )\d{5,7}|
19103           (?:
19104             2(?:
19105               2[4568]|
19106               7[15]|
19107               9[1-5]
19108             )|
19109             3(?:
19110               18|
19111               3[167]|
19112               4[2357]|
19113               51
19114             )|
19115             4(?:
19116               18|
19117               2[45]|
19118               3[12]|
19119               5[13]|
19120               64|
19121               71|
19122               9[1-47]
19123             )|
19124             5(?:
19125               [1-4]\d|
19126               5[0234]
19127             )|
19128             6(?:
19129               3[1-3]|
19130               44|
19131               7[1-4678]
19132             )|
19133             7(?:
19134               17|
19135               4[0-4]|
19136               6[1-578]|
19137               75|
19138               8[0-8]
19139             )|
19140             858
19141           )\d{5,6}
19142         </nationalNumberPattern>
19143         <exampleNumber>212345678</exampleNumber>
19144       </fixedLine>
19145       <mobile>
19146         <!-- 962 was added for Tigo. -->
19147         <nationalNumberPattern>
19148           9(?:
19149             6[12]|
19150             [78][1-6]|
19151             9[1-5]
19152           )\d{6}
19153         </nationalNumberPattern>
19154         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19155         <exampleNumber>961456789</exampleNumber>
19156       </mobile>
19157       <voip>
19158         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
19159         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19160         <exampleNumber>870012345</exampleNumber>
19161       </voip>
19162       <uan>
19163         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
19164         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19165         <exampleNumber>201234567</exampleNumber>
19166       </uan>
19167     </territory>
19168
19169     <!-- Qatar -->
19170     <territory id="QA" countryCode="974" internationalPrefix="00" mobileNumberPortableRegion="true">
19171       <references>
19172         <sourceUrl>http://www.itu.int/oth/T02020000AB/en</sourceUrl>
19173         <sourceUrl>http://wtng.info/wtng-qq.html</sourceUrl>
19174       </references>
19175       <availableFormats>
19176         <numberFormat pattern="([28]\d{2})(\d{4})">
19177           <leadingDigits>[28]</leadingDigits>
19178           <format>$1 $2</format>
19179         </numberFormat>
19180         <numberFormat pattern="([3-7]\d{3})(\d{4})">
19181           <leadingDigits>[3-7]</leadingDigits>
19182           <format>$1 $2</format>
19183         </numberFormat>
19184       </availableFormats>
19185       <generalDesc>
19186         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
19187         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19188       </generalDesc>
19189       <fixedLine>
19190         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
19191         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
19192         <exampleNumber>44123456</exampleNumber>
19193       </fixedLine>
19194       <mobile>
19195         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
19196         <exampleNumber>33123456</exampleNumber>
19197       </mobile>
19198       <pager>
19199         <nationalNumberPattern>
19200           2(?:
19201             [12]\d|
19202             61
19203           )\d{4}
19204         </nationalNumberPattern>
19205         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19206         <exampleNumber>2123456</exampleNumber>
19207       </pager>
19208       <tollFree>
19209         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
19210         <exampleNumber>8001234</exampleNumber>
19211       </tollFree>
19212       <!-- No premiumRate information can be found. -->
19213     </territory>
19214
19215     <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
19216     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
19217          used by both of them. -->
19218     <territory id="RE" countryCode="262" internationalPrefix="00"
19219                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19220                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
19221       <references>
19222         <sourceUrl>http://www.itu.int/oth/T020200004B/en</sourceUrl>
19223       </references>
19224       <availableFormats>
19225         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
19226           <format>$1 $2 $3 $4</format>
19227         </numberFormat>
19228       </availableFormats>
19229       <generalDesc>
19230         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
19231         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19232       </generalDesc>
19233       <fixedLine>
19234         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
19235         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
19236         <exampleNumber>262161234</exampleNumber>
19237       </fixedLine>
19238       <mobile>
19239         <nationalNumberPattern>
19240           6(?:
19241             9[23]|
19242             47
19243           )\d{6}
19244         </nationalNumberPattern>
19245         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19246         <exampleNumber>692123456</exampleNumber>
19247       </mobile>
19248       <!-- 08* Numbers in Réunion are the same as those valid in France. -->
19249       <tollFree>
19250         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
19251         <exampleNumber>801234567</exampleNumber>
19252       </tollFree>
19253       <premiumRate>
19254         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
19255         <exampleNumber>891123456</exampleNumber>
19256       </premiumRate>
19257       <sharedCost>
19258         <nationalNumberPattern>
19259           8(?:
19260             1[019]|
19261             2[0156]|
19262             84|
19263             90
19264           )\d{6}
19265         </nationalNumberPattern>
19266         <exampleNumber>810123456</exampleNumber>
19267       </sharedCost>
19268     </territory>
19269
19270     <!-- Romania -->
19271     <!-- Extension prefix found online, confirmed by a Romanian. -->
19272     <territory id="RO" countryCode="40" internationalPrefix="00"
19273                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19274                preferredExtnPrefix=" int " mobileNumberPortableRegion="true">
19275       <references>
19276         <sourceUrl>http://www.itu.int/oth/T02020000AC/en</sourceUrl>
19277         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania</sourceUrl>
19278       </references>
19279       <availableFormats>
19280         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
19281           <leadingDigits>[23]1</leadingDigits>
19282           <format>$1 $2 $3</format>
19283         </numberFormat>
19284         <numberFormat pattern="(21)(\d{4})">
19285           <leadingDigits>21</leadingDigits>
19286           <format>$1 $2</format>
19287         </numberFormat>
19288         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19289           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
19290                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
19291                majority of numbers found online follow this convention. -->
19292           <leadingDigits>
19293             [23][3-7]|
19294             [7-9]
19295           </leadingDigits>
19296           <format>$1 $2 $3</format>
19297         </numberFormat>
19298         <numberFormat pattern="(2\d{2})(\d{3})">
19299           <leadingDigits>2[3-6]</leadingDigits>
19300           <format>$1 $2</format>
19301         </numberFormat>
19302       </availableFormats>
19303       <generalDesc>
19304         <nationalNumberPattern>
19305           2\d{5,8}|
19306           [37-9]\d{8}
19307         </nationalNumberPattern>
19308         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
19309              to wikipedia and people must dial the full number. However, there are still short
19310              numbers that total 6 digits long, so the possible number pattern should take these into
19311              account. -->
19312         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19313       </generalDesc>
19314       <fixedLine>
19315         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
19316              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
19317              this based on numbers found online and the wikipedia article which indicate that these
19318              are four digits long in Bucharest only, and three digits elsewhere. -->
19319         <nationalNumberPattern>
19320           2(?:
19321             1(?:
19322               \d{7}|
19323               9\d{3}
19324             )|
19325             [3-6](?:
19326               \d{7}|
19327               \d9\d{2}
19328             )
19329           )|
19330           3[13-6]\d{7}
19331           </nationalNumberPattern>
19332         <exampleNumber>211234567</exampleNumber>
19333       </fixedLine>
19334       <mobile>
19335         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
19336              numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
19337              open-source report and confirmation by existence of such numbers online. -->
19338         <nationalNumberPattern>
19339           7(?:
19340             000|
19341             [1-8]\d{2}|
19342             99\d
19343           )\d{5}
19344         </nationalNumberPattern>
19345         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19346         <exampleNumber>712345678</exampleNumber>
19347       </mobile>
19348       <tollFree>
19349         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19350         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19351         <exampleNumber>800123456</exampleNumber>
19352       </tollFree>
19353       <premiumRate>
19354         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
19355         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19356         <exampleNumber>900123456</exampleNumber>
19357       </premiumRate>
19358       <sharedCost>
19359         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19360         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19361         <exampleNumber>801123456</exampleNumber>
19362       </sharedCost>
19363       <personalNumber>
19364         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
19365         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19366         <exampleNumber>802123456</exampleNumber>
19367       </personalNumber>
19368       <uan>
19369         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
19370              location-independent national numbers. Only numbers beginning with 37 have been seen so
19371              these are the only ones supported for now. -->
19372         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
19373         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19374         <exampleNumber>372123456</exampleNumber>
19375       </uan>
19376     </territory>
19377
19378     <!-- Serbia -->
19379     <territory id="RS" countryCode="381" internationalPrefix="00"
19380                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19381                mobileNumberPortableRegion="true">
19382       <references>
19383         <sourceUrl>http://www.itu.int/oth/T02020000B9/en</sourceUrl>
19384         <sourceUrl>http://registar.ratel.rs/en/reg202</sourceUrl>
19385       </references>
19386       <availableFormats>
19387         <numberFormat pattern="([23]\d{2})(\d{4,9})">
19388           <leadingDigits>
19389             (?:
19390               2[389]|
19391               39
19392             )0
19393           </leadingDigits>
19394           <format>$1 $2</format>
19395         </numberFormat>
19396         <numberFormat pattern="([1-3]\d)(\d{5,10})">
19397           <leadingDigits>
19398             1|
19399             2(?:
19400               [0-24-7]|
19401               [389][1-9]
19402             )|
19403             3(?:
19404               [0-8]|
19405               9[1-9]
19406             )
19407           </leadingDigits>
19408           <format>$1 $2</format>
19409         </numberFormat>
19410         <numberFormat pattern="(6\d)(\d{6,8})">
19411           <leadingDigits>6</leadingDigits>
19412           <format>$1 $2</format>
19413         </numberFormat>
19414         <numberFormat pattern="([89]\d{2})(\d{3,9})">
19415           <leadingDigits>[89]</leadingDigits>
19416           <format>$1 $2</format>
19417         </numberFormat>
19418         <numberFormat pattern="(7[26])(\d{4,9})">
19419           <leadingDigits>7[26]</leadingDigits>
19420           <format>$1 $2</format>
19421         </numberFormat>
19422         <numberFormat pattern="(7[08]\d)(\d{4,9})">
19423           <leadingDigits>7[08]</leadingDigits>
19424           <format>$1 $2</format>
19425         </numberFormat>
19426       </availableFormats>
19427       <generalDesc>
19428         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
19429              by 2-9) and the country calling code (381). -->
19430         <nationalNumberPattern>
19431           [126-9]\d{4,11}|
19432           3(?:
19433             [0-79]\d{3,10}|
19434             8[2-9]\d{2,9}
19435           )
19436         </nationalNumberPattern>
19437         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19438       </generalDesc>
19439       <fixedLine>
19440         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
19441              has been issused, so we allow 11 1X here. -->
19442         <nationalNumberPattern>
19443           (?:
19444             1(?:
19445               [02-9][2-9]|
19446               1[1-9]
19447             )\d|
19448             2(?:
19449               [0-24-7][2-9]\d|
19450               [389](?:
19451                 0[2-9]|
19452                 [2-9]\d
19453               )
19454             )|
19455             3(?:
19456               [0-8][2-9]\d|
19457               9(?:
19458                 [2-9]\d|
19459                 0[2-9]
19460               )
19461             )
19462           )\d{3,8}
19463         </nationalNumberPattern>
19464         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19465         <exampleNumber>10234567</exampleNumber>
19466       </fixedLine>
19467       <mobile>
19468         <nationalNumberPattern>
19469           6(?:
19470             [0-689]|
19471             7\d
19472           )\d{6,7}
19473         </nationalNumberPattern>
19474         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
19475         <exampleNumber>601234567</exampleNumber>
19476       </mobile>
19477       <tollFree>
19478         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
19479         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19480         <exampleNumber>80012345</exampleNumber>
19481       </tollFree>
19482       <premiumRate>
19483         <nationalNumberPattern>
19484           (?:
19485             90[0169]|
19486             78\d
19487           )\d{3,7}
19488         </nationalNumberPattern>
19489         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19490         <exampleNumber>90012345</exampleNumber>
19491       </premiumRate>
19492       <uan>
19493         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
19494         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19495         <exampleNumber>700123456</exampleNumber>
19496       </uan>
19497     </territory>
19498
19499     <!-- Russian Federation -->
19500     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
19501                internationalPrefix="810" nationalPrefix="8"
19502                nationalPrefixFormattingRule="$NP ($FG)"
19503                nationalPrefixOptionalWhenFormatting="true" >
19504       <references>
19505         <sourceUrl>http://www.itu.int/oth/T02020000AD/en</sourceUrl>
19506         <sourceUrl>http://en.wikipedia.org/wiki/%2B7</sourceUrl>
19507       </references>
19508       <availableFormats>
19509         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
19510              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
19511              Kazakhstan as well. -->
19512         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
19513           <!-- Local numbers only - these do not start with the national prefix. -->
19514           <leadingDigits>[1-79]</leadingDigits>
19515           <format>$1-$2-$3</format>
19516           <intlFormat>NA</intlFormat>
19517         </numberFormat>
19518         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
19519           <leadingDigits>[34689]</leadingDigits>
19520           <format>$1 $2-$3-$4</format>
19521         </numberFormat>
19522         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
19523           <leadingDigits>7</leadingDigits>
19524           <format>$1 $2 $3</format>
19525         </numberFormat>
19526       </availableFormats>
19527       <generalDesc>
19528         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
19529         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19530       </generalDesc>
19531       <fixedLine>
19532         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
19533              in the yellow pages, and on their own website and is listed on wikipedia. This applies
19534              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
19535         <nationalNumberPattern>
19536           (?:
19537             3(?:
19538               0[12]|
19539               4[1-35-79]|
19540               5[1-3]|
19541               8[1-58]|
19542               9[0145]
19543             )|
19544             4(?:
19545               01|
19546               1[1356]|
19547               2[13467]|
19548               7[1-5]|
19549               8[1-7]|
19550               9[1-689]
19551             )|
19552             8(?:
19553               1[1-8]|
19554               2[01]|
19555               3[13-6]|
19556               4[0-8]|
19557               5[15]|
19558               6[1-35-7]|
19559               7[1-37-9]
19560             )
19561           )\d{7}
19562         </nationalNumberPattern>
19563         <exampleNumber>3011234567</exampleNumber>
19564       </fixedLine>
19565       <mobile>
19566         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
19567         <exampleNumber>9123456789</exampleNumber>
19568       </mobile>
19569       <tollFree>
19570         <!-- The metadata states that 804 numbers are UAN numbers, but
19571              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
19572              numbers. -->
19573         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
19574         <exampleNumber>8001234567</exampleNumber>
19575       </tollFree>
19576       <premiumRate>
19577         <!-- Covers tele-voting numbers as well. -->
19578         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
19579         <exampleNumber>8091234567</exampleNumber>
19580       </premiumRate>
19581     </territory>
19582
19583     <!-- Rwanda -->
19584     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
19585          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
19586          as http://www.tigo.co.rw "Choose Your Number" service. -->
19587     <territory id="RW" countryCode="250" internationalPrefix="00"
19588                nationalPrefix="0" leadingZeroPossible="true">
19589       <references>
19590         <sourceUrl>http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf</sourceUrl>
19591         <sourceUrl>http://en.wikipedia.org/wiki/+250</sourceUrl>
19592       </references>
19593       <availableFormats>
19594         <numberFormat nationalPrefixFormattingRule="$FG"
19595           pattern="(2\d{2})(\d{3})(\d{3})">
19596           <leadingDigits>2</leadingDigits>
19597           <format>$1 $2 $3</format>
19598         </numberFormat>
19599         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
19600           <leadingDigits>[7-9]</leadingDigits>
19601           <format>$1 $2 $3</format>
19602         </numberFormat>
19603         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
19604           <leadingDigits>0</leadingDigits>
19605           <format>$1 $2 $3 $4</format>
19606         </numberFormat>
19607       </availableFormats>
19608       <generalDesc>
19609         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
19610         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
19611       </generalDesc>
19612       <fixedLine>
19613         <!-- We support satellite numbers here, since they are in the plan, although no recent
19614              online examples can be found. We also support fixed-line ranges that have been reserved
19615              and paid for, even where no online numbers can be found. -->
19616         <nationalNumberPattern>
19617           2[258]\d{7}|
19618           06\d{6}
19619         </nationalNumberPattern>
19620         <exampleNumber>250123456</exampleNumber>
19621       </fixedLine>
19622       <mobile>
19623         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
19624              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
19625              license revoked. -->
19626         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
19627         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19628         <exampleNumber>720123456</exampleNumber>
19629       </mobile>
19630       <tollFree>
19631         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19632         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19633         <exampleNumber>800123456</exampleNumber>
19634       </tollFree>
19635       <premiumRate>
19636         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
19637         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19638         <exampleNumber>900123456</exampleNumber>
19639       </premiumRate>
19640     </territory>
19641
19642     <!-- Saudi Arabia -->
19643     <territory id="SA" countryCode="966" internationalPrefix="00"
19644                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19645                mobileNumberPortableRegion="true">
19646       <references>
19647         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia</sourceUrl>
19648         <sourceUrl>http://www.itu.int/oth/T02020000B7/en</sourceUrl>
19649       </references>
19650       <availableFormats>
19651         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
19652           <leadingDigits>[1-467]</leadingDigits>
19653           <format>$1 $2 $3</format>
19654         </numberFormat>
19655         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
19656           <leadingDigits>1[1-467]</leadingDigits>
19657           <format>$1 $2 $3</format>
19658         </numberFormat>
19659         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
19660           <leadingDigits>5</leadingDigits>
19661           <format>$1 $2 $3</format>
19662         </numberFormat>
19663         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
19664              the fact that no numbers of this form found online have a trunk prefix added. -->
19665         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
19666           <leadingDigits>92</leadingDigits>
19667           <format>$1 $2</format>
19668         </numberFormat>
19669         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
19670           <leadingDigits>80</leadingDigits>
19671           <format>$1 $2 $3</format>
19672         </numberFormat>
19673         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
19674           <leadingDigits>81</leadingDigits>
19675           <format>$1 $2 $3</format>
19676         </numberFormat>
19677       </availableFormats>
19678       <generalDesc>
19679         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
19680              fixed-line numbers. -->
19681         <nationalNumberPattern>
19682           1\d{7,8}|
19683           (?:
19684             [2-467]|
19685             92
19686           )\d{7}|
19687           5\d{8}|
19688           8\d{9}
19689         </nationalNumberPattern>
19690         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
19691       </generalDesc>
19692       <fixedLine>
19693         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
19694              happened in May for area code 1 (parallel running ended July 13th, 2013) and then in
19695              August for the other fixed-line numbers (parallel running ends October 18th, 2013). -->
19696         <nationalNumberPattern>
19697           11\d{7}|
19698           1?(?:
19699             2[24-8]|
19700             3[35-8]|
19701             4[3-68]|
19702             6[2-5]|
19703             7[235-7]
19704           )\d{6}
19705         </nationalNumberPattern>
19706         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
19707         <exampleNumber>112345678</exampleNumber>
19708       </fixedLine>
19709       <mobile>
19710         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
19711              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
19712              until we find evidence that this is an error, leaving them at 10 for now. -->
19713         <nationalNumberPattern>
19714           (?:
19715             5[013-689]|
19716             811
19717           )\d{7}
19718         </nationalNumberPattern>
19719         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
19720         <exampleNumber>512345678</exampleNumber>
19721       </mobile>
19722       <tollFree>
19723         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
19724         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19725         <exampleNumber>8001234567</exampleNumber>
19726       </tollFree>
19727       <sharedCost>
19728         <!-- Including shared revenue with shared cost here. -->
19729         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
19730         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19731         <exampleNumber>920012345</exampleNumber>
19732       </sharedCost>
19733     </territory>
19734
19735     <!-- Solomon Islands -->
19736     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
19737       <references>
19738         <sourceUrl>http://www.itu.int/oth/T02020000BF/en</sourceUrl>
19739       </references>
19740       <!-- A single group is used to format 5-digit numbers. -->
19741       <availableFormats>
19742         <numberFormat pattern="(\d{3})(\d{4})">
19743           <leadingDigits>[7-9]</leadingDigits>
19744           <format>$1 $2</format>
19745         </numberFormat>
19746       </availableFormats>
19747       <generalDesc>
19748         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
19749         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
19750       </generalDesc>
19751       <fixedLine>
19752         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
19753              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
19754         <nationalNumberPattern>
19755           (?:
19756             1[4-79]|
19757             [23]\d|
19758             4[01]|
19759             5[03]|
19760             6[0-37]
19761           )\d{3}
19762         </nationalNumberPattern>
19763         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19764         <exampleNumber>40123</exampleNumber>
19765       </fixedLine>
19766       <mobile>
19767         <nationalNumberPattern>
19768           48\d{3}|
19769           7(?:
19770             [0146-8]\d|
19771             5[025-9]|
19772             9[04]
19773           )\d{4}|
19774           8[4-8]\d{5}|
19775           9(?:
19776             [46]\d|
19777             5[0-46-9]|
19778             7[0-689]|
19779             8[0-79]|
19780             9[0-8]
19781           )\d{4}
19782         </nationalNumberPattern>
19783         <exampleNumber>7421234</exampleNumber>
19784       </mobile>
19785       <tollFree>
19786         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
19787         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19788         <exampleNumber>18123</exampleNumber>
19789       </tollFree>
19790       <voip>
19791         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
19792         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19793         <exampleNumber>51123</exampleNumber>
19794       </voip>
19795     </territory>
19796
19797     <!-- Seychelles -->
19798     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
19799                preferredInternationalPrefix="00">
19800       <references>
19801         <sourceUrl>http://www.itu.int/oth/T02020000BA/en</sourceUrl>
19802         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles</sourceUrl>
19803       </references>
19804       <availableFormats>
19805         <numberFormat pattern="(\d{3})(\d{3})">
19806           <leadingDigits>[89]</leadingDigits>
19807           <format>$1 $2</format>
19808         </numberFormat>
19809         <numberFormat pattern="(\d)(\d{3})(\d{3})">
19810           <leadingDigits>[246]</leadingDigits>
19811           <format>$1 $2 $3</format>
19812         </numberFormat>
19813       </availableFormats>
19814       <generalDesc>
19815         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
19816         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
19817       </generalDesc>
19818       <fixedLine>
19819         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
19820              they are more expensive to call than other Fixed Line services. ISDN and DID services
19821              are here too, since they seem to be also fixed-line phone numbers. -->
19822         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
19823         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19824         <exampleNumber>4217123</exampleNumber>
19825       </fixedLine>
19826       <mobile>
19827         <!-- Includes Fixed Cellular. -->
19828         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
19829         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19830         <exampleNumber>2510123</exampleNumber>
19831       </mobile>
19832       <tollFree>
19833         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
19834         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19835         <exampleNumber>800000</exampleNumber>
19836       </tollFree>
19837       <premiumRate>
19838         <!-- Using this to represent Value Added Service in the plan. -->
19839         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
19840         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19841         <exampleNumber>981234</exampleNumber>
19842       </premiumRate>
19843       <voip>
19844         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
19845         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19846         <exampleNumber>6412345</exampleNumber>
19847       </voip>
19848     </territory>
19849
19850     <!-- Sudan -->
19851     <territory id="SD" countryCode="249" internationalPrefix="00"
19852                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19853       <references>
19854         <sourceUrl>http://www.itu.int/oth/T02020000C4/en</sourceUrl>
19855       </references>
19856       <availableFormats>
19857         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19858           <format>$1 $2 $3</format>
19859         </numberFormat>
19860       </availableFormats>
19861       <generalDesc>
19862         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
19863         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19864       </generalDesc>
19865       <fixedLine>
19866         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
19867              found online. -->
19868         <nationalNumberPattern>
19869           1(?:
19870             [125]\d|
19871             8[3567]
19872           )\d{6}
19873         </nationalNumberPattern>
19874         <exampleNumber>121231234</exampleNumber>
19875       </fixedLine>
19876       <mobile>
19877         <!-- Adding 90X as online numbers have been found with this prefix. -->
19878         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
19879         <exampleNumber>911231234</exampleNumber>
19880       </mobile>
19881     </territory>
19882
19883     <!-- Sweden -->
19884     <territory id="SE" countryCode="46" internationalPrefix="00"
19885                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19886                mobileNumberPortableRegion="true">
19887       <references>
19888         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf</sourceUrl>
19889         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Nrplansammanst%C3%A4llning-2013-07-05.pdf</sourceUrl>
19890       </references>
19891       <availableFormats>
19892       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
19893            http://gulasidorna.eniro.se -->
19894         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
19895           <leadingDigits>8</leadingDigits>
19896           <format>$1-$2 $3 $4</format>
19897           <intlFormat>$1 $2 $3 $4</intlFormat>
19898         </numberFormat>
19899         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
19900           <leadingDigits>
19901             1[013689]|
19902             2[0136]|
19903             3[1356]|
19904             4[0246]|
19905             54|
19906             6[03]|
19907             90
19908           </leadingDigits>
19909           <format>$1-$2 $3 $4</format>
19910           <intlFormat>$1 $2 $3 $4</intlFormat>
19911         </numberFormat>
19912         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
19913           <leadingDigits>
19914             1[13689]|
19915             2[136]|
19916             3[1356]|
19917             4[0246]|
19918             54|
19919             6[03]|
19920             90
19921           </leadingDigits>
19922           <format>$1-$2 $3</format>
19923           <intlFormat>$1 $2 $3</intlFormat>
19924         </numberFormat>
19925         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
19926           <leadingDigits>
19927             1[2457]|
19928             2[2457-9]|
19929             3[0247-9]|
19930             4[1357-9]|
19931             5[0-35-9]|
19932             6[124-9]|
19933             9(?:
19934               [125-8]|
19935               3[0-5]|
19936               4[0-3]
19937             )
19938           </leadingDigits>
19939           <format>$1-$2 $3 $4</format>
19940           <intlFormat>$1 $2 $3 $4</intlFormat>
19941         </numberFormat>
19942         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
19943           <leadingDigits>
19944             1[2457]|
19945             2[2457-9]|
19946             3[0247-9]|
19947             4[1357-9]|
19948             5[0-35-9]|
19949             6[124-9]|
19950             9(?:
19951               [125-8]|
19952               3[0-5]|
19953               4[0-3]
19954             )
19955           </leadingDigits>
19956           <format>$1-$2 $3</format>
19957           <intlFormat>$1 $2 $3</intlFormat>
19958         </numberFormat>
19959         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
19960           <leadingDigits>7</leadingDigits>
19961           <format>$1-$2 $3 $4</format>
19962           <intlFormat>$1 $2 $3 $4</intlFormat>
19963         </numberFormat>
19964         <numberFormat pattern="(77)(\d{2})(\d{2})">
19965           <leadingDigits>7</leadingDigits>
19966           <format>$1-$2$3</format>
19967           <intlFormat>$1 $2 $3</intlFormat>
19968         </numberFormat>
19969         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
19970           <leadingDigits>20</leadingDigits>
19971           <format>$1-$2 $3</format>
19972           <intlFormat>$1 $2 $3</intlFormat>
19973         </numberFormat>
19974         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
19975           <leadingDigits>9[034]</leadingDigits>
19976           <format>$1-$2 $3 $4</format>
19977           <intlFormat>$1 $2 $3 $4</intlFormat>
19978         </numberFormat>
19979         <numberFormat pattern="(9[034]\d)(\d{4})">
19980           <leadingDigits>9[034]</leadingDigits>
19981           <format>$1-$2</format>
19982           <intlFormat>$1 $2</intlFormat>
19983         </numberFormat>
19984       </availableFormats>
19985       <generalDesc>
19986         <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
19987         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
19988       </generalDesc>
19989       <fixedLine>
19990         <nationalNumberPattern>
19991           1(?:
19992             0[1-8]\d{6}|
19993             [136]\d{5,7}|
19994             (?:
19995               2[0-35]|
19996               4[0-4]|
19997               5[0-25-9]|
19998               7[13-6]|
19999               [89]\d
20000             )\d{5,6}
20001           )|
20002           2(?:
20003             [136]\d{5,7}|
20004             (?:
20005               2[0-7]|
20006               4[0136-8]|
20007               5[0138]|
20008               7[018]|
20009               8[01]|
20010               9[0-57]
20011             )\d{5,6}
20012           )|
20013           3(?:
20014             [356]\d{5,7}|
20015             (?:
20016               0[0-4]|
20017               1\d|
20018               2[0-25]|
20019               4[056]|
20020               7[0-2]|
20021               8[0-3]|
20022               9[023]
20023             )\d{5,6}
20024           )|
20025           4(?:
20026             0[1-9]\d{4,6}|
20027             [246]\d{5,7}|
20028             (?:
20029               1[013-8]|
20030               3[0135]|
20031               5[14-79]|
20032               7[0-246-9]|
20033               8[0156]|
20034               9[0-689]
20035             )\d{5,6}
20036           )|
20037           5(?:
20038             0[0-6]|
20039             [15][0-5]|
20040             2[0-68]|
20041             3[0-4]|
20042             4\d|
20043             6[03-5]|
20044             7[013]|
20045             8[0-79]|
20046             9[01]
20047           )\d{5,6}|
20048           6(?:
20049             0[1-9]\d{4,6}|
20050             3\d{5,7}|
20051             (?:
20052               1[1-3]|
20053               2[0-4]|
20054               4[02-57]|
20055               5[0-37]|
20056               6[0-3]|
20057               7[0-2]|
20058               8[0247]|
20059               9[0-356]
20060             )\d{5,6}
20061           )|
20062           8[1-9]\d{5,7}|
20063           9(?:
20064             0[1-9]\d{4,6}|
20065             (?:
20066               1[0-68]|
20067               2\d|
20068               3[02-5]|
20069               4[0-3]|
20070               5[0-4]|
20071               [68][01]|
20072               7[0135-8]
20073             )\d{5,6}
20074           )
20075         </nationalNumberPattern>
20076         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20077         <exampleNumber>8123456</exampleNumber>
20078       </fixedLine>
20079       <mobile>
20080         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
20081         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20082         <exampleNumber>701234567</exampleNumber>
20083       </mobile>
20084       <pager>
20085         <nationalNumberPattern>74[02-9]\d{6}</nationalNumberPattern>
20086         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20087         <exampleNumber>740123456</exampleNumber>
20088       </pager>
20089       <tollFree>
20090         <nationalNumberPattern>
20091           20(?:
20092             0(?:
20093               0\d{2}|
20094               [1-9](?:
20095                 0\d{1,4}|
20096                 [1-9]\d{4}
20097               )
20098             )|
20099             1(?:
20100               0\d{4}|
20101               [1-9]\d{4,5}
20102             )|
20103             [2-9]\d{5}
20104           )
20105         </nationalNumberPattern>
20106         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20107         <exampleNumber>20123456</exampleNumber>
20108       </tollFree>
20109       <premiumRate>
20110         <nationalNumberPattern>
20111           9(?:
20112             00|
20113             39|
20114             44
20115           )(?:
20116             1(?:
20117               [0-26]\d{5}|
20118               [3-57-9]\d{2}
20119             )|
20120             2(?:
20121               [0-2]\d{5}|
20122               [3-9]\d{2}
20123             )|
20124             3(?:
20125               [0139]\d{5}|
20126               [24-8]\d{2}
20127             )|
20128             4(?:
20129               [045]\d{5}|
20130               [1-36-9]\d{2}
20131             )|
20132             5(?:
20133               5\d{5}|
20134               [0-46-9]\d{2}
20135             )|
20136             6(?:
20137               [679]\d{5}|
20138               [0-58]\d{2}
20139             )|
20140             7(?:
20141               [078]\d{5}|
20142               [1-69]\d{2}
20143             )|
20144             8(?:
20145               [578]\d{5}|
20146               [0-469]\d{2}
20147             )
20148           )
20149         </nationalNumberPattern>
20150         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
20151         <exampleNumber>9001234567</exampleNumber>
20152       </premiumRate>
20153       <sharedCost>
20154         <nationalNumberPattern>
20155           77(?:
20156             0(?:
20157               0\d{2}|
20158               [1-9](?:
20159                 0\d|
20160                 [1-9]\d{4}
20161               )
20162             )|
20163             [1-6][1-9]\d{5}
20164           )
20165         </nationalNumberPattern>
20166         <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
20167         <exampleNumber>771234567</exampleNumber>
20168       </sharedCost>
20169       <personalNumber>
20170         <nationalNumberPattern>75[1-8]\d{6}</nationalNumberPattern>
20171         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20172         <exampleNumber>751234567</exampleNumber>
20173       </personalNumber>
20174     </territory>
20175
20176     <!-- Singapore -->
20177     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d"
20178                mobileNumberPortableRegion="true">
20179       <references>
20180         <sourceUrl>http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx</sourceUrl>
20181       </references>
20182       <availableFormats>
20183         <numberFormat pattern="([3689]\d{3})(\d{4})">
20184           <leadingDigits>
20185             [369]|
20186             8[1-9]
20187           </leadingDigits>
20188           <format>$1 $2</format>
20189         </numberFormat>
20190         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
20191           <leadingDigits>1[89]</leadingDigits>
20192           <format>$1 $2 $3</format>
20193         </numberFormat>
20194         <numberFormat pattern="(7000)(\d{4})(\d{3})">
20195           <leadingDigits>70</leadingDigits>
20196           <format>$1 $2 $3</format>
20197         </numberFormat>
20198         <numberFormat pattern="(800)(\d{3})(\d{4})">
20199           <leadingDigits>80</leadingDigits>
20200           <format>$1 $2 $3</format>
20201         </numberFormat>
20202       </availableFormats>
20203       <generalDesc>
20204         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
20205              easily strip off leading "65" country codes. -->
20206         <nationalNumberPattern>
20207           [36]\d{7}|
20208           [17-9]\d{7,10}
20209         </nationalNumberPattern>
20210         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
20211       </generalDesc>
20212       <fixedLine>
20213         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
20214         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20215         <exampleNumber>61234567</exampleNumber>
20216       </fixedLine>
20217       <mobile>
20218         <nationalNumberPattern>
20219           (?:
20220             8[1-7]|
20221             9[0-8]
20222           )\d{6}
20223         </nationalNumberPattern>
20224         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20225         <exampleNumber>81234567</exampleNumber>
20226       </mobile>
20227       <tollFree>
20228         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
20229         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
20230         <exampleNumber>18001234567</exampleNumber>
20231       </tollFree>
20232       <premiumRate>
20233         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
20234         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20235         <exampleNumber>19001234567</exampleNumber>
20236       </premiumRate>
20237       <voip>
20238         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
20239         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20240         <exampleNumber>31234567</exampleNumber>
20241       </voip>
20242       <uan>
20243         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
20244              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
20245              -->
20246         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
20247         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20248         <exampleNumber>70001234567</exampleNumber>
20249       </uan>
20250     </territory>
20251
20252     <!-- Saint Helena -->
20253     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
20254       <references>
20255         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
20256       </references>
20257       <!-- Numbers are formatted as a block. -->
20258       <generalDesc>
20259         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
20260         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
20261       </generalDesc>
20262       <fixedLine>
20263         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
20264              The new pattern is first, followed by the old (hence the repetition of the leading 2).
20265              -->
20266         <nationalNumberPattern>
20267           2(?:
20268             [0-57-9]\d|
20269             6[4-9]
20270           )\d{2}|
20271           (?:
20272             [2-46]\d|
20273             7[01]
20274           )\d{2}
20275         </nationalNumberPattern>
20276         <!-- Using St Helena Tourism as the example number. -->
20277         <exampleNumber>2158</exampleNumber>
20278       </fixedLine>
20279       <mobile>
20280         <nationalNumberPattern>NA</nationalNumberPattern>
20281         <possibleNumberPattern>NA</possibleNumberPattern>
20282       </mobile>
20283       <premiumRate>
20284         <nationalNumberPattern>
20285           (?:
20286             [59]\d|
20287             7[2-9]
20288           )\d{2}
20289         </nationalNumberPattern>
20290         <exampleNumber>5012</exampleNumber>
20291       </premiumRate>
20292     </territory>
20293
20294     <!-- Slovenia -->
20295     <territory id="SI" countryCode="386" internationalPrefix="00"
20296                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20297                mobileNumberPortableRegion="true">
20298       <references>
20299         <sourceUrl>http://www.itu.int/oth/T02020000BE/en</sourceUrl>
20300       </references>
20301       <availableFormats>
20302         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
20303           pattern="(\d)(\d{3})(\d{2})(\d{2})">
20304           <leadingDigits>
20305             [12]|
20306             3[4-8]|
20307             4[24-8]|
20308             5[2-8]|
20309             7[3-8]
20310           </leadingDigits>
20311           <format>$1 $2 $3 $4</format>
20312           </numberFormat>
20313         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
20314           <leadingDigits>
20315             [37][01]|
20316             4[0139]|
20317             51|
20318             6
20319           </leadingDigits>
20320           <format>$1 $2 $3</format>
20321           </numberFormat>
20322         <numberFormat pattern="([89][09])(\d{3,6})">
20323           <leadingDigits>[89][09]</leadingDigits>
20324           <format>$1 $2</format>
20325         </numberFormat>
20326         <numberFormat pattern="([58]\d{2})(\d{5})">
20327           <leadingDigits>
20328             59|
20329             8[1-3]
20330           </leadingDigits>
20331           <format>$1 $2</format>
20332         </numberFormat>
20333       </availableFormats>
20334       <generalDesc>
20335         <nationalNumberPattern>
20336           [1-7]\d{6,7}|
20337           [89]\d{4,7}
20338         </nationalNumberPattern>
20339         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20340       </generalDesc>
20341       <fixedLine>
20342         <nationalNumberPattern>
20343           (?:
20344             1\d|
20345             [25][2-8]|
20346             3[4-8]|
20347             4[24-8]|
20348             7[3-8]
20349           )\d{6}
20350         </nationalNumberPattern>
20351         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
20352         <exampleNumber>11234567</exampleNumber>
20353       </fixedLine>
20354       <mobile>
20355         <!-- We include 043 and 049 here - it is VoIP in the plan, but is actually used to provide
20356              mobile coverage to Kosovo. Also added 068, which is used by the mobile operator bob.si
20357          -->
20358         <nationalNumberPattern>
20359           (?:
20360             [37][01]|
20361             4[0139]|
20362             51|
20363             6[48]
20364           )\d{6}
20365         </nationalNumberPattern>
20366         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20367         <exampleNumber>31234567</exampleNumber>
20368       </mobile>
20369       <tollFree>
20370         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
20371         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20372         <exampleNumber>80123456</exampleNumber>
20373       </tollFree>
20374       <premiumRate>
20375         <!-- Includes televoting, mass calling -->
20376         <nationalNumberPattern>
20377           90\d{4,6}|
20378           89[1-3]\d{2,5}
20379         </nationalNumberPattern>
20380         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20381         <exampleNumber>90123456</exampleNumber>
20382       </premiumRate>
20383       <voip>
20384         <nationalNumberPattern>
20385           (?:
20386             59|
20387             8[1-3]
20388           )\d{6}
20389         </nationalNumberPattern>
20390         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20391         <exampleNumber>59012345</exampleNumber>
20392       </voip>
20393     </territory>
20394
20395     <!-- Svalbard -->
20396     <!-- Metadata shared with Norway. -->
20397     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
20398       <references>
20399         <sourceUrl>http://www.npt.no/pt_internet/numsys/E.164.pdf</sourceUrl>
20400       </references>
20401       <generalDesc>
20402         <nationalNumberPattern>
20403           0\d{4}|
20404           [4789]\d{7}
20405         </nationalNumberPattern>
20406         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
20407       </generalDesc>
20408       <fixedLine>
20409         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
20410         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20411         <exampleNumber>79123456</exampleNumber>
20412       </fixedLine>
20413       <!-- Copied from Norway metadata. -->
20414       <mobile>
20415         <nationalNumberPattern>
20416           (?:
20417             4[015-8]|
20418             5[89]|
20419             9\d
20420           )\d{6}
20421         </nationalNumberPattern>
20422         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20423         <exampleNumber>41234567</exampleNumber>
20424       </mobile>
20425       <tollFree>
20426         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
20427         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20428         <exampleNumber>80012345</exampleNumber>
20429       </tollFree>
20430       <premiumRate>
20431         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
20432         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20433         <exampleNumber>82012345</exampleNumber>
20434       </premiumRate>
20435       <sharedCost>
20436         <nationalNumberPattern>
20437           810(?:
20438             0[0-6]|
20439             [2-8]\d
20440           )\d{3}
20441         </nationalNumberPattern>
20442         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20443         <exampleNumber>81021234</exampleNumber>
20444       </sharedCost>
20445       <personalNumber>
20446         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
20447         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20448         <exampleNumber>88012345</exampleNumber>
20449       </personalNumber>
20450       <voip>
20451         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
20452         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20453         <exampleNumber>85012345</exampleNumber>
20454       </voip>
20455       <uan>
20456         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
20457         <nationalNumberPattern>
20458           0\d{4}|
20459           81(?:
20460             0(?:
20461               0[7-9]|
20462               1\d
20463             )|
20464             5\d{2}
20465           )\d{3}
20466         </nationalNumberPattern>
20467         <exampleNumber>01234</exampleNumber>
20468       </uan>
20469       <voicemail>
20470         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
20471         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20472         <exampleNumber>81212345</exampleNumber>
20473       </voicemail>
20474     </territory>
20475
20476     <!-- Slovakia -->
20477     <territory id="SK" countryCode="421" internationalPrefix="00"
20478                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20479                mobileNumberPortableRegion="true">
20480       <references>
20481         <sourceUrl>http://www.itu.int/oth/T02020000BD/en</sourceUrl>
20482       </references>
20483       <availableFormats>
20484         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
20485           <leadingDigits>2</leadingDigits>
20486           <format>$1/$2 $3 $4</format>
20487         </numberFormat>
20488         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
20489           <leadingDigits>[3-5]</leadingDigits>
20490           <format>$1/$2 $3 $4</format>
20491         </numberFormat>
20492         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
20493           <leadingDigits>[689]</leadingDigits>
20494           <format>$1 $2 $3</format>
20495         </numberFormat>
20496       </availableFormats>
20497       <generalDesc>
20498         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
20499         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20500       </generalDesc>
20501       <noInternationalDialling>
20502         <nationalNumberPattern>
20503           (?:
20504             8(?:
20505               00|
20506               [5-9]\d
20507             )|
20508             9(?:
20509               00|
20510               [78]\d
20511             )
20512           )\d{6}
20513         </nationalNumberPattern>
20514         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20515         <exampleNumber>800123456</exampleNumber>
20516       </noInternationalDialling>
20517       <fixedLine>
20518         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
20519         <exampleNumber>212345678</exampleNumber>
20520       </fixedLine>
20521       <mobile>
20522         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
20523              deeming it valid for now. -->
20524         <nationalNumberPattern>
20525           9(?:
20526             0[1-8]|
20527             1[0-24-9]|
20528             4[0489]
20529           )\d{6}
20530         </nationalNumberPattern>
20531         <exampleNumber>912123456</exampleNumber>
20532       </mobile>
20533       <tollFree>
20534         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20535         <exampleNumber>800123456</exampleNumber>
20536       </tollFree>
20537       <premiumRate>
20538         <nationalNumberPattern>
20539           9(?:
20540             [78]\d{7}|
20541             00\d{6}
20542           )
20543         </nationalNumberPattern>
20544         <exampleNumber>900123456</exampleNumber>
20545       </premiumRate>
20546       <sharedCost>
20547         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
20548         <exampleNumber>850123456</exampleNumber>
20549       </sharedCost>
20550       <voip>
20551         <nationalNumberPattern>
20552           6(?:
20553             5[0-4]|
20554             9[0-6]
20555           )\d{6}
20556         </nationalNumberPattern>
20557         <exampleNumber>690123456</exampleNumber>
20558       </voip>
20559       <uan>
20560         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
20561         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20562         <exampleNumber>961234567</exampleNumber>
20563       </uan>
20564     </territory>
20565
20566     <!-- Sierra Leone -->
20567     <territory id="SL" countryCode="232" internationalPrefix="00"
20568                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
20569       <references>
20570         <sourceUrl>http://www.itu.int/oth/T02020000BB/en</sourceUrl>
20571       </references>
20572       <availableFormats>
20573         <!-- Following formatting of online yellow pages http://www.leonedirect.com -->
20574         <numberFormat pattern="(\d{2})(\d{6})">
20575           <format>$1 $2</format>
20576         </numberFormat>
20577       </availableFormats>
20578       <generalDesc>
20579         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
20580         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20581       </generalDesc>
20582       <fixedLine>
20583         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
20584         <exampleNumber>22221234</exampleNumber>
20585       </fixedLine>
20586       <mobile>
20587         <nationalNumberPattern>
20588           (?:
20589             2[15]|
20590             3[034]|
20591             4[04]|
20592             5[05]|
20593             7[6-9]|
20594             88
20595           )\d{6}
20596         </nationalNumberPattern>
20597         <exampleNumber>25123456</exampleNumber>
20598       </mobile>
20599     </territory>
20600
20601     <!-- San Marino -->
20602     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
20603          optional when dialling from outside the country; the phone number can be reached both with
20604          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
20605          are used to ensure that if the 0549 is not present, it will be added. -->
20606     <territory id="SM" countryCode="378" internationalPrefix="00"
20607                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
20608                leadingZeroPossible="true">
20609       <references>
20610         <sourceUrl>http://www.itu.int/oth/T02020000B5/en</sourceUrl>
20611         <!-- Information about Italy. -->
20612         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
20613         <sourceUrl>http://en.wikipedia.org/wiki/%2B378</sourceUrl>
20614       </references>
20615       <availableFormats>
20616         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
20617           <leadingDigits>[5-7]</leadingDigits>
20618           <format>$1 $2 $3 $4</format>
20619         </numberFormat>
20620         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
20621         <numberFormat pattern="(0549)(\d{6})">
20622           <leadingDigits>0</leadingDigits>
20623           <format>$1 $2</format>
20624           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
20625                formatting in international format. -->
20626           <intlFormat>($1) $2</intlFormat>
20627         </numberFormat>
20628         <!-- A rule in case the number has been stored without the leading 0549 necessary for
20629              fixed-lines. -->
20630         <numberFormat pattern="(\d{6})">
20631           <leadingDigits>[89]</leadingDigits>
20632           <format>0549 $1</format>
20633           <intlFormat>(0549) $1</intlFormat>
20634         </numberFormat>
20635       </availableFormats>
20636       <generalDesc>
20637         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
20638         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
20639       </generalDesc>
20640       <!-- Example numbers provided by the Telecommunications Services. -->
20641       <fixedLine>
20642         <nationalNumberPattern>
20643           0549(?:
20644             8[0157-9]|
20645             9\d
20646           )\d{4}
20647         </nationalNumberPattern>
20648         <exampleNumber>0549886377</exampleNumber>
20649       </fixedLine>
20650       <mobile>
20651         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
20652         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20653         <exampleNumber>66661212</exampleNumber>
20654       </mobile>
20655       <premiumRate>
20656         <!-- Includes Video Call numbers. -->
20657         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
20658         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20659         <exampleNumber>71123456</exampleNumber>
20660       </premiumRate>
20661       <voip>
20662         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
20663         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20664         <exampleNumber>58001110</exampleNumber>
20665       </voip>
20666     </territory>
20667
20668     <!-- Senegal -->
20669     <territory id="SN" countryCode="221" internationalPrefix="00">
20670       <references>
20671         <sourceUrl>http://www.itu.int/oth/T02020000B8/en</sourceUrl>
20672         <sourceUrl>http://www.artpsenegal.net</sourceUrl>
20673       </references>
20674       <availableFormats>
20675         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
20676              the national numbering plan. -->
20677         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
20678           <leadingDigits>[379]</leadingDigits>
20679           <format>$1 $2 $3 $4</format>
20680         </numberFormat>
20681         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20682           <leadingDigits>8</leadingDigits>
20683           <format>$1 $2 $3 $4</format>
20684         </numberFormat>
20685       </availableFormats>
20686       <generalDesc>
20687         <nationalNumberPattern>[3789]\d{8}</nationalNumberPattern>
20688         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20689       </generalDesc>
20690       <fixedLine>
20691         <nationalNumberPattern>
20692           3(?:
20693             0(?:
20694               1[0-2]|
20695               80
20696             )|
20697             282|
20698             3(?:
20699               8[1-9]|
20700               9[3-9]
20701             )|
20702             611|
20703             90[1-5]
20704           )\d{5}
20705         </nationalNumberPattern>
20706         <exampleNumber>301012345</exampleNumber>
20707       </fixedLine>
20708       <mobile>
20709         <nationalNumberPattern>
20710           7(?:
20711             [067]\d|
20712             21|
20713             8[0-26]|
20714             90
20715           )\d{6}
20716         </nationalNumberPattern>
20717         <exampleNumber>701234567</exampleNumber>
20718       </mobile>
20719       <tollFree>
20720         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20721         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20722         <exampleNumber>800123456</exampleNumber>
20723       </tollFree>
20724       <premiumRate>
20725         <!-- Revenu Partagé in the plan. -->
20726         <nationalNumberPattern>88[4689]\d{6}</nationalNumberPattern>
20727         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20728         <exampleNumber>884123456</exampleNumber>
20729       </premiumRate>
20730       <sharedCost>
20731         <nationalNumberPattern>81[02468]\d{6}</nationalNumberPattern>
20732         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20733         <exampleNumber>810123456</exampleNumber>
20734       </sharedCost>
20735       <voip>
20736         <!-- Also covers satellite telephony ranges. -->
20737         <nationalNumberPattern>
20738           3392\d{5}|
20739           93330\d{4}
20740         </nationalNumberPattern>
20741         <exampleNumber>933301234</exampleNumber>
20742       </voip>
20743     </territory>
20744
20745     <!-- Somalia -->
20746     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
20747          information available, and the numerous telecom carriers were previously working under an
20748          unregulated environment. The extra prefixes were added from the contact phone numbers of
20749          the countries main telecom operators. We also have received information that a national
20750          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
20751          for some operators, so that is included here although we do not use it when formatting. -->
20752     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
20753       <references>
20754         <sourceUrl>http://www.itu.int/oth/T02020000C0/en</sourceUrl>
20755         <sourceUrl>http://en.wikipedia.org/wiki/+252</sourceUrl>
20756       </references>
20757       <availableFormats>
20758         <!-- These follow formats online, such as http://www.hortel.net/contact_us.html -->
20759         <numberFormat pattern="(\d)(\d{6})">
20760           <leadingDigits>
20761             2[0-79]|
20762             [13-5]
20763           </leadingDigits>
20764           <format>$1 $2</format>
20765         </numberFormat>
20766         <numberFormat pattern="(\d)(\d{7})">
20767           <leadingDigits>
20768             24|
20769             [67]
20770           </leadingDigits>
20771           <format>$1 $2</format>
20772         </numberFormat>
20773         <numberFormat pattern="(\d{2})(\d{5,7})">
20774           <leadingDigits>
20775             15|
20776             28|
20777             6[1378]
20778           </leadingDigits>
20779           <format>$1 $2</format>
20780         </numberFormat>
20781         <numberFormat pattern="(69\d)(\d{6})">
20782           <leadingDigits>69</leadingDigits>
20783           <format>$1 $2</format>
20784         </numberFormat>
20785         <numberFormat pattern="(90\d)(\d{3})(\d{3})">
20786           <leadingDigits>90</leadingDigits>
20787           <format>$1 $2 $3</format>
20788         </numberFormat>
20789       </availableFormats>
20790       <generalDesc>
20791         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
20792         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20793       </generalDesc>
20794       <fixedLine>
20795         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
20796              here since that is apparently used for mobile. -->
20797         <nationalNumberPattern>
20798           (?:
20799             1\d|
20800             2[0-79]|
20801             3[0-46-8]|
20802             4[0-7]|
20803             59
20804           )\d{5}
20805         </nationalNumberPattern>
20806         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20807         <exampleNumber>4012345</exampleNumber>
20808       </fixedLine>
20809       <mobile>
20810         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
20811              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
20812              Somtel. 6 followed by only 7 digits is used by Telecom. Note that in June 2014 many
20813              ranges were suspended by the government. 90\d{6} was listed as one of the ranges to be
20814              suspended, but open-source contributors confirm that 907\d{6} is still in use, even if
20815              the shorter 90 ranges are no longer. -->
20816         <nationalNumberPattern>
20817           (?:
20818             15\d|
20819             2(?:
20820               4\d|
20821               8
20822             )|
20823             6[137-9]?\d{2}|
20824             7[1-9]\d|
20825             907\d
20826           )\d{5}
20827         </nationalNumberPattern>
20828         <exampleNumber>71123456</exampleNumber>
20829       </mobile>
20830     </territory>
20831
20832     <!-- Suriname -->
20833     <territory id="SR" countryCode="597" internationalPrefix="00">
20834       <references>
20835         <sourceUrl>http://www.itu.int/oth/T02020000C5/en</sourceUrl>
20836       </references>
20837       <availableFormats>
20838         <!-- Following conventions used in the Suriname Yellow Pages. -->
20839         <numberFormat pattern="(\d{3})(\d{3})">
20840           <leadingDigits>
20841             [2-4]|
20842             5[2-58]
20843           </leadingDigits>
20844           <format>$1-$2</format>
20845         </numberFormat>
20846         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
20847           <leadingDigits>56</leadingDigits>
20848           <format>$1-$2-$3</format>
20849         </numberFormat>
20850         <numberFormat pattern="(\d{3})(\d{4})">
20851           <leadingDigits>[6-8]</leadingDigits>
20852           <format>$1-$2</format>
20853         </numberFormat>
20854       </availableFormats>
20855       <generalDesc>
20856         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
20857         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20858       </generalDesc>
20859       <fixedLine>
20860         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
20861         <nationalNumberPattern>
20862           (?:
20863             2[1-3]|
20864             3[0-7]|
20865             4\d|
20866             5[2-58]|
20867             68\d
20868           )\d{4}
20869         </nationalNumberPattern>
20870         <exampleNumber>211234</exampleNumber>
20871       </fixedLine>
20872       <mobile>
20873         <nationalNumberPattern>
20874           (?:
20875             7(?:
20876               [1-357]\d|
20877               4[0-5]
20878             )|
20879             8[1-9]\d
20880           )\d{4}
20881         </nationalNumberPattern>
20882         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20883         <exampleNumber>7412345</exampleNumber>
20884       </mobile>
20885       <voip>
20886         <nationalNumberPattern>56\d{4}</nationalNumberPattern>
20887         <possibleNumberPattern>\d{6}</possibleNumberPattern>
20888         <exampleNumber>561234</exampleNumber>
20889       </voip>
20890     </territory>
20891
20892     <!-- South Sudan -->
20893     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
20894       <references>
20895         <sourceUrl>http://www.itu.int/oth/T02020000F9/en</sourceUrl>
20896         <sourceUrl>http://en.wikipedia.org/wiki/+211</sourceUrl>
20897       </references>
20898       <availableFormats>
20899         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
20900           <format>$1 $2 $3</format>
20901         </numberFormat>
20902       </availableFormats>
20903       <generalDesc>
20904         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
20905         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20906       </generalDesc>
20907       <fixedLine>
20908         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
20909         <exampleNumber>181234567</exampleNumber>
20910       </fixedLine>
20911       <mobile>
20912         <nationalNumberPattern>
20913           (?:
20914             12|
20915             9[1257]
20916           )\d{7}
20917         </nationalNumberPattern>
20918         <exampleNumber>977123456</exampleNumber>
20919       </mobile>
20920     </territory>
20921
20922     <!-- Sao Tome and Principe -->
20923     <territory id="ST" countryCode="239" internationalPrefix="00">
20924       <references>
20925         <sourceUrl>http://www.itu.int/oth/T02020000B6/en</sourceUrl>
20926       </references>
20927       <availableFormats>
20928         <numberFormat pattern="(\d{3})(\d{4})">
20929           <format>$1 $2</format>
20930         </numberFormat>
20931       </availableFormats>
20932       <generalDesc>
20933         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
20934         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20935       </generalDesc>
20936       <fixedLine>
20937         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
20938         <exampleNumber>2221234</exampleNumber>
20939       </fixedLine>
20940       <mobile>
20941         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
20942         <exampleNumber>9812345</exampleNumber>
20943       </mobile>
20944     </territory>
20945
20946     <!-- El Salvador -->
20947     <territory id="SV" countryCode="503" internationalPrefix="00">
20948       <references>
20949         <sourceUrl>http://www.itu.int/oth/T020200003F/en</sourceUrl>
20950         <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>
20951       </references>
20952       <availableFormats>
20953         <numberFormat pattern="(\d{4})(\d{4})">
20954           <leadingDigits>[267]</leadingDigits>
20955           <format>$1 $2</format>
20956         </numberFormat>
20957         <numberFormat pattern="(\d{3})(\d{4})">
20958           <leadingDigits>[89]</leadingDigits>
20959           <format>$1 $2</format>
20960         </numberFormat>
20961         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
20962           <leadingDigits>[89]</leadingDigits>
20963           <format>$1 $2 $3</format>
20964         </numberFormat>
20965       </availableFormats>
20966       <generalDesc>
20967         <nationalNumberPattern>
20968           [267]\d{7}|
20969           [89]\d{6}(?:\d{4})?
20970         </nationalNumberPattern>
20971         <possibleNumberPattern>
20972           \d{7,8}|
20973           \d{11}
20974         </possibleNumberPattern>
20975       </generalDesc>
20976       <fixedLine>
20977         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
20978         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
20979         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20980         <exampleNumber>21234567</exampleNumber>
20981       </fixedLine>
20982       <mobile>
20983         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
20984         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20985         <exampleNumber>70123456</exampleNumber>
20986       </mobile>
20987       <tollFree>
20988         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
20989         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
20990         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
20991         <exampleNumber>8001234</exampleNumber>
20992       </tollFree>
20993       <premiumRate>
20994         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
20995         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
20996         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
20997         <exampleNumber>9001234</exampleNumber>
20998       </premiumRate>
20999     </territory>
21000
21001     <!-- Sint Maarten -->
21002     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
21003                internationalPrefix="011">
21004       <references>
21005         <sourceUrl>http://www.nanpa.com/pdf/PL_429.pdf</sourceUrl>
21006         <sourceUrl>http://www.itu.int/oth/T02020000F7/en</sourceUrl>
21007       </references>
21008       <generalDesc>
21009         <!-- NANPA country - uses US formatting rules -->
21010         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
21011         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21012       </generalDesc>
21013       <fixedLine>
21014         <nationalNumberPattern>
21015           7215(?:
21016             4[2-8]|
21017             8[239]|
21018             9[056]
21019           )\d{4}
21020         </nationalNumberPattern>
21021         <exampleNumber>7215425678</exampleNumber>
21022       </fixedLine>
21023       <mobile>
21024         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
21025              include these as mobile numbers. -->
21026         <nationalNumberPattern>
21027           7215(?:
21028             1[02]|
21029             2\d|
21030             5[034679]|
21031             8[014-8]
21032           )\d{4}
21033         </nationalNumberPattern>
21034         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21035         <exampleNumber>7215205678</exampleNumber>
21036       </mobile>
21037       <tollFree>
21038         <nationalNumberPattern>
21039           8(?:
21040             00|
21041             44|
21042             55|
21043             66|
21044             77|
21045             88
21046           )[2-9]\d{6}
21047         </nationalNumberPattern>
21048         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21049         <exampleNumber>8002123456</exampleNumber>
21050       </tollFree>
21051       <premiumRate>
21052         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21053         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21054         <exampleNumber>9002123456</exampleNumber>
21055       </premiumRate>
21056       <personalNumber>
21057         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21058         <nationalNumberPattern>
21059           5(?:
21060             00|
21061             33|
21062             44|
21063             66|
21064             77
21065           )[2-9]\d{6}
21066         </nationalNumberPattern>
21067         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21068         <exampleNumber>5002345678</exampleNumber>
21069       </personalNumber>
21070     </territory>
21071
21072     <!-- Syrian Arab Republic -->
21073     <territory id="SY" countryCode="963" internationalPrefix="00"
21074                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21075                nationalPrefixOptionalWhenFormatting="true">
21076       <references>
21077         <sourceUrl>http://www.itu.int/oth/T02020000C9/en</sourceUrl>
21078         <sourceUrl>http://en.wikipedia.org/wiki/%2B963</sourceUrl>
21079       </references>
21080       <availableFormats>
21081         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
21082           <leadingDigits>[1-5]</leadingDigits>
21083           <format>$1 $2 $3</format>
21084         </numberFormat>
21085         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
21086           <leadingDigits>9</leadingDigits>
21087           <format>$1 $2 $3</format>
21088         </numberFormat>
21089       </availableFormats>
21090       <generalDesc>
21091         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
21092         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
21093       </generalDesc>
21094       <fixedLine>
21095       <!-- Numbers with the 21 prefix are made optionally 1-digit longer based on numbers found on
21096            the Internet. -->
21097         <nationalNumberPattern>
21098           (?:
21099             1(?:
21100               1\d?|
21101               4\d|
21102               [2356]
21103             )|
21104             2(?:
21105               1\d?|
21106               [235]
21107             )|
21108             3(?:
21109               [13]\d|
21110               4
21111             )|
21112             4[13]|
21113             5[1-3]
21114           )\d{6}
21115         </nationalNumberPattern>
21116         <exampleNumber>112345678</exampleNumber>
21117       </fixedLine>
21118       <mobile>
21119         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
21120              95[138], and 96[05]. -->
21121         <nationalNumberPattern>
21122           9(?:
21123             22|
21124             [35][0-8]|
21125             4\d|
21126             6[024-9]|
21127             88|
21128             9[0-489]
21129           )\d{6}
21130         </nationalNumberPattern>
21131         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21132         <exampleNumber>944567890</exampleNumber>
21133       </mobile>
21134       <!-- No tollFree or premiumRate information can be found. -->
21135     </territory>
21136
21137     <!-- Swaziland -->
21138     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
21139       <references>
21140         <sourceUrl>http://www.itu.int/oth/T02020000C6/en</sourceUrl>
21141       </references>
21142       <availableFormats>
21143         <numberFormat pattern="(\d{4})(\d{4})">
21144           <leadingDigits>[027]</leadingDigits>
21145           <format>$1 $2</format>
21146         </numberFormat>
21147       </availableFormats>
21148       <generalDesc>
21149         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
21150         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21151       </generalDesc>
21152       <noInternationalDialling>
21153         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21154         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21155         <exampleNumber>08001234</exampleNumber>
21156       </noInternationalDialling>
21157       <fixedLine>
21158         <nationalNumberPattern>
21159           2(?:
21160             2(?:
21161               0[07]|
21162               [13]7|
21163               2[57]
21164             )|
21165             3(?:
21166               0[34]|
21167               [1278]3|
21168               3[23]|
21169               [46][34]
21170             )|
21171             (?:
21172               40[4-69]|
21173               67
21174             )|
21175             5(?:
21176               0[5-7]|
21177               1[6-9]|
21178               [23][78]|
21179               48|
21180               5[01]
21181             )
21182           )\d{4}
21183         </nationalNumberPattern>
21184         <exampleNumber>22171234</exampleNumber>
21185       </fixedLine>
21186       <mobile>
21187         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
21188         <exampleNumber>76123456</exampleNumber>
21189       </mobile>
21190       <tollFree>
21191         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21192         <exampleNumber>08001234</exampleNumber>
21193       </tollFree>
21194     </territory>
21195
21196     <!-- Tristan da Cunha -->
21197     <territory id="TA" countryCode="290" internationalPrefix="00">
21198       <references>
21199         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
21200       </references>
21201       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
21202       <generalDesc>
21203         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21204         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21205       </generalDesc>
21206       <fixedLine>
21207         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21208         <exampleNumber>8999</exampleNumber>
21209       </fixedLine>
21210       <mobile>
21211         <nationalNumberPattern>NA</nationalNumberPattern>
21212         <possibleNumberPattern>NA</possibleNumberPattern>
21213       </mobile>
21214     </territory>
21215
21216     <!-- Turks and Caicos Islands -->
21217     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
21218                internationalPrefix="011">
21219       <references>
21220         <sourceUrl>http://www.itu.int/oth/T02020000D8/en</sourceUrl>
21221       </references>
21222       <generalDesc>
21223         <!-- NANPA country - uses US formatting rules -->
21224         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
21225         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21226       </generalDesc>
21227       <fixedLine>
21228         <nationalNumberPattern>
21229           649(?:
21230             712|
21231             9(?:
21232               4\d|
21233               50
21234             )
21235           )\d{4}
21236         </nationalNumberPattern>
21237         <exampleNumber>6497121234</exampleNumber>
21238       </fixedLine>
21239       <mobile>
21240         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
21241         <nationalNumberPattern>
21242           649(?:
21243             2(?:
21244               3[129]|
21245               4[1-7]
21246             )|
21247             3(?:
21248               3[1-389]|
21249               4[1-7]
21250             )|
21251             4[34][1-3]
21252           )\d{4}
21253         </nationalNumberPattern>
21254         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21255         <exampleNumber>6492311234</exampleNumber>
21256       </mobile>
21257       <tollFree>
21258         <nationalNumberPattern>
21259           8(?:
21260             00|
21261             44|
21262             55|
21263             66|
21264             77|
21265             88
21266           )[2-9]\d{6}
21267         </nationalNumberPattern>
21268         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21269         <exampleNumber>8002345678</exampleNumber>
21270       </tollFree>
21271       <premiumRate>
21272         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21273         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21274         <exampleNumber>9002345678</exampleNumber>
21275       </premiumRate>
21276       <personalNumber>
21277         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21278         <nationalNumberPattern>
21279           5(?:
21280             00|
21281             33|
21282             44|
21283             66|
21284             77
21285           )[2-9]\d{6}
21286         </nationalNumberPattern>
21287         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21288         <exampleNumber>5002345678</exampleNumber>
21289       </personalNumber>
21290       <voip>
21291         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
21292         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21293         <exampleNumber>6497101234</exampleNumber>
21294       </voip>
21295     </territory>
21296
21297     <!-- Chad -->
21298     <!-- The international prefix includes 16 as the international manual exchange. -->
21299     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
21300                internationalPrefix="00|16">
21301       <references>
21302         <sourceUrl>http://www.itu.int/oth/T0202000029/en</sourceUrl>
21303       </references>
21304       <availableFormats>
21305         <numberFormat
21306           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21307           <format>$1 $2 $3 $4</format>
21308         </numberFormat>
21309       </availableFormats>
21310       <generalDesc>
21311         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
21312         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21313       </generalDesc>
21314       <fixedLine>
21315         <nationalNumberPattern>
21316           22(?:
21317             [3789]0|
21318             5[0-5]|
21319             6[89]
21320           )\d{4}
21321         </nationalNumberPattern>
21322         <exampleNumber>22501234</exampleNumber>
21323       </fixedLine>
21324       <mobile>
21325         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
21326              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
21327              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
21328         <nationalNumberPattern>
21329           (?:
21330             6[02368]\d|
21331             77\d|
21332             9(?:
21333               5[0-4]|
21334               9\d
21335             )
21336           )\d{5}
21337         </nationalNumberPattern>
21338         <exampleNumber>63012345</exampleNumber>
21339       </mobile>
21340     </territory>
21341
21342     <!-- French Southern Territories -->
21343     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
21344     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
21345          temporary inhabitants. -->
21346
21347     <!-- Togo -->
21348     <territory id="TG" countryCode="228" internationalPrefix="00">
21349       <references>
21350         <sourceUrl>http://www.itu.int/oth/T02020000D1/en</sourceUrl>
21351       </references>
21352       <availableFormats>
21353         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21354           <format>$1 $2 $3 $4</format>
21355         </numberFormat>
21356       </availableFormats>
21357       <generalDesc>
21358         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
21359         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21360       </generalDesc>
21361       <fixedLine>
21362         <nationalNumberPattern>
21363           2(?:
21364             2[2-7]|
21365             3[23]|
21366             44|
21367             55|
21368             66|
21369             77
21370           )\d{5}
21371         </nationalNumberPattern>
21372         <exampleNumber>22212345</exampleNumber>
21373       </fixedLine>
21374       <mobile>
21375         <nationalNumberPattern>9[0-289]\d{6}</nationalNumberPattern>
21376         <exampleNumber>90112345</exampleNumber>
21377       </mobile>
21378     </territory>
21379
21380     <!-- Thailand -->
21381     <territory id="TH" countryCode="66" internationalPrefix="00"
21382                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21383                mobileNumberPortableRegion="true">
21384       <references>
21385         <sourceUrl>http://www.itu.int/oth/T02020000CD/en</sourceUrl>
21386         <sourceUrl>http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf</sourceUrl>
21387       </references>
21388       <availableFormats>
21389         <!-- Formatting patterns from wikipedia and the document itself -
21390              http://en.wikipedia.org/wiki/%2B66 -->
21391         <numberFormat pattern="(2)(\d{3})(\d{4})">
21392           <leadingDigits>2</leadingDigits>
21393           <format>$1 $2 $3</format>
21394         </numberFormat>
21395         <numberFormat pattern="([3-9]\d)(\d{3})(\d{3,4})">
21396           <leadingDigits>[3-9]</leadingDigits>
21397           <format>$1 $2 $3</format>
21398         </numberFormat>
21399         <numberFormat nationalPrefixFormattingRule="$FG"
21400           pattern="(1[89]00)(\d{3})(\d{3})">
21401           <leadingDigits>1</leadingDigits>
21402           <format>$1 $2 $3</format>
21403         </numberFormat>
21404       </availableFormats>
21405       <generalDesc>
21406         <nationalNumberPattern>
21407           [2-9]\d{7,8}|
21408           1\d{3}(?:\d{6})?
21409         </nationalNumberPattern>
21410         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
21411       </generalDesc>
21412       <noInternationalDialling>
21413         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21414         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21415         <exampleNumber>1100</exampleNumber>
21416       </noInternationalDialling>
21417       <fixedLine>
21418         <!-- Numbers online have been found that start with 20, despite the ITU doc not covering
21419              these. -->
21420         <nationalNumberPattern>
21421           (?:
21422             2\d|
21423             3[2-9]|
21424             4[2-5]|
21425             5[2-6]|
21426             7[3-7]
21427           )\d{6}
21428         </nationalNumberPattern>
21429         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21430         <exampleNumber>21234567</exampleNumber>
21431       </fixedLine>
21432       <mobile>
21433         <nationalNumberPattern>
21434           (?:
21435             61|
21436             [89]\d
21437           )\d{7}
21438         </nationalNumberPattern>
21439         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21440         <exampleNumber>812345678</exampleNumber>
21441       </mobile>
21442       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
21443       <tollFree>
21444         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
21445         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21446         <exampleNumber>1800123456</exampleNumber>
21447       </tollFree>
21448       <premiumRate>
21449         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
21450         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21451         <exampleNumber>1900123456</exampleNumber>
21452       </premiumRate>
21453       <voip>
21454         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
21455              online to suggest they are actually used as mobile numbers. -->
21456         <nationalNumberPattern>6[08]\d{7}</nationalNumberPattern>
21457         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21458         <exampleNumber>601234567</exampleNumber>
21459       </voip>
21460       <uan>
21461         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
21462              their costs range from free to 6 Baht/min. -->
21463         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21464         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21465         <exampleNumber>1100</exampleNumber>
21466       </uan>
21467     </territory>
21468
21469     <!-- Tajikistan -->
21470     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
21471                internationalPrefix="810" nationalPrefix="8"
21472                nationalPrefixFormattingRule="($NP) $FG"
21473                nationalPrefixOptionalWhenFormatting="true">
21474       <references>
21475         <sourceUrl>http://www.itu.int/oth/T02020000CA/en</sourceUrl>
21476       </references>
21477       <availableFormats>
21478         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
21479           <leadingDigits>
21480             [34]7|
21481             91[78]
21482           </leadingDigits>
21483           <format>$1 $2 $3</format>
21484         </numberFormat>
21485         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
21486           <leadingDigits>
21487             4[48]|
21488             5|
21489             9(?:
21490               1[59]|
21491               [0235-9]
21492             )
21493           </leadingDigits>
21494           <format>$1 $2 $3</format>
21495         </numberFormat>
21496         <numberFormat pattern="(331700)(\d)(\d{2})">
21497           <leadingDigits>331</leadingDigits>
21498           <leadingDigits>3317</leadingDigits>
21499           <leadingDigits>33170</leadingDigits>
21500           <leadingDigits>331700</leadingDigits>
21501           <format>$1 $2 $3</format>
21502         </numberFormat>
21503         <numberFormat pattern="(\d{4})(\d)(\d{4})">
21504           <leadingDigits>3[1-5]</leadingDigits>
21505           <leadingDigits>
21506             3(?:
21507               [1245]|
21508               3(?:
21509                 [02-9]|
21510                 1[0-589]
21511               )
21512             )
21513           </leadingDigits>
21514           <format>$1 $2 $3</format>
21515         </numberFormat>
21516       </availableFormats>
21517       <generalDesc>
21518         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
21519         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
21520       </generalDesc>
21521       <fixedLine>
21522         <nationalNumberPattern>
21523           (?:
21524             3(?:
21525               1[3-5]|
21526               2[245]|
21527               3[12]|
21528               4[24-7]|
21529               5[25]|
21530               72
21531             )|
21532             4(?:
21533               46|
21534               74|
21535               87
21536             )
21537           )\d{6}
21538         </nationalNumberPattern>
21539         <exampleNumber>372123456</exampleNumber>
21540       </fixedLine>
21541       <mobile>
21542         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
21543              numbers, and 501 for TCell. -->
21544         <nationalNumberPattern>
21545           (?:
21546             50[15]|
21547             9[0-35-9]\d
21548           )\d{6}
21549         </nationalNumberPattern>
21550         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21551         <exampleNumber>917123456</exampleNumber>
21552       </mobile>
21553       <!-- No tollFree or premiumRate information can be found. -->
21554     </territory>
21555
21556     <!-- Tokelau -->
21557     <territory id="TK" countryCode="690" internationalPrefix="00">
21558       <references>
21559         <sourceUrl>http://www.itu.int/oth/T02020000D2/en</sourceUrl>
21560       </references>
21561       <generalDesc>
21562         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
21563         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21564       </generalDesc>
21565       <fixedLine>
21566         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
21567         <!-- The example number is the contact number from the ITU document. -->
21568         <exampleNumber>3010</exampleNumber>
21569       </fixedLine>
21570       <mobile>
21571         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
21572         <exampleNumber>5190</exampleNumber>
21573       </mobile>
21574     </territory>
21575
21576     <!-- Timor-Leste (East Timor) -->
21577     <territory id="TL" countryCode="670" internationalPrefix="00">
21578       <references>
21579         <sourceUrl>http://www.itu.int/oth/T02020000D0/en</sourceUrl>
21580       </references>
21581       <availableFormats>
21582         <numberFormat pattern="(\d{3})(\d{4})">
21583           <leadingDigits>[2-489]</leadingDigits>
21584           <format>$1 $2</format>
21585         </numberFormat>
21586         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
21587              them. If we see another pattern being used, we should change this later. -->
21588         <numberFormat pattern="(\d{4})(\d{4})">
21589           <leadingDigits>7</leadingDigits>
21590           <format>$1 $2</format>
21591         </numberFormat>
21592       </availableFormats>
21593       <generalDesc>
21594         <nationalNumberPattern>
21595           [2-489]\d{6}|
21596           7\d{6,7}
21597         </nationalNumberPattern>
21598         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
21599       </generalDesc>
21600       <fixedLine>
21601         <nationalNumberPattern>
21602           (?:
21603             2[1-5]|
21604             3[1-9]|
21605             4[1-4]
21606           )\d{5}
21607         </nationalNumberPattern>
21608         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21609         <exampleNumber>2112345</exampleNumber>
21610       </fixedLine>
21611       <mobile>
21612         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
21613         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21614         <exampleNumber>77212345</exampleNumber>
21615       </mobile>
21616       <tollFree>
21617         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
21618         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21619         <exampleNumber>8012345</exampleNumber>
21620       </tollFree>
21621       <premiumRate>
21622         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
21623         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21624         <exampleNumber>9012345</exampleNumber>
21625       </premiumRate>
21626       <!-- We don't include paging or voicemail because the identified paging range was used by
21627            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
21628            numbers, or if the range was indeed previously used for voicemail at all. -->
21629       <personalNumber>
21630         <!-- We presume this wasn't affected by the numbering plan update. -->
21631         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
21632         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21633         <exampleNumber>7012345</exampleNumber>
21634       </personalNumber>
21635     </territory>
21636
21637     <!-- Turkmenistan -->
21638     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
21639                internationalPrefix="810" nationalPrefix="8"
21640                nationalPrefixFormattingRule="($NP $FG)">
21641       <references>
21642         <sourceUrl>http://www.itu.int/oth/T02020000D7/en</sourceUrl>
21643         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan</sourceUrl>
21644       </references>
21645       <availableFormats>
21646         <!-- There doesn't seem to be a standardized format. The format below is based on the
21647              Turkmenistan embassy at
21648              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
21649           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21650             <leadingDigits>12</leadingDigits>
21651             <format>$1 $2-$3-$4</format>
21652           </numberFormat>
21653           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
21654             <leadingDigits>6</leadingDigits>
21655             <format>$1 $2</format>
21656           </numberFormat>
21657           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
21658             <leadingDigits>
21659               13|
21660               [2-5]
21661             </leadingDigits>
21662             <format>$1 $2-$3-$4</format>
21663           </numberFormat>
21664       </availableFormats>
21665       <generalDesc>
21666         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
21667         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21668       </generalDesc>
21669       <fixedLine>
21670         <!-- Additional prefixes from the wikipedia page. -->
21671         <nationalNumberPattern>
21672           (?:
21673             1(?:
21674               2\d|
21675               3[1-9]
21676             )|
21677             2(?:
21678               22|
21679               4[0-35-8]
21680             )|
21681             3(?:
21682               22|
21683               4[03-9]
21684             )|
21685             4(?:
21686               22|
21687               3[128]|
21688               4\d|
21689               6[15]
21690             )|
21691             5(?:
21692               22|
21693               5[7-9]|
21694               6[014-689]
21695             )
21696           )\d{5}
21697         </nationalNumberPattern>
21698         <exampleNumber>12345678</exampleNumber>
21699       </fixedLine>
21700       <mobile>
21701         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
21702              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
21703              has been suspended. It is unclear whether it will resume. We support both ranges in the
21704              meantime. The range 62 seems also now to be in use, according to numbers found online.
21705              -->
21706         <nationalNumberPattern>6[2-8]\d{6}</nationalNumberPattern>
21707         <exampleNumber>66123456</exampleNumber>
21708       </mobile>
21709       <!-- No tollFree or premiumRate information can be found. -->
21710     </territory>
21711
21712     <!-- Tunisia -->
21713     <territory id="TN" countryCode="216" internationalPrefix="00">
21714       <references>
21715         <sourceUrl>http://www.itu.int/oth/T02020000D5/en</sourceUrl>
21716         <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>
21717         <sourceUrl>http://www.tunisietelecom.tn/tt/internet/fr/pme/fixe/numeros_acceuil</sourceUrl>
21718       </references>
21719       <availableFormats>
21720         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
21721           <format>$1 $2 $3</format>
21722         </numberFormat>
21723       </availableFormats>
21724       <generalDesc>
21725         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
21726         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21727       </generalDesc>
21728       <fixedLine>
21729         <!-- 3[012] numbers are no longer listed in the ITU doc, but we support them based on
21730              online searches. -->
21731         <nationalNumberPattern>
21732           3[012]\d{6}|
21733           7\d{7}|
21734           81200\d{3}
21735         </nationalNumberPattern>
21736         <exampleNumber>71234567</exampleNumber>
21737       </fixedLine>
21738       <mobile>
21739         <!-- Numbers starting with 5 are no longer listed in the ITU doc, but we support them based
21740              on online searches and Wikipedia. -->
21741         <nationalNumberPattern>
21742           (?:
21743             [259]\d|
21744             4[0-24]
21745           )\d{6}
21746         </nationalNumberPattern>
21747         <exampleNumber>20123456</exampleNumber>
21748       </mobile>
21749       <tollFree>
21750         <!-- ITU lists 80 xx xx xx, but the document published by Tunisie Telecom has more specific
21751              information which is followed here. -->
21752         <nationalNumberPattern>8010\d{4}</nationalNumberPattern>
21753         <exampleNumber>80101234</exampleNumber>
21754       </tollFree>
21755       <premiumRate>
21756         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
21757         <exampleNumber>88123456</exampleNumber>
21758       </premiumRate>
21759       <sharedCost>
21760         <!-- 8110xxxx numbers are listed as being "discounted non-geographical numbers" and are put
21761              here for now. In the future we might consider them as UAN.
21762              ITU lists 82 xx xx xx, but the document published by Tunisie Telecom has more specific
21763              information which is followed here. -->
21764         <nationalNumberPattern>8[12]10\d{4}</nationalNumberPattern>
21765         <exampleNumber>81101234</exampleNumber>
21766       </sharedCost>
21767     </territory>
21768
21769     <!-- Tonga -->
21770     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
21771       <references>
21772         <sourceUrl>http://www.itu.int/oth/T02020000D3/en</sourceUrl>
21773         <sourceUrl>http://www.wtng.info/wtng-676-to.html</sourceUrl>
21774       </references>
21775       <availableFormats>
21776         <numberFormat pattern="(\d{2})(\d{3})">
21777           <leadingDigits>
21778             [1-6]|
21779             7[0-4]|
21780             8[05]
21781           </leadingDigits>
21782           <format>$1-$2</format>
21783         </numberFormat>
21784         <numberFormat pattern="(\d{3})(\d{4})">
21785           <leadingDigits>
21786             7[5-9]|
21787             8[7-9]
21788           </leadingDigits>
21789           <format>$1 $2</format>
21790         </numberFormat>
21791         <numberFormat pattern="(\d{4})(\d{3})">
21792           <leadingDigits>0</leadingDigits>
21793           <format>$1 $2</format>
21794         </numberFormat>
21795       </availableFormats>
21796       <generalDesc>
21797         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
21798         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
21799       </generalDesc>
21800       <fixedLine>
21801         <nationalNumberPattern>
21802           (?:
21803             2\d|
21804             3[1-8]|
21805             4[1-4]|
21806             [56]0|
21807             7[0149]|
21808             8[05]
21809           )\d{3}
21810         </nationalNumberPattern>
21811         <possibleNumberPattern>\d{5}</possibleNumberPattern>
21812         <exampleNumber>20123</exampleNumber>
21813       </fixedLine>
21814       <mobile>
21815         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
21816              in their ITU document. Numbers with a prefix of "75" have also been found. -->
21817         <nationalNumberPattern>
21818           (?:
21819             7[578]|
21820             8[7-9]
21821           )\d{5}
21822         </nationalNumberPattern>
21823         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21824         <exampleNumber>7715123</exampleNumber>
21825       </mobile>
21826       <tollFree>
21827         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
21828         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21829         <exampleNumber>0800222</exampleNumber>
21830       </tollFree>
21831     </territory>
21832
21833     <!-- Turkey -->
21834     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0"
21835                mobileNumberPortableRegion="true">
21836       <references>
21837         <sourceUrl>http://en.wikipedia.org/wiki/%2B90</sourceUrl>
21838         <sourceUrl>http://www.itu.int/oth/T02020000D6/en</sourceUrl>
21839       </references>
21840       <availableFormats>
21841         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
21842           nationalPrefixOptionalWhenFormatting="true">
21843           <leadingDigits>
21844             [23]|
21845             4(?:
21846               [0-35-9]|
21847               4[0-35-9]
21848             )
21849           </leadingDigits>
21850           <format>$1 $2 $3</format>
21851         </numberFormat>
21852         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
21853           nationalPrefixOptionalWhenFormatting="true">
21854           <leadingDigits>[589]</leadingDigits>
21855           <format>$1 $2 $3</format>
21856         </numberFormat>
21857         <numberFormat pattern="(444)(\d{1})(\d{3})">
21858           <leadingDigits>444</leadingDigits>
21859           <format>$1 $2 $3</format>
21860         </numberFormat>
21861       </availableFormats>
21862       <generalDesc>
21863         <nationalNumberPattern>
21864           [2-589]\d{9}|
21865           444\d{4}
21866         </nationalNumberPattern>
21867         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21868       </generalDesc>
21869       <noInternationalDialling>
21870         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
21871         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21872         <exampleNumber>4441444</exampleNumber>
21873       </noInternationalDialling>
21874       <fixedLine>
21875         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
21876         <nationalNumberPattern>
21877           (?:
21878             2(?:
21879               [13][26]|
21880               [28][2468]|
21881               [45][268]|
21882               [67][246]
21883             )|
21884             3(?:
21885               [13][28]|
21886               [24-6][2468]|
21887               [78][02468]|
21888               92
21889             )|
21890             4(?:
21891               [16][246]|
21892               [23578][2468]|
21893               4[26]
21894             )
21895           )\d{7}
21896         </nationalNumberPattern>
21897         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21898         <exampleNumber>2123456789</exampleNumber>
21899       </fixedLine>
21900       <mobile>
21901         <!-- There are some differences between the Turkish and English wikipedia pages here, and
21902              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
21903              509 from the English page because of this. -->
21904         <nationalNumberPattern>
21905           5(?:
21906             0[1-7]|
21907             22|
21908             [34]\d|
21909             5[1-59]|
21910             9[246]
21911           )\d{7}
21912         </nationalNumberPattern>
21913         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21914         <exampleNumber>5012345678</exampleNumber>
21915       </mobile>
21916       <pager>
21917         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
21918         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21919         <exampleNumber>5123456789</exampleNumber>
21920       </pager>
21921       <tollFree>
21922         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
21923         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21924         <exampleNumber>8001234567</exampleNumber>
21925       </tollFree>
21926       <premiumRate>
21927         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
21928         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21929         <exampleNumber>9001234567</exampleNumber>
21930       </premiumRate>
21931       <uan>
21932         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
21933         <nationalNumberPattern>
21934           444\d{4}|
21935           850\d{7}
21936         </nationalNumberPattern>
21937         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21938         <exampleNumber>4441444</exampleNumber>
21939       </uan>
21940     </territory>
21941
21942     <!-- Trinidad and Tobago -->
21943     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
21944                internationalPrefix="011">
21945       <references>
21946         <sourceUrl>http://www.itu.int/oth/T02020000D4/en</sourceUrl>
21947       </references>
21948       <generalDesc>
21949         <!-- NANPA country - uses US formatting rules -->
21950         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
21951         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21952       </generalDesc>
21953       <fixedLine>
21954         <nationalNumberPattern>
21955           868(?:
21956             2(?:
21957               01|
21958               2[1-5]
21959             )|
21960             6(?:
21961               07|
21962               1[4-6]|
21963               2[1-9]|
21964               [3-6]\d|
21965               7[0-79]|
21966               9[0-8]
21967             )|
21968             82[12]
21969           )\d{4}
21970         </nationalNumberPattern>
21971         <exampleNumber>8682211234</exampleNumber>
21972       </fixedLine>
21973       <mobile>
21974         <!-- Adding 48X & 70X from the IR21 published by TSTT. 288 seems to be used based on numbers
21975              found online. -->
21976         <nationalNumberPattern>
21977           868(?:
21978             2(?:
21979               8[5-9]|
21980               9\d
21981             )|
21982             3(?:
21983               0[1-9]|
21984               1[02-9]|
21985               [2-9]\d
21986             )|
21987             4[6-9]\d|
21988             6(?:
21989               20|
21990               78|
21991               8\d
21992             )|
21993             7(?:
21994               1[02-9]|
21995               [02-9]\d
21996             )
21997           )\d{4}
21998         </nationalNumberPattern>
21999         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22000         <exampleNumber>8682911234</exampleNumber>
22001       </mobile>
22002       <tollFree>
22003         <nationalNumberPattern>
22004           8(?:
22005             00|
22006             44|
22007             55|
22008             66|
22009             77|
22010             88
22011           )[2-9]\d{6}
22012         </nationalNumberPattern>
22013         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22014         <exampleNumber>8002345678</exampleNumber>
22015       </tollFree>
22016       <premiumRate>
22017         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22018         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22019         <exampleNumber>9002345678</exampleNumber>
22020       </premiumRate>
22021       <personalNumber>
22022         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22023         <nationalNumberPattern>
22024           5(?:
22025             00|
22026             33|
22027             44|
22028             66|
22029             77
22030           )[2-9]\d{6}
22031         </nationalNumberPattern>
22032         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22033         <exampleNumber>5002345678</exampleNumber>
22034       </personalNumber>
22035     </territory>
22036
22037     <!-- Tuvalu -->
22038     <territory id="TV" countryCode="688" internationalPrefix="00">
22039       <references>
22040         <sourceUrl>http://www.itu.int/oth/T02020000D9/en</sourceUrl>
22041         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu</sourceUrl>
22042       </references>
22043       <!-- Numbers are formatted as a block. -->
22044       <generalDesc>
22045         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
22046         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
22047       </generalDesc>
22048       <fixedLine>
22049         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
22050         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22051         <exampleNumber>20123</exampleNumber>
22052       </fixedLine>
22053       <mobile>
22054         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
22055              don't know if these are valid or not - the ITU document excludes them - so are not
22056              covering these for now. -->
22057         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
22058         <possibleNumberPattern>\d{6}</possibleNumberPattern>
22059         <exampleNumber>901234</exampleNumber>
22060       </mobile>
22061     </territory>
22062
22063     <!-- Taiwan, China -->
22064     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
22065          chosen as the preferred extension prefix. -->
22066     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
22067                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG"
22068                mobileNumberPortableRegion="true">
22069       <references>
22070         <sourceUrl>http://www.itu.int/oth/T02020000EB/en</sourceUrl>
22071       </references>
22072       <availableFormats>
22073         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
22074           <leadingDigits>
22075             [2-6]|
22076             [78][1-9]
22077           </leadingDigits>
22078           <format>$1 $2 $3</format>
22079         </numberFormat>
22080         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
22081           <leadingDigits>
22082             80|
22083             9
22084           </leadingDigits>
22085           <format>$1 $2 $3</format>
22086         </numberFormat>
22087         <numberFormat pattern="(70)(\d{4})(\d{4})">
22088           <leadingDigits>70</leadingDigits>
22089           <format>$1 $2 $3</format>
22090         </numberFormat>
22091       </availableFormats>
22092       <generalDesc>
22093         <nationalNumberPattern>
22094           [2-689]\d{7,8}|
22095           7\d{7,9}
22096         </nationalNumberPattern>
22097         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
22098       </generalDesc>
22099       <fixedLine>
22100         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
22101         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22102         <exampleNumber>21234567</exampleNumber>
22103       </fixedLine>
22104       <mobile>
22105         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
22106         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22107         <exampleNumber>912345678</exampleNumber>
22108       </mobile>
22109       <tollFree>
22110         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22111         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22112         <exampleNumber>800123456</exampleNumber>
22113       </tollFree>
22114       <premiumRate>
22115         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22116         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22117         <exampleNumber>900123456</exampleNumber>
22118       </premiumRate>
22119       <!-- http://www.chief.com.tw/telecom_eng/front/bin/ptlist.phtml?Category=107 -->
22120       <voip>
22121         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
22122         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22123         <exampleNumber>7012345678</exampleNumber>
22124       </voip>
22125     </territory>
22126
22127     <!-- Tanzania -->
22128     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
22129                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22130       <references>
22131         <sourceUrl>http://www.itu.int/oth/T02020000CB/en</sourceUrl>
22132       </references>
22133       <availableFormats>
22134         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
22135           <leadingDigits>[24]</leadingDigits>
22136           <format>$1 $2 $3</format>
22137         </numberFormat>
22138         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
22139           <leadingDigits>[67]</leadingDigits>
22140           <format>$1 $2 $3</format>
22141         </numberFormat>
22142         <!-- Formatting for special numbers from http://www.tcra.go.tz -->
22143         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
22144           <leadingDigits>[89]</leadingDigits>
22145           <format>$1 $2 $3</format>
22146         </numberFormat>
22147       </availableFormats>
22148       <generalDesc>
22149         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22150         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22151       </generalDesc>
22152       <fixedLine>
22153         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
22154         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22155         <exampleNumber>222345678</exampleNumber>
22156       </fixedLine>
22157       <mobile>
22158         <nationalNumberPattern>
22159           (?:
22160             6[158]|
22161             7[1-9]
22162           )\d{7}
22163         </nationalNumberPattern>
22164         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22165         <exampleNumber>612345678</exampleNumber>
22166       </mobile>
22167       <tollFree>
22168         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
22169         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22170         <exampleNumber>800123456</exampleNumber>
22171       </tollFree>
22172       <premiumRate>
22173         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
22174         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22175         <exampleNumber>900123456</exampleNumber>
22176       </premiumRate>
22177       <sharedCost>
22178         <nationalNumberPattern>
22179           8(?:
22180             40|
22181             6[01]
22182           )\d{6}
22183         </nationalNumberPattern>
22184         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22185         <exampleNumber>840123456</exampleNumber>
22186       </sharedCost>
22187       <voip>
22188         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
22189         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22190         <exampleNumber>412345678</exampleNumber>
22191       </voip>
22192     </territory>
22193
22194     <!-- Ukraine -->
22195     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
22196                internationalPrefix="00"
22197                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22198       <references>
22199         <sourceUrl>http://www.itu.int/oth/T02020000DB/en</sourceUrl>
22200         <sourceUrl>http://en.wikipedia.org/wiki/%2B380</sourceUrl>
22201       </references>
22202       <availableFormats>
22203         <!-- City codes separated out. No definitive list has been found of what constitutes the
22204              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
22205              Have used local yellow pages guidelines, Google searches and regression tests to
22206              reverse-engineer these rules as well as bugs. -->
22207         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
22208           <leadingDigits>
22209             [38]9|
22210             4(?:
22211               [45][0-5]|
22212               87
22213             )|
22214             5(?:
22215               0|
22216               6[37]|
22217               7[37]
22218             )|
22219             6[36-8]|
22220             9[1-9]
22221           </leadingDigits>
22222           <leadingDigits>
22223             [38]9|
22224             4(?:
22225               [45][0-5]|
22226               87
22227             )|
22228             5(?:
22229               0|
22230               6(?:
22231                 3[14-7]|
22232                 7
22233               )|
22234               7[37]
22235             )|
22236             6[36-8]|
22237             9[1-9]
22238           </leadingDigits>
22239           <format>$1 $2 $3</format>
22240         </numberFormat>
22241         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
22242           <leadingDigits>
22243             3[1-8]2|
22244             4[13678]2|
22245             5(?:
22246               [12457]2|
22247               6[24]
22248             )|
22249             6(?:
22250               [49]2|
22251               [12][29]|
22252               5[24]
22253             )|
22254             8[0-8]|
22255             90
22256           </leadingDigits>
22257           <leadingDigits>
22258             3(?:
22259               [1-46-8]2[013-9]|
22260               52
22261             )|
22262             4(?:
22263               [1378]2|
22264               62[013-9]
22265             )|
22266             5(?:
22267               [12457]2|
22268               6[24]
22269             )|
22270             6(?:
22271               [49]2|
22272               [12][29]|
22273               5[24]
22274             )|
22275             8[0-8]|
22276             90
22277           </leadingDigits>
22278           <format>$1 $2 $3</format>
22279         </numberFormat>
22280         <numberFormat pattern="([3-6]\d{3})(\d{5})">
22281           <leadingDigits>
22282             3(?:
22283               5[013-9]|
22284               [1-46-8]
22285             )|
22286             4(?:
22287               [137][013-9]|
22288               6|
22289               [45][6-9]|
22290               8[4-6]
22291             )|
22292             5(?:
22293               [1245][013-9]|
22294               6[0135-9]|
22295               3|
22296               7[4-6]
22297             )|
22298             6(?:
22299               [49][013-9]|
22300               5[0135-9]|
22301               [12][13-8]
22302             )
22303           </leadingDigits>
22304           <leadingDigits>
22305             3(?:
22306               5[013-9]|
22307               [1-46-8](?:
22308                 22|
22309                 [013-9]
22310               )
22311             )|
22312             4(?:
22313               [137][013-9]|
22314               6(?:
22315                 [013-9]|
22316                 22
22317               )|
22318               [45][6-9]|
22319               8[4-6]
22320             )|
22321             5(?:
22322               [1245][013-9]|
22323               6(?:
22324                 3[02389]|
22325                 [015689]
22326               )|
22327               3|
22328               7[4-6]
22329             )|
22330             6(?:
22331               [49][013-9]|
22332               5[0135-9]|
22333               [12][13-8]
22334             )
22335           </leadingDigits>
22336           <format>$1 $2</format>
22337         </numberFormat>
22338       </availableFormats>
22339       <generalDesc>
22340         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
22341         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22342       </generalDesc>
22343       <fixedLine>
22344         <nationalNumberPattern>
22345           (?:
22346             3[1-8]|
22347             4[13-8]|
22348             5[1-7]|
22349             6[12459]
22350           )\d{7}
22351         </nationalNumberPattern>
22352         <exampleNumber>311234567</exampleNumber>
22353       </fixedLine>
22354       <mobile>
22355         <nationalNumberPattern>
22356           (?:
22357             39|
22358             50|
22359             6[36-8]|
22360             9[1-9]
22361           )\d{7}
22362         </nationalNumberPattern>
22363         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22364         <exampleNumber>391234567</exampleNumber>
22365       </mobile>
22366       <tollFree>
22367         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22368         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22369         <exampleNumber>800123456</exampleNumber>
22370       </tollFree>
22371       <premiumRate>
22372         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22373         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22374         <exampleNumber>900123456</exampleNumber>
22375       </premiumRate>
22376       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
22377       <voip>
22378         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
22379         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22380         <exampleNumber>891234567</exampleNumber>
22381       </voip>
22382     </territory>
22383
22384     <!-- Uganda -->
22385     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
22386                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22387       <references>
22388         <sourceUrl>http://www.itu.int/oth/T02020000F1/en</sourceUrl>
22389         <sourceUrl>http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf</sourceUrl>
22390       </references>
22391       <availableFormats>
22392         <numberFormat pattern="(\d{3})(\d{6})">
22393           <leadingDigits>
22394             [7-9]|
22395             20(?:
22396               [013-8]|
22397               2[5-9]
22398             )|
22399             4(?:
22400               6[45]|
22401               [7-9]
22402             )
22403           </leadingDigits>
22404           <format>$1 $2</format>
22405         </numberFormat>
22406         <numberFormat pattern="(\d{2})(\d{7})">
22407           <leadingDigits>
22408             3|
22409             4(?:
22410               [1-5]|
22411               6[0-36-9]
22412             )
22413           </leadingDigits>
22414           <format>$1 $2</format>
22415         </numberFormat>
22416         <numberFormat pattern="(2024)(\d{5})">
22417           <leadingDigits>2024</leadingDigits>
22418           <format>$1 $2</format>
22419         </numberFormat>
22420       </availableFormats>
22421       <generalDesc>
22422         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22423         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22424       </generalDesc>
22425       <fixedLine>
22426         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
22427         <nationalNumberPattern>
22428           20(?:
22429             [0147]\d{2}|
22430             2(?:
22431               40|
22432               [5-9]\d
22433             )|
22434             3[23]\d|
22435             5[0-4]\d|
22436             6[03]\d|
22437             8[0-2]\d
22438           )\d{4}|
22439           [34]\d{8}
22440         </nationalNumberPattern>
22441         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
22442              local dialing is still possible. We assume it is for now. -->
22443         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22444         <exampleNumber>312345678</exampleNumber>
22445       </fixedLine>
22446       <mobile>
22447         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
22448         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
22449         <nationalNumberPattern>
22450           7(?:
22451             0[0-7]|
22452             [15789]\d|
22453             [23]0|
22454             [46][0-4]
22455           )\d{6}
22456         </nationalNumberPattern>
22457         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22458         <exampleNumber>712345678</exampleNumber>
22459       </mobile>
22460       <tollFree>
22461         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
22462         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22463         <exampleNumber>800123456</exampleNumber>
22464       </tollFree>
22465       <premiumRate>
22466         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
22467         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22468         <exampleNumber>901123456</exampleNumber>
22469       </premiumRate>
22470     </territory>
22471
22472     <!-- United States -->
22473     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
22474          numbers in the national format, it is not included. Therefore, we omit it here to make
22475          formatting consistent with the rest of the world. The same applies to all the
22476          countries/regions under NANPA -->
22477     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
22478          when formatting, but is set here so that users who are calling formatByPattern can specify
22479          NationalPrefixFormattingRule if they want to. -->
22480     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
22481                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true"
22482                mobileNumberPortableRegion="true">
22483       <references>
22484         <sourceUrl>http://www.nanpa.com/reports/reports_npa.html</sourceUrl>
22485         <sourceUrl>http://en.wikipedia.org/wiki/North_American_Numbering_Plan</sourceUrl>
22486       </references>
22487       <availableFormats>
22488         <numberFormat pattern="(\d{3})(\d{4})">
22489           <format>$1-$2</format>
22490           <intlFormat>NA</intlFormat>
22491         </numberFormat>
22492         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
22493           <format>($1) $2-$3</format>
22494           <!-- A different pattern is used when formatting internationally, as the area code is no
22495                longer optional and should not be in brackets. -->
22496           <intlFormat>$1-$2-$3</intlFormat>
22497         </numberFormat>
22498       </availableFormats>
22499       <generalDesc>
22500         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
22501         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22502       </generalDesc>
22503       <fixedLine>
22504         <nationalNumberPattern>
22505           (?:
22506             2(?:
22507               0[1-35-9]|
22508               1[02-9]|
22509               2[4589]|
22510               3[149]|
22511               4[08]|
22512               5[1-46]|
22513               6[0279]|
22514               7[026]|
22515               8[13]
22516             )|
22517             3(?:
22518               0[1-57-9]|
22519               1[02-9]|
22520               2[0135]|
22521               3[014679]|
22522               4[67]|
22523               5[12]|
22524               6[014]|
22525               8[56]
22526             )|
22527             4(?:
22528               0[124-9]|
22529               1[02-579]|
22530               2[3-5]|
22531               3[0245]|
22532               4[0235]|
22533               58|
22534               69|
22535               7[0589]|
22536               8[04]
22537             )|
22538             5(?:
22539               0[1-57-9]|
22540               1[0235-8]|
22541               20|
22542               3[0149]|
22543               4[01]|
22544               5[19]|
22545               6[1-37]|
22546               7[013-5]|
22547               8[056]
22548             )|
22549             6(?:
22550               0[1-35-9]|
22551               1[024-9]|
22552               2[036]|
22553               3[016]|
22554               4[16]|
22555               5[017]|
22556               6[0-279]|
22557               78|
22558               8[12]
22559             )|
22560             7(?:
22561               0[1-46-8]|
22562               1[02-9]|
22563               2[0457]|
22564               3[1247]|
22565               4[07]|
22566               5[47]|
22567               6[02359]|
22568               7[02-59]|
22569               8[156]
22570             )|
22571             8(?:
22572               0[1-68]|
22573               1[02-8]|
22574               28|
22575               3[0-25]|
22576               4[3578]|
22577               5[06-9]|
22578               6[02-5]|
22579               7[028]
22580             )|
22581             9(?:
22582               0[1346-9]|
22583               1[02-9]|
22584               2[0589]|
22585               3[01678]|
22586               4[0179]|
22587               5[12469]|
22588               7[0-3589]|
22589               8[0459]
22590             )
22591           )[2-9]\d{6}
22592         </nationalNumberPattern>
22593         <exampleNumber>2015555555</exampleNumber>
22594       </fixedLine>
22595       <mobile>
22596         <nationalNumberPattern>
22597           (?:
22598             2(?:
22599               0[1-35-9]|
22600               1[02-9]|
22601               2[4589]|
22602               3[149]|
22603               4[08]|
22604               5[1-46]|
22605               6[0279]|
22606               7[026]|
22607               8[13]
22608             )|
22609             3(?:
22610               0[1-57-9]|
22611               1[02-9]|
22612               2[0135]|
22613               3[014679]|
22614               4[67]|
22615               5[12]|
22616               6[014]|
22617               8[56]
22618             )|
22619             4(?:
22620               0[124-9]|
22621               1[02-579]|
22622               2[3-5]|
22623               3[0245]|
22624               4[0235]|
22625               58|
22626               69|
22627               7[0589]|
22628               8[04]
22629             )|
22630             5(?:
22631               0[1-57-9]|
22632               1[0235-8]|
22633               20|
22634               3[0149]|
22635               4[01]|
22636               5[19]|
22637               6[1-37]|
22638               7[013-5]|
22639               8[056]
22640             )|
22641             6(?:
22642               0[1-35-9]|
22643               1[024-9]|
22644               2[036]|
22645               3[016]|
22646               4[16]|
22647               5[017]|
22648               6[0-279]|
22649               78|
22650               8[12]
22651             )|
22652             7(?:
22653               0[1-46-8]|
22654               1[02-9]|
22655               2[0457]|
22656               3[1247]|
22657               4[07]|
22658               5[47]|
22659               6[02359]|
22660               7[02-59]|
22661               8[156]
22662             )|
22663             8(?:
22664               0[1-68]|
22665               1[02-8]|
22666               28|
22667               3[0-25]|
22668               4[3578]|
22669               5[06-9]|
22670               6[02-5]|
22671               7[028]
22672             )|
22673             9(?:
22674               0[1346-9]|
22675               1[02-9]|
22676               2[0589]|
22677               3[01678]|
22678               4[0179]|
22679               5[12469]|
22680               7[0-3589]|
22681               8[0459]
22682             )
22683           )[2-9]\d{6}
22684         </nationalNumberPattern>
22685         <exampleNumber>2015555555</exampleNumber>
22686       </mobile>
22687       <tollFree>
22688         <nationalNumberPattern>
22689           8(?:
22690             00|
22691             44|
22692             55|
22693             66|
22694             77|
22695             88
22696           )[2-9]\d{6}
22697         </nationalNumberPattern>
22698         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22699         <exampleNumber>8002345678</exampleNumber>
22700       </tollFree>
22701       <premiumRate>
22702         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22703         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22704         <exampleNumber>9002345678</exampleNumber>
22705       </premiumRate>
22706       <personalNumber>
22707         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22708         <nationalNumberPattern>
22709           5(?:
22710             00|
22711             33|
22712             44|
22713             66|
22714             77
22715           )[2-9]\d{6}
22716         </nationalNumberPattern>
22717         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22718         <exampleNumber>5002345678</exampleNumber>
22719       </personalNumber>
22720     </territory>
22721
22722     <!-- Uruguay -->
22723     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
22724          code JK, where J = [3-9] and K is any digit. -->
22725     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
22726                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
22727       <references>
22728         <sourceUrl>http://www.itu.int/oth/T02020000E0/en</sourceUrl>
22729         <sourceUrl>http://www.ursec.gub.uy</sourceUrl>
22730         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay</sourceUrl>
22731       </references>
22732       <availableFormats>
22733         <!-- Following paginasamarillas.com.uy formatting. -->
22734         <numberFormat pattern="(\d{4})(\d{4})">
22735           <leadingDigits>[24]</leadingDigits>
22736           <format>$1 $2</format>
22737         </numberFormat>
22738         <!-- Including the national prefix here since URSEC does when formatting these. -->
22739         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
22740           <leadingDigits>9[1-9]</leadingDigits>
22741           <format>$1 $2 $3</format>
22742         </numberFormat>
22743         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
22744           <leadingDigits>[89]0</leadingDigits>
22745           <format>$1 $2</format>
22746         </numberFormat>
22747       </availableFormats>
22748       <generalDesc>
22749         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
22750         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
22751       </generalDesc>
22752       <fixedLine>
22753         <nationalNumberPattern>
22754           2\d{7}|
22755           4[2-7]\d{6}
22756         </nationalNumberPattern>
22757         <exampleNumber>21231234</exampleNumber>
22758       </fixedLine>
22759       <mobile>
22760         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
22761         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22762         <exampleNumber>94231234</exampleNumber>
22763       </mobile>
22764       <tollFree>
22765         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
22766         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22767         <exampleNumber>8001234</exampleNumber>
22768       </tollFree>
22769       <premiumRate>
22770         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
22771         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22772         <exampleNumber>9001234</exampleNumber>
22773       </premiumRate>
22774      </territory>
22775
22776     <!-- Uzbekistan -->
22777     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
22778                internationalPrefix="810" nationalPrefix="8"
22779                nationalPrefixFormattingRule="$NP $FG">
22780       <references>
22781         <sourceUrl>http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng</sourceUrl>
22782         <sourceUrl>http://www.itu.int/oth/T02020000E1/en</sourceUrl>
22783       </references>
22784       <availableFormats>
22785         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
22786           <format>$1 $2 $3 $4</format>
22787         </numberFormat>
22788       </availableFormats>
22789       <generalDesc>
22790         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
22791         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22792       </generalDesc>
22793       <fixedLine>
22794         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
22795              be used in Namangan. -->
22796         <nationalNumberPattern>
22797           (?:
22798             6(?:
22799               1(?:
22800                 22|
22801                 3[124]|
22802                 4[1-4]|
22803                 5[123578]|
22804                 64
22805               )|
22806               2(?:
22807                 22|
22808                 3[0-57-9]|
22809                 41
22810               )|
22811               5(?:
22812                 22|
22813                 3[3-7]|
22814                 5[024-8]
22815               )|
22816               6\d{2}|
22817               7(?:
22818                 [23]\d|
22819                 7[69]
22820               )|
22821               9(?:
22822                 22|
22823                 4[1-8]|
22824                 6[135]
22825               )
22826             )|
22827             7(?:
22828               0(?:
22829                 5[4-9]|
22830                 6[0146]|
22831                 7[12456]|
22832                 9[135-8]
22833               )|
22834               1[12]\d|
22835               2(?:
22836                 22|
22837                 3[1345789]|
22838                 4[123579]|
22839                 5[14]
22840               )|
22841               3(?:
22842                 2\d|
22843                 3[1578]|
22844                 4[1-35-7]|
22845                 5[1-57]|
22846                 61
22847               )|
22848               4(?:
22849                 2\d|
22850                 3[1-579]|
22851                 7[1-79]
22852               )|
22853               5(?:
22854                 22|
22855                 5[1-9]|
22856                 6[1457]
22857               )|
22858               6(?:
22859                 22|
22860                 3[12457]|
22861                 4[13-8]
22862               )|
22863               9(?:
22864                 22|
22865                 5[1-9]
22866               )
22867             )
22868           )\d{5}
22869         </nationalNumberPattern>
22870         <exampleNumber>662345678</exampleNumber>
22871       </fixedLine>
22872       <mobile>
22873         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
22874              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
22875              prefixes Tyntec has a carrier mapped to. -->
22876         <nationalNumberPattern>
22877           6(?:
22878             1(?:
22879               2(?:
22880                 98|
22881                 2[01]
22882               )|
22883               35[0-4]|
22884               50\d|
22885               61[23]|
22886               7(?:
22887                 [01][017]|
22888                 4\d|
22889                 55|
22890                 9[5-9]
22891               )
22892             )|
22893             2(?:
22894               11\d|
22895               2(?:
22896                 [12]1|
22897                 9[01379]
22898               )|
22899               5(?:
22900                 [126]\d|
22901                 3[0-4]
22902               )|
22903               7\d{2}
22904             )|
22905             5(?:
22906               19[01]|
22907               2(?:
22908                 27|
22909                 9[26]
22910               )|
22911               30\d|
22912               59\d|
22913               7\d{2}
22914             )|
22915             6(?:
22916               2(?:
22917                 1[5-9]|
22918                 2[0367]|
22919                 38|
22920                 41|
22921                 52|
22922                 60
22923               )|
22924               3[79]\d|
22925               4(?:
22926                 56|
22927                 83
22928               )|
22929               7(?:
22930                 [07]\d|
22931                 1[017]|
22932                 3[07]|
22933                 4[047]|
22934                 5[057]|
22935                 67|
22936                 8[0178]|
22937                 9[79]
22938                 )|
22939               9[0-3]\d
22940             )|
22941             7(?:
22942               2(?:
22943                 24|
22944                 3[237]|
22945                 4[5-9]|
22946                 7[15-8]
22947               )|
22948               5(?:
22949                 7[12]|
22950                 8[0589]
22951               )|
22952               7(?:
22953                 0\d|
22954                 [39][07]
22955               )|
22956               9(?:
22957                 0\d|
22958                 7[079]
22959               )
22960             )|
22961             9(?:
22962               2(?:
22963                 1[1267]|
22964                 5\d|
22965                 3[01]|
22966                 7[0-4]
22967               )|
22968               5[67]\d|
22969               6(?:
22970                 2[0-26]|
22971                 8\d
22972               )|
22973               7\d{2}
22974             )
22975           )\d{4}|
22976           7(?:
22977             0\d{3}|
22978             1(?:
22979               13[01]|
22980               6(?:
22981                 0[47]|
22982                 1[67]|
22983                 66
22984               )|
22985               71[3-69]|
22986               98\d
22987             )|
22988             2(?:
22989               2(?:
22990                 2[79]|
22991                 95
22992               )|
22993               3(?:
22994                 2[5-9]|
22995                 6[0-6]
22996               )|
22997               57\d|
22998               7(?:
22999                 0\d|
23000                 1[17]|
23001                 2[27]|
23002                 3[37]|
23003                 44|
23004                 5[057]|
23005                 66|
23006                 88
23007               )
23008             )|
23009             3(?:
23010               2(?:
23011                 1[0-6]|
23012                 21|
23013                 3[469]|
23014                 7[159]
23015               )|
23016               33\d|
23017               5(?:
23018                 0[0-4]|
23019                 5[579]|
23020                 9\d
23021               )|
23022               7(?:
23023                 [0-3579]\d|
23024                 4[0467]|
23025                 6[67]|
23026                 8[078]
23027               )|
23028               9[4-6]\d
23029             )|
23030             4(?:
23031               2(?:
23032                 29|
23033                 5[0257]|
23034                 6[0-7]|
23035                 7[1-57]
23036               )|
23037               5(?:
23038                 1[0-4]|
23039                 8\d|
23040                 9[5-9]
23041               )|
23042               7(?:
23043                 0\d|
23044                 1[024589]|
23045                 2[0127]|
23046                 3[0137]|
23047                 [46][07]|
23048                 5[01]|
23049                 7[5-9]|
23050                 9[079]
23051               )|
23052               9(?:
23053                 7[015-9]|
23054                 [89]\d
23055               )
23056             )|
23057             5(?:
23058               112|
23059               2(?:
23060                 0\d|
23061                 2[29]|
23062                 [49]4
23063               )|
23064               3[1568]\d|
23065               52[6-9]|
23066               7(?:
23067                 0[01578]|
23068                 1[017]|
23069                 [23]7|
23070                 4[047]|
23071                 [5-7]\d|
23072                 8[78]|
23073                 9[079]
23074               )
23075             )|
23076             6(?:
23077               2(?:
23078                 2[1245]|
23079                 4[2-4]
23080               )|
23081               39\d|
23082               41[179]|
23083               5(?:
23084                 [349]\d|
23085                 5[0-2]
23086               )|
23087               7(?:
23088                 0[017]|
23089                 [13]\d|
23090                 22|
23091                 44|
23092                 55|
23093                 67|
23094                 88
23095               )
23096             )|
23097             9(?:
23098               22[128]|
23099               3(?:
23100                 2[0-4]|
23101                 7\d
23102               )|
23103               57[05629]|
23104               7(?:
23105                 2[05-9]|
23106                 3[37]|
23107                 4\d|
23108                 60|
23109                 7[2579]|
23110                 87|
23111                 9[07]
23112               )
23113             )
23114           )\d{4}|
23115           9[0-57-9]\d{7}
23116         </nationalNumberPattern>
23117         <exampleNumber>912345678</exampleNumber>
23118       </mobile>
23119       <!-- No tollFree or premiumRate information can be found. -->
23120     </territory>
23121
23122     <!-- Vatican City -->
23123     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
23124          also be dialled with the Vatican City country code. -->
23125     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
23126       <references>
23127         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City</sourceUrl>
23128       </references>
23129       <availableFormats>
23130         <numberFormat pattern="(06)(\d{4})(\d{4})">
23131           <format>$1 $2 $3</format>
23132         </numberFormat>
23133       </availableFormats>
23134       <generalDesc>
23135         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
23136         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23137       </generalDesc>
23138       <fixedLine>
23139         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
23140         <exampleNumber>0669812345</exampleNumber>
23141       </fixedLine>
23142       <mobile>
23143         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
23144              Italian mobile contracts. -->
23145         <nationalNumberPattern>NA</nationalNumberPattern>
23146         <possibleNumberPattern>NA</possibleNumberPattern>
23147       </mobile>
23148       <!-- No information exists about other types of numbers. -->
23149     </territory>
23150
23151     <!-- Saint Vincent and the Grenadines -->
23152     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
23153                internationalPrefix="011">
23154       <references>
23155         <sourceUrl>http://www.itu.int/oth/T02020000B3/en</sourceUrl>
23156       </references>
23157       <generalDesc>
23158         <!-- NANPA country - uses US formatting rules -->
23159         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
23160         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23161       </generalDesc>
23162       <!-- For 570, 571 and 572 prefixes, we believe the ITU doc incorrectly listed them to be under
23163            area code 758, which should be 784. -->
23164       <fixedLine>
23165         <nationalNumberPattern>
23166           784(?:
23167             266|
23168             3(?:
23169               6[6-9]|
23170               7\d|
23171               8[0-24-6]
23172             )|
23173             4(?:
23174               38|
23175               5[0-36-8]|
23176               8[0-8]
23177             )|
23178             5(?:
23179               55|
23180               7[0-2]|
23181               93
23182             )|
23183             638|
23184             784
23185           )\d{4}
23186         </nationalNumberPattern>
23187         <exampleNumber>7842661234</exampleNumber>
23188       </fixedLine>
23189       <mobile>
23190         <nationalNumberPattern>
23191           784(?:
23192             4(?:
23193               3[0-4]|
23194               5[45]|
23195               89|
23196               9[0-5]
23197             )|
23198             5(?:
23199               2[6-9]|
23200               3[0-4]
23201             )
23202           )\d{4}
23203         </nationalNumberPattern>
23204         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23205         <exampleNumber>7844301234</exampleNumber>
23206       </mobile>
23207       <tollFree>
23208         <nationalNumberPattern>
23209           8(?:
23210             00|
23211             44|
23212             55|
23213             66|
23214             77|
23215             88
23216           )[2-9]\d{6}
23217         </nationalNumberPattern>
23218         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23219         <exampleNumber>8002345678</exampleNumber>
23220       </tollFree>
23221       <premiumRate>
23222         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23223         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23224         <exampleNumber>9002345678</exampleNumber>
23225       </premiumRate>
23226       <personalNumber>
23227         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23228         <nationalNumberPattern>
23229           5(?:
23230             00|
23231             33|
23232             44|
23233             66|
23234             77
23235           )[2-9]\d{6}
23236         </nationalNumberPattern>
23237         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23238         <exampleNumber>5002345678</exampleNumber>
23239       </personalNumber>
23240     </territory>
23241
23242     <!-- Venezuela -->
23243     <!-- 1XX specifies a particular carrier to route a call to, but none of these have been
23244          implemented. -->
23245     <territory id="VE" countryCode="58" internationalPrefix="00"
23246                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23247                carrierCodeFormattingRule="$CC $FG">
23248       <references>
23249         <sourceUrl>http://www.itu.int/oth/T02020000E3/en</sourceUrl>
23250         <sourceUrl>http://en.wikipedia.org/wiki/+58</sourceUrl>
23251       </references>
23252       <availableFormats>
23253         <numberFormat pattern="(\d{3})(\d{7})">
23254           <format>$1-$2</format>
23255         </numberFormat>
23256       </availableFormats>
23257       <generalDesc>
23258         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
23259         <!-- Open numbering plan. -->
23260         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23261       </generalDesc>
23262       <fixedLine>
23263         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
23264              mentions these as 5XX, but online examples that can be found are seemingly restricted
23265              to 50[01]. -->
23266         <nationalNumberPattern>
23267           (?:
23268             2(?:
23269               12|
23270               3[457-9]|
23271               [58][1-9]|
23272               [467]\d|
23273               9[1-6]
23274             )|
23275             50[01]
23276           )\d{7}
23277         </nationalNumberPattern>
23278         <exampleNumber>2121234567</exampleNumber>
23279       </fixedLine>
23280       <mobile>
23281         <nationalNumberPattern>
23282           4(?:
23283             1[24-8]|
23284             2[46]
23285           )\d{7}
23286         </nationalNumberPattern>
23287         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23288         <exampleNumber>4121234567</exampleNumber>
23289       </mobile>
23290       <tollFree>
23291         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
23292         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23293         <exampleNumber>8001234567</exampleNumber>
23294       </tollFree>
23295       <premiumRate>
23296         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
23297         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23298         <exampleNumber>9001234567</exampleNumber>
23299       </premiumRate>
23300     </territory>
23301
23302     <!-- Virgin Islands, British -->
23303     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
23304                internationalPrefix="011">
23305       <references>
23306         <sourceUrl>http://www.itu.int/oth/T020200001E/en</sourceUrl>
23307       </references>
23308       <generalDesc>
23309         <!-- NANPA country - uses US formatting rules -->
23310         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
23311         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23312       </generalDesc>
23313       <fixedLine>
23314         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
23315              and 774 have been added from numbers found in the white pages. -->
23316         <nationalNumberPattern>
23317           284(?:
23318             (?:
23319               229|
23320               4(?:
23321                 22|
23322                 9[45]
23323               )|
23324               774|
23325               8(?:
23326                 52|
23327                 6[459]
23328               )
23329             )\d{4}|
23330             496[0-5]\d{3}
23331           )
23332         </nationalNumberPattern>
23333         <exampleNumber>2842291234</exampleNumber>
23334       </fixedLine>
23335       <mobile>
23336         <!-- No data on central office codes can be found on the nanpa.com website. The codes
23337              34[0-367], 446 and 54[57] have been added from numbers found in the white pages. -->
23338         <nationalNumberPattern>
23339           284(?:
23340             (?:
23341               3(?:
23342                 0[0-3]|
23343                 4[0-367]
23344               )|
23345               4(?:
23346                 4[0-6]|
23347                 68|
23348                 99
23349               )|
23350               54[0-57]
23351             )\d{4}|
23352             496[6-9]\d{3}
23353           )
23354         </nationalNumberPattern>
23355         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23356         <exampleNumber>2843001234</exampleNumber>
23357       </mobile>
23358       <tollFree>
23359         <nationalNumberPattern>
23360           8(?:
23361             00|
23362             44|
23363             55|
23364             66|
23365             77|
23366             88
23367           )[2-9]\d{6}
23368         </nationalNumberPattern>
23369         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23370         <exampleNumber>8002345678</exampleNumber>
23371       </tollFree>
23372       <premiumRate>
23373         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23374         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23375         <exampleNumber>9002345678</exampleNumber>
23376       </premiumRate>
23377       <personalNumber>
23378         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23379         <nationalNumberPattern>
23380           5(?:
23381             00|
23382             33|
23383             44|
23384             66|
23385             77
23386           )[2-9]\d{6}
23387         </nationalNumberPattern>
23388         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23389         <exampleNumber>5002345678</exampleNumber>
23390       </personalNumber>
23391     </territory>
23392
23393     <!-- Virgin Islands, United States -->
23394     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
23395                internationalPrefix="011">
23396       <references>
23397         <sourceUrl>http://www.itu.int/oth/T02020000DF/en</sourceUrl>
23398       </references>
23399       <generalDesc>
23400         <!-- NANPA country - uses US formatting rules -->
23401         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
23402         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23403       </generalDesc>
23404       <fixedLine>
23405         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
23406              yellow pages have been added, and the list of exchanges found on
23407              http://www.allareacodes.com/340 -->
23408         <nationalNumberPattern>
23409           340(?:
23410             2(?:
23411               01|
23412               2[0678]|
23413               44|
23414               77
23415             )|
23416             3(?:
23417               32|
23418               44
23419             )|
23420             4(?:
23421               22|
23422               7[34]
23423             )|
23424             5(?:
23425               1[34]|
23426               55
23427             )|
23428             6(?:
23429               26|
23430               4[23]|
23431               77|
23432               9[023]
23433             )|
23434             7(?:
23435               1[2-589]|
23436               27|
23437               7\d
23438             )|
23439             884|
23440             998
23441           )\d{4}
23442         </nationalNumberPattern>
23443         <exampleNumber>3406421234</exampleNumber>
23444       </fixedLine>
23445       <mobile>
23446         <nationalNumberPattern>
23447           340(?:
23448             2(?:
23449               01|
23450               2[0678]|
23451               44|
23452               77
23453             )|
23454             3(?:
23455               32|
23456               44
23457             )|
23458             4(?:
23459               22|
23460               7[34]
23461             )|
23462             5(?:
23463               1[34]|
23464               55
23465             )|
23466             6(?:
23467               26|
23468               4[23]|
23469               77|
23470               9[023]
23471             )|
23472             7(?:
23473               1[2-589]|
23474               27|
23475               7\d
23476             )|
23477             884|
23478             998
23479           )\d{4}
23480         </nationalNumberPattern>
23481         <exampleNumber>3406421234</exampleNumber>
23482       </mobile>
23483       <tollFree>
23484         <nationalNumberPattern>
23485           8(?:
23486             00|
23487             44|
23488             55|
23489             66|
23490             77|
23491             88
23492           )[2-9]\d{6}
23493         </nationalNumberPattern>
23494         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23495         <exampleNumber>8002345678</exampleNumber>
23496       </tollFree>
23497       <premiumRate>
23498         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23499         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23500         <exampleNumber>9002345678</exampleNumber>
23501       </premiumRate>
23502       <personalNumber>
23503         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23504         <nationalNumberPattern>
23505           5(?:
23506             00|
23507             33|
23508             44|
23509             66|
23510             77
23511           )[2-9]\d{6}
23512         </nationalNumberPattern>
23513         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23514         <exampleNumber>5002345678</exampleNumber>
23515       </personalNumber>
23516     </territory>
23517
23518     <!-- Viet Nam (Vietnam) -->
23519     <territory id="VN" countryCode="84" internationalPrefix="00"
23520                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23521                nationalPrefixOptionalWhenFormatting="true">
23522       <references>
23523         <sourceUrl>http://www.itu.int/oth/T02020000E4/en</sourceUrl>
23524         <sourceUrl>http://en.wikipedia.org/wiki/%2B84</sourceUrl>
23525       </references>
23526       <availableFormats>
23527         <numberFormat pattern="([17]99)(\d{4})">
23528           <leadingDigits>[17]99</leadingDigits>
23529           <format>$1 $2</format>
23530         </numberFormat>
23531         <numberFormat pattern="([48])(\d{4})(\d{4})">
23532           <leadingDigits>[48]</leadingDigits>
23533           <format>$1 $2 $3</format>
23534         </numberFormat>
23535         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
23536           <leadingDigits>
23537             2[025-79]|
23538             3[0136-9]|
23539             5[2-9]|
23540             6[0-46-8]|
23541             7[02-79]
23542           </leadingDigits>
23543           <format>$1 $2 $3</format>
23544         </numberFormat>
23545         <numberFormat pattern="(80)(\d{5})">
23546           <leadingDigits>80</leadingDigits>
23547           <format>$1 $2</format>
23548         </numberFormat>
23549         <numberFormat pattern="(69\d)(\d{4,5})">
23550           <leadingDigits>69</leadingDigits>
23551           <format>$1 $2</format>
23552         </numberFormat>
23553         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
23554           <leadingDigits>
23555             2[1348]|
23556             3[25]|
23557             5[01]|
23558             65|
23559             7[18]
23560           </leadingDigits>
23561           <format>$1 $2 $3</format>
23562         </numberFormat>
23563         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
23564           <leadingDigits>9</leadingDigits>
23565           <format>$1 $2 $3 $4</format>
23566         </numberFormat>
23567         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
23568           <leadingDigits>
23569             1(?:
23570               [26]|
23571               8[68]|
23572               99
23573             )
23574           </leadingDigits>
23575           <format>$1 $2 $3</format>
23576         </numberFormat>
23577         <numberFormat nationalPrefixFormattingRule="$FG"
23578           pattern="(1[89]00)(\d{4,6})">
23579           <leadingDigits>1[89]0</leadingDigits>
23580           <format>$1 $2</format>
23581         </numberFormat>
23582       </availableFormats>
23583       <generalDesc>
23584         <nationalNumberPattern>
23585           [17]\d{6,9}|
23586           [2-69]\d{7,9}|
23587           8\d{6,8}
23588         </nationalNumberPattern>
23589         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23590       </generalDesc>
23591       <noInternationalDialling>
23592         <nationalNumberPattern>
23593           [17]99\d{4}|
23594           69\d{5,6}
23595         </nationalNumberPattern>
23596         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23597         <exampleNumber>1992000</exampleNumber>
23598       </noInternationalDialling>
23599       <fixedLine>
23600         <nationalNumberPattern>
23601           (?:
23602             2(?:
23603               [025-79]|
23604               1[0189]|
23605               [348][01]
23606             )|
23607             3(?:
23608               [0136-9]|
23609               [25][01]
23610             )|
23611             4\d|
23612             5(?:
23613               [01][01]|
23614               [2-9]
23615             )|
23616             6(?:
23617               [0-46-8]|
23618               5[01]
23619             )|
23620             7(?:
23621               [02-79]|
23622               [18][01]
23623             )|
23624             8[1-9]
23625           )\d{7}
23626         </nationalNumberPattern>
23627         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23628         <exampleNumber>2101234567</exampleNumber>
23629       </fixedLine>
23630       <mobile>
23631         <nationalNumberPattern>
23632           (?:
23633             9\d|
23634             1(?:
23635               2\d|
23636               6[2-9]|
23637               8[68]|
23638               99
23639             )
23640           )\d{7}
23641         </nationalNumberPattern>
23642         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23643         <exampleNumber>912345678</exampleNumber>
23644       </mobile>
23645       <tollFree>
23646         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
23647         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23648         <exampleNumber>1800123456</exampleNumber>
23649       </tollFree>
23650       <premiumRate>
23651         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
23652         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23653         <exampleNumber>1900123456</exampleNumber>
23654       </premiumRate>
23655       <uan>
23656         <!-- These include non-geographic fixed numbers, such as for government ministries. While
23657         listed as "private networks", they may actually be callable from within Vietnam. (They are
23658         "private" in the sense that ordinary people could not be assigned these numbers.) -->
23659         <nationalNumberPattern>
23660           [17]99\d{4}|
23661           69\d{5,6}|
23662           80\d{5}
23663         </nationalNumberPattern>
23664         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23665         <exampleNumber>1992000</exampleNumber>
23666       </uan>
23667     </territory>
23668
23669     <!-- Vanuatu -->
23670     <territory id="VU" countryCode="678" internationalPrefix="00">
23671       <references>
23672         <sourceUrl>http://www.itu.int/oth/T02020000E2/en</sourceUrl>
23673       </references>
23674       <!-- Should be formatted in one block, apart from the mobile numbers. -->
23675       <availableFormats>
23676         <numberFormat pattern="(\d{3})(\d{4})">
23677           <leadingDigits>[579]</leadingDigits>
23678           <format>$1 $2</format>
23679         </numberFormat>
23680       </availableFormats>
23681       <generalDesc>
23682         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
23683         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23684       </generalDesc>
23685       <fixedLine>
23686         <nationalNumberPattern>
23687           (?:
23688             2[02-9]\d|
23689             3(?:
23690               [5-7]\d|
23691               8[0-8]
23692             )|
23693             48[4-9]|
23694             88\d
23695           )\d{2}
23696         </nationalNumberPattern>
23697         <possibleNumberPattern>\d{5}</possibleNumberPattern>
23698         <exampleNumber>22123</exampleNumber>
23699       </fixedLine>
23700       <mobile>
23701         <nationalNumberPattern>
23702           (?:
23703             5(?:
23704               7[2-5]|
23705               [3-69]\d
23706             )|
23707             7[013-7]\d
23708           )\d{4}
23709         </nationalNumberPattern>
23710         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23711         <exampleNumber>5912345</exampleNumber>
23712       </mobile>
23713       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
23714            for government fixed-line numbers. -->
23715       <uan>
23716         <nationalNumberPattern>
23717           3[03]\d{3}|
23718           900\d{4}
23719         </nationalNumberPattern>
23720         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23721         <exampleNumber>30123</exampleNumber>
23722       </uan>
23723     </territory>
23724
23725     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
23726     <territory id="WF" countryCode="681" internationalPrefix="00">
23727       <references>
23728         <sourceUrl>http://www.itu.int/oth/T02020000E6/en</sourceUrl>
23729       </references>
23730       <availableFormats>
23731         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
23732           <format>$1 $2 $3</format>
23733         </numberFormat>
23734       </availableFormats>
23735       <generalDesc>
23736         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
23737         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23738       </generalDesc>
23739       <fixedLine>
23740         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
23741              50 and 68 are possible, so they are included here. -->
23742         <nationalNumberPattern>
23743           (?:
23744             50|
23745             68|
23746             72
23747           )\d{4}
23748         </nationalNumberPattern>
23749         <exampleNumber>501234</exampleNumber>
23750       </fixedLine>
23751       <mobile>
23752         <nationalNumberPattern>
23753           (?:
23754             50|
23755             68|
23756             72
23757           )\d{4}
23758         </nationalNumberPattern>
23759         <exampleNumber>501234</exampleNumber>
23760       </mobile>
23761     </territory>
23762
23763     <!-- Samoa -->
23764     <territory id="WS" countryCode="685" internationalPrefix="0">
23765       <references>
23766         <sourceUrl>http://www.itu.int/oth/T02020000B4/en</sourceUrl>
23767       </references>
23768       <availableFormats>
23769         <!-- Should be formatted in one block, apart from the specific series below. -->
23770         <numberFormat pattern="(8\d{2})(\d{3,4})">
23771           <leadingDigits>8</leadingDigits>
23772           <format>$1 $2</format>
23773         </numberFormat>
23774         <numberFormat pattern="(7\d)(\d{5})">
23775           <leadingDigits>7</leadingDigits>
23776           <format>$1 $2</format>
23777         </numberFormat>
23778       </availableFormats>
23779       <generalDesc>
23780         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
23781         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23782       </generalDesc>
23783       <fixedLine>
23784         <nationalNumberPattern>
23785           (?:
23786             [2-5]\d|
23787             6[1-9]|
23788             84\d{2}
23789           )\d{3}
23790         </nationalNumberPattern>
23791         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23792         <exampleNumber>22123</exampleNumber>
23793       </fixedLine>
23794       <mobile>
23795         <nationalNumberPattern>
23796           (?:
23797             60|
23798             7[25-7]\d
23799           )\d{4}
23800         </nationalNumberPattern>
23801         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
23802         <exampleNumber>601234</exampleNumber>
23803       </mobile>
23804       <tollFree>
23805         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
23806              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
23807              for now, so may be also used for other purposes than toll free, but until we have
23808              further evidence of these we will keep it as toll free. -->
23809         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
23810         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23811         <exampleNumber>800123</exampleNumber>
23812       </tollFree>
23813       <!-- Current research suggests other types of numbers are not used in Samoa. -->
23814     </territory>
23815
23816     <!-- Yemen -->
23817     <territory id="YE" countryCode="967" internationalPrefix="00"
23818                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
23819       <references>
23820         <sourceUrl>http://www.itu.int/oth/T02020000E7/en</sourceUrl>
23821       </references>
23822       <availableFormats>
23823         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
23824           <leadingDigits>
23825             [1-6]|
23826             7[24-68]
23827           </leadingDigits>
23828           <format>$1 $2 $3</format>
23829         </numberFormat>
23830         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
23831           <leadingDigits>7[0137]</leadingDigits>
23832           <format>$1 $2 $3</format>
23833         </numberFormat>
23834       </availableFormats>
23835       <generalDesc>
23836         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
23837         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
23838       </generalDesc>
23839       <fixedLine>
23840         <nationalNumberPattern>
23841           (?:
23842             1(?:
23843               7\d|
23844               [2-68]
23845             )|
23846             2[2-68]|
23847             3[2358]|
23848             4[2-58]|
23849             5[2-6]|
23850             6[3-58]|
23851             7[24-68]
23852           )\d{5}
23853         </nationalNumberPattern>
23854         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
23855         <exampleNumber>1234567</exampleNumber>
23856       </fixedLine>
23857       <mobile>
23858         <!-- Adding 70 from numbers found online. -->
23859         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
23860         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23861         <exampleNumber>712345678</exampleNumber>
23862       </mobile>
23863       <!-- No tollFree or premiumRate information can be found. -->
23864     </territory>
23865
23866     <!-- Mayotte -->
23867     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
23868                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
23869       <references>
23870         <!-- Some information at the following source, but most from collection of internet data.
23871              -->
23872         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_France</sourceUrl>
23873         <!-- Verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
23874              -->
23875         <sourceUrl>http://www.comores-online.com/mwezinet/internet/262</sourceUrl>
23876       </references>
23877       <!-- Formatting as per La Réunion. -->
23878       <generalDesc>
23879         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
23880         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23881       </generalDesc>
23882       <fixedLine>
23883         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
23884         <exampleNumber>269601234</exampleNumber>
23885       </fixedLine>
23886       <mobile>
23887         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
23888         <exampleNumber>639123456</exampleNumber>
23889       </mobile>
23890       <!-- Same as in France. -->
23891       <tollFree>
23892         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23893         <exampleNumber>801234567</exampleNumber>
23894       </tollFree>
23895     </territory>
23896
23897     <!-- South Africa -->
23898     <territory id="ZA" countryCode="27" internationalPrefix="00"
23899                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23900                mobileNumberPortableRegion="true">
23901       <references>
23902         <sourceUrl>http://www.itu.int/oth/T02020000C1/en</sourceUrl>
23903         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa</sourceUrl>
23904       </references>
23905       <availableFormats>
23906         <numberFormat pattern="(860)(\d{3})(\d{3})">
23907           <leadingDigits>860</leadingDigits>
23908           <format>$1 $2 $3</format>
23909         </numberFormat>
23910         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
23911           <leadingDigits>
23912             [1-79]|
23913             8(?:
23914               [0-47]|
23915               6[1-9]
23916             )
23917           </leadingDigits>
23918           <format>$1 $2 $3</format>
23919         </numberFormat>
23920         <numberFormat pattern="(\d{2})(\d{3,4})">
23921           <leadingDigits>8[1-4]</leadingDigits>
23922           <format>$1 $2</format>
23923         </numberFormat>
23924         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
23925           <leadingDigits>8[1-4]</leadingDigits>
23926           <format>$1 $2 $3</format>
23927         </numberFormat>
23928       </availableFormats>
23929       <generalDesc>
23930         <nationalNumberPattern>
23931           [1-79]\d{8}|
23932           8(?:
23933             [067]\d{7}|
23934             [1-4]\d{3,7}
23935           )
23936         </nationalNumberPattern>
23937         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
23938       </generalDesc>
23939       <fixedLine>
23940         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
23941              used in 1996. -->
23942         <nationalNumberPattern>
23943           (?:
23944             1[0-8]|
23945             2[0-378]|
23946             3[1-69]|
23947             4\d|
23948             5[1346-8]
23949           )\d{7}
23950         </nationalNumberPattern>
23951         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23952         <exampleNumber>101234567</exampleNumber>
23953       </fixedLine>
23954       <mobile>
23955         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
23956              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
23957              in prominent places online, even though the ITU document says numbers must be 10 digits
23958              long (including the national prefix). -->
23959         <nationalNumberPattern>
23960           (?:
23961             6[0-5]|
23962             7[0-46-9]
23963           )\d{7}|
23964           8[1-4]\d{3,7}
23965         </nationalNumberPattern>
23966         <exampleNumber>711234567</exampleNumber>
23967       </mobile>
23968       <tollFree>
23969         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23970         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23971         <exampleNumber>801234567</exampleNumber>
23972       </tollFree>
23973       <premiumRate>
23974         <nationalNumberPattern>
23975           86[2-9]\d{6}|
23976           90\d{7}
23977         </nationalNumberPattern>
23978         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23979         <exampleNumber>862345678</exampleNumber>
23980       </premiumRate>
23981       <sharedCost>
23982         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
23983         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23984         <exampleNumber>860123456</exampleNumber>
23985       </sharedCost>
23986       <voip>
23987         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
23988         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23989         <exampleNumber>871234567</exampleNumber>
23990       </voip>
23991       <uan>
23992         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
23993              numbers. -->
23994         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
23995         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23996         <exampleNumber>861123456</exampleNumber>
23997       </uan>
23998     </territory>
23999
24000     <!-- Zambia -->
24001     <territory id="ZM" countryCode="260" internationalPrefix="00"
24002                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24003       <references>
24004         <sourceUrl>http://www.itu.int/oth/T02020000E8/en</sourceUrl>
24005       </references>
24006       <availableFormats>
24007         <numberFormat pattern="([29]\d)(\d{7})">
24008           <leadingDigits>[29]</leadingDigits>
24009           <format>$1 $2</format>
24010         </numberFormat>
24011         <numberFormat pattern="(800)(\d{3})(\d{3})">
24012           <leadingDigits>8</leadingDigits>
24013           <format>$1 $2 $3</format>
24014         </numberFormat>
24015       </availableFormats>
24016       <generalDesc>
24017         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
24018         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24019       </generalDesc>
24020       <fixedLine>
24021         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
24022         <exampleNumber>211234567</exampleNumber>
24023       </fixedLine>
24024       <mobile>
24025         <!-- Adding extra prefixes 50 and 6[1-57-9] since SMS messages have been successfully
24026              delivered to these numbers, and numbers like this can be found on the Internet. Adding
24027              prefix 960 based on information received from MTN Zambia. The 97 range has been
24028              expanded based on their IR21 document, which states the range 97[1-9] is used. -->
24029         <nationalNumberPattern>
24030           9(?:
24031             5[05]|
24032             6\d|
24033             7[1-9]
24034           )\d{6}
24035         </nationalNumberPattern>
24036         <exampleNumber>955123456</exampleNumber>
24037       </mobile>
24038       <tollFree>
24039         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
24040         <exampleNumber>800123456</exampleNumber>
24041       </tollFree>
24042     </territory>
24043
24044     <!-- Zimbabwe -->
24045     <territory id="ZW" countryCode="263" internationalPrefix="00"
24046                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24047       <references>
24048         <sourceUrl>http://www.itu.int/oth/T02020000E9/en</sourceUrl>
24049       </references>
24050       <availableFormats>
24051         <!-- One-digit area codes -->
24052         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
24053           <leadingDigits>
24054             4|
24055             9[2-9]
24056           </leadingDigits>
24057           <format>$1 $2 $3</format>
24058         </numberFormat>
24059         <!-- Mobile numbers -->
24060         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
24061           <leadingDigits>
24062             [19]1|
24063             7
24064           </leadingDigits>
24065           <format>$1 $2 $3</format>
24066         </numberFormat>
24067         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
24068           <leadingDigits>86[24]</leadingDigits>
24069           <format>$1 $2 $3</format>
24070         </numberFormat>
24071         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
24072         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
24073           <leadingDigits>
24074             2(?:
24075               [278]|
24076               0[45]|
24077               [49]8
24078             )|
24079             3(?:
24080               08|
24081               17|
24082               3[78]|
24083               [78]
24084             )|
24085             5[15][78]|
24086             6(?:
24087               [29]8|
24088               37|
24089               [68][78]
24090             )
24091           </leadingDigits>
24092           <format>$1 $2</format>
24093         </numberFormat>
24094         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
24095           <leadingDigits>
24096             2(?:
24097               [278]|
24098               0[45]|
24099               48
24100             )|
24101             3(?:
24102               08|
24103               17|
24104               3[78]|
24105               [78]
24106             )|
24107             5[15][78]|
24108             6(?:
24109               [29]8|
24110               37|
24111               [68][78]
24112             )|
24113             80
24114           </leadingDigits>
24115           <format>$1 $2 $3</format>
24116         </numberFormat>
24117         <!-- Two-digit area codes -->
24118         <numberFormat pattern="([1-356]\d)(\d{3,5})">
24119           <leadingDigits>
24120             1[3-9]|
24121             2(?:
24122               [1-469]|
24123               0[0-35-9]|
24124               [45][0-79]
24125             )|
24126             3(?:
24127               0[0-79]|
24128               1[0-689]|
24129               [24-69]|
24130               3[0-69]
24131             )|
24132             5(?:
24133               [02-46-9]|
24134               [15][0-69]
24135             )|
24136             6(?:
24137               [0145]|
24138               [29][0-79]|
24139               3[0-689]|
24140               [68][0-69]
24141             )
24142           </leadingDigits>
24143           <format>$1 $2</format>
24144         </numberFormat>
24145         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
24146           <leadingDigits>
24147             1[3-9]|
24148             2(?:
24149               [1-469]|
24150               0[0-35-9]|
24151               [45][0-79]
24152             )|
24153             3(?:
24154               0[0-79]|
24155               1[0-689]|
24156               [24-69]|
24157               3[0-69]
24158             )|
24159             5(?:
24160               [02-46-9]|
24161               [15][0-69]
24162             )|
24163             6(?:
24164               [0145]|
24165               [29][0-79]|
24166               3[0-689]|
24167               [68][0-69]
24168             )
24169           </leadingDigits>
24170           <format>$1 $2 $3</format>
24171         </numberFormat>
24172         <!-- Four-digit area codes -->
24173         <numberFormat pattern="([25]\d{3})(\d{3,5})">
24174           <leadingDigits>
24175             (?:
24176               25|
24177               54
24178             )8
24179           </leadingDigits>
24180           <leadingDigits>
24181             258[23]|
24182             5483
24183           </leadingDigits>
24184           <format>$1 $2</format>
24185         </numberFormat>
24186         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
24187           <leadingDigits>
24188             (?:
24189               25|
24190               54
24191             )8
24192           </leadingDigits>
24193           <leadingDigits>
24194             258[23]|
24195             5483
24196           </leadingDigits>
24197           <format>$1 $2 $3</format>
24198         </numberFormat>
24199         <!-- VOIP numbers -->
24200         <numberFormat pattern="(8\d{3})(\d{6})">
24201           <leadingDigits>86</leadingDigits>
24202           <format>$1 $2</format>
24203         </numberFormat>
24204       </availableFormats>
24205       <generalDesc>
24206         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
24207              variable in length and the possible prefixes clash with the country code. -->
24208         <nationalNumberPattern>
24209           2(?:
24210             [012457-9]\d{3,8}|
24211             6\d{3,6}
24212           )|
24213           [13-79]\d{4,8}|
24214           8[06]\d{8}
24215         </nationalNumberPattern>
24216         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
24217       </generalDesc>
24218       <fixedLine>
24219         <!-- Numbering is grouped by subscriber-number length. -->
24220         <nationalNumberPattern>
24221           (?:
24222             1[3-9]|
24223             2(?:
24224               0[45]|
24225               [16]|
24226               2[28]|
24227               [49]8?|
24228               58[23]|
24229               7[246]|
24230               8[1346-9]
24231             )|
24232             3(?:
24233               08?|
24234               17?|
24235               3[78]|
24236               [2456]|
24237               7[1569]|
24238               8[379]
24239             )|
24240             5(?:
24241               [07-9]|
24242               1[78]|
24243               483|
24244               5(?:
24245                 7?|
24246                 8
24247               )
24248             )|
24249             6(?:
24250               0|
24251               28|
24252               37?|
24253               [45][68][78]|
24254               98?
24255             )|
24256             848
24257           )\d{3,6}|
24258           (?:
24259             2(?:
24260               27|
24261               5|
24262               7[135789]|
24263               8[25]
24264             )|
24265             3[39]|
24266             5[1-46]|
24267             6[126-8]
24268           )\d{4,6}|
24269           2(?:
24270             (?:
24271               0|
24272               70
24273             )\d{5,6}|
24274             2[05]\d{7}
24275           )|
24276           (?:
24277             4\d|
24278             9[2-8]
24279           )\d{4,7}
24280         </nationalNumberPattern>
24281         <exampleNumber>1312345</exampleNumber>
24282       </fixedLine>
24283       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
24284            also being used by the carriers as mobile prefixes. -->
24285       <mobile>
24286         <nationalNumberPattern>
24287           7[1378]\d{7}|
24288           86(?:
24289             22|
24290             44
24291           )\d{6}
24292         </nationalNumberPattern>
24293         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24294         <exampleNumber>711234567</exampleNumber>
24295       </mobile>
24296       <tollFree>
24297         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
24298         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24299         <exampleNumber>8001234567</exampleNumber>
24300       </tollFree>
24301       <!-- No premiumRate information can be found. -->
24302       <voip>
24303         <nationalNumberPattern>
24304           86(?:
24305             1[12]|
24306             30|
24307             55|
24308             77|
24309             8[367]|
24310             99
24311           )\d{6}
24312         </nationalNumberPattern>
24313         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24314         <exampleNumber>8686123456</exampleNumber>
24315       </voip>
24316     </territory>
24317
24318     <!-- Universal International Toll Free Number -->
24319     <territory id="001" countryCode="800" leadingZeroPossible="true">
24320       <references>
24321         <sourceUrl>http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx</sourceUrl>
24322       </references>
24323       <availableFormats>
24324         <numberFormat pattern="(\d{4})(\d{4})">
24325           <format>$1 $2</format>
24326         </numberFormat>
24327       </availableFormats>
24328       <generalDesc>
24329         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24330         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24331         <exampleNumber>12345678</exampleNumber>
24332       </generalDesc>
24333       <fixedLine>
24334         <nationalNumberPattern>NA</nationalNumberPattern>
24335         <possibleNumberPattern>NA</possibleNumberPattern>
24336       </fixedLine>
24337       <mobile>
24338         <nationalNumberPattern>NA</nationalNumberPattern>
24339         <possibleNumberPattern>NA</possibleNumberPattern>
24340       </mobile>
24341       <tollFree>
24342         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24343       </tollFree>
24344     </territory>
24345
24346     <!-- Universal International Shared Cost Number -->
24347     <territory id="001" countryCode="808" leadingZeroPossible="true">
24348       <references>
24349         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24350       </references>
24351       <availableFormats>
24352         <numberFormat pattern="(\d{4})(\d{4})">
24353           <format>$1 $2</format>
24354         </numberFormat>
24355       </availableFormats>
24356       <generalDesc>
24357         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24358         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24359         <exampleNumber>12345678</exampleNumber>
24360       </generalDesc>
24361       <fixedLine>
24362         <nationalNumberPattern>NA</nationalNumberPattern>
24363         <possibleNumberPattern>NA</possibleNumberPattern>
24364       </fixedLine>
24365       <mobile>
24366         <nationalNumberPattern>NA</nationalNumberPattern>
24367         <possibleNumberPattern>NA</possibleNumberPattern>
24368       </mobile>
24369       <sharedCost>
24370         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24371       </sharedCost>
24372     </territory>
24373
24374     <!-- Inmarsat Global Limited -->
24375     <territory id="001" countryCode="870">
24376       <references>
24377         <sourceUrl>http://www.itu.int/oth/T0202000065/en</sourceUrl>
24378         <sourceUrl>http://www.inmarsat.com</sourceUrl>
24379       </references>
24380       <availableFormats>
24381         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24382           <format>$1 $2 $3</format>
24383         </numberFormat>
24384       </availableFormats>
24385       <generalDesc>
24386         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
24387         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24388         <exampleNumber>301234567</exampleNumber>
24389       </generalDesc>
24390       <fixedLine>
24391         <nationalNumberPattern>NA</nationalNumberPattern>
24392         <possibleNumberPattern>NA</possibleNumberPattern>
24393       </fixedLine>
24394       <mobile>
24395         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
24396         <nationalNumberPattern>
24397           (?:
24398             [356]\d|
24399             7[6-8]
24400           )\d{7}
24401         </nationalNumberPattern>
24402       </mobile>
24403     </territory>
24404
24405     <!-- VISIONng -->
24406     <!-- Number length has been derived from examples found online. -->
24407     <territory id="001" countryCode="878">
24408       <references>
24409         <sourceUrl>http://www.itu.int/oth/T02020000E5/en</sourceUrl>
24410       </references>
24411       <availableFormats>
24412         <!-- Formatting chosen based on online examples. -->
24413         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
24414           <format>$1 $2 $3</format>
24415         </numberFormat>
24416       </availableFormats>
24417       <generalDesc>
24418         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
24419         <possibleNumberPattern>\d{12}</possibleNumberPattern>
24420         <exampleNumber>101234567890</exampleNumber>
24421       </generalDesc>
24422       <fixedLine>
24423         <nationalNumberPattern>NA</nationalNumberPattern>
24424         <possibleNumberPattern>NA</possibleNumberPattern>
24425       </fixedLine>
24426       <mobile>
24427         <nationalNumberPattern>NA</nationalNumberPattern>
24428         <possibleNumberPattern>NA</possibleNumberPattern>
24429       </mobile>
24430       <voip>
24431         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
24432       </voip>
24433     </territory>
24434
24435     <!-- Iridium -->
24436     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
24437          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
24438          are. For this reason, we only support Iridium numbers at the moment. -->
24439     <territory id="001" countryCode="881">
24440       <references>
24441         <sourceUrl>http://www.iridium.com</sourceUrl>
24442         <sourceUrl>http://www.itu.int/oth/T0202000069/en</sourceUrl>
24443       </references>
24444       <availableFormats>
24445         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
24446         <numberFormat pattern="(\d)(\d{3})(\d{5})">
24447           <leadingDigits>[67]</leadingDigits>
24448           <format>$1 $2 $3</format>
24449         </numberFormat>
24450       </availableFormats>
24451       <generalDesc>
24452         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24453         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24454         <exampleNumber>612345678</exampleNumber>
24455       </generalDesc>
24456       <fixedLine>
24457         <nationalNumberPattern>NA</nationalNumberPattern>
24458         <possibleNumberPattern>NA</possibleNumberPattern>
24459       </fixedLine>
24460       <mobile>
24461         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24462       </mobile>
24463     </territory>
24464
24465     <territory id="001" countryCode="882">
24466       <references>
24467         <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
24468         <sourceUrl>http://www.itu.int/oth/T0202000054/en</sourceUrl>
24469         <sourceUrl>http://www.gsm.aq/numberplan.php</sourceUrl>
24470         <sourceUrl>http://www.global.aq</sourceUrl>
24471         <!-- Maritime Communications Partner (MCP) +88232 -->
24472         <sourceUrl>http://www.itu.int/oth/T02020000F4/en</sourceUrl>
24473         <!-- Oration Technologies +88237 -->
24474         <sourceUrl>http://www.itu.int/oth/T02020000A0/en</sourceUrl>
24475         <!-- Telespazio S.p.A. +88213 -->
24476         <sourceUrl>http://www.itu.int/oth/T02020000CC/en</sourceUrl>
24477         <!-- Thuraya +88216 -->
24478         <sourceUrl>http://www.itu.int/oth/T02020000CF/en</sourceUrl>
24479       </references>
24480       <availableFormats>
24481         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
24482           <leadingDigits>3[23]</leadingDigits>
24483           <format>$1 $2 $3</format>
24484         </numberFormat>
24485         <numberFormat pattern="(\d{2})(\d{5})">
24486           <leadingDigits>
24487             16|
24488             342
24489           </leadingDigits>
24490           <format>$1 $2</format>
24491         </numberFormat>
24492         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
24493           <leadingDigits>34[57]</leadingDigits>
24494           <format>$1 $2 $3</format>
24495         </numberFormat>
24496         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
24497           <leadingDigits>348</leadingDigits>
24498           <format>$1 $2 $3</format>
24499         </numberFormat>
24500         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
24501           <leadingDigits>1</leadingDigits>
24502           <format>$1 $2 $3</format>
24503         </numberFormat>
24504         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
24505           <leadingDigits>16</leadingDigits>
24506           <format>$1 $2 $3</format>
24507         </numberFormat>
24508         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
24509           <leadingDigits>16</leadingDigits>
24510           <format>$1 $2 $3</format>
24511         </numberFormat>
24512       </availableFormats>
24513       <generalDesc>
24514         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
24515         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24516         <exampleNumber>3451234567</exampleNumber>
24517       </generalDesc>
24518       <fixedLine>
24519         <nationalNumberPattern>NA</nationalNumberPattern>
24520         <possibleNumberPattern>NA</possibleNumberPattern>
24521       </fixedLine>
24522       <mobile>
24523         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
24524              Oration based on numbers found online. -->
24525         <nationalNumberPattern>
24526           3(?:
24527             2\d{3}|
24528             37\d{2}|
24529             4(?:
24530               2|
24531               7\d{3}
24532             )
24533           )\d{4}
24534         </nationalNumberPattern>
24535         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
24536       </mobile>
24537       <voip>
24538         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
24539         <nationalNumberPattern>
24540           1(?:
24541             3(?:
24542               0[0347]|
24543               [13][0139]|
24544               2[035]|
24545               4[013568]|
24546               6[0459]|
24547               7[06]|
24548               8[15678]|
24549               9[0689]
24550             )\d{4}|
24551             6\d{5,10}
24552           )|
24553           345\d{7}
24554         </nationalNumberPattern>
24555         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24556       </voip>
24557       <voicemail>
24558         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
24559         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24560       </voicemail>
24561     </territory>
24562
24563     <territory id="001" countryCode="883">
24564       <references>
24565         <!-- bandwidth.com -->
24566         <sourceUrl>http://www.itu.int/oth/T02020000FB/en</sourceUrl>
24567         <!-- SipMe -->
24568         <sourceUrl>http://www.itu.int/oth/T02020000FC/en</sourceUrl>
24569         <!-- Voxbone -->
24570         <sourceUrl>http://www.itu.int/oth/T02020000F3/en</sourceUrl>
24571       </references>
24572       <availableFormats>
24573         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24574           <leadingDigits>510</leadingDigits>
24575           <format>$1 $2 $3</format>
24576         </numberFormat>
24577         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
24578           <leadingDigits>510</leadingDigits>
24579           <format>$1 $2 $3 $4</format>
24580         </numberFormat>
24581         <!-- When only 8 digits follow the "area code" formatting as XXXX XXXX
24582              seems preferred (see Bandwidth.com and SipMe). -->
24583         <numberFormat pattern="(\d{4})(\d{4})(\d{4})">
24584           <leadingDigits>51[13]</leadingDigits>
24585           <format>$1 $2 $3</format>
24586         </numberFormat>
24587       </availableFormats>
24588       <generalDesc>
24589         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
24590              costs can be found online, so we don't include them here for now. -->
24591         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
24592         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
24593         <exampleNumber>510012345</exampleNumber>
24594       </generalDesc>
24595       <fixedLine>
24596         <nationalNumberPattern>NA</nationalNumberPattern>
24597         <possibleNumberPattern>NA</possibleNumberPattern>
24598       </fixedLine>
24599       <mobile>
24600         <nationalNumberPattern>NA</nationalNumberPattern>
24601         <possibleNumberPattern>NA</possibleNumberPattern>
24602       </mobile>
24603       <voip>
24604         <nationalNumberPattern>
24605           51(?:
24606             00\d{5}(?:\d{3})?|
24607             [13]0\d{8}
24608           )
24609         </nationalNumberPattern>
24610       </voip>
24611     </territory>
24612
24613     <!-- United Nations- OCHA -->
24614     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
24615          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
24616          the tariff of a national call. -->
24617     <territory id="001" countryCode="888" leadingZeroPossible="true">
24618       <references>
24619         <sourceUrl>http://www.itu.int/oth/T02020000FA/en</sourceUrl>
24620       </references>
24621       <availableFormats>
24622         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
24623           <format>$1 $2 $3</format>
24624         </numberFormat>
24625       </availableFormats>
24626       <generalDesc>
24627         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24628         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24629         <exampleNumber>12345678901</exampleNumber>
24630       </generalDesc>
24631       <fixedLine>
24632         <nationalNumberPattern>NA</nationalNumberPattern>
24633         <possibleNumberPattern>NA</possibleNumberPattern>
24634       </fixedLine>
24635       <mobile>
24636         <nationalNumberPattern>NA</nationalNumberPattern>
24637         <possibleNumberPattern>NA</possibleNumberPattern>
24638       </mobile>
24639       <uan>
24640         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24641       </uan>
24642     </territory>
24643
24644     <!-- Universal International Premium Rate Number -->
24645     <territory id="001" countryCode="979" leadingZeroPossible="true">
24646       <references>
24647         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24648       </references>
24649       <availableFormats>
24650         <numberFormat pattern="(\d)(\d{4})(\d{4})">
24651           <format>$1 $2 $3</format>
24652         </numberFormat>
24653       </availableFormats>
24654       <generalDesc>
24655         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24656         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24657         <exampleNumber>123456789</exampleNumber>
24658       </generalDesc>
24659       <fixedLine>
24660         <nationalNumberPattern>NA</nationalNumberPattern>
24661         <possibleNumberPattern>NA</possibleNumberPattern>
24662       </fixedLine>
24663       <mobile>
24664         <nationalNumberPattern>NA</nationalNumberPattern>
24665         <possibleNumberPattern>NA</possibleNumberPattern>
24666       </mobile>
24667       <premiumRate>
24668         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24669       </premiumRate>
24670     </territory>
24671   </territories>
24672 </phoneNumberMetadata>