8ca4a0eb93f79a562599b02fa200dbdbc90f9b59
[platform/upstream/libphonenumber.git] / resources / PhoneNumberMetadata.xml
1 <!-- Copyright (C) 2009 The Libphonenumber Authors
2
3      Licensed under the Apache License, Version 2.0 (the "License");
4      you may not use this file except in compliance with the License.
5      You may obtain a copy of the License at
6
7      http://www.apache.org/licenses/LICENSE-2.0
8
9      Unless required by applicable law or agreed to in writing, software
10      distributed under the License is distributed on an "AS IS" BASIS,
11      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12      See the License for the specific language governing permissions and
13      limitations under the License.
14
15      @author: Shaopeng Jia
16
17      Metadata on Phone Number Plan and formatting rules
18      Note: Territories are in alphabetical order by their IDs, which are based on ISO 3166-1
19            two-letter country codes (or are set to "001" for non-geographical entities, which
20            represents "World" in the UN M.49 standard). The country names in the comments are the
21            official short names in English according to ISO 3166-1.
22
23      For more information on what each element represents, see
24      resources/phonemetadata.proto
25
26      Note that if you want to add validation metadata, the generalDesc nationalNumberPattern and
27      possibleNumberPattern must be provided. If this is missing, then the country will be
28      considered to have no more specific phone-number type metadata (fixedLine, mobile etc) and
29      hence only basic validation rules (numbers should be between 3 and 15 digits long) will be
30      applied.
31
32      If adding an element for a non-geographical entity, please add an example number element to the
33      general description.
34
35      Country code, international and national prefix information main source:
36      http://www.itu.int/pub/T-SP-E.164C-2011
37 -->
38
39 <!DOCTYPE phoneNumberMetadata [
40     <!ELEMENT phoneNumberMetadata (territories)>
41     <!ELEMENT territories (territory+)>
42     <!ELEMENT territory (references?, availableFormats?, generalDesc?, noInternationalDialling?,
43         areaCodeOptional?, fixedLine?, mobile?, pager?, tollFree?, premiumRate?,
44         sharedCost?, personalNumber?, voip?, uan?, voicemail?)>
45     <!ELEMENT references (sourceUrl+)>
46     <!ELEMENT generalDesc (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
47     <!ELEMENT noInternationalDialling (nationalNumberPattern, possibleNumberPattern?,
48         exampleNumber?)>
49     <!ELEMENT areaCodeOptional (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
50     <!ELEMENT fixedLine (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
51     <!ELEMENT mobile (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
52     <!ELEMENT pager (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
53     <!ELEMENT tollFree (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
54     <!ELEMENT premiumRate (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
55     <!ELEMENT sharedCost (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
56     <!ELEMENT personalNumber (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
57     <!ELEMENT voip (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
58     <!ELEMENT uan (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
59     <!ELEMENT voicemail (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
60     <!ELEMENT sourceUrl (#PCDATA)>
61     <!ELEMENT availableFormats (numberFormat+)>
62     <!ELEMENT nationalNumberPattern (#PCDATA)>
63     <!ELEMENT possibleNumberPattern (#PCDATA)>
64     <!ELEMENT exampleNumber (#PCDATA)>
65     <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)>
66     <!ELEMENT format (#PCDATA)>
67     <!ELEMENT intlFormat (#PCDATA)>
68     <!ELEMENT leadingDigits (#PCDATA)>
69
70     <!ATTLIST territory id CDATA #REQUIRED>
71     <!ATTLIST territory countryCode CDATA #REQUIRED>
72     <!ATTLIST territory mainCountryForCode (true) #IMPLIED>
73     <!ATTLIST territory leadingDigits CDATA #IMPLIED>
74     <!ATTLIST territory preferredInternationalPrefix CDATA #IMPLIED>
75     <!ATTLIST territory internationalPrefix CDATA #IMPLIED>
76     <!ATTLIST territory nationalPrefix CDATA #IMPLIED>
77     <!ATTLIST territory nationalPrefixForParsing CDATA #IMPLIED>
78     <!ATTLIST territory nationalPrefixTransformRule CDATA #IMPLIED>
79     <!ATTLIST territory preferredExtnPrefix CDATA #IMPLIED>
80     <!ATTLIST territory nationalPrefixFormattingRule CDATA #IMPLIED>
81     <!ATTLIST territory nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
82     <!ATTLIST territory leadingZeroPossible (true) #IMPLIED>
83     <!ATTLIST territory carrierCodeFormattingRule CDATA #IMPLIED>
84     <!ATTLIST territory mobileNumberPortableRegion (true) #IMPLIED>
85     <!ATTLIST numberFormat nationalPrefixFormattingRule CDATA #IMPLIED>
86     <!ATTLIST numberFormat nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
87     <!ATTLIST numberFormat carrierCodeFormattingRule CDATA #IMPLIED>
88     <!ATTLIST numberFormat pattern CDATA #REQUIRED>
89 ]>
90
91 <phoneNumberMetadata>
92   <territories>
93     <!-- Ascension Island -->
94     <territory id="AC" countryCode="247" internationalPrefix="00">
95       <references>
96         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
97       </references>
98       <!-- Formatted as a block. -->
99       <generalDesc>
100         <nationalNumberPattern>[2-7]\d{3,5}</nationalNumberPattern>
101         <possibleNumberPattern>\d{4,6}</possibleNumberPattern>
102       </generalDesc>
103       <fixedLine>
104         <nationalNumberPattern>
105           (?:
106             [267]\d|
107             3[0-5]|
108             4[4-69]
109           )\d{2}
110         </nationalNumberPattern>
111         <possibleNumberPattern>\d{4}</possibleNumberPattern>
112         <exampleNumber>6889</exampleNumber>
113       </fixedLine>
114       <mobile>
115         <nationalNumberPattern>5\d{5}</nationalNumberPattern>
116         <possibleNumberPattern>\d{6}</possibleNumberPattern>
117         <exampleNumber>501234</exampleNumber>
118       </mobile>
119     </territory>
120
121     <!-- Andorra -->
122     <territory id="AD" countryCode="376" internationalPrefix="00">
123       <references>
124         <sourceUrl>http://www.itu.int/oth/T0202000005/en</sourceUrl>
125       </references>
126       <availableFormats>
127         <numberFormat pattern="(\d{3})(\d{3})">
128           <leadingDigits>[346-9]</leadingDigits>
129           <format>$1 $2</format>
130         </numberFormat>
131         <numberFormat pattern="(180[02])(\d{4})">
132           <leadingDigits>1</leadingDigits>
133           <format>$1 $2</format>
134         </numberFormat>
135       </availableFormats>
136       <generalDesc>
137         <nationalNumberPattern>
138           (?:
139             [346-9]|
140             180
141           )\d{5}
142         </nationalNumberPattern>
143         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
144       </generalDesc>
145       <fixedLine>
146         <nationalNumberPattern>[78]\d{5}</nationalNumberPattern>
147         <possibleNumberPattern>\d{6}</possibleNumberPattern>
148         <exampleNumber>712345</exampleNumber>
149       </fixedLine>
150       <mobile>
151         <nationalNumberPattern>[346]\d{5}</nationalNumberPattern>
152         <possibleNumberPattern>\d{6}</possibleNumberPattern>
153         <exampleNumber>312345</exampleNumber>
154       </mobile>
155       <tollFree>
156         <!-- Note that the definitions of 1800 and 1802 numbers differ in the plan and on the
157              Andorran http://www.sta.ad website, but we consider both to be freephone here. -->
158         <nationalNumberPattern>180[02]\d{4}</nationalNumberPattern>
159         <possibleNumberPattern>\d{8}</possibleNumberPattern>
160         <exampleNumber>18001234</exampleNumber>
161       </tollFree>
162       <!-- The national numbering plan says that numbers beginning with 9 are reserved for special
163            services, so we assume they are premium rate here, although we cannot find examples
164            online. -->
165       <premiumRate>
166         <nationalNumberPattern>9\d{5}</nationalNumberPattern>
167         <possibleNumberPattern>\d{6}</possibleNumberPattern>
168         <exampleNumber>912345</exampleNumber>
169       </premiumRate>
170     </territory>
171
172     <!-- United Arab Emirates -->
173     <territory id="AE" countryCode="971" internationalPrefix="00"
174                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
175       <references>
176         <sourceUrl>http://www.itu.int/oth/T02020000DC/en</sourceUrl>
177       </references>
178       <availableFormats>
179         <numberFormat pattern="([2-4679])(\d{3})(\d{4})">
180           <leadingDigits>[2-4679][2-8]</leadingDigits>
181           <format>$1 $2 $3</format>
182         </numberFormat>
183         <numberFormat pattern="(5[0256])(\d{3})(\d{4})">
184           <leadingDigits>5</leadingDigits>
185           <format>$1 $2 $3</format>
186         </numberFormat>
187         <numberFormat pattern="([479]00)(\d)(\d{5})" nationalPrefixFormattingRule="$FG">
188           <leadingDigits>[479]0</leadingDigits>
189           <format>$1 $2 $3</format>
190         </numberFormat>
191         <numberFormat pattern="([68]00)(\d{2,9})" nationalPrefixFormattingRule="$FG">
192           <leadingDigits>
193             60|
194             8
195           </leadingDigits>
196           <format>$1 $2</format>
197         </numberFormat>
198       </availableFormats>
199       <generalDesc>
200         <nationalNumberPattern>
201           [2-79]\d{7,8}|
202           800\d{2,9}
203         </nationalNumberPattern>
204         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
205       </generalDesc>
206       <fixedLine>
207         <nationalNumberPattern>[2-4679][2-8]\d{6}</nationalNumberPattern>
208         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
209         <exampleNumber>22345678</exampleNumber>
210       </fixedLine>
211       <mobile>
212         <nationalNumberPattern>5[0256]\d{7}</nationalNumberPattern>
213         <possibleNumberPattern>\d{9}</possibleNumberPattern>
214         <exampleNumber>501234567</exampleNumber>
215       </mobile>
216       <tollFree>
217         <nationalNumberPattern>
218           400\d{6}|
219           800\d{2,9}
220         </nationalNumberPattern>
221         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
222         <exampleNumber>800123456</exampleNumber>
223       </tollFree>
224       <premiumRate>
225         <nationalNumberPattern>900[02]\d{5}</nationalNumberPattern>
226         <possibleNumberPattern>\d{9}</possibleNumberPattern>
227         <exampleNumber>900234567</exampleNumber>
228       </premiumRate>
229       <sharedCost>
230         <nationalNumberPattern>700[05]\d{5}</nationalNumberPattern>
231         <possibleNumberPattern>\d{9}</possibleNumberPattern>
232         <exampleNumber>700012345</exampleNumber>
233       </sharedCost>
234       <uan>
235         <nationalNumberPattern>600[25]\d{5}</nationalNumberPattern>
236         <possibleNumberPattern>\d{9}</possibleNumberPattern>
237         <exampleNumber>600212345</exampleNumber>
238       </uan>
239     </territory>
240
241     <!-- Afghanistan -->
242     <territory id="AF" countryCode="93" internationalPrefix="00"
243                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
244       <references>
245         <sourceUrl>http://www.itu.int/oth/T0202000001/en</sourceUrl>
246       </references>
247       <availableFormats>
248         <!-- Formatting based primarily on ITU document. -->
249         <numberFormat pattern="([2-7]\d)(\d{3})(\d{4})">
250           <leadingDigits>
251             [2-7]
252           </leadingDigits>
253           <format>$1 $2 $3</format>
254          </numberFormat>
255       </availableFormats>
256       <generalDesc>
257         <nationalNumberPattern>[2-7]\d{8}</nationalNumberPattern>
258         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
259       </generalDesc>
260       <fixedLine>
261         <nationalNumberPattern>
262           (?:
263             [25][0-8]|
264             [34][0-4]|
265             6[0-5]
266           )[2-9]\d{6}
267         </nationalNumberPattern>
268         <exampleNumber>234567890</exampleNumber>
269       </fixedLine>
270       <mobile>
271         <nationalNumberPattern>
272           7(?:
273             [014-9]\d{7}|
274             2[89]\d{6}
275           )
276         </nationalNumberPattern>
277         <possibleNumberPattern>\d{9}</possibleNumberPattern>
278         <exampleNumber>701234567</exampleNumber>
279       </mobile>
280     </territory>
281
282     <!-- Antigua and Barbuda -->
283     <territory id="AG" countryCode="1" leadingDigits="268" nationalPrefix="1"
284                internationalPrefix="011">
285       <references>
286         <sourceUrl>http://www.itu.int/oth/T0202000008/en</sourceUrl>
287       </references>
288       <generalDesc>
289         <!-- NANPA country - uses US formatting rules -->
290         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
291         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
292       </generalDesc>
293       <fixedLine>
294         <!-- 268 468 is not in the plan, but has been added after numbers with this prefix have been
295              found in online searches. -->
296         <nationalNumberPattern>
297           268(?:
298             4(?:
299               6[0-38]|
300               84
301             )|
302             56[0-2]
303           )\d{4}
304         </nationalNumberPattern>
305         <exampleNumber>2684601234</exampleNumber>
306       </fixedLine>
307       <mobile>
308         <!-- 268 776/778/779 are not in the plan, but have been added after numbers with these
309              prefixes have been found in online searches. Same for 268 780/782/784/786. -->
310         <nationalNumberPattern>
311           268(?:
312             464|
313             7(?:
314               2[0-9]|
315               64|
316               7[0-689]|
317               8[02-68]
318             )
319           )\d{4}
320         </nationalNumberPattern>
321         <possibleNumberPattern>\d{10}</possibleNumberPattern>
322         <exampleNumber>2684641234</exampleNumber>
323       </mobile>
324       <pager>
325         <nationalNumberPattern>26840[69]\d{4}</nationalNumberPattern>
326         <possibleNumberPattern>\d{10}</possibleNumberPattern>
327         <exampleNumber>2684061234</exampleNumber>
328       </pager>
329       <tollFree>
330         <nationalNumberPattern>
331           8(?:
332             00|
333             44|
334             55|
335             66|
336             77|
337             88
338           )[2-9]\d{6}
339         </nationalNumberPattern>
340         <possibleNumberPattern>\d{10}</possibleNumberPattern>
341         <exampleNumber>8002123456</exampleNumber>
342       </tollFree>
343       <premiumRate>
344         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
345         <possibleNumberPattern>\d{10}</possibleNumberPattern>
346         <exampleNumber>9002123456</exampleNumber>
347       </premiumRate>
348       <personalNumber>
349         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
350         <nationalNumberPattern>
351           5(?:
352             00|
353             33|
354             44|
355             66|
356             77
357           )[2-9]\d{6}
358         </nationalNumberPattern>
359         <possibleNumberPattern>\d{10}</possibleNumberPattern>
360         <exampleNumber>5002345678</exampleNumber>
361       </personalNumber>
362       <voip>
363         <!-- This is included as Centrex in the plan. -->
364         <nationalNumberPattern>26848[01]\d{4}</nationalNumberPattern>
365         <possibleNumberPattern>\d{10}</possibleNumberPattern>
366         <exampleNumber>2684801234</exampleNumber>
367       </voip>
368     </territory>
369
370     <!-- Anguilla -->
371     <territory id="AI" countryCode="1" leadingDigits="264" nationalPrefix="1"
372                internationalPrefix="011">
373       <references>
374         <sourceUrl>http://www.itu.int/oth/T0202000007/en</sourceUrl>
375       </references>
376       <generalDesc>
377         <!-- NANPA country - uses US formatting rules -->
378         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
379         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
380       </generalDesc>
381       <fixedLine>
382         <nationalNumberPattern>
383           2644(?:
384             6[12]|
385             9[78]
386           )\d{4}
387         </nationalNumberPattern>
388         <exampleNumber>2644612345</exampleNumber>
389       </fixedLine>
390       <mobile>
391         <nationalNumberPattern>
392           264(?:
393             235|
394             476|
395             5(?:
396               3[6-9]|
397               8[1-4]
398             )|
399             7(?:
400               29|
401               72
402             )
403           )\d{4}
404         </nationalNumberPattern>
405         <possibleNumberPattern>\d{10}</possibleNumberPattern>
406         <exampleNumber>2642351234</exampleNumber>
407       </mobile>
408       <tollFree>
409         <nationalNumberPattern>
410           8(?:
411             00|
412             44|
413             55|
414             66|
415             77|
416             88
417           )[2-9]\d{6}
418         </nationalNumberPattern>
419         <possibleNumberPattern>\d{10}</possibleNumberPattern>
420         <exampleNumber>8002123456</exampleNumber>
421       </tollFree>
422       <premiumRate>
423         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
424         <possibleNumberPattern>\d{10}</possibleNumberPattern>
425         <exampleNumber>9002123456</exampleNumber>
426       </premiumRate>
427       <personalNumber>
428         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
429         <nationalNumberPattern>
430           5(?:
431             00|
432             33|
433             44|
434             66|
435             77
436           )[2-9]\d{6}
437         </nationalNumberPattern>
438         <possibleNumberPattern>\d{10}</possibleNumberPattern>
439         <exampleNumber>5002345678</exampleNumber>
440       </personalNumber>
441     </territory>
442
443     <!-- Albania -->
444     <territory id="AL" countryCode="355" internationalPrefix="00"
445                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
446                mobileNumberPortableRegion="true">
447       <references>
448         <sourceUrl>http://www.itu.int/oth/T0202000002/en</sourceUrl>
449       </references>
450       <availableFormats>
451         <!-- Formats mostly follow http://tirana.usembassy.gov/list_of_doctors.html -->
452         <numberFormat pattern="(4)(\d{3})(\d{4})">
453           <leadingDigits>4[0-6]</leadingDigits>
454           <format>$1 $2 $3</format>
455         </numberFormat>
456         <numberFormat pattern="(6[6-9])(\d{3})(\d{4})">
457           <leadingDigits>6</leadingDigits>
458           <format>$1 $2 $3</format>
459         </numberFormat>
460         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
461           <leadingDigits>
462             [2358][2-5]|
463             4[7-9]
464           </leadingDigits>
465           <format>$1 $2 $3</format>
466         </numberFormat>
467         <numberFormat pattern="(\d{3})(\d{3,5})">
468           <leadingDigits>
469             [235][16-9]|
470             8[016-9]|
471             [79]
472           </leadingDigits>
473           <format>$1 $2</format>
474         </numberFormat>
475       </availableFormats>
476       <generalDesc>
477         <nationalNumberPattern>
478           [2-57]\d{7}|
479           6\d{8}|
480           8\d{5,7}|
481           9\d{5}
482         </nationalNumberPattern>
483         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
484       </generalDesc>
485       <fixedLine>
486         <nationalNumberPattern>
487           (?:
488             2(?:
489               [168][1-9]|
490               [247]\d|
491               9[1-7]
492             )|
493             3(?:
494               1[1-3]|
495               [2-6]\d|
496               [79][1-8]|
497               8[1-9]
498             )|
499             4\d{2}|
500             5(?:
501               1[1-4]|
502               [2-578]\d|
503               6[1-5]|
504               9[1-7]
505             )|
506             8(?:
507               [19][1-5]|
508               [2-6]\d|
509               [78][1-7]
510             )
511           )\d{5}
512         </nationalNumberPattern>
513         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
514         <exampleNumber>22345678</exampleNumber>
515       </fixedLine>
516       <mobile>
517         <nationalNumberPattern>6[6-9]\d{7}</nationalNumberPattern>
518         <possibleNumberPattern>\d{9}</possibleNumberPattern>
519         <exampleNumber>661234567</exampleNumber>
520       </mobile>
521       <tollFree>
522         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
523         <possibleNumberPattern>\d{7}</possibleNumberPattern>
524         <exampleNumber>8001234</exampleNumber>
525       </tollFree>
526       <premiumRate>
527         <!-- It is named "Shared Revenue Services" in the plan, but as there is a separate "Shared
528              Cost Services", it is highly likely these numbers are premium rate numbers. No
529              information/example is found in the Internet. -->
530         <nationalNumberPattern>900\d{3}</nationalNumberPattern>
531         <possibleNumberPattern>\d{6}</possibleNumberPattern>
532         <exampleNumber>900123</exampleNumber>
533       </premiumRate>
534       <sharedCost>
535         <nationalNumberPattern>808\d{3}</nationalNumberPattern>
536         <possibleNumberPattern>\d{6}</possibleNumberPattern>
537         <exampleNumber>808123</exampleNumber>
538       </sharedCost>
539       <personalNumber>
540         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
541         <possibleNumberPattern>\d{8}</possibleNumberPattern>
542         <exampleNumber>70012345</exampleNumber>
543       </personalNumber>
544     </territory>
545
546     <!-- Armenia -->
547     <!-- We think the national dialling prefix is 0 - it seems this was a change in 2005 (or 2008)
548          along with the new city codes. However, their official document makes no mention of it,
549          websites disagree, and we are not sure if the change has actually been made. -->
550     <territory id="AM" countryCode="374" internationalPrefix="00"
551                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
552                mobileNumberPortableRegion="true" >
553       <references>
554         <sourceUrl>http://www.itu.int/oth/T020200000A/en</sourceUrl>
555         <sourceUrl>http://en.wikipedia.org/wiki/%2B374</sourceUrl>
556         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nagorno-Karabakh_Republic</sourceUrl>
557       </references>
558       <availableFormats>
559         <numberFormat pattern="(\d{2})(\d{6})">
560           <leadingDigits>
561             1|
562             47
563           </leadingDigits>
564           <format>$1 $2</format>
565         </numberFormat>
566         <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
567           <leadingDigits>
568             4[139]|
569             [5-7]|
570             9[1-9]
571           </leadingDigits>
572           <format>$1 $2</format>
573         </numberFormat>
574         <numberFormat pattern="(\d{3})(\d{5})">
575           <leadingDigits>[23]</leadingDigits>
576           <format>$1 $2</format>
577         </numberFormat>
578         <numberFormat pattern="(\d{3})(\d{2})(\d{3})" nationalPrefixFormattingRule="$NP $FG">
579           <leadingDigits>
580             8|
581             90
582           </leadingDigits>
583           <format>$1 $2 $3</format>
584         </numberFormat>
585       </availableFormats>
586       <generalDesc>
587         <nationalNumberPattern>[1-9]\d{7}</nationalNumberPattern>
588         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
589       </generalDesc>
590       <fixedLine>
591         <!-- Includes telephone numbers in Nagorno-Karabakh Republic, physically located inside
592              Azerbaijan, which use prefix 47. -->
593         <nationalNumberPattern>
594           (?:
595             1[01]\d|
596             2(?:
597               2[2-46]|
598               3[1-8]|
599               4[2-69]|
600               5[2-7]|
601               6[1-9]|
602               8[1-7]
603             )|
604             3[12]2|
605             47\d
606           )\d{5}
607         </nationalNumberPattern>
608         <exampleNumber>10123456</exampleNumber>
609       </fixedLine>
610       <mobile>
611         <!-- Part of the range 97 is used by Nagorno-Karabakh Republic. -->
612         <nationalNumberPattern>
613           (?:
614             4[139]|
615             55|
616             77|
617             9[1-9]
618           )\d{6}
619         </nationalNumberPattern>
620         <possibleNumberPattern>\d{8}</possibleNumberPattern>
621         <exampleNumber>77123456</exampleNumber>
622       </mobile>
623       <tollFree>
624         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
625         <possibleNumberPattern>\d{8}</possibleNumberPattern>
626         <exampleNumber>80012345</exampleNumber>
627       </tollFree>
628       <premiumRate>
629         <nationalNumberPattern>90[016]\d{5}</nationalNumberPattern>
630         <possibleNumberPattern>\d{8}</possibleNumberPattern>
631         <exampleNumber>90012345</exampleNumber>
632       </premiumRate>
633       <sharedCost>
634         <nationalNumberPattern>80[1-4]\d{5}</nationalNumberPattern>
635         <possibleNumberPattern>\d{8}</possibleNumberPattern>
636         <exampleNumber>80112345</exampleNumber>
637       </sharedCost>
638       <voip>
639         <nationalNumberPattern>60[2-6]\d{5}</nationalNumberPattern>
640         <possibleNumberPattern>\d{8}</possibleNumberPattern>
641         <exampleNumber>60271234</exampleNumber>
642       </voip>
643     </territory>
644
645     <!-- Angola -->
646     <territory id="AO" countryCode="244" internationalPrefix="00">
647       <references>
648         <sourceUrl>http://www.itu.int/oth/T0202000006/en</sourceUrl>
649       </references>
650       <availableFormats>
651         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
652           <format>$1 $2 $3</format>
653         </numberFormat>
654       </availableFormats>
655       <generalDesc>
656         <nationalNumberPattern>[29]\d{8}</nationalNumberPattern>
657         <possibleNumberPattern>\d{9}</possibleNumberPattern>
658       </generalDesc>
659       <fixedLine>
660         <nationalNumberPattern>
661           2\d(?:
662             [26-9]\d|
663             \d[26-9]
664           )\d{5}
665         </nationalNumberPattern>
666         <exampleNumber>222123456</exampleNumber>
667       </fixedLine>
668       <mobile>
669         <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel
670              apparently launched the prefix 94 on 25th April 2012, and Movicel has 99. -->
671         <nationalNumberPattern>9[1-49]\d{7}</nationalNumberPattern>
672         <exampleNumber>923123456</exampleNumber>
673       </mobile>
674     </territory>
675
676     <!-- Argentina -->
677     <!-- The national prefix for parsing here consists of a 0 (optional), followed by the area code
678          (which is captured, so that it can be retained), followed by 15, which is the mobile token,
679          which will be stripped if present. We expect the following combinations: 0AC15 and AC15
680          (where the 0 and 15 will be stripped, and it will be transformed into 9AC), 0, and 15 (in
681          the latter two cases we just strip the 0 or 15 as appropriate and leave the number as is.)
682          -->
683     <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
684        nationalPrefixForParsing="
685          0?(?:(
686             11|
687             2(?:
688               2(?:
689                 02?|
690                 [13]|
691                 2[13-79]|
692                 4[1-6]|
693                 5[2457]|
694                 6[124-8]|
695                 7[1-4]|
696                 8[13-6]|
697                 9[1267]
698               )|
699               3(?:
700                 02?|
701                 1[467]|
702                 2[03-6]|
703                 3[13-8]|
704                 [49][2-6]|
705                 5[2-8]|
706                 [67]
707               )|
708               4(?:
709                 7[3-578]|
710                 9
711               )|
712               6(?:
713                 [0136]|
714                 2[24-6]|
715                 4[6-8]?|
716                 5[15-8]
717               )|
718               80|
719               9(?:
720                 0[1-3]|
721                 [19]|
722                 2\d|
723                 3[1-6]|
724                 4[02568]?|
725                 5[2-4]|
726                 6[2-46]|
727                 72?|
728                 8[23]?
729               )
730            )|
731            3(?:
732              3(?:
733                2[79]|
734                6|
735                8[2578]
736              )|
737              4(?:
738                0[0-24-9]|
739                [12]|
740                3[5-8]?|
741                4[24-7]|
742                5[4-68]?|
743                6[02-9]|
744                7[126]|
745                8[2379]?|
746                9[1-36-8]
747              )|
748              5(?:
749                1|
750                2[1245]|
751                3[237]?|
752                4[1-46-9]|
753                6[2-4]|
754                7[1-6]|
755                8[2-5]?
756              )|
757              6[24]|
758              7(?:
759                [069]|
760                1[1568]|
761                2[15]|
762                3[145]|
763                4[13]|
764                5[14-8]|
765                7[2-57]|
766                8[126]
767              )|
768              8(?:
769                [01]|
770                2[15-7]|
771                3[2578]?|
772                4[13-6]|
773                5[4-8]?|
774                6[1-357-9]|
775                7[36-8]?|
776                8[5-8]?|
777                9[124]
778              )
779            )
780          )?15)?"
781        nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG"
782        mobileNumberPortableRegion="true">
783       <references>
784         <sourceUrl>http://www.itu.int/oth/T0202000009/en</sourceUrl>
785         <!-- On the following link, click on Indicativos Interurbanos to access detailed
786              information. -->
787         <sourceUrl>http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp</sourceUrl>
788         <!-- Download XLS spreadsheet from "Númeración Geográfica" link on following page: -->
789         <sourceUrl>http://www.cnc.gob.ar/asignaciones-a-la-fecha_p445</sourceUrl>
790         <sourceUrl>http://en.wikipedia.org/wiki/+54</sourceUrl>
791       </references>
792       <availableFormats>
793         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
794           <leadingDigits>[68]</leadingDigits>
795           <format>$1-$2-$3</format>
796         </numberFormat>
797         <!-- Format local numbers in two groups. The leading digits are 2-9 since the ITU document
798              says that the digit zero and one will not be present at the start of the subscriber
799              number (which starts with an "Exchange characteristic"). -->
800         <numberFormat pattern="(\d{2})(\d{4})" nationalPrefixFormattingRule="$FG">
801           <leadingDigits>[2-9]</leadingDigits>
802           <format>$1-$2</format>
803           <intlFormat>NA</intlFormat>
804         </numberFormat>
805         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
806           <leadingDigits>[2-9]</leadingDigits>
807           <format>$1-$2</format>
808           <intlFormat>NA</intlFormat>
809         </numberFormat>
810         <numberFormat pattern="(\d{4})(\d{4})" nationalPrefixFormattingRule="$FG">
811           <leadingDigits>[2-9]</leadingDigits>
812           <format>$1-$2</format>
813           <intlFormat>NA</intlFormat>
814         </numberFormat>
815         <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
816           <leadingDigits>911</leadingDigits>
817           <format>$2 15-$3-$4</format>
818           <intlFormat>$1 $2 $3-$4</intlFormat>
819         </numberFormat>
820         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
821           <!-- The regular expressions below were generated semi-automatically from data extracted
822                from the XLS spreadsheet downloaded from the "Númeración Geográfica" link cited
823                above. Each pattern captures all 3-3-4 prefixes for its length, but may also capture
824                some 4-2-4 cases.
825
826                In cases where a range contains both 3-3-4 and 4-2-4 prefixes, the most commonly used
827                one should be considered the default.
828                * If there are more distinct 4-2-4 prefixes, then the regular expression should
829                  INCLUDE only the explicitly mentioned 3-3-4 prefixes.
830                * If there are more distinct 3-3-4 prefixes, then the regular expression should
831                  EXCLUDE only the explicitly mentioned 4-2-4 prefixes.
832                This should help maximize the chances of new ranges automatically being assigned to
833                the right form.
834
835                In the final (most specific) regular expression, the few remaining ambiguous cases
836                are decided by comparing usage counts. Any manual edits to these expressions not
837                reflected in the XLS spreadsheet must be clearly called out below:
838
839                Added Manually as 3-3-4 format:
840                * 2981 (General Roca, Río Negro) : Numbers found online suggest 3-3-4
841
842                See also:
843                https://github.com/googlei18n/libphonenumber/issues/611
844                https://github.com/googlei18n/libphonenumber/issues/559
845                -->
846           <!-- Do NOT copy this into the section below. Removing the leading '9' will make it match
847                only 2 digits and the first <leadingDigits> section must always match 3 digits. -->
848           <leadingDigits>
849             9(?:
850               2[234689]|
851               3[3-8]
852             )
853           </leadingDigits>
854           <!-- If modified, copy this expression into the section below, minus the leading '9' -->
855           <leadingDigits>
856             9(?:
857               2(?:
858                 2[013]|
859                 3[067]|
860                 49|
861                 6[01346]|
862                 80|
863                 9[147-9]
864               )|
865               3(?:
866                 36|
867                 4[1-358]|
868                 5[138]|
869                 6[24]|
870                 7[069]|
871                 8[013578]
872               )
873             )
874           </leadingDigits>
875           <!-- Note that some patterns appear as both 3 and 4 digit area codes. In these cases
876                (to avoid going to 6 digits of discrimination) we simply pick the one with the
877                most uses. Patterns excluded from this expression will be treated as 4-2-4:
878                - XXXX (usage count as 3-digit code:usage count as 4-digit code)
879                - 2646 (7:15)   - excluded
880                - 3435 (39:63)  - excluded
881                - 3436 (16:54)  - excluded
882                - 3454 (90:48)
883                - 3455 (13:94)  - excluded
884                - 3456 (3:93)   - excluded
885                - 3584 (143:65)
886                - 3585 (21:42)  - excluded
887                - 3854 (115:73)
888                - 3855 (76:40)
889                - 3856 (19:44)  - excluded
890                - 3876 (56:99)  - excluded
891                - 3885 (120:45)
892                - 3886 (3:137)  - excluded
893                -->
894           <!-- If modified, copy this expression into the section below, minus the leading '9' -->
895           <leadingDigits>
896             9(?:
897               2(?:
898                 2(?:
899                   0[013-9]|
900                   [13]
901                 )|
902                 3(?:
903                   0[013-9]|
904                   [67]
905                 )|
906                 49|
907                 6(?:
908                   [0136]|
909                   4[0-59]
910                 )|
911                 8|
912                 9(?:
913                   [19]|
914                   44|
915                   7[013-9]|
916                   8[14]
917                 )
918               )|
919               3(?:
920                 36|
921                 4(?:
922                   [12]|
923                   [358]4
924                 )|
925                 5(?:
926                   1|
927                   3[0-24-689]|
928                   8[46]
929                 )|
930                 6|
931                 7[069]|
932                 8(?:
933                   [01]|
934                   34|
935                   [578][45]
936                 )
937               )
938             )
939           </leadingDigits>
940           <format>$2 15-$3-$4</format>
941           <intlFormat>$1 $2 $3-$4</intlFormat>
942         </numberFormat>
943         <!-- Both 4-3-3 and 4-2-4 have been seen online; we prefer the latter since it matches the
944              Argentinian ITU doc and wikipedia. -->
945         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
946           <leadingDigits>9[23]</leadingDigits>
947           <format>$2 15-$3-$4</format>
948           <intlFormat>$1 $2 $3-$4</intlFormat>
949         </numberFormat>
950         <numberFormat pattern="(11)(\d{4})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
951           <leadingDigits>1</leadingDigits>
952           <format>$1 $2-$3</format>
953         </numberFormat>
954         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
955         <numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
956           <!-- Never modify this manually, always copy from above and remove leading '9' -->
957           <leadingDigits>
958             2(?:
959               2[013]|
960               3[067]|
961               49|
962               6[01346]|
963               80|
964               9[147-9]
965             )|
966             3(?:
967               36|
968               4[1-358]|
969               5[138]|
970               6[24]|
971               7[069]|
972               8[013578]
973             )
974           </leadingDigits>
975           <!-- Never modify this manually, always copy from above and remove leading '9' -->
976           <leadingDigits>
977             2(?:
978               2(?:
979                 0[013-9]|
980                 [13]
981               )|
982               3(?:
983                 0[013-9]|
984                 [67]
985               )|
986               49|
987               6(?:
988                 [0136]|
989                 4[0-59]
990               )|
991               8|
992               9(?:
993                 [19]|
994                 44|
995                 7[013-9]|
996                 8[14]
997               )
998             )|
999             3(?:
1000               36|
1001               4(?:
1002                 [12]|
1003                 [358]4
1004               )|
1005               5(?:
1006                 1|
1007                 3[0-24-689]|
1008                 8[46]
1009               )|
1010               6|
1011               7[069]|
1012               8(?:
1013                 [01]|
1014                 34|
1015                 [578][45]
1016               )
1017             )
1018           </leadingDigits>
1019           <format>$1 $2-$3</format>
1020         </numberFormat>
1021         <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
1022           <leadingDigits>[23]</leadingDigits>
1023           <format>$1 $2-$3</format>
1024         </numberFormat>
1025         <!-- Format short numbers as a block. -->
1026         <numberFormat pattern="(\d{3})" nationalPrefixFormattingRule="$FG">
1027           <leadingDigits>
1028             1[012]|
1029             911
1030           </leadingDigits>
1031           <format>$1</format>
1032           <intlFormat>NA</intlFormat>
1033         </numberFormat>
1034       </availableFormats>
1035       <generalDesc>
1036         <!-- We restrict the second digit after 1 here so we can recognise and strip the 15 mobile
1037            carrier prefix when we see it. -->
1038         <nationalNumberPattern>
1039           11\d{8}|
1040           [2368]\d{9}|
1041           9\d{10}
1042         </nationalNumberPattern>
1043         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1044       </generalDesc>
1045       <noInternationalDialling>
1046         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1047         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1048         <exampleNumber>8101234567</exampleNumber>
1049       </noInternationalDialling>
1050       <fixedLine>
1051         <!-- Also covering fixed satellite service numbers (670). -->
1052         <nationalNumberPattern>
1053           11\d{8}|
1054           (?:
1055             2(?:
1056               2(?:
1057                 [013]\d|
1058                 2[13-79]|
1059                 4[1-6]|
1060                 5[2457]|
1061                 6[124-8]|
1062                 7[1-4]|
1063                 8[13-6]|
1064                 9[1267]
1065               )|
1066               3(?:
1067                 1[467]|
1068                 2[03-6]|
1069                 3[13-8]|
1070                 [49][2-6]|
1071                 5[2-8]|
1072                 [067]\d
1073               )|
1074               4(?:
1075                 7[3-8]|
1076                 9\d
1077               )|
1078               6(?:
1079                 [01346]\d|
1080                 2[24-6]|
1081                 5[15-8]
1082               )|
1083               80\d|
1084               9(?:
1085                 [0124789]\d|
1086                 3[1-6]|
1087                 5[234]|
1088                 6[2-46]
1089               )
1090             )|
1091             3(?:
1092               3(?:
1093                 2[79]|
1094                 6\d|
1095                 8[2578]
1096               )|
1097               4(?:
1098                 [78]\d|
1099                 0[0124-9]|
1100                 [1-35]\d|
1101                 4[24-7]|
1102                 6[02-9]|
1103                 9[123678]
1104               )|
1105               5(?:
1106                 [138]\d|
1107                 2[1245]|
1108                 4[1-9]|
1109                 6[2-4]|
1110                 7[1-6]
1111               )|
1112               6[24]\d|
1113               7(?:
1114                 [0469]\d|
1115                 1[1568]|
1116                 2[013-9]|
1117                 3[145]|
1118                 5[14-8]|
1119                 7[2-57]|
1120                 8[0-24-9]
1121               )|
1122               8(?:
1123                 [013578]\d|
1124                 2[15-7]|
1125                 4[13-6]|
1126                 6[1-357-9]|
1127                 9[124]
1128               )
1129             )|
1130             670\d
1131           )\d{6}
1132         </nationalNumberPattern>
1133         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1134         <exampleNumber>1123456789</exampleNumber>
1135       </fixedLine>
1136       <mobile>
1137         <!-- Also covers mobile satellite services (675 numbers). -->
1138         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
1139              area code is in the range 2-9. The four-digit area-code checking is done in detail if
1140              we attempt to strip the caller-pays token (15) from the number. -->
1141         <nationalNumberPattern>
1142           675\d{7}|
1143           9(?:
1144             11[2-9]\d{7}|
1145             (?:
1146               2(?:
1147                 2[013]|
1148                 3[067]|
1149                 49|
1150                 6[01346]|
1151                 80|
1152                 9[147-9]
1153               )|
1154               3(?:
1155                 36|
1156                 4[12358]|
1157                 5[138]|
1158                 6[24]|
1159                 7[069]|
1160                 8[013578]
1161               )
1162             )[2-9]\d{6}|
1163             \d{4}[2-9]\d{5}
1164           )
1165         </nationalNumberPattern>
1166         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1167         <exampleNumber>91123456789</exampleNumber>
1168       </mobile>
1169       <tollFree>
1170         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
1171         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1172         <exampleNumber>8001234567</exampleNumber>
1173       </tollFree>
1174       <premiumRate>
1175         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
1176         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1177         <exampleNumber>6001234567</exampleNumber>
1178       </premiumRate>
1179       <uan>
1180         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1181         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1182         <exampleNumber>8101234567</exampleNumber>
1183       </uan>
1184     </territory>
1185
1186     <!-- American Samoa -->
1187     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
1188                internationalPrefix="011">
1189       <references>
1190         <sourceUrl>http://www.itu.int/oth/T0202000004/en</sourceUrl>
1191       </references>
1192       <generalDesc>
1193         <!-- NANPA country - uses US formatting rules -->
1194         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
1195         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1196       </generalDesc>
1197       <fixedLine>
1198         <nationalNumberPattern>
1199           6846(?:
1200             22|
1201             33|
1202             44|
1203             55|
1204             77|
1205             88|
1206             9[19]
1207           )\d{4}
1208         </nationalNumberPattern>
1209         <exampleNumber>6846221234</exampleNumber>
1210       </fixedLine>
1211       <mobile>
1212         <!-- Added 25[246] and 272, operated by Blue Sky. Added 731, 770, operated by ASTCA. -->
1213         <nationalNumberPattern>
1214           684(?:
1215             2(?:
1216               5[2468]|
1217               72
1218             )|
1219             7(?:
1220               3[13]|
1221               70
1222             )
1223           )\d{4}
1224         </nationalNumberPattern>
1225         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1226         <exampleNumber>6847331234</exampleNumber>
1227       </mobile>
1228       <tollFree>
1229         <nationalNumberPattern>
1230           8(?:
1231             00|
1232             44|
1233             55|
1234             66|
1235             77|
1236             88
1237           )[2-9]\d{6}
1238         </nationalNumberPattern>
1239         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1240         <exampleNumber>8002123456</exampleNumber>
1241       </tollFree>
1242       <premiumRate>
1243         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1244         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1245         <exampleNumber>9002123456</exampleNumber>
1246       </premiumRate>
1247       <personalNumber>
1248         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1249         <nationalNumberPattern>
1250           5(?:
1251             00|
1252             33|
1253             44|
1254             66|
1255             77
1256           )[2-9]\d{6}
1257         </nationalNumberPattern>
1258         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1259         <exampleNumber>5002345678</exampleNumber>
1260       </personalNumber>
1261     </territory>
1262
1263     <!-- Austria -->
1264     <territory id="AT" countryCode="43" internationalPrefix="00"
1265                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1266                mobileNumberPortableRegion="true">
1267       <references>
1268         <sourceUrl>http://www.rtr.at/en/tk/E129</sourceUrl>
1269       </references>
1270       <availableFormats>
1271         <numberFormat pattern="(1)(\d{3,12})">
1272           <leadingDigits>1</leadingDigits>
1273           <format>$1 $2</format>
1274         </numberFormat>
1275         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
1276              found on Austrian web pages. -->
1277         <numberFormat pattern="(5\d)(\d{3,5})">
1278           <leadingDigits>5[079]</leadingDigits>
1279           <format>$1 $2</format>
1280         </numberFormat>
1281         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
1282           <leadingDigits>5[079]</leadingDigits>
1283           <format>$1 $2 $3</format>
1284         </numberFormat>
1285         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
1286           <leadingDigits>5[079]</leadingDigits>
1287           <format>$1 $2 $3</format>
1288         </numberFormat>
1289         <numberFormat pattern="(\d{3})(\d{3,10})">
1290           <leadingDigits>
1291             316|
1292             46|
1293             51|
1294             732|
1295             6(?:
1296               44|
1297               5[0-3579]|
1298               [6-9]
1299             )|
1300             7(?:
1301               1|
1302               [28]0
1303             )|
1304             [89]
1305           </leadingDigits>
1306           <format>$1 $2</format>
1307         </numberFormat>
1308         <numberFormat pattern="(\d{4})(\d{3,9})">
1309           <leadingDigits>
1310             2|
1311             3(?:
1312               1[1-578]|
1313               [3-8]
1314             )|
1315             4[2378]|
1316             5[2-6]|
1317             6(?:
1318               [12]|
1319               4[1-35-9]|
1320               5[468]
1321             )|
1322             7(?:
1323               2[1-8]|
1324               35|
1325               4[1-8]|
1326               [5-79]
1327             )
1328           </leadingDigits>
1329             <format>$1 $2</format>
1330           </numberFormat>
1331       </availableFormats>
1332       <generalDesc>
1333         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
1334         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
1335       </generalDesc>
1336       <fixedLine>
1337         <!-- Note that the full area code is not validated - just the first 3 digits. This also
1338              means that even though for most Austrian numbers the minimum length is 7, we allow 6
1339              since we don't differentiate below between 3 and 4 digit area codes for reasons of
1340              efficiency. -->
1341         <nationalNumberPattern>
1342           1\d{3,12}|
1343           (?:
1344             2(?:
1345               1[467]|
1346               2[13-8]|
1347               5[2357]|
1348               6[1-46-8]|
1349               7[1-8]|
1350               8[124-7]|
1351               9[1458]
1352             )|
1353             3(?:
1354               1[1-8]|
1355               3[23568]|
1356               4[5-7]|
1357               5[1378]|
1358               6[1-38]|
1359               8[3-68]
1360             )|
1361             4(?:
1362               2[1-8]|
1363               35|
1364               63|
1365               7[1368]|
1366               8[2457]
1367             )|
1368             5(?:
1369               12|
1370               2[1-8]|
1371               3[357]|
1372               4[147]|
1373               5[12578]|
1374               6[37]
1375             )|
1376             6(?:
1377               13|
1378               2[1-47]|
1379               4[1-35-8]|
1380               5[468]|
1381               62
1382             )|
1383             7(?:
1384               2[1-8]|
1385               3[25]|
1386               4[13478]|
1387               5[68]|
1388               6[16-8]|
1389               7[1-6]|
1390               9[45]
1391             )
1392           )\d{3,10}
1393         </nationalNumberPattern>
1394         <exampleNumber>1234567890</exampleNumber>
1395       </fixedLine>
1396       <mobile>
1397         <nationalNumberPattern>
1398           6(?:
1399             44|
1400             5[0-3579]|
1401             6[013-9]|
1402             [7-9]\d
1403           )\d{4,10}
1404         </nationalNumberPattern>
1405         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
1406         <exampleNumber>644123456</exampleNumber>
1407       </mobile>
1408       <tollFree>
1409         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
1410         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1411         <exampleNumber>800123456</exampleNumber>
1412       </tollFree>
1413       <premiumRate>
1414         <nationalNumberPattern>
1415           (?:
1416             711|
1417             9(?:
1418               0[01]|
1419               3[019]
1420             )
1421           )\d{6,10}
1422         </nationalNumberPattern>
1423         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1424         <exampleNumber>900123456</exampleNumber>
1425       </premiumRate>
1426       <sharedCost>
1427         <nationalNumberPattern>
1428           8(?:
1429             10|
1430             2[018]
1431           )\d{6,10}
1432         </nationalNumberPattern>
1433         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1434         <exampleNumber>810123456</exampleNumber>
1435       </sharedCost>
1436       <voip>
1437         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
1438         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1439         <exampleNumber>780123456</exampleNumber>
1440       </voip>
1441       <uan>
1442         <nationalNumberPattern>
1443           5(?:
1444             (?:
1445               0[1-9]|
1446               17
1447             )\d{2,10}|
1448             [79]\d{3,11}
1449           )|
1450           720\d{6,10}
1451         </nationalNumberPattern>
1452         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
1453         <exampleNumber>50123</exampleNumber>
1454       </uan>
1455     </territory>
1456
1457     <!-- Australia -->
1458     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
1459     <territory id="AU" countryCode="61" mainCountryForCode="true"
1460                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
1461                preferredInternationalPrefix="0011" nationalPrefix="0"
1462                mobileNumberPortableRegion="true">
1463       <references>
1464         <sourceUrl>http://www.itu.int/oth/T020200000D/en</sourceUrl>
1465         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
1466       </references>
1467       <availableFormats>
1468         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
1469           pattern="([2378])(\d{4})(\d{4})">
1470           <leadingDigits>[2378]</leadingDigits>
1471           <format>$1 $2 $3</format>
1472         </numberFormat>
1473         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1474           pattern="(\d{3})(\d{3})(\d{3})">
1475           <leadingDigits>
1476             [45]|
1477             14
1478           </leadingDigits>
1479           <format>$1 $2 $3</format>
1480         </numberFormat>
1481         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1482           pattern="(16)(\d{3})(\d{2,4})">
1483           <leadingDigits>16</leadingDigits>
1484           <format>$1 $2 $3</format>
1485         </numberFormat>
1486         <numberFormat nationalPrefixFormattingRule="$FG"
1487           pattern="(1[389]\d{2})(\d{3})(\d{3})">
1488           <leadingDigits>
1489             1(?:
1490               [38]0|
1491               90
1492             )
1493           </leadingDigits>
1494           <leadingDigits>
1495             1(?:
1496               [38]00|
1497               90
1498             )
1499           </leadingDigits>
1500           <format>$1 $2 $3</format>
1501         </numberFormat>
1502         <numberFormat nationalPrefixFormattingRule="$FG"
1503           pattern="(180)(2\d{3})">
1504           <leadingDigits>180</leadingDigits>
1505           <leadingDigits>1802</leadingDigits>
1506           <format>$1 $2</format>
1507         </numberFormat>
1508         <numberFormat nationalPrefixFormattingRule="$FG"
1509           pattern="(19\d)(\d{3})">
1510           <leadingDigits>19[13]</leadingDigits>
1511           <format>$1 $2</format>
1512         </numberFormat>
1513         <numberFormat nationalPrefixFormattingRule="$FG"
1514           pattern="(19\d{2})(\d{4})">
1515           <leadingDigits>19[67]</leadingDigits>
1516           <format>$1 $2</format>
1517         </numberFormat>
1518         <numberFormat nationalPrefixFormattingRule="$FG"
1519           pattern="(13)(\d{2})(\d{2})">
1520           <leadingDigits>13[1-9]</leadingDigits>
1521           <format>$1 $2 $3</format>
1522         </numberFormat>
1523       </availableFormats>
1524       <generalDesc>
1525         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
1526         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1527       </generalDesc>
1528       <noInternationalDialling>
1529         <nationalNumberPattern>
1530           1(?:
1531             3(?:
1532               \d{4}|
1533               00\d{6}
1534             )|
1535             80(?:
1536               0\d{6}|
1537               2\d{3}
1538             )
1539           )
1540         </nationalNumberPattern>
1541         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1542         <exampleNumber>1300123456</exampleNumber>
1543       </noInternationalDialling>
1544       <fixedLine>
1545         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
1546         <nationalNumberPattern>
1547           [237]\d{8}|
1548           8(?:
1549             [68]\d{3}|
1550             7[0-69]\d{2}|
1551             9(?:
1552               [02-9]\d{2}|
1553               1(?:
1554                 [0-57-9]\d|
1555                 6[0135-9]
1556               )
1557             )
1558           )\d{4}
1559         </nationalNumberPattern>
1560         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1561         <exampleNumber>212345678</exampleNumber>
1562       </fixedLine>
1563       <mobile>
1564         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
1565              other ranges 14[1-3] are not currently used. Note CC and CX should be updated as well
1566              if this pattern changes. -->
1567         <nationalNumberPattern>
1568           14(?:
1569             5\d|
1570             71
1571           )\d{5}|
1572           4(?:
1573             [0-2]\d|
1574             3[0-57-9]|
1575             4[47-9]|
1576             5[0-25-9]|
1577             6[6-9]|
1578             7[03-9]|
1579             8[17-9]|
1580             9[017-9]
1581           )\d{6}
1582         </nationalNumberPattern>
1583         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1584         <exampleNumber>412345678</exampleNumber>
1585       </mobile>
1586       <pager>
1587         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
1588         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
1589         <exampleNumber>1612345</exampleNumber>
1590       </pager>
1591       <tollFree>
1592         <nationalNumberPattern>
1593           180(?:
1594             0\d{3}|
1595             2
1596           )\d{3}
1597         </nationalNumberPattern>
1598         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1599         <exampleNumber>1800123456</exampleNumber>
1600       </tollFree>
1601       <premiumRate>
1602         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
1603         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1604         <exampleNumber>1900123456</exampleNumber>
1605       </premiumRate>
1606       <sharedCost>
1607       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
1608            although they charge a small local call connect fee (around 25c). These start with 13
1609            or 1300. -->
1610         <nationalNumberPattern>
1611           13(?:
1612             00\d{2}
1613           )?\d{4}
1614         </nationalNumberPattern>
1615         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1616         <exampleNumber>1300123456</exampleNumber>
1617       </sharedCost>
1618       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
1619            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
1620            from 0500000000 to 0590000000) -->
1621       <personalNumber>
1622         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
1623         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1624         <exampleNumber>500123456</exampleNumber>
1625       </personalNumber>
1626       <voip>
1627         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
1628         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1629         <exampleNumber>550123456</exampleNumber>
1630       </voip>
1631     </territory>
1632
1633     <!-- Aruba -->
1634     <territory id="AW" countryCode="297" internationalPrefix="00">
1635       <references>
1636         <sourceUrl>http://www.itu.int/oth/T020200000B/en</sourceUrl>
1637       </references>
1638       <availableFormats>
1639         <numberFormat pattern="(\d{3})(\d{4})">
1640           <format>$1 $2</format>
1641         </numberFormat>
1642       </availableFormats>
1643       <generalDesc>
1644         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
1645         <possibleNumberPattern>\d{7}</possibleNumberPattern>
1646       </generalDesc>
1647       <fixedLine>
1648         <nationalNumberPattern>
1649           5(?:
1650             2\d|
1651             8[1-9]
1652           )\d{4}
1653         </nationalNumberPattern>
1654         <exampleNumber>5212345</exampleNumber>
1655       </fixedLine>
1656       <mobile>
1657         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
1658              numbers found online. -->
1659         <nationalNumberPattern>
1660           (?:
1661             5(?:
1662               6\d|
1663               9[2-478]
1664             )|
1665             6(?:
1666               [039]0|
1667               22|
1668               4[01]|
1669               6[0-2]
1670             )|
1671             7[34]\d|
1672             9(?:
1673               6[45]|
1674               9[4-8]
1675             )
1676           )\d{4}
1677         </nationalNumberPattern>
1678         <exampleNumber>5601234</exampleNumber>
1679       </mobile>
1680       <tollFree>
1681         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
1682         <exampleNumber>8001234</exampleNumber>
1683       </tollFree>
1684       <premiumRate>
1685         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
1686         <exampleNumber>9001234</exampleNumber>
1687       </premiumRate>
1688       <voip>
1689         <nationalNumberPattern>
1690           28\d{5}|
1691           501\d{4}
1692         </nationalNumberPattern>
1693         <exampleNumber>5011234</exampleNumber>
1694       </voip>
1695     </territory>
1696
1697     <!-- Ã…land Islands. -->
1698     <!-- Metadata shared with Finland. -->
1699     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
1700                nationalPrefixFormattingRule="$NP$FG">
1701       <references>
1702         <sourceUrl>https://www.viestintavirasto.fi/internetpuhelin/puhelinverkonnumerointi.html</sourceUrl>
1703       </references>
1704       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
1705       <generalDesc>
1706         <nationalNumberPattern>
1707           [135]\d{5,9}|
1708           [27]\d{4,9}|
1709           4\d{5,10}|
1710           6\d{7,8}|
1711           8\d{6,9}
1712         </nationalNumberPattern>
1713         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
1714       </generalDesc>
1715       <noInternationalDialling>
1716         <!-- According to the national numbering plan, service numbers are in general not accessible
1717              from abroad, although 600/700/800 numbers may be. -->
1718         <nationalNumberPattern>
1719           [13]00\d{3,7}|
1720           2(?:
1721             0(?:
1722               0\d{3,7}|
1723               2[023]\d{1,6}|
1724               9[89]\d{1,6}
1725             )
1726           )|
1727           60(?:
1728             [12]\d{5,6}|
1729             6\d{7}
1730           )|
1731           7(?:
1732             1\d{7}|
1733             3\d{8}|
1734             5[03-9]\d{2,7}
1735           )
1736         </nationalNumberPattern>
1737         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1738         <exampleNumber>100123</exampleNumber>
1739       </noInternationalDialling>
1740       <fixedLine>
1741         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
1742         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
1743         <exampleNumber>1812345678</exampleNumber>
1744       </fixedLine>
1745       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
1746       <mobile>
1747         <nationalNumberPattern>
1748           4\d{5,10}|
1749           50\d{4,8}
1750         </nationalNumberPattern>
1751         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1752         <exampleNumber>412345678</exampleNumber>
1753       </mobile>
1754       <tollFree>
1755         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
1756         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1757         <exampleNumber>8001234567</exampleNumber>
1758       </tollFree>
1759       <premiumRate>
1760         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
1761         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1762         <exampleNumber>600123456</exampleNumber>
1763       </premiumRate>
1764       <uan>
1765         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
1766              assigned to institutions such as universities, the national post, etc, where they are
1767              not otherwise classified as toll-free or premium-rate numbers. -->
1768         <nationalNumberPattern>
1769           [13]0\d{4,8}|
1770           2(?:
1771             0(?:
1772               [016-8]\d{3,7}|
1773               [2-59]\d{2,7}
1774             )|
1775             9\d{4,8}
1776           )|
1777           60(?:
1778             [12]\d{5,6}|
1779             6\d{7}
1780           )|
1781           7(?:
1782             1\d{7}|
1783             3\d{8}|
1784             5[03-9]\d{2,7}
1785           )
1786         </nationalNumberPattern>
1787         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1788         <exampleNumber>10112345</exampleNumber>
1789       </uan>
1790     </territory>
1791
1792     <!-- Azerbaijan -->
1793     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
1794                nationalPrefixFormattingRule="($NP$FG)" mobileNumberPortableRegion="true">
1795       <references>
1796         <sourceUrl>http://www.itu.int/oth/T020200000F/en</sourceUrl>
1797       </references>
1798       <availableFormats>
1799         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
1800           <leadingDigits>
1801             (?:
1802               1[28]|
1803               2(?:
1804                 [45]2|
1805                 [0-36]
1806               )|
1807               365
1808             )
1809           </leadingDigits>
1810           <format>$1 $2 $3 $4</format>
1811         </numberFormat>
1812         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
1813           <leadingDigits>[4-8]</leadingDigits>
1814           <format>$1 $2 $3 $4</format>
1815         </numberFormat>
1816         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
1817           nationalPrefixFormattingRule="$NP$FG">
1818           <leadingDigits>9</leadingDigits>
1819           <format>$1 $2 $3 $4</format>
1820         </numberFormat>
1821       </availableFormats>
1822       <generalDesc>
1823         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
1824         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
1825       </generalDesc>
1826       <fixedLine>
1827         <nationalNumberPattern>
1828           (?:
1829             1[28]\d|
1830             2(?:
1831               02|
1832               1[24]|
1833               2[2-4]|
1834               33|
1835               [45]2|
1836               6[23]
1837             )|
1838             365
1839           )\d{6}
1840         </nationalNumberPattern>
1841         <exampleNumber>123123456</exampleNumber>
1842       </fixedLine>
1843       <mobile>
1844         <nationalNumberPattern>
1845           (?:
1846             4[04]|
1847             5[015]|
1848             60|
1849             7[07]
1850           )\d{7}
1851         </nationalNumberPattern>
1852         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1853         <exampleNumber>401234567</exampleNumber>
1854       </mobile>
1855       <tollFree>
1856         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
1857              suggest they are in fact national toll-free numbers. -->
1858         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
1859         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1860         <exampleNumber>881234567</exampleNumber>
1861       </tollFree>
1862       <premiumRate>
1863         <!-- These are marked as Interactive Calls in the ITU document. -->
1864         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
1865         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1866         <exampleNumber>900200123</exampleNumber>
1867       </premiumRate>
1868     </territory>
1869
1870     <!-- Bosnia and Herzegovina -->
1871     <territory id="BA" countryCode="387" internationalPrefix="00"
1872                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1873                mobileNumberPortableRegion="true">
1874       <references>
1875         <!-- accessible from http://www.cra.ba/en/telecom/numbering/ -->
1876         <sourceUrl>http://www.rak.ba/eng/index.php?uid=1272016657</sourceUrl>
1877         <sourceUrl>http://en.wikipedia.org/wiki/+387</sourceUrl>
1878       </references>
1879       <availableFormats>
1880         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1881           <leadingDigits>[3-5]</leadingDigits>
1882           <format>$1 $2-$3</format>
1883         </numberFormat>
1884         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1885           <leadingDigits>
1886             6[1-356]|
1887             [7-9]
1888           </leadingDigits>
1889           <format>$1 $2 $3</format>
1890         </numberFormat>
1891         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
1892           <leadingDigits>6[047]</leadingDigits>
1893           <format>$1 $2 $3 $4</format>
1894         </numberFormat>
1895       </availableFormats>
1896       <generalDesc>
1897         <nationalNumberPattern>[3-9]\d{7,8}</nationalNumberPattern>
1898         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
1899       </generalDesc>
1900       <fixedLine>
1901         <nationalNumberPattern>
1902           (?:
1903             [35]\d|
1904             49
1905           )\d{6}
1906         </nationalNumberPattern>
1907         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
1908         <exampleNumber>30123456</exampleNumber>
1909       </fixedLine>
1910       <mobile>
1911         <nationalNumberPattern>
1912           6(?:
1913             03|
1914             44|
1915             71|
1916             [1-356]
1917           )\d{6}
1918         </nationalNumberPattern>
1919         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1920         <exampleNumber>61123456</exampleNumber>
1921       </mobile>
1922       <tollFree>
1923         <nationalNumberPattern>8[08]\d{6}</nationalNumberPattern>
1924         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1925         <exampleNumber>80123456</exampleNumber>
1926       </tollFree>
1927       <premiumRate>
1928         <nationalNumberPattern>9[0246]\d{6}</nationalNumberPattern>
1929         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1930         <exampleNumber>90123456</exampleNumber>
1931       </premiumRate>
1932       <sharedCost>
1933         <!-- Using this category to model national tariff numbers - these are under Shared Cost in
1934              the plan. -->
1935         <nationalNumberPattern>8[12]\d{6}</nationalNumberPattern>
1936         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1937         <exampleNumber>82123456</exampleNumber>
1938       </sharedCost>
1939       <uan>
1940         <!-- Using this to classify nomad numbers. -->
1941         <nationalNumberPattern>70[23]\d{5}</nationalNumberPattern>
1942         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1943         <exampleNumber>70223456</exampleNumber>
1944       </uan>
1945     </territory>
1946
1947     <!-- Barbados -->
1948     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
1949                internationalPrefix="011">
1950       <references>
1951         <sourceUrl>http://www.itu.int/oth/T0202000013/en</sourceUrl>
1952       </references>
1953       <generalDesc>
1954         <!-- NANPA country - uses US formatting rules -->
1955         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
1956         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1957       </generalDesc>
1958       <fixedLine>
1959         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
1960         <exampleNumber>2462345678</exampleNumber>
1961       </fixedLine>
1962       <mobile>
1963         <nationalNumberPattern>
1964           246(?:
1965             (?:
1966               2[346]|
1967               45|
1968               82
1969             )\d|
1970             25[0-4]
1971           )\d{4}
1972         </nationalNumberPattern>
1973         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1974         <exampleNumber>2462501234</exampleNumber>
1975       </mobile>
1976       <tollFree>
1977         <nationalNumberPattern>
1978           8(?:
1979             00|
1980             44|
1981             55|
1982             66|
1983             77|
1984             88
1985           )[2-9]\d{6}
1986         </nationalNumberPattern>
1987         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1988         <exampleNumber>8002123456</exampleNumber>
1989       </tollFree>
1990       <premiumRate>
1991         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1992         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1993         <exampleNumber>9002123456</exampleNumber>
1994       </premiumRate>
1995       <personalNumber>
1996         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1997         <nationalNumberPattern>
1998           5(?:
1999             00|
2000             33|
2001             44|
2002             66|
2003             77
2004           )[2-9]\d{6}
2005         </nationalNumberPattern>
2006         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2007         <exampleNumber>5002345678</exampleNumber>
2008       </personalNumber>
2009     </territory>
2010
2011     <!-- Bangladesh -->
2012     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
2013                preferredInternationalPrefix="00"
2014                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
2015       <references>
2016         <sourceUrl>http://www.itu.int/oth/T0202000012/en</sourceUrl>
2017         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh</sourceUrl>
2018         <sourceUrl>http://www.btrc.gov.bd/sites/default/files/national_numbering_plan_2005_0.pdf</sourceUrl>
2019       </references>
2020       <availableFormats>
2021         <numberFormat pattern="(2)(\d{7})">
2022           <leadingDigits>2</leadingDigits>
2023           <format>$1-$2</format>
2024         </numberFormat>
2025         <numberFormat pattern="(\d{2})(\d{4,6})">
2026           <leadingDigits>[3-79]1</leadingDigits>
2027           <format>$1-$2</format>
2028         </numberFormat>
2029         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
2030         <numberFormat pattern="(\d{4})(\d{3,6})">
2031           <leadingDigits>
2032             1|
2033             3(?:
2034               0|
2035               [2-58]2
2036             )|
2037             4(?:
2038               0|
2039               [25]2|
2040               3[23]|
2041               [4689][25]
2042             )|
2043             5(?:
2044               [02-578]2|
2045               6[25]
2046             )|
2047             6(?:
2048               [0347-9]2|
2049               [26][25]
2050             )|
2051             7[02-9]2|
2052             8(?:
2053               [023][23]|
2054               [4-7]2
2055             )|
2056             9(?:
2057               [02][23]|
2058               [458]2|
2059               6[016]
2060             )
2061           </leadingDigits>
2062           <format>$1-$2</format>
2063         </numberFormat>
2064         <numberFormat pattern="(\d{3})(\d{3,7})">
2065           <leadingDigits>
2066             [3-79][2-9]|
2067             8
2068           </leadingDigits>
2069           <format>$1-$2</format>
2070         </numberFormat>
2071       </availableFormats>
2072       <generalDesc>
2073       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
2074            plan, so the country code can be accurately stripped off. -->
2075         <nationalNumberPattern>
2076           [2-79]\d{5,9}|
2077           1\d{9}|
2078           8[0-7]\d{4,8}
2079         </nationalNumberPattern>
2080         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
2081       </generalDesc>
2082       <fixedLine>
2083         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
2084              been realised, judging by online numbers and wikipedia. These patterns are grouped
2085              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731,
2086              02 910, etc.) are included despite not being mentioned on Wikipedia / ITU due to
2087              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
2088              do not - both are allowed for now. For some area codes, the subscriber number length
2089              described in our source documentation doesn't match numbers online (e.g. 05222) so we
2090              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
2091              also added 04452 and 04923 from numbers found online. -->
2092         <nationalNumberPattern>
2093           2(?:
2094             7(?:
2095               1[0-267]|
2096               2[0-289]|
2097               3[0-29]|
2098               [46][01]|
2099               5[1-3]|
2100               7[017]|
2101               91
2102             )|
2103             8(?:
2104               0[125]|
2105               [139][1-6]|
2106               2[0157-9]|
2107               6[1-35]|
2108               7[1-5]|
2109               8[1-8]
2110             )|
2111             9(?:
2112               0[0-2]|
2113               1[0-4]|
2114               2[568]|
2115               3[3-6]|
2116               5[5-7]|
2117               6[0167]|
2118               7[15]|
2119               8[0146-8]
2120             )
2121           )\d{4}|
2122           3(?:
2123             12?[5-7]\d{2}|
2124             0(?:
2125               2(?:
2126                 [025-79]\d|
2127                 [348]\d{1,2}
2128               )|
2129               3(?:
2130                 [2-4]\d|
2131                 [56]\d?
2132               )
2133             )|
2134             2(?:
2135               1\d{2}|
2136               2(?:
2137                 [12]\d|
2138                 [35]\d{1,2}|
2139                 4\d?
2140               )
2141             )|
2142             3(?:
2143               1\d{2}|
2144               2(?:
2145                 [2356]\d|
2146                 4\d{1,2}
2147               )
2148             )|
2149             4(?:
2150               1\d{2}|
2151               2(?:
2152                 2\d{1,2}|
2153                 [47]|
2154                 5\d{2}
2155               )
2156             )|
2157             5(?:
2158               1\d{2}|
2159               29
2160             )|
2161             [67]1\d{2}|
2162             8(?:
2163               1\d{2}|
2164               2(?:
2165                 2\d{2}|
2166                 3|
2167                 4\d
2168               )
2169             )
2170           )\d{3}|
2171           4(?:
2172             0(?:
2173               2(?:
2174                 [09]\d|
2175                 7
2176               )|
2177               33\d{2}
2178             )|
2179             1\d{3}|
2180             2(?:
2181               1\d{2}|
2182               2(?:
2183                 [25]\d?|
2184                 [348]\d|
2185                 [67]\d{1,2}
2186               )
2187             )|
2188             3(?:
2189               1\d{2}(?:\d{2})?|
2190               2(?:
2191                 [045]\d|
2192                 [236-9]\d{1,2}
2193               )|
2194               32\d{2}
2195             )|
2196             4(?:
2197               [18]\d{2}|
2198               2(?:
2199                 [2-46]\d{2}|
2200                 3
2201               )|
2202               5[25]\d{2}
2203             )|
2204             5(?:
2205               1\d{2}|
2206               2(?:
2207                 3\d|
2208                 5
2209               )
2210             )|
2211             6(?:
2212               [18]\d{2}|
2213               2(?:
2214                 3(?:\d{2})?|
2215                 [46]\d{1,2}|
2216                 5\d{2}|
2217                 7\d
2218               )|
2219               5(?:
2220                 3\d?|
2221                 4\d|
2222                 [57]\d{1,2}|
2223                 6\d{2}|
2224                 8
2225               )
2226             )|
2227             71\d{2}|
2228             8(?:
2229               [18]\d{2}|
2230               23\d{2}|
2231               54\d{2}
2232             )|
2233             9(?:
2234               [18]\d{2}|
2235               2[2-5]\d{2}|
2236               53\d{1,2}
2237             )
2238           )\d{3}|
2239           5(?:
2240             02[03489]\d{2}|
2241             1\d{2}|
2242             2(?:
2243               1\d{2}|
2244               2(?:
2245                 2(?:\d{2})?|
2246                 [457]\d{2}
2247               )
2248             )|
2249             3(?:
2250               1\d{2}|
2251               2(?:
2252                 [37](?:\d{2})?|
2253                 [569]\d{2}
2254               )
2255             )|
2256             4(?:
2257               1\d{2}|
2258               2[46]\d{2}
2259             )|
2260             5(?:
2261               1\d{2}|
2262               26\d{1,2}
2263             )|
2264             6(?:
2265               [18]\d{2}|
2266               2|
2267               53\d{2}
2268             )|
2269             7(?:
2270               1|
2271               24
2272             )\d{2}|
2273             8(?:
2274               1|
2275               26
2276             )\d{2}|
2277             91\d{2}
2278           )\d{3}|
2279           6(?:
2280             0(?:
2281               1\d{2}|
2282               2(?:
2283                 3\d{2}|
2284                 4\d{1,2}
2285               )
2286             )|
2287             2(?:
2288               2[2-5]\d{2}|
2289               5(?:
2290                 [3-5]\d{2}|
2291                 7
2292               )|
2293               8\d{2}
2294             )|
2295             3(?:
2296               1|
2297               2[3478]
2298             )\d{2}|
2299             4(?:
2300               1|
2301               2[34]
2302             )\d{2}|
2303             5(?:
2304               1|
2305               2[47]
2306             )\d{2}|
2307             6(?:
2308               [18]\d{2}|
2309               6(?:
2310                 2(?:
2311                   2\d|
2312                   [34]\d{2}
2313                 )|
2314                 5(?:
2315                   [24]\d{2}|
2316                   3\d|
2317                   5\d{1,2}
2318                 )
2319               )
2320             )|
2321             72[2-5]\d{2}|
2322             8(?:
2323               1\d{2}|
2324               2[2-5]\d{2}
2325             )|
2326             9(?:
2327               1\d{2}|
2328               2[2-6]\d{2}
2329             )
2330           )\d{3}|
2331           7(?:
2332             (?:
2333               02|
2334               [3-589]1|
2335               6[12]|
2336               72[24]
2337             )\d{2}|
2338             21\d{3}|
2339             32
2340           )\d{3}|
2341           8(?:
2342             (?:
2343               4[12]|
2344               [5-7]2|
2345               1\d?
2346             )|
2347             (?:
2348               0|
2349               3[12]|
2350               [5-7]1|
2351               217
2352             )\d
2353           )\d{4}|
2354           9(?:
2355             [35]1|
2356             (?:
2357               [024]2|
2358               81
2359             )\d|
2360             (?:
2361               1|
2362               [24]1
2363             )\d{2}
2364           )\d{3}
2365         </nationalNumberPattern>
2366         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
2367         <exampleNumber>27111234</exampleNumber>
2368       </fixedLine>
2369       <mobile>
2370         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
2371              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
2372              numbers should be moving to 1[13-9] anyway. -->
2373         <nationalNumberPattern>
2374           (?:
2375             1[13-9]\d|
2376             (?:
2377               3[78]|
2378               44
2379             )[02-9]|
2380             6(?:
2381               44|
2382               6[02-9]
2383             )
2384           )\d{7}
2385         </nationalNumberPattern>
2386         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2387         <exampleNumber>1812345678</exampleNumber>
2388       </mobile>
2389       <tollFree>
2390         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
2391         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
2392         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2393         <exampleNumber>8001234567</exampleNumber>
2394       </tollFree>
2395       <voip>
2396         <nationalNumberPattern>
2397           96(?:
2398             0[49]|
2399             1[0-4]|
2400             6[69]
2401           )\d{6}
2402         </nationalNumberPattern>
2403         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2404         <exampleNumber>9604123456</exampleNumber>
2405       </voip>
2406     </territory>
2407
2408     <!-- Belgium -->
2409     <territory id="BE" countryCode="32" internationalPrefix="00"
2410                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2411                mobileNumberPortableRegion="true">
2412       <references>
2413         <sourceUrl>http://www.bipt.be/en/operators/telecommunication/Numbering/Database</sourceUrl>
2414         <sourceUrl>http://www.bipt.be/public/files/en/474/20140829153659_Belgian_numbering_plan</sourceUrl>
2415         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Belgium</sourceUrl>
2416       </references>
2417       <availableFormats>
2418         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
2419           <leadingDigits>4[6-9]</leadingDigits>
2420           <format>$1 $2 $3 $4</format>
2421         </numberFormat>
2422         <numberFormat pattern="(\d)(\d{3})(\d{2})(\d{2})">
2423           <leadingDigits>
2424             [23]|
2425             4[23]|
2426             9[2-4]
2427           </leadingDigits>
2428           <format>$1 $2 $3 $4</format>
2429         </numberFormat>
2430         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2431           <leadingDigits>
2432             [156]|
2433             7[018]|
2434             8(?:
2435               0[1-9]|
2436               [1-79]
2437             )
2438           </leadingDigits>
2439           <format>$1 $2 $3 $4</format>
2440         </numberFormat>
2441         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2442           <leadingDigits>
2443             (?:
2444               80|
2445               9
2446             )0
2447           </leadingDigits>
2448           <format>$1 $2 $3</format>
2449         </numberFormat>
2450       </availableFormats>
2451       <generalDesc>
2452         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
2453         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2454       </generalDesc>
2455       <fixedLine>
2456         <nationalNumberPattern>
2457           (?:
2458             1[0-69]|
2459             [23][2-8]|
2460             4[23]|
2461             5\d|
2462             6[013-57-9]|
2463             71|
2464             8[1-79]|
2465             9[2-4]
2466           )\d{6}|
2467           80[2-8]\d{5}
2468         </nationalNumberPattern>
2469         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2470         <exampleNumber>12345678</exampleNumber>
2471       </fixedLine>
2472       <mobile>
2473         <nationalNumberPattern>
2474           4(?:
2475             6[0135-8]|
2476             [79]\d|
2477             8[3-9]
2478           )\d{6}
2479         </nationalNumberPattern>
2480         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2481         <exampleNumber>470123456</exampleNumber>
2482       </mobile>
2483       <tollFree>
2484         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2485         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2486         <exampleNumber>80012345</exampleNumber>
2487       </tollFree>
2488       <premiumRate>
2489         <nationalNumberPattern>
2490           (?:
2491             70[2-467]|
2492             90[0-79]
2493           )\d{5}
2494         </nationalNumberPattern>
2495         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2496         <exampleNumber>90123456</exampleNumber>
2497       </premiumRate>
2498       <uan>
2499         <!-- Using this for National Rate Services, since
2500              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
2501              says it will be priced the same as any other national calls. -->
2502         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
2503         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2504         <exampleNumber>78123456</exampleNumber>
2505       </uan>
2506     </territory>
2507
2508     <!-- Burkina Faso -->
2509     <territory id="BF" countryCode="226" internationalPrefix="00">
2510       <references>
2511         <sourceUrl>http://www.itu.int/oth/T0202000021/en</sourceUrl>
2512         <sourceUrl>http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf</sourceUrl>
2513       </references>
2514       <availableFormats>
2515         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
2516              chosen to use the standard from numbers found on the internet instead. -->
2517         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2518           <format>$1 $2 $3 $4</format>
2519         </numberFormat>
2520       </availableFormats>
2521       <generalDesc>
2522         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
2523         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2524       </generalDesc>
2525       <fixedLine>
2526         <nationalNumberPattern>
2527           (?:
2528             20(?:
2529               49|
2530               5[23]|
2531               9[016-9]
2532             )|
2533             40(?:
2534               4[569]|
2535               5[4-6]|
2536               7[0179]
2537             )|
2538             50(?:
2539               [34]\d|
2540               50
2541             )
2542           )\d{4}
2543         </nationalNumberPattern>
2544         <exampleNumber>20491234</exampleNumber>
2545       </fixedLine>
2546       <mobile>
2547         <nationalNumberPattern>
2548           6(?:
2549             [0-689]\d|
2550             7[0-5]
2551           )\d{5}|
2552           7\d{7}
2553         </nationalNumberPattern>
2554         <exampleNumber>70123456</exampleNumber>
2555       </mobile>
2556     </territory>
2557
2558     <!-- Bulgaria -->
2559     <territory id="BG" countryCode="359" internationalPrefix="00"
2560                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2561                mobileNumberPortableRegion="true">
2562       <references>
2563         <sourceUrl>http://www.itu.int/oth/T0202000020/en</sourceUrl>
2564       </references>
2565       <availableFormats>
2566         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
2567              used to separate the area code from the rest of the number, based on sites like
2568              http://www.goldenpages.bg. -->
2569         <numberFormat pattern="(2)(\d{5})">
2570           <leadingDigits>29</leadingDigits>
2571           <format>$1 $2</format>
2572         </numberFormat>
2573         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
2574           <leadingDigits>2</leadingDigits>
2575           <format>$1 $2 $3</format>
2576         </numberFormat>
2577         <numberFormat pattern="(\d{3})(\d{4})">
2578           <leadingDigits>
2579             43[124-7]|
2580             70[1-9]
2581           </leadingDigits>
2582           <format>$1 $2</format>
2583         </numberFormat>
2584         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
2585           <leadingDigits>
2586             43[124-7]|
2587             70[1-9]
2588           </leadingDigits>
2589           <format>$1 $2 $3</format>
2590         </numberFormat>
2591         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2592           <leadingDigits>[78]00</leadingDigits>
2593           <format>$1 $2 $3</format>
2594         </numberFormat>
2595         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
2596           <leadingDigits>
2597             [356]|
2598             4[124-7]|
2599             7[1-9]|
2600             8[1-6]|
2601             9[1-7]
2602           </leadingDigits>
2603           <format>$1 $2 $3</format>
2604         </numberFormat>
2605         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2606           <leadingDigits>
2607             48|
2608             8[7-9]|
2609             9[08]
2610           </leadingDigits>
2611           <format>$1 $2 $3</format>
2612         </numberFormat>
2613       </availableFormats>
2614       <generalDesc>
2615         <nationalNumberPattern>
2616           [23567]\d{5,7}|
2617           [489]\d{6,8}
2618         </nationalNumberPattern>
2619         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
2620       </generalDesc>
2621       <fixedLine>
2622         <!-- 29xxxx numbers have been added because they can be found online, and are typically
2623              used by taxi companies. -->
2624         <nationalNumberPattern>
2625           2(?:
2626             [0-8]\d{5,6}|
2627             9\d{4,6}
2628           )|
2629           (?:
2630             [36]\d|
2631             5[1-9]|
2632             8[1-6]|
2633             9[1-7]
2634           )\d{5,6}|
2635           (?:
2636             4(?:
2637               [124-7]\d|
2638               3[1-6]
2639             )|
2640             7(?:
2641               0[1-9]|
2642               [1-9]\d
2643             )
2644           )\d{4,5}
2645         </nationalNumberPattern>
2646         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
2647         <exampleNumber>2123456</exampleNumber>
2648       </fixedLine>
2649       <mobile>
2650         <nationalNumberPattern>
2651           (?:
2652             8[7-9]|
2653             98
2654           )\d{7}|
2655           4(?:
2656             3[0789]|
2657             8\d
2658           )\d{5}
2659         </nationalNumberPattern>
2660         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2661         <exampleNumber>48123456</exampleNumber>
2662       </mobile>
2663       <tollFree>
2664         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2665         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2666         <exampleNumber>80012345</exampleNumber>
2667       </tollFree>
2668       <premiumRate>
2669         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
2670         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2671         <exampleNumber>90123456</exampleNumber>
2672       </premiumRate>
2673       <personalNumber>
2674         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
2675         <exampleNumber>70012345</exampleNumber>
2676       </personalNumber>
2677     </territory>
2678
2679     <!-- Bahrain -->
2680     <territory id="BH" countryCode="973" internationalPrefix="00" mobileNumberPortableRegion="true">
2681       <references>
2682         <sourceUrl>http://www.itu.int/oth/T0202000011/en</sourceUrl>
2683         <sourceUrl>http://www.tra.org.bh/en/marketNumbering.aspx</sourceUrl>
2684         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain</sourceUrl>
2685       </references>
2686       <availableFormats>
2687         <numberFormat pattern="(\d{4})(\d{4})">
2688           <format>$1 $2</format>
2689         </numberFormat>
2690       </availableFormats>
2691       <generalDesc>
2692         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
2693         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2694       </generalDesc>
2695       <!-- Some ranges were previously described as "universal", but in subsequent versions of the
2696            ITU doc they have been specified to be mobile or fixed-line. We follow the ITU
2697            designations, even though some publications still refer to them as universal. -->
2698       <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
2699            "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts the ITU doc
2700            which lists "6966, 6969, 6996, 6999". We follow ITU here. -->
2701       <fixedLine>
2702         <nationalNumberPattern>
2703           (?:
2704             1(?:
2705               3[1356]|
2706               6[0156]|
2707               7\d
2708             )\d|
2709             6(?:
2710               1[16]\d|
2711               500|
2712               6(?:
2713                 0\d|
2714                 3[12]|
2715                 44|
2716                 7[7-9]
2717               )|
2718               9[69][69]
2719             )|
2720             7(?:
2721               1(?:
2722                 11|
2723                 78
2724               )|
2725               7\d{2}
2726             )
2727           )\d{4}
2728         </nationalNumberPattern>
2729         <exampleNumber>17001234</exampleNumber>
2730       </fixedLine>
2731       <!-- 31 is assigned to Royal Court, as per documents on Bahrain's own telecom site, even
2732            though it is omitted from the ITU document. -->
2733       <mobile>
2734         <nationalNumberPattern>
2735           (?:
2736             3(?:
2737               [1-4679]\d|
2738               5[013569]|
2739               8[0-47-9]
2740             )\d|
2741             6(?:
2742               3(?:
2743                 00|
2744                 33|
2745                 6[16]
2746               )|
2747               6(?:
2748                 [69]\d|
2749                 3[03-9]|
2750                 7[0-6]
2751               )
2752             )
2753           )\d{4}
2754         </nationalNumberPattern>
2755         <exampleNumber>36001234</exampleNumber>
2756       </mobile>
2757       <tollFree>
2758         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
2759         <exampleNumber>80123456</exampleNumber>
2760       </tollFree>
2761       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
2762            now. -->
2763       <premiumRate>
2764         <nationalNumberPattern>
2765           (?:
2766             87|
2767             9[014578]
2768           )\d{6}
2769         </nationalNumberPattern>
2770         <exampleNumber>90123456</exampleNumber>
2771       </premiumRate>
2772       <sharedCost>
2773         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
2774         <exampleNumber>84123456</exampleNumber>
2775       </sharedCost>
2776     </territory>
2777
2778     <!-- Burundi -->
2779     <territory id="BI" countryCode="257" internationalPrefix="00">
2780       <references>
2781         <sourceUrl>http://www.itu.int/oth/T0202000022/en</sourceUrl>
2782       </references>
2783       <availableFormats>
2784         <numberFormat
2785           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2786           <format>$1 $2 $3 $4</format>
2787         </numberFormat>
2788       </availableFormats>
2789       <generalDesc>
2790         <nationalNumberPattern>[267]\d{7}</nationalNumberPattern>
2791         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2792       </generalDesc>
2793       <fixedLine>
2794         <nationalNumberPattern>
2795           22(?:
2796             2[0-7]|
2797             [3-5]0
2798           )\d{4}
2799         </nationalNumberPattern>
2800         <exampleNumber>22201234</exampleNumber>
2801       </fixedLine>
2802       <mobile>
2803         <!-- Extra online mobile number prefixes found: 74.
2804              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
2805              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
2806              satellite phones. -->
2807         <nationalNumberPattern>
2808           (?:
2809             [26]9|
2810             7[14-9]
2811           )\d{6}
2812         </nationalNumberPattern>
2813         <exampleNumber>79561234</exampleNumber>
2814       </mobile>
2815     </territory>
2816
2817     <!-- Benin -->
2818     <territory id="BJ" countryCode="229" internationalPrefix="00">
2819       <references>
2820         <sourceUrl>http://www.itu.int/oth/T0202000017/en</sourceUrl>
2821       </references>
2822       <availableFormats>
2823         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2824           <format>$1 $2 $3 $4</format>
2825         </numberFormat>
2826         <!-- Numbers beginning with 7 should be formatted as a block. -->
2827       </availableFormats>
2828       <generalDesc>
2829         <nationalNumberPattern>
2830           [2689]\d{7}|
2831           7\d{3}
2832         </nationalNumberPattern>
2833         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
2834       </generalDesc>
2835       <fixedLine>
2836         <!-- These come from the national numbering plan, but have been widened to include other
2837              prefixes found in the yellow pages - specifically 21 0. -->
2838         <nationalNumberPattern>
2839           2(?:
2840             02|
2841             1[037]|
2842             2[45]|
2843             3[68]
2844           )\d{5}
2845         </nationalNumberPattern>
2846         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2847         <exampleNumber>20211234</exampleNumber>
2848       </fixedLine>
2849       <mobile>
2850         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
2851              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
2852              6[167] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
2853              reported as having prefixes 68 and 9[89]. -->
2854         <nationalNumberPattern>
2855           (?:
2856             6[146-8]|
2857             9[03-9]
2858           )\d{6}
2859         </nationalNumberPattern>
2860         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2861         <exampleNumber>90011234</exampleNumber>
2862       </mobile>
2863       <tollFree>
2864         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
2865         <possibleNumberPattern>\d{4}</possibleNumberPattern>
2866         <exampleNumber>7312</exampleNumber>
2867       </tollFree>
2868       <voip>
2869         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
2870         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2871         <exampleNumber>85751234</exampleNumber>
2872       </voip>
2873       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
2874            as a local-call.) We model these as UAN since we have no more detailed information. -->
2875       <uan>
2876         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
2877         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2878         <exampleNumber>81123456</exampleNumber>
2879       </uan>
2880     </territory>
2881
2882     <!-- Saint Barthélemy, French Antilles -->
2883     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
2884          national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but
2885          it appears from searches in online white and yellow pages that a subset of the prefixes
2886          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
2887          of these region codes will be returned, although numbers will be valid for both regions.
2888          -->
2889     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
2890       <references>
2891         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
2892       </references>
2893       <!-- Formatting rules borrowed from Guadeloupe. -->
2894       <generalDesc>
2895         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
2896         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2897       </generalDesc>
2898       <fixedLine>
2899         <nationalNumberPattern>
2900           590(?:
2901             2[7-9]|
2902             5[12]|
2903             87
2904           )\d{4}
2905         </nationalNumberPattern>
2906         <exampleNumber>590271234</exampleNumber>
2907       </fixedLine>
2908       <mobile>
2909         <!-- Any ranges assigned from
2910              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
2911              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
2912              them. -->
2913         <nationalNumberPattern>
2914           690(?:
2915             0[0-7]|
2916             [1-9]\d
2917           )\d{4}
2918         </nationalNumberPattern>
2919         <exampleNumber>690301234</exampleNumber>
2920       </mobile>
2921     </territory>
2922
2923     <!-- Bermuda -->
2924     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
2925                internationalPrefix="011">
2926       <references>
2927         <sourceUrl>http://www.itu.int/oth/T0202000018/en</sourceUrl>
2928       </references>
2929       <generalDesc>
2930         <!-- NANPA country - uses US formatting rules -->
2931         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
2932         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
2933       </generalDesc>
2934       <fixedLine>
2935         <nationalNumberPattern>
2936           441(?:
2937             2(?:
2938               02|
2939               23|
2940               61|
2941               [3479]\d
2942             )|
2943             [46]\d{2}|
2944             5(?:
2945               4\d|
2946               60|
2947               89
2948             )|
2949             824
2950           )\d{4}
2951         </nationalNumberPattern>
2952         <exampleNumber>4412345678</exampleNumber>
2953       </fixedLine>
2954       <mobile>
2955         <nationalNumberPattern>
2956           441(?:
2957             [37]\d|
2958             5[0-39]
2959           )\d{5}
2960         </nationalNumberPattern>
2961         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2962         <exampleNumber>4413701234</exampleNumber>
2963       </mobile>
2964       <tollFree>
2965         <nationalNumberPattern>
2966           8(?:
2967             00|
2968             44|
2969             55|
2970             66|
2971             77|
2972             88
2973           )[2-9]\d{6}
2974         </nationalNumberPattern>
2975         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2976         <exampleNumber>8002123456</exampleNumber>
2977       </tollFree>
2978       <premiumRate>
2979         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
2980         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2981         <exampleNumber>9002123456</exampleNumber>
2982       </premiumRate>
2983       <personalNumber>
2984         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
2985         <nationalNumberPattern>
2986           5(?:
2987             00|
2988             33|
2989             44|
2990             66|
2991             77
2992           )[2-9]\d{6}
2993         </nationalNumberPattern>
2994         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2995         <exampleNumber>5002345678</exampleNumber>
2996       </personalNumber>
2997     </territory>
2998
2999     <!-- Brunei Darussalam -->
3000     <territory id="BN" countryCode="673" internationalPrefix="00">
3001       <references>
3002         <sourceUrl>http://www.itu.int/oth/T020200001F/en</sourceUrl>
3003       </references>
3004       <!-- Format is from http://aiti.gov.bn/contact.html -->
3005       <availableFormats>
3006         <numberFormat pattern="([2-578]\d{2})(\d{4})">
3007           <format>$1 $2</format>
3008         </numberFormat>
3009       </availableFormats>
3010       <generalDesc>
3011         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
3012         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3013       </generalDesc>
3014       <fixedLine>
3015         <nationalNumberPattern>
3016           2(?:
3017             [013-9]\d|
3018             2[0-7]
3019           )\d{4}|
3020           [3-5]\d{6}
3021         </nationalNumberPattern>
3022         <exampleNumber>2345678</exampleNumber>
3023       </fixedLine>
3024       <mobile>
3025         <nationalNumberPattern>
3026           22[89]\d{4}|
3027           [78]\d{6}
3028         </nationalNumberPattern>
3029         <exampleNumber>7123456</exampleNumber>
3030       </mobile>
3031     </territory>
3032
3033     <!-- Bolivia -->
3034     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
3035                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
3036       <references>
3037         <sourceUrl>http://www.itu.int/oth/T020200001A/en</sourceUrl>
3038         <sourceUrl>http://www.bolivia.com/Servicios/Plandenumeracion.pdf</sourceUrl>
3039       </references>
3040       <availableFormats>
3041         <numberFormat pattern="([234])(\d{7})">
3042           <leadingDigits>[234]</leadingDigits>
3043           <format>$1 $2</format>
3044         </numberFormat>
3045         <numberFormat pattern="([67]\d{7})">
3046           <leadingDigits>[67]</leadingDigits>
3047           <format>$1</format>
3048         </numberFormat>
3049       </availableFormats>
3050       <generalDesc>
3051         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
3052         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3053       </generalDesc>
3054       <fixedLine>
3055         <nationalNumberPattern>
3056           (?:
3057             2(?:
3058               2\d{2}|
3059               5(?:11|[258]\d|9[67])|
3060               6(?:12|2\d|9[34])|
3061               8(?:2[34]|39|62)
3062             )|
3063             3(?:
3064               3\d{2}|
3065               4(?:6\d|8[24])|
3066               8(?:25|42|5[257]|86|9[25])|
3067               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
3068             )|
3069             4(?:
3070               4\d{2}|
3071               6(?:11|[24689]\d|72)
3072             )
3073           )\d{4}
3074         </nationalNumberPattern>
3075         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3076         <exampleNumber>22123456</exampleNumber>
3077       </fixedLine>
3078       <mobile>
3079         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
3080         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3081         <exampleNumber>71234567</exampleNumber>
3082       </mobile>
3083     </territory>
3084
3085     <!-- Bonaire, Sint Eustatius and Saba -->
3086     <territory id="BQ" countryCode="599" internationalPrefix="00">
3087       <references>
3088         <sourceUrl>http://www.itu.int/oth/T02020000F8/en</sourceUrl>
3089       </references>
3090       <!-- Shares formatting patterns with CW. -->
3091       <generalDesc>
3092         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
3093         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3094       </generalDesc>
3095       <fixedLine>
3096         <nationalNumberPattern>
3097           (?:
3098             318[023]|
3099             416[023]|
3100             7(?:
3101               1[578]|
3102               50
3103             )\d
3104           )\d{3}
3105         </nationalNumberPattern>
3106         <exampleNumber>7151234</exampleNumber>
3107       </fixedLine>
3108       <mobile>
3109         <nationalNumberPattern>
3110           (?:
3111             318[14-68]|
3112             416[15-9]|
3113             7(?:
3114               0[01]|
3115               7[07]|
3116               [89]\d
3117             )\d
3118           )\d{3}
3119         </nationalNumberPattern>
3120         <exampleNumber>3181234</exampleNumber>
3121       </mobile>
3122     </territory>
3123
3124     <!-- Brazil -->
3125     <territory id="BR" countryCode="55"
3126                internationalPrefix="00(?:1[45]|2[135]|31|4[13])"
3127                nationalPrefix="0"
3128                nationalPrefixForParsing="0(?:(1[245]|2[135]|31|4[13])(\d{10,11}))?"
3129                nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true">
3130       <references>
3131         <sourceUrl>http://en.wikipedia.org/wiki/%2B55</sourceUrl>
3132         <sourceUrl>http://www.itu.int/oth/T020200001D/en</sourceUrl>
3133       </references>
3134       <!-- The national prefix for parsing here also contains a capturing group for the main number,
3135            since the carrier codes here may also be area codes, so we want to check the length of
3136            the number after capturing. We also need a nationalTransformRule to repopulate with the
3137            number without the carrier code. -->
3138       <availableFormats>
3139         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
3140              rules here handle this case. The leading digits pattern must be specific enough such
3141              that it doesn't match X00 numbers (e.g. toll-free). -->
3142         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
3143           <leadingDigits>
3144             [2-9](?:
3145               [1-9]|
3146               0[1-9]
3147             )
3148           </leadingDigits>
3149           <format>$1-$2</format>
3150           <intlFormat>NA</intlFormat>
3151         </numberFormat>
3152         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
3153           <leadingDigits>
3154             9(?:
3155               [1-9]|
3156               0[1-9]
3157             )
3158           </leadingDigits>
3159           <format>$1-$2</format>
3160           <intlFormat>NA</intlFormat>
3161         </numberFormat>
3162         <!-- Format short numbers as a block. -->
3163         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
3164           <leadingDigits>1[125689]</leadingDigits>
3165           <format>$1</format>
3166           <intlFormat>NA</intlFormat>
3167         </numberFormat>
3168         <numberFormat nationalPrefixFormattingRule="($FG)"
3169             pattern="(\d{2})(\d{5})(\d{4})"
3170             carrierCodeFormattingRule="$NP $CC ($FG)">
3171           <leadingDigits>
3172             (?:
3173               1[1-9]|
3174               2[12478]|
3175               9[1-9]
3176             )9
3177           </leadingDigits>
3178           <format>$1 $2-$3</format>
3179         </numberFormat>
3180         <numberFormat nationalPrefixFormattingRule="($FG)"
3181             pattern="(\d{2})(\d{4})(\d{4})"
3182             carrierCodeFormattingRule="$NP $CC ($FG)">
3183           <leadingDigits>[1-9][1-9]</leadingDigits>
3184           <format>$1 $2-$3</format>
3185         </numberFormat>
3186         <numberFormat pattern="([34]00\d)(\d{4})">
3187           <leadingDigits>[34]00</leadingDigits>
3188           <format>$1-$2</format>
3189         </numberFormat>
3190         <numberFormat nationalPrefixFormattingRule="$NP$FG"
3191             pattern="([3589]00)(\d{2,3})(\d{4})">
3192           <leadingDigits>[3589]00</leadingDigits>
3193           <format>$1 $2 $3</format>
3194         </numberFormat>
3195       </availableFormats>
3196       <generalDesc>
3197         <nationalNumberPattern>
3198           [1-46-9]\d{7,10}|
3199           5\d{8,9}
3200         </nationalNumberPattern>
3201         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
3202       </generalDesc>
3203       <noInternationalDialling>
3204         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3205         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3206         <exampleNumber>40041234</exampleNumber>
3207       </noInternationalDialling>
3208       <fixedLine>
3209         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
3210              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
3211              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
3212              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
3213              -->
3214         <nationalNumberPattern>
3215           1[1-9][2-5]\d{7}|
3216           (?:
3217             [4689][1-9]|
3218             2[12478]|
3219             3[1-578]|
3220             5[13-5]|
3221             7[13-579]
3222           )[2-5]\d{7}
3223         </nationalNumberPattern>
3224         <exampleNumber>1123456789</exampleNumber>
3225       </fixedLine>
3226       <mobile>
3227         <!-- Since 2012, Brazil has been migrating from 10 to 11 digits by inserting a 9 before the
3228              last 8 digits. The following pattern is divided into 3 sections: ranges for which the
3229              migration has been completed, ranges which are in transition, and ranges which are
3230              still in the old format. (Ranges which were supposed to have been deprecated in
3231              Oct. 2013 are still working as of Jan. 2014.) Note that mobile radio services are
3232              still 10 digits, with the subscriber number (the last 8 digits) beginning with 7. -->
3233         <nationalNumberPattern>
3234           1[1-9](?:
3235             7|
3236             9\d
3237           )\d{7}|
3238           (?:
3239             2[12478]|
3240             9[1-9]
3241           )9?[6-9]\d{7}|
3242           (?:
3243             3[1-578]|
3244             [468][1-9]|
3245             5[13-5]|
3246             7[13-579]
3247           )[6-9]\d{7}
3248         </nationalNumberPattern>
3249         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3250         <exampleNumber>11961234567</exampleNumber>
3251       </mobile>
3252       <tollFree>
3253         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
3254         <exampleNumber>800123456</exampleNumber>
3255       </tollFree>
3256       <premiumRate>
3257         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
3258         <exampleNumber>300123456</exampleNumber>
3259       </premiumRate>
3260       <sharedCost>
3261         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3262         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3263         <exampleNumber>40041234</exampleNumber>
3264       </sharedCost>
3265     </territory>
3266
3267     <!-- Bahamas -->
3268     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
3269                internationalPrefix="011">
3270       <references>
3271         <sourceUrl>http://www.itu.int/oth/T0202000010/en</sourceUrl>
3272       </references>
3273       <generalDesc>
3274         <!-- NANPA country - uses US formatting rules -->
3275         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
3276         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3277       </generalDesc>
3278       <fixedLine>
3279         <nationalNumberPattern>
3280           242(?:
3281             3(?:
3282               02|
3283               [236][1-9]|
3284               4[0-24-9]|
3285               5[0-68]|
3286               7[3467]|
3287               8[0-4]|
3288               9[2-467]
3289             )|
3290             461|
3291             502|
3292             6(?:
3293               0[12]|
3294               12|
3295               7[67]|
3296               8[78]|
3297               9[89]
3298             )|
3299             702
3300           )\d{4}
3301         </nationalNumberPattern>
3302         <exampleNumber>2423456789</exampleNumber>
3303       </fixedLine>
3304       <mobile>
3305         <nationalNumberPattern>
3306           242(?:
3307             3(?:
3308               5[79]|
3309               [79]5
3310             )|
3311             4(?:
3312               [2-4][1-9]|
3313               5[1-8]|
3314               6[2-8]|
3315               7\d|
3316               81
3317             )|
3318             5(?:
3319               2[45]|
3320               3[35]|
3321               44|
3322               5[1-9]|
3323               65|
3324               77
3325             )|
3326             6[34]6|
3327             727
3328           )\d{4}
3329         </nationalNumberPattern>
3330         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3331         <exampleNumber>2423591234</exampleNumber>
3332       </mobile>
3333       <tollFree>
3334         <!-- 242 300 is a Domestic Toll Free service. -->
3335         <nationalNumberPattern>
3336           242300\d{4}|
3337           8(?:
3338             00|
3339             44|
3340             55|
3341             66|
3342             77|
3343             88
3344           )[2-9]\d{6}
3345         </nationalNumberPattern>
3346         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3347         <exampleNumber>8002123456</exampleNumber>
3348       </tollFree>
3349       <premiumRate>
3350         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3351         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3352         <exampleNumber>9002123456</exampleNumber>
3353       </premiumRate>
3354       <personalNumber>
3355         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3356         <nationalNumberPattern>
3357           5(?:
3358             00|
3359             33|
3360             44|
3361             66|
3362             77
3363           )[2-9]\d{6}
3364         </nationalNumberPattern>
3365         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3366         <exampleNumber>5002345678</exampleNumber>
3367       </personalNumber>
3368     </territory>
3369
3370     <!-- Bhutan -->
3371     <territory id="BT" countryCode="975" internationalPrefix="00">
3372       <references>
3373         <sourceUrl>http://www.itu.int/oth/T0202000019/en</sourceUrl>
3374       </references>
3375       <availableFormats>
3376         <!-- Format is from
3377              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
3378         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
3379           <leadingDigits>
3380             1|
3381             77
3382           </leadingDigits>
3383           <format>$1 $2 $3 $4</format>
3384         </numberFormat>
3385         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
3386           <leadingDigits>
3387             [2-68]|
3388             7[246]
3389           </leadingDigits>
3390           <format>$1 $2 $3</format>
3391         </numberFormat>
3392       </availableFormats>
3393       <generalDesc>
3394         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
3395         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
3396       </generalDesc>
3397       <fixedLine>
3398         <nationalNumberPattern>
3399           (?:
3400             2[3-6]|
3401             [34][5-7]|
3402             5[236]|
3403             6[2-46]|
3404             7[246]|
3405             8[2-4]
3406           )\d{5}
3407         </nationalNumberPattern>
3408         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
3409         <exampleNumber>2345678</exampleNumber>
3410       </fixedLine>
3411       <mobile>
3412         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
3413              is in use. -->
3414         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
3415         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3416         <exampleNumber>17123456</exampleNumber>
3417       </mobile>
3418       <!-- No information on other types of phone numbers for Bhutan has been found. -->
3419     </territory>
3420
3421     <!-- Botswana -->
3422     <territory id="BW" countryCode="267" internationalPrefix="00">
3423       <references>
3424         <sourceUrl>http://www.itu.int/oth/T020200001C/en</sourceUrl>
3425       </references>
3426       <availableFormats>
3427         <numberFormat pattern="(\d{3})(\d{4})">
3428           <leadingDigits>[2-6]</leadingDigits>
3429           <format>$1 $2</format>
3430         </numberFormat>
3431         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
3432           <leadingDigits>7</leadingDigits>
3433           <format>$1 $2 $3</format>
3434         </numberFormat>
3435         <numberFormat pattern="(90)(\d{5})">
3436           <leadingDigits>9</leadingDigits>
3437           <format>$1 $2</format>
3438         </numberFormat>
3439       </availableFormats>
3440       <generalDesc>
3441         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
3442         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3443       </generalDesc>
3444       <fixedLine>
3445         <nationalNumberPattern>
3446           (?:
3447             2(?:
3448               4[0-48]|
3449               6[0-24]|
3450               9[0578]
3451             )|
3452             3(?:
3453               1[0235-9]|
3454               55|
3455               6\d|
3456               7[01]|
3457               9[0-57]
3458             )|
3459             4(?:
3460               6[03]|
3461               7[1267]|
3462               9[0-5]
3463             )|
3464             5(?:
3465               3[0389]|
3466               4[0489]|
3467               7[1-47]|
3468               88|
3469               9[0-49]
3470             )|
3471             6(?:
3472               2[1-35]|
3473               5[149]|
3474               8[067]
3475             )
3476           )\d{4}
3477         </nationalNumberPattern>
3478         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3479         <exampleNumber>2401234</exampleNumber>
3480       </fixedLine>
3481       <mobile>
3482         <nationalNumberPattern>
3483           7(?:
3484             [1-356]\d|
3485             4[0-7]|
3486             7[014-7]
3487           )\d{5}
3488         </nationalNumberPattern>
3489         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3490         <exampleNumber>71123456</exampleNumber>
3491       </mobile>
3492       <!-- No reliable information about toll-free numbers can be found; many are written on the
3493            internet like 0800 123 456, but this is not supported by any documentation and no
3494            numbers can be found that actually work. -->
3495       <premiumRate>
3496         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
3497         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3498         <exampleNumber>9012345</exampleNumber>
3499       </premiumRate>
3500       <voip>
3501         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
3502         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3503         <exampleNumber>79101234</exampleNumber>
3504       </voip>
3505     </territory>
3506
3507     <!-- Belarus -->
3508     <!-- Information on national prefix provided by a Belarussian person. -->
3509     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
3510                internationalPrefix="810" nationalPrefixForParsing="8?0?"
3511                nationalPrefix="8" mobileNumberPortableRegion="true">
3512       <references>
3513         <sourceUrl>http://www.eng.beltelecom.by/en/subscribers/phone-codes</sourceUrl>
3514       </references>
3515       <availableFormats>
3516         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3517           pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
3518           <leadingDigits>
3519             17[0-3589]|
3520             2[4-9]|
3521             [34]
3522           </leadingDigits>
3523           <leadingDigits>
3524             17(?:
3525               [02358]|
3526               1[0-2]|
3527               9[0189]
3528             )|
3529             2[4-9]|
3530             [34]
3531           </leadingDigits>
3532           <format>$1 $2-$3-$4</format>
3533         </numberFormat>
3534         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3535           pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
3536           <leadingDigits>
3537             1(?:
3538               5[24]|
3539               6[235]|
3540               7[467]
3541             )|
3542             2(?:
3543               1[246]|
3544               2[25]|
3545               3[26]
3546             )
3547           </leadingDigits>
3548           <leadingDigits>
3549             1(?:
3550               5[24]|
3551               6(?:
3552                 2|
3553                 3[04-9]|
3554                 5[0346-9]
3555               )|
3556               7(?:
3557                 [46]|
3558                 7[37-9]
3559               )
3560             )|
3561             2(?:
3562               1[246]|
3563               2[25]|
3564               3[26]
3565             )
3566           </leadingDigits>
3567           <format>$1 $2-$3-$4</format>
3568         </numberFormat>
3569         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3570           pattern="(\d{4})(\d{2})(\d{3})">
3571           <leadingDigits>
3572             1(?:
3573               5[169]|
3574               6[3-5]|
3575               7[179]
3576             )|
3577             2(?:
3578               1[35]|
3579               2[34]|
3580               3[3-5]
3581             )
3582           </leadingDigits>
3583           <leadingDigits>
3584             1(?:
3585               5[169]|
3586               6(?:
3587                 3[1-3]|
3588                 4|
3589                 5[125]
3590               )|
3591               7(?:
3592                 1[3-9]|
3593                 7[0-24-6]|
3594                 9[2-7]
3595               )
3596             )|
3597             2(?:
3598               1[35]|
3599               2[34]|
3600               3[3-5]
3601             )
3602           </leadingDigits>
3603           <format>$1 $2-$3</format>
3604         </numberFormat>
3605         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3606           pattern="([89]\d{2})(\d{3})(\d{4})">
3607           <leadingDigits>
3608             8[01]|
3609             9
3610           </leadingDigits>
3611           <format>$1 $2 $3</format>
3612         </numberFormat>
3613         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3614           pattern="(8\d{2})(\d{4})(\d{4})">
3615           <leadingDigits>82</leadingDigits>
3616           <format>$1 $2 $3</format>
3617         </numberFormat>
3618       </availableFormats>
3619       <generalDesc>
3620         <nationalNumberPattern>
3621           [1-4]\d{8}|
3622           [89]\d{9,10}
3623         </nationalNumberPattern>
3624         <!-- Numbers are often written without the city code. -->
3625         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
3626       </generalDesc>
3627       <!-- Toll-free and premium rate numbers are not available from abroad. -->
3628       <noInternationalDialling>
3629         <nationalNumberPattern>
3630           8(?:
3631             [013]|
3632             [12]0
3633           )\d{8}|
3634           902\d{7}
3635         </nationalNumberPattern>
3636         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3637         <exampleNumber>82012345678</exampleNumber>
3638       </noInternationalDialling>
3639       <fixedLine>
3640         <nationalNumberPattern>
3641           (?:
3642             1(?:
3643               5(?:
3644                 1[1-5]|
3645                 [24]\d|
3646                 6[2-4]|
3647                 9[1-7]
3648               )|
3649               6(?:
3650                 [235]\d|
3651                 4[1-7]
3652               )|
3653               7\d{2}
3654             )|
3655             2(?:
3656               1(?:
3657                 [246]\d|
3658                 3[0-35-9]|
3659                 5[1-9]
3660               )|
3661               2(?:
3662                 [235]\d|
3663                 4[0-8]
3664               )|
3665               3(?:
3666                 [26]\d|
3667                 3[02-79]|
3668                 4[024-7]|
3669                 5[03-7]
3670               )
3671             )
3672           )\d{5}
3673         </nationalNumberPattern>
3674         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3675         <!-- Using test number for Grodno from the plan. -->
3676         <exampleNumber>152450911</exampleNumber>
3677       </fixedLine>
3678       <mobile>
3679         <nationalNumberPattern>
3680           (?:
3681             2(?:
3682               5[5679]|
3683               9[1-9]
3684             )|
3685             33\d|
3686             44\d
3687           )\d{6}
3688         </nationalNumberPattern>
3689         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3690         <!-- Using test number for BelCel from the plan. -->
3691         <exampleNumber>294911911</exampleNumber>
3692       </mobile>
3693       <tollFree>
3694         <!-- Putting Interactive Polling Service (free) here too. -->
3695         <nationalNumberPattern>
3696           8(?:
3697             0[13]|
3698             20\d
3699           )\d{7}
3700         </nationalNumberPattern>
3701         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3702         <exampleNumber>8011234567</exampleNumber>
3703       </tollFree>
3704       <premiumRate>
3705         <!-- Putting Interactive Polling Service (paid) here too. -->
3706         <nationalNumberPattern>
3707           (?:
3708             810|
3709             902
3710           )\d{7}
3711         </nationalNumberPattern>
3712         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3713         <exampleNumber>9021234567</exampleNumber>
3714       </premiumRate>
3715       <voip>
3716         <!-- 249 prefix for Beltelcom's Maxiphone added based on online info. -->
3717         <nationalNumberPattern>249\d{6}</nationalNumberPattern>
3718         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3719         <exampleNumber>249123456</exampleNumber>
3720       </voip>
3721     </territory>
3722
3723     <!-- Belize -->
3724     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
3725          -->
3726     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
3727       <references>
3728         <sourceUrl>http://www.itu.int/oth/T0202000016/en</sourceUrl>
3729       </references>
3730       <availableFormats>
3731         <numberFormat pattern="(\d{3})(\d{4})">
3732           <leadingDigits>[2-8]</leadingDigits>
3733           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
3734           <format>$1-$2</format>
3735         </numberFormat>
3736         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
3737           <leadingDigits>0</leadingDigits>
3738           <format>$1-$2-$3-$4</format>
3739         </numberFormat>
3740       </availableFormats>
3741       <generalDesc>
3742         <nationalNumberPattern>
3743           [2-8]\d{6}|
3744           0\d{10}
3745         </nationalNumberPattern>
3746         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
3747       </generalDesc>
3748       <fixedLine>
3749         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
3750         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3751         <exampleNumber>2221234</exampleNumber>
3752       </fixedLine>
3753       <mobile>
3754         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
3755              to these numbers or many numbers have been found online. -->
3756         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
3757         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3758         <exampleNumber>6221234</exampleNumber>
3759       </mobile>
3760       <!-- We don't know how these would be dialled internationally - it is possible that they can't
3761            be dialled internationally at all - so we represent the leading 0 as part of the number.
3762            Information from http://www.belizetelemedia.net. -->
3763       <tollFree>
3764         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
3765         <possibleNumberPattern>\d{11}</possibleNumberPattern>
3766         <exampleNumber>08001234123</exampleNumber>
3767       </tollFree>
3768     </territory>
3769
3770     <!-- Canada -->
3771     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1"
3772                mobileNumberPortableRegion="true">
3773       <references>
3774         <sourceUrl>http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm</sourceUrl>
3775       </references>
3776       <generalDesc>
3777         <!-- NANPA country - uses US formatting rules -->
3778         <nationalNumberPattern>
3779           [2-9]\d{9}|
3780           3\d{6}
3781         </nationalNumberPattern>
3782         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3783       </generalDesc>
3784       <fixedLine>
3785         <nationalNumberPattern>
3786           (?:
3787             2(?:
3788               04|
3789               [23]6|
3790               [48]9|
3791               50
3792             )|
3793             3(?:
3794               06|
3795               43|
3796               65
3797             )|
3798             4(?:
3799               03|
3800               1[68]|
3801               3[178]|
3802               50
3803             )|
3804             5(?:
3805               06|
3806               1[49]|
3807               48|
3808               79|
3809               8[17]
3810             )|
3811             6(?:
3812               0[04]|
3813               13|
3814               22|
3815               39|
3816               47
3817             )|
3818             7(?:
3819               0[59]|
3820               78|
3821               8[02]
3822             )|
3823             8(?:
3824               [06]7|
3825               19|
3826               73
3827             )|
3828             90[25]
3829           )[2-9]\d{6}|
3830           310\d{4}
3831         </nationalNumberPattern>
3832         <exampleNumber>2042345678</exampleNumber>
3833       </fixedLine>
3834       <mobile>
3835         <nationalNumberPattern>
3836           (?:
3837             2(?:
3838               04|
3839               [23]6|
3840               [48]9|
3841               50
3842             )|
3843             3(?:
3844               06|
3845               43|
3846               65
3847             )|
3848             4(?:
3849               03|
3850               1[68]|
3851               3[178]|
3852               50
3853             )|
3854             5(?:
3855               06|
3856               1[49]|
3857               48|
3858               79|
3859               8[17]
3860             )|
3861             6(?:
3862               0[04]|
3863               13|
3864               22|
3865               39|
3866               47
3867             )|
3868             7(?:
3869               0[59]|
3870               78|
3871               8[02]
3872             )|
3873             8(?:
3874               [06]7|
3875               19|
3876               73
3877             )|
3878             90[25]
3879           )[2-9]\d{6}
3880         </nationalNumberPattern>
3881         <exampleNumber>2042345678</exampleNumber>
3882       </mobile>
3883       <tollFree>
3884         <nationalNumberPattern>
3885           8(?:
3886             00|
3887             44|
3888             55|
3889             66|
3890             77|
3891             88
3892           )[2-9]\d{6}|
3893           310\d{4}
3894         </nationalNumberPattern>
3895         <exampleNumber>8002123456</exampleNumber>
3896       </tollFree>
3897       <premiumRate>
3898         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3899         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3900         <exampleNumber>9002123456</exampleNumber>
3901       </premiumRate>
3902       <personalNumber>
3903         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3904         <nationalNumberPattern>
3905           5(?:
3906             00|
3907             33|
3908             44|
3909             66|
3910             77
3911           )[2-9]\d{6}
3912         </nationalNumberPattern>
3913         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3914         <exampleNumber>5002345678</exampleNumber>
3915       </personalNumber>
3916     </territory>
3917
3918     <!-- Cocos Islands -->
3919     <!-- Metadata shared with Australia. -->
3920     <!-- References state Cocos Islands have fixed line numbers starting +61 8 9162. -->
3921     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
3922                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
3923                nationalPrefix="0">
3924       <references>
3925         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
3926         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
3927       </references>
3928       <!-- Uses AU formatting rules. -->
3929       <!-- General desc and fixed line rules different from Australia. -->
3930       <generalDesc>
3931         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
3932         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3933       </generalDesc>
3934       <fixedLine>
3935         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
3936         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
3937         <exampleNumber>891621234</exampleNumber>
3938       </fixedLine>
3939       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
3940       <mobile>
3941         <nationalNumberPattern>
3942           14(?:
3943             5\d|
3944             71
3945           )\d{5}|
3946           4(?:
3947             [0-2]\d|
3948             3[0-57-9]|
3949             4[47-9]|
3950             5[0-25-9]|
3951             6[6-9]|
3952             7[03-9]|
3953             8[17-9]|
3954             9[017-9]
3955           )\d{6}
3956         </nationalNumberPattern>
3957         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3958         <exampleNumber>412345678</exampleNumber>
3959       </mobile>
3960       <tollFree>
3961         <nationalNumberPattern>
3962           1(?:
3963             80(?:
3964               0\d{2}
3965             )?|
3966             3(?:
3967               00\d{2}
3968             )?
3969           )\d{4}
3970         </nationalNumberPattern>
3971         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3972         <exampleNumber>1800123456</exampleNumber>
3973       </tollFree>
3974       <premiumRate>
3975         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
3976         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3977         <exampleNumber>1900123456</exampleNumber>
3978       </premiumRate>
3979       <personalNumber>
3980         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
3981         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3982         <exampleNumber>500123456</exampleNumber>
3983       </personalNumber>
3984       <voip>
3985         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
3986         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3987         <exampleNumber>550123456</exampleNumber>
3988       </voip>
3989     </territory>
3990
3991     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
3992     <territory id="CD" countryCode="243" internationalPrefix="00"
3993                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
3994       <references>
3995         <sourceUrl>http://www.itu.int/oth/T0202000037/en</sourceUrl>
3996       </references>
3997       <availableFormats>
3998         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3999           <leadingDigits>12</leadingDigits>
4000           <format>$1 $2 $3</format>
4001         </numberFormat>
4002         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4003           <leadingDigits>
4004             8[0-2459]|
4005             9
4006           </leadingDigits>
4007           <format>$1 $2 $3</format>
4008         </numberFormat>
4009         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
4010           <leadingDigits>88</leadingDigits>
4011           <format>$1 $2 $3</format>
4012         </numberFormat>
4013         <numberFormat pattern="(\d{2})(\d{5})">
4014           <leadingDigits>[1-6]</leadingDigits>
4015           <format>$1 $2</format>
4016         </numberFormat>
4017       </availableFormats>
4018       <generalDesc>
4019         <nationalNumberPattern>
4020           [2-6]\d{6}|
4021           [18]\d{6,8}|
4022           9\d{8}
4023         </nationalNumberPattern>
4024         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4025       </generalDesc>
4026       <fixedLine>
4027         <nationalNumberPattern>
4028           1(?:
4029             2\d{7}|
4030             \d{6}
4031           )|
4032           [2-6]\d{6}
4033         </nationalNumberPattern>
4034         <exampleNumber>1234567</exampleNumber>
4035       </fixedLine>
4036       <mobile>
4037         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
4038              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
4039              holdings company http://www.timeturnsholdings.com/products does not show a link for
4040              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
4041              tried were valid. If the holdings company does not respond to requests about this
4042              range and unless we receive further information, we will remove this range. -->
4043         <nationalNumberPattern>
4044           8(?:
4045             [0-2459]\d{2}|
4046             8
4047           )\d{5}|
4048           9[7-9]\d{7}
4049         </nationalNumberPattern>
4050         <exampleNumber>991234567</exampleNumber>
4051       </mobile>
4052     </territory>
4053
4054     <!-- Central African Republic -->
4055     <territory id="CF" countryCode="236" internationalPrefix="00">
4056       <references>
4057         <sourceUrl>http://www.itu.int/oth/T0202000028/en</sourceUrl>
4058       </references>
4059       <availableFormats>
4060         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4061           <format>$1 $2 $3 $4</format>
4062         </numberFormat>
4063       </availableFormats>
4064       <generalDesc>
4065         <nationalNumberPattern>[278]\d{7}</nationalNumberPattern>
4066         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4067       </generalDesc>
4068       <fixedLine>
4069         <nationalNumberPattern>2[12]\d{6}</nationalNumberPattern>
4070         <exampleNumber>21612345</exampleNumber>
4071       </fixedLine>
4072       <mobile>
4073         <nationalNumberPattern>7[0257]\d{6}</nationalNumberPattern>
4074         <exampleNumber>70012345</exampleNumber>
4075       </mobile>
4076       <premiumRate>
4077         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
4078         <exampleNumber>87761234</exampleNumber>
4079       </premiumRate>
4080     </territory>
4081
4082     <!-- Congo (Rep. of the) (Brazzaville) -->
4083     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
4084       <references>
4085         <sourceUrl>http://www.itu.int/oth/T020200002E/en</sourceUrl>
4086       </references>
4087       <availableFormats>
4088         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
4089           <leadingDigits>[02]</leadingDigits>
4090           <format>$1 $2 $3</format>
4091         </numberFormat>
4092         <numberFormat pattern="(\d)(\d{4})(\d{4})">
4093           <leadingDigits>8</leadingDigits>
4094           <format>$1 $2 $3</format>
4095         </numberFormat>
4096       </availableFormats>
4097       <generalDesc>
4098         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
4099         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4100       </generalDesc>
4101       <fixedLine>
4102         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
4103         <exampleNumber>222123456</exampleNumber>
4104       </fixedLine>
4105       <mobile>
4106         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
4107         <exampleNumber>061234567</exampleNumber>
4108       </mobile>
4109       <!-- Referred to as a "Green number" in the telephone plan. -->
4110       <tollFree>
4111         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4112         <exampleNumber>800123456</exampleNumber>
4113       </tollFree>
4114     </territory>
4115
4116     <!-- Switzerland -->
4117     <territory id="CH" countryCode="41" internationalPrefix="00"
4118                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG"
4119                mobileNumberPortableRegion="true">
4120       <references>
4121         <!-- Under Technical prescriptions: Numbering plan for international carriers. -->
4122         <sourceUrl>http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en</sourceUrl>
4123       </references>
4124       <availableFormats>
4125         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
4126           <leadingDigits>
4127             [2-7]|
4128             [89]1
4129           </leadingDigits>
4130           <format>$1 $2 $3 $4</format>
4131         </numberFormat>
4132         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4133           <leadingDigits>
4134             8[047]|
4135             90
4136           </leadingDigits>
4137           <format>$1 $2 $3</format>
4138         </numberFormat>
4139         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
4140           <leadingDigits>860</leadingDigits>
4141           <format>$1 $2 $3 $4 $5</format>
4142         </numberFormat>
4143       </availableFormats>
4144       <generalDesc>
4145         <nationalNumberPattern>
4146           [2-9]\d{8}|
4147           860\d{9}
4148         </nationalNumberPattern>
4149         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
4150       </generalDesc>
4151       <fixedLine>
4152         <nationalNumberPattern>
4153           (?:
4154             2[12467]|
4155             3[1-4]|
4156             4[134]|
4157             5[256]|
4158             6[12]|
4159             [7-9]1
4160           )\d{7}
4161         </nationalNumberPattern>
4162         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4163         <exampleNumber>212345678</exampleNumber>
4164       </fixedLine>
4165       <mobile>
4166         <nationalNumberPattern>7[5-9]\d{7}</nationalNumberPattern>
4167         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4168         <exampleNumber>781234567</exampleNumber>
4169       </mobile>
4170       <pager>
4171         <!-- https://www.eofcom.admin.ch/eofcom/public/listEofcom_e164Allocated.do -->
4172         <nationalNumberPattern>74[0248]\d{6}</nationalNumberPattern>
4173         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4174         <exampleNumber>740123456</exampleNumber>
4175       </pager>
4176       <tollFree>
4177         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4178         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4179         <exampleNumber>800123456</exampleNumber>
4180       </tollFree>
4181       <premiumRate>
4182         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
4183         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4184         <exampleNumber>900123456</exampleNumber>
4185       </premiumRate>
4186       <sharedCost>
4187         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
4188         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4189         <exampleNumber>840123456</exampleNumber>
4190       </sharedCost>
4191       <personalNumber>
4192         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
4193         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4194         <exampleNumber>878123456</exampleNumber>
4195       </personalNumber>
4196       <uan>
4197         <!-- Used for corporate networks. -->
4198         <nationalNumberPattern>5[18]\d{7}</nationalNumberPattern>
4199         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4200         <exampleNumber>581234567</exampleNumber>
4201       </uan>
4202       <voicemail>
4203         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
4204         <possibleNumberPattern>\d{12}</possibleNumberPattern>
4205         <exampleNumber>860123456789</exampleNumber>
4206       </voicemail>
4207     </territory>
4208
4209     <!-- Côte d'Ivoire -->
4210     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
4211       <references>
4212         <sourceUrl>http://www.itu.int/oth/T0202000031/en</sourceUrl>
4213       </references>
4214       <availableFormats>
4215         <!-- Using format from online yellow pages over format implied in national numbering plan.
4216              -->
4217         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4218           <format>$1 $2 $3 $4</format>
4219         </numberFormat>
4220       </availableFormats>
4221       <generalDesc>
4222         <nationalNumberPattern>[02-7]\d{7}</nationalNumberPattern>
4223         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4224       </generalDesc>
4225       <fixedLine>
4226         <nationalNumberPattern>
4227           (?:
4228             2(?:
4229               0[023]|
4230               1[02357]|
4231               [23][045]|
4232               4[03-5]
4233             )|
4234             3(?:
4235               0[06]|
4236               1[069]|
4237               [2-4][07]|
4238               5[09]|
4239               6[08]
4240             )
4241           )\d{5}
4242         </nationalNumberPattern>
4243         <exampleNumber>21234567</exampleNumber>
4244       </fixedLine>
4245       <mobile>
4246         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 6[15] because SMS messages have been
4247              successfully delivered. Supported by numbers found on the internet. Also added 43
4248              (Moov) based on numbers found online. The prefix 56 was assigned to MTN in July 2013:
4249              http://www.atci.ci/images/stories/pdf/decisions-dg/decision_002.pdf
4250              The prefix 75 is from an open-source bug report.
4251              50 has been removed since Warid seems to have stopped operation in Côte d'Ivoire. -->
4252           <nationalNumberPattern>
4253           (?:
4254             0[1-9]|
4255             4\d|
4256             5[4-9]|
4257             6[015-79]|
4258             7[578]
4259           )\d{6}
4260         </nationalNumberPattern>
4261         <exampleNumber>01234567</exampleNumber>
4262       </mobile>
4263     </territory>
4264
4265     <!-- Cook Islands -->
4266     <territory id="CK" countryCode="682" internationalPrefix="00">
4267       <references>
4268         <sourceUrl>http://www.itu.int/oth/T020200002F/en</sourceUrl>
4269       </references>
4270       <availableFormats>
4271         <numberFormat pattern="(\d{2})(\d{3})">
4272           <format>$1 $2</format>
4273         </numberFormat>
4274       </availableFormats>
4275       <generalDesc>
4276         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
4277         <possibleNumberPattern>\d{5}</possibleNumberPattern>
4278       </generalDesc>
4279       <fixedLine>
4280         <nationalNumberPattern>
4281           (?:
4282             2\d|
4283             3[13-7]|
4284             4[1-5]
4285           )\d{3}
4286         </nationalNumberPattern>
4287         <exampleNumber>21234</exampleNumber>
4288       </fixedLine>
4289       <mobile>
4290         <nationalNumberPattern>
4291           (?:
4292             5[0-68]|
4293             7\d
4294           )\d{3}
4295         </nationalNumberPattern>
4296         <exampleNumber>71234</exampleNumber>
4297       </mobile>
4298     </territory>
4299
4300     <!-- Chile -->
4301     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
4302     <territory id="CL" countryCode="56"
4303                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
4304                nationalPrefix="0"
4305                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
4306                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
4307       <references>
4308         <sourceUrl>http://www.itu.int/oth/T020200002A/en</sourceUrl>
4309         <sourceUrl>http://en.wikipedia.org/wiki/%2B56</sourceUrl>
4310         <sourceUrl>http://www.subtel.gob.cl/base_numeracion/tabla_numeracion_ido_idd.xlsx</sourceUrl>
4311       </references>
4312       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
4313            we strip here. National destinations may be dialled with a carrier if they are not local
4314            so we extract these carrier codes as well. -->
4315       <availableFormats>
4316         <numberFormat pattern="(\d)(\d{4})(\d{4})"
4317           nationalPrefixFormattingRule="($FG)"
4318           carrierCodeFormattingRule="$CC ($FG)">
4319           <leadingDigits>22</leadingDigits>
4320           <format>$1 $2 $3</format>
4321         </numberFormat>
4322         <numberFormat pattern="(\d{2})(\d{3})(\d{4})"
4323           nationalPrefixFormattingRule="($FG)"
4324           carrierCodeFormattingRule="$CC ($FG)">
4325           <leadingDigits>
4326             [357]|
4327             4[1-35]|
4328             6[13-57]
4329           </leadingDigits>
4330           <format>$1 $2 $3</format>
4331         </numberFormat>
4332         <numberFormat pattern="(9)(\d{4})(\d{4})">
4333           <leadingDigits>9</leadingDigits>
4334           <format>$1 $2 $3</format>
4335         </numberFormat>
4336         <numberFormat pattern="(44)(\d{3})(\d{4})">
4337           <leadingDigits>44</leadingDigits>
4338           <format>$1 $2 $3</format>
4339         </numberFormat>
4340         <numberFormat nationalPrefixFormattingRule="$FG"
4341           pattern="([68]00)(\d{3})(\d{3,4})">
4342           <leadingDigits>
4343             60|
4344             8
4345           </leadingDigits>
4346           <format>$1 $2 $3</format>
4347         </numberFormat>
4348         <numberFormat nationalPrefixFormattingRule="$FG"
4349           pattern="(600)(\d{3})(\d{2})(\d{3})">
4350           <leadingDigits>60</leadingDigits>
4351           <format>$1 $2 $3 $4</format>
4352         </numberFormat>
4353         <numberFormat nationalPrefixFormattingRule="$FG"
4354           pattern="(1230)(\d{3})(\d{4})">
4355           <leadingDigits>1</leadingDigits>
4356           <format>$1 $2 $3</format>
4357         </numberFormat>
4358         <numberFormat pattern="(\d{5})(\d{4})"
4359           nationalPrefixFormattingRule="($FG)"
4360           carrierCodeFormattingRule="$CC ($FG)">
4361           <leadingDigits>219</leadingDigits>
4362           <format>$1 $2</format>
4363         </numberFormat>
4364         <!-- Format some short numbers as a block. -->
4365         <numberFormat nationalPrefixFormattingRule="$FG"
4366           pattern="(\d{4,5})">
4367           <leadingDigits>[1-9]</leadingDigits>
4368           <format>$1</format>
4369           <intlFormat>NA</intlFormat>
4370         </numberFormat>
4371       </availableFormats>
4372       <generalDesc>
4373         <nationalNumberPattern>
4374           (?:
4375             [2-9]|
4376             600|
4377             123
4378           )\d{7,8}
4379         </nationalNumberPattern>
4380         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4381       </generalDesc>
4382       <noInternationalDialling>
4383         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4384         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4385         <exampleNumber>6001234567</exampleNumber>
4386       </noInternationalDialling>
4387       <fixedLine>
4388         <!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by
4389              inserting a '2' after the area code (which are 2 digits, with the exception of '2').
4390              As of Aug. 2014, all of the prefixes have been switched over to the new plan.
4391              IMPORTANT: The fact that Santiago numbers have a prefix of "22", and that numbers in
4392              other areas have '2' as their third digit, is likely to change in the future. At some
4393              stage, Santiago numbers will probably switch to prefix "2\d", and the third digit in
4394              other areas will probably be allowed to take on other values.
4395              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
4396                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
4397              -->
4398         <nationalNumberPattern>
4399           2(?:
4400             2\d{7}|
4401             1962\d{4}
4402           )|
4403           (?:
4404             3[2-5]|
4405             [47][1-35]|
4406             5[1-3578]|
4407             6[13-57]
4408           )\d{7}
4409         </nationalNumberPattern>
4410         <!-- Area codes do not need to be dialled when dialling within the same area, so the
4411              smallest possible number is length 7. -->
4412         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4413         <exampleNumber>221234567</exampleNumber>
4414       </fixedLine>
4415       <mobile>
4416         <nationalNumberPattern>9[4-9]\d{7}</nationalNumberPattern>
4417         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4418         <exampleNumber>961234567</exampleNumber>
4419       </mobile>
4420       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
4421            from a definitive source. -->
4422       <tollFree>
4423         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
4424         <nationalNumberPattern>
4425           800\d{6}|
4426           1230\d{7}
4427         </nationalNumberPattern>
4428         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
4429         <exampleNumber>800123456</exampleNumber>
4430       </tollFree>
4431       <sharedCost>
4432         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
4433         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4434         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4435         <exampleNumber>6001234567</exampleNumber>
4436       </sharedCost>
4437       <voip>
4438         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
4439         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4440         <exampleNumber>441234567</exampleNumber>
4441       </voip>
4442     </territory>
4443
4444     <!-- Cameroon -->
4445     <territory id="CM" countryCode="237" internationalPrefix="00">
4446       <references>
4447         <sourceUrl>http://www.itu.int/oth/T0202000024/en</sourceUrl>
4448         <sourceUrl>http://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-OB.1063-2014-OAS-PDF-E.pdf</sourceUrl>
4449       </references>
4450       <availableFormats>
4451         <!-- Formatting in the ITU update document aligns with formatting online (all 2 digit
4452              groups). For the new number format with 9 digits the first digit has it's own group.
4453              -->
4454         <numberFormat pattern="([26])(\d{2})(\d{2})(\d{2})(\d{2})">
4455           <leadingDigits>[26]</leadingDigits>
4456           <format>$1 $2 $3 $4 $5</format>
4457         </numberFormat>
4458         <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
4459           <leadingDigits>
4460             [23579]|
4461             88
4462           </leadingDigits>
4463           <format>$1 $2 $3 $4</format>
4464         </numberFormat>
4465         <numberFormat pattern="(800)(\d{2})(\d{3})">
4466           <leadingDigits>80</leadingDigits>
4467           <format>$1 $2 $3</format>
4468         </numberFormat>
4469       </availableFormats>
4470       <generalDesc>
4471         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
4472         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4473       </generalDesc>
4474       <fixedLine>
4475         <!-- Temporarily allow both old (22|33) and new 2(22|33) format. -->
4476         <!-- CDMA numbers are described in a subcategory to fixed line numbers in the ITU update
4477              document, so those prefixes are added to fixed line (24[23]). -->
4478         <nationalNumberPattern>
4479           2(?:
4480              22|
4481              33|
4482              4[23]
4483           )\d{6}|
4484           (?:
4485             22|
4486             33
4487           )\d{6}
4488         </nationalNumberPattern>
4489         <exampleNumber>222123456</exampleNumber>
4490       </fixedLine>
4491       <mobile>
4492         <!-- Temporarily allow both old [579]\d{7} and new 6[5-79]\d{7} format. -->
4493         <nationalNumberPattern>
4494           6[5-79]\d{7}|
4495           [579]\d{7}
4496         </nationalNumberPattern>
4497         <exampleNumber>671234567</exampleNumber>
4498       </mobile>
4499       <tollFree>
4500         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
4501         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4502         <exampleNumber>80012345</exampleNumber>
4503       </tollFree>
4504       <premiumRate>
4505         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
4506              with 88 (usually 880). No information can be found as to whether these are premium rate
4507              or shared cost. -->
4508         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
4509         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4510         <exampleNumber>88012345</exampleNumber>
4511       </premiumRate>
4512     </territory>
4513
4514     <!-- China -->
4515     <!-- The international/national prefix patterns must not collide with valid prefixes such
4516          as 170, 176, 177 and 178. 179XX00 is a valid calling prefix, see: www.chahaoba.com/179 -->
4517     <territory id="CN" countryCode="86" internationalPrefix="(1(?:[129]\d{3}|79\d{2}))?00"
4518                preferredInternationalPrefix="00" nationalPrefix="0"
4519                nationalPrefixForParsing="(1(?:[129]\d{3}|79\d{2}))|0">
4520       <references>
4521         <sourceUrl>http://www.itu.int/oth/T020200002B/en</sourceUrl>
4522       </references>
4523       <availableFormats>
4524         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
4525                       nationalPrefixOptionalWhenFormatting="true"
4526                       carrierCodeFormattingRule="$CC $FG">
4527           <leadingDigits>80[2678]</leadingDigits>
4528           <format>$1 $2</format>
4529         </numberFormat>
4530         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
4531           <leadingDigits>[48]00</leadingDigits>
4532           <format>$1 $2 $3</format>
4533         </numberFormat>
4534         <!-- 100xx and 95xxx(x) short numbers without area codes. Without this rule, these short
4535              numbers will be formatted incorrectly by the AsYouTypeFormatter because they overlap
4536              with area codes 010, 095x. These numbers are defined in ShortNumberMetadata.xml but
4537              must be accounted for here. Note although ITU says the format is more like 95 xxx, in
4538              reality no space is used when writing such numbers in China. -->
4539         <numberFormat pattern="(\d{5,6})">
4540           <leadingDigits>
4541             100|
4542             95
4543           </leadingDigits>
4544           <format>$1</format>
4545           <intlFormat>NA</intlFormat>
4546         </numberFormat>
4547         <!-- 100xx and 95xxx(x) numbers with area codes (these numbers without an area code are now
4548              dealt with by ShortNumberMetadata.xml) and 96xxx(x) numbers with area codes (we don't
4549              support these as short numbers because they are only unique within a province, not
4550              within a country). -->
4551         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
4552                       carrierCodeFormattingRule="$CC $FG">
4553           <leadingDigits>
4554             (?:
4555               10|
4556               2\d
4557             )[19]
4558           </leadingDigits>
4559           <leadingDigits>
4560             (?:
4561               10|
4562               2\d
4563             )(?:
4564               10|
4565               9[56]
4566             )
4567           </leadingDigits>
4568           <leadingDigits>
4569             (?:
4570               10|
4571               2\d
4572             )(?:
4573               100|
4574               9[56]
4575             )
4576           </leadingDigits>
4577           <format>$1 $2</format>
4578         </numberFormat>
4579         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{5,6})"
4580                       carrierCodeFormattingRule="$CC $FG">
4581           <leadingDigits>[3-9]</leadingDigits>
4582           <leadingDigits>[3-9]\d{2}[19]</leadingDigits>
4583           <leadingDigits>
4584             [3-9]\d{2}(?:
4585               10|
4586               9[56]
4587             )
4588           </leadingDigits>
4589           <format>$1 $2</format>
4590         </numberFormat>
4591         <!-- Local numbers -->
4592         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
4593              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
4594              people frequently store them in their cellphones. It has to stay before formatting
4595              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
4596              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
4597         <numberFormat pattern="(\d{3,4})(\d{4})">
4598           <leadingDigits>[2-9]</leadingDigits>
4599           <format>$1 $2</format>
4600           <intlFormat>NA</intlFormat>
4601         </numberFormat>
4602         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
4603                       nationalPrefixOptionalWhenFormatting="true"
4604                       carrierCodeFormattingRule="$CC $FG">
4605           <leadingDigits>21</leadingDigits>
4606           <format>$1 $2 $3</format>
4607         </numberFormat>
4608         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
4609                       nationalPrefixOptionalWhenFormatting="true"
4610                       carrierCodeFormattingRule="$CC $FG">
4611           <leadingDigits>
4612             10[1-9]|
4613             2[02-9]
4614           </leadingDigits>
4615           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
4616           <leadingDigits>
4617             10[1-9]|
4618             2[02-9]
4619           </leadingDigits>
4620           <leadingDigits>
4621             10(?:
4622               [1-79]|
4623               8(?:
4624                 [1-9]|
4625                 0[1-9]
4626               )
4627             )|
4628             2[02-9]
4629           </leadingDigits>
4630           <format>$1 $2 $3</format>
4631         </numberFormat>
4632         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
4633                       nationalPrefixOptionalWhenFormatting="true"
4634                       carrierCodeFormattingRule="$CC $FG">
4635           <leadingDigits>
4636             3(?:
4637               11|
4638               7[179]
4639             )|
4640             4(?:
4641               [15]1|
4642               3[12]
4643             )|
4644             5(?:
4645               1|
4646               2[37]|
4647               3[12]|
4648               51|
4649               7[13-79]|
4650               9[15]
4651             )|
4652             7(?:
4653               31|
4654               5[457]|
4655               6[09]|
4656               91
4657             )|
4658             8(?:
4659               [57]1|
4660               98
4661             )
4662           </leadingDigits>
4663           <format>$1 $2 $3</format>
4664         </numberFormat>
4665         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
4666                       nationalPrefixOptionalWhenFormatting="true"
4667                       carrierCodeFormattingRule="$CC $FG">
4668           <leadingDigits>
4669             3(?:
4670               1[02-9]|
4671               35|
4672               49|
4673               5|
4674               7[02-68]|
4675               9[1-68]
4676             )|
4677             4(?:
4678               1[02-9]|
4679               2[179]|
4680               [35][2-9]|
4681               6[4789]|
4682               7\d|
4683               8[23]
4684             )|
4685             5(?:
4686               3[03-9]|
4687               4[36]|
4688               5[02-9]|
4689               6[1-46]|
4690               7[028]|
4691               80|
4692               9[2-46-9]
4693             )|
4694             6(?:
4695               3[1-5]|
4696               6[0238]|
4697               9[12]
4698             )|
4699             7(?:
4700               01|
4701               [1579]|
4702               2[248]|
4703               3[04-9]|
4704               4[3-6]|
4705               6[2368]
4706             )|
4707             8(?:
4708               1[236-8]|
4709               2[5-7]|
4710               3|
4711               5[4-9]|
4712               7[02-9]|
4713               8[3678]|
4714               9[1-7]
4715             )|
4716             9(?:
4717               0[1-3689]|
4718               1[1-79]|
4719               [379]|
4720               4[13]|
4721               5[1-5]
4722             )
4723           </leadingDigits>
4724           <format>$1 $2 $3</format>
4725         </numberFormat>
4726         <numberFormat pattern="(\d{3})(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
4727           <leadingDigits>1[3-578]</leadingDigits>
4728           <format>$1 $2 $3</format>
4729         </numberFormat>
4730         <numberFormat pattern="(10800)(\d{3})(\d{4})">
4731           <leadingDigits>108</leadingDigits>
4732           <leadingDigits>1080</leadingDigits>
4733           <leadingDigits>10800</leadingDigits>
4734           <format>$1 $2 $3</format>
4735         </numberFormat>
4736         <numberFormat pattern="(\d{3})(\d{7,8})">
4737           <leadingDigits>950</leadingDigits>
4738           <format>$1 $2</format>
4739         </numberFormat>
4740       </availableFormats>
4741       <generalDesc>
4742         <nationalNumberPattern>
4743           [1-7]\d{6,11}|
4744           8[0-357-9]\d{6,9}|
4745           9\d{7,10}
4746         </nationalNumberPattern>
4747         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
4748       </generalDesc>
4749       <noInternationalDialling>
4750         <nationalNumberPattern>
4751           (?:
4752             4|
4753             (?:
4754               10
4755             )?8
4756           )00\d{7}|
4757           950\d{7,8}
4758         </nationalNumberPattern>
4759         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4760         <exampleNumber>4001234567</exampleNumber>
4761       </noInternationalDialling>
4762       <fixedLine>
4763         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
4764              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
4765              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
4766              in the ITU data.
4767              10xxx and 95xxx(x) numbers with area codes are also included here, as they behave
4768              exactly like fixed-line numbers. We don't support them for 4-digit area codes though,
4769              as they don't seem to be used there based on making actual phone calls.
4770          -->
4771         <nationalNumberPattern>
4772           21(?:
4773             100\d{2}|
4774             95\d{3,4}|
4775             \d{8,10}
4776           )|
4777           (?:
4778             10|
4779             2[02-57-9]|
4780             3(?:
4781               11|
4782               7[179]
4783             )|
4784             4(?:
4785               [15]1|
4786               3[12]
4787             )|
4788             5(?:
4789               1\d|
4790               2[37]|
4791               3[12]|
4792               51|
4793               7[13-79]|
4794               9[15]
4795             )|
4796             7(?:
4797               31|
4798               5[457]|
4799               6[09]|
4800               91
4801             )|
4802             8(?:
4803               [57]1|
4804               98
4805             )
4806           )(?:
4807             100\d{2}|
4808             95\d{3,4}|
4809             \d{8}
4810           )|
4811           (?:
4812             3(?:
4813               1[02-9]|
4814               35|
4815               49|
4816               5\d|
4817               7[02-68]|
4818               9[1-68]
4819             )|
4820             4(?:
4821               1[02-9]|
4822               2[179]|
4823               3[3-9]|
4824               5[2-9]|
4825               6[4789]|
4826               7\d|
4827               8[23]
4828             )|
4829             5(?:
4830               3[03-9]|
4831               4[36]|
4832               5[02-9]|
4833               6[1-46]|
4834               7[028]|
4835               80|
4836               9[2-46-9]
4837             )|
4838             6(?:
4839               3[1-5]|
4840               6[0238]|
4841               9[12]
4842             )|
4843             7(?:
4844               01|
4845               [17]\d|
4846               2[248]|
4847               3[04-9]|
4848               4[3-6]|
4849               5[0-3689]|
4850               6[2368]|
4851               9[02-9]
4852             )|
4853             8(?:
4854               1[236-8]|
4855               2[5-7]|
4856               3\d|
4857               5[4-9]|
4858               7[02-9]|
4859               8[3678]|
4860               9[1-7]
4861             )|
4862             9(?:
4863               0[1-3689]|
4864               1[1-79]|
4865               [379]\d|
4866               4[13]|
4867               5[1-5]
4868             )
4869           )(?:
4870             100\d{2}|
4871             95\d{3,4}|
4872             \d{7}
4873           )|
4874           80(?:
4875             29|
4876             6[03578]|
4877             7[018]|
4878             81
4879           )\d{4}
4880         </nationalNumberPattern>
4881         <exampleNumber>1012345678</exampleNumber>
4882       </fixedLine>
4883       <mobile>
4884         <!-- 170, 176, 177 and 178 prefixes are introduced in early 2014 for 4G networks. -->
4885         <nationalNumberPattern>
4886           1(?:
4887             [38]\d|
4888             4[57]|
4889             5[0-35-9]|
4890             7[06-8]
4891           )\d{8}
4892         </nationalNumberPattern>
4893         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4894         <exampleNumber>13123456789</exampleNumber>
4895       </mobile>
4896       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
4897            number plan, and do not seem to have been standardized. The information below is
4898            collected from searching the web. -->
4899       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
4900       <tollFree>
4901         <nationalNumberPattern>
4902           (?:
4903             10
4904           )?800\d{7}
4905         </nationalNumberPattern>
4906         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4907         <exampleNumber>8001234567</exampleNumber>
4908       </tollFree>
4909       <premiumRate>
4910         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
4911         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4912         <exampleNumber>16812345</exampleNumber>
4913       </premiumRate>
4914       <sharedCost>
4915         <!-- 96xxx(x) numbers with area codes are included here. Their costs are not well
4916              documented, but they are thought to be mostly local costs with certain exceptions. We
4917              don't support them for 4-digit area codes though, as they don't seem to be used there
4918              based on online searches. -->
4919         <nationalNumberPattern>
4920           400\d{7}|
4921           950\d{7,8}|
4922           (?:
4923             10|
4924             2[0-57-9]|
4925             3(?:
4926               [157]\d|
4927               35|
4928               49|
4929               9[1-68]
4930             )|
4931             4(?:
4932               [17]\d|
4933               2[179]|
4934               [35][1-9]|
4935               6[4789]|
4936               8[23]
4937             )|
4938             5(?:
4939               [1357]\d|
4940               2[37]|
4941               4[36]|
4942               6[1-46]|
4943               80|
4944               9[1-9]
4945             )|
4946             6(?:
4947               3[1-5]|
4948               6[0238]|
4949               9[12]
4950             )|
4951             7(?:
4952               01|
4953               [1579]\d|
4954               2[248]|
4955               3[014-9]|
4956               4[3-6]|
4957               6[023689]
4958             )|
4959             8(?:
4960               1[236-8]|
4961               2[5-7]|
4962               [37]\d|
4963               5[14-9]|
4964               8[3678]|
4965               9[1-8]
4966             )|
4967             9(?:
4968               0[1-3689]|
4969               1[1-79]|
4970               [379]\d|
4971               4[13]|
4972               5[1-5]
4973             )
4974           )96\d{3,4}
4975         </nationalNumberPattern>
4976         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4977         <exampleNumber>4001234567</exampleNumber>
4978       </sharedCost>
4979     </territory>
4980
4981     <!-- Colombia -->
4982     <!-- Extra international dialling prefixes from http://www.claro.com.co and
4983          http://www.tigo.com.co. -->
4984     <!-- 05 and 005 are for Orbitel: co.orbitel.com -->
4985     <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])"
4986                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?"
4987                mobileNumberPortableRegion="true">
4988       <references>
4989         <sourceUrl>http://www.itu.int/oth/T020200002C/en</sourceUrl>
4990         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia</sourceUrl>
4991       </references>
4992       <availableFormats>
4993         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
4994           nationalPrefixFormattingRule="($FG)">
4995           <leadingDigits>
4996             1(?:
4997               8[2-9]|
4998               9[0-3]|
4999               [2-7]
5000             )|
5001             [24-8]
5002           </leadingDigits>
5003           <leadingDigits>
5004             1(?:
5005               8[2-9]|
5006               9(?:
5007                 09|
5008                 [1-3]
5009               )|
5010               [2-7]
5011             )|
5012             [24-8]
5013           </leadingDigits>
5014           <format>$1 $2</format>
5015         </numberFormat>
5016         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
5017           <leadingDigits>3</leadingDigits>
5018           <format>$1 $2</format>
5019         </numberFormat>
5020         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5021           <leadingDigits>
5022             1(?:
5023               80|
5024               9[04]
5025             )
5026           </leadingDigits>
5027           <leadingDigits>
5028             1(?:
5029               800|
5030               9(?:
5031                 0[01]|
5032                 4[78]
5033               )
5034             )
5035           </leadingDigits>
5036           <format>$1-$2-$3</format>
5037           <intlFormat>$1 $2 $3</intlFormat>
5038         </numberFormat>
5039       </availableFormats>
5040       <generalDesc>
5041         <nationalNumberPattern>
5042           (?:
5043             [13]\d{0,3}|
5044             [24-8]
5045           )\d{7}
5046         </nationalNumberPattern>
5047         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
5048       </generalDesc>
5049       <fixedLine>
5050         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
5051         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5052         <exampleNumber>12345678</exampleNumber>
5053       </fixedLine>
5054       <mobile>
5055         <nationalNumberPattern>
5056           3(?:
5057             0[0-5]|
5058             1\d|
5059             2[0-2]|
5060             5[01]
5061           )\d{7}
5062         </nationalNumberPattern>
5063         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5064         <exampleNumber>3211234567</exampleNumber>
5065       </mobile>
5066       <tollFree>
5067         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
5068         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5069         <exampleNumber>18001234567</exampleNumber>
5070       </tollFree>
5071       <premiumRate>
5072         <nationalNumberPattern>
5073           19(?:
5074             0[01]|
5075             4[78]
5076           )\d{7}
5077         </nationalNumberPattern>
5078         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5079         <exampleNumber>19001234567</exampleNumber>
5080       </premiumRate>
5081     </territory>
5082
5083     <!-- Costa Rica -->
5084     <territory id="CR" countryCode="506" internationalPrefix="00"
5085                nationalPrefixForParsing="(19(?:0[012468]|1[09]|20|66|77|99))"
5086                carrierCodeFormattingRule="$CC $FG">
5087       <references>
5088         <sourceUrl>http://www.itu.int/oth/T0202000030/en</sourceUrl>
5089       </references>
5090       <availableFormats>
5091         <numberFormat pattern="(\d{4})(\d{4})">
5092           <leadingDigits>
5093             [24-7]|
5094             8[3-9]
5095           </leadingDigits>
5096           <format>$1 $2</format>
5097         </numberFormat>
5098         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
5099           <leadingDigits>[89]0</leadingDigits>
5100           <format>$1-$2-$3</format>
5101         </numberFormat>
5102       </availableFormats>
5103       <generalDesc>
5104         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
5105         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
5106       </generalDesc>
5107       <fixedLine>
5108         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
5109         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5110         <exampleNumber>22123456</exampleNumber>
5111       </fixedLine>
5112       <mobile>
5113         <nationalNumberPattern>
5114           5(?:
5115             0[01]|
5116             7[0-3]
5117           )\d{5}|
5118           6(?:
5119             [0-2]\d|
5120             30
5121           )\d{5}|
5122           7[0-3]\d{6}|
5123           8[3-9]\d{6}
5124         </nationalNumberPattern>
5125         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5126         <exampleNumber>83123456</exampleNumber>
5127       </mobile>
5128       <tollFree>
5129         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
5130         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5131         <exampleNumber>8001234567</exampleNumber>
5132       </tollFree>
5133       <premiumRate>
5134         <!-- Includes "mass calls" numbers with prefix 905. -->
5135         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
5136         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5137         <exampleNumber>9001234567</exampleNumber>
5138       </premiumRate>
5139       <voip>
5140         <!-- Including trunking service numbers starting with 5100. 4001 (callmyway.com) was added
5141              from an open-source bug report supported by numbers found online. -->
5142         <nationalNumberPattern>
5143           210[0-6]\d{4}|
5144           4(?:
5145             0(?:
5146               0[01]\d{4}|
5147               10[0-3]\d{3}|
5148               2(?:
5149                 00\d{3}|
5150                 900\d{2}
5151               )|
5152               3[01]\d{4}|
5153               40\d{4}|
5154               5\d{5}|
5155               60\d{4}|
5156               70[01]\d{3}|
5157               8[0-2]\d{4}
5158             )|
5159             1[01]\d{5}|
5160             20[0-3]\d{4}|
5161             400\d{4}|
5162             70[0-2]\d{4}
5163           )|
5164           5100\d{4}
5165         </nationalNumberPattern>
5166         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5167         <exampleNumber>40001234</exampleNumber>
5168       </voip>
5169     </territory>
5170
5171     <!-- Cuba -->
5172     <territory id="CU" countryCode="53" internationalPrefix="119"
5173                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
5174       <references>
5175         <sourceUrl>http://www.itu.int/oth/T0202000033/en</sourceUrl>
5176       </references>
5177       <availableFormats>
5178         <numberFormat pattern="(\d)(\d{6,7})">
5179           <leadingDigits>7</leadingDigits>
5180           <format>$1 $2</format>
5181         </numberFormat>
5182         <numberFormat pattern="(\d{2})(\d{4,6})">
5183           <leadingDigits>[2-4]</leadingDigits>
5184           <format>$1 $2</format>
5185         </numberFormat>
5186         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5187           <leadingDigits>5</leadingDigits>
5188           <format>$1 $2</format>
5189         </numberFormat>
5190       </availableFormats>
5191       <generalDesc>
5192         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
5193         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
5194       </generalDesc>
5195       <fixedLine>
5196         <nationalNumberPattern>
5197           2[1-4]\d{5,6}|
5198           3(?:
5199             1\d{6}|
5200             [23]\d{4,6}
5201           )|
5202           4(?:
5203             [125]\d{5,6}|
5204             [36]\d{6}|
5205             [78]\d{4,6}
5206           )|
5207           7\d{6,7}
5208         </nationalNumberPattern>
5209         <exampleNumber>71234567</exampleNumber>
5210       </fixedLine>
5211       <mobile>
5212         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
5213         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5214         <exampleNumber>51234567</exampleNumber>
5215       </mobile>
5216     </territory>
5217
5218     <!-- Cape Verde -->
5219     <territory id="CV" countryCode="238" internationalPrefix="0">
5220       <references>
5221         <sourceUrl>http://www.itu.int/oth/T0202000026/en</sourceUrl>
5222       </references>
5223       <availableFormats>
5224         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
5225           <format>$1 $2 $3</format>
5226         </numberFormat>
5227       </availableFormats>
5228       <generalDesc>
5229         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
5230         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5231       </generalDesc>
5232       <fixedLine>
5233         <nationalNumberPattern>
5234           2(?:
5235             2[1-7]|
5236             3[0-8]|
5237             4[12]|
5238             5[1256]|
5239             6\d|
5240             7[1-3]|
5241             8[1-5]
5242           )\d{4}
5243         </nationalNumberPattern>
5244         <exampleNumber>2211234</exampleNumber>
5245       </fixedLine>
5246       <mobile>
5247         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
5248              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
5249              example, and there are plenty of numbers on the internet that start with these
5250              prefixes. -->
5251         <nationalNumberPattern>
5252           (?:
5253             9\d|
5254             59
5255           )\d{5}
5256         </nationalNumberPattern>
5257         <exampleNumber>9911234</exampleNumber>
5258       </mobile>
5259     </territory>
5260
5261     <!-- Curaçao -->
5262     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
5263       <references>
5264         <sourceUrl>http://www.itu.int/oth/T02020000F5/en</sourceUrl>
5265       </references>
5266       <!-- All the formatting patterns for country-code 599 are here. -->
5267       <availableFormats>
5268         <numberFormat pattern="(\d{3})(\d{4})">
5269           <leadingDigits>[13-7]</leadingDigits>
5270           <format>$1 $2</format>
5271         </numberFormat>
5272         <numberFormat pattern="(9)(\d{3})(\d{4})">
5273           <leadingDigits>9</leadingDigits>
5274           <format>$1 $2 $3</format>
5275         </numberFormat>
5276       </availableFormats>
5277       <generalDesc>
5278         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
5279         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
5280       </generalDesc>
5281       <fixedLine>
5282         <nationalNumberPattern>
5283           9(?:
5284             [48]\d{2}|
5285             50\d|
5286             7(?:
5287               2[0-24]|
5288               [34]\d|
5289               6[35-7]|
5290               77|
5291               8[7-9]
5292             )
5293           )\d{4}
5294         </nationalNumberPattern>
5295         <exampleNumber>94151234</exampleNumber>
5296       </fixedLine>
5297       <mobile>
5298         <nationalNumberPattern>
5299           9(?:
5300             5(?:
5301               [1246]\d|
5302               3[01]
5303             )|
5304             6(?:
5305               [16-9]\d|
5306               3[01]
5307             )
5308           )\d{4}
5309         </nationalNumberPattern>
5310         <exampleNumber>95181234</exampleNumber>
5311       </mobile>
5312       <pager>
5313         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
5314         <exampleNumber>95581234</exampleNumber>
5315       </pager>
5316       <sharedCost>
5317         <!-- Value-added services are lumped together under shared cost, since we are not sure
5318              exactly what they are. -->
5319         <nationalNumberPattern>
5320           (?:
5321             10|
5322             69
5323           )\d{5}
5324         </nationalNumberPattern>
5325         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5326         <exampleNumber>1011234</exampleNumber>
5327       </sharedCost>
5328     </territory>
5329
5330     <!-- Christmas Islands -->
5331     <!-- Metadata shared with Australia. -->
5332     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
5333     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
5334                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
5335                nationalPrefix="0">
5336       <references>
5337         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
5338         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
5339       </references>
5340       <!-- Uses AU formatting rules. -->
5341       <!-- General desc and fixed line rules different from Australia. -->
5342       <generalDesc>
5343         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
5344         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5345       </generalDesc>
5346       <fixedLine>
5347         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
5348         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
5349         <exampleNumber>891641234</exampleNumber>
5350       </fixedLine>
5351       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5352       <mobile>
5353         <nationalNumberPattern>
5354           14(?:
5355             5\d|
5356             71
5357           )\d{5}|
5358           4(?:
5359             [0-2]\d|
5360             3[0-57-9]|
5361             4[47-9]|
5362             5[0-25-9]|
5363             6[6-9]|
5364             7[03-9]|
5365             8[17-9]|
5366             9[017-9]
5367           )\d{6}
5368         </nationalNumberPattern>
5369         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5370         <exampleNumber>412345678</exampleNumber>
5371       </mobile>
5372       <tollFree>
5373         <nationalNumberPattern>
5374           1(?:
5375             80(?:
5376               0\d{2}
5377             )?|
5378             3(?:
5379               00\d{2}
5380             )?
5381           )\d{4}
5382         </nationalNumberPattern>
5383         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5384         <exampleNumber>1800123456</exampleNumber>
5385       </tollFree>
5386       <premiumRate>
5387         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
5388         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5389         <exampleNumber>1900123456</exampleNumber>
5390       </premiumRate>
5391       <personalNumber>
5392         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
5393         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5394         <exampleNumber>500123456</exampleNumber>
5395       </personalNumber>
5396       <voip>
5397         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
5398         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5399         <exampleNumber>550123456</exampleNumber>
5400       </voip>
5401     </territory>
5402
5403     <!-- Cyprus -->
5404     <territory id="CY" countryCode="357" internationalPrefix="00" mobileNumberPortableRegion="true">
5405       <references>
5406         <sourceUrl>http://www.itu.int/oth/T0202000034/en</sourceUrl>
5407       </references>
5408       <availableFormats>
5409         <!-- Format from http://www.cyprusyellowpages.com -->
5410         <numberFormat pattern="(\d{2})(\d{6})">
5411           <format>$1 $2</format>
5412         </numberFormat>
5413       </availableFormats>
5414       <generalDesc>
5415         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
5416         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5417       </generalDesc>
5418       <fixedLine>
5419         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
5420         <exampleNumber>22345678</exampleNumber>
5421       </fixedLine>
5422       <mobile>
5423         <!-- Includes paging numbers (they are mixed into the same block). -->
5424         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
5425         <exampleNumber>96123456</exampleNumber>
5426       </mobile>
5427       <tollFree>
5428         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
5429         <exampleNumber>80001234</exampleNumber>
5430       </tollFree>
5431       <premiumRate>
5432         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
5433         <exampleNumber>90012345</exampleNumber>
5434       </premiumRate>
5435       <sharedCost>
5436         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
5437         <exampleNumber>80112345</exampleNumber>
5438       </sharedCost>
5439       <personalNumber>
5440         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
5441         <exampleNumber>70012345</exampleNumber>
5442       </personalNumber>
5443       <uan>
5444         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
5445         <nationalNumberPattern>
5446           (?:
5447             50|
5448             77
5449           )\d{6}
5450         </nationalNumberPattern>
5451         <exampleNumber>77123456</exampleNumber>
5452       </uan>
5453     </territory>
5454
5455     <!-- Czech Rep. -->
5456     <territory id="CZ" countryCode="420" internationalPrefix="00" mobileNumberPortableRegion="true">
5457       <references>
5458         <sourceUrl>http://www.itu.int/oth/T0202000035/en</sourceUrl>
5459         <sourceUrl>http://en.wikipedia.org/wiki/%2B420</sourceUrl>
5460       </references>
5461       <availableFormats>
5462         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
5463           <leadingDigits>
5464             [2-8]|
5465             9[015-7]
5466           </leadingDigits>
5467           <format>$1 $2 $3</format>
5468         </numberFormat>
5469         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
5470           <leadingDigits>96</leadingDigits>
5471           <format>$1 $2 $3 $4</format>
5472         </numberFormat>
5473         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
5474           <leadingDigits>9[36]</leadingDigits>
5475           <format>$1 $2 $3 $4</format>
5476         </numberFormat>
5477       </availableFormats>
5478       <generalDesc>
5479         <nationalNumberPattern>
5480           [2-8]\d{8}|
5481           9\d{8,11}
5482         </nationalNumberPattern>
5483         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5484       </generalDesc>
5485       <fixedLine>
5486         <nationalNumberPattern>
5487           2\d{8}|
5488           (?:
5489             3[1257-9]|
5490             4[16-9]|
5491             5[13-9]
5492           )\d{7}
5493         </nationalNumberPattern>
5494         <exampleNumber>212345678</exampleNumber>
5495       </fixedLine>
5496       <mobile>
5497         <nationalNumberPattern>
5498           (?:
5499             60[1-8]|
5500             7(?:
5501               0[2-5]|
5502               [2379]\d
5503             )
5504           )\d{6}
5505         </nationalNumberPattern>
5506         <exampleNumber>601123456</exampleNumber>
5507       </mobile>
5508       <tollFree>
5509         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
5510         <exampleNumber>800123456</exampleNumber>
5511       </tollFree>
5512       <premiumRate>
5513         <!-- Includes premium rate dial-up. -->
5514         <nationalNumberPattern>
5515           9(?:
5516             0[05689]|
5517             76
5518           )\d{6}
5519         </nationalNumberPattern>
5520         <exampleNumber>900123456</exampleNumber>
5521       </premiumRate>
5522       <sharedCost>
5523         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
5524         <exampleNumber>811234567</exampleNumber>
5525       </sharedCost>
5526       <personalNumber>
5527         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
5528         <exampleNumber>700123456</exampleNumber>
5529       </personalNumber>
5530       <voip>
5531         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
5532         <exampleNumber>910123456</exampleNumber>
5533       </voip>
5534       <uan>
5535         <!-- Numbers belonging to private communication networks are included here. These are
5536              classified as Institutional networks, belonging to institutions like the police, armed
5537              forces and railways, along with a couple of formerly government-owned banks. These
5538              numbers are reachable by the public. -->
5539         <nationalNumberPattern>
5540           9(?:
5541             5\d|
5542             7[234]
5543           )\d{6}
5544         </nationalNumberPattern>
5545         <exampleNumber>972123456</exampleNumber>
5546       </uan>
5547       <voicemail>
5548         <nationalNumberPattern>
5549           9(?:
5550             3\d{9}|
5551             6\d{7,10}
5552           )
5553         </nationalNumberPattern>
5554         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5555         <exampleNumber>93123456789</exampleNumber>
5556       </voicemail>
5557     </territory>
5558
5559     <!-- Germany -->
5560     <territory id="DE" countryCode="49" internationalPrefix="00"
5561                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
5562                mobileNumberPortableRegion="true">
5563       <references>
5564         <sourceUrl>http://www.itu.int/oth/T0202000051/en</sourceUrl>
5565         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_germany</sourceUrl>
5566       </references>
5567       <availableFormats>
5568         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
5569              these should best be formatted, even though actual usage varies. -->
5570         <numberFormat pattern="(1\d{2})(\d{7,8})">
5571           <leadingDigits>1[67]</leadingDigits>
5572           <format>$1 $2</format>
5573         </numberFormat>
5574         <numberFormat pattern="(1\d{3})(\d{7})">
5575           <leadingDigits>15</leadingDigits>
5576           <format>$1 $2</format>
5577         </numberFormat>
5578         <numberFormat pattern="(\d{2})(\d{3,11})">
5579           <leadingDigits>
5580             3[02]|
5581             40|
5582             [68]9
5583           </leadingDigits>
5584           <format>$1 $2</format>
5585         </numberFormat>
5586         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
5587         <!-- 3 digit area codes. -->
5588         <numberFormat pattern="(\d{3})(\d{3,11})">
5589           <leadingDigits>
5590             2(?:
5591               \d1|
5592               0[2389]|
5593               1[24]|
5594               28|
5595               34
5596             )|
5597             3(?:
5598               [3-9][15]|
5599               40
5600             )|
5601             [4-8][1-9]1|
5602             9(?:
5603               06|
5604               [1-9]1
5605             )
5606           </leadingDigits>
5607           <format>$1 $2</format>
5608         </numberFormat>
5609         <!-- 4 digit area codes. -->
5610         <numberFormat pattern="(\d{4})(\d{2,11})">
5611           <leadingDigits>
5612             [24-6]|
5613             [7-9](?:
5614               \d[1-9]|
5615               [1-9]\d
5616             )|
5617             3(?:
5618               [3569][02-46-9]|
5619               4[2-4679]|
5620               7[2-467]|
5621               8[2-46-8]
5622             )
5623           </leadingDigits>
5624           <leadingDigits>
5625             [24-6]|
5626             [7-9](?:
5627               \d[1-9]|
5628               [1-9]\d
5629             )|
5630             3(?:
5631               3(?:
5632                 0[1-467]|
5633                 2[127-9]|
5634                 3[124578]|
5635                 [46][1246]|
5636                 7[1257-9]|
5637                 8[1256]|
5638                 9[145]
5639               )|
5640               4(?:
5641                 2[135]|
5642                 3[1357]|
5643                 4[13578]|
5644                 6[1246]|
5645                 7[1356]|
5646                 9[1346]
5647               )|
5648               5(?:
5649                 0[14]|
5650                 2[1-3589]|
5651                 3[1357]|
5652                 4[1246]|
5653                 6[1-4]|
5654                 7[1346]|
5655                 8[13568]|
5656                 9[1246]
5657               )|
5658               6(?:
5659                 0[356]|
5660                 2[1-489]|
5661                 3[124-6]|
5662                 4[1347]|
5663                 6[13]|
5664                 7[12579]|
5665                 8[1-356]|
5666                 9[135]
5667               )|
5668               7(?:
5669                 2[1-7]|
5670                 3[1357]|
5671                 4[145]|
5672                 6[1-5]|
5673                 7[1-4]
5674               )|
5675               8(?:
5676                 21|
5677                 3[1468]|
5678                 4[1347]|
5679                 6[0135-9]|
5680                 7[1467]|
5681                 8[136]
5682               )|
5683               9(?:
5684                 0[12479]|
5685                 2[1358]|
5686                 3[1357]|
5687                 4[134679]|
5688                 6[1-9]|
5689                 7[136]|
5690                 8[147]|
5691                 9[1468]
5692               )
5693             )
5694           </leadingDigits>
5695           <format>$1 $2</format>
5696         </numberFormat>
5697         <!-- 5 digit area codes. -->
5698         <numberFormat pattern="(3\d{4})(\d{1,10})">
5699           <leadingDigits>3</leadingDigits>
5700           <format>$1 $2</format>
5701         </numberFormat>
5702         <!-- Note: this is getting ridiculous! How can we format these better? -->
5703         <numberFormat pattern="(800)(\d{7,12})">
5704           <leadingDigits>800</leadingDigits>
5705           <format>$1 $2</format>
5706         </numberFormat>
5707         <!-- Voicemail access numbers for the carrier Blau. -->
5708         <numberFormat pattern="(177)(99)(\d{7,8})">
5709           <leadingDigits>177</leadingDigits>
5710           <leadingDigits>1779</leadingDigits>
5711           <leadingDigits>17799</leadingDigits>
5712           <format>$1 $2 $3</format>
5713         </numberFormat>
5714         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
5715           <leadingDigits>
5716             (?:
5717               18|
5718               90
5719             )0|
5720             137
5721           </leadingDigits>
5722           <leadingDigits>
5723             1(?:
5724               37|
5725               80
5726             )|
5727             900[1359]
5728           </leadingDigits>
5729           <format>$1 $2 $3</format>
5730         </numberFormat>
5731         <numberFormat pattern="(1\d{2})(\d{5,11})">
5732           <leadingDigits>181</leadingDigits>
5733           <format>$1 $2</format>
5734         </numberFormat>
5735         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
5736              way it is generally written. For other prefixes, we fall back to using a three-digit
5737              prefix since we have currently no more information to allow us to format these more
5738              precisely. -->
5739         <numberFormat pattern="(18\d{3})(\d{6})">
5740           <leadingDigits>185</leadingDigits>
5741           <leadingDigits>1850</leadingDigits>
5742           <leadingDigits>18500</leadingDigits>
5743           <format>$1 $2</format>
5744         </numberFormat>
5745         <numberFormat pattern="(18\d{2})(\d{7})">
5746           <leadingDigits>18[68]</leadingDigits>
5747           <format>$1 $2</format>
5748         </numberFormat>
5749         <numberFormat pattern="(18\d)(\d{8})">
5750           <leadingDigits>18[2-579]</leadingDigits>
5751           <format>$1 $2</format>
5752         </numberFormat>
5753         <numberFormat pattern="(700)(\d{4})(\d{4})">
5754           <leadingDigits>700</leadingDigits>
5755           <format>$1 $2 $3</format>
5756         </numberFormat>
5757         <numberFormat pattern="(138)(\d{4})">
5758           <leadingDigits>138</leadingDigits>
5759           <format>$1 $2</format>
5760         </numberFormat>
5761       </availableFormats>
5762       <generalDesc>
5763         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
5764              examined to see if it is valid with the 49 as part of the number. Due to the variable
5765              length of German numbers, this test is hard to do. The national pattern is hence
5766              stricter for numbers starting with 49, to try and remove the country code if the number
5767              begins with 49 whenever possible. -->
5768         <nationalNumberPattern>
5769           [1-35-9]\d{3,14}|
5770           4(?:
5771             [0-8]\d{4,12}|
5772             9(?:
5773               [0-37]\d|
5774               4(?:
5775                 [1-35-8]|
5776                 4\d?
5777               )|
5778               5\d{1,2}|
5779               6[1-8]\d?
5780             )\d{2,8}
5781           )
5782         </nationalNumberPattern>
5783         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
5784       </generalDesc>
5785       <fixedLine>
5786         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
5787              don't seem to respect this. The max-length is hence extended. -->
5788         <nationalNumberPattern>
5789           [246]\d{5,13}|
5790           3(?:
5791             0\d{3,13}|
5792             2\d{9}|
5793             [3-9]\d{4,13}
5794           )|
5795           5(?:
5796             0[2-8]|
5797             [1256]\d|
5798             [38][0-8]|
5799             4\d{0,2}|
5800             [79][0-7]
5801           )\d{3,11}|
5802           7(?:
5803             0[2-8]|
5804             [1-9]\d
5805           )\d{3,10}|
5806           8(?:
5807             0[2-9]|
5808             [1-9]\d
5809           )\d{3,10}|
5810           9(?:
5811             0[6-9]\d{3,10}|
5812             1\d{4,12}|
5813             [2-9]\d{4,11}
5814           )
5815         </nationalNumberPattern>
5816         <exampleNumber>30123456</exampleNumber>
5817       </fixedLine>
5818       <mobile>
5819         <!-- According to
5820              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
5821              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
5822              The ranges 15[056] have been removed from the ITU doc, but information found online
5823              indicates that they may still be working.
5824              -->
5825         <nationalNumberPattern>
5826           1(?:
5827             5[0-2579]\d{8}|
5828             6[023]\d{7,8}|
5829             7(?:
5830               [0-57-9]\d?|
5831               6\d
5832             )\d{7}
5833           )
5834         </nationalNumberPattern>
5835         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5836         <exampleNumber>15123456789</exampleNumber>
5837       </mobile>
5838       <pager>
5839         <nationalNumberPattern>
5840           16(?:
5841             4\d{1,10}|
5842             [89]\d{1,11}
5843           )
5844         </nationalNumberPattern>
5845         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
5846         <exampleNumber>16412345</exampleNumber>
5847       </pager>
5848       <tollFree>
5849         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
5850         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
5851         <exampleNumber>8001234567890</exampleNumber>
5852       </tollFree>
5853       <premiumRate>
5854         <!-- Includes the more expensive of the "televoting" line numbers. See the shared cost
5855              section for more information. -->
5856         <nationalNumberPattern>
5857           137[7-9]\d{6}|
5858           900(?:
5859             [135]\d{6}|
5860             9\d{7}
5861           )
5862         </nationalNumberPattern>
5863         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5864         <exampleNumber>9001234567</exampleNumber>
5865       </premiumRate>
5866       <sharedCost>
5867         <!-- Includes some mass-traffic numbers, used for e.g. phone voting, raffles, since their
5868              costs when dialling from a fixed-line phone is similar.
5869              Prices:
5870              http://www.billiger-telefonieren.de/0180-0137-0900-sonderrufnummern/
5871              Documentation:
5872              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/0137/0137_Nummernplan.pdf?__blob=publicationFile&v=2
5873         -->
5874         <nationalNumberPattern>
5875           1(?:
5876             3(?:
5877               7[1-6]\d{6}|
5878               8\d{4}
5879             )|
5880             80\d{5,11}
5881           )
5882         </nationalNumberPattern>
5883         <possibleNumberPattern>\d{7,14}</possibleNumberPattern>
5884         <exampleNumber>18012345</exampleNumber>
5885       </sharedCost>
5886       <personalNumber>
5887         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
5888         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5889         <exampleNumber>70012345678</exampleNumber>
5890       </personalNumber>
5891       <uan>
5892         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
5893              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
5894              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
5895         <nationalNumberPattern>
5896           18(?:
5897             1\d{5,11}|
5898             [2-9]\d{8}
5899           )
5900         </nationalNumberPattern>
5901         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5902         <exampleNumber>18500123456</exampleNumber>
5903       </uan>
5904       <voicemail>
5905         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
5906         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
5907         <exampleNumber>177991234567</exampleNumber>
5908       </voicemail>
5909     </territory>
5910
5911     <!-- Djibouti -->
5912     <territory id="DJ" countryCode="253" internationalPrefix="00">
5913       <references>
5914         <sourceUrl>http://www.itu.int/oth/T020200003A/en</sourceUrl>
5915       </references>
5916       <availableFormats>
5917         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5918           <format>$1 $2 $3 $4</format>
5919         </numberFormat>
5920       </availableFormats>
5921       <generalDesc>
5922         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
5923         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5924       </generalDesc>
5925       <fixedLine>
5926         <!-- Includes "Numéro long CDMA fixe" numbers. -->
5927         <nationalNumberPattern>
5928           2(?:
5929             1[2-5]|
5930             7[45]
5931           )\d{5}
5932         </nationalNumberPattern>
5933         <exampleNumber>21360003</exampleNumber>
5934       </fixedLine>
5935       <mobile>
5936         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
5937         <exampleNumber>77831001</exampleNumber>
5938       </mobile>
5939     </territory>
5940
5941     <!-- Denmark -->
5942     <territory id="DK" countryCode="45" internationalPrefix="00" mobileNumberPortableRegion="true">
5943       <references>
5944         <sourceUrl>http://www.dba.erhvervsstyrelsen.dk/numbering-lists</sourceUrl>
5945       </references>
5946       <availableFormats>
5947         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5948           <format>$1 $2 $3 $4</format>
5949         </numberFormat>
5950       </availableFormats>
5951       <generalDesc>
5952         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
5953         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5954       </generalDesc>
5955       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
5956            safe. -->
5957       <fixedLine>
5958         <nationalNumberPattern>
5959           (?:
5960             [2-7]\d|
5961             8[126-9]|
5962             9[1-36-9]
5963           )\d{6}
5964         </nationalNumberPattern>
5965         <exampleNumber>32123456</exampleNumber>
5966       </fixedLine>
5967       <mobile>
5968         <nationalNumberPattern>
5969           (?:
5970             [2-7]\d|
5971             8[126-9]|
5972             9[1-36-9]
5973           )\d{6}
5974         </nationalNumberPattern>
5975         <exampleNumber>20123456</exampleNumber>
5976       </mobile>
5977       <tollFree>
5978         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
5979         <exampleNumber>80123456</exampleNumber>
5980       </tollFree>
5981       <premiumRate>
5982         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
5983         <exampleNumber>90123456</exampleNumber>
5984       </premiumRate>
5985     </territory>
5986
5987     <!-- Dominica -->
5988     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
5989                internationalPrefix="011">
5990       <references>
5991         <sourceUrl>http://www.itu.int/oth/T020200003B/en</sourceUrl>
5992       </references>
5993       <generalDesc>
5994         <!-- NANPA country - uses US formatting rules -->
5995         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
5996         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5997       </generalDesc>
5998       <fixedLine>
5999         <nationalNumberPattern>
6000           767(?:
6001             2(?:
6002               55|
6003               66
6004             )|
6005             4(?:
6006               2[01]|
6007               4[0-25-9]
6008             )|
6009             50[0-4]|
6010             70[1-3]
6011           )\d{4}
6012         </nationalNumberPattern>
6013         <exampleNumber>7674201234</exampleNumber>
6014       </fixedLine>
6015       <mobile>
6016         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
6017         <nationalNumberPattern>
6018           767(?:
6019             2(?:
6020               [234689]5|
6021               7[5-7]
6022             )|
6023             31[5-7]|
6024             61[2-7]
6025           )\d{4}
6026         </nationalNumberPattern>
6027         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6028         <exampleNumber>7672251234</exampleNumber>
6029       </mobile>
6030       <tollFree>
6031         <nationalNumberPattern>
6032           8(?:
6033             00|
6034             44|
6035             55|
6036             66|
6037             77|
6038             88
6039           )[2-9]\d{6}
6040         </nationalNumberPattern>
6041         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6042         <exampleNumber>8002123456</exampleNumber>
6043       </tollFree>
6044       <premiumRate>
6045         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6046         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6047         <exampleNumber>9002123456</exampleNumber>
6048       </premiumRate>
6049       <personalNumber>
6050         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6051         <nationalNumberPattern>
6052           5(?:
6053             00|
6054             33|
6055             44|
6056             66|
6057             77
6058           )[2-9]\d{6}
6059         </nationalNumberPattern>
6060         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6061         <exampleNumber>5002345678</exampleNumber>
6062       </personalNumber>
6063     </territory>
6064
6065     <!-- Dominican Rep. -->
6066     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
6067                internationalPrefix="011" mobileNumberPortableRegion="true">
6068       <references>
6069         <sourceUrl>http://www.itu.int/oth/T020200003C/en</sourceUrl>
6070       </references>
6071       <generalDesc>
6072         <!-- NANPA country - uses US formatting rules -->
6073         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
6074         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
6075       </generalDesc>
6076       <fixedLine>
6077         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
6078              prefixes in the document are classified as such by excluding them from the fixed-line
6079              ranges, but other than this have a generic rule. -->
6080         <nationalNumberPattern>
6081           8(?:
6082             [04]9[2-9]\d{6}|
6083             29(?:
6084               2(?:
6085                 [0-59]\d|
6086                 6[04-9]|
6087                 7[0-27]|
6088                 8[0237-9]
6089               )|
6090               3(?:
6091                 [0-35-9]\d|
6092                 4[7-9]
6093               )|
6094               [45]\d{2}|
6095               6(?:
6096                 [0-27-9]\d|
6097                 [3-5][1-9]|
6098                 6[0135-8]
6099               )|
6100               7(?:
6101                 0[013-9]|
6102                 [1-37]\d|
6103                 4[1-35689]|
6104                 5[1-4689]|
6105                 6[1-57-9]|
6106                 8[1-79]|
6107                 9[1-8]
6108               )|
6109               8(?:
6110                 0[146-9]|
6111                 1[0-48]|
6112                 [248]\d|
6113                 3[1-79]|
6114                 5[01589]|
6115                 6[013-68]|
6116                 7[124-8]|
6117                 9[0-8]
6118               )|
6119               9(?:
6120                 [0-24]\d|
6121                 3[02-46-9]|
6122                 5[0-79]|
6123                 60|
6124                 7[0169]|
6125                 8[57-9]|
6126                 9[02-9]
6127               )
6128             )\d{4}
6129           )
6130         </nationalNumberPattern>
6131         <exampleNumber>8092345678</exampleNumber>
6132       </fixedLine>
6133       <mobile>
6134         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
6135         <exampleNumber>8092345678</exampleNumber>
6136       </mobile>
6137       <tollFree>
6138         <nationalNumberPattern>
6139           8(?:
6140             00|
6141             44|
6142             55|
6143             66|
6144             77|
6145             88
6146           )[2-9]\d{6}
6147         </nationalNumberPattern>
6148         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6149         <exampleNumber>8002123456</exampleNumber>
6150       </tollFree>
6151       <premiumRate>
6152         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6153         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6154         <exampleNumber>9002123456</exampleNumber>
6155       </premiumRate>
6156       <personalNumber>
6157         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6158         <nationalNumberPattern>
6159           5(?:
6160             00|
6161             33|
6162             44|
6163             66|
6164             77
6165           )[2-9]\d{6}
6166         </nationalNumberPattern>
6167         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6168         <exampleNumber>5002345678</exampleNumber>
6169       </personalNumber>
6170    </territory>
6171
6172     <!-- Algeria -->
6173     <territory id="DZ" countryCode="213" internationalPrefix="00"
6174                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6175       <references>
6176         <sourceUrl>http://www.itu.int/oth/T0202000003/en</sourceUrl>
6177         <sourceUrl>http://www.arpt.dz</sourceUrl>
6178       </references>
6179       <availableFormats>
6180         <!-- Formatting from http://www.pagesjaunes-dz.com. -->
6181         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
6182           <leadingDigits>[1-4]</leadingDigits>
6183           <format>$1 $2 $3 $4</format>
6184         </numberFormat>
6185         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
6186           <leadingDigits>[5-8]</leadingDigits>
6187           <format>$1 $2 $3 $4</format>
6188         </numberFormat>
6189         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
6190           <leadingDigits>9</leadingDigits>
6191           <format>$1 $2 $3 $4</format>
6192         </numberFormat>
6193       </availableFormats>
6194       <generalDesc>
6195         <nationalNumberPattern>
6196           (?:
6197             [1-4]|
6198             [5-9]\d
6199           )\d{7}
6200         </nationalNumberPattern>
6201         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6202       </generalDesc>
6203       <fixedLine>
6204         <!-- We include the VSAT lines here. -->
6205         <nationalNumberPattern>
6206           (?:
6207             1\d|
6208             2[014-79]|
6209             3[0-8]|
6210             4[0135689]
6211           )\d{6}|
6212           9619\d{5}
6213         </nationalNumberPattern>
6214         <exampleNumber>12345678</exampleNumber>
6215       </fixedLine>
6216       <mobile>
6217         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6218              Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-4] were also added for
6219              Mobilis Algeria based on evidence found online. -->
6220         <nationalNumberPattern>
6221           (?:
6222             5[4-6]|
6223             7[7-9]
6224           )\d{7}|
6225           6(?:
6226             [569]\d|
6227             7[0-4]
6228           )\d{6}
6229         </nationalNumberPattern>
6230         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6231         <exampleNumber>551234567</exampleNumber>
6232       </mobile>
6233       <tollFree>
6234         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
6235         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6236         <exampleNumber>800123456</exampleNumber>
6237       </tollFree>
6238       <premiumRate>
6239         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
6240         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6241         <exampleNumber>808123456</exampleNumber>
6242       </premiumRate>
6243       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
6244            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
6245            -->
6246       <sharedCost>
6247         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
6248         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6249         <exampleNumber>801123456</exampleNumber>
6250       </sharedCost>
6251       <voip>
6252         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
6253         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6254         <exampleNumber>983123456</exampleNumber>
6255       </voip>
6256    </territory>
6257
6258     <!-- Ecuador -->
6259     <territory id="EC" countryCode="593" internationalPrefix="00"
6260                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
6261                mobileNumberPortableRegion="true">
6262       <references>
6263         <sourceUrl>http://en.wikipedia.org/wiki/+593</sourceUrl>
6264         <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>
6265         <sourceUrl>http://www.itu.int/oth/T020200003D/en</sourceUrl>
6266       </references>
6267       <availableFormats>
6268         <numberFormat pattern="(\d)(\d{3})(\d{4})">
6269           <leadingDigits>
6270             [247]|
6271             [356][2-8]
6272           </leadingDigits>
6273           <format>$1 $2-$3</format>
6274           <intlFormat>$1-$2-$3</intlFormat>
6275         </numberFormat>
6276         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
6277              change on the http://www.conatel.gob.ec site. -->
6278         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
6279           <leadingDigits>9</leadingDigits>
6280           <format>$1 $2 $3</format>
6281         </numberFormat>
6282         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
6283           <leadingDigits>1</leadingDigits>
6284           <format>$1 $2 $3</format>
6285         </numberFormat>
6286       </availableFormats>
6287       <generalDesc>
6288         <nationalNumberPattern>
6289           1\d{9,10}|
6290           [2-8]\d{7}|
6291           9\d{8}
6292         </nationalNumberPattern>
6293         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
6294       </generalDesc>
6295       <fixedLine>
6296         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
6297         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6298         <exampleNumber>22123456</exampleNumber>
6299       </fixedLine>
6300       <mobile>
6301         <nationalNumberPattern>
6302           9(?:
6303             39|
6304             [45][89]|
6305             [67][7-9]|
6306             [89]\d
6307           )\d{6}
6308         </nationalNumberPattern>
6309         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6310         <exampleNumber>991234567</exampleNumber>
6311       </mobile>
6312       <tollFree>
6313         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
6314         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
6315         <exampleNumber>18001234567</exampleNumber>
6316       </tollFree>
6317       <voip>
6318         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
6319         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6320         <exampleNumber>28901234</exampleNumber>
6321       </voip>
6322     </territory>
6323
6324     <!-- Estonia -->
6325     <territory id="EE" countryCode="372" internationalPrefix="00" mobileNumberPortableRegion="true">
6326       <references>
6327         <sourceUrl>http://www.itu.int/oth/T0202000043/en</sourceUrl>
6328         <sourceUrl>http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm</sourceUrl>
6329       </references>
6330       <availableFormats>
6331         <numberFormat pattern="([3-79]\d{2})(\d{4})">
6332           <leadingDigits>
6333             [369]|
6334             4[3-8]|
6335             5(?:
6336               [0-2]|
6337               5[0-478]|
6338               6[45]
6339             )|
6340             7[1-9]
6341           </leadingDigits>
6342           <leadingDigits>
6343             [369]|
6344             4[3-8]|
6345             5(?:
6346               [02]|
6347               1(?:
6348                 [0-8]|
6349                 95
6350               )|
6351               5[0-478]|
6352               6(?:
6353                 4[0-4]|
6354                 5[1-589]
6355               )
6356             )|
6357             7[1-9]
6358           </leadingDigits>
6359           <format>$1 $2</format>
6360         </numberFormat>
6361         <numberFormat pattern="(70)(\d{2})(\d{4})">
6362           <leadingDigits>70</leadingDigits>
6363           <format>$1 $2 $3</format>
6364         </numberFormat>
6365         <numberFormat pattern="(8000)(\d{3})(\d{3})">
6366           <leadingDigits>800</leadingDigits>
6367           <leadingDigits>8000</leadingDigits>
6368           <format>$1 $2 $3</format>
6369         </numberFormat>
6370         <numberFormat pattern="([458]\d{3})(\d{3,4})">
6371           <leadingDigits>
6372             40|
6373             5|
6374             8(?:
6375               00|
6376               [1-5]
6377             )
6378           </leadingDigits>
6379           <leadingDigits>
6380             40|
6381             5|
6382             8(?:
6383               00[1-9]|
6384               [1-5]
6385             )
6386           </leadingDigits>
6387           <format>$1 $2</format>
6388         </numberFormat>
6389       </availableFormats>
6390       <generalDesc>
6391         <nationalNumberPattern>
6392           1\d{3,4}|
6393           [3-9]\d{6,7}|
6394           800\d{6,7}
6395         </nationalNumberPattern>
6396         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
6397       </generalDesc>
6398       <noInternationalDialling>
6399         <nationalNumberPattern>
6400           1\d{3,4}|
6401           800[2-9]\d{3}
6402         </nationalNumberPattern>
6403         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
6404         <exampleNumber>8002123</exampleNumber>
6405       </noInternationalDialling>
6406       <fixedLine>
6407         <nationalNumberPattern>
6408           (?:
6409             3[23589]|
6410             4[3-8]|
6411             6\d|
6412             7[1-9]|
6413             88
6414           )\d{5}
6415         </nationalNumberPattern>
6416         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6417         <exampleNumber>3212345</exampleNumber>
6418       </fixedLine>
6419       <mobile>
6420         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
6421              numbers are 8 digits. -->
6422         <nationalNumberPattern>
6423           (?:
6424             5\d|
6425             8[1-5]
6426           )\d{6}|
6427           5(?:
6428             [02]\d{2}|
6429             1(?:
6430               [0-8]\d|
6431               95
6432             )|
6433             5[0-478]\d|
6434             64[0-4]|
6435             65[1-589]
6436           )\d{3}
6437         </nationalNumberPattern>
6438         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6439         <exampleNumber>51234567</exampleNumber>
6440       </mobile>
6441       <tollFree>
6442         <nationalNumberPattern>
6443           800(?:
6444             0\d{3}|
6445             1\d|
6446             [2-9]
6447           )\d{3}
6448         </nationalNumberPattern>
6449         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6450         <exampleNumber>80012345</exampleNumber>
6451       </tollFree>
6452       <premiumRate>
6453         <!-- Supporting eFax numbers here as well. We aren't sure the exact cost, but have
6454              had user reports that they are expensive to dial. -->
6455         <nationalNumberPattern>
6456           (?:
6457             40\d{2}|
6458             900
6459           )\d{4}
6460         </nationalNumberPattern>
6461         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6462         <exampleNumber>9001234</exampleNumber>
6463       </premiumRate>
6464       <personalNumber>
6465         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
6466         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6467         <exampleNumber>70012345</exampleNumber>
6468       </personalNumber>
6469       <uan>
6470         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
6471              included here. -->
6472         <nationalNumberPattern>
6473           1(?:
6474             2[01245]|
6475             3[0-6]|
6476             4[1-489]|
6477             5[0-59]|
6478             6[1-46-9]|
6479             7[0-27-9]|
6480             8[189]|
6481             9[012]
6482           )\d{1,2}
6483         </nationalNumberPattern>
6484         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
6485         <exampleNumber>12123</exampleNumber>
6486       </uan>
6487     </territory>
6488
6489     <!-- Egypt -->
6490     <territory id="EG" countryCode="20" internationalPrefix="00"
6491                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
6492                mobileNumberPortableRegion="true">
6493        <references>
6494          <sourceUrl>http://www.itu.int/oth/T020200003E/en</sourceUrl>
6495        </references>
6496        <availableFormats>
6497          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
6498               or 19. These are formatted without national prefix, as a block, so do not need to be
6499               listed here. -->
6500          <numberFormat pattern="(\d)(\d{7,8})">
6501            <leadingDigits>[23]</leadingDigits>
6502            <format>$1 $2</format>
6503          </numberFormat>
6504          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
6505            <leadingDigits>
6506              1[012]|
6507              [89]00
6508            </leadingDigits>
6509            <format>$1 $2 $3</format>
6510          </numberFormat>
6511          <numberFormat pattern="(\d{2})(\d{6,7})">
6512            <leadingDigits>
6513              1[35]|
6514              [4-6]|
6515              [89][2-9]
6516            </leadingDigits>
6517            <format>$1 $2</format>
6518          </numberFormat>
6519        </availableFormats>
6520       <generalDesc>
6521         <nationalNumberPattern>
6522           1\d{4,9}|
6523           [2456]\d{8}|
6524           3\d{7}|
6525           [89]\d{8,9}
6526         </nationalNumberPattern>
6527         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6528       </generalDesc>
6529       <fixedLine>
6530         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
6531              that the plan says numbers starting with 15 should be followed by seven digit
6532              subscriber numbers, but some numbers we have found online are in fact six digit.
6533              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
6534              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
6535              092 and with 5 and 6 for 96. -->
6536         <nationalNumberPattern>
6537           (?:
6538             1(?:
6539               3[23]\d|
6540               5(?:
6541                 [23]|
6542                 9\d
6543               )
6544             )|
6545             2[2-4]\d{2}|
6546             3\d{2}|
6547             4(?:
6548               0[2-5]|
6549               [578][23]|
6550               64
6551             )\d|
6552             5(?:
6553               0[2-7]|
6554               [57][23]
6555             )\d|
6556             6[24-689]3\d|
6557             8(?:
6558               2[2-57]|
6559               4[26]|
6560               6[237]|
6561               8[2-4]
6562             )\d|
6563             9(?:
6564               2[27]|
6565               3[24]|
6566               52|
6567               6[2356]|
6568               7[2-4]
6569             )\d
6570           )\d{5}|
6571           1[69]\d{3}
6572         </nationalNumberPattern>
6573         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
6574         <exampleNumber>234567890</exampleNumber>
6575       </fixedLine>
6576       <mobile>
6577         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
6578              started allocating numbers beginning with these prefixes, along with 115 from numbers
6579              found online. Etisalat is using 110. -->
6580         <nationalNumberPattern>
6581           1(?:
6582             0[0-269]|
6583             1[0-245]|
6584             2[0-278]
6585           )\d{7}
6586         </nationalNumberPattern>
6587         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6588         <exampleNumber>1001234567</exampleNumber>
6589       </mobile>
6590       <tollFree>
6591         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
6592         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6593         <exampleNumber>8001234567</exampleNumber>
6594       </tollFree>
6595       <premiumRate>
6596         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
6597         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6598         <exampleNumber>9001234567</exampleNumber>
6599       </premiumRate>
6600     </territory>
6601
6602     <!-- Western Sahara -->
6603     <!-- Country calling code shared with Morocco (MA). -->
6604     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
6605     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
6606                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6607       <references>
6608         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
6609       </references>
6610       <!-- Uses MA formatting rules and shares general description
6611            (non-geographical numbers for Morocco are still valid). -->
6612       <generalDesc>
6613         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
6614         <!-- Closed numbering plan. -->
6615         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6616       </generalDesc>
6617       <fixedLine>
6618         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
6619         <exampleNumber>528812345</exampleNumber>
6620       </fixedLine>
6621       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
6622            numbers to be recognized as available from within Western Sahara. -->
6623       <mobile>
6624         <nationalNumberPattern>
6625           6(?:
6626             0[0-8]|
6627             [12-79]\d|
6628             8[01]
6629           )\d{6}
6630         </nationalNumberPattern>
6631         <exampleNumber>650123456</exampleNumber>
6632       </mobile>
6633       <tollFree>
6634         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
6635         <exampleNumber>801234567</exampleNumber>
6636       </tollFree>
6637       <premiumRate>
6638         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
6639         <exampleNumber>891234567</exampleNumber>
6640       </premiumRate>
6641     </territory>
6642
6643     <!-- Eritrea -->
6644     <territory id="ER" countryCode="291" internationalPrefix="00"
6645                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6646       <references>
6647         <sourceUrl>http://www.itu.int/oth/T0202000042/en</sourceUrl>
6648       </references>
6649       <availableFormats>
6650         <numberFormat pattern="(\d)(\d{3})(\d{3})">
6651           <format>$1 $2 $3</format>
6652         </numberFormat>
6653       </availableFormats>
6654       <generalDesc>
6655         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
6656         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
6657       </generalDesc>
6658       <fixedLine>
6659         <nationalNumberPattern>
6660           1(?:
6661             1[12568]|
6662             20|
6663             40|
6664             55|
6665             6[146]
6666           )\d{4}|
6667           8\d{6}
6668         </nationalNumberPattern>
6669         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
6670       </fixedLine>
6671       <mobile>
6672         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
6673              numbers or was in addition to them, so we support both here. -->
6674         <nationalNumberPattern>
6675           17[1-3]\d{4}|
6676           7\d{6}
6677         </nationalNumberPattern>
6678         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6679         <exampleNumber>7123456</exampleNumber>
6680       </mobile>
6681     </territory>
6682
6683     <!-- Spain -->
6684     <territory id="ES" countryCode="34" internationalPrefix="00" mobileNumberPortableRegion="true">
6685       <references>
6686         <sourceUrl>http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx</sourceUrl>
6687       </references>
6688       <availableFormats>
6689         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
6690           <leadingDigits>
6691             [568]|
6692             [79][0-8]
6693           </leadingDigits>
6694           <format>$1 $2 $3 $4</format>
6695         </numberFormat>
6696       </availableFormats>
6697       <generalDesc>
6698         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
6699         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6700       </generalDesc>
6701       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
6702            fixed-line ranges. -->
6703       <fixedLine>
6704         <nationalNumberPattern>
6705           8(?:
6706             [13]0|
6707             [28][0-8]|
6708             [47][1-9]|
6709             5[01346-9]|
6710             6[0457-9]
6711           )\d{6}|
6712           9(?:
6713             [1238][0-8]\d{6}|
6714             4[1-9]\d{6}|
6715             5\d{7}|
6716             6(?:
6717               [0-8]\d{6}|
6718               9(?:
6719                 0(?:
6720                   [0-57-9]\d{4}|
6721                   6(?:
6722                     0[0-8]|
6723                     1[1-9]|
6724                     [2-9]\d
6725                   )\d{2}
6726                 )|
6727                 [1-9]\d{5}
6728               )
6729             )|
6730             7(?:
6731               [124-9]\d{2}|
6732               3(?:
6733                 [0-8]\d|
6734                 9[1-9]
6735               )
6736             )\d{4}
6737           )
6738         </nationalNumberPattern>
6739         <exampleNumber>810123456</exampleNumber>
6740       </fixedLine>
6741       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
6742            information received from Lleida Networks. -->
6743       <mobile>
6744         <nationalNumberPattern>
6745           (?:
6746             6\d{6}|
6747             7[1-4]\d{5}|
6748             9(?:
6749               6906(?:
6750                 09|
6751                 10
6752               )|
6753               7390\d{2}
6754             )
6755           )\d{2}
6756         </nationalNumberPattern>
6757         <exampleNumber>612345678</exampleNumber>
6758       </mobile>
6759       <tollFree>
6760         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
6761         <exampleNumber>800123456</exampleNumber>
6762       </tollFree>
6763       <premiumRate>
6764         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
6765         <exampleNumber>803123456</exampleNumber>
6766       </premiumRate>
6767       <sharedCost>
6768         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
6769         <exampleNumber>901123456</exampleNumber>
6770       </sharedCost>
6771       <personalNumber>
6772         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
6773         <exampleNumber>701234567</exampleNumber>
6774       </personalNumber>
6775       <!-- Modelling non-geographic nomadic numbers as UAN. -->
6776       <uan>
6777         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
6778         <exampleNumber>511234567</exampleNumber>
6779       </uan>
6780     </territory>
6781
6782     <!-- Ethiopia -->
6783     <territory id="ET" countryCode="251" internationalPrefix="00"
6784                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6785       <references>
6786         <sourceUrl>http://www.itu.int/oth/T0202000044/en</sourceUrl>
6787       </references>
6788       <availableFormats>
6789         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
6790           <format>$1 $2 $3</format>
6791         </numberFormat>
6792       </availableFormats>
6793       <generalDesc>
6794         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
6795         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
6796       </generalDesc>
6797       <fixedLine>
6798         <nationalNumberPattern>
6799           (?:
6800             11(?:
6801               1(?:
6802                 1[124]|
6803                 2[2-57]|
6804                 3[1-5]|
6805                 5[5-8]|
6806                 8[6-8]
6807               )|
6808               2(?:
6809                 13|
6810                 3[6-8]|
6811                 5[89]|
6812                 7[05-9]|
6813                 8[2-6]
6814               )|
6815               3(?:
6816                 2[01]|
6817                 3[0-289]|
6818                 4[1289]|
6819                 7[1-4]|
6820                 87
6821               )|
6822               4(?:
6823                 1[69]|
6824                 3[2-49]|
6825                 4[0-3]|
6826                 6[5-8]
6827               )|
6828               5(?:
6829                 1[57]|
6830                 44|
6831                 5[0-4]
6832               )|
6833               6(?:
6834                 18|
6835                 2[69]|
6836                 4[5-7]|
6837                 5[1-5]|
6838                 6[0-59]|
6839                 8[015-8]
6840               )
6841             )|
6842             2(?:
6843               2(?:
6844                 11[1-9]|
6845                 22[0-7]|
6846                 33\d|
6847                 44[1467]|
6848                 66[1-68]
6849               )|
6850               5(?:
6851                 11[124-6]|
6852                 33[2-8]|
6853                 44[1467]|
6854                 55[14]|
6855                 66[1-3679]|
6856                 77[124-79]|
6857                 880
6858               )
6859             )|
6860             3(?:
6861               3(?:
6862                 11[0-46-8]|
6863                 22[0-6]|
6864                 33[0134689]|
6865                 44[04]|
6866                 55[0-6]|
6867                 66[01467]
6868               )|
6869               4(?:
6870                 44[0-8]|
6871                 55[0-69]|
6872                 66[0-3]|
6873                 77[1-5]
6874               )
6875             )|
6876             4(?:
6877               6(?:
6878                 22[0-24-7]|
6879                 33[1-5]|
6880                 44[13-69]|
6881                 55[14-689]|
6882                 660|
6883                 88[1-4]
6884               )|
6885               7(?:
6886                 11[1-9]|
6887                 22[1-9]|
6888                 33[13-7]|
6889                 44[13-6]|
6890                 55[1-689]
6891               )
6892             )|
6893             5(?:
6894               7(?:
6895                 227|
6896                 55[05]|
6897                 (?:
6898                   66|
6899                   77
6900                 )[14-8]
6901               )|
6902               8(?:
6903                 11[149]|
6904                 22[013-79]|
6905                 33[0-68]|
6906                 44[013-8]|
6907                 550|
6908                 66[1-5]|
6909                 77\d
6910               )
6911             )
6912           )\d{4}
6913         </nationalNumberPattern>
6914         <exampleNumber>111112345</exampleNumber>
6915       </fixedLine>
6916       <mobile>
6917         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
6918              numbers are visible online than are reported in the ITU document. This pattern is
6919              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
6920              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
6921         <nationalNumberPattern>
6922           9(?:
6923             [1-3]\d|
6924             5[89]
6925           )\d{6}
6926         </nationalNumberPattern>
6927         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6928         <exampleNumber>911234567</exampleNumber>
6929       </mobile>
6930     </territory>
6931
6932     <!-- Finland -->
6933     <!-- Metadata shared with Ã…land (AX) -->
6934     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
6935                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
6936                mobileNumberPortableRegion="true">
6937       <references>
6938         <sourceUrl>https://www.viestintavirasto.fi/internetpuhelin/puhelinverkonnumerointi.html</sourceUrl>
6939       </references>
6940       <availableFormats>
6941         <numberFormat pattern="(\d{3})(\d{3,7})">
6942           <leadingDigits>
6943             (?:
6944               [1-3]00|
6945               [6-8]0
6946             )
6947           </leadingDigits>
6948           <format>$1 $2</format>
6949         </numberFormat>
6950         <numberFormat pattern="(\d{2})(\d{4,10})">
6951           <leadingDigits>
6952             [14]|
6953             2[09]|
6954             50|
6955             7[135]
6956           </leadingDigits>
6957           <format>$1 $2</format>
6958         </numberFormat>
6959         <numberFormat pattern="(\d)(\d{4,11})">
6960           <leadingDigits>
6961             [25689][1-8]|
6962             3
6963           </leadingDigits>
6964           <format>$1 $2</format>
6965         </numberFormat>
6966       </availableFormats>
6967       <generalDesc>
6968         <nationalNumberPattern>
6969           1\d{4,11}|
6970           [2-9]\d{4,10}
6971         </nationalNumberPattern>
6972         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
6973       </generalDesc>
6974       <noInternationalDialling>
6975         <!-- According to the national numbering plan, service numbers are in general not accessible
6976              from abroad, although 600/700/800 numbers may be. -->
6977         <nationalNumberPattern>
6978           [13]00\d{3,7}|
6979           2(?:
6980             0(?:
6981               0\d{3,7}|
6982               2[023]\d{1,6}|
6983               9[89]\d{1,6}
6984             )
6985           )|
6986           60(?:
6987             [12]\d{5,6}|
6988             6\d{7}
6989           )|
6990           7(?:
6991             1\d{7}|
6992             3\d{8}|
6993             5[03-9]\d{2,7}
6994           )
6995         </nationalNumberPattern>
6996         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6997         <exampleNumber>100123</exampleNumber>
6998       </noInternationalDialling>
6999       <fixedLine>
7000         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
7001              are listed under UAN. It also excludes Ã…land numbers. -->
7002         <nationalNumberPattern>
7003           1(?:
7004             [3569][1-8]\d{3,9}|
7005             [47]\d{5,10}
7006           )|
7007           2[1-8]\d{3,9}|
7008           3(?:
7009             [1-8]\d{3,9}|
7010             9\d{4,8}
7011           )|
7012           [5689][1-8]\d{3,9}
7013         </nationalNumberPattern>
7014         <exampleNumber>1312345678</exampleNumber>
7015       </fixedLine>
7016       <mobile>
7017         <nationalNumberPattern>
7018           4\d{5,10}|
7019           50\d{4,8}
7020         </nationalNumberPattern>
7021         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
7022         <exampleNumber>412345678</exampleNumber>
7023       </mobile>
7024       <tollFree>
7025         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
7026         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
7027         <exampleNumber>8001234567</exampleNumber>
7028       </tollFree>
7029       <premiumRate>
7030         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
7031         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
7032         <exampleNumber>600123456</exampleNumber>
7033       </premiumRate>
7034       <uan>
7035         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
7036              assigned to institutions such as universities, the national post, etc, where they are
7037              not otherwise classified as toll-free or premium-rate numbers. -->
7038         <nationalNumberPattern>
7039           [13]0\d{4,8}|
7040           2(?:
7041             0(?:
7042               [016-8]\d{3,7}|
7043               [2-59]\d{2,7}
7044             )|
7045             9\d{4,8}
7046           )|
7047           60(?:
7048             [12]\d{5,6}|
7049             6\d{7}
7050           )|
7051           7(?:
7052             1\d{7}|
7053             3\d{8}|
7054             5[03-9]\d{2,7}
7055           )
7056         </nationalNumberPattern>
7057         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
7058         <exampleNumber>10112345</exampleNumber>
7059       </uan>
7060     </territory>
7061
7062     <!-- Fiji -->
7063     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
7064                preferredInternationalPrefix="00" leadingZeroPossible="true">
7065       <references>
7066         <sourceUrl>http://www.itu.int/oth/T0202000048/en</sourceUrl>
7067         <sourceUrl>http://www.tfl.com.fj</sourceUrl>
7068       </references>
7069       <availableFormats>
7070         <numberFormat pattern="(\d{3})(\d{4})">
7071           <leadingDigits>[36-9]</leadingDigits>
7072           <format>$1 $2</format>
7073         </numberFormat>
7074         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
7075           <leadingDigits>0</leadingDigits>
7076           <format>$1 $2 $3</format>
7077         </numberFormat>
7078       </availableFormats>
7079       <generalDesc>
7080         <nationalNumberPattern>
7081           [36-9]\d{6}|
7082           0\d{10}
7083         </nationalNumberPattern>
7084         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
7085       </generalDesc>
7086       <fixedLine>
7087         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
7088              online, including in the white pages. 35X and 85X were found in the exchanges listed on
7089              http://www.tfl.com.fj. -->
7090         <nationalNumberPattern>
7091           (?:
7092             3[0-5]|
7093             6[25-7]|
7094             8[58]
7095           )\d{5}
7096         </nationalNumberPattern>
7097         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7098         <exampleNumber>3212345</exampleNumber>
7099       </fixedLine>
7100       <mobile>
7101         <!-- Adding 7[5-8], 8[03679], and 9[034678] from numbers found online and numbers where SMSs
7102              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
7103         <nationalNumberPattern>
7104           (?:
7105             7[0-8]|
7106             8[034679]|
7107             9\d
7108           )\d{5}
7109         </nationalNumberPattern>
7110         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7111         <exampleNumber>7012345</exampleNumber>
7112       </mobile>
7113       <tollFree>
7114         <!-- Information found on http://www.tfl.com.fj. It is not clear if these are
7115              internationally diallable, or if so, how. -->
7116         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
7117         <possibleNumberPattern>\d{11}</possibleNumberPattern>
7118         <exampleNumber>08001234567</exampleNumber>
7119       </tollFree>
7120     </territory>
7121
7122     <!-- Falkland Islands (Malvinas) -->
7123     <territory id="FK" countryCode="500" internationalPrefix="00">
7124       <references>
7125         <sourceUrl>http://www.itu.int/oth/T0202000046/en</sourceUrl>
7126       </references>
7127       <!-- All numbers are formatted together, as a block. -->
7128       <generalDesc>
7129         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
7130         <possibleNumberPattern>\d{5}</possibleNumberPattern>
7131       </generalDesc>
7132       <fixedLine>
7133         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
7134         <exampleNumber>31234</exampleNumber>
7135       </fixedLine>
7136       <mobile>
7137         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
7138         <exampleNumber>51234</exampleNumber>
7139       </mobile>
7140     </territory>
7141
7142     <!-- Micronesia, Federated States of -->
7143     <territory id="FM" countryCode="691" internationalPrefix="00">
7144       <references>
7145         <sourceUrl>http://www.itu.int/oth/T020200008B/en</sourceUrl>
7146       </references>
7147       <availableFormats>
7148         <numberFormat pattern="(\d{3})(\d{4})">
7149           <format>$1 $2</format>
7150         </numberFormat>
7151       </availableFormats>
7152       <generalDesc>
7153         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
7154         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7155       </generalDesc>
7156       <fixedLine>
7157         <nationalNumberPattern>
7158             3[2357]0[1-9]\d{3}|
7159             9[2-6]\d{5}
7160         </nationalNumberPattern>
7161         <exampleNumber>3201234</exampleNumber>
7162       </fixedLine>
7163       <mobile>
7164         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
7165              are exclusively mobile. -->
7166         <nationalNumberPattern>
7167           3[2357]0[1-9]\d{3}|
7168           9[2-7]\d{5}
7169         </nationalNumberPattern>
7170         <exampleNumber>3501234</exampleNumber>
7171       </mobile>
7172     </territory>
7173
7174     <!-- Faroe Islands -->
7175     <territory id="FO" countryCode="298" internationalPrefix="00"
7176                nationalPrefixForParsing="(10(?:01|[12]0|88))"
7177                carrierCodeFormattingRule="$CC $FG">
7178       <references>
7179         <sourceUrl>http://www.itu.int/oth/T0202000047/en</sourceUrl>
7180       </references>
7181       <!-- All numbers are formatted together, as a block. -->
7182       <availableFormats>
7183         <numberFormat pattern="(\d{6})">
7184           <format>$1</format>
7185         </numberFormat>
7186       </availableFormats>
7187       <generalDesc>
7188         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
7189         <possibleNumberPattern>\d{6}</possibleNumberPattern>
7190       </generalDesc>
7191       <fixedLine>
7192         <nationalNumberPattern>
7193           (?:
7194             20|
7195             [3-4]\d|
7196             8[19]
7197           )\d{4}
7198         </nationalNumberPattern>
7199         <exampleNumber>201234</exampleNumber>
7200       </fixedLine>
7201       <mobile>
7202         <nationalNumberPattern>
7203           (?:
7204             2[1-9]|
7205             5\d|
7206             7[1-79]
7207           )\d{4}
7208         </nationalNumberPattern>
7209         <exampleNumber>211234</exampleNumber>
7210       </mobile>
7211       <tollFree>
7212         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
7213         <exampleNumber>802123</exampleNumber>
7214       </tollFree>
7215       <premiumRate>
7216         <nationalNumberPattern>
7217           90(?:
7218             [1345][15-7]|
7219             2[125-7]|
7220             99
7221             )\d{2}
7222         </nationalNumberPattern>
7223         <exampleNumber>901123</exampleNumber>
7224       </premiumRate>
7225       <voip>
7226         <nationalNumberPattern>
7227           (?:
7228             6[0-36]|
7229             88
7230           )\d{4}
7231         </nationalNumberPattern>
7232         <exampleNumber>601234</exampleNumber>
7233       </voip>
7234     </territory>
7235
7236     <!-- France -->
7237     <territory id="FR" countryCode="33" internationalPrefix="00" nationalPrefix="0"
7238                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
7239       <references>
7240         <sourceUrl>http://www.itu.int/oth/T020200004A/en</sourceUrl>
7241         <sourceUrl>http://www.arcep.fr/index.php?id=8146</sourceUrl>
7242         <sourceUrl>http://en.wikipedia.org/wiki/%2B33</sourceUrl>
7243       </references>
7244       <!-- Short numbers will be formatted as a block without a national prefix. -->
7245       <availableFormats>
7246         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
7247           <leadingDigits>[1-79]</leadingDigits>
7248           <format>$1 $2 $3 $4 $5</format>
7249         </numberFormat>
7250         <numberFormat pattern="(1\d{2})(\d{3})" nationalPrefixFormattingRule="$FG">
7251           <leadingDigits>11</leadingDigits>
7252           <format>$1 $2</format>
7253           <intlFormat>NA</intlFormat>
7254         </numberFormat>
7255         <numberFormat nationalPrefixFormattingRule="$NP $FG"
7256           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
7257           <leadingDigits>8</leadingDigits>
7258           <format>$1 $2 $3 $4</format>
7259         </numberFormat>
7260       </availableFormats>
7261       <generalDesc>
7262         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
7263         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7264       </generalDesc>
7265       <fixedLine>
7266         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
7267         <exampleNumber>123456789</exampleNumber>
7268       </fixedLine>
7269       <mobile>
7270         <nationalNumberPattern>
7271           6\d{8}|
7272           7[5-9]\d{7}
7273         </nationalNumberPattern>
7274         <exampleNumber>612345678</exampleNumber>
7275       </mobile>
7276       <tollFree>
7277         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
7278         <exampleNumber>801234567</exampleNumber>
7279       </tollFree>
7280       <premiumRate>
7281         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
7282         <exampleNumber>891123456</exampleNumber>
7283       </premiumRate>
7284       <sharedCost>
7285         <nationalNumberPattern>
7286           8(?:
7287             1[019]|
7288             2[0156]|
7289             84|
7290             90
7291           )\d{6}
7292         </nationalNumberPattern>
7293         <exampleNumber>810123456</exampleNumber>
7294       </sharedCost>
7295       <voip>
7296         <!-- 087 numbers used to be used for this. -->
7297         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
7298         <exampleNumber>912345678</exampleNumber>
7299       </voip>
7300     </territory>
7301
7302     <!-- Gabon -->
7303     <!-- Note: We cannot set nationalPrefix="0" while fixed line numbers can start with a zero
7304          as this breaks parsing (it treats all leading zeros as national prefixes. -->
7305     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true" >
7306       <references>
7307         <sourceUrl>http://www.itu.int/oth/T020200004E/en</sourceUrl>
7308         <sourceUrl>http://www.arcep.ga</sourceUrl>
7309       </references>
7310       <availableFormats>
7311         <!-- If no leading zero was supplied, format with the national prefix. -->
7312         <numberFormat pattern="(\d)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="0$FG">
7313           <leadingDigits>[2-7]</leadingDigits>
7314           <format>$1 $2 $3 $4</format>
7315         </numberFormat>
7316         <!-- This already has a leading zero so we format is "as is". -->
7317         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
7318           <leadingDigits>0</leadingDigits>
7319          <format>$1 $2 $3 $4</format>
7320         </numberFormat>
7321       </availableFormats>
7322       <generalDesc>
7323         <nationalNumberPattern>0?\d{7}</nationalNumberPattern>
7324         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
7325       </generalDesc>
7326       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
7327            line and mobile numbering. However, this has only partially happened; mobile numbers can
7328            now be dialed without a leading zero, but fixed line numbers still require it. Their own
7329            website still lists fixed line numbers as "+241 01 44 68 11" and upon ringing they will
7330            not connect from outside the country without the 0. This was last tested March 2014. -->
7331       <fixedLine>
7332         <nationalNumberPattern>01\d{6}</nationalNumberPattern>
7333         <possibleNumberPattern>\d{8}</possibleNumberPattern>
7334         <exampleNumber>01441234</exampleNumber>
7335       </fixedLine>
7336       <mobile>
7337         <!-- Mobile numbers can be 7 or 8 digits (with or without a leading zero). -->
7338         <nationalNumberPattern>0?[2-7]\d{6}</nationalNumberPattern>
7339         <exampleNumber>06031234</exampleNumber>
7340       </mobile>
7341     </territory>
7342
7343     <!-- United Kingdom -->
7344     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
7345          validation, although the formatting rules are shared. -->
7346     <territory id="GB" countryCode="44" internationalPrefix="00"
7347                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
7348                mainCountryForCode="true" mobileNumberPortableRegion="true">
7349       <references>
7350         <sourceUrl>http://stakeholders.ofcom.org.uk/telecoms/numbering/</sourceUrl>
7351         <sourceUrl>http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes</sourceUrl>
7352         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=GB</sourceUrl>
7353       </references>
7354       <availableFormats>
7355         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
7356         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
7357           <leadingDigits>
7358             2|
7359             5[56]|
7360             7(?:
7361               0|
7362               6[013-9]
7363             )
7364           </leadingDigits>
7365           <leadingDigits>
7366             2|
7367             5[56]|
7368             7(?:
7369               0|
7370               6(?:
7371                 [013-9]|
7372                 2[0-35-9]
7373               )
7374             )
7375           </leadingDigits>
7376           <format>$1 $2 $3</format>
7377         </numberFormat>
7378         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
7379         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
7380           <leadingDigits>
7381             1(?:
7382               1|
7383               \d1
7384             )|
7385             3|
7386             9[018]
7387           </leadingDigits>
7388           <format>$1 $2 $3</format>
7389         </numberFormat>
7390         <!-- 1dddd with 9 or 10 digits.
7391              These area codes are very rare in GB, and are only available in the following places:
7392              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
7393              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
7394              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
7395         <numberFormat pattern="(\d{5})(\d{4,5})">
7396           <leadingDigits>
7397             1(?:
7398               38|
7399               5[23]|
7400               69|
7401               76|
7402               94
7403             )
7404           </leadingDigits>
7405           <leadingDigits>
7406             1(?:
7407               387|
7408               5(?:
7409                 24|
7410                 39
7411               )|
7412               697|
7413               768|
7414               946
7415             )
7416           </leadingDigits>
7417           <leadingDigits>
7418             1(?:
7419               3873|
7420               5(?:
7421                 242|
7422                 39[456]
7423               )|
7424               697[347]|
7425               768[347]|
7426               9467
7427             )
7428           </leadingDigits>
7429           <format>$1 $2</format>
7430         </numberFormat>
7431         <!-- 1ddd with 9 or 10 digits. -->
7432         <numberFormat pattern="(1\d{3})(\d{5,6})">
7433           <leadingDigits>1</leadingDigits>
7434           <format>$1 $2</format>
7435         </numberFormat>
7436         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
7437         <numberFormat pattern="(7\d{3})(\d{6})">
7438           <leadingDigits>
7439             7(?:
7440               [1-5789]|
7441               62
7442             )
7443           </leadingDigits>
7444           <leadingDigits>
7445             7(?:
7446               [1-5789]|
7447               624
7448             )
7449           </leadingDigits>
7450           <format>$1 $2</format>
7451         </numberFormat>
7452         <!-- 800 1111 : UK ChildLine. -->
7453         <numberFormat pattern="(800)(\d{4})">
7454           <leadingDigits>800</leadingDigits>
7455           <leadingDigits>8001</leadingDigits>
7456           <leadingDigits>80011</leadingDigits>
7457           <leadingDigits>800111</leadingDigits>
7458           <leadingDigits>8001111</leadingDigits>
7459           <format>$1 $2</format>
7460         </numberFormat>
7461         <!-- 845 46 47 : UK NHS Direct. -->
7462         <numberFormat pattern="(845)(46)(4\d)">
7463           <leadingDigits>845</leadingDigits>
7464           <leadingDigits>8454</leadingDigits>
7465           <leadingDigits>84546</leadingDigits>
7466           <leadingDigits>845464</leadingDigits>
7467           <format>$1 $2 $3</format>
7468         </numberFormat>
7469         <!-- 84d, 87d with 10 digits. -->
7470         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
7471           <leadingDigits>
7472             8(?:
7473               4[2-5]|
7474               7[0-3]
7475             )
7476           </leadingDigits>
7477           <format>$1 $2 $3</format>
7478         </numberFormat>
7479         <!-- 80d (including 800) with 10 digits. -->
7480         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
7481           <leadingDigits>80</leadingDigits>
7482           <format>$1 $2 $3</format>
7483         </numberFormat>
7484         <!-- 500, 800 with 9 digits. -->
7485         <numberFormat pattern="([58]00)(\d{6})">
7486           <leadingDigits>[58]00</leadingDigits>
7487           <format>$1 $2</format>
7488         </numberFormat>
7489       </availableFormats>
7490       <generalDesc>
7491         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
7492         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
7493       </generalDesc>
7494       <areaCodeOptional>
7495         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
7496              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
7497              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
7498              necessarily valid numbers. -->
7499         <nationalNumberPattern>
7500           2\d[2-9]\d{7}|
7501           1(?:
7502             1\d|
7503             \d1
7504           )[2-9]\d{6}|
7505           1(?:
7506             [248][02-9]\d[2-9]\d{4,5}|
7507             (?:
7508               3(?:
7509                 [02-79]\d|
7510                 8[0-69]
7511               )|
7512               5(?:
7513                 [04-9]\d|
7514                 2[0-35-9]|
7515                 3[0-8]
7516               )|
7517               6(?:
7518                 [02-8]\d|
7519                 9[0-689]
7520               )|
7521               7(?:
7522                 [02-5789]\d|
7523                 6[0-79]
7524               )|
7525               9(?:
7526                 [0235-9]\d|
7527                 4[0-5789]
7528               )
7529             )[2-9]\d{4,5}|
7530             (?:
7531               387(?:
7532                 3[2-9]|
7533                 [24-9]\d
7534               )|
7535               5(?:
7536                 24(?:
7537                   2[2-9]|
7538                   [3-9]\d
7539                 )|
7540                 39(?:
7541                   [4-6][2-9]|
7542                   [237-9]\d
7543                 )
7544               )|
7545               697(?:
7546                 [347][2-9]|
7547                 [25689]\d
7548               )|
7549               768(?:
7550                 [347][2-9]|
7551                 [25679]\d
7552               )|
7553               946(?:
7554                 7[2-9]|
7555                 [2-689]\d
7556               )
7557             )\d{3,4}
7558           )
7559         </nationalNumberPattern>
7560         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
7561         <exampleNumber>1332456789</exampleNumber>
7562       </areaCodeOptional>
7563       <fixedLine>
7564         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7565         <!-- Pattern matches geographic NSN=10 numbers as follows:
7566              - area code and local number first digit for 2+8,
7567              - area code and local number first digit for 3+7,
7568              - area code only for 4+6 (including areas with embedded 5+5).
7569              Pattern matches geographic NSN=9 numbers as follows:
7570              - area code and local number first two digits for 4+5,
7571              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
7572              - area code and local number first digit for 5+4 special case (016977) Dddd.
7573              All patterns exclude ranges used in GG, IM, JE. -->
7574         <nationalNumberPattern>
7575           2(?:
7576             0[01378]|
7577             3[0189]|
7578             4[017]|
7579             8[0-46-9]|
7580             9[012]
7581           )\d{7}|
7582           1(?:
7583             (?:
7584               1(?:
7585                 3[0-48]|
7586                 [46][0-4]|
7587                 5[012789]|
7588                 7[0-49]|
7589                 8[01349]
7590               )|
7591               21[0-7]|
7592               31[0-8]|
7593               [459]1\d|
7594               61[0-46-9]
7595             )
7596           )\d{6}|
7597           1(?:
7598             2(?:
7599               0[024-9]|
7600               2[3-9]|
7601               3[3-79]|
7602               4[1-689]|
7603               [58][02-9]|
7604               6[0-4789]|
7605               7[013-9]|
7606               9\d
7607             )|
7608             3(?:
7609               0\d|
7610               [25][02-9]|
7611               3[02-579]|
7612               [468][0-46-9]|
7613               7[1235679]|
7614               9[24578]
7615             )|
7616             4(?:
7617               0[03-9]|
7618               [28][02-5789]|
7619               [37]\d|
7620               4[02-69]|
7621               5[0-8]|
7622               [69][0-79]
7623             )|
7624             5(?:
7625               0[1235-9]|
7626               2[024-9]|
7627               3[015689]|
7628               4[02-9]|
7629               5[03-9]|
7630               6\d|
7631               7[0-35-9]|
7632               8[0-468]|
7633               9[0-5789]
7634             )|
7635             6(?:
7636               0[034689]|
7637               2[0-35689]|
7638               [38][013-9]|
7639               4[1-467]|
7640               5[0-69]|
7641               6[13-9]|
7642               7[0-8]|
7643               9[0124578]
7644             )|
7645             7(?:
7646               0[0246-9]|
7647               2\d|
7648               3[023678]|
7649               4[03-9]|
7650               5[0-46-9]|
7651               6[013-9]|
7652               7[0-35-9]|
7653               8[024-9]|
7654               9[02-9]
7655             )|
7656             8(?:
7657               0[35-9]|
7658               2[1-5789]|
7659               3[02-578]|
7660               4[0-578]|
7661               5[124-9]|
7662               6[2-69]|
7663               7\d|
7664               8[02-9]|
7665               9[02569]
7666             )|
7667             9(?:
7668               0[02-589]|
7669               2[02-689]|
7670               3[1-5789]|
7671               4[2-9]|
7672               5[0-579]|
7673               6[234789]|
7674               7[0124578]|
7675               8\d|
7676               9[2-57]
7677             )
7678           )\d{6}|
7679           1(?:
7680             2(?:
7681               0(?:
7682                 46[1-4]|
7683                 87[2-9]
7684               )|
7685               545[1-79]|
7686               76(?:
7687                 2\d|
7688                 3[1-8]|
7689                 6[1-6]
7690               )|
7691               9(?:
7692                 7(?:
7693                   2[0-4]|
7694                   3[2-5]
7695                 )|
7696                 8(?:
7697                   2[2-8]|
7698                   7[0-4789]|
7699                   8[345]
7700                 )
7701               )
7702             )|
7703             3(?:
7704               638[2-5]|
7705               647[23]|
7706               8(?:
7707                 47[04-9]|
7708                 64[015789]
7709               )
7710             )|
7711             4(?:
7712               044[1-7]|
7713               20(?:
7714                 2[23]|
7715                 8\d
7716               )|
7717               6(?:
7718                 0(?:
7719                   30|
7720                   5[2-57]|
7721                   6[1-8]|
7722                   7[2-8]
7723                 )|
7724                 140
7725               )|
7726               8(?:
7727                 052|
7728                 87[123]
7729               )
7730             )|
7731             5(?:
7732               24(?:
7733                 3[2-79]|
7734                 6\d
7735               )|
7736               276\d|
7737               6(?:
7738                 26[06-9]|
7739                 686
7740               )
7741             )|
7742             6(?:
7743               06(?:
7744                 4\d|
7745                 7[4-79]
7746               )|
7747               295[567]|
7748               35[34]\d|
7749               47(?:
7750                 24|
7751                 61
7752               )|
7753               59(?:
7754                 5[08]|
7755                 6[67]|
7756                 74
7757               )|
7758               955[0-4]
7759             )|
7760             7(?:
7761               26(?:
7762                 6[13-9]|
7763                 7[0-7]
7764               )|
7765               442\d|
7766               50(?:
7767                 2[0-3]|
7768                 [3-68]2|
7769                 76
7770               )
7771             )|
7772             8(?:
7773               27[56]\d|
7774               37(?:
7775                 5[2-5]|
7776                 8[239]
7777               )|
7778               84(?:
7779                 3[2-58]
7780               )
7781             )|
7782             9(?:
7783               0(?:
7784                 0(?:
7785                   6[1-8]|
7786                   85
7787                 )|
7788                 52\d
7789               )|
7790               3583|
7791               4(?:
7792                 66[1-8]|
7793                 9(?:
7794                   2[01]|
7795                   81
7796                 )
7797               )|
7798               63(?:
7799                 23|
7800                 3[1-4]
7801               )|
7802               9561
7803             )
7804           )\d{3}|
7805           176888[234678]\d{2}|
7806           16977[23]\d{3}
7807         </nationalNumberPattern>
7808         <exampleNumber>1212345678</exampleNumber>
7809       </fixedLine>
7810       <mobile>
7811         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
7812              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
7813         <nationalNumberPattern>
7814           7(?:
7815             [1-4]\d\d|
7816             5(?:
7817               0[0-8]|
7818               [13-9]\d|
7819               2[0-35-9]
7820             )|
7821             7(?:
7822               0[1-9]|
7823               [1-7]\d|
7824               8[02-9]|
7825               9[0-689]
7826             )|
7827             8(?:
7828               [014-9]\d|
7829               [23][0-8]
7830             )|
7831             9(?:
7832               [04-9]\d|
7833               1[02-9]|
7834               2[0-35-9]|
7835               3[0-689]
7836             )
7837           )\d{6}
7838         </nationalNumberPattern>
7839         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7840         <exampleNumber>7400123456</exampleNumber>
7841       </mobile>
7842       <pager>
7843         <!-- 76 with 10 digits; excluding ranges used in IM. -->
7844         <nationalNumberPattern>
7845           76(?:
7846             0[012]|
7847             2[356]|
7848             4[0134]|
7849             5[49]|
7850             6[0-369]|
7851             77|
7852             81|
7853             9[39]
7854           )\d{6}
7855         </nationalNumberPattern>
7856         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7857         <exampleNumber>7640123456</exampleNumber>
7858       </pager>
7859       <!-- Source for non geographic numbers:
7860            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
7861       <tollFree>
7862         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
7863              -->
7864         <nationalNumberPattern>
7865           80(?:
7866             0(?:
7867               1111|
7868               \d{6,7}
7869             )|
7870             8\d{7}
7871           )|
7872           500\d{6}
7873         </nationalNumberPattern>
7874         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
7875         <exampleNumber>8001234567</exampleNumber>
7876       </tollFree>
7877       <premiumRate>
7878         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
7879              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
7880              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
7881              910-919 are reserved for standard premium rate services. -->
7882         <nationalNumberPattern>
7883           (?:
7884             87[123]|
7885             9(?:
7886               [01]\d|
7887               8[2349]
7888             )
7889           )\d{7}
7890         </nationalNumberPattern>
7891         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7892         <exampleNumber>9012345678</exampleNumber>
7893       </premiumRate>
7894       <sharedCost>
7895         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
7896              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
7897         <nationalNumberPattern>
7898           8(?:
7899             4(?:
7900               5464\d|
7901               [2-5]\d{7}
7902             )|
7903             70\d{7}
7904           )
7905         </nationalNumberPattern>
7906         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7907         <exampleNumber>8431234567</exampleNumber>
7908       </sharedCost>
7909       <personalNumber>
7910         <!-- 70 with 10 digits. -->
7911         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
7912         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7913         <exampleNumber>7012345678</exampleNumber>
7914       </personalNumber>
7915       <voip>
7916         <!-- 56 with 10 digits. -->
7917         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
7918         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7919         <exampleNumber>5612345678</exampleNumber>
7920       </voip>
7921       <uan>
7922         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
7923         <nationalNumberPattern>
7924           (?:
7925             3[0347]|
7926             55
7927           )\d{8}
7928         </nationalNumberPattern>
7929         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7930         <exampleNumber>5512345678</exampleNumber>
7931       </uan>
7932     </territory>
7933
7934     <!-- Grenada -->
7935     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
7936                internationalPrefix="011">
7937       <references>
7938         <sourceUrl>http://www.itu.int/oth/T0202000057/en</sourceUrl>
7939       </references>
7940       <generalDesc>
7941         <!-- NANPA country - uses US formatting rules -->
7942         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
7943         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7944       </generalDesc>
7945       <fixedLine>
7946         <nationalNumberPattern>
7947           473(?:
7948             2(?:
7949               3[0-2]|
7950               69
7951             )|
7952             3(?:
7953               2[89]|
7954               86
7955             )|
7956             4(?:
7957               [06]8|
7958               3[5-9]|
7959               4[0-49]|
7960               5[5-79]|
7961               68|
7962               73|
7963               90
7964             )|
7965             63[68]|
7966             7(?:
7967               58|
7968               84
7969             )|
7970             800|
7971             938
7972           )\d{4}
7973         </nationalNumberPattern>
7974         <exampleNumber>4732691234</exampleNumber>
7975       </fixedLine>
7976       <mobile>
7977         <nationalNumberPattern>
7978           473(?:
7979             4(?:
7980               0[2-79]|
7981               1[04-9]|
7982               20|
7983               58
7984             )|
7985             5(?:
7986               2[01]|
7987               3[3-8]
7988             )|
7989             901
7990           )\d{4}
7991         </nationalNumberPattern>
7992         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7993         <exampleNumber>4734031234</exampleNumber>
7994       </mobile>
7995       <tollFree>
7996         <nationalNumberPattern>
7997           8(?:
7998             00|
7999             44|
8000             55|
8001             66|
8002             77|
8003             88
8004           )[2-9]\d{6}
8005         </nationalNumberPattern>
8006         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8007         <exampleNumber>8002123456</exampleNumber>
8008       </tollFree>
8009       <premiumRate>
8010         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8011         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8012         <exampleNumber>9002123456</exampleNumber>
8013       </premiumRate>
8014       <personalNumber>
8015         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8016         <nationalNumberPattern>
8017           5(?:
8018             00|
8019             33|
8020             44|
8021             66|
8022             77
8023           )[2-9]\d{6}
8024         </nationalNumberPattern>
8025         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8026         <exampleNumber>5002345678</exampleNumber>
8027       </personalNumber>
8028     </territory>
8029
8030     <!-- Georgia -->
8031     <territory id="GE" countryCode="995" internationalPrefix="00" nationalPrefix="0"
8032                mobileNumberPortableRegion="true">
8033       <references>
8034         <sourceUrl>http://www.itu.int/oth/T0202000050/en</sourceUrl>
8035         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia_(country)</sourceUrl>
8036       </references>
8037       <availableFormats>
8038         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
8039              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
8040         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
8041           <leadingDigits>[348]</leadingDigits>
8042           <format>$1 $2 $3 $4</format>
8043         </numberFormat>
8044         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
8045           <leadingDigits>7</leadingDigits>
8046           <format>$1 $2 $3</format>
8047         </numberFormat>
8048         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
8049           <leadingDigits>5</leadingDigits>
8050           <format>$1 $2 $3 $4</format>
8051         </numberFormat>
8052       </availableFormats>
8053       <noInternationalDialling>
8054         <!-- Online numbers mention that this is not internationally diallable. -->
8055         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8056         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8057         <exampleNumber>706123456</exampleNumber>
8058       </noInternationalDialling>
8059       <generalDesc>
8060         <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
8061         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8062       </generalDesc>
8063       <fixedLine>
8064         <nationalNumberPattern>
8065           (?:
8066             3(?:
8067               [256]\d|
8068               4[124-9]|
8069               7[0-4]
8070             )|
8071             4(?:
8072               1\d|
8073               2[2-7]|
8074               3[1-79]|
8075               4[2-8]|
8076               7[239]|
8077               9[1-7]
8078             )
8079           )\d{6}
8080         </nationalNumberPattern>
8081         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8082         <exampleNumber>322123456</exampleNumber>
8083       </fixedLine>
8084       <mobile>
8085         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
8086              about the change in numbers, and online numbers found. -->
8087         <nationalNumberPattern>
8088           5(?:
8089             14|
8090             5[01578]|
8091             68|
8092             7[0147-9]|
8093             9[0-35-9]
8094           )\d{6}
8095         </nationalNumberPattern>
8096         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8097         <exampleNumber>555123456</exampleNumber>
8098       </mobile>
8099       <!-- Information from http://www.yell.ge, examples such as Wissol Petroleum Georgia
8100            hotline. -->
8101       <tollFree>
8102         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
8103         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8104         <exampleNumber>800123456</exampleNumber>
8105       </tollFree>
8106       <voip>
8107         <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
8108         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8109         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8110         <exampleNumber>706123456</exampleNumber>
8111       </voip>
8112       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
8113            these are omitted for now. -->
8114     </territory>
8115
8116     <!-- French Guiana (French Dept. of) -->
8117     <!-- Using a national prefix here as online numbers are formatted with it. -->
8118     <territory id="GF" countryCode="594" internationalPrefix="00"
8119                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
8120       <references>
8121         <sourceUrl>http://www.itu.int/oth/T020200004C/en</sourceUrl>
8122         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0594&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
8123         <sourceUrl>http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf</sourceUrl>
8124       </references>
8125       <availableFormats>
8126         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8127           <format>$1 $2 $3 $4</format>
8128         </numberFormat>
8129       </availableFormats>
8130       <generalDesc>
8131         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8132         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8133       </generalDesc>
8134       <fixedLine>
8135         <nationalNumberPattern>
8136           594(?:
8137             10|
8138             2[012457-9]|
8139             3[0-57-9]|
8140             4[3-9]|
8141             5[7-9]|
8142             6[0-3]|
8143             9[014]
8144           )\d{4}
8145         </nationalNumberPattern>
8146         <exampleNumber>594101234</exampleNumber>
8147       </fixedLine>
8148       <mobile>
8149         <nationalNumberPattern>
8150           694(?:
8151             [04][0-7]|
8152             1[0-5]|
8153             3[018]|
8154             [29]\d
8155           )\d{4}
8156         </nationalNumberPattern>
8157         <exampleNumber>694201234</exampleNumber>
8158       </mobile>
8159       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
8160            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
8161            too. -->
8162     </territory>
8163
8164     <!-- Guernsey -->
8165     <!-- Inherits formatting rules from the UK. -->
8166     <territory id="GG" countryCode="44" internationalPrefix="00"
8167                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
8168       <references>
8169         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
8170       </references>
8171       <generalDesc>
8172         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
8173         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
8174       </generalDesc>
8175       <areaCodeOptional>
8176         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
8177         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8178         <exampleNumber>1481250123</exampleNumber>
8179       </areaCodeOptional>
8180       <!-- Specific to GG. -->
8181       <fixedLine>
8182         <!-- 1481 with 10 digits. -->
8183         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
8184         <exampleNumber>1481456789</exampleNumber>
8185       </fixedLine>
8186       <mobile>
8187         <!-- 7781, 7839, 7911 with 10 digits. -->
8188         <nationalNumberPattern>
8189           7(?:
8190             781|
8191             839|
8192             911
8193           )\d{6}
8194         </nationalNumberPattern>
8195         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8196         <exampleNumber>7781123456</exampleNumber>
8197       </mobile>
8198       <!-- Other numbers as per GB. -->
8199       <pager>
8200         <nationalNumberPattern>
8201           76(?:
8202             0[012]|
8203             2[356]|
8204             4[0134]|
8205             5[49]|
8206             6[0-369]|
8207             77|
8208             81|
8209             9[39]
8210           )\d{6}
8211         </nationalNumberPattern>
8212         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8213         <exampleNumber>7640123456</exampleNumber>
8214       </pager>
8215       <tollFree>
8216         <nationalNumberPattern>
8217           80(?:
8218             0(?:
8219               1111|
8220               \d{6,7}
8221             )|
8222             8\d{7}
8223           )|
8224           500\d{6}
8225         </nationalNumberPattern>
8226         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
8227         <exampleNumber>8001234567</exampleNumber>
8228       </tollFree>
8229       <premiumRate>
8230         <nationalNumberPattern>
8231           (?:
8232             87[123]|
8233             9(?:
8234               [01]\d|
8235               8[0-3]
8236             )
8237           )\d{7}
8238         </nationalNumberPattern>
8239         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8240         <exampleNumber>9012345678</exampleNumber>
8241       </premiumRate>
8242       <sharedCost>
8243         <nationalNumberPattern>
8244           8(?:
8245             4(?:
8246               5464\d|
8247               [2-5]\d{7}
8248             )|
8249             70\d{7}
8250           )
8251         </nationalNumberPattern>
8252         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8253         <exampleNumber>8431234567</exampleNumber>
8254       </sharedCost>
8255       <personalNumber>
8256         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8257         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8258         <exampleNumber>7012345678</exampleNumber>
8259       </personalNumber>
8260       <voip>
8261         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
8262         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8263         <exampleNumber>5612345678</exampleNumber>
8264       </voip>
8265       <uan>
8266         <nationalNumberPattern>
8267           (?:
8268             3[0347]|
8269             55
8270           )\d{8}
8271         </nationalNumberPattern>
8272         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8273         <exampleNumber>5512345678</exampleNumber>
8274       </uan>
8275     </territory>
8276
8277     <!-- Ghana -->
8278     <territory id="GH" countryCode="233" internationalPrefix="00"
8279                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
8280                mobileNumberPortableRegion="true">
8281       <references>
8282         <sourceUrl>http://www.itu.int/oth/T0202000052/en</sourceUrl>
8283         <sourceUrl>http://www.nca.org.gh/index.php?option=com_content&amp;view=article&amp;id=90&amp;Itemid=65</sourceUrl>
8284       </references>
8285       <availableFormats>
8286         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
8287           <leadingDigits>[235]</leadingDigits>
8288           <format>$1 $2 $3</format>
8289         </numberFormat>
8290         <numberFormat pattern="(\d{3})(\d{5})">
8291           <leadingDigits>8</leadingDigits>
8292           <format>$1 $2</format>
8293         </numberFormat>
8294       </availableFormats>
8295       <generalDesc>
8296         <nationalNumberPattern>
8297           [235]\d{8}|
8298           8\d{7}
8299         </nationalNumberPattern>
8300         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8301       </generalDesc>
8302       <noInternationalDialling>
8303         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8304         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8305         <exampleNumber>80012345</exampleNumber>
8306       </noInternationalDialling>
8307       <fixedLine>
8308         <nationalNumberPattern>
8309           3(?:
8310             0[237]\d|
8311             [167](?:
8312               2[0-6]|
8313               7\d
8314             )|
8315             2(?:
8316               2[0-5]|
8317               7\d
8318             )|
8319             3(?:
8320               2[0-3]|
8321               7\d
8322             )|
8323             4(?:
8324               2[013-9]|
8325               3[01]|
8326               7\d
8327             )|
8328             5(?:
8329               2[0-7]|
8330               7\d
8331             )|
8332             8(?:
8333               2[0-2]|
8334               7\d
8335             )|
8336             9(?:
8337               20|
8338               7\d
8339             )
8340           )\d{5}
8341         </nationalNumberPattern>
8342         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8343         <exampleNumber>302345678</exampleNumber>
8344       </fixedLine>
8345       <mobile>
8346         <nationalNumberPattern>
8347           (?:
8348             2[034678]\d|
8349             5(?:
8350               [047]\d|
8351               5[3-6]|
8352               6[01]
8353             )
8354           )\d{6}
8355         </nationalNumberPattern>
8356         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8357         <exampleNumber>231234567</exampleNumber>
8358       </mobile>
8359       <tollFree>
8360         <!-- Found online references to these numbers, although they are not in the plan since they
8361              are not internationally diallable. -->
8362         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8363         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8364         <exampleNumber>80012345</exampleNumber>
8365       </tollFree>
8366       <!-- No premiumRate information can be found. -->
8367     </territory>
8368
8369     <!-- Gibraltar -->
8370     <territory id="GI" countryCode="350" internationalPrefix="00">
8371       <references>
8372         <sourceUrl>http://www.gra.gi/index.php?topic=numbering+plan&amp;section=legislation&amp;site=communications</sourceUrl>
8373       </references>
8374       <availableFormats>
8375         <!-- Most numbers are formatted as a block -->
8376         <numberFormat pattern="(\d{3})(\d{5})">
8377           <leadingDigits>2</leadingDigits>
8378           <format>$1 $2</format>
8379         </numberFormat>
8380       </availableFormats>
8381       <generalDesc>
8382         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
8383         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8384       </generalDesc>
8385       <fixedLine>
8386         <nationalNumberPattern>
8387           2(?:
8388             00\d|
8389             1(?:
8390               6[24-7]|
8391               9\d
8392             )|
8393             2(?:
8394               00|
8395               2[2457]
8396             )
8397           )\d{4}
8398         </nationalNumberPattern>
8399         <exampleNumber>20012345</exampleNumber>
8400       </fixedLine>
8401       <mobile>
8402         <nationalNumberPattern>
8403           (?:
8404             5[46-8]|
8405             62
8406           )\d{6}
8407         </nationalNumberPattern>
8408         <exampleNumber>57123456</exampleNumber>
8409       </mobile>
8410       <tollFree>
8411         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
8412         <exampleNumber>80123456</exampleNumber>
8413       </tollFree>
8414       <premiumRate>
8415         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
8416         <exampleNumber>88123456</exampleNumber>
8417       </premiumRate>
8418       <sharedCost>
8419         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
8420         <exampleNumber>87123456</exampleNumber>
8421       </sharedCost>
8422     </territory>
8423
8424     <!-- Greenland -->
8425     <territory id="GL" countryCode="299" internationalPrefix="00">
8426       <references>
8427         <sourceUrl>http://www.itu.int/oth/T0202000056/en</sourceUrl>
8428       </references>
8429       <availableFormats>
8430         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
8431           <format>$1 $2 $3</format>
8432         </numberFormat>
8433       </availableFormats>
8434       <generalDesc>
8435         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
8436         <possibleNumberPattern>\d{6}</possibleNumberPattern>
8437       </generalDesc>
8438       <fixedLine>
8439         <!-- Including VSAT numbers here. -->
8440         <nationalNumberPattern>
8441           (?:
8442             19|
8443             3[1-6]|
8444             6[14689]|
8445             8[14-79]|
8446             9\d
8447           )\d{4}
8448         </nationalNumberPattern>
8449         <exampleNumber>321000</exampleNumber>
8450       </fixedLine>
8451       <mobile>
8452         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
8453         <exampleNumber>221234</exampleNumber>
8454       </mobile>
8455       <tollFree>
8456         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
8457         <exampleNumber>801234</exampleNumber>
8458       </tollFree>
8459       <voip>
8460         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
8461         <exampleNumber>381234</exampleNumber>
8462       </voip>
8463     </territory>
8464
8465     <!-- Gambia -->
8466     <territory id="GM" countryCode="220" internationalPrefix="00">
8467       <references>
8468         <sourceUrl>http://www.itu.int/oth/T020200004F/en</sourceUrl>
8469       </references>
8470       <availableFormats>
8471         <numberFormat pattern="(\d{3})(\d{4})">
8472           <format>$1 $2</format>
8473         </numberFormat>
8474       </availableFormats>
8475       <generalDesc>
8476         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
8477         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8478       </generalDesc>
8479       <fixedLine>
8480         <nationalNumberPattern>
8481           (?:
8482             4(?:
8483               [23]\d{2}|
8484               4(?:
8485                 1[024679]|
8486                 [6-9]\d
8487               )
8488             )|
8489             5(?:
8490               54[0-7]|
8491               6(?:
8492                 [67]\d
8493               )|
8494               7(?:
8495                 1[04]|
8496                 2[035]|
8497                 3[58]|
8498                 48
8499               )
8500             )|
8501             8\d{3}
8502           )\d{3}
8503         </nationalNumberPattern>
8504         <exampleNumber>5661234</exampleNumber>
8505       </fixedLine>
8506       <mobile>
8507         <nationalNumberPattern>
8508           (?:
8509             2[0-6]|
8510             [3679]\d
8511           )\d{5}
8512         </nationalNumberPattern>
8513         <exampleNumber>3012345</exampleNumber>
8514       </mobile>
8515     </territory>
8516
8517     <!-- Guinea -->
8518     <territory id="GN" countryCode="224" internationalPrefix="00">
8519       <references>
8520         <sourceUrl>http://www.itu.int/oth/T020200005B/en</sourceUrl>
8521       </references>
8522       <availableFormats>
8523         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
8524           <leadingDigits>3</leadingDigits>
8525           <format>$1 $2 $3 $4</format>
8526         </numberFormat>
8527         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8528           <leadingDigits>[67]</leadingDigits>
8529           <format>$1 $2 $3 $4</format>
8530         </numberFormat>
8531       </availableFormats>
8532       <generalDesc>
8533         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
8534         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
8535       </generalDesc>
8536       <fixedLine>
8537         <nationalNumberPattern>
8538           30(?:
8539             24|
8540             3[12]|
8541             4[1-35-7]|
8542             5[13]|
8543             6[189]|
8544             [78]1|
8545             9[1478]
8546           )\d{4}
8547         </nationalNumberPattern>
8548         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8549         <exampleNumber>30241234</exampleNumber>
8550       </fixedLine>
8551       <mobile>
8552         <!-- Prefixes here match those assigned to carriers, as per the ITU communication Jan 23rd
8553              2013. -->
8554         <nationalNumberPattern>6[02356]\d{7}</nationalNumberPattern>
8555         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8556         <exampleNumber>601123456</exampleNumber>
8557       </mobile>
8558       <voip>
8559         <!-- Gamma concept network is being listed as VoIP as per
8560              http://www.gammaconcept.com/internet%20sat.html -->
8561         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
8562         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8563         <exampleNumber>722123456</exampleNumber>
8564       </voip>
8565     </territory>
8566
8567     <!-- Guadeloupe -->
8568     <territory id="GP" countryCode="590" internationalPrefix="00"
8569                mainCountryForCode="true" nationalPrefix="0"
8570                nationalPrefixFormattingRule="$NP$FG">
8571       <references>
8572         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
8573         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
8574         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
8575       </references>
8576       <availableFormats>
8577         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
8578           <format>$1 $2-$3</format>
8579         </numberFormat>
8580       </availableFormats>
8581       <generalDesc>
8582         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8583         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8584       </generalDesc>
8585       <fixedLine>
8586         <nationalNumberPattern>
8587           590(?:
8588             0[13468]|
8589             1[012]|
8590             2[0-68]|
8591             3[28]|
8592             4[0-8]|
8593             5[579]|
8594             6[0189]|
8595             70|
8596             8[0-689]|
8597             9\d
8598           )\d{4}
8599         </nationalNumberPattern>
8600         <exampleNumber>590201234</exampleNumber>
8601       </fixedLine>
8602       <mobile>
8603         <!-- Any ranges assigned from
8604              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
8605              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
8606              them. -->
8607         <nationalNumberPattern>
8608           690(?:
8609             0[0-7]|
8610             [1-9]\d
8611           )\d{4}
8612         </nationalNumberPattern>
8613         <exampleNumber>690301234</exampleNumber>
8614       </mobile>
8615     </territory>
8616
8617     <!-- Equatorial Guinea -->
8618     <territory id="GQ" countryCode="240" internationalPrefix="00">
8619       <references>
8620         <sourceUrl>http://www.itu.int/oth/T0202000041/en</sourceUrl>
8621       </references>
8622       <availableFormats>
8623         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
8624           <leadingDigits>[235]</leadingDigits>
8625           <format>$1 $2 $3</format>
8626         </numberFormat>
8627         <numberFormat pattern="(\d{3})(\d{6})">
8628           <leadingDigits>[89]</leadingDigits>
8629           <format>$1 $2</format>
8630         </numberFormat>
8631       </availableFormats>
8632       <generalDesc>
8633         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
8634         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8635       </generalDesc>
8636       <fixedLine>
8637         <nationalNumberPattern>
8638           3(?:
8639             3(?:
8640               3\d[7-9]|
8641               [0-24-9]\d[46]
8642             )|
8643             5\d{2}[7-9]
8644           )\d{4}
8645         </nationalNumberPattern>
8646         <exampleNumber>333091234</exampleNumber>
8647       </fixedLine>
8648       <mobile>
8649         <nationalNumberPattern>
8650           (?:
8651             222|
8652             551
8653           )\d{6}
8654         </nationalNumberPattern>
8655         <exampleNumber>222123456</exampleNumber>
8656       </mobile>
8657       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
8658            they start allocating them there will be a differentiation of prefixes, but this is not
8659            clear now. -->
8660       <tollFree>
8661         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
8662         <exampleNumber>800123456</exampleNumber>
8663       </tollFree>
8664       <premiumRate>
8665         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
8666         <exampleNumber>900123456</exampleNumber>
8667       </premiumRate>
8668     </territory>
8669
8670     <!-- Greece -->
8671     <territory id="GR" countryCode="30" internationalPrefix="00" mobileNumberPortableRegion="true">
8672       <references>
8673         <sourceUrl>http://www.itu.int/oth/T0202000055/en</sourceUrl>
8674         <sourceUrl>http://en.wikipedia.org/wiki/%2B30</sourceUrl>
8675       </references>
8676       <availableFormats>
8677         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
8678           <leadingDigits>
8679             21|
8680             7
8681           </leadingDigits>
8682           <format>$1 $2 $3</format>
8683         </numberFormat>
8684         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
8685           <leadingDigits>
8686             2[2-9]1|
8687             [689]
8688           </leadingDigits>
8689           <format>$1 $2 $3</format>
8690         </numberFormat>
8691         <numberFormat pattern="(2\d{3})(\d{6})">
8692           <leadingDigits>2[2-9][02-9]</leadingDigits>
8693           <format>$1 $2</format>
8694         </numberFormat>
8695       </availableFormats>
8696       <generalDesc>
8697         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
8698         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8699       </generalDesc>
8700       <fixedLine>
8701         <nationalNumberPattern>
8702           2(?:
8703             1\d{2}|
8704             2(?:
8705               2[1-46-9]|
8706               3[1-8]|
8707               4[1-7]|
8708               5[1-4]|
8709               6[1-8]|
8710               7[1-5]|
8711               [89][1-9]
8712             )|
8713             3(?:
8714               1\d|
8715               2[1-57]|
8716               [35][1-3]|
8717               4[13]|
8718               7[1-7]|
8719               8[124-6]|
8720               9[1-79]
8721             )|
8722             4(?:
8723               1\d|
8724               2[1-8]|
8725               3[1-4]|
8726               4[13-5]|
8727               6[1-578]|
8728               9[1-5]
8729             )|
8730             5(?:
8731               1\d|
8732               [29][1-4]|
8733               3[1-5]|
8734               4[124]|
8735               5[1-6]
8736             )|
8737             6(?:
8738               1\d|
8739               3[1245]|
8740               4[1-7]|
8741               5[13-9]|
8742               [269][1-6]|
8743               7[14]|
8744               8[1-5]
8745             )|
8746             7(?:
8747               1\d|
8748               2[1-5]|
8749               3[1-6]|
8750               4[1-7]|
8751               5[1-57]|
8752               6[135]|
8753               9[125-7]
8754             )|
8755             8(?:
8756               1\d|
8757               2[1-5]|
8758               [34][1-4]|
8759               9[1-57]
8760             )
8761           )\d{6}
8762         </nationalNumberPattern>
8763         <exampleNumber>2123456789</exampleNumber>
8764       </fixedLine>
8765       <mobile>
8766         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
8767         <exampleNumber>6912345678</exampleNumber>
8768       </mobile>
8769       <tollFree>
8770         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
8771         <exampleNumber>8001234567</exampleNumber>
8772       </tollFree>
8773       <premiumRate>
8774         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
8775         <exampleNumber>9091234567</exampleNumber>
8776       </premiumRate>
8777       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
8778            rate. -->
8779       <sharedCost>
8780         <nationalNumberPattern>
8781           8(?:
8782             0[16]|
8783             12|
8784             25
8785           )\d{7}
8786         </nationalNumberPattern>
8787         <exampleNumber>8011234567</exampleNumber>
8788       </sharedCost>
8789       <personalNumber>
8790         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8791         <exampleNumber>7012345678</exampleNumber>
8792       </personalNumber>
8793     </territory>
8794
8795     <!-- Guatemala -->
8796     <territory id="GT" countryCode="502" internationalPrefix="00">
8797       <references>
8798         <sourceUrl>http://www.itu.int/oth/T020200005A/en</sourceUrl>
8799         <sourceUrl>http://www.sit.gob.gt/index.php?page=plan-de-numeracion</sourceUrl>
8800         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala</sourceUrl>
8801       </references>
8802       <availableFormats>
8803         <numberFormat pattern="(\d{4})(\d{4})">
8804           <leadingDigits>[2-7]</leadingDigits>
8805           <format>$1 $2</format>
8806         </numberFormat>
8807         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
8808           <leadingDigits>1</leadingDigits>
8809           <format>$1 $2 $3</format>
8810         </numberFormat>
8811       </availableFormats>
8812       <generalDesc>
8813         <nationalNumberPattern>
8814           [2-7]\d{7}|
8815           1[89]\d{9}
8816         </nationalNumberPattern>
8817         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
8818       </generalDesc>
8819       <fixedLine>
8820         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
8821         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8822         <exampleNumber>22456789</exampleNumber>
8823       </fixedLine>
8824       <mobile>
8825         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
8826              they are just reserved. -->
8827         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
8828         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8829         <exampleNumber>51234567</exampleNumber>
8830       </mobile>
8831       <tollFree>
8832         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
8833         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8834         <exampleNumber>18001112222</exampleNumber>
8835       </tollFree>
8836       <premiumRate>
8837         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
8838         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8839         <exampleNumber>19001112222</exampleNumber>
8840       </premiumRate>
8841     </territory>
8842
8843     <!-- Guam -->
8844     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
8845                internationalPrefix="011">
8846       <references>
8847         <sourceUrl>http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel</sourceUrl>
8848       </references>
8849       <generalDesc>
8850         <!-- NANPA country - uses US formatting rules -->
8851         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
8852         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8853       </generalDesc>
8854       <fixedLine>
8855         <!-- Added 671 489/555/720/721 based on information from
8856              http://www.area-codes.com/area-code/area-code-671.asp -->
8857         <nationalNumberPattern>
8858           671(?:
8859             3(?:
8860               00|
8861               3[39]|
8862               4[349]|
8863               55|
8864               6[26]
8865             )|
8866             4(?:
8867               56|
8868               7[1-9]|
8869               8[236-9]
8870             )|
8871             5(?:
8872               55|
8873               6[2-5]|
8874               88
8875             )|
8876             6(?:
8877               3[2-578]|
8878               4[24-9]|
8879               5[34]|
8880               78|
8881               8[5-9]
8882             )|
8883             7(?:
8884               [079]7|
8885               2[0167]|
8886               3[45]|
8887               8[789]
8888             )|
8889             8(?:
8890               [2-5789]8|
8891               6[48]
8892             )|
8893             9(?:
8894               2[29]|
8895               6[79]|
8896               7[179]|
8897               8[789]|
8898               9[78]
8899             )
8900           )\d{4}
8901         </nationalNumberPattern>
8902         <exampleNumber>6713001234</exampleNumber>
8903       </fixedLine>
8904       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
8905            -->
8906       <mobile>
8907         <nationalNumberPattern>
8908           671(?:
8909             3(?:
8910               00|
8911               3[39]|
8912               4[349]|
8913               55|
8914               6[26]
8915             )|
8916             4(?:
8917               56|
8918               7[1-9]|
8919               8[236-9]
8920             )|
8921             5(?:
8922               55|
8923               6[2-5]|
8924               88
8925             )|
8926             6(?:
8927               3[2-578]|
8928               4[24-9]|
8929               5[34]|
8930               78|
8931               8[5-9]
8932             )|
8933             7(?:
8934               [079]7|
8935               2[0167]|
8936               3[45]|
8937               8[789]
8938             )|
8939             8(?:
8940               [2-5789]8|
8941               6[48]
8942             )|
8943             9(?:
8944               2[29]|
8945               6[79]|
8946               7[179]|
8947               8[789]|
8948               9[78]
8949             )
8950           )\d{4}
8951         </nationalNumberPattern>
8952         <exampleNumber>6713001234</exampleNumber>
8953       </mobile>
8954       <tollFree>
8955         <nationalNumberPattern>
8956           8(?:
8957             00|
8958             44|
8959             55|
8960             66|
8961             77|
8962             88
8963           )[2-9]\d{6}
8964         </nationalNumberPattern>
8965         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8966         <exampleNumber>8002123456</exampleNumber>
8967       </tollFree>
8968       <premiumRate>
8969         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8970         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8971         <exampleNumber>9002123456</exampleNumber>
8972       </premiumRate>
8973       <personalNumber>
8974         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8975         <nationalNumberPattern>
8976           5(?:
8977             00|
8978             33|
8979             44|
8980             66|
8981             77
8982           )[2-9]\d{6}
8983         </nationalNumberPattern>
8984         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8985         <exampleNumber>5002345678</exampleNumber>
8986       </personalNumber>
8987     </territory>
8988
8989     <!-- Guinea-Bissau -->
8990     <territory id="GW" countryCode="245" internationalPrefix="00">
8991       <references>
8992         <sourceUrl>http://www.itu.int/oth/T020200005C/en</sourceUrl>
8993       </references>
8994       <availableFormats>
8995         <numberFormat pattern="(\d{3})(\d{4})">
8996           <format>$1 $2</format>
8997         </numberFormat>
8998       </availableFormats>
8999       <generalDesc>
9000         <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
9001         <possibleNumberPattern>\d{7}</possibleNumberPattern>
9002       </generalDesc>
9003       <fixedLine>
9004         <nationalNumberPattern>
9005           3(?:
9006             2[0125]|
9007             3[1245]|
9008             4[12]|
9009             5[1-4]|
9010             70|
9011             9[1-467]
9012           )\d{4}
9013         </nationalNumberPattern>
9014         <exampleNumber>3201234</exampleNumber>
9015       </fixedLine>
9016       <mobile>
9017         <nationalNumberPattern>
9018           (?:
9019             [5-7]\d|
9020             9[012]
9021           )\d{5}
9022         </nationalNumberPattern>
9023         <exampleNumber>5012345</exampleNumber>
9024       </mobile>
9025       <voip>
9026         <nationalNumberPattern>40\d{5}</nationalNumberPattern>
9027         <exampleNumber>4012345</exampleNumber>
9028       </voip>
9029     </territory>
9030
9031     <!-- Guyana -->
9032     <territory id="GY" countryCode="592" internationalPrefix="001">
9033       <references>
9034         <sourceUrl>http://www.itu.int/oth/T020200005D/en</sourceUrl>
9035       </references>
9036       <availableFormats>
9037         <numberFormat pattern="(\d{3})(\d{4})">
9038           <format>$1 $2</format>
9039         </numberFormat>
9040       </availableFormats>
9041       <generalDesc>
9042         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
9043         <possibleNumberPattern>\d{7}</possibleNumberPattern>
9044       </generalDesc>
9045       <fixedLine>
9046         <nationalNumberPattern>
9047           (?:
9048             2(?:
9049               1[6-9]|
9050               2[0-35-9]|
9051               3[1-4]|
9052               5[3-9]|
9053               6\d|
9054               7[0-24-79]
9055             )|
9056             3(?:
9057               2[25-9]|
9058               3\d
9059             )|
9060             4(?:
9061               4[0-24]|
9062               5[56]
9063             )|
9064             77[1-57]
9065           )\d{4}
9066         </nationalNumberPattern>
9067         <exampleNumber>2201234</exampleNumber>
9068       </fixedLine>
9069       <mobile>
9070         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
9071              that SMS messages have been succesfully sent to numbers in the entire range prefixed
9072              with 6. -->
9073         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
9074         <exampleNumber>6091234</exampleNumber>
9075       </mobile>
9076       <tollFree>
9077         <nationalNumberPattern>
9078           (?:
9079             289|
9080             862
9081           )\d{4}
9082         </nationalNumberPattern>
9083         <exampleNumber>2891234</exampleNumber>
9084       </tollFree>
9085       <premiumRate>
9086         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
9087         <exampleNumber>9008123</exampleNumber>
9088       </premiumRate>
9089     </territory>
9090
9091     <!-- Hong Kong -->
9092     <territory id="HK" countryCode="852" internationalPrefix="00" mobileNumberPortableRegion="true">
9093       <references>
9094         <sourceUrl>http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html</sourceUrl>
9095       </references>
9096       <availableFormats>
9097         <numberFormat pattern="(\d{4})(\d{4})">
9098           <leadingDigits>
9099             [235-7]|
9100             [89](?:
9101               0[1-9]|
9102               [1-9]
9103             )
9104           </leadingDigits>
9105           <format>$1 $2</format>
9106         </numberFormat>
9107         <numberFormat pattern="(800)(\d{3})(\d{3})">
9108           <leadingDigits>800</leadingDigits>
9109           <format>$1 $2 $3</format>
9110         </numberFormat>
9111         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
9112           <leadingDigits>900</leadingDigits>
9113           <format>$1 $2 $3 $4</format>
9114         </numberFormat>
9115         <numberFormat pattern="(900)(\d{2,5})">
9116           <leadingDigits>900</leadingDigits>
9117           <format>$1 $2</format>
9118         </numberFormat>
9119       </availableFormats>
9120       <generalDesc>
9121         <!-- Slightly more complex pattern to allow the country code to be stripped off if
9122              necessary. -->
9123         <nationalNumberPattern>
9124           [235-7]\d{7}|
9125           8\d{7,8}|
9126           9\d{4,10}
9127         </nationalNumberPattern>
9128         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9129       </generalDesc>
9130       <fixedLine>
9131         <nationalNumberPattern>
9132           (?:
9133             [23]\d|
9134             5[78]
9135           )\d{6}
9136         </nationalNumberPattern>
9137         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9138         <exampleNumber>21234567</exampleNumber>
9139       </fixedLine>
9140       <mobile>
9141         <nationalNumberPattern>
9142           (?:
9143             5[1-69]\d|
9144             6\d{2}|
9145             9(?:
9146               0[1-9]|
9147               [1-8]\d
9148             )
9149           )\d{5}
9150         </nationalNumberPattern>
9151         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9152         <exampleNumber>51234567</exampleNumber>
9153       </mobile>
9154       <pager>
9155         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
9156         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9157         <exampleNumber>71234567</exampleNumber>
9158       </pager>
9159       <tollFree>
9160         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
9161         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9162         <exampleNumber>800123456</exampleNumber>
9163       </tollFree>
9164       <premiumRate>
9165         <nationalNumberPattern>
9166           900(?:
9167             [0-24-9]\d{7}|
9168             3\d{1,4}
9169           )
9170         </nationalNumberPattern>
9171         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9172         <exampleNumber>90012345678</exampleNumber>
9173       </premiumRate>
9174       <personalNumber>
9175         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
9176         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9177         <exampleNumber>81123456</exampleNumber>
9178       </personalNumber>
9179    </territory>
9180
9181     <!-- Honduras -->
9182     <!-- It seems there is no longer a trunk prefix in use, based on websites like
9183          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
9184          national format. -->
9185     <territory id="HN" countryCode="504" internationalPrefix="00" >
9186       <references>
9187         <sourceUrl>http://www.itu.int/oth/T020200005F/en</sourceUrl>
9188       </references>
9189       <availableFormats>
9190        <numberFormat pattern="(\d{4})(\d{4})">
9191          <format>$1-$2</format>
9192        </numberFormat>
9193       </availableFormats>
9194       <generalDesc>
9195         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
9196         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9197       </generalDesc>
9198       <fixedLine>
9199         <!-- Extra prefixes 227[01389], 228X, 2292 & 260X were added from numbers found online. -->
9200         <nationalNumberPattern>
9201           2(?:
9202             2(?:
9203               0[019]|
9204               1[1-36]|
9205               [23]\d|
9206               4[056]|
9207               5[57]|
9208               7[01389]|
9209               8[0146-9]|
9210               9[012]
9211             )|
9212             4(?:
9213               2[3-59]|
9214               3[13-689]|
9215               4[0-68]|
9216               5[1-35]
9217             )|
9218             5(?:
9219               4[3-5]|
9220               5\d|
9221               6[56]|
9222               74
9223             )|
9224             6(?:
9225               [056]\d|
9226               4[0-378]|
9227               [78][0-8]|
9228               9[01]
9229             )|
9230             7(?:
9231               6[46-9]|
9232               7[02-9]|
9233               8[34]
9234             )|
9235             8(?:
9236               79|
9237               8[0-35789]|
9238               9[1-57-9]
9239             )
9240           )\d{4}
9241         </nationalNumberPattern>
9242         <exampleNumber>22123456</exampleNumber>
9243       </fixedLine>
9244       <mobile>
9245         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
9246         <exampleNumber>91234567</exampleNumber>
9247       </mobile>
9248     </territory>
9249
9250     <!-- Croatia -->
9251     <territory id="HR" countryCode="385" internationalPrefix="00"
9252                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
9253                mobileNumberPortableRegion="true">
9254       <references>
9255         <sourceUrl>http://www.itu.int/oth/T0202000032/en</sourceUrl>
9256         <sourceUrl>http://en.wikipedia.org/wiki/%2B385</sourceUrl>
9257       </references>
9258       <availableFormats>
9259         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
9260              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
9261              XXXX as well. -->
9262        <numberFormat pattern="(1)(\d{4})(\d{3})">
9263          <leadingDigits>1</leadingDigits>
9264          <format>$1 $2 $3</format>
9265        </numberFormat>
9266        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
9267          <leadingDigits>6[09]</leadingDigits>
9268          <format>$1 $2 $3</format>
9269        </numberFormat>
9270        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
9271          <leadingDigits>62</leadingDigits>
9272          <format>$1 $2 $3</format>
9273        </numberFormat>
9274        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
9275          <leadingDigits>[2-5]</leadingDigits>
9276           <format>$1 $2 $3</format>
9277         </numberFormat>
9278         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
9279           <leadingDigits>9</leadingDigits>
9280           <format>$1 $2 $3</format>
9281         </numberFormat>
9282         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
9283           <leadingDigits>9</leadingDigits>
9284           <format>$1 $2 $3</format>
9285         </numberFormat>
9286         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
9287           <leadingDigits>9</leadingDigits>
9288           <format>$1 $2 $3 $4</format>
9289         </numberFormat>
9290         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
9291           <leadingDigits>
9292             6[145]|
9293             7
9294           </leadingDigits>
9295           <format>$1 $2 $3</format>
9296         </numberFormat>
9297         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
9298           <leadingDigits>
9299             6[145]|
9300             7
9301           </leadingDigits>
9302           <format>$1 $2 $3</format>
9303         </numberFormat>
9304         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
9305           <leadingDigits>8</leadingDigits>
9306           <format>$1 $2 $3</format>
9307         </numberFormat>
9308         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
9309           <leadingDigits>8</leadingDigits>
9310           <format>$1 $2 $3</format>
9311         </numberFormat>
9312       </availableFormats>
9313       <generalDesc>
9314         <nationalNumberPattern>
9315           [1-7]\d{5,8}|
9316           [89]\d{6,11}
9317         </nationalNumberPattern>
9318         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
9319       </generalDesc>
9320       <fixedLine>
9321         <nationalNumberPattern>
9322           1\d{7}|
9323           (?:
9324             2[0-3]|
9325             3[1-5]|
9326             4[02-47-9]|
9327             5[1-3]
9328           )\d{6}
9329         </nationalNumberPattern>
9330         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
9331         <exampleNumber>12345678</exampleNumber>
9332       </fixedLine>
9333       <uan>
9334         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
9335              are numbers on the internet with 6 or 7 digits after the prefix. -->
9336         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
9337         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
9338         <exampleNumber>62123456</exampleNumber>
9339       </uan>
9340       <mobile>
9341         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
9342         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
9343         <exampleNumber>912345678</exampleNumber>
9344       </mobile>
9345       <tollFree>
9346         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
9347         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9348         <exampleNumber>8001234567</exampleNumber>
9349       </tollFree>
9350       <premiumRate>
9351         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
9352              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
9353              -->
9354         <nationalNumberPattern>
9355           6(?:
9356             [09]\d{7}|
9357             [145]\d{4,7}
9358           )
9359         </nationalNumberPattern>
9360         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9361         <exampleNumber>611234</exampleNumber>
9362       </premiumRate>
9363       <personalNumber>
9364         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
9365         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9366         <exampleNumber>741234567</exampleNumber>
9367       </personalNumber>
9368     </territory>
9369
9370     <!-- Haiti -->
9371     <territory id="HT" countryCode="509" internationalPrefix="00">
9372       <references>
9373         <sourceUrl>http://www.itu.int/oth/T020200005E/en</sourceUrl>
9374         <sourceUrl>http://www.numberingplans.com/</sourceUrl>
9375       </references>
9376       <availableFormats>
9377         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
9378           <format>$1 $2 $3</format>
9379         </numberFormat>
9380       </availableFormats>
9381       <generalDesc>
9382         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9383         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9384       </generalDesc>
9385       <fixedLine>
9386         <!-- The prefix 24 seems to be also used, based on online searches. -->
9387         <nationalNumberPattern>
9388           2(?:
9389             [24]\d|
9390             5[1-5]|
9391             94
9392           )\d{5}
9393         </nationalNumberPattern>
9394         <exampleNumber>22453300</exampleNumber>
9395       </fixedLine>
9396       <mobile>
9397         <!-- The prefix 31 seems to be also used, based on online searches. -->
9398         <nationalNumberPattern>
9399           (?:
9400             3[1-9]|
9401             4\d
9402           )\d{6}
9403         </nationalNumberPattern>
9404         <exampleNumber>34101234</exampleNumber>
9405       </mobile>
9406       <tollFree>
9407         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
9408              without making any further distinction. However, http://www.numberingplans.com/ seems
9409              to suggest they are free. -->
9410         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
9411         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9412         <exampleNumber>80012345</exampleNumber>
9413       </tollFree>
9414       <voip>
9415         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
9416              98[89]\d{5}. -->
9417         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
9418         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9419         <exampleNumber>98901234</exampleNumber>
9420       </voip>
9421     </territory>
9422
9423     <!-- Hungary -->
9424     <territory id="HU" countryCode="36" internationalPrefix="00"
9425                nationalPrefix="06" nationalPrefixFormattingRule="($FG)"
9426                mobileNumberPortableRegion="true">
9427       <references>
9428         <sourceUrl>http://www.itu.int/oth/T0202000061/en</sourceUrl>
9429       </references>
9430       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
9431            by a Hungarian person and following the yellow pages) is to omit this when formatting.
9432            Yellow pages: http://www.aranyoldalak.hu -->
9433       <availableFormats>
9434         <numberFormat pattern="(1)(\d{3})(\d{4})">
9435           <leadingDigits>1</leadingDigits>
9436           <format>$1 $2 $3</format>
9437         </numberFormat>
9438         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9439           <leadingDigits>[2-9]</leadingDigits>
9440           <format>$1 $2 $3</format>
9441         </numberFormat>
9442       </availableFormats>
9443       <generalDesc>
9444         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
9445         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9446       </generalDesc>
9447       <noInternationalDialling>
9448         <nationalNumberPattern>[48]0\d{6}</nationalNumberPattern>
9449         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9450         <exampleNumber>80123456</exampleNumber>
9451       </noInternationalDialling>
9452       <fixedLine>
9453         <!-- Includes numbers for corporate networks. Note the ITU numbering plan contains a M2M
9454              number in the form of 71\d{10}, which doesn't seem to agree with evidence online. We
9455              keep it as 71\d{7} like before. -->
9456         <nationalNumberPattern>
9457           (?:
9458             1\d|
9459             2(?:
9460               1\d|
9461               [2-9]
9462             )|
9463             3(?:
9464               [2-7]|
9465               8\d
9466             )|
9467             4[24-9]|
9468             5[2-79]|
9469             6[23689]|
9470             7(?:
9471               1\d|
9472               [2-9]
9473             )|
9474             8[2-57-9]|
9475             9[2-69]
9476           )\d{6}
9477         </nationalNumberPattern>
9478         <exampleNumber>12345678</exampleNumber>
9479       </fixedLine>
9480       <mobile>
9481         <nationalNumberPattern>
9482           (?:
9483             [257]0|
9484             3[01]
9485           )\d{7}
9486         </nationalNumberPattern>
9487         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9488         <exampleNumber>201234567</exampleNumber>
9489       </mobile>
9490       <tollFree>
9491         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
9492         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9493         <exampleNumber>80123456</exampleNumber>
9494       </tollFree>
9495       <premiumRate>
9496         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
9497         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9498         <exampleNumber>90123456</exampleNumber>
9499       </premiumRate>
9500       <sharedCost>
9501         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
9502         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9503         <exampleNumber>40123456</exampleNumber>
9504       </sharedCost>
9505     </territory>
9506
9507     <!-- Indonesia -->
9508     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
9509                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9510       <references>
9511         <!-- From 2001, very out of date. -->
9512         <sourceUrl>http://www.itu.int/oth/T0202000064/en</sourceUrl>
9513         <sourceUrl>http://en.wikipedia.org/wiki/%2B62</sourceUrl>
9514       </references>
9515       <availableFormats>
9516         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9517           pattern="(\d{2})(\d{5,8})">
9518           <leadingDigits>
9519             2[124]|
9520             [36]1
9521           </leadingDigits>
9522           <format>$1 $2</format>
9523         </numberFormat>
9524         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9525           pattern="(\d{3})(\d{5,8})">
9526           <leadingDigits>
9527             [4579]|
9528             2[035-9]|
9529             [36][02-9]
9530           </leadingDigits>
9531           <format>$1 $2</format>
9532         </numberFormat>
9533         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
9534           <leadingDigits>8[1-35-9]</leadingDigits>
9535           <format>$1-$2-$3</format>
9536         </numberFormat>
9537         <numberFormat pattern="(177)(\d{6,8})">
9538           <leadingDigits>1</leadingDigits>
9539           <format>$1 $2</format>
9540         </numberFormat>
9541         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
9542              that sometimes they are followed by less digits. -->
9543         <numberFormat pattern="(800)(\d{5,7})">
9544           <leadingDigits>800</leadingDigits>
9545           <format>$1 $2</format>
9546         </numberFormat>
9547         <numberFormat pattern="(80\d)(\d)(\d{3})(\d{3})">
9548           <leadingDigits>80[79]</leadingDigits>
9549           <format>$1 $2 $3 $4</format>
9550         </numberFormat>
9551       </availableFormats>
9552       <generalDesc>
9553         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
9554         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9555       </generalDesc>
9556       <fixedLine>
9557         <!-- Area codes taken from wikipedia, with missing ones added from
9558              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
9559              We also added 0770 after user feedback because it seems to be used on Bintan island.
9560              Where known, fixed mobile prefixes have been represented as Mobile. -->
9561         <!-- Very short (5/6 digit) local numbers in Jakarta seem to be special cases for various
9562              well known companies (Mc Donalds, KFC etc...). Some of these are listed in:
9563              http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf
9564              There seem to be numbers of this length for area code 22 as well based on numbers found
9565              online. -->
9566         <nationalNumberPattern>
9567           2(?:
9568             1(?:
9569               14\d{3}|
9570               [0-8]\d{6,7}|
9571               500\d{3}|
9572               9\d{6}
9573             )|
9574             2\d{6,8}|
9575             4\d{7,8}
9576           )|
9577           (?:
9578             2(?:
9579               [35][1-4]|
9580               6[0-8]|
9581               7[1-6]|
9582               8\d|
9583               9[1-8]
9584             )|
9585             3(?:
9586               1|
9587               2[1-8]|
9588               3[1-68]|
9589               4[1-3]|
9590               5[1-8]|
9591               6[1-3568]|
9592               7[0-469]|
9593               8\d
9594             )|
9595             4(?:
9596               0[1-589]|
9597               1[01347-9]|
9598               2[0-36-8]|
9599               3[0-24-68]|
9600               43|
9601               5[1-378]|
9602               6[1-5]|
9603               7[134]|
9604               8[1245]
9605             )|
9606             5(?:
9607               1[1-35-9]|
9608               2[25-8]|
9609               3[124-9]|
9610               4[1-3589]|
9611               5[1-46]|
9612               6[1-8]
9613             )|
9614             6(?:
9615               19?|
9616               [25]\d|
9617               3[1-69]|
9618               4[1-6]
9619             )|
9620             7(?:
9621               02|
9622               1[1-9]|
9623               2[1-9]|
9624               [36]\d|
9625               4[1-8]|
9626               5[1-9]|
9627               7[0-36-9]
9628             )|
9629             9(?:
9630               0[12]|
9631               1[013-8]|
9632               2[0-479]|
9633               5[125-8]|
9634               6[23679]|
9635               7[159]|
9636               8[01346]
9637             )
9638           )\d{5,8}
9639         </nationalNumberPattern>
9640         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9641         <exampleNumber>612345678</exampleNumber>
9642       </fixedLine>
9643       <mobile>
9644         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
9645              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
9646              are captured below. The pattern covers the area code plus the first one-two digits of
9647              the subscriber number. -->
9648         <nationalNumberPattern>
9649           (?:
9650             2(?:
9651               1(?:
9652                 3[145]|
9653                 4[01]|
9654                 5[1-469]|
9655                 60|
9656                 8[0359]|
9657                 9\d
9658               )|
9659               2(?:
9660                 88|
9661                 9[1256]
9662               )|
9663               3[1-4]9|
9664               4(?:
9665                 36|
9666                 91
9667               )|
9668               5(?:
9669                 1[349]|
9670                 [2-4]9
9671               )|
9672               6[0-7]9|
9673               7(?:
9674                 [1-36]9|
9675                 4[39]
9676               )|
9677               8[1-5]9|
9678               9[1-48]9
9679             )|
9680             3(?:
9681               19[1-3]|
9682               2[12]9|
9683               3[13]9|
9684               4(?:
9685                 1[69]|
9686                 39
9687               )|
9688               5[14]9|
9689               6(?:
9690                 1[69]|
9691                 2[89]
9692               )|
9693               709
9694             )|
9695             4[13]19|
9696             5(?:
9697               1(?:
9698                 19|
9699                 8[39]
9700               )|
9701               4[129]9|
9702               6[12]9
9703             )|
9704             6(?:
9705               19[12]|
9706               2(?:
9707                 [23]9|
9708                 77
9709               )
9710             )|
9711             7(?:
9712               1[13]9|
9713               2[15]9|
9714               419|
9715               5(?:
9716                 1[89]|
9717                 29
9718               )|
9719               6[15]9|
9720               7[178]9
9721             )
9722           )\d{5,6}|
9723           8[1-35-9]\d{7,9}
9724         </nationalNumberPattern>
9725         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
9726         <exampleNumber>812345678</exampleNumber>
9727       </mobile>
9728       <tollFree>
9729         <nationalNumberPattern>
9730           177\d{6,8}|
9731           800\d{5,7}
9732         </nationalNumberPattern>
9733         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
9734         <exampleNumber>8001234567</exampleNumber>
9735       </tollFree>
9736       <uan>
9737         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9738         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9739         <exampleNumber>8071123456</exampleNumber>
9740       </uan>
9741       <noInternationalDialling>
9742         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9743         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9744         <exampleNumber>8071123456</exampleNumber>
9745       </noInternationalDialling>
9746       <!-- The information below is provided by an Indonesian -->
9747       <premiumRate>
9748         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
9749         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9750         <exampleNumber>8091234567</exampleNumber>
9751       </premiumRate>
9752     </territory>
9753
9754     <!-- Ireland -->
9755     <territory id="IE" countryCode="353" internationalPrefix="00"
9756                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
9757                mobileNumberPortableRegion="true">
9758       <references>
9759         <sourceUrl>http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html</sourceUrl>
9760         <sourceUrl>http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf</sourceUrl>
9761       </references>
9762       <availableFormats>
9763         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
9764           <leadingDigits>1</leadingDigits>
9765           <format>$1 $2 $3</format>
9766         </numberFormat>
9767         <numberFormat pattern="(\d{2})(\d{5})">
9768           <leadingDigits>
9769             2[24-9]|
9770             47|
9771             58|
9772             6[237-9]|
9773             9[35-9]
9774           </leadingDigits>
9775           <format>$1 $2</format>
9776         </numberFormat>
9777         <numberFormat pattern="(\d{3})(\d{5})">
9778           <leadingDigits>
9779             40[24]|
9780             50[45]
9781           </leadingDigits>
9782           <format>$1 $2</format>
9783         </numberFormat>
9784         <numberFormat pattern="(48)(\d{4})(\d{4})">
9785           <leadingDigits>48</leadingDigits>
9786           <format>$1 $2 $3</format>
9787         </numberFormat>
9788         <numberFormat pattern="(818)(\d{3})(\d{3})">
9789           <leadingDigits>81</leadingDigits>
9790           <format>$1 $2 $3</format>
9791         </numberFormat>
9792         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9793           <leadingDigits>
9794             [24-69]|
9795             7[14]
9796           </leadingDigits>
9797           <format>$1 $2 $3</format>
9798         </numberFormat>
9799         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9800           pattern="([78]\d)(\d{3,4})(\d{4})">
9801           <leadingDigits>
9802             76|
9803             8[35-9]
9804           </leadingDigits>
9805           <format>$1 $2 $3</format>
9806         </numberFormat>
9807         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9808           pattern="(700)(\d{3})(\d{3})">
9809           <leadingDigits>70</leadingDigits>
9810           <format>$1 $2 $3</format>
9811         </numberFormat>
9812         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
9813           <leadingDigits>
9814             1(?:
9815               8[059]|
9816               5
9817             )
9818           </leadingDigits>
9819           <leadingDigits>
9820             1(?:
9821               8[059]0|
9822               5
9823             )
9824           </leadingDigits>
9825           <format>$1 $2 $3</format>
9826         </numberFormat>
9827       </availableFormats>
9828       <generalDesc>
9829         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
9830         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9831       </generalDesc>
9832       <noInternationalDialling>
9833         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9834         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9835         <exampleNumber>1850123456</exampleNumber>
9836       </noInternationalDialling>
9837       <fixedLine>
9838         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
9839              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
9840              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
9841              Ireland. We support these numbers here, although technically they are numbers for the
9842              UK. -->
9843         <nationalNumberPattern>
9844           1\d{7,8}|
9845           2(?:
9846             1\d{6,7}|
9847             3\d{7}|
9848             [24-9]\d{5}
9849           )|
9850           4(?:
9851             0[24]\d{5}|
9852             [1-469]\d{7}|
9853             5\d{6}|
9854             7\d{5}|
9855             8[0-46-9]\d{7}
9856           )|
9857           5(?:
9858             0[45]\d{5}|
9859             1\d{6}|
9860             [23679]\d{7}|
9861             8\d{5}
9862           )|
9863           6(?:
9864             1\d{6}|
9865             [237-9]\d{5}|
9866             [4-6]\d{7}
9867           )|
9868           7[14]\d{7}|
9869           9(?:
9870             1\d{6}|
9871             [04]\d{7}|
9872             [35-9]\d{5}
9873           )
9874         </nationalNumberPattern>
9875         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9876         <exampleNumber>2212345</exampleNumber>
9877       </fixedLine>
9878       <mobile>
9879         <nationalNumberPattern>
9880           8(?:
9881             22\d{6}|
9882             [35-9]\d{7}
9883           )
9884         </nationalNumberPattern>
9885         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9886         <exampleNumber>850123456</exampleNumber>
9887       </mobile>
9888       <tollFree>
9889         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
9890         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9891         <exampleNumber>1800123456</exampleNumber>
9892       </tollFree>
9893       <premiumRate>
9894         <nationalNumberPattern>
9895           15(?:
9896             1[2-8]|
9897             [2-8]0|
9898             9[089]
9899           )\d{6}
9900         </nationalNumberPattern>
9901         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9902         <exampleNumber>1520123456</exampleNumber>
9903       </premiumRate>
9904       <sharedCost>
9905         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9906         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9907         <exampleNumber>1850123456</exampleNumber>
9908       </sharedCost>
9909       <personalNumber>
9910         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
9911         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9912         <exampleNumber>700123456</exampleNumber>
9913       </personalNumber>
9914       <voip>
9915         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
9916         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9917         <exampleNumber>761234567</exampleNumber>
9918       </voip>
9919       <uan>
9920         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
9921         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9922         <exampleNumber>818123456</exampleNumber>
9923       </uan>
9924       <voicemail>
9925         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
9926         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9927         <exampleNumber>8501234567</exampleNumber>
9928       </voicemail>
9929     </territory>
9930
9931     <!-- Israel -->
9932     <!-- Formatting practice following wikipedia, and government sites. -->
9933     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
9934                nationalPrefix="0" nationalPrefixFormattingRule="$FG"
9935                mobileNumberPortableRegion="true">
9936       <references>
9937         <sourceUrl>http://www.itu.int/oth/T020200006A/en</sourceUrl>
9938         <sourceUrl>http://en.wikipedia.org/wiki/%2B972</sourceUrl>
9939         <!-- in Hebrew -->
9940         <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>
9941       </references>
9942       <availableFormats>
9943         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9944           pattern="([2-489])(\d{3})(\d{4})">
9945           <leadingDigits>[2-489]</leadingDigits>
9946           <format>$1-$2-$3</format>
9947         </numberFormat>
9948         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9949           pattern="([57]\d)(\d{3})(\d{4})">
9950           <leadingDigits>[57]</leadingDigits>
9951           <format>$1-$2-$3</format>
9952         </numberFormat>
9953         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
9954           <leadingDigits>1[7-9]</leadingDigits>
9955           <format>$1-$2-$3-$4</format>
9956         </numberFormat>
9957         <!-- The following number is for hospitals. -->
9958         <numberFormat pattern="(1255)(\d{3})">
9959           <leadingDigits>125</leadingDigits>
9960           <format>$1-$2</format>
9961         </numberFormat>
9962         <numberFormat pattern="(1200)(\d{3})(\d{3})">
9963           <leadingDigits>120</leadingDigits>
9964           <format>$1-$2-$3</format>
9965         </numberFormat>
9966         <numberFormat pattern="(1212)(\d{2})(\d{2})">
9967           <leadingDigits>121</leadingDigits>
9968           <format>$1-$2-$3</format>
9969         </numberFormat>
9970         <!-- The following is for voicemail access. -->
9971         <numberFormat pattern="(1599)(\d{6})">
9972           <leadingDigits>15</leadingDigits>
9973           <format>$1-$2</format>
9974         </numberFormat>
9975         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
9976              dialed with a star in front of the number. -->
9977         <numberFormat pattern="(\d{4})">
9978           <leadingDigits>[2-689]</leadingDigits>
9979           <format>*$1</format>
9980         </numberFormat>
9981       </availableFormats>
9982       <generalDesc >
9983         <nationalNumberPattern>
9984           [17]\d{6,9}|
9985           [2-589]\d{3}(?:\d{3,6})?|
9986           6\d{3}
9987         </nationalNumberPattern>
9988         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9989       </generalDesc>
9990       <noInternationalDialling>
9991         <nationalNumberPattern>
9992           1700\d{6}|
9993           [2-689]\d{3}
9994         </nationalNumberPattern>
9995         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9996         <exampleNumber>1700123456</exampleNumber>
9997       </noInternationalDialling>
9998       <fixedLine>
9999         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
10000         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
10001         <exampleNumber>21234567</exampleNumber>
10002       </fixedLine>
10003       <mobile>
10004         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
10005              sure wikipedia is accurate based on news coverage of the launch of these numbers. Also
10006              added 5570 and 5571 prefixes based on confirmation from the carrier. -->
10007         <nationalNumberPattern>
10008           5(?:
10009             [02347-9]\d{2}|
10010             5(?:
10011               01|
10012               2[23]|
10013               3[34]|
10014               4[45]|
10015               5[5689]|
10016               6[67]|
10017               7[0178]|
10018               8[7-9]|
10019               9[7-9]
10020             )|
10021             6[2-9]\d
10022           )\d{5}
10023         </nationalNumberPattern>
10024         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10025         <exampleNumber>501234567</exampleNumber>
10026       </mobile>
10027       <tollFree>
10028         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
10029         <nationalNumberPattern>
10030           1(?:
10031             80[019]\d{3}|
10032             255
10033           )\d{3}
10034         </nationalNumberPattern>
10035         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
10036         <exampleNumber>1800123456</exampleNumber>
10037       </tollFree>
10038       <premiumRate>
10039           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
10040                However, no online numbers starting with these prefixes can be found, and this data
10041                is not found in any other source. -->
10042           <!-- 1200 and 1212 numbers are for televoting. -->
10043         <nationalNumberPattern>
10044           1(?:
10045             212|
10046             (?:
10047               9(?:
10048                 0[01]|
10049                 19
10050               )|
10051               200
10052             )\d{2}
10053           )\d{4}
10054         </nationalNumberPattern>
10055         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
10056         <exampleNumber>1919123456</exampleNumber>
10057       </premiumRate>
10058       <sharedCost>
10059         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
10060         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10061         <exampleNumber>1700123456</exampleNumber>
10062       </sharedCost>
10063       <voip>
10064         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
10065              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
10066              Dialing) numbers, that most people forward to VoIP numbers. -->
10067         <nationalNumberPattern>
10068           7(?:
10069             2[23]\d|
10070             3[237]\d|
10071             47\d|
10072             6(?:
10073               5\d|
10074               8[068]
10075             )|
10076             7\d{2}|
10077             8(?:
10078               33|
10079               55|
10080               77|
10081               81
10082             )
10083           )\d{5}
10084         </nationalNumberPattern>
10085         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10086         <exampleNumber>771234567</exampleNumber>
10087       </voip>
10088       <uan>
10089         <!-- 4-digit star numbers and 1-599 numbers. The latter are actually labelled "interactive
10090              voicemail" in the ITU document, but according to reports from businesses in Israel and
10091              the Hebrew version of the wikipedia page, these are actually a router for business
10092              calls, and incur a normal call cost on account of the caller. -->
10093         <nationalNumberPattern>
10094           [2-689]\d{3}|
10095           1599\d{6}
10096         </nationalNumberPattern>
10097         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
10098         <exampleNumber>1599123456</exampleNumber>
10099       </uan>
10100     </territory>
10101
10102     <!-- Isle of Man -->
10103     <!-- Inherits formatting rules from the UK. -->
10104     <territory id="IM" countryCode="44" internationalPrefix="00"
10105                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
10106       <references>
10107         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
10108       </references>
10109       <generalDesc>
10110         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
10111         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10112       </generalDesc>
10113       <areaCodeOptional>
10114         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
10115         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10116         <exampleNumber>1624250123</exampleNumber>
10117       </areaCodeOptional>
10118       <!-- Specific to IM. -->
10119       <fixedLine>
10120         <!-- 1624 with 10 digits. -->
10121         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
10122         <exampleNumber>1624456789</exampleNumber>
10123       </fixedLine>
10124       <mobile>
10125         <!-- 7524, 7624, 7924 with 10 digits. -->
10126         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
10127         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10128         <exampleNumber>7924123456</exampleNumber>
10129       </mobile>
10130       <tollFree>
10131         <!-- 808 162 with 10 digits. -->
10132         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
10133         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10134         <exampleNumber>8081624567</exampleNumber>
10135       </tollFree>
10136       <premiumRate>
10137         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
10138         <nationalNumberPattern>
10139           (?:
10140             872299|
10141             90[0167]624
10142           )\d{4}
10143         </nationalNumberPattern>
10144         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10145         <exampleNumber>9016247890</exampleNumber>
10146       </premiumRate>
10147       <sharedCost>
10148         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
10149         <nationalNumberPattern>
10150           8(?:
10151             4(?:
10152               40[49]06|
10153               5624\d
10154             )|
10155             70624\d
10156           )\d{3}
10157         </nationalNumberPattern>
10158         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10159         <exampleNumber>8456247890</exampleNumber>
10160       </sharedCost>
10161       <!-- Other numbers as per GB. -->
10162       <personalNumber>
10163         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
10164         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10165         <exampleNumber>7012345678</exampleNumber>
10166       </personalNumber>
10167       <voip>
10168         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
10169         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10170         <exampleNumber>5612345678</exampleNumber>
10171       </voip>
10172       <uan>
10173         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
10174         <nationalNumberPattern>
10175           3(?:
10176             08162\d|
10177             3\d{5}|
10178             4(?:
10179               40[49]06|
10180               5624\d
10181             )|
10182             7(?:
10183               0624\d|
10184               2299\d
10185             )
10186           )\d{3}|
10187           55\d{8}
10188         </nationalNumberPattern>
10189         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10190         <exampleNumber>5512345678</exampleNumber>
10191       </uan>
10192     </territory>
10193
10194     <!-- India -->
10195     <!-- Note that several changes in area codes have occurred since the numbering plan was released
10196          - fixed line changes are notified on the http://www.bsnl.co.in website. Area codes can be
10197          verified here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
10198     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
10199                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true"
10200                mobileNumberPortableRegion="true">
10201       <references>
10202         <sourceUrl>http://www.itu.int/oth/T0202000063/en</sourceUrl>
10203         <sourceUrl>http://en.wikipedia.org/wiki/%2B91</sourceUrl>
10204         <sourceUrl>http://www.coai.in/msccodes.php</sourceUrl>
10205       </references>
10206        <availableFormats>
10207          <!-- Mobile numbers. -->
10208          <numberFormat pattern="(\d{5})(\d{5})">
10209            <leadingDigits>
10210              7(?:
10211                0[2-9]|
10212                2[0579]|
10213                3[057-9]|
10214                4[0-389]|
10215                6[0-35-9]|
10216                [57]|
10217                8[0-79]
10218              )|
10219              8(?:
10220                0[015689]|
10221                1[0-57-9]|
10222                2[2356-9]|
10223                3[0-57-9]|
10224                [45]|
10225                6[02457-9]|
10226                7[1-69]|
10227                8[0124-9]|
10228                9[02-9]
10229              )|
10230              9
10231            </leadingDigits>
10232            <leadingDigits>
10233              7(?:
10234                0(?:
10235                  2[2-9]|
10236                  [3-8]|
10237                  9[0-8]
10238                )|
10239                2(?:
10240                  0[04-9]|
10241                  5[09]|
10242                  7[5-8]|
10243                  9[389]
10244                )|
10245                3(?:
10246                  0[1-9]|
10247                  [58]|
10248                  7[3679]|
10249                  9[689]
10250                )|
10251                4(?:
10252                  0[1-9]|
10253                  1[15-9]|
10254                  [29][89]|
10255                  39|
10256                  8[389]
10257                )|
10258                5(?:
10259                  [034678]|
10260                  2[03-9]|
10261                  5[017-9]|
10262                  9[7-9]
10263                )|
10264                6(?:
10265                  0[0-27]|
10266                  1[0-257-9]|
10267                  2[0-4]|
10268                  3[19]|
10269                  5[4589]|
10270                  [6-9]
10271                )|
10272                7(?:
10273                  0[2-9]|
10274                  [1-79]|
10275                  8[1-9]
10276                )|
10277                8(?:
10278                  [0-7]|
10279                  9[013-9]
10280                )
10281              )|
10282              8(?:
10283                0(?:
10284                  [01589]|
10285                  6[67]
10286                )|
10287                1(?:
10288                  [02-589]|
10289                  1[0135-9]|
10290                  7[0-79]
10291                )|
10292                2(?:
10293                  [236-9]|
10294                  5[1-9]
10295                )|
10296                3(?:
10297                  [0357-9]|
10298                  4[1-9]
10299                )|
10300                [45]|
10301                6[02457-9]|
10302                7[1-69]|
10303                8(?:
10304                  [0-26-9]|
10305                  44|
10306                  5[2-9]
10307                )|
10308                9(?:
10309                  [035-9]|
10310                  2[2-9]|
10311                  4[0-8]
10312                )
10313              )|
10314              9
10315            </leadingDigits>
10316            <format>$1 $2</format>
10317          </numberFormat>
10318          <!-- 2 digits area code -->
10319          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10320            <leadingDigits>
10321              11|
10322              2[02]|
10323              33|
10324              4[04]|
10325              79|
10326              80[2-46]
10327            </leadingDigits>
10328            <format>$1 $2 $3</format>
10329          </numberFormat>
10330          <!-- 3 digit area codes that don't clash with mobile patterns. -->
10331          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10332            <leadingDigits>
10333              1(?:
10334                2[0-249]|
10335                3[0-25]|
10336                4[145]|
10337                [569][14]|
10338                7[1257]|
10339                8[1346]|
10340                [68][1-9]
10341              )|
10342              2(?:
10343                1[257]|
10344                3[013]|
10345                4[01]|
10346                5[0137]|
10347                6[0158]|
10348                78|
10349                8[1568]|
10350                9[14]
10351              )|
10352              3(?:
10353                26|
10354                4[1-3]|
10355                5[34]|
10356                6[01489]|
10357                7[02-46]|
10358                8[159]
10359              )|
10360              4(?:
10361                1[36]|
10362                2[1-47]|
10363                3[15]|
10364                5[12]|
10365                6[0-26-9]|
10366                7[0-24-9]|
10367                8[013-57]|
10368                9[014-7]
10369              )|
10370              5(?:
10371                [136][25]|
10372                22|
10373                4[28]|
10374                5[12]|
10375                [78]1|
10376                9[15]
10377              )|
10378              6(?:
10379                12|
10380                [2345]1|
10381                57|
10382                6[13]|
10383                7[14]|
10384                80
10385              )
10386            </leadingDigits>
10387            <format>$1 $2 $3</format>
10388          </numberFormat>
10389          <!-- Three-digit area codes that potentially overlap with mobile. -->
10390          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10391            <leadingDigits>
10392              7(?:
10393                12|
10394                2[14]|
10395                3[134]|
10396                4[47]|
10397                5[15]|
10398                [67]1|
10399                88
10400              )
10401            </leadingDigits>
10402            <leadingDigits>
10403              7(?:
10404                12|
10405                2[14]|
10406                3[134]|
10407                4[47]|
10408                5(?:
10409                  1|
10410                  5[2-6]
10411                )|
10412                [67]1|
10413                88
10414              )
10415            </leadingDigits>
10416            <format>$1 $2 $3</format>
10417          </numberFormat>
10418          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10419            <leadingDigits>
10420              8(?:
10421                16|
10422                2[014]|
10423                3[126]|
10424                6[136]|
10425                7[078]|
10426                8[34]|
10427                91
10428              )
10429            </leadingDigits>
10430            <format>$1 $2 $3</format>
10431          </numberFormat>
10432          <!-- 4 digits area code -->
10433          <!-- Fallback for fixed-line numbers. -->
10434          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
10435            <leadingDigits>
10436              1(?:
10437                [23579]|
10438                [468][1-9]
10439              )|
10440              [2-8]
10441            </leadingDigits>
10442            <format>$1 $2 $3</format>
10443          </numberFormat>
10444          <numberFormat nationalPrefixFormattingRule="$FG"
10445            pattern="(1600)(\d{2})(\d{4})">
10446            <leadingDigits>160</leadingDigits>
10447            <leadingDigits>1600</leadingDigits>
10448            <format>$1 $2 $3</format>
10449          </numberFormat>
10450          <numberFormat nationalPrefixFormattingRule="$FG"
10451            pattern="(1800)(\d{4,5})">
10452            <leadingDigits>180</leadingDigits>
10453            <leadingDigits>1800</leadingDigits>
10454            <format>$1 $2</format>
10455          </numberFormat>
10456          <numberFormat nationalPrefixFormattingRule="$FG"
10457            pattern="(18[06]0)(\d{2,4})(\d{4})">
10458            <leadingDigits>18[06]</leadingDigits>
10459            <leadingDigits>18[06]0</leadingDigits>
10460            <format>$1 $2 $3</format>
10461          </numberFormat>
10462          <numberFormat nationalPrefixFormattingRule="$FG"
10463            pattern="(140)(\d{3})(\d{4})">
10464            <leadingDigits>140</leadingDigits>
10465            <format>$1 $2 $3</format>
10466          </numberFormat>
10467          <!-- Televoting numbers. Formatting information is from
10468               http://www.bsnl.co.in/service/telev.htm -->
10469          <numberFormat nationalPrefixFormattingRule="$FG"
10470            pattern="(\d{4})(\d{3})(\d{3})(\d{3})">
10471            <leadingDigits>18[06]</leadingDigits>
10472            <leadingDigits>
10473              18(?:
10474                0[03]|
10475                6[12]
10476              )
10477            </leadingDigits>
10478            <format>$1 $2 $3 $4</format>
10479          </numberFormat>
10480       </availableFormats>
10481       <generalDesc>
10482         <nationalNumberPattern>
10483           1\d{7,12}|
10484           [2-9]\d{9,10}
10485         </nationalNumberPattern>
10486         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
10487       </generalDesc>
10488       <noInternationalDialling>
10489         <nationalNumberPattern>
10490           1(?:
10491             600\d{6}|
10492             8(?:
10493               0(?:
10494                 0\d{4,9}|
10495                 3\d{9}
10496               )|
10497               6(?:
10498                 0\d{7}|
10499                 [12]\d{9}
10500               )
10501             )
10502           )
10503         </nationalNumberPattern>
10504         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10505         <exampleNumber>1800123456</exampleNumber>
10506       </noInternationalDialling>
10507       <fixedLine>
10508         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
10509              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
10510              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
10511              Not all operator codes are available in all areas, but we don't maintain that
10512              distinction here.
10513              Area codes starting with a 7 are listed separately, since the prefixes need to be more
10514              detailed so they clash less with mobile phone prefixes. -->
10515         <nationalNumberPattern>
10516           (?:
10517             11|
10518             2[02]|
10519             33|
10520             4[04]|
10521             79
10522           )[2-7]\d{7}|
10523           80[2-467]\d{7}|
10524           (?:
10525             1(?:
10526               2[0-249]|
10527               3[0-25]|
10528               4[145]|
10529               [59][14]|
10530               6[014]|
10531               7[1257]|
10532               8[01346]
10533             )|
10534             2(?:
10535               1[257]|
10536               3[013]|
10537               4[01]|
10538               5[0137]|
10539               6[0158]|
10540               78|
10541               8[1568]|
10542               9[14]
10543             )|
10544             3(?:
10545               26|
10546               4[1-3]|
10547               5[34]|
10548               6[01489]|
10549               7[02-46]|
10550               8[159]
10551             )|
10552             4(?:
10553               1[36]|
10554               2[1-47]|
10555               3[15]|
10556               5[12]|
10557               6[0-26-9]|
10558               7[0-24-9]|
10559               8[013-57]|
10560               9[014-7]
10561             )|
10562             5(?:
10563               [136][25]|
10564               22|
10565               4[28]|
10566               5[12]|
10567               [78]1|
10568               9[15]
10569             )|
10570             6(?:
10571               12|
10572               [2345]1|
10573               57|
10574               6[13]|
10575               7[14]|
10576               80
10577             )|
10578             7(?:
10579               12|
10580               2[14]|
10581               3[134]|
10582               4[47]|
10583               5[15]|
10584               [67]1|
10585               88
10586             )|
10587             8(?:
10588               16|
10589               2[014]|
10590               3[126]|
10591               6[136]|
10592               7[078]|
10593               8[34]|
10594               91
10595             )
10596           )[2-7]\d{6}|
10597           (?:
10598             (?:
10599               1(?:
10600                 2[35-8]|
10601                 3[346-9]|
10602                 4[236-9]|
10603                 [59][0235-9]|
10604                 6[235-9]|
10605                 7[34689]|
10606                 8[257-9]
10607               )|
10608               2(?:
10609                 1[134689]|
10610                 3[24-8]|
10611                 4[2-8]|
10612                 5[25689]|
10613                 6[2-4679]|
10614                 7[13-79]|
10615                 8[2-479]|
10616                 9[235-9]
10617               )|
10618               3(?:
10619                 01|
10620                 1[79]|
10621                 2[1-5]|
10622                 4[25-8]|
10623                 5[125689]|
10624                 6[235-7]|
10625                 7[157-9]|
10626                 8[2-467]
10627               )|
10628               4(?:
10629                 1[14578]|
10630                 2[5689]|
10631                 3[2-467]|
10632                 5[4-7]|
10633                 6[35]|
10634                 73|
10635                 8[2689]|
10636                 9[2389]
10637               )|
10638               5(?:
10639                 [16][146-9]|
10640                 2[14-8]|
10641                 3[1346]|
10642                 4[14-69]|
10643                 5[46]|
10644                 7[2-4]|
10645                 8[2-8]|
10646                 9[246]
10647               )|
10648               6(?:
10649                 1[1358]|
10650                 2[2457]|
10651                 3[2-4]|
10652                 4[235-7]|
10653                 [57][2-689]|
10654                 6[24-578]|
10655                 8[1-6]
10656               )|
10657               8(?:
10658                 1[1357-9]|
10659                 2[235-8]|
10660                 3[03-57-9]|
10661                 4[0-24-9]|
10662                 5\d|
10663                 6[2457-9]|
10664                 7[1-6]|
10665                 8[1256]|
10666                 9[2-4]
10667               )
10668             )\d|
10669             7(?:
10670               (?:
10671                 1[013-9]|
10672                 2[0235-9]|
10673                 3[2679]|
10674                 4[1-35689]|
10675                 5[2-46-9]|
10676                 [67][02-9]|
10677                 9\d
10678               )\d|
10679               8(?:
10680                 2[0-6]|
10681                 [013-8]\d
10682               )
10683             )
10684           )[2-7]\d{5}
10685         </nationalNumberPattern>
10686         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10687         <exampleNumber>1123456789</exampleNumber>
10688       </fixedLine>
10689       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
10690       <!-- The document titled "List of MSC codes" linked off
10691            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
10692            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
10693       <mobile>
10694         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10695              codes list, are added because SMS messages have been successfully sent to these
10696              numbers. It seems almost impossible to know for some of these numbers whether they are
10697              land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[567],
10698              7695, 8299, 8309. New prefixes were also added based on the document provided from
10699              mobile carriers: https://github.com/googlei18n/libphonenumber/issues/260 -->
10700         <nationalNumberPattern>
10701           (?:
10702             7(?:
10703               0(?:
10704                 2[2-9]|
10705                 [3-8]\d|
10706                 9[0-8]
10707               )|
10708               2(?:
10709                 0[04-9]|
10710                 5[09]|
10711                 7[5-8]|
10712                 9[389]
10713               )|
10714               3(?:
10715                 0[1-9]|
10716                 [58]\d|
10717                 7[3679]|
10718                 9[689]
10719               )|
10720               4(?:
10721                 0[1-9]|
10722                 1[15-9]|
10723                 [29][89]|
10724                 39|
10725                 8[389]
10726               )|
10727               5(?:
10728                 [034678]\d|
10729                 2[03-9]|
10730                 5[017-9]|
10731                 9[7-9]
10732               )|
10733               6(?:
10734                 0[0127]|
10735                 1[0-257-9]|
10736                 2[0-4]|
10737                 3[19]|
10738                 5[4589]|
10739                 [6-9]\d
10740               )|
10741               7(?:
10742                 0[2-9]|
10743                 [1-79]\d|
10744                 8[1-9]
10745               )|
10746               8(?:
10747                 [0-7]\d|
10748                 9[013-9]
10749               )
10750             )|
10751             8(?:
10752               0(?:
10753                 [01589]\d|
10754                 6[67]
10755               )|
10756               1(?:
10757                 [02-589]\d|
10758                 1[0135-9]|
10759                 7[0-79]
10760               )|
10761               2(?:
10762                 [236-9]\d|
10763                 5[1-9]
10764               )|
10765               3(?:
10766                 [0357-9]\d|
10767                 4[1-9]
10768               )|
10769               [45]\d{2}|
10770               6[02457-9]\d|
10771               7[1-69]\d|
10772               8(?:
10773                 [0-26-9]\d|
10774                 44|
10775                 5[2-9]
10776               )|
10777               9(?:
10778                 [035-9]\d|
10779                 2[2-9]|
10780                 4[0-8]
10781               )
10782             )|
10783             9\d{3}
10784           )\d{6}
10785         </nationalNumberPattern>
10786         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10787         <exampleNumber>9123456789</exampleNumber>
10788       </mobile>
10789       <tollFree>
10790         <!-- Information gathered from sites such as
10791              http://www.surfindia.com/india-facts/toll-free-no.html and
10792              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
10793              http://www.bsnl.co.in/service/telev.htm -->
10794         <nationalNumberPattern>
10795           1(?:
10796             600\d{6}|
10797             80(?:
10798               0\d{4,9}|
10799               3\d{9}
10800             )
10801           )
10802         </nationalNumberPattern>
10803         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10804         <exampleNumber>1800123456</exampleNumber>
10805       </tollFree>
10806       <premiumRate>
10807         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
10808              because they overlap with mobile, and we haven't found any real numbers online. -->
10809         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
10810         <possibleNumberPattern>\d{13}</possibleNumberPattern>
10811         <exampleNumber>1861123456789</exampleNumber>
10812       </premiumRate>
10813       <sharedCost>
10814         <!-- While described as "universal numbers" in the numbering plan, evidence suggests
10815              that 1860 number are best described as shared cost. See "Call Local Service" in:
10816              http://www.tatadocomo.com/corporates/toll-free.aspx -->
10817         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
10818         <possibleNumberPattern>\d{11}</possibleNumberPattern>
10819         <exampleNumber>18603451234</exampleNumber>
10820       </sharedCost>
10821       <uan>
10822         <!-- Telemarketing numbers: http://en.wikipedia.org/wiki/Telephone_numbers_in_India -->
10823         <nationalNumberPattern>140\d{7}</nationalNumberPattern>
10824         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10825         <exampleNumber>1409305260</exampleNumber>
10826       </uan>
10827     </territory>
10828
10829     <!-- British Indian Ocean Territory / Diego Garcia -->
10830     <territory id="IO" countryCode="246" internationalPrefix="00">
10831       <references>
10832         <sourceUrl>http://www.itu.int/oth/T0202000039/en</sourceUrl>
10833       </references>
10834       <availableFormats>
10835         <numberFormat pattern="(\d{3})(\d{4})">
10836           <format>$1 $2</format>
10837         </numberFormat>
10838       </availableFormats>
10839       <generalDesc>
10840         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
10841         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10842       </generalDesc>
10843       <fixedLine>
10844         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
10845         <exampleNumber>3709100</exampleNumber>
10846       </fixedLine>
10847       <mobile>
10848         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
10849         <exampleNumber>3801234</exampleNumber>
10850       </mobile>
10851     </territory>
10852
10853     <!-- Iraq -->
10854     <territory id="IQ" countryCode="964" internationalPrefix="00"
10855                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10856       <references>
10857         <sourceUrl>http://en.wikipedia.org/wiki/%2B964</sourceUrl>
10858         <sourceUrl>http://wtng.info/wtng-964-ik.html</sourceUrl>
10859       </references>
10860       <availableFormats>
10861         <numberFormat pattern="(1)(\d{3})(\d{4})">
10862           <leadingDigits>1</leadingDigits>
10863           <format>$1 $2 $3</format>
10864         </numberFormat>
10865         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
10866           <leadingDigits>[2-6]</leadingDigits>
10867           <format>$1 $2 $3</format>
10868         </numberFormat>
10869         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
10870           <leadingDigits>7</leadingDigits>
10871           <format>$1 $2 $3</format>
10872         </numberFormat>
10873       </availableFormats>
10874       <generalDesc>
10875         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
10876         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10877       </generalDesc>
10878       <fixedLine>
10879         <nationalNumberPattern>
10880           1\d{7}|
10881           (?:
10882             2[13-5]|
10883             3[02367]|
10884             4[023]|
10885             5[03]|
10886             6[026]
10887           )\d{6,7}
10888         </nationalNumberPattern>
10889         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
10890         <exampleNumber>12345678</exampleNumber>
10891       </fixedLine>
10892       <mobile>
10893         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
10894         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10895         <exampleNumber>7912345678</exampleNumber>
10896       </mobile>
10897       <!-- No tollFree or premiumRate information can be found. -->
10898     </territory>
10899
10900     <!-- Iran, Islamic Republic of -->
10901     <territory id="IR" countryCode="98" internationalPrefix="00"
10902                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10903       <references>
10904         <sourceUrl>http://en.wikipedia.org/wiki/%2B98</sourceUrl>
10905         <sourceUrl>http://www.itu.int/oth/T0202000066/en</sourceUrl>
10906         <sourceUrl>http://www.tct.ir/?siteid=1&amp;pageid=195</sourceUrl>
10907         <sourceUrl>http://118.tct.ir/citycode.htm</sourceUrl>
10908       </references>
10909       <availableFormats>
10910         <!-- Formatting follows wikipedia. -->
10911         <numberFormat pattern="(21)(\d{3,5})">
10912           <leadingDigits>21</leadingDigits>
10913           <format>$1 $2</format>
10914         </numberFormat>
10915         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10916           <leadingDigits>[1-8]</leadingDigits>
10917           <format>$1 $2 $3</format>
10918         </numberFormat>
10919         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
10920           <leadingDigits>9</leadingDigits>
10921           <format>$1 $2 $3</format>
10922         </numberFormat>
10923         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
10924           <leadingDigits>9</leadingDigits>
10925           <format>$1 $2 $3</format>
10926         </numberFormat>
10927         <numberFormat pattern="(\d{3})(\d{3})">
10928           <leadingDigits>9</leadingDigits>
10929           <format>$1 $2</format>
10930         </numberFormat>
10931       </availableFormats>
10932       <generalDesc>
10933         <nationalNumberPattern>
10934           [1-8]\d{9}|
10935           9(?:
10936             [0-4]\d{8}|
10937             9\d{2,8}
10938           )
10939         </nationalNumberPattern>
10940         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10941       </generalDesc>
10942       <fixedLine>
10943         <!-- In Summer 2014 Iran unified all fixed phone numbers in the following way:
10944              Each province is assigned a two digit prefix (except for North Khorasan which has 3).
10945              Within each province, all numbers are exactly eight digits.  The expression below is
10946              organized by province.  For each province we accept all eight-digit combinations.
10947
10948              11 Mazandaran
10949              13 Gilan
10950              17 Golestan
10951              21 Tehran
10952              23 Semnan
10953              24 Zanjan
10954              25 Qom
10955              26 Alborz
10956              28 Qazvin
10957              31 Isfahan
10958              34 Kerman
10959              35 Yazd
10960              38 Chahar Mahaal and Bakhtiari
10961              41 East Azerbaijan
10962              44 West Azerbaijan
10963              45 Ardabil
10964              51 Razavi Khorasan
10965              54 Sistan and Baluchestan
10966              56 South Khorasan
10967              57 North Khorasan (Extras)
10968              58 North Khorasan
10969              61 Khuzestan
10970              64 North Khorasan (Extras)
10971              66 Lorestan
10972              71 Fars
10973              74 Kohgiluyeh and Boyer-Ahmad
10974              76 Hormozgan
10975              77 Bushehr
10976              81 Hamadan
10977              83 Kermanshah
10978              84 Ilam
10979              86 Markazi
10980              87 Kurdistan
10981              -->
10982         <nationalNumberPattern>
10983           (?:
10984             1[137]|
10985             2[13-68]|
10986             3[1458]|
10987             4[145]|
10988             5[146-8]|
10989             6[146]|
10990             7[1467]|
10991             8[13467]
10992           )\d{8}
10993         </nationalNumberPattern>
10994         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10995         <exampleNumber>2123456789</exampleNumber>
10996       </fixedLine>
10997       <mobile>
10998         <nationalNumberPattern>
10999           9(?:
11000             0[12]|
11001             [1-3]\d
11002           )\d{7}
11003         </nationalNumberPattern>
11004         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11005         <exampleNumber>9123456789</exampleNumber>
11006       </mobile>
11007       <pager>
11008         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
11009         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11010         <exampleNumber>9432123456</exampleNumber>
11011       </pager>
11012       <!-- No tollFree or premiumRate information can be found. -->
11013       <voip>
11014         <!-- Includes VSAT and Boomehen Satellite numbers. -->
11015         <nationalNumberPattern>
11016           (?:
11017             [2-6]0\d|
11018             993
11019           )\d{7}
11020         </nationalNumberPattern>
11021         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11022         <exampleNumber>9932123456</exampleNumber>
11023       </voip>
11024       <uan>
11025         <!-- MCI Public Relations numbers -->
11026         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
11027         <exampleNumber>9990123456</exampleNumber>
11028       </uan>
11029     </territory>
11030
11031     <!-- Iceland -->
11032     <territory id="IS" countryCode="354" internationalPrefix="00" mobileNumberPortableRegion="true">
11033       <references>
11034         <sourceUrl>http://www.pta.is/default.aspx?cat_id=85</sourceUrl>
11035         <sourceUrl>http://www.pfs.is/default.aspx?cat_id=14&amp;module_id=210&amp;element_id=4</sourceUrl>
11036       </references>
11037       <availableFormats>
11038         <numberFormat pattern="(\d{3})(\d{4})">
11039           <leadingDigits>[4-9]</leadingDigits>
11040           <format>$1 $2</format>
11041         </numberFormat>
11042         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
11043           <leadingDigits>3</leadingDigits>
11044           <format>$1 $2 $3</format>
11045         </numberFormat>
11046       </availableFormats>
11047       <generalDesc>
11048         <nationalNumberPattern>
11049           [4-9]\d{6}|
11050           38\d{7}
11051         </nationalNumberPattern>
11052         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11053       </generalDesc>
11054       <fixedLine>
11055         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
11056         <nationalNumberPattern>
11057           (?:
11058             4(?:
11059               1[0-24-6]|
11060               2[0-7]|
11061               [37][0-8]|
11062               4[0-245]|
11063               5[0-3568]|
11064               6\d|
11065               8[0-36-8]
11066             )|
11067             5(?:
11068               05|
11069               [156]\d|
11070               2[02578]|
11071               3[013-7]|
11072               4[03-7]|
11073               7[0-2578]|
11074               8[0-35-9]|
11075               9[013-689]
11076             )|
11077             87[23]
11078           )\d{4}
11079         </nationalNumberPattern>
11080         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11081         <exampleNumber>4101234</exampleNumber>
11082       </fixedLine>
11083       <mobile>
11084         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
11085         <nationalNumberPattern>
11086           38[589]\d{6}|
11087           (?:
11088             6(?:
11089               1[1-8]|
11090               3[089]|
11091               4[0167]|
11092               5[019]|
11093               [67][0-69]|
11094               9\d
11095             )|
11096             7(?:
11097               5[057]|
11098               7\d|
11099               8[0-36-8]
11100             )|
11101             8(?:
11102               2[0-5]|
11103               3[0-4]|
11104               [469]\d|
11105               5[1-9]
11106             )
11107           )\d{4}
11108         </nationalNumberPattern>
11109         <exampleNumber>6111234</exampleNumber>
11110       </mobile>
11111       <tollFree>
11112         <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
11113              numbers can be found online, and it is not clear what these are; the standard
11114              definition would have them under the +800 country code instead of Iceland. -->
11115         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
11116         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11117         <exampleNumber>8001234</exampleNumber>
11118       </tollFree>
11119       <premiumRate>
11120         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
11121         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11122         <exampleNumber>9011234</exampleNumber>
11123       </premiumRate>
11124       <voip>
11125         <nationalNumberPattern>49\d{5}</nationalNumberPattern>
11126         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11127         <exampleNumber>4921234</exampleNumber>
11128       </voip>
11129       <voicemail>
11130         <nationalNumberPattern>
11131           (?:
11132             6(?:
11133               2[0-8]|
11134               49|
11135               8\d
11136             )|
11137             87[0189]|
11138             95[48]
11139           )\d{4}
11140         </nationalNumberPattern>
11141         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11142         <exampleNumber>6201234</exampleNumber>
11143       </voicemail>
11144     </territory>
11145
11146     <!-- Italy -->
11147     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true"
11148                mobileNumberPortableRegion="true">
11149       <references>
11150         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
11151       </references>
11152       <availableFormats>
11153         <!-- The leading zero for fixed numbers will be prepended before the matching of these
11154              regular expressions. -->
11155         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
11156           <leadingDigits>
11157             0[26]|
11158             55
11159           </leadingDigits>
11160           <format>$1 $2 $3</format>
11161         </numberFormat>
11162         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
11163           <leadingDigits>0[26]</leadingDigits>
11164           <format>$1 $2 $3</format>
11165         </numberFormat>
11166         <numberFormat pattern="(0[26])(\d{4,6})">
11167           <leadingDigits>0[26]</leadingDigits>
11168           <format>$1 $2</format>
11169         </numberFormat>
11170         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
11171           <leadingDigits>0[13-57-9][0159]</leadingDigits>
11172           <format>$1 $2 $3</format>
11173         </numberFormat>
11174         <numberFormat pattern="(\d{3})(\d{3,6})">
11175           <leadingDigits>
11176             0[13-57-9][0159]|
11177             8(?:
11178               03|
11179               4[17]|
11180               9[245]
11181             )
11182           </leadingDigits>
11183           <leadingDigits>
11184             0[13-57-9][0159]|
11185             8(?:
11186               03|
11187               4[17]|
11188               9(?:
11189                 2|
11190                 [45][0-4]
11191               )
11192             )
11193           </leadingDigits>
11194           <format>$1 $2</format>
11195         </numberFormat>
11196         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
11197           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11198           <format>$1 $2 $3</format>
11199         </numberFormat>
11200         <numberFormat pattern="(0\d{3})(\d{2,6})">
11201           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11202           <format>$1 $2</format>
11203         </numberFormat>
11204         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11205           <leadingDigits>
11206             [13]|
11207             8(?:
11208               00|
11209               4[08]|
11210               9[59]
11211             )
11212           </leadingDigits>
11213           <leadingDigits>
11214             [13]|
11215             8(?:
11216               00|
11217               4[08]|
11218               9(?:
11219                 5[5-9]|
11220                 9
11221               )
11222             )
11223           </leadingDigits>
11224           <format>$1 $2 $3</format>
11225         </numberFormat>
11226         <numberFormat pattern="(\d{4})(\d{4})">
11227           <leadingDigits>894</leadingDigits>
11228           <leadingDigits>894[5-9]</leadingDigits>
11229           <format>$1 $2</format>
11230         </numberFormat>
11231         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
11232           <leadingDigits>3</leadingDigits>
11233           <format>$1 $2 $3</format>
11234         </numberFormat>
11235       </availableFormats>
11236       <generalDesc>
11237         <nationalNumberPattern>
11238           [01589]\d{5,10}|
11239           3(?:
11240             [12457-9]\d{8}|
11241             [36]\d{7,9}
11242           )
11243         </nationalNumberPattern>
11244         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11245       </generalDesc>
11246       <noInternationalDialling>
11247         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
11248         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11249         <exampleNumber>848123456</exampleNumber>
11250       </noInternationalDialling>
11251       <fixedLine>
11252         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
11253              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
11254              found with other prefixes that are 11 digits long as well, so we allow it for all the
11255              three and four digit area codes. -->
11256         <nationalNumberPattern>
11257           0(?:
11258             [26]\d{4,9}|
11259             (?:
11260               1(?:
11261                 [0159]\d|
11262                 [27][1-5]|
11263                 31|
11264                 4[1-4]|
11265                 6[1356]|
11266                 8[2-57]
11267               )|
11268               3(?:
11269                 [0159]\d|
11270                 2[1-4]|
11271                 3[12]|
11272                 [48][1-6]|
11273                 6[2-59]|
11274                 7[1-7]
11275               )|
11276               4(?:
11277                 [0159]\d|
11278                 [23][1-9]|
11279                 4[245]|
11280                 6[1-5]|
11281                 7[1-4]|
11282                 81
11283               )|
11284               5(?:
11285                 [0159]\d|
11286                 2[1-5]|
11287                 3[2-6]|
11288                 4[1-79]|
11289                 6[4-6]|
11290                 7[1-578]|
11291                 8[3-8]
11292               )|
11293               7(?:
11294                 [0159]\d|
11295                 2[12]|
11296                 3[1-7]|
11297                 4[2346]|
11298                 6[13569]|
11299                 7[13-6]|
11300                 8[1-59]
11301               )|
11302               8(?:
11303                 [0159]\d|
11304                 2[34578]|
11305                 3[1-356]|
11306                 [6-8][1-5]
11307               )|
11308               9(?:
11309                 [0159]\d|
11310                 [238][1-5]|
11311                 4[12]|
11312                 6[1-8]|
11313                 7[1-6]
11314               )
11315             )\d{2,7}
11316           )
11317         </nationalNumberPattern>
11318         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11319         <exampleNumber>0212345678</exampleNumber>
11320       </fixedLine>
11321       <mobile>
11322         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
11323              digits long. However, a user reported the existence of new 11 digit long numbers for
11324              TIM with the prefix 33X, so this is supported also. -->
11325         <nationalNumberPattern>
11326           3(?:
11327             [12457-9]\d{8}|
11328             6\d{7,8}|
11329             3\d{7,9}
11330           )
11331         </nationalNumberPattern>
11332         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
11333         <exampleNumber>3123456789</exampleNumber>
11334       </mobile>
11335       <tollFree>
11336         <nationalNumberPattern>
11337           80(?:
11338             0\d{6}|
11339             3\d{3}
11340           )
11341         </nationalNumberPattern>
11342         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11343         <exampleNumber>800123456</exampleNumber>
11344       </tollFree>
11345       <premiumRate>
11346         <!-- Adding 0878 numbers, as per
11347              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
11348              premium prefixes are mentioned here:
11349              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
11350         <nationalNumberPattern>
11351           0878\d{5}|
11352           1(?:
11353             44|
11354             6[346]
11355           )\d{6}|
11356           89(?:
11357             2\d{3}|
11358             4(?:
11359               [0-4]\d{2}|
11360               [5-9]\d{4}
11361             )|
11362             5(?:
11363               [0-4]\d{2}|
11364               [5-9]\d{6}
11365             )|
11366             9\d{6}
11367           )
11368         </nationalNumberPattern>
11369         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11370         <exampleNumber>899123456</exampleNumber>
11371       </premiumRate>
11372       <sharedCost>
11373         <nationalNumberPattern>
11374           84(?:
11375             [08]\d{6}|
11376             [17]\d{3}
11377           )
11378         </nationalNumberPattern>
11379         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11380         <exampleNumber>848123456</exampleNumber>
11381       </sharedCost>
11382       <personalNumber>
11383         <nationalNumberPattern>
11384           1(?:
11385             78\d|
11386             99
11387           )\d{6}
11388         </nationalNumberPattern>
11389         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
11390         <exampleNumber>1781234567</exampleNumber>
11391       </personalNumber>
11392       <voip>
11393         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
11394         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11395         <exampleNumber>5512345678</exampleNumber>
11396       </voip>
11397     </territory>
11398
11399     <!-- Jersey -->
11400     <!-- Inherits formatting rules from the UK. -->
11401     <territory id="JE" countryCode="44" internationalPrefix="00"
11402                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
11403       <references>
11404         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
11405         <sourceUrl>http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&amp;childID=1036</sourceUrl>
11406       </references>
11407       <generalDesc>
11408         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
11409         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11410       </generalDesc>
11411       <areaCodeOptional>
11412         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
11413         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11414         <exampleNumber>1534250123</exampleNumber>
11415       </areaCodeOptional>
11416       <!-- Specific to JE. -->
11417       <fixedLine>
11418         <!-- 1534 with 10 digits. -->
11419         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
11420         <exampleNumber>1534456789</exampleNumber>
11421       </fixedLine>
11422       <mobile>
11423         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
11424         <nationalNumberPattern>
11425           7(?:
11426             509|
11427             7(?:
11428               00|
11429               97
11430             )|
11431             829|
11432             937
11433           )\d{6}
11434         </nationalNumberPattern>
11435         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11436         <exampleNumber>7797123456</exampleNumber>
11437       </mobile>
11438       <pager>
11439         <!-- Pager numbers as per GB. -->
11440         <nationalNumberPattern>
11441           76(?:
11442             0[012]|
11443             2[356]|
11444             4[0134]|
11445             5[49]|
11446             6[0-369]|
11447             77|
11448             81|
11449             9[39]
11450           )\d{6}
11451         </nationalNumberPattern>
11452         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11453         <exampleNumber>7640123456</exampleNumber>
11454       </pager>
11455       <!-- Specific to JE. -->
11456       <tollFree>
11457         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
11458         <nationalNumberPattern>
11459           80(?:
11460             07(?:
11461               35|
11462               81
11463             )|
11464             8901
11465           )\d{4}
11466         </nationalNumberPattern>
11467         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11468         <exampleNumber>8007354567</exampleNumber>
11469       </tollFree>
11470       <premiumRate>
11471         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
11472         <nationalNumberPattern>
11473           (?:
11474             871206|
11475             90(?:
11476               066[59]|
11477               1810|
11478               71(?:
11479                 07|
11480                 55
11481               )
11482             )
11483           )\d{4}
11484         </nationalNumberPattern>
11485         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11486         <exampleNumber>9018105678</exampleNumber>
11487       </premiumRate>
11488       <sharedCost>
11489         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
11490         <nationalNumberPattern>
11491           8(?:
11492             4(?:
11493               4(?:
11494                 4(?:
11495                   05|
11496                   42|
11497                   69
11498                 )|
11499                 703
11500               )|
11501               5(?:
11502                 041|
11503                 800
11504               )
11505             )|
11506             70002
11507           )\d{4}
11508         </nationalNumberPattern>
11509         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11510         <exampleNumber>8447034567</exampleNumber>
11511       </sharedCost>
11512       <personalNumber>
11513         <!-- 70 1511 with 10 digits. -->
11514         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
11515         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11516         <exampleNumber>7015115678</exampleNumber>
11517       </personalNumber>
11518       <voip>
11519         <!-- VoIP numbers as per GB. -->
11520         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
11521         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11522         <exampleNumber>5612345678</exampleNumber>
11523       </voip>
11524       <uan>
11525         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
11526              370 002, 371 206, 55 with 10 digits. -->
11527         <nationalNumberPattern>
11528           3(?:
11529             0(?:
11530               07(?:
11531                 35|
11532                 81
11533               )|
11534               8901
11535             )|
11536             3\d{4}|
11537             4(?:
11538               4(?:
11539                 4(?:
11540                   05|
11541                   42|
11542                   69
11543                 )|
11544                 703
11545               )|
11546               5(?:
11547                 041|
11548                 800
11549               )
11550             )|
11551             7(?:
11552               0002|
11553               1206
11554             )
11555           )\d{4}|
11556           55\d{8}
11557         </nationalNumberPattern>
11558         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11559         <exampleNumber>5512345678</exampleNumber>
11560       </uan>
11561     </territory>
11562
11563     <!-- Jamaica -->
11564     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
11565                internationalPrefix="011">
11566       <references>
11567         <sourceUrl>http://www.itu.int/oth/T020200006C/en</sourceUrl>
11568       </references>
11569       <generalDesc>
11570         <!-- NANPA country - uses US formatting rules -->
11571         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
11572         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
11573       </generalDesc>
11574       <fixedLine>
11575         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
11576         <nationalNumberPattern>
11577           876(?:
11578             5(?:
11579               0[12]|
11580               1[0-468]|
11581               2[35]|
11582               63
11583             )|
11584             6(?:
11585               0[1-3579]|
11586               1[027-9]|
11587               [23]\d|
11588               40|
11589               5[06]|
11590               6[2-589]|
11591               7[05]|
11592               8[04]|
11593               9[4-9]
11594             )|
11595             7(?:
11596               0[2-689]|
11597               [1-6]\d|
11598               8[056]|
11599               9[45]
11600             )|
11601             9(?:
11602               0[1-8]|
11603               1[02378]|
11604               [2-8]\d|
11605               9[2-468]
11606             )
11607           )\d{4}
11608         </nationalNumberPattern>
11609         <exampleNumber>8765123456</exampleNumber>
11610       </fixedLine>
11611       <mobile>
11612         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
11613              be valid by sending SMSs and looking at online number lookup sites. Also added 50[3-79]
11614              as we have found information online that the 50[3-9] range has been assigned to Digicel.
11615
11616              Numbers have been found online for the following ranges 26x, 29x, 53x, 54x, 55x, 56x.
11617              Most have mobile numbers online so we have put them under mobile but is possible
11618              they are a mixture of fixed line and mobile. -->
11619         <nationalNumberPattern>
11620           876(?:
11621             2[16-9]\d|
11622             [348]\d{2}|
11623             5(?:
11624               0[3-9]|
11625               27|
11626               6[0-24-9]|
11627               [3-578]\d
11628             )|
11629             7(?:
11630               0[07]|
11631               7\d|
11632               8[1-47-9]|
11633               9[0-36-9]
11634             )|
11635             9(?:
11636               [01]9|
11637               9[0579]
11638             )
11639           )\d{4}
11640         </nationalNumberPattern>
11641         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11642         <exampleNumber>8762101234</exampleNumber>
11643       </mobile>
11644       <tollFree>
11645         <nationalNumberPattern>
11646           8(?:
11647             00|
11648             44|
11649             55|
11650             66|
11651             77|
11652             88
11653           )[2-9]\d{6}
11654         </nationalNumberPattern>
11655         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11656         <exampleNumber>8002123456</exampleNumber>
11657       </tollFree>
11658       <premiumRate>
11659         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
11660         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11661         <exampleNumber>9002123456</exampleNumber>
11662       </premiumRate>
11663       <personalNumber>
11664         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
11665         <nationalNumberPattern>
11666           5(?:
11667             00|
11668             33|
11669             44|
11670             66|
11671             77
11672           )[2-9]\d{6}
11673         </nationalNumberPattern>
11674         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11675         <exampleNumber>5002345678</exampleNumber>
11676       </personalNumber>
11677     </territory>
11678
11679     <!-- Jordan -->
11680     <territory id="JO" countryCode="962" internationalPrefix="00"
11681                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
11682                mobileNumberPortableRegion="true">
11683       <references>
11684         <sourceUrl>http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english</sourceUrl>
11685         <sourceUrl>http://www.itu.int/oth/T020200006E/en</sourceUrl>
11686         <sourceUrl>http://en.wikipedia.org/wiki/%2B962</sourceUrl>
11687       </references>
11688       <availableFormats>
11689         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
11690           pattern="(\d)(\d{3})(\d{4})">
11691           <leadingDigits>
11692             [2356]|
11693             87
11694           </leadingDigits>
11695           <format>$1 $2 $3</format>
11696         </numberFormat>
11697         <numberFormat pattern="(7)(\d{4})(\d{4})">
11698           <leadingDigits>7[457-9]</leadingDigits>
11699           <format>$1 $2 $3</format>
11700         </numberFormat>
11701         <numberFormat pattern="(\d{3})(\d{5,6})">
11702           <leadingDigits>
11703             70|
11704             8[0158]|
11705             9
11706           </leadingDigits>
11707           <format>$1 $2</format>
11708         </numberFormat>
11709       </availableFormats>
11710       <generalDesc>
11711         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
11712         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11713       </generalDesc>
11714       <fixedLine>
11715         <nationalNumberPattern>
11716           (?:
11717             2(?:
11718               6(?:
11719                 2[0-35-9]|
11720                 3[0-57-8]|
11721                 4[24-7]|
11722                 5[0-24-8]|
11723                 [6-8][02]|
11724                 9[0-2]
11725               )|
11726               7(?:
11727                 0[1-79]|
11728                 10|
11729                 2[014-7]|
11730                 3[0-689]|
11731                 4[019]|
11732                 5[0-3578]
11733               )
11734             )|
11735             32(?:
11736               0[1-69]|
11737               1[1-35-7]|
11738               2[024-7]|
11739               3\d|
11740               4[0-2]|
11741               [57][02]|
11742               60
11743             )|
11744             53(?:
11745               0[0-2]|
11746               [13][02]|
11747               2[0-59]|
11748               49|
11749               5[0-35-9]|
11750               6[15]|
11751               7[45]|
11752               8[1-6]|
11753               9[0-36-9]
11754             )|
11755             6(?:
11756               2[50]0|
11757               300|
11758               4(?:
11759                 0[0125]|
11760                 1[2-7]|
11761                 2[0569]|
11762                 [38][07-9]|
11763                 4[025689]|
11764                 6[0-589]|
11765                 7\d|
11766                 9[0-2]
11767               )|
11768               5(?:
11769                 [01][056]|
11770                 2[034]|
11771                 3[0-57-9]|
11772                 4[17-8]|
11773                 5[0-69]|
11774                 6[0-35-9]|
11775                 7[1-379]|
11776                 8[0-68]|
11777                 9[02-39]
11778               )
11779             )|
11780             87(?:
11781               [02]0|
11782               7[08]|
11783               9[09]
11784             )
11785           )\d{4}
11786         </nationalNumberPattern>
11787         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
11788         <exampleNumber>62001234</exampleNumber>
11789       </fixedLine>
11790       <mobile>
11791         <nationalNumberPattern>
11792           7(?:
11793             55|
11794             7[25-9]|
11795             8[05-9]|
11796             9[0-25-9]
11797           )\d{6}
11798         </nationalNumberPattern>
11799         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11800         <exampleNumber>790123456</exampleNumber>
11801       </mobile>
11802       <pager>
11803         <nationalNumberPattern>
11804           74(?:
11805             66|
11806             77
11807           )\d{5}
11808         </nationalNumberPattern>
11809         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11810         <exampleNumber>746612345</exampleNumber>
11811       </pager>
11812       <tollFree>
11813         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
11814         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11815         <exampleNumber>80012345</exampleNumber>
11816       </tollFree>
11817       <premiumRate>
11818         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
11819         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11820         <exampleNumber>90012345</exampleNumber>
11821       </premiumRate>
11822       <sharedCost>
11823         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
11824         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11825         <exampleNumber>85012345</exampleNumber>
11826       </sharedCost>
11827       <personalNumber>
11828         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
11829         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11830         <exampleNumber>700123456</exampleNumber>
11831       </personalNumber>
11832       <uan>
11833         <!-- These numbers are Location Independent Services / Fixed cost according to
11834              http://www.trc.gov.jo -->
11835         <nationalNumberPattern>
11836           8(?:
11837             10|
11838             8\d
11839           )\d{5}
11840         </nationalNumberPattern>
11841         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11842         <exampleNumber>88101234</exampleNumber>
11843       </uan>
11844     </territory>
11845
11846     <!-- Japan -->
11847     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
11848                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true"
11849                mobileNumberPortableRegion="true">
11850       <references>
11851         <sourceUrl>http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html</sourceUrl>
11852         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=JP</sourceUrl>
11853       </references>
11854       <availableFormats>
11855         <!-- Toll-free, premium-rate and UAN numbers -->
11856         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
11857           <leadingDigits>
11858             (?:
11859               12|
11860               57|
11861               99
11862             )0
11863           </leadingDigits>
11864           <format>$1-$2-$3</format>
11865         </numberFormat>
11866         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
11867           <leadingDigits>800</leadingDigits>
11868           <format>$1-$2-$3</format>
11869         </numberFormat>
11870         <!-- National-only toll-free numbers (0037, 0066, 0077 and 0088). -->
11871         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
11872           <leadingDigits>0077</leadingDigits>
11873           <format>$1-$2</format>
11874           <intlFormat>NA</intlFormat>
11875         </numberFormat>
11876         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{3,4})">
11877           <leadingDigits>0077</leadingDigits>
11878           <format>$1-$2-$3</format>
11879           <intlFormat>NA</intlFormat>
11880         </numberFormat>
11881         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{4})">
11882           <leadingDigits>0088</leadingDigits>
11883           <format>$1-$2-$3</format>
11884           <intlFormat>NA</intlFormat>
11885         </numberFormat>
11886         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3,4})">
11887           <leadingDigits>
11888             00(?:
11889                37|
11890                66
11891             )
11892           </leadingDigits>
11893           <format>$1-$2-$3</format>
11894           <intlFormat>NA</intlFormat>
11895         </numberFormat>
11896         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})(\d{4,5})">
11897           <leadingDigits>
11898             00(?:
11899                37|
11900                66
11901             )
11902           </leadingDigits>
11903           <format>$1-$2-$3</format>
11904           <intlFormat>NA</intlFormat>
11905         </numberFormat>
11906         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{5})(\d{5,6})">
11907           <leadingDigits>
11908             00(?:
11909                37|
11910                66
11911             )
11912           </leadingDigits>
11913           <format>$1-$2-$3</format>
11914           <intlFormat>NA</intlFormat>
11915         </numberFormat>
11916         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{6})(\d{6,7})">
11917           <leadingDigits>
11918             00(?:
11919                37|
11920                66
11921             )
11922           </leadingDigits>
11923           <format>$1-$2-$3</format>
11924           <intlFormat>NA</intlFormat>
11925         </numberFormat>
11926         <!-- Some leading digits are explicitly reserved for a particular purpose.
11927              We handle them first in this rule, and let the following rules ignore those exceptions.
11928              Note: The rule here is not in the files we rely on when creating the other rules.
11929                    We would need to manually modify it if the Japanese goverment
11930                    decided to change the rule.
11931
11932              (prefix): purpose
11933              "20": Pagers
11934              "50": IP phone
11935              "70": PHS (Personal Handy-phone System, which has been used in Japan
11936                    with Non-3G, Japanese-specific protocol).
11937                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
11938              "80" and "90": Mobile phone
11939           -->
11940         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
11941           <leadingDigits>
11942             [2579]0|
11943             80[1-9]
11944           </leadingDigits>
11945           <format>$1-$2-$3</format>
11946         </numberFormat>
11947         <!-- The order of the reg-exps are important.
11948              Examples (not all):
11949              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
11950              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
11951              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
11952              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
11953              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
11954              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
11955           -->
11956         <numberFormat pattern="(\d{4})(\d)(\d{4})">
11957           <leadingDigits>
11958             1(?:
11959               26|
11960               3[79]|
11961               4[56]|
11962               5[4-68]|
11963               6[3-5]
11964             )|
11965             5(?:
11966               76|
11967               97
11968             )|
11969             499|
11970             746|
11971             8(?:
11972               3[89]|
11973               63|
11974               47|
11975               51
11976             )|
11977             9(?:
11978               49|
11979               80|
11980               9[16]
11981             )
11982           </leadingDigits>
11983           <leadingDigits>
11984             1(?:
11985               267|
11986               3(?:
11987                 7[247]|
11988                 9[278]
11989               )|
11990               4(?:
11991                 5[67]|
11992                 66
11993               )|
11994               5(?:
11995                 47|
11996                 58|
11997                 64|
11998                 8[67]
11999               )|
12000               6(?:
12001                 3[245]|
12002                 48|
12003                 5[4-68]
12004               )
12005             )|
12006             5(?:
12007               76|
12008               97
12009             )9|
12010             499[2468]|
12011             7468|
12012             8(?:
12013               3(?:
12014                 8[78]|
12015                 96
12016               )|
12017               636|
12018               477|
12019               51[24]
12020             )|
12021             9(?:
12022               496|
12023               802|
12024               9(?:
12025                 1[23]|
12026                 69
12027               )
12028             )
12029           </leadingDigits>
12030           <leadingDigits>
12031             1(?:
12032               267|
12033               3(?:
12034                 7[247]|
12035                 9[278]
12036               )|
12037               4(?:
12038                 5[67]|
12039                 66
12040               )|
12041               5(?:
12042                 47|
12043                 58|
12044                 64|
12045                 8[67]
12046               )|
12047               6(?:
12048                 3[245]|
12049                 48|
12050                 5[4-68]
12051               )
12052             )|
12053             5(?:
12054               769|
12055               979[2-69]
12056             )|
12057             499[2468]|
12058             7468|
12059             8(?:
12060               3(?:
12061                 8[78]|
12062                 96[2457-9]
12063               )|
12064               636[2-57-9]|
12065               477|
12066               51[24]
12067             )|
12068             9(?:
12069               496|
12070               802|
12071               9(?:
12072                 1[23]|
12073                 69
12074               )
12075             )
12076           </leadingDigits>
12077           <format>$1-$2-$3</format>
12078         </numberFormat>
12079         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12080           <leadingDigits>
12081             1(?:
12082               2[3-6]|
12083               3[3-9]|
12084               4[2-6]|
12085               5[2-8]|
12086               [68][2-7]|
12087               7[2-689]|
12088               9[1-578]
12089             )|
12090             2(?:
12091               2[03-689]|
12092               3[3-58]|
12093               4[0-468]|
12094               5[04-8]|
12095               6[013-8]|
12096               7[06-9]|
12097               8[02-57-9]|
12098               9[13]
12099             )|
12100             4(?:
12101               2[28]|
12102               3[689]|
12103               6[035-7]|
12104               7[05689]|
12105               80|
12106               9[3-5]
12107             )|
12108             5(?:
12109               3[1-36-9]|
12110               4[4578]|
12111               5[013-8]|
12112               6[1-9]|
12113               7[2-8]|
12114               8[14-7]|
12115               9[4-9]
12116             )|
12117             7(?:
12118               2[15]|
12119               3[5-9]|
12120               4[02-9]|
12121               6[135-8]|
12122               7[0-4689]|
12123               9[014-9]
12124             )|
12125             8(?:
12126               2[49]|
12127               3[3-8]|
12128               4[5-8]|
12129               5[2-9]|
12130               6[35-9]|
12131               7[579]|
12132               8[03-579]|
12133               9[2-8]
12134             )|
12135             9(?:
12136               [23]0|
12137               4[02-46-9]|
12138               5[024-79]|
12139               6[4-9]|
12140               7[2-47-9]|
12141               8[02-7]|
12142               9[3-7]
12143             )
12144           </leadingDigits>
12145           <leadingDigits>
12146             1(?:
12147               2[3-6]|
12148               3[3-9]|
12149               4[2-6]|
12150               5(?:
12151                 [236-8]|
12152                 [45][2-69]
12153               )|
12154               [68][2-7]|
12155               7[2-689]|
12156               9[1-578]
12157             )|
12158             2(?:
12159               2(?:
12160                 [04-689]|
12161                 3[23]
12162               )|
12163               3[3-58]|
12164               4[0-468]|
12165               5(?:
12166                 5[78]|
12167                 7[2-4]|
12168                 [0468][2-9]
12169               )|
12170               6(?:
12171                 [0135-8]|
12172                 4[2-5]
12173               )|
12174               7(?:
12175                 [0679]|
12176                 8[2-7]
12177               )|
12178               8(?:
12179                 [024578]|
12180                 3[25-9]|
12181                 9[6-9]
12182               )|
12183               9(?:
12184                 11|
12185                 3[2-4]
12186               )
12187             )|
12188             4(?:
12189               2(?:
12190                 2[2-9]|
12191                 8[237-9]
12192               )|
12193               3[689]|
12194               6[035-7]|
12195               7(?:
12196                 [059][2-8]|
12197                 [68]
12198               )|
12199               80|
12200               9[3-5]
12201             )|
12202             5(?:
12203               3[1-36-9]|
12204               4[4578]|
12205               5[013-8]|
12206               6[1-9]|
12207               7[2-8]|
12208               8[14-7]|
12209               9(?:
12210                 [89][2-8]|
12211                 [4-7]
12212               )
12213             )|
12214             7(?:
12215               2[15]|
12216               3[5-9]|
12217               4[02-9]|
12218               6[135-8]|
12219               7[0-4689]|
12220               9(?:
12221                 [017-9]|
12222                 4[6-8]|
12223                 5[2-478]|
12224                 6[2-589]
12225               )
12226             )|
12227             8(?:
12228               2(?:
12229                 4[4-8]|
12230                 9[2-8]
12231               )|
12232               3(?:
12233                 7[2-6]|
12234                 [3-6][2-9]|
12235                 8[2-5]
12236               )|
12237               4[5-8]|
12238               5[2-9]|
12239               6(?:
12240                 [37]|
12241                 5[4-7]|
12242                 6[2-9]|
12243                 8[2-8]|
12244                 9[236-9]
12245               )|
12246               7[579]|
12247               8[03-579]|
12248               9[2-8]
12249             )|
12250             9(?:
12251               [23]0|
12252               4[02-46-9]|
12253               5[024-79]|
12254               6[4-9]|
12255               7[2-47-9]|
12256               8[02-7]|
12257               9(?:
12258                 3[34]|
12259                 [4-7]
12260               )
12261             )
12262           </leadingDigits>
12263           <leadingDigits>
12264             1(?:
12265               2[3-6]|
12266               3[3-9]|
12267               4[2-6]|
12268               5(?:
12269                 [236-8]|
12270                 [45][2-69]
12271               )|
12272               [68][2-7]|
12273               7[2-689]|
12274               9[1-578]
12275             )|
12276             2(?:
12277               2(?:
12278                 [04-689]|
12279                 3[23]
12280               )|
12281               3[3-58]|
12282               4[0-468]|
12283               5(?:
12284                 5[78]|
12285                 7[2-4]|
12286                 [0468][2-9]
12287               )|
12288               6(?:
12289                 [0135-8]|
12290                 4[2-5]
12291               )|
12292               7(?:
12293                 [0679]|
12294                 8[2-7]
12295               )|
12296               8(?:
12297                 [024578]|
12298                 3[25-9]|
12299                 9[6-9]
12300               )|
12301               9(?:
12302                 11|
12303                 3[2-4]
12304               )
12305             )|
12306             4(?:
12307               2(?:
12308                 2[2-9]|
12309                 8[237-9]
12310               )|
12311               3[689]|
12312               6[035-7]|
12313               7(?:
12314                 [059][2-8]|
12315                 [68]
12316               )|
12317               80|
12318               9[3-5]
12319             )|
12320             5(?:
12321               3[1-36-9]|
12322               4[4578]|
12323               5[013-8]|
12324               6[1-9]|
12325               7[2-8]|
12326               8[14-7]|
12327               9(?:
12328                 [89][2-8]|
12329                 [4-7]
12330               )
12331             )|
12332             7(?:
12333               2[15]|
12334               3[5-9]|
12335               4[02-9]|
12336               6[135-8]|
12337               7[0-4689]|
12338               9(?:
12339                 [017-9]|
12340                 4[6-8]|
12341                 5[2-478]|
12342                 6[2-589]
12343               )
12344             )|
12345             8(?:
12346               2(?:
12347                 4[4-8]|
12348                 9(?:
12349                   [3578]|
12350                   20|
12351                   4[04-9]|
12352                   6[56]
12353                 )
12354               )|
12355               3(?:
12356                 7(?:
12357                   [2-5]|
12358                   6[0-59]
12359                 )|
12360                 [3-6][2-9]|
12361                 8[2-5]
12362               )|
12363               4[5-8]|
12364               5[2-9]|
12365               6(?:
12366                 [37]|
12367                 5(?:
12368                   [467]|
12369                   5[014-9]
12370                 )|
12371                 6(?:
12372                   [2-8]|
12373                   9[02-69]
12374                 )|
12375                 8[2-8]|
12376                 9(?:
12377                   [236-8]|
12378                   9[23]
12379                 )
12380               )|
12381               7[579]|
12382               8[03-579]|
12383               9[2-8]
12384             )|
12385             9(?:
12386               [23]0|
12387               4[02-46-9]|
12388               5[024-79]|
12389               6[4-9]|
12390               7[2-47-9]|
12391               8[02-7]|
12392               9(?:
12393                 3(?:
12394                   3[02-9]|
12395                   4[0-24689]
12396                 )|
12397                 4[2-69]|
12398                 [5-7]
12399               )
12400             )
12401           </leadingDigits>
12402           <leadingDigits>
12403             1(?:
12404               2[3-6]|
12405               3[3-9]|
12406               4[2-6]|
12407               5(?:
12408                 [236-8]|
12409                 [45][2-69]
12410               )|
12411               [68][2-7]|
12412               7[2-689]|
12413               9[1-578]
12414             )|
12415             2(?:
12416               2(?:
12417                 [04-689]|
12418                 3[23]
12419               )|
12420               3[3-58]|
12421               4[0-468]|
12422               5(?:
12423                 5[78]|
12424                 7[2-4]|
12425                 [0468][2-9]
12426               )|
12427               6(?:
12428                 [0135-8]|
12429                 4[2-5]
12430               )|
12431               7(?:
12432                 [0679]|
12433                 8[2-7]
12434               )|
12435               8(?:
12436                 [024578]|
12437                 3[25-9]|
12438                 9[6-9]
12439               )|
12440               9(?:
12441                 11|
12442                 3[2-4]
12443               )
12444             )|
12445             4(?:
12446               2(?:
12447                 2[2-9]|
12448                 8[237-9]
12449               )|
12450               3[689]|
12451               6[035-7]|
12452               7(?:
12453                 [059][2-8]|
12454                 [68]
12455               )|
12456               80|
12457               9[3-5]
12458             )|
12459             5(?:
12460               3[1-36-9]|
12461               4[4578]|
12462               5[013-8]|
12463               6[1-9]|
12464               7[2-8]|
12465               8[14-7]|
12466               9(?:
12467                 [89][2-8]|
12468                 [4-7]
12469               )
12470             )|
12471             7(?:
12472               2[15]|
12473               3[5-9]|
12474               4[02-9]|
12475               6[135-8]|
12476               7[0-4689]|
12477               9(?:
12478                 [017-9]|
12479                 4[6-8]|
12480                 5[2-478]|
12481                 6[2-589]
12482               )
12483             )|
12484             8(?:
12485               2(?:
12486                 4[4-8]|
12487                 9(?:
12488                   [3578]|
12489                   20|
12490                   4[04-9]|
12491                   6(?:
12492                     5[25]|
12493                     60
12494                   )
12495                 )
12496               )|
12497               3(?:
12498                 7(?:
12499                   [2-5]|
12500                   6[0-59]
12501                 )|
12502                 [3-6][2-9]|
12503                 8[2-5]
12504               )|
12505               4[5-8]|
12506               5[2-9]|
12507               6(?:
12508                 [37]|
12509                 5(?:
12510                   [467]|
12511                   5[014-9]
12512                 )|
12513                 6(?:
12514                   [2-8]|
12515                   9[02-69]
12516                 )|
12517                 8[2-8]|
12518                 9(?:
12519                   [236-8]|
12520                   9[23]
12521                 )
12522               )|
12523               7[579]|
12524               8[03-579]|
12525               9[2-8]
12526             )|
12527             9(?:
12528               [23]0|
12529               4[02-46-9]|
12530               5[024-79]|
12531               6[4-9]|
12532               7[2-47-9]|
12533               8[02-7]|
12534               9(?:
12535                 3(?:
12536                   3[02-9]|
12537                   4[0-24689]
12538                 )|
12539                 4[2-69]|
12540                 [5-7]
12541               )
12542             )
12543           </leadingDigits>
12544           <format>$1-$2-$3</format>
12545         </numberFormat>
12546         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12547           <leadingDigits>
12548             1|
12549             2(?:
12550               2[37]|
12551               5[5-9]|
12552               64|
12553               78|
12554               8[39]|
12555               91
12556             )|
12557             4(?:
12558               2[2689]|
12559               64|
12560               7[347]
12561             )|
12562             5(?:
12563               [2-589]|
12564               39
12565             )|
12566             60|
12567             8(?:
12568               [46-9]|
12569               3[279]|
12570               2[124589]
12571             )|
12572             9(?:
12573               [235-8]|
12574               93
12575             )
12576           </leadingDigits>
12577           <leadingDigits>
12578             1|
12579             2(?:
12580               2[37]|
12581               5(?:
12582                 [57]|
12583                 [68]0|
12584                 9[19]
12585               )|
12586               64|
12587               78|
12588               8[39]|
12589               917
12590             )|
12591             4(?:
12592               2(?:
12593                 [68]|
12594                 20|
12595                 9[178]
12596               )|
12597               64|
12598               7[347]
12599             )|
12600             5(?:
12601               [2-589]|
12602               39[67]
12603             )|
12604             60|
12605             8(?:
12606               [46-9]|
12607               3[279]|
12608               2[124589]
12609             )|
12610             9(?:
12611               [235-8]|
12612               93[34]
12613             )
12614           </leadingDigits>
12615           <leadingDigits>
12616             1|
12617             2(?:
12618               2[37]|
12619               5(?:
12620                 [57]|
12621                 [68]0|
12622                 9(?:
12623                   17|
12624                   99
12625                 )
12626               )|
12627               64|
12628               78|
12629               8[39]|
12630               917
12631             )|
12632             4(?:
12633               2(?:
12634                 [68]|
12635                 20|
12636                 9[178]
12637               )|
12638               64|
12639               7[347]
12640             )|
12641             5(?:
12642               [2-589]|
12643               39[67]
12644             )|
12645             60|
12646             8(?:
12647               [46-9]|
12648               3[279]|
12649               2[124589]
12650             )|
12651             9(?:
12652               [235-8]|
12653               93(?:
12654                 31|
12655                 4
12656               )
12657             )
12658           </leadingDigits>
12659           <format>$1-$2-$3</format>
12660         </numberFormat>
12661         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12662           <leadingDigits>
12663             2(?:
12664               9[14-79]|
12665               74|
12666               [34]7|
12667               [56]9
12668             )|
12669             82|
12670             993
12671           </leadingDigits>
12672           <format>$1-$2-$3</format>
12673         </numberFormat>
12674         <numberFormat pattern="(\d)(\d{4})(\d{4})">
12675           <leadingDigits>
12676             3|
12677             4(?:
12678               2[09]|
12679               7[01]
12680             )|
12681             6[1-9]
12682           </leadingDigits>
12683           <format>$1-$2-$3</format>
12684         </numberFormat>
12685         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12686           <leadingDigits>[2479][1-9]</leadingDigits>
12687           <format>$1-$2-$3</format>
12688         </numberFormat>
12689       </availableFormats>
12690       <generalDesc>
12691         <nationalNumberPattern>
12692           [1-9]\d{8,9}|
12693           00(?:
12694              [36]\d{7,14}|
12695              7\d{5,7}|
12696              8\d{7}
12697           )
12698         </nationalNumberPattern>
12699         <possibleNumberPattern>\d{8,17}</possibleNumberPattern>
12700       </generalDesc>
12701       <noInternationalDialling>
12702         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
12703         <nationalNumberPattern>
12704           00(?:
12705              37\d{6,13}|
12706              66\d{6,13}|
12707              777(?:
12708                [01]\d{2}|
12709                5\d{3}|
12710                8\d{4}
12711              )|
12712              882[1245]\d{4}
12713           )
12714         </nationalNumberPattern>
12715         <exampleNumber>00777012</exampleNumber>
12716       </noInternationalDialling>
12717       <fixedLine>
12718         <nationalNumberPattern>
12719           (?:
12720             1(?:
12721               1[235-8]|
12722               2[3-6]|
12723               3[3-9]|
12724               4[2-6]|
12725               [58][2-8]|
12726               6[2-7]|
12727               7[2-9]|
12728               9[1-9]
12729             )|
12730             2[2-9]\d|
12731             [36][1-9]\d|
12732             4(?:
12733               6[02-8]|
12734               [2-578]\d|
12735               9[2-59]
12736             )|
12737             5(?:
12738               6[1-9]|
12739               7[2-8]|
12740               [2-589]\d
12741             )|
12742             7(?:
12743               3[4-9]|
12744               4[02-9]|
12745               [25-9]\d
12746             )|
12747             8(?:
12748               3[2-9]|
12749               4[5-9]|
12750               5[1-9]|
12751               8[03-9]|
12752               [2679]\d
12753             )|
12754             9(?:
12755               [679][1-9]|
12756               [2-58]\d
12757             )
12758           )\d{6}
12759         </nationalNumberPattern>
12760         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12761         <exampleNumber>312345678</exampleNumber>
12762       </fixedLine>
12763       <mobile>
12764         <nationalNumberPattern>[7-9]0[1-9]\d{7}</nationalNumberPattern>
12765         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12766         <exampleNumber>7012345678</exampleNumber>
12767       </mobile>
12768       <pager>
12769         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
12770         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12771         <exampleNumber>2012345678</exampleNumber>
12772       </pager>
12773       <tollFree>
12774         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
12775              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
12776              http://eonet.jp/home/denwa/service/access.html
12777              http://ci.fusioncom.co.jp/feature/
12778              http://www.auhikari.jp/service/tel/connection/index.html -->
12779         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
12780              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
12781              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
12782              for now (including both leading 00s). -->
12783         <nationalNumberPattern>
12784           120\d{6}|
12785           800\d{7}|
12786           00(?:
12787              37\d{6,13}|
12788              66\d{6,13}|
12789              777(?:
12790                [01]\d{2}|
12791                5\d{3}|
12792                8\d{4}
12793              )|
12794              882[1245]\d{4}
12795           )
12796         </nationalNumberPattern>
12797         <exampleNumber>120123456</exampleNumber>
12798       </tollFree>
12799       <premiumRate>
12800         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
12801         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12802         <exampleNumber>990123456</exampleNumber>
12803       </premiumRate>
12804       <personalNumber>
12805         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
12806         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12807         <exampleNumber>601234567</exampleNumber>
12808       </personalNumber>
12809       <voip>
12810         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
12811         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12812         <exampleNumber>5012345678</exampleNumber>
12813       </voip>
12814       <!-- Storing "unified number service" as UAN. -->
12815       <uan>
12816         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
12817         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12818         <exampleNumber>570123456</exampleNumber>
12819       </uan>
12820     </territory>
12821
12822     <!-- Kenya -->
12823     <territory id="KE" countryCode="254" internationalPrefix="000"
12824                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
12825                mobileNumberPortableRegion="true">
12826       <references>
12827         <sourceUrl>http://www.cck.go.ke/licensing/numbering/plan.html</sourceUrl>
12828         <sourceUrl>http://en.wikipedia.org/wiki/+254</sourceUrl>
12829       </references>
12830       <availableFormats>
12831         <numberFormat pattern="(\d{2})(\d{5,7})">
12832           <leadingDigits>[24-6]</leadingDigits>
12833           <format>$1 $2</format>
12834         </numberFormat>
12835         <numberFormat pattern="(\d{3})(\d{6,7})">
12836           <leadingDigits>7</leadingDigits>
12837           <format>$1 $2</format>
12838         </numberFormat>
12839         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12840           <leadingDigits>[89]</leadingDigits>
12841           <format>$1 $2 $3</format>
12842         </numberFormat>
12843       </availableFormats>
12844       <generalDesc>
12845         <nationalNumberPattern>
12846           20\d{6,7}|
12847           [4-9]\d{6,9}
12848         </nationalNumberPattern>
12849         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
12850       </generalDesc>
12851       <fixedLine>
12852         <!-- The prefixes 046, 050, 058, and 066 may appear online in less than 9 digits but
12853              calling them has confirmed these are outdated. However a 7-digit 068 number was
12854              dialed successfully so we consider these valid despite the plan. -->
12855         <nationalNumberPattern>
12856           20\d{6,7}|
12857           4(?:
12858             [0136]\d{7}|
12859             [245]\d{5,7}
12860           )|
12861           5(?:
12862             [08]\d{7}|
12863             [1-79]\d{5,7}
12864           )|
12865           6(?:
12866             [01457-9]\d{5,7}|
12867             [26]\d{7}
12868           )
12869         </nationalNumberPattern>
12870         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
12871         <exampleNumber>202012345</exampleNumber>
12872       </fixedLine>
12873       <mobile>
12874         <nationalNumberPattern>
12875           7(?:
12876             [0-36]\d|
12877             5[0-6]|
12878             7[0-5]|
12879             8[0-25-9]
12880           )\d{6}
12881         </nationalNumberPattern>
12882         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12883         <exampleNumber>712123456</exampleNumber>
12884       </mobile>
12885       <tollFree>
12886         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
12887         <!-- The plan suggests 0844 and 0845 may belong here, but these are short numbers rather
12888              than prefixes:
12889              http://www.telkomkenya.8k.com/Products/v/2.html
12890              http://www.kenya-advisor.com/phone-calls-kenya.html
12891              http://www.telkom.co.ke/index.php?option=com_content&view=article&id=64&Itemid=98 -->
12892         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
12893         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12894         <exampleNumber>800223456</exampleNumber>
12895       </tollFree>
12896       <premiumRate>
12897         <nationalNumberPattern>900[02-9]\d{5}</nationalNumberPattern>
12898         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12899         <exampleNumber>900223456</exampleNumber>
12900       </premiumRate>
12901     </territory>
12902
12903     <!-- Kyrgyzstan -->
12904     <territory id="KG" countryCode="996" internationalPrefix="00"
12905                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
12906       <references>
12907         <sourceUrl>http://www.itu.int/oth/T0202000074/en</sourceUrl>
12908       </references>
12909       <availableFormats>
12910         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
12911           <leadingDigits>
12912             [25-7]|
12913             31[25]
12914           </leadingDigits>
12915           <format>$1 $2 $3</format>
12916         </numberFormat>
12917         <numberFormat pattern="(\d{4})(\d{5})">
12918           <leadingDigits>
12919             3(?:
12920               1[36]|
12921               [2-9]
12922             )
12923           </leadingDigits>
12924           <format>$1 $2</format>
12925         </numberFormat>
12926         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
12927           <leadingDigits>8</leadingDigits>
12928           <format>$1 $2 $3 $4</format>
12929         </numberFormat>
12930       </availableFormats>
12931       <generalDesc>
12932         <nationalNumberPattern>[235-8]\d{8,9}</nationalNumberPattern>
12933         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12934       </generalDesc>
12935       <fixedLine>
12936         <!-- Extra area codes found on Web Search: 3147. -->
12937         <nationalNumberPattern>
12938           (?:
12939             3(?:
12940               1(?:
12941                 [256]\d|
12942                 3[1-9]|
12943                 47
12944               )|
12945               2(?:
12946                 22|
12947                 3[0-479]|
12948                 6[0-7]
12949               )|
12950               4(?:
12951                 22|
12952                 5[6-9]|
12953                 6\d
12954               )|
12955               5(?:
12956                 22|
12957                 3[4-7]|
12958                 59|
12959                 6\d
12960               )|
12961               6(?:
12962                 22|
12963                 5[35-7]|
12964                 6\d
12965               )|
12966               7(?:
12967                 22|
12968                 3[468]|
12969                 4[1-9]|
12970                 59|
12971                 [67]\d
12972               )|
12973               9(?:
12974                 22|
12975                 4[1-8]|
12976                 6\d
12977               )
12978             )|
12979             6(?:
12980               09|
12981               12|
12982               2[2-4]
12983             )\d
12984           )\d{5}
12985         </nationalNumberPattern>
12986         <exampleNumber>312123456</exampleNumber>
12987       </fixedLine>
12988       <mobile>
12989         <nationalNumberPattern>
12990           (?:
12991             20[0-35]|
12992             5[124-7]\d|
12993             7[07]\d
12994           )\d{6}
12995         </nationalNumberPattern>
12996         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12997         <exampleNumber>700123456</exampleNumber>
12998       </mobile>
12999       <tollFree>
13000         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
13001              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
13002         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
13003         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13004         <exampleNumber>800123456</exampleNumber>
13005       </tollFree>
13006       <!-- No premiumRate information can be found. -->
13007       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
13008     </territory>
13009
13010     <!-- Cambodia -->
13011     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
13012                nationalPrefix="0">
13013       <references>
13014         <sourceUrl>http://www.itu.int/oth/T0202000023/en</sourceUrl>
13015         <sourceUrl>http://en.wikipedia.org/wiki/+855</sourceUrl>
13016       </references>
13017       <availableFormats>
13018         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
13019           <leadingDigits>
13020             1\d[1-9]|
13021             [2-9]
13022           </leadingDigits>
13023           <format>$1 $2 $3</format>
13024         </numberFormat>
13025         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
13026           <leadingDigits>1[89]0</leadingDigits>
13027           <format>$1 $2 $3</format>
13028         </numberFormat>
13029       </availableFormats>
13030       <generalDesc>
13031         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
13032         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13033       </generalDesc>
13034       <fixedLine>
13035         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
13036              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
13037              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
13038              range beginning with 6 seems to include some numbers that are one digit longer as well.
13039              Allowing 238\d{6} and 234[234]\d{4} based on information from Cambodia Yellow Pages.
13040              Note that numbers beginning with 234 are split across two patterns. -->
13041         <nationalNumberPattern>
13042           (?:
13043             2[3-6]|
13044             3[2-6]|
13045             4[2-4]|
13046             [5-7][2-5]
13047           )(?:
13048             [237-9]|
13049             4[56]|
13050             5\d|
13051             6\d?
13052           )\d{5}|
13053           23(?:
13054             4[234]|
13055             8\d{2}
13056           )\d{4}
13057         </nationalNumberPattern>
13058         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13059         <exampleNumber>23756789</exampleNumber>
13060       </fixedLine>
13061       <mobile>
13062         <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
13063              Beeline uses 060.
13064              Mobitel uses 01[1247].
13065              Cellcard uses 0857 and 061.
13066              Extra prefixes found online: 088, 097.
13067              Allowing 9-digit 12, 31, 38 and 76 numbers based on information from Cambodia Yellow
13068              Pages and online search. Allowing 71 based on open-source report and online search. -->
13069         <nationalNumberPattern>
13070           (?:
13071             1(?:
13072               [013-9]|
13073               2\d?
13074             )|
13075             3[18]\d|
13076             6[016-9]|
13077             7(?:
13078               [07-9]|
13079               [16]\d
13080             )|
13081             8(?:
13082               [013-79]|
13083               8\d
13084             )|
13085             9(?:
13086               6\d|
13087               7\d?|
13088               [0-589]
13089             )
13090           )\d{6}
13091         </nationalNumberPattern>
13092         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
13093         <exampleNumber>91234567</exampleNumber>
13094       </mobile>
13095       <tollFree>
13096         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
13097         <nationalNumberPattern>
13098           1800(?:
13099             1\d|
13100             2[019]
13101           )\d{4}
13102         </nationalNumberPattern>
13103         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13104         <exampleNumber>1800123456</exampleNumber>
13105       </tollFree>
13106       <premiumRate>
13107         <nationalNumberPattern>
13108           1900(?:
13109             1\d|
13110             2[09]
13111           )\d{4}
13112         </nationalNumberPattern>
13113         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13114         <exampleNumber>1900123456</exampleNumber>
13115       </premiumRate>
13116     </territory>
13117
13118     <!-- Kiribati -->
13119     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
13120          leading 0 - no numbers online have been found formatted this way, but the ITU document
13121          lists it as a national dialling prefix. -->
13122     <territory id="KI" countryCode="686" internationalPrefix="00"
13123                nationalPrefixForParsing="0">
13124       <references>
13125         <sourceUrl>http://www.itu.int/oth/T0202000071/en</sourceUrl>
13126       </references>
13127       <!-- Numbers should be formatted as a block." -->
13128       <generalDesc>
13129         <nationalNumberPattern>
13130           [2458]\d{4}|
13131           3\d{4,7}|
13132           7\d{7}
13133         </nationalNumberPattern>
13134         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
13135       </generalDesc>
13136       <fixedLine>
13137         <nationalNumberPattern>
13138           (?:
13139             [24]\d|
13140             3[1-9]|
13141             50|
13142             8[0-5]
13143           )\d{3}
13144         </nationalNumberPattern>
13145         <possibleNumberPattern>\d{5}</possibleNumberPattern>
13146         <exampleNumber>31234</exampleNumber>
13147       </fixedLine>
13148       <mobile>
13149         <!-- North Tarawa is listed as 720XXXXX-729XXXXX but considering that this deviates from the
13150              pattern followed by every other place, we are assuming 731XXXXX-732XXXXX for now. -->
13151         <nationalNumberPattern>
13152           7(?:
13153             [24]\d|
13154             3[1-9]|
13155             8[0-5]
13156           )\d{5}
13157         </nationalNumberPattern>
13158         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13159         <exampleNumber>72012345</exampleNumber>
13160       </mobile>
13161       <premiumRate>
13162         <!-- ITU refers to these as "Telemedia and audiotext". -->
13163         <nationalNumberPattern>3001\d{4}</nationalNumberPattern>
13164         <exampleNumber>30010000</exampleNumber>
13165       </premiumRate>
13166     </territory>
13167
13168     <!-- Comoros -->
13169     <territory id="KM" countryCode="269" internationalPrefix="00">
13170       <references>
13171         <sourceUrl>http://www.itu.int/oth/T020200002D/en</sourceUrl>
13172       </references>
13173       <availableFormats>
13174         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
13175           <format>$1 $2 $3</format>
13176         </numberFormat>
13177       </availableFormats>
13178       <generalDesc>
13179         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
13180         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13181       </generalDesc>
13182       <fixedLine>
13183         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
13184              http://www.comorestelecom.km/presentationcdma.php -->
13185         <nationalNumberPattern>
13186           7(?:
13187             6[0-37-9]|
13188             7[0-57-9]
13189           )\d{4}
13190         </nationalNumberPattern>
13191         <exampleNumber>7712345</exampleNumber>
13192       </fixedLine>
13193       <mobile>
13194         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
13195         <exampleNumber>3212345</exampleNumber>
13196       </mobile>
13197       <premiumRate>
13198         <!-- These are referred to as value-added services in the plan and no further information
13199              can be found. -->
13200         <nationalNumberPattern>
13201           (?:
13202             39[01]|
13203             9[01]0
13204           )\d{4}
13205         </nationalNumberPattern>
13206         <exampleNumber>9001234</exampleNumber>
13207       </premiumRate>
13208     </territory>
13209
13210     <!-- Saint Kitts and Nevis -->
13211     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
13212                internationalPrefix="011">
13213       <references>
13214         <sourceUrl>http://www.itu.int/oth/T02020000B0/en</sourceUrl>
13215       </references>
13216       <generalDesc>
13217         <!-- NANPA country - uses US formatting rules -->
13218         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
13219         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13220       </generalDesc>
13221       <fixedLine>
13222         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
13223              of it can be found. -->
13224         <nationalNumberPattern>
13225           869(?:
13226             2(?:
13227               29|
13228               36
13229             )|
13230             302|
13231             4(?:
13232               6[015-9]|
13233               70
13234             )
13235           )\d{4}
13236         </nationalNumberPattern>
13237         <exampleNumber>8692361234</exampleNumber>
13238       </fixedLine>
13239       <mobile>
13240         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
13241         <nationalNumberPattern>
13242           869(?:
13243             5(?:
13244               5[6-8]|
13245               6[5-7]
13246             )|
13247             66\d|
13248             76[02-6]
13249           )\d{4}
13250         </nationalNumberPattern>
13251         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13252         <!-- Example number from the ITU document. -->
13253         <exampleNumber>8697652917</exampleNumber>
13254       </mobile>
13255       <tollFree>
13256         <nationalNumberPattern>
13257           8(?:
13258             00|
13259             44|
13260             55|
13261             66|
13262             77|
13263             88
13264           )[2-9]\d{6}
13265         </nationalNumberPattern>
13266         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13267         <exampleNumber>8002123456</exampleNumber>
13268       </tollFree>
13269       <premiumRate>
13270         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
13271         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13272         <exampleNumber>9002123456</exampleNumber>
13273       </premiumRate>
13274       <personalNumber>
13275         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13276         <nationalNumberPattern>
13277           5(?:
13278             00|
13279             33|
13280             44|
13281             66|
13282             77
13283           )[2-9]\d{6}
13284         </nationalNumberPattern>
13285         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13286         <exampleNumber>5002345678</exampleNumber>
13287       </personalNumber>
13288     </territory>
13289
13290     <!-- Korea, Dem. People's Rep. of -->
13291     <territory id="KP" countryCode="850" internationalPrefix="00|99"
13292                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13293       <references>
13294         <sourceUrl>http://en.wikipedia.org/wiki/%2B850</sourceUrl>
13295       </references>
13296       <availableFormats>
13297         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13298           <leadingDigits>1</leadingDigits>
13299           <format>$1 $2 $3</format>
13300         </numberFormat>
13301         <numberFormat pattern="(\d)(\d{3})(\d{4})">
13302           <leadingDigits>2</leadingDigits>
13303           <format>$1 $2 $3</format>
13304         </numberFormat>
13305         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
13306           <leadingDigits>8</leadingDigits>
13307           <format>$1 $2 $3</format>
13308         </numberFormat>
13309       </availableFormats>
13310       <generalDesc>
13311         <nationalNumberPattern>
13312           1\d{9}|
13313           [28]\d{7}
13314         </nationalNumberPattern>
13315         <possibleNumberPattern>
13316           \d{6,8}|
13317           \d{10}
13318         </possibleNumberPattern>
13319       </generalDesc>
13320       <noInternationalDialling>
13321         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
13322         <nationalNumberPattern>
13323           2(?:
13324             [0-24-9]\d{2}|
13325             3(?:
13326               [0-79]\d|
13327               8[02-9]
13328             )
13329           )\d{4}
13330         </nationalNumberPattern>
13331         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13332         <exampleNumber>23821234</exampleNumber>
13333       </noInternationalDialling>
13334       <fixedLine>
13335         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
13336              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
13337              from overseas. Also, there is conflicting information about the length of fixed-line
13338              numbers, so here we are following Wikipedia. -->
13339         <nationalNumberPattern>
13340           2\d{7}|
13341           85\d{6}
13342         </nationalNumberPattern>
13343         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
13344         <exampleNumber>21234567</exampleNumber>
13345       </fixedLine>
13346       <mobile>
13347         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
13348         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13349         <exampleNumber>1921234567</exampleNumber>
13350       </mobile>
13351     </territory>
13352
13353     <!-- Korea (Rep. of) -->
13354     <!-- Exceptions :
13355         internationalPrefix
13356             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
13357         nationalPrefix
13358             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
13359     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
13360                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
13361                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG"
13362                mobileNumberPortableRegion="true">
13363       <references>
13364         <sourceUrl>http://www.itu.int/oth/T0202000072/en</sourceUrl>
13365         <sourceUrl>http://en.wikipedia.org/wiki/%2B82</sourceUrl>
13366         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2349</sourceUrl>
13367         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2240</sourceUrl>
13368         <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>
13369       </references>
13370       <availableFormats>
13371         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
13372           <leadingDigits>
13373             1(?:
13374               0|
13375               1[19]|
13376               [69]9|
13377               5[458]
13378             )|
13379             [57]0
13380           </leadingDigits>
13381           <leadingDigits>
13382             1(?:
13383               0|
13384               1[19]|
13385               [69]9|
13386               5(?:
13387                 44|
13388                 59|
13389                 8
13390               )
13391             )|
13392             [57]0
13393           </leadingDigits>
13394           <format>$1-$2-$3</format>
13395         </numberFormat>
13396         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
13397           <leadingDigits>
13398             1(?:
13399               [169][2-8]|
13400               [78]|
13401               5[1-4]
13402             )|
13403             [68]0|
13404             [3-6][1-9][1-9]
13405           </leadingDigits>
13406           <leadingDigits>
13407             1(?:
13408               [169][2-8]|
13409               [78]|
13410               5(?:
13411                 [1-3]|
13412                 4[56]
13413               )
13414             )|
13415             [68]0|
13416             [3-6][1-9][1-9]
13417           </leadingDigits>
13418           <format>$1-$2-$3</format>
13419         </numberFormat>
13420         <numberFormat pattern="(\d{3})(\d)(\d{4})">
13421           <leadingDigits>131</leadingDigits>
13422           <leadingDigits>1312</leadingDigits>
13423           <format>$1-$2-$3</format>
13424         </numberFormat>
13425         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
13426           <leadingDigits>131</leadingDigits>
13427           <leadingDigits>131[13-9]</leadingDigits>
13428           <format>$1-$2-$3</format>
13429         </numberFormat>
13430         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13431           <leadingDigits>13[2-9]</leadingDigits>
13432           <format>$1-$2-$3</format>
13433         </numberFormat>
13434         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
13435              limit of what digits may follow the 030, but we ignore that here. These numbers are
13436              actually not supported for validation purposes by the library at the moment as no
13437              online examples can be found, but we leave theme here so formatting continues to work
13438              if they are entered. -->
13439         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
13440           <leadingDigits>30</leadingDigits>
13441           <format>$1-$2-$3-$4</format>
13442         </numberFormat>
13443         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
13444           <leadingDigits>2[1-9]</leadingDigits>
13445           <format>$1-$2-$3</format>
13446         </numberFormat>
13447         <numberFormat pattern="(\d)(\d{3,4})">
13448           <leadingDigits>21[0-46-9]</leadingDigits>
13449           <format>$1-$2</format>
13450         </numberFormat>
13451         <numberFormat pattern="(\d{2})(\d{3,4})">
13452           <leadingDigits>[3-6][1-9]1</leadingDigits>
13453           <leadingDigits>
13454             [3-6][1-9]1(?:
13455               [0-46-9]
13456             )
13457           </leadingDigits>
13458           <format>$1-$2</format>
13459         </numberFormat>
13460         <!-- Company numbers. -->
13461         <numberFormat pattern="(\d{4})(\d{4})"
13462           nationalPrefixFormattingRule="$FG">
13463           <leadingDigits>
13464             1(?:
13465               5[46-9]|
13466               6[04678]|
13467               8[0579]
13468             )
13469           </leadingDigits>
13470           <leadingDigits>
13471             1(?:
13472               5(?:
13473                 44|
13474                 66|
13475                 77|
13476                 88|
13477                 99
13478               )|
13479               6(?:
13480                 00|
13481                 44|
13482                 6[16]|
13483                 70|
13484                 88
13485               )|
13486               8(?:
13487                 00|
13488                 55|
13489                 77|
13490                 99
13491               )
13492             )
13493           </leadingDigits>
13494           <format>$1-$2</format>
13495         </numberFormat>
13496       </availableFormats>
13497       <generalDesc>
13498         <nationalNumberPattern>
13499           [1-7]\d{3,9}|
13500           8\d{8}
13501         </nationalNumberPattern>
13502         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13503       </generalDesc>
13504       <fixedLine>
13505         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
13506              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
13507              starting with 1 based on evidence of real numbers found online. -->
13508         <nationalNumberPattern>
13509           (?:
13510             2|
13511             3[1-3]|
13512             [46][1-4]|
13513             5[1-5]
13514           )(?:
13515             1\d{2,3}|
13516             [1-9]\d{6,7}
13517           )
13518         </nationalNumberPattern>
13519         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13520         <exampleNumber>22123456</exampleNumber>
13521       </fixedLine>
13522       <mobile>
13523         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
13524         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13525         <exampleNumber>1000000000</exampleNumber>
13526       </mobile>
13527       <pager>
13528         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
13529         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13530         <exampleNumber>1523456789</exampleNumber>
13531       </pager>
13532       <tollFree>
13533         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
13534         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13535         <exampleNumber>801234567</exampleNumber>
13536       </tollFree>
13537       <!-- The information below is provided by a Korean person. -->
13538       <premiumRate>
13539         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
13540         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13541         <exampleNumber>602345678</exampleNumber>
13542       </premiumRate>
13543       <personalNumber>
13544         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
13545         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13546         <exampleNumber>5012345678</exampleNumber>
13547       </personalNumber>
13548       <voip>
13549         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
13550         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13551         <exampleNumber>7012345678</exampleNumber>
13552       </voip>
13553       <uan>
13554         <!-- Prefix 18 added from numbers found online. -->
13555         <nationalNumberPattern>
13556           1(?:
13557             5(?:
13558               44|
13559               66|
13560               77|
13561               88|
13562               99
13563             )|
13564             6(?:
13565               00|
13566               44|
13567               6[16]|
13568               70|
13569               88
13570             )|
13571             8(?:
13572               00|
13573               55|
13574               77|
13575               99
13576             )
13577           )\d{4}
13578         </nationalNumberPattern>
13579         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13580         <exampleNumber>15441234</exampleNumber>
13581       </uan>
13582     </territory>
13583
13584     <!-- Kuwait -->
13585     <territory id="KW" countryCode="965" internationalPrefix="00" mobileNumberPortableRegion="true">
13586       <references>
13587         <sourceUrl>http://www.itu.int/oth/T0202000073/en</sourceUrl>
13588       </references>
13589       <availableFormats>
13590         <!-- Format is from ITU. -->
13591         <numberFormat pattern="(\d{4})(\d{3,4})">
13592           <leadingDigits>[1269]</leadingDigits>
13593           <format>$1 $2</format>
13594         </numberFormat>
13595         <numberFormat pattern="(5[015]\d)(\d{5})">
13596           <leadingDigits>5</leadingDigits>
13597           <format>$1 $2</format>
13598         </numberFormat>
13599       </availableFormats>
13600       <generalDesc>
13601         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
13602         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13603       </generalDesc>
13604       <fixedLine>
13605         <nationalNumberPattern>
13606           (?:
13607             18\d|
13608             2(?:
13609               [23]\d{2}|
13610               4(?:
13611                 [1-35-9]\d|
13612                 44
13613               )|
13614               5(?:
13615                 0[034]|
13616                 [2-46]\d|
13617                 5[1-3]|
13618                 7[1-7]
13619               )
13620             )
13621           )\d{4}
13622         </nationalNumberPattern>
13623         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13624         <exampleNumber>22345678</exampleNumber>
13625       </fixedLine>
13626       <mobile>
13627         <nationalNumberPattern>
13628           (?:
13629             5(?:
13630               [05]\d|
13631               1[0-7]
13632             )|
13633             6(?:
13634               0[034679]|
13635               5[015-9]|
13636               6\d|
13637               7[067]|
13638               9[0369]
13639             )|
13640             9(?:
13641               0[09]|
13642               4[049]|
13643               55|
13644               6[069]|
13645               [79]\d|
13646               8[07-9]
13647             )
13648           )\d{5}
13649         </nationalNumberPattern>
13650         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13651         <exampleNumber>50012345</exampleNumber>
13652       </mobile>
13653       <!-- No tollFree or premiumRate information can be found. -->
13654     </territory>
13655
13656     <!-- Cayman Islands -->
13657     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
13658                internationalPrefix="011">
13659       <references>
13660         <sourceUrl>http://www.itu.int/oth/T0202000027/en</sourceUrl>
13661       </references>
13662       <generalDesc>
13663         <!-- NANPA country - uses US formatting rules -->
13664         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
13665         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13666       </generalDesc>
13667       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
13668            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
13669       <fixedLine>
13670         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
13671              as per numbers found online and their website http://www.logic.ky. -->
13672         <nationalNumberPattern>
13673           345(?:
13674             2(?:
13675               22|
13676               44
13677             )|
13678             444|
13679             6(?:
13680               23|
13681               38|
13682               40
13683             )|
13684             7(?:
13685               4[35-79]|
13686               6[6-9]|
13687               77
13688             )|
13689             8(?:
13690               00|
13691               1[45]|
13692               25|
13693               [48]8
13694             )|
13695             9(?:
13696               14|
13697               4[035-9]
13698             )
13699           )\d{4}
13700         </nationalNumberPattern>
13701         <exampleNumber>3452221234</exampleNumber>
13702       </fixedLine>
13703       <mobile>
13704         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
13705              Most central office codes that were surrendered have not been included, with the
13706              exception of 546 where numbers have been found. -->
13707         <nationalNumberPattern>
13708           345(?:
13709             32[1-9]|
13710             5(?:
13711               1[67]|
13712               2[5-7]|
13713               4[6-8]|
13714               76
13715             )|
13716             9(?:
13717               1[67]|
13718               2[3-9]|
13719               3[689]
13720             )
13721           )\d{4}
13722         </nationalNumberPattern>
13723         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13724         <exampleNumber>3453231234</exampleNumber>
13725       </mobile>
13726       <pager>
13727         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
13728         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13729         <exampleNumber>3458491234</exampleNumber>
13730       </pager>
13731       <tollFree>
13732         <nationalNumberPattern>
13733           8(?:
13734             00|
13735             44|
13736             55|
13737             66|
13738             77|
13739             88
13740           )[2-9]\d{6}
13741         </nationalNumberPattern>
13742         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13743         <exampleNumber>8002345678</exampleNumber>
13744       </tollFree>
13745       <premiumRate>
13746         <nationalNumberPattern>
13747           900[2-9]\d{6}|
13748           345976\d{4}
13749         </nationalNumberPattern>
13750         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13751         <exampleNumber>9002345678</exampleNumber>
13752       </premiumRate>
13753       <personalNumber>
13754         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13755         <nationalNumberPattern>
13756           5(?:
13757             00|
13758             33|
13759             44|
13760             66|
13761             77
13762           )[2-9]\d{6}
13763         </nationalNumberPattern>
13764         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13765         <exampleNumber>5002345678</exampleNumber>
13766       </personalNumber>
13767     </territory>
13768
13769     <!-- Kazakhstan -->
13770     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
13771                internationalPrefix="810" nationalPrefix="8">
13772       <references>
13773         <sourceUrl>http://www.itu.int/oth/T020200006F/en</sourceUrl>
13774       </references>
13775        <!-- Formatting rules obtained from Russia. -->
13776       <generalDesc>
13777         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
13778              determining the country is faster. -->
13779         <nationalNumberPattern>
13780           (?:
13781             33\d|
13782             7\d{2}|
13783             80[09]
13784           )\d{7}
13785         </nationalNumberPattern>
13786         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13787       </generalDesc>
13788       <noInternationalDialling>
13789         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13790         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13791         <exampleNumber>7511234567</exampleNumber>
13792       </noInternationalDialling>
13793       <fixedLine>
13794         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
13795              22), which is within Kazakhstan but in fact rented and administered by Russia at the
13796              moment. -->
13797         <nationalNumberPattern>
13798           33622\d{5}|
13799           7(?:
13800             1(?:
13801               0(?:
13802                 [23]\d|
13803                 4[023]|
13804                 59|
13805                 63
13806               )|
13807               1(?:
13808                 [23]\d|
13809                 4[0-79]|
13810                 59
13811               )|
13812               2(?:
13813                 [23]\d|
13814                 59
13815               )|
13816               3(?:
13817                 2\d|
13818                 3[1-79]|
13819                 4[0-35-9]|
13820                 59
13821               )|
13822               4(?:
13823                 2\d|
13824                 3[013-79]|
13825                 4[0-8]|
13826                 5[1-79]
13827               )|
13828               5(?:
13829                 2\d|
13830                 3[1-8]|
13831                 4[1-7]|
13832                 59
13833               )|
13834               6(?:
13835                 [234]\d|
13836                 5[19]|
13837                 61
13838               )|
13839               72\d|
13840               8(?:
13841                 [27]\d|
13842                 3[1-46-9]|
13843                 4[0-5]
13844               )
13845             )|
13846             2(?:
13847               1(?:
13848                 [23]\d|
13849                 4[46-9]|
13850                 5[3469]
13851               )|
13852               2(?:
13853                 2\d|
13854                 3[0679]|
13855                 46|
13856                 5[12679]
13857               )|
13858               3(?:
13859                 [234]\d|
13860                 5[139]
13861               )|
13862               4(?:
13863                 2\d|
13864                 3[1235-9]|
13865                 59
13866               )|
13867               5(?:
13868                 [23]\d|
13869                 4[01246-8]|
13870                 59|
13871                 61
13872               )|
13873               6(?:
13874                 2\d|
13875                 3[1-9]|
13876                 4[0-4]|
13877                 59
13878               )|
13879               7(?:
13880                 [237]\d|
13881                 40|
13882                 5[279]
13883               )|
13884               8(?:
13885                 [23]\d|
13886                 4[0-3]|
13887                 59
13888               )|
13889               9(?:
13890                 2\d|
13891                 3[124578]|
13892                 59
13893               )
13894             )
13895           )\d{5}
13896         </nationalNumberPattern>
13897         <exampleNumber>7123456789</exampleNumber>
13898       </fixedLine>
13899       <mobile>
13900         <!-- Added 708 for Altel, 776 for Beeline, 747 for Tele2. -->
13901         <nationalNumberPattern>
13902           7(?:
13903             0[012578]|
13904             47|
13905             6[02-4]|
13906             7[15-8]|
13907             85
13908           )\d{7}
13909         </nationalNumberPattern>
13910         <exampleNumber>7710009998</exampleNumber>
13911       </mobile>
13912       <tollFree>
13913         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
13914         <exampleNumber>8001234567</exampleNumber>
13915       </tollFree>
13916       <premiumRate>
13917         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
13918         <exampleNumber>8091234567</exampleNumber>
13919       </premiumRate>
13920       <voip>
13921         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13922         <exampleNumber>7511234567</exampleNumber>
13923       </voip>
13924     </territory>
13925
13926     <!-- Lao People's Dem. Rep. -->
13927     <territory id="LA" countryCode="856" internationalPrefix="00"
13928                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13929       <references>
13930         <!-- Seems incomplete -->
13931         <sourceUrl>http://www.itu.int/oth/T0202000075/en</sourceUrl>
13932         <sourceUrl>http://en.wikipedia.org/wiki/+856</sourceUrl>
13933       </references>
13934       <availableFormats>
13935         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
13936           <leadingDigits>20</leadingDigits>
13937           <format>$1 $2 $3 $4</format>
13938         </numberFormat>
13939         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
13940           <leadingDigits>
13941             2[13]|
13942             3[14]|
13943             [4-8]
13944           </leadingDigits>
13945           <format>$1 $2 $3</format>
13946         </numberFormat>
13947         <numberFormat pattern="(30)(\d{2})(\d{2})(\d{3})">
13948           <leadingDigits>30</leadingDigits>
13949           <format>$1 $2 $3 $4</format>
13950         </numberFormat>
13951       </availableFormats>
13952       <generalDesc>
13953         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
13954         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13955       </generalDesc>
13956       <fixedLine>
13957         <!-- The Lonely Planet says that newer WIN phones (fixed phones without a physical landline)
13958              start with 030 (and are longer). There are plenty of examples online. -->
13959         <nationalNumberPattern>
13960           (?:
13961             2[13]|
13962             3(?:
13963               0\d|
13964               [14]
13965             )|
13966             [5-7][14]|
13967             41|
13968             8[1468]
13969           )\d{6}
13970         </nationalNumberPattern>
13971         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13972         <exampleNumber>21212862</exampleNumber>
13973       </fixedLine>
13974       <mobile>
13975         <!-- Adding 202[89], 205[89], 207[68] and 209[15-7] from numbers found online. -->
13976         <nationalNumberPattern>
13977           20(?:
13978             2[2389]|
13979             5[4-689]|
13980             7[6-8]|
13981             9[15-9]
13982           )\d{6}
13983         </nationalNumberPattern>
13984         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13985         <exampleNumber>2023123456</exampleNumber>
13986       </mobile>
13987       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
13988     </territory>
13989
13990     <!-- Lebanon -->
13991     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
13992       <references>
13993         <sourceUrl>http://www.itu.int/oth/T0202000077/en</sourceUrl>
13994         <sourceUrl>http://en.wikipedia.org/wiki/%2B961</sourceUrl>
13995       </references>
13996       <availableFormats>
13997         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
13998           <leadingDigits>
13999             [13-6]|
14000             7(?:
14001               [2-579]|
14002               62|
14003               8[0-7]
14004             )|
14005             [89][2-9]
14006             </leadingDigits>
14007           <format>$1 $2 $3</format>
14008         </numberFormat>
14009         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
14010           <leadingDigits>
14011             [89][01]|
14012             7(?:
14013               [019]|
14014               6[013-9]|
14015               8[89]
14016             )
14017           </leadingDigits>
14018           <format>$1 $2 $3</format>
14019         </numberFormat>
14020       </availableFormats>
14021       <generalDesc>
14022         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
14023         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14024       </generalDesc>
14025       <fixedLine>
14026         <!-- The ITU document from October 2012 seems to have accidentally dropped the 79 prefix for
14027              fixed-line numbers, which had been in the version from July 2012. We consider these
14028              valid since we successfully dialed such a number in July 2014. -->
14029         <nationalNumberPattern>
14030           (?:
14031             [14-6]\d{2}|
14032             7(?:
14033               [2-579]\d|
14034               62|
14035               8[0-7]
14036             )|
14037             [89][2-9]\d
14038           )\d{4}
14039         </nationalNumberPattern>
14040         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14041         <exampleNumber>1123456</exampleNumber>
14042       </fixedLine>
14043       <mobile>
14044         <!-- We only validate the first three digits here, since the ranges are growing rapidly.
14045              The 79[02-9] prefixes were added from bug reports and numbers found online. -->
14046         <nationalNumberPattern>
14047           (?:
14048             3\d|
14049             7(?:
14050               [019]\d|
14051               6[013-9]|
14052               8[89]
14053             )
14054           )\d{5}
14055         </nationalNumberPattern>
14056         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14057         <exampleNumber>71123456</exampleNumber>
14058       </mobile>
14059       <premiumRate>
14060         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
14061         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14062         <exampleNumber>90123456</exampleNumber>
14063       </premiumRate>
14064       <sharedCost>
14065         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
14066         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14067         <exampleNumber>80123456</exampleNumber>
14068       </sharedCost>
14069     </territory>
14070
14071     <!-- Saint Lucia -->
14072     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
14073                internationalPrefix="011">
14074       <references>
14075         <sourceUrl>http://www.itu.int/oth/T02020000B1/en</sourceUrl>
14076       </references>
14077       <generalDesc>
14078         <!-- NANPA country - uses US formatting rules -->
14079         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
14080         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
14081       </generalDesc>
14082       <fixedLine>
14083         <!-- Adding 430 since numbers have been found with these prefixes online. -->
14084         <nationalNumberPattern>
14085           758(?:
14086             4(?:
14087               30|
14088               5[0-9]|
14089               6[2-9]|
14090               8[0-2]
14091             )|
14092             57[0-2]|
14093             638
14094           )\d{4}
14095         </nationalNumberPattern>
14096         <exampleNumber>7584305678</exampleNumber>
14097       </fixedLine>
14098       <mobile>
14099         <nationalNumberPattern>
14100           758(?:
14101             28[4-7]|
14102             384|
14103             4(?:
14104               6[01]|
14105               8[4-9]
14106             )|
14107             5(?:
14108               1[89]|
14109               20|
14110               84
14111             )|
14112             7(?:
14113               1[2-9]|
14114               2[0-8]
14115             )
14116           )\d{4}
14117         </nationalNumberPattern>
14118         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14119         <exampleNumber>7582845678</exampleNumber>
14120       </mobile>
14121       <tollFree>
14122         <nationalNumberPattern>
14123           8(?:
14124             00|
14125             44|
14126             55|
14127             66|
14128             77|
14129             88
14130           )[2-9]\d{6}
14131         </nationalNumberPattern>
14132         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14133         <exampleNumber>8002123456</exampleNumber>
14134       </tollFree>
14135       <premiumRate>
14136         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
14137         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14138         <exampleNumber>9002123456</exampleNumber>
14139       </premiumRate>
14140       <personalNumber>
14141         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
14142         <nationalNumberPattern>
14143           5(?:
14144             00|
14145             33|
14146             44|
14147             66|
14148             77
14149           )[2-9]\d{6}
14150         </nationalNumberPattern>
14151         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14152         <exampleNumber>5002345678</exampleNumber>
14153       </personalNumber>
14154     </territory>
14155
14156     <!-- Liechtenstein -->
14157     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
14158     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
14159       <references>
14160         <sourceUrl>http://www.llv.li/#/11193</sourceUrl>
14161         <sourceUrl>https://www.itu.int/oth/T020200007B/en</sourceUrl>
14162       </references>
14163       <availableFormats>
14164         <!-- Some different patterns for tollfree and shared cost numbers may be found by searching
14165              for "Mehrwertnummer" at http://www.telecom.li. -->
14166         <!-- Number format for National mobile services ,  Fixed line , Toll Free , uan and Premium rate services -->
14167         <numberFormat pattern="(\d{3})(\d{4})">
14168           <leadingDigits>[23789]</leadingDigits>
14169           <format>$1 $2</format>
14170         </numberFormat>
14171         <!-- Number format for International mobile services -->
14172         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14173           <leadingDigits>6[56]</leadingDigits>
14174           <format>$1 $2 $3</format>
14175         </numberFormat>
14176         <!-- Number format for Voicemail services -->
14177         <numberFormat pattern="(69)(7\d{2})(\d{4})">
14178           <leadingDigits>697</leadingDigits>
14179           <format>$1 $2 $3</format>
14180         </numberFormat>
14181       </availableFormats>
14182       <generalDesc>
14183         <nationalNumberPattern>
14184           6\d{8}|
14185           [23789]\d{6}
14186         </nationalNumberPattern>
14187         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14188       </generalDesc>
14189       <fixedLine>
14190         <nationalNumberPattern>
14191           (?:
14192             2(?:
14193               01|
14194               1[27]|
14195               3\d|
14196               6[02-578]|
14197               96
14198             )|
14199             3(?:
14200               7[0135-7]|
14201               8[048]|
14202               9[0269]
14203             )
14204           )\d{4}
14205         </nationalNumberPattern>
14206         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14207         <exampleNumber>2345678</exampleNumber>
14208       </fixedLine>
14209       <mobile>
14210         <nationalNumberPattern>
14211           6(?:
14212             51[01]|
14213             6(?:
14214               0[0-6]|
14215               2[016-9]|
14216               39
14217             )
14218           )\d{5}|
14219           7(?:
14220             [37-9]\d|
14221             42|
14222             56
14223           )\d{4}
14224         </nationalNumberPattern>
14225         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14226         <exampleNumber>660234567</exampleNumber>
14227       </mobile>
14228       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
14229            even though it doesn't appear in the plan. -->
14230       <tollFree>
14231         <nationalNumberPattern>
14232           80(?:
14233             02[28]|
14234             9\d{2}
14235           )\d{2}
14236         </nationalNumberPattern>
14237         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14238         <exampleNumber>8002222</exampleNumber>
14239       </tollFree>
14240       <premiumRate>
14241         <nationalNumberPattern>
14242           90(?:
14243             02[258]|
14244             1(?:
14245               23|
14246               3[14]
14247             )|
14248             66[136]
14249           )\d{2}
14250         </nationalNumberPattern>
14251         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14252         <exampleNumber>9002222</exampleNumber>
14253       </premiumRate>
14254       <uan>
14255         <nationalNumberPattern>
14256           870(?:
14257             28|
14258             87
14259           )\d{2}
14260         </nationalNumberPattern>
14261         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14262         <exampleNumber>8702812</exampleNumber>
14263       </uan>
14264       <voicemail>
14265         <nationalNumberPattern>
14266           697(?:
14267             42|
14268             56|
14269             [7-9]\d
14270           )\d{4}
14271         </nationalNumberPattern>
14272         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14273         <exampleNumber>697861234</exampleNumber>
14274       </voicemail>
14275     </territory>
14276
14277     <!-- Sri Lanka -->
14278     <territory id="LK" countryCode="94" internationalPrefix="00"
14279                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14280       <references>
14281         <sourceUrl>http://en.wikipedia.org/wiki/%2B94</sourceUrl>
14282         <sourceUrl>http://www.itu.int/oth/T02020000C3/en</sourceUrl>
14283       </references>
14284       <availableFormats>
14285         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
14286           <leadingDigits>[1-689]</leadingDigits>
14287           <format>$1 $2 $3</format>
14288         </numberFormat>
14289         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14290           <leadingDigits>7</leadingDigits>
14291           <format>$1 $2 $3</format>
14292         </numberFormat>
14293       </availableFormats>
14294       <generalDesc>
14295         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
14296         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14297       </generalDesc>
14298       <fixedLine>
14299         <nationalNumberPattern>
14300           (?:
14301             [189]1|
14302             2[13-7]|
14303             3[1-8]|
14304             4[157]|
14305             5[12457]|
14306             6[35-7]
14307           )[2-57]\d{6}
14308         </nationalNumberPattern>
14309         <exampleNumber>112345678</exampleNumber>
14310       </fixedLine>
14311       <mobile>
14312         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
14313         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
14314         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14315         <exampleNumber>712345678</exampleNumber>
14316       </mobile>
14317     </territory>
14318
14319     <!-- Liberia -->
14320     <territory id="LR" countryCode="231" internationalPrefix="00"
14321                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14322       <references>
14323         <sourceUrl>http://www.itu.int/oth/T0202000079/en</sourceUrl>
14324       </references>
14325       <availableFormats>
14326         <!-- Formatting from Ministry of Agriculture,
14327         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
14328         <numberFormat pattern="(2\d)(\d{3})(\d{3})">
14329           <leadingDigits>2</leadingDigits>
14330           <format>$1 $2 $3</format>
14331         </numberFormat>
14332         <numberFormat pattern="([79]\d{2})(\d{3})(\d{3})">
14333           <leadingDigits>[79]</leadingDigits>
14334           <format>$1 $2 $3</format>
14335         </numberFormat>
14336         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
14337           <leadingDigits>[4-6]</leadingDigits>
14338           <format>$1 $2 $3</format>
14339         </numberFormat>
14340         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14341           <leadingDigits>[38]</leadingDigits>
14342           <format>$1 $2 $3</format>
14343         </numberFormat>
14344       </availableFormats>
14345       <generalDesc>
14346         <nationalNumberPattern>
14347           2\d{7}|
14348           [37-9]\d{8}|
14349           [45]\d{6}
14350         </nationalNumberPattern>
14351         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14352       </generalDesc>
14353       <fixedLine>
14354         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14355         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14356         <exampleNumber>21234567</exampleNumber>
14357       </fixedLine>
14358       <mobile>
14359         <!-- West Africa Telecom seems to be a mobile company from their website. Adding Atlantic
14360              Wireless from the document, even though from online news reports it is not clear they
14361              are still operating. -->
14362         <nationalNumberPattern>
14363           (?:
14364             330\d|
14365             4[67]|
14366             5\d|
14367             77\d{2}|
14368             88\d{2}|
14369             994\d
14370           )\d{5}
14371         </nationalNumberPattern>
14372         <exampleNumber>770123456</exampleNumber>
14373       </mobile>
14374       <premiumRate>
14375         <!-- Telelinks and Interactive media service are listed under premium rate. -->
14376         <nationalNumberPattern>90[03]\d{6}</nationalNumberPattern>
14377         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14378         <exampleNumber>900123456</exampleNumber>
14379       </premiumRate>
14380       <voip>
14381         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
14382              say they are involved in the VoIP sector. Adding WASSCOM and Atlantic Realty &
14383              Investment Corporation here as well; no numbers can be found online, nor company
14384              information. -->
14385         <nationalNumberPattern>
14386           332(?:
14387             0[02]|
14388             5\d
14389           )\d{4}
14390         </nationalNumberPattern>
14391         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14392         <exampleNumber>332001234</exampleNumber>
14393       </voip>
14394     </territory>
14395
14396     <!-- Lesotho -->
14397     <territory id="LS" countryCode="266" internationalPrefix="00">
14398       <references>
14399         <sourceUrl>http://www.itu.int/oth/T0202000078/en</sourceUrl>
14400       </references>
14401       <availableFormats>
14402         <!-- Formatting following yellow pages: http://www.yellowpages.co.ls -->
14403         <numberFormat pattern="(\d{4})(\d{4})">
14404           <format>$1 $2</format>
14405         </numberFormat>
14406       </availableFormats>
14407       <generalDesc>
14408         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
14409         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14410       </generalDesc>
14411       <fixedLine>
14412         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14413         <exampleNumber>22123456</exampleNumber>
14414       </fixedLine>
14415       <mobile>
14416         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
14417         <exampleNumber>50123456</exampleNumber>
14418       </mobile>
14419       <tollFree>
14420         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
14421         <exampleNumber>80021234</exampleNumber>
14422       </tollFree>
14423     </territory>
14424
14425     <!-- Lithuania -->
14426     <!-- Note that Lithuania is switching to a national prefix of 0. We support
14427          both 0 and 8 when parsing until this switch is complete. -->
14428     <territory id="LT" countryCode="370" internationalPrefix="00"
14429                nationalPrefix="8" nationalPrefixForParsing="[08]"
14430                nationalPrefixFormattingRule="($NP-$FG)"
14431                nationalPrefixOptionalWhenFormatting="true" mobileNumberPortableRegion="true">
14432       <references>
14433         <sourceUrl>http://www.itu.int/oth/T020200007C/en</sourceUrl>
14434       </references>
14435       <!-- National Prefix formatting rule from http://www.yellowpages.lt -->
14436       <availableFormats>
14437         <!-- Two-digit area codes -->
14438         <numberFormat pattern="([34]\d)(\d{6})">
14439           <leadingDigits>
14440             37|
14441             4(?:
14442               1|
14443               5[45]|
14444               6[2-4]
14445             )
14446           </leadingDigits>
14447           <format>$1 $2</format>
14448         </numberFormat>
14449         <!-- Three-digit area codes -->
14450         <numberFormat pattern="([3-6]\d{2})(\d{5})">
14451           <leadingDigits>
14452             3[148]|
14453             4(?:
14454               [24]|
14455               6[09]
14456             )|
14457             528|
14458             6
14459           </leadingDigits>
14460           <format>$1 $2</format>
14461         </numberFormat>
14462         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
14463           nationalPrefixFormattingRule="$NP $FG">
14464           <leadingDigits>[7-9]</leadingDigits>
14465           <format>$1 $2 $3</format>
14466         </numberFormat>
14467         <numberFormat pattern="(5)(2\d{2})(\d{4})">
14468           <leadingDigits>52[0-79]</leadingDigits>
14469           <format>$1 $2 $3</format>
14470         </numberFormat>
14471       </availableFormats>
14472       <generalDesc>
14473         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
14474         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14475       </generalDesc>
14476       <fixedLine>
14477         <nationalNumberPattern>
14478           (?:
14479             3[1478]|
14480             4[124-6]|
14481             52
14482           )\d{6}
14483         </nationalNumberPattern>
14484         <exampleNumber>31234567</exampleNumber>
14485       </fixedLine>
14486       <mobile>
14487         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
14488         <exampleNumber>61234567</exampleNumber>
14489       </mobile>
14490       <tollFree>
14491         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14492         <exampleNumber>80012345</exampleNumber>
14493       </tollFree>
14494       <premiumRate>
14495         <nationalNumberPattern>
14496           9(?:
14497             0[0239]|
14498             10
14499           )\d{5}
14500         </nationalNumberPattern>
14501         <exampleNumber>90012345</exampleNumber>
14502       </premiumRate>
14503       <personalNumber>
14504         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
14505         <exampleNumber>70012345</exampleNumber>
14506       </personalNumber>
14507       <sharedCost>
14508         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14509         <exampleNumber>80812345</exampleNumber>
14510       </sharedCost>
14511       <uan>
14512         <!-- Including government service numbers here too. -->
14513         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
14514         <exampleNumber>70712345</exampleNumber>
14515       </uan>
14516     </territory>
14517
14518     <!-- Luxembourg -->
14519     <territory id="LU" countryCode="352" internationalPrefix="00"
14520                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
14521                carrierCodeFormattingRule="$CC $FG" mobileNumberPortableRegion="true">
14522       <references>
14523         <sourceUrl>http://www.ilr.public.lu/communications_electroniques/numerotation/index.html</sourceUrl>
14524       </references>
14525       <availableFormats>
14526         <!-- Patterns overlap because of variable number length. -->
14527         <numberFormat pattern="(\d{2})(\d{3})">
14528           <leadingDigits>
14529             [2-5]|
14530             7[1-9]|
14531             [89](?:
14532               [1-9]|
14533               0[2-9]
14534             )
14535           </leadingDigits>
14536           <format>$1 $2</format>
14537         </numberFormat>
14538         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
14539           <leadingDigits>
14540             [2-5]|
14541             7[1-9]|
14542             [89](?:
14543               [1-9]|
14544               0[2-9]
14545             )
14546           </leadingDigits>
14547           <format>$1 $2 $3</format>
14548         </numberFormat>
14549         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
14550           <leadingDigits>20</leadingDigits>
14551           <format>$1 $2 $3</format>
14552         </numberFormat>
14553         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
14554              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
14555              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
14556              -->
14557         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
14558           <leadingDigits>
14559             2(?:
14560               [0367]|
14561               4[3-8]
14562             )
14563           </leadingDigits>
14564           <format>$1 $2 $3 $4</format>
14565         </numberFormat>
14566         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
14567           <leadingDigits>20</leadingDigits>
14568           <format>$1 $2 $3 $4</format>
14569         </numberFormat>
14570         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
14571           <leadingDigits>
14572             2(?:
14573               [0367]|
14574               4[3-8]
14575             )
14576           </leadingDigits>
14577           <format>$1 $2 $3 $4 $5</format>
14578         </numberFormat>
14579         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
14580           <leadingDigits>
14581             2(?:
14582               [12589]|
14583               4[12]
14584             )|
14585             [3-5]|
14586             7[1-9]|
14587             8(?:
14588               [1-9]|
14589               0[2-9]
14590             )|
14591             9(?:
14592               [1-9]|
14593               0[2-46-9]
14594             )
14595           </leadingDigits>
14596           <format>$1 $2 $3 $4</format>
14597         </numberFormat>
14598         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
14599           <leadingDigits>
14600             70|
14601             80[01]|
14602             90[015]
14603           </leadingDigits>
14604           <format>$1 $2 $3</format>
14605         </numberFormat>
14606         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14607           <leadingDigits>6</leadingDigits>
14608           <format>$1 $2 $3</format>
14609         </numberFormat>
14610       </availableFormats>
14611       <generalDesc>
14612         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
14613              necessary since the numbers have a variable number length. -->
14614         <nationalNumberPattern>
14615           [24-9]\d{3,10}|
14616           3(?:
14617             [0-46-9]\d{2,9}|
14618             5[013-9]\d{1,8}
14619           )
14620         </nationalNumberPattern>
14621         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
14622       </generalDesc>
14623       <fixedLine>
14624         <!-- Even though 20 is listed in the fixed-line plan, other documentation clarify that it is
14625              for VOIP. Furthermore, even though the plan says that numbers beginning with 2[346-8]
14626              by default are 8 digits, from information found online it seems that they can actually
14627              be 5, 6 or 7 digits long. -->
14628         <nationalNumberPattern>
14629           (?:
14630             2(?:
14631               [259]\d{2,9}|
14632               [346-8]\d{3,6}
14633             )|
14634             (?:
14635               [3457]\d{2}|
14636               8(?:
14637                 0[2-9]|
14638                 [13-9]\d
14639               )|
14640               9(?:
14641                 0[89]|
14642                 [2-579]\d
14643               )
14644             )\d{1,8}
14645           )
14646         </nationalNumberPattern>
14647         <exampleNumber>27123456</exampleNumber>
14648       </fixedLine>
14649       <mobile>
14650         <nationalNumberPattern>6[2679][18]\d{6}</nationalNumberPattern>
14651         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14652         <exampleNumber>628123456</exampleNumber>
14653       </mobile>
14654       <tollFree>
14655         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14656         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14657         <exampleNumber>80012345</exampleNumber>
14658       </tollFree>
14659       <premiumRate>
14660         <nationalNumberPattern>90[015]\d{5}</nationalNumberPattern>
14661         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14662         <exampleNumber>90012345</exampleNumber>
14663       </premiumRate>
14664       <sharedCost>
14665         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
14666         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14667         <exampleNumber>80112345</exampleNumber>
14668       </sharedCost>
14669       <personalNumber>
14670         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
14671         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14672         <exampleNumber>70123456</exampleNumber>
14673       </personalNumber>
14674       <voip>
14675         <!-- The document says the normal length will be 8 digits, but many numbers found online
14676              deviate from that. The prefixes from the following document have been added:
14677              http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
14678              201 has also been added since a diallable number was found online, and it says in
14679              http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
14680              numbers will be issued that begin with 200, numbers beginning with 201 will be issued
14681              one at a time, and 202-209 in blocks. -->
14682         <nationalNumberPattern>
14683           20(?:
14684             1\d{5}|
14685             [2-689]\d{1,7}
14686           )
14687         </nationalNumberPattern>
14688         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
14689         <exampleNumber>20201234</exampleNumber>
14690       </voip>
14691     </territory>
14692
14693     <!-- Latvia -->
14694     <territory id="LV" countryCode="371" internationalPrefix="00" mobileNumberPortableRegion="true">
14695       <references>
14696         <sourceUrl>http://www.itu.int/oth/T0202000076/en</sourceUrl>
14697         <sourceUrl>http://en.wikipedia.org/wiki/+371</sourceUrl>
14698       </references>
14699       <availableFormats>
14700         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
14701           <format>$1 $2 $3</format>
14702         </numberFormat>
14703       </availableFormats>
14704       <generalDesc>
14705         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
14706         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14707       </generalDesc>
14708       <fixedLine>
14709         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
14710         <exampleNumber>63123456</exampleNumber>
14711       </fixedLine>
14712       <mobile>
14713         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14714         <exampleNumber>21234567</exampleNumber>
14715       </mobile>
14716       <tollFree>
14717         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
14718         <exampleNumber>80123456</exampleNumber>
14719       </tollFree>
14720       <premiumRate>
14721         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14722         <exampleNumber>90123456</exampleNumber>
14723       </premiumRate>
14724       <sharedCost>
14725         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
14726         <exampleNumber>81123456</exampleNumber>
14727       </sharedCost>
14728     </territory>
14729
14730     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
14731     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
14732          and itu.int. The new area codes are on the Arabic website of the main telecommunication
14733          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
14734          using 096 (they are allowing customers to register numbers currently), so their code has
14735          also been added. -->
14736     <territory id="LY" countryCode="218" internationalPrefix="00"
14737                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14738       <references>
14739         <sourceUrl>http://hlc.ly/price.php</sourceUrl>
14740       </references>
14741       <availableFormats>
14742         <numberFormat pattern="([25679]\d)(\d{7})">
14743           <format>$1-$2</format>
14744         </numberFormat>
14745       </availableFormats>
14746       <generalDesc>
14747         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
14748         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14749       </generalDesc>
14750       <fixedLine>
14751         <nationalNumberPattern>
14752           (?:
14753             2[1345]|
14754             5[1347]|
14755             6[123479]|
14756             71
14757           )\d{7}
14758         </nationalNumberPattern>
14759         <exampleNumber>212345678</exampleNumber>
14760       </fixedLine>
14761       <mobile>
14762         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
14763              where SMS messages have been apparently successfully received. -->
14764         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
14765         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14766         <exampleNumber>912345678</exampleNumber>
14767       </mobile>
14768     </territory>
14769
14770     <!-- Morocco -->
14771     <!-- Shares formatting and some metadata with Western Sahara. -->
14772     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
14773                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
14774                mobileNumberPortableRegion="true">
14775       <references>
14776         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
14777         <sourceUrl>http://en.wikipedia.org/wiki/+212</sourceUrl>
14778       </references>
14779       <availableFormats>
14780         <numberFormat pattern="([56]\d{2})(\d{6})">
14781           <leadingDigits>
14782             5(?:
14783               2[015-7]|
14784               3[0-4]
14785             )|
14786             6
14787           </leadingDigits>
14788           <format>$1-$2</format>
14789         </numberFormat>
14790         <numberFormat pattern="([58]\d{3})(\d{5})">
14791           <leadingDigits>
14792             5(?:
14793               2[2-489]|
14794               3[5-9]
14795             )|
14796             892
14797           </leadingDigits>
14798           <leadingDigits>
14799             5(?:
14800               2(?:
14801                 [2-48]|
14802                 90
14803               )|
14804               3(?:
14805                 [5-79]|
14806                 80
14807               )
14808             )|
14809             892
14810           </leadingDigits>
14811           <format>$1-$2</format>
14812         </numberFormat>
14813         <numberFormat pattern="(5\d{4})(\d{4})">
14814           <leadingDigits>
14815             5(?:
14816               29|
14817               38
14818             )
14819           </leadingDigits>
14820           <leadingDigits>
14821             5(?:
14822               29|
14823               38
14824             )[89]
14825           </leadingDigits>
14826           <format>$1-$2</format>
14827         </numberFormat>
14828         <numberFormat pattern="(8[09])(\d{7})">
14829           <leadingDigits>
14830             8(?:
14831               0|
14832               9[013-9]
14833             )
14834           </leadingDigits>
14835           <format>$1-$2</format>
14836         </numberFormat>
14837       </availableFormats>
14838       <generalDesc>
14839         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
14840         <!-- Closed numbering plan. -->
14841         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14842       </generalDesc>
14843       <fixedLine>
14844         <nationalNumberPattern>
14845           5(?:
14846             2(?:
14847               (?:
14848                 [015-7]\d|
14849                 2[2-9]|
14850                 3[2-57]|
14851                 4[2-8]|
14852                 8[235-7]
14853               )\d|
14854               9(?:
14855                 0\d|
14856                 [89]0
14857               )
14858             )|
14859             3(?:
14860               (?:
14861                 [0-4]\d|
14862                 [57][2-9]|
14863                 6[235-8]|
14864                 9[3-9]
14865               )\d|
14866               8(?:
14867                 0\d|
14868                 [89]0
14869               )
14870             )
14871           )\d{4}
14872         </nationalNumberPattern>
14873         <exampleNumber>520123456</exampleNumber>
14874       </fixedLine>
14875       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
14876       <mobile>
14877         <!-- http://www.anrt.ma/sites/default/files/Blocs_de_numeros_par_operateur.pdf
14878              Prefixes 69[0136] added based on numbers found online. -->
14879         <nationalNumberPattern>
14880           6(?:
14881             0[0-8]|
14882             [12-79]\d|
14883             8[01]
14884           )\d{6}
14885         </nationalNumberPattern>
14886         <exampleNumber>650123456</exampleNumber>
14887       </mobile>
14888       <tollFree>
14889         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
14890         <exampleNumber>801234567</exampleNumber>
14891       </tollFree>
14892       <premiumRate>
14893         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
14894         <exampleNumber>891234567</exampleNumber>
14895       </premiumRate>
14896     </territory>
14897
14898     <!-- Monaco -->
14899     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
14900          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
14901          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
14902     <territory id="MC" countryCode="377" internationalPrefix="00"
14903                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14904       <references>
14905         <sourceUrl>http://www.itu.int/oth/T020200008D/en</sourceUrl>
14906       </references>
14907       <availableFormats>
14908         <!-- Following formatting found online rather than in the ITU document example. -->
14909         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
14910           <leadingDigits>9</leadingDigits>
14911           <format>$1 $2 $3 $4</format>
14912         </numberFormat>
14913         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14914           <leadingDigits>4</leadingDigits>
14915           <format>$1 $2 $3</format>
14916         </numberFormat>
14917         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
14918           <leadingDigits>6</leadingDigits>
14919           <format>$1 $2 $3 $4 $5</format>
14920         </numberFormat>
14921         <numberFormat pattern="(\d{3})(\d{3})(\d{2})" nationalPrefixFormattingRule="$FG">
14922           <leadingDigits>8</leadingDigits>
14923           <format>$1 $2 $3</format>
14924         </numberFormat>
14925       </availableFormats>
14926       <generalDesc>
14927         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
14928         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
14929       </generalDesc>
14930       <noInternationalDialling>
14931         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
14932         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14933       </noInternationalDialling>
14934       <fixedLine>
14935         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
14936         <nationalNumberPattern>
14937           870\d{5}|
14938           9[2-47-9]\d{6}
14939         </nationalNumberPattern>
14940         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14941         <exampleNumber>99123456</exampleNumber>
14942       </fixedLine>
14943       <mobile>
14944         <!-- 4X mobile numbers are actually used by Kosovo. -->
14945         <nationalNumberPattern>
14946           6\d{8}|
14947           4(?:
14948             4\d|
14949             5[2-9]
14950           )\d{5}
14951         </nationalNumberPattern>
14952         <exampleNumber>612345678</exampleNumber>
14953       </mobile>
14954       <tollFree>
14955         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14956         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14957         <exampleNumber>90123456</exampleNumber>
14958       </tollFree>
14959     </territory>
14960
14961     <!-- Moldova, Rep. of -->
14962     <territory id="MD" countryCode="373" internationalPrefix="00"
14963                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
14964                mobileNumberPortableRegion="true">
14965       <references>
14966         <sourceUrl>http://www.itu.int/oth/T020200008C/en</sourceUrl>
14967         <!-- Announcements -->
14968         <sourceUrl>http://anrceti.md/fileupload/58</sourceUrl>
14969         <!-- Mobile ranges -->
14970         <sourceUrl>http://en.anrceti.md/resurse_numerotare_tel_mobila</sourceUrl>
14971       </references>
14972       <availableFormats>
14973         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14974           <leadingDigits>
14975             22|
14976             3
14977           </leadingDigits>
14978           <format>$1 $2 $3</format>
14979         </numberFormat>
14980         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
14981           <leadingDigits>
14982             2[13-79]|
14983             [5-7]
14984           </leadingDigits>
14985           <format>$1 $2 $3</format>
14986         </numberFormat>
14987         <numberFormat pattern="([89]\d{2})(\d{5})">
14988           <leadingDigits>[89]</leadingDigits>
14989           <format>$1 $2</format>
14990         </numberFormat>
14991       </availableFormats>
14992       <generalDesc>
14993         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
14994         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14995       </generalDesc>
14996       <fixedLine>
14997         <nationalNumberPattern>
14998           (?:
14999             2(?:
15000               1[0569]|
15001               2\d|
15002               3[015-7]|
15003               4[1-46-9]|
15004               5[0-24689]|
15005               6[2-589]|
15006               7[1-37]|
15007               9[1347-9]
15008             )|
15009             5(?:
15010               33|
15011               5[257]
15012             )
15013           )\d{5}
15014         </nationalNumberPattern>
15015         <exampleNumber>22212345</exampleNumber>
15016       </fixedLine>
15017       <mobile>
15018         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
15019         <nationalNumberPattern>
15020           (?:
15021             562\d|
15022             6(?:
15023               [089]\d{2}|
15024               1[01]\d|
15025               21\d|
15026               50\d|
15027               7(?:
15028                 [1-6]\d|
15029                 7[0-4]
15030               )
15031             )|
15032             7(?:
15033               6[07]|
15034               7[457-9]|
15035               [89]\d
15036             )\d
15037           )\d{4}
15038         </nationalNumberPattern>
15039         <exampleNumber>65012345</exampleNumber>
15040       </mobile>
15041       <tollFree>
15042         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15043         <exampleNumber>80012345</exampleNumber>
15044       </tollFree>
15045       <premiumRate>
15046         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
15047         <exampleNumber>90012345</exampleNumber>
15048       </premiumRate>
15049       <!-- Information came from en.anrceti.md/node/81 -->
15050       <sharedCost>
15051         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
15052         <exampleNumber>80812345</exampleNumber>
15053       </sharedCost>
15054       <uan>
15055         <!-- Includes numbers used for access to different transport directory services of general
15056              interest, since these are charged at the same rate as fixed-line numbers. -->
15057         <nationalNumberPattern>
15058           8(?:
15059             03|
15060             14
15061           )\d{5}
15062         </nationalNumberPattern>
15063         <exampleNumber>80312345</exampleNumber>
15064       </uan>
15065       <voip>
15066         <!-- Used for "nomadic numbers". -->
15067         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
15068         <exampleNumber>30123456</exampleNumber>
15069       </voip>
15070     </territory>
15071
15072     <!-- Montenegro -->
15073     <!-- According to EKIP, the detailed phone number assignments are published on their
15074          website (regulation:
15075          http://www.ekip.me/download/Law%20on%20Electronic%20Communications%20(updated)%204.9.2013%20(1)nova%20verzija.pdf
15076          ). Thus ITU updates always need to be combined with the information at the below ekip.me source URL. -->
15077     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
15078                nationalPrefixFormattingRule="$NP$FG">
15079       <references>
15080         <sourceUrl>http://www.itu.int/oth/T02020000DA/en</sourceUrl>
15081         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro</sourceUrl>
15082         <sourceUrl>http://www.ekip.me/numeracija/dodijeljena.php</sourceUrl>
15083       </references>
15084       <availableFormats>
15085          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15086           <leadingDigits>[2-57-9]|6[036-9]</leadingDigits>
15087           <leadingDigits>
15088             [2-57-9]|
15089             6(?:
15090               [03689]|
15091               7(?:
15092                 [0-8]|
15093                 9[3-9]
15094               )
15095             )
15096           </leadingDigits>
15097           <format>$1 $2 $3</format>
15098         </numberFormat>
15099         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
15100           <leadingDigits>679</leadingDigits>
15101           <leadingDigits>679[0-2]</leadingDigits>
15102           <format>$1 $2 $3 $4</format>
15103         </numberFormat>
15104       </availableFormats>
15105       <generalDesc>
15106         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
15107         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
15108       </generalDesc>
15109       <fixedLine>
15110         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
15111              The valid options for the third digit were from
15112              http://www.ekip.me/numeracija/dodijeljena.php -->
15113         <nationalNumberPattern>
15114           (?:
15115             20[2-8]|
15116             3(?:
15117               0[2-7]|
15118               [12][35-7]|
15119               3[4-7]
15120             )|
15121             4(?:
15122               0[2367]|
15123               1[267]
15124             )|
15125             5(?:
15126               0[467]|
15127               1[267]|
15128               2[367]
15129             )
15130           )\d{5}
15131         </nationalNumberPattern>
15132         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15133         <exampleNumber>30234567</exampleNumber>
15134       </fixedLine>
15135       <mobile>
15136         <!-- Mobile numbers start with 600, 632, 661, 67, 68 or 69. -->
15137         <nationalNumberPattern>
15138           6(?:
15139             00\d|
15140             32\d|
15141             [89]\d{2}|
15142             61\d|
15143             7(?:
15144               [0-8]\d|
15145               9(?:
15146                 [3-9]|
15147                 [0-2]\d
15148               )
15149             )
15150           )\d{4}
15151         </nationalNumberPattern>
15152         <!-- According to ITU it is possible for the numbers to be between length 4-12
15153              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
15154              digits long, based on the Montenegro document. -->
15155         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15156         <exampleNumber>67622901</exampleNumber>
15157       </mobile>
15158       <tollFree>
15159         <!-- All toll free numbers have prefix 80. -->
15160         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
15161         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15162         <exampleNumber>80080002</exampleNumber>
15163       </tollFree>
15164       <premiumRate>
15165         <!-- Numbers with prefix 94 or 95 are services with additional charges. -->
15166         <nationalNumberPattern>
15167           (?:
15168             9(?:
15169               4[1568]|
15170               5[178]
15171             )
15172           )\d{5}
15173         </nationalNumberPattern>
15174         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15175         <exampleNumber>94515151</exampleNumber>
15176       </premiumRate>
15177       <voip>
15178         <!-- VOIP are prefixed with 78. -->
15179         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
15180         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15181         <exampleNumber>78108780</exampleNumber>
15182       </voip>
15183       <uan>
15184         <!-- Corporate Telephony are prefixed with 77. -->
15185         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
15186         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15187         <exampleNumber>77273012</exampleNumber>
15188       </uan>
15189     </territory>
15190
15191     <!-- Saint-Martin, French Antilles -->
15192     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
15193       <references>
15194         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
15195         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
15196         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
15197       </references>
15198       <!-- Formatting rules borrowed from Guadeloupe. -->
15199       <generalDesc>
15200         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15201         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15202       </generalDesc>
15203       <fixedLine>
15204         <nationalNumberPattern>
15205           590(?:
15206             [02][79]|
15207             13|
15208             5[0-268]|
15209             [78]7
15210           )\d{4}
15211         </nationalNumberPattern>
15212         <exampleNumber>590271234</exampleNumber>
15213       </fixedLine>
15214       <mobile>
15215         <!-- Any ranges assigned from
15216              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
15217              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
15218              them. -->
15219         <nationalNumberPattern>
15220           690(?:
15221             0[0-7]|
15222             [1-9]\d
15223           )\d{4}
15224         </nationalNumberPattern>
15225         <exampleNumber>690301234</exampleNumber>
15226       </mobile>
15227     </territory>
15228
15229     <!-- Madagascar -->
15230     <territory id="MG" countryCode="261" internationalPrefix="00"
15231                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15232       <references>
15233         <sourceUrl>http://www.itu.int/oth/T020200007F/en</sourceUrl>
15234       </references>
15235       <availableFormats>
15236         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
15237           <format>$1 $2 $3 $4</format>
15238         </numberFormat>
15239       </availableFormats>
15240       <generalDesc>
15241         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
15242         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15243       </generalDesc>
15244       <fixedLine>
15245         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
15246              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
15247              codes beginning with 4. -->
15248         <nationalNumberPattern>
15249           20(?:
15250             2\d{2}|
15251             4[47]\d|
15252             5[3467]\d|
15253             6[279]\d|
15254             7(?:
15255               2[29]|
15256               [35]\d
15257             )|
15258             8[268]\d|
15259             9[245]\d
15260           )\d{4}
15261         </nationalNumberPattern>
15262         <exampleNumber>202123456</exampleNumber>
15263       </fixedLine>
15264       <mobile>
15265         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
15266              out by reality. -->
15267         <nationalNumberPattern>3[2-49]\d{7}</nationalNumberPattern>
15268         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15269         <exampleNumber>321234567</exampleNumber>
15270       </mobile>
15271       <!-- Putting VSAT numbers here. -->
15272       <voip>
15273         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
15274         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15275         <exampleNumber>221234567</exampleNumber>
15276       </voip>
15277     </territory>
15278
15279     <!-- Marshall Islands -->
15280     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
15281       <references>
15282         <sourceUrl>http://www.itu.int/oth/T0202000085/en</sourceUrl>
15283       </references>
15284       <availableFormats>
15285         <numberFormat pattern="(\d{3})(\d{4})">
15286           <format>$1-$2</format>
15287         </numberFormat>
15288       </availableFormats>
15289       <generalDesc>
15290         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
15291         <possibleNumberPattern>\d{7}</possibleNumberPattern>
15292       </generalDesc>
15293       <fixedLine>
15294         <nationalNumberPattern>
15295           (?:
15296             247|
15297             528|
15298             625
15299           )\d{4}
15300         </nationalNumberPattern>
15301         <exampleNumber>2471234</exampleNumber>
15302       </fixedLine>
15303       <mobile>
15304         <nationalNumberPattern>
15305           (?:
15306             235|
15307             329|
15308             45[56]|
15309             545
15310           )\d{4}
15311         </nationalNumberPattern>
15312         <exampleNumber>2351234</exampleNumber>
15313       </mobile>
15314       <voip>
15315         <!-- VSAT prefixes are here. -->
15316         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
15317         <exampleNumber>6351234</exampleNumber>
15318       </voip>
15319     </territory>
15320
15321     <!-- Macedonia, Former Yugoslav Rep. of -->
15322     <territory id="MK" countryCode="389" internationalPrefix="00"
15323                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
15324                mobileNumberPortableRegion="true">
15325       <references>
15326         <sourceUrl>http://www.itu.int/oth/T02020000CE/en</sourceUrl>
15327       </references>
15328       <availableFormats>
15329         <!-- Formats follow wikipedia. -->
15330         <numberFormat pattern="(2)(\d{3})(\d{4})">
15331           <leadingDigits>2</leadingDigits>
15332           <format>$1 $2 $3</format>
15333         </numberFormat>
15334         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
15335           <leadingDigits>[347]</leadingDigits>
15336           <format>$1 $2 $3</format>
15337         </numberFormat>
15338         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
15339           <leadingDigits>[58]</leadingDigits>
15340           <format>$1 $2 $3 $4</format>
15341         </numberFormat>
15342       </availableFormats>
15343       <generalDesc>
15344         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
15345         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15346       </generalDesc>
15347       <fixedLine>
15348         <nationalNumberPattern>
15349           (?:
15350             2(?:
15351               [23]\d|
15352               5[124578]|
15353               6[01]
15354             )|
15355             3(?:
15356               1[3-6]|
15357               [23][2-6]|
15358               4[2356]
15359             )|
15360             4(?:
15361               [23][2-6]|
15362               4[3-6]|
15363               5[256]|
15364               6[25-8]|
15365               7[24-6]|
15366               8[4-6]
15367             )
15368           )\d{5}
15369         </nationalNumberPattern>
15370         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15371         <exampleNumber>22212345</exampleNumber>
15372       </fixedLine>
15373       <mobile>
15374         <nationalNumberPattern>
15375           7(?:
15376             [0-25-8]\d{2}|
15377             32\d|
15378             421
15379           )\d{4}
15380         </nationalNumberPattern>
15381         <exampleNumber>72345678</exampleNumber>
15382       </mobile>
15383       <tollFree>
15384         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15385         <exampleNumber>80012345</exampleNumber>
15386       </tollFree>
15387       <premiumRate>
15388         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
15389         <exampleNumber>50012345</exampleNumber>
15390       </premiumRate>
15391       <sharedCost>
15392         <nationalNumberPattern>
15393           8(?:
15394             0[1-9]|
15395             [1-9]\d
15396           )\d{5}
15397         </nationalNumberPattern>
15398         <exampleNumber>80123456</exampleNumber>
15399       </sharedCost>
15400     </territory>
15401
15402     <!-- Mali -->
15403     <territory id="ML" countryCode="223" internationalPrefix="00">
15404       <references>
15405         <sourceUrl>http://www.itu.int/oth/T0202000083/en</sourceUrl>
15406         <sourceUrl>http://crt-mali.org/pdf/plan_num</sourceUrl>
15407       </references>
15408       <availableFormats>
15409         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
15410           <leadingDigits>[246-9]</leadingDigits>
15411           <format>$1 $2 $3 $4</format>
15412         </numberFormat>
15413         <!-- Formatting some short numbers as a block. -->
15414         <numberFormat pattern="(\d{4})">
15415           <leadingDigits>
15416             67|
15417             74
15418           </leadingDigits>
15419           <intlFormat>NA</intlFormat>
15420           <format>$1</format>
15421         </numberFormat>
15422       </availableFormats>
15423       <generalDesc>
15424         <nationalNumberPattern>[246-9]\d{7}</nationalNumberPattern>
15425         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15426       </generalDesc>
15427       <fixedLine>
15428         <!-- Patterns from ITU with extra ranges 20 25, 20 7[13-9] and 217 provided by Sotelma and
15429              confirmed by searches online. -->
15430         <nationalNumberPattern>
15431           (?:
15432             2(?:
15433               0(?:
15434                 2[0-589]|
15435                 7\d
15436               )|
15437               1(?:
15438                 2[5-7]|
15439                 [3-689]\d|
15440                 7[2-4689]
15441               )
15442             )|
15443             44[239]\d
15444           )\d{4}
15445         </nationalNumberPattern>
15446         <exampleNumber>20212345</exampleNumber>
15447       </fixedLine>
15448       <mobile>
15449         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
15450              document (which is very stale). All mobile numbers starting with 7 are now Orange.
15451              Includes 6x from Malitel IR21. Numbers beginning with 9 have been found online and
15452              reported by open-source users, although the exact possible second digits are uncertain.
15453              -->
15454         <nationalNumberPattern>
15455           [67]\d{7}|
15456           9[0-25-9]\d{6}
15457         </nationalNumberPattern>
15458         <exampleNumber>65012345</exampleNumber>
15459       </mobile>
15460       <tollFree>
15461         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
15462              plan. -->
15463         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15464         <exampleNumber>80012345</exampleNumber>
15465       </tollFree>
15466    </territory>
15467
15468     <!-- Myanmar -->
15469     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
15470                nationalPrefixFormattingRule="$NP$FG">
15471       <references>
15472         <sourceUrl>http://www.itu.int/oth/T0202000092/en</sourceUrl>
15473       </references>
15474       <availableFormats>
15475         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
15476           <leadingDigits>
15477             1|
15478             2[45]
15479           </leadingDigits>
15480           <format>$1 $2 $3</format>
15481         </numberFormat>
15482         <numberFormat pattern="(2)(\d{4})(\d{4})">
15483           <leadingDigits>251</leadingDigits>
15484           <format>$1 $2 $3</format>
15485         </numberFormat>
15486         <numberFormat pattern="(\d)(\d{2})(\d{3})">
15487           <leadingDigits>
15488             16|
15489             2
15490           </leadingDigits>
15491           <format>$1 $2 $3</format>
15492         </numberFormat>
15493         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
15494           <leadingDigits>
15495             67|
15496             81
15497           </leadingDigits>
15498           <format>$1 $2 $3</format>
15499         </numberFormat>
15500         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
15501           <leadingDigits>[4-8]</leadingDigits>
15502           <format>$1 $2 $3</format>
15503         </numberFormat>
15504         <numberFormat pattern="(9)(\d{3})(\d{4,6})">
15505           <leadingDigits>
15506             9(?:
15507               2[0-4]|
15508               [35-9]|
15509               4[13789]
15510             )
15511           </leadingDigits>
15512           <format>$1 $2 $3</format>
15513         </numberFormat>
15514         <numberFormat pattern="(9)(4\d{4})(\d{4})">
15515           <leadingDigits>94[0245]</leadingDigits>
15516           <format>$1 $2 $3</format>
15517         </numberFormat>
15518         <!-- Following majority of numbers found online. -->
15519         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{3})">
15520           <leadingDigits>925</leadingDigits>
15521           <format>$1 $2 $3 $4</format>
15522         </numberFormat>
15523       </availableFormats>
15524       <generalDesc>
15525         <nationalNumberPattern>
15526           [14578]\d{5,7}|
15527           [26]\d{5,8}|
15528           9(?:
15529             2\d{0,2}|
15530             [58]|
15531             3\d|
15532             4\d{1,2}|
15533             6\d?|
15534             [79]\d{0,2}
15535           )\d{6}
15536         </nationalNumberPattern>
15537         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
15538       </generalDesc>
15539       <fixedLine>
15540         <nationalNumberPattern>
15541           1(?:
15542             2\d{1,2}|
15543             [3-5]\d|
15544             6\d?|
15545             [89][0-6]\d
15546           )\d{4}|
15547           2(?:
15548             [236-9]\d{4}|
15549             4(?:
15550               0\d{5}|
15551               \d{4}
15552             )|
15553             5(?:
15554               1\d{3,6}|
15555               [02-9]\d{3,5}
15556             )
15557           )|
15558           4(?:
15559             2[245-8]|
15560             [346][2-6]|
15561             5[3-5]
15562           )\d{4}|
15563           5(?:
15564             2(?:
15565               20?|
15566               [3-8]
15567             )|
15568             3[2-68]|
15569             4(?:
15570               21?|
15571               [4-8]
15572             )|
15573             5[23]|
15574             6[2-4]|
15575             7[2-8]|
15576             8[24-7]|
15577             9[2-7]
15578           )\d{4}|
15579           6(?:
15580             0[23]|
15581             1[2356]|
15582             [24][2-6]|
15583             3[24-6]|
15584             5[2-4]|
15585             6[2-8]|
15586             7(?:
15587               [2367]|
15588               4\d|
15589               5\d?|
15590               8[145]\d
15591             )|
15592             8[245]|
15593             9[24]
15594           )\d{4}|
15595           7(?:
15596             [04][24-8]|
15597             [15][2-7]|
15598             22|
15599             3[2-4]
15600           )\d{4}|
15601           8(?:
15602             1(?:
15603               2\d?|
15604               [3-689]
15605             )|
15606             2[2-8]|
15607             3[24]|
15608             4[24-7]|
15609             5[245]|
15610             6[23]
15611           )\d{4}
15612         </nationalNumberPattern>
15613         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
15614         <exampleNumber>1234567</exampleNumber>
15615       </fixedLine>
15616       <mobile>
15617         <!-- Added 99[089] (8 digits), 961 (9 digits), and 979 & 997 (10 digits) from bug
15618              reports/numbers found online. -->
15619         <nationalNumberPattern>
15620           17[01]\d{4}|
15621           9(?:
15622             2(?:
15623               [0-4]|
15624               5\d{2}
15625             )|
15626             3[136]\d|
15627             4(?:
15628               0[0-4]\d|
15629               [1379]\d|
15630               [24][0-589]\d|
15631               5\d{2}|
15632               88
15633             )|
15634             5[0-6]|
15635             61?\d|
15636             7(?:
15637               3\d|
15638               9\d{2}
15639             )|
15640             8\d|
15641             9(?:
15642               1\d|
15643               7\d{2}|
15644               [089]
15645             )
15646           )\d{5}
15647         </nationalNumberPattern>
15648         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
15649         <exampleNumber>92123456</exampleNumber>
15650       </mobile>
15651       <voip>
15652         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
15653         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15654         <exampleNumber>13331234</exampleNumber>
15655       </voip>
15656       <!-- No information on other types of phone numbers for Myanmar has been found. -->
15657     </territory>
15658
15659     <!-- Mongolia -->
15660     <territory id="MN" countryCode="976" internationalPrefix="001"
15661                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15662       <references>
15663         <sourceUrl>http://www.itu.int/oth/T020200008E/en</sourceUrl>
15664       </references>
15665       <availableFormats>
15666         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
15667           <leadingDigits>[12]1</leadingDigits>
15668           <format>$1 $2 $3</format>
15669         </numberFormat>
15670         <numberFormat pattern="([12]2\d)(\d{5,6})">
15671           <leadingDigits>[12]2[1-3]</leadingDigits>
15672           <format>$1 $2</format>
15673         </numberFormat>
15674         <numberFormat pattern="([12]\d{3})(\d{5})">
15675           <leadingDigits>
15676             [12](?:
15677               27|
15678               [3-5]
15679             )
15680           </leadingDigits>
15681           <leadingDigits>
15682             [12](?:
15683               27|
15684               [3-5]\d
15685             )2
15686           </leadingDigits>
15687           <format>$1 $2</format>
15688         </numberFormat>
15689         <!-- It seems from online formatting that the national prefix is not written (or perhaps
15690              needed?) for numbers in these ranges. -->
15691         <numberFormat pattern="(\d{4})(\d{4})"
15692           nationalPrefixFormattingRule="$FG">
15693           <leadingDigits>[57-9]</leadingDigits>
15694           <format>$1 $2</format>
15695         </numberFormat>
15696         <numberFormat pattern="([12]\d{4})(\d{4,5})">
15697           <leadingDigits>
15698             [12](?:
15699               27|
15700               [3-5]
15701             )
15702           </leadingDigits>
15703           <leadingDigits>
15704             [12](?:
15705               27|
15706               [3-5]\d
15707             )[4-9]
15708           </leadingDigits>
15709           <format>$1 $2</format>
15710         </numberFormat>
15711       </availableFormats>
15712       <generalDesc>
15713         <nationalNumberPattern>
15714           [12]\d{7,9}|
15715           [57-9]\d{7}
15716         </nationalNumberPattern>
15717         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
15718       </generalDesc>
15719       <fixedLine>
15720         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
15721              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
15722              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
15723              as well, even though we are not certain whether they are in fact fixed or mobile in
15724              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
15725              online numbers being found. -->
15726         <nationalNumberPattern>
15727           [12](?:
15728             1\d|
15729             2(?:
15730               [1-3]\d?|
15731               7\d
15732             )|
15733             3[2-8]\d{1,2}|
15734             4[2-68]\d{1,2}|
15735             5[1-4689]\d{1,2}
15736           )\d{5}|
15737           5[0568]\d{6}
15738         </nationalNumberPattern>
15739         <exampleNumber>50123456</exampleNumber>
15740       </fixedLine>
15741       <mobile>
15742         <nationalNumberPattern>
15743           (?:
15744             8[689]|
15745             9[013-9]
15746           )\d{6}
15747         </nationalNumberPattern>
15748         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15749         <exampleNumber>88123456</exampleNumber>
15750       </mobile>
15751       <!-- No tollFree or premiumRate information can be found. -->
15752       <voip>
15753         <!-- According to the document this could be stricter, but there are counter examples
15754              online. -->
15755         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
15756         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15757         <exampleNumber>75123456</exampleNumber>
15758       </voip>
15759     </territory>
15760
15761     <!-- Macao, China -->
15762     <territory id="MO" countryCode="853" internationalPrefix="00">
15763       <references>
15764         <sourceUrl>http://www.itu.int/oth/T020200007E/en</sourceUrl>
15765       </references>
15766       <availableFormats>
15767         <numberFormat pattern="([268]\d{3})(\d{4})">
15768           <format>$1 $2</format>
15769         </numberFormat>
15770       </availableFormats>
15771       <generalDesc>
15772         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
15773         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15774       </generalDesc>
15775       <fixedLine>
15776         <nationalNumberPattern>
15777           (?:
15778             28[2-57-9]|
15779             8[2-57-9]\d
15780           )\d{5}
15781         </nationalNumberPattern>
15782         <exampleNumber>28212345</exampleNumber>
15783       </fixedLine>
15784       <mobile>
15785         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
15786              numbers, and they are also widely present on the Internet. -->
15787         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
15788         <exampleNumber>66123456</exampleNumber>
15789       </mobile>
15790       <!-- No tollFree or premiumRate information can be found. -->
15791     </territory>
15792
15793     <!-- Northern Mariana Islands -->
15794     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
15795                internationalPrefix="011">
15796       <references>
15797         <sourceUrl>http://www.itu.int/oth/T02020000EE/en</sourceUrl>
15798         <sourceUrl>http://www.cnmiphonebook.com/</sourceUrl>
15799       </references>
15800       <generalDesc>
15801         <!-- NANPA country - uses US formatting rules -->
15802         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15803         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15804       </generalDesc>
15805       <fixedLine>
15806         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
15807              were seen in the white and yellow pages, but no numbers with these exchange codes have
15808              proved to be diallable so we exclude them for now.. -->
15809         <nationalNumberPattern>
15810           670(?:
15811             2(?:
15812               3[3-7]|
15813               56|
15814               8[5-8]
15815             )|
15816             32[1238]|
15817             4(?:
15818               33|
15819               8[348]
15820             )|
15821             5(?:
15822               32|
15823               55|
15824               88
15825             )|
15826             6(?:
15827               64|
15828               70|
15829               82
15830             )|
15831             78[589]|
15832             8[3-9]8|
15833             989
15834           )\d{4}
15835         </nationalNumberPattern>
15836         <exampleNumber>6702345678</exampleNumber>
15837       </fixedLine>
15838       <mobile>
15839         <nationalNumberPattern>
15840           670(?:
15841             2(?:
15842               3[3-7]|
15843               56|
15844               8[5-8]
15845             )|
15846             32[1238]|
15847             4(?:
15848               33|
15849               8[348]
15850             )|
15851             5(?:
15852               32|
15853               55|
15854               88
15855             )|
15856             6(?:
15857               64|
15858               70|
15859               82
15860             )|
15861             78[589]|
15862             8[3-9]8|
15863             989
15864           )\d{4}
15865         </nationalNumberPattern>
15866         <exampleNumber>6702345678</exampleNumber>
15867       </mobile>
15868       <tollFree>
15869         <nationalNumberPattern>
15870           8(?:
15871             00|
15872             44|
15873             55|
15874             66|
15875             77|
15876             88
15877           )[2-9]\d{6}
15878         </nationalNumberPattern>
15879         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15880         <exampleNumber>8002123456</exampleNumber>
15881       </tollFree>
15882       <premiumRate>
15883         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15884         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15885         <exampleNumber>9002123456</exampleNumber>
15886       </premiumRate>
15887       <personalNumber>
15888         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15889         <nationalNumberPattern>
15890           5(?:
15891             00|
15892             33|
15893             44|
15894             66|
15895             77
15896           )[2-9]\d{6}
15897         </nationalNumberPattern>
15898         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15899         <exampleNumber>5002345678</exampleNumber>
15900       </personalNumber>
15901     </territory>
15902
15903     <!-- Martinique (French Dept. of) -->
15904     <territory id="MQ" countryCode="596" internationalPrefix="00"
15905                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15906       <references>
15907         <sourceUrl>http://www.itu.int/oth/T0202000086/en</sourceUrl>
15908         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0596&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
15909       </references>
15910       <availableFormats>
15911         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
15912           <format>$1 $2 $3 $4</format>
15913         </numberFormat>
15914       </availableFormats>
15915       <generalDesc>
15916         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15917         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15918       </generalDesc>
15919       <fixedLine>
15920         <nationalNumberPattern>
15921           596(?:
15922             0[2-5]|
15923             [12]0|
15924             3[05-9]|
15925             4[024-8]|
15926             [5-7]\d|
15927             89|
15928             9[4-8]
15929           )\d{4}
15930         </nationalNumberPattern>
15931         <exampleNumber>596301234</exampleNumber>
15932       </fixedLine>
15933       <mobile>
15934         <nationalNumberPattern>
15935           696(?:
15936             [0-479]\d|
15937             5[01]|
15938             8[0-689]
15939           )\d{4}
15940         </nationalNumberPattern>
15941         <exampleNumber>696201234</exampleNumber>
15942       </mobile>
15943       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
15944            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
15945            too. -->
15946     </territory>
15947
15948     <!-- Mauritania -->
15949     <territory id="MR" countryCode="222" internationalPrefix="00" >
15950       <references>
15951         <sourceUrl>http://www.itu.int/oth/T0202000087/en</sourceUrl>
15952         <sourceUrl>http://are.mr/pdfs/pnn2010.pdf</sourceUrl>
15953       </references>
15954       <availableFormats>
15955         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
15956           <format>$1 $2 $3 $4</format>
15957         </numberFormat>
15958       </availableFormats>
15959       <generalDesc>
15960         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
15961         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15962       </generalDesc>
15963       <fixedLine>
15964         <nationalNumberPattern>
15965           25[08]\d{5}|
15966           35\d{6}|
15967           45[1-7]\d{5}
15968         </nationalNumberPattern>
15969         <exampleNumber>35123456</exampleNumber>
15970       </fixedLine>
15971       <!-- Added "49\d" in response to https://github.com/googlei18n/libphonenumber/issues/529
15972            which might be overly permissive, but we don't have an official documentation for this
15973            and only a small number of numbers were found online. At least 492 and 495 are valid.
15974            -->
15975       <mobile>
15976         <nationalNumberPattern>
15977           (?:
15978             2(?:
15979               2\d|
15980               70
15981             )|
15982             3(?:
15983               3\d|
15984               6[1-36]|
15985               7[1-3]
15986             )|
15987             4(?:
15988               [49]\d|
15989               6[0457-9]|
15990               7[4-9]|
15991               8[01346-8]
15992             )
15993           )\d{5}
15994         </nationalNumberPattern>
15995         <exampleNumber>22123456</exampleNumber>
15996       </mobile>
15997       <tollFree>
15998         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15999         <exampleNumber>80012345</exampleNumber>
16000       </tollFree>
16001     </territory>
16002
16003     <!-- Montserrat -->
16004     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
16005                internationalPrefix="011">
16006       <references>
16007         <sourceUrl>http://www.itu.int/oth/T020200008F/en</sourceUrl>
16008       </references>
16009       <generalDesc>
16010         <!-- NANPA country - uses US formatting rules -->
16011         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
16012         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
16013       </generalDesc>
16014       <fixedLine>
16015         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
16016         <exampleNumber>6644912345</exampleNumber>
16017       </fixedLine>
16018       <mobile>
16019         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
16020         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16021         <exampleNumber>6644923456</exampleNumber>
16022       </mobile>
16023       <tollFree>
16024         <nationalNumberPattern>
16025           8(?:
16026             00|
16027             44|
16028             55|
16029             66|
16030             77|
16031             88
16032           )[2-9]\d{6}
16033         </nationalNumberPattern>
16034         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16035         <exampleNumber>8002123456</exampleNumber>
16036       </tollFree>
16037       <premiumRate>
16038         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
16039         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16040         <exampleNumber>9002123456</exampleNumber>
16041       </premiumRate>
16042       <personalNumber>
16043         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
16044         <nationalNumberPattern>
16045           5(?:
16046             00|
16047             33|
16048             44|
16049             66|
16050             77
16051           )[2-9]\d{6}
16052         </nationalNumberPattern>
16053         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16054         <exampleNumber>5002345678</exampleNumber>
16055       </personalNumber>
16056     </territory>
16057
16058     <!-- Malta -->
16059     <territory id="MT" countryCode="356" internationalPrefix="00" mobileNumberPortableRegion="true">
16060       <references>
16061         <sourceUrl>http://www.itu.int/oth/T0202000084/en</sourceUrl>
16062         <!-- Numbering link in the LHS menu - has more up-to-date allocations -->
16063         <sourceUrl>http://www.mca.org.mt</sourceUrl>
16064       </references>
16065       <availableFormats>
16066         <numberFormat pattern="(\d{4})(\d{4})">
16067           <format>$1 $2</format>
16068         </numberFormat>
16069       </availableFormats>
16070       <generalDesc>
16071         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
16072         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16073       </generalDesc>
16074       <fixedLine>
16075         <nationalNumberPattern>
16076           2(?:
16077             0(?:
16078               1[0-6]|
16079               3[1-4]|
16080               [69]\d
16081             )|
16082             [1-357]\d{2}
16083           )\d{4}
16084         </nationalNumberPattern>
16085         <exampleNumber>21001234</exampleNumber>
16086       </fixedLine>
16087       <mobile>
16088         <!-- 7210 and 92XX come from the allocations listed on http://www.mca.org.mt, but they are
16089              not listed in the latest ITU document. -->
16090         <nationalNumberPattern>
16091           (?:
16092             7(?:
16093               210|
16094               [79]\d{2}
16095             )|
16096             9(?:
16097               2(?:
16098                1[01]|
16099                31
16100               )|
16101               696|
16102               8(?:
16103                 1[1-3]|
16104                 89|
16105                 97
16106               )|
16107               9\d{2}
16108             )
16109           )\d{4}
16110         </nationalNumberPattern>
16111         <exampleNumber>96961234</exampleNumber>
16112       </mobile>
16113       <pager>
16114         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
16115         <exampleNumber>71171234</exampleNumber>
16116       </pager>
16117       <tollFree>
16118         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
16119         <exampleNumber>80071234</exampleNumber>
16120       </tollFree>
16121       <premiumRate>
16122         <nationalNumberPattern>
16123           5(?:
16124             0(?:
16125               0(?:
16126                 37|
16127                 43
16128               )|
16129               6\d{2}|
16130               70\d|
16131               9[0168]
16132             )|
16133             [12]\d0[1-5]
16134           )\d{3}
16135         </nationalNumberPattern>
16136         <exampleNumber>50037123</exampleNumber>
16137       </premiumRate>
16138       <voip>
16139         <!-- In the plan as Non-PATS ECS. -->
16140         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
16141         <exampleNumber>35501234</exampleNumber>
16142       </voip>
16143       <uan>
16144         <!-- Using this for governmental numbers. -->
16145         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
16146         <exampleNumber>50112345</exampleNumber>
16147       </uan>
16148     </territory>
16149
16150     <!-- Mauritius -->
16151     <!-- Preferred international prefix is expected to standardize on just '00' -->
16152     <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
16153                preferredInternationalPrefix="020">
16154       <references>
16155         <sourceUrl>http://www.icta.mu/telecommunications/numbering.htm</sourceUrl>
16156       </references>
16157       <availableFormats>
16158         <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
16159           <leadingDigits>[2-46-9]</leadingDigits>
16160           <format>$1 $2</format>
16161         </numberFormat>
16162         <numberFormat pattern="(5\d{3})(\d{4})">
16163           <leadingDigits>5</leadingDigits>
16164           <format>$1 $2</format>
16165         </numberFormat>
16166       </availableFormats>
16167       <generalDesc>
16168         <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
16169         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
16170       </generalDesc>
16171       <fixedLine>
16172         <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
16173         <nationalNumberPattern>
16174           (?:
16175             2(?:
16176               [03478]\d|
16177               1[0-7]|
16178               6[1-69]
16179             )|
16180             4(?:
16181               [013568]\d|
16182               2[4-7]
16183             )|
16184             5(?:
16185               44\d|
16186               471
16187             )|
16188             6\d{2}|
16189             8(?:
16190               14|
16191               3[129]
16192             )
16193           )\d{4}
16194         </nationalNumberPattern>
16195         <exampleNumber>2012345</exampleNumber>
16196       </fixedLine>
16197       <mobile>
16198         <nationalNumberPattern>
16199           5(?:
16200             2[59]\d|
16201             4(?:
16202               2[1-389]|
16203               4\d|
16204               7[1-9]|
16205               9\d
16206             )|
16207             7\d{2}|
16208             8(?:
16209               [2568]\d|
16210               7[15-8]
16211             )|
16212             9[0-8]\d
16213           )\d{4}
16214         </nationalNumberPattern>
16215         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16216         <exampleNumber>52512345</exampleNumber>
16217       </mobile>
16218       <tollFree>
16219         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
16220         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16221         <exampleNumber>8001234</exampleNumber>
16222       </tollFree>
16223       <premiumRate>
16224         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
16225         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16226         <exampleNumber>3012345</exampleNumber>
16227       </premiumRate>
16228       <voip>
16229         <nationalNumberPattern>
16230           3(?:
16231             20|
16232             9\d
16233           )\d{4}
16234         </nationalNumberPattern>
16235         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16236         <exampleNumber>3201234</exampleNumber>
16237       </voip>
16238     </territory>
16239
16240     <!-- Maldives -->
16241     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
16242                preferredInternationalPrefix="00">
16243       <references>
16244         <sourceUrl>http://www.itu.int/oth/T0202000082/en</sourceUrl>
16245         <sourceUrl>http://www.dhiraagu.com.mv</sourceUrl>
16246       </references>
16247       <availableFormats>
16248         <numberFormat pattern="(\d{3})(\d{4})">
16249           <leadingDigits>
16250             [3467]|
16251             9(?:
16252               [1-9]|
16253               0[1-9]
16254             )
16255           </leadingDigits>
16256           <format>$1-$2</format>
16257         </numberFormat>
16258         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16259           <leadingDigits>900</leadingDigits>
16260           <format>$1 $2 $3</format>
16261         </numberFormat>
16262       </availableFormats>
16263       <generalDesc>
16264         <nationalNumberPattern>
16265           [3467]\d{6}|
16266           9(?:
16267             00\d{7}|
16268             \d{6}
16269           )
16270         </nationalNumberPattern>
16271         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16272       </generalDesc>
16273       <fixedLine>
16274         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
16275              diallable. -->
16276         <nationalNumberPattern>
16277           (?:
16278             3(?:
16279               0[01]|
16280               3[0-59]
16281             )|
16282             6(?:
16283               [567][02468]|
16284               8[024689]|
16285               90
16286             )
16287           )\d{4}
16288         </nationalNumberPattern>
16289         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16290         <exampleNumber>6701234</exampleNumber>
16291       </fixedLine>
16292       <mobile>
16293         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
16294              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
16295              91 was added based on information from Wataniya Telecom. -->
16296         <nationalNumberPattern>
16297           (?:
16298             46[46]|
16299             7[3-9]\d|
16300             9[16-9]\d
16301           )\d{4}
16302         </nationalNumberPattern>
16303         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16304         <exampleNumber>7712345</exampleNumber>
16305       </mobile>
16306       <pager>
16307         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
16308         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16309         <exampleNumber>7812345</exampleNumber>
16310       </pager>
16311       <premiumRate>
16312         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16313         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16314         <exampleNumber>9001234567</exampleNumber>
16315       </premiumRate>
16316     </territory>
16317
16318     <!-- Malawi -->
16319     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
16320          consistent in having one. -->
16321     <territory id="MW" countryCode="265" internationalPrefix="00"
16322                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16323       <references>
16324         <sourceUrl>http://www.itu.int/oth/T0202000080/en</sourceUrl>
16325       </references>
16326       <availableFormats>
16327         <numberFormat pattern="(\d)(\d{3})(\d{3})">
16328           <leadingDigits>1</leadingDigits>
16329           <format>$1 $2 $3</format>
16330         </numberFormat>
16331         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
16332           <leadingDigits>2</leadingDigits>
16333           <format>$1 $2 $3</format>
16334         </numberFormat>
16335         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16336           <leadingDigits>[1789]</leadingDigits>
16337           <format>$1 $2 $3 $4</format>
16338         </numberFormat>
16339       </availableFormats>
16340       <generalDesc>
16341         <nationalNumberPattern>
16342           (?:
16343             1(?:
16344               \d{2}
16345             )?|
16346             [2789]\d{2}
16347           )\d{6}
16348         </nationalNumberPattern>
16349         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
16350       </generalDesc>
16351       <fixedLine>
16352         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
16353              been found so this is being retained for now. It is possible however that these may be
16354              old-format mobile numbers. -->
16355         <nationalNumberPattern>
16356           (?:
16357             1[2-9]|
16358             21\d{2}
16359           )\d{5}
16360         </nationalNumberPattern>
16361         <exampleNumber>1234567</exampleNumber>
16362       </fixedLine>
16363       <mobile>
16364         <nationalNumberPattern>
16365           (?:
16366             111|
16367             77\d|
16368             88\d|
16369             99\d
16370           )\d{6}
16371         </nationalNumberPattern>
16372         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16373         <exampleNumber>991234567</exampleNumber>
16374       </mobile>
16375     </territory>
16376
16377     <!-- Mexico -->
16378     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
16379                nationalPrefix="01"
16380                nationalPrefixForParsing="0[12]|04[45](\d{10})"
16381                nationalPrefixTransformRule="1$1"
16382                nationalPrefixFormattingRule="$NP $FG"
16383                nationalPrefixOptionalWhenFormatting="true"
16384                leadingZeroPossible="true" mobileNumberPortableRegion="true">
16385       <references>
16386         <sourceUrl>http://www.itu.int/oth/T020200008A/en</sourceUrl>
16387         <sourceUrl>http://en.wikipedia.org/wiki/%2B52</sourceUrl>
16388         <sourceUrl>http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico</sourceUrl>
16389         <sourceUrl>http://en.wikipedia.org/wiki/Toll-free_telephone_number</sourceUrl>
16390       </references>
16391       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
16392            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
16393            numbers, regardless of whether they are written in international format (leading 1) or
16394            national format (leading 044/045), will be parsed into the same form. -->
16395       <availableFormats>
16396         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
16397           <leadingDigits>
16398             33|
16399             55|
16400             81
16401           </leadingDigits>
16402           <format>$1 $2 $3</format>
16403         </numberFormat>
16404         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16405           <leadingDigits>
16406             [2467]|
16407             3[12457-9]|
16408             5[89]|
16409             8[02-9]|
16410             9[0-35-9]
16411           </leadingDigits>
16412           <format>$1 $2 $3</format>
16413         </numberFormat>
16414         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
16415           <leadingDigits>
16416             1(?:
16417               33|
16418               55|
16419               81
16420             )
16421           </leadingDigits>
16422           <format>044 $2 $3 $4</format>
16423           <intlFormat>$1 $2 $3 $4</intlFormat>
16424         </numberFormat>
16425         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
16426           <leadingDigits>
16427             1(?:
16428               [2467]|
16429               3[12457-9]|
16430               5[89]|
16431               8[2-9]|
16432               9[1-35-9]
16433             )
16434           </leadingDigits>
16435           <format>044 $2 $3 $4</format>
16436           <intlFormat>$1 $2 $3 $4</intlFormat>
16437         </numberFormat>
16438       </availableFormats>
16439       <generalDesc>
16440         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
16441         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
16442       </generalDesc>
16443       <fixedLine>
16444         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
16445         <nationalNumberPattern>
16446           (?:
16447             33|
16448             55|
16449             81
16450           )\d{8}|
16451           (?:
16452             2(?:
16453               2[2-9]|
16454               3[1-35-8]|
16455               4[13-9]|
16456               7[1-689]|
16457               8[1-578]|
16458               9[467]
16459             )|
16460             3(?:
16461               1[1-79]|
16462               [2458][1-9]|
16463               7[1-8]|
16464               9[1-5]
16465             )|
16466             4(?:
16467               1[1-57-9]|
16468               [24-6][1-9]|
16469               [37][1-8]|
16470               8[1-35-9]|
16471               9[2-689]
16472             )|
16473             5(?:
16474               88|
16475               9[1-79]
16476             )|
16477             6(?:
16478               1[2-68]|
16479               [234][1-9]|
16480               5[1-3689]|
16481               6[12457-9]|
16482               7[1-7]|
16483               8[67]|
16484               9[4-8]
16485             )|
16486             7(?:
16487               [13467][1-9]|
16488               2[1-8]|
16489               5[13-9]|
16490               8[1-69]|
16491               9[17]
16492             )|
16493             8(?:
16494               2[13-689]|
16495               3[1-6]|
16496               4[124-6]|
16497               6[1246-9]|
16498               7[1-378]|
16499               9[12479]
16500             )|
16501             9(?:
16502               1[346-9]|
16503               2[1-4]|
16504               3[2-46-8]|
16505               5[1348]|
16506               [69][1-9]|
16507               7[12]|
16508               8[1-8]
16509             )
16510           )\d{7}
16511         </nationalNumberPattern>
16512         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16513         <exampleNumber>2221234567</exampleNumber>
16514       </fixedLine>
16515       <mobile>
16516         <nationalNumberPattern>
16517           1(?:
16518             (?:
16519               33|
16520               55|
16521               81
16522             )\d{8}|
16523             (?:
16524               2(?:
16525                 2[2-9]|
16526                 3[1-35-8]|
16527                 4[13-9]|
16528                 7[1-689]|
16529                 8[1-578]|
16530                 9[467]
16531               )|
16532               3(?:
16533                 1[1-79]|
16534                 [2458][1-9]|
16535                 7[1-8]|
16536                 9[1-5]
16537               )|
16538               4(?:
16539                 1[1-57-9]|
16540                 [24-6][1-9]|
16541                 [37][1-8]|
16542                 8[1-35-9]|
16543                 9[2-689]
16544               )|
16545               5(?:
16546                 88|
16547                 9[1-79]
16548               )|
16549               6(?:
16550                 1[2-68]|
16551                 [2-4][1-9]|
16552                 5[1-3689]|
16553                 6[12457-9]|
16554                 7[1-7]|
16555                 8[67]|
16556                 9[4-8]
16557               )|
16558               7(?:
16559                 [13467][1-9]|
16560                 2[1-8]|
16561                 5[13-9]|
16562                 8[1-69]|
16563                 9[17]
16564               )|
16565               8(?:
16566                 2[13-689]|
16567                 3[1-6]|
16568                 4[124-6]|
16569                 6[1246-9]|
16570                 7[1-378]|
16571                 9[12479]
16572               )|
16573               9(?:
16574                 1[346-9]|
16575                 2[1-4]|
16576                 3[2-46-8]|
16577                 5[1348]|
16578                 [69][1-9]|
16579                 7[12]|
16580                 8[1-8]
16581               )
16582             )\d{7}
16583           )
16584         </nationalNumberPattern>
16585         <possibleNumberPattern>\d{11}</possibleNumberPattern>
16586         <exampleNumber>12221234567</exampleNumber>
16587       </mobile>
16588       <tollFree>
16589         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
16590         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16591         <exampleNumber>8001234567</exampleNumber>
16592       </tollFree>
16593       <premiumRate>
16594         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16595         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16596         <exampleNumber>9001234567</exampleNumber>
16597       </premiumRate>
16598     </territory>
16599
16600     <!-- Malaysia -->
16601     <territory id="MY" countryCode="60" internationalPrefix="00"
16602                nationalPrefix="0" mobileNumberPortableRegion="true">
16603       <references>
16604         <sourceUrl>http://en.wikipedia.org/wiki/%2B60</sourceUrl>
16605         <sourceUrl>http://www.skmm.gov.my</sourceUrl>
16606       </references>
16607       <availableFormats>
16608         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16609           pattern="([4-79])(\d{3})(\d{4})">
16610           <leadingDigits>[4-79]</leadingDigits>
16611           <format>$1-$2 $3</format>
16612         </numberFormat>
16613         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16614           pattern="(3)(\d{4})(\d{4})">
16615           <leadingDigits>3</leadingDigits>
16616           <format>$1-$2 $3</format>
16617         </numberFormat>
16618         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16619           pattern="([18]\d)(\d{3})(\d{3,4})">
16620           <leadingDigits>
16621             1[02-46-9][1-9]|
16622             8
16623           </leadingDigits>
16624           <format>$1-$2 $3</format>
16625         </numberFormat>
16626         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
16627           <leadingDigits>1[36-8]0</leadingDigits>
16628           <format>$1-$2-$3-$4</format>
16629         </numberFormat>
16630         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16631           pattern="(11)(\d{4})(\d{4})">
16632           <leadingDigits>11</leadingDigits>
16633           <format>$1-$2 $3</format>
16634         </numberFormat>
16635         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16636           pattern="(15[49])(\d{3})(\d{4})">
16637           <leadingDigits>15</leadingDigits>
16638           <format>$1-$2 $3</format>
16639         </numberFormat>
16640       </availableFormats>
16641       <generalDesc>
16642         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
16643         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
16644       </generalDesc>
16645       <fixedLine>
16646         <nationalNumberPattern>
16647           (?:
16648             3[2-9]\d|
16649             [4-9][2-9]
16650           )\d{6}
16651         </nationalNumberPattern>
16652         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
16653         <exampleNumber>323456789</exampleNumber>
16654       </fixedLine>
16655       <mobile>
16656         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
16657              is possible to send SMSs (and receive them) from numbers in this block, so we are
16658              listing them as mobile. 115 was added based on numbers found online. -->
16659         <nationalNumberPattern>
16660           1(?:
16661             1[1-35]\d{2}|
16662             [02-4679][2-9]\d|
16663             59\d{2}|
16664             8(?:
16665               1[23]|
16666               [2-9]\d
16667             )
16668           )\d{5}
16669         </nationalNumberPattern>
16670         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
16671         <exampleNumber>123456789</exampleNumber>
16672       </mobile>
16673       <tollFree>
16674         <!-- http://www.skmm.gov.my/skmmgovmy/media/General/pdf/Special_Service_Number.pdf -->
16675         <nationalNumberPattern>1[378]00\d{6}</nationalNumberPattern>
16676         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16677         <exampleNumber>1300123456</exampleNumber>
16678       </tollFree>
16679       <premiumRate>
16680         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
16681         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16682         <exampleNumber>1600123456</exampleNumber>
16683       </premiumRate>
16684       <voip>
16685         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
16686         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16687         <exampleNumber>1541234567</exampleNumber>
16688       </voip>
16689     </territory>
16690
16691     <!-- Mozambique -->
16692     <territory id="MZ" countryCode="258" internationalPrefix="00">
16693       <references>
16694         <sourceUrl>http://www.itu.int/oth/T0202000091/en</sourceUrl>
16695       </references>
16696       <availableFormats>
16697         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
16698           <leadingDigits>
16699             2|
16700             8[2-7]
16701           </leadingDigits>
16702           <format>$1 $2 $3</format>
16703         </numberFormat>
16704         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
16705           <leadingDigits>80</leadingDigits>
16706           <format>$1 $2 $3</format>
16707         </numberFormat>
16708       </availableFormats>
16709       <generalDesc>
16710         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
16711         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16712       </generalDesc>
16713       <fixedLine>
16714         <nationalNumberPattern>
16715           2(?:
16716             [1346]\d|
16717             5[0-2]|
16718             [78][12]|
16719             93
16720           )\d{5}
16721         </nationalNumberPattern>
16722         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16723         <exampleNumber>21123456</exampleNumber>
16724       </fixedLine>
16725       <mobile>
16726         <nationalNumberPattern>8[23467]\d{7}</nationalNumberPattern>
16727         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16728         <exampleNumber>821234567</exampleNumber>
16729       </mobile>
16730       <tollFree>
16731         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
16732              examples. -->
16733         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
16734         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16735         <exampleNumber>800123456</exampleNumber>
16736       </tollFree>
16737       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
16738            a 9 are premium rate, but no online examples can be found of any of these so they are
16739            omitted for the time-being. -->
16740     </territory>
16741
16742     <!-- Namibia -->
16743     <territory id="NA" countryCode="264" internationalPrefix="00"
16744                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16745       <references>
16746         <sourceUrl>http://www.itu.int/oth/T0202000093/en</sourceUrl>
16747       </references>
16748       <availableFormats>
16749         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
16750           <leadingDigits>8[1235]</leadingDigits>
16751           <format>$1 $2 $3</format>
16752         </numberFormat>
16753         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
16754           <leadingDigits>6</leadingDigits>
16755           <format>$1 $2 $3</format>
16756         </numberFormat>
16757         <numberFormat pattern="(88)(\d{3})(\d{3})">
16758           <leadingDigits>88</leadingDigits>
16759           <format>$1 $2 $3</format>
16760         </numberFormat>
16761         <numberFormat pattern="(870)(\d{3})(\d{3})">
16762           <leadingDigits>870</leadingDigits>
16763           <format>$1 $2 $3</format>
16764         </numberFormat>
16765       </availableFormats>
16766       <generalDesc>
16767         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
16768         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16769       </generalDesc>
16770       <fixedLine>
16771         <!-- Includes VSAT service. -->
16772         <nationalNumberPattern>
16773           6(?:
16774             1(?:
16775               17|
16776               2(?:
16777                 [0189]\d|
16778                 [2-6]|
16779                 7\d?
16780               )|
16781               3(?:
16782                 [01378]|
16783                 2\d
16784               )|
16785               4[01]|
16786               69|
16787               7[014]
16788             )|
16789             2(?:
16790               17|
16791               5(?:
16792                 [0-36-8]|
16793                 4\d?
16794               )|
16795               69|
16796               70
16797             )|
16798             3(?:
16799               17|
16800               2(?:
16801                 [0237]\d?|
16802                 [14-689]
16803               )|
16804               34|
16805               6[29]|
16806               7[01]|
16807               81
16808             )|
16809             4(?:
16810               17|
16811               2(?:
16812                 [012]|
16813                 7?
16814               )|
16815               4(?:
16816                 [06]|
16817                 1\d
16818               )|
16819               5(?:
16820                 [01357]|
16821                 [25]\d?
16822               )|
16823               69|
16824               7[01]
16825             )|
16826             5(?:
16827               17|
16828               2(?:
16829                 [0459]|
16830                 [23678]\d?
16831               )|
16832               69|
16833               7[01]
16834             )|
16835             6(?:
16836               17|
16837               2(?:
16838                 5|
16839                 6\d?
16840               )|
16841               38|
16842               42|
16843               69|
16844               7[01]
16845             )|
16846             7(?:
16847               17|
16848               2(?:
16849                 [569]|
16850                 [234]\d?
16851               )|
16852               3(?:
16853                 0\d?|
16854                 [13]
16855               )|
16856               69|
16857               7[01]
16858             )
16859           )\d{4}
16860         </nationalNumberPattern>
16861         <exampleNumber>61221234</exampleNumber>
16862       </fixedLine>
16863       <mobile>
16864         <!-- Includes the Switch CDMA Service. -->
16865         <nationalNumberPattern>
16866           (?:
16867             60|
16868             8[125]
16869           )\d{7}
16870         </nationalNumberPattern>
16871         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16872         <exampleNumber>811234567</exampleNumber>
16873       </mobile>
16874       <premiumRate>
16875         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
16876         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16877         <exampleNumber>870123456</exampleNumber>
16878       </premiumRate>
16879       <voip>
16880         <!-- Including virtual telephone and VOIP services. -->
16881         <nationalNumberPattern>
16882           8(?:
16883             3\d{2}|
16884             86
16885           )\d{5}
16886         </nationalNumberPattern>
16887         <exampleNumber>88612345</exampleNumber>
16888       </voip>
16889     </territory>
16890
16891     <!-- New Caledonia (Territoire français d'outre-mer) -->
16892     <territory id="NC" countryCode="687" internationalPrefix="00">
16893       <references>
16894         <sourceUrl>http://www.itu.int/oth/T0202000098/en</sourceUrl>
16895         <sourceUrl>http://www.opt.nc</sourceUrl>
16896       </references>
16897       <availableFormats>
16898         <!-- From http://www.1012.nc, the local yellow pages. -->
16899         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
16900           <!-- We exclude short-codes here so they are formatted as a block -->
16901           <leadingDigits>
16902             [2-46-9]|
16903             5[0-4]
16904           </leadingDigits>
16905           <format>$1.$2.$3</format>
16906         </numberFormat>
16907       </availableFormats>
16908       <generalDesc>
16909         <nationalNumberPattern>[2-57-9]\d{5}</nationalNumberPattern>
16910         <possibleNumberPattern>\d{6}</possibleNumberPattern>
16911       </generalDesc>
16912       <fixedLine>
16913         <!-- Including the 88 prefix for public payphones. -->
16914         <nationalNumberPattern>
16915           (?:
16916             2[03-9]|
16917             3[0-5]|
16918             4[1-7]|
16919             88
16920           )\d{4}
16921         </nationalNumberPattern>
16922         <exampleNumber>201234</exampleNumber>
16923       </fixedLine>
16924       <mobile>
16925         <nationalNumberPattern>
16926           (?:
16927             5[0-4]|
16928             [79]\d|
16929             8[0-79]
16930           )\d{4}
16931         </nationalNumberPattern>
16932         <exampleNumber>751234</exampleNumber>
16933       </mobile>
16934       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
16935       <!-- Note that OPT lists 3631 as a free short number for caller ID services, but the ITU
16936            document says that all 36 numbers are 6 digits. See ShortNumberMetadata.xml for more. -->
16937       <premiumRate>
16938         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
16939         <exampleNumber>366711</exampleNumber>
16940       </premiumRate>
16941     </territory>
16942
16943     <!-- Niger -->
16944     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
16945       <references>
16946         <sourceUrl>http://www.itu.int/oth/T020200009B/en</sourceUrl>
16947       </references>
16948       <availableFormats>
16949         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
16950           <leadingDigits>
16951             [289]|
16952             09
16953           </leadingDigits>
16954           <format>$1 $2 $3 $4</format>
16955         </numberFormat>
16956         <numberFormat pattern="(08)(\d{3})(\d{3})">
16957           <leadingDigits>08</leadingDigits>
16958           <format>$1 $2 $3</format>
16959         </numberFormat>
16960       </availableFormats>
16961       <generalDesc>
16962         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
16963         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16964       </generalDesc>
16965       <fixedLine>
16966         <!-- Adding 20 61 from online numbers. -->
16967         <nationalNumberPattern>
16968           2(?:
16969             0(?:
16970               20|
16971               3[1-7]|
16972               4[134]|
16973               5[14]|
16974               6[14578]|
16975               7[1-578]
16976             )|
16977             1(?:
16978               4[145]|
16979               5[14]|
16980               6[14-68]|
16981               7[169]|
16982               88
16983             )
16984           )\d{4}
16985         </nationalNumberPattern>
16986         <exampleNumber>20201234</exampleNumber>
16987       </fixedLine>
16988       <mobile>
16989         <!-- Added 88, 90, 91, 92, 95, 97, 98 & 99 from online data. Airtel have confirmed that they
16990              use the 89 and 97 prefixes, and Orange use 92. MOOV started using 95 in Jan 2014. -->
16991         <nationalNumberPattern>
16992           (?:
16993             8[89]|
16994             9\d
16995           )\d{6}
16996         </nationalNumberPattern>
16997         <exampleNumber>93123456</exampleNumber>
16998       </mobile>
16999       <tollFree>
17000         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
17001         <exampleNumber>08123456</exampleNumber>
17002       </tollFree>
17003       <premiumRate>
17004         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
17005         <exampleNumber>09123456</exampleNumber>
17006       </premiumRate>
17007     </territory>
17008
17009     <!-- Norfolk Island -->
17010     <!-- Including numbers for Australian Antarctic stations. -->
17011     <territory id="NF" countryCode="672" internationalPrefix="00">
17012       <references>
17013         <sourceUrl>http://www.itu.int/oth/T020200009D/en</sourceUrl>
17014       </references>
17015       <availableFormats>
17016         <numberFormat pattern="(\d{2})(\d{4})">
17017            <leadingDigits>1</leadingDigits>
17018           <format>$1 $2</format>
17019         </numberFormat>
17020         <numberFormat pattern="(\d)(\d{5})">
17021           <leadingDigits>3</leadingDigits>
17022           <format>$1 $2</format>
17023         </numberFormat>
17024       </availableFormats>
17025       <generalDesc>
17026         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
17027         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17028       </generalDesc>
17029       <fixedLine>
17030         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
17031              connect after we tried calling them. -->
17032         <nationalNumberPattern>
17033           (?:
17034             1(?:
17035               06|
17036               17|
17037               28|
17038               39
17039             )|
17040             3[012]\d
17041           )\d{3}
17042         </nationalNumberPattern>
17043         <exampleNumber>106609</exampleNumber>
17044       </fixedLine>
17045       <mobile>
17046         <!-- Numbers found online with prefix 35. -->
17047         <nationalNumberPattern>3[58]\d{4}</nationalNumberPattern>
17048         <exampleNumber>381234</exampleNumber>
17049       </mobile>
17050     </territory>
17051
17052     <!-- Nigeria -->
17053     <territory id="NG" countryCode="234" internationalPrefix="009"
17054                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17055                mobileNumberPortableRegion="true">
17056       <references>
17057         <sourceUrl>http://www.itu.int/oth/T020200009C/en</sourceUrl>
17058       </references>
17059       <availableFormats>
17060         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
17061           <leadingDigits>[129]</leadingDigits>
17062           <format>$1 $2 $3</format>
17063         </numberFormat>
17064         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
17065           <leadingDigits>
17066             [3-6]|
17067             7(?:
17068               [1-79]|
17069               0[1-9]
17070             )|
17071             8[2-9]
17072           </leadingDigits>
17073           <format>$1 $2 $3</format>
17074         </numberFormat>
17075         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17076           <leadingDigits>
17077             70|
17078             8[01]|
17079             90[2359]
17080           </leadingDigits>
17081           <format>$1 $2 $3</format>
17082         </numberFormat>
17083         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17084           <leadingDigits>[78]00</leadingDigits>
17085           <format>$1 $2 $3</format>
17086         </numberFormat>
17087         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
17088           <leadingDigits>[78]00</leadingDigits>
17089           <format>$1 $2 $3</format>
17090         </numberFormat>
17091         <numberFormat pattern="(78)(\d{2})(\d{3})">
17092           <leadingDigits>78</leadingDigits>
17093           <format>$1 $2 $3</format>
17094         </numberFormat>
17095       </availableFormats>
17096       <generalDesc>
17097         <nationalNumberPattern>
17098           [1-6]\d{5,8}|
17099           9\d{5,9}|
17100           [78]\d{5,13}
17101         </nationalNumberPattern>
17102         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
17103       </generalDesc>
17104       <fixedLine>
17105         <nationalNumberPattern>
17106           [12]\d{6,7}|
17107           9(?:
17108             0[3-9]|
17109             [1-9]\d
17110           )\d{5}|
17111           (?:
17112             3\d|
17113             4[023568]|
17114             5[02368]|
17115             6[02-469]|
17116             7[4-69]|
17117             8[2-9]
17118           )\d{6}|
17119           (?:
17120             4[47]|
17121             5[14579]|
17122             6[1578]|
17123             7[0-357]
17124           )\d{5,6}|
17125           (?:
17126             78|
17127             41
17128           )\d{5}
17129         </nationalNumberPattern>
17130         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
17131         <exampleNumber>12345678</exampleNumber>
17132       </fixedLine>
17133       <mobile>
17134         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17135              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17136              Starcomms have apparently, according to the company, been used for mobile numbers too,
17137              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17138              903 has been added for MTN, 905 has been added for Globacom (Glo), and 909 has been
17139              added for Etisalat. -->
17140         <nationalNumberPattern>
17141           (?:
17142             1(?:
17143               7[34]\d|
17144               8(?:
17145                 04|
17146                 [124579]\d|
17147                 8[0-3]
17148               )|
17149               95\d
17150             )|
17151             287[0-7]|
17152             3(?:
17153               18[1-8]|
17154               88[0-7]|
17155               9(?:
17156                 8[5-9]|
17157                 6[1-5]
17158               )
17159             )|
17160             4(?:
17161               28[0-2]|
17162               6(?:
17163                 7[1-9]|
17164                 8[02-47]
17165               )|
17166               88[0-2]
17167             )|
17168             5(?:
17169               2(?:
17170                 7[7-9]|
17171                 8\d
17172               )|
17173               38[1-79]|
17174               48[0-7]|
17175               68[4-7]
17176             )|
17177             6(?:
17178               2(?:
17179                 7[7-9]|
17180                 8\d
17181               )|
17182               4(?:
17183                 3[7-9]|
17184                 [68][129]|
17185                 7[04-69]|
17186                 9[1-8]
17187               )|
17188               58[0-2]|
17189               98[7-9]
17190             )|
17191             7(?:
17192               38[0-7]|
17193               69[1-8]|
17194               78[2-4]
17195             )|
17196             8(?:
17197               28[3-9]|
17198               38[0-2]|
17199               4(?:
17200                 2[12]|
17201                 3[147-9]|
17202                 5[346]|
17203                 7[4-9]|
17204                 8[014-689]|
17205                 90
17206               )|
17207               58[1-8]|
17208               78[2-9]|
17209               88[5-7]
17210             )|
17211             98[07]\d
17212           )\d{4}|
17213           (?:
17214             70(?:
17215               [13-9]\d|
17216               2[1-9]
17217             )|
17218             8(?:
17219               0[2-9]|
17220               1\d
17221             )\d|
17222             90[2359]\d
17223           )\d{6}
17224         </nationalNumberPattern>
17225         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17226         <exampleNumber>8021234567</exampleNumber>
17227       </mobile>
17228       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
17229       <tollFree>
17230         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
17231         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17232         <exampleNumber>80017591759</exampleNumber>
17233       </tollFree>
17234       <uan>
17235         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
17236         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17237         <exampleNumber>7001234567</exampleNumber>
17238       </uan>
17239     </territory>
17240
17241     <!-- Nicaragua -->
17242     <territory id="NI" countryCode="505" internationalPrefix="00">
17243       <references>
17244         <sourceUrl>http://www.itu.int/oth/T020200009A/en</sourceUrl>
17245       </references>
17246       <availableFormats>
17247         <numberFormat pattern="(\d{4})(\d{4})">
17248           <format>$1 $2</format>
17249         </numberFormat>
17250       </availableFormats>
17251       <generalDesc>
17252         <nationalNumberPattern>[12578]\d{7}</nationalNumberPattern>
17253         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17254       </generalDesc>
17255       <fixedLine>
17256         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
17257         <exampleNumber>21234567</exampleNumber>
17258       </fixedLine>
17259       <mobile>
17260         <!-- 55[0-7], 57, 58 and 7[5-8] were added from bug reports/numbers found online. -->
17261         <nationalNumberPattern>
17262           5(?:
17263             5[0-7]\d{5}|
17264             [78]\d{6}
17265           )|
17266           7[5-8]\d{6}|
17267           8\d{7}
17268         </nationalNumberPattern>
17269         <exampleNumber>81234567</exampleNumber>
17270       </mobile>
17271       <tollFree>
17272         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
17273         <exampleNumber>18001234</exampleNumber>
17274       </tollFree>
17275     </territory>
17276
17277     <!-- Netherlands -->
17278     <territory id="NL" countryCode="31" internationalPrefix="00"
17279                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17280                mobileNumberPortableRegion="true">
17281       <references>
17282         <sourceUrl>http://en.wikipedia.org/wiki/%2B31</sourceUrl>
17283         <sourceUrl>http://wetten.overheid.nl/BWBR0010198</sourceUrl>
17284       </references>
17285       <availableFormats>
17286         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
17287           <leadingDigits>
17288             1[035]|
17289             2[0346]|
17290             3[03568]|
17291             4[0356]|
17292             5[0358]|
17293             7|
17294             8[4578]
17295           </leadingDigits>
17296           <format>$1 $2 $3</format>
17297         </numberFormat>
17298         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
17299           <leadingDigits>
17300             1[16-8]|
17301             2[259]|
17302             3[124]|
17303             4[17-9]|
17304             5[124679]
17305           </leadingDigits>
17306           <format>$1 $2 $3</format>
17307         </numberFormat>
17308         <numberFormat pattern="(6)(\d{8})">
17309           <leadingDigits>6[0-57-9]</leadingDigits>
17310           <format>$1 $2</format>
17311         </numberFormat>
17312         <numberFormat pattern="(66)(\d{7})">
17313           <leadingDigits>66</leadingDigits>
17314           <format>$1 $2</format>
17315         </numberFormat>
17316         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
17317           <leadingDigits>14</leadingDigits>
17318           <format>$1 $2</format>
17319         </numberFormat>
17320         <numberFormat pattern="([89]0\d)(\d{4,7})">
17321           <leadingDigits>
17322             80|
17323             9
17324           </leadingDigits>
17325           <format>$1 $2</format>
17326         </numberFormat>
17327       </availableFormats>
17328       <generalDesc>
17329         <nationalNumberPattern>
17330           1\d{4,8}|
17331           [2-7]\d{8}|
17332           [89]\d{6,9}
17333         </nationalNumberPattern>
17334         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
17335       </generalDesc>
17336       <noInternationalDialling>
17337         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
17338         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17339       </noInternationalDialling>
17340       <fixedLine>
17341         <nationalNumberPattern>
17342           (?:
17343             1[0135-8]|
17344             2[02-69]|
17345             3[0-68]|
17346             4[0135-9]|
17347             [57]\d|
17348             8[478]
17349           )\d{7}
17350         </nationalNumberPattern>
17351         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17352         <exampleNumber>101234567</exampleNumber>
17353       </fixedLine>
17354       <mobile>
17355         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
17356         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17357         <exampleNumber>612345678</exampleNumber>
17358       </mobile>
17359       <pager>
17360         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
17361         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17362         <exampleNumber>662345678</exampleNumber>
17363       </pager>
17364       <tollFree>
17365         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
17366         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17367         <exampleNumber>8001234</exampleNumber>
17368       </tollFree>
17369       <premiumRate>
17370         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
17371         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17372         <exampleNumber>9061234</exampleNumber>
17373       </premiumRate>
17374       <voip>
17375         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
17376         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17377         <exampleNumber>851234567</exampleNumber>
17378       </voip>
17379       <uan>
17380         <!-- These numbers are used for local government. They are formed by the appending the local
17381              dialling code (including the national prefix 0) after the leading digits "14". -->
17382         <nationalNumberPattern>
17383           140(?:
17384             1(?:
17385               [035]|
17386               [16-8]\d
17387             )|
17388             2(?:
17389               [0346]|
17390               [259]\d
17391             )|
17392             3(?:
17393               [03568]|
17394               [124]\d
17395             )|
17396             4(?:
17397               [0356]|
17398               [17-9]\d
17399             )|
17400             5(?:
17401               [0358]|
17402               [124679]\d
17403             )|
17404             7\d|
17405             8[458]
17406           )
17407         </nationalNumberPattern>
17408         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17409         <exampleNumber>14020</exampleNumber>
17410       </uan>
17411     </territory>
17412
17413     <!-- Norway -->
17414     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
17415     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
17416                mainCountryForCode="true" mobileNumberPortableRegion="true">
17417       <references>
17418         <sourceUrl>http://www.npt.no/npt/numsys/E.164.pdf</sourceUrl>
17419       </references>
17420       <availableFormats>
17421         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
17422           <leadingDigits>[489]</leadingDigits>
17423           <format>$1 $2 $3</format>
17424         </numberFormat>
17425         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
17426           <leadingDigits>[235-7]</leadingDigits>
17427           <format>$1 $2 $3 $4</format>
17428         </numberFormat>
17429       </availableFormats>
17430       <generalDesc>
17431         <nationalNumberPattern>
17432           0\d{4}|
17433           [2-9]\d{7}
17434         </nationalNumberPattern>
17435         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
17436       </generalDesc>
17437       <fixedLine>
17438         <!-- Excludes Svalbard fixed-line numbers. -->
17439         <nationalNumberPattern>
17440           (?:
17441             2[1-4]|
17442             3[1-3578]|
17443             5[1-35-7]|
17444             6[1-4679]|
17445             7[0-8]
17446           )\d{6}
17447         </nationalNumberPattern>
17448         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17449         <exampleNumber>21234567</exampleNumber>
17450       </fixedLine>
17451       <mobile>
17452         <nationalNumberPattern>
17453           (?:
17454             4[015-8]|
17455             5[89]|
17456             9\d
17457           )\d{6}
17458         </nationalNumberPattern>
17459         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17460         <exampleNumber>40612345</exampleNumber>
17461       </mobile>
17462       <tollFree>
17463         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
17464         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17465         <exampleNumber>80012345</exampleNumber>
17466       </tollFree>
17467       <premiumRate>
17468         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
17469         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17470         <exampleNumber>82012345</exampleNumber>
17471       </premiumRate>
17472       <sharedCost>
17473         <nationalNumberPattern>
17474           810(?:
17475             0[0-6]|
17476             [2-8]\d
17477           )\d{3}
17478         </nationalNumberPattern>
17479         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17480         <exampleNumber>81021234</exampleNumber>
17481       </sharedCost>
17482       <personalNumber>
17483         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
17484         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17485         <exampleNumber>88012345</exampleNumber>
17486       </personalNumber>
17487       <voip>
17488         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
17489         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17490         <exampleNumber>85012345</exampleNumber>
17491       </voip>
17492       <uan>
17493         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
17494         <nationalNumberPattern>
17495           0\d{4}|
17496           81(?:
17497             0(?:
17498               0[7-9]|
17499               1\d
17500             )|
17501             5\d{2}
17502           )\d{3}
17503         </nationalNumberPattern>
17504         <exampleNumber>01234</exampleNumber>
17505       </uan>
17506       <voicemail>
17507         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
17508         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17509         <exampleNumber>81212345</exampleNumber>
17510       </voicemail>
17511     </territory>
17512
17513     <!-- Nepal -->
17514     <territory id="NP" countryCode="977" internationalPrefix="00"
17515                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17516       <references>
17517         <sourceUrl>http://www.itu.int/oth/T0202000095/en</sourceUrl>
17518         <sourceUrl>http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php</sourceUrl>
17519         <sourceUrl>http://www.nta.gov.np/en/2012-06-01-11-45-17/2012-06-04-04-26-59/numbering-plan</sourceUrl>
17520       </references>
17521       <availableFormats>
17522         <!-- Formatting patterns taken from pages like http://www.nepalgov.gov.np -->
17523         <numberFormat pattern="(1)(\d{7})">
17524           <leadingDigits>1[2-6]</leadingDigits>
17525           <format>$1-$2</format>
17526         </numberFormat>
17527         <numberFormat pattern="(\d{2})(\d{6})">
17528           <leadingDigits>
17529             1[01]|
17530             [2-8]|
17531             9(?:
17532               [1-69]|
17533               7[15-9]
17534             )
17535           </leadingDigits>
17536           <format>$1-$2</format>
17537         </numberFormat>
17538         <numberFormat pattern="(9\d{2})(\d{7})">
17539           <leadingDigits>
17540             9(?:
17541               6[013]|
17542               7[245]|
17543               8
17544             )
17545             </leadingDigits>
17546           <format>$1-$2</format>
17547         </numberFormat>
17548       </availableFormats>
17549       <generalDesc>
17550         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
17551              numbers that have the country code prefixed. -->
17552         <nationalNumberPattern>
17553           [1-8]\d{7}|
17554           9(?:
17555             [1-69]\d{6,8}|
17556             7[2-6]\d{5,7}|
17557             8\d{8}
17558           )
17559         </nationalNumberPattern>
17560         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17561       </generalDesc>
17562       <!-- We don't support Rural Telecommunication Service at the moment since
17563            we are not sure what type it is. -->
17564       <fixedLine>
17565         <nationalNumberPattern>
17566           (?:
17567             1[0-6]\d|
17568             2[13-79][2-6]|
17569             3[135-8][2-6]|
17570             4[146-9][2-6]|
17571             5[135-7][2-6]|
17572             6[13-9][2-6]|
17573             7[15-9][2-6]|
17574             8[1-46-9][2-6]|
17575             9[1-79][2-6]
17576           )\d{5}
17577         </nationalNumberPattern>
17578         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17579         <exampleNumber>14567890</exampleNumber>
17580       </fixedLine>
17581       <mobile>
17582         <nationalNumberPattern>
17583           9(?:
17584             6[013]|
17585             7[245]|
17586             8[01456]
17587           )\d{7}
17588         </nationalNumberPattern>
17589         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17590         <exampleNumber>9841234567</exampleNumber>
17591       </mobile>
17592       <!-- No information on other types of phone numbers for Nepal has been found. -->
17593     </territory>
17594
17595     <!-- Nauru -->
17596     <territory id="NR" countryCode="674" internationalPrefix="00">
17597       <references>
17598         <sourceUrl>http://www.itu.int/oth/T0202000094/en</sourceUrl>
17599         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru</sourceUrl>
17600       </references>
17601       <availableFormats>
17602         <numberFormat pattern="(\d{3})(\d{4})">
17603           <format>$1 $2</format>
17604         </numberFormat>
17605       </availableFormats>
17606       <generalDesc>
17607         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
17608         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17609       </generalDesc>
17610       <fixedLine>
17611         <nationalNumberPattern>
17612           (?:
17613             444|
17614             888
17615           )\d{4}
17616         </nationalNumberPattern>
17617         <exampleNumber>4441234</exampleNumber>
17618       </fixedLine>
17619       <mobile>
17620         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
17621         <exampleNumber>5551234</exampleNumber>
17622       </mobile>
17623     </territory>
17624
17625     <!-- Niue -->
17626     <territory id="NU" countryCode="683" internationalPrefix="00">
17627       <references>
17628         <sourceUrl>http://www.itu.int/oth/T02020000EC/en</sourceUrl>
17629         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue</sourceUrl>
17630       </references>
17631       <!-- Numbers are always formatted as a block. -->
17632       <generalDesc>
17633         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
17634         <possibleNumberPattern>\d{4}</possibleNumberPattern>
17635       </generalDesc>
17636       <fixedLine>
17637         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
17638         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
17639         <exampleNumber>4002</exampleNumber>
17640       </fixedLine>
17641       <mobile>
17642         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
17643         <exampleNumber>1234</exampleNumber>
17644       </mobile>
17645     </territory>
17646
17647     <!-- New Zealand -->
17648     <!-- Includes Ross Dependency, Antarctica -->
17649     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
17650          numbers and 050 "Nation-Wide Service". -->
17651     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
17652                preferredInternationalPrefix="00" nationalPrefix="0"
17653                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
17654       <references>
17655         <sourceUrl>http://www.itu.int/oth/T0202000099/en</sourceUrl>
17656       </references>
17657       <availableFormats>
17658         <!-- Pattern for fixed-line formats. -->
17659         <numberFormat pattern="([34679])(\d{3})(\d{4})">
17660           <leadingDigits>
17661             [346]|
17662             7[2-57-9]|
17663             9[1-9]
17664           </leadingDigits>
17665           <format>$1-$2 $3</format>
17666         </numberFormat>
17667         <!-- Area code for NZ's Scott Base, in Antarctica. -->
17668         <numberFormat pattern="(24099)(\d{3})">
17669           <leadingDigits>240</leadingDigits>
17670           <leadingDigits>2409</leadingDigits>
17671           <leadingDigits>24099</leadingDigits>
17672           <format>$1 $2</format>
17673         </numberFormat>
17674         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
17675              length. -->
17676         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
17677         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
17678           <leadingDigits>21</leadingDigits>
17679           <format>$1 $2 $3</format>
17680         </numberFormat>
17681         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
17682         <numberFormat pattern="(\d{2})(\d{3})(\d{3,5})">
17683           <leadingDigits>
17684             2(?:
17685               1[1-9]|
17686               [69]|
17687               7[0-35-9]
17688             )|
17689             70|
17690             86
17691           </leadingDigits>
17692           <format>$1 $2 $3</format>
17693         </numberFormat>
17694         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
17695              than writing the first group as 022X based on Google web searches, and is used by
17696              2Degrees themselves. See formatting on http://www.2degreesmobile.co.nz for an example
17697              of the latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
17698         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
17699           <leadingDigits>2[028]</leadingDigits>
17700           <format>$1 $2 $3</format>
17701         </numberFormat>
17702         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17703           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900. -->
17704           <leadingDigits>
17705             2(?:
17706               10|
17707               74
17708             )|
17709             5|
17710             [89]0
17711           </leadingDigits>
17712           <format>$1 $2 $3</format>
17713         </numberFormat>
17714       </availableFormats>
17715       <generalDesc>
17716         <nationalNumberPattern>
17717           6[235-9]\d{6}|
17718           [2-57-9]\d{7,10}
17719         </nationalNumberPattern>
17720         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
17721       </generalDesc>
17722       <fixedLine>
17723         <nationalNumberPattern>
17724           (?:
17725             3[2-79]|
17726             [49][2-9]|
17727             6[235-9]|
17728             7[2-57-9]
17729           )\d{6}|
17730           24099\d{3}
17731         </nationalNumberPattern>
17732         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17733         <exampleNumber>32345678</exampleNumber>
17734       </fixedLine>
17735       <mobile>
17736         <!-- Includes mobile radio service numbers (e.g. TeamTalk). The lengths of numbers with
17737              prefix 21 are different from what's specified in the ITU doc, because of numbers found
17738              online. -->
17739         <nationalNumberPattern>
17740           2(?:
17741             [028]\d{7,8}|
17742             1(?:
17743               [03]\d{5,7}|
17744               [12457]\d{5,6}|
17745               [689]\d{5}
17746             )|
17747             [79]\d{7}
17748           )
17749         </nationalNumberPattern>
17750         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17751         <exampleNumber>211234567</exampleNumber>
17752       </mobile>
17753       <pager>
17754         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
17755         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17756         <exampleNumber>26123456</exampleNumber>
17757       </pager>
17758       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
17759            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
17760            not covered, as telecom companies don't seem to support them yet. -->
17761       <tollFree>
17762         <nationalNumberPattern>
17763           508\d{6,7}|
17764           80\d{6,8}
17765         </nationalNumberPattern>
17766         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17767         <exampleNumber>800123456</exampleNumber>
17768       </tollFree>
17769       <premiumRate>
17770         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
17771         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
17772         <exampleNumber>900123456</exampleNumber>
17773       </premiumRate>
17774       <personalNumber>
17775         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
17776         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17777         <exampleNumber>701234567</exampleNumber>
17778       </personalNumber>
17779     </territory>
17780
17781     <!-- Oman -->
17782     <territory id="OM" countryCode="968" internationalPrefix="00" mobileNumberPortableRegion="true">
17783       <references>
17784         <sourceUrl>http://www.itu.int/oth/T020200009F/en</sourceUrl>
17785       </references>
17786       <availableFormats>
17787         <numberFormat pattern="(2\d)(\d{6})">
17788           <leadingDigits>2</leadingDigits>
17789           <format>$1 $2</format>
17790         </numberFormat>
17791         <numberFormat pattern="(9\d{3})(\d{4})">
17792           <leadingDigits>9</leadingDigits>
17793           <format>$1 $2</format>
17794         </numberFormat>
17795         <numberFormat pattern="([58]00)(\d{4,6})">
17796           <leadingDigits>[58]</leadingDigits>
17797           <format>$1 $2</format>
17798         </numberFormat>
17799       </availableFormats>
17800       <generalDesc>
17801         <nationalNumberPattern>
17802           (?:
17803             2[2-6]|
17804             5|
17805             9[1-9]
17806           )\d{6}|
17807           800\d{5,6}
17808         </nationalNumberPattern>
17809         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17810       </generalDesc>
17811       <fixedLine>
17812         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
17813         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17814         <exampleNumber>23123456</exampleNumber>
17815       </fixedLine>
17816       <mobile>
17817         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
17818         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17819         <exampleNumber>92123456</exampleNumber>
17820       </mobile>
17821       <tollFree>
17822         <!-- Link to document about toll-free numbers on http://www.tra.gov.om, which suggests they
17823              should be 8007 followed by 4 digits. However, the only examples I can find, including
17824              the customer help line for the main telephony company there (omantel), is 8007 followed
17825              by 5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to
17826              offer international toll-free dialing numbers - +968 500 1300 for international help
17827              desk for omantel, for example. -->
17828         <nationalNumberPattern>
17829           8007\d{4,5}|
17830           500\d{4}
17831         </nationalNumberPattern>
17832         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17833         <exampleNumber>80071234</exampleNumber>
17834       </tollFree>
17835       <!-- No premiumRate information can be found. -->
17836     </territory>
17837
17838     <!-- Panama -->
17839     <territory id="PA" countryCode="507" internationalPrefix="00" mobileNumberPortableRegion="true">
17840       <references>
17841         <!-- Last read July 9, 2014. -->
17842         <sourceUrl>http://www.asep.gob.pa/telecom/pnn/default.asp</sourceUrl>
17843         <!-- Omits the fact that mobile phones are 8 digits long. -->
17844         <sourceUrl>http://en.wikipedia.org/wiki/%2B507</sourceUrl>
17845       </references>
17846       <availableFormats>
17847         <numberFormat pattern="(\d{3})(\d{4})">
17848           <leadingDigits>[1-57-9]</leadingDigits>
17849           <format>$1-$2</format>
17850         </numberFormat>
17851         <numberFormat pattern="(\d{4})(\d{4})">
17852           <leadingDigits>6</leadingDigits>
17853           <format>$1-$2</format>
17854         </numberFormat>
17855       </availableFormats>
17856       <generalDesc>
17857         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
17858         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17859       </generalDesc>
17860       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
17861            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
17862       <fixedLine>
17863         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
17864              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
17865         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
17866              proved to be diallable. -->
17867         <nationalNumberPattern>
17868           (?:
17869             1(?:
17870               0[02-579]|
17871               19|
17872               2[37]|
17873               3[03]|
17874               4[479]|
17875               57|
17876               65|
17877               7[016-8]|
17878               8[58]|
17879               9[1349]
17880             )|
17881             2(?:
17882               [0235679]\d|
17883               1[0-7]|
17884               4[04-9]|
17885               8[028]
17886             )|
17887             3(?:
17888               [09]\d|
17889               1[14-7]|
17890               2[0-3]|
17891               3[03]|
17892               4[0457]|
17893               5[56]|
17894               6[068]|
17895               7[06-8]|
17896               8[089]
17897             )|
17898             4(?:
17899               3[013-69]|
17900               4\d|
17901               7[0-689]
17902             )|
17903             5(?:
17904               [01]\d|
17905               2[0-7]|
17906               [56]0|
17907               79
17908             )|
17909             7(?:
17910               0[09]|
17911               2[0-267]|
17912               3[06]|
17913               [49]0|
17914               5[06-9]|
17915               7[0-24-7]|
17916               8[89]
17917             )|
17918             8(?:
17919               [34]\d|
17920               5[0-4]|
17921               8[02]
17922             )|
17923             9(?:
17924               0[6-8]|
17925               1[016-8]|
17926               2[036-8]|
17927               3[3679]|
17928               40|
17929               5[0489]|
17930               6[06-9]|
17931               7[046-9]|
17932               8[36-8]|
17933               9[1-9]
17934             )
17935           )\d{4}
17936         </nationalNumberPattern>
17937         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17938         <exampleNumber>2001234</exampleNumber>
17939       </fixedLine>
17940       <mobile>
17941         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
17942              service "210", "Servicio de Busca Personas". -->
17943         <nationalNumberPattern>
17944           (?:
17945             1[16]1|
17946             21[89]|
17947             8(?:
17948               1[01]|
17949               7[23]
17950             )
17951           )\d{4}|
17952           6(?:
17953             [024-9]\d|
17954             1[0-5]|
17955             3[0-24-9]
17956           )\d{5}
17957         </nationalNumberPattern>
17958         <exampleNumber>60012345</exampleNumber>
17959       </mobile>
17960       <tollFree>
17961         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
17962         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17963         <exampleNumber>8001234</exampleNumber>
17964       </tollFree>
17965       <premiumRate>
17966         <!-- Value-added services are represented as "400" in the plan. -->
17967         <nationalNumberPattern>
17968           (?:
17969             779|
17970             8(?:
17971               2[235]|
17972               55|
17973               60|
17974               7[578]|
17975               86|
17976               95
17977             )|
17978             9(?:
17979               0[0-2]|
17980               81
17981             )
17982           )\d{4}
17983         </nationalNumberPattern>
17984         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17985         <exampleNumber>8601234</exampleNumber>
17986       </premiumRate>
17987     </territory>
17988
17989     <!-- Peru -->
17990     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
17991                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
17992                preferredExtnPrefix=" Anexo " mobileNumberPortableRegion="true">
17993       <references>
17994         <sourceUrl>http://www.itu.int/oth/T02020000A6/en</sourceUrl>
17995         <sourceUrl>http://en.wikipedia.org/wiki/+51</sourceUrl>
17996         <sourceUrl>http://www.assistbook.com/South%20America/Peru/widecodes</sourceUrl>
17997       </references>
17998       <availableFormats>
17999         <numberFormat pattern="(1)(\d{7})">
18000           <leadingDigits>1</leadingDigits>
18001           <format>$1 $2</format>
18002         </numberFormat>
18003         <numberFormat pattern="([4-8]\d)(\d{6})">
18004           <leadingDigits>
18005             [4-7]|
18006             8[2-4]
18007           </leadingDigits>
18008           <format>$1 $2</format>
18009         </numberFormat>
18010         <numberFormat pattern="(\d{3})(\d{5})">
18011           <leadingDigits>80</leadingDigits>
18012           <format>$1 $2</format>
18013         </numberFormat>
18014         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
18015         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
18016                       nationalPrefixFormattingRule="$FG">
18017           <leadingDigits>9</leadingDigits>
18018           <format>$1 $2 $3</format>
18019         </numberFormat>
18020       </availableFormats>
18021       <generalDesc>
18022         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
18023         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18024       </generalDesc>
18025       <fixedLine>
18026         <nationalNumberPattern>
18027           (?:
18028             1\d|
18029             4[1-4]|
18030             5[1-46]|
18031             6[1-7]|
18032             7[2-46]|
18033             8[2-4]
18034           )\d{6}
18035         </nationalNumberPattern>
18036         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
18037         <exampleNumber>11234567</exampleNumber>
18038       </fixedLine>
18039       <mobile>
18040         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
18041         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18042         <exampleNumber>912345678</exampleNumber>
18043       </mobile>
18044       <tollFree>
18045         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18046         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18047         <exampleNumber>80012345</exampleNumber>
18048       </tollFree>
18049       <premiumRate>
18050         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
18051         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18052         <exampleNumber>80512345</exampleNumber>
18053       </premiumRate>
18054       <sharedCost>
18055         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
18056         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18057         <exampleNumber>80112345</exampleNumber>
18058       </sharedCost>
18059       <personalNumber>
18060         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
18061         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18062         <exampleNumber>80212345</exampleNumber>
18063       </personalNumber>
18064     </territory>
18065
18066     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
18067     <territory id="PF" countryCode="689" internationalPrefix="00">
18068       <references>
18069         <sourceUrl>http://www.itu.int/oth/T020200004D/en</sourceUrl>
18070       </references>
18071       <availableFormats>
18072         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
18073           <leadingDigits>
18074             4[09]|
18075             8[79]
18076           </leadingDigits>
18077           <format>$1 $2 $3 $4</format>
18078         </numberFormat>
18079         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
18080           <leadingDigits>44</leadingDigits>
18081           <format>$1 $2 $3</format>
18082         </numberFormat>
18083       </availableFormats>
18084       <generalDesc>
18085         <nationalNumberPattern>
18086           4\d{5,7}|
18087           8\d{7}
18088         </nationalNumberPattern>
18089         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
18090       </generalDesc>
18091       <noInternationalDialling>
18092         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
18093         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18094         <exampleNumber>441234</exampleNumber>
18095       </noInternationalDialling>
18096       <fixedLine>
18097         <!-- Includes payphone prefixes. -->
18098         <nationalNumberPattern>
18099           4(?:
18100             [09][45689]\d|
18101             4
18102           )\d{4}
18103         </nationalNumberPattern>
18104         <exampleNumber>40412345</exampleNumber>
18105       </fixedLine>
18106       <mobile>
18107         <nationalNumberPattern>8[79]\d{6}</nationalNumberPattern>
18108         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18109         <exampleNumber>87123456</exampleNumber>
18110       </mobile>
18111     </territory>
18112
18113     <!-- Papua New Guinea -->
18114     <territory id="PG" countryCode="675" internationalPrefix="00">
18115       <references>
18116         <sourceUrl>http://www.itu.int/oth/T02020000A4/en</sourceUrl>
18117         <sourceUrl>http://en.wikipedia.org/wiki/%2B675</sourceUrl>
18118       </references>
18119       <availableFormats>
18120         <numberFormat pattern="(\d{3})(\d{4})">
18121           <leadingDigits>
18122             [13-689]|
18123             27
18124           </leadingDigits>
18125           <format>$1 $2</format>
18126         </numberFormat>
18127         <numberFormat pattern="(\d{4})(\d{4})">
18128           <leadingDigits>
18129             20|
18130             7
18131           </leadingDigits>
18132           <format>$1 $2</format>
18133         </numberFormat>
18134       </availableFormats>
18135       <generalDesc>
18136         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18137         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18138       </generalDesc>
18139       <fixedLine>
18140         <nationalNumberPattern>
18141           (?:
18142             3[0-2]\d|
18143             4[25]\d|
18144             5[34]\d|
18145             64[1-9]|
18146             77(?:
18147               [0-24]\d|
18148               30
18149             )|
18150             85[02-46-9]|
18151             9[78]\d
18152           )\d{4}
18153         </nationalNumberPattern>
18154         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18155         <exampleNumber>3123456</exampleNumber>
18156       </fixedLine>
18157       <mobile>
18158         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
18159              Wikipedia.
18160              As per ITU doc, prefix 20150 will expire at the end of 2015. -->
18161         <nationalNumberPattern>
18162           (?:
18163             20150|
18164             68\d{2}|
18165             7(?:
18166               [0-369]\d|
18167               75
18168             )\d{2}
18169           )\d{3}
18170         </nationalNumberPattern>
18171         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18172         <exampleNumber>6812345</exampleNumber>
18173       </mobile>
18174       <tollFree>
18175         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
18176         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18177         <exampleNumber>1801234</exampleNumber>
18178       </tollFree>
18179       <voip>
18180         <!-- VSAT prefixes are here. -->
18181         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
18182         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18183         <exampleNumber>2751234</exampleNumber>
18184       </voip>
18185     </territory>
18186
18187     <!-- Philippines -->
18188     <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
18189       <references>
18190         <sourceUrl>http://en.wikipedia.org/wiki/%2B63</sourceUrl>
18191       </references>
18192       <availableFormats>
18193         <!-- Area code separated from number. Area codes found here:
18194         http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
18195         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18196           pattern="(2)(\d{3})(\d{4})">
18197           <leadingDigits>2</leadingDigits>
18198           <format>$1 $2 $3</format>
18199         </numberFormat>
18200         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18201           pattern="(2)(\d{5})">
18202           <leadingDigits>2</leadingDigits>
18203           <format>$1 $2</format>
18204         </numberFormat>
18205         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18206           pattern="(\d{4})(\d{4,6})">
18207           <leadingDigits>
18208             3(?:
18209               23|
18210               39|
18211               46
18212             )|
18213             4(?:
18214               2[3-6]|
18215               [35]9|
18216               4[26]|
18217               76
18218             )|
18219             5(?:
18220               22|
18221               44
18222             )|
18223             642|
18224             8(?:
18225               62|
18226               8[245]
18227             )
18228           </leadingDigits>
18229           <leadingDigits>
18230             3(?:
18231               230|
18232               397|
18233               461
18234             )|
18235             4(?:
18236               2(?:
18237                 35|
18238                 [46]4|
18239                 51
18240               )|
18241               396|
18242               4(?:
18243                 22|
18244                 63
18245               )|
18246               59[347]|
18247               76[15]
18248             )|
18249             5(?:
18250               221|
18251               446
18252             )|
18253             642[23]|
18254             8(?:
18255               622|
18256               8(?:
18257                 [24]2|
18258                 5[13]
18259               )
18260             )
18261           </leadingDigits>
18262           <format>$1 $2</format>
18263         </numberFormat>
18264         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18265           pattern="(\d{5})(\d{4})">
18266           <leadingDigits>
18267             346|
18268             4(?:
18269               27|
18270               9[35]
18271             )|
18272             883
18273           </leadingDigits>
18274           <leadingDigits>
18275             3469|
18276             4(?:
18277               279|
18278               9(?:
18279                 30|
18280                 56
18281               )
18282             )|
18283             8834
18284           </leadingDigits>
18285           <format>$1 $2</format>
18286         </numberFormat>
18287         <!-- This rule is a fallback for the more specific area codes. -->
18288         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18289           pattern="([3-8]\d)(\d{3})(\d{4})">
18290           <leadingDigits>[3-8]</leadingDigits>
18291           <format>$1 $2 $3</format>
18292         </numberFormat>
18293         <numberFormat nationalPrefixFormattingRule="$NP$FG"
18294           pattern="(\d{3})(\d{3})(\d{4})">
18295           <leadingDigits>
18296             81|
18297             9
18298           </leadingDigits>
18299           <format>$1 $2 $3</format>
18300         </numberFormat>
18301         <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
18302         <numberFormat pattern="(1800)(\d{3})(\d{4})">
18303           <leadingDigits>1</leadingDigits>
18304           <format>$1 $2 $3</format>
18305         </numberFormat>
18306         <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
18307           <leadingDigits>1</leadingDigits>
18308           <format>$1 $2 $3 $4</format>
18309         </numberFormat>
18310       </availableFormats>
18311       <generalDesc>
18312         <nationalNumberPattern>
18313           2\d{5,7}|
18314           [3-9]\d{7,9}|
18315           1800\d{7,9}
18316         </nationalNumberPattern>
18317         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
18318       </generalDesc>
18319       <fixedLine>
18320         <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
18321              that have only 5 digits after the area code; plus it seems the 8822 area code is
18322              followed by 6 digits, and 8842 by only 4. -->
18323         <nationalNumberPattern>
18324           2\d{5}(?:\d{2})?|
18325           (?:
18326             3[2-68]|
18327             4[2-9]|
18328             5[2-6]|
18329             6[2-58]|
18330             7[24578]|
18331             8[2-8]
18332           )\d{7}|
18333           88(?:
18334             22\d{6}|
18335             42\d{4}
18336           )
18337         </nationalNumberPattern>
18338         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
18339         <exampleNumber>21234567</exampleNumber>
18340       </fixedLine>
18341       <mobile>
18342         <nationalNumberPattern>
18343           (?:
18344             81[37]|
18345             9(?:
18346               0[5-9]|
18347               1[024-9]|
18348               2[0-35-9]|
18349               3[02-9]|
18350               4[236-9]|
18351               7[34-79]|
18352               89|
18353               9[4-9]
18354             )
18355           )\d{7}
18356         </nationalNumberPattern>
18357         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18358         <exampleNumber>9051234567</exampleNumber>
18359       </mobile>
18360       <!-- Information on toll-free numbers collected from searching the internet -->
18361       <tollFree>
18362         <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
18363         <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
18364         <exampleNumber>180012345678</exampleNumber>
18365       </tollFree>
18366       <!-- No information can be found about other types of numbers (such as premium rate) in the
18367            Philippines. -->
18368     </territory>
18369
18370     <!-- Pakistan -->
18371     <territory id="PK" countryCode="92" internationalPrefix="00"
18372                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18373                mobileNumberPortableRegion="true">
18374       <references>
18375         <sourceUrl>http://www.itu.int/oth/T02020000A1/en</sourceUrl>
18376         <sourceUrl>http://en.wikipedia.org/wiki/%2B92</sourceUrl>
18377       </references>
18378       <availableFormats>
18379         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
18380              formatted nicely by the AYTF. -->
18381         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
18382           <leadingDigits>
18383             (?:
18384               2[125]|
18385               4[0-246-9]|
18386               5[1-35-7]|
18387               6[1-8]|
18388               7[14]|
18389               8[16]|
18390               91
18391             )1
18392           </leadingDigits>
18393           <leadingDigits>
18394             (?:
18395               2[125]|
18396               4[0-246-9]|
18397               5[1-35-7]|
18398               6[1-8]|
18399               7[14]|
18400               8[16]|
18401               91
18402             )11
18403           </leadingDigits>
18404           <leadingDigits>
18405             (?:
18406               2[125]|
18407               4[0-246-9]|
18408               5[1-35-7]|
18409               6[1-8]|
18410               7[14]|
18411               8[16]|
18412               91
18413             )111
18414           </leadingDigits>
18415           <format>$1 $2 $3 $4</format>
18416         </numberFormat>
18417         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
18418           <leadingDigits>
18419             2[349]|
18420             45|
18421             54|
18422             60|
18423             72|
18424             8[2-5]|
18425             9[2-9]
18426           </leadingDigits>
18427           <leadingDigits>
18428             (?:
18429               2[349]|
18430               45|
18431               54|
18432               60|
18433               72|
18434               8[2-5]|
18435               9[2-9]
18436             )\d1
18437           </leadingDigits>
18438           <leadingDigits>
18439             (?:
18440               2[349]|
18441               45|
18442               54|
18443               60|
18444               72|
18445               8[2-5]|
18446               9[2-9]
18447             )\d11
18448           </leadingDigits>
18449           <leadingDigits>
18450             (?:
18451               2[349]|
18452               45|
18453               54|
18454               60|
18455               72|
18456               8[2-5]|
18457               9[2-9]
18458             )\d111
18459           </leadingDigits>
18460           <format>$1 $2 $3 $4</format>
18461         </numberFormat>
18462         <numberFormat pattern="(\d{2})(\d{7,8})">
18463           <leadingDigits>
18464             (?:
18465               2[125]|
18466               4[0-246-9]|
18467               5[1-35-7]|
18468               6[1-8]|
18469               7[14]|
18470               8[16]|
18471               91
18472             )[2-9]
18473           </leadingDigits>
18474           <format>$1 $2</format>
18475         </numberFormat>
18476         <numberFormat pattern="(\d{3})(\d{6,7})">
18477           <leadingDigits>
18478             2[349]|
18479             45|
18480             54|
18481             60|
18482             72|
18483             8[2-5]|
18484             9[2-9]
18485           </leadingDigits>
18486           <leadingDigits>
18487             (?:
18488               2[349]|
18489               45|
18490               54|
18491               60|
18492               72|
18493               8[2-5]|
18494               9[2-9]
18495             )\d[2-9]
18496           </leadingDigits>
18497           <format>$1 $2</format>
18498         </numberFormat>
18499         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
18500           <leadingDigits>3</leadingDigits>
18501           <format>$1 $2</format>
18502         </numberFormat>
18503         <numberFormat pattern="([15]\d{3})(\d{5,6})">
18504           <leadingDigits>
18505             58[12]|
18506             1
18507           </leadingDigits>
18508           <format>$1 $2</format>
18509         </numberFormat>
18510         <!-- This is from online examples. -->
18511         <numberFormat pattern="(586\d{2})(\d{5})">
18512           <leadingDigits>586</leadingDigits>
18513           <format>$1 $2</format>
18514         </numberFormat>
18515         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
18516           <leadingDigits>[89]00</leadingDigits>
18517           <format>$1 $2 $3</format>
18518         </numberFormat>
18519       </availableFormats>
18520       <generalDesc>
18521         <!-- This is horribly complex because the country code is 92, and several area codes start
18522              with 92, and the number length is widely variable. -->
18523         <nationalNumberPattern>
18524           1\d{8}|
18525           [2-8]\d{5,11}|
18526           9(?:
18527             [013-9]\d{4,9}|
18528             2\d(?:
18529               111\d{6}|
18530               \d{3,7}
18531             )
18532           )
18533         </nationalNumberPattern>
18534         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
18535       </generalDesc>
18536       <fixedLine>
18537         <!-- The subscriber number length is not well defined for some area codes. From online
18538              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
18539              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
18540              of Karachi and Lahore (both 8). -->
18541         <nationalNumberPattern>
18542           (?:
18543             21|
18544             42
18545           )[2-9]\d{7}|
18546           (?:
18547             2[25]|
18548             4[0146-9]|
18549             5[1-35-7]|
18550             6[1-8]|
18551             7[14]|
18552             8[16]|
18553             91
18554           )[2-9]\d{6}|
18555           (?:
18556             2(?:
18557               3[2358]|
18558               4[2-4]|
18559               9[2-8]
18560             )|
18561             45[3479]|
18562             54[2-467]|
18563             60[468]|
18564             72[236]|
18565             8(?:
18566               2[2-689]|
18567               3[23578]|
18568               4[3478]|
18569               5[2356]
18570             )|
18571             9(?:
18572               1|
18573               2[2-8]|
18574               3[27-9]|
18575               4[2-6]|
18576               6[3569]|
18577               9[25-8]
18578             )
18579           )[2-9]\d{5,6}|
18580           58[126]\d{7}
18581         </nationalNumberPattern>
18582         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
18583         <exampleNumber>2123456789</exampleNumber>
18584       </fixedLine>
18585       <mobile>
18586         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
18587              can be found online with these prefixes. Added 310 based on information from Zong, and
18588              316 based on information found online. -->
18589         <nationalNumberPattern>
18590           3(?:
18591             0\d|
18592             1[0-6]|
18593             2[0-5]|
18594             [34][0-7]|
18595             55|
18596             64
18597           )\d{7}
18598         </nationalNumberPattern>
18599         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18600         <exampleNumber>3012345678</exampleNumber>
18601       </mobile>
18602       <tollFree>
18603         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18604         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18605         <exampleNumber>80012345</exampleNumber>
18606       </tollFree>
18607       <premiumRate>
18608         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
18609         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18610         <exampleNumber>90012345</exampleNumber>
18611       </premiumRate>
18612       <!-- These are referred to as UPT numbers in the plan. -->
18613       <personalNumber>
18614         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
18615         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18616         <!-- The example number here is the test number from the plan. -->
18617         <exampleNumber>122044444</exampleNumber>
18618       </personalNumber>
18619       <uan>
18620         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
18621              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
18622              what type of number they are. We exclude Azad Jammu, Kashmir and Northern Areas here
18623              since no online example UANs can be found, and they have an "access code" at the start,
18624              making it difficult to guess what a UAN in these areas would look like. -->
18625         <nationalNumberPattern>
18626           (?:
18627             2(?:
18628               [125]|
18629               3[2358]|
18630               4[2-4]|
18631               9[2-8]
18632             )|
18633             4(?:
18634               [0-246-9]|
18635               5[3479]
18636             )|
18637             5(?:
18638               [1-35-7]|
18639               4[2-467]
18640             )|
18641             6(?:
18642               [1-8]|
18643               0[468]
18644             )|
18645             7(?:
18646               [14]|
18647               2[236]
18648             )|
18649             8(?:
18650               [16]|
18651               2[2-689]|
18652               3[23578]|
18653               4[3478]|
18654               5[2356]
18655             )|
18656             9(?:
18657               1|
18658               22|
18659               3[27-9]|
18660               4[2-6]|
18661               6[3569]|
18662               9[2-7]
18663             )
18664           )111\d{6}
18665         </nationalNumberPattern>
18666         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
18667         <exampleNumber>21111825888</exampleNumber>
18668       </uan>
18669     </territory>
18670
18671     <!-- Poland -->
18672     <territory id="PL" countryCode="48" internationalPrefix="00" mobileNumberPortableRegion="true">
18673       <references>
18674         <sourceUrl>http://en.wikipedia.org/wiki/%2B48</sourceUrl>
18675         <sourceUrl>http://www.itu.int/oth/T02020000A8/en</sourceUrl>
18676         <!-- Source is in Polish. -->
18677         <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>
18678         <sourceUrl>http://www.sgwp.wp.mil.pl/pl/1_1225.html</sourceUrl>
18679       </references>
18680       <availableFormats>
18681         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
18682           <leadingDigits>
18683             [14]|
18684             2[0-57-9]|
18685             3[2-4]|
18686             5[24-689]|
18687             6[1-3578]|
18688             7[14-7]|
18689             8[1-79]|
18690             9[145]
18691           </leadingDigits>
18692           <format>$1 $2 $3 $4</format>
18693         </numberFormat>
18694         <numberFormat pattern="(\d{2})(\d{1})(\d{4})">
18695           <leadingDigits>[12]2</leadingDigits>
18696           <format>$1 $2 $3</format>
18697         </numberFormat>
18698         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
18699              Poles that this is more usual. -->
18700         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
18701           <leadingDigits>
18702             261|
18703             39|
18704             5[0137]|
18705             6[0469]|
18706             7[02389]|
18707             8[08]
18708           </leadingDigits>
18709           <format>$1 $2 $3</format>
18710         </numberFormat>
18711         <!-- Additional patterns for shorter pager numbers. -->
18712         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
18713           <leadingDigits>64</leadingDigits>
18714           <format>$1 $2 $3</format>
18715         </numberFormat>
18716         <numberFormat pattern="(\d{3})(\d{3})">
18717           <leadingDigits>64</leadingDigits>
18718           <format>$1 $2</format>
18719         </numberFormat>
18720       </availableFormats>
18721       <generalDesc>
18722         <nationalNumberPattern>
18723           [12]\d{6,8}|
18724           [3-57-9]\d{8}|
18725           6\d{5,8}
18726         </nationalNumberPattern>
18727         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18728       </generalDesc>
18729       <fixedLine>
18730         <!-- The plan says all geographical numbers are 9 digits; but in at least Warsaw (22) and
18731              Krakow (12) we have found internationally diallable numbers that are 7 digits instead,
18732              so we support those too. Numbers which start with 261 are allocated for the militrary,
18733              see: http://www.sgwp.wp.mil.pl/pl/1_1225.html. -->
18734         <nationalNumberPattern>
18735           (?:
18736             1[2-8]|
18737             2[2-59]|
18738             3[2-4]|
18739             4[1-468]|
18740             5[24-689]|
18741             6[1-3578]|
18742             7[14-7]|
18743             8[1-79]|
18744             9[145]
18745           )\d{7}|
18746           [12]2\d{5}|
18747           261\d{6}
18748         </nationalNumberPattern>
18749         <exampleNumber>123456789</exampleNumber>
18750       </fixedLine>
18751       <mobile>
18752         <nationalNumberPattern>
18753           (?:
18754             5[0137]|
18755             6[069]|
18756             7[2389]|
18757             88
18758           )\d{7}
18759         </nationalNumberPattern>
18760         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18761         <exampleNumber>512345678</exampleNumber>
18762       </mobile>
18763       <pager>
18764         <nationalNumberPattern>64\d{4,7}</nationalNumberPattern>
18765         <exampleNumber>641234567</exampleNumber>
18766       </pager>
18767       <tollFree>
18768         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
18769         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18770         <exampleNumber>800123456</exampleNumber>
18771       </tollFree>
18772       <premiumRate>
18773         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
18774         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18775         <exampleNumber>701234567</exampleNumber>
18776       </premiumRate>
18777       <sharedCost>
18778         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
18779         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18780         <exampleNumber>801234567</exampleNumber>
18781       </sharedCost>
18782       <voip>
18783         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
18784         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18785         <exampleNumber>391234567</exampleNumber>
18786       </voip>
18787     </territory>
18788
18789     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
18790     <territory id="PM" countryCode="508" internationalPrefix="00"
18791                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18792       <references>
18793         <sourceUrl>http://www.itu.int/oth/T02020000B2/en</sourceUrl>
18794       </references>
18795       <availableFormats>
18796         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
18797           <format>$1 $2 $3</format>
18798         </numberFormat>
18799       </availableFormats>
18800       <generalDesc>
18801         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
18802         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18803       </generalDesc>
18804       <fixedLine>
18805         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
18806         <exampleNumber>411234</exampleNumber>
18807       </fixedLine>
18808       <mobile>
18809         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
18810         <exampleNumber>551234</exampleNumber>
18811       </mobile>
18812     </territory>
18813
18814     <!-- Pitcairn Island -->
18815     <!-- id="PN" -->
18816     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
18817          satellite phones. -->
18818
18819     <!-- Puerto Rico -->
18820     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
18821                internationalPrefix="011">
18822       <references>
18823         <sourceUrl>http://www.itu.int/oth/T02020000AA/en</sourceUrl>
18824       </references>
18825       <generalDesc>
18826         <!-- NANPA country - uses US formatting rules -->
18827         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
18828         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
18829       </generalDesc>
18830       <fixedLine>
18831         <nationalNumberPattern>
18832           (?:
18833             787|
18834             939
18835           )[2-9]\d{6}
18836         </nationalNumberPattern>
18837         <exampleNumber>7872345678</exampleNumber>
18838       </fixedLine>
18839       <mobile>
18840         <nationalNumberPattern>
18841           (?:
18842             787|
18843             939
18844           )[2-9]\d{6}
18845         </nationalNumberPattern>
18846         <exampleNumber>7872345678</exampleNumber>
18847       </mobile>
18848       <tollFree>
18849         <nationalNumberPattern>
18850           8(?:
18851             00|
18852             44|
18853             55|
18854             66|
18855             77|
18856             88
18857           )[2-9]\d{6}
18858         </nationalNumberPattern>
18859         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18860         <exampleNumber>8002345678</exampleNumber>
18861       </tollFree>
18862       <premiumRate>
18863         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
18864         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18865         <exampleNumber>9002345678</exampleNumber>
18866       </premiumRate>
18867       <personalNumber>
18868         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
18869         <nationalNumberPattern>
18870           5(?:
18871             00|
18872             33|
18873             44|
18874             66|
18875             77
18876           )[2-9]\d{6}
18877         </nationalNumberPattern>
18878         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18879         <exampleNumber>5002345678</exampleNumber>
18880       </personalNumber>
18881     </territory>
18882
18883     <!-- Palestinian Authority -->
18884     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
18885          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
18886          subset of the Israeli formats. -->
18887     <territory id="PS" countryCode="970" internationalPrefix="00"
18888                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18889       <references>
18890         <sourceUrl>http://en.wikipedia.org/wiki/%2B970</sourceUrl>
18891         <sourceUrl>http://www.wtng.info/wtng-970-ps.html</sourceUrl>
18892         <sourceUrl>http://www.paltel.ps</sourceUrl>
18893       </references>
18894       <availableFormats>
18895         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
18896           <leadingDigits>[2489]</leadingDigits>
18897           <format>$1 $2 $3</format>
18898         </numberFormat>
18899         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
18900           <leadingDigits>5</leadingDigits>
18901           <format>$1 $2 $3</format>
18902         </numberFormat>
18903         <numberFormat nationalPrefixFormattingRule="$FG"
18904           pattern="(1[78]00)(\d{3})(\d{3})">
18905           <leadingDigits>1[78]</leadingDigits>
18906           <format>$1 $2 $3</format>
18907         </numberFormat>
18908         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
18909       </availableFormats>
18910       <generalDesc>
18911         <nationalNumberPattern>
18912           [24589]\d{7,8}|
18913           1(?:
18914             [78]\d{8}|
18915             [49]\d{2,3}
18916           )
18917         </nationalNumberPattern>
18918         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
18919       </generalDesc>
18920       <fixedLine>
18921         <nationalNumberPattern>
18922           (?:
18923             22[234789]|
18924             42[45]|
18925             82[01458]|
18926             92[369]
18927           )\d{5}
18928         </nationalNumberPattern>
18929         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18930         <exampleNumber>22234567</exampleNumber>
18931       </fixedLine>
18932       <mobile>
18933         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
18934         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18935         <exampleNumber>599123456</exampleNumber>
18936       </mobile>
18937       <tollFree>
18938         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
18939         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18940         <exampleNumber>1800123456</exampleNumber>
18941       </tollFree>
18942       <premiumRate>
18943         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
18944         <nationalNumberPattern>
18945           1(?:
18946             4|
18947             9\d
18948            )\d{2}
18949         </nationalNumberPattern>
18950         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
18951         <exampleNumber>19123</exampleNumber>
18952       </premiumRate>
18953       <sharedCost>
18954         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
18955         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18956         <exampleNumber>1700123456</exampleNumber>
18957       </sharedCost>
18958     </territory>
18959
18960     <!-- Portugal -->
18961     <territory id="PT" countryCode="351" internationalPrefix="00" mobileNumberPortableRegion="true">
18962       <references>
18963         <sourceUrl>http://www.anacom.pt/render.jsp?categoryId=279098</sourceUrl>
18964       </references>
18965       <availableFormats>
18966         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
18967              two digits in the first group; however, this doesn't seem to be majority usage based on
18968              searches online. -->
18969         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
18970           <leadingDigits>2[12]</leadingDigits>
18971           <format>$1 $2 $3</format>
18972         </numberFormat>
18973         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
18974           <leadingDigits>
18975             2[3-9]|
18976             [346-9]
18977           </leadingDigits>
18978           <format>$1 $2 $3</format>
18979         </numberFormat>
18980       </availableFormats>
18981       <generalDesc>
18982         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
18983         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18984       </generalDesc>
18985       <fixedLine>
18986         <nationalNumberPattern>
18987           2(?:
18988             [12]\d|
18989             [35][1-689]|
18990             4[1-59]|
18991             6[1-35689]|
18992             7[1-9]|
18993             8[1-69]|
18994             9[1256]
18995           )\d{6}
18996         </nationalNumberPattern>
18997         <exampleNumber>212345678</exampleNumber>
18998       </fixedLine>
18999       <mobile>
19000         <nationalNumberPattern>
19001           9(?:
19002             [136]\d{2}|
19003             2[0-79]\d|
19004             480
19005           )\d{5}
19006         </nationalNumberPattern>
19007         <exampleNumber>912345678</exampleNumber>
19008       </mobile>
19009       <tollFree>
19010         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
19011         <exampleNumber>800123456</exampleNumber>
19012       </tollFree>
19013       <premiumRate>
19014         <!-- Fixed maximum cost numbers: 761=0.60€, 761=1€, 762=2€. -->
19015         <nationalNumberPattern>
19016           76(?:
19017             0[1-57]|
19018             1[2-47]|
19019             2[237]
19020           )\d{5}
19021         </nationalNumberPattern>
19022         <exampleNumber>760123456</exampleNumber>
19023       </premiumRate>
19024       <sharedCost>
19025         <!-- 808 are priced as local calls, 809 are national calls. -->
19026         <nationalNumberPattern>
19027           80(?:
19028             8\d|
19029             9[1579]
19030           )\d{5}
19031         </nationalNumberPattern>
19032         <exampleNumber>808123456</exampleNumber>
19033       </sharedCost>
19034       <personalNumber>
19035         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
19036         <exampleNumber>884123456</exampleNumber>
19037       </personalNumber>
19038       <voip>
19039         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
19040         <exampleNumber>301234567</exampleNumber>
19041       </voip>
19042       <uan>
19043         <nationalNumberPattern>
19044           70(?:
19045             7\d|
19046             8[17]
19047           )\d{5}
19048         </nationalNumberPattern>
19049         <exampleNumber>707123456</exampleNumber>
19050       </uan>
19051     </territory>
19052
19053     <!-- Palau -->
19054     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
19055       <references>
19056         <sourceUrl>http://www.itu.int/oth/T02020000A2/en</sourceUrl>
19057       </references>
19058       <availableFormats>
19059         <numberFormat pattern="(\d{3})(\d{4})">
19060           <format>$1 $2</format>
19061         </numberFormat>
19062       </availableFormats>
19063       <generalDesc>
19064         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
19065         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19066       </generalDesc>
19067       <fixedLine>
19068         <nationalNumberPattern>
19069           2552255|
19070           (?:
19071             277|
19072             345|
19073             488|
19074             5(?:
19075               35|
19076               44|
19077               87
19078             )|
19079             6(?:
19080               22|
19081               54|
19082               79
19083             )|
19084             7(?:
19085               33|
19086               47
19087             )|
19088             8(?:
19089               24|
19090               55|
19091               76
19092             )
19093           )\d{4}
19094         </nationalNumberPattern>
19095         <exampleNumber>2771234</exampleNumber>
19096       </fixedLine>
19097       <mobile>
19098         <nationalNumberPattern>
19099           (?:
19100             6[234689]0|
19101             77[45789]
19102           )\d{4}
19103         </nationalNumberPattern>
19104         <exampleNumber>6201234</exampleNumber>
19105       </mobile>
19106     </territory>
19107
19108     <!-- Paraguay -->
19109     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0"
19110                mobileNumberPortableRegion="true">
19111       <references>
19112         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay</sourceUrl>
19113         <sourceUrl>http://www.itu.int/oth/T02020000A5/en</sourceUrl>
19114         <sourceUrl>http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html</sourceUrl>
19115       </references>
19116       <availableFormats>
19117         <!-- CONATEL plan. -->
19118         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
19119           <leadingDigits>
19120             (?:
19121               [26]1|
19122               3[289]|
19123               4[124678]|
19124               7[123]|
19125               8[1236]
19126             )
19127           </leadingDigits>
19128           <format>$1 $2</format>
19129         </numberFormat>
19130         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
19131           <leadingDigits>[2-9]0</leadingDigits>
19132           <format>$1 $2</format>
19133         </numberFormat>
19134         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
19135           <leadingDigits>9[1-9]</leadingDigits>
19136           <format>$1 $2</format>
19137         </numberFormat>
19138         <!-- Format seen in examples found online. -->
19139         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19140           <leadingDigits>8700</leadingDigits>
19141           <format>$1 $2 $3</format>
19142         </numberFormat>
19143         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
19144              -->
19145         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
19146           <leadingDigits>[2-8][1-9]</leadingDigits>
19147           <format>$1 $2</format>
19148         </numberFormat>
19149       </availableFormats>
19150       <generalDesc>
19151         <nationalNumberPattern>
19152           5[0-5]\d{4,7}|
19153           [2-46-9]\d{5,8}
19154         </nationalNumberPattern>
19155         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
19156       </generalDesc>
19157       <fixedLine>
19158         <nationalNumberPattern>
19159           (?:
19160             [26]1|
19161             3[289]|
19162             4[124678]|
19163             7[123]|
19164             8[1236]
19165           )\d{5,7}|
19166           (?:
19167             2(?:
19168               2[4568]|
19169               7[15]|
19170               9[1-5]
19171             )|
19172             3(?:
19173               18|
19174               3[167]|
19175               4[2357]|
19176               51
19177             )|
19178             4(?:
19179               18|
19180               2[45]|
19181               3[12]|
19182               5[13]|
19183               64|
19184               71|
19185               9[1-47]
19186             )|
19187             5(?:
19188               [1-4]\d|
19189               5[0234]
19190             )|
19191             6(?:
19192               3[1-3]|
19193               44|
19194               7[1-4678]
19195             )|
19196             7(?:
19197               17|
19198               4[0-4]|
19199               6[1-578]|
19200               75|
19201               8[0-8]
19202             )|
19203             858
19204           )\d{5,6}
19205         </nationalNumberPattern>
19206         <exampleNumber>212345678</exampleNumber>
19207       </fixedLine>
19208       <mobile>
19209         <!-- 962 was added for Tigo. -->
19210         <nationalNumberPattern>
19211           9(?:
19212             6[12]|
19213             [78][1-6]|
19214             9[1-5]
19215           )\d{6}
19216         </nationalNumberPattern>
19217         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19218         <exampleNumber>961456789</exampleNumber>
19219       </mobile>
19220       <voip>
19221         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
19222         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19223         <exampleNumber>870012345</exampleNumber>
19224       </voip>
19225       <uan>
19226         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
19227         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19228         <exampleNumber>201234567</exampleNumber>
19229       </uan>
19230     </territory>
19231
19232     <!-- Qatar -->
19233     <territory id="QA" countryCode="974" internationalPrefix="00" mobileNumberPortableRegion="true">
19234       <references>
19235         <sourceUrl>http://www.itu.int/oth/T02020000AB/en</sourceUrl>
19236         <sourceUrl>http://wtng.info/wtng-qq.html</sourceUrl>
19237       </references>
19238       <availableFormats>
19239         <numberFormat pattern="([28]\d{2})(\d{4})">
19240           <leadingDigits>[28]</leadingDigits>
19241           <format>$1 $2</format>
19242         </numberFormat>
19243         <numberFormat pattern="([3-7]\d{3})(\d{4})">
19244           <leadingDigits>[3-7]</leadingDigits>
19245           <format>$1 $2</format>
19246         </numberFormat>
19247       </availableFormats>
19248       <generalDesc>
19249         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
19250         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19251       </generalDesc>
19252       <fixedLine>
19253         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
19254         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
19255         <exampleNumber>44123456</exampleNumber>
19256       </fixedLine>
19257       <mobile>
19258         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
19259         <exampleNumber>33123456</exampleNumber>
19260       </mobile>
19261       <pager>
19262         <nationalNumberPattern>
19263           2(?:
19264             [12]\d|
19265             61
19266           )\d{4}
19267         </nationalNumberPattern>
19268         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19269         <exampleNumber>2123456</exampleNumber>
19270       </pager>
19271       <tollFree>
19272         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
19273         <exampleNumber>8001234</exampleNumber>
19274       </tollFree>
19275       <!-- No premiumRate information can be found. -->
19276     </territory>
19277
19278     <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
19279     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
19280          used by both of them. -->
19281     <territory id="RE" countryCode="262" internationalPrefix="00"
19282                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19283                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
19284       <references>
19285         <sourceUrl>http://www.itu.int/oth/T020200004B/en</sourceUrl>
19286       </references>
19287       <availableFormats>
19288         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
19289           <format>$1 $2 $3 $4</format>
19290         </numberFormat>
19291       </availableFormats>
19292       <generalDesc>
19293         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
19294         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19295       </generalDesc>
19296       <fixedLine>
19297         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
19298         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
19299         <exampleNumber>262161234</exampleNumber>
19300       </fixedLine>
19301       <mobile>
19302         <nationalNumberPattern>
19303           6(?:
19304             9[23]|
19305             47
19306           )\d{6}
19307         </nationalNumberPattern>
19308         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19309         <exampleNumber>692123456</exampleNumber>
19310       </mobile>
19311       <!-- 08* Numbers in Réunion are the same as those valid in France. -->
19312       <tollFree>
19313         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
19314         <exampleNumber>801234567</exampleNumber>
19315       </tollFree>
19316       <premiumRate>
19317         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
19318         <exampleNumber>891123456</exampleNumber>
19319       </premiumRate>
19320       <sharedCost>
19321         <nationalNumberPattern>
19322           8(?:
19323             1[019]|
19324             2[0156]|
19325             84|
19326             90
19327           )\d{6}
19328         </nationalNumberPattern>
19329         <exampleNumber>810123456</exampleNumber>
19330       </sharedCost>
19331     </territory>
19332
19333     <!-- Romania -->
19334     <!-- Extension prefix found online, confirmed by a Romanian. -->
19335     <territory id="RO" countryCode="40" internationalPrefix="00"
19336                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19337                preferredExtnPrefix=" int " mobileNumberPortableRegion="true">
19338       <references>
19339         <sourceUrl>http://www.itu.int/oth/T02020000AC/en</sourceUrl>
19340         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania</sourceUrl>
19341       </references>
19342       <availableFormats>
19343         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
19344           <leadingDigits>[23]1</leadingDigits>
19345           <format>$1 $2 $3</format>
19346         </numberFormat>
19347         <numberFormat pattern="(21)(\d{4})">
19348           <leadingDigits>21</leadingDigits>
19349           <format>$1 $2</format>
19350         </numberFormat>
19351         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19352           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
19353                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
19354                majority of numbers found online follow this convention. -->
19355           <leadingDigits>
19356             [23][3-7]|
19357             [7-9]
19358           </leadingDigits>
19359           <format>$1 $2 $3</format>
19360         </numberFormat>
19361         <numberFormat pattern="(2\d{2})(\d{3})">
19362           <leadingDigits>2[3-6]</leadingDigits>
19363           <format>$1 $2</format>
19364         </numberFormat>
19365       </availableFormats>
19366       <generalDesc>
19367         <nationalNumberPattern>
19368           2\d{5,8}|
19369           [37-9]\d{8}
19370         </nationalNumberPattern>
19371         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
19372              to wikipedia and people must dial the full number. However, there are still short
19373              numbers that total 6 digits long, so the possible number pattern should take these into
19374              account. -->
19375         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19376       </generalDesc>
19377       <fixedLine>
19378         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
19379              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
19380              this based on numbers found online and the wikipedia article which indicate that these
19381              are four digits long in Bucharest only, and three digits elsewhere. -->
19382         <nationalNumberPattern>
19383           2(?:
19384             1(?:
19385               \d{7}|
19386               9\d{3}
19387             )|
19388             [3-6](?:
19389               \d{7}|
19390               \d9\d{2}
19391             )
19392           )|
19393           3[13-6]\d{7}
19394           </nationalNumberPattern>
19395         <exampleNumber>211234567</exampleNumber>
19396       </fixedLine>
19397       <mobile>
19398         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
19399              numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
19400              open-source report and confirmation by existence of such numbers online. -->
19401         <nationalNumberPattern>
19402           7(?:
19403             000|
19404             [1-8]\d{2}|
19405             99\d
19406           )\d{5}
19407         </nationalNumberPattern>
19408         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19409         <exampleNumber>712345678</exampleNumber>
19410       </mobile>
19411       <tollFree>
19412         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19413         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19414         <exampleNumber>800123456</exampleNumber>
19415       </tollFree>
19416       <premiumRate>
19417         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
19418         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19419         <exampleNumber>900123456</exampleNumber>
19420       </premiumRate>
19421       <sharedCost>
19422         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19423         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19424         <exampleNumber>801123456</exampleNumber>
19425       </sharedCost>
19426       <personalNumber>
19427         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
19428         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19429         <exampleNumber>802123456</exampleNumber>
19430       </personalNumber>
19431       <uan>
19432         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
19433              location-independent national numbers. Only numbers beginning with 37 have been seen so
19434              these are the only ones supported for now. -->
19435         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
19436         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19437         <exampleNumber>372123456</exampleNumber>
19438       </uan>
19439     </territory>
19440
19441     <!-- Serbia -->
19442     <territory id="RS" countryCode="381" internationalPrefix="00"
19443                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19444                mobileNumberPortableRegion="true">
19445       <references>
19446         <sourceUrl>http://www.itu.int/oth/T02020000B9/en</sourceUrl>
19447         <sourceUrl>http://registar.ratel.rs/en/reg202</sourceUrl>
19448       </references>
19449       <availableFormats>
19450         <numberFormat pattern="([23]\d{2})(\d{4,9})">
19451           <leadingDigits>
19452             (?:
19453               2[389]|
19454               39
19455             )0
19456           </leadingDigits>
19457           <format>$1 $2</format>
19458         </numberFormat>
19459         <numberFormat pattern="([1-3]\d)(\d{5,10})">
19460           <leadingDigits>
19461             1|
19462             2(?:
19463               [0-24-7]|
19464               [389][1-9]
19465             )|
19466             3(?:
19467               [0-8]|
19468               9[1-9]
19469             )
19470           </leadingDigits>
19471           <format>$1 $2</format>
19472         </numberFormat>
19473         <numberFormat pattern="(6\d)(\d{6,8})">
19474           <leadingDigits>6</leadingDigits>
19475           <format>$1 $2</format>
19476         </numberFormat>
19477         <numberFormat pattern="([89]\d{2})(\d{3,9})">
19478           <leadingDigits>[89]</leadingDigits>
19479           <format>$1 $2</format>
19480         </numberFormat>
19481         <numberFormat pattern="(7[26])(\d{4,9})">
19482           <leadingDigits>7[26]</leadingDigits>
19483           <format>$1 $2</format>
19484         </numberFormat>
19485         <numberFormat pattern="(7[08]\d)(\d{4,9})">
19486           <leadingDigits>7[08]</leadingDigits>
19487           <format>$1 $2</format>
19488         </numberFormat>
19489       </availableFormats>
19490       <generalDesc>
19491         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
19492              by 2-9) and the country calling code (381). -->
19493         <nationalNumberPattern>
19494           [126-9]\d{4,11}|
19495           3(?:
19496             [0-79]\d{3,10}|
19497             8[2-9]\d{2,9}
19498           )
19499         </nationalNumberPattern>
19500         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19501       </generalDesc>
19502       <fixedLine>
19503         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
19504              has been issused, so we allow 11 1X here. -->
19505         <nationalNumberPattern>
19506           (?:
19507             1(?:
19508               [02-9][2-9]|
19509               1[1-9]
19510             )\d|
19511             2(?:
19512               [0-24-7][2-9]\d|
19513               [389](?:
19514                 0[2-9]|
19515                 [2-9]\d
19516               )
19517             )|
19518             3(?:
19519               [0-8][2-9]\d|
19520               9(?:
19521                 [2-9]\d|
19522                 0[2-9]
19523               )
19524             )
19525           )\d{3,8}
19526         </nationalNumberPattern>
19527         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19528         <exampleNumber>10234567</exampleNumber>
19529       </fixedLine>
19530       <mobile>
19531         <nationalNumberPattern>
19532           6(?:
19533             [0-689]|
19534             7\d
19535           )\d{6,7}
19536         </nationalNumberPattern>
19537         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
19538         <exampleNumber>601234567</exampleNumber>
19539       </mobile>
19540       <tollFree>
19541         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
19542         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19543         <exampleNumber>80012345</exampleNumber>
19544       </tollFree>
19545       <premiumRate>
19546         <nationalNumberPattern>
19547           (?:
19548             90[0169]|
19549             78\d
19550           )\d{3,7}
19551         </nationalNumberPattern>
19552         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19553         <exampleNumber>90012345</exampleNumber>
19554       </premiumRate>
19555       <uan>
19556         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
19557         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19558         <exampleNumber>700123456</exampleNumber>
19559       </uan>
19560     </territory>
19561
19562     <!-- Russian Federation -->
19563     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
19564                internationalPrefix="810" nationalPrefix="8"
19565                nationalPrefixFormattingRule="$NP ($FG)"
19566                nationalPrefixOptionalWhenFormatting="true" >
19567       <references>
19568         <sourceUrl>http://www.itu.int/oth/T02020000AD/en</sourceUrl>
19569         <sourceUrl>http://en.wikipedia.org/wiki/%2B7</sourceUrl>
19570       </references>
19571       <availableFormats>
19572         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
19573              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
19574              Kazakhstan as well. -->
19575         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
19576           <!-- Local numbers only - these do not start with the national prefix. -->
19577           <leadingDigits>[1-79]</leadingDigits>
19578           <format>$1-$2-$3</format>
19579           <intlFormat>NA</intlFormat>
19580         </numberFormat>
19581         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
19582           <leadingDigits>[34689]</leadingDigits>
19583           <format>$1 $2-$3-$4</format>
19584         </numberFormat>
19585         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
19586           <leadingDigits>7</leadingDigits>
19587           <format>$1 $2 $3</format>
19588         </numberFormat>
19589       </availableFormats>
19590       <generalDesc>
19591         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
19592         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19593       </generalDesc>
19594       <fixedLine>
19595         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
19596              in the yellow pages, and on their own website and is listed on wikipedia. This applies
19597              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
19598         <nationalNumberPattern>
19599           (?:
19600             3(?:
19601               0[12]|
19602               4[1-35-79]|
19603               5[1-3]|
19604               8[1-58]|
19605               9[0145]
19606             )|
19607             4(?:
19608               01|
19609               1[1356]|
19610               2[13467]|
19611               7[1-5]|
19612               8[1-7]|
19613               9[1-689]
19614             )|
19615             8(?:
19616               1[1-8]|
19617               2[01]|
19618               3[13-6]|
19619               4[0-8]|
19620               5[15]|
19621               6[1-35-7]|
19622               7[1-37-9]
19623             )
19624           )\d{7}
19625         </nationalNumberPattern>
19626         <exampleNumber>3011234567</exampleNumber>
19627       </fixedLine>
19628       <mobile>
19629         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
19630         <exampleNumber>9123456789</exampleNumber>
19631       </mobile>
19632       <tollFree>
19633         <!-- The metadata states that 804 numbers are UAN numbers, but
19634              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
19635              numbers. -->
19636         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
19637         <exampleNumber>8001234567</exampleNumber>
19638       </tollFree>
19639       <premiumRate>
19640         <!-- Covers tele-voting numbers as well. -->
19641         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
19642         <exampleNumber>8091234567</exampleNumber>
19643       </premiumRate>
19644     </territory>
19645
19646     <!-- Rwanda -->
19647     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
19648          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
19649          as http://www.tigo.co.rw "Choose Your Number" service. -->
19650     <territory id="RW" countryCode="250" internationalPrefix="00"
19651                nationalPrefix="0" leadingZeroPossible="true">
19652       <references>
19653         <sourceUrl>http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf</sourceUrl>
19654         <sourceUrl>http://en.wikipedia.org/wiki/+250</sourceUrl>
19655       </references>
19656       <availableFormats>
19657         <numberFormat nationalPrefixFormattingRule="$FG"
19658           pattern="(2\d{2})(\d{3})(\d{3})">
19659           <leadingDigits>2</leadingDigits>
19660           <format>$1 $2 $3</format>
19661         </numberFormat>
19662         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
19663           <leadingDigits>[7-9]</leadingDigits>
19664           <format>$1 $2 $3</format>
19665         </numberFormat>
19666         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
19667           <leadingDigits>0</leadingDigits>
19668           <format>$1 $2 $3 $4</format>
19669         </numberFormat>
19670       </availableFormats>
19671       <generalDesc>
19672         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
19673         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
19674       </generalDesc>
19675       <fixedLine>
19676         <!-- We support satellite numbers here, since they are in the plan, although no recent
19677              online examples can be found. We also support fixed-line ranges that have been reserved
19678              and paid for, even where no online numbers can be found. -->
19679         <nationalNumberPattern>
19680           2[258]\d{7}|
19681           06\d{6}
19682         </nationalNumberPattern>
19683         <exampleNumber>250123456</exampleNumber>
19684       </fixedLine>
19685       <mobile>
19686         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
19687              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
19688              license revoked. -->
19689         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
19690         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19691         <exampleNumber>720123456</exampleNumber>
19692       </mobile>
19693       <tollFree>
19694         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19695         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19696         <exampleNumber>800123456</exampleNumber>
19697       </tollFree>
19698       <premiumRate>
19699         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
19700         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19701         <exampleNumber>900123456</exampleNumber>
19702       </premiumRate>
19703     </territory>
19704
19705     <!-- Saudi Arabia -->
19706     <territory id="SA" countryCode="966" internationalPrefix="00"
19707                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19708                mobileNumberPortableRegion="true">
19709       <references>
19710         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia</sourceUrl>
19711         <sourceUrl>http://www.itu.int/oth/T02020000B7/en</sourceUrl>
19712       </references>
19713       <availableFormats>
19714         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
19715           <leadingDigits>[1-467]</leadingDigits>
19716           <format>$1 $2 $3</format>
19717         </numberFormat>
19718         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
19719           <leadingDigits>1[1-467]</leadingDigits>
19720           <format>$1 $2 $3</format>
19721         </numberFormat>
19722         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
19723           <leadingDigits>5</leadingDigits>
19724           <format>$1 $2 $3</format>
19725         </numberFormat>
19726         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
19727              the fact that no numbers of this form found online have a trunk prefix added. -->
19728         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
19729           <leadingDigits>92</leadingDigits>
19730           <format>$1 $2</format>
19731         </numberFormat>
19732         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
19733           <leadingDigits>80</leadingDigits>
19734           <format>$1 $2 $3</format>
19735         </numberFormat>
19736         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
19737           <leadingDigits>81</leadingDigits>
19738           <format>$1 $2 $3</format>
19739         </numberFormat>
19740       </availableFormats>
19741       <generalDesc>
19742         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
19743              fixed-line numbers. -->
19744         <nationalNumberPattern>
19745           1\d{7,8}|
19746           (?:
19747             [2-467]|
19748             92
19749           )\d{7}|
19750           5\d{8}|
19751           8\d{9}
19752         </nationalNumberPattern>
19753         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
19754       </generalDesc>
19755       <fixedLine>
19756         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
19757              happened in May for area code 1 (parallel running ended July 13th, 2013) and then in
19758              August for the other fixed-line numbers (parallel running ends October 18th, 2013). -->
19759         <nationalNumberPattern>
19760           11\d{7}|
19761           1?(?:
19762             2[24-8]|
19763             3[35-8]|
19764             4[3-68]|
19765             6[2-5]|
19766             7[235-7]
19767           )\d{6}
19768         </nationalNumberPattern>
19769         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
19770         <exampleNumber>112345678</exampleNumber>
19771       </fixedLine>
19772       <mobile>
19773         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
19774              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
19775              until we find evidence that this is an error, leaving them at 10 for now. -->
19776         <nationalNumberPattern>
19777           (?:
19778             5(?:
19779               [013-689]\d|
19780               7[0-26-8]
19781             )|
19782             811\d
19783           )\d{6}
19784         </nationalNumberPattern>
19785         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
19786         <exampleNumber>512345678</exampleNumber>
19787       </mobile>
19788       <tollFree>
19789         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
19790         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19791         <exampleNumber>8001234567</exampleNumber>
19792       </tollFree>
19793       <sharedCost>
19794         <!-- Including shared revenue with shared cost here. -->
19795         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
19796         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19797         <exampleNumber>920012345</exampleNumber>
19798       </sharedCost>
19799     </territory>
19800
19801     <!-- Solomon Islands -->
19802     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
19803       <references>
19804         <sourceUrl>http://www.itu.int/oth/T02020000BF/en</sourceUrl>
19805       </references>
19806       <!-- A single group is used to format 5-digit numbers. This formatting pattern follows
19807            the guidelines in the ITU document. -->
19808       <availableFormats>
19809         <numberFormat pattern="(\d{2})(\d{5})">
19810           <leadingDigits>[7-9]</leadingDigits>
19811           <format>$1 $2</format>
19812         </numberFormat>
19813       </availableFormats>
19814       <generalDesc>
19815         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
19816         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
19817       </generalDesc>
19818       <fixedLine>
19819         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
19820              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
19821         <nationalNumberPattern>
19822           (?:
19823             1[4-79]|
19824             [23]\d|
19825             4[01]|
19826             5[03]|
19827             6[0-37]
19828           )\d{3}
19829         </nationalNumberPattern>
19830         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19831         <exampleNumber>40123</exampleNumber>
19832       </fixedLine>
19833       <mobile>
19834         <!-- The 795 prefix is not in the ITU plan (5.XII.2014), but was added because such a number
19835              was dialed successfully. -->
19836         <nationalNumberPattern>
19837           48\d{3}|
19838           7(?:
19839             30|
19840             [46-8]\d|
19841             5[025-9]|
19842             9[0-5]
19843           )\d{4}|
19844           8[4-8]\d{5}|
19845           9(?:
19846             1[2-9]|
19847             2[013-9]|
19848             3[0-2]|
19849             [46]\d|
19850             5[0-46-9]|
19851             7[0-689]|
19852             8[0-79]|
19853             9[0-8]
19854           )\d{4}
19855         </nationalNumberPattern>
19856         <exampleNumber>7421234</exampleNumber>
19857       </mobile>
19858       <tollFree>
19859         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
19860         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19861         <exampleNumber>18123</exampleNumber>
19862       </tollFree>
19863       <voip>
19864         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
19865         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19866         <exampleNumber>51123</exampleNumber>
19867       </voip>
19868     </territory>
19869
19870     <!-- Seychelles -->
19871     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
19872                preferredInternationalPrefix="00">
19873       <references>
19874         <sourceUrl>http://www.itu.int/oth/T02020000BA/en</sourceUrl>
19875         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles</sourceUrl>
19876       </references>
19877       <availableFormats>
19878         <numberFormat pattern="(\d{3})(\d{3})">
19879           <leadingDigits>[89]</leadingDigits>
19880           <format>$1 $2</format>
19881         </numberFormat>
19882         <numberFormat pattern="(\d)(\d{3})(\d{3})">
19883           <leadingDigits>[246]</leadingDigits>
19884           <format>$1 $2 $3</format>
19885         </numberFormat>
19886       </availableFormats>
19887       <generalDesc>
19888         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
19889         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
19890       </generalDesc>
19891       <fixedLine>
19892         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
19893              they are more expensive to call than other Fixed Line services. ISDN and DID services
19894              are here too, since they seem to be also fixed-line phone numbers. -->
19895         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
19896         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19897         <exampleNumber>4217123</exampleNumber>
19898       </fixedLine>
19899       <mobile>
19900         <!-- Includes Fixed Cellular. -->
19901         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
19902         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19903         <exampleNumber>2510123</exampleNumber>
19904       </mobile>
19905       <tollFree>
19906         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
19907         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19908         <exampleNumber>800000</exampleNumber>
19909       </tollFree>
19910       <premiumRate>
19911         <!-- Using this to represent Value Added Service in the plan. -->
19912         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
19913         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19914         <exampleNumber>981234</exampleNumber>
19915       </premiumRate>
19916       <voip>
19917         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
19918         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19919         <exampleNumber>6412345</exampleNumber>
19920       </voip>
19921     </territory>
19922
19923     <!-- Sudan -->
19924     <territory id="SD" countryCode="249" internationalPrefix="00"
19925                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19926       <references>
19927         <sourceUrl>http://www.itu.int/oth/T02020000C4/en</sourceUrl>
19928       </references>
19929       <availableFormats>
19930         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19931           <format>$1 $2 $3</format>
19932         </numberFormat>
19933       </availableFormats>
19934       <generalDesc>
19935         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
19936         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19937       </generalDesc>
19938       <fixedLine>
19939         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
19940              found online. -->
19941         <nationalNumberPattern>
19942           1(?:
19943             [125]\d|
19944             8[3567]
19945           )\d{6}
19946         </nationalNumberPattern>
19947         <exampleNumber>121231234</exampleNumber>
19948       </fixedLine>
19949       <mobile>
19950         <!-- Adding 90X as online numbers have been found with this prefix. -->
19951         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
19952         <exampleNumber>911231234</exampleNumber>
19953       </mobile>
19954     </territory>
19955
19956     <!-- Sweden -->
19957     <territory id="SE" countryCode="46" internationalPrefix="00"
19958                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19959                mobileNumberPortableRegion="true">
19960       <references>
19961         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf</sourceUrl>
19962         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Nrplansammanst%C3%A4llning-2013-07-05.pdf</sourceUrl>
19963       </references>
19964       <availableFormats>
19965       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
19966            http://gulasidorna.eniro.se -->
19967         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
19968           <leadingDigits>8</leadingDigits>
19969           <format>$1-$2 $3 $4</format>
19970           <intlFormat>$1 $2 $3 $4</intlFormat>
19971         </numberFormat>
19972         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
19973           <leadingDigits>
19974             1[013689]|
19975             2[0136]|
19976             3[1356]|
19977             4[0246]|
19978             54|
19979             6[03]|
19980             90
19981           </leadingDigits>
19982           <format>$1-$2 $3 $4</format>
19983           <intlFormat>$1 $2 $3 $4</intlFormat>
19984         </numberFormat>
19985         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
19986           <leadingDigits>
19987             1[13689]|
19988             2[136]|
19989             3[1356]|
19990             4[0246]|
19991             54|
19992             6[03]|
19993             90
19994           </leadingDigits>
19995           <format>$1-$2 $3</format>
19996           <intlFormat>$1 $2 $3</intlFormat>
19997         </numberFormat>
19998         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
19999           <leadingDigits>
20000             1[2457]|
20001             2[2457-9]|
20002             3[0247-9]|
20003             4[1357-9]|
20004             5[0-35-9]|
20005             6[124-9]|
20006             9(?:
20007               [125-8]|
20008               3[0-5]|
20009               4[0-3]
20010             )
20011           </leadingDigits>
20012           <format>$1-$2 $3 $4</format>
20013           <intlFormat>$1 $2 $3 $4</intlFormat>
20014         </numberFormat>
20015         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
20016           <leadingDigits>
20017             1[2457]|
20018             2[2457-9]|
20019             3[0247-9]|
20020             4[1357-9]|
20021             5[0-35-9]|
20022             6[124-9]|
20023             9(?:
20024               [125-8]|
20025               3[0-5]|
20026               4[0-3]
20027             )
20028           </leadingDigits>
20029           <format>$1-$2 $3</format>
20030           <intlFormat>$1 $2 $3</intlFormat>
20031         </numberFormat>
20032         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
20033           <leadingDigits>7</leadingDigits>
20034           <format>$1-$2 $3 $4</format>
20035           <intlFormat>$1 $2 $3 $4</intlFormat>
20036         </numberFormat>
20037         <numberFormat pattern="(77)(\d{2})(\d{2})">
20038           <leadingDigits>7</leadingDigits>
20039           <format>$1-$2$3</format>
20040           <intlFormat>$1 $2 $3</intlFormat>
20041         </numberFormat>
20042         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
20043           <leadingDigits>20</leadingDigits>
20044           <format>$1-$2 $3</format>
20045           <intlFormat>$1 $2 $3</intlFormat>
20046         </numberFormat>
20047         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
20048           <leadingDigits>9[034]</leadingDigits>
20049           <format>$1-$2 $3 $4</format>
20050           <intlFormat>$1 $2 $3 $4</intlFormat>
20051         </numberFormat>
20052         <numberFormat pattern="(9[034]\d)(\d{4})">
20053           <leadingDigits>9[034]</leadingDigits>
20054           <format>$1-$2</format>
20055           <intlFormat>$1 $2</intlFormat>
20056         </numberFormat>
20057       </availableFormats>
20058       <generalDesc>
20059         <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
20060         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
20061       </generalDesc>
20062       <fixedLine>
20063         <nationalNumberPattern>
20064           1(?:
20065             0[1-8]\d{6}|
20066             [136]\d{5,7}|
20067             (?:
20068               2[0-35]|
20069               4[0-4]|
20070               5[0-25-9]|
20071               7[13-6]|
20072               [89]\d
20073             )\d{5,6}
20074           )|
20075           2(?:
20076             [136]\d{5,7}|
20077             (?:
20078               2[0-7]|
20079               4[0136-8]|
20080               5[0138]|
20081               7[018]|
20082               8[01]|
20083               9[0-57]
20084             )\d{5,6}
20085           )|
20086           3(?:
20087             [356]\d{5,7}|
20088             (?:
20089               0[0-4]|
20090               1\d|
20091               2[0-25]|
20092               4[056]|
20093               7[0-2]|
20094               8[0-3]|
20095               9[023]
20096             )\d{5,6}
20097           )|
20098           4(?:
20099             0[1-9]\d{4,6}|
20100             [246]\d{5,7}|
20101             (?:
20102               1[013-8]|
20103               3[0135]|
20104               5[14-79]|
20105               7[0-246-9]|
20106               8[0156]|
20107               9[0-689]
20108             )\d{5,6}
20109           )|
20110           5(?:
20111             0[0-6]|
20112             [15][0-5]|
20113             2[0-68]|
20114             3[0-4]|
20115             4\d|
20116             6[03-5]|
20117             7[013]|
20118             8[0-79]|
20119             9[01]
20120           )\d{5,6}|
20121           6(?:
20122             0[1-9]\d{4,6}|
20123             3\d{5,7}|
20124             (?:
20125               1[1-3]|
20126               2[0-4]|
20127               4[02-57]|
20128               5[0-37]|
20129               6[0-3]|
20130               7[0-2]|
20131               8[0247]|
20132               9[0-356]
20133             )\d{5,6}
20134           )|
20135           8[1-9]\d{5,7}|
20136           9(?:
20137             0[1-9]\d{4,6}|
20138             (?:
20139               1[0-68]|
20140               2\d|
20141               3[02-5]|
20142               4[0-3]|
20143               5[0-4]|
20144               [68][01]|
20145               7[0135-8]
20146             )\d{5,6}
20147           )
20148         </nationalNumberPattern>
20149         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20150         <exampleNumber>8123456</exampleNumber>
20151       </fixedLine>
20152       <mobile>
20153         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
20154         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20155         <exampleNumber>701234567</exampleNumber>
20156       </mobile>
20157       <pager>
20158         <nationalNumberPattern>74[02-9]\d{6}</nationalNumberPattern>
20159         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20160         <exampleNumber>740123456</exampleNumber>
20161       </pager>
20162       <tollFree>
20163         <nationalNumberPattern>
20164           20(?:
20165             0(?:
20166               0\d{2}|
20167               [1-9](?:
20168                 0\d{1,4}|
20169                 [1-9]\d{4}
20170               )
20171             )|
20172             1(?:
20173               0\d{4}|
20174               [1-9]\d{4,5}
20175             )|
20176             [2-9]\d{5}
20177           )
20178         </nationalNumberPattern>
20179         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20180         <exampleNumber>20123456</exampleNumber>
20181       </tollFree>
20182       <premiumRate>
20183         <nationalNumberPattern>
20184           9(?:
20185             00|
20186             39|
20187             44
20188           )(?:
20189             1(?:
20190               [0-26]\d{5}|
20191               [3-57-9]\d{2}
20192             )|
20193             2(?:
20194               [0-2]\d{5}|
20195               [3-9]\d{2}
20196             )|
20197             3(?:
20198               [0139]\d{5}|
20199               [24-8]\d{2}
20200             )|
20201             4(?:
20202               [045]\d{5}|
20203               [1-36-9]\d{2}
20204             )|
20205             5(?:
20206               5\d{5}|
20207               [0-46-9]\d{2}
20208             )|
20209             6(?:
20210               [679]\d{5}|
20211               [0-58]\d{2}
20212             )|
20213             7(?:
20214               [078]\d{5}|
20215               [1-69]\d{2}
20216             )|
20217             8(?:
20218               [578]\d{5}|
20219               [0-469]\d{2}
20220             )
20221           )
20222         </nationalNumberPattern>
20223         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
20224         <exampleNumber>9001234567</exampleNumber>
20225       </premiumRate>
20226       <sharedCost>
20227         <nationalNumberPattern>
20228           77(?:
20229             0(?:
20230               0\d{2}|
20231               [1-9](?:
20232                 0\d|
20233                 [1-9]\d{4}
20234               )
20235             )|
20236             [1-6][1-9]\d{5}
20237           )
20238         </nationalNumberPattern>
20239         <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
20240         <exampleNumber>771234567</exampleNumber>
20241       </sharedCost>
20242       <personalNumber>
20243         <nationalNumberPattern>75[1-8]\d{6}</nationalNumberPattern>
20244         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20245         <exampleNumber>751234567</exampleNumber>
20246       </personalNumber>
20247     </territory>
20248
20249     <!-- Singapore -->
20250     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d"
20251                mobileNumberPortableRegion="true">
20252       <references>
20253         <sourceUrl>http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx</sourceUrl>
20254       </references>
20255       <availableFormats>
20256         <numberFormat pattern="([3689]\d{3})(\d{4})">
20257           <leadingDigits>
20258             [369]|
20259             8[1-9]
20260           </leadingDigits>
20261           <format>$1 $2</format>
20262         </numberFormat>
20263         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
20264           <leadingDigits>1[89]</leadingDigits>
20265           <format>$1 $2 $3</format>
20266         </numberFormat>
20267         <numberFormat pattern="(7000)(\d{4})(\d{3})">
20268           <leadingDigits>70</leadingDigits>
20269           <format>$1 $2 $3</format>
20270         </numberFormat>
20271         <numberFormat pattern="(800)(\d{3})(\d{4})">
20272           <leadingDigits>80</leadingDigits>
20273           <format>$1 $2 $3</format>
20274         </numberFormat>
20275       </availableFormats>
20276       <generalDesc>
20277         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
20278              easily strip off leading "65" country codes. -->
20279         <nationalNumberPattern>
20280           [36]\d{7}|
20281           [17-9]\d{7,10}
20282         </nationalNumberPattern>
20283         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
20284       </generalDesc>
20285       <fixedLine>
20286         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
20287         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20288         <exampleNumber>61234567</exampleNumber>
20289       </fixedLine>
20290       <mobile>
20291         <nationalNumberPattern>
20292           (?:
20293             8[1-8]|
20294             9[0-8]
20295           )\d{6}
20296         </nationalNumberPattern>
20297         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20298         <exampleNumber>81234567</exampleNumber>
20299       </mobile>
20300       <tollFree>
20301         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
20302         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
20303         <exampleNumber>18001234567</exampleNumber>
20304       </tollFree>
20305       <premiumRate>
20306         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
20307         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20308         <exampleNumber>19001234567</exampleNumber>
20309       </premiumRate>
20310       <voip>
20311         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
20312         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20313         <exampleNumber>31234567</exampleNumber>
20314       </voip>
20315       <uan>
20316         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
20317              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
20318              -->
20319         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
20320         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20321         <exampleNumber>70001234567</exampleNumber>
20322       </uan>
20323     </territory>
20324
20325     <!-- Saint Helena -->
20326     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
20327       <references>
20328         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
20329       </references>
20330       <!-- Numbers are formatted as a block. -->
20331       <generalDesc>
20332         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
20333         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
20334       </generalDesc>
20335       <fixedLine>
20336         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
20337              The new pattern is first, followed by the old (hence the repetition of the leading 2).
20338              -->
20339         <nationalNumberPattern>
20340           2(?:
20341             [0-57-9]\d|
20342             6[4-9]
20343           )\d{2}|
20344           (?:
20345             [2-46]\d|
20346             7[01]
20347           )\d{2}
20348         </nationalNumberPattern>
20349         <!-- Using St Helena Tourism as the example number. -->
20350         <exampleNumber>2158</exampleNumber>
20351       </fixedLine>
20352       <mobile>
20353         <nationalNumberPattern>NA</nationalNumberPattern>
20354         <possibleNumberPattern>NA</possibleNumberPattern>
20355       </mobile>
20356       <premiumRate>
20357         <nationalNumberPattern>
20358           (?:
20359             [59]\d|
20360             7[2-9]
20361           )\d{2}
20362         </nationalNumberPattern>
20363         <exampleNumber>5012</exampleNumber>
20364       </premiumRate>
20365     </territory>
20366
20367     <!-- Slovenia -->
20368     <territory id="SI" countryCode="386" internationalPrefix="00"
20369                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20370                mobileNumberPortableRegion="true">
20371       <references>
20372         <sourceUrl>http://www.itu.int/oth/T02020000BE/en</sourceUrl>
20373       </references>
20374       <availableFormats>
20375         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
20376           pattern="(\d)(\d{3})(\d{2})(\d{2})">
20377           <leadingDigits>
20378             [12]|
20379             3[4-8]|
20380             4[24-8]|
20381             5[2-8]|
20382             7[3-8]
20383           </leadingDigits>
20384           <format>$1 $2 $3 $4</format>
20385           </numberFormat>
20386         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
20387           <leadingDigits>
20388             [37][01]|
20389             4[0139]|
20390             51|
20391             6
20392           </leadingDigits>
20393           <format>$1 $2 $3</format>
20394           </numberFormat>
20395         <numberFormat pattern="([89][09])(\d{3,6})">
20396           <leadingDigits>[89][09]</leadingDigits>
20397           <format>$1 $2</format>
20398         </numberFormat>
20399         <numberFormat pattern="([58]\d{2})(\d{5})">
20400           <leadingDigits>
20401             59|
20402             8[1-3]
20403           </leadingDigits>
20404           <format>$1 $2</format>
20405         </numberFormat>
20406       </availableFormats>
20407       <generalDesc>
20408         <nationalNumberPattern>
20409           [1-7]\d{6,7}|
20410           [89]\d{4,7}
20411         </nationalNumberPattern>
20412         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20413       </generalDesc>
20414       <fixedLine>
20415         <nationalNumberPattern>
20416           (?:
20417             1\d|
20418             [25][2-8]|
20419             3[4-8]|
20420             4[24-8]|
20421             7[3-8]
20422           )\d{6}
20423         </nationalNumberPattern>
20424         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
20425         <exampleNumber>11234567</exampleNumber>
20426       </fixedLine>
20427       <mobile>
20428         <!-- We include 043 and 049 here - it is VoIP in the plan, but is actually used to provide
20429              mobile coverage to Kosovo. Also added 068, which is used by the mobile operator bob.si
20430          -->
20431         <nationalNumberPattern>
20432           (?:
20433             [37][01]|
20434             4[0139]|
20435             51|
20436             6[48]
20437           )\d{6}
20438         </nationalNumberPattern>
20439         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20440         <exampleNumber>31234567</exampleNumber>
20441       </mobile>
20442       <tollFree>
20443         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
20444         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20445         <exampleNumber>80123456</exampleNumber>
20446       </tollFree>
20447       <premiumRate>
20448         <!-- Includes televoting, mass calling -->
20449         <nationalNumberPattern>
20450           90\d{4,6}|
20451           89[1-3]\d{2,5}
20452         </nationalNumberPattern>
20453         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20454         <exampleNumber>90123456</exampleNumber>
20455       </premiumRate>
20456       <voip>
20457         <nationalNumberPattern>
20458           (?:
20459             59|
20460             8[1-3]
20461           )\d{6}
20462         </nationalNumberPattern>
20463         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20464         <exampleNumber>59012345</exampleNumber>
20465       </voip>
20466     </territory>
20467
20468     <!-- Svalbard -->
20469     <!-- Metadata shared with Norway. -->
20470     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
20471       <references>
20472         <sourceUrl>http://www.npt.no/pt_internet/numsys/E.164.pdf</sourceUrl>
20473       </references>
20474       <generalDesc>
20475         <nationalNumberPattern>
20476           0\d{4}|
20477           [4789]\d{7}
20478         </nationalNumberPattern>
20479         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
20480       </generalDesc>
20481       <fixedLine>
20482         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
20483         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20484         <exampleNumber>79123456</exampleNumber>
20485       </fixedLine>
20486       <!-- Copied from Norway metadata. -->
20487       <mobile>
20488         <nationalNumberPattern>
20489           (?:
20490             4[015-8]|
20491             5[89]|
20492             9\d
20493           )\d{6}
20494         </nationalNumberPattern>
20495         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20496         <exampleNumber>41234567</exampleNumber>
20497       </mobile>
20498       <tollFree>
20499         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
20500         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20501         <exampleNumber>80012345</exampleNumber>
20502       </tollFree>
20503       <premiumRate>
20504         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
20505         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20506         <exampleNumber>82012345</exampleNumber>
20507       </premiumRate>
20508       <sharedCost>
20509         <nationalNumberPattern>
20510           810(?:
20511             0[0-6]|
20512             [2-8]\d
20513           )\d{3}
20514         </nationalNumberPattern>
20515         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20516         <exampleNumber>81021234</exampleNumber>
20517       </sharedCost>
20518       <personalNumber>
20519         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
20520         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20521         <exampleNumber>88012345</exampleNumber>
20522       </personalNumber>
20523       <voip>
20524         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
20525         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20526         <exampleNumber>85012345</exampleNumber>
20527       </voip>
20528       <uan>
20529         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
20530         <nationalNumberPattern>
20531           0\d{4}|
20532           81(?:
20533             0(?:
20534               0[7-9]|
20535               1\d
20536             )|
20537             5\d{2}
20538           )\d{3}
20539         </nationalNumberPattern>
20540         <exampleNumber>01234</exampleNumber>
20541       </uan>
20542       <voicemail>
20543         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
20544         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20545         <exampleNumber>81212345</exampleNumber>
20546       </voicemail>
20547     </territory>
20548
20549     <!-- Slovakia -->
20550     <territory id="SK" countryCode="421" internationalPrefix="00"
20551                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20552                mobileNumberPortableRegion="true">
20553       <references>
20554         <sourceUrl>http://www.itu.int/oth/T02020000BD/en</sourceUrl>
20555       </references>
20556       <availableFormats>
20557         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
20558           <leadingDigits>2</leadingDigits>
20559           <format>$1/$2 $3 $4</format>
20560         </numberFormat>
20561         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
20562           <leadingDigits>[3-5]</leadingDigits>
20563           <format>$1/$2 $3 $4</format>
20564         </numberFormat>
20565         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
20566           <leadingDigits>[689]</leadingDigits>
20567           <format>$1 $2 $3</format>
20568         </numberFormat>
20569       </availableFormats>
20570       <generalDesc>
20571         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
20572         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20573       </generalDesc>
20574       <noInternationalDialling>
20575         <nationalNumberPattern>
20576           (?:
20577             8(?:
20578               00|
20579               [5-9]\d
20580             )|
20581             9(?:
20582               00|
20583               [78]\d
20584             )
20585           )\d{6}
20586         </nationalNumberPattern>
20587         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20588         <exampleNumber>800123456</exampleNumber>
20589       </noInternationalDialling>
20590       <fixedLine>
20591         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
20592         <exampleNumber>212345678</exampleNumber>
20593       </fixedLine>
20594       <mobile>
20595         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
20596              deeming it valid for now. -->
20597         <nationalNumberPattern>
20598           9(?:
20599             0[1-8]|
20600             1[0-24-9]|
20601             4[0489]
20602           )\d{6}
20603         </nationalNumberPattern>
20604         <exampleNumber>912123456</exampleNumber>
20605       </mobile>
20606       <tollFree>
20607         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20608         <exampleNumber>800123456</exampleNumber>
20609       </tollFree>
20610       <premiumRate>
20611         <nationalNumberPattern>
20612           9(?:
20613             [78]\d{7}|
20614             00\d{6}
20615           )
20616         </nationalNumberPattern>
20617         <exampleNumber>900123456</exampleNumber>
20618       </premiumRate>
20619       <sharedCost>
20620         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
20621         <exampleNumber>850123456</exampleNumber>
20622       </sharedCost>
20623       <voip>
20624         <nationalNumberPattern>
20625           6(?:
20626             5[0-4]|
20627             9[0-6]
20628           )\d{6}
20629         </nationalNumberPattern>
20630         <exampleNumber>690123456</exampleNumber>
20631       </voip>
20632       <uan>
20633         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
20634         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20635         <exampleNumber>961234567</exampleNumber>
20636       </uan>
20637     </territory>
20638
20639     <!-- Sierra Leone -->
20640     <territory id="SL" countryCode="232" internationalPrefix="00"
20641                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
20642       <references>
20643         <sourceUrl>http://www.itu.int/oth/T02020000BB/en</sourceUrl>
20644       </references>
20645       <availableFormats>
20646         <!-- Following formatting of online yellow pages http://www.leonedirect.com -->
20647         <numberFormat pattern="(\d{2})(\d{6})">
20648           <format>$1 $2</format>
20649         </numberFormat>
20650       </availableFormats>
20651       <generalDesc>
20652         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
20653         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20654       </generalDesc>
20655       <fixedLine>
20656         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
20657         <exampleNumber>22221234</exampleNumber>
20658       </fixedLine>
20659       <mobile>
20660         <nationalNumberPattern>
20661           (?:
20662             2[15]|
20663             3[034]|
20664             4[04]|
20665             5[05]|
20666             7[6-9]|
20667             88|
20668             99
20669           )\d{6}
20670         </nationalNumberPattern>
20671         <exampleNumber>25123456</exampleNumber>
20672       </mobile>
20673     </territory>
20674
20675     <!-- San Marino -->
20676     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
20677          optional when dialling from outside the country; the phone number can be reached both with
20678          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
20679          are used to ensure that if the 0549 is not present, it will be added. -->
20680     <territory id="SM" countryCode="378" internationalPrefix="00"
20681                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
20682                leadingZeroPossible="true">
20683       <references>
20684         <sourceUrl>http://www.itu.int/oth/T02020000B5/en</sourceUrl>
20685         <!-- Information about Italy. -->
20686         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
20687         <sourceUrl>http://en.wikipedia.org/wiki/%2B378</sourceUrl>
20688       </references>
20689       <availableFormats>
20690         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
20691           <leadingDigits>[5-7]</leadingDigits>
20692           <format>$1 $2 $3 $4</format>
20693         </numberFormat>
20694         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
20695         <numberFormat pattern="(0549)(\d{6})">
20696           <leadingDigits>0</leadingDigits>
20697           <format>$1 $2</format>
20698           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
20699                formatting in international format. -->
20700           <intlFormat>($1) $2</intlFormat>
20701         </numberFormat>
20702         <!-- A rule in case the number has been stored without the leading 0549 necessary for
20703              fixed-lines. -->
20704         <numberFormat pattern="(\d{6})">
20705           <leadingDigits>[89]</leadingDigits>
20706           <format>0549 $1</format>
20707           <intlFormat>(0549) $1</intlFormat>
20708         </numberFormat>
20709       </availableFormats>
20710       <generalDesc>
20711         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
20712         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
20713       </generalDesc>
20714       <!-- Example numbers provided by the Telecommunications Services. -->
20715       <fixedLine>
20716         <nationalNumberPattern>
20717           0549(?:
20718             8[0157-9]|
20719             9\d
20720           )\d{4}
20721         </nationalNumberPattern>
20722         <exampleNumber>0549886377</exampleNumber>
20723       </fixedLine>
20724       <mobile>
20725         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
20726         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20727         <exampleNumber>66661212</exampleNumber>
20728       </mobile>
20729       <premiumRate>
20730         <!-- Includes Video Call numbers. -->
20731         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
20732         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20733         <exampleNumber>71123456</exampleNumber>
20734       </premiumRate>
20735       <voip>
20736         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
20737         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20738         <exampleNumber>58001110</exampleNumber>
20739       </voip>
20740     </territory>
20741
20742     <!-- Senegal -->
20743     <territory id="SN" countryCode="221" internationalPrefix="00">
20744       <references>
20745         <sourceUrl>http://www.itu.int/oth/T02020000B8/en</sourceUrl>
20746         <sourceUrl>http://www.artpsenegal.net</sourceUrl>
20747       </references>
20748       <availableFormats>
20749         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
20750              the national numbering plan. -->
20751         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
20752           <leadingDigits>[379]</leadingDigits>
20753           <format>$1 $2 $3 $4</format>
20754         </numberFormat>
20755         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20756           <leadingDigits>8</leadingDigits>
20757           <format>$1 $2 $3 $4</format>
20758         </numberFormat>
20759       </availableFormats>
20760       <generalDesc>
20761         <nationalNumberPattern>[3789]\d{8}</nationalNumberPattern>
20762         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20763       </generalDesc>
20764       <fixedLine>
20765         <nationalNumberPattern>
20766           3(?:
20767             0(?:
20768               1[0-2]|
20769               80
20770             )|
20771             282|
20772             3(?:
20773               8[1-9]|
20774               9[3-9]
20775             )|
20776             611|
20777             90[1-5]
20778           )\d{5}
20779         </nationalNumberPattern>
20780         <exampleNumber>301012345</exampleNumber>
20781       </fixedLine>
20782       <mobile>
20783         <nationalNumberPattern>
20784           7(?:
20785             [067]\d|
20786             21|
20787             8[0-26]|
20788             90
20789           )\d{6}
20790         </nationalNumberPattern>
20791         <exampleNumber>701234567</exampleNumber>
20792       </mobile>
20793       <tollFree>
20794         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20795         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20796         <exampleNumber>800123456</exampleNumber>
20797       </tollFree>
20798       <premiumRate>
20799         <!-- Revenu Partagé in the plan. -->
20800         <nationalNumberPattern>88[4689]\d{6}</nationalNumberPattern>
20801         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20802         <exampleNumber>884123456</exampleNumber>
20803       </premiumRate>
20804       <sharedCost>
20805         <nationalNumberPattern>81[02468]\d{6}</nationalNumberPattern>
20806         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20807         <exampleNumber>810123456</exampleNumber>
20808       </sharedCost>
20809       <voip>
20810         <!-- Also covers satellite telephony ranges. -->
20811         <nationalNumberPattern>
20812           3392\d{5}|
20813           93330\d{4}
20814         </nationalNumberPattern>
20815         <exampleNumber>933301234</exampleNumber>
20816       </voip>
20817     </territory>
20818
20819     <!-- Somalia -->
20820     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
20821          information available, and the numerous telecom carriers were previously working under an
20822          unregulated environment. The extra prefixes were added from the contact phone numbers of
20823          the countries main telecom operators. We also have received information that a national
20824          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
20825          for some operators, so that is included here although we do not use it when formatting. -->
20826     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
20827       <references>
20828         <sourceUrl>http://www.itu.int/oth/T02020000C0/en</sourceUrl>
20829         <sourceUrl>http://en.wikipedia.org/wiki/+252</sourceUrl>
20830       </references>
20831       <availableFormats>
20832         <!-- These follow formats online, such as http://www.hortel.net/contact_us.html -->
20833         <numberFormat pattern="(\d)(\d{6})">
20834           <leadingDigits>
20835             2[0-79]|
20836             [13-5]
20837           </leadingDigits>
20838           <format>$1 $2</format>
20839         </numberFormat>
20840         <numberFormat pattern="(\d)(\d{7})">
20841           <leadingDigits>
20842             24|
20843             [67]
20844           </leadingDigits>
20845           <format>$1 $2</format>
20846         </numberFormat>
20847         <numberFormat pattern="(\d{2})(\d{5,7})">
20848           <leadingDigits>
20849             15|
20850             28|
20851             6[1378]
20852           </leadingDigits>
20853           <format>$1 $2</format>
20854         </numberFormat>
20855         <numberFormat pattern="(69\d)(\d{6})">
20856           <leadingDigits>69</leadingDigits>
20857           <format>$1 $2</format>
20858         </numberFormat>
20859         <numberFormat pattern="(90\d)(\d{3})(\d{3})">
20860           <leadingDigits>90</leadingDigits>
20861           <format>$1 $2 $3</format>
20862         </numberFormat>
20863       </availableFormats>
20864       <generalDesc>
20865         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
20866         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20867       </generalDesc>
20868       <fixedLine>
20869         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
20870              here since that is apparently used for mobile. -->
20871         <nationalNumberPattern>
20872           (?:
20873             1\d|
20874             2[0-79]|
20875             3[0-46-8]|
20876             4[0-7]|
20877             59
20878           )\d{5}
20879         </nationalNumberPattern>
20880         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20881         <exampleNumber>4012345</exampleNumber>
20882       </fixedLine>
20883       <mobile>
20884         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
20885              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
20886              Somtel. 6 followed by only 7 digits is used by Telecom. Note that in June 2014 many
20887              ranges were suspended by the government. 90\d{6} was listed as one of the ranges to be
20888              suspended, but open-source contributors confirm that 907\d{6} is still in use, even if
20889              the shorter 90 ranges are no longer. -->
20890         <nationalNumberPattern>
20891           (?:
20892             15\d|
20893             2(?:
20894               4\d|
20895               8
20896             )|
20897             6[137-9]?\d{2}|
20898             7[1-9]\d|
20899             907\d
20900           )\d{5}
20901         </nationalNumberPattern>
20902         <exampleNumber>71123456</exampleNumber>
20903       </mobile>
20904     </territory>
20905
20906     <!-- Suriname -->
20907     <territory id="SR" countryCode="597" internationalPrefix="00">
20908       <references>
20909         <sourceUrl>http://www.itu.int/oth/T02020000C5/en</sourceUrl>
20910       </references>
20911       <availableFormats>
20912         <!-- Following conventions used in the Suriname Yellow Pages. -->
20913         <numberFormat pattern="(\d{3})(\d{3})">
20914           <leadingDigits>
20915             [2-4]|
20916             5[2-58]
20917           </leadingDigits>
20918           <format>$1-$2</format>
20919         </numberFormat>
20920         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
20921           <leadingDigits>56</leadingDigits>
20922           <format>$1-$2-$3</format>
20923         </numberFormat>
20924         <numberFormat pattern="(\d{3})(\d{4})">
20925           <leadingDigits>
20926             59|
20927             [6-8]
20928           </leadingDigits>
20929           <format>$1-$2</format>
20930         </numberFormat>
20931       </availableFormats>
20932       <generalDesc>
20933         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
20934         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20935       </generalDesc>
20936       <fixedLine>
20937         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
20938         <nationalNumberPattern>
20939           (?:
20940             2[1-3]|
20941             3[0-7]|
20942             4\d|
20943             5[2-58]|
20944             68\d
20945           )\d{4}
20946         </nationalNumberPattern>
20947         <exampleNumber>211234</exampleNumber>
20948       </fixedLine>
20949       <mobile>
20950         <nationalNumberPattern>
20951           (?:
20952             7[124-7]|
20953             8[1-9]
20954           )\d{5}
20955         </nationalNumberPattern>
20956         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20957         <exampleNumber>7412345</exampleNumber>
20958       </mobile>
20959       <voip>
20960         <nationalNumberPattern>
20961           5(?:
20962             6\d{4}|
20963             90[0-4]\d{3}
20964           )
20965         </nationalNumberPattern>
20966         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20967         <exampleNumber>561234</exampleNumber>
20968       </voip>
20969     </territory>
20970
20971     <!-- South Sudan -->
20972     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
20973       <references>
20974         <sourceUrl>http://www.itu.int/oth/T02020000F9/en</sourceUrl>
20975         <sourceUrl>http://en.wikipedia.org/wiki/+211</sourceUrl>
20976       </references>
20977       <availableFormats>
20978         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
20979           <format>$1 $2 $3</format>
20980         </numberFormat>
20981       </availableFormats>
20982       <generalDesc>
20983         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
20984         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20985       </generalDesc>
20986       <fixedLine>
20987         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
20988         <exampleNumber>181234567</exampleNumber>
20989       </fixedLine>
20990       <mobile>
20991         <nationalNumberPattern>
20992           (?:
20993             12|
20994             9[1257]
20995           )\d{7}
20996         </nationalNumberPattern>
20997         <exampleNumber>977123456</exampleNumber>
20998       </mobile>
20999     </territory>
21000
21001     <!-- Sao Tome and Principe -->
21002     <territory id="ST" countryCode="239" internationalPrefix="00">
21003       <references>
21004         <sourceUrl>http://www.itu.int/oth/T02020000B6/en</sourceUrl>
21005       </references>
21006       <availableFormats>
21007         <numberFormat pattern="(\d{3})(\d{4})">
21008           <format>$1 $2</format>
21009         </numberFormat>
21010       </availableFormats>
21011       <generalDesc>
21012         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
21013         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21014       </generalDesc>
21015       <fixedLine>
21016         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
21017         <exampleNumber>2221234</exampleNumber>
21018       </fixedLine>
21019       <mobile>
21020         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
21021         <exampleNumber>9812345</exampleNumber>
21022       </mobile>
21023     </territory>
21024
21025     <!-- El Salvador -->
21026     <territory id="SV" countryCode="503" internationalPrefix="00">
21027       <references>
21028         <sourceUrl>http://www.itu.int/oth/T020200003F/en</sourceUrl>
21029         <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>
21030       </references>
21031       <availableFormats>
21032         <numberFormat pattern="(\d{4})(\d{4})">
21033           <leadingDigits>[267]</leadingDigits>
21034           <format>$1 $2</format>
21035         </numberFormat>
21036         <numberFormat pattern="(\d{3})(\d{4})">
21037           <leadingDigits>[89]</leadingDigits>
21038           <format>$1 $2</format>
21039         </numberFormat>
21040         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
21041           <leadingDigits>[89]</leadingDigits>
21042           <format>$1 $2 $3</format>
21043         </numberFormat>
21044       </availableFormats>
21045       <generalDesc>
21046         <nationalNumberPattern>
21047           [267]\d{7}|
21048           [89]\d{6}(?:\d{4})?
21049         </nationalNumberPattern>
21050         <possibleNumberPattern>
21051           \d{7,8}|
21052           \d{11}
21053         </possibleNumberPattern>
21054       </generalDesc>
21055       <fixedLine>
21056         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
21057         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
21058         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21059         <exampleNumber>21234567</exampleNumber>
21060       </fixedLine>
21061       <mobile>
21062         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
21063         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21064         <exampleNumber>70123456</exampleNumber>
21065       </mobile>
21066       <tollFree>
21067         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
21068         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
21069         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21070         <exampleNumber>8001234</exampleNumber>
21071       </tollFree>
21072       <premiumRate>
21073         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
21074         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
21075         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21076         <exampleNumber>9001234</exampleNumber>
21077       </premiumRate>
21078     </territory>
21079
21080     <!-- Sint Maarten -->
21081     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
21082                internationalPrefix="011">
21083       <references>
21084         <sourceUrl>http://www.nanpa.com/pdf/PL_429.pdf</sourceUrl>
21085         <sourceUrl>http://www.itu.int/oth/T02020000F7/en</sourceUrl>
21086       </references>
21087       <generalDesc>
21088         <!-- NANPA country - uses US formatting rules -->
21089         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
21090         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21091       </generalDesc>
21092       <fixedLine>
21093         <nationalNumberPattern>
21094           7215(?:
21095             4[2-8]|
21096             8[239]|
21097             9[056]
21098           )\d{4}
21099         </nationalNumberPattern>
21100         <exampleNumber>7215425678</exampleNumber>
21101       </fixedLine>
21102       <mobile>
21103         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
21104              include these as mobile numbers. -->
21105         <nationalNumberPattern>
21106           7215(?:
21107             1[02]|
21108             2\d|
21109             5[034679]|
21110             8[014-8]
21111           )\d{4}
21112         </nationalNumberPattern>
21113         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21114         <exampleNumber>7215205678</exampleNumber>
21115       </mobile>
21116       <tollFree>
21117         <nationalNumberPattern>
21118           8(?:
21119             00|
21120             44|
21121             55|
21122             66|
21123             77|
21124             88
21125           )[2-9]\d{6}
21126         </nationalNumberPattern>
21127         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21128         <exampleNumber>8002123456</exampleNumber>
21129       </tollFree>
21130       <premiumRate>
21131         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21132         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21133         <exampleNumber>9002123456</exampleNumber>
21134       </premiumRate>
21135       <personalNumber>
21136         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21137         <nationalNumberPattern>
21138           5(?:
21139             00|
21140             33|
21141             44|
21142             66|
21143             77
21144           )[2-9]\d{6}
21145         </nationalNumberPattern>
21146         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21147         <exampleNumber>5002345678</exampleNumber>
21148       </personalNumber>
21149     </territory>
21150
21151     <!-- Syrian Arab Republic -->
21152     <territory id="SY" countryCode="963" internationalPrefix="00"
21153                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21154                nationalPrefixOptionalWhenFormatting="true">
21155       <references>
21156         <sourceUrl>http://www.itu.int/oth/T02020000C9/en</sourceUrl>
21157         <sourceUrl>http://en.wikipedia.org/wiki/%2B963</sourceUrl>
21158       </references>
21159       <availableFormats>
21160         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
21161           <leadingDigits>[1-5]</leadingDigits>
21162           <format>$1 $2 $3</format>
21163         </numberFormat>
21164         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
21165           <leadingDigits>9</leadingDigits>
21166           <format>$1 $2 $3</format>
21167         </numberFormat>
21168       </availableFormats>
21169       <generalDesc>
21170         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
21171         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
21172       </generalDesc>
21173       <fixedLine>
21174       <!-- Numbers with the 21 prefix are made optionally 1-digit longer based on numbers found on
21175            the Internet. -->
21176         <nationalNumberPattern>
21177           (?:
21178             1(?:
21179               1\d?|
21180               4\d|
21181               [2356]
21182             )|
21183             2(?:
21184               1\d?|
21185               [235]
21186             )|
21187             3(?:
21188               [13]\d|
21189               4
21190             )|
21191             4[13]|
21192             5[1-3]
21193           )\d{6}
21194         </nationalNumberPattern>
21195         <exampleNumber>112345678</exampleNumber>
21196       </fixedLine>
21197       <mobile>
21198         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
21199              95[138], and 96[05]. -->
21200         <nationalNumberPattern>
21201           9(?:
21202             22|
21203             [35][0-8]|
21204             4\d|
21205             6[024-9]|
21206             88|
21207             9[0-489]
21208           )\d{6}
21209         </nationalNumberPattern>
21210         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21211         <exampleNumber>944567890</exampleNumber>
21212       </mobile>
21213       <!-- No tollFree or premiumRate information can be found. -->
21214     </territory>
21215
21216     <!-- Swaziland -->
21217     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
21218       <references>
21219         <sourceUrl>http://www.itu.int/oth/T02020000C6/en</sourceUrl>
21220       </references>
21221       <availableFormats>
21222         <numberFormat pattern="(\d{4})(\d{4})">
21223           <leadingDigits>[027]</leadingDigits>
21224           <format>$1 $2</format>
21225         </numberFormat>
21226       </availableFormats>
21227       <generalDesc>
21228         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
21229         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21230       </generalDesc>
21231       <noInternationalDialling>
21232         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21233         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21234         <exampleNumber>08001234</exampleNumber>
21235       </noInternationalDialling>
21236       <fixedLine>
21237         <nationalNumberPattern>
21238           2(?:
21239             2(?:
21240               0[07]|
21241               [13]7|
21242               2[57]
21243             )|
21244             3(?:
21245               0[34]|
21246               [1278]3|
21247               3[23]|
21248               [46][34]
21249             )|
21250             (?:
21251               40[4-69]|
21252               67
21253             )|
21254             5(?:
21255               0[5-7]|
21256               1[6-9]|
21257               [23][78]|
21258               48|
21259               5[01]
21260             )
21261           )\d{4}
21262         </nationalNumberPattern>
21263         <exampleNumber>22171234</exampleNumber>
21264       </fixedLine>
21265       <mobile>
21266         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
21267         <exampleNumber>76123456</exampleNumber>
21268       </mobile>
21269       <tollFree>
21270         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21271         <exampleNumber>08001234</exampleNumber>
21272       </tollFree>
21273     </territory>
21274
21275     <!-- Tristan da Cunha -->
21276     <territory id="TA" countryCode="290" internationalPrefix="00">
21277       <references>
21278         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
21279       </references>
21280       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
21281       <generalDesc>
21282         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21283         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21284       </generalDesc>
21285       <fixedLine>
21286         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21287         <exampleNumber>8999</exampleNumber>
21288       </fixedLine>
21289       <mobile>
21290         <nationalNumberPattern>NA</nationalNumberPattern>
21291         <possibleNumberPattern>NA</possibleNumberPattern>
21292       </mobile>
21293     </territory>
21294
21295     <!-- Turks and Caicos Islands -->
21296     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
21297                internationalPrefix="011">
21298       <references>
21299         <sourceUrl>http://www.itu.int/oth/T02020000D8/en</sourceUrl>
21300       </references>
21301       <generalDesc>
21302         <!-- NANPA country - uses US formatting rules -->
21303         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
21304         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21305       </generalDesc>
21306       <fixedLine>
21307         <nationalNumberPattern>
21308           649(?:
21309             712|
21310             9(?:
21311               4\d|
21312               50
21313             )
21314           )\d{4}
21315         </nationalNumberPattern>
21316         <exampleNumber>6497121234</exampleNumber>
21317       </fixedLine>
21318       <mobile>
21319         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
21320         <nationalNumberPattern>
21321           649(?:
21322             2(?:
21323               3[129]|
21324               4[1-7]
21325             )|
21326             3(?:
21327               3[1-389]|
21328               4[1-7]
21329             )|
21330             4[34][1-3]
21331           )\d{4}
21332         </nationalNumberPattern>
21333         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21334         <exampleNumber>6492311234</exampleNumber>
21335       </mobile>
21336       <tollFree>
21337         <nationalNumberPattern>
21338           8(?:
21339             00|
21340             44|
21341             55|
21342             66|
21343             77|
21344             88
21345           )[2-9]\d{6}
21346         </nationalNumberPattern>
21347         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21348         <exampleNumber>8002345678</exampleNumber>
21349       </tollFree>
21350       <premiumRate>
21351         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21352         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21353         <exampleNumber>9002345678</exampleNumber>
21354       </premiumRate>
21355       <personalNumber>
21356         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21357         <nationalNumberPattern>
21358           5(?:
21359             00|
21360             33|
21361             44|
21362             66|
21363             77
21364           )[2-9]\d{6}
21365         </nationalNumberPattern>
21366         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21367         <exampleNumber>5002345678</exampleNumber>
21368       </personalNumber>
21369       <voip>
21370         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
21371         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21372         <exampleNumber>6497101234</exampleNumber>
21373       </voip>
21374     </territory>
21375
21376     <!-- Chad -->
21377     <!-- The international prefix includes 16 as the international manual exchange. -->
21378     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
21379                internationalPrefix="00|16">
21380       <references>
21381         <sourceUrl>http://www.itu.int/oth/T0202000029/en</sourceUrl>
21382       </references>
21383       <availableFormats>
21384         <numberFormat
21385           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21386           <format>$1 $2 $3 $4</format>
21387         </numberFormat>
21388       </availableFormats>
21389       <generalDesc>
21390         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
21391         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21392       </generalDesc>
21393       <fixedLine>
21394         <nationalNumberPattern>
21395           22(?:
21396             [3789]0|
21397             5[0-5]|
21398             6[89]
21399           )\d{4}
21400         </nationalNumberPattern>
21401         <exampleNumber>22501234</exampleNumber>
21402       </fixedLine>
21403       <mobile>
21404         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
21405              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
21406              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
21407         <nationalNumberPattern>
21408           (?:
21409             6[02368]\d|
21410             77\d|
21411             9(?:
21412               5[0-4]|
21413               9\d
21414             )
21415           )\d{5}
21416         </nationalNumberPattern>
21417         <exampleNumber>63012345</exampleNumber>
21418       </mobile>
21419     </territory>
21420
21421     <!-- French Southern Territories -->
21422     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
21423     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
21424          temporary inhabitants. -->
21425
21426     <!-- Togo -->
21427     <territory id="TG" countryCode="228" internationalPrefix="00">
21428       <references>
21429         <sourceUrl>http://www.itu.int/oth/T02020000D1/en</sourceUrl>
21430       </references>
21431       <availableFormats>
21432         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21433           <format>$1 $2 $3 $4</format>
21434         </numberFormat>
21435       </availableFormats>
21436       <generalDesc>
21437         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
21438         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21439       </generalDesc>
21440       <fixedLine>
21441         <nationalNumberPattern>
21442           2(?:
21443             2[2-7]|
21444             3[23]|
21445             44|
21446             55|
21447             66|
21448             77
21449           )\d{5}
21450         </nationalNumberPattern>
21451         <exampleNumber>22212345</exampleNumber>
21452       </fixedLine>
21453       <mobile>
21454         <!-- Prefix 93 is from an open-source bug report -->
21455         <nationalNumberPattern>9[0-389]\d{6}</nationalNumberPattern>
21456         <exampleNumber>90112345</exampleNumber>
21457       </mobile>
21458     </territory>
21459
21460     <!-- Thailand -->
21461     <territory id="TH" countryCode="66" internationalPrefix="00"
21462                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21463                mobileNumberPortableRegion="true">
21464       <references>
21465         <sourceUrl>http://www.itu.int/oth/T02020000CD/en</sourceUrl>
21466         <sourceUrl>http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf</sourceUrl>
21467       </references>
21468       <availableFormats>
21469         <!-- Formatting patterns from wikipedia and the document itself -
21470              http://en.wikipedia.org/wiki/%2B66 -->
21471         <numberFormat pattern="(2)(\d{3})(\d{4})">
21472           <leadingDigits>2</leadingDigits>
21473           <format>$1 $2 $3</format>
21474         </numberFormat>
21475         <numberFormat pattern="([13-9]\d)(\d{3})(\d{3,4})">
21476           <leadingDigits>
21477             14|
21478             [3-9]
21479           </leadingDigits>
21480           <format>$1 $2 $3</format>
21481         </numberFormat>
21482         <numberFormat nationalPrefixFormattingRule="$FG"
21483           pattern="(1[89]00)(\d{3})(\d{3})">
21484           <leadingDigits>1</leadingDigits>
21485           <format>$1 $2 $3</format>
21486         </numberFormat>
21487       </availableFormats>
21488       <generalDesc>
21489         <nationalNumberPattern>
21490           [2-9]\d{7,8}|
21491           1\d{3}(?:\d{5,6})?
21492         </nationalNumberPattern>
21493         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
21494       </generalDesc>
21495       <noInternationalDialling>
21496         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21497         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21498         <exampleNumber>1100</exampleNumber>
21499       </noInternationalDialling>
21500       <fixedLine>
21501         <!-- Numbers online have been found that start with 20, despite the ITU doc not covering
21502              these. -->
21503         <nationalNumberPattern>
21504           (?:
21505             2\d|
21506             3[2-9]|
21507             4[2-5]|
21508             5[2-6]|
21509             7[3-7]
21510           )\d{6}
21511         </nationalNumberPattern>
21512         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21513         <exampleNumber>21234567</exampleNumber>
21514       </fixedLine>
21515       <mobile>
21516         <!-- Numbers found online starting with 62. 14 and 63 are from an open-source bug report,
21517              we couldn't find evidence of these specifically being in use but this article
21518              http://www.prachachat.net/news_detail.php?newsid=1395732787&grpid=03&catid=06&subcatid=0600
21519              talks about prefix 6 and 1 being cleared for mobile use. -->
21520         <nationalNumberPattern>
21521           (?:
21522             14|
21523             6[1-3]|
21524             [89]\d
21525           )\d{7}
21526         </nationalNumberPattern>
21527         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21528         <exampleNumber>812345678</exampleNumber>
21529       </mobile>
21530       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
21531       <tollFree>
21532         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
21533         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21534         <exampleNumber>1800123456</exampleNumber>
21535       </tollFree>
21536       <premiumRate>
21537         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
21538         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21539         <exampleNumber>1900123456</exampleNumber>
21540       </premiumRate>
21541       <voip>
21542         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
21543              online to suggest they are actually used as mobile numbers. -->
21544         <nationalNumberPattern>6[08]\d{7}</nationalNumberPattern>
21545         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21546         <exampleNumber>601234567</exampleNumber>
21547       </voip>
21548       <uan>
21549         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
21550              their costs range from free to 6 Baht/min. -->
21551         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21552         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21553         <exampleNumber>1100</exampleNumber>
21554       </uan>
21555     </territory>
21556
21557     <!-- Tajikistan -->
21558     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
21559                internationalPrefix="810" nationalPrefix="8"
21560                nationalPrefixFormattingRule="($NP) $FG"
21561                nationalPrefixOptionalWhenFormatting="true">
21562       <references>
21563         <sourceUrl>http://www.itu.int/oth/T02020000CA/en</sourceUrl>
21564       </references>
21565       <availableFormats>
21566         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
21567           <leadingDigits>
21568             [34]7|
21569             91[78]
21570           </leadingDigits>
21571           <format>$1 $2 $3</format>
21572         </numberFormat>
21573         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
21574           <leadingDigits>
21575             4[48]|
21576             5|
21577             9(?:
21578               1[59]|
21579               [0235-9]
21580             )
21581           </leadingDigits>
21582           <format>$1 $2 $3</format>
21583         </numberFormat>
21584         <numberFormat pattern="(331700)(\d)(\d{2})">
21585           <leadingDigits>331</leadingDigits>
21586           <leadingDigits>3317</leadingDigits>
21587           <leadingDigits>33170</leadingDigits>
21588           <leadingDigits>331700</leadingDigits>
21589           <format>$1 $2 $3</format>
21590         </numberFormat>
21591         <numberFormat pattern="(\d{4})(\d)(\d{4})">
21592           <leadingDigits>3[1-5]</leadingDigits>
21593           <leadingDigits>
21594             3(?:
21595               [1245]|
21596               3(?:
21597                 [02-9]|
21598                 1[0-589]
21599               )
21600             )
21601           </leadingDigits>
21602           <format>$1 $2 $3</format>
21603         </numberFormat>
21604       </availableFormats>
21605       <generalDesc>
21606         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
21607         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
21608       </generalDesc>
21609       <fixedLine>
21610         <nationalNumberPattern>
21611           (?:
21612             3(?:
21613               1[3-5]|
21614               2[245]|
21615               3[12]|
21616               4[24-7]|
21617               5[25]|
21618               72
21619             )|
21620             4(?:
21621               46|
21622               74|
21623               87
21624             )
21625           )\d{6}
21626         </nationalNumberPattern>
21627         <exampleNumber>372123456</exampleNumber>
21628       </fixedLine>
21629       <mobile>
21630         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
21631              numbers, and 50[12] for TCell from bug reports. -->
21632         <nationalNumberPattern>
21633           (?:
21634             50[125]|
21635             9[0-35-9]\d
21636           )\d{6}
21637         </nationalNumberPattern>
21638         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21639         <exampleNumber>917123456</exampleNumber>
21640       </mobile>
21641       <!-- No tollFree or premiumRate information can be found. -->
21642     </territory>
21643
21644     <!-- Tokelau -->
21645     <territory id="TK" countryCode="690" internationalPrefix="00">
21646       <references>
21647         <sourceUrl>http://www.itu.int/oth/T02020000D2/en</sourceUrl>
21648       </references>
21649       <generalDesc>
21650         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
21651         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21652       </generalDesc>
21653       <fixedLine>
21654         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
21655         <!-- The example number is the contact number from the ITU document. -->
21656         <exampleNumber>3010</exampleNumber>
21657       </fixedLine>
21658       <mobile>
21659         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
21660         <exampleNumber>5190</exampleNumber>
21661       </mobile>
21662     </territory>
21663
21664     <!-- Timor-Leste (East Timor) -->
21665     <territory id="TL" countryCode="670" internationalPrefix="00">
21666       <references>
21667         <sourceUrl>http://www.itu.int/oth/T02020000D0/en</sourceUrl>
21668       </references>
21669       <availableFormats>
21670         <numberFormat pattern="(\d{3})(\d{4})">
21671           <leadingDigits>[2-489]</leadingDigits>
21672           <format>$1 $2</format>
21673         </numberFormat>
21674         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
21675              them. If we see another pattern being used, we should change this later. -->
21676         <numberFormat pattern="(\d{4})(\d{4})">
21677           <leadingDigits>7</leadingDigits>
21678           <format>$1 $2</format>
21679         </numberFormat>
21680       </availableFormats>
21681       <generalDesc>
21682         <nationalNumberPattern>
21683           [2-489]\d{6}|
21684           7\d{6,7}
21685         </nationalNumberPattern>
21686         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
21687       </generalDesc>
21688       <fixedLine>
21689         <nationalNumberPattern>
21690           (?:
21691             2[1-5]|
21692             3[1-9]|
21693             4[1-4]
21694           )\d{5}
21695         </nationalNumberPattern>
21696         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21697         <exampleNumber>2112345</exampleNumber>
21698       </fixedLine>
21699       <mobile>
21700         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
21701         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21702         <exampleNumber>77212345</exampleNumber>
21703       </mobile>
21704       <tollFree>
21705         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
21706         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21707         <exampleNumber>8012345</exampleNumber>
21708       </tollFree>
21709       <premiumRate>
21710         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
21711         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21712         <exampleNumber>9012345</exampleNumber>
21713       </premiumRate>
21714       <!-- We don't include paging or voicemail because the identified paging range was used by
21715            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
21716            numbers, or if the range was indeed previously used for voicemail at all. -->
21717       <personalNumber>
21718         <!-- We presume this wasn't affected by the numbering plan update. -->
21719         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
21720         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21721         <exampleNumber>7012345</exampleNumber>
21722       </personalNumber>
21723     </territory>
21724
21725     <!-- Turkmenistan -->
21726     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
21727                internationalPrefix="810" nationalPrefix="8"
21728                nationalPrefixFormattingRule="($NP $FG)">
21729       <references>
21730         <sourceUrl>http://www.itu.int/oth/T02020000D7/en</sourceUrl>
21731         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan</sourceUrl>
21732       </references>
21733       <availableFormats>
21734         <!-- There doesn't seem to be a standardized format. The format below is based on the
21735              Turkmenistan embassy at
21736              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
21737           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21738             <leadingDigits>12</leadingDigits>
21739             <format>$1 $2-$3-$4</format>
21740           </numberFormat>
21741           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
21742             <leadingDigits>6</leadingDigits>
21743             <format>$1 $2</format>
21744           </numberFormat>
21745           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
21746             <leadingDigits>
21747               13|
21748               [2-5]
21749             </leadingDigits>
21750             <format>$1 $2-$3-$4</format>
21751           </numberFormat>
21752       </availableFormats>
21753       <generalDesc>
21754         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
21755         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21756       </generalDesc>
21757       <fixedLine>
21758         <!-- Additional prefixes from the wikipedia page. -->
21759         <nationalNumberPattern>
21760           (?:
21761             1(?:
21762               2\d|
21763               3[1-9]
21764             )|
21765             2(?:
21766               22|
21767               4[0-35-8]
21768             )|
21769             3(?:
21770               22|
21771               4[03-9]
21772             )|
21773             4(?:
21774               22|
21775               3[128]|
21776               4\d|
21777               6[15]
21778             )|
21779             5(?:
21780               22|
21781               5[7-9]|
21782               6[014-689]
21783             )
21784           )\d{5}
21785         </nationalNumberPattern>
21786         <exampleNumber>12345678</exampleNumber>
21787       </fixedLine>
21788       <mobile>
21789         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
21790              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
21791              has been suspended. It is unclear whether it will resume. We support both ranges in the
21792              meantime. The range 62 seems also now to be in use, according to numbers found online.
21793              -->
21794         <nationalNumberPattern>6[2-8]\d{6}</nationalNumberPattern>
21795         <exampleNumber>66123456</exampleNumber>
21796       </mobile>
21797       <!-- No tollFree or premiumRate information can be found. -->
21798     </territory>
21799
21800     <!-- Tunisia -->
21801     <territory id="TN" countryCode="216" internationalPrefix="00">
21802       <references>
21803         <sourceUrl>http://www.itu.int/oth/T02020000D5/en</sourceUrl>
21804         <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>
21805         <sourceUrl>http://www.tunisietelecom.tn/tt/internet/fr/pme/fixe/numeros_acceuil</sourceUrl>
21806       </references>
21807       <availableFormats>
21808         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
21809           <format>$1 $2 $3</format>
21810         </numberFormat>
21811       </availableFormats>
21812       <generalDesc>
21813         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
21814         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21815       </generalDesc>
21816       <fixedLine>
21817         <!-- 3[012] numbers are no longer listed in the ITU doc, but we support them based on
21818              online searches. -->
21819         <nationalNumberPattern>
21820           3[012]\d{6}|
21821           7\d{7}|
21822           81200\d{3}
21823         </nationalNumberPattern>
21824         <exampleNumber>71234567</exampleNumber>
21825       </fixedLine>
21826       <mobile>
21827         <!-- Numbers starting with 5 are no longer listed in the ITU doc, but we support them based
21828              on online searches and Wikipedia. -->
21829         <nationalNumberPattern>
21830           (?:
21831             [259]\d|
21832             4[0-24]
21833           )\d{6}
21834         </nationalNumberPattern>
21835         <exampleNumber>20123456</exampleNumber>
21836       </mobile>
21837       <tollFree>
21838         <!-- ITU lists 80 xx xx xx, but the document published by Tunisie Telecom has more specific
21839              information which is followed here. -->
21840         <nationalNumberPattern>8010\d{4}</nationalNumberPattern>
21841         <exampleNumber>80101234</exampleNumber>
21842       </tollFree>
21843       <premiumRate>
21844         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
21845         <exampleNumber>88123456</exampleNumber>
21846       </premiumRate>
21847       <sharedCost>
21848         <!-- 8110xxxx numbers are listed as being "discounted non-geographical numbers" and are put
21849              here for now. In the future we might consider them as UAN.
21850              ITU lists 82 xx xx xx, but the document published by Tunisie Telecom has more specific
21851              information which is followed here. -->
21852         <nationalNumberPattern>8[12]10\d{4}</nationalNumberPattern>
21853         <exampleNumber>81101234</exampleNumber>
21854       </sharedCost>
21855     </territory>
21856
21857     <!-- Tonga -->
21858     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
21859       <references>
21860         <sourceUrl>http://www.itu.int/oth/T02020000D3/en</sourceUrl>
21861         <sourceUrl>http://www.wtng.info/wtng-676-to.html</sourceUrl>
21862       </references>
21863       <availableFormats>
21864         <numberFormat pattern="(\d{2})(\d{3})">
21865           <leadingDigits>
21866             [1-6]|
21867             7[0-4]|
21868             8[05]
21869           </leadingDigits>
21870           <format>$1-$2</format>
21871         </numberFormat>
21872         <numberFormat pattern="(\d{3})(\d{4})">
21873           <leadingDigits>
21874             7[5-9]|
21875             8[47-9]
21876           </leadingDigits>
21877           <format>$1 $2</format>
21878         </numberFormat>
21879         <numberFormat pattern="(\d{4})(\d{3})">
21880           <leadingDigits>0</leadingDigits>
21881           <format>$1 $2</format>
21882         </numberFormat>
21883       </availableFormats>
21884       <generalDesc>
21885         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
21886         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
21887       </generalDesc>
21888       <fixedLine>
21889         <nationalNumberPattern>
21890           (?:
21891             2\d|
21892             3[1-8]|
21893             4[1-4]|
21894             [56]0|
21895             7[0149]|
21896             8[05]
21897           )\d{3}
21898         </nationalNumberPattern>
21899         <possibleNumberPattern>\d{5}</possibleNumberPattern>
21900         <exampleNumber>20123</exampleNumber>
21901       </fixedLine>
21902       <mobile>
21903         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
21904              in their ITU document. Numbers with a prefix of "75" and "84" have also been found. -->
21905         <nationalNumberPattern>
21906           (?:
21907             7[578]|
21908             8[47-9]
21909           )\d{5}
21910         </nationalNumberPattern>
21911         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21912         <exampleNumber>7715123</exampleNumber>
21913       </mobile>
21914       <tollFree>
21915         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
21916         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21917         <exampleNumber>0800222</exampleNumber>
21918       </tollFree>
21919     </territory>
21920
21921     <!-- Turkey -->
21922     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0"
21923                mobileNumberPortableRegion="true">
21924       <references>
21925         <sourceUrl>http://en.wikipedia.org/wiki/%2B90</sourceUrl>
21926         <sourceUrl>http://www.itu.int/oth/T02020000D6/en</sourceUrl>
21927       </references>
21928       <availableFormats>
21929         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
21930           nationalPrefixOptionalWhenFormatting="true">
21931           <leadingDigits>
21932             [23]|
21933             4(?:
21934               [0-35-9]|
21935               4[0-35-9]
21936             )
21937           </leadingDigits>
21938           <format>$1 $2 $3</format>
21939         </numberFormat>
21940         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
21941           nationalPrefixOptionalWhenFormatting="true">
21942           <leadingDigits>[589]</leadingDigits>
21943           <format>$1 $2 $3</format>
21944         </numberFormat>
21945         <numberFormat pattern="(444)(\d{1})(\d{3})">
21946           <leadingDigits>444</leadingDigits>
21947           <format>$1 $2 $3</format>
21948         </numberFormat>
21949       </availableFormats>
21950       <generalDesc>
21951         <nationalNumberPattern>
21952           [2-589]\d{9}|
21953           444\d{4}
21954         </nationalNumberPattern>
21955         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21956       </generalDesc>
21957       <noInternationalDialling>
21958         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
21959         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21960         <exampleNumber>4441444</exampleNumber>
21961       </noInternationalDialling>
21962       <fixedLine>
21963         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
21964         <nationalNumberPattern>
21965           (?:
21966             2(?:
21967               [13][26]|
21968               [28][2468]|
21969               [45][268]|
21970               [67][246]
21971             )|
21972             3(?:
21973               [13][28]|
21974               [24-6][2468]|
21975               [78][02468]|
21976               92
21977             )|
21978             4(?:
21979               [16][246]|
21980               [23578][2468]|
21981               4[26]
21982             )
21983           )\d{7}
21984         </nationalNumberPattern>
21985         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21986         <exampleNumber>2123456789</exampleNumber>
21987       </fixedLine>
21988       <mobile>
21989         <!-- There are some differences between the Turkish and English wikipedia pages here, and
21990              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
21991              509 from the English page because of this. -->
21992         <nationalNumberPattern>
21993           5(?:
21994             0[1-7]|
21995             22|
21996             [34]\d|
21997             5[1-59]|
21998             9[246]
21999           )\d{7}
22000         </nationalNumberPattern>
22001         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22002         <exampleNumber>5012345678</exampleNumber>
22003       </mobile>
22004       <pager>
22005         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
22006         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22007         <exampleNumber>5123456789</exampleNumber>
22008       </pager>
22009       <tollFree>
22010         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
22011         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22012         <exampleNumber>8001234567</exampleNumber>
22013       </tollFree>
22014       <premiumRate>
22015         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
22016         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22017         <exampleNumber>9001234567</exampleNumber>
22018       </premiumRate>
22019       <uan>
22020         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
22021         <nationalNumberPattern>
22022           444\d{4}|
22023           850\d{7}
22024         </nationalNumberPattern>
22025         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
22026         <exampleNumber>4441444</exampleNumber>
22027       </uan>
22028     </territory>
22029
22030     <!-- Trinidad and Tobago -->
22031     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
22032                internationalPrefix="011">
22033       <references>
22034         <sourceUrl>http://www.itu.int/oth/T02020000D4/en</sourceUrl>
22035       </references>
22036       <generalDesc>
22037         <!-- NANPA country - uses US formatting rules -->
22038         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
22039         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22040       </generalDesc>
22041       <fixedLine>
22042         <nationalNumberPattern>
22043           868(?:
22044             2(?:
22045               [03]1|
22046               2[1-5]
22047             )|
22048             6(?:
22049               0[79]|
22050               1[02-9]|
22051               2[1-9]|
22052               [3-69]\d|
22053               7[0-79]
22054             )|
22055             82[124]
22056           )\d{4}
22057         </nationalNumberPattern>
22058         <exampleNumber>8682211234</exampleNumber>
22059       </fixedLine>
22060       <mobile>
22061         <nationalNumberPattern>
22062           868(?:
22063             2(?:
22064               [89]\d
22065             )|
22066             3(?:
22067               0[1-9]|
22068               1[02-9]|
22069               [2-9]\d
22070             )|
22071             4[6-9]\d|
22072             6(?:
22073               20|
22074               78|
22075               8\d
22076             )|
22077             7(?:
22078               0[1-9]|
22079               1[02-9]|
22080               [2-9]\d
22081             )
22082           )\d{4}
22083         </nationalNumberPattern>
22084         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22085         <exampleNumber>8682911234</exampleNumber>
22086       </mobile>
22087       <tollFree>
22088         <nationalNumberPattern>
22089           8(?:
22090             00|
22091             44|
22092             55|
22093             66|
22094             77|
22095             88
22096           )[2-9]\d{6}
22097         </nationalNumberPattern>
22098         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22099         <exampleNumber>8002345678</exampleNumber>
22100       </tollFree>
22101       <premiumRate>
22102         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22103         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22104         <exampleNumber>9002345678</exampleNumber>
22105       </premiumRate>
22106       <personalNumber>
22107         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22108         <nationalNumberPattern>
22109           5(?:
22110             00|
22111             33|
22112             44|
22113             66|
22114             77
22115           )[2-9]\d{6}
22116         </nationalNumberPattern>
22117         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22118         <exampleNumber>5002345678</exampleNumber>
22119       </personalNumber>
22120     </territory>
22121
22122     <!-- Tuvalu -->
22123     <territory id="TV" countryCode="688" internationalPrefix="00">
22124       <references>
22125         <sourceUrl>http://www.itu.int/oth/T02020000D9/en</sourceUrl>
22126         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu</sourceUrl>
22127       </references>
22128       <!-- Numbers are formatted as a block. -->
22129       <generalDesc>
22130         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
22131         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
22132       </generalDesc>
22133       <fixedLine>
22134         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
22135         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22136         <exampleNumber>20123</exampleNumber>
22137       </fixedLine>
22138       <mobile>
22139         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
22140              don't know if these are valid or not - the ITU document excludes them - so are not
22141              covering these for now. -->
22142         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
22143         <possibleNumberPattern>\d{6}</possibleNumberPattern>
22144         <exampleNumber>901234</exampleNumber>
22145       </mobile>
22146     </territory>
22147
22148     <!-- Taiwan, China -->
22149     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
22150          chosen as the preferred extension prefix. -->
22151     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
22152                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG"
22153                mobileNumberPortableRegion="true">
22154       <references>
22155         <sourceUrl>http://www.itu.int/oth/T02020000EB/en</sourceUrl>
22156       </references>
22157       <availableFormats>
22158         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
22159           <leadingDigits>
22160             [2-6]|
22161             [78][1-9]
22162           </leadingDigits>
22163           <format>$1 $2 $3</format>
22164         </numberFormat>
22165         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
22166           <leadingDigits>
22167             80|
22168             9
22169           </leadingDigits>
22170           <format>$1 $2 $3</format>
22171         </numberFormat>
22172         <numberFormat pattern="(70)(\d{4})(\d{4})">
22173           <leadingDigits>70</leadingDigits>
22174           <format>$1 $2 $3</format>
22175         </numberFormat>
22176       </availableFormats>
22177       <generalDesc>
22178         <nationalNumberPattern>
22179           [2-689]\d{7,8}|
22180           7\d{7,9}
22181         </nationalNumberPattern>
22182         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
22183       </generalDesc>
22184       <fixedLine>
22185         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
22186         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22187         <exampleNumber>21234567</exampleNumber>
22188       </fixedLine>
22189       <mobile>
22190         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
22191         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22192         <exampleNumber>912345678</exampleNumber>
22193       </mobile>
22194       <tollFree>
22195         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22196         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22197         <exampleNumber>800123456</exampleNumber>
22198       </tollFree>
22199       <premiumRate>
22200         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22201         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22202         <exampleNumber>900123456</exampleNumber>
22203       </premiumRate>
22204       <!-- http://www.chief.com.tw/telecom_eng/front/bin/ptlist.phtml?Category=107 -->
22205       <voip>
22206         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
22207         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22208         <exampleNumber>7012345678</exampleNumber>
22209       </voip>
22210     </territory>
22211
22212     <!-- Tanzania -->
22213     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
22214                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22215       <references>
22216         <sourceUrl>http://www.itu.int/oth/T02020000CB/en</sourceUrl>
22217       </references>
22218       <availableFormats>
22219         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
22220           <leadingDigits>[24]</leadingDigits>
22221           <format>$1 $2 $3</format>
22222         </numberFormat>
22223         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
22224           <leadingDigits>[67]</leadingDigits>
22225           <format>$1 $2 $3</format>
22226         </numberFormat>
22227         <!-- Formatting for special numbers from http://www.tcra.go.tz -->
22228         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
22229           <leadingDigits>[89]</leadingDigits>
22230           <format>$1 $2 $3</format>
22231         </numberFormat>
22232       </availableFormats>
22233       <generalDesc>
22234         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22235         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22236       </generalDesc>
22237       <fixedLine>
22238         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
22239         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22240         <exampleNumber>222345678</exampleNumber>
22241       </fixedLine>
22242       <mobile>
22243         <nationalNumberPattern>
22244           (?:
22245             6[1578]|
22246             7[1-9]
22247           )\d{7}
22248         </nationalNumberPattern>
22249         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22250         <exampleNumber>612345678</exampleNumber>
22251       </mobile>
22252       <tollFree>
22253         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
22254         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22255         <exampleNumber>800123456</exampleNumber>
22256       </tollFree>
22257       <premiumRate>
22258         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
22259         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22260         <exampleNumber>900123456</exampleNumber>
22261       </premiumRate>
22262       <sharedCost>
22263         <nationalNumberPattern>
22264           8(?:
22265             40|
22266             6[01]
22267           )\d{6}
22268         </nationalNumberPattern>
22269         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22270         <exampleNumber>840123456</exampleNumber>
22271       </sharedCost>
22272       <voip>
22273         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
22274         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22275         <exampleNumber>412345678</exampleNumber>
22276       </voip>
22277     </territory>
22278
22279     <!-- Ukraine -->
22280     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
22281                internationalPrefix="00"
22282                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22283       <references>
22284         <sourceUrl>http://www.itu.int/oth/T02020000DB/en</sourceUrl>
22285         <sourceUrl>http://en.wikipedia.org/wiki/%2B380</sourceUrl>
22286       </references>
22287       <availableFormats>
22288         <!-- City codes separated out. No definitive list has been found of what constitutes the
22289              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
22290              Have used local yellow pages guidelines, Google searches and regression tests to
22291              reverse-engineer these rules as well as bugs. -->
22292         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
22293           <leadingDigits>
22294             [38]9|
22295             4(?:
22296               [45][0-5]|
22297               87
22298             )|
22299             5(?:
22300               0|
22301               6[37]|
22302               7[37]
22303             )|
22304             6[36-8]|
22305             9[1-9]
22306           </leadingDigits>
22307           <leadingDigits>
22308             [38]9|
22309             4(?:
22310               [45][0-5]|
22311               87
22312             )|
22313             5(?:
22314               0|
22315               6(?:
22316                 3[14-7]|
22317                 7
22318               )|
22319               7[37]
22320             )|
22321             6[36-8]|
22322             9[1-9]
22323           </leadingDigits>
22324           <format>$1 $2 $3</format>
22325         </numberFormat>
22326         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
22327           <leadingDigits>
22328             3[1-8]2|
22329             4[13678]2|
22330             5(?:
22331               [12457]2|
22332               6[24]
22333             )|
22334             6(?:
22335               [49]2|
22336               [12][29]|
22337               5[24]
22338             )|
22339             8[0-8]|
22340             90
22341           </leadingDigits>
22342           <leadingDigits>
22343             3(?:
22344               [1-46-8]2[013-9]|
22345               52
22346             )|
22347             4(?:
22348               [1378]2|
22349               62[013-9]
22350             )|
22351             5(?:
22352               [12457]2|
22353               6[24]
22354             )|
22355             6(?:
22356               [49]2|
22357               [12][29]|
22358               5[24]
22359             )|
22360             8[0-8]|
22361             90
22362           </leadingDigits>
22363           <format>$1 $2 $3</format>
22364         </numberFormat>
22365         <numberFormat pattern="([3-6]\d{3})(\d{5})">
22366           <leadingDigits>
22367             3(?:
22368               5[013-9]|
22369               [1-46-8]
22370             )|
22371             4(?:
22372               [137][013-9]|
22373               6|
22374               [45][6-9]|
22375               8[4-6]
22376             )|
22377             5(?:
22378               [1245][013-9]|
22379               6[0135-9]|
22380               3|
22381               7[4-6]
22382             )|
22383             6(?:
22384               [49][013-9]|
22385               5[0135-9]|
22386               [12][13-8]
22387             )
22388           </leadingDigits>
22389           <leadingDigits>
22390             3(?:
22391               5[013-9]|
22392               [1-46-8](?:
22393                 22|
22394                 [013-9]
22395               )
22396             )|
22397             4(?:
22398               [137][013-9]|
22399               6(?:
22400                 [013-9]|
22401                 22
22402               )|
22403               [45][6-9]|
22404               8[4-6]
22405             )|
22406             5(?:
22407               [1245][013-9]|
22408               6(?:
22409                 3[02389]|
22410                 [015689]
22411               )|
22412               3|
22413               7[4-6]
22414             )|
22415             6(?:
22416               [49][013-9]|
22417               5[0135-9]|
22418               [12][13-8]
22419             )
22420           </leadingDigits>
22421           <format>$1 $2</format>
22422         </numberFormat>
22423       </availableFormats>
22424       <generalDesc>
22425         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
22426         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22427       </generalDesc>
22428       <fixedLine>
22429         <nationalNumberPattern>
22430           (?:
22431             3[1-8]|
22432             4[13-8]|
22433             5[1-7]|
22434             6[12459]
22435           )\d{7}
22436         </nationalNumberPattern>
22437         <exampleNumber>311234567</exampleNumber>
22438       </fixedLine>
22439       <mobile>
22440         <nationalNumberPattern>
22441           (?:
22442             39|
22443             50|
22444             6[36-8]|
22445             9[1-9]
22446           )\d{7}
22447         </nationalNumberPattern>
22448         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22449         <exampleNumber>391234567</exampleNumber>
22450       </mobile>
22451       <tollFree>
22452         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22453         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22454         <exampleNumber>800123456</exampleNumber>
22455       </tollFree>
22456       <premiumRate>
22457         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22458         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22459         <exampleNumber>900123456</exampleNumber>
22460       </premiumRate>
22461       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
22462       <voip>
22463         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
22464         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22465         <exampleNumber>891234567</exampleNumber>
22466       </voip>
22467     </territory>
22468
22469     <!-- Uganda -->
22470     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
22471                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22472       <references>
22473         <sourceUrl>http://www.itu.int/oth/T02020000F1/en</sourceUrl>
22474         <sourceUrl>http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf</sourceUrl>
22475       </references>
22476       <availableFormats>
22477         <numberFormat pattern="(\d{3})(\d{6})">
22478           <leadingDigits>
22479             [7-9]|
22480             20(?:
22481               [013-8]|
22482               2[5-9]
22483             )|
22484             4(?:
22485               6[45]|
22486               [7-9]
22487             )
22488           </leadingDigits>
22489           <format>$1 $2</format>
22490         </numberFormat>
22491         <numberFormat pattern="(\d{2})(\d{7})">
22492           <leadingDigits>
22493             3|
22494             4(?:
22495               [1-5]|
22496               6[0-36-9]
22497             )
22498           </leadingDigits>
22499           <format>$1 $2</format>
22500         </numberFormat>
22501         <numberFormat pattern="(2024)(\d{5})">
22502           <leadingDigits>2024</leadingDigits>
22503           <format>$1 $2</format>
22504         </numberFormat>
22505       </availableFormats>
22506       <generalDesc>
22507         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22508         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22509       </generalDesc>
22510       <fixedLine>
22511         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
22512         <nationalNumberPattern>
22513           20(?:
22514             [0147]\d{2}|
22515             2(?:
22516               40|
22517               [5-9]\d
22518             )|
22519             3[23]\d|
22520             5[0-4]\d|
22521             6[03]\d|
22522             8[0-2]\d
22523           )\d{4}|
22524           [34]\d{8}
22525         </nationalNumberPattern>
22526         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
22527              local dialing is still possible. We assume it is for now. -->
22528         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22529         <exampleNumber>312345678</exampleNumber>
22530       </fixedLine>
22531       <mobile>
22532         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
22533         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
22534         <!-- Ranges with prefixes 2030 or 723 are "not yet operational" as of Oct. 2014. -->
22535         <nationalNumberPattern>
22536           2030\d{5}|
22537           7(?:
22538             0[0-7]|
22539             [15789]\d|
22540             2[03]|
22541             30|
22542             [46][0-4]
22543           )\d{6}
22544         </nationalNumberPattern>
22545         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22546         <exampleNumber>712345678</exampleNumber>
22547       </mobile>
22548       <tollFree>
22549         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
22550         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22551         <exampleNumber>800123456</exampleNumber>
22552       </tollFree>
22553       <premiumRate>
22554         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
22555         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22556         <exampleNumber>901123456</exampleNumber>
22557       </premiumRate>
22558     </territory>
22559
22560     <!-- United States -->
22561     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
22562          numbers in the national format, it is not included. Therefore, we omit it here to make
22563          formatting consistent with the rest of the world. The same applies to all the
22564          countries/regions under NANPA -->
22565     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
22566          when formatting, but is set here so that users who are calling formatByPattern can specify
22567          NationalPrefixFormattingRule if they want to. -->
22568     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
22569                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true"
22570                mobileNumberPortableRegion="true">
22571       <references>
22572         <sourceUrl>http://www.nanpa.com/reports/reports_npa.html</sourceUrl>
22573         <sourceUrl>http://en.wikipedia.org/wiki/North_American_Numbering_Plan</sourceUrl>
22574       </references>
22575       <availableFormats>
22576         <numberFormat pattern="(\d{3})(\d{4})">
22577           <format>$1-$2</format>
22578           <intlFormat>NA</intlFormat>
22579         </numberFormat>
22580         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
22581           <format>($1) $2-$3</format>
22582           <!-- A different pattern is used when formatting internationally, as the area code is no
22583                longer optional and should not be in brackets. -->
22584           <intlFormat>$1-$2-$3</intlFormat>
22585         </numberFormat>
22586       </availableFormats>
22587       <generalDesc>
22588         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
22589         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22590       </generalDesc>
22591       <fixedLine>
22592         <nationalNumberPattern>
22593           (?:
22594             2(?:
22595               0[1-35-9]|
22596               1[02-9]|
22597               2[04589]|
22598               3[149]|
22599               4[08]|
22600               5[1-46]|
22601               6[0279]|
22602               7[026]|
22603               8[13]
22604             )|
22605             3(?:
22606               0[1-57-9]|
22607               1[02-9]|
22608               2[0135]|
22609               3[014679]|
22610               4[67]|
22611               5[12]|
22612               6[014]|
22613               8[56]
22614             )|
22615             4(?:
22616               0[124-9]|
22617               1[02-579]|
22618               2[3-5]|
22619               3[0245]|
22620               4[0235]|
22621               58|
22622               69|
22623               7[0589]|
22624               8[04]
22625             )|
22626             5(?:
22627               0[1-57-9]|
22628               1[0235-8]|
22629               20|
22630               3[0149]|
22631               4[01]|
22632               5[19]|
22633               6[1-37]|
22634               7[013-5]|
22635               8[056]
22636             )|
22637             6(?:
22638               0[1-35-9]|
22639               1[024-9]|
22640               2[03689]|
22641               3[016]|
22642               4[16]|
22643               5[017]|
22644               6[0-279]|
22645               78|
22646               8[12]
22647             )|
22648             7(?:
22649               0[1-46-8]|
22650               1[02-9]|
22651               2[0457]|
22652               3[1247]|
22653               4[07]|
22654               5[47]|
22655               6[02359]|
22656               7[02-59]|
22657               8[156]
22658             )|
22659             8(?:
22660               0[1-68]|
22661               1[02-8]|
22662               28|
22663               3[0-25]|
22664               4[3578]|
22665               5[06-9]|
22666               6[02-5]|
22667               7[028]
22668             )|
22669             9(?:
22670               0[1346-9]|
22671               1[02-9]|
22672               2[0589]|
22673               3[01678]|
22674               4[0179]|
22675               5[12469]|
22676               7[0-3589]|
22677               8[0459]
22678             )
22679           )[2-9]\d{6}
22680         </nationalNumberPattern>
22681         <exampleNumber>2015555555</exampleNumber>
22682       </fixedLine>
22683       <mobile>
22684         <nationalNumberPattern>
22685           (?:
22686             2(?:
22687               0[1-35-9]|
22688               1[02-9]|
22689               2[04589]|
22690               3[149]|
22691               4[08]|
22692               5[1-46]|
22693               6[0279]|
22694               7[026]|
22695               8[13]
22696             )|
22697             3(?:
22698               0[1-57-9]|
22699               1[02-9]|
22700               2[0135]|
22701               3[014679]|
22702               4[67]|
22703               5[12]|
22704               6[014]|
22705               8[56]
22706             )|
22707             4(?:
22708               0[124-9]|
22709               1[02-579]|
22710               2[3-5]|
22711               3[0245]|
22712               4[0235]|
22713               58|
22714               69|
22715               7[0589]|
22716               8[04]
22717             )|
22718             5(?:
22719               0[1-57-9]|
22720               1[0235-8]|
22721               20|
22722               3[0149]|
22723               4[01]|
22724               5[19]|
22725               6[1-37]|
22726               7[013-5]|
22727               8[056]
22728             )|
22729             6(?:
22730               0[1-35-9]|
22731               1[024-9]|
22732               2[03689]|
22733               3[016]|
22734               4[16]|
22735               5[017]|
22736               6[0-279]|
22737               78|
22738               8[12]
22739             )|
22740             7(?:
22741               0[1-46-8]|
22742               1[02-9]|
22743               2[0457]|
22744               3[1247]|
22745               4[07]|
22746               5[47]|
22747               6[02359]|
22748               7[02-59]|
22749               8[156]
22750             )|
22751             8(?:
22752               0[1-68]|
22753               1[02-8]|
22754               28|
22755               3[0-25]|
22756               4[3578]|
22757               5[06-9]|
22758               6[02-5]|
22759               7[028]
22760             )|
22761             9(?:
22762               0[1346-9]|
22763               1[02-9]|
22764               2[0589]|
22765               3[01678]|
22766               4[0179]|
22767               5[12469]|
22768               7[0-3589]|
22769               8[0459]
22770             )
22771           )[2-9]\d{6}
22772         </nationalNumberPattern>
22773         <exampleNumber>2015555555</exampleNumber>
22774       </mobile>
22775       <tollFree>
22776         <nationalNumberPattern>
22777           8(?:
22778             00|
22779             44|
22780             55|
22781             66|
22782             77|
22783             88
22784           )[2-9]\d{6}
22785         </nationalNumberPattern>
22786         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22787         <exampleNumber>8002345678</exampleNumber>
22788       </tollFree>
22789       <premiumRate>
22790         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22791         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22792         <exampleNumber>9002345678</exampleNumber>
22793       </premiumRate>
22794       <personalNumber>
22795         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22796         <nationalNumberPattern>
22797           5(?:
22798             00|
22799             33|
22800             44|
22801             66|
22802             77
22803           )[2-9]\d{6}
22804         </nationalNumberPattern>
22805         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22806         <exampleNumber>5002345678</exampleNumber>
22807       </personalNumber>
22808     </territory>
22809
22810     <!-- Uruguay -->
22811     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
22812          code JK, where J = [3-9] and K is any digit. -->
22813     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
22814                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
22815       <references>
22816         <sourceUrl>http://www.itu.int/oth/T02020000E0/en</sourceUrl>
22817         <sourceUrl>http://www.ursec.gub.uy</sourceUrl>
22818         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay</sourceUrl>
22819       </references>
22820       <availableFormats>
22821         <!-- Following paginasamarillas.com.uy formatting. -->
22822         <numberFormat pattern="(\d{4})(\d{4})">
22823           <leadingDigits>[24]</leadingDigits>
22824           <format>$1 $2</format>
22825         </numberFormat>
22826         <!-- Including the national prefix here since URSEC does when formatting these. -->
22827         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
22828           <leadingDigits>9[1-9]</leadingDigits>
22829           <format>$1 $2 $3</format>
22830         </numberFormat>
22831         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
22832           <leadingDigits>[89]0</leadingDigits>
22833           <format>$1 $2</format>
22834         </numberFormat>
22835       </availableFormats>
22836       <generalDesc>
22837         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
22838         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
22839       </generalDesc>
22840       <fixedLine>
22841         <nationalNumberPattern>
22842           2\d{7}|
22843           4[2-7]\d{6}
22844         </nationalNumberPattern>
22845         <exampleNumber>21231234</exampleNumber>
22846       </fixedLine>
22847       <mobile>
22848         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
22849         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22850         <exampleNumber>94231234</exampleNumber>
22851       </mobile>
22852       <tollFree>
22853         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
22854         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22855         <exampleNumber>8001234</exampleNumber>
22856       </tollFree>
22857       <premiumRate>
22858         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
22859         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22860         <exampleNumber>9001234</exampleNumber>
22861       </premiumRate>
22862      </territory>
22863
22864     <!-- Uzbekistan -->
22865     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
22866                internationalPrefix="810" nationalPrefix="8"
22867                nationalPrefixFormattingRule="$NP $FG">
22868       <references>
22869         <sourceUrl>http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng</sourceUrl>
22870         <sourceUrl>http://www.itu.int/oth/T02020000E1/en</sourceUrl>
22871       </references>
22872       <availableFormats>
22873         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
22874           <format>$1 $2 $3 $4</format>
22875         </numberFormat>
22876       </availableFormats>
22877       <generalDesc>
22878         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
22879         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22880       </generalDesc>
22881       <fixedLine>
22882         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
22883              be used in Namangan. -->
22884         <nationalNumberPattern>
22885           (?:
22886             6(?:
22887               1(?:
22888                 22|
22889                 3[124]|
22890                 4[1-4]|
22891                 5[123578]|
22892                 64
22893               )|
22894               2(?:
22895                 22|
22896                 3[0-57-9]|
22897                 41
22898               )|
22899               5(?:
22900                 22|
22901                 3[3-7]|
22902                 5[024-8]
22903               )|
22904               6\d{2}|
22905               7(?:
22906                 [23]\d|
22907                 7[69]
22908               )|
22909               9(?:
22910                 22|
22911                 4[1-8]|
22912                 6[135]
22913               )
22914             )|
22915             7(?:
22916               0(?:
22917                 5[4-9]|
22918                 6[0146]|
22919                 7[12456]|
22920                 9[135-8]
22921               )|
22922               1[12]\d|
22923               2(?:
22924                 22|
22925                 3[1345789]|
22926                 4[123579]|
22927                 5[14]
22928               )|
22929               3(?:
22930                 2\d|
22931                 3[1578]|
22932                 4[1-35-7]|
22933                 5[1-57]|
22934                 61
22935               )|
22936               4(?:
22937                 2\d|
22938                 3[1-579]|
22939                 7[1-79]
22940               )|
22941               5(?:
22942                 22|
22943                 5[1-9]|
22944                 6[1457]
22945               )|
22946               6(?:
22947                 22|
22948                 3[12457]|
22949                 4[13-8]
22950               )|
22951               9(?:
22952                 22|
22953                 5[1-9]
22954               )
22955             )
22956           )\d{5}
22957         </nationalNumberPattern>
22958         <exampleNumber>662345678</exampleNumber>
22959       </fixedLine>
22960       <mobile>
22961         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
22962              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
22963              prefixes Tyntec has a carrier mapped to. -->
22964         <nationalNumberPattern>
22965           6(?:
22966             1(?:
22967               2(?:
22968                 98|
22969                 2[01]
22970               )|
22971               35[0-4]|
22972               50\d|
22973               61[23]|
22974               7(?:
22975                 [01][017]|
22976                 4\d|
22977                 55|
22978                 9[5-9]
22979               )
22980             )|
22981             2(?:
22982               11\d|
22983               2(?:
22984                 [12]1|
22985                 9[01379]
22986               )|
22987               5(?:
22988                 [126]\d|
22989                 3[0-4]
22990               )|
22991               7\d{2}
22992             )|
22993             5(?:
22994               19[01]|
22995               2(?:
22996                 27|
22997                 9[26]
22998               )|
22999               30\d|
23000               59\d|
23001               7\d{2}
23002             )|
23003             6(?:
23004               2(?:
23005                 1[5-9]|
23006                 2[0367]|
23007                 38|
23008                 41|
23009                 52|
23010                 60
23011               )|
23012               3[79]\d|
23013               4(?:
23014                 56|
23015                 83
23016               )|
23017               7(?:
23018                 [07]\d|
23019                 1[017]|
23020                 3[07]|
23021                 4[047]|
23022                 5[057]|
23023                 67|
23024                 8[0178]|
23025                 9[79]
23026                 )|
23027               9[0-3]\d
23028             )|
23029             7(?:
23030               2(?:
23031                 24|
23032                 3[237]|
23033                 4[5-9]|
23034                 7[15-8]
23035               )|
23036               5(?:
23037                 7[12]|
23038                 8[0589]
23039               )|
23040               7(?:
23041                 0\d|
23042                 [39][07]
23043               )|
23044               9(?:
23045                 0\d|
23046                 7[079]
23047               )
23048             )|
23049             9(?:
23050               2(?:
23051                 1[1267]|
23052                 5\d|
23053                 3[01]|
23054                 7[0-4]
23055               )|
23056               5[67]\d|
23057               6(?:
23058                 2[0-26]|
23059                 8\d
23060               )|
23061               7\d{2}
23062             )
23063           )\d{4}|
23064           7(?:
23065             0\d{3}|
23066             1(?:
23067               13[01]|
23068               6(?:
23069                 0[47]|
23070                 1[67]|
23071                 66
23072               )|
23073               71[3-69]|
23074               98\d
23075             )|
23076             2(?:
23077               2(?:
23078                 2[79]|
23079                 95
23080               )|
23081               3(?:
23082                 2[5-9]|
23083                 6[0-6]
23084               )|
23085               57\d|
23086               7(?:
23087                 0\d|
23088                 1[17]|
23089                 2[27]|
23090                 3[37]|
23091                 44|
23092                 5[057]|
23093                 66|
23094                 88
23095               )
23096             )|
23097             3(?:
23098               2(?:
23099                 1[0-6]|
23100                 21|
23101                 3[469]|
23102                 7[159]
23103               )|
23104               33\d|
23105               5(?:
23106                 0[0-4]|
23107                 5[579]|
23108                 9\d
23109               )|
23110               7(?:
23111                 [0-3579]\d|
23112                 4[0467]|
23113                 6[67]|
23114                 8[078]
23115               )|
23116               9[4-6]\d
23117             )|
23118             4(?:
23119               2(?:
23120                 29|
23121                 5[0257]|
23122                 6[0-7]|
23123                 7[1-57]
23124               )|
23125               5(?:
23126                 1[0-4]|
23127                 8\d|
23128                 9[5-9]
23129               )|
23130               7(?:
23131                 0\d|
23132                 1[024589]|
23133                 2[0127]|
23134                 3[0137]|
23135                 [46][07]|
23136                 5[01]|
23137                 7[5-9]|
23138                 9[079]
23139               )|
23140               9(?:
23141                 7[015-9]|
23142                 [89]\d
23143               )
23144             )|
23145             5(?:
23146               112|
23147               2(?:
23148                 0\d|
23149                 2[29]|
23150                 [49]4
23151               )|
23152               3[1568]\d|
23153               52[6-9]|
23154               7(?:
23155                 0[01578]|
23156                 1[017]|
23157                 [23]7|
23158                 4[047]|
23159                 [5-7]\d|
23160                 8[78]|
23161                 9[079]
23162               )
23163             )|
23164             6(?:
23165               2(?:
23166                 2[1245]|
23167                 4[2-4]
23168               )|
23169               39\d|
23170               41[179]|
23171               5(?:
23172                 [349]\d|
23173                 5[0-2]
23174               )|
23175               7(?:
23176                 0[017]|
23177                 [13]\d|
23178                 22|
23179                 44|
23180                 55|
23181                 67|
23182                 88
23183               )
23184             )|
23185             9(?:
23186               22[128]|
23187               3(?:
23188                 2[0-4]|
23189                 7\d
23190               )|
23191               57[05629]|
23192               7(?:
23193                 2[05-9]|
23194                 3[37]|
23195                 4\d|
23196                 60|
23197                 7[2579]|
23198                 87|
23199                 9[07]
23200               )
23201             )
23202           )\d{4}|
23203           9[0-57-9]\d{7}
23204         </nationalNumberPattern>
23205         <exampleNumber>912345678</exampleNumber>
23206       </mobile>
23207       <!-- No tollFree or premiumRate information can be found. -->
23208     </territory>
23209
23210     <!-- Vatican City -->
23211     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
23212          also be dialled with the Vatican City country code. -->
23213     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
23214       <references>
23215         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City</sourceUrl>
23216       </references>
23217       <availableFormats>
23218         <numberFormat pattern="(06)(\d{4})(\d{4})">
23219           <format>$1 $2 $3</format>
23220         </numberFormat>
23221       </availableFormats>
23222       <generalDesc>
23223         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
23224         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23225       </generalDesc>
23226       <fixedLine>
23227         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
23228         <exampleNumber>0669812345</exampleNumber>
23229       </fixedLine>
23230       <mobile>
23231         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
23232              Italian mobile contracts. -->
23233         <nationalNumberPattern>NA</nationalNumberPattern>
23234         <possibleNumberPattern>NA</possibleNumberPattern>
23235       </mobile>
23236       <!-- No information exists about other types of numbers. -->
23237     </territory>
23238
23239     <!-- Saint Vincent and the Grenadines -->
23240     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
23241                internationalPrefix="011">
23242       <references>
23243         <sourceUrl>http://www.itu.int/oth/T02020000B3/en</sourceUrl>
23244       </references>
23245       <generalDesc>
23246         <!-- NANPA country - uses US formatting rules -->
23247         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
23248         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23249       </generalDesc>
23250       <!-- For 570, 571 and 572 prefixes, we believe the ITU doc incorrectly listed them to be under
23251            area code 758, which should be 784. -->
23252       <fixedLine>
23253         <nationalNumberPattern>
23254           784(?:
23255             266|
23256             3(?:
23257               6[6-9]|
23258               7\d|
23259               8[0-24-6]
23260             )|
23261             4(?:
23262               38|
23263               5[0-36-8]|
23264               8[0-8]
23265             )|
23266             5(?:
23267               55|
23268               7[0-2]|
23269               93
23270             )|
23271             638|
23272             784
23273           )\d{4}
23274         </nationalNumberPattern>
23275         <exampleNumber>7842661234</exampleNumber>
23276       </fixedLine>
23277       <mobile>
23278         <nationalNumberPattern>
23279           784(?:
23280             4(?:
23281               3[0-4]|
23282               5[45]|
23283               89|
23284               9[0-5]
23285             )|
23286             5(?:
23287               2[6-9]|
23288               3[0-4]
23289             )
23290           )\d{4}
23291         </nationalNumberPattern>
23292         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23293         <exampleNumber>7844301234</exampleNumber>
23294       </mobile>
23295       <tollFree>
23296         <nationalNumberPattern>
23297           8(?:
23298             00|
23299             44|
23300             55|
23301             66|
23302             77|
23303             88
23304           )[2-9]\d{6}
23305         </nationalNumberPattern>
23306         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23307         <exampleNumber>8002345678</exampleNumber>
23308       </tollFree>
23309       <premiumRate>
23310         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23311         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23312         <exampleNumber>9002345678</exampleNumber>
23313       </premiumRate>
23314       <personalNumber>
23315         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23316         <nationalNumberPattern>
23317           5(?:
23318             00|
23319             33|
23320             44|
23321             66|
23322             77
23323           )[2-9]\d{6}
23324         </nationalNumberPattern>
23325         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23326         <exampleNumber>5002345678</exampleNumber>
23327       </personalNumber>
23328     </territory>
23329
23330     <!-- Venezuela -->
23331     <!-- 1XX specifies a particular carrier to route a call to, but none of these have been
23332          implemented. -->
23333     <territory id="VE" countryCode="58" internationalPrefix="00"
23334                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23335                carrierCodeFormattingRule="$CC $FG">
23336       <references>
23337         <sourceUrl>http://www.itu.int/oth/T02020000E3/en</sourceUrl>
23338         <sourceUrl>http://en.wikipedia.org/wiki/+58</sourceUrl>
23339       </references>
23340       <availableFormats>
23341         <numberFormat pattern="(\d{3})(\d{7})">
23342           <format>$1-$2</format>
23343         </numberFormat>
23344       </availableFormats>
23345       <generalDesc>
23346         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
23347         <!-- Open numbering plan. -->
23348         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23349       </generalDesc>
23350       <fixedLine>
23351         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
23352              mentions these as 5XX, but online examples that can be found are seemingly restricted
23353              to 50[01]. -->
23354         <nationalNumberPattern>
23355           (?:
23356             2(?:
23357               12|
23358               3[457-9]|
23359               [58][1-9]|
23360               [467]\d|
23361               9[1-6]
23362             )|
23363             50[01]
23364           )\d{7}
23365         </nationalNumberPattern>
23366         <exampleNumber>2121234567</exampleNumber>
23367       </fixedLine>
23368       <mobile>
23369         <nationalNumberPattern>
23370           4(?:
23371             1[24-8]|
23372             2[46]
23373           )\d{7}
23374         </nationalNumberPattern>
23375         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23376         <exampleNumber>4121234567</exampleNumber>
23377       </mobile>
23378       <tollFree>
23379         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
23380         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23381         <exampleNumber>8001234567</exampleNumber>
23382       </tollFree>
23383       <premiumRate>
23384         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
23385         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23386         <exampleNumber>9001234567</exampleNumber>
23387       </premiumRate>
23388     </territory>
23389
23390     <!-- Virgin Islands, British -->
23391     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
23392                internationalPrefix="011">
23393       <references>
23394         <sourceUrl>http://www.itu.int/oth/T020200001E/en</sourceUrl>
23395       </references>
23396       <generalDesc>
23397         <!-- NANPA country - uses US formatting rules -->
23398         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
23399         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23400       </generalDesc>
23401       <fixedLine>
23402         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
23403              and 774 have been added from numbers found in the white pages. -->
23404         <nationalNumberPattern>
23405           284(?:
23406             (?:
23407               229|
23408               4(?:
23409                 22|
23410                 9[45]
23411               )|
23412               774|
23413               8(?:
23414                 52|
23415                 6[459]
23416               )
23417             )\d{4}|
23418             496[0-5]\d{3}
23419           )
23420         </nationalNumberPattern>
23421         <exampleNumber>2842291234</exampleNumber>
23422       </fixedLine>
23423       <mobile>
23424         <!-- No data on central office codes can be found on the nanpa.com website. The codes
23425              34[0-367], 446 and 54[57] have been added from numbers found in the white pages. -->
23426         <nationalNumberPattern>
23427           284(?:
23428             (?:
23429               3(?:
23430                 0[0-3]|
23431                 4[0-367]
23432               )|
23433               4(?:
23434                 4[0-6]|
23435                 68|
23436                 99
23437               )|
23438               54[0-57]
23439             )\d{4}|
23440             496[6-9]\d{3}
23441           )
23442         </nationalNumberPattern>
23443         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23444         <exampleNumber>2843001234</exampleNumber>
23445       </mobile>
23446       <tollFree>
23447         <nationalNumberPattern>
23448           8(?:
23449             00|
23450             44|
23451             55|
23452             66|
23453             77|
23454             88
23455           )[2-9]\d{6}
23456         </nationalNumberPattern>
23457         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23458         <exampleNumber>8002345678</exampleNumber>
23459       </tollFree>
23460       <premiumRate>
23461         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23462         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23463         <exampleNumber>9002345678</exampleNumber>
23464       </premiumRate>
23465       <personalNumber>
23466         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23467         <nationalNumberPattern>
23468           5(?:
23469             00|
23470             33|
23471             44|
23472             66|
23473             77
23474           )[2-9]\d{6}
23475         </nationalNumberPattern>
23476         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23477         <exampleNumber>5002345678</exampleNumber>
23478       </personalNumber>
23479     </territory>
23480
23481     <!-- Virgin Islands, United States -->
23482     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
23483                internationalPrefix="011">
23484       <references>
23485         <sourceUrl>http://www.itu.int/oth/T02020000DF/en</sourceUrl>
23486       </references>
23487       <generalDesc>
23488         <!-- NANPA country - uses US formatting rules -->
23489         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
23490         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23491       </generalDesc>
23492       <fixedLine>
23493         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
23494              yellow pages have been added, and the list of exchanges found on
23495              http://www.allareacodes.com/340 -->
23496         <nationalNumberPattern>
23497           340(?:
23498             2(?:
23499               01|
23500               2[0678]|
23501               44|
23502               77
23503             )|
23504             3(?:
23505               32|
23506               44
23507             )|
23508             4(?:
23509               22|
23510               7[34]
23511             )|
23512             5(?:
23513               1[34]|
23514               55
23515             )|
23516             6(?:
23517               26|
23518               4[23]|
23519               77|
23520               9[023]
23521             )|
23522             7(?:
23523               1[2-589]|
23524               27|
23525               7\d
23526             )|
23527             884|
23528             998
23529           )\d{4}
23530         </nationalNumberPattern>
23531         <exampleNumber>3406421234</exampleNumber>
23532       </fixedLine>
23533       <mobile>
23534         <nationalNumberPattern>
23535           340(?:
23536             2(?:
23537               01|
23538               2[0678]|
23539               44|
23540               77
23541             )|
23542             3(?:
23543               32|
23544               44
23545             )|
23546             4(?:
23547               22|
23548               7[34]
23549             )|
23550             5(?:
23551               1[34]|
23552               55
23553             )|
23554             6(?:
23555               26|
23556               4[23]|
23557               77|
23558               9[023]
23559             )|
23560             7(?:
23561               1[2-589]|
23562               27|
23563               7\d
23564             )|
23565             884|
23566             998
23567           )\d{4}
23568         </nationalNumberPattern>
23569         <exampleNumber>3406421234</exampleNumber>
23570       </mobile>
23571       <tollFree>
23572         <nationalNumberPattern>
23573           8(?:
23574             00|
23575             44|
23576             55|
23577             66|
23578             77|
23579             88
23580           )[2-9]\d{6}
23581         </nationalNumberPattern>
23582         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23583         <exampleNumber>8002345678</exampleNumber>
23584       </tollFree>
23585       <premiumRate>
23586         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23587         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23588         <exampleNumber>9002345678</exampleNumber>
23589       </premiumRate>
23590       <personalNumber>
23591         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23592         <nationalNumberPattern>
23593           5(?:
23594             00|
23595             33|
23596             44|
23597             66|
23598             77
23599           )[2-9]\d{6}
23600         </nationalNumberPattern>
23601         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23602         <exampleNumber>5002345678</exampleNumber>
23603       </personalNumber>
23604     </territory>
23605
23606     <!-- Viet Nam (Vietnam) -->
23607     <territory id="VN" countryCode="84" internationalPrefix="00"
23608                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23609                nationalPrefixOptionalWhenFormatting="true">
23610       <references>
23611         <sourceUrl>http://www.itu.int/oth/T02020000E4/en</sourceUrl>
23612         <sourceUrl>http://en.wikipedia.org/wiki/%2B84</sourceUrl>
23613       </references>
23614       <availableFormats>
23615         <numberFormat pattern="([17]99)(\d{4})">
23616           <leadingDigits>[17]99</leadingDigits>
23617           <format>$1 $2</format>
23618         </numberFormat>
23619         <numberFormat pattern="([48])(\d{4})(\d{4})">
23620           <leadingDigits>[48]</leadingDigits>
23621           <format>$1 $2 $3</format>
23622         </numberFormat>
23623         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
23624           <leadingDigits>
23625             2[025-79]|
23626             3[0136-9]|
23627             5[2-9]|
23628             6[0-46-8]|
23629             7[02-79]
23630           </leadingDigits>
23631           <format>$1 $2 $3</format>
23632         </numberFormat>
23633         <numberFormat pattern="(80)(\d{5})">
23634           <leadingDigits>80</leadingDigits>
23635           <format>$1 $2</format>
23636         </numberFormat>
23637         <numberFormat pattern="(69\d)(\d{4,5})">
23638           <leadingDigits>69</leadingDigits>
23639           <format>$1 $2</format>
23640         </numberFormat>
23641         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
23642           <leadingDigits>
23643             2[1348]|
23644             3[25]|
23645             5[01]|
23646             65|
23647             7[18]
23648           </leadingDigits>
23649           <format>$1 $2 $3</format>
23650         </numberFormat>
23651         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
23652           <leadingDigits>9</leadingDigits>
23653           <format>$1 $2 $3 $4</format>
23654         </numberFormat>
23655         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
23656           <leadingDigits>
23657             1(?:
23658               [26]|
23659               8[68]|
23660               99
23661             )
23662           </leadingDigits>
23663           <format>$1 $2 $3</format>
23664         </numberFormat>
23665         <numberFormat nationalPrefixFormattingRule="$FG"
23666           pattern="(1[89]00)(\d{4,6})">
23667           <leadingDigits>1[89]0</leadingDigits>
23668           <format>$1 $2</format>
23669         </numberFormat>
23670       </availableFormats>
23671       <generalDesc>
23672         <nationalNumberPattern>
23673           [17]\d{6,9}|
23674           [2-69]\d{7,9}|
23675           8\d{6,8}
23676         </nationalNumberPattern>
23677         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23678       </generalDesc>
23679       <noInternationalDialling>
23680         <nationalNumberPattern>
23681           [17]99\d{4}|
23682           69\d{5,6}
23683         </nationalNumberPattern>
23684         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23685         <exampleNumber>1992000</exampleNumber>
23686       </noInternationalDialling>
23687       <fixedLine>
23688         <nationalNumberPattern>
23689           (?:
23690             2(?:
23691               [025-79]|
23692               1[0189]|
23693               [348][01]
23694             )|
23695             3(?:
23696               [0136-9]|
23697               [25][01]
23698             )|
23699             4\d|
23700             5(?:
23701               [01][01]|
23702               [2-9]
23703             )|
23704             6(?:
23705               [0-46-8]|
23706               5[01]
23707             )|
23708             7(?:
23709               [02-79]|
23710               [18][01]
23711             )|
23712             8[1-9]
23713           )\d{7}
23714         </nationalNumberPattern>
23715         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23716         <exampleNumber>2101234567</exampleNumber>
23717       </fixedLine>
23718       <mobile>
23719         <nationalNumberPattern>
23720           (?:
23721             9\d|
23722             1(?:
23723               2\d|
23724               6[2-9]|
23725               8[68]|
23726               99
23727             )
23728           )\d{7}
23729         </nationalNumberPattern>
23730         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23731         <exampleNumber>912345678</exampleNumber>
23732       </mobile>
23733       <tollFree>
23734         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
23735         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23736         <exampleNumber>1800123456</exampleNumber>
23737       </tollFree>
23738       <premiumRate>
23739         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
23740         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23741         <exampleNumber>1900123456</exampleNumber>
23742       </premiumRate>
23743       <uan>
23744         <!-- These include non-geographic fixed numbers, such as for government ministries. While
23745         listed as "private networks", they may actually be callable from within Vietnam. (They are
23746         "private" in the sense that ordinary people could not be assigned these numbers.) -->
23747         <nationalNumberPattern>
23748           [17]99\d{4}|
23749           69\d{5,6}|
23750           80\d{5}
23751         </nationalNumberPattern>
23752         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23753         <exampleNumber>1992000</exampleNumber>
23754       </uan>
23755     </territory>
23756
23757     <!-- Vanuatu -->
23758     <territory id="VU" countryCode="678" internationalPrefix="00">
23759       <references>
23760         <sourceUrl>http://www.itu.int/oth/T02020000E2/en</sourceUrl>
23761       </references>
23762       <!-- Should be formatted in one block, apart from the mobile numbers. -->
23763       <availableFormats>
23764         <numberFormat pattern="(\d{3})(\d{4})">
23765           <leadingDigits>[579]</leadingDigits>
23766           <format>$1 $2</format>
23767         </numberFormat>
23768       </availableFormats>
23769       <generalDesc>
23770         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
23771         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23772       </generalDesc>
23773       <fixedLine>
23774         <nationalNumberPattern>
23775           (?:
23776             2[02-9]\d|
23777             3(?:
23778               [5-7]\d|
23779               8[0-8]
23780             )|
23781             48[4-9]|
23782             88\d
23783           )\d{2}
23784         </nationalNumberPattern>
23785         <possibleNumberPattern>\d{5}</possibleNumberPattern>
23786         <exampleNumber>22123</exampleNumber>
23787       </fixedLine>
23788       <mobile>
23789         <nationalNumberPattern>
23790           (?:
23791             5(?:
23792               7[2-5]|
23793               [3-69]\d
23794             )|
23795             7[013-7]\d
23796           )\d{4}
23797         </nationalNumberPattern>
23798         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23799         <exampleNumber>5912345</exampleNumber>
23800       </mobile>
23801       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
23802            for government fixed-line numbers. -->
23803       <uan>
23804         <nationalNumberPattern>
23805           3[03]\d{3}|
23806           900\d{4}
23807         </nationalNumberPattern>
23808         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23809         <exampleNumber>30123</exampleNumber>
23810       </uan>
23811     </territory>
23812
23813     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
23814     <territory id="WF" countryCode="681" internationalPrefix="00">
23815       <references>
23816         <sourceUrl>http://www.itu.int/oth/T02020000E6/en</sourceUrl>
23817       </references>
23818       <availableFormats>
23819         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
23820           <format>$1 $2 $3</format>
23821         </numberFormat>
23822       </availableFormats>
23823       <generalDesc>
23824         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
23825         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23826       </generalDesc>
23827       <fixedLine>
23828         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
23829              50 and 68 are possible, so they are included here. -->
23830         <nationalNumberPattern>
23831           (?:
23832             50|
23833             68|
23834             72
23835           )\d{4}
23836         </nationalNumberPattern>
23837         <exampleNumber>501234</exampleNumber>
23838       </fixedLine>
23839       <mobile>
23840         <nationalNumberPattern>
23841           (?:
23842             50|
23843             68|
23844             72
23845           )\d{4}
23846         </nationalNumberPattern>
23847         <exampleNumber>501234</exampleNumber>
23848       </mobile>
23849     </territory>
23850
23851     <!-- Samoa -->
23852     <territory id="WS" countryCode="685" internationalPrefix="0">
23853       <references>
23854         <sourceUrl>http://www.itu.int/oth/T02020000B4/en</sourceUrl>
23855       </references>
23856       <availableFormats>
23857         <numberFormat pattern="(8\d{2})(\d{3,4})">
23858           <leadingDigits>8</leadingDigits>
23859           <format>$1 $2</format>
23860         </numberFormat>
23861         <numberFormat pattern="(7\d)(\d{5})">
23862           <leadingDigits>7</leadingDigits>
23863           <format>$1 $2</format>
23864         </numberFormat>
23865         <numberFormat pattern="(\d{5})">
23866           <leadingDigits>[2-6]</leadingDigits>
23867           <format>$1</format>
23868         </numberFormat>
23869       </availableFormats>
23870       <generalDesc>
23871         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
23872         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23873       </generalDesc>
23874       <fixedLine>
23875         <nationalNumberPattern>
23876           (?:
23877             [2-5]\d|
23878             6[1-9]|
23879             84\d{2}
23880           )\d{3}
23881         </nationalNumberPattern>
23882         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23883         <exampleNumber>22123</exampleNumber>
23884       </fixedLine>
23885       <mobile>
23886         <nationalNumberPattern>
23887           (?:
23888             60|
23889             7[25-7]\d
23890           )\d{4}
23891         </nationalNumberPattern>
23892         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
23893         <exampleNumber>601234</exampleNumber>
23894       </mobile>
23895       <tollFree>
23896         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
23897              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
23898              for now, so may be also used for other purposes than toll free, but until we have
23899              further evidence of these we will keep it as toll free. -->
23900         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
23901         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23902         <exampleNumber>800123</exampleNumber>
23903       </tollFree>
23904       <!-- Current research suggests other types of numbers are not used in Samoa. -->
23905     </territory>
23906
23907     <!-- Yemen -->
23908     <territory id="YE" countryCode="967" internationalPrefix="00"
23909                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
23910       <references>
23911         <sourceUrl>http://www.itu.int/oth/T02020000E7/en</sourceUrl>
23912       </references>
23913       <availableFormats>
23914         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
23915           <leadingDigits>
23916             [1-6]|
23917             7[24-68]
23918           </leadingDigits>
23919           <format>$1 $2 $3</format>
23920         </numberFormat>
23921         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
23922           <leadingDigits>7[0137]</leadingDigits>
23923           <format>$1 $2 $3</format>
23924         </numberFormat>
23925       </availableFormats>
23926       <generalDesc>
23927         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
23928         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
23929       </generalDesc>
23930       <fixedLine>
23931         <nationalNumberPattern>
23932           (?:
23933             1(?:
23934               7\d|
23935               [2-68]
23936             )|
23937             2[2-68]|
23938             3[2358]|
23939             4[2-58]|
23940             5[2-6]|
23941             6[3-58]|
23942             7[24-68]
23943           )\d{5}
23944         </nationalNumberPattern>
23945         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
23946         <exampleNumber>1234567</exampleNumber>
23947       </fixedLine>
23948       <mobile>
23949         <!-- Adding 70 from numbers found online. -->
23950         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
23951         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23952         <exampleNumber>712345678</exampleNumber>
23953       </mobile>
23954       <!-- No tollFree or premiumRate information can be found. -->
23955     </territory>
23956
23957     <!-- Mayotte -->
23958     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
23959                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
23960       <references>
23961         <!-- Some information at the following source, but most from collection of internet data.
23962              -->
23963         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_France</sourceUrl>
23964         <!-- Verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
23965              -->
23966         <sourceUrl>http://www.comores-online.com/mwezinet/internet/262</sourceUrl>
23967       </references>
23968       <!-- Formatting as per La Réunion. -->
23969       <generalDesc>
23970         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
23971         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23972       </generalDesc>
23973       <fixedLine>
23974         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
23975         <exampleNumber>269601234</exampleNumber>
23976       </fixedLine>
23977       <mobile>
23978         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
23979         <exampleNumber>639123456</exampleNumber>
23980       </mobile>
23981       <!-- Same as in France. -->
23982       <tollFree>
23983         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23984         <exampleNumber>801234567</exampleNumber>
23985       </tollFree>
23986     </territory>
23987
23988     <!-- South Africa -->
23989     <territory id="ZA" countryCode="27" internationalPrefix="00"
23990                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23991                mobileNumberPortableRegion="true">
23992       <references>
23993         <sourceUrl>http://www.itu.int/oth/T02020000C1/en</sourceUrl>
23994         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa</sourceUrl>
23995       </references>
23996       <availableFormats>
23997         <numberFormat pattern="(860)(\d{3})(\d{3})">
23998           <leadingDigits>860</leadingDigits>
23999           <format>$1 $2 $3</format>
24000         </numberFormat>
24001         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
24002           <leadingDigits>
24003             [1-79]|
24004             8(?:
24005               [0-47]|
24006               6[1-9]
24007             )
24008           </leadingDigits>
24009           <format>$1 $2 $3</format>
24010         </numberFormat>
24011         <numberFormat pattern="(\d{2})(\d{3,4})">
24012           <leadingDigits>8[1-4]</leadingDigits>
24013           <format>$1 $2</format>
24014         </numberFormat>
24015         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
24016           <leadingDigits>8[1-4]</leadingDigits>
24017           <format>$1 $2 $3</format>
24018         </numberFormat>
24019       </availableFormats>
24020       <generalDesc>
24021         <nationalNumberPattern>
24022           [1-79]\d{8}|
24023           8(?:
24024             [067]\d{7}|
24025             [1-4]\d{3,7}
24026           )
24027         </nationalNumberPattern>
24028         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
24029       </generalDesc>
24030       <fixedLine>
24031         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
24032              used in 1996. -->
24033         <nationalNumberPattern>
24034           (?:
24035             1[0-8]|
24036             2[0-378]|
24037             3[1-69]|
24038             4\d|
24039             5[1346-8]
24040           )\d{7}
24041         </nationalNumberPattern>
24042         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24043         <exampleNumber>101234567</exampleNumber>
24044       </fixedLine>
24045       <mobile>
24046         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
24047              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
24048              in prominent places online, even though the ITU document says numbers must be 10 digits
24049              long (including the national prefix). -->
24050         <nationalNumberPattern>
24051           (?:
24052             6[0-5]|
24053             7[0-46-9]
24054           )\d{7}|
24055           8[1-4]\d{3,7}
24056         </nationalNumberPattern>
24057         <exampleNumber>711234567</exampleNumber>
24058       </mobile>
24059       <tollFree>
24060         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
24061         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24062         <exampleNumber>801234567</exampleNumber>
24063       </tollFree>
24064       <premiumRate>
24065         <nationalNumberPattern>
24066           86[2-9]\d{6}|
24067           90\d{7}
24068         </nationalNumberPattern>
24069         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24070         <exampleNumber>862345678</exampleNumber>
24071       </premiumRate>
24072       <sharedCost>
24073         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
24074         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24075         <exampleNumber>860123456</exampleNumber>
24076       </sharedCost>
24077       <voip>
24078         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
24079         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24080         <exampleNumber>871234567</exampleNumber>
24081       </voip>
24082       <uan>
24083         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
24084              numbers. -->
24085         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
24086         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24087         <exampleNumber>861123456</exampleNumber>
24088       </uan>
24089     </territory>
24090
24091     <!-- Zambia -->
24092     <territory id="ZM" countryCode="260" internationalPrefix="00"
24093                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24094       <references>
24095         <sourceUrl>http://www.itu.int/oth/T02020000E8/en</sourceUrl>
24096       </references>
24097       <availableFormats>
24098         <numberFormat pattern="([29]\d)(\d{7})">
24099           <leadingDigits>[29]</leadingDigits>
24100           <format>$1 $2</format>
24101         </numberFormat>
24102         <numberFormat pattern="(800)(\d{3})(\d{3})">
24103           <leadingDigits>8</leadingDigits>
24104           <format>$1 $2 $3</format>
24105         </numberFormat>
24106       </availableFormats>
24107       <generalDesc>
24108         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
24109         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24110       </generalDesc>
24111       <fixedLine>
24112         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
24113         <exampleNumber>211234567</exampleNumber>
24114       </fixedLine>
24115       <mobile>
24116         <!-- Adding extra prefixes 50 and 6[1-57-9] since SMS messages have been successfully
24117              delivered to these numbers, and numbers like this can be found on the Internet. Adding
24118              prefix 960 based on information received from MTN Zambia. The 97 range has been
24119              expanded based on their IR21 document, which states the range 97[1-9] is used. -->
24120         <nationalNumberPattern>
24121           9(?:
24122             5[05]|
24123             6\d|
24124             7[1-9]
24125           )\d{6}
24126         </nationalNumberPattern>
24127         <exampleNumber>955123456</exampleNumber>
24128       </mobile>
24129       <tollFree>
24130         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
24131         <exampleNumber>800123456</exampleNumber>
24132       </tollFree>
24133     </territory>
24134
24135     <!-- Zimbabwe -->
24136     <territory id="ZW" countryCode="263" internationalPrefix="00"
24137                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24138       <references>
24139         <sourceUrl>http://www.itu.int/oth/T02020000E9/en</sourceUrl>
24140       </references>
24141       <availableFormats>
24142         <!-- One-digit area codes -->
24143         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
24144           <leadingDigits>
24145             4|
24146             9[2-9]
24147           </leadingDigits>
24148           <format>$1 $2 $3</format>
24149         </numberFormat>
24150         <!-- Mobile numbers -->
24151         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
24152           <leadingDigits>
24153             [19]1|
24154             7
24155           </leadingDigits>
24156           <format>$1 $2 $3</format>
24157         </numberFormat>
24158         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
24159           <leadingDigits>86[24]</leadingDigits>
24160           <format>$1 $2 $3</format>
24161         </numberFormat>
24162         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
24163         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
24164           <leadingDigits>
24165             2(?:
24166               [278]|
24167               0[45]|
24168               [49]8
24169             )|
24170             3(?:
24171               08|
24172               17|
24173               3[78]|
24174               [78]
24175             )|
24176             5[15][78]|
24177             6(?:
24178               [29]8|
24179               37|
24180               [68][78]
24181             )
24182           </leadingDigits>
24183           <format>$1 $2</format>
24184         </numberFormat>
24185         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
24186           <leadingDigits>
24187             2(?:
24188               [278]|
24189               0[45]|
24190               48
24191             )|
24192             3(?:
24193               08|
24194               17|
24195               3[78]|
24196               [78]
24197             )|
24198             5[15][78]|
24199             6(?:
24200               [29]8|
24201               37|
24202               [68][78]
24203             )|
24204             80
24205           </leadingDigits>
24206           <format>$1 $2 $3</format>
24207         </numberFormat>
24208         <!-- Two-digit area codes -->
24209         <numberFormat pattern="([1-356]\d)(\d{3,5})">
24210           <leadingDigits>
24211             1[3-9]|
24212             2(?:
24213               [1-469]|
24214               0[0-35-9]|
24215               [45][0-79]
24216             )|
24217             3(?:
24218               0[0-79]|
24219               1[0-689]|
24220               [24-69]|
24221               3[0-69]
24222             )|
24223             5(?:
24224               [02-46-9]|
24225               [15][0-69]
24226             )|
24227             6(?:
24228               [0145]|
24229               [29][0-79]|
24230               3[0-689]|
24231               [68][0-69]
24232             )
24233           </leadingDigits>
24234           <format>$1 $2</format>
24235         </numberFormat>
24236         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
24237           <leadingDigits>
24238             1[3-9]|
24239             2(?:
24240               [1-469]|
24241               0[0-35-9]|
24242               [45][0-79]
24243             )|
24244             3(?:
24245               0[0-79]|
24246               1[0-689]|
24247               [24-69]|
24248               3[0-69]
24249             )|
24250             5(?:
24251               [02-46-9]|
24252               [15][0-69]
24253             )|
24254             6(?:
24255               [0145]|
24256               [29][0-79]|
24257               3[0-689]|
24258               [68][0-69]
24259             )
24260           </leadingDigits>
24261           <format>$1 $2 $3</format>
24262         </numberFormat>
24263         <!-- Four-digit area codes -->
24264         <numberFormat pattern="([25]\d{3})(\d{3,5})">
24265           <leadingDigits>
24266             (?:
24267               25|
24268               54
24269             )8
24270           </leadingDigits>
24271           <leadingDigits>
24272             258[23]|
24273             5483
24274           </leadingDigits>
24275           <format>$1 $2</format>
24276         </numberFormat>
24277         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
24278           <leadingDigits>
24279             (?:
24280               25|
24281               54
24282             )8
24283           </leadingDigits>
24284           <leadingDigits>
24285             258[23]|
24286             5483
24287           </leadingDigits>
24288           <format>$1 $2 $3</format>
24289         </numberFormat>
24290         <!-- VOIP numbers -->
24291         <numberFormat pattern="(8\d{3})(\d{6})">
24292           <leadingDigits>86</leadingDigits>
24293           <format>$1 $2</format>
24294         </numberFormat>
24295       </availableFormats>
24296       <generalDesc>
24297         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
24298              variable in length and the possible prefixes clash with the country code. -->
24299         <nationalNumberPattern>
24300           2(?:
24301             [012457-9]\d{3,8}|
24302             6\d{3,6}
24303           )|
24304           [13-79]\d{4,8}|
24305           8[06]\d{8}
24306         </nationalNumberPattern>
24307         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
24308       </generalDesc>
24309       <fixedLine>
24310         <!-- Numbering is grouped by subscriber-number length. -->
24311         <nationalNumberPattern>
24312           (?:
24313             1[3-9]|
24314             2(?:
24315               0[45]|
24316               [16]|
24317               2[28]|
24318               [49]8?|
24319               58[23]|
24320               7[246]|
24321               8[1346-9]
24322             )|
24323             3(?:
24324               08?|
24325               17?|
24326               3[78]|
24327               [2456]|
24328               7[1569]|
24329               8[379]
24330             )|
24331             5(?:
24332               [07-9]|
24333               1[78]|
24334               483|
24335               5(?:
24336                 7?|
24337                 8
24338               )
24339             )|
24340             6(?:
24341               0|
24342               28|
24343               37?|
24344               [45][68][78]|
24345               98?
24346             )|
24347             848
24348           )\d{3,6}|
24349           (?:
24350             2(?:
24351               27|
24352               5|
24353               7[135789]|
24354               8[25]
24355             )|
24356             3[39]|
24357             5[1-46]|
24358             6[126-8]
24359           )\d{4,6}|
24360           2(?:
24361             (?:
24362               0|
24363               70
24364             )\d{5,6}|
24365             2[05]\d{7}
24366           )|
24367           (?:
24368             4\d|
24369             9[2-8]
24370           )\d{4,7}
24371         </nationalNumberPattern>
24372         <exampleNumber>1312345</exampleNumber>
24373       </fixedLine>
24374       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
24375            also being used by the carriers as mobile prefixes. -->
24376       <mobile>
24377         <nationalNumberPattern>
24378           7[1378]\d{7}|
24379           86(?:
24380             22|
24381             44
24382           )\d{6}
24383         </nationalNumberPattern>
24384         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24385         <exampleNumber>711234567</exampleNumber>
24386       </mobile>
24387       <tollFree>
24388         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
24389         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24390         <exampleNumber>8001234567</exampleNumber>
24391       </tollFree>
24392       <!-- No premiumRate information can be found. -->
24393       <voip>
24394         <nationalNumberPattern>
24395           86(?:
24396             1[12]|
24397             30|
24398             55|
24399             77|
24400             8[367]|
24401             99
24402           )\d{6}
24403         </nationalNumberPattern>
24404         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24405         <exampleNumber>8686123456</exampleNumber>
24406       </voip>
24407     </territory>
24408
24409     <!-- Universal International Toll Free Number -->
24410     <territory id="001" countryCode="800" leadingZeroPossible="true">
24411       <references>
24412         <sourceUrl>http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx</sourceUrl>
24413       </references>
24414       <availableFormats>
24415         <numberFormat pattern="(\d{4})(\d{4})">
24416           <format>$1 $2</format>
24417         </numberFormat>
24418       </availableFormats>
24419       <generalDesc>
24420         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24421         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24422         <exampleNumber>12345678</exampleNumber>
24423       </generalDesc>
24424       <fixedLine>
24425         <nationalNumberPattern>NA</nationalNumberPattern>
24426         <possibleNumberPattern>NA</possibleNumberPattern>
24427       </fixedLine>
24428       <mobile>
24429         <nationalNumberPattern>NA</nationalNumberPattern>
24430         <possibleNumberPattern>NA</possibleNumberPattern>
24431       </mobile>
24432       <tollFree>
24433         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24434       </tollFree>
24435     </territory>
24436
24437     <!-- Universal International Shared Cost Number -->
24438     <territory id="001" countryCode="808" leadingZeroPossible="true">
24439       <references>
24440         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24441       </references>
24442       <availableFormats>
24443         <numberFormat pattern="(\d{4})(\d{4})">
24444           <format>$1 $2</format>
24445         </numberFormat>
24446       </availableFormats>
24447       <generalDesc>
24448         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24449         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24450         <exampleNumber>12345678</exampleNumber>
24451       </generalDesc>
24452       <fixedLine>
24453         <nationalNumberPattern>NA</nationalNumberPattern>
24454         <possibleNumberPattern>NA</possibleNumberPattern>
24455       </fixedLine>
24456       <mobile>
24457         <nationalNumberPattern>NA</nationalNumberPattern>
24458         <possibleNumberPattern>NA</possibleNumberPattern>
24459       </mobile>
24460       <sharedCost>
24461         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24462       </sharedCost>
24463     </territory>
24464
24465     <!-- Inmarsat Global Limited -->
24466     <territory id="001" countryCode="870">
24467       <references>
24468         <sourceUrl>http://www.itu.int/oth/T0202000065/en</sourceUrl>
24469         <sourceUrl>http://www.inmarsat.com</sourceUrl>
24470       </references>
24471       <availableFormats>
24472         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24473           <format>$1 $2 $3</format>
24474         </numberFormat>
24475       </availableFormats>
24476       <generalDesc>
24477         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
24478         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24479         <exampleNumber>301234567</exampleNumber>
24480       </generalDesc>
24481       <fixedLine>
24482         <nationalNumberPattern>NA</nationalNumberPattern>
24483         <possibleNumberPattern>NA</possibleNumberPattern>
24484       </fixedLine>
24485       <mobile>
24486         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
24487         <nationalNumberPattern>
24488           (?:
24489             [356]\d|
24490             7[6-8]
24491           )\d{7}
24492         </nationalNumberPattern>
24493       </mobile>
24494     </territory>
24495
24496     <!-- VISIONng -->
24497     <!-- Number length has been derived from examples found online. -->
24498     <territory id="001" countryCode="878">
24499       <references>
24500         <sourceUrl>http://www.itu.int/oth/T02020000E5/en</sourceUrl>
24501       </references>
24502       <availableFormats>
24503         <!-- Formatting chosen based on online examples. -->
24504         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
24505           <format>$1 $2 $3</format>
24506         </numberFormat>
24507       </availableFormats>
24508       <generalDesc>
24509         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
24510         <possibleNumberPattern>\d{12}</possibleNumberPattern>
24511         <exampleNumber>101234567890</exampleNumber>
24512       </generalDesc>
24513       <fixedLine>
24514         <nationalNumberPattern>NA</nationalNumberPattern>
24515         <possibleNumberPattern>NA</possibleNumberPattern>
24516       </fixedLine>
24517       <mobile>
24518         <nationalNumberPattern>NA</nationalNumberPattern>
24519         <possibleNumberPattern>NA</possibleNumberPattern>
24520       </mobile>
24521       <voip>
24522         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
24523       </voip>
24524     </territory>
24525
24526     <!-- Iridium -->
24527     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
24528          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
24529          are. For this reason, we only support Iridium numbers at the moment. -->
24530     <territory id="001" countryCode="881">
24531       <references>
24532         <sourceUrl>http://www.iridium.com</sourceUrl>
24533         <sourceUrl>http://www.itu.int/oth/T0202000069/en</sourceUrl>
24534       </references>
24535       <availableFormats>
24536         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
24537         <numberFormat pattern="(\d)(\d{3})(\d{5})">
24538           <leadingDigits>[67]</leadingDigits>
24539           <format>$1 $2 $3</format>
24540         </numberFormat>
24541       </availableFormats>
24542       <generalDesc>
24543         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24544         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24545         <exampleNumber>612345678</exampleNumber>
24546       </generalDesc>
24547       <fixedLine>
24548         <nationalNumberPattern>NA</nationalNumberPattern>
24549         <possibleNumberPattern>NA</possibleNumberPattern>
24550       </fixedLine>
24551       <mobile>
24552         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24553       </mobile>
24554     </territory>
24555
24556     <territory id="001" countryCode="882">
24557       <references>
24558         <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
24559         <sourceUrl>http://www.itu.int/oth/T0202000054/en</sourceUrl>
24560         <sourceUrl>http://www.gsm.aq/numberplan.php</sourceUrl>
24561         <sourceUrl>http://www.global.aq</sourceUrl>
24562         <!-- Maritime Communications Partner (MCP) +88232 -->
24563         <sourceUrl>http://www.itu.int/oth/T02020000F4/en</sourceUrl>
24564         <!-- Oration Technologies +88237 -->
24565         <sourceUrl>http://www.itu.int/oth/T02020000A0/en</sourceUrl>
24566         <!-- Telespazio S.p.A. +88213 -->
24567         <sourceUrl>http://www.itu.int/oth/T02020000CC/en</sourceUrl>
24568         <!-- Thuraya +88216 -->
24569         <sourceUrl>http://www.itu.int/oth/T02020000CF/en</sourceUrl>
24570       </references>
24571       <availableFormats>
24572         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
24573           <leadingDigits>3[23]</leadingDigits>
24574           <format>$1 $2 $3</format>
24575         </numberFormat>
24576         <numberFormat pattern="(\d{2})(\d{5})">
24577           <leadingDigits>
24578             16|
24579             342
24580           </leadingDigits>
24581           <format>$1 $2</format>
24582         </numberFormat>
24583         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
24584           <leadingDigits>34[57]</leadingDigits>
24585           <format>$1 $2 $3</format>
24586         </numberFormat>
24587         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
24588           <leadingDigits>348</leadingDigits>
24589           <format>$1 $2 $3</format>
24590         </numberFormat>
24591         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
24592           <leadingDigits>1</leadingDigits>
24593           <format>$1 $2 $3</format>
24594         </numberFormat>
24595         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
24596           <leadingDigits>16</leadingDigits>
24597           <format>$1 $2 $3</format>
24598         </numberFormat>
24599         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
24600           <leadingDigits>16</leadingDigits>
24601           <format>$1 $2 $3</format>
24602         </numberFormat>
24603       </availableFormats>
24604       <generalDesc>
24605         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
24606         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24607         <exampleNumber>3451234567</exampleNumber>
24608       </generalDesc>
24609       <fixedLine>
24610         <nationalNumberPattern>NA</nationalNumberPattern>
24611         <possibleNumberPattern>NA</possibleNumberPattern>
24612       </fixedLine>
24613       <mobile>
24614         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
24615              Oration based on numbers found online. -->
24616         <nationalNumberPattern>
24617           3(?:
24618             2\d{3}|
24619             37\d{2}|
24620             4(?:
24621               2|
24622               7\d{3}
24623             )
24624           )\d{4}
24625         </nationalNumberPattern>
24626         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
24627       </mobile>
24628       <voip>
24629         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
24630         <nationalNumberPattern>
24631           1(?:
24632             3(?:
24633               0[0347]|
24634               [13][0139]|
24635               2[035]|
24636               4[013568]|
24637               6[0459]|
24638               7[06]|
24639               8[15678]|
24640               9[0689]
24641             )\d{4}|
24642             6\d{5,10}
24643           )|
24644           345\d{7}
24645         </nationalNumberPattern>
24646         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24647       </voip>
24648       <voicemail>
24649         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
24650         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24651       </voicemail>
24652     </territory>
24653
24654     <territory id="001" countryCode="883">
24655       <references>
24656         <!-- bandwidth.com -->
24657         <sourceUrl>http://www.itu.int/oth/T02020000FB/en</sourceUrl>
24658         <!-- SipMe -->
24659         <sourceUrl>http://www.itu.int/oth/T02020000FC/en</sourceUrl>
24660         <!-- Voxbone -->
24661         <sourceUrl>http://www.itu.int/oth/T02020000F3/en</sourceUrl>
24662       </references>
24663       <availableFormats>
24664         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24665           <leadingDigits>510</leadingDigits>
24666           <format>$1 $2 $3</format>
24667         </numberFormat>
24668         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
24669           <leadingDigits>510</leadingDigits>
24670           <format>$1 $2 $3 $4</format>
24671         </numberFormat>
24672         <!-- When only 8 digits follow the "area code" formatting as XXXX XXXX
24673              seems preferred (see Bandwidth.com and SipMe). -->
24674         <numberFormat pattern="(\d{4})(\d{4})(\d{4})">
24675           <leadingDigits>51[13]</leadingDigits>
24676           <format>$1 $2 $3</format>
24677         </numberFormat>
24678       </availableFormats>
24679       <generalDesc>
24680         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
24681              costs can be found online, so we don't include them here for now. -->
24682         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
24683         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
24684         <exampleNumber>510012345</exampleNumber>
24685       </generalDesc>
24686       <fixedLine>
24687         <nationalNumberPattern>NA</nationalNumberPattern>
24688         <possibleNumberPattern>NA</possibleNumberPattern>
24689       </fixedLine>
24690       <mobile>
24691         <nationalNumberPattern>NA</nationalNumberPattern>
24692         <possibleNumberPattern>NA</possibleNumberPattern>
24693       </mobile>
24694       <voip>
24695         <nationalNumberPattern>
24696           51(?:
24697             00\d{5}(?:\d{3})?|
24698             [13]0\d{8}
24699           )
24700         </nationalNumberPattern>
24701       </voip>
24702     </territory>
24703
24704     <!-- United Nations- OCHA -->
24705     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
24706          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
24707          the tariff of a national call. -->
24708     <territory id="001" countryCode="888" leadingZeroPossible="true">
24709       <references>
24710         <sourceUrl>http://www.itu.int/oth/T02020000FA/en</sourceUrl>
24711       </references>
24712       <availableFormats>
24713         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
24714           <format>$1 $2 $3</format>
24715         </numberFormat>
24716       </availableFormats>
24717       <generalDesc>
24718         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24719         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24720         <exampleNumber>12345678901</exampleNumber>
24721       </generalDesc>
24722       <fixedLine>
24723         <nationalNumberPattern>NA</nationalNumberPattern>
24724         <possibleNumberPattern>NA</possibleNumberPattern>
24725       </fixedLine>
24726       <mobile>
24727         <nationalNumberPattern>NA</nationalNumberPattern>
24728         <possibleNumberPattern>NA</possibleNumberPattern>
24729       </mobile>
24730       <uan>
24731         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24732       </uan>
24733     </territory>
24734
24735     <!-- Universal International Premium Rate Number -->
24736     <territory id="001" countryCode="979" leadingZeroPossible="true">
24737       <references>
24738         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24739       </references>
24740       <availableFormats>
24741         <numberFormat pattern="(\d)(\d{4})(\d{4})">
24742           <format>$1 $2 $3</format>
24743         </numberFormat>
24744       </availableFormats>
24745       <generalDesc>
24746         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24747         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24748         <exampleNumber>123456789</exampleNumber>
24749       </generalDesc>
24750       <fixedLine>
24751         <nationalNumberPattern>NA</nationalNumberPattern>
24752         <possibleNumberPattern>NA</possibleNumberPattern>
24753       </fixedLine>
24754       <mobile>
24755         <nationalNumberPattern>NA</nationalNumberPattern>
24756         <possibleNumberPattern>NA</possibleNumberPattern>
24757       </mobile>
24758       <premiumRate>
24759         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24760       </premiumRate>
24761     </territory>
24762   </territories>
24763 </phoneNumberMetadata>