Metadata updates for release 7.0.6
[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         <!-- Prefix 256 was added from bug report. -->
1964         <nationalNumberPattern>
1965           246(?:
1966             (?:
1967               2[346]|
1968               45|
1969               82
1970             )\d|
1971             25[0-46]
1972           )\d{4}
1973         </nationalNumberPattern>
1974         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1975         <exampleNumber>2462501234</exampleNumber>
1976       </mobile>
1977       <tollFree>
1978         <nationalNumberPattern>
1979           8(?:
1980             00|
1981             44|
1982             55|
1983             66|
1984             77|
1985             88
1986           )[2-9]\d{6}
1987         </nationalNumberPattern>
1988         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1989         <exampleNumber>8002123456</exampleNumber>
1990       </tollFree>
1991       <premiumRate>
1992         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1993         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1994         <exampleNumber>9002123456</exampleNumber>
1995       </premiumRate>
1996       <personalNumber>
1997         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1998         <nationalNumberPattern>
1999           5(?:
2000             00|
2001             33|
2002             44|
2003             66|
2004             77
2005           )[2-9]\d{6}
2006         </nationalNumberPattern>
2007         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2008         <exampleNumber>5002345678</exampleNumber>
2009       </personalNumber>
2010     </territory>
2011
2012     <!-- Bangladesh -->
2013     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
2014                preferredInternationalPrefix="00"
2015                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
2016       <references>
2017         <sourceUrl>http://www.itu.int/oth/T0202000012/en</sourceUrl>
2018         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh</sourceUrl>
2019         <sourceUrl>http://www.btrc.gov.bd/sites/default/files/national_numbering_plan_2005_0.pdf</sourceUrl>
2020       </references>
2021       <availableFormats>
2022         <numberFormat pattern="(2)(\d{7})">
2023           <leadingDigits>2</leadingDigits>
2024           <format>$1-$2</format>
2025         </numberFormat>
2026         <numberFormat pattern="(\d{2})(\d{4,6})">
2027           <leadingDigits>[3-79]1</leadingDigits>
2028           <format>$1-$2</format>
2029         </numberFormat>
2030         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
2031         <numberFormat pattern="(\d{4})(\d{3,6})">
2032           <leadingDigits>
2033             1|
2034             3(?:
2035               0|
2036               [2-58]2
2037             )|
2038             4(?:
2039               0|
2040               [25]2|
2041               3[23]|
2042               [4689][25]
2043             )|
2044             5(?:
2045               [02-578]2|
2046               6[25]
2047             )|
2048             6(?:
2049               [0347-9]2|
2050               [26][25]
2051             )|
2052             7[02-9]2|
2053             8(?:
2054               [023][23]|
2055               [4-7]2
2056             )|
2057             9(?:
2058               [02][23]|
2059               [458]2|
2060               6[016]
2061             )
2062           </leadingDigits>
2063           <format>$1-$2</format>
2064         </numberFormat>
2065         <numberFormat pattern="(\d{3})(\d{3,7})">
2066           <leadingDigits>
2067             [3-79][2-9]|
2068             8
2069           </leadingDigits>
2070           <format>$1-$2</format>
2071         </numberFormat>
2072       </availableFormats>
2073       <generalDesc>
2074       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
2075            plan, so the country code can be accurately stripped off. -->
2076         <nationalNumberPattern>
2077           [2-79]\d{5,9}|
2078           1\d{9}|
2079           8[0-7]\d{4,8}
2080         </nationalNumberPattern>
2081         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
2082       </generalDesc>
2083       <fixedLine>
2084         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
2085              been realised, judging by online numbers and wikipedia. These patterns are grouped
2086              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731,
2087              02 910, etc.) are included despite not being mentioned on Wikipedia / ITU due to
2088              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
2089              do not - both are allowed for now. For some area codes, the subscriber number length
2090              described in our source documentation doesn't match numbers online (e.g. 05222) so we
2091              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
2092              also added 04452 and 04923 from numbers found online. -->
2093         <nationalNumberPattern>
2094           2(?:
2095             7(?:
2096               1[0-267]|
2097               2[0-289]|
2098               3[0-29]|
2099               [46][01]|
2100               5[1-3]|
2101               7[017]|
2102               91
2103             )|
2104             8(?:
2105               0[125]|
2106               [139][1-6]|
2107               2[0157-9]|
2108               6[1-35]|
2109               7[1-5]|
2110               8[1-8]
2111             )|
2112             9(?:
2113               0[0-2]|
2114               1[0-4]|
2115               2[568]|
2116               3[3-6]|
2117               5[5-7]|
2118               6[0167]|
2119               7[15]|
2120               8[0146-8]
2121             )
2122           )\d{4}|
2123           3(?:
2124             12?[5-7]\d{2}|
2125             0(?:
2126               2(?:
2127                 [025-79]\d|
2128                 [348]\d{1,2}
2129               )|
2130               3(?:
2131                 [2-4]\d|
2132                 [56]\d?
2133               )
2134             )|
2135             2(?:
2136               1\d{2}|
2137               2(?:
2138                 [12]\d|
2139                 [35]\d{1,2}|
2140                 4\d?
2141               )
2142             )|
2143             3(?:
2144               1\d{2}|
2145               2(?:
2146                 [2356]\d|
2147                 4\d{1,2}
2148               )
2149             )|
2150             4(?:
2151               1\d{2}|
2152               2(?:
2153                 2\d{1,2}|
2154                 [47]|
2155                 5\d{2}
2156               )
2157             )|
2158             5(?:
2159               1\d{2}|
2160               29
2161             )|
2162             [67]1\d{2}|
2163             8(?:
2164               1\d{2}|
2165               2(?:
2166                 2\d{2}|
2167                 3|
2168                 4\d
2169               )
2170             )
2171           )\d{3}|
2172           4(?:
2173             0(?:
2174               2(?:
2175                 [09]\d|
2176                 7
2177               )|
2178               33\d{2}
2179             )|
2180             1\d{3}|
2181             2(?:
2182               1\d{2}|
2183               2(?:
2184                 [25]\d?|
2185                 [348]\d|
2186                 [67]\d{1,2}
2187               )
2188             )|
2189             3(?:
2190               1\d{2}(?:\d{2})?|
2191               2(?:
2192                 [045]\d|
2193                 [236-9]\d{1,2}
2194               )|
2195               32\d{2}
2196             )|
2197             4(?:
2198               [18]\d{2}|
2199               2(?:
2200                 [2-46]\d{2}|
2201                 3
2202               )|
2203               5[25]\d{2}
2204             )|
2205             5(?:
2206               1\d{2}|
2207               2(?:
2208                 3\d|
2209                 5
2210               )
2211             )|
2212             6(?:
2213               [18]\d{2}|
2214               2(?:
2215                 3(?:\d{2})?|
2216                 [46]\d{1,2}|
2217                 5\d{2}|
2218                 7\d
2219               )|
2220               5(?:
2221                 3\d?|
2222                 4\d|
2223                 [57]\d{1,2}|
2224                 6\d{2}|
2225                 8
2226               )
2227             )|
2228             71\d{2}|
2229             8(?:
2230               [18]\d{2}|
2231               23\d{2}|
2232               54\d{2}
2233             )|
2234             9(?:
2235               [18]\d{2}|
2236               2[2-5]\d{2}|
2237               53\d{1,2}
2238             )
2239           )\d{3}|
2240           5(?:
2241             02[03489]\d{2}|
2242             1\d{2}|
2243             2(?:
2244               1\d{2}|
2245               2(?:
2246                 2(?:\d{2})?|
2247                 [457]\d{2}
2248               )
2249             )|
2250             3(?:
2251               1\d{2}|
2252               2(?:
2253                 [37](?:\d{2})?|
2254                 [569]\d{2}
2255               )
2256             )|
2257             4(?:
2258               1\d{2}|
2259               2[46]\d{2}
2260             )|
2261             5(?:
2262               1\d{2}|
2263               26\d{1,2}
2264             )|
2265             6(?:
2266               [18]\d{2}|
2267               2|
2268               53\d{2}
2269             )|
2270             7(?:
2271               1|
2272               24
2273             )\d{2}|
2274             8(?:
2275               1|
2276               26
2277             )\d{2}|
2278             91\d{2}
2279           )\d{3}|
2280           6(?:
2281             0(?:
2282               1\d{2}|
2283               2(?:
2284                 3\d{2}|
2285                 4\d{1,2}
2286               )
2287             )|
2288             2(?:
2289               2[2-5]\d{2}|
2290               5(?:
2291                 [3-5]\d{2}|
2292                 7
2293               )|
2294               8\d{2}
2295             )|
2296             3(?:
2297               1|
2298               2[3478]
2299             )\d{2}|
2300             4(?:
2301               1|
2302               2[34]
2303             )\d{2}|
2304             5(?:
2305               1|
2306               2[47]
2307             )\d{2}|
2308             6(?:
2309               [18]\d{2}|
2310               6(?:
2311                 2(?:
2312                   2\d|
2313                   [34]\d{2}
2314                 )|
2315                 5(?:
2316                   [24]\d{2}|
2317                   3\d|
2318                   5\d{1,2}
2319                 )
2320               )
2321             )|
2322             72[2-5]\d{2}|
2323             8(?:
2324               1\d{2}|
2325               2[2-5]\d{2}
2326             )|
2327             9(?:
2328               1\d{2}|
2329               2[2-6]\d{2}
2330             )
2331           )\d{3}|
2332           7(?:
2333             (?:
2334               02|
2335               [3-589]1|
2336               6[12]|
2337               72[24]
2338             )\d{2}|
2339             21\d{3}|
2340             32
2341           )\d{3}|
2342           8(?:
2343             (?:
2344               4[12]|
2345               [5-7]2|
2346               1\d?
2347             )|
2348             (?:
2349               0|
2350               3[12]|
2351               [5-7]1|
2352               217
2353             )\d
2354           )\d{4}|
2355           9(?:
2356             [35]1|
2357             (?:
2358               [024]2|
2359               81
2360             )\d|
2361             (?:
2362               1|
2363               [24]1
2364             )\d{2}
2365           )\d{3}
2366         </nationalNumberPattern>
2367         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
2368         <exampleNumber>27111234</exampleNumber>
2369       </fixedLine>
2370       <mobile>
2371         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
2372              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
2373              numbers should be moving to 1[13-9] anyway. -->
2374         <nationalNumberPattern>
2375           (?:
2376             1[13-9]\d|
2377             (?:
2378               3[78]|
2379               44
2380             )[02-9]|
2381             6(?:
2382               44|
2383               6[02-9]
2384             )
2385           )\d{7}
2386         </nationalNumberPattern>
2387         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2388         <exampleNumber>1812345678</exampleNumber>
2389       </mobile>
2390       <tollFree>
2391         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
2392         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
2393         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2394         <exampleNumber>8001234567</exampleNumber>
2395       </tollFree>
2396       <voip>
2397         <nationalNumberPattern>
2398           96(?:
2399             0[49]|
2400             1[0-4]|
2401             6[69]
2402           )\d{6}
2403         </nationalNumberPattern>
2404         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2405         <exampleNumber>9604123456</exampleNumber>
2406       </voip>
2407     </territory>
2408
2409     <!-- Belgium -->
2410     <territory id="BE" countryCode="32" internationalPrefix="00"
2411                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2412                mobileNumberPortableRegion="true">
2413       <references>
2414         <sourceUrl>http://www.bipt.be/en/operators/telecommunication/Numbering/Database</sourceUrl>
2415         <sourceUrl>http://www.bipt.be/public/files/en/474/20140829153659_Belgian_numbering_plan</sourceUrl>
2416         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Belgium</sourceUrl>
2417       </references>
2418       <availableFormats>
2419         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
2420           <leadingDigits>4[6-9]</leadingDigits>
2421           <format>$1 $2 $3 $4</format>
2422         </numberFormat>
2423         <numberFormat pattern="(\d)(\d{3})(\d{2})(\d{2})">
2424           <leadingDigits>
2425             [23]|
2426             4[23]|
2427             9[2-4]
2428           </leadingDigits>
2429           <format>$1 $2 $3 $4</format>
2430         </numberFormat>
2431         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2432           <leadingDigits>
2433             [156]|
2434             7[018]|
2435             8(?:
2436               0[1-9]|
2437               [1-79]
2438             )
2439           </leadingDigits>
2440           <format>$1 $2 $3 $4</format>
2441         </numberFormat>
2442         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2443           <leadingDigits>
2444             (?:
2445               80|
2446               9
2447             )0
2448           </leadingDigits>
2449           <format>$1 $2 $3</format>
2450         </numberFormat>
2451       </availableFormats>
2452       <generalDesc>
2453         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
2454         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2455       </generalDesc>
2456       <fixedLine>
2457         <nationalNumberPattern>
2458           (?:
2459             1[0-69]|
2460             [23][2-8]|
2461             4[23]|
2462             5\d|
2463             6[013-57-9]|
2464             71|
2465             8[1-79]|
2466             9[2-4]
2467           )\d{6}|
2468           80[2-8]\d{5}
2469         </nationalNumberPattern>
2470         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2471         <exampleNumber>12345678</exampleNumber>
2472       </fixedLine>
2473       <mobile>
2474         <nationalNumberPattern>
2475           4(?:
2476             6[0135-8]|
2477             [79]\d|
2478             8[3-9]
2479           )\d{6}
2480         </nationalNumberPattern>
2481         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2482         <exampleNumber>470123456</exampleNumber>
2483       </mobile>
2484       <tollFree>
2485         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2486         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2487         <exampleNumber>80012345</exampleNumber>
2488       </tollFree>
2489       <premiumRate>
2490         <nationalNumberPattern>
2491           (?:
2492             70[2-467]|
2493             90[0-79]
2494           )\d{5}
2495         </nationalNumberPattern>
2496         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2497         <exampleNumber>90123456</exampleNumber>
2498       </premiumRate>
2499       <uan>
2500         <!-- Using this for National Rate Services, since
2501              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
2502              says it will be priced the same as any other national calls. -->
2503         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
2504         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2505         <exampleNumber>78123456</exampleNumber>
2506       </uan>
2507     </territory>
2508
2509     <!-- Burkina Faso -->
2510     <territory id="BF" countryCode="226" internationalPrefix="00">
2511       <references>
2512         <sourceUrl>http://www.itu.int/oth/T0202000021/en</sourceUrl>
2513         <sourceUrl>http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf</sourceUrl>
2514       </references>
2515       <availableFormats>
2516         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
2517              chosen to use the standard from numbers found on the internet instead. -->
2518         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2519           <format>$1 $2 $3 $4</format>
2520         </numberFormat>
2521       </availableFormats>
2522       <generalDesc>
2523         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
2524         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2525       </generalDesc>
2526       <fixedLine>
2527         <nationalNumberPattern>
2528           (?:
2529             20(?:
2530               49|
2531               5[23]|
2532               9[016-9]
2533             )|
2534             40(?:
2535               4[569]|
2536               5[4-6]|
2537               7[0179]
2538             )|
2539             50(?:
2540               [34]\d|
2541               50
2542             )
2543           )\d{4}
2544         </nationalNumberPattern>
2545         <exampleNumber>20491234</exampleNumber>
2546       </fixedLine>
2547       <mobile>
2548         <nationalNumberPattern>
2549           6(?:
2550             [0-689]\d|
2551             7[0-5]
2552           )\d{5}|
2553           7\d{7}
2554         </nationalNumberPattern>
2555         <exampleNumber>70123456</exampleNumber>
2556       </mobile>
2557     </territory>
2558
2559     <!-- Bulgaria -->
2560     <territory id="BG" countryCode="359" internationalPrefix="00"
2561                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2562                mobileNumberPortableRegion="true">
2563       <references>
2564         <sourceUrl>http://www.itu.int/oth/T0202000020/en</sourceUrl>
2565       </references>
2566       <availableFormats>
2567         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
2568              used to separate the area code from the rest of the number, based on sites like
2569              http://www.goldenpages.bg. -->
2570         <numberFormat pattern="(2)(\d{5})">
2571           <leadingDigits>29</leadingDigits>
2572           <format>$1 $2</format>
2573         </numberFormat>
2574         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
2575           <leadingDigits>2</leadingDigits>
2576           <format>$1 $2 $3</format>
2577         </numberFormat>
2578         <numberFormat pattern="(\d{3})(\d{4})">
2579           <leadingDigits>
2580             43[124-7]|
2581             70[1-9]
2582           </leadingDigits>
2583           <format>$1 $2</format>
2584         </numberFormat>
2585         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
2586           <leadingDigits>
2587             43[124-7]|
2588             70[1-9]
2589           </leadingDigits>
2590           <format>$1 $2 $3</format>
2591         </numberFormat>
2592         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2593           <leadingDigits>[78]00</leadingDigits>
2594           <format>$1 $2 $3</format>
2595         </numberFormat>
2596         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
2597           <leadingDigits>
2598             [356]|
2599             4[124-7]|
2600             7[1-9]|
2601             8[1-6]|
2602             9[1-7]
2603           </leadingDigits>
2604           <format>$1 $2 $3</format>
2605         </numberFormat>
2606         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2607           <leadingDigits>
2608             48|
2609             8[7-9]|
2610             9[08]
2611           </leadingDigits>
2612           <format>$1 $2 $3</format>
2613         </numberFormat>
2614       </availableFormats>
2615       <generalDesc>
2616         <nationalNumberPattern>
2617           [23567]\d{5,7}|
2618           [489]\d{6,8}
2619         </nationalNumberPattern>
2620         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
2621       </generalDesc>
2622       <fixedLine>
2623         <!-- 29xxxx numbers have been added because they can be found online, and are typically
2624              used by taxi companies. -->
2625         <nationalNumberPattern>
2626           2(?:
2627             [0-8]\d{5,6}|
2628             9\d{4,6}
2629           )|
2630           (?:
2631             [36]\d|
2632             5[1-9]|
2633             8[1-6]|
2634             9[1-7]
2635           )\d{5,6}|
2636           (?:
2637             4(?:
2638               [124-7]\d|
2639               3[1-6]
2640             )|
2641             7(?:
2642               0[1-9]|
2643               [1-9]\d
2644             )
2645           )\d{4,5}
2646         </nationalNumberPattern>
2647         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
2648         <exampleNumber>2123456</exampleNumber>
2649       </fixedLine>
2650       <mobile>
2651         <nationalNumberPattern>
2652           (?:
2653             8[7-9]|
2654             98
2655           )\d{7}|
2656           4(?:
2657             3[0789]|
2658             8\d
2659           )\d{5}
2660         </nationalNumberPattern>
2661         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2662         <exampleNumber>48123456</exampleNumber>
2663       </mobile>
2664       <tollFree>
2665         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2666         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2667         <exampleNumber>80012345</exampleNumber>
2668       </tollFree>
2669       <premiumRate>
2670         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
2671         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2672         <exampleNumber>90123456</exampleNumber>
2673       </premiumRate>
2674       <personalNumber>
2675         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
2676         <exampleNumber>70012345</exampleNumber>
2677       </personalNumber>
2678     </territory>
2679
2680     <!-- Bahrain -->
2681     <territory id="BH" countryCode="973" internationalPrefix="00" mobileNumberPortableRegion="true">
2682       <references>
2683         <sourceUrl>http://www.itu.int/oth/T0202000011/en</sourceUrl>
2684         <sourceUrl>http://www.tra.org.bh/en/marketNumbering.aspx</sourceUrl>
2685         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain</sourceUrl>
2686       </references>
2687       <availableFormats>
2688         <numberFormat pattern="(\d{4})(\d{4})">
2689           <format>$1 $2</format>
2690         </numberFormat>
2691       </availableFormats>
2692       <generalDesc>
2693         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
2694         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2695       </generalDesc>
2696       <!-- Some ranges were previously described as "universal", but in subsequent versions of the
2697            ITU doc they have been specified to be mobile or fixed-line. We follow the ITU
2698            designations, even though some publications still refer to them as universal. -->
2699       <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
2700            "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts the ITU doc
2701            which lists "6966, 6969, 6996, 6999". We follow ITU here. -->
2702       <fixedLine>
2703         <nationalNumberPattern>
2704           (?:
2705             1(?:
2706               3[1356]|
2707               6[0156]|
2708               7\d
2709             )\d|
2710             6(?:
2711               1[16]\d|
2712               500|
2713               6(?:
2714                 0\d|
2715                 3[12]|
2716                 44|
2717                 7[7-9]
2718               )|
2719               9[69][69]
2720             )|
2721             7(?:
2722               1(?:
2723                 11|
2724                 78
2725               )|
2726               7\d{2}
2727             )
2728           )\d{4}
2729         </nationalNumberPattern>
2730         <exampleNumber>17001234</exampleNumber>
2731       </fixedLine>
2732       <!-- 31 is assigned to Royal Court, as per documents on Bahrain's own telecom site, even
2733            though it is omitted from the ITU document. -->
2734       <mobile>
2735         <nationalNumberPattern>
2736           (?:
2737             3(?:
2738               [1-4679]\d|
2739               5[013569]|
2740               8[0-47-9]
2741             )\d|
2742             6(?:
2743               3(?:
2744                 00|
2745                 33|
2746                 6[16]
2747               )|
2748               6(?:
2749                 [69]\d|
2750                 3[03-9]|
2751                 7[0-6]
2752               )
2753             )
2754           )\d{4}
2755         </nationalNumberPattern>
2756         <exampleNumber>36001234</exampleNumber>
2757       </mobile>
2758       <tollFree>
2759         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
2760         <exampleNumber>80123456</exampleNumber>
2761       </tollFree>
2762       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
2763            now. -->
2764       <premiumRate>
2765         <nationalNumberPattern>
2766           (?:
2767             87|
2768             9[014578]
2769           )\d{6}
2770         </nationalNumberPattern>
2771         <exampleNumber>90123456</exampleNumber>
2772       </premiumRate>
2773       <sharedCost>
2774         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
2775         <exampleNumber>84123456</exampleNumber>
2776       </sharedCost>
2777     </territory>
2778
2779     <!-- Burundi -->
2780     <territory id="BI" countryCode="257" internationalPrefix="00">
2781       <references>
2782         <sourceUrl>http://www.itu.int/oth/T0202000022/en</sourceUrl>
2783       </references>
2784       <availableFormats>
2785         <numberFormat
2786           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2787           <format>$1 $2 $3 $4</format>
2788         </numberFormat>
2789       </availableFormats>
2790       <generalDesc>
2791         <nationalNumberPattern>[267]\d{7}</nationalNumberPattern>
2792         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2793       </generalDesc>
2794       <fixedLine>
2795         <nationalNumberPattern>
2796           22(?:
2797             2[0-7]|
2798             [3-5]0
2799           )\d{4}
2800         </nationalNumberPattern>
2801         <exampleNumber>22201234</exampleNumber>
2802       </fixedLine>
2803       <mobile>
2804         <!-- Extra online mobile number prefixes found: 74.
2805              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
2806              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
2807              satellite phones. -->
2808         <nationalNumberPattern>
2809           (?:
2810             [26]9|
2811             7[14-9]
2812           )\d{6}
2813         </nationalNumberPattern>
2814         <exampleNumber>79561234</exampleNumber>
2815       </mobile>
2816     </territory>
2817
2818     <!-- Benin -->
2819     <territory id="BJ" countryCode="229" internationalPrefix="00">
2820       <references>
2821         <sourceUrl>http://www.itu.int/oth/T0202000017/en</sourceUrl>
2822       </references>
2823       <availableFormats>
2824         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2825           <format>$1 $2 $3 $4</format>
2826         </numberFormat>
2827         <!-- Numbers beginning with 7 should be formatted as a block. -->
2828       </availableFormats>
2829       <generalDesc>
2830         <nationalNumberPattern>
2831           [2689]\d{7}|
2832           7\d{3}
2833         </nationalNumberPattern>
2834         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
2835       </generalDesc>
2836       <fixedLine>
2837         <!-- These come from the national numbering plan, but have been widened to include other
2838              prefixes found in the yellow pages - specifically 21 0. -->
2839         <nationalNumberPattern>
2840           2(?:
2841             02|
2842             1[037]|
2843             2[45]|
2844             3[68]
2845           )\d{5}
2846         </nationalNumberPattern>
2847         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2848         <exampleNumber>20211234</exampleNumber>
2849       </fixedLine>
2850       <mobile>
2851         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
2852              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
2853              6[167] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
2854              reported as having prefixes 68 and 9[89]. -->
2855         <nationalNumberPattern>
2856           (?:
2857             6[146-8]|
2858             9[03-9]
2859           )\d{6}
2860         </nationalNumberPattern>
2861         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2862         <exampleNumber>90011234</exampleNumber>
2863       </mobile>
2864       <tollFree>
2865         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
2866         <possibleNumberPattern>\d{4}</possibleNumberPattern>
2867         <exampleNumber>7312</exampleNumber>
2868       </tollFree>
2869       <voip>
2870         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
2871         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2872         <exampleNumber>85751234</exampleNumber>
2873       </voip>
2874       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
2875            as a local-call.) We model these as UAN since we have no more detailed information. -->
2876       <uan>
2877         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
2878         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2879         <exampleNumber>81123456</exampleNumber>
2880       </uan>
2881     </territory>
2882
2883     <!-- Saint Barthélemy, French Antilles -->
2884     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
2885          national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but
2886          it appears from searches in online white and yellow pages that a subset of the prefixes
2887          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
2888          of these region codes will be returned, although numbers will be valid for both regions.
2889          -->
2890     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
2891       <references>
2892         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
2893       </references>
2894       <!-- Formatting rules borrowed from Guadeloupe. -->
2895       <generalDesc>
2896         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
2897         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2898       </generalDesc>
2899       <fixedLine>
2900         <nationalNumberPattern>
2901           590(?:
2902             2[7-9]|
2903             5[12]|
2904             87
2905           )\d{4}
2906         </nationalNumberPattern>
2907         <exampleNumber>590271234</exampleNumber>
2908       </fixedLine>
2909       <mobile>
2910         <!-- Any ranges assigned from
2911              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
2912              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
2913              them. -->
2914         <nationalNumberPattern>
2915           690(?:
2916             0[0-7]|
2917             [1-9]\d
2918           )\d{4}
2919         </nationalNumberPattern>
2920         <exampleNumber>690301234</exampleNumber>
2921       </mobile>
2922     </territory>
2923
2924     <!-- Bermuda -->
2925     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
2926                internationalPrefix="011">
2927       <references>
2928         <sourceUrl>http://www.itu.int/oth/T0202000018/en</sourceUrl>
2929       </references>
2930       <generalDesc>
2931         <!-- NANPA country - uses US formatting rules -->
2932         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
2933         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
2934       </generalDesc>
2935       <fixedLine>
2936         <nationalNumberPattern>
2937           441(?:
2938             2(?:
2939               02|
2940               23|
2941               61|
2942               [3479]\d
2943             )|
2944             [46]\d{2}|
2945             5(?:
2946               4\d|
2947               60|
2948               89
2949             )|
2950             824
2951           )\d{4}
2952         </nationalNumberPattern>
2953         <exampleNumber>4412345678</exampleNumber>
2954       </fixedLine>
2955       <mobile>
2956         <nationalNumberPattern>
2957           441(?:
2958             [37]\d|
2959             5[0-39]
2960           )\d{5}
2961         </nationalNumberPattern>
2962         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2963         <exampleNumber>4413701234</exampleNumber>
2964       </mobile>
2965       <tollFree>
2966         <nationalNumberPattern>
2967           8(?:
2968             00|
2969             44|
2970             55|
2971             66|
2972             77|
2973             88
2974           )[2-9]\d{6}
2975         </nationalNumberPattern>
2976         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2977         <exampleNumber>8002123456</exampleNumber>
2978       </tollFree>
2979       <premiumRate>
2980         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
2981         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2982         <exampleNumber>9002123456</exampleNumber>
2983       </premiumRate>
2984       <personalNumber>
2985         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
2986         <nationalNumberPattern>
2987           5(?:
2988             00|
2989             33|
2990             44|
2991             66|
2992             77
2993           )[2-9]\d{6}
2994         </nationalNumberPattern>
2995         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2996         <exampleNumber>5002345678</exampleNumber>
2997       </personalNumber>
2998     </territory>
2999
3000     <!-- Brunei Darussalam -->
3001     <territory id="BN" countryCode="673" internationalPrefix="00">
3002       <references>
3003         <sourceUrl>http://www.itu.int/oth/T020200001F/en</sourceUrl>
3004       </references>
3005       <!-- Format is from http://aiti.gov.bn/contact.html -->
3006       <availableFormats>
3007         <numberFormat pattern="([2-578]\d{2})(\d{4})">
3008           <format>$1 $2</format>
3009         </numberFormat>
3010       </availableFormats>
3011       <generalDesc>
3012         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
3013         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3014       </generalDesc>
3015       <fixedLine>
3016         <nationalNumberPattern>
3017           2(?:
3018             [013-9]\d|
3019             2[0-7]
3020           )\d{4}|
3021           [3-5]\d{6}
3022         </nationalNumberPattern>
3023         <exampleNumber>2345678</exampleNumber>
3024       </fixedLine>
3025       <mobile>
3026         <nationalNumberPattern>
3027           22[89]\d{4}|
3028           [78]\d{6}
3029         </nationalNumberPattern>
3030         <exampleNumber>7123456</exampleNumber>
3031       </mobile>
3032     </territory>
3033
3034     <!-- Bolivia -->
3035     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
3036                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
3037       <references>
3038         <sourceUrl>http://www.itu.int/oth/T020200001A/en</sourceUrl>
3039         <sourceUrl>http://www.bolivia.com/Servicios/Plandenumeracion.pdf</sourceUrl>
3040       </references>
3041       <availableFormats>
3042         <numberFormat pattern="([234])(\d{7})">
3043           <leadingDigits>[234]</leadingDigits>
3044           <format>$1 $2</format>
3045         </numberFormat>
3046         <numberFormat pattern="([67]\d{7})">
3047           <leadingDigits>[67]</leadingDigits>
3048           <format>$1</format>
3049         </numberFormat>
3050       </availableFormats>
3051       <generalDesc>
3052         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
3053         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3054       </generalDesc>
3055       <fixedLine>
3056         <nationalNumberPattern>
3057           (?:
3058             2(?:
3059               2\d{2}|
3060               5(?:11|[258]\d|9[67])|
3061               6(?:12|2\d|9[34])|
3062               8(?:2[34]|39|62)
3063             )|
3064             3(?:
3065               3\d{2}|
3066               4(?:6\d|8[24])|
3067               8(?:25|42|5[257]|86|9[25])|
3068               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
3069             )|
3070             4(?:
3071               4\d{2}|
3072               6(?:11|[24689]\d|72)
3073             )
3074           )\d{4}
3075         </nationalNumberPattern>
3076         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3077         <exampleNumber>22123456</exampleNumber>
3078       </fixedLine>
3079       <mobile>
3080         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
3081         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3082         <exampleNumber>71234567</exampleNumber>
3083       </mobile>
3084     </territory>
3085
3086     <!-- Bonaire, Sint Eustatius and Saba -->
3087     <territory id="BQ" countryCode="599" internationalPrefix="00">
3088       <references>
3089         <sourceUrl>http://www.itu.int/oth/T02020000F8/en</sourceUrl>
3090       </references>
3091       <!-- Shares formatting patterns with CW. -->
3092       <generalDesc>
3093         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
3094         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3095       </generalDesc>
3096       <fixedLine>
3097         <nationalNumberPattern>
3098           (?:
3099             318[023]|
3100             416[023]|
3101             7(?:
3102               1[578]|
3103               50
3104             )\d
3105           )\d{3}
3106         </nationalNumberPattern>
3107         <exampleNumber>7151234</exampleNumber>
3108       </fixedLine>
3109       <mobile>
3110         <nationalNumberPattern>
3111           (?:
3112             318[14-68]|
3113             416[15-9]|
3114             7(?:
3115               0[01]|
3116               7[07]|
3117               [89]\d
3118             )\d
3119           )\d{3}
3120         </nationalNumberPattern>
3121         <exampleNumber>3181234</exampleNumber>
3122       </mobile>
3123     </territory>
3124
3125     <!-- Brazil -->
3126     <territory id="BR" countryCode="55"
3127                internationalPrefix="00(?:1[45]|2[135]|31|4[13])"
3128                nationalPrefix="0"
3129                nationalPrefixForParsing="0(?:(1[245]|2[135]|31|4[13])(\d{10,11}))?"
3130                nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true">
3131       <references>
3132         <sourceUrl>http://en.wikipedia.org/wiki/%2B55</sourceUrl>
3133         <sourceUrl>http://www.itu.int/oth/T020200001D/en</sourceUrl>
3134       </references>
3135       <!-- The national prefix for parsing here also contains a capturing group for the main number,
3136            since the carrier codes here may also be area codes, so we want to check the length of
3137            the number after capturing. We also need a nationalTransformRule to repopulate with the
3138            number without the carrier code. -->
3139       <availableFormats>
3140         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
3141              rules here handle this case. The leading digits pattern must be specific enough such
3142              that it doesn't match X00 numbers (e.g. toll-free). -->
3143         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
3144           <leadingDigits>
3145             [2-9](?:
3146               [1-9]|
3147               0[1-9]
3148             )
3149           </leadingDigits>
3150           <format>$1-$2</format>
3151           <intlFormat>NA</intlFormat>
3152         </numberFormat>
3153         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
3154           <leadingDigits>
3155             9(?:
3156               [1-9]|
3157               0[1-9]
3158             )
3159           </leadingDigits>
3160           <format>$1-$2</format>
3161           <intlFormat>NA</intlFormat>
3162         </numberFormat>
3163         <!-- Format short numbers as a block. -->
3164         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
3165           <leadingDigits>1[125689]</leadingDigits>
3166           <format>$1</format>
3167           <intlFormat>NA</intlFormat>
3168         </numberFormat>
3169         <numberFormat nationalPrefixFormattingRule="($FG)"
3170             pattern="(\d{2})(\d{5})(\d{4})"
3171             carrierCodeFormattingRule="$NP $CC ($FG)">
3172           <leadingDigits>
3173             (?:
3174               [189][1-9]|
3175               2[12478]
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[1-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 May 2015.) 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             [89][1-9]
3241           )9?[6-9]\d{7}|
3242           (?:
3243             3[1-578]|
3244             [46][1-9]|
3245             5[1-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         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Costa_Rica</sourceUrl>
5090       </references>
5091       <availableFormats>
5092         <numberFormat pattern="(\d{4})(\d{4})">
5093           <leadingDigits>
5094             [24-7]|
5095             8[3-9]
5096           </leadingDigits>
5097           <format>$1 $2</format>
5098         </numberFormat>
5099         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
5100           <leadingDigits>[89]0</leadingDigits>
5101           <format>$1-$2-$3</format>
5102         </numberFormat>
5103       </availableFormats>
5104       <generalDesc>
5105         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
5106         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
5107       </generalDesc>
5108       <fixedLine>
5109         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
5110         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5111         <exampleNumber>22123456</exampleNumber>
5112       </fixedLine>
5113       <mobile>
5114         <nationalNumberPattern>
5115           5(?:
5116             0[01]|
5117             7[0-3]
5118           )\d{5}|
5119           6(?:
5120             [0-2]\d|
5121             30
5122           )\d{5}|
5123           7[0-3]\d{6}|
5124           8[3-9]\d{6}
5125         </nationalNumberPattern>
5126         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5127         <exampleNumber>83123456</exampleNumber>
5128       </mobile>
5129       <tollFree>
5130         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
5131         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5132         <exampleNumber>8001234567</exampleNumber>
5133       </tollFree>
5134       <premiumRate>
5135         <!-- Includes "mass calls" numbers with prefix 905. -->
5136         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
5137         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5138         <exampleNumber>9001234567</exampleNumber>
5139       </premiumRate>
5140       <voip>
5141         <!-- Including trunking service numbers starting with 5100. -->
5142         <!-- Prefixes for VOIP simplified from wikipidea 4xxx xxxx -->
5143         <!-- Prefix 210x xxxx present before, taken from ITU doc -->
5144         <nationalNumberPattern>
5145           210[0-6]\d{4}|
5146           4\d{7}|
5147           5100\d{4}
5148         </nationalNumberPattern>
5149         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5150         <exampleNumber>40001234</exampleNumber>
5151       </voip>
5152     </territory>
5153
5154     <!-- Cuba -->
5155     <territory id="CU" countryCode="53" internationalPrefix="119"
5156                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
5157       <references>
5158         <sourceUrl>http://www.itu.int/oth/T0202000033/en</sourceUrl>
5159       </references>
5160       <availableFormats>
5161         <numberFormat pattern="(\d)(\d{6,7})">
5162           <leadingDigits>7</leadingDigits>
5163           <format>$1 $2</format>
5164         </numberFormat>
5165         <numberFormat pattern="(\d{2})(\d{4,6})">
5166           <leadingDigits>[2-4]</leadingDigits>
5167           <format>$1 $2</format>
5168         </numberFormat>
5169         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5170           <leadingDigits>5</leadingDigits>
5171           <format>$1 $2</format>
5172         </numberFormat>
5173       </availableFormats>
5174       <generalDesc>
5175         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
5176         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
5177       </generalDesc>
5178       <fixedLine>
5179         <nationalNumberPattern>
5180           2[1-4]\d{5,6}|
5181           3(?:
5182             1\d{6}|
5183             [23]\d{4,6}
5184           )|
5185           4(?:
5186             [125]\d{5,6}|
5187             [36]\d{6}|
5188             [78]\d{4,6}
5189           )|
5190           7\d{6,7}
5191         </nationalNumberPattern>
5192         <exampleNumber>71234567</exampleNumber>
5193       </fixedLine>
5194       <mobile>
5195         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
5196         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5197         <exampleNumber>51234567</exampleNumber>
5198       </mobile>
5199     </territory>
5200
5201     <!-- Cape Verde -->
5202     <territory id="CV" countryCode="238" internationalPrefix="0">
5203       <references>
5204         <sourceUrl>http://www.itu.int/oth/T0202000026/en</sourceUrl>
5205       </references>
5206       <availableFormats>
5207         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
5208           <format>$1 $2 $3</format>
5209         </numberFormat>
5210       </availableFormats>
5211       <generalDesc>
5212         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
5213         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5214       </generalDesc>
5215       <fixedLine>
5216         <nationalNumberPattern>
5217           2(?:
5218             2[1-7]|
5219             3[0-8]|
5220             4[12]|
5221             5[1256]|
5222             6\d|
5223             7[1-3]|
5224             8[1-5]
5225           )\d{4}
5226         </nationalNumberPattern>
5227         <exampleNumber>2211234</exampleNumber>
5228       </fixedLine>
5229       <mobile>
5230         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
5231              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
5232              example, and there are plenty of numbers on the internet that start with these
5233              prefixes. -->
5234         <nationalNumberPattern>
5235           (?:
5236             9\d|
5237             59
5238           )\d{5}
5239         </nationalNumberPattern>
5240         <exampleNumber>9911234</exampleNumber>
5241       </mobile>
5242     </territory>
5243
5244     <!-- Curaçao -->
5245     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
5246       <references>
5247         <sourceUrl>http://www.itu.int/oth/T02020000F5/en</sourceUrl>
5248       </references>
5249       <!-- All the formatting patterns for country-code 599 are here. -->
5250       <availableFormats>
5251         <numberFormat pattern="(\d{3})(\d{4})">
5252           <leadingDigits>[13-7]</leadingDigits>
5253           <format>$1 $2</format>
5254         </numberFormat>
5255         <numberFormat pattern="(9)(\d{3})(\d{4})">
5256           <leadingDigits>9</leadingDigits>
5257           <format>$1 $2 $3</format>
5258         </numberFormat>
5259       </availableFormats>
5260       <generalDesc>
5261         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
5262         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
5263       </generalDesc>
5264       <fixedLine>
5265         <nationalNumberPattern>
5266           9(?:
5267             [48]\d{2}|
5268             50\d|
5269             7(?:
5270               2[0-24]|
5271               [34]\d|
5272               6[35-7]|
5273               77|
5274               8[7-9]
5275             )
5276           )\d{4}
5277         </nationalNumberPattern>
5278         <exampleNumber>94151234</exampleNumber>
5279       </fixedLine>
5280       <mobile>
5281         <nationalNumberPattern>
5282           9(?:
5283             5(?:
5284               [1246]\d|
5285               3[01]
5286             )|
5287             6(?:
5288               [16-9]\d|
5289               3[01]
5290             )
5291           )\d{4}
5292         </nationalNumberPattern>
5293         <exampleNumber>95181234</exampleNumber>
5294       </mobile>
5295       <pager>
5296         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
5297         <exampleNumber>95581234</exampleNumber>
5298       </pager>
5299       <sharedCost>
5300         <!-- Value-added services are lumped together under shared cost, since we are not sure
5301              exactly what they are. -->
5302         <nationalNumberPattern>
5303           (?:
5304             10|
5305             69
5306           )\d{5}
5307         </nationalNumberPattern>
5308         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5309         <exampleNumber>1011234</exampleNumber>
5310       </sharedCost>
5311     </territory>
5312
5313     <!-- Christmas Islands -->
5314     <!-- Metadata shared with Australia. -->
5315     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
5316     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
5317                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
5318                nationalPrefix="0">
5319       <references>
5320         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
5321         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
5322       </references>
5323       <!-- Uses AU formatting rules. -->
5324       <!-- General desc and fixed line rules different from Australia. -->
5325       <generalDesc>
5326         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
5327         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5328       </generalDesc>
5329       <fixedLine>
5330         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
5331         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
5332         <exampleNumber>891641234</exampleNumber>
5333       </fixedLine>
5334       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5335       <mobile>
5336         <nationalNumberPattern>
5337           14(?:
5338             5\d|
5339             71
5340           )\d{5}|
5341           4(?:
5342             [0-2]\d|
5343             3[0-57-9]|
5344             4[47-9]|
5345             5[0-25-9]|
5346             6[6-9]|
5347             7[03-9]|
5348             8[17-9]|
5349             9[017-9]
5350           )\d{6}
5351         </nationalNumberPattern>
5352         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5353         <exampleNumber>412345678</exampleNumber>
5354       </mobile>
5355       <tollFree>
5356         <nationalNumberPattern>
5357           1(?:
5358             80(?:
5359               0\d{2}
5360             )?|
5361             3(?:
5362               00\d{2}
5363             )?
5364           )\d{4}
5365         </nationalNumberPattern>
5366         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5367         <exampleNumber>1800123456</exampleNumber>
5368       </tollFree>
5369       <premiumRate>
5370         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
5371         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5372         <exampleNumber>1900123456</exampleNumber>
5373       </premiumRate>
5374       <personalNumber>
5375         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
5376         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5377         <exampleNumber>500123456</exampleNumber>
5378       </personalNumber>
5379       <voip>
5380         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
5381         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5382         <exampleNumber>550123456</exampleNumber>
5383       </voip>
5384     </territory>
5385
5386     <!-- Cyprus -->
5387     <territory id="CY" countryCode="357" internationalPrefix="00" mobileNumberPortableRegion="true">
5388       <references>
5389         <sourceUrl>http://www.itu.int/oth/T0202000034/en</sourceUrl>
5390       </references>
5391       <availableFormats>
5392         <!-- Format from http://www.cyprusyellowpages.com -->
5393         <numberFormat pattern="(\d{2})(\d{6})">
5394           <format>$1 $2</format>
5395         </numberFormat>
5396       </availableFormats>
5397       <generalDesc>
5398         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
5399         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5400       </generalDesc>
5401       <fixedLine>
5402         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
5403         <exampleNumber>22345678</exampleNumber>
5404       </fixedLine>
5405       <mobile>
5406         <!-- Includes paging numbers (they are mixed into the same block). -->
5407         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
5408         <exampleNumber>96123456</exampleNumber>
5409       </mobile>
5410       <tollFree>
5411         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
5412         <exampleNumber>80001234</exampleNumber>
5413       </tollFree>
5414       <premiumRate>
5415         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
5416         <exampleNumber>90012345</exampleNumber>
5417       </premiumRate>
5418       <sharedCost>
5419         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
5420         <exampleNumber>80112345</exampleNumber>
5421       </sharedCost>
5422       <personalNumber>
5423         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
5424         <exampleNumber>70012345</exampleNumber>
5425       </personalNumber>
5426       <uan>
5427         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
5428         <nationalNumberPattern>
5429           (?:
5430             50|
5431             77
5432           )\d{6}
5433         </nationalNumberPattern>
5434         <exampleNumber>77123456</exampleNumber>
5435       </uan>
5436     </territory>
5437
5438     <!-- Czech Rep. -->
5439     <territory id="CZ" countryCode="420" internationalPrefix="00" mobileNumberPortableRegion="true">
5440       <references>
5441         <sourceUrl>http://www.itu.int/oth/T0202000035/en</sourceUrl>
5442         <sourceUrl>http://en.wikipedia.org/wiki/%2B420</sourceUrl>
5443       </references>
5444       <availableFormats>
5445         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
5446           <leadingDigits>
5447             [2-8]|
5448             9[015-7]
5449           </leadingDigits>
5450           <format>$1 $2 $3</format>
5451         </numberFormat>
5452         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
5453           <leadingDigits>96</leadingDigits>
5454           <format>$1 $2 $3 $4</format>
5455         </numberFormat>
5456         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
5457           <leadingDigits>9[36]</leadingDigits>
5458           <format>$1 $2 $3 $4</format>
5459         </numberFormat>
5460       </availableFormats>
5461       <generalDesc>
5462         <nationalNumberPattern>
5463           [2-8]\d{8}|
5464           9\d{8,11}
5465         </nationalNumberPattern>
5466         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5467       </generalDesc>
5468       <fixedLine>
5469         <nationalNumberPattern>
5470           2\d{8}|
5471           (?:
5472             3[1257-9]|
5473             4[16-9]|
5474             5[13-9]
5475           )\d{7}
5476         </nationalNumberPattern>
5477         <exampleNumber>212345678</exampleNumber>
5478       </fixedLine>
5479       <mobile>
5480         <nationalNumberPattern>
5481           (?:
5482             60[1-8]|
5483             7(?:
5484               0[2-5]|
5485               [2379]\d
5486             )
5487           )\d{6}
5488         </nationalNumberPattern>
5489         <exampleNumber>601123456</exampleNumber>
5490       </mobile>
5491       <tollFree>
5492         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
5493         <exampleNumber>800123456</exampleNumber>
5494       </tollFree>
5495       <premiumRate>
5496         <!-- Includes premium rate dial-up. -->
5497         <nationalNumberPattern>
5498           9(?:
5499             0[05689]|
5500             76
5501           )\d{6}
5502         </nationalNumberPattern>
5503         <exampleNumber>900123456</exampleNumber>
5504       </premiumRate>
5505       <sharedCost>
5506         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
5507         <exampleNumber>811234567</exampleNumber>
5508       </sharedCost>
5509       <personalNumber>
5510         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
5511         <exampleNumber>700123456</exampleNumber>
5512       </personalNumber>
5513       <voip>
5514         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
5515         <exampleNumber>910123456</exampleNumber>
5516       </voip>
5517       <uan>
5518         <!-- Numbers belonging to private communication networks are included here. These are
5519              classified as Institutional networks, belonging to institutions like the police, armed
5520              forces and railways, along with a couple of formerly government-owned banks. These
5521              numbers are reachable by the public. -->
5522         <nationalNumberPattern>
5523           9(?:
5524             5\d|
5525             7[234]
5526           )\d{6}
5527         </nationalNumberPattern>
5528         <exampleNumber>972123456</exampleNumber>
5529       </uan>
5530       <voicemail>
5531         <nationalNumberPattern>
5532           9(?:
5533             3\d{9}|
5534             6\d{7,10}
5535           )
5536         </nationalNumberPattern>
5537         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5538         <exampleNumber>93123456789</exampleNumber>
5539       </voicemail>
5540     </territory>
5541
5542     <!-- Germany -->
5543     <territory id="DE" countryCode="49" internationalPrefix="00"
5544                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
5545                mobileNumberPortableRegion="true">
5546       <references>
5547         <sourceUrl>http://www.itu.int/oth/T0202000051/en</sourceUrl>
5548         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_germany</sourceUrl>
5549       </references>
5550       <availableFormats>
5551         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
5552              these should best be formatted, even though actual usage varies. -->
5553         <numberFormat pattern="(1\d{2})(\d{7,8})">
5554           <leadingDigits>1[67]</leadingDigits>
5555           <format>$1 $2</format>
5556         </numberFormat>
5557         <numberFormat pattern="(1\d{3})(\d{7})">
5558           <leadingDigits>15</leadingDigits>
5559           <format>$1 $2</format>
5560         </numberFormat>
5561         <numberFormat pattern="(\d{2})(\d{3,11})">
5562           <leadingDigits>
5563             3[02]|
5564             40|
5565             [68]9
5566           </leadingDigits>
5567           <format>$1 $2</format>
5568         </numberFormat>
5569         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
5570         <!-- 3 digit area codes. -->
5571         <numberFormat pattern="(\d{3})(\d{3,11})">
5572           <leadingDigits>
5573             2(?:
5574               \d1|
5575               0[2389]|
5576               1[24]|
5577               28|
5578               34
5579             )|
5580             3(?:
5581               [3-9][15]|
5582               40
5583             )|
5584             [4-8][1-9]1|
5585             9(?:
5586               06|
5587               [1-9]1
5588             )
5589           </leadingDigits>
5590           <format>$1 $2</format>
5591         </numberFormat>
5592         <!-- 4 digit area codes. -->
5593         <numberFormat pattern="(\d{4})(\d{2,11})">
5594           <leadingDigits>
5595             [24-6]|
5596             [7-9](?:
5597               \d[1-9]|
5598               [1-9]\d
5599             )|
5600             3(?:
5601               [3569][02-46-9]|
5602               4[2-4679]|
5603               7[2-467]|
5604               8[2-46-8]
5605             )
5606           </leadingDigits>
5607           <leadingDigits>
5608             [24-6]|
5609             [7-9](?:
5610               \d[1-9]|
5611               [1-9]\d
5612             )|
5613             3(?:
5614               3(?:
5615                 0[1-467]|
5616                 2[127-9]|
5617                 3[124578]|
5618                 [46][1246]|
5619                 7[1257-9]|
5620                 8[1256]|
5621                 9[145]
5622               )|
5623               4(?:
5624                 2[135]|
5625                 3[1357]|
5626                 4[13578]|
5627                 6[1246]|
5628                 7[1356]|
5629                 9[1346]
5630               )|
5631               5(?:
5632                 0[14]|
5633                 2[1-3589]|
5634                 3[1357]|
5635                 4[1246]|
5636                 6[1-4]|
5637                 7[1346]|
5638                 8[13568]|
5639                 9[1246]
5640               )|
5641               6(?:
5642                 0[356]|
5643                 2[1-489]|
5644                 3[124-6]|
5645                 4[1347]|
5646                 6[13]|
5647                 7[12579]|
5648                 8[1-356]|
5649                 9[135]
5650               )|
5651               7(?:
5652                 2[1-7]|
5653                 3[1357]|
5654                 4[145]|
5655                 6[1-5]|
5656                 7[1-4]
5657               )|
5658               8(?:
5659                 21|
5660                 3[1468]|
5661                 4[1347]|
5662                 6[0135-9]|
5663                 7[1467]|
5664                 8[136]
5665               )|
5666               9(?:
5667                 0[12479]|
5668                 2[1358]|
5669                 3[1357]|
5670                 4[134679]|
5671                 6[1-9]|
5672                 7[136]|
5673                 8[147]|
5674                 9[1468]
5675               )
5676             )
5677           </leadingDigits>
5678           <format>$1 $2</format>
5679         </numberFormat>
5680         <!-- 5 digit area codes. -->
5681         <numberFormat pattern="(3\d{4})(\d{1,10})">
5682           <leadingDigits>3</leadingDigits>
5683           <format>$1 $2</format>
5684         </numberFormat>
5685         <!-- Note: this is getting ridiculous! How can we format these better? -->
5686         <numberFormat pattern="(800)(\d{7,12})">
5687           <leadingDigits>800</leadingDigits>
5688           <format>$1 $2</format>
5689         </numberFormat>
5690         <!-- Voicemail access numbers for the carrier Blau. -->
5691         <numberFormat pattern="(177)(99)(\d{7,8})">
5692           <leadingDigits>177</leadingDigits>
5693           <leadingDigits>1779</leadingDigits>
5694           <leadingDigits>17799</leadingDigits>
5695           <format>$1 $2 $3</format>
5696         </numberFormat>
5697         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
5698           <leadingDigits>
5699             (?:
5700               18|
5701               90
5702             )0|
5703             137
5704           </leadingDigits>
5705           <leadingDigits>
5706             1(?:
5707               37|
5708               80
5709             )|
5710             900[1359]
5711           </leadingDigits>
5712           <format>$1 $2 $3</format>
5713         </numberFormat>
5714         <numberFormat pattern="(1\d{2})(\d{5,11})">
5715           <leadingDigits>181</leadingDigits>
5716           <format>$1 $2</format>
5717         </numberFormat>
5718         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
5719              way it is generally written. For other prefixes, we fall back to using a three-digit
5720              prefix since we have currently no more information to allow us to format these more
5721              precisely. -->
5722         <numberFormat pattern="(18\d{3})(\d{6})">
5723           <leadingDigits>185</leadingDigits>
5724           <leadingDigits>1850</leadingDigits>
5725           <leadingDigits>18500</leadingDigits>
5726           <format>$1 $2</format>
5727         </numberFormat>
5728         <numberFormat pattern="(18\d{2})(\d{7})">
5729           <leadingDigits>18[68]</leadingDigits>
5730           <format>$1 $2</format>
5731         </numberFormat>
5732         <numberFormat pattern="(18\d)(\d{8})">
5733           <leadingDigits>18[2-579]</leadingDigits>
5734           <format>$1 $2</format>
5735         </numberFormat>
5736         <numberFormat pattern="(700)(\d{4})(\d{4})">
5737           <leadingDigits>700</leadingDigits>
5738           <format>$1 $2 $3</format>
5739         </numberFormat>
5740         <numberFormat pattern="(138)(\d{4})">
5741           <leadingDigits>138</leadingDigits>
5742           <format>$1 $2</format>
5743         </numberFormat>
5744       </availableFormats>
5745       <generalDesc>
5746         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
5747              examined to see if it is valid with the 49 as part of the number. Due to the variable
5748              length of German numbers, this test is hard to do. The national pattern is hence
5749              stricter for numbers starting with 49, to try and remove the country code if the number
5750              begins with 49 whenever possible. -->
5751         <nationalNumberPattern>
5752           [1-35-9]\d{3,14}|
5753           4(?:
5754             [0-8]\d{4,12}|
5755             9(?:
5756               [0-37]\d|
5757               4(?:
5758                 [1-35-8]|
5759                 4\d?
5760               )|
5761               5\d{1,2}|
5762               6[1-8]\d?
5763             )\d{2,8}
5764           )
5765         </nationalNumberPattern>
5766         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
5767       </generalDesc>
5768       <fixedLine>
5769         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
5770              don't seem to respect this. The max-length is hence extended. -->
5771         <nationalNumberPattern>
5772           [246]\d{5,13}|
5773           3(?:
5774             0\d{3,13}|
5775             2\d{9}|
5776             [3-9]\d{4,13}
5777           )|
5778           5(?:
5779             0[2-8]|
5780             [1256]\d|
5781             [38][0-8]|
5782             4\d{0,2}|
5783             [79][0-7]
5784           )\d{3,11}|
5785           7(?:
5786             0[2-8]|
5787             [1-9]\d
5788           )\d{3,10}|
5789           8(?:
5790             0[2-9]|
5791             [1-9]\d
5792           )\d{3,10}|
5793           9(?:
5794             0[6-9]\d{3,10}|
5795             1\d{4,12}|
5796             [2-9]\d{4,11}
5797           )
5798         </nationalNumberPattern>
5799         <exampleNumber>30123456</exampleNumber>
5800       </fixedLine>
5801       <mobile>
5802         <!-- According to
5803              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
5804              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
5805              The ranges 15[056] have been removed from the ITU doc, but information found online
5806              indicates that they may still be working.
5807              -->
5808         <nationalNumberPattern>
5809           1(?:
5810             5[0-2579]\d{8}|
5811             6[023]\d{7,8}|
5812             7(?:
5813               [0-57-9]\d?|
5814               6\d
5815             )\d{7}
5816           )
5817         </nationalNumberPattern>
5818         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5819         <exampleNumber>15123456789</exampleNumber>
5820       </mobile>
5821       <pager>
5822         <nationalNumberPattern>
5823           16(?:
5824             4\d{1,10}|
5825             [89]\d{1,11}
5826           )
5827         </nationalNumberPattern>
5828         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
5829         <exampleNumber>16412345</exampleNumber>
5830       </pager>
5831       <tollFree>
5832         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
5833         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
5834         <exampleNumber>8001234567890</exampleNumber>
5835       </tollFree>
5836       <premiumRate>
5837         <!-- Includes the more expensive of the "televoting" line numbers. See the shared cost
5838              section for more information. -->
5839         <nationalNumberPattern>
5840           137[7-9]\d{6}|
5841           900(?:
5842             [135]\d{6}|
5843             9\d{7}
5844           )
5845         </nationalNumberPattern>
5846         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5847         <exampleNumber>9001234567</exampleNumber>
5848       </premiumRate>
5849       <sharedCost>
5850         <!-- Includes some mass-traffic numbers, used for e.g. phone voting, raffles, since their
5851              costs when dialling from a fixed-line phone is similar.
5852              Prices:
5853              http://www.billiger-telefonieren.de/0180-0137-0900-sonderrufnummern/
5854              Documentation:
5855              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/0137/0137_Nummernplan.pdf?__blob=publicationFile&v=2
5856         -->
5857         <nationalNumberPattern>
5858           1(?:
5859             3(?:
5860               7[1-6]\d{6}|
5861               8\d{4}
5862             )|
5863             80\d{5,11}
5864           )
5865         </nationalNumberPattern>
5866         <possibleNumberPattern>\d{7,14}</possibleNumberPattern>
5867         <exampleNumber>18012345</exampleNumber>
5868       </sharedCost>
5869       <personalNumber>
5870         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
5871         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5872         <exampleNumber>70012345678</exampleNumber>
5873       </personalNumber>
5874       <uan>
5875         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
5876              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
5877              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
5878         <nationalNumberPattern>
5879           18(?:
5880             1\d{5,11}|
5881             [2-9]\d{8}
5882           )
5883         </nationalNumberPattern>
5884         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5885         <exampleNumber>18500123456</exampleNumber>
5886       </uan>
5887       <voicemail>
5888         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
5889         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
5890         <exampleNumber>177991234567</exampleNumber>
5891       </voicemail>
5892     </territory>
5893
5894     <!-- Djibouti -->
5895     <territory id="DJ" countryCode="253" internationalPrefix="00">
5896       <references>
5897         <sourceUrl>http://www.itu.int/oth/T020200003A/en</sourceUrl>
5898       </references>
5899       <availableFormats>
5900         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5901           <format>$1 $2 $3 $4</format>
5902         </numberFormat>
5903       </availableFormats>
5904       <generalDesc>
5905         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
5906         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5907       </generalDesc>
5908       <fixedLine>
5909         <!-- Includes "Numéro long CDMA fixe" numbers. -->
5910         <nationalNumberPattern>
5911           2(?:
5912             1[2-5]|
5913             7[45]
5914           )\d{5}
5915         </nationalNumberPattern>
5916         <exampleNumber>21360003</exampleNumber>
5917       </fixedLine>
5918       <mobile>
5919         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
5920         <exampleNumber>77831001</exampleNumber>
5921       </mobile>
5922     </territory>
5923
5924     <!-- Denmark -->
5925     <territory id="DK" countryCode="45" internationalPrefix="00" mobileNumberPortableRegion="true">
5926       <references>
5927         <sourceUrl>http://www.dba.erhvervsstyrelsen.dk/numbering-lists</sourceUrl>
5928       </references>
5929       <availableFormats>
5930         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5931           <format>$1 $2 $3 $4</format>
5932         </numberFormat>
5933       </availableFormats>
5934       <generalDesc>
5935         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
5936         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5937       </generalDesc>
5938       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
5939            safe. -->
5940       <fixedLine>
5941         <nationalNumberPattern>
5942           (?:
5943             [2-7]\d|
5944             8[126-9]|
5945             9[1-36-9]
5946           )\d{6}
5947         </nationalNumberPattern>
5948         <exampleNumber>32123456</exampleNumber>
5949       </fixedLine>
5950       <mobile>
5951         <nationalNumberPattern>
5952           (?:
5953             [2-7]\d|
5954             8[126-9]|
5955             9[1-36-9]
5956           )\d{6}
5957         </nationalNumberPattern>
5958         <exampleNumber>20123456</exampleNumber>
5959       </mobile>
5960       <tollFree>
5961         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
5962         <exampleNumber>80123456</exampleNumber>
5963       </tollFree>
5964       <premiumRate>
5965         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
5966         <exampleNumber>90123456</exampleNumber>
5967       </premiumRate>
5968     </territory>
5969
5970     <!-- Dominica -->
5971     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
5972                internationalPrefix="011">
5973       <references>
5974         <sourceUrl>http://www.itu.int/oth/T020200003B/en</sourceUrl>
5975       </references>
5976       <generalDesc>
5977         <!-- NANPA country - uses US formatting rules -->
5978         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
5979         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5980       </generalDesc>
5981       <fixedLine>
5982         <nationalNumberPattern>
5983           767(?:
5984             2(?:
5985               55|
5986               66
5987             )|
5988             4(?:
5989               2[01]|
5990               4[0-25-9]
5991             )|
5992             50[0-4]|
5993             70[1-3]
5994           )\d{4}
5995         </nationalNumberPattern>
5996         <exampleNumber>7674201234</exampleNumber>
5997       </fixedLine>
5998       <mobile>
5999         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
6000         <nationalNumberPattern>
6001           767(?:
6002             2(?:
6003               [234689]5|
6004               7[5-7]
6005             )|
6006             31[5-7]|
6007             61[2-7]
6008           )\d{4}
6009         </nationalNumberPattern>
6010         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6011         <exampleNumber>7672251234</exampleNumber>
6012       </mobile>
6013       <tollFree>
6014         <nationalNumberPattern>
6015           8(?:
6016             00|
6017             44|
6018             55|
6019             66|
6020             77|
6021             88
6022           )[2-9]\d{6}
6023         </nationalNumberPattern>
6024         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6025         <exampleNumber>8002123456</exampleNumber>
6026       </tollFree>
6027       <premiumRate>
6028         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6029         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6030         <exampleNumber>9002123456</exampleNumber>
6031       </premiumRate>
6032       <personalNumber>
6033         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6034         <nationalNumberPattern>
6035           5(?:
6036             00|
6037             33|
6038             44|
6039             66|
6040             77
6041           )[2-9]\d{6}
6042         </nationalNumberPattern>
6043         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6044         <exampleNumber>5002345678</exampleNumber>
6045       </personalNumber>
6046     </territory>
6047
6048     <!-- Dominican Rep. -->
6049     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
6050                internationalPrefix="011" mobileNumberPortableRegion="true">
6051       <references>
6052         <sourceUrl>http://www.itu.int/oth/T020200003C/en</sourceUrl>
6053       </references>
6054       <generalDesc>
6055         <!-- NANPA country - uses US formatting rules -->
6056         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
6057         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
6058       </generalDesc>
6059       <fixedLine>
6060         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
6061              prefixes in the document are classified as such by excluding them from the fixed-line
6062              ranges, but other than this have a generic rule. -->
6063         <nationalNumberPattern>
6064           8(?:
6065             [04]9[2-9]\d{6}|
6066             29(?:
6067               2(?:
6068                 [0-59]\d|
6069                 6[04-9]|
6070                 7[0-27]|
6071                 8[0237-9]
6072               )|
6073               3(?:
6074                 [0-35-9]\d|
6075                 4[7-9]
6076               )|
6077               [45]\d{2}|
6078               6(?:
6079                 [0-27-9]\d|
6080                 [3-5][1-9]|
6081                 6[0135-8]
6082               )|
6083               7(?:
6084                 0[013-9]|
6085                 [1-37]\d|
6086                 4[1-35689]|
6087                 5[1-4689]|
6088                 6[1-57-9]|
6089                 8[1-79]|
6090                 9[1-8]
6091               )|
6092               8(?:
6093                 0[146-9]|
6094                 1[0-48]|
6095                 [248]\d|
6096                 3[1-79]|
6097                 5[01589]|
6098                 6[013-68]|
6099                 7[124-8]|
6100                 9[0-8]
6101               )|
6102               9(?:
6103                 [0-24]\d|
6104                 3[02-46-9]|
6105                 5[0-79]|
6106                 60|
6107                 7[0169]|
6108                 8[57-9]|
6109                 9[02-9]
6110               )
6111             )\d{4}
6112           )
6113         </nationalNumberPattern>
6114         <exampleNumber>8092345678</exampleNumber>
6115       </fixedLine>
6116       <mobile>
6117         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
6118         <exampleNumber>8092345678</exampleNumber>
6119       </mobile>
6120       <tollFree>
6121         <nationalNumberPattern>
6122           8(?:
6123             00|
6124             44|
6125             55|
6126             66|
6127             77|
6128             88
6129           )[2-9]\d{6}
6130         </nationalNumberPattern>
6131         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6132         <exampleNumber>8002123456</exampleNumber>
6133       </tollFree>
6134       <premiumRate>
6135         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6136         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6137         <exampleNumber>9002123456</exampleNumber>
6138       </premiumRate>
6139       <personalNumber>
6140         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6141         <nationalNumberPattern>
6142           5(?:
6143             00|
6144             33|
6145             44|
6146             66|
6147             77
6148           )[2-9]\d{6}
6149         </nationalNumberPattern>
6150         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6151         <exampleNumber>5002345678</exampleNumber>
6152       </personalNumber>
6153    </territory>
6154
6155     <!-- Algeria -->
6156     <territory id="DZ" countryCode="213" internationalPrefix="00"
6157                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6158       <references>
6159         <sourceUrl>http://www.itu.int/oth/T0202000003/en</sourceUrl>
6160         <sourceUrl>http://www.arpt.dz</sourceUrl>
6161       </references>
6162       <availableFormats>
6163         <!-- Formatting from http://www.pagesjaunes-dz.com. -->
6164         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
6165           <leadingDigits>[1-4]</leadingDigits>
6166           <format>$1 $2 $3 $4</format>
6167         </numberFormat>
6168         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
6169           <leadingDigits>[5-8]</leadingDigits>
6170           <format>$1 $2 $3 $4</format>
6171         </numberFormat>
6172         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
6173           <leadingDigits>9</leadingDigits>
6174           <format>$1 $2 $3 $4</format>
6175         </numberFormat>
6176       </availableFormats>
6177       <generalDesc>
6178         <nationalNumberPattern>
6179           (?:
6180             [1-4]|
6181             [5-9]\d
6182           )\d{7}
6183         </nationalNumberPattern>
6184         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6185       </generalDesc>
6186       <fixedLine>
6187         <!-- We include the VSAT lines here. -->
6188         <nationalNumberPattern>
6189           (?:
6190             1\d|
6191             2[014-79]|
6192             3[0-8]|
6193             4[0135689]
6194           )\d{6}|
6195           9619\d{5}
6196         </nationalNumberPattern>
6197         <exampleNumber>12345678</exampleNumber>
6198       </fixedLine>
6199       <mobile>
6200         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6201              Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-4] were also added for
6202              Mobilis Algeria based on evidence found online. -->
6203         <nationalNumberPattern>
6204           (?:
6205             5[4-6]|
6206             7[7-9]
6207           )\d{7}|
6208           6(?:
6209             [569]\d|
6210             7[0-4]
6211           )\d{6}
6212         </nationalNumberPattern>
6213         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6214         <exampleNumber>551234567</exampleNumber>
6215       </mobile>
6216       <tollFree>
6217         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
6218         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6219         <exampleNumber>800123456</exampleNumber>
6220       </tollFree>
6221       <premiumRate>
6222         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
6223         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6224         <exampleNumber>808123456</exampleNumber>
6225       </premiumRate>
6226       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
6227            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
6228            -->
6229       <sharedCost>
6230         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
6231         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6232         <exampleNumber>801123456</exampleNumber>
6233       </sharedCost>
6234       <voip>
6235         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
6236         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6237         <exampleNumber>983123456</exampleNumber>
6238       </voip>
6239    </territory>
6240
6241     <!-- Ecuador -->
6242     <territory id="EC" countryCode="593" internationalPrefix="00"
6243                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
6244                mobileNumberPortableRegion="true">
6245       <references>
6246         <sourceUrl>http://en.wikipedia.org/wiki/+593</sourceUrl>
6247         <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>
6248         <sourceUrl>http://www.itu.int/oth/T020200003D/en</sourceUrl>
6249       </references>
6250       <availableFormats>
6251         <numberFormat pattern="(\d)(\d{3})(\d{4})">
6252           <leadingDigits>
6253             [247]|
6254             [356][2-8]
6255           </leadingDigits>
6256           <format>$1 $2-$3</format>
6257           <intlFormat>$1-$2-$3</intlFormat>
6258         </numberFormat>
6259         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
6260              change on the http://www.conatel.gob.ec site. -->
6261         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
6262           <leadingDigits>9</leadingDigits>
6263           <format>$1 $2 $3</format>
6264         </numberFormat>
6265         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
6266           <leadingDigits>1</leadingDigits>
6267           <format>$1 $2 $3</format>
6268         </numberFormat>
6269       </availableFormats>
6270       <generalDesc>
6271         <nationalNumberPattern>
6272           1\d{9,10}|
6273           [2-8]\d{7}|
6274           9\d{8}
6275         </nationalNumberPattern>
6276         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
6277       </generalDesc>
6278       <fixedLine>
6279         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
6280         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6281         <exampleNumber>22123456</exampleNumber>
6282       </fixedLine>
6283       <mobile>
6284         <nationalNumberPattern>
6285           9(?:
6286             39|
6287             [45][89]|
6288             [67][7-9]|
6289             [89]\d
6290           )\d{6}
6291         </nationalNumberPattern>
6292         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6293         <exampleNumber>991234567</exampleNumber>
6294       </mobile>
6295       <tollFree>
6296         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
6297         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
6298         <exampleNumber>18001234567</exampleNumber>
6299       </tollFree>
6300       <voip>
6301         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
6302         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6303         <exampleNumber>28901234</exampleNumber>
6304       </voip>
6305     </territory>
6306
6307     <!-- Estonia -->
6308     <territory id="EE" countryCode="372" internationalPrefix="00" mobileNumberPortableRegion="true">
6309       <references>
6310         <sourceUrl>http://www.itu.int/oth/T0202000043/en</sourceUrl>
6311         <sourceUrl>http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm</sourceUrl>
6312       </references>
6313       <availableFormats>
6314         <numberFormat pattern="([3-79]\d{2})(\d{4})">
6315           <leadingDigits>
6316             [369]|
6317             4[3-8]|
6318             5(?:
6319               [0-2]|
6320               5[0-478]|
6321               6[45]
6322             )|
6323             7[1-9]
6324           </leadingDigits>
6325           <leadingDigits>
6326             [369]|
6327             4[3-8]|
6328             5(?:
6329               [02]|
6330               1(?:
6331                 [0-8]|
6332                 95
6333               )|
6334               5[0-478]|
6335               6(?:
6336                 4[0-4]|
6337                 5[1-589]
6338               )
6339             )|
6340             7[1-9]
6341           </leadingDigits>
6342           <format>$1 $2</format>
6343         </numberFormat>
6344         <numberFormat pattern="(70)(\d{2})(\d{4})">
6345           <leadingDigits>70</leadingDigits>
6346           <format>$1 $2 $3</format>
6347         </numberFormat>
6348         <numberFormat pattern="(8000)(\d{3})(\d{3})">
6349           <leadingDigits>800</leadingDigits>
6350           <leadingDigits>8000</leadingDigits>
6351           <format>$1 $2 $3</format>
6352         </numberFormat>
6353         <numberFormat pattern="([458]\d{3})(\d{3,4})">
6354           <leadingDigits>
6355             40|
6356             5|
6357             8(?:
6358               00|
6359               [1-5]
6360             )
6361           </leadingDigits>
6362           <leadingDigits>
6363             40|
6364             5|
6365             8(?:
6366               00[1-9]|
6367               [1-5]
6368             )
6369           </leadingDigits>
6370           <format>$1 $2</format>
6371         </numberFormat>
6372       </availableFormats>
6373       <generalDesc>
6374         <nationalNumberPattern>
6375           1\d{3,4}|
6376           [3-9]\d{6,7}|
6377           800\d{6,7}
6378         </nationalNumberPattern>
6379         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
6380       </generalDesc>
6381       <noInternationalDialling>
6382         <nationalNumberPattern>
6383           1\d{3,4}|
6384           800[2-9]\d{3}
6385         </nationalNumberPattern>
6386         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
6387         <exampleNumber>8002123</exampleNumber>
6388       </noInternationalDialling>
6389       <fixedLine>
6390         <nationalNumberPattern>
6391           (?:
6392             3[23589]|
6393             4[3-8]|
6394             6\d|
6395             7[1-9]|
6396             88
6397           )\d{5}
6398         </nationalNumberPattern>
6399         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6400         <exampleNumber>3212345</exampleNumber>
6401       </fixedLine>
6402       <mobile>
6403         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
6404              numbers are 8 digits. -->
6405         <nationalNumberPattern>
6406           (?:
6407             5\d|
6408             8[1-5]
6409           )\d{6}|
6410           5(?:
6411             [02]\d{2}|
6412             1(?:
6413               [0-8]\d|
6414               95
6415             )|
6416             5[0-478]\d|
6417             64[0-4]|
6418             65[1-589]
6419           )\d{3}
6420         </nationalNumberPattern>
6421         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6422         <exampleNumber>51234567</exampleNumber>
6423       </mobile>
6424       <tollFree>
6425         <nationalNumberPattern>
6426           800(?:
6427             0\d{3}|
6428             1\d|
6429             [2-9]
6430           )\d{3}
6431         </nationalNumberPattern>
6432         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6433         <exampleNumber>80012345</exampleNumber>
6434       </tollFree>
6435       <premiumRate>
6436         <!-- Supporting eFax numbers here as well. We aren't sure the exact cost, but have
6437              had user reports that they are expensive to dial. -->
6438         <nationalNumberPattern>
6439           (?:
6440             40\d{2}|
6441             900
6442           )\d{4}
6443         </nationalNumberPattern>
6444         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6445         <exampleNumber>9001234</exampleNumber>
6446       </premiumRate>
6447       <personalNumber>
6448         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
6449         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6450         <exampleNumber>70012345</exampleNumber>
6451       </personalNumber>
6452       <uan>
6453         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
6454              included here. -->
6455         <nationalNumberPattern>
6456           1(?:
6457             2[01245]|
6458             3[0-6]|
6459             4[1-489]|
6460             5[0-59]|
6461             6[1-46-9]|
6462             7[0-27-9]|
6463             8[189]|
6464             9[012]
6465           )\d{1,2}
6466         </nationalNumberPattern>
6467         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
6468         <exampleNumber>12123</exampleNumber>
6469       </uan>
6470     </territory>
6471
6472     <!-- Egypt -->
6473     <territory id="EG" countryCode="20" internationalPrefix="00"
6474                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
6475                mobileNumberPortableRegion="true">
6476        <references>
6477          <sourceUrl>http://www.itu.int/oth/T020200003E/en</sourceUrl>
6478        </references>
6479        <availableFormats>
6480          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
6481               or 19. These are formatted without national prefix, as a block, so do not need to be
6482               listed here. -->
6483          <numberFormat pattern="(\d)(\d{7,8})">
6484            <leadingDigits>[23]</leadingDigits>
6485            <format>$1 $2</format>
6486          </numberFormat>
6487          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
6488            <leadingDigits>
6489              1[012]|
6490              [89]00
6491            </leadingDigits>
6492            <format>$1 $2 $3</format>
6493          </numberFormat>
6494          <numberFormat pattern="(\d{2})(\d{6,7})">
6495            <leadingDigits>
6496              1[35]|
6497              [4-6]|
6498              [89][2-9]
6499            </leadingDigits>
6500            <format>$1 $2</format>
6501          </numberFormat>
6502        </availableFormats>
6503       <generalDesc>
6504         <nationalNumberPattern>
6505           1\d{4,9}|
6506           [2456]\d{8}|
6507           3\d{7}|
6508           [89]\d{8,9}
6509         </nationalNumberPattern>
6510         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6511       </generalDesc>
6512       <fixedLine>
6513         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
6514              that the plan says numbers starting with 15 should be followed by seven digit
6515              subscriber numbers, but some numbers we have found online are in fact six digit.
6516              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
6517              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
6518              092 and with 5 and 6 for 96. -->
6519         <nationalNumberPattern>
6520           (?:
6521             1(?:
6522               3[23]\d|
6523               5(?:
6524                 [23]|
6525                 9\d
6526               )
6527             )|
6528             2[2-4]\d{2}|
6529             3\d{2}|
6530             4(?:
6531               0[2-5]|
6532               [578][23]|
6533               64
6534             )\d|
6535             5(?:
6536               0[2-7]|
6537               [57][23]
6538             )\d|
6539             6[24-689]3\d|
6540             8(?:
6541               2[2-57]|
6542               4[26]|
6543               6[237]|
6544               8[2-4]
6545             )\d|
6546             9(?:
6547               2[27]|
6548               3[24]|
6549               52|
6550               6[2356]|
6551               7[2-4]
6552             )\d
6553           )\d{5}|
6554           1[69]\d{3}
6555         </nationalNumberPattern>
6556         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
6557         <exampleNumber>234567890</exampleNumber>
6558       </fixedLine>
6559       <mobile>
6560         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
6561              started allocating numbers beginning with these prefixes, along with 115 from numbers
6562              found online. Etisalat is using 110. -->
6563         <nationalNumberPattern>
6564           1(?:
6565             0[0-269]|
6566             1[0-245]|
6567             2[0-278]
6568           )\d{7}
6569         </nationalNumberPattern>
6570         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6571         <exampleNumber>1001234567</exampleNumber>
6572       </mobile>
6573       <tollFree>
6574         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
6575         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6576         <exampleNumber>8001234567</exampleNumber>
6577       </tollFree>
6578       <premiumRate>
6579         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
6580         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6581         <exampleNumber>9001234567</exampleNumber>
6582       </premiumRate>
6583     </territory>
6584
6585     <!-- Western Sahara -->
6586     <!-- Country calling code shared with Morocco (MA). -->
6587     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
6588     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
6589                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6590       <references>
6591         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
6592       </references>
6593       <!-- Uses MA formatting rules and shares general description
6594            (non-geographical numbers for Morocco are still valid). -->
6595       <generalDesc>
6596         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
6597         <!-- Closed numbering plan. -->
6598         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6599       </generalDesc>
6600       <fixedLine>
6601         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
6602         <exampleNumber>528812345</exampleNumber>
6603       </fixedLine>
6604       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
6605            numbers to be recognized as available from within Western Sahara. -->
6606       <mobile>
6607         <nationalNumberPattern>
6608           6(?:
6609             0[0-8]|
6610             [12-79]\d|
6611             8[01]
6612           )\d{6}
6613         </nationalNumberPattern>
6614         <exampleNumber>650123456</exampleNumber>
6615       </mobile>
6616       <tollFree>
6617         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
6618         <exampleNumber>801234567</exampleNumber>
6619       </tollFree>
6620       <premiumRate>
6621         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
6622         <exampleNumber>891234567</exampleNumber>
6623       </premiumRate>
6624     </territory>
6625
6626     <!-- Eritrea -->
6627     <territory id="ER" countryCode="291" internationalPrefix="00"
6628                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6629       <references>
6630         <sourceUrl>http://www.itu.int/oth/T0202000042/en</sourceUrl>
6631       </references>
6632       <availableFormats>
6633         <numberFormat pattern="(\d)(\d{3})(\d{3})">
6634           <format>$1 $2 $3</format>
6635         </numberFormat>
6636       </availableFormats>
6637       <generalDesc>
6638         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
6639         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
6640       </generalDesc>
6641       <fixedLine>
6642         <nationalNumberPattern>
6643           1(?:
6644             1[12568]|
6645             20|
6646             40|
6647             55|
6648             6[146]
6649           )\d{4}|
6650           8\d{6}
6651         </nationalNumberPattern>
6652         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
6653       </fixedLine>
6654       <mobile>
6655         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
6656              numbers or was in addition to them, so we support both here. -->
6657         <nationalNumberPattern>
6658           17[1-3]\d{4}|
6659           7\d{6}
6660         </nationalNumberPattern>
6661         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6662         <exampleNumber>7123456</exampleNumber>
6663       </mobile>
6664     </territory>
6665
6666     <!-- Spain -->
6667     <territory id="ES" countryCode="34" internationalPrefix="00" mobileNumberPortableRegion="true">
6668       <references>
6669         <sourceUrl>http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx</sourceUrl>
6670       </references>
6671       <availableFormats>
6672         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
6673           <leadingDigits>
6674             [568]|
6675             [79][0-8]
6676           </leadingDigits>
6677           <format>$1 $2 $3 $4</format>
6678         </numberFormat>
6679       </availableFormats>
6680       <generalDesc>
6681         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
6682         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6683       </generalDesc>
6684       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
6685            fixed-line ranges. -->
6686       <fixedLine>
6687         <nationalNumberPattern>
6688           8(?:
6689             [13]0|
6690             [28][0-8]|
6691             [47][1-9]|
6692             5[01346-9]|
6693             6[0457-9]
6694           )\d{6}|
6695           9(?:
6696             [1238][0-8]\d{6}|
6697             4[1-9]\d{6}|
6698             5\d{7}|
6699             6(?:
6700               [0-8]\d{6}|
6701               9(?:
6702                 0(?:
6703                   [0-57-9]\d{4}|
6704                   6(?:
6705                     0[0-8]|
6706                     1[1-9]|
6707                     [2-9]\d
6708                   )\d{2}
6709                 )|
6710                 [1-9]\d{5}
6711               )
6712             )|
6713             7(?:
6714               [124-9]\d{2}|
6715               3(?:
6716                 [0-8]\d|
6717                 9[1-9]
6718               )
6719             )\d{4}
6720           )
6721         </nationalNumberPattern>
6722         <exampleNumber>810123456</exampleNumber>
6723       </fixedLine>
6724       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
6725            information received from Lleida Networks. -->
6726       <mobile>
6727         <nationalNumberPattern>
6728           (?:
6729             6\d{6}|
6730             7[1-4]\d{5}|
6731             9(?:
6732               6906(?:
6733                 09|
6734                 10
6735               )|
6736               7390\d{2}
6737             )
6738           )\d{2}
6739         </nationalNumberPattern>
6740         <exampleNumber>612345678</exampleNumber>
6741       </mobile>
6742       <tollFree>
6743         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
6744         <exampleNumber>800123456</exampleNumber>
6745       </tollFree>
6746       <premiumRate>
6747         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
6748         <exampleNumber>803123456</exampleNumber>
6749       </premiumRate>
6750       <sharedCost>
6751         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
6752         <exampleNumber>901123456</exampleNumber>
6753       </sharedCost>
6754       <personalNumber>
6755         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
6756         <exampleNumber>701234567</exampleNumber>
6757       </personalNumber>
6758       <!-- Modelling non-geographic nomadic numbers as UAN. -->
6759       <uan>
6760         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
6761         <exampleNumber>511234567</exampleNumber>
6762       </uan>
6763     </territory>
6764
6765     <!-- Ethiopia -->
6766     <territory id="ET" countryCode="251" internationalPrefix="00"
6767                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6768       <references>
6769         <sourceUrl>http://www.itu.int/oth/T0202000044/en</sourceUrl>
6770       </references>
6771       <availableFormats>
6772         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
6773           <format>$1 $2 $3</format>
6774         </numberFormat>
6775       </availableFormats>
6776       <generalDesc>
6777         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
6778         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
6779       </generalDesc>
6780       <fixedLine>
6781         <nationalNumberPattern>
6782           (?:
6783             11(?:
6784               1(?:
6785                 1[124]|
6786                 2[2-57]|
6787                 3[1-5]|
6788                 5[5-8]|
6789                 8[6-8]
6790               )|
6791               2(?:
6792                 13|
6793                 3[6-8]|
6794                 5[89]|
6795                 7[05-9]|
6796                 8[2-6]
6797               )|
6798               3(?:
6799                 2[01]|
6800                 3[0-289]|
6801                 4[1289]|
6802                 7[1-4]|
6803                 87
6804               )|
6805               4(?:
6806                 1[69]|
6807                 3[2-49]|
6808                 4[0-3]|
6809                 6[5-8]
6810               )|
6811               5(?:
6812                 1[57]|
6813                 44|
6814                 5[0-4]
6815               )|
6816               6(?:
6817                 18|
6818                 2[69]|
6819                 4[5-7]|
6820                 5[1-5]|
6821                 6[0-59]|
6822                 8[015-8]
6823               )
6824             )|
6825             2(?:
6826               2(?:
6827                 11[1-9]|
6828                 22[0-7]|
6829                 33\d|
6830                 44[1467]|
6831                 66[1-68]
6832               )|
6833               5(?:
6834                 11[124-6]|
6835                 33[2-8]|
6836                 44[1467]|
6837                 55[14]|
6838                 66[1-3679]|
6839                 77[124-79]|
6840                 880
6841               )
6842             )|
6843             3(?:
6844               3(?:
6845                 11[0-46-8]|
6846                 22[0-6]|
6847                 33[0134689]|
6848                 44[04]|
6849                 55[0-6]|
6850                 66[01467]
6851               )|
6852               4(?:
6853                 44[0-8]|
6854                 55[0-69]|
6855                 66[0-3]|
6856                 77[1-5]
6857               )
6858             )|
6859             4(?:
6860               6(?:
6861                 22[0-24-7]|
6862                 33[1-5]|
6863                 44[13-69]|
6864                 55[14-689]|
6865                 660|
6866                 88[1-4]
6867               )|
6868               7(?:
6869                 11[1-9]|
6870                 22[1-9]|
6871                 33[13-7]|
6872                 44[13-6]|
6873                 55[1-689]
6874               )
6875             )|
6876             5(?:
6877               7(?:
6878                 227|
6879                 55[05]|
6880                 (?:
6881                   66|
6882                   77
6883                 )[14-8]
6884               )|
6885               8(?:
6886                 11[149]|
6887                 22[013-79]|
6888                 33[0-68]|
6889                 44[013-8]|
6890                 550|
6891                 66[1-5]|
6892                 77\d
6893               )
6894             )
6895           )\d{4}
6896         </nationalNumberPattern>
6897         <exampleNumber>111112345</exampleNumber>
6898       </fixedLine>
6899       <mobile>
6900         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
6901              numbers are visible online than are reported in the ITU document. This pattern is
6902              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
6903              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
6904         <nationalNumberPattern>
6905           9(?:
6906             [1-3]\d|
6907             5[89]
6908           )\d{6}
6909         </nationalNumberPattern>
6910         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6911         <exampleNumber>911234567</exampleNumber>
6912       </mobile>
6913     </territory>
6914
6915     <!-- Finland -->
6916     <!-- Metadata shared with Ã…land (AX) -->
6917     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
6918                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
6919                mobileNumberPortableRegion="true">
6920       <references>
6921         <sourceUrl>https://www.viestintavirasto.fi/internetpuhelin/puhelinverkonnumerointi.html</sourceUrl>
6922       </references>
6923       <availableFormats>
6924         <numberFormat pattern="(\d{3})(\d{3,7})">
6925           <leadingDigits>
6926             (?:
6927               [1-3]00|
6928               [6-8]0
6929             )
6930           </leadingDigits>
6931           <format>$1 $2</format>
6932         </numberFormat>
6933         <numberFormat pattern="(\d{2})(\d{4,10})">
6934           <leadingDigits>
6935             [14]|
6936             2[09]|
6937             50|
6938             7[135]
6939           </leadingDigits>
6940           <format>$1 $2</format>
6941         </numberFormat>
6942         <numberFormat pattern="(\d)(\d{4,11})">
6943           <leadingDigits>
6944             [25689][1-8]|
6945             3
6946           </leadingDigits>
6947           <format>$1 $2</format>
6948         </numberFormat>
6949       </availableFormats>
6950       <generalDesc>
6951         <nationalNumberPattern>
6952           1\d{4,11}|
6953           [2-9]\d{4,10}
6954         </nationalNumberPattern>
6955         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
6956       </generalDesc>
6957       <noInternationalDialling>
6958         <!-- According to the national numbering plan, service numbers are in general not accessible
6959              from abroad, although 600/700/800 numbers may be. -->
6960         <nationalNumberPattern>
6961           [13]00\d{3,7}|
6962           2(?:
6963             0(?:
6964               0\d{3,7}|
6965               2[023]\d{1,6}|
6966               9[89]\d{1,6}
6967             )
6968           )|
6969           60(?:
6970             [12]\d{5,6}|
6971             6\d{7}
6972           )|
6973           7(?:
6974             1\d{7}|
6975             3\d{8}|
6976             5[03-9]\d{2,7}
6977           )
6978         </nationalNumberPattern>
6979         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6980         <exampleNumber>100123</exampleNumber>
6981       </noInternationalDialling>
6982       <fixedLine>
6983         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
6984              are listed under UAN. It also excludes Ã…land numbers. -->
6985         <nationalNumberPattern>
6986           1(?:
6987             [3569][1-8]\d{3,9}|
6988             [47]\d{5,10}
6989           )|
6990           2[1-8]\d{3,9}|
6991           3(?:
6992             [1-8]\d{3,9}|
6993             9\d{4,8}
6994           )|
6995           [5689][1-8]\d{3,9}
6996         </nationalNumberPattern>
6997         <exampleNumber>1312345678</exampleNumber>
6998       </fixedLine>
6999       <mobile>
7000         <nationalNumberPattern>
7001           4\d{5,10}|
7002           50\d{4,8}
7003         </nationalNumberPattern>
7004         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
7005         <exampleNumber>412345678</exampleNumber>
7006       </mobile>
7007       <tollFree>
7008         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
7009         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
7010         <exampleNumber>8001234567</exampleNumber>
7011       </tollFree>
7012       <premiumRate>
7013         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
7014         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
7015         <exampleNumber>600123456</exampleNumber>
7016       </premiumRate>
7017       <uan>
7018         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
7019              assigned to institutions such as universities, the national post, etc, where they are
7020              not otherwise classified as toll-free or premium-rate numbers. -->
7021         <nationalNumberPattern>
7022           [13]0\d{4,8}|
7023           2(?:
7024             0(?:
7025               [016-8]\d{3,7}|
7026               [2-59]\d{2,7}
7027             )|
7028             9\d{4,8}
7029           )|
7030           60(?:
7031             [12]\d{5,6}|
7032             6\d{7}
7033           )|
7034           7(?:
7035             1\d{7}|
7036             3\d{8}|
7037             5[03-9]\d{2,7}
7038           )
7039         </nationalNumberPattern>
7040         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
7041         <exampleNumber>10112345</exampleNumber>
7042       </uan>
7043     </territory>
7044
7045     <!-- Fiji -->
7046     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
7047                preferredInternationalPrefix="00" leadingZeroPossible="true">
7048       <references>
7049         <sourceUrl>http://www.itu.int/oth/T0202000048/en</sourceUrl>
7050         <sourceUrl>http://www.tfl.com.fj</sourceUrl>
7051       </references>
7052       <availableFormats>
7053         <numberFormat pattern="(\d{3})(\d{4})">
7054           <leadingDigits>[36-9]</leadingDigits>
7055           <format>$1 $2</format>
7056         </numberFormat>
7057         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
7058           <leadingDigits>0</leadingDigits>
7059           <format>$1 $2 $3</format>
7060         </numberFormat>
7061       </availableFormats>
7062       <generalDesc>
7063         <nationalNumberPattern>
7064           [36-9]\d{6}|
7065           0\d{10}
7066         </nationalNumberPattern>
7067         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
7068       </generalDesc>
7069       <fixedLine>
7070         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
7071              online, including in the white pages. 35X and 85X were found in the exchanges listed on
7072              http://www.tfl.com.fj. -->
7073         <nationalNumberPattern>
7074           (?:
7075             3[0-5]|
7076             6[25-7]|
7077             8[58]
7078           )\d{5}
7079         </nationalNumberPattern>
7080         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7081         <exampleNumber>3212345</exampleNumber>
7082       </fixedLine>
7083       <mobile>
7084         <!-- Adding 7[5-8], 8[03679], and 9[034678] from numbers found online and numbers where SMSs
7085              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
7086         <nationalNumberPattern>
7087           (?:
7088             7[0-8]|
7089             8[034679]|
7090             9\d
7091           )\d{5}
7092         </nationalNumberPattern>
7093         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7094         <exampleNumber>7012345</exampleNumber>
7095       </mobile>
7096       <tollFree>
7097         <!-- Information found on http://www.tfl.com.fj. It is not clear if these are
7098              internationally diallable, or if so, how. -->
7099         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
7100         <possibleNumberPattern>\d{11}</possibleNumberPattern>
7101         <exampleNumber>08001234567</exampleNumber>
7102       </tollFree>
7103     </territory>
7104
7105     <!-- Falkland Islands (Malvinas) -->
7106     <territory id="FK" countryCode="500" internationalPrefix="00">
7107       <references>
7108         <sourceUrl>http://www.itu.int/oth/T0202000046/en</sourceUrl>
7109       </references>
7110       <!-- All numbers are formatted together, as a block. -->
7111       <generalDesc>
7112         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
7113         <possibleNumberPattern>\d{5}</possibleNumberPattern>
7114       </generalDesc>
7115       <fixedLine>
7116         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
7117         <exampleNumber>31234</exampleNumber>
7118       </fixedLine>
7119       <mobile>
7120         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
7121         <exampleNumber>51234</exampleNumber>
7122       </mobile>
7123     </territory>
7124
7125     <!-- Micronesia, Federated States of -->
7126     <territory id="FM" countryCode="691" internationalPrefix="00">
7127       <references>
7128         <sourceUrl>http://www.itu.int/oth/T020200008B/en</sourceUrl>
7129       </references>
7130       <availableFormats>
7131         <numberFormat pattern="(\d{3})(\d{4})">
7132           <format>$1 $2</format>
7133         </numberFormat>
7134       </availableFormats>
7135       <generalDesc>
7136         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
7137         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7138       </generalDesc>
7139       <fixedLine>
7140         <nationalNumberPattern>
7141             3[2357]0[1-9]\d{3}|
7142             9[2-6]\d{5}
7143         </nationalNumberPattern>
7144         <exampleNumber>3201234</exampleNumber>
7145       </fixedLine>
7146       <mobile>
7147         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
7148              are exclusively mobile. -->
7149         <nationalNumberPattern>
7150           3[2357]0[1-9]\d{3}|
7151           9[2-7]\d{5}
7152         </nationalNumberPattern>
7153         <exampleNumber>3501234</exampleNumber>
7154       </mobile>
7155     </territory>
7156
7157     <!-- Faroe Islands -->
7158     <territory id="FO" countryCode="298" internationalPrefix="00"
7159                nationalPrefixForParsing="(10(?:01|[12]0|88))"
7160                carrierCodeFormattingRule="$CC $FG">
7161       <references>
7162         <sourceUrl>http://www.itu.int/oth/T0202000047/en</sourceUrl>
7163       </references>
7164       <!-- All numbers are formatted together, as a block. -->
7165       <availableFormats>
7166         <numberFormat pattern="(\d{6})">
7167           <format>$1</format>
7168         </numberFormat>
7169       </availableFormats>
7170       <generalDesc>
7171         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
7172         <possibleNumberPattern>\d{6}</possibleNumberPattern>
7173       </generalDesc>
7174       <fixedLine>
7175         <nationalNumberPattern>
7176           (?:
7177             20|
7178             [3-4]\d|
7179             8[19]
7180           )\d{4}
7181         </nationalNumberPattern>
7182         <exampleNumber>201234</exampleNumber>
7183       </fixedLine>
7184       <mobile>
7185         <nationalNumberPattern>
7186           (?:
7187             2[1-9]|
7188             5\d|
7189             7[1-79]
7190           )\d{4}
7191         </nationalNumberPattern>
7192         <exampleNumber>211234</exampleNumber>
7193       </mobile>
7194       <tollFree>
7195         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
7196         <exampleNumber>802123</exampleNumber>
7197       </tollFree>
7198       <premiumRate>
7199         <nationalNumberPattern>
7200           90(?:
7201             [1345][15-7]|
7202             2[125-7]|
7203             99
7204             )\d{2}
7205         </nationalNumberPattern>
7206         <exampleNumber>901123</exampleNumber>
7207       </premiumRate>
7208       <voip>
7209         <nationalNumberPattern>
7210           (?:
7211             6[0-36]|
7212             88
7213           )\d{4}
7214         </nationalNumberPattern>
7215         <exampleNumber>601234</exampleNumber>
7216       </voip>
7217     </territory>
7218
7219     <!-- France -->
7220     <territory id="FR" countryCode="33" internationalPrefix="00" nationalPrefix="0"
7221                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
7222       <references>
7223         <sourceUrl>http://www.itu.int/oth/T020200004A/en</sourceUrl>
7224         <sourceUrl>http://www.arcep.fr/index.php?id=8146</sourceUrl>
7225         <sourceUrl>http://en.wikipedia.org/wiki/%2B33</sourceUrl>
7226       </references>
7227       <!-- Short numbers will be formatted as a block without a national prefix. -->
7228       <availableFormats>
7229         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
7230           <leadingDigits>[1-79]</leadingDigits>
7231           <format>$1 $2 $3 $4 $5</format>
7232         </numberFormat>
7233         <numberFormat pattern="(1\d{2})(\d{3})" nationalPrefixFormattingRule="$FG">
7234           <leadingDigits>11</leadingDigits>
7235           <format>$1 $2</format>
7236           <intlFormat>NA</intlFormat>
7237         </numberFormat>
7238         <numberFormat nationalPrefixFormattingRule="$NP $FG"
7239           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
7240           <leadingDigits>8</leadingDigits>
7241           <format>$1 $2 $3 $4</format>
7242         </numberFormat>
7243       </availableFormats>
7244       <generalDesc>
7245         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
7246         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7247       </generalDesc>
7248       <fixedLine>
7249         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
7250         <exampleNumber>123456789</exampleNumber>
7251       </fixedLine>
7252       <mobile>
7253         <nationalNumberPattern>
7254           6\d{8}|
7255           7[5-9]\d{7}
7256         </nationalNumberPattern>
7257         <exampleNumber>612345678</exampleNumber>
7258       </mobile>
7259       <tollFree>
7260         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
7261         <exampleNumber>801234567</exampleNumber>
7262       </tollFree>
7263       <premiumRate>
7264         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
7265         <exampleNumber>891123456</exampleNumber>
7266       </premiumRate>
7267       <sharedCost>
7268         <nationalNumberPattern>
7269           8(?:
7270             1[019]|
7271             2[0156]|
7272             84|
7273             90
7274           )\d{6}
7275         </nationalNumberPattern>
7276         <exampleNumber>810123456</exampleNumber>
7277       </sharedCost>
7278       <voip>
7279         <!-- 087 numbers used to be used for this. -->
7280         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
7281         <exampleNumber>912345678</exampleNumber>
7282       </voip>
7283     </territory>
7284
7285     <!-- Gabon -->
7286     <!-- Note: We cannot set nationalPrefix="0" while fixed line numbers can start with a zero
7287          as this breaks parsing (it treats all leading zeros as national prefixes. -->
7288     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true" >
7289       <references>
7290         <sourceUrl>http://www.itu.int/oth/T020200004E/en</sourceUrl>
7291         <sourceUrl>http://www.arcep.ga</sourceUrl>
7292       </references>
7293       <availableFormats>
7294         <!-- If no leading zero was supplied, format with the national prefix. -->
7295         <numberFormat pattern="(\d)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="0$FG">
7296           <leadingDigits>[2-7]</leadingDigits>
7297           <format>$1 $2 $3 $4</format>
7298         </numberFormat>
7299         <!-- This already has a leading zero so we format is "as is". -->
7300         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
7301           <leadingDigits>0</leadingDigits>
7302          <format>$1 $2 $3 $4</format>
7303         </numberFormat>
7304       </availableFormats>
7305       <generalDesc>
7306         <nationalNumberPattern>0?\d{7}</nationalNumberPattern>
7307         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
7308       </generalDesc>
7309       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
7310            line and mobile numbering. However, this has only partially happened; mobile numbers can
7311            now be dialed without a leading zero, but fixed line numbers still require it. Their own
7312            website still lists fixed line numbers as "+241 01 44 68 11" and upon ringing they will
7313            not connect from outside the country without the 0. This was last tested March 2014. -->
7314       <fixedLine>
7315         <nationalNumberPattern>01\d{6}</nationalNumberPattern>
7316         <possibleNumberPattern>\d{8}</possibleNumberPattern>
7317         <exampleNumber>01441234</exampleNumber>
7318       </fixedLine>
7319       <mobile>
7320         <!-- Mobile numbers can be 7 or 8 digits (with or without a leading zero). -->
7321         <nationalNumberPattern>0?[2-7]\d{6}</nationalNumberPattern>
7322         <exampleNumber>06031234</exampleNumber>
7323       </mobile>
7324     </territory>
7325
7326     <!-- United Kingdom -->
7327     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
7328          validation, although the formatting rules are shared. -->
7329     <territory id="GB" countryCode="44" internationalPrefix="00"
7330                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
7331                mainCountryForCode="true" mobileNumberPortableRegion="true">
7332       <references>
7333         <sourceUrl>http://stakeholders.ofcom.org.uk/telecoms/numbering/</sourceUrl>
7334         <sourceUrl>http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes</sourceUrl>
7335         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=GB</sourceUrl>
7336       </references>
7337       <availableFormats>
7338         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
7339         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
7340           <leadingDigits>
7341             2|
7342             5[56]|
7343             7(?:
7344               0|
7345               6[013-9]
7346             )
7347           </leadingDigits>
7348           <leadingDigits>
7349             2|
7350             5[56]|
7351             7(?:
7352               0|
7353               6(?:
7354                 [013-9]|
7355                 2[0-35-9]
7356               )
7357             )
7358           </leadingDigits>
7359           <format>$1 $2 $3</format>
7360         </numberFormat>
7361         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
7362         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
7363           <leadingDigits>
7364             1(?:
7365               1|
7366               \d1
7367             )|
7368             3|
7369             9[018]
7370           </leadingDigits>
7371           <format>$1 $2 $3</format>
7372         </numberFormat>
7373         <!-- 1dddd with 9 or 10 digits.
7374              These area codes are very rare in GB, and are only available in the following places:
7375              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
7376              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
7377              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
7378         <numberFormat pattern="(\d{5})(\d{4,5})">
7379           <leadingDigits>
7380             1(?:
7381               38|
7382               5[23]|
7383               69|
7384               76|
7385               94
7386             )
7387           </leadingDigits>
7388           <leadingDigits>
7389             1(?:
7390               387|
7391               5(?:
7392                 24|
7393                 39
7394               )|
7395               697|
7396               768|
7397               946
7398             )
7399           </leadingDigits>
7400           <leadingDigits>
7401             1(?:
7402               3873|
7403               5(?:
7404                 242|
7405                 39[456]
7406               )|
7407               697[347]|
7408               768[347]|
7409               9467
7410             )
7411           </leadingDigits>
7412           <format>$1 $2</format>
7413         </numberFormat>
7414         <!-- 1ddd with 9 or 10 digits. -->
7415         <numberFormat pattern="(1\d{3})(\d{5,6})">
7416           <leadingDigits>1</leadingDigits>
7417           <format>$1 $2</format>
7418         </numberFormat>
7419         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
7420         <numberFormat pattern="(7\d{3})(\d{6})">
7421           <leadingDigits>
7422             7(?:
7423               [1-5789]|
7424               62
7425             )
7426           </leadingDigits>
7427           <leadingDigits>
7428             7(?:
7429               [1-5789]|
7430               624
7431             )
7432           </leadingDigits>
7433           <format>$1 $2</format>
7434         </numberFormat>
7435         <!-- 800 1111 : UK ChildLine. -->
7436         <numberFormat pattern="(800)(\d{4})">
7437           <leadingDigits>800</leadingDigits>
7438           <leadingDigits>8001</leadingDigits>
7439           <leadingDigits>80011</leadingDigits>
7440           <leadingDigits>800111</leadingDigits>
7441           <leadingDigits>8001111</leadingDigits>
7442           <format>$1 $2</format>
7443         </numberFormat>
7444         <!-- 845 46 47 : UK NHS Direct. -->
7445         <numberFormat pattern="(845)(46)(4\d)">
7446           <leadingDigits>845</leadingDigits>
7447           <leadingDigits>8454</leadingDigits>
7448           <leadingDigits>84546</leadingDigits>
7449           <leadingDigits>845464</leadingDigits>
7450           <format>$1 $2 $3</format>
7451         </numberFormat>
7452         <!-- 84d, 87d with 10 digits. -->
7453         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
7454           <leadingDigits>
7455             8(?:
7456               4[2-5]|
7457               7[0-3]
7458             )
7459           </leadingDigits>
7460           <format>$1 $2 $3</format>
7461         </numberFormat>
7462         <!-- 80d (including 800) with 10 digits. -->
7463         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
7464           <leadingDigits>80</leadingDigits>
7465           <format>$1 $2 $3</format>
7466         </numberFormat>
7467         <!-- 500, 800 with 9 digits. -->
7468         <numberFormat pattern="([58]00)(\d{6})">
7469           <leadingDigits>[58]00</leadingDigits>
7470           <format>$1 $2</format>
7471         </numberFormat>
7472       </availableFormats>
7473       <generalDesc>
7474         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
7475         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
7476       </generalDesc>
7477       <areaCodeOptional>
7478         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
7479              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
7480              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
7481              necessarily valid numbers. -->
7482         <nationalNumberPattern>
7483           2\d[2-9]\d{7}|
7484           1(?:
7485             1\d|
7486             \d1
7487           )[2-9]\d{6}|
7488           1(?:
7489             [248][02-9]\d[2-9]\d{4,5}|
7490             (?:
7491               3(?:
7492                 [02-79]\d|
7493                 8[0-69]
7494               )|
7495               5(?:
7496                 [04-9]\d|
7497                 2[0-35-9]|
7498                 3[0-8]
7499               )|
7500               6(?:
7501                 [02-8]\d|
7502                 9[0-689]
7503               )|
7504               7(?:
7505                 [02-5789]\d|
7506                 6[0-79]
7507               )|
7508               9(?:
7509                 [0235-9]\d|
7510                 4[0-5789]
7511               )
7512             )[2-9]\d{4,5}|
7513             (?:
7514               387(?:
7515                 3[2-9]|
7516                 [24-9]\d
7517               )|
7518               5(?:
7519                 24(?:
7520                   2[2-9]|
7521                   [3-9]\d
7522                 )|
7523                 39(?:
7524                   [4-6][2-9]|
7525                   [237-9]\d
7526                 )
7527               )|
7528               697(?:
7529                 [347][2-9]|
7530                 [25689]\d
7531               )|
7532               768(?:
7533                 [347][2-9]|
7534                 [25679]\d
7535               )|
7536               946(?:
7537                 7[2-9]|
7538                 [2-689]\d
7539               )
7540             )\d{3,4}
7541           )
7542         </nationalNumberPattern>
7543         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
7544         <exampleNumber>1332456789</exampleNumber>
7545       </areaCodeOptional>
7546       <fixedLine>
7547         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7548         <!-- Pattern matches geographic NSN=10 numbers as follows:
7549              - area code and local number first digit for 2+8,
7550              - area code and local number first digit for 3+7,
7551              - area code only for 4+6 (including areas with embedded 5+5).
7552              Pattern matches geographic NSN=9 numbers as follows:
7553              - area code and local number first two digits for 4+5,
7554              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
7555              - area code and local number first digit for 5+4 special case (016977) Dddd.
7556              All patterns exclude ranges used in GG, IM, JE. -->
7557         <nationalNumberPattern>
7558           2(?:
7559             0[01378]|
7560             3[0189]|
7561             4[017]|
7562             8[0-46-9]|
7563             9[012]
7564           )\d{7}|
7565           1(?:
7566             (?:
7567               1(?:
7568                 3[0-48]|
7569                 [46][0-4]|
7570                 5[012789]|
7571                 7[0-49]|
7572                 8[01349]
7573               )|
7574               21[0-7]|
7575               31[0-8]|
7576               [459]1\d|
7577               61[0-46-9]
7578             )
7579           )\d{6}|
7580           1(?:
7581             2(?:
7582               0[024-9]|
7583               2[3-9]|
7584               3[3-79]|
7585               4[1-689]|
7586               [58][02-9]|
7587               6[0-4789]|
7588               7[013-9]|
7589               9\d
7590             )|
7591             3(?:
7592               0\d|
7593               [25][02-9]|
7594               3[02-579]|
7595               [468][0-46-9]|
7596               7[1235679]|
7597               9[24578]
7598             )|
7599             4(?:
7600               0[03-9]|
7601               [28][02-5789]|
7602               [37]\d|
7603               4[02-69]|
7604               5[0-8]|
7605               [69][0-79]
7606             )|
7607             5(?:
7608               0[1235-9]|
7609               2[024-9]|
7610               3[015689]|
7611               4[02-9]|
7612               5[03-9]|
7613               6\d|
7614               7[0-35-9]|
7615               8[0-468]|
7616               9[0-5789]
7617             )|
7618             6(?:
7619               0[034689]|
7620               2[0-35689]|
7621               [38][013-9]|
7622               4[1-467]|
7623               5[0-69]|
7624               6[13-9]|
7625               7[0-8]|
7626               9[0124578]
7627             )|
7628             7(?:
7629               0[0246-9]|
7630               2\d|
7631               3[023678]|
7632               4[03-9]|
7633               5[0-46-9]|
7634               6[013-9]|
7635               7[0-35-9]|
7636               8[024-9]|
7637               9[02-9]
7638             )|
7639             8(?:
7640               0[35-9]|
7641               2[1-5789]|
7642               3[02-578]|
7643               4[0-578]|
7644               5[124-9]|
7645               6[2-69]|
7646               7\d|
7647               8[02-9]|
7648               9[02569]
7649             )|
7650             9(?:
7651               0[02-589]|
7652               2[02-689]|
7653               3[1-5789]|
7654               4[2-9]|
7655               5[0-579]|
7656               6[234789]|
7657               7[0124578]|
7658               8\d|
7659               9[2-57]
7660             )
7661           )\d{6}|
7662           1(?:
7663             2(?:
7664               0(?:
7665                 46[1-4]|
7666                 87[2-9]
7667               )|
7668               545[1-79]|
7669               76(?:
7670                 2\d|
7671                 3[1-8]|
7672                 6[1-6]
7673               )|
7674               9(?:
7675                 7(?:
7676                   2[0-4]|
7677                   3[2-5]
7678                 )|
7679                 8(?:
7680                   2[2-8]|
7681                   7[0-4789]|
7682                   8[345]
7683                 )
7684               )
7685             )|
7686             3(?:
7687               638[2-5]|
7688               647[23]|
7689               8(?:
7690                 47[04-9]|
7691                 64[015789]
7692               )
7693             )|
7694             4(?:
7695               044[1-7]|
7696               20(?:
7697                 2[23]|
7698                 8\d
7699               )|
7700               6(?:
7701                 0(?:
7702                   30|
7703                   5[2-57]|
7704                   6[1-8]|
7705                   7[2-8]
7706                 )|
7707                 140
7708               )|
7709               8(?:
7710                 052|
7711                 87[123]
7712               )
7713             )|
7714             5(?:
7715               24(?:
7716                 3[2-79]|
7717                 6\d
7718               )|
7719               276\d|
7720               6(?:
7721                 26[06-9]|
7722                 686
7723               )
7724             )|
7725             6(?:
7726               06(?:
7727                 4\d|
7728                 7[4-79]
7729               )|
7730               295[567]|
7731               35[34]\d|
7732               47(?:
7733                 24|
7734                 61
7735               )|
7736               59(?:
7737                 5[08]|
7738                 6[67]|
7739                 74
7740               )|
7741               955[0-4]
7742             )|
7743             7(?:
7744               26(?:
7745                 6[13-9]|
7746                 7[0-7]
7747               )|
7748               442\d|
7749               50(?:
7750                 2[0-3]|
7751                 [3-68]2|
7752                 76
7753               )
7754             )|
7755             8(?:
7756               27[56]\d|
7757               37(?:
7758                 5[2-5]|
7759                 8[239]
7760               )|
7761               84(?:
7762                 3[2-58]
7763               )
7764             )|
7765             9(?:
7766               0(?:
7767                 0(?:
7768                   6[1-8]|
7769                   85
7770                 )|
7771                 52\d
7772               )|
7773               3583|
7774               4(?:
7775                 66[1-8]|
7776                 9(?:
7777                   2[01]|
7778                   81
7779                 )
7780               )|
7781               63(?:
7782                 23|
7783                 3[1-4]
7784               )|
7785               9561
7786             )
7787           )\d{3}|
7788           176888[234678]\d{2}|
7789           16977[23]\d{3}
7790         </nationalNumberPattern>
7791         <exampleNumber>1212345678</exampleNumber>
7792       </fixedLine>
7793       <mobile>
7794         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
7795              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
7796         <nationalNumberPattern>
7797           7(?:
7798             [1-4]\d\d|
7799             5(?:
7800               0[0-8]|
7801               [13-9]\d|
7802               2[0-35-9]
7803             )|
7804             7(?:
7805               0[1-9]|
7806               [1-7]\d|
7807               8[02-9]|
7808               9[0-689]
7809             )|
7810             8(?:
7811               [014-9]\d|
7812               [23][0-8]
7813             )|
7814             9(?:
7815               [04-9]\d|
7816               1[02-9]|
7817               2[0-35-9]|
7818               3[0-689]
7819             )
7820           )\d{6}
7821         </nationalNumberPattern>
7822         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7823         <exampleNumber>7400123456</exampleNumber>
7824       </mobile>
7825       <pager>
7826         <!-- 76 with 10 digits; excluding ranges used in IM. -->
7827         <nationalNumberPattern>
7828           76(?:
7829             0[012]|
7830             2[356]|
7831             4[0134]|
7832             5[49]|
7833             6[0-369]|
7834             77|
7835             81|
7836             9[39]
7837           )\d{6}
7838         </nationalNumberPattern>
7839         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7840         <exampleNumber>7640123456</exampleNumber>
7841       </pager>
7842       <!-- Source for non geographic numbers:
7843            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
7844       <tollFree>
7845         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
7846              -->
7847         <nationalNumberPattern>
7848           80(?:
7849             0(?:
7850               1111|
7851               \d{6,7}
7852             )|
7853             8\d{7}
7854           )|
7855           500\d{6}
7856         </nationalNumberPattern>
7857         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
7858         <exampleNumber>8001234567</exampleNumber>
7859       </tollFree>
7860       <premiumRate>
7861         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
7862              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
7863              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
7864              910-919 are reserved for standard premium rate services. -->
7865         <nationalNumberPattern>
7866           (?:
7867             87[123]|
7868             9(?:
7869               [01]\d|
7870               8[2349]
7871             )
7872           )\d{7}
7873         </nationalNumberPattern>
7874         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7875         <exampleNumber>9012345678</exampleNumber>
7876       </premiumRate>
7877       <sharedCost>
7878         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
7879              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
7880         <nationalNumberPattern>
7881           8(?:
7882             4(?:
7883               5464\d|
7884               [2-5]\d{7}
7885             )|
7886             70\d{7}
7887           )
7888         </nationalNumberPattern>
7889         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7890         <exampleNumber>8431234567</exampleNumber>
7891       </sharedCost>
7892       <personalNumber>
7893         <!-- 70 with 10 digits. -->
7894         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
7895         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7896         <exampleNumber>7012345678</exampleNumber>
7897       </personalNumber>
7898       <voip>
7899         <!-- 56 with 10 digits. -->
7900         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
7901         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7902         <exampleNumber>5612345678</exampleNumber>
7903       </voip>
7904       <uan>
7905         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
7906         <nationalNumberPattern>
7907           (?:
7908             3[0347]|
7909             55
7910           )\d{8}
7911         </nationalNumberPattern>
7912         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7913         <exampleNumber>5512345678</exampleNumber>
7914       </uan>
7915     </territory>
7916
7917     <!-- Grenada -->
7918     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
7919                internationalPrefix="011">
7920       <references>
7921         <sourceUrl>http://www.itu.int/oth/T0202000057/en</sourceUrl>
7922       </references>
7923       <generalDesc>
7924         <!-- NANPA country - uses US formatting rules -->
7925         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
7926         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7927       </generalDesc>
7928       <fixedLine>
7929         <nationalNumberPattern>
7930           473(?:
7931             2(?:
7932               3[0-2]|
7933               69
7934             )|
7935             3(?:
7936               2[89]|
7937               86
7938             )|
7939             4(?:
7940               [06]8|
7941               3[5-9]|
7942               4[0-49]|
7943               5[5-79]|
7944               68|
7945               73|
7946               90
7947             )|
7948             63[68]|
7949             7(?:
7950               58|
7951               84
7952             )|
7953             800|
7954             938
7955           )\d{4}
7956         </nationalNumberPattern>
7957         <exampleNumber>4732691234</exampleNumber>
7958       </fixedLine>
7959       <mobile>
7960         <nationalNumberPattern>
7961           473(?:
7962             4(?:
7963               0[2-79]|
7964               1[04-9]|
7965               20|
7966               58
7967             )|
7968             5(?:
7969               2[01]|
7970               3[3-8]
7971             )|
7972             901
7973           )\d{4}
7974         </nationalNumberPattern>
7975         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7976         <exampleNumber>4734031234</exampleNumber>
7977       </mobile>
7978       <tollFree>
7979         <nationalNumberPattern>
7980           8(?:
7981             00|
7982             44|
7983             55|
7984             66|
7985             77|
7986             88
7987           )[2-9]\d{6}
7988         </nationalNumberPattern>
7989         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7990         <exampleNumber>8002123456</exampleNumber>
7991       </tollFree>
7992       <premiumRate>
7993         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
7994         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7995         <exampleNumber>9002123456</exampleNumber>
7996       </premiumRate>
7997       <personalNumber>
7998         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
7999         <nationalNumberPattern>
8000           5(?:
8001             00|
8002             33|
8003             44|
8004             66|
8005             77
8006           )[2-9]\d{6}
8007         </nationalNumberPattern>
8008         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8009         <exampleNumber>5002345678</exampleNumber>
8010       </personalNumber>
8011     </territory>
8012
8013     <!-- Georgia -->
8014     <territory id="GE" countryCode="995" internationalPrefix="00" nationalPrefix="0"
8015                mobileNumberPortableRegion="true">
8016       <references>
8017         <sourceUrl>http://www.itu.int/oth/T0202000050/en</sourceUrl>
8018         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia_(country)</sourceUrl>
8019       </references>
8020       <availableFormats>
8021         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
8022              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
8023         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
8024           <leadingDigits>[348]</leadingDigits>
8025           <format>$1 $2 $3 $4</format>
8026         </numberFormat>
8027         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
8028           <leadingDigits>7</leadingDigits>
8029           <format>$1 $2 $3</format>
8030         </numberFormat>
8031         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
8032           <leadingDigits>5</leadingDigits>
8033           <format>$1 $2 $3 $4</format>
8034         </numberFormat>
8035       </availableFormats>
8036       <noInternationalDialling>
8037         <!-- Online numbers mention that this is not internationally diallable. -->
8038         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8039         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8040         <exampleNumber>706123456</exampleNumber>
8041       </noInternationalDialling>
8042       <generalDesc>
8043         <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
8044         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8045       </generalDesc>
8046       <fixedLine>
8047         <nationalNumberPattern>
8048           (?:
8049             3(?:
8050               [256]\d|
8051               4[124-9]|
8052               7[0-4]
8053             )|
8054             4(?:
8055               1\d|
8056               2[2-7]|
8057               3[1-79]|
8058               4[2-8]|
8059               7[239]|
8060               9[1-7]
8061             )
8062           )\d{6}
8063         </nationalNumberPattern>
8064         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8065         <exampleNumber>322123456</exampleNumber>
8066       </fixedLine>
8067       <mobile>
8068         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
8069              about the change in numbers, and online numbers found. -->
8070         <nationalNumberPattern>
8071           5(?:
8072             14|
8073             5[01578]|
8074             68|
8075             7[0147-9]|
8076             9[0-35-9]
8077           )\d{6}
8078         </nationalNumberPattern>
8079         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8080         <exampleNumber>555123456</exampleNumber>
8081       </mobile>
8082       <!-- Information from http://www.yell.ge, examples such as Wissol Petroleum Georgia
8083            hotline. -->
8084       <tollFree>
8085         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
8086         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8087         <exampleNumber>800123456</exampleNumber>
8088       </tollFree>
8089       <voip>
8090         <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
8091         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8092         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8093         <exampleNumber>706123456</exampleNumber>
8094       </voip>
8095       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
8096            these are omitted for now. -->
8097     </territory>
8098
8099     <!-- French Guiana (French Dept. of) -->
8100     <!-- Using a national prefix here as online numbers are formatted with it. -->
8101     <territory id="GF" countryCode="594" internationalPrefix="00"
8102                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
8103       <references>
8104         <sourceUrl>http://www.itu.int/oth/T020200004C/en</sourceUrl>
8105         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0594&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
8106         <sourceUrl>http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf</sourceUrl>
8107       </references>
8108       <availableFormats>
8109         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8110           <format>$1 $2 $3 $4</format>
8111         </numberFormat>
8112       </availableFormats>
8113       <generalDesc>
8114         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8115         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8116       </generalDesc>
8117       <fixedLine>
8118         <nationalNumberPattern>
8119           594(?:
8120             10|
8121             2[012457-9]|
8122             3[0-57-9]|
8123             4[3-9]|
8124             5[7-9]|
8125             6[0-3]|
8126             9[014]
8127           )\d{4}
8128         </nationalNumberPattern>
8129         <exampleNumber>594101234</exampleNumber>
8130       </fixedLine>
8131       <mobile>
8132         <nationalNumberPattern>
8133           694(?:
8134             [04][0-7]|
8135             1[0-5]|
8136             3[018]|
8137             [29]\d
8138           )\d{4}
8139         </nationalNumberPattern>
8140         <exampleNumber>694201234</exampleNumber>
8141       </mobile>
8142       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
8143            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
8144            too. -->
8145     </territory>
8146
8147     <!-- Guernsey -->
8148     <!-- Inherits formatting rules from the UK. -->
8149     <territory id="GG" countryCode="44" internationalPrefix="00"
8150                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
8151       <references>
8152         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
8153       </references>
8154       <generalDesc>
8155         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
8156         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
8157       </generalDesc>
8158       <areaCodeOptional>
8159         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
8160         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8161         <exampleNumber>1481250123</exampleNumber>
8162       </areaCodeOptional>
8163       <!-- Specific to GG. -->
8164       <fixedLine>
8165         <!-- 1481 with 10 digits. -->
8166         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
8167         <exampleNumber>1481456789</exampleNumber>
8168       </fixedLine>
8169       <mobile>
8170         <!-- 7781, 7839, 7911 with 10 digits. -->
8171         <nationalNumberPattern>
8172           7(?:
8173             781|
8174             839|
8175             911
8176           )\d{6}
8177         </nationalNumberPattern>
8178         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8179         <exampleNumber>7781123456</exampleNumber>
8180       </mobile>
8181       <!-- Other numbers as per GB. -->
8182       <pager>
8183         <nationalNumberPattern>
8184           76(?:
8185             0[012]|
8186             2[356]|
8187             4[0134]|
8188             5[49]|
8189             6[0-369]|
8190             77|
8191             81|
8192             9[39]
8193           )\d{6}
8194         </nationalNumberPattern>
8195         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8196         <exampleNumber>7640123456</exampleNumber>
8197       </pager>
8198       <tollFree>
8199         <nationalNumberPattern>
8200           80(?:
8201             0(?:
8202               1111|
8203               \d{6,7}
8204             )|
8205             8\d{7}
8206           )|
8207           500\d{6}
8208         </nationalNumberPattern>
8209         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
8210         <exampleNumber>8001234567</exampleNumber>
8211       </tollFree>
8212       <premiumRate>
8213         <nationalNumberPattern>
8214           (?:
8215             87[123]|
8216             9(?:
8217               [01]\d|
8218               8[0-3]
8219             )
8220           )\d{7}
8221         </nationalNumberPattern>
8222         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8223         <exampleNumber>9012345678</exampleNumber>
8224       </premiumRate>
8225       <sharedCost>
8226         <nationalNumberPattern>
8227           8(?:
8228             4(?:
8229               5464\d|
8230               [2-5]\d{7}
8231             )|
8232             70\d{7}
8233           )
8234         </nationalNumberPattern>
8235         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8236         <exampleNumber>8431234567</exampleNumber>
8237       </sharedCost>
8238       <personalNumber>
8239         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8240         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8241         <exampleNumber>7012345678</exampleNumber>
8242       </personalNumber>
8243       <voip>
8244         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
8245         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8246         <exampleNumber>5612345678</exampleNumber>
8247       </voip>
8248       <uan>
8249         <nationalNumberPattern>
8250           (?:
8251             3[0347]|
8252             55
8253           )\d{8}
8254         </nationalNumberPattern>
8255         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8256         <exampleNumber>5512345678</exampleNumber>
8257       </uan>
8258     </territory>
8259
8260     <!-- Ghana -->
8261     <territory id="GH" countryCode="233" internationalPrefix="00"
8262                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
8263                mobileNumberPortableRegion="true">
8264       <references>
8265         <sourceUrl>http://www.itu.int/oth/T0202000052/en</sourceUrl>
8266         <sourceUrl>http://www.nca.org.gh/index.php?option=com_content&amp;view=article&amp;id=90&amp;Itemid=65</sourceUrl>
8267       </references>
8268       <availableFormats>
8269         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
8270           <leadingDigits>[235]</leadingDigits>
8271           <format>$1 $2 $3</format>
8272         </numberFormat>
8273         <numberFormat pattern="(\d{3})(\d{5})">
8274           <leadingDigits>8</leadingDigits>
8275           <format>$1 $2</format>
8276         </numberFormat>
8277       </availableFormats>
8278       <generalDesc>
8279         <nationalNumberPattern>
8280           [235]\d{8}|
8281           8\d{7}
8282         </nationalNumberPattern>
8283         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8284       </generalDesc>
8285       <noInternationalDialling>
8286         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8287         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8288         <exampleNumber>80012345</exampleNumber>
8289       </noInternationalDialling>
8290       <fixedLine>
8291         <nationalNumberPattern>
8292           3(?:
8293             0[237]\d|
8294             [167](?:
8295               2[0-6]|
8296               7\d
8297             )|
8298             2(?:
8299               2[0-5]|
8300               7\d
8301             )|
8302             3(?:
8303               2[0-3]|
8304               7\d
8305             )|
8306             4(?:
8307               2[013-9]|
8308               3[01]|
8309               7\d
8310             )|
8311             5(?:
8312               2[0-7]|
8313               7\d
8314             )|
8315             8(?:
8316               2[0-2]|
8317               7\d
8318             )|
8319             9(?:
8320               20|
8321               7\d
8322             )
8323           )\d{5}
8324         </nationalNumberPattern>
8325         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8326         <exampleNumber>302345678</exampleNumber>
8327       </fixedLine>
8328       <mobile>
8329         <nationalNumberPattern>
8330           (?:
8331             2[034678]\d|
8332             5(?:
8333               [047]\d|
8334               5[3-6]|
8335               6[01]
8336             )
8337           )\d{6}
8338         </nationalNumberPattern>
8339         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8340         <exampleNumber>231234567</exampleNumber>
8341       </mobile>
8342       <tollFree>
8343         <!-- Found online references to these numbers, although they are not in the plan since they
8344              are not internationally diallable. -->
8345         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8346         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8347         <exampleNumber>80012345</exampleNumber>
8348       </tollFree>
8349       <!-- No premiumRate information can be found. -->
8350     </territory>
8351
8352     <!-- Gibraltar -->
8353     <territory id="GI" countryCode="350" internationalPrefix="00">
8354       <references>
8355         <sourceUrl>http://www.gra.gi/index.php?topic=numbering+plan&amp;section=legislation&amp;site=communications</sourceUrl>
8356       </references>
8357       <availableFormats>
8358         <!-- Most numbers are formatted as a block -->
8359         <numberFormat pattern="(\d{3})(\d{5})">
8360           <leadingDigits>2</leadingDigits>
8361           <format>$1 $2</format>
8362         </numberFormat>
8363       </availableFormats>
8364       <generalDesc>
8365         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
8366         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8367       </generalDesc>
8368       <fixedLine>
8369         <nationalNumberPattern>
8370           2(?:
8371             00\d|
8372             1(?:
8373               6[24-7]|
8374               9\d
8375             )|
8376             2(?:
8377               00|
8378               2[2457]
8379             )
8380           )\d{4}
8381         </nationalNumberPattern>
8382         <exampleNumber>20012345</exampleNumber>
8383       </fixedLine>
8384       <mobile>
8385         <nationalNumberPattern>
8386           (?:
8387             5[46-8]|
8388             62
8389           )\d{6}
8390         </nationalNumberPattern>
8391         <exampleNumber>57123456</exampleNumber>
8392       </mobile>
8393       <tollFree>
8394         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
8395         <exampleNumber>80123456</exampleNumber>
8396       </tollFree>
8397       <premiumRate>
8398         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
8399         <exampleNumber>88123456</exampleNumber>
8400       </premiumRate>
8401       <sharedCost>
8402         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
8403         <exampleNumber>87123456</exampleNumber>
8404       </sharedCost>
8405     </territory>
8406
8407     <!-- Greenland -->
8408     <territory id="GL" countryCode="299" internationalPrefix="00">
8409       <references>
8410         <sourceUrl>http://www.itu.int/oth/T0202000056/en</sourceUrl>
8411       </references>
8412       <availableFormats>
8413         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
8414           <format>$1 $2 $3</format>
8415         </numberFormat>
8416       </availableFormats>
8417       <generalDesc>
8418         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
8419         <possibleNumberPattern>\d{6}</possibleNumberPattern>
8420       </generalDesc>
8421       <fixedLine>
8422         <!-- Including VSAT numbers here. -->
8423         <nationalNumberPattern>
8424           (?:
8425             19|
8426             3[1-6]|
8427             6[14689]|
8428             8[14-79]|
8429             9\d
8430           )\d{4}
8431         </nationalNumberPattern>
8432         <exampleNumber>321000</exampleNumber>
8433       </fixedLine>
8434       <mobile>
8435         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
8436         <exampleNumber>221234</exampleNumber>
8437       </mobile>
8438       <tollFree>
8439         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
8440         <exampleNumber>801234</exampleNumber>
8441       </tollFree>
8442       <voip>
8443         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
8444         <exampleNumber>381234</exampleNumber>
8445       </voip>
8446     </territory>
8447
8448     <!-- Gambia -->
8449     <territory id="GM" countryCode="220" internationalPrefix="00">
8450       <references>
8451         <sourceUrl>http://www.itu.int/oth/T020200004F/en</sourceUrl>
8452       </references>
8453       <availableFormats>
8454         <numberFormat pattern="(\d{3})(\d{4})">
8455           <format>$1 $2</format>
8456         </numberFormat>
8457       </availableFormats>
8458       <generalDesc>
8459         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
8460         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8461       </generalDesc>
8462       <fixedLine>
8463         <nationalNumberPattern>
8464           (?:
8465             4(?:
8466               [23]\d{2}|
8467               4(?:
8468                 1[024679]|
8469                 [6-9]\d
8470               )
8471             )|
8472             5(?:
8473               54[0-7]|
8474               6(?:
8475                 [67]\d
8476               )|
8477               7(?:
8478                 1[04]|
8479                 2[035]|
8480                 3[58]|
8481                 48
8482               )
8483             )|
8484             8\d{3}
8485           )\d{3}
8486         </nationalNumberPattern>
8487         <exampleNumber>5661234</exampleNumber>
8488       </fixedLine>
8489       <mobile>
8490         <nationalNumberPattern>
8491           (?:
8492             2[0-6]|
8493             [3679]\d
8494           )\d{5}
8495         </nationalNumberPattern>
8496         <exampleNumber>3012345</exampleNumber>
8497       </mobile>
8498     </territory>
8499
8500     <!-- Guinea -->
8501     <territory id="GN" countryCode="224" internationalPrefix="00">
8502       <references>
8503         <sourceUrl>http://www.itu.int/oth/T020200005B/en</sourceUrl>
8504       </references>
8505       <availableFormats>
8506         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
8507           <leadingDigits>3</leadingDigits>
8508           <format>$1 $2 $3 $4</format>
8509         </numberFormat>
8510         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8511           <leadingDigits>[67]</leadingDigits>
8512           <format>$1 $2 $3 $4</format>
8513         </numberFormat>
8514       </availableFormats>
8515       <generalDesc>
8516         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
8517         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
8518       </generalDesc>
8519       <fixedLine>
8520         <nationalNumberPattern>
8521           30(?:
8522             24|
8523             3[12]|
8524             4[1-35-7]|
8525             5[13]|
8526             6[189]|
8527             [78]1|
8528             9[1478]
8529           )\d{4}
8530         </nationalNumberPattern>
8531         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8532         <exampleNumber>30241234</exampleNumber>
8533       </fixedLine>
8534       <mobile>
8535         <!-- Prefixes here match those assigned to carriers, as per the ITU communication Jan 23rd
8536              2013. -->
8537         <nationalNumberPattern>6[02356]\d{7}</nationalNumberPattern>
8538         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8539         <exampleNumber>601123456</exampleNumber>
8540       </mobile>
8541       <voip>
8542         <!-- Gamma concept network is being listed as VoIP as per
8543              http://www.gammaconcept.com/internet%20sat.html -->
8544         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
8545         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8546         <exampleNumber>722123456</exampleNumber>
8547       </voip>
8548     </territory>
8549
8550     <!-- Guadeloupe -->
8551     <territory id="GP" countryCode="590" internationalPrefix="00"
8552                mainCountryForCode="true" nationalPrefix="0"
8553                nationalPrefixFormattingRule="$NP$FG">
8554       <references>
8555         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
8556         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
8557         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
8558       </references>
8559       <availableFormats>
8560         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
8561           <format>$1 $2-$3</format>
8562         </numberFormat>
8563       </availableFormats>
8564       <generalDesc>
8565         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8566         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8567       </generalDesc>
8568       <fixedLine>
8569         <nationalNumberPattern>
8570           590(?:
8571             0[13468]|
8572             1[012]|
8573             2[0-68]|
8574             3[28]|
8575             4[0-8]|
8576             5[579]|
8577             6[0189]|
8578             70|
8579             8[0-689]|
8580             9\d
8581           )\d{4}
8582         </nationalNumberPattern>
8583         <exampleNumber>590201234</exampleNumber>
8584       </fixedLine>
8585       <mobile>
8586         <!-- Any ranges assigned from
8587              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
8588              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
8589              them. -->
8590         <nationalNumberPattern>
8591           690(?:
8592             0[0-7]|
8593             [1-9]\d
8594           )\d{4}
8595         </nationalNumberPattern>
8596         <exampleNumber>690301234</exampleNumber>
8597       </mobile>
8598     </territory>
8599
8600     <!-- Equatorial Guinea -->
8601     <territory id="GQ" countryCode="240" internationalPrefix="00">
8602       <references>
8603         <sourceUrl>http://www.itu.int/oth/T0202000041/en</sourceUrl>
8604       </references>
8605       <availableFormats>
8606         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
8607           <leadingDigits>[235]</leadingDigits>
8608           <format>$1 $2 $3</format>
8609         </numberFormat>
8610         <numberFormat pattern="(\d{3})(\d{6})">
8611           <leadingDigits>[89]</leadingDigits>
8612           <format>$1 $2</format>
8613         </numberFormat>
8614       </availableFormats>
8615       <generalDesc>
8616         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
8617         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8618       </generalDesc>
8619       <fixedLine>
8620         <nationalNumberPattern>
8621           3(?:
8622             3(?:
8623               3\d[7-9]|
8624               [0-24-9]\d[46]
8625             )|
8626             5\d{2}[7-9]
8627           )\d{4}
8628         </nationalNumberPattern>
8629         <exampleNumber>333091234</exampleNumber>
8630       </fixedLine>
8631       <mobile>
8632         <nationalNumberPattern>
8633           (?:
8634             222|
8635             551
8636           )\d{6}
8637         </nationalNumberPattern>
8638         <exampleNumber>222123456</exampleNumber>
8639       </mobile>
8640       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
8641            they start allocating them there will be a differentiation of prefixes, but this is not
8642            clear now. -->
8643       <tollFree>
8644         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
8645         <exampleNumber>800123456</exampleNumber>
8646       </tollFree>
8647       <premiumRate>
8648         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
8649         <exampleNumber>900123456</exampleNumber>
8650       </premiumRate>
8651     </territory>
8652
8653     <!-- Greece -->
8654     <territory id="GR" countryCode="30" internationalPrefix="00" mobileNumberPortableRegion="true">
8655       <references>
8656         <sourceUrl>http://www.itu.int/oth/T0202000055/en</sourceUrl>
8657         <sourceUrl>http://en.wikipedia.org/wiki/%2B30</sourceUrl>
8658       </references>
8659       <availableFormats>
8660         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
8661           <leadingDigits>
8662             21|
8663             7
8664           </leadingDigits>
8665           <format>$1 $2 $3</format>
8666         </numberFormat>
8667         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
8668           <leadingDigits>
8669             2[2-9]1|
8670             [689]
8671           </leadingDigits>
8672           <format>$1 $2 $3</format>
8673         </numberFormat>
8674         <numberFormat pattern="(2\d{3})(\d{6})">
8675           <leadingDigits>2[2-9][02-9]</leadingDigits>
8676           <format>$1 $2</format>
8677         </numberFormat>
8678       </availableFormats>
8679       <generalDesc>
8680         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
8681         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8682       </generalDesc>
8683       <fixedLine>
8684         <nationalNumberPattern>
8685           2(?:
8686             1\d{2}|
8687             2(?:
8688               2[1-46-9]|
8689               3[1-8]|
8690               4[1-7]|
8691               5[1-4]|
8692               6[1-8]|
8693               7[1-5]|
8694               [89][1-9]
8695             )|
8696             3(?:
8697               1\d|
8698               2[1-57]|
8699               [35][1-3]|
8700               4[13]|
8701               7[1-7]|
8702               8[124-6]|
8703               9[1-79]
8704             )|
8705             4(?:
8706               1\d|
8707               2[1-8]|
8708               3[1-4]|
8709               4[13-5]|
8710               6[1-578]|
8711               9[1-5]
8712             )|
8713             5(?:
8714               1\d|
8715               [29][1-4]|
8716               3[1-5]|
8717               4[124]|
8718               5[1-6]
8719             )|
8720             6(?:
8721               1\d|
8722               3[1245]|
8723               4[1-7]|
8724               5[13-9]|
8725               [269][1-6]|
8726               7[14]|
8727               8[1-5]
8728             )|
8729             7(?:
8730               1\d|
8731               2[1-5]|
8732               3[1-6]|
8733               4[1-7]|
8734               5[1-57]|
8735               6[135]|
8736               9[125-7]
8737             )|
8738             8(?:
8739               1\d|
8740               2[1-5]|
8741               [34][1-4]|
8742               9[1-57]
8743             )
8744           )\d{6}
8745         </nationalNumberPattern>
8746         <exampleNumber>2123456789</exampleNumber>
8747       </fixedLine>
8748       <mobile>
8749         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
8750         <exampleNumber>6912345678</exampleNumber>
8751       </mobile>
8752       <tollFree>
8753         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
8754         <exampleNumber>8001234567</exampleNumber>
8755       </tollFree>
8756       <premiumRate>
8757         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
8758         <exampleNumber>9091234567</exampleNumber>
8759       </premiumRate>
8760       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
8761            rate. -->
8762       <sharedCost>
8763         <nationalNumberPattern>
8764           8(?:
8765             0[16]|
8766             12|
8767             25
8768           )\d{7}
8769         </nationalNumberPattern>
8770         <exampleNumber>8011234567</exampleNumber>
8771       </sharedCost>
8772       <personalNumber>
8773         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8774         <exampleNumber>7012345678</exampleNumber>
8775       </personalNumber>
8776     </territory>
8777
8778     <!-- Guatemala -->
8779     <territory id="GT" countryCode="502" internationalPrefix="00">
8780       <references>
8781         <sourceUrl>http://www.itu.int/oth/T020200005A/en</sourceUrl>
8782         <sourceUrl>http://www.sit.gob.gt/index.php?page=plan-de-numeracion</sourceUrl>
8783         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala</sourceUrl>
8784       </references>
8785       <availableFormats>
8786         <numberFormat pattern="(\d{4})(\d{4})">
8787           <leadingDigits>[2-7]</leadingDigits>
8788           <format>$1 $2</format>
8789         </numberFormat>
8790         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
8791           <leadingDigits>1</leadingDigits>
8792           <format>$1 $2 $3</format>
8793         </numberFormat>
8794       </availableFormats>
8795       <generalDesc>
8796         <nationalNumberPattern>
8797           [2-7]\d{7}|
8798           1[89]\d{9}
8799         </nationalNumberPattern>
8800         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
8801       </generalDesc>
8802       <fixedLine>
8803         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
8804         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8805         <exampleNumber>22456789</exampleNumber>
8806       </fixedLine>
8807       <mobile>
8808         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
8809              they are just reserved. -->
8810         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
8811         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8812         <exampleNumber>51234567</exampleNumber>
8813       </mobile>
8814       <tollFree>
8815         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
8816         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8817         <exampleNumber>18001112222</exampleNumber>
8818       </tollFree>
8819       <premiumRate>
8820         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
8821         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8822         <exampleNumber>19001112222</exampleNumber>
8823       </premiumRate>
8824     </territory>
8825
8826     <!-- Guam -->
8827     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
8828                internationalPrefix="011">
8829       <references>
8830         <sourceUrl>http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel</sourceUrl>
8831       </references>
8832       <generalDesc>
8833         <!-- NANPA country - uses US formatting rules -->
8834         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
8835         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8836       </generalDesc>
8837       <fixedLine>
8838         <!-- Added 671 489/555/720/721 based on information from
8839              http://www.area-codes.com/area-code/area-code-671.asp -->
8840         <nationalNumberPattern>
8841           671(?:
8842             3(?:
8843               00|
8844               3[39]|
8845               4[349]|
8846               55|
8847               6[26]
8848             )|
8849             4(?:
8850               56|
8851               7[1-9]|
8852               8[236-9]
8853             )|
8854             5(?:
8855               55|
8856               6[2-5]|
8857               88
8858             )|
8859             6(?:
8860               3[2-578]|
8861               4[24-9]|
8862               5[34]|
8863               78|
8864               8[5-9]
8865             )|
8866             7(?:
8867               [079]7|
8868               2[0167]|
8869               3[45]|
8870               8[789]
8871             )|
8872             8(?:
8873               [2-5789]8|
8874               6[48]
8875             )|
8876             9(?:
8877               2[29]|
8878               6[79]|
8879               7[179]|
8880               8[789]|
8881               9[78]
8882             )
8883           )\d{4}
8884         </nationalNumberPattern>
8885         <exampleNumber>6713001234</exampleNumber>
8886       </fixedLine>
8887       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
8888            -->
8889       <mobile>
8890         <nationalNumberPattern>
8891           671(?:
8892             3(?:
8893               00|
8894               3[39]|
8895               4[349]|
8896               55|
8897               6[26]
8898             )|
8899             4(?:
8900               56|
8901               7[1-9]|
8902               8[236-9]
8903             )|
8904             5(?:
8905               55|
8906               6[2-5]|
8907               88
8908             )|
8909             6(?:
8910               3[2-578]|
8911               4[24-9]|
8912               5[34]|
8913               78|
8914               8[5-9]
8915             )|
8916             7(?:
8917               [079]7|
8918               2[0167]|
8919               3[45]|
8920               8[789]
8921             )|
8922             8(?:
8923               [2-5789]8|
8924               6[48]
8925             )|
8926             9(?:
8927               2[29]|
8928               6[79]|
8929               7[179]|
8930               8[789]|
8931               9[78]
8932             )
8933           )\d{4}
8934         </nationalNumberPattern>
8935         <exampleNumber>6713001234</exampleNumber>
8936       </mobile>
8937       <tollFree>
8938         <nationalNumberPattern>
8939           8(?:
8940             00|
8941             44|
8942             55|
8943             66|
8944             77|
8945             88
8946           )[2-9]\d{6}
8947         </nationalNumberPattern>
8948         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8949         <exampleNumber>8002123456</exampleNumber>
8950       </tollFree>
8951       <premiumRate>
8952         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8953         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8954         <exampleNumber>9002123456</exampleNumber>
8955       </premiumRate>
8956       <personalNumber>
8957         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8958         <nationalNumberPattern>
8959           5(?:
8960             00|
8961             33|
8962             44|
8963             66|
8964             77
8965           )[2-9]\d{6}
8966         </nationalNumberPattern>
8967         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8968         <exampleNumber>5002345678</exampleNumber>
8969       </personalNumber>
8970     </territory>
8971
8972     <!-- Guinea-Bissau -->
8973     <territory id="GW" countryCode="245" internationalPrefix="00">
8974       <references>
8975         <sourceUrl>http://www.itu.int/oth/T020200005C/en</sourceUrl>
8976       </references>
8977       <availableFormats>
8978         <numberFormat pattern="(\d{3})(\d{4})">
8979           <format>$1 $2</format>
8980         </numberFormat>
8981       </availableFormats>
8982       <generalDesc>
8983         <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
8984         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8985       </generalDesc>
8986       <fixedLine>
8987         <nationalNumberPattern>
8988           3(?:
8989             2[0125]|
8990             3[1245]|
8991             4[12]|
8992             5[1-4]|
8993             70|
8994             9[1-467]
8995           )\d{4}
8996         </nationalNumberPattern>
8997         <exampleNumber>3201234</exampleNumber>
8998       </fixedLine>
8999       <mobile>
9000         <nationalNumberPattern>
9001           (?:
9002             [5-7]\d|
9003             9[012]
9004           )\d{5}
9005         </nationalNumberPattern>
9006         <exampleNumber>5012345</exampleNumber>
9007       </mobile>
9008       <voip>
9009         <nationalNumberPattern>40\d{5}</nationalNumberPattern>
9010         <exampleNumber>4012345</exampleNumber>
9011       </voip>
9012     </territory>
9013
9014     <!-- Guyana -->
9015     <territory id="GY" countryCode="592" internationalPrefix="001">
9016       <references>
9017         <sourceUrl>http://www.itu.int/oth/T020200005D/en</sourceUrl>
9018       </references>
9019       <availableFormats>
9020         <numberFormat pattern="(\d{3})(\d{4})">
9021           <format>$1 $2</format>
9022         </numberFormat>
9023       </availableFormats>
9024       <generalDesc>
9025         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
9026         <possibleNumberPattern>\d{7}</possibleNumberPattern>
9027       </generalDesc>
9028       <fixedLine>
9029         <nationalNumberPattern>
9030           (?:
9031             2(?:
9032               1[6-9]|
9033               2[0-35-9]|
9034               3[1-4]|
9035               5[3-9]|
9036               6\d|
9037               7[0-24-79]
9038             )|
9039             3(?:
9040               2[25-9]|
9041               3\d
9042             )|
9043             4(?:
9044               4[0-24]|
9045               5[56]
9046             )|
9047             77[1-57]
9048           )\d{4}
9049         </nationalNumberPattern>
9050         <exampleNumber>2201234</exampleNumber>
9051       </fixedLine>
9052       <mobile>
9053         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
9054              that SMS messages have been succesfully sent to numbers in the entire range prefixed
9055              with 6. -->
9056         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
9057         <exampleNumber>6091234</exampleNumber>
9058       </mobile>
9059       <tollFree>
9060         <nationalNumberPattern>
9061           (?:
9062             289|
9063             862
9064           )\d{4}
9065         </nationalNumberPattern>
9066         <exampleNumber>2891234</exampleNumber>
9067       </tollFree>
9068       <premiumRate>
9069         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
9070         <exampleNumber>9008123</exampleNumber>
9071       </premiumRate>
9072     </territory>
9073
9074     <!-- Hong Kong -->
9075     <territory id="HK" countryCode="852" internationalPrefix="00" mobileNumberPortableRegion="true">
9076       <references>
9077         <sourceUrl>http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html</sourceUrl>
9078       </references>
9079       <availableFormats>
9080         <numberFormat pattern="(\d{4})(\d{4})">
9081           <leadingDigits>
9082             [235-7]|
9083             [89](?:
9084               0[1-9]|
9085               [1-9]
9086             )
9087           </leadingDigits>
9088           <format>$1 $2</format>
9089         </numberFormat>
9090         <numberFormat pattern="(800)(\d{3})(\d{3})">
9091           <leadingDigits>800</leadingDigits>
9092           <format>$1 $2 $3</format>
9093         </numberFormat>
9094         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
9095           <leadingDigits>900</leadingDigits>
9096           <format>$1 $2 $3 $4</format>
9097         </numberFormat>
9098         <numberFormat pattern="(900)(\d{2,5})">
9099           <leadingDigits>900</leadingDigits>
9100           <format>$1 $2</format>
9101         </numberFormat>
9102       </availableFormats>
9103       <generalDesc>
9104         <!-- Slightly more complex pattern to allow the country code to be stripped off if
9105              necessary. -->
9106         <nationalNumberPattern>
9107           [235-7]\d{7}|
9108           8\d{7,8}|
9109           9\d{4,10}
9110         </nationalNumberPattern>
9111         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9112       </generalDesc>
9113       <fixedLine>
9114         <nationalNumberPattern>
9115           (?:
9116             [23]\d|
9117             5[78]
9118           )\d{6}
9119         </nationalNumberPattern>
9120         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9121         <exampleNumber>21234567</exampleNumber>
9122       </fixedLine>
9123       <mobile>
9124         <nationalNumberPattern>
9125           (?:
9126             5[1-69]\d|
9127             6\d{2}|
9128             9(?:
9129               0[1-9]|
9130               [1-8]\d
9131             )
9132           )\d{5}
9133         </nationalNumberPattern>
9134         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9135         <exampleNumber>51234567</exampleNumber>
9136       </mobile>
9137       <pager>
9138         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
9139         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9140         <exampleNumber>71234567</exampleNumber>
9141       </pager>
9142       <tollFree>
9143         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
9144         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9145         <exampleNumber>800123456</exampleNumber>
9146       </tollFree>
9147       <premiumRate>
9148         <nationalNumberPattern>
9149           900(?:
9150             [0-24-9]\d{7}|
9151             3\d{1,4}
9152           )
9153         </nationalNumberPattern>
9154         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9155         <exampleNumber>90012345678</exampleNumber>
9156       </premiumRate>
9157       <personalNumber>
9158         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
9159         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9160         <exampleNumber>81123456</exampleNumber>
9161       </personalNumber>
9162    </territory>
9163
9164     <!-- Honduras -->
9165     <!-- It seems there is no longer a trunk prefix in use, based on websites like
9166          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
9167          national format. -->
9168     <territory id="HN" countryCode="504" internationalPrefix="00" >
9169       <references>
9170         <sourceUrl>http://www.itu.int/oth/T020200005F/en</sourceUrl>
9171       </references>
9172       <availableFormats>
9173        <numberFormat pattern="(\d{4})(\d{4})">
9174          <format>$1-$2</format>
9175        </numberFormat>
9176       </availableFormats>
9177       <generalDesc>
9178         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
9179         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9180       </generalDesc>
9181       <fixedLine>
9182         <!-- Extra prefixes 227[01389], 228X, 2292 & 260X were added from numbers found online. -->
9183         <nationalNumberPattern>
9184           2(?:
9185             2(?:
9186               0[019]|
9187               1[1-36]|
9188               [23]\d|
9189               4[056]|
9190               5[57]|
9191               7[01389]|
9192               8[0146-9]|
9193               9[012]
9194             )|
9195             4(?:
9196               2[3-59]|
9197               3[13-689]|
9198               4[0-68]|
9199               5[1-35]
9200             )|
9201             5(?:
9202               4[3-5]|
9203               5\d|
9204               6[56]|
9205               74
9206             )|
9207             6(?:
9208               [056]\d|
9209               4[0-378]|
9210               [78][0-8]|
9211               9[01]
9212             )|
9213             7(?:
9214               6[46-9]|
9215               7[02-9]|
9216               8[34]
9217             )|
9218             8(?:
9219               79|
9220               8[0-35789]|
9221               9[1-57-9]
9222             )
9223           )\d{4}
9224         </nationalNumberPattern>
9225         <exampleNumber>22123456</exampleNumber>
9226       </fixedLine>
9227       <mobile>
9228         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
9229         <exampleNumber>91234567</exampleNumber>
9230       </mobile>
9231     </territory>
9232
9233     <!-- Croatia -->
9234     <territory id="HR" countryCode="385" internationalPrefix="00"
9235                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
9236                mobileNumberPortableRegion="true">
9237       <references>
9238         <sourceUrl>http://www.itu.int/oth/T0202000032/en</sourceUrl>
9239         <sourceUrl>http://en.wikipedia.org/wiki/%2B385</sourceUrl>
9240       </references>
9241       <availableFormats>
9242         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
9243              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
9244              XXXX as well. -->
9245        <numberFormat pattern="(1)(\d{4})(\d{3})">
9246          <leadingDigits>1</leadingDigits>
9247          <format>$1 $2 $3</format>
9248        </numberFormat>
9249        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
9250          <leadingDigits>6[09]</leadingDigits>
9251          <format>$1 $2 $3</format>
9252        </numberFormat>
9253        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
9254          <leadingDigits>62</leadingDigits>
9255          <format>$1 $2 $3</format>
9256        </numberFormat>
9257        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
9258          <leadingDigits>[2-5]</leadingDigits>
9259           <format>$1 $2 $3</format>
9260         </numberFormat>
9261         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
9262           <leadingDigits>9</leadingDigits>
9263           <format>$1 $2 $3</format>
9264         </numberFormat>
9265         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
9266           <leadingDigits>9</leadingDigits>
9267           <format>$1 $2 $3</format>
9268         </numberFormat>
9269         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
9270           <leadingDigits>9</leadingDigits>
9271           <format>$1 $2 $3 $4</format>
9272         </numberFormat>
9273         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
9274           <leadingDigits>
9275             6[145]|
9276             7
9277           </leadingDigits>
9278           <format>$1 $2 $3</format>
9279         </numberFormat>
9280         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
9281           <leadingDigits>
9282             6[145]|
9283             7
9284           </leadingDigits>
9285           <format>$1 $2 $3</format>
9286         </numberFormat>
9287         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
9288           <leadingDigits>8</leadingDigits>
9289           <format>$1 $2 $3</format>
9290         </numberFormat>
9291         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
9292           <leadingDigits>8</leadingDigits>
9293           <format>$1 $2 $3</format>
9294         </numberFormat>
9295       </availableFormats>
9296       <generalDesc>
9297         <nationalNumberPattern>
9298           [1-7]\d{5,8}|
9299           [89]\d{6,11}
9300         </nationalNumberPattern>
9301         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
9302       </generalDesc>
9303       <fixedLine>
9304         <nationalNumberPattern>
9305           1\d{7}|
9306           (?:
9307             2[0-3]|
9308             3[1-5]|
9309             4[02-47-9]|
9310             5[1-3]
9311           )\d{6}
9312         </nationalNumberPattern>
9313         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
9314         <exampleNumber>12345678</exampleNumber>
9315       </fixedLine>
9316       <uan>
9317         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
9318              are numbers on the internet with 6 or 7 digits after the prefix. -->
9319         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
9320         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
9321         <exampleNumber>62123456</exampleNumber>
9322       </uan>
9323       <mobile>
9324         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
9325         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
9326         <exampleNumber>912345678</exampleNumber>
9327       </mobile>
9328       <tollFree>
9329         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
9330         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9331         <exampleNumber>8001234567</exampleNumber>
9332       </tollFree>
9333       <premiumRate>
9334         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
9335              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
9336              -->
9337         <nationalNumberPattern>
9338           6(?:
9339             [09]\d{7}|
9340             [145]\d{4,7}
9341           )
9342         </nationalNumberPattern>
9343         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9344         <exampleNumber>611234</exampleNumber>
9345       </premiumRate>
9346       <personalNumber>
9347         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
9348         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9349         <exampleNumber>741234567</exampleNumber>
9350       </personalNumber>
9351     </territory>
9352
9353     <!-- Haiti -->
9354     <territory id="HT" countryCode="509" internationalPrefix="00">
9355       <references>
9356         <sourceUrl>http://www.itu.int/oth/T020200005E/en</sourceUrl>
9357         <sourceUrl>http://www.numberingplans.com/</sourceUrl>
9358       </references>
9359       <availableFormats>
9360         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
9361           <format>$1 $2 $3</format>
9362         </numberFormat>
9363       </availableFormats>
9364       <generalDesc>
9365         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9366         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9367       </generalDesc>
9368       <fixedLine>
9369         <!-- The prefix 24 seems to be also used, based on online searches. -->
9370         <nationalNumberPattern>
9371           2(?:
9372             [24]\d|
9373             5[1-5]|
9374             94
9375           )\d{5}
9376         </nationalNumberPattern>
9377         <exampleNumber>22453300</exampleNumber>
9378       </fixedLine>
9379       <mobile>
9380         <!-- The prefix 31 seems to be also used, based on online searches. -->
9381         <nationalNumberPattern>
9382           (?:
9383             3[1-9]|
9384             4\d
9385           )\d{6}
9386         </nationalNumberPattern>
9387         <exampleNumber>34101234</exampleNumber>
9388       </mobile>
9389       <tollFree>
9390         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
9391              without making any further distinction. However, http://www.numberingplans.com/ seems
9392              to suggest they are free. -->
9393         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
9394         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9395         <exampleNumber>80012345</exampleNumber>
9396       </tollFree>
9397       <voip>
9398         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
9399              98[89]\d{5}. -->
9400         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
9401         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9402         <exampleNumber>98901234</exampleNumber>
9403       </voip>
9404     </territory>
9405
9406     <!-- Hungary -->
9407     <territory id="HU" countryCode="36" internationalPrefix="00"
9408                nationalPrefix="06" nationalPrefixFormattingRule="($FG)"
9409                mobileNumberPortableRegion="true">
9410       <references>
9411         <sourceUrl>http://www.itu.int/oth/T0202000061/en</sourceUrl>
9412       </references>
9413       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
9414            by a Hungarian person and following the yellow pages) is to omit this when formatting.
9415            Yellow pages: http://www.aranyoldalak.hu -->
9416       <availableFormats>
9417         <numberFormat pattern="(1)(\d{3})(\d{4})">
9418           <leadingDigits>1</leadingDigits>
9419           <format>$1 $2 $3</format>
9420         </numberFormat>
9421         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9422           <leadingDigits>[2-9]</leadingDigits>
9423           <format>$1 $2 $3</format>
9424         </numberFormat>
9425       </availableFormats>
9426       <generalDesc>
9427         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
9428         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9429       </generalDesc>
9430       <noInternationalDialling>
9431         <nationalNumberPattern>[48]0\d{6}</nationalNumberPattern>
9432         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9433         <exampleNumber>80123456</exampleNumber>
9434       </noInternationalDialling>
9435       <fixedLine>
9436         <!-- Includes numbers for corporate networks. Note the ITU numbering plan contains a M2M
9437              number in the form of 71\d{10}, which doesn't seem to agree with evidence online. We
9438              keep it as 71\d{7} like before. -->
9439         <nationalNumberPattern>
9440           (?:
9441             1\d|
9442             2(?:
9443               1\d|
9444               [2-9]
9445             )|
9446             3(?:
9447               [2-7]|
9448               8\d
9449             )|
9450             4[24-9]|
9451             5[2-79]|
9452             6[23689]|
9453             7(?:
9454               1\d|
9455               [2-9]
9456             )|
9457             8[2-57-9]|
9458             9[2-69]
9459           )\d{6}
9460         </nationalNumberPattern>
9461         <exampleNumber>12345678</exampleNumber>
9462       </fixedLine>
9463       <mobile>
9464         <nationalNumberPattern>
9465           (?:
9466             [257]0|
9467             3[01]
9468           )\d{7}
9469         </nationalNumberPattern>
9470         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9471         <exampleNumber>201234567</exampleNumber>
9472       </mobile>
9473       <tollFree>
9474         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
9475         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9476         <exampleNumber>80123456</exampleNumber>
9477       </tollFree>
9478       <premiumRate>
9479         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
9480         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9481         <exampleNumber>90123456</exampleNumber>
9482       </premiumRate>
9483       <sharedCost>
9484         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
9485         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9486         <exampleNumber>40123456</exampleNumber>
9487       </sharedCost>
9488     </territory>
9489
9490     <!-- Indonesia -->
9491     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
9492                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9493       <references>
9494         <!-- From 2001, very out of date. -->
9495         <sourceUrl>http://www.itu.int/oth/T0202000064/en</sourceUrl>
9496         <sourceUrl>http://en.wikipedia.org/wiki/%2B62</sourceUrl>
9497       </references>
9498       <availableFormats>
9499         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9500           pattern="(\d{2})(\d{5,8})">
9501           <leadingDigits>
9502             2[124]|
9503             [36]1
9504           </leadingDigits>
9505           <format>$1 $2</format>
9506         </numberFormat>
9507         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9508           pattern="(\d{3})(\d{5,8})">
9509           <leadingDigits>
9510             [4579]|
9511             2[035-9]|
9512             [36][02-9]
9513           </leadingDigits>
9514           <format>$1 $2</format>
9515         </numberFormat>
9516         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
9517           <leadingDigits>8[1-35-9]</leadingDigits>
9518           <format>$1-$2-$3</format>
9519         </numberFormat>
9520         <numberFormat pattern="(177)(\d{6,8})">
9521           <leadingDigits>1</leadingDigits>
9522           <format>$1 $2</format>
9523         </numberFormat>
9524         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
9525              that sometimes they are followed by less digits. -->
9526         <numberFormat pattern="(800)(\d{5,7})">
9527           <leadingDigits>800</leadingDigits>
9528           <format>$1 $2</format>
9529         </numberFormat>
9530         <numberFormat pattern="(80\d)(\d)(\d{3})(\d{3})">
9531           <leadingDigits>80[79]</leadingDigits>
9532           <format>$1 $2 $3 $4</format>
9533         </numberFormat>
9534       </availableFormats>
9535       <generalDesc>
9536         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
9537         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9538       </generalDesc>
9539       <fixedLine>
9540         <!-- Area codes taken from wikipedia, with missing ones added from
9541              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
9542              We also added 0770 after user feedback because it seems to be used on Bintan island.
9543              Where known, fixed mobile prefixes have been represented as Mobile. -->
9544         <!-- Very short (5/6 digit) local numbers in Jakarta seem to be special cases for various
9545              well known companies (Mc Donalds, KFC etc...). Some of these are listed in:
9546              http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf
9547              There seem to be numbers of this length for area code 22 as well based on numbers found
9548              online. -->
9549         <nationalNumberPattern>
9550           2(?:
9551             1(?:
9552               14\d{3}|
9553               [0-8]\d{6,7}|
9554               500\d{3}|
9555               9\d{6}
9556             )|
9557             2\d{6,8}|
9558             4\d{7,8}
9559           )|
9560           (?:
9561             2(?:
9562               [35][1-4]|
9563               6[0-8]|
9564               7[1-6]|
9565               8\d|
9566               9[1-8]
9567             )|
9568             3(?:
9569               1|
9570               [25][1-8]|
9571               3[1-68]|
9572               4[1-3]|
9573               6[1-3568]|
9574               7[0-469]|
9575               8\d
9576             )|
9577             4(?:
9578               0[1-589]|
9579               1[01347-9]|
9580               2[0-36-8]|
9581               3[0-24-68]|
9582               43|
9583               5[1-378]|
9584               6[1-5]|
9585               7[134]|
9586               8[1245]
9587             )|
9588             5(?:
9589               1[1-35-9]|
9590               2[25-8]|
9591               3[124-9]|
9592               4[1-3589]|
9593               5[1-46]|
9594               6[1-8]
9595             )|
9596             6(?:
9597               19?|
9598               [25]\d|
9599               3[1-69]|
9600               4[1-6]
9601             )|
9602             7(?:
9603               02|
9604               [125][1-9]|
9605               [36]\d|
9606               4[1-8]|
9607               7[0-36-9]
9608             )|
9609             9(?:
9610               0[12]|
9611               1[013-8]|
9612               2[0-479]|
9613               5[125-8]|
9614               6[23679]|
9615               7[159]|
9616               8[01346]
9617             )
9618           )\d{5,8}
9619         </nationalNumberPattern>
9620         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9621         <exampleNumber>612345678</exampleNumber>
9622       </fixedLine>
9623       <mobile>
9624         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
9625              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
9626              are captured below. The pattern covers the area code plus the first one-two digits of
9627              the subscriber number. -->
9628         <nationalNumberPattern>
9629           (?:
9630             2(?:
9631               1(?:
9632                 3[145]|
9633                 4[01]|
9634                 5[1-469]|
9635                 60|
9636                 8[0359]|
9637                 9\d
9638               )|
9639               2(?:
9640                 88|
9641                 9[1256]
9642               )|
9643               3[1-4]9|
9644               4(?:
9645                 36|
9646                 91
9647               )|
9648               5(?:
9649                 1[349]|
9650                 [2-4]9
9651               )|
9652               6[0-7]9|
9653               7(?:
9654                 [1-36]9|
9655                 4[39]
9656               )|
9657               8[1-5]9|
9658               9[1-48]9
9659             )|
9660             3(?:
9661               19[1-3]|
9662               2[12]9|
9663               3[13]9|
9664               4(?:
9665                 1[69]|
9666                 39
9667               )|
9668               5[14]9|
9669               6(?:
9670                 1[69]|
9671                 2[89]
9672               )|
9673               709
9674             )|
9675             4[13]19|
9676             5(?:
9677               1(?:
9678                 19|
9679                 8[39]
9680               )|
9681               4[129]9|
9682               6[12]9
9683             )|
9684             6(?:
9685               19[12]|
9686               2(?:
9687                 [23]9|
9688                 77
9689               )
9690             )|
9691             7(?:
9692               1[13]9|
9693               2[15]9|
9694               419|
9695               5(?:
9696                 1[89]|
9697                 29
9698               )|
9699               6[15]9|
9700               7[178]9
9701             )
9702           )\d{5,6}|
9703           8[1-35-9]\d{7,9}
9704         </nationalNumberPattern>
9705         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
9706         <exampleNumber>812345678</exampleNumber>
9707       </mobile>
9708       <tollFree>
9709         <nationalNumberPattern>
9710           177\d{6,8}|
9711           800\d{5,7}
9712         </nationalNumberPattern>
9713         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
9714         <exampleNumber>8001234567</exampleNumber>
9715       </tollFree>
9716       <uan>
9717         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9718         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9719         <exampleNumber>8071123456</exampleNumber>
9720       </uan>
9721       <noInternationalDialling>
9722         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9723         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9724         <exampleNumber>8071123456</exampleNumber>
9725       </noInternationalDialling>
9726       <!-- The information below is provided by an Indonesian -->
9727       <premiumRate>
9728         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
9729         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9730         <exampleNumber>8091234567</exampleNumber>
9731       </premiumRate>
9732     </territory>
9733
9734     <!-- Ireland -->
9735     <territory id="IE" countryCode="353" internationalPrefix="00"
9736                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
9737                mobileNumberPortableRegion="true">
9738       <references>
9739         <sourceUrl>http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html</sourceUrl>
9740         <sourceUrl>http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf</sourceUrl>
9741       </references>
9742       <availableFormats>
9743         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
9744           <leadingDigits>1</leadingDigits>
9745           <format>$1 $2 $3</format>
9746         </numberFormat>
9747         <numberFormat pattern="(\d{2})(\d{5})">
9748           <leadingDigits>
9749             2[24-9]|
9750             47|
9751             58|
9752             6[237-9]|
9753             9[35-9]
9754           </leadingDigits>
9755           <format>$1 $2</format>
9756         </numberFormat>
9757         <numberFormat pattern="(\d{3})(\d{5})">
9758           <leadingDigits>
9759             40[24]|
9760             50[45]
9761           </leadingDigits>
9762           <format>$1 $2</format>
9763         </numberFormat>
9764         <numberFormat pattern="(48)(\d{4})(\d{4})">
9765           <leadingDigits>48</leadingDigits>
9766           <format>$1 $2 $3</format>
9767         </numberFormat>
9768         <numberFormat pattern="(818)(\d{3})(\d{3})">
9769           <leadingDigits>81</leadingDigits>
9770           <format>$1 $2 $3</format>
9771         </numberFormat>
9772         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9773           <leadingDigits>
9774             [24-69]|
9775             7[14]
9776           </leadingDigits>
9777           <format>$1 $2 $3</format>
9778         </numberFormat>
9779         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9780           pattern="([78]\d)(\d{3,4})(\d{4})">
9781           <leadingDigits>
9782             76|
9783             8[35-9]
9784           </leadingDigits>
9785           <format>$1 $2 $3</format>
9786         </numberFormat>
9787         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9788           pattern="(700)(\d{3})(\d{3})">
9789           <leadingDigits>70</leadingDigits>
9790           <format>$1 $2 $3</format>
9791         </numberFormat>
9792         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
9793           <leadingDigits>
9794             1(?:
9795               8[059]|
9796               5
9797             )
9798           </leadingDigits>
9799           <leadingDigits>
9800             1(?:
9801               8[059]0|
9802               5
9803             )
9804           </leadingDigits>
9805           <format>$1 $2 $3</format>
9806         </numberFormat>
9807       </availableFormats>
9808       <generalDesc>
9809         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
9810         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9811       </generalDesc>
9812       <noInternationalDialling>
9813         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9814         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9815         <exampleNumber>1850123456</exampleNumber>
9816       </noInternationalDialling>
9817       <fixedLine>
9818         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
9819              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
9820              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
9821              Ireland. We support these numbers here, although technically they are numbers for the
9822              UK. -->
9823         <nationalNumberPattern>
9824           1\d{7,8}|
9825           2(?:
9826             1\d{6,7}|
9827             3\d{7}|
9828             [24-9]\d{5}
9829           )|
9830           4(?:
9831             0[24]\d{5}|
9832             [1-469]\d{7}|
9833             5\d{6}|
9834             7\d{5}|
9835             8[0-46-9]\d{7}
9836           )|
9837           5(?:
9838             0[45]\d{5}|
9839             1\d{6}|
9840             [23679]\d{7}|
9841             8\d{5}
9842           )|
9843           6(?:
9844             1\d{6}|
9845             [237-9]\d{5}|
9846             [4-6]\d{7}
9847           )|
9848           7[14]\d{7}|
9849           9(?:
9850             1\d{6}|
9851             [04]\d{7}|
9852             [35-9]\d{5}
9853           )
9854         </nationalNumberPattern>
9855         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9856         <exampleNumber>2212345</exampleNumber>
9857       </fixedLine>
9858       <mobile>
9859         <nationalNumberPattern>
9860           8(?:
9861             22\d{6}|
9862             [35-9]\d{7}
9863           )
9864         </nationalNumberPattern>
9865         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9866         <exampleNumber>850123456</exampleNumber>
9867       </mobile>
9868       <tollFree>
9869         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
9870         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9871         <exampleNumber>1800123456</exampleNumber>
9872       </tollFree>
9873       <premiumRate>
9874         <nationalNumberPattern>
9875           15(?:
9876             1[2-8]|
9877             [2-8]0|
9878             9[089]
9879           )\d{6}
9880         </nationalNumberPattern>
9881         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9882         <exampleNumber>1520123456</exampleNumber>
9883       </premiumRate>
9884       <sharedCost>
9885         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9886         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9887         <exampleNumber>1850123456</exampleNumber>
9888       </sharedCost>
9889       <personalNumber>
9890         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
9891         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9892         <exampleNumber>700123456</exampleNumber>
9893       </personalNumber>
9894       <voip>
9895         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
9896         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9897         <exampleNumber>761234567</exampleNumber>
9898       </voip>
9899       <uan>
9900         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
9901         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9902         <exampleNumber>818123456</exampleNumber>
9903       </uan>
9904       <voicemail>
9905         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
9906         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9907         <exampleNumber>8501234567</exampleNumber>
9908       </voicemail>
9909     </territory>
9910
9911     <!-- Israel -->
9912     <!-- Formatting practice following wikipedia, and government sites. -->
9913     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
9914                nationalPrefix="0" nationalPrefixFormattingRule="$FG"
9915                mobileNumberPortableRegion="true">
9916       <references>
9917         <sourceUrl>http://www.itu.int/oth/T020200006A/en</sourceUrl>
9918         <sourceUrl>http://en.wikipedia.org/wiki/%2B972</sourceUrl>
9919         <!-- in Hebrew -->
9920         <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>
9921       </references>
9922       <availableFormats>
9923         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9924           pattern="([2-489])(\d{3})(\d{4})">
9925           <leadingDigits>[2-489]</leadingDigits>
9926           <format>$1-$2-$3</format>
9927         </numberFormat>
9928         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9929           pattern="([57]\d)(\d{3})(\d{4})">
9930           <leadingDigits>[57]</leadingDigits>
9931           <format>$1-$2-$3</format>
9932         </numberFormat>
9933         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
9934           <leadingDigits>1[7-9]</leadingDigits>
9935           <format>$1-$2-$3-$4</format>
9936         </numberFormat>
9937         <!-- The following number is for hospitals. -->
9938         <numberFormat pattern="(1255)(\d{3})">
9939           <leadingDigits>125</leadingDigits>
9940           <format>$1-$2</format>
9941         </numberFormat>
9942         <numberFormat pattern="(1200)(\d{3})(\d{3})">
9943           <leadingDigits>120</leadingDigits>
9944           <format>$1-$2-$3</format>
9945         </numberFormat>
9946         <numberFormat pattern="(1212)(\d{2})(\d{2})">
9947           <leadingDigits>121</leadingDigits>
9948           <format>$1-$2-$3</format>
9949         </numberFormat>
9950         <!-- The following is for voicemail access. -->
9951         <numberFormat pattern="(1599)(\d{6})">
9952           <leadingDigits>15</leadingDigits>
9953           <format>$1-$2</format>
9954         </numberFormat>
9955         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
9956              dialed with a star in front of the number. -->
9957         <numberFormat pattern="(\d{4})">
9958           <leadingDigits>[2-689]</leadingDigits>
9959           <format>*$1</format>
9960         </numberFormat>
9961       </availableFormats>
9962       <generalDesc >
9963         <nationalNumberPattern>
9964           [17]\d{6,9}|
9965           [2-589]\d{3}(?:\d{3,6})?|
9966           6\d{3}
9967         </nationalNumberPattern>
9968         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9969       </generalDesc>
9970       <noInternationalDialling>
9971         <nationalNumberPattern>
9972           1700\d{6}|
9973           [2-689]\d{3}
9974         </nationalNumberPattern>
9975         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9976         <exampleNumber>1700123456</exampleNumber>
9977       </noInternationalDialling>
9978       <fixedLine>
9979         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9980         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
9981         <exampleNumber>21234567</exampleNumber>
9982       </fixedLine>
9983       <mobile>
9984         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
9985              sure wikipedia is accurate based on news coverage of the launch of these numbers. Also
9986              added 5570 and 5571 prefixes based on confirmation from the carrier. -->
9987         <nationalNumberPattern>
9988           5(?:
9989             [02347-9]\d{2}|
9990             5(?:
9991               01|
9992               2[23]|
9993               3[34]|
9994               4[45]|
9995               5[5689]|
9996               6[67]|
9997               7[0178]|
9998               [89][7-9]
9999             )|
10000             6[2-9]\d
10001           )\d{5}
10002         </nationalNumberPattern>
10003         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10004         <exampleNumber>501234567</exampleNumber>
10005       </mobile>
10006       <tollFree>
10007         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
10008         <nationalNumberPattern>
10009           1(?:
10010             80[019]\d{3}|
10011             255
10012           )\d{3}
10013         </nationalNumberPattern>
10014         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
10015         <exampleNumber>1800123456</exampleNumber>
10016       </tollFree>
10017       <premiumRate>
10018           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
10019                However, no online numbers starting with these prefixes can be found, and this data
10020                is not found in any other source. -->
10021           <!-- 1200 and 1212 numbers are for televoting. -->
10022         <nationalNumberPattern>
10023           1(?:
10024             212|
10025             (?:
10026               9(?:
10027                 0[01]|
10028                 19
10029               )|
10030               200
10031             )\d{2}
10032           )\d{4}
10033         </nationalNumberPattern>
10034         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
10035         <exampleNumber>1919123456</exampleNumber>
10036       </premiumRate>
10037       <sharedCost>
10038         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
10039         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10040         <exampleNumber>1700123456</exampleNumber>
10041       </sharedCost>
10042       <voip>
10043         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
10044              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
10045              Dialing) numbers, that most people forward to VoIP numbers. -->
10046         <nationalNumberPattern>
10047           7(?:
10048             2[23]\d|
10049             3[237]\d|
10050             47\d|
10051             6(?:
10052               5\d|
10053               8[068]
10054             )|
10055             7\d{2}|
10056             8(?:
10057               33|
10058               55|
10059               77|
10060               81
10061             )
10062           )\d{5}
10063         </nationalNumberPattern>
10064         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10065         <exampleNumber>771234567</exampleNumber>
10066       </voip>
10067       <uan>
10068         <!-- 4-digit star numbers and 1-599 numbers. The latter are actually labelled "interactive
10069              voicemail" in the ITU document, but according to reports from businesses in Israel and
10070              the Hebrew version of the wikipedia page, these are actually a router for business
10071              calls, and incur a normal call cost on account of the caller. -->
10072         <nationalNumberPattern>
10073           [2-689]\d{3}|
10074           1599\d{6}
10075         </nationalNumberPattern>
10076         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
10077         <exampleNumber>1599123456</exampleNumber>
10078       </uan>
10079     </territory>
10080
10081     <!-- Isle of Man -->
10082     <!-- Inherits formatting rules from the UK. -->
10083     <territory id="IM" countryCode="44" internationalPrefix="00"
10084                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
10085       <references>
10086         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
10087       </references>
10088       <generalDesc>
10089         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
10090         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10091       </generalDesc>
10092       <areaCodeOptional>
10093         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
10094         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10095         <exampleNumber>1624250123</exampleNumber>
10096       </areaCodeOptional>
10097       <!-- Specific to IM. -->
10098       <fixedLine>
10099         <!-- 1624 with 10 digits. -->
10100         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
10101         <exampleNumber>1624456789</exampleNumber>
10102       </fixedLine>
10103       <mobile>
10104         <!-- 7524, 7624, 7924 with 10 digits. -->
10105         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
10106         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10107         <exampleNumber>7924123456</exampleNumber>
10108       </mobile>
10109       <tollFree>
10110         <!-- 808 162 with 10 digits. -->
10111         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
10112         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10113         <exampleNumber>8081624567</exampleNumber>
10114       </tollFree>
10115       <premiumRate>
10116         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
10117         <nationalNumberPattern>
10118           (?:
10119             872299|
10120             90[0167]624
10121           )\d{4}
10122         </nationalNumberPattern>
10123         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10124         <exampleNumber>9016247890</exampleNumber>
10125       </premiumRate>
10126       <sharedCost>
10127         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
10128         <nationalNumberPattern>
10129           8(?:
10130             4(?:
10131               40[49]06|
10132               5624\d
10133             )|
10134             70624\d
10135           )\d{3}
10136         </nationalNumberPattern>
10137         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10138         <exampleNumber>8456247890</exampleNumber>
10139       </sharedCost>
10140       <!-- Other numbers as per GB. -->
10141       <personalNumber>
10142         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
10143         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10144         <exampleNumber>7012345678</exampleNumber>
10145       </personalNumber>
10146       <voip>
10147         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
10148         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10149         <exampleNumber>5612345678</exampleNumber>
10150       </voip>
10151       <uan>
10152         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
10153         <nationalNumberPattern>
10154           3(?:
10155             08162\d|
10156             3\d{5}|
10157             4(?:
10158               40[49]06|
10159               5624\d
10160             )|
10161             7(?:
10162               0624\d|
10163               2299\d
10164             )
10165           )\d{3}|
10166           55\d{8}
10167         </nationalNumberPattern>
10168         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10169         <exampleNumber>5512345678</exampleNumber>
10170       </uan>
10171     </territory>
10172
10173     <!-- India -->
10174     <!-- Note that several changes in area codes have occurred since the numbering plan was released
10175          - fixed line changes are notified on the http://www.bsnl.co.in website. Area codes can be
10176          verified here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
10177     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
10178                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true"
10179                mobileNumberPortableRegion="true">
10180       <references>
10181         <sourceUrl>http://www.itu.int/oth/T0202000063/en</sourceUrl>
10182         <sourceUrl>http://en.wikipedia.org/wiki/%2B91</sourceUrl>
10183         <sourceUrl>http://www.coai.in/msccodes.php</sourceUrl>
10184       </references>
10185        <availableFormats>
10186          <!-- Mobile numbers. -->
10187          <numberFormat pattern="(\d{5})(\d{5})">
10188            <leadingDigits>
10189              7(?:
10190                0[2-9]|
10191                2[0579]|
10192                3[057-9]|
10193                4[0-389]|
10194                6[0-35-9]|
10195                [57]|
10196                8[0-79]
10197              )|
10198              8(?:
10199                0[015689]|
10200                1[0-57-9]|
10201                2[2356-9]|
10202                3[0-57-9]|
10203                [45]|
10204                6[02457-9]|
10205                7[1-69]|
10206                8[0124-9]|
10207                9[02-9]
10208              )|
10209              9
10210            </leadingDigits>
10211            <leadingDigits>
10212              7(?:
10213                0(?:
10214                  2[2-9]|
10215                  [3-8]|
10216                  9[0-8]
10217                )|
10218                2(?:
10219                  0[04-9]|
10220                  5[09]|
10221                  7[5-8]|
10222                  9[389]
10223                )|
10224                3(?:
10225                  0[1-9]|
10226                  [58]|
10227                  7[3679]|
10228                  9[689]
10229                )|
10230                4(?:
10231                  0[1-9]|
10232                  1[15-9]|
10233                  [29][89]|
10234                  39|
10235                  8[389]
10236                )|
10237                5(?:
10238                  [034678]|
10239                  2[03-9]|
10240                  5[017-9]|
10241                  9[7-9]
10242                )|
10243                6(?:
10244                  0[0-27]|
10245                  1[0-257-9]|
10246                  2[0-4]|
10247                  3[19]|
10248                  5[4589]|
10249                  [6-9]
10250                )|
10251                7(?:
10252                  0[2-9]|
10253                  [1-79]|
10254                  8[1-9]
10255                )|
10256                8(?:
10257                  [0-7]|
10258                  9[013-9]
10259                )
10260              )|
10261              8(?:
10262                0(?:
10263                  [01589]|
10264                  6[67]
10265                )|
10266                1(?:
10267                  [02-589]|
10268                  1[0135-9]|
10269                  7[0-79]
10270                )|
10271                2(?:
10272                  [236-9]|
10273                  5[1-9]
10274                )|
10275                3(?:
10276                  [0357-9]|
10277                  4[1-9]
10278                )|
10279                [45]|
10280                6[02457-9]|
10281                7[1-69]|
10282                8(?:
10283                  [0-26-9]|
10284                  44|
10285                  5[2-9]
10286                )|
10287                9(?:
10288                  [035-9]|
10289                  2[2-9]|
10290                  4[0-8]
10291                )
10292              )|
10293              9
10294            </leadingDigits>
10295            <format>$1 $2</format>
10296          </numberFormat>
10297          <!-- 2 digits area code -->
10298          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10299            <leadingDigits>
10300              11|
10301              2[02]|
10302              33|
10303              4[04]|
10304              79|
10305              80[2-46]
10306            </leadingDigits>
10307            <format>$1 $2 $3</format>
10308          </numberFormat>
10309          <!-- 3 digit area codes that don't clash with mobile patterns. -->
10310          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10311            <leadingDigits>
10312              1(?:
10313                2[0-249]|
10314                3[0-25]|
10315                4[145]|
10316                [569][14]|
10317                7[1257]|
10318                8[1346]|
10319                [68][1-9]
10320              )|
10321              2(?:
10322                1[257]|
10323                3[013]|
10324                4[01]|
10325                5[0137]|
10326                6[0158]|
10327                78|
10328                8[1568]|
10329                9[14]
10330              )|
10331              3(?:
10332                26|
10333                4[1-3]|
10334                5[34]|
10335                6[01489]|
10336                7[02-46]|
10337                8[159]
10338              )|
10339              4(?:
10340                1[36]|
10341                2[1-47]|
10342                3[15]|
10343                5[12]|
10344                6[0-26-9]|
10345                7[0-24-9]|
10346                8[013-57]|
10347                9[014-7]
10348              )|
10349              5(?:
10350                [136][25]|
10351                22|
10352                4[28]|
10353                5[12]|
10354                [78]1|
10355                9[15]
10356              )|
10357              6(?:
10358                12|
10359                [2345]1|
10360                57|
10361                6[13]|
10362                7[14]|
10363                80
10364              )
10365            </leadingDigits>
10366            <format>$1 $2 $3</format>
10367          </numberFormat>
10368          <!-- Three-digit area codes that potentially overlap with mobile. -->
10369          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10370            <leadingDigits>
10371              7(?:
10372                12|
10373                2[14]|
10374                3[134]|
10375                4[47]|
10376                5[15]|
10377                [67]1|
10378                88
10379              )
10380            </leadingDigits>
10381            <leadingDigits>
10382              7(?:
10383                12|
10384                2[14]|
10385                3[134]|
10386                4[47]|
10387                5(?:
10388                  1|
10389                  5[2-6]
10390                )|
10391                [67]1|
10392                88
10393              )
10394            </leadingDigits>
10395            <format>$1 $2 $3</format>
10396          </numberFormat>
10397          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10398            <leadingDigits>
10399              8(?:
10400                16|
10401                2[014]|
10402                3[126]|
10403                6[136]|
10404                7[078]|
10405                8[34]|
10406                91
10407              )
10408            </leadingDigits>
10409            <format>$1 $2 $3</format>
10410          </numberFormat>
10411          <!-- 4 digits area code -->
10412          <!-- Fallback for fixed-line numbers. -->
10413          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
10414            <leadingDigits>
10415              1(?:
10416                [23579]|
10417                [468][1-9]
10418              )|
10419              [2-8]
10420            </leadingDigits>
10421            <format>$1 $2 $3</format>
10422          </numberFormat>
10423          <numberFormat nationalPrefixFormattingRule="$FG"
10424            pattern="(1600)(\d{2})(\d{4})">
10425            <leadingDigits>160</leadingDigits>
10426            <leadingDigits>1600</leadingDigits>
10427            <format>$1 $2 $3</format>
10428          </numberFormat>
10429          <numberFormat nationalPrefixFormattingRule="$FG"
10430            pattern="(1800)(\d{4,5})">
10431            <leadingDigits>180</leadingDigits>
10432            <leadingDigits>1800</leadingDigits>
10433            <format>$1 $2</format>
10434          </numberFormat>
10435          <numberFormat nationalPrefixFormattingRule="$FG"
10436            pattern="(18[06]0)(\d{2,4})(\d{4})">
10437            <leadingDigits>18[06]</leadingDigits>
10438            <leadingDigits>18[06]0</leadingDigits>
10439            <format>$1 $2 $3</format>
10440          </numberFormat>
10441          <numberFormat nationalPrefixFormattingRule="$FG"
10442            pattern="(140)(\d{3})(\d{4})">
10443            <leadingDigits>140</leadingDigits>
10444            <format>$1 $2 $3</format>
10445          </numberFormat>
10446          <!-- Televoting numbers. Formatting information is from
10447               http://www.bsnl.co.in/service/telev.htm -->
10448          <numberFormat nationalPrefixFormattingRule="$FG"
10449            pattern="(\d{4})(\d{3})(\d{3})(\d{3})">
10450            <leadingDigits>18[06]</leadingDigits>
10451            <leadingDigits>
10452              18(?:
10453                0[03]|
10454                6[12]
10455              )
10456            </leadingDigits>
10457            <format>$1 $2 $3 $4</format>
10458          </numberFormat>
10459       </availableFormats>
10460       <generalDesc>
10461         <nationalNumberPattern>
10462           1\d{7,12}|
10463           [2-9]\d{9,10}
10464         </nationalNumberPattern>
10465         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
10466       </generalDesc>
10467       <noInternationalDialling>
10468         <nationalNumberPattern>
10469           1(?:
10470             600\d{6}|
10471             8(?:
10472               0(?:
10473                 0\d{4,9}|
10474                 3\d{9}
10475               )|
10476               6(?:
10477                 0\d{7}|
10478                 [12]\d{9}
10479               )
10480             )
10481           )
10482         </nationalNumberPattern>
10483         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10484         <exampleNumber>1800123456</exampleNumber>
10485       </noInternationalDialling>
10486       <fixedLine>
10487         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
10488              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
10489              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
10490              Not all operator codes are available in all areas, but we don't maintain that
10491              distinction here.
10492              Area codes starting with a 7 are listed separately, since the prefixes need to be more
10493              detailed so they clash less with mobile phone prefixes. -->
10494         <nationalNumberPattern>
10495           (?:
10496             11|
10497             2[02]|
10498             33|
10499             4[04]|
10500             79
10501           )[2-7]\d{7}|
10502           80[2-467]\d{7}|
10503           (?:
10504             1(?:
10505               2[0-249]|
10506               3[0-25]|
10507               4[145]|
10508               [59][14]|
10509               6[014]|
10510               7[1257]|
10511               8[01346]
10512             )|
10513             2(?:
10514               1[257]|
10515               3[013]|
10516               4[01]|
10517               5[0137]|
10518               6[0158]|
10519               78|
10520               8[1568]|
10521               9[14]
10522             )|
10523             3(?:
10524               26|
10525               4[1-3]|
10526               5[34]|
10527               6[01489]|
10528               7[02-46]|
10529               8[159]
10530             )|
10531             4(?:
10532               1[36]|
10533               2[1-47]|
10534               3[15]|
10535               5[12]|
10536               6[0-26-9]|
10537               7[0-24-9]|
10538               8[013-57]|
10539               9[014-7]
10540             )|
10541             5(?:
10542               [136][25]|
10543               22|
10544               4[28]|
10545               5[12]|
10546               [78]1|
10547               9[15]
10548             )|
10549             6(?:
10550               12|
10551               [2345]1|
10552               57|
10553               6[13]|
10554               7[14]|
10555               80
10556             )|
10557             7(?:
10558               12|
10559               2[14]|
10560               3[134]|
10561               4[47]|
10562               5[15]|
10563               [67]1|
10564               88
10565             )|
10566             8(?:
10567               16|
10568               2[014]|
10569               3[126]|
10570               6[136]|
10571               7[078]|
10572               8[34]|
10573               91
10574             )
10575           )[2-7]\d{6}|
10576           (?:
10577             (?:
10578               1(?:
10579                 2[35-8]|
10580                 3[346-9]|
10581                 4[236-9]|
10582                 [59][0235-9]|
10583                 6[235-9]|
10584                 7[34689]|
10585                 8[257-9]
10586               )|
10587               2(?:
10588                 1[134689]|
10589                 3[24-8]|
10590                 4[2-8]|
10591                 5[25689]|
10592                 6[2-4679]|
10593                 7[13-79]|
10594                 8[2-479]|
10595                 9[235-9]
10596               )|
10597               3(?:
10598                 01|
10599                 1[79]|
10600                 2[1-5]|
10601                 4[25-8]|
10602                 5[125689]|
10603                 6[235-7]|
10604                 7[157-9]|
10605                 8[2-467]
10606               )|
10607               4(?:
10608                 1[14578]|
10609                 2[5689]|
10610                 3[2-467]|
10611                 5[4-7]|
10612                 6[35]|
10613                 73|
10614                 8[2689]|
10615                 9[2389]
10616               )|
10617               5(?:
10618                 [16][146-9]|
10619                 2[14-8]|
10620                 3[1346]|
10621                 4[14-69]|
10622                 5[46]|
10623                 7[2-4]|
10624                 8[2-8]|
10625                 9[246]
10626               )|
10627               6(?:
10628                 1[1358]|
10629                 2[2457]|
10630                 3[2-4]|
10631                 4[235-7]|
10632                 [57][2-689]|
10633                 6[24-578]|
10634                 8[1-6]
10635               )|
10636               8(?:
10637                 1[1357-9]|
10638                 2[235-8]|
10639                 3[03-57-9]|
10640                 4[0-24-9]|
10641                 5\d|
10642                 6[2457-9]|
10643                 7[1-6]|
10644                 8[1256]|
10645                 9[2-4]
10646               )
10647             )\d|
10648             7(?:
10649               (?:
10650                 1[013-9]|
10651                 2[0235-9]|
10652                 3[2679]|
10653                 4[1-35689]|
10654                 5[2-46-9]|
10655                 [67][02-9]|
10656                 9\d
10657               )\d|
10658               8(?:
10659                 2[0-6]|
10660                 [013-8]\d
10661               )
10662             )
10663           )[2-7]\d{5}
10664         </nationalNumberPattern>
10665         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10666         <exampleNumber>1123456789</exampleNumber>
10667       </fixedLine>
10668       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
10669       <!-- The document titled "List of MSC codes" linked off
10670            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
10671            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
10672       <mobile>
10673         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10674              codes list, are added because SMS messages have been successfully sent to these
10675              numbers. It seems almost impossible to know for some of these numbers whether they are
10676              land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[567],
10677              7695, 8299, 8309. New prefixes were also added based on the document provided from
10678              mobile carriers: https://github.com/googlei18n/libphonenumber/issues/260 -->
10679         <nationalNumberPattern>
10680           (?:
10681             7(?:
10682               0(?:
10683                 2[2-9]|
10684                 [3-8]\d|
10685                 9[0-8]
10686               )|
10687               2(?:
10688                 0[04-9]|
10689                 5[09]|
10690                 7[5-8]|
10691                 9[389]
10692               )|
10693               3(?:
10694                 0[1-9]|
10695                 [58]\d|
10696                 7[3679]|
10697                 9[689]
10698               )|
10699               4(?:
10700                 0[1-9]|
10701                 1[15-9]|
10702                 [29][89]|
10703                 39|
10704                 8[389]
10705               )|
10706               5(?:
10707                 [034678]\d|
10708                 2[03-9]|
10709                 5[017-9]|
10710                 9[7-9]
10711               )|
10712               6(?:
10713                 0[0127]|
10714                 1[0-257-9]|
10715                 2[0-4]|
10716                 3[19]|
10717                 5[4589]|
10718                 [6-9]\d
10719               )|
10720               7(?:
10721                 0[2-9]|
10722                 [1-79]\d|
10723                 8[1-9]
10724               )|
10725               8(?:
10726                 [0-7]\d|
10727                 9[013-9]
10728               )
10729             )|
10730             8(?:
10731               0(?:
10732                 [01589]\d|
10733                 6[67]
10734               )|
10735               1(?:
10736                 [02-589]\d|
10737                 1[0135-9]|
10738                 7[0-79]
10739               )|
10740               2(?:
10741                 [236-9]\d|
10742                 5[1-9]
10743               )|
10744               3(?:
10745                 [0357-9]\d|
10746                 4[1-9]
10747               )|
10748               [45]\d{2}|
10749               6[02457-9]\d|
10750               7[1-69]\d|
10751               8(?:
10752                 [0-26-9]\d|
10753                 44|
10754                 5[2-9]
10755               )|
10756               9(?:
10757                 [035-9]\d|
10758                 2[2-9]|
10759                 4[0-8]
10760               )
10761             )|
10762             9\d{3}
10763           )\d{6}
10764         </nationalNumberPattern>
10765         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10766         <exampleNumber>9123456789</exampleNumber>
10767       </mobile>
10768       <tollFree>
10769         <!-- Information gathered from sites such as
10770              http://www.surfindia.com/india-facts/toll-free-no.html and
10771              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
10772              http://www.bsnl.co.in/service/telev.htm -->
10773         <nationalNumberPattern>
10774           1(?:
10775             600\d{6}|
10776             80(?:
10777               0\d{4,9}|
10778               3\d{9}
10779             )
10780           )
10781         </nationalNumberPattern>
10782         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10783         <exampleNumber>1800123456</exampleNumber>
10784       </tollFree>
10785       <premiumRate>
10786         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
10787              because they overlap with mobile, and we haven't found any real numbers online. -->
10788         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
10789         <possibleNumberPattern>\d{13}</possibleNumberPattern>
10790         <exampleNumber>1861123456789</exampleNumber>
10791       </premiumRate>
10792       <sharedCost>
10793         <!-- While described as "universal numbers" in the numbering plan, evidence suggests
10794              that 1860 number are best described as shared cost. See "Call Local Service" in:
10795              http://www.tatadocomo.com/corporates/toll-free.aspx -->
10796         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
10797         <possibleNumberPattern>\d{11}</possibleNumberPattern>
10798         <exampleNumber>18603451234</exampleNumber>
10799       </sharedCost>
10800       <uan>
10801         <!-- Telemarketing numbers: http://en.wikipedia.org/wiki/Telephone_numbers_in_India -->
10802         <nationalNumberPattern>140\d{7}</nationalNumberPattern>
10803         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10804         <exampleNumber>1409305260</exampleNumber>
10805       </uan>
10806     </territory>
10807
10808     <!-- British Indian Ocean Territory / Diego Garcia -->
10809     <territory id="IO" countryCode="246" internationalPrefix="00">
10810       <references>
10811         <sourceUrl>http://www.itu.int/oth/T0202000039/en</sourceUrl>
10812       </references>
10813       <availableFormats>
10814         <numberFormat pattern="(\d{3})(\d{4})">
10815           <format>$1 $2</format>
10816         </numberFormat>
10817       </availableFormats>
10818       <generalDesc>
10819         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
10820         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10821       </generalDesc>
10822       <fixedLine>
10823         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
10824         <exampleNumber>3709100</exampleNumber>
10825       </fixedLine>
10826       <mobile>
10827         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
10828         <exampleNumber>3801234</exampleNumber>
10829       </mobile>
10830     </territory>
10831
10832     <!-- Iraq -->
10833     <territory id="IQ" countryCode="964" internationalPrefix="00"
10834                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10835       <references>
10836         <sourceUrl>http://en.wikipedia.org/wiki/%2B964</sourceUrl>
10837         <sourceUrl>http://wtng.info/wtng-964-ik.html</sourceUrl>
10838       </references>
10839       <availableFormats>
10840         <numberFormat pattern="(1)(\d{3})(\d{4})">
10841           <leadingDigits>1</leadingDigits>
10842           <format>$1 $2 $3</format>
10843         </numberFormat>
10844         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
10845           <leadingDigits>[2-6]</leadingDigits>
10846           <format>$1 $2 $3</format>
10847         </numberFormat>
10848         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
10849           <leadingDigits>7</leadingDigits>
10850           <format>$1 $2 $3</format>
10851         </numberFormat>
10852       </availableFormats>
10853       <generalDesc>
10854         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
10855         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10856       </generalDesc>
10857       <fixedLine>
10858         <nationalNumberPattern>
10859           1\d{7}|
10860           (?:
10861             2[13-5]|
10862             3[02367]|
10863             4[023]|
10864             5[03]|
10865             6[026]
10866           )\d{6,7}
10867         </nationalNumberPattern>
10868         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
10869         <exampleNumber>12345678</exampleNumber>
10870       </fixedLine>
10871       <mobile>
10872         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
10873         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10874         <exampleNumber>7912345678</exampleNumber>
10875       </mobile>
10876       <!-- No tollFree or premiumRate information can be found. -->
10877     </territory>
10878
10879     <!-- Iran, Islamic Republic of -->
10880     <territory id="IR" countryCode="98" internationalPrefix="00"
10881                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10882       <references>
10883         <sourceUrl>http://en.wikipedia.org/wiki/%2B98</sourceUrl>
10884         <sourceUrl>http://www.itu.int/oth/T0202000066/en</sourceUrl>
10885         <sourceUrl>http://www.tct.ir/?siteid=1&amp;pageid=195</sourceUrl>
10886         <sourceUrl>http://118.tct.ir/citycode.htm</sourceUrl>
10887       </references>
10888       <availableFormats>
10889         <!-- Formatting follows wikipedia. -->
10890         <numberFormat pattern="(21)(\d{3,5})">
10891           <leadingDigits>21</leadingDigits>
10892           <format>$1 $2</format>
10893         </numberFormat>
10894         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10895           <leadingDigits>[1-8]</leadingDigits>
10896           <format>$1 $2 $3</format>
10897         </numberFormat>
10898         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
10899           <leadingDigits>9</leadingDigits>
10900           <format>$1 $2 $3</format>
10901         </numberFormat>
10902         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
10903           <leadingDigits>9</leadingDigits>
10904           <format>$1 $2 $3</format>
10905         </numberFormat>
10906         <numberFormat pattern="(\d{3})(\d{3})">
10907           <leadingDigits>9</leadingDigits>
10908           <format>$1 $2</format>
10909         </numberFormat>
10910       </availableFormats>
10911       <generalDesc>
10912         <nationalNumberPattern>
10913           [1-8]\d{9}|
10914           9(?:
10915             [0-4]\d{8}|
10916             9\d{2,8}
10917           )
10918         </nationalNumberPattern>
10919         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10920       </generalDesc>
10921       <fixedLine>
10922         <!-- In Summer 2014 Iran unified all fixed phone numbers in the following way:
10923              Each province is assigned a two digit prefix (except for North Khorasan which has 3).
10924              Within each province, all numbers are exactly eight digits.  The expression below is
10925              organized by province.  For each province we accept all eight-digit combinations.
10926
10927              11 Mazandaran
10928              13 Gilan
10929              17 Golestan
10930              21 Tehran
10931              23 Semnan
10932              24 Zanjan
10933              25 Qom
10934              26 Alborz
10935              28 Qazvin
10936              31 Isfahan
10937              34 Kerman
10938              35 Yazd
10939              38 Chahar Mahaal and Bakhtiari
10940              41 East Azerbaijan
10941              44 West Azerbaijan
10942              45 Ardabil
10943              51 Razavi Khorasan
10944              54 Sistan and Baluchestan
10945              56 South Khorasan
10946              57 North Khorasan (Extras)
10947              58 North Khorasan
10948              61 Khuzestan
10949              64 North Khorasan (Extras)
10950              66 Lorestan
10951              71 Fars
10952              74 Kohgiluyeh and Boyer-Ahmad
10953              76 Hormozgan
10954              77 Bushehr
10955              81 Hamadan
10956              83 Kermanshah
10957              84 Ilam
10958              86 Markazi
10959              87 Kurdistan
10960              -->
10961         <nationalNumberPattern>
10962           (?:
10963             1[137]|
10964             2[13-68]|
10965             3[1458]|
10966             4[145]|
10967             5[146-8]|
10968             6[146]|
10969             7[1467]|
10970             8[13467]
10971           )\d{8}
10972         </nationalNumberPattern>
10973         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10974         <exampleNumber>2123456789</exampleNumber>
10975       </fixedLine>
10976       <mobile>
10977         <nationalNumberPattern>
10978           9(?:
10979             0[12]|
10980             [1-3]\d
10981           )\d{7}
10982         </nationalNumberPattern>
10983         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10984         <exampleNumber>9123456789</exampleNumber>
10985       </mobile>
10986       <pager>
10987         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
10988         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10989         <exampleNumber>9432123456</exampleNumber>
10990       </pager>
10991       <!-- No tollFree or premiumRate information can be found. -->
10992       <voip>
10993         <!-- Includes VSAT and Boomehen Satellite numbers. -->
10994         <nationalNumberPattern>
10995           (?:
10996             [2-6]0\d|
10997             993
10998           )\d{7}
10999         </nationalNumberPattern>
11000         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11001         <exampleNumber>9932123456</exampleNumber>
11002       </voip>
11003       <uan>
11004         <!-- MCI Public Relations numbers -->
11005         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
11006         <exampleNumber>9990123456</exampleNumber>
11007       </uan>
11008     </territory>
11009
11010     <!-- Iceland -->
11011     <territory id="IS" countryCode="354" internationalPrefix="00" mobileNumberPortableRegion="true">
11012       <references>
11013         <sourceUrl>http://www.pta.is/default.aspx?cat_id=85</sourceUrl>
11014         <sourceUrl>http://www.pfs.is/default.aspx?cat_id=14&amp;module_id=210&amp;element_id=4</sourceUrl>
11015       </references>
11016       <availableFormats>
11017         <numberFormat pattern="(\d{3})(\d{4})">
11018           <leadingDigits>[4-9]</leadingDigits>
11019           <format>$1 $2</format>
11020         </numberFormat>
11021         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
11022           <leadingDigits>3</leadingDigits>
11023           <format>$1 $2 $3</format>
11024         </numberFormat>
11025       </availableFormats>
11026       <generalDesc>
11027         <nationalNumberPattern>
11028           [4-9]\d{6}|
11029           38\d{7}
11030         </nationalNumberPattern>
11031         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11032       </generalDesc>
11033       <fixedLine>
11034         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
11035         <nationalNumberPattern>
11036           (?:
11037             4(?:
11038               1[0-24-6]|
11039               2[0-7]|
11040               [37][0-8]|
11041               4[0-245]|
11042               5[0-3568]|
11043               6\d|
11044               8[0-36-8]
11045             )|
11046             5(?:
11047               05|
11048               [156]\d|
11049               2[02578]|
11050               3[013-7]|
11051               4[03-7]|
11052               7[0-2578]|
11053               8[0-35-9]|
11054               9[013-689]
11055             )|
11056             87[23]
11057           )\d{4}
11058         </nationalNumberPattern>
11059         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11060         <exampleNumber>4101234</exampleNumber>
11061       </fixedLine>
11062       <mobile>
11063         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
11064         <nationalNumberPattern>
11065           38[589]\d{6}|
11066           (?:
11067             6(?:
11068               1[1-8]|
11069               3[089]|
11070               4[0167]|
11071               5[019]|
11072               [67][0-69]|
11073               9\d
11074             )|
11075             7(?:
11076               5[057]|
11077               7\d|
11078               8[0-36-8]
11079             )|
11080             8(?:
11081               2[0-5]|
11082               3[0-4]|
11083               [469]\d|
11084               5[1-9]
11085             )
11086           )\d{4}
11087         </nationalNumberPattern>
11088         <exampleNumber>6111234</exampleNumber>
11089       </mobile>
11090       <tollFree>
11091         <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
11092              numbers can be found online, and it is not clear what these are; the standard
11093              definition would have them under the +800 country code instead of Iceland. -->
11094         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
11095         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11096         <exampleNumber>8001234</exampleNumber>
11097       </tollFree>
11098       <premiumRate>
11099         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
11100         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11101         <exampleNumber>9011234</exampleNumber>
11102       </premiumRate>
11103       <voip>
11104         <nationalNumberPattern>49\d{5}</nationalNumberPattern>
11105         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11106         <exampleNumber>4921234</exampleNumber>
11107       </voip>
11108       <voicemail>
11109         <nationalNumberPattern>
11110           (?:
11111             6(?:
11112               2[0-8]|
11113               49|
11114               8\d
11115             )|
11116             87[0189]|
11117             95[48]
11118           )\d{4}
11119         </nationalNumberPattern>
11120         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11121         <exampleNumber>6201234</exampleNumber>
11122       </voicemail>
11123     </territory>
11124
11125     <!-- Italy -->
11126     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true"
11127                mobileNumberPortableRegion="true">
11128       <references>
11129         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
11130       </references>
11131       <availableFormats>
11132         <!-- The leading zero for fixed numbers will be prepended before the matching of these
11133              regular expressions. -->
11134         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
11135           <leadingDigits>
11136             0[26]|
11137             55
11138           </leadingDigits>
11139           <format>$1 $2 $3</format>
11140         </numberFormat>
11141         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
11142           <leadingDigits>0[26]</leadingDigits>
11143           <format>$1 $2 $3</format>
11144         </numberFormat>
11145         <numberFormat pattern="(0[26])(\d{4,6})">
11146           <leadingDigits>0[26]</leadingDigits>
11147           <format>$1 $2</format>
11148         </numberFormat>
11149         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
11150           <leadingDigits>0[13-57-9][0159]</leadingDigits>
11151           <format>$1 $2 $3</format>
11152         </numberFormat>
11153         <numberFormat pattern="(\d{3})(\d{3,6})">
11154           <leadingDigits>
11155             0[13-57-9][0159]|
11156             8(?:
11157               03|
11158               4[17]|
11159               9[245]
11160             )
11161           </leadingDigits>
11162           <leadingDigits>
11163             0[13-57-9][0159]|
11164             8(?:
11165               03|
11166               4[17]|
11167               9(?:
11168                 2|
11169                 [45][0-4]
11170               )
11171             )
11172           </leadingDigits>
11173           <format>$1 $2</format>
11174         </numberFormat>
11175         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
11176           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11177           <format>$1 $2 $3</format>
11178         </numberFormat>
11179         <numberFormat pattern="(0\d{3})(\d{2,6})">
11180           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11181           <format>$1 $2</format>
11182         </numberFormat>
11183         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11184           <leadingDigits>
11185             [13]|
11186             8(?:
11187               00|
11188               4[08]|
11189               9[59]
11190             )
11191           </leadingDigits>
11192           <leadingDigits>
11193             [13]|
11194             8(?:
11195               00|
11196               4[08]|
11197               9(?:
11198                 5[5-9]|
11199                 9
11200               )
11201             )
11202           </leadingDigits>
11203           <format>$1 $2 $3</format>
11204         </numberFormat>
11205         <numberFormat pattern="(\d{4})(\d{4})">
11206           <leadingDigits>894</leadingDigits>
11207           <leadingDigits>894[5-9]</leadingDigits>
11208           <format>$1 $2</format>
11209         </numberFormat>
11210         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
11211           <leadingDigits>3</leadingDigits>
11212           <format>$1 $2 $3</format>
11213         </numberFormat>
11214       </availableFormats>
11215       <generalDesc>
11216         <nationalNumberPattern>
11217           [01589]\d{5,10}|
11218           3(?:
11219             [12457-9]\d{8}|
11220             [36]\d{7,9}
11221           )
11222         </nationalNumberPattern>
11223         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11224       </generalDesc>
11225       <noInternationalDialling>
11226         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
11227         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11228         <exampleNumber>848123456</exampleNumber>
11229       </noInternationalDialling>
11230       <fixedLine>
11231         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
11232              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
11233              found with other prefixes that are 11 digits long as well, so we allow it for all the
11234              three and four digit area codes. -->
11235         <nationalNumberPattern>
11236           0(?:
11237             [26]\d{4,9}|
11238             (?:
11239               1(?:
11240                 [0159]\d|
11241                 [27][1-5]|
11242                 31|
11243                 4[1-4]|
11244                 6[1356]|
11245                 8[2-57]
11246               )|
11247               3(?:
11248                 [0159]\d|
11249                 2[1-4]|
11250                 3[12]|
11251                 [48][1-6]|
11252                 6[2-59]|
11253                 7[1-7]
11254               )|
11255               4(?:
11256                 [0159]\d|
11257                 [23][1-9]|
11258                 4[245]|
11259                 6[1-5]|
11260                 7[1-4]|
11261                 81
11262               )|
11263               5(?:
11264                 [0159]\d|
11265                 2[1-5]|
11266                 3[2-6]|
11267                 4[1-79]|
11268                 6[4-6]|
11269                 7[1-578]|
11270                 8[3-8]
11271               )|
11272               7(?:
11273                 [0159]\d|
11274                 2[12]|
11275                 3[1-7]|
11276                 4[2346]|
11277                 6[13569]|
11278                 7[13-6]|
11279                 8[1-59]
11280               )|
11281               8(?:
11282                 [0159]\d|
11283                 2[34578]|
11284                 3[1-356]|
11285                 [6-8][1-5]
11286               )|
11287               9(?:
11288                 [0159]\d|
11289                 [238][1-5]|
11290                 4[12]|
11291                 6[1-8]|
11292                 7[1-6]
11293               )
11294             )\d{2,7}
11295           )
11296         </nationalNumberPattern>
11297         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11298         <exampleNumber>0212345678</exampleNumber>
11299       </fixedLine>
11300       <mobile>
11301         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
11302              digits long. However, a user reported the existence of new 11 digit long numbers for
11303              TIM with the prefix 33X, so this is supported also. -->
11304         <nationalNumberPattern>
11305           3(?:
11306             [12457-9]\d{8}|
11307             6\d{7,8}|
11308             3\d{7,9}
11309           )
11310         </nationalNumberPattern>
11311         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
11312         <exampleNumber>3123456789</exampleNumber>
11313       </mobile>
11314       <tollFree>
11315         <nationalNumberPattern>
11316           80(?:
11317             0\d{6}|
11318             3\d{3}
11319           )
11320         </nationalNumberPattern>
11321         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11322         <exampleNumber>800123456</exampleNumber>
11323       </tollFree>
11324       <premiumRate>
11325         <!-- Adding 0878 numbers, as per
11326              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
11327              premium prefixes are mentioned here:
11328              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
11329         <nationalNumberPattern>
11330           0878\d{5}|
11331           1(?:
11332             44|
11333             6[346]
11334           )\d{6}|
11335           89(?:
11336             2\d{3}|
11337             4(?:
11338               [0-4]\d{2}|
11339               [5-9]\d{4}
11340             )|
11341             5(?:
11342               [0-4]\d{2}|
11343               [5-9]\d{6}
11344             )|
11345             9\d{6}
11346           )
11347         </nationalNumberPattern>
11348         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11349         <exampleNumber>899123456</exampleNumber>
11350       </premiumRate>
11351       <sharedCost>
11352         <nationalNumberPattern>
11353           84(?:
11354             [08]\d{6}|
11355             [17]\d{3}
11356           )
11357         </nationalNumberPattern>
11358         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11359         <exampleNumber>848123456</exampleNumber>
11360       </sharedCost>
11361       <personalNumber>
11362         <nationalNumberPattern>
11363           1(?:
11364             78\d|
11365             99
11366           )\d{6}
11367         </nationalNumberPattern>
11368         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
11369         <exampleNumber>1781234567</exampleNumber>
11370       </personalNumber>
11371       <voip>
11372         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
11373         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11374         <exampleNumber>5512345678</exampleNumber>
11375       </voip>
11376     </territory>
11377
11378     <!-- Jersey -->
11379     <!-- Inherits formatting rules from the UK. -->
11380     <territory id="JE" countryCode="44" internationalPrefix="00"
11381                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
11382       <references>
11383         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
11384         <sourceUrl>http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&amp;childID=1036</sourceUrl>
11385       </references>
11386       <generalDesc>
11387         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
11388         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11389       </generalDesc>
11390       <areaCodeOptional>
11391         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
11392         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11393         <exampleNumber>1534250123</exampleNumber>
11394       </areaCodeOptional>
11395       <!-- Specific to JE. -->
11396       <fixedLine>
11397         <!-- 1534 with 10 digits. -->
11398         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
11399         <exampleNumber>1534456789</exampleNumber>
11400       </fixedLine>
11401       <mobile>
11402         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
11403         <nationalNumberPattern>
11404           7(?:
11405             509|
11406             7(?:
11407               00|
11408               97
11409             )|
11410             829|
11411             937
11412           )\d{6}
11413         </nationalNumberPattern>
11414         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11415         <exampleNumber>7797123456</exampleNumber>
11416       </mobile>
11417       <pager>
11418         <!-- Pager numbers as per GB. -->
11419         <nationalNumberPattern>
11420           76(?:
11421             0[012]|
11422             2[356]|
11423             4[0134]|
11424             5[49]|
11425             6[0-369]|
11426             77|
11427             81|
11428             9[39]
11429           )\d{6}
11430         </nationalNumberPattern>
11431         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11432         <exampleNumber>7640123456</exampleNumber>
11433       </pager>
11434       <!-- Specific to JE. -->
11435       <tollFree>
11436         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
11437         <nationalNumberPattern>
11438           80(?:
11439             07(?:
11440               35|
11441               81
11442             )|
11443             8901
11444           )\d{4}
11445         </nationalNumberPattern>
11446         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11447         <exampleNumber>8007354567</exampleNumber>
11448       </tollFree>
11449       <premiumRate>
11450         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
11451         <nationalNumberPattern>
11452           (?:
11453             871206|
11454             90(?:
11455               066[59]|
11456               1810|
11457               71(?:
11458                 07|
11459                 55
11460               )
11461             )
11462           )\d{4}
11463         </nationalNumberPattern>
11464         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11465         <exampleNumber>9018105678</exampleNumber>
11466       </premiumRate>
11467       <sharedCost>
11468         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
11469         <nationalNumberPattern>
11470           8(?:
11471             4(?:
11472               4(?:
11473                 4(?:
11474                   05|
11475                   42|
11476                   69
11477                 )|
11478                 703
11479               )|
11480               5(?:
11481                 041|
11482                 800
11483               )
11484             )|
11485             70002
11486           )\d{4}
11487         </nationalNumberPattern>
11488         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11489         <exampleNumber>8447034567</exampleNumber>
11490       </sharedCost>
11491       <personalNumber>
11492         <!-- 70 1511 with 10 digits. -->
11493         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
11494         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11495         <exampleNumber>7015115678</exampleNumber>
11496       </personalNumber>
11497       <voip>
11498         <!-- VoIP numbers as per GB. -->
11499         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
11500         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11501         <exampleNumber>5612345678</exampleNumber>
11502       </voip>
11503       <uan>
11504         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
11505              370 002, 371 206, 55 with 10 digits. -->
11506         <nationalNumberPattern>
11507           3(?:
11508             0(?:
11509               07(?:
11510                 35|
11511                 81
11512               )|
11513               8901
11514             )|
11515             3\d{4}|
11516             4(?:
11517               4(?:
11518                 4(?:
11519                   05|
11520                   42|
11521                   69
11522                 )|
11523                 703
11524               )|
11525               5(?:
11526                 041|
11527                 800
11528               )
11529             )|
11530             7(?:
11531               0002|
11532               1206
11533             )
11534           )\d{4}|
11535           55\d{8}
11536         </nationalNumberPattern>
11537         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11538         <exampleNumber>5512345678</exampleNumber>
11539       </uan>
11540     </territory>
11541
11542     <!-- Jamaica -->
11543     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
11544                internationalPrefix="011">
11545       <references>
11546         <sourceUrl>http://www.itu.int/oth/T020200006C/en</sourceUrl>
11547       </references>
11548       <generalDesc>
11549         <!-- NANPA country - uses US formatting rules -->
11550         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
11551         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
11552       </generalDesc>
11553       <fixedLine>
11554         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
11555         <nationalNumberPattern>
11556           876(?:
11557             5(?:
11558               0[12]|
11559               1[0-468]|
11560               2[35]|
11561               63
11562             )|
11563             6(?:
11564               0[1-3579]|
11565               1[027-9]|
11566               [23]\d|
11567               40|
11568               5[06]|
11569               6[2-589]|
11570               7[05]|
11571               8[04]|
11572               9[4-9]
11573             )|
11574             7(?:
11575               0[2-689]|
11576               [1-6]\d|
11577               8[056]|
11578               9[45]
11579             )|
11580             9(?:
11581               0[1-8]|
11582               1[02378]|
11583               [2-8]\d|
11584               9[2-468]
11585             )
11586           )\d{4}
11587         </nationalNumberPattern>
11588         <exampleNumber>8765123456</exampleNumber>
11589       </fixedLine>
11590       <mobile>
11591         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
11592              be valid by sending SMSs and looking at online number lookup sites. Also added 50[3-79]
11593              as we have found information online that the 50[3-9] range has been assigned to Digicel.
11594
11595              Numbers have been found online for the following ranges 26x, 29x, 53x, 54x, 55x, 56x.
11596              Most have mobile numbers online so we have put them under mobile but is possible
11597              they are a mixture of fixed line and mobile. -->
11598         <nationalNumberPattern>
11599           876(?:
11600             2[16-9]\d|
11601             [348]\d{2}|
11602             5(?:
11603               0[3-9]|
11604               27|
11605               6[0-24-9]|
11606               [3-578]\d
11607             )|
11608             7(?:
11609               0[07]|
11610               7\d|
11611               8[1-47-9]|
11612               9[0-36-9]
11613             )|
11614             9(?:
11615               [01]9|
11616               9[0579]
11617             )
11618           )\d{4}
11619         </nationalNumberPattern>
11620         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11621         <exampleNumber>8762101234</exampleNumber>
11622       </mobile>
11623       <tollFree>
11624         <nationalNumberPattern>
11625           8(?:
11626             00|
11627             44|
11628             55|
11629             66|
11630             77|
11631             88
11632           )[2-9]\d{6}
11633         </nationalNumberPattern>
11634         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11635         <exampleNumber>8002123456</exampleNumber>
11636       </tollFree>
11637       <premiumRate>
11638         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
11639         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11640         <exampleNumber>9002123456</exampleNumber>
11641       </premiumRate>
11642       <personalNumber>
11643         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
11644         <nationalNumberPattern>
11645           5(?:
11646             00|
11647             33|
11648             44|
11649             66|
11650             77
11651           )[2-9]\d{6}
11652         </nationalNumberPattern>
11653         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11654         <exampleNumber>5002345678</exampleNumber>
11655       </personalNumber>
11656     </territory>
11657
11658     <!-- Jordan -->
11659     <territory id="JO" countryCode="962" internationalPrefix="00"
11660                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
11661                mobileNumberPortableRegion="true">
11662       <references>
11663         <sourceUrl>http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english</sourceUrl>
11664         <sourceUrl>http://www.itu.int/oth/T020200006E/en</sourceUrl>
11665         <sourceUrl>http://en.wikipedia.org/wiki/%2B962</sourceUrl>
11666       </references>
11667       <availableFormats>
11668         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
11669           pattern="(\d)(\d{3})(\d{4})">
11670           <leadingDigits>
11671             [2356]|
11672             87
11673           </leadingDigits>
11674           <format>$1 $2 $3</format>
11675         </numberFormat>
11676         <numberFormat pattern="(7)(\d{4})(\d{4})">
11677           <leadingDigits>7[457-9]</leadingDigits>
11678           <format>$1 $2 $3</format>
11679         </numberFormat>
11680         <numberFormat pattern="(\d{3})(\d{5,6})">
11681           <leadingDigits>
11682             70|
11683             8[0158]|
11684             9
11685           </leadingDigits>
11686           <format>$1 $2</format>
11687         </numberFormat>
11688       </availableFormats>
11689       <generalDesc>
11690         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
11691         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
11692       </generalDesc>
11693       <fixedLine>
11694         <nationalNumberPattern>
11695           (?:
11696             2(?:
11697               6(?:
11698                 2[0-35-9]|
11699                 3[0-57-8]|
11700                 4[24-7]|
11701                 5[0-24-8]|
11702                 [6-8][023]|
11703                 9[0-3]
11704               )|
11705               7(?:
11706                 0[1-79]|
11707                 10|
11708                 2[014-7]|
11709                 3[0-689]|
11710                 4[019]|
11711                 5[0-3578]
11712               )
11713             )|
11714             32(?:
11715               0[1-69]|
11716               1[1-35-7]|
11717               2[024-7]|
11718               3\d|
11719               4[0-3]|
11720               [57][023]|
11721               6[03]
11722             )|
11723             53(?:
11724               0[0-3]|
11725               [13][023]|
11726               2[0-59]|
11727               49|
11728               5[0-35-9]|
11729               6[15]|
11730               7[45]|
11731               8[1-6]|
11732               9[0-36-9]
11733             )|
11734             6(?:
11735               2[50]0|
11736               3(?:
11737                  00|
11738                  33
11739               )|
11740               4(?:
11741                 0[0125]|
11742                 1[2-7]|
11743                 2[0569]|
11744                 [38][07-9]|
11745                 4[025689]|
11746                 6[0-589]|
11747                 7\d|
11748                 9[0-2]
11749               )|
11750               5(?:
11751                 [01][056]|
11752                 2[034]|
11753                 3[0-57-9]|
11754                 4[17-8]|
11755                 5[0-69]|
11756                 6[0-35-9]|
11757                 7[1-379]|
11758                 8[0-68]|
11759                 9[02-39]
11760               )
11761             )|
11762             87(?:
11763               [02]0|
11764               7[08]|
11765               90
11766             )
11767           )\d{4}
11768         </nationalNumberPattern>
11769         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11770         <exampleNumber>62001234</exampleNumber>
11771       </fixedLine>
11772       <mobile>
11773         <nationalNumberPattern>
11774           7(?:
11775             55|
11776             7[25-9]|
11777             8[05-9]|
11778             9[0-25-9]
11779           )\d{6}
11780         </nationalNumberPattern>
11781         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11782         <exampleNumber>790123456</exampleNumber>
11783       </mobile>
11784       <pager>
11785         <nationalNumberPattern>
11786           74(?:
11787             66|
11788             77
11789           )\d{5}
11790         </nationalNumberPattern>
11791         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11792         <exampleNumber>746612345</exampleNumber>
11793       </pager>
11794       <tollFree>
11795         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
11796         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11797         <exampleNumber>80012345</exampleNumber>
11798       </tollFree>
11799       <premiumRate>
11800         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
11801         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11802         <exampleNumber>90012345</exampleNumber>
11803       </premiumRate>
11804       <sharedCost>
11805         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
11806         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11807         <exampleNumber>85012345</exampleNumber>
11808       </sharedCost>
11809       <personalNumber>
11810         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
11811         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11812         <exampleNumber>700123456</exampleNumber>
11813       </personalNumber>
11814       <uan>
11815         <!-- These numbers are Location Independent Services / Fixed cost according to
11816              http://www.trc.gov.jo -->
11817         <nationalNumberPattern>
11818           8(?:
11819             10|
11820             8\d
11821           )\d{5}
11822         </nationalNumberPattern>
11823         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11824         <exampleNumber>88101234</exampleNumber>
11825       </uan>
11826     </territory>
11827
11828     <!-- Japan -->
11829     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
11830                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true"
11831                mobileNumberPortableRegion="true">
11832       <references>
11833         <sourceUrl>http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html</sourceUrl>
11834         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=JP</sourceUrl>
11835       </references>
11836       <availableFormats>
11837         <!-- Toll-free, premium-rate and UAN numbers -->
11838         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
11839           <leadingDigits>
11840             (?:
11841               12|
11842               57|
11843               99
11844             )0
11845           </leadingDigits>
11846           <format>$1-$2-$3</format>
11847         </numberFormat>
11848         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
11849           <leadingDigits>800</leadingDigits>
11850           <format>$1-$2-$3</format>
11851         </numberFormat>
11852         <!-- National-only toll-free numbers (0037, 0066, 0077 and 0088). -->
11853         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
11854           <leadingDigits>0077</leadingDigits>
11855           <format>$1-$2</format>
11856           <intlFormat>NA</intlFormat>
11857         </numberFormat>
11858         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{3,4})">
11859           <leadingDigits>0077</leadingDigits>
11860           <format>$1-$2-$3</format>
11861           <intlFormat>NA</intlFormat>
11862         </numberFormat>
11863         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{4})">
11864           <leadingDigits>0088</leadingDigits>
11865           <format>$1-$2-$3</format>
11866           <intlFormat>NA</intlFormat>
11867         </numberFormat>
11868         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3,4})">
11869           <leadingDigits>
11870             00(?:
11871                37|
11872                66
11873             )
11874           </leadingDigits>
11875           <format>$1-$2-$3</format>
11876           <intlFormat>NA</intlFormat>
11877         </numberFormat>
11878         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})(\d{4,5})">
11879           <leadingDigits>
11880             00(?:
11881                37|
11882                66
11883             )
11884           </leadingDigits>
11885           <format>$1-$2-$3</format>
11886           <intlFormat>NA</intlFormat>
11887         </numberFormat>
11888         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{5})(\d{5,6})">
11889           <leadingDigits>
11890             00(?:
11891                37|
11892                66
11893             )
11894           </leadingDigits>
11895           <format>$1-$2-$3</format>
11896           <intlFormat>NA</intlFormat>
11897         </numberFormat>
11898         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{6})(\d{6,7})">
11899           <leadingDigits>
11900             00(?:
11901                37|
11902                66
11903             )
11904           </leadingDigits>
11905           <format>$1-$2-$3</format>
11906           <intlFormat>NA</intlFormat>
11907         </numberFormat>
11908         <!-- Some leading digits are explicitly reserved for a particular purpose.
11909              We handle them first in this rule, and let the following rules ignore those exceptions.
11910              Note: The rule here is not in the files we rely on when creating the other rules.
11911                    We would need to manually modify it if the Japanese goverment
11912                    decided to change the rule.
11913
11914              (prefix): purpose
11915              "20": Pagers
11916              "50": IP phone
11917              "70": PHS (Personal Handy-phone System, which has been used in Japan
11918                    with Non-3G, Japanese-specific protocol).
11919                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
11920              "80" and "90": Mobile phone
11921           -->
11922         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
11923           <leadingDigits>
11924             [2579]0|
11925             80[1-9]
11926           </leadingDigits>
11927           <format>$1-$2-$3</format>
11928         </numberFormat>
11929         <!-- The order of the reg-exps are important.
11930              Examples (not all):
11931              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
11932              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
11933              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
11934              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
11935              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
11936              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
11937           -->
11938         <numberFormat pattern="(\d{4})(\d)(\d{4})">
11939           <leadingDigits>
11940             1(?:
11941               26|
11942               3[79]|
11943               4[56]|
11944               5[4-68]|
11945               6[3-5]
11946             )|
11947             5(?:
11948               76|
11949               97
11950             )|
11951             499|
11952             746|
11953             8(?:
11954               3[89]|
11955               63|
11956               47|
11957               51
11958             )|
11959             9(?:
11960               49|
11961               80|
11962               9[16]
11963             )
11964           </leadingDigits>
11965           <leadingDigits>
11966             1(?:
11967               267|
11968               3(?:
11969                 7[247]|
11970                 9[278]
11971               )|
11972               4(?:
11973                 5[67]|
11974                 66
11975               )|
11976               5(?:
11977                 47|
11978                 58|
11979                 64|
11980                 8[67]
11981               )|
11982               6(?:
11983                 3[245]|
11984                 48|
11985                 5[4-68]
11986               )
11987             )|
11988             5(?:
11989               76|
11990               97
11991             )9|
11992             499[2468]|
11993             7468|
11994             8(?:
11995               3(?:
11996                 8[78]|
11997                 96
11998               )|
11999               636|
12000               477|
12001               51[24]
12002             )|
12003             9(?:
12004               496|
12005               802|
12006               9(?:
12007                 1[23]|
12008                 69
12009               )
12010             )
12011           </leadingDigits>
12012           <leadingDigits>
12013             1(?:
12014               267|
12015               3(?:
12016                 7[247]|
12017                 9[278]
12018               )|
12019               4(?:
12020                 5[67]|
12021                 66
12022               )|
12023               5(?:
12024                 47|
12025                 58|
12026                 64|
12027                 8[67]
12028               )|
12029               6(?:
12030                 3[245]|
12031                 48|
12032                 5[4-68]
12033               )
12034             )|
12035             5(?:
12036               769|
12037               979[2-69]
12038             )|
12039             499[2468]|
12040             7468|
12041             8(?:
12042               3(?:
12043                 8[78]|
12044                 96[2457-9]
12045               )|
12046               636[2-57-9]|
12047               477|
12048               51[24]
12049             )|
12050             9(?:
12051               496|
12052               802|
12053               9(?:
12054                 1[23]|
12055                 69
12056               )
12057             )
12058           </leadingDigits>
12059           <format>$1-$2-$3</format>
12060         </numberFormat>
12061         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12062           <leadingDigits>
12063             1(?:
12064               2[3-6]|
12065               3[3-9]|
12066               4[2-6]|
12067               5[2-8]|
12068               [68][2-7]|
12069               7[2-689]|
12070               9[1-578]
12071             )|
12072             2(?:
12073               2[03-689]|
12074               3[3-58]|
12075               4[0-468]|
12076               5[04-8]|
12077               6[013-8]|
12078               7[06-9]|
12079               8[02-57-9]|
12080               9[13]
12081             )|
12082             4(?:
12083               2[28]|
12084               3[689]|
12085               6[035-7]|
12086               7[05689]|
12087               80|
12088               9[3-5]
12089             )|
12090             5(?:
12091               3[1-36-9]|
12092               4[4578]|
12093               5[013-8]|
12094               6[1-9]|
12095               7[2-8]|
12096               8[14-7]|
12097               9[4-9]
12098             )|
12099             7(?:
12100               2[15]|
12101               3[5-9]|
12102               4[02-9]|
12103               6[135-8]|
12104               7[0-4689]|
12105               9[014-9]
12106             )|
12107             8(?:
12108               2[49]|
12109               3[3-8]|
12110               4[5-8]|
12111               5[2-9]|
12112               6[35-9]|
12113               7[579]|
12114               8[03-579]|
12115               9[2-8]
12116             )|
12117             9(?:
12118               [23]0|
12119               4[02-46-9]|
12120               5[024-79]|
12121               6[4-9]|
12122               7[2-47-9]|
12123               8[02-7]|
12124               9[3-7]
12125             )
12126           </leadingDigits>
12127           <leadingDigits>
12128             1(?:
12129               2[3-6]|
12130               3[3-9]|
12131               4[2-6]|
12132               5(?:
12133                 [236-8]|
12134                 [45][2-69]
12135               )|
12136               [68][2-7]|
12137               7[2-689]|
12138               9[1-578]
12139             )|
12140             2(?:
12141               2(?:
12142                 [04-689]|
12143                 3[23]
12144               )|
12145               3[3-58]|
12146               4[0-468]|
12147               5(?:
12148                 5[78]|
12149                 7[2-4]|
12150                 [0468][2-9]
12151               )|
12152               6(?:
12153                 [0135-8]|
12154                 4[2-5]
12155               )|
12156               7(?:
12157                 [0679]|
12158                 8[2-7]
12159               )|
12160               8(?:
12161                 [024578]|
12162                 3[25-9]|
12163                 9[6-9]
12164               )|
12165               9(?:
12166                 11|
12167                 3[2-4]
12168               )
12169             )|
12170             4(?:
12171               2(?:
12172                 2[2-9]|
12173                 8[237-9]
12174               )|
12175               3[689]|
12176               6[035-7]|
12177               7(?:
12178                 [059][2-8]|
12179                 [68]
12180               )|
12181               80|
12182               9[3-5]
12183             )|
12184             5(?:
12185               3[1-36-9]|
12186               4[4578]|
12187               5[013-8]|
12188               6[1-9]|
12189               7[2-8]|
12190               8[14-7]|
12191               9(?:
12192                 [89][2-8]|
12193                 [4-7]
12194               )
12195             )|
12196             7(?:
12197               2[15]|
12198               3[5-9]|
12199               4[02-9]|
12200               6[135-8]|
12201               7[0-4689]|
12202               9(?:
12203                 [017-9]|
12204                 4[6-8]|
12205                 5[2-478]|
12206                 6[2-589]
12207               )
12208             )|
12209             8(?:
12210               2(?:
12211                 4[4-8]|
12212                 9[2-8]
12213               )|
12214               3(?:
12215                 7[2-6]|
12216                 [3-6][2-9]|
12217                 8[2-5]
12218               )|
12219               4[5-8]|
12220               5[2-9]|
12221               6(?:
12222                 [37]|
12223                 5[4-7]|
12224                 6[2-9]|
12225                 8[2-8]|
12226                 9[236-9]
12227               )|
12228               7[579]|
12229               8[03-579]|
12230               9[2-8]
12231             )|
12232             9(?:
12233               [23]0|
12234               4[02-46-9]|
12235               5[024-79]|
12236               6[4-9]|
12237               7[2-47-9]|
12238               8[02-7]|
12239               9(?:
12240                 3[34]|
12241                 [4-7]
12242               )
12243             )
12244           </leadingDigits>
12245           <leadingDigits>
12246             1(?:
12247               2[3-6]|
12248               3[3-9]|
12249               4[2-6]|
12250               5(?:
12251                 [236-8]|
12252                 [45][2-69]
12253               )|
12254               [68][2-7]|
12255               7[2-689]|
12256               9[1-578]
12257             )|
12258             2(?:
12259               2(?:
12260                 [04-689]|
12261                 3[23]
12262               )|
12263               3[3-58]|
12264               4[0-468]|
12265               5(?:
12266                 5[78]|
12267                 7[2-4]|
12268                 [0468][2-9]
12269               )|
12270               6(?:
12271                 [0135-8]|
12272                 4[2-5]
12273               )|
12274               7(?:
12275                 [0679]|
12276                 8[2-7]
12277               )|
12278               8(?:
12279                 [024578]|
12280                 3[25-9]|
12281                 9[6-9]
12282               )|
12283               9(?:
12284                 11|
12285                 3[2-4]
12286               )
12287             )|
12288             4(?:
12289               2(?:
12290                 2[2-9]|
12291                 8[237-9]
12292               )|
12293               3[689]|
12294               6[035-7]|
12295               7(?:
12296                 [059][2-8]|
12297                 [68]
12298               )|
12299               80|
12300               9[3-5]
12301             )|
12302             5(?:
12303               3[1-36-9]|
12304               4[4578]|
12305               5[013-8]|
12306               6[1-9]|
12307               7[2-8]|
12308               8[14-7]|
12309               9(?:
12310                 [89][2-8]|
12311                 [4-7]
12312               )
12313             )|
12314             7(?:
12315               2[15]|
12316               3[5-9]|
12317               4[02-9]|
12318               6[135-8]|
12319               7[0-4689]|
12320               9(?:
12321                 [017-9]|
12322                 4[6-8]|
12323                 5[2-478]|
12324                 6[2-589]
12325               )
12326             )|
12327             8(?:
12328               2(?:
12329                 4[4-8]|
12330                 9(?:
12331                   [3578]|
12332                   20|
12333                   4[04-9]|
12334                   6[56]
12335                 )
12336               )|
12337               3(?:
12338                 7(?:
12339                   [2-5]|
12340                   6[0-59]
12341                 )|
12342                 [3-6][2-9]|
12343                 8[2-5]
12344               )|
12345               4[5-8]|
12346               5[2-9]|
12347               6(?:
12348                 [37]|
12349                 5(?:
12350                   [467]|
12351                   5[014-9]
12352                 )|
12353                 6(?:
12354                   [2-8]|
12355                   9[02-69]
12356                 )|
12357                 8[2-8]|
12358                 9(?:
12359                   [236-8]|
12360                   9[23]
12361                 )
12362               )|
12363               7[579]|
12364               8[03-579]|
12365               9[2-8]
12366             )|
12367             9(?:
12368               [23]0|
12369               4[02-46-9]|
12370               5[024-79]|
12371               6[4-9]|
12372               7[2-47-9]|
12373               8[02-7]|
12374               9(?:
12375                 3(?:
12376                   3[02-9]|
12377                   4[0-24689]
12378                 )|
12379                 4[2-69]|
12380                 [5-7]
12381               )
12382             )
12383           </leadingDigits>
12384           <leadingDigits>
12385             1(?:
12386               2[3-6]|
12387               3[3-9]|
12388               4[2-6]|
12389               5(?:
12390                 [236-8]|
12391                 [45][2-69]
12392               )|
12393               [68][2-7]|
12394               7[2-689]|
12395               9[1-578]
12396             )|
12397             2(?:
12398               2(?:
12399                 [04-689]|
12400                 3[23]
12401               )|
12402               3[3-58]|
12403               4[0-468]|
12404               5(?:
12405                 5[78]|
12406                 7[2-4]|
12407                 [0468][2-9]
12408               )|
12409               6(?:
12410                 [0135-8]|
12411                 4[2-5]
12412               )|
12413               7(?:
12414                 [0679]|
12415                 8[2-7]
12416               )|
12417               8(?:
12418                 [024578]|
12419                 3[25-9]|
12420                 9[6-9]
12421               )|
12422               9(?:
12423                 11|
12424                 3[2-4]
12425               )
12426             )|
12427             4(?:
12428               2(?:
12429                 2[2-9]|
12430                 8[237-9]
12431               )|
12432               3[689]|
12433               6[035-7]|
12434               7(?:
12435                 [059][2-8]|
12436                 [68]
12437               )|
12438               80|
12439               9[3-5]
12440             )|
12441             5(?:
12442               3[1-36-9]|
12443               4[4578]|
12444               5[013-8]|
12445               6[1-9]|
12446               7[2-8]|
12447               8[14-7]|
12448               9(?:
12449                 [89][2-8]|
12450                 [4-7]
12451               )
12452             )|
12453             7(?:
12454               2[15]|
12455               3[5-9]|
12456               4[02-9]|
12457               6[135-8]|
12458               7[0-4689]|
12459               9(?:
12460                 [017-9]|
12461                 4[6-8]|
12462                 5[2-478]|
12463                 6[2-589]
12464               )
12465             )|
12466             8(?:
12467               2(?:
12468                 4[4-8]|
12469                 9(?:
12470                   [3578]|
12471                   20|
12472                   4[04-9]|
12473                   6(?:
12474                     5[25]|
12475                     60
12476                   )
12477                 )
12478               )|
12479               3(?:
12480                 7(?:
12481                   [2-5]|
12482                   6[0-59]
12483                 )|
12484                 [3-6][2-9]|
12485                 8[2-5]
12486               )|
12487               4[5-8]|
12488               5[2-9]|
12489               6(?:
12490                 [37]|
12491                 5(?:
12492                   [467]|
12493                   5[014-9]
12494                 )|
12495                 6(?:
12496                   [2-8]|
12497                   9[02-69]
12498                 )|
12499                 8[2-8]|
12500                 9(?:
12501                   [236-8]|
12502                   9[23]
12503                 )
12504               )|
12505               7[579]|
12506               8[03-579]|
12507               9[2-8]
12508             )|
12509             9(?:
12510               [23]0|
12511               4[02-46-9]|
12512               5[024-79]|
12513               6[4-9]|
12514               7[2-47-9]|
12515               8[02-7]|
12516               9(?:
12517                 3(?:
12518                   3[02-9]|
12519                   4[0-24689]
12520                 )|
12521                 4[2-69]|
12522                 [5-7]
12523               )
12524             )
12525           </leadingDigits>
12526           <format>$1-$2-$3</format>
12527         </numberFormat>
12528         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12529           <leadingDigits>
12530             1|
12531             2(?:
12532               2[37]|
12533               5[5-9]|
12534               64|
12535               78|
12536               8[39]|
12537               91
12538             )|
12539             4(?:
12540               2[2689]|
12541               64|
12542               7[347]
12543             )|
12544             5(?:
12545               [2-589]|
12546               39
12547             )|
12548             60|
12549             8(?:
12550               [46-9]|
12551               3[279]|
12552               2[124589]
12553             )|
12554             9(?:
12555               [235-8]|
12556               93
12557             )
12558           </leadingDigits>
12559           <leadingDigits>
12560             1|
12561             2(?:
12562               2[37]|
12563               5(?:
12564                 [57]|
12565                 [68]0|
12566                 9[19]
12567               )|
12568               64|
12569               78|
12570               8[39]|
12571               917
12572             )|
12573             4(?:
12574               2(?:
12575                 [68]|
12576                 20|
12577                 9[178]
12578               )|
12579               64|
12580               7[347]
12581             )|
12582             5(?:
12583               [2-589]|
12584               39[67]
12585             )|
12586             60|
12587             8(?:
12588               [46-9]|
12589               3[279]|
12590               2[124589]
12591             )|
12592             9(?:
12593               [235-8]|
12594               93[34]
12595             )
12596           </leadingDigits>
12597           <leadingDigits>
12598             1|
12599             2(?:
12600               2[37]|
12601               5(?:
12602                 [57]|
12603                 [68]0|
12604                 9(?:
12605                   17|
12606                   99
12607                 )
12608               )|
12609               64|
12610               78|
12611               8[39]|
12612               917
12613             )|
12614             4(?:
12615               2(?:
12616                 [68]|
12617                 20|
12618                 9[178]
12619               )|
12620               64|
12621               7[347]
12622             )|
12623             5(?:
12624               [2-589]|
12625               39[67]
12626             )|
12627             60|
12628             8(?:
12629               [46-9]|
12630               3[279]|
12631               2[124589]
12632             )|
12633             9(?:
12634               [235-8]|
12635               93(?:
12636                 31|
12637                 4
12638               )
12639             )
12640           </leadingDigits>
12641           <format>$1-$2-$3</format>
12642         </numberFormat>
12643         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12644           <leadingDigits>
12645             2(?:
12646               9[14-79]|
12647               74|
12648               [34]7|
12649               [56]9
12650             )|
12651             82|
12652             993
12653           </leadingDigits>
12654           <format>$1-$2-$3</format>
12655         </numberFormat>
12656         <numberFormat pattern="(\d)(\d{4})(\d{4})">
12657           <leadingDigits>
12658             3|
12659             4(?:
12660               2[09]|
12661               7[01]
12662             )|
12663             6[1-9]
12664           </leadingDigits>
12665           <format>$1-$2-$3</format>
12666         </numberFormat>
12667         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12668           <leadingDigits>[2479][1-9]</leadingDigits>
12669           <format>$1-$2-$3</format>
12670         </numberFormat>
12671       </availableFormats>
12672       <generalDesc>
12673         <nationalNumberPattern>
12674           [1-9]\d{8,9}|
12675           00(?:
12676              [36]\d{7,14}|
12677              7\d{5,7}|
12678              8\d{7}
12679           )
12680         </nationalNumberPattern>
12681         <possibleNumberPattern>\d{8,17}</possibleNumberPattern>
12682       </generalDesc>
12683       <noInternationalDialling>
12684         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
12685         <nationalNumberPattern>
12686           00(?:
12687              37\d{6,13}|
12688              66\d{6,13}|
12689              777(?:
12690                [01]\d{2}|
12691                5\d{3}|
12692                8\d{4}
12693              )|
12694              882[1245]\d{4}
12695           )
12696         </nationalNumberPattern>
12697         <exampleNumber>00777012</exampleNumber>
12698       </noInternationalDialling>
12699       <fixedLine>
12700         <nationalNumberPattern>
12701           (?:
12702             1(?:
12703               1[235-8]|
12704               2[3-6]|
12705               3[3-9]|
12706               4[2-6]|
12707               [58][2-8]|
12708               6[2-7]|
12709               7[2-9]|
12710               9[1-9]
12711             )|
12712             2[2-9]\d|
12713             [36][1-9]\d|
12714             4(?:
12715               6[02-8]|
12716               [2-578]\d|
12717               9[2-59]
12718             )|
12719             5(?:
12720               6[1-9]|
12721               7[2-8]|
12722               [2-589]\d
12723             )|
12724             7(?:
12725               3[4-9]|
12726               4[02-9]|
12727               [25-9]\d
12728             )|
12729             8(?:
12730               3[2-9]|
12731               4[5-9]|
12732               5[1-9]|
12733               8[03-9]|
12734               [2679]\d
12735             )|
12736             9(?:
12737               [679][1-9]|
12738               [2-58]\d
12739             )
12740           )\d{6}
12741         </nationalNumberPattern>
12742         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12743         <exampleNumber>312345678</exampleNumber>
12744       </fixedLine>
12745       <mobile>
12746         <nationalNumberPattern>[7-9]0[1-9]\d{7}</nationalNumberPattern>
12747         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12748         <exampleNumber>7012345678</exampleNumber>
12749       </mobile>
12750       <pager>
12751         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
12752         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12753         <exampleNumber>2012345678</exampleNumber>
12754       </pager>
12755       <tollFree>
12756         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
12757              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
12758              http://eonet.jp/home/denwa/service/access.html
12759              http://ci.fusioncom.co.jp/feature/
12760              http://www.auhikari.jp/service/tel/connection/index.html -->
12761         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
12762              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
12763              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
12764              for now (including both leading 00s). -->
12765         <nationalNumberPattern>
12766           120\d{6}|
12767           800\d{7}|
12768           00(?:
12769              37\d{6,13}|
12770              66\d{6,13}|
12771              777(?:
12772                [01]\d{2}|
12773                5\d{3}|
12774                8\d{4}
12775              )|
12776              882[1245]\d{4}
12777           )
12778         </nationalNumberPattern>
12779         <exampleNumber>120123456</exampleNumber>
12780       </tollFree>
12781       <premiumRate>
12782         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
12783         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12784         <exampleNumber>990123456</exampleNumber>
12785       </premiumRate>
12786       <personalNumber>
12787         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
12788         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12789         <exampleNumber>601234567</exampleNumber>
12790       </personalNumber>
12791       <voip>
12792         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
12793         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12794         <exampleNumber>5012345678</exampleNumber>
12795       </voip>
12796       <!-- Storing "unified number service" as UAN. -->
12797       <uan>
12798         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
12799         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12800         <exampleNumber>570123456</exampleNumber>
12801       </uan>
12802     </territory>
12803
12804     <!-- Kenya -->
12805     <territory id="KE" countryCode="254" internationalPrefix="000"
12806                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
12807                mobileNumberPortableRegion="true">
12808       <references>
12809         <sourceUrl>http://www.cck.go.ke/licensing/numbering/plan.html</sourceUrl>
12810         <sourceUrl>http://en.wikipedia.org/wiki/+254</sourceUrl>
12811       </references>
12812       <availableFormats>
12813         <numberFormat pattern="(\d{2})(\d{5,7})">
12814           <leadingDigits>[24-6]</leadingDigits>
12815           <format>$1 $2</format>
12816         </numberFormat>
12817         <numberFormat pattern="(\d{3})(\d{6,7})">
12818           <leadingDigits>7</leadingDigits>
12819           <format>$1 $2</format>
12820         </numberFormat>
12821         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12822           <leadingDigits>[89]</leadingDigits>
12823           <format>$1 $2 $3</format>
12824         </numberFormat>
12825       </availableFormats>
12826       <generalDesc>
12827         <nationalNumberPattern>
12828           20\d{6,7}|
12829           [4-9]\d{6,9}
12830         </nationalNumberPattern>
12831         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
12832       </generalDesc>
12833       <fixedLine>
12834         <!-- The prefixes 046, 050, 058, and 066 may appear online in less than 9 digits but
12835              calling them has confirmed these are outdated. However a 7-digit 068 number was
12836              dialed successfully so we consider these valid despite the plan. -->
12837         <nationalNumberPattern>
12838           20\d{6,7}|
12839           4(?:
12840             [0136]\d{7}|
12841             [245]\d{5,7}
12842           )|
12843           5(?:
12844             [08]\d{7}|
12845             [1-79]\d{5,7}
12846           )|
12847           6(?:
12848             [01457-9]\d{5,7}|
12849             [26]\d{7}
12850           )
12851         </nationalNumberPattern>
12852         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
12853         <exampleNumber>202012345</exampleNumber>
12854       </fixedLine>
12855       <mobile>
12856         <nationalNumberPattern>
12857           7(?:
12858             [0-36]\d|
12859             5[0-6]|
12860             7[0-5]|
12861             8[0-25-9]
12862           )\d{6}
12863         </nationalNumberPattern>
12864         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12865         <exampleNumber>712123456</exampleNumber>
12866       </mobile>
12867       <tollFree>
12868         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
12869         <!-- The plan suggests 0844 and 0845 may belong here, but these are short numbers rather
12870              than prefixes:
12871              http://www.telkomkenya.8k.com/Products/v/2.html
12872              http://www.kenya-advisor.com/phone-calls-kenya.html
12873              http://www.telkom.co.ke/index.php?option=com_content&view=article&id=64&Itemid=98 -->
12874         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
12875         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12876         <exampleNumber>800223456</exampleNumber>
12877       </tollFree>
12878       <premiumRate>
12879         <nationalNumberPattern>900[02-9]\d{5}</nationalNumberPattern>
12880         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12881         <exampleNumber>900223456</exampleNumber>
12882       </premiumRate>
12883     </territory>
12884
12885     <!-- Kyrgyzstan -->
12886     <territory id="KG" countryCode="996" internationalPrefix="00"
12887                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
12888       <references>
12889         <sourceUrl>http://www.itu.int/oth/T0202000074/en</sourceUrl>
12890       </references>
12891       <availableFormats>
12892         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
12893           <leadingDigits>
12894             [25-7]|
12895             31[25]
12896           </leadingDigits>
12897           <format>$1 $2 $3</format>
12898         </numberFormat>
12899         <numberFormat pattern="(\d{4})(\d{5})">
12900           <leadingDigits>
12901             3(?:
12902               1[36]|
12903               [2-9]
12904             )
12905           </leadingDigits>
12906           <format>$1 $2</format>
12907         </numberFormat>
12908         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
12909           <leadingDigits>8</leadingDigits>
12910           <format>$1 $2 $3 $4</format>
12911         </numberFormat>
12912       </availableFormats>
12913       <generalDesc>
12914         <nationalNumberPattern>[235-8]\d{8,9}</nationalNumberPattern>
12915         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12916       </generalDesc>
12917       <fixedLine>
12918         <!-- Extra area codes found on Web Search: 3147. -->
12919         <nationalNumberPattern>
12920           (?:
12921             3(?:
12922               1(?:
12923                 [256]\d|
12924                 3[1-9]|
12925                 47
12926               )|
12927               2(?:
12928                 22|
12929                 3[0-479]|
12930                 6[0-7]
12931               )|
12932               4(?:
12933                 22|
12934                 5[6-9]|
12935                 6\d
12936               )|
12937               5(?:
12938                 22|
12939                 3[4-7]|
12940                 59|
12941                 6\d
12942               )|
12943               6(?:
12944                 22|
12945                 5[35-7]|
12946                 6\d
12947               )|
12948               7(?:
12949                 22|
12950                 3[468]|
12951                 4[1-9]|
12952                 59|
12953                 [67]\d
12954               )|
12955               9(?:
12956                 22|
12957                 4[1-8]|
12958                 6\d
12959               )
12960             )|
12961             6(?:
12962               09|
12963               12|
12964               2[2-4]
12965             )\d
12966           )\d{5}
12967         </nationalNumberPattern>
12968         <exampleNumber>312123456</exampleNumber>
12969       </fixedLine>
12970       <mobile>
12971         <nationalNumberPattern>
12972           (?:
12973             20[0-35]|
12974             5[124-7]\d|
12975             7[07]\d
12976           )\d{6}
12977         </nationalNumberPattern>
12978         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12979         <exampleNumber>700123456</exampleNumber>
12980       </mobile>
12981       <tollFree>
12982         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
12983              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
12984         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
12985         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12986         <exampleNumber>800123456</exampleNumber>
12987       </tollFree>
12988       <!-- No premiumRate information can be found. -->
12989       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
12990     </territory>
12991
12992     <!-- Cambodia -->
12993     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
12994                nationalPrefix="0">
12995       <references>
12996         <sourceUrl>http://www.itu.int/oth/T0202000023/en</sourceUrl>
12997         <sourceUrl>http://en.wikipedia.org/wiki/+855</sourceUrl>
12998       </references>
12999       <availableFormats>
13000         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
13001           <leadingDigits>
13002             1\d[1-9]|
13003             [2-9]
13004           </leadingDigits>
13005           <format>$1 $2 $3</format>
13006         </numberFormat>
13007         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
13008           <leadingDigits>1[89]0</leadingDigits>
13009           <format>$1 $2 $3</format>
13010         </numberFormat>
13011       </availableFormats>
13012       <generalDesc>
13013         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
13014         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13015       </generalDesc>
13016       <fixedLine>
13017         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
13018              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
13019              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
13020              range beginning with 6 seems to include some numbers that are one digit longer as well.
13021              Allowing 238\d{6} and 234[234]\d{4} based on information from Cambodia Yellow Pages.
13022              Note that numbers beginning with 234 are split across two patterns. -->
13023         <nationalNumberPattern>
13024           (?:
13025             2[3-6]|
13026             3[2-6]|
13027             4[2-4]|
13028             [5-7][2-5]
13029           )(?:
13030             [237-9]|
13031             4[56]|
13032             5\d|
13033             6\d?
13034           )\d{5}|
13035           23(?:
13036             4[234]|
13037             8\d{2}
13038           )\d{4}
13039         </nationalNumberPattern>
13040         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13041         <exampleNumber>23756789</exampleNumber>
13042       </fixedLine>
13043       <mobile>
13044         <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
13045              Beeline uses 060.
13046              Mobitel uses 01[1247].
13047              Cellcard uses 0857 and 061.
13048              Extra prefixes found online: 088, 097.
13049              Allowing 9-digit 12, 31, 38 and 76 numbers based on information from Cambodia Yellow
13050              Pages and online search. Allowing 71 based on open-source report and online search. -->
13051         <nationalNumberPattern>
13052           (?:
13053             1(?:
13054               [013-9]|
13055               2\d?
13056             )|
13057             3[18]\d|
13058             6[016-9]|
13059             7(?:
13060               [07-9]|
13061               [16]\d
13062             )|
13063             8(?:
13064               [013-79]|
13065               8\d
13066             )|
13067             9(?:
13068               6\d|
13069               7\d?|
13070               [0-589]
13071             )
13072           )\d{6}
13073         </nationalNumberPattern>
13074         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
13075         <exampleNumber>91234567</exampleNumber>
13076       </mobile>
13077       <tollFree>
13078         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
13079         <nationalNumberPattern>
13080           1800(?:
13081             1\d|
13082             2[019]
13083           )\d{4}
13084         </nationalNumberPattern>
13085         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13086         <exampleNumber>1800123456</exampleNumber>
13087       </tollFree>
13088       <premiumRate>
13089         <nationalNumberPattern>
13090           1900(?:
13091             1\d|
13092             2[09]
13093           )\d{4}
13094         </nationalNumberPattern>
13095         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13096         <exampleNumber>1900123456</exampleNumber>
13097       </premiumRate>
13098     </territory>
13099
13100     <!-- Kiribati -->
13101     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
13102          leading 0 - no numbers online have been found formatted this way, but the ITU document
13103          lists it as a national dialling prefix. -->
13104     <territory id="KI" countryCode="686" internationalPrefix="00"
13105                nationalPrefixForParsing="0">
13106       <references>
13107         <sourceUrl>http://www.itu.int/oth/T0202000071/en</sourceUrl>
13108       </references>
13109       <!-- Numbers should be formatted as a block." -->
13110       <generalDesc>
13111         <nationalNumberPattern>
13112           [2458]\d{4}|
13113           3\d{4,7}|
13114           7\d{7}
13115         </nationalNumberPattern>
13116         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
13117       </generalDesc>
13118       <fixedLine>
13119         <nationalNumberPattern>
13120           (?:
13121             [24]\d|
13122             3[1-9]|
13123             50|
13124             8[0-5]
13125           )\d{3}
13126         </nationalNumberPattern>
13127         <possibleNumberPattern>\d{5}</possibleNumberPattern>
13128         <exampleNumber>31234</exampleNumber>
13129       </fixedLine>
13130       <mobile>
13131         <!-- North Tarawa is listed as 720XXXXX-729XXXXX but considering that this deviates from the
13132              pattern followed by every other place, we are assuming 731XXXXX-732XXXXX for now. -->
13133         <nationalNumberPattern>
13134           7(?:
13135             [24]\d|
13136             3[1-9]|
13137             8[0-5]
13138           )\d{5}
13139         </nationalNumberPattern>
13140         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13141         <exampleNumber>72012345</exampleNumber>
13142       </mobile>
13143       <premiumRate>
13144         <!-- ITU refers to these as "Telemedia and audiotext". -->
13145         <nationalNumberPattern>3001\d{4}</nationalNumberPattern>
13146         <exampleNumber>30010000</exampleNumber>
13147       </premiumRate>
13148     </territory>
13149
13150     <!-- Comoros -->
13151     <territory id="KM" countryCode="269" internationalPrefix="00">
13152       <references>
13153         <sourceUrl>http://www.itu.int/oth/T020200002D/en</sourceUrl>
13154       </references>
13155       <availableFormats>
13156         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
13157           <format>$1 $2 $3</format>
13158         </numberFormat>
13159       </availableFormats>
13160       <generalDesc>
13161         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
13162         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13163       </generalDesc>
13164       <fixedLine>
13165         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
13166              http://www.comorestelecom.km/presentationcdma.php -->
13167         <nationalNumberPattern>
13168           7(?:
13169             6[0-37-9]|
13170             7[0-57-9]
13171           )\d{4}
13172         </nationalNumberPattern>
13173         <exampleNumber>7712345</exampleNumber>
13174       </fixedLine>
13175       <mobile>
13176         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
13177         <exampleNumber>3212345</exampleNumber>
13178       </mobile>
13179       <premiumRate>
13180         <!-- These are referred to as value-added services in the plan and no further information
13181              can be found. -->
13182         <nationalNumberPattern>
13183           (?:
13184             39[01]|
13185             9[01]0
13186           )\d{4}
13187         </nationalNumberPattern>
13188         <exampleNumber>9001234</exampleNumber>
13189       </premiumRate>
13190     </territory>
13191
13192     <!-- Saint Kitts and Nevis -->
13193     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
13194                internationalPrefix="011">
13195       <references>
13196         <sourceUrl>http://www.itu.int/oth/T02020000B0/en</sourceUrl>
13197       </references>
13198       <generalDesc>
13199         <!-- NANPA country - uses US formatting rules -->
13200         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
13201         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13202       </generalDesc>
13203       <fixedLine>
13204         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
13205              of it can be found. -->
13206         <nationalNumberPattern>
13207           869(?:
13208             2(?:
13209               29|
13210               36
13211             )|
13212             302|
13213             4(?:
13214               6[015-9]|
13215               70
13216             )
13217           )\d{4}
13218         </nationalNumberPattern>
13219         <exampleNumber>8692361234</exampleNumber>
13220       </fixedLine>
13221       <mobile>
13222         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
13223         <nationalNumberPattern>
13224           869(?:
13225             5(?:
13226               5[6-8]|
13227               6[5-7]
13228             )|
13229             66\d|
13230             76[02-6]
13231           )\d{4}
13232         </nationalNumberPattern>
13233         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13234         <!-- Example number from the ITU document. -->
13235         <exampleNumber>8697652917</exampleNumber>
13236       </mobile>
13237       <tollFree>
13238         <nationalNumberPattern>
13239           8(?:
13240             00|
13241             44|
13242             55|
13243             66|
13244             77|
13245             88
13246           )[2-9]\d{6}
13247         </nationalNumberPattern>
13248         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13249         <exampleNumber>8002123456</exampleNumber>
13250       </tollFree>
13251       <premiumRate>
13252         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
13253         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13254         <exampleNumber>9002123456</exampleNumber>
13255       </premiumRate>
13256       <personalNumber>
13257         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13258         <nationalNumberPattern>
13259           5(?:
13260             00|
13261             33|
13262             44|
13263             66|
13264             77
13265           )[2-9]\d{6}
13266         </nationalNumberPattern>
13267         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13268         <exampleNumber>5002345678</exampleNumber>
13269       </personalNumber>
13270     </territory>
13271
13272     <!-- Korea, Dem. People's Rep. of -->
13273     <territory id="KP" countryCode="850" internationalPrefix="00|99"
13274                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13275       <references>
13276         <sourceUrl>http://en.wikipedia.org/wiki/%2B850</sourceUrl>
13277       </references>
13278       <availableFormats>
13279         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13280           <leadingDigits>1</leadingDigits>
13281           <format>$1 $2 $3</format>
13282         </numberFormat>
13283         <numberFormat pattern="(\d)(\d{3})(\d{4})">
13284           <leadingDigits>2</leadingDigits>
13285           <format>$1 $2 $3</format>
13286         </numberFormat>
13287         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
13288           <leadingDigits>8</leadingDigits>
13289           <format>$1 $2 $3</format>
13290         </numberFormat>
13291       </availableFormats>
13292       <generalDesc>
13293         <nationalNumberPattern>
13294           1\d{9}|
13295           [28]\d{7}
13296         </nationalNumberPattern>
13297         <possibleNumberPattern>
13298           \d{6,8}|
13299           \d{10}
13300         </possibleNumberPattern>
13301       </generalDesc>
13302       <noInternationalDialling>
13303         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
13304         <nationalNumberPattern>
13305           2(?:
13306             [0-24-9]\d{2}|
13307             3(?:
13308               [0-79]\d|
13309               8[02-9]
13310             )
13311           )\d{4}
13312         </nationalNumberPattern>
13313         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13314         <exampleNumber>23821234</exampleNumber>
13315       </noInternationalDialling>
13316       <fixedLine>
13317         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
13318              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
13319              from overseas. Also, there is conflicting information about the length of fixed-line
13320              numbers, so here we are following Wikipedia. -->
13321         <nationalNumberPattern>
13322           2\d{7}|
13323           85\d{6}
13324         </nationalNumberPattern>
13325         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
13326         <exampleNumber>21234567</exampleNumber>
13327       </fixedLine>
13328       <mobile>
13329         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
13330         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13331         <exampleNumber>1921234567</exampleNumber>
13332       </mobile>
13333     </territory>
13334
13335     <!-- Korea (Rep. of) -->
13336     <!-- Exceptions :
13337         internationalPrefix
13338             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
13339         nationalPrefix
13340             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
13341     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
13342                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
13343                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG"
13344                mobileNumberPortableRegion="true">
13345       <references>
13346         <sourceUrl>http://www.itu.int/oth/T0202000072/en</sourceUrl>
13347         <sourceUrl>http://en.wikipedia.org/wiki/%2B82</sourceUrl>
13348         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2349</sourceUrl>
13349         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2240</sourceUrl>
13350         <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>
13351       </references>
13352       <availableFormats>
13353         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
13354           <leadingDigits>
13355             1(?:
13356               0|
13357               1[19]|
13358               [69]9|
13359               5[458]
13360             )|
13361             [57]0
13362           </leadingDigits>
13363           <leadingDigits>
13364             1(?:
13365               0|
13366               1[19]|
13367               [69]9|
13368               5(?:
13369                 44|
13370                 59|
13371                 8
13372               )
13373             )|
13374             [57]0
13375           </leadingDigits>
13376           <format>$1-$2-$3</format>
13377         </numberFormat>
13378         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
13379           <leadingDigits>
13380             1(?:
13381               [169][2-8]|
13382               [78]|
13383               5[1-4]
13384             )|
13385             [68]0|
13386             [3-6][1-9][1-9]
13387           </leadingDigits>
13388           <leadingDigits>
13389             1(?:
13390               [169][2-8]|
13391               [78]|
13392               5(?:
13393                 [1-3]|
13394                 4[56]
13395               )
13396             )|
13397             [68]0|
13398             [3-6][1-9][1-9]
13399           </leadingDigits>
13400           <format>$1-$2-$3</format>
13401         </numberFormat>
13402         <numberFormat pattern="(\d{3})(\d)(\d{4})">
13403           <leadingDigits>131</leadingDigits>
13404           <leadingDigits>1312</leadingDigits>
13405           <format>$1-$2-$3</format>
13406         </numberFormat>
13407         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
13408           <leadingDigits>131</leadingDigits>
13409           <leadingDigits>131[13-9]</leadingDigits>
13410           <format>$1-$2-$3</format>
13411         </numberFormat>
13412         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13413           <leadingDigits>13[2-9]</leadingDigits>
13414           <format>$1-$2-$3</format>
13415         </numberFormat>
13416         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
13417              limit of what digits may follow the 030, but we ignore that here. These numbers are
13418              actually not supported for validation purposes by the library at the moment as no
13419              online examples can be found, but we leave theme here so formatting continues to work
13420              if they are entered. -->
13421         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
13422           <leadingDigits>30</leadingDigits>
13423           <format>$1-$2-$3-$4</format>
13424         </numberFormat>
13425         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
13426           <leadingDigits>2[1-9]</leadingDigits>
13427           <format>$1-$2-$3</format>
13428         </numberFormat>
13429         <numberFormat pattern="(\d)(\d{3,4})">
13430           <leadingDigits>21[0-46-9]</leadingDigits>
13431           <format>$1-$2</format>
13432         </numberFormat>
13433         <numberFormat pattern="(\d{2})(\d{3,4})">
13434           <leadingDigits>[3-6][1-9]1</leadingDigits>
13435           <leadingDigits>
13436             [3-6][1-9]1(?:
13437               [0-46-9]
13438             )
13439           </leadingDigits>
13440           <format>$1-$2</format>
13441         </numberFormat>
13442         <!-- Company numbers. -->
13443         <numberFormat pattern="(\d{4})(\d{4})"
13444           nationalPrefixFormattingRule="$FG">
13445           <leadingDigits>
13446             1(?:
13447               5[46-9]|
13448               6[04678]|
13449               8[0579]
13450             )
13451           </leadingDigits>
13452           <leadingDigits>
13453             1(?:
13454               5(?:
13455                 44|
13456                 66|
13457                 77|
13458                 88|
13459                 99
13460               )|
13461               6(?:
13462                 00|
13463                 44|
13464                 6[16]|
13465                 70|
13466                 88
13467               )|
13468               8(?:
13469                 00|
13470                 55|
13471                 77|
13472                 99
13473               )
13474             )
13475           </leadingDigits>
13476           <format>$1-$2</format>
13477         </numberFormat>
13478       </availableFormats>
13479       <generalDesc>
13480         <nationalNumberPattern>
13481           [1-7]\d{3,9}|
13482           8\d{8}
13483         </nationalNumberPattern>
13484         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13485       </generalDesc>
13486       <fixedLine>
13487         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
13488              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
13489              starting with 1 based on evidence of real numbers found online. -->
13490         <nationalNumberPattern>
13491           (?:
13492             2|
13493             3[1-3]|
13494             [46][1-4]|
13495             5[1-5]
13496           )(?:
13497             1\d{2,3}|
13498             [1-9]\d{6,7}
13499           )
13500         </nationalNumberPattern>
13501         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13502         <exampleNumber>22123456</exampleNumber>
13503       </fixedLine>
13504       <mobile>
13505         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
13506         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13507         <exampleNumber>1000000000</exampleNumber>
13508       </mobile>
13509       <pager>
13510         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
13511         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13512         <exampleNumber>1523456789</exampleNumber>
13513       </pager>
13514       <tollFree>
13515         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
13516         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13517         <exampleNumber>801234567</exampleNumber>
13518       </tollFree>
13519       <!-- The information below is provided by a Korean person. -->
13520       <premiumRate>
13521         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
13522         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13523         <exampleNumber>602345678</exampleNumber>
13524       </premiumRate>
13525       <personalNumber>
13526         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
13527         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13528         <exampleNumber>5012345678</exampleNumber>
13529       </personalNumber>
13530       <voip>
13531         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
13532         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13533         <exampleNumber>7012345678</exampleNumber>
13534       </voip>
13535       <uan>
13536         <!-- Prefix 18 added from numbers found online. -->
13537         <nationalNumberPattern>
13538           1(?:
13539             5(?:
13540               44|
13541               66|
13542               77|
13543               88|
13544               99
13545             )|
13546             6(?:
13547               00|
13548               44|
13549               6[16]|
13550               70|
13551               88
13552             )|
13553             8(?:
13554               00|
13555               55|
13556               77|
13557               99
13558             )
13559           )\d{4}
13560         </nationalNumberPattern>
13561         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13562         <exampleNumber>15441234</exampleNumber>
13563       </uan>
13564     </territory>
13565
13566     <!-- Kuwait -->
13567     <territory id="KW" countryCode="965" internationalPrefix="00" mobileNumberPortableRegion="true">
13568       <references>
13569         <sourceUrl>http://www.itu.int/oth/T0202000073/en</sourceUrl>
13570       </references>
13571       <availableFormats>
13572         <!-- Format is from ITU. -->
13573         <numberFormat pattern="(\d{4})(\d{3,4})">
13574           <leadingDigits>
13575             [126]|
13576             9[04-9]
13577           </leadingDigits>
13578           <format>$1 $2</format>
13579         </numberFormat>
13580         <numberFormat pattern="(\d{3})(\d{5})">
13581           <leadingDigits>
13582             5[015]|
13583             92
13584           </leadingDigits>
13585           <format>$1 $2</format>
13586         </numberFormat>
13587       </availableFormats>
13588       <generalDesc>
13589         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
13590         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13591       </generalDesc>
13592       <fixedLine>
13593         <nationalNumberPattern>
13594           (?:
13595             18\d|
13596             2(?:
13597               [23]\d{2}|
13598               4(?:
13599                 [1-35-9]\d|
13600                 44
13601               )|
13602               5(?:
13603                 0[034]|
13604                 [2-46]\d|
13605                 5[1-3]|
13606                 7[1-7]
13607               )
13608             )
13609           )\d{4}
13610         </nationalNumberPattern>
13611         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13612         <exampleNumber>22345678</exampleNumber>
13613       </fixedLine>
13614       <mobile>
13615         <nationalNumberPattern>
13616           (?:
13617             5(?:
13618               [05]\d|
13619               1[0-7]
13620             )|
13621             6(?:
13622               0[034679]|
13623               5[015-9]|
13624               6\d|
13625               7[067]|
13626               9[0369]
13627             )|
13628             9(?:
13629               0[09]|
13630               22|
13631               4[049]|
13632               55|
13633               6[069]|
13634               [79]\d|
13635               8[07-9]
13636             )
13637           )\d{5}
13638         </nationalNumberPattern>
13639         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13640         <exampleNumber>50012345</exampleNumber>
13641       </mobile>
13642       <!-- No tollFree or premiumRate information can be found. -->
13643     </territory>
13644
13645     <!-- Cayman Islands -->
13646     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
13647                internationalPrefix="011">
13648       <references>
13649         <sourceUrl>http://www.itu.int/oth/T0202000027/en</sourceUrl>
13650       </references>
13651       <generalDesc>
13652         <!-- NANPA country - uses US formatting rules -->
13653         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
13654         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13655       </generalDesc>
13656       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
13657            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
13658       <fixedLine>
13659         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
13660              as per numbers found online and their website http://www.logic.ky. -->
13661         <nationalNumberPattern>
13662           345(?:
13663             2(?:
13664               22|
13665               44
13666             )|
13667             444|
13668             6(?:
13669               23|
13670               38|
13671               40
13672             )|
13673             7(?:
13674               4[35-79]|
13675               6[6-9]|
13676               77
13677             )|
13678             8(?:
13679               00|
13680               1[45]|
13681               25|
13682               [48]8
13683             )|
13684             9(?:
13685               14|
13686               4[035-9]
13687             )
13688           )\d{4}
13689         </nationalNumberPattern>
13690         <exampleNumber>3452221234</exampleNumber>
13691       </fixedLine>
13692       <mobile>
13693         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
13694              Most central office codes that were surrendered have not been included, with the
13695              exception of 546 where numbers have been found. -->
13696         <nationalNumberPattern>
13697           345(?:
13698             32[1-9]|
13699             5(?:
13700               1[67]|
13701               2[5-7]|
13702               4[6-8]|
13703               76
13704             )|
13705             9(?:
13706               1[67]|
13707               2[3-9]|
13708               3[689]
13709             )
13710           )\d{4}
13711         </nationalNumberPattern>
13712         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13713         <exampleNumber>3453231234</exampleNumber>
13714       </mobile>
13715       <pager>
13716         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
13717         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13718         <exampleNumber>3458491234</exampleNumber>
13719       </pager>
13720       <tollFree>
13721         <nationalNumberPattern>
13722           8(?:
13723             00|
13724             44|
13725             55|
13726             66|
13727             77|
13728             88
13729           )[2-9]\d{6}
13730         </nationalNumberPattern>
13731         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13732         <exampleNumber>8002345678</exampleNumber>
13733       </tollFree>
13734       <premiumRate>
13735         <nationalNumberPattern>
13736           900[2-9]\d{6}|
13737           345976\d{4}
13738         </nationalNumberPattern>
13739         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13740         <exampleNumber>9002345678</exampleNumber>
13741       </premiumRate>
13742       <personalNumber>
13743         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13744         <nationalNumberPattern>
13745           5(?:
13746             00|
13747             33|
13748             44|
13749             66|
13750             77
13751           )[2-9]\d{6}
13752         </nationalNumberPattern>
13753         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13754         <exampleNumber>5002345678</exampleNumber>
13755       </personalNumber>
13756     </territory>
13757
13758     <!-- Kazakhstan -->
13759     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
13760                internationalPrefix="810" nationalPrefix="8">
13761       <references>
13762         <sourceUrl>http://www.itu.int/oth/T020200006F/en</sourceUrl>
13763       </references>
13764        <!-- Formatting rules obtained from Russia. -->
13765       <generalDesc>
13766         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
13767              determining the country is faster. -->
13768         <nationalNumberPattern>
13769           (?:
13770             33\d|
13771             7\d{2}|
13772             80[09]
13773           )\d{7}
13774         </nationalNumberPattern>
13775         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13776       </generalDesc>
13777       <noInternationalDialling>
13778         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13779         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13780         <exampleNumber>7511234567</exampleNumber>
13781       </noInternationalDialling>
13782       <fixedLine>
13783         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
13784              22), which is within Kazakhstan but in fact rented and administered by Russia at the
13785              moment. -->
13786         <nationalNumberPattern>
13787           33622\d{5}|
13788           7(?:
13789             1(?:
13790               0(?:
13791                 [23]\d|
13792                 4[023]|
13793                 59|
13794                 63
13795               )|
13796               1(?:
13797                 [23]\d|
13798                 4[0-79]|
13799                 59
13800               )|
13801               2(?:
13802                 [23]\d|
13803                 59
13804               )|
13805               3(?:
13806                 2\d|
13807                 3[1-79]|
13808                 4[0-35-9]|
13809                 59
13810               )|
13811               4(?:
13812                 2\d|
13813                 3[013-79]|
13814                 4[0-8]|
13815                 5[1-79]
13816               )|
13817               5(?:
13818                 2\d|
13819                 3[1-8]|
13820                 4[1-7]|
13821                 59
13822               )|
13823               6(?:
13824                 [234]\d|
13825                 5[19]|
13826                 61
13827               )|
13828               72\d|
13829               8(?:
13830                 [27]\d|
13831                 3[1-46-9]|
13832                 4[0-5]
13833               )
13834             )|
13835             2(?:
13836               1(?:
13837                 [23]\d|
13838                 4[46-9]|
13839                 5[3469]
13840               )|
13841               2(?:
13842                 2\d|
13843                 3[0679]|
13844                 46|
13845                 5[12679]
13846               )|
13847               3(?:
13848                 [234]\d|
13849                 5[139]
13850               )|
13851               4(?:
13852                 2\d|
13853                 3[1235-9]|
13854                 59
13855               )|
13856               5(?:
13857                 [23]\d|
13858                 4[01246-8]|
13859                 59|
13860                 61
13861               )|
13862               6(?:
13863                 2\d|
13864                 3[1-9]|
13865                 4[0-4]|
13866                 59
13867               )|
13868               7(?:
13869                 [237]\d|
13870                 40|
13871                 5[279]
13872               )|
13873               8(?:
13874                 [23]\d|
13875                 4[0-3]|
13876                 59
13877               )|
13878               9(?:
13879                 2\d|
13880                 3[124578]|
13881                 59
13882               )
13883             )
13884           )\d{5}
13885         </nationalNumberPattern>
13886         <exampleNumber>7123456789</exampleNumber>
13887       </fixedLine>
13888       <mobile>
13889         <!-- Added 708 for Altel, 776 for Beeline, 747 for Tele2. -->
13890         <nationalNumberPattern>
13891           7(?:
13892             0[012578]|
13893             47|
13894             6[02-4]|
13895             7[15-8]|
13896             85
13897           )\d{7}
13898         </nationalNumberPattern>
13899         <exampleNumber>7710009998</exampleNumber>
13900       </mobile>
13901       <tollFree>
13902         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
13903         <exampleNumber>8001234567</exampleNumber>
13904       </tollFree>
13905       <premiumRate>
13906         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
13907         <exampleNumber>8091234567</exampleNumber>
13908       </premiumRate>
13909       <voip>
13910         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13911         <exampleNumber>7511234567</exampleNumber>
13912       </voip>
13913     </territory>
13914
13915     <!-- Lao People's Dem. Rep. -->
13916     <territory id="LA" countryCode="856" internationalPrefix="00"
13917                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13918       <references>
13919         <!-- Seems incomplete -->
13920         <sourceUrl>http://www.itu.int/oth/T0202000075/en</sourceUrl>
13921         <sourceUrl>http://en.wikipedia.org/wiki/+856</sourceUrl>
13922       </references>
13923       <availableFormats>
13924         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
13925           <leadingDigits>20</leadingDigits>
13926           <format>$1 $2 $3 $4</format>
13927         </numberFormat>
13928         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
13929           <leadingDigits>
13930             2[13]|
13931             3[14]|
13932             [4-8]
13933           </leadingDigits>
13934           <format>$1 $2 $3</format>
13935         </numberFormat>
13936         <numberFormat pattern="(30)(\d{2})(\d{2})(\d{3})">
13937           <leadingDigits>30</leadingDigits>
13938           <format>$1 $2 $3 $4</format>
13939         </numberFormat>
13940       </availableFormats>
13941       <generalDesc>
13942         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
13943         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13944       </generalDesc>
13945       <fixedLine>
13946         <!-- The Lonely Planet says that newer WIN phones (fixed phones without a physical landline)
13947              start with 030 (and are longer). There are plenty of examples online. -->
13948         <nationalNumberPattern>
13949           (?:
13950             2[13]|
13951             3(?:
13952               0\d|
13953               [14]
13954             )|
13955             [5-7][14]|
13956             41|
13957             8[1468]
13958           )\d{6}
13959         </nationalNumberPattern>
13960         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13961         <exampleNumber>21212862</exampleNumber>
13962       </fixedLine>
13963       <mobile>
13964         <!-- Adding 202[89], 205[89], 207[68] and 209[15-7] from numbers found online. -->
13965         <nationalNumberPattern>
13966           20(?:
13967             2[2389]|
13968             5[4-689]|
13969             7[6-8]|
13970             9[15-9]
13971           )\d{6}
13972         </nationalNumberPattern>
13973         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13974         <exampleNumber>2023123456</exampleNumber>
13975       </mobile>
13976       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
13977     </territory>
13978
13979     <!-- Lebanon -->
13980     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
13981       <references>
13982         <sourceUrl>http://www.itu.int/oth/T0202000077/en</sourceUrl>
13983         <sourceUrl>http://en.wikipedia.org/wiki/%2B961</sourceUrl>
13984       </references>
13985       <availableFormats>
13986         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
13987           <leadingDigits>
13988             [13-6]|
13989             7(?:
13990               [2-579]|
13991               62|
13992               8[0-7]
13993             )|
13994             [89][2-9]
13995             </leadingDigits>
13996           <format>$1 $2 $3</format>
13997         </numberFormat>
13998         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
13999           <leadingDigits>
14000             [89][01]|
14001             7(?:
14002               [019]|
14003               6[013-9]|
14004               8[89]
14005             )
14006           </leadingDigits>
14007           <format>$1 $2 $3</format>
14008         </numberFormat>
14009       </availableFormats>
14010       <generalDesc>
14011         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
14012         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14013       </generalDesc>
14014       <fixedLine>
14015         <!-- The ITU document from October 2012 seems to have accidentally dropped the 79 prefix for
14016              fixed-line numbers, which had been in the version from July 2012. We consider these
14017              valid since we successfully dialed such a number in July 2014. -->
14018         <nationalNumberPattern>
14019           (?:
14020             [14-6]\d{2}|
14021             7(?:
14022               [2-579]\d|
14023               62|
14024               8[0-7]
14025             )|
14026             [89][2-9]\d
14027           )\d{4}
14028         </nationalNumberPattern>
14029         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14030         <exampleNumber>1123456</exampleNumber>
14031       </fixedLine>
14032       <mobile>
14033         <!-- We only validate the first three digits here, since the ranges are growing rapidly.
14034              The 79[02-9] prefixes were added from bug reports and numbers found online. -->
14035         <nationalNumberPattern>
14036           (?:
14037             3\d|
14038             7(?:
14039               [019]\d|
14040               6[013-9]|
14041               8[89]
14042             )
14043           )\d{5}
14044         </nationalNumberPattern>
14045         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14046         <exampleNumber>71123456</exampleNumber>
14047       </mobile>
14048       <premiumRate>
14049         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
14050         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14051         <exampleNumber>90123456</exampleNumber>
14052       </premiumRate>
14053       <sharedCost>
14054         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
14055         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14056         <exampleNumber>80123456</exampleNumber>
14057       </sharedCost>
14058     </territory>
14059
14060     <!-- Saint Lucia -->
14061     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
14062                internationalPrefix="011">
14063       <references>
14064         <sourceUrl>http://www.itu.int/oth/T02020000B1/en</sourceUrl>
14065       </references>
14066       <generalDesc>
14067         <!-- NANPA country - uses US formatting rules -->
14068         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
14069         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
14070       </generalDesc>
14071       <fixedLine>
14072         <!-- Adding 430 since numbers have been found with these prefixes online. -->
14073         <nationalNumberPattern>
14074           758(?:
14075             4(?:
14076               30|
14077               5[0-9]|
14078               6[2-9]|
14079               8[0-2]
14080             )|
14081             57[0-2]|
14082             638
14083           )\d{4}
14084         </nationalNumberPattern>
14085         <exampleNumber>7584305678</exampleNumber>
14086       </fixedLine>
14087       <mobile>
14088         <nationalNumberPattern>
14089           758(?:
14090             28[4-7]|
14091             384|
14092             4(?:
14093               6[01]|
14094               8[4-9]
14095             )|
14096             5(?:
14097               1[89]|
14098               20|
14099               84
14100             )|
14101             7(?:
14102               1[2-9]|
14103               2[0-8]
14104             )
14105           )\d{4}
14106         </nationalNumberPattern>
14107         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14108         <exampleNumber>7582845678</exampleNumber>
14109       </mobile>
14110       <tollFree>
14111         <nationalNumberPattern>
14112           8(?:
14113             00|
14114             44|
14115             55|
14116             66|
14117             77|
14118             88
14119           )[2-9]\d{6}
14120         </nationalNumberPattern>
14121         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14122         <exampleNumber>8002123456</exampleNumber>
14123       </tollFree>
14124       <premiumRate>
14125         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
14126         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14127         <exampleNumber>9002123456</exampleNumber>
14128       </premiumRate>
14129       <personalNumber>
14130         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
14131         <nationalNumberPattern>
14132           5(?:
14133             00|
14134             33|
14135             44|
14136             66|
14137             77
14138           )[2-9]\d{6}
14139         </nationalNumberPattern>
14140         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14141         <exampleNumber>5002345678</exampleNumber>
14142       </personalNumber>
14143     </territory>
14144
14145     <!-- Liechtenstein -->
14146     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
14147     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
14148       <references>
14149         <sourceUrl>http://www.llv.li/#/11193</sourceUrl>
14150         <sourceUrl>https://www.itu.int/oth/T020200007B/en</sourceUrl>
14151       </references>
14152       <availableFormats>
14153         <!-- Some different patterns for tollfree and shared cost numbers may be found by searching
14154              for "Mehrwertnummer" at http://www.telecom.li. -->
14155         <!-- Number format for National mobile services ,  Fixed line , Toll Free , uan and Premium rate services -->
14156         <numberFormat pattern="(\d{3})(\d{4})">
14157           <leadingDigits>[23789]</leadingDigits>
14158           <format>$1 $2</format>
14159         </numberFormat>
14160         <!-- Number format for International mobile services -->
14161         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14162           <leadingDigits>6[56]</leadingDigits>
14163           <format>$1 $2 $3</format>
14164         </numberFormat>
14165         <!-- Number format for Voicemail services -->
14166         <numberFormat pattern="(69)(7\d{2})(\d{4})">
14167           <leadingDigits>697</leadingDigits>
14168           <format>$1 $2 $3</format>
14169         </numberFormat>
14170       </availableFormats>
14171       <generalDesc>
14172         <nationalNumberPattern>
14173           6\d{8}|
14174           [23789]\d{6}
14175         </nationalNumberPattern>
14176         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14177       </generalDesc>
14178       <fixedLine>
14179         <nationalNumberPattern>
14180           (?:
14181             2(?:
14182               01|
14183               1[27]|
14184               3\d|
14185               6[02-578]|
14186               96
14187             )|
14188             3(?:
14189               7[0135-7]|
14190               8[048]|
14191               9[0269]
14192             )
14193           )\d{4}
14194         </nationalNumberPattern>
14195         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14196         <exampleNumber>2345678</exampleNumber>
14197       </fixedLine>
14198       <mobile>
14199         <nationalNumberPattern>
14200           6(?:
14201             51[01]|
14202             6(?:
14203               0[0-6]|
14204               2[016-9]|
14205               39
14206             )
14207           )\d{5}|
14208           7(?:
14209             [37-9]\d|
14210             42|
14211             56
14212           )\d{4}
14213         </nationalNumberPattern>
14214         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14215         <exampleNumber>660234567</exampleNumber>
14216       </mobile>
14217       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
14218            even though it doesn't appear in the plan. -->
14219       <tollFree>
14220         <nationalNumberPattern>
14221           80(?:
14222             02[28]|
14223             9\d{2}
14224           )\d{2}
14225         </nationalNumberPattern>
14226         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14227         <exampleNumber>8002222</exampleNumber>
14228       </tollFree>
14229       <premiumRate>
14230         <nationalNumberPattern>
14231           90(?:
14232             02[258]|
14233             1(?:
14234               23|
14235               3[14]
14236             )|
14237             66[136]
14238           )\d{2}
14239         </nationalNumberPattern>
14240         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14241         <exampleNumber>9002222</exampleNumber>
14242       </premiumRate>
14243       <uan>
14244         <nationalNumberPattern>
14245           870(?:
14246             28|
14247             87
14248           )\d{2}
14249         </nationalNumberPattern>
14250         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14251         <exampleNumber>8702812</exampleNumber>
14252       </uan>
14253       <voicemail>
14254         <nationalNumberPattern>
14255           697(?:
14256             42|
14257             56|
14258             [7-9]\d
14259           )\d{4}
14260         </nationalNumberPattern>
14261         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14262         <exampleNumber>697861234</exampleNumber>
14263       </voicemail>
14264     </territory>
14265
14266     <!-- Sri Lanka -->
14267     <territory id="LK" countryCode="94" internationalPrefix="00"
14268                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14269       <references>
14270         <sourceUrl>http://en.wikipedia.org/wiki/%2B94</sourceUrl>
14271         <sourceUrl>http://www.itu.int/oth/T02020000C3/en</sourceUrl>
14272       </references>
14273       <availableFormats>
14274         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
14275           <leadingDigits>[1-689]</leadingDigits>
14276           <format>$1 $2 $3</format>
14277         </numberFormat>
14278         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14279           <leadingDigits>7</leadingDigits>
14280           <format>$1 $2 $3</format>
14281         </numberFormat>
14282       </availableFormats>
14283       <generalDesc>
14284         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
14285         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14286       </generalDesc>
14287       <fixedLine>
14288         <nationalNumberPattern>
14289           (?:
14290             [189]1|
14291             2[13-7]|
14292             3[1-8]|
14293             4[157]|
14294             5[12457]|
14295             6[35-7]
14296           )[2-57]\d{6}
14297         </nationalNumberPattern>
14298         <exampleNumber>112345678</exampleNumber>
14299       </fixedLine>
14300       <mobile>
14301         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
14302         <!-- Adding Prefix 702 and 703 based on update from Mobitel which has verified these
14303              prefixes to be correct. -->
14304         <nationalNumberPattern>7[0125-8]\d{7}</nationalNumberPattern>
14305         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14306         <exampleNumber>712345678</exampleNumber>
14307       </mobile>
14308     </territory>
14309
14310     <!-- Liberia -->
14311     <territory id="LR" countryCode="231" internationalPrefix="00"
14312                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14313       <references>
14314         <sourceUrl>http://www.itu.int/oth/T0202000079/en</sourceUrl>
14315       </references>
14316       <availableFormats>
14317         <!-- Formatting from Ministry of Agriculture,
14318         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
14319         <numberFormat pattern="(2\d)(\d{3})(\d{3})">
14320           <leadingDigits>2</leadingDigits>
14321           <format>$1 $2 $3</format>
14322         </numberFormat>
14323         <numberFormat pattern="([79]\d{2})(\d{3})(\d{3})">
14324           <leadingDigits>[79]</leadingDigits>
14325           <format>$1 $2 $3</format>
14326         </numberFormat>
14327         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
14328           <leadingDigits>[4-6]</leadingDigits>
14329           <format>$1 $2 $3</format>
14330         </numberFormat>
14331         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14332           <leadingDigits>[38]</leadingDigits>
14333           <format>$1 $2 $3</format>
14334         </numberFormat>
14335       </availableFormats>
14336       <generalDesc>
14337         <nationalNumberPattern>
14338           2\d{7}|
14339           [37-9]\d{8}|
14340           [45]\d{6}
14341         </nationalNumberPattern>
14342         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14343       </generalDesc>
14344       <fixedLine>
14345         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14346         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14347         <exampleNumber>21234567</exampleNumber>
14348       </fixedLine>
14349       <mobile>
14350         <!-- West Africa Telecom seems to be a mobile company from their website. Adding Atlantic
14351              Wireless from the document, even though from online news reports it is not clear they
14352              are still operating. -->
14353         <nationalNumberPattern>
14354           (?:
14355             330\d|
14356             4[67]|
14357             5\d|
14358             77\d{2}|
14359             88\d{2}|
14360             994\d
14361           )\d{5}
14362         </nationalNumberPattern>
14363         <exampleNumber>770123456</exampleNumber>
14364       </mobile>
14365       <premiumRate>
14366         <!-- Telelinks and Interactive media service are listed under premium rate. -->
14367         <nationalNumberPattern>90[03]\d{6}</nationalNumberPattern>
14368         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14369         <exampleNumber>900123456</exampleNumber>
14370       </premiumRate>
14371       <voip>
14372         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
14373              say they are involved in the VoIP sector. Adding WASSCOM and Atlantic Realty &
14374              Investment Corporation here as well; no numbers can be found online, nor company
14375              information. -->
14376         <nationalNumberPattern>
14377           332(?:
14378             0[02]|
14379             5\d
14380           )\d{4}
14381         </nationalNumberPattern>
14382         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14383         <exampleNumber>332001234</exampleNumber>
14384       </voip>
14385     </territory>
14386
14387     <!-- Lesotho -->
14388     <territory id="LS" countryCode="266" internationalPrefix="00">
14389       <references>
14390         <sourceUrl>http://www.itu.int/oth/T0202000078/en</sourceUrl>
14391       </references>
14392       <availableFormats>
14393         <!-- Formatting following yellow pages: http://www.yellowpages.co.ls -->
14394         <numberFormat pattern="(\d{4})(\d{4})">
14395           <format>$1 $2</format>
14396         </numberFormat>
14397       </availableFormats>
14398       <generalDesc>
14399         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
14400         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14401       </generalDesc>
14402       <fixedLine>
14403         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14404         <exampleNumber>22123456</exampleNumber>
14405       </fixedLine>
14406       <mobile>
14407         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
14408         <exampleNumber>50123456</exampleNumber>
14409       </mobile>
14410       <tollFree>
14411         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
14412         <exampleNumber>80021234</exampleNumber>
14413       </tollFree>
14414     </territory>
14415
14416     <!-- Lithuania -->
14417     <!-- Note that Lithuania is switching to a national prefix of 0. We support
14418          both 0 and 8 when parsing until this switch is complete. -->
14419     <territory id="LT" countryCode="370" internationalPrefix="00"
14420                nationalPrefix="8" nationalPrefixForParsing="[08]"
14421                nationalPrefixFormattingRule="($NP-$FG)"
14422                nationalPrefixOptionalWhenFormatting="true" mobileNumberPortableRegion="true">
14423       <references>
14424         <sourceUrl>http://www.itu.int/oth/T020200007C/en</sourceUrl>
14425       </references>
14426       <!-- National Prefix formatting rule from http://www.yellowpages.lt -->
14427       <availableFormats>
14428         <!-- Two-digit area codes -->
14429         <numberFormat pattern="([34]\d)(\d{6})">
14430           <leadingDigits>
14431             37|
14432             4(?:
14433               1|
14434               5[45]|
14435               6[2-4]
14436             )
14437           </leadingDigits>
14438           <format>$1 $2</format>
14439         </numberFormat>
14440         <!-- Three-digit area codes -->
14441         <numberFormat pattern="([3-6]\d{2})(\d{5})">
14442           <leadingDigits>
14443             3[148]|
14444             4(?:
14445               [24]|
14446               6[09]
14447             )|
14448             528|
14449             6
14450           </leadingDigits>
14451           <format>$1 $2</format>
14452         </numberFormat>
14453         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
14454           nationalPrefixFormattingRule="$NP $FG">
14455           <leadingDigits>[7-9]</leadingDigits>
14456           <format>$1 $2 $3</format>
14457         </numberFormat>
14458         <numberFormat pattern="(5)(2\d{2})(\d{4})">
14459           <leadingDigits>52[0-79]</leadingDigits>
14460           <format>$1 $2 $3</format>
14461         </numberFormat>
14462       </availableFormats>
14463       <generalDesc>
14464         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
14465         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14466       </generalDesc>
14467       <fixedLine>
14468         <nationalNumberPattern>
14469           (?:
14470             3[1478]|
14471             4[124-6]|
14472             52
14473           )\d{6}
14474         </nationalNumberPattern>
14475         <exampleNumber>31234567</exampleNumber>
14476       </fixedLine>
14477       <mobile>
14478         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
14479         <exampleNumber>61234567</exampleNumber>
14480       </mobile>
14481       <tollFree>
14482         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14483         <exampleNumber>80012345</exampleNumber>
14484       </tollFree>
14485       <premiumRate>
14486         <nationalNumberPattern>
14487           9(?:
14488             0[0239]|
14489             10
14490           )\d{5}
14491         </nationalNumberPattern>
14492         <exampleNumber>90012345</exampleNumber>
14493       </premiumRate>
14494       <personalNumber>
14495         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
14496         <exampleNumber>70012345</exampleNumber>
14497       </personalNumber>
14498       <sharedCost>
14499         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14500         <exampleNumber>80812345</exampleNumber>
14501       </sharedCost>
14502       <uan>
14503         <!-- Including government service numbers here too. -->
14504         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
14505         <exampleNumber>70712345</exampleNumber>
14506       </uan>
14507     </territory>
14508
14509     <!-- Luxembourg -->
14510     <territory id="LU" countryCode="352" internationalPrefix="00"
14511                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
14512                carrierCodeFormattingRule="$CC $FG" mobileNumberPortableRegion="true">
14513       <references>
14514         <sourceUrl>http://www.ilr.public.lu/communications_electroniques/numerotation/index.html</sourceUrl>
14515       </references>
14516       <availableFormats>
14517         <!-- Patterns overlap because of variable number length. -->
14518         <numberFormat pattern="(\d{2})(\d{3})">
14519           <leadingDigits>
14520             [2-5]|
14521             7[1-9]|
14522             [89](?:
14523               [1-9]|
14524               0[2-9]
14525             )
14526           </leadingDigits>
14527           <format>$1 $2</format>
14528         </numberFormat>
14529         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
14530           <leadingDigits>
14531             [2-5]|
14532             7[1-9]|
14533             [89](?:
14534               [1-9]|
14535               0[2-9]
14536             )
14537           </leadingDigits>
14538           <format>$1 $2 $3</format>
14539         </numberFormat>
14540         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
14541           <leadingDigits>20</leadingDigits>
14542           <format>$1 $2 $3</format>
14543         </numberFormat>
14544         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
14545              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
14546              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
14547              -->
14548         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
14549           <leadingDigits>
14550             2(?:
14551               [0367]|
14552               4[3-8]
14553             )
14554           </leadingDigits>
14555           <format>$1 $2 $3 $4</format>
14556         </numberFormat>
14557         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
14558           <leadingDigits>20</leadingDigits>
14559           <format>$1 $2 $3 $4</format>
14560         </numberFormat>
14561         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
14562           <leadingDigits>
14563             2(?:
14564               [0367]|
14565               4[3-8]
14566             )
14567           </leadingDigits>
14568           <format>$1 $2 $3 $4 $5</format>
14569         </numberFormat>
14570         <!-- We consider numbers starting with 240 and 249 valid, but we do not format them, as we
14571              found no examples of such numbers online.
14572         -->
14573         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
14574           <leadingDigits>
14575             2(?:
14576               [12589]|
14577               4[12]
14578             )|
14579             [3-5]|
14580             7[1-9]|
14581             8(?:
14582               [1-9]|
14583               0[2-9]
14584             )|
14585             9(?:
14586               [1-9]|
14587               0[2-46-9]
14588             )
14589           </leadingDigits>
14590           <format>$1 $2 $3 $4</format>
14591         </numberFormat>
14592         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
14593           <leadingDigits>
14594             70|
14595             80[01]|
14596             90[015]
14597           </leadingDigits>
14598           <format>$1 $2 $3</format>
14599         </numberFormat>
14600         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14601           <leadingDigits>6</leadingDigits>
14602           <format>$1 $2 $3</format>
14603         </numberFormat>
14604       </availableFormats>
14605       <generalDesc>
14606         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
14607              necessary since the numbers have a variable number length. -->
14608         <nationalNumberPattern>
14609           [24-9]\d{3,10}|
14610           3(?:
14611             [0-46-9]\d{2,9}|
14612             5[013-9]\d{1,8}
14613           )
14614         </nationalNumberPattern>
14615         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
14616       </generalDesc>
14617       <fixedLine>
14618         <!-- Even though 20 is listed in the fixed-line plan, other documentation clarify that it is
14619              for VOIP. Furthermore, even though the plan says that numbers beginning with 2[346-8]
14620              by default are 8 digits, from information found online it seems that they can actually
14621              be 4 up to 11 digits long. -->
14622         <nationalNumberPattern>
14623           (?:
14624             2[2-9]\d{2,9}
14625             |
14626             (?:
14627               [3457]\d{2}|
14628               8(?:
14629                 0[2-9]|
14630                 [13-9]\d
14631               )|
14632               9(?:
14633                 0[89]|
14634                 [2-579]\d
14635               )
14636             )\d{1,8}
14637           )
14638         </nationalNumberPattern>
14639         <exampleNumber>27123456</exampleNumber>
14640       </fixedLine>
14641       <mobile>
14642         <nationalNumberPattern>6[2679][18]\d{6}</nationalNumberPattern>
14643         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14644         <exampleNumber>628123456</exampleNumber>
14645       </mobile>
14646       <tollFree>
14647         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14648         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14649         <exampleNumber>80012345</exampleNumber>
14650       </tollFree>
14651       <premiumRate>
14652         <nationalNumberPattern>90[015]\d{5}</nationalNumberPattern>
14653         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14654         <exampleNumber>90012345</exampleNumber>
14655       </premiumRate>
14656       <sharedCost>
14657         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
14658         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14659         <exampleNumber>80112345</exampleNumber>
14660       </sharedCost>
14661       <personalNumber>
14662         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
14663         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14664         <exampleNumber>70123456</exampleNumber>
14665       </personalNumber>
14666       <voip>
14667         <!-- The document says the normal length will be 8 digits, but many numbers found online
14668              deviate from that. The prefixes from the following document have been added:
14669              http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
14670              201 has also been added since a diallable number was found online, and it says in
14671              http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
14672              numbers will be issued that begin with 200, numbers beginning with 201 will be issued
14673              one at a time, and 202-209 in blocks. -->
14674         <nationalNumberPattern>
14675           20(?:
14676             1\d{5}|
14677             [2-689]\d{1,7}
14678           )
14679         </nationalNumberPattern>
14680         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
14681         <exampleNumber>20201234</exampleNumber>
14682       </voip>
14683     </territory>
14684
14685     <!-- Latvia -->
14686     <territory id="LV" countryCode="371" internationalPrefix="00" mobileNumberPortableRegion="true">
14687       <references>
14688         <sourceUrl>http://www.itu.int/oth/T0202000076/en</sourceUrl>
14689         <sourceUrl>http://en.wikipedia.org/wiki/+371</sourceUrl>
14690       </references>
14691       <availableFormats>
14692         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
14693           <format>$1 $2 $3</format>
14694         </numberFormat>
14695       </availableFormats>
14696       <generalDesc>
14697         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
14698         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14699       </generalDesc>
14700       <fixedLine>
14701         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
14702         <exampleNumber>63123456</exampleNumber>
14703       </fixedLine>
14704       <mobile>
14705         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14706         <exampleNumber>21234567</exampleNumber>
14707       </mobile>
14708       <tollFree>
14709         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
14710         <exampleNumber>80123456</exampleNumber>
14711       </tollFree>
14712       <premiumRate>
14713         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14714         <exampleNumber>90123456</exampleNumber>
14715       </premiumRate>
14716       <sharedCost>
14717         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
14718         <exampleNumber>81123456</exampleNumber>
14719       </sharedCost>
14720     </territory>
14721
14722     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
14723     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
14724          and itu.int. The new area codes are on the Arabic website of the main telecommunication
14725          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
14726          using 096 (they are allowing customers to register numbers currently), so their code has
14727          also been added. -->
14728     <territory id="LY" countryCode="218" internationalPrefix="00"
14729                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14730       <references>
14731         <sourceUrl>http://hlc.ly/price.php</sourceUrl>
14732       </references>
14733       <availableFormats>
14734         <numberFormat pattern="([25679]\d)(\d{7})">
14735           <format>$1-$2</format>
14736         </numberFormat>
14737       </availableFormats>
14738       <generalDesc>
14739         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
14740         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14741       </generalDesc>
14742       <fixedLine>
14743         <nationalNumberPattern>
14744           (?:
14745             2[1345]|
14746             5[1347]|
14747             6[123479]|
14748             71
14749           )\d{7}
14750         </nationalNumberPattern>
14751         <exampleNumber>212345678</exampleNumber>
14752       </fixedLine>
14753       <mobile>
14754         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
14755              where SMS messages have been apparently successfully received. -->
14756         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
14757         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14758         <exampleNumber>912345678</exampleNumber>
14759       </mobile>
14760     </territory>
14761
14762     <!-- Morocco -->
14763     <!-- Shares formatting and some metadata with Western Sahara. -->
14764     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
14765                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
14766                mobileNumberPortableRegion="true">
14767       <references>
14768         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
14769         <sourceUrl>http://en.wikipedia.org/wiki/+212</sourceUrl>
14770       </references>
14771       <availableFormats>
14772         <numberFormat pattern="([56]\d{2})(\d{6})">
14773           <leadingDigits>
14774             5(?:
14775               2[015-7]|
14776               3[0-4]
14777             )|
14778             6
14779           </leadingDigits>
14780           <format>$1-$2</format>
14781         </numberFormat>
14782         <numberFormat pattern="([58]\d{3})(\d{5})">
14783           <leadingDigits>
14784             5(?:
14785               2[2-489]|
14786               3[5-9]
14787             )|
14788             892
14789           </leadingDigits>
14790           <leadingDigits>
14791             5(?:
14792               2(?:
14793                 [2-48]|
14794                 90
14795               )|
14796               3(?:
14797                 [5-79]|
14798                 80
14799               )
14800             )|
14801             892
14802           </leadingDigits>
14803           <format>$1-$2</format>
14804         </numberFormat>
14805         <numberFormat pattern="(5\d{4})(\d{4})">
14806           <leadingDigits>
14807             5(?:
14808               29|
14809               38
14810             )
14811           </leadingDigits>
14812           <leadingDigits>
14813             5(?:
14814               29|
14815               38
14816             )[89]
14817           </leadingDigits>
14818           <format>$1-$2</format>
14819         </numberFormat>
14820         <numberFormat pattern="(8[09])(\d{7})">
14821           <leadingDigits>
14822             8(?:
14823               0|
14824               9[013-9]
14825             )
14826           </leadingDigits>
14827           <format>$1-$2</format>
14828         </numberFormat>
14829       </availableFormats>
14830       <generalDesc>
14831         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
14832         <!-- Closed numbering plan. -->
14833         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14834       </generalDesc>
14835       <fixedLine>
14836         <nationalNumberPattern>
14837           5(?:
14838             2(?:
14839               (?:
14840                 [015-7]\d|
14841                 2[2-9]|
14842                 3[2-57]|
14843                 4[2-8]|
14844                 8[235-7]
14845               )\d|
14846               9(?:
14847                 0\d|
14848                 [89]0
14849               )
14850             )|
14851             3(?:
14852               (?:
14853                 [0-4]\d|
14854                 [57][2-9]|
14855                 6[235-8]|
14856                 9[3-9]
14857               )\d|
14858               8(?:
14859                 0\d|
14860                 [89]0
14861               )
14862             )
14863           )\d{4}
14864         </nationalNumberPattern>
14865         <exampleNumber>520123456</exampleNumber>
14866       </fixedLine>
14867       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
14868       <mobile>
14869         <!-- http://www.anrt.ma/sites/default/files/Blocs_de_numeros_par_operateur.pdf
14870              Prefixes 69[0136] added based on numbers found online. -->
14871         <nationalNumberPattern>
14872           6(?:
14873             0[0-8]|
14874             [12-79]\d|
14875             8[01]
14876           )\d{6}
14877         </nationalNumberPattern>
14878         <exampleNumber>650123456</exampleNumber>
14879       </mobile>
14880       <tollFree>
14881         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
14882         <exampleNumber>801234567</exampleNumber>
14883       </tollFree>
14884       <premiumRate>
14885         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
14886         <exampleNumber>891234567</exampleNumber>
14887       </premiumRate>
14888     </territory>
14889
14890     <!-- Monaco -->
14891     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
14892          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
14893          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
14894     <territory id="MC" countryCode="377" internationalPrefix="00"
14895                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14896       <references>
14897         <sourceUrl>http://www.itu.int/oth/T020200008D/en</sourceUrl>
14898       </references>
14899       <availableFormats>
14900         <!-- Following formatting found online rather than in the ITU document example. -->
14901         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
14902           <leadingDigits>9</leadingDigits>
14903           <format>$1 $2 $3 $4</format>
14904         </numberFormat>
14905         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14906           <leadingDigits>4</leadingDigits>
14907           <format>$1 $2 $3</format>
14908         </numberFormat>
14909         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
14910           <leadingDigits>6</leadingDigits>
14911           <format>$1 $2 $3 $4 $5</format>
14912         </numberFormat>
14913         <numberFormat pattern="(\d{3})(\d{3})(\d{2})" nationalPrefixFormattingRule="$FG">
14914           <leadingDigits>8</leadingDigits>
14915           <format>$1 $2 $3</format>
14916         </numberFormat>
14917       </availableFormats>
14918       <generalDesc>
14919         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
14920         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
14921       </generalDesc>
14922       <noInternationalDialling>
14923         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
14924         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14925       </noInternationalDialling>
14926       <fixedLine>
14927         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
14928         <nationalNumberPattern>
14929           870\d{5}|
14930           9[2-47-9]\d{6}
14931         </nationalNumberPattern>
14932         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14933         <exampleNumber>99123456</exampleNumber>
14934       </fixedLine>
14935       <mobile>
14936         <!-- 4X mobile numbers are actually used by Kosovo. -->
14937         <nationalNumberPattern>
14938           6\d{8}|
14939           4(?:
14940             4\d|
14941             5[2-9]
14942           )\d{5}
14943         </nationalNumberPattern>
14944         <exampleNumber>612345678</exampleNumber>
14945       </mobile>
14946       <tollFree>
14947         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14948         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14949         <exampleNumber>90123456</exampleNumber>
14950       </tollFree>
14951     </territory>
14952
14953     <!-- Moldova, Rep. of -->
14954     <territory id="MD" countryCode="373" internationalPrefix="00"
14955                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
14956                mobileNumberPortableRegion="true">
14957       <references>
14958         <sourceUrl>http://www.itu.int/oth/T020200008C/en</sourceUrl>
14959         <!-- Announcements -->
14960         <sourceUrl>http://anrceti.md/fileupload/58</sourceUrl>
14961         <!-- Mobile ranges -->
14962         <sourceUrl>http://en.anrceti.md/resurse_numerotare_tel_mobila</sourceUrl>
14963       </references>
14964       <availableFormats>
14965         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14966           <leadingDigits>
14967             22|
14968             3
14969           </leadingDigits>
14970           <format>$1 $2 $3</format>
14971         </numberFormat>
14972         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
14973           <leadingDigits>
14974             2[13-79]|
14975             [5-7]
14976           </leadingDigits>
14977           <format>$1 $2 $3</format>
14978         </numberFormat>
14979         <numberFormat pattern="([89]\d{2})(\d{5})">
14980           <leadingDigits>[89]</leadingDigits>
14981           <format>$1 $2</format>
14982         </numberFormat>
14983       </availableFormats>
14984       <generalDesc>
14985         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
14986         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14987       </generalDesc>
14988       <fixedLine>
14989         <nationalNumberPattern>
14990           (?:
14991             2(?:
14992               1[0569]|
14993               2\d|
14994               3[015-7]|
14995               4[1-46-9]|
14996               5[0-24689]|
14997               6[2-589]|
14998               7[1-37]|
14999               9[1347-9]
15000             )|
15001             5(?:
15002               33|
15003               5[257]
15004             )
15005           )\d{5}
15006         </nationalNumberPattern>
15007         <exampleNumber>22212345</exampleNumber>
15008       </fixedLine>
15009       <mobile>
15010         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
15011         <nationalNumberPattern>
15012           (?:
15013             562\d|
15014             6(?:
15015               [089]\d{2}|
15016               1[01]\d|
15017               21\d|
15018               7(?:
15019                 [1-6]\d|
15020                 7[0-4]
15021               )
15022             )|
15023             7(?:
15024               6[07]|
15025               7[457-9]|
15026               [89]\d
15027             )\d
15028           )\d{4}
15029         </nationalNumberPattern>
15030         <exampleNumber>62112345</exampleNumber>
15031       </mobile>
15032       <tollFree>
15033         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15034         <exampleNumber>80012345</exampleNumber>
15035       </tollFree>
15036       <premiumRate>
15037         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
15038         <exampleNumber>90012345</exampleNumber>
15039       </premiumRate>
15040       <!-- Information came from en.anrceti.md/node/81 -->
15041       <sharedCost>
15042         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
15043         <exampleNumber>80812345</exampleNumber>
15044       </sharedCost>
15045       <uan>
15046         <!-- Includes numbers used for access to different transport directory services of general
15047              interest, since these are charged at the same rate as fixed-line numbers. -->
15048         <nationalNumberPattern>
15049           8(?:
15050             03|
15051             14
15052           )\d{5}
15053         </nationalNumberPattern>
15054         <exampleNumber>80312345</exampleNumber>
15055       </uan>
15056       <voip>
15057         <!-- Used for "nomadic numbers". -->
15058         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
15059         <exampleNumber>30123456</exampleNumber>
15060       </voip>
15061     </territory>
15062
15063     <!-- Montenegro -->
15064     <!-- According to EKIP, the detailed phone number assignments are published on their
15065          website (regulation:
15066          http://www.ekip.me/download/Law%20on%20Electronic%20Communications%20(updated)%204.9.2013%20(1)nova%20verzija.pdf
15067          ). Thus ITU updates always need to be combined with the information at the below ekip.me source URL. -->
15068     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
15069                nationalPrefixFormattingRule="$NP$FG">
15070       <references>
15071         <sourceUrl>http://www.itu.int/oth/T02020000DA/en</sourceUrl>
15072         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro</sourceUrl>
15073         <sourceUrl>http://www.ekip.me/numeracija/dodijeljena.php</sourceUrl>
15074       </references>
15075       <availableFormats>
15076          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15077           <leadingDigits>[2-57-9]|6[036-9]</leadingDigits>
15078           <leadingDigits>
15079             [2-57-9]|
15080             6(?:
15081               [03689]|
15082               7(?:
15083                 [0-8]|
15084                 9[3-9]
15085               )
15086             )
15087           </leadingDigits>
15088           <format>$1 $2 $3</format>
15089         </numberFormat>
15090         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
15091           <leadingDigits>679</leadingDigits>
15092           <leadingDigits>679[0-2]</leadingDigits>
15093           <format>$1 $2 $3 $4</format>
15094         </numberFormat>
15095       </availableFormats>
15096       <generalDesc>
15097         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
15098         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
15099       </generalDesc>
15100       <fixedLine>
15101         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
15102              The valid options for the third digit were from
15103              http://www.ekip.me/numeracija/dodijeljena.php -->
15104         <nationalNumberPattern>
15105           (?:
15106             20[2-8]|
15107             3(?:
15108               0[2-7]|
15109               [12][35-7]|
15110               3[4-7]
15111             )|
15112             4(?:
15113               0[2367]|
15114               1[267]
15115             )|
15116             5(?:
15117               0[467]|
15118               1[267]|
15119               2[367]
15120             )
15121           )\d{5}
15122         </nationalNumberPattern>
15123         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15124         <exampleNumber>30234567</exampleNumber>
15125       </fixedLine>
15126       <mobile>
15127         <!-- Mobile numbers start with 600, 632, 661, 67, 68 or 69. -->
15128         <nationalNumberPattern>
15129           6(?:
15130             00\d|
15131             32\d|
15132             [89]\d{2}|
15133             61\d|
15134             7(?:
15135               [0-8]\d|
15136               9(?:
15137                 [3-9]|
15138                 [0-2]\d
15139               )
15140             )
15141           )\d{4}
15142         </nationalNumberPattern>
15143         <!-- According to ITU it is possible for the numbers to be between length 4-12
15144              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
15145              digits long, based on the Montenegro document. -->
15146         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15147         <exampleNumber>67622901</exampleNumber>
15148       </mobile>
15149       <tollFree>
15150         <!-- All toll free numbers have prefix 80. -->
15151         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
15152         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15153         <exampleNumber>80080002</exampleNumber>
15154       </tollFree>
15155       <premiumRate>
15156         <!-- Numbers with prefix 94 or 95 are services with additional charges. -->
15157         <nationalNumberPattern>
15158           (?:
15159             9(?:
15160               4[1568]|
15161               5[178]
15162             )
15163           )\d{5}
15164         </nationalNumberPattern>
15165         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15166         <exampleNumber>94515151</exampleNumber>
15167       </premiumRate>
15168       <voip>
15169         <!-- VOIP are prefixed with 78. -->
15170         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
15171         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15172         <exampleNumber>78108780</exampleNumber>
15173       </voip>
15174       <uan>
15175         <!-- Corporate Telephony are prefixed with 77. -->
15176         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
15177         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15178         <exampleNumber>77273012</exampleNumber>
15179       </uan>
15180     </territory>
15181
15182     <!-- Saint-Martin, French Antilles -->
15183     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
15184       <references>
15185         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
15186         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
15187         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
15188       </references>
15189       <!-- Formatting rules borrowed from Guadeloupe. -->
15190       <generalDesc>
15191         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15192         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15193       </generalDesc>
15194       <fixedLine>
15195         <nationalNumberPattern>
15196           590(?:
15197             [02][79]|
15198             13|
15199             5[0-268]|
15200             [78]7
15201           )\d{4}
15202         </nationalNumberPattern>
15203         <exampleNumber>590271234</exampleNumber>
15204       </fixedLine>
15205       <mobile>
15206         <!-- Any ranges assigned from
15207              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
15208              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
15209              them. -->
15210         <nationalNumberPattern>
15211           690(?:
15212             0[0-7]|
15213             [1-9]\d
15214           )\d{4}
15215         </nationalNumberPattern>
15216         <exampleNumber>690301234</exampleNumber>
15217       </mobile>
15218     </territory>
15219
15220     <!-- Madagascar -->
15221     <territory id="MG" countryCode="261" internationalPrefix="00"
15222                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15223       <references>
15224         <sourceUrl>http://www.itu.int/oth/T020200007F/en</sourceUrl>
15225       </references>
15226       <availableFormats>
15227         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
15228           <format>$1 $2 $3 $4</format>
15229         </numberFormat>
15230       </availableFormats>
15231       <generalDesc>
15232         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
15233         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15234       </generalDesc>
15235       <fixedLine>
15236         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
15237              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
15238              codes beginning with 4. -->
15239         <nationalNumberPattern>
15240           20(?:
15241             2\d{2}|
15242             4[47]\d|
15243             5[3467]\d|
15244             6[279]\d|
15245             7(?:
15246               2[29]|
15247               [35]\d
15248             )|
15249             8[268]\d|
15250             9[245]\d
15251           )\d{4}
15252         </nationalNumberPattern>
15253         <exampleNumber>202123456</exampleNumber>
15254       </fixedLine>
15255       <mobile>
15256         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
15257              out by reality. -->
15258         <nationalNumberPattern>3[2-49]\d{7}</nationalNumberPattern>
15259         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15260         <exampleNumber>321234567</exampleNumber>
15261       </mobile>
15262       <!-- Putting VSAT numbers here. -->
15263       <voip>
15264         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
15265         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15266         <exampleNumber>221234567</exampleNumber>
15267       </voip>
15268     </territory>
15269
15270     <!-- Marshall Islands -->
15271     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
15272       <references>
15273         <sourceUrl>http://www.itu.int/oth/T0202000085/en</sourceUrl>
15274       </references>
15275       <availableFormats>
15276         <numberFormat pattern="(\d{3})(\d{4})">
15277           <format>$1-$2</format>
15278         </numberFormat>
15279       </availableFormats>
15280       <generalDesc>
15281         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
15282         <possibleNumberPattern>\d{7}</possibleNumberPattern>
15283       </generalDesc>
15284       <fixedLine>
15285         <nationalNumberPattern>
15286           (?:
15287             247|
15288             528|
15289             625
15290           )\d{4}
15291         </nationalNumberPattern>
15292         <exampleNumber>2471234</exampleNumber>
15293       </fixedLine>
15294       <mobile>
15295         <nationalNumberPattern>
15296           (?:
15297             235|
15298             329|
15299             45[56]|
15300             545
15301           )\d{4}
15302         </nationalNumberPattern>
15303         <exampleNumber>2351234</exampleNumber>
15304       </mobile>
15305       <voip>
15306         <!-- VSAT prefixes are here. -->
15307         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
15308         <exampleNumber>6351234</exampleNumber>
15309       </voip>
15310     </territory>
15311
15312     <!-- Macedonia, Former Yugoslav Rep. of -->
15313     <territory id="MK" countryCode="389" internationalPrefix="00"
15314                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
15315                mobileNumberPortableRegion="true">
15316       <references>
15317         <sourceUrl>http://www.itu.int/oth/T02020000CE/en</sourceUrl>
15318       </references>
15319       <availableFormats>
15320         <!-- Formats follow wikipedia. -->
15321         <numberFormat pattern="(2)(\d{3})(\d{4})">
15322           <leadingDigits>2</leadingDigits>
15323           <format>$1 $2 $3</format>
15324         </numberFormat>
15325         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
15326           <leadingDigits>[347]</leadingDigits>
15327           <format>$1 $2 $3</format>
15328         </numberFormat>
15329         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
15330           <leadingDigits>[58]</leadingDigits>
15331           <format>$1 $2 $3 $4</format>
15332         </numberFormat>
15333       </availableFormats>
15334       <generalDesc>
15335         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
15336         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15337       </generalDesc>
15338       <fixedLine>
15339         <nationalNumberPattern>
15340           (?:
15341             2(?:
15342               [23]\d|
15343               5[124578]|
15344               6[01]
15345             )|
15346             3(?:
15347               1[3-6]|
15348               [23][2-6]|
15349               4[2356]
15350             )|
15351             4(?:
15352               [23][2-6]|
15353               4[3-6]|
15354               5[256]|
15355               6[25-8]|
15356               7[24-6]|
15357               8[4-6]
15358             )
15359           )\d{5}
15360         </nationalNumberPattern>
15361         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15362         <exampleNumber>22212345</exampleNumber>
15363       </fixedLine>
15364       <mobile>
15365         <nationalNumberPattern>
15366           7(?:
15367             [0-25-8]\d{2}|
15368             32\d|
15369             421
15370           )\d{4}
15371         </nationalNumberPattern>
15372         <exampleNumber>72345678</exampleNumber>
15373       </mobile>
15374       <tollFree>
15375         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15376         <exampleNumber>80012345</exampleNumber>
15377       </tollFree>
15378       <premiumRate>
15379         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
15380         <exampleNumber>50012345</exampleNumber>
15381       </premiumRate>
15382       <sharedCost>
15383         <nationalNumberPattern>
15384           8(?:
15385             0[1-9]|
15386             [1-9]\d
15387           )\d{5}
15388         </nationalNumberPattern>
15389         <exampleNumber>80123456</exampleNumber>
15390       </sharedCost>
15391     </territory>
15392
15393     <!-- Mali -->
15394     <territory id="ML" countryCode="223" internationalPrefix="00">
15395       <references>
15396         <sourceUrl>http://www.itu.int/oth/T0202000083/en</sourceUrl>
15397         <sourceUrl>http://crt-mali.org/pdf/plan_num</sourceUrl>
15398       </references>
15399       <availableFormats>
15400         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
15401           <leadingDigits>[246-9]</leadingDigits>
15402           <format>$1 $2 $3 $4</format>
15403         </numberFormat>
15404         <!-- Formatting some short numbers as a block. -->
15405         <numberFormat pattern="(\d{4})">
15406           <leadingDigits>
15407             67|
15408             74
15409           </leadingDigits>
15410           <intlFormat>NA</intlFormat>
15411           <format>$1</format>
15412         </numberFormat>
15413       </availableFormats>
15414       <generalDesc>
15415         <nationalNumberPattern>[246-9]\d{7}</nationalNumberPattern>
15416         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15417       </generalDesc>
15418       <fixedLine>
15419         <!-- Patterns from ITU with extra ranges 20 25, 20 7[13-9] and 217 provided by Sotelma and
15420              confirmed by searches online. -->
15421         <nationalNumberPattern>
15422           (?:
15423             2(?:
15424               0(?:
15425                 2[0-589]|
15426                 7\d
15427               )|
15428               1(?:
15429                 2[5-7]|
15430                 [3-689]\d|
15431                 7[2-4689]
15432               )
15433             )|
15434             44[239]\d
15435           )\d{4}
15436         </nationalNumberPattern>
15437         <exampleNumber>20212345</exampleNumber>
15438       </fixedLine>
15439       <mobile>
15440         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
15441              document (which is very stale). All mobile numbers starting with 7 are now Orange.
15442              Includes 6x from Malitel IR21. Numbers beginning with 9 have been found online and
15443              reported by open-source users, although the exact possible second digits are uncertain.
15444              -->
15445         <nationalNumberPattern>
15446           [67]\d{7}|
15447           9[0-25-9]\d{6}
15448         </nationalNumberPattern>
15449         <exampleNumber>65012345</exampleNumber>
15450       </mobile>
15451       <tollFree>
15452         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
15453              plan. -->
15454         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15455         <exampleNumber>80012345</exampleNumber>
15456       </tollFree>
15457    </territory>
15458
15459     <!-- Myanmar -->
15460     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
15461                nationalPrefixFormattingRule="$NP$FG">
15462       <references>
15463         <sourceUrl>http://www.itu.int/oth/T0202000092/en</sourceUrl>
15464       </references>
15465       <availableFormats>
15466         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
15467           <leadingDigits>
15468             1|
15469             2[45]
15470           </leadingDigits>
15471           <format>$1 $2 $3</format>
15472         </numberFormat>
15473         <numberFormat pattern="(2)(\d{4})(\d{4})">
15474           <leadingDigits>251</leadingDigits>
15475           <format>$1 $2 $3</format>
15476         </numberFormat>
15477         <numberFormat pattern="(\d)(\d{2})(\d{3})">
15478           <leadingDigits>
15479             16|
15480             2
15481           </leadingDigits>
15482           <format>$1 $2 $3</format>
15483         </numberFormat>
15484         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
15485           <leadingDigits>
15486             67|
15487             81
15488           </leadingDigits>
15489           <format>$1 $2 $3</format>
15490         </numberFormat>
15491         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
15492           <leadingDigits>[4-8]</leadingDigits>
15493           <format>$1 $2 $3</format>
15494         </numberFormat>
15495         <numberFormat pattern="(9)(\d{3})(\d{4,6})">
15496           <leadingDigits>
15497             9(?:
15498               2[0-4]|
15499               [35-9]|
15500               4[13789]
15501             )
15502           </leadingDigits>
15503           <format>$1 $2 $3</format>
15504         </numberFormat>
15505         <numberFormat pattern="(9)(4\d{4})(\d{4})">
15506           <leadingDigits>94[0245]</leadingDigits>
15507           <format>$1 $2 $3</format>
15508         </numberFormat>
15509         <!-- Following majority of numbers found online. -->
15510         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{3})">
15511           <leadingDigits>925</leadingDigits>
15512           <format>$1 $2 $3 $4</format>
15513         </numberFormat>
15514       </availableFormats>
15515       <generalDesc>
15516         <nationalNumberPattern>
15517           [14578]\d{5,7}|
15518           [26]\d{5,8}|
15519           9(?:
15520             2\d{0,2}|
15521             [58]|
15522             3\d|
15523             4\d{1,2}|
15524             6\d?|
15525             [79]\d{0,2}
15526           )\d{6}
15527         </nationalNumberPattern>
15528         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
15529       </generalDesc>
15530       <fixedLine>
15531         <nationalNumberPattern>
15532           1(?:
15533             2\d{1,2}|
15534             [3-5]\d|
15535             6\d?|
15536             [89][0-6]\d
15537           )\d{4}|
15538           2(?:
15539             [236-9]\d{4}|
15540             4(?:
15541               0\d{5}|
15542               \d{4}
15543             )|
15544             5(?:
15545               1\d{3,6}|
15546               [02-9]\d{3,5}
15547             )
15548           )|
15549           4(?:
15550             2[245-8]|
15551             [346][2-6]|
15552             5[3-5]
15553           )\d{4}|
15554           5(?:
15555             2(?:
15556               20?|
15557               [3-8]
15558             )|
15559             3[2-68]|
15560             4(?:
15561               21?|
15562               [4-8]
15563             )|
15564             5[23]|
15565             6[2-4]|
15566             7[2-8]|
15567             8[24-7]|
15568             9[2-7]
15569           )\d{4}|
15570           6(?:
15571             0[23]|
15572             1[2356]|
15573             [24][2-6]|
15574             3[24-6]|
15575             5[2-4]|
15576             6[2-8]|
15577             7(?:
15578               [2367]|
15579               4\d|
15580               5\d?|
15581               8[145]\d
15582             )|
15583             8[245]|
15584             9[24]
15585           )\d{4}|
15586           7(?:
15587             [04][24-8]|
15588             [15][2-7]|
15589             22|
15590             3[2-4]
15591           )\d{4}|
15592           8(?:
15593             1(?:
15594               2\d?|
15595               [3-689]
15596             )|
15597             2[2-8]|
15598             3[24]|
15599             4[24-7]|
15600             5[245]|
15601             6[23]
15602           )\d{4}
15603         </nationalNumberPattern>
15604         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
15605         <exampleNumber>1234567</exampleNumber>
15606       </fixedLine>
15607       <mobile>
15608         <!-- Added 99[089] (8 digits), 961 (9 digits), and 978, 979 & 997 (10 digits) from bug
15609              reports/numbers found online. -->
15610         <nationalNumberPattern>
15611           17[01]\d{4}|
15612           9(?:
15613             2(?:
15614               [0-4]|
15615               5\d{2}
15616             )|
15617             3[136]\d|
15618             4(?:
15619               0[0-4]\d|
15620               [1379]\d|
15621               [24][0-589]\d|
15622               5\d{2}|
15623               88
15624             )|
15625             5[0-6]|
15626             61?\d|
15627             7(?:
15628               3\d|
15629               [89]\d{2}
15630             )|
15631             8\d|
15632             9(?:
15633               1\d|
15634               7\d{2}|
15635               [089]
15636             )
15637           )\d{5}
15638         </nationalNumberPattern>
15639         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
15640         <exampleNumber>92123456</exampleNumber>
15641       </mobile>
15642       <voip>
15643         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
15644         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15645         <exampleNumber>13331234</exampleNumber>
15646       </voip>
15647       <!-- No information on other types of phone numbers for Myanmar has been found. -->
15648     </territory>
15649
15650     <!-- Mongolia -->
15651     <territory id="MN" countryCode="976" internationalPrefix="001"
15652                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15653       <references>
15654         <sourceUrl>http://www.itu.int/oth/T020200008E/en</sourceUrl>
15655       </references>
15656       <availableFormats>
15657         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
15658           <leadingDigits>[12]1</leadingDigits>
15659           <format>$1 $2 $3</format>
15660         </numberFormat>
15661         <numberFormat pattern="([12]2\d)(\d{5,6})">
15662           <leadingDigits>[12]2[1-3]</leadingDigits>
15663           <format>$1 $2</format>
15664         </numberFormat>
15665         <numberFormat pattern="([12]\d{3})(\d{5})">
15666           <leadingDigits>
15667             [12](?:
15668               27|
15669               [3-5]
15670             )
15671           </leadingDigits>
15672           <leadingDigits>
15673             [12](?:
15674               27|
15675               [3-5]\d
15676             )2
15677           </leadingDigits>
15678           <format>$1 $2</format>
15679         </numberFormat>
15680         <!-- It seems from online formatting that the national prefix is not written (or perhaps
15681              needed?) for numbers in these ranges. -->
15682         <numberFormat pattern="(\d{4})(\d{4})"
15683           nationalPrefixFormattingRule="$FG">
15684           <leadingDigits>[57-9]</leadingDigits>
15685           <format>$1 $2</format>
15686         </numberFormat>
15687         <numberFormat pattern="([12]\d{4})(\d{4,5})">
15688           <leadingDigits>
15689             [12](?:
15690               27|
15691               [3-5]
15692             )
15693           </leadingDigits>
15694           <leadingDigits>
15695             [12](?:
15696               27|
15697               [3-5]\d
15698             )[4-9]
15699           </leadingDigits>
15700           <format>$1 $2</format>
15701         </numberFormat>
15702       </availableFormats>
15703       <generalDesc>
15704         <nationalNumberPattern>
15705           [12]\d{7,9}|
15706           [57-9]\d{7}
15707         </nationalNumberPattern>
15708         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
15709       </generalDesc>
15710       <fixedLine>
15711         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
15712              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
15713              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
15714              as well, even though we are not certain whether they are in fact fixed or mobile in
15715              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
15716              online numbers being found. -->
15717         <nationalNumberPattern>
15718           [12](?:
15719             1\d|
15720             2(?:
15721               [1-3]\d?|
15722               7\d
15723             )|
15724             3[2-8]\d{1,2}|
15725             4[2-68]\d{1,2}|
15726             5[1-4689]\d{1,2}
15727           )\d{5}|
15728           5[0568]\d{6}
15729         </nationalNumberPattern>
15730         <exampleNumber>50123456</exampleNumber>
15731       </fixedLine>
15732       <mobile>
15733         <nationalNumberPattern>
15734           (?:
15735             8[689]|
15736             9[013-9]
15737           )\d{6}
15738         </nationalNumberPattern>
15739         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15740         <exampleNumber>88123456</exampleNumber>
15741       </mobile>
15742       <!-- No tollFree or premiumRate information can be found. -->
15743       <voip>
15744         <!-- According to the document this could be stricter, but there are counter examples
15745              online. -->
15746         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
15747         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15748         <exampleNumber>75123456</exampleNumber>
15749       </voip>
15750     </territory>
15751
15752     <!-- Macao, China -->
15753     <territory id="MO" countryCode="853" internationalPrefix="00">
15754       <references>
15755         <sourceUrl>http://www.itu.int/oth/T020200007E/en</sourceUrl>
15756       </references>
15757       <availableFormats>
15758         <numberFormat pattern="([268]\d{3})(\d{4})">
15759           <format>$1 $2</format>
15760         </numberFormat>
15761       </availableFormats>
15762       <generalDesc>
15763         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
15764         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15765       </generalDesc>
15766       <fixedLine>
15767         <nationalNumberPattern>
15768           (?:
15769             28[2-57-9]|
15770             8[2-57-9]\d
15771           )\d{5}
15772         </nationalNumberPattern>
15773         <exampleNumber>28212345</exampleNumber>
15774       </fixedLine>
15775       <mobile>
15776         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
15777              numbers, and they are also widely present on the Internet. -->
15778         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
15779         <exampleNumber>66123456</exampleNumber>
15780       </mobile>
15781       <!-- No tollFree or premiumRate information can be found. -->
15782     </territory>
15783
15784     <!-- Northern Mariana Islands -->
15785     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
15786                internationalPrefix="011">
15787       <references>
15788         <sourceUrl>http://www.itu.int/oth/T02020000EE/en</sourceUrl>
15789         <sourceUrl>http://www.cnmiphonebook.com/</sourceUrl>
15790       </references>
15791       <generalDesc>
15792         <!-- NANPA country - uses US formatting rules -->
15793         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15794         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15795       </generalDesc>
15796       <fixedLine>
15797         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
15798              were seen in the white and yellow pages, but no numbers with these exchange codes have
15799              proved to be diallable so we exclude them for now.. -->
15800         <nationalNumberPattern>
15801           670(?:
15802             2(?:
15803               3[3-7]|
15804               56|
15805               8[5-8]
15806             )|
15807             32[1238]|
15808             4(?:
15809               33|
15810               8[348]
15811             )|
15812             5(?:
15813               32|
15814               55|
15815               88
15816             )|
15817             6(?:
15818               64|
15819               70|
15820               82
15821             )|
15822             78[589]|
15823             8[3-9]8|
15824             989
15825           )\d{4}
15826         </nationalNumberPattern>
15827         <exampleNumber>6702345678</exampleNumber>
15828       </fixedLine>
15829       <mobile>
15830         <nationalNumberPattern>
15831           670(?:
15832             2(?:
15833               3[3-7]|
15834               56|
15835               8[5-8]
15836             )|
15837             32[1238]|
15838             4(?:
15839               33|
15840               8[348]
15841             )|
15842             5(?:
15843               32|
15844               55|
15845               88
15846             )|
15847             6(?:
15848               64|
15849               70|
15850               82
15851             )|
15852             78[589]|
15853             8[3-9]8|
15854             989
15855           )\d{4}
15856         </nationalNumberPattern>
15857         <exampleNumber>6702345678</exampleNumber>
15858       </mobile>
15859       <tollFree>
15860         <nationalNumberPattern>
15861           8(?:
15862             00|
15863             44|
15864             55|
15865             66|
15866             77|
15867             88
15868           )[2-9]\d{6}
15869         </nationalNumberPattern>
15870         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15871         <exampleNumber>8002123456</exampleNumber>
15872       </tollFree>
15873       <premiumRate>
15874         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15875         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15876         <exampleNumber>9002123456</exampleNumber>
15877       </premiumRate>
15878       <personalNumber>
15879         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15880         <nationalNumberPattern>
15881           5(?:
15882             00|
15883             33|
15884             44|
15885             66|
15886             77
15887           )[2-9]\d{6}
15888         </nationalNumberPattern>
15889         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15890         <exampleNumber>5002345678</exampleNumber>
15891       </personalNumber>
15892     </territory>
15893
15894     <!-- Martinique (French Dept. of) -->
15895     <territory id="MQ" countryCode="596" internationalPrefix="00"
15896                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15897       <references>
15898         <sourceUrl>http://www.itu.int/oth/T0202000086/en</sourceUrl>
15899         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0596&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
15900       </references>
15901       <availableFormats>
15902         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
15903           <format>$1 $2 $3 $4</format>
15904         </numberFormat>
15905       </availableFormats>
15906       <generalDesc>
15907         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15908         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15909       </generalDesc>
15910       <fixedLine>
15911         <nationalNumberPattern>
15912           596(?:
15913             0[2-5]|
15914             [12]0|
15915             3[05-9]|
15916             4[024-8]|
15917             [5-7]\d|
15918             89|
15919             9[4-8]
15920           )\d{4}
15921         </nationalNumberPattern>
15922         <exampleNumber>596301234</exampleNumber>
15923       </fixedLine>
15924       <mobile>
15925         <nationalNumberPattern>
15926           696(?:
15927             [0-479]\d|
15928             5[01]|
15929             8[0-689]
15930           )\d{4}
15931         </nationalNumberPattern>
15932         <exampleNumber>696201234</exampleNumber>
15933       </mobile>
15934       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
15935            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
15936            too. -->
15937     </territory>
15938
15939     <!-- Mauritania -->
15940     <territory id="MR" countryCode="222" internationalPrefix="00" >
15941       <references>
15942         <sourceUrl>http://www.itu.int/oth/T0202000087/en</sourceUrl>
15943         <sourceUrl>http://are.mr/pdfs/pnn2010.pdf</sourceUrl>
15944       </references>
15945       <availableFormats>
15946         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
15947           <format>$1 $2 $3 $4</format>
15948         </numberFormat>
15949       </availableFormats>
15950       <generalDesc>
15951         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
15952         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15953       </generalDesc>
15954       <fixedLine>
15955         <nationalNumberPattern>
15956           25[08]\d{5}|
15957           35\d{6}|
15958           45[1-7]\d{5}
15959         </nationalNumberPattern>
15960         <exampleNumber>35123456</exampleNumber>
15961       </fixedLine>
15962       <!-- Added "49\d" in response to https://github.com/googlei18n/libphonenumber/issues/529
15963            which might be overly permissive, but we don't have an official documentation for this
15964            and only a small number of numbers were found online. At least 492 and 495 are valid.
15965            -->
15966       <mobile>
15967         <nationalNumberPattern>
15968           (?:
15969             2(?:
15970               2\d|
15971               70
15972             )|
15973             3(?:
15974               3\d|
15975               6[1-36]|
15976               7[1-3]
15977             )|
15978             4(?:
15979               [49]\d|
15980               6[0457-9]|
15981               7[4-9]|
15982               8[01346-8]
15983             )
15984           )\d{5}
15985         </nationalNumberPattern>
15986         <exampleNumber>22123456</exampleNumber>
15987       </mobile>
15988       <tollFree>
15989         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15990         <exampleNumber>80012345</exampleNumber>
15991       </tollFree>
15992     </territory>
15993
15994     <!-- Montserrat -->
15995     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
15996                internationalPrefix="011">
15997       <references>
15998         <sourceUrl>http://www.itu.int/oth/T020200008F/en</sourceUrl>
15999       </references>
16000       <generalDesc>
16001         <!-- NANPA country - uses US formatting rules -->
16002         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
16003         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
16004       </generalDesc>
16005       <fixedLine>
16006         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
16007         <exampleNumber>6644912345</exampleNumber>
16008       </fixedLine>
16009       <mobile>
16010         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
16011         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16012         <exampleNumber>6644923456</exampleNumber>
16013       </mobile>
16014       <tollFree>
16015         <nationalNumberPattern>
16016           8(?:
16017             00|
16018             44|
16019             55|
16020             66|
16021             77|
16022             88
16023           )[2-9]\d{6}
16024         </nationalNumberPattern>
16025         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16026         <exampleNumber>8002123456</exampleNumber>
16027       </tollFree>
16028       <premiumRate>
16029         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
16030         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16031         <exampleNumber>9002123456</exampleNumber>
16032       </premiumRate>
16033       <personalNumber>
16034         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
16035         <nationalNumberPattern>
16036           5(?:
16037             00|
16038             33|
16039             44|
16040             66|
16041             77
16042           )[2-9]\d{6}
16043         </nationalNumberPattern>
16044         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16045         <exampleNumber>5002345678</exampleNumber>
16046       </personalNumber>
16047     </territory>
16048
16049     <!-- Malta -->
16050     <territory id="MT" countryCode="356" internationalPrefix="00" mobileNumberPortableRegion="true">
16051       <references>
16052         <sourceUrl>http://www.itu.int/oth/T0202000084/en</sourceUrl>
16053         <!-- Numbering link in the LHS menu - has more up-to-date allocations -->
16054         <sourceUrl>http://www.mca.org.mt</sourceUrl>
16055       </references>
16056       <availableFormats>
16057         <numberFormat pattern="(\d{4})(\d{4})">
16058           <format>$1 $2</format>
16059         </numberFormat>
16060       </availableFormats>
16061       <generalDesc>
16062         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
16063         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16064       </generalDesc>
16065       <fixedLine>
16066         <nationalNumberPattern>
16067           2(?:
16068             0(?:
16069               1[0-6]|
16070               3[1-4]|
16071               [69]\d
16072             )|
16073             [1-357]\d{2}
16074           )\d{4}
16075         </nationalNumberPattern>
16076         <exampleNumber>21001234</exampleNumber>
16077       </fixedLine>
16078       <mobile>
16079         <!-- 7210 and 92XX come from the allocations listed on http://www.mca.org.mt, but they are
16080              not listed in the latest ITU document. -->
16081         <nationalNumberPattern>
16082           (?:
16083             7(?:
16084               210|
16085               [79]\d{2}
16086             )|
16087             9(?:
16088               2(?:
16089                1[01]|
16090                31
16091               )|
16092               696|
16093               8(?:
16094                 1[1-3]|
16095                 89|
16096                 97
16097               )|
16098               9\d{2}
16099             )
16100           )\d{4}
16101         </nationalNumberPattern>
16102         <exampleNumber>96961234</exampleNumber>
16103       </mobile>
16104       <pager>
16105         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
16106         <exampleNumber>71171234</exampleNumber>
16107       </pager>
16108       <tollFree>
16109         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
16110         <exampleNumber>80071234</exampleNumber>
16111       </tollFree>
16112       <premiumRate>
16113         <nationalNumberPattern>
16114           5(?:
16115             0(?:
16116               0(?:
16117                 37|
16118                 43
16119               )|
16120               6\d{2}|
16121               70\d|
16122               9[0168]
16123             )|
16124             [12]\d0[1-5]
16125           )\d{3}
16126         </nationalNumberPattern>
16127         <exampleNumber>50037123</exampleNumber>
16128       </premiumRate>
16129       <voip>
16130         <!-- In the plan as Non-PATS ECS. -->
16131         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
16132         <exampleNumber>35501234</exampleNumber>
16133       </voip>
16134       <uan>
16135         <!-- Using this for governmental numbers. -->
16136         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
16137         <exampleNumber>50112345</exampleNumber>
16138       </uan>
16139     </territory>
16140
16141     <!-- Mauritius -->
16142     <!-- Preferred international prefix is expected to standardize on just '00' -->
16143     <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
16144                preferredInternationalPrefix="020">
16145       <references>
16146         <sourceUrl>http://www.icta.mu/telecommunications/numbering.htm</sourceUrl>
16147       </references>
16148       <availableFormats>
16149         <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
16150           <leadingDigits>[2-46-9]</leadingDigits>
16151           <format>$1 $2</format>
16152         </numberFormat>
16153         <numberFormat pattern="(5\d{3})(\d{4})">
16154           <leadingDigits>5</leadingDigits>
16155           <format>$1 $2</format>
16156         </numberFormat>
16157       </availableFormats>
16158       <generalDesc>
16159         <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
16160         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
16161       </generalDesc>
16162       <fixedLine>
16163         <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
16164         <nationalNumberPattern>
16165           (?:
16166             2(?:
16167               [03478]\d|
16168               1[0-7]|
16169               6[1-69]
16170             )|
16171             4(?:
16172               [013568]\d|
16173               2[4-7]
16174             )|
16175             5(?:
16176               44\d|
16177               471
16178             )|
16179             6\d{2}|
16180             8(?:
16181               14|
16182               3[129]
16183             )
16184           )\d{4}
16185         </nationalNumberPattern>
16186         <exampleNumber>2012345</exampleNumber>
16187       </fixedLine>
16188       <mobile>
16189         <nationalNumberPattern>
16190           5(?:
16191             2[59]\d|
16192             4(?:
16193               2[1-389]|
16194               4\d|
16195               7[1-9]|
16196               9\d
16197             )|
16198             7\d{2}|
16199             8(?:
16200               [2568]\d|
16201               7[15-8]
16202             )|
16203             9[0-8]\d
16204           )\d{4}
16205         </nationalNumberPattern>
16206         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16207         <exampleNumber>52512345</exampleNumber>
16208       </mobile>
16209       <tollFree>
16210         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
16211         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16212         <exampleNumber>8001234</exampleNumber>
16213       </tollFree>
16214       <premiumRate>
16215         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
16216         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16217         <exampleNumber>3012345</exampleNumber>
16218       </premiumRate>
16219       <voip>
16220         <nationalNumberPattern>
16221           3(?:
16222             20|
16223             9\d
16224           )\d{4}
16225         </nationalNumberPattern>
16226         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16227         <exampleNumber>3201234</exampleNumber>
16228       </voip>
16229     </territory>
16230
16231     <!-- Maldives -->
16232     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
16233                preferredInternationalPrefix="00">
16234       <references>
16235         <sourceUrl>http://www.itu.int/oth/T0202000082/en</sourceUrl>
16236         <sourceUrl>http://www.dhiraagu.com.mv</sourceUrl>
16237       </references>
16238       <availableFormats>
16239         <numberFormat pattern="(\d{3})(\d{4})">
16240           <leadingDigits>
16241             [3467]|
16242             9(?:
16243               [1-9]|
16244               0[1-9]
16245             )
16246           </leadingDigits>
16247           <format>$1-$2</format>
16248         </numberFormat>
16249         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16250           <leadingDigits>900</leadingDigits>
16251           <format>$1 $2 $3</format>
16252         </numberFormat>
16253       </availableFormats>
16254       <generalDesc>
16255         <nationalNumberPattern>
16256           [3467]\d{6}|
16257           9(?:
16258             00\d{7}|
16259             \d{6}
16260           )
16261         </nationalNumberPattern>
16262         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16263       </generalDesc>
16264       <fixedLine>
16265         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
16266              diallable. -->
16267         <nationalNumberPattern>
16268           (?:
16269             3(?:
16270               0[01]|
16271               3[0-59]
16272             )|
16273             6(?:
16274               [567][02468]|
16275               8[024689]|
16276               90
16277             )
16278           )\d{4}
16279         </nationalNumberPattern>
16280         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16281         <exampleNumber>6701234</exampleNumber>
16282       </fixedLine>
16283       <mobile>
16284         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
16285              are new prefixes for Dhiraagu and Ooredoo, used currently for SMS-based services.
16286              91 and 95 were added based on information from Ooredoo Telecom. -->
16287         <nationalNumberPattern>
16288           (?:
16289             46[46]|
16290             7[3-9]\d|
16291             9[15-9]\d
16292           )\d{4}
16293         </nationalNumberPattern>
16294         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16295         <exampleNumber>7712345</exampleNumber>
16296       </mobile>
16297       <pager>
16298         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
16299         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16300         <exampleNumber>7812345</exampleNumber>
16301       </pager>
16302       <premiumRate>
16303         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16304         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16305         <exampleNumber>9001234567</exampleNumber>
16306       </premiumRate>
16307     </territory>
16308
16309     <!-- Malawi -->
16310     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
16311          consistent in having one. -->
16312     <territory id="MW" countryCode="265" internationalPrefix="00"
16313                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16314       <references>
16315         <sourceUrl>http://www.itu.int/oth/T0202000080/en</sourceUrl>
16316       </references>
16317       <availableFormats>
16318         <numberFormat pattern="(\d)(\d{3})(\d{3})">
16319           <leadingDigits>1</leadingDigits>
16320           <format>$1 $2 $3</format>
16321         </numberFormat>
16322         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
16323           <leadingDigits>2</leadingDigits>
16324           <format>$1 $2 $3</format>
16325         </numberFormat>
16326         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16327           <leadingDigits>[1789]</leadingDigits>
16328           <format>$1 $2 $3 $4</format>
16329         </numberFormat>
16330       </availableFormats>
16331       <generalDesc>
16332         <nationalNumberPattern>
16333           (?:
16334             1(?:
16335               \d{2}
16336             )?|
16337             [2789]\d{2}
16338           )\d{6}
16339         </nationalNumberPattern>
16340         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
16341       </generalDesc>
16342       <fixedLine>
16343         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
16344              been found so this is being retained for now. It is possible however that these may be
16345              old-format mobile numbers. -->
16346         <nationalNumberPattern>
16347           (?:
16348             1[2-9]|
16349             21\d{2}
16350           )\d{5}
16351         </nationalNumberPattern>
16352         <exampleNumber>1234567</exampleNumber>
16353       </fixedLine>
16354       <mobile>
16355         <nationalNumberPattern>
16356           (?:
16357             111|
16358             77\d|
16359             88\d|
16360             99\d
16361           )\d{6}
16362         </nationalNumberPattern>
16363         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16364         <exampleNumber>991234567</exampleNumber>
16365       </mobile>
16366     </territory>
16367
16368     <!-- Mexico -->
16369     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
16370                nationalPrefix="01"
16371                nationalPrefixForParsing="0[12]|04[45](\d{10})"
16372                nationalPrefixTransformRule="1$1"
16373                nationalPrefixFormattingRule="$NP $FG"
16374                nationalPrefixOptionalWhenFormatting="true"
16375                leadingZeroPossible="true" mobileNumberPortableRegion="true">
16376       <references>
16377         <sourceUrl>http://www.itu.int/oth/T020200008A/en</sourceUrl>
16378         <sourceUrl>http://en.wikipedia.org/wiki/%2B52</sourceUrl>
16379         <sourceUrl>http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico</sourceUrl>
16380         <sourceUrl>http://en.wikipedia.org/wiki/Toll-free_telephone_number</sourceUrl>
16381       </references>
16382       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
16383            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
16384            numbers, regardless of whether they are written in international format (leading 1) or
16385            national format (leading 044/045), will be parsed into the same form. -->
16386       <availableFormats>
16387         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
16388           <leadingDigits>
16389             33|
16390             55|
16391             81
16392           </leadingDigits>
16393           <format>$1 $2 $3</format>
16394         </numberFormat>
16395         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16396           <leadingDigits>
16397             [2467]|
16398             3[12457-9]|
16399             5[89]|
16400             8[02-9]|
16401             9[0-35-9]
16402           </leadingDigits>
16403           <format>$1 $2 $3</format>
16404         </numberFormat>
16405         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
16406           <leadingDigits>
16407             1(?:
16408               33|
16409               55|
16410               81
16411             )
16412           </leadingDigits>
16413           <format>044 $2 $3 $4</format>
16414           <intlFormat>$1 $2 $3 $4</intlFormat>
16415         </numberFormat>
16416         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
16417           <leadingDigits>
16418             1(?:
16419               [2467]|
16420               3[12457-9]|
16421               5[89]|
16422               8[2-9]|
16423               9[1-35-9]
16424             )
16425           </leadingDigits>
16426           <format>044 $2 $3 $4</format>
16427           <intlFormat>$1 $2 $3 $4</intlFormat>
16428         </numberFormat>
16429       </availableFormats>
16430       <generalDesc>
16431         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
16432         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
16433       </generalDesc>
16434       <fixedLine>
16435         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
16436         <nationalNumberPattern>
16437           (?:
16438             33|
16439             55|
16440             81
16441           )\d{8}|
16442           (?:
16443             2(?:
16444               2[2-9]|
16445               3[1-35-8]|
16446               4[13-9]|
16447               7[1-689]|
16448               8[1-578]|
16449               9[467]
16450             )|
16451             3(?:
16452               1[1-79]|
16453               [2458][1-9]|
16454               7[1-8]|
16455               9[1-5]
16456             )|
16457             4(?:
16458               1[1-57-9]|
16459               [24-6][1-9]|
16460               [37][1-8]|
16461               8[1-35-9]|
16462               9[2-689]
16463             )|
16464             5(?:
16465               88|
16466               9[1-79]
16467             )|
16468             6(?:
16469               1[2-68]|
16470               [234][1-9]|
16471               5[1-3689]|
16472               6[12457-9]|
16473               7[1-7]|
16474               8[67]|
16475               9[4-8]
16476             )|
16477             7(?:
16478               [13467][1-9]|
16479               2[1-8]|
16480               5[13-9]|
16481               8[1-69]|
16482               9[17]
16483             )|
16484             8(?:
16485               2[13-689]|
16486               3[1-6]|
16487               4[124-6]|
16488               6[1246-9]|
16489               7[1-378]|
16490               9[12479]
16491             )|
16492             9(?:
16493               1[346-9]|
16494               2[1-4]|
16495               3[2-46-8]|
16496               5[1348]|
16497               [69][1-9]|
16498               7[12]|
16499               8[1-8]
16500             )
16501           )\d{7}
16502         </nationalNumberPattern>
16503         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16504         <exampleNumber>2221234567</exampleNumber>
16505       </fixedLine>
16506       <mobile>
16507         <nationalNumberPattern>
16508           1(?:
16509             (?:
16510               33|
16511               55|
16512               81
16513             )\d{8}|
16514             (?:
16515               2(?:
16516                 2[2-9]|
16517                 3[1-35-8]|
16518                 4[13-9]|
16519                 7[1-689]|
16520                 8[1-578]|
16521                 9[467]
16522               )|
16523               3(?:
16524                 1[1-79]|
16525                 [2458][1-9]|
16526                 7[1-8]|
16527                 9[1-5]
16528               )|
16529               4(?:
16530                 1[1-57-9]|
16531                 [24-6][1-9]|
16532                 [37][1-8]|
16533                 8[1-35-9]|
16534                 9[2-689]
16535               )|
16536               5(?:
16537                 88|
16538                 9[1-79]
16539               )|
16540               6(?:
16541                 1[2-68]|
16542                 [2-4][1-9]|
16543                 5[1-3689]|
16544                 6[12457-9]|
16545                 7[1-7]|
16546                 8[67]|
16547                 9[4-8]
16548               )|
16549               7(?:
16550                 [13467][1-9]|
16551                 2[1-8]|
16552                 5[13-9]|
16553                 8[1-69]|
16554                 9[17]
16555               )|
16556               8(?:
16557                 2[13-689]|
16558                 3[1-6]|
16559                 4[124-6]|
16560                 6[1246-9]|
16561                 7[1-378]|
16562                 9[12479]
16563               )|
16564               9(?:
16565                 1[346-9]|
16566                 2[1-4]|
16567                 3[2-46-8]|
16568                 5[1348]|
16569                 [69][1-9]|
16570                 7[12]|
16571                 8[1-8]
16572               )
16573             )\d{7}
16574           )
16575         </nationalNumberPattern>
16576         <possibleNumberPattern>\d{11}</possibleNumberPattern>
16577         <exampleNumber>12221234567</exampleNumber>
16578       </mobile>
16579       <tollFree>
16580         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
16581         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16582         <exampleNumber>8001234567</exampleNumber>
16583       </tollFree>
16584       <premiumRate>
16585         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16586         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16587         <exampleNumber>9001234567</exampleNumber>
16588       </premiumRate>
16589     </territory>
16590
16591     <!-- Malaysia -->
16592     <territory id="MY" countryCode="60" internationalPrefix="00"
16593                nationalPrefix="0" mobileNumberPortableRegion="true">
16594       <references>
16595         <sourceUrl>http://en.wikipedia.org/wiki/%2B60</sourceUrl>
16596         <sourceUrl>http://www.skmm.gov.my</sourceUrl>
16597       </references>
16598       <availableFormats>
16599         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16600           pattern="([4-79])(\d{3})(\d{4})">
16601           <leadingDigits>[4-79]</leadingDigits>
16602           <format>$1-$2 $3</format>
16603         </numberFormat>
16604         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16605           pattern="(3)(\d{4})(\d{4})">
16606           <leadingDigits>3</leadingDigits>
16607           <format>$1-$2 $3</format>
16608         </numberFormat>
16609         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16610           pattern="([18]\d)(\d{3})(\d{3,4})">
16611           <leadingDigits>
16612             1[02-46-9][1-9]|
16613             8
16614           </leadingDigits>
16615           <format>$1-$2 $3</format>
16616         </numberFormat>
16617         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
16618           <leadingDigits>1[36-8]0</leadingDigits>
16619           <format>$1-$2-$3-$4</format>
16620         </numberFormat>
16621         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16622           pattern="(11)(\d{4})(\d{4})">
16623           <leadingDigits>11</leadingDigits>
16624           <format>$1-$2 $3</format>
16625         </numberFormat>
16626         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16627           pattern="(15[49])(\d{3})(\d{4})">
16628           <leadingDigits>15</leadingDigits>
16629           <format>$1-$2 $3</format>
16630         </numberFormat>
16631       </availableFormats>
16632       <generalDesc>
16633         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
16634         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
16635       </generalDesc>
16636       <fixedLine>
16637         <nationalNumberPattern>
16638           (?:
16639             3[2-9]\d|
16640             [4-9][2-9]
16641           )\d{6}
16642         </nationalNumberPattern>
16643         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
16644         <exampleNumber>323456789</exampleNumber>
16645       </fixedLine>
16646       <mobile>
16647         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
16648              is possible to send SMSs (and receive them) from numbers in this block, so we are
16649              listing them as mobile. 11[45] was added based on numbers found online. -->
16650         <nationalNumberPattern>
16651           1(?:
16652             1[1-5]\d{2}|
16653             [02-4679][2-9]\d|
16654             59\d{2}|
16655             8(?:
16656               1[23]|
16657               [2-9]\d
16658             )
16659           )\d{5}
16660         </nationalNumberPattern>
16661         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
16662         <exampleNumber>123456789</exampleNumber>
16663       </mobile>
16664       <tollFree>
16665         <!-- http://www.skmm.gov.my/skmmgovmy/media/General/pdf/Special_Service_Number.pdf -->
16666         <nationalNumberPattern>1[378]00\d{6}</nationalNumberPattern>
16667         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16668         <exampleNumber>1300123456</exampleNumber>
16669       </tollFree>
16670       <premiumRate>
16671         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
16672         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16673         <exampleNumber>1600123456</exampleNumber>
16674       </premiumRate>
16675       <voip>
16676         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
16677         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16678         <exampleNumber>1541234567</exampleNumber>
16679       </voip>
16680     </territory>
16681
16682     <!-- Mozambique -->
16683     <territory id="MZ" countryCode="258" internationalPrefix="00">
16684       <references>
16685         <sourceUrl>http://www.itu.int/oth/T0202000091/en</sourceUrl>
16686       </references>
16687       <availableFormats>
16688         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
16689           <leadingDigits>
16690             2|
16691             8[2-7]
16692           </leadingDigits>
16693           <format>$1 $2 $3</format>
16694         </numberFormat>
16695         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
16696           <leadingDigits>80</leadingDigits>
16697           <format>$1 $2 $3</format>
16698         </numberFormat>
16699       </availableFormats>
16700       <generalDesc>
16701         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
16702         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16703       </generalDesc>
16704       <fixedLine>
16705         <nationalNumberPattern>
16706           2(?:
16707             [1346]\d|
16708             5[0-2]|
16709             [78][12]|
16710             93
16711           )\d{5}
16712         </nationalNumberPattern>
16713         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16714         <exampleNumber>21123456</exampleNumber>
16715       </fixedLine>
16716       <mobile>
16717         <nationalNumberPattern>8[23467]\d{7}</nationalNumberPattern>
16718         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16719         <exampleNumber>821234567</exampleNumber>
16720       </mobile>
16721       <tollFree>
16722         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
16723              examples. -->
16724         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
16725         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16726         <exampleNumber>800123456</exampleNumber>
16727       </tollFree>
16728       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
16729            a 9 are premium rate, but no online examples can be found of any of these so they are
16730            omitted for the time-being. -->
16731     </territory>
16732
16733     <!-- Namibia -->
16734     <territory id="NA" countryCode="264" internationalPrefix="00"
16735                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16736       <references>
16737         <sourceUrl>http://www.itu.int/oth/T0202000093/en</sourceUrl>
16738       </references>
16739       <availableFormats>
16740         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
16741           <leadingDigits>8[1235]</leadingDigits>
16742           <format>$1 $2 $3</format>
16743         </numberFormat>
16744         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
16745           <leadingDigits>6</leadingDigits>
16746           <format>$1 $2 $3</format>
16747         </numberFormat>
16748         <numberFormat pattern="(88)(\d{3})(\d{3})">
16749           <leadingDigits>88</leadingDigits>
16750           <format>$1 $2 $3</format>
16751         </numberFormat>
16752         <numberFormat pattern="(870)(\d{3})(\d{3})">
16753           <leadingDigits>870</leadingDigits>
16754           <format>$1 $2 $3</format>
16755         </numberFormat>
16756       </availableFormats>
16757       <generalDesc>
16758         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
16759         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16760       </generalDesc>
16761       <fixedLine>
16762         <!-- Includes VSAT service. -->
16763         <nationalNumberPattern>
16764           6(?:
16765             1(?:
16766               17|
16767               2(?:
16768                 [0189]\d|
16769                 [2-6]|
16770                 7\d?
16771               )|
16772               3(?:
16773                 [01378]|
16774                 2\d
16775               )|
16776               4[01]|
16777               69|
16778               7[014]
16779             )|
16780             2(?:
16781               17|
16782               5(?:
16783                 [0-36-8]|
16784                 4\d?
16785               )|
16786               69|
16787               70
16788             )|
16789             3(?:
16790               17|
16791               2(?:
16792                 [0237]\d?|
16793                 [14-689]
16794               )|
16795               34|
16796               6[29]|
16797               7[01]|
16798               81
16799             )|
16800             4(?:
16801               17|
16802               2(?:
16803                 [012]|
16804                 7?
16805               )|
16806               4(?:
16807                 [06]|
16808                 1\d
16809               )|
16810               5(?:
16811                 [01357]|
16812                 [25]\d?
16813               )|
16814               69|
16815               7[01]
16816             )|
16817             5(?:
16818               17|
16819               2(?:
16820                 [0459]|
16821                 [23678]\d?
16822               )|
16823               69|
16824               7[01]
16825             )|
16826             6(?:
16827               17|
16828               2(?:
16829                 5|
16830                 6\d?
16831               )|
16832               38|
16833               42|
16834               69|
16835               7[01]
16836             )|
16837             7(?:
16838               17|
16839               2(?:
16840                 [569]|
16841                 [234]\d?
16842               )|
16843               3(?:
16844                 0\d?|
16845                 [13]
16846               )|
16847               69|
16848               7[01]
16849             )
16850           )\d{4}
16851         </nationalNumberPattern>
16852         <exampleNumber>61221234</exampleNumber>
16853       </fixedLine>
16854       <mobile>
16855         <!-- Includes the Switch CDMA Service. -->
16856         <nationalNumberPattern>
16857           (?:
16858             60|
16859             8[125]
16860           )\d{7}
16861         </nationalNumberPattern>
16862         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16863         <exampleNumber>811234567</exampleNumber>
16864       </mobile>
16865       <premiumRate>
16866         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
16867         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16868         <exampleNumber>870123456</exampleNumber>
16869       </premiumRate>
16870       <voip>
16871         <!-- Including virtual telephone and VOIP services. -->
16872         <nationalNumberPattern>
16873           8(?:
16874             3\d{2}|
16875             86
16876           )\d{5}
16877         </nationalNumberPattern>
16878         <exampleNumber>88612345</exampleNumber>
16879       </voip>
16880     </territory>
16881
16882     <!-- New Caledonia (Territoire français d'outre-mer) -->
16883     <territory id="NC" countryCode="687" internationalPrefix="00">
16884       <references>
16885         <sourceUrl>http://www.itu.int/oth/T0202000098/en</sourceUrl>
16886         <sourceUrl>http://www.opt.nc</sourceUrl>
16887       </references>
16888       <availableFormats>
16889         <!-- From http://www.1012.nc, the local yellow pages. -->
16890         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
16891           <!-- We exclude short-codes here so they are formatted as a block -->
16892           <leadingDigits>
16893             [2-46-9]|
16894             5[0-4]
16895           </leadingDigits>
16896           <format>$1.$2.$3</format>
16897         </numberFormat>
16898       </availableFormats>
16899       <generalDesc>
16900         <nationalNumberPattern>[2-57-9]\d{5}</nationalNumberPattern>
16901         <possibleNumberPattern>\d{6}</possibleNumberPattern>
16902       </generalDesc>
16903       <fixedLine>
16904         <!-- Including the 88 prefix for public payphones. -->
16905         <nationalNumberPattern>
16906           (?:
16907             2[03-9]|
16908             3[0-5]|
16909             4[1-7]|
16910             88
16911           )\d{4}
16912         </nationalNumberPattern>
16913         <exampleNumber>201234</exampleNumber>
16914       </fixedLine>
16915       <mobile>
16916         <nationalNumberPattern>
16917           (?:
16918             5[0-4]|
16919             [79]\d|
16920             8[0-79]
16921           )\d{4}
16922         </nationalNumberPattern>
16923         <exampleNumber>751234</exampleNumber>
16924       </mobile>
16925       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
16926       <!-- Note that OPT lists 3631 as a free short number for caller ID services, but the ITU
16927            document says that all 36 numbers are 6 digits. See ShortNumberMetadata.xml for more. -->
16928       <premiumRate>
16929         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
16930         <exampleNumber>366711</exampleNumber>
16931       </premiumRate>
16932     </territory>
16933
16934     <!-- Niger -->
16935     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
16936       <references>
16937         <sourceUrl>http://www.itu.int/oth/T020200009B/en</sourceUrl>
16938       </references>
16939       <availableFormats>
16940         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
16941           <leadingDigits>
16942             [289]|
16943             09
16944           </leadingDigits>
16945           <format>$1 $2 $3 $4</format>
16946         </numberFormat>
16947         <numberFormat pattern="(08)(\d{3})(\d{3})">
16948           <leadingDigits>08</leadingDigits>
16949           <format>$1 $2 $3</format>
16950         </numberFormat>
16951       </availableFormats>
16952       <generalDesc>
16953         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
16954         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16955       </generalDesc>
16956       <fixedLine>
16957         <!-- Adding 20 61 from online numbers. -->
16958         <nationalNumberPattern>
16959           2(?:
16960             0(?:
16961               20|
16962               3[1-7]|
16963               4[134]|
16964               5[14]|
16965               6[14578]|
16966               7[1-578]
16967             )|
16968             1(?:
16969               4[145]|
16970               5[14]|
16971               6[14-68]|
16972               7[169]|
16973               88
16974             )
16975           )\d{4}
16976         </nationalNumberPattern>
16977         <exampleNumber>20201234</exampleNumber>
16978       </fixedLine>
16979       <mobile>
16980         <!-- Added 88, 90, 91, 92, 95, 97, 98 & 99 from online data. Airtel have confirmed that they
16981              use the 89 and 97 prefixes, and Orange use 92. MOOV started using 95 in Jan 2014. -->
16982         <nationalNumberPattern>
16983           (?:
16984             8[89]|
16985             9\d
16986           )\d{6}
16987         </nationalNumberPattern>
16988         <exampleNumber>93123456</exampleNumber>
16989       </mobile>
16990       <tollFree>
16991         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
16992         <exampleNumber>08123456</exampleNumber>
16993       </tollFree>
16994       <premiumRate>
16995         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
16996         <exampleNumber>09123456</exampleNumber>
16997       </premiumRate>
16998     </territory>
16999
17000     <!-- Norfolk Island -->
17001     <!-- Including numbers for Australian Antarctic stations. -->
17002     <territory id="NF" countryCode="672" internationalPrefix="00">
17003       <references>
17004         <sourceUrl>http://www.itu.int/oth/T020200009D/en</sourceUrl>
17005       </references>
17006       <availableFormats>
17007         <numberFormat pattern="(\d{2})(\d{4})">
17008            <leadingDigits>1</leadingDigits>
17009           <format>$1 $2</format>
17010         </numberFormat>
17011         <numberFormat pattern="(\d)(\d{5})">
17012           <leadingDigits>3</leadingDigits>
17013           <format>$1 $2</format>
17014         </numberFormat>
17015       </availableFormats>
17016       <generalDesc>
17017         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
17018         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17019       </generalDesc>
17020       <fixedLine>
17021         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
17022              connect after we tried calling them. -->
17023         <nationalNumberPattern>
17024           (?:
17025             1(?:
17026               06|
17027               17|
17028               28|
17029               39
17030             )|
17031             3[012]\d
17032           )\d{3}
17033         </nationalNumberPattern>
17034         <exampleNumber>106609</exampleNumber>
17035       </fixedLine>
17036       <mobile>
17037         <!-- Numbers found online with prefix 35. -->
17038         <nationalNumberPattern>3[58]\d{4}</nationalNumberPattern>
17039         <exampleNumber>381234</exampleNumber>
17040       </mobile>
17041     </territory>
17042
17043     <!-- Nigeria -->
17044     <territory id="NG" countryCode="234" internationalPrefix="009"
17045                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17046                mobileNumberPortableRegion="true">
17047       <references>
17048         <sourceUrl>http://www.itu.int/oth/T020200009C/en</sourceUrl>
17049       </references>
17050       <availableFormats>
17051         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
17052           <leadingDigits>[129]</leadingDigits>
17053           <format>$1 $2 $3</format>
17054         </numberFormat>
17055         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
17056           <leadingDigits>
17057             [3-6]|
17058             7(?:
17059               [1-79]|
17060               0[1-9]
17061             )|
17062             8[2-9]
17063           </leadingDigits>
17064           <format>$1 $2 $3</format>
17065         </numberFormat>
17066         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17067           <leadingDigits>
17068             70|
17069             8[01]|
17070             90[2359]
17071           </leadingDigits>
17072           <format>$1 $2 $3</format>
17073         </numberFormat>
17074         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17075           <leadingDigits>[78]00</leadingDigits>
17076           <format>$1 $2 $3</format>
17077         </numberFormat>
17078         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
17079           <leadingDigits>[78]00</leadingDigits>
17080           <format>$1 $2 $3</format>
17081         </numberFormat>
17082         <numberFormat pattern="(78)(\d{2})(\d{3})">
17083           <leadingDigits>78</leadingDigits>
17084           <format>$1 $2 $3</format>
17085         </numberFormat>
17086       </availableFormats>
17087       <generalDesc>
17088         <nationalNumberPattern>
17089           [1-6]\d{5,8}|
17090           9\d{5,9}|
17091           [78]\d{5,13}
17092         </nationalNumberPattern>
17093         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
17094       </generalDesc>
17095       <fixedLine>
17096         <nationalNumberPattern>
17097           [12]\d{6,7}|
17098           9(?:
17099             0[3-9]|
17100             [1-9]\d
17101           )\d{5}|
17102           (?:
17103             3\d|
17104             4[023568]|
17105             5[02368]|
17106             6[02-469]|
17107             7[4-69]|
17108             8[2-9]
17109           )\d{6}|
17110           (?:
17111             4[47]|
17112             5[14579]|
17113             6[1578]|
17114             7[0-357]
17115           )\d{5,6}|
17116           (?:
17117             78|
17118             41
17119           )\d{5}
17120         </nationalNumberPattern>
17121         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
17122         <exampleNumber>12345678</exampleNumber>
17123       </fixedLine>
17124       <mobile>
17125         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17126              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17127              Starcomms have apparently, according to the company, been used for mobile numbers too,
17128              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17129              903 has been added for MTN, 905 has been added for Globacom (Glo), and 909 has been
17130              added for Etisalat. -->
17131         <nationalNumberPattern>
17132           (?:
17133             1(?:
17134               7[34]\d|
17135               8(?:
17136                 04|
17137                 [124579]\d|
17138                 8[0-3]
17139               )|
17140               95\d
17141             )|
17142             287[0-7]|
17143             3(?:
17144               18[1-8]|
17145               88[0-7]|
17146               9(?:
17147                 8[5-9]|
17148                 6[1-5]
17149               )
17150             )|
17151             4(?:
17152               28[0-2]|
17153               6(?:
17154                 7[1-9]|
17155                 8[02-47]
17156               )|
17157               88[0-2]
17158             )|
17159             5(?:
17160               2(?:
17161                 7[7-9]|
17162                 8\d
17163               )|
17164               38[1-79]|
17165               48[0-7]|
17166               68[4-7]
17167             )|
17168             6(?:
17169               2(?:
17170                 7[7-9]|
17171                 8\d
17172               )|
17173               4(?:
17174                 3[7-9]|
17175                 [68][129]|
17176                 7[04-69]|
17177                 9[1-8]
17178               )|
17179               58[0-2]|
17180               98[7-9]
17181             )|
17182             7(?:
17183               38[0-7]|
17184               69[1-8]|
17185               78[2-4]
17186             )|
17187             8(?:
17188               28[3-9]|
17189               38[0-2]|
17190               4(?:
17191                 2[12]|
17192                 3[147-9]|
17193                 5[346]|
17194                 7[4-9]|
17195                 8[014-689]|
17196                 90
17197               )|
17198               58[1-8]|
17199               78[2-9]|
17200               88[5-7]
17201             )|
17202             98[07]\d
17203           )\d{4}|
17204           (?:
17205             70(?:
17206               [13-9]\d|
17207               2[1-9]
17208             )|
17209             8(?:
17210               0[2-9]|
17211               1\d
17212             )\d|
17213             90[2359]\d
17214           )\d{6}
17215         </nationalNumberPattern>
17216         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17217         <exampleNumber>8021234567</exampleNumber>
17218       </mobile>
17219       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
17220       <tollFree>
17221         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
17222         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17223         <exampleNumber>80017591759</exampleNumber>
17224       </tollFree>
17225       <uan>
17226         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
17227         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17228         <exampleNumber>7001234567</exampleNumber>
17229       </uan>
17230     </territory>
17231
17232     <!-- Nicaragua -->
17233     <territory id="NI" countryCode="505" internationalPrefix="00">
17234       <references>
17235         <sourceUrl>http://www.itu.int/oth/T020200009A/en</sourceUrl>
17236       </references>
17237       <availableFormats>
17238         <numberFormat pattern="(\d{4})(\d{4})">
17239           <format>$1 $2</format>
17240         </numberFormat>
17241       </availableFormats>
17242       <generalDesc>
17243         <nationalNumberPattern>[12578]\d{7}</nationalNumberPattern>
17244         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17245       </generalDesc>
17246       <fixedLine>
17247         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
17248         <exampleNumber>21234567</exampleNumber>
17249       </fixedLine>
17250       <mobile>
17251         <!-- 55[0-7], 57, 58 and 7[5-8] were added from bug reports/numbers found online. -->
17252         <nationalNumberPattern>
17253           5(?:
17254             5[0-7]\d{5}|
17255             [78]\d{6}
17256           )|
17257           7[5-8]\d{6}|
17258           8\d{7}
17259         </nationalNumberPattern>
17260         <exampleNumber>81234567</exampleNumber>
17261       </mobile>
17262       <tollFree>
17263         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
17264         <exampleNumber>18001234</exampleNumber>
17265       </tollFree>
17266     </territory>
17267
17268     <!-- Netherlands -->
17269     <territory id="NL" countryCode="31" internationalPrefix="00"
17270                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17271                mobileNumberPortableRegion="true">
17272       <references>
17273         <sourceUrl>http://en.wikipedia.org/wiki/%2B31</sourceUrl>
17274         <sourceUrl>http://wetten.overheid.nl/BWBR0010198</sourceUrl>
17275       </references>
17276       <availableFormats>
17277         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
17278           <leadingDigits>
17279             1[035]|
17280             2[0346]|
17281             3[03568]|
17282             4[0356]|
17283             5[0358]|
17284             7|
17285             8[4578]
17286           </leadingDigits>
17287           <format>$1 $2 $3</format>
17288         </numberFormat>
17289         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
17290           <leadingDigits>
17291             1[16-8]|
17292             2[259]|
17293             3[124]|
17294             4[17-9]|
17295             5[124679]
17296           </leadingDigits>
17297           <format>$1 $2 $3</format>
17298         </numberFormat>
17299         <numberFormat pattern="(6)(\d{8})">
17300           <leadingDigits>6[0-57-9]</leadingDigits>
17301           <format>$1 $2</format>
17302         </numberFormat>
17303         <numberFormat pattern="(66)(\d{7})">
17304           <leadingDigits>66</leadingDigits>
17305           <format>$1 $2</format>
17306         </numberFormat>
17307         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
17308           <leadingDigits>14</leadingDigits>
17309           <format>$1 $2</format>
17310         </numberFormat>
17311         <numberFormat pattern="([89]0\d)(\d{4,7})">
17312           <leadingDigits>
17313             80|
17314             9
17315           </leadingDigits>
17316           <format>$1 $2</format>
17317         </numberFormat>
17318       </availableFormats>
17319       <generalDesc>
17320         <nationalNumberPattern>
17321           1\d{4,8}|
17322           [2-7]\d{8}|
17323           [89]\d{6,9}
17324         </nationalNumberPattern>
17325         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
17326       </generalDesc>
17327       <noInternationalDialling>
17328         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
17329         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17330       </noInternationalDialling>
17331       <fixedLine>
17332         <nationalNumberPattern>
17333           (?:
17334             1[0135-8]|
17335             2[02-69]|
17336             3[0-68]|
17337             4[0135-9]|
17338             [57]\d|
17339             8[478]
17340           )\d{7}
17341         </nationalNumberPattern>
17342         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17343         <exampleNumber>101234567</exampleNumber>
17344       </fixedLine>
17345       <mobile>
17346         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
17347         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17348         <exampleNumber>612345678</exampleNumber>
17349       </mobile>
17350       <pager>
17351         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
17352         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17353         <exampleNumber>662345678</exampleNumber>
17354       </pager>
17355       <tollFree>
17356         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
17357         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17358         <exampleNumber>8001234</exampleNumber>
17359       </tollFree>
17360       <premiumRate>
17361         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
17362         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17363         <exampleNumber>9061234</exampleNumber>
17364       </premiumRate>
17365       <voip>
17366         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
17367         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17368         <exampleNumber>851234567</exampleNumber>
17369       </voip>
17370       <uan>
17371         <!-- These numbers are used for local government. They are formed by the appending the local
17372              dialling code (including the national prefix 0) after the leading digits "14". -->
17373         <nationalNumberPattern>
17374           140(?:
17375             1(?:
17376               [035]|
17377               [16-8]\d
17378             )|
17379             2(?:
17380               [0346]|
17381               [259]\d
17382             )|
17383             3(?:
17384               [03568]|
17385               [124]\d
17386             )|
17387             4(?:
17388               [0356]|
17389               [17-9]\d
17390             )|
17391             5(?:
17392               [0358]|
17393               [124679]\d
17394             )|
17395             7\d|
17396             8[458]
17397           )
17398         </nationalNumberPattern>
17399         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17400         <exampleNumber>14020</exampleNumber>
17401       </uan>
17402     </territory>
17403
17404     <!-- Norway -->
17405     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
17406     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
17407                mainCountryForCode="true" mobileNumberPortableRegion="true">
17408       <references>
17409         <sourceUrl>http://www.npt.no/npt/numsys/E.164.pdf</sourceUrl>
17410       </references>
17411       <availableFormats>
17412         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
17413           <leadingDigits>[489]</leadingDigits>
17414           <format>$1 $2 $3</format>
17415         </numberFormat>
17416         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
17417           <leadingDigits>[235-7]</leadingDigits>
17418           <format>$1 $2 $3 $4</format>
17419         </numberFormat>
17420       </availableFormats>
17421       <generalDesc>
17422         <nationalNumberPattern>
17423           0\d{4}|
17424           [2-9]\d{7}
17425         </nationalNumberPattern>
17426         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
17427       </generalDesc>
17428       <fixedLine>
17429         <!-- Excludes Svalbard fixed-line numbers. -->
17430         <nationalNumberPattern>
17431           (?:
17432             2[1-4]|
17433             3[1-3578]|
17434             5[1-35-7]|
17435             6[1-4679]|
17436             7[0-8]
17437           )\d{6}
17438         </nationalNumberPattern>
17439         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17440         <exampleNumber>21234567</exampleNumber>
17441       </fixedLine>
17442       <mobile>
17443         <nationalNumberPattern>
17444           (?:
17445             4[015-8]|
17446             5[89]|
17447             9\d
17448           )\d{6}
17449         </nationalNumberPattern>
17450         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17451         <exampleNumber>40612345</exampleNumber>
17452       </mobile>
17453       <tollFree>
17454         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
17455         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17456         <exampleNumber>80012345</exampleNumber>
17457       </tollFree>
17458       <premiumRate>
17459         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
17460         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17461         <exampleNumber>82012345</exampleNumber>
17462       </premiumRate>
17463       <sharedCost>
17464         <nationalNumberPattern>
17465           810(?:
17466             0[0-6]|
17467             [2-8]\d
17468           )\d{3}
17469         </nationalNumberPattern>
17470         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17471         <exampleNumber>81021234</exampleNumber>
17472       </sharedCost>
17473       <personalNumber>
17474         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
17475         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17476         <exampleNumber>88012345</exampleNumber>
17477       </personalNumber>
17478       <voip>
17479         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
17480         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17481         <exampleNumber>85012345</exampleNumber>
17482       </voip>
17483       <uan>
17484         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
17485         <nationalNumberPattern>
17486           0\d{4}|
17487           81(?:
17488             0(?:
17489               0[7-9]|
17490               1\d
17491             )|
17492             5\d{2}
17493           )\d{3}
17494         </nationalNumberPattern>
17495         <exampleNumber>01234</exampleNumber>
17496       </uan>
17497       <voicemail>
17498         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
17499         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17500         <exampleNumber>81212345</exampleNumber>
17501       </voicemail>
17502     </territory>
17503
17504     <!-- Nepal -->
17505     <territory id="NP" countryCode="977" internationalPrefix="00"
17506                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17507       <references>
17508         <sourceUrl>http://www.itu.int/oth/T0202000095/en</sourceUrl>
17509         <sourceUrl>http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php</sourceUrl>
17510         <sourceUrl>http://www.nta.gov.np/en/2012-06-01-11-45-17/2012-06-04-04-26-59/numbering-plan</sourceUrl>
17511       </references>
17512       <availableFormats>
17513         <!-- Formatting patterns taken from pages like http://www.nepalgov.gov.np -->
17514         <numberFormat pattern="(1)(\d{7})">
17515           <leadingDigits>1[2-6]</leadingDigits>
17516           <format>$1-$2</format>
17517         </numberFormat>
17518         <numberFormat pattern="(\d{2})(\d{6})">
17519           <leadingDigits>
17520             1[01]|
17521             [2-8]|
17522             9(?:
17523               [1-69]|
17524               7[15-9]
17525             )
17526           </leadingDigits>
17527           <format>$1-$2</format>
17528         </numberFormat>
17529         <numberFormat pattern="(9\d{2})(\d{7})">
17530           <leadingDigits>
17531             9(?:
17532               6[013]|
17533               7[245]|
17534               8
17535             )
17536             </leadingDigits>
17537           <format>$1-$2</format>
17538         </numberFormat>
17539       </availableFormats>
17540       <generalDesc>
17541         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
17542              numbers that have the country code prefixed. -->
17543         <nationalNumberPattern>
17544           [1-8]\d{7}|
17545           9(?:
17546             [1-69]\d{6,8}|
17547             7[2-6]\d{5,7}|
17548             8\d{8}
17549           )
17550         </nationalNumberPattern>
17551         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17552       </generalDesc>
17553       <!-- We don't support Rural Telecommunication Service at the moment since
17554            we are not sure what type it is. -->
17555       <fixedLine>
17556         <nationalNumberPattern>
17557           (?:
17558             1[0-6]\d|
17559             2[13-79][2-6]|
17560             3[135-8][2-6]|
17561             4[146-9][2-6]|
17562             5[135-7][2-6]|
17563             6[13-9][2-6]|
17564             7[15-9][2-6]|
17565             8[1-46-9][2-6]|
17566             9[1-79][2-6]
17567           )\d{5}
17568         </nationalNumberPattern>
17569         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17570         <exampleNumber>14567890</exampleNumber>
17571       </fixedLine>
17572       <mobile>
17573         <nationalNumberPattern>
17574           9(?:
17575             6[013]|
17576             7[245]|
17577             8[01456]
17578           )\d{7}
17579         </nationalNumberPattern>
17580         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17581         <exampleNumber>9841234567</exampleNumber>
17582       </mobile>
17583       <!-- No information on other types of phone numbers for Nepal has been found. -->
17584     </territory>
17585
17586     <!-- Nauru -->
17587     <territory id="NR" countryCode="674" internationalPrefix="00">
17588       <references>
17589         <sourceUrl>http://www.itu.int/oth/T0202000094/en</sourceUrl>
17590         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru</sourceUrl>
17591       </references>
17592       <availableFormats>
17593         <numberFormat pattern="(\d{3})(\d{4})">
17594           <format>$1 $2</format>
17595         </numberFormat>
17596       </availableFormats>
17597       <generalDesc>
17598         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
17599         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17600       </generalDesc>
17601       <fixedLine>
17602         <nationalNumberPattern>
17603           (?:
17604             444|
17605             888
17606           )\d{4}
17607         </nationalNumberPattern>
17608         <exampleNumber>4441234</exampleNumber>
17609       </fixedLine>
17610       <mobile>
17611         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
17612         <exampleNumber>5551234</exampleNumber>
17613       </mobile>
17614     </territory>
17615
17616     <!-- Niue -->
17617     <territory id="NU" countryCode="683" internationalPrefix="00">
17618       <references>
17619         <sourceUrl>http://www.itu.int/oth/T02020000EC/en</sourceUrl>
17620         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue</sourceUrl>
17621       </references>
17622       <!-- Numbers are always formatted as a block. -->
17623       <generalDesc>
17624         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
17625         <possibleNumberPattern>\d{4}</possibleNumberPattern>
17626       </generalDesc>
17627       <fixedLine>
17628         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
17629         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
17630         <exampleNumber>4002</exampleNumber>
17631       </fixedLine>
17632       <mobile>
17633         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
17634         <exampleNumber>1234</exampleNumber>
17635       </mobile>
17636     </territory>
17637
17638     <!-- New Zealand -->
17639     <!-- Includes Ross Dependency, Antarctica -->
17640     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
17641          numbers and 050 "Nation-Wide Service". -->
17642     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
17643                preferredInternationalPrefix="00" nationalPrefix="0"
17644                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
17645       <references>
17646         <sourceUrl>http://www.itu.int/oth/T0202000099/en</sourceUrl>
17647       </references>
17648       <availableFormats>
17649         <!-- Pattern for fixed-line formats. -->
17650         <numberFormat pattern="([34679])(\d{3})(\d{4})">
17651           <leadingDigits>
17652             [346]|
17653             7[2-57-9]|
17654             9[1-9]
17655           </leadingDigits>
17656           <format>$1-$2 $3</format>
17657         </numberFormat>
17658         <!-- Area code for NZ's Scott Base, in Antarctica. -->
17659         <numberFormat pattern="(24099)(\d{3})">
17660           <leadingDigits>240</leadingDigits>
17661           <leadingDigits>2409</leadingDigits>
17662           <leadingDigits>24099</leadingDigits>
17663           <format>$1 $2</format>
17664         </numberFormat>
17665         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
17666              length. -->
17667         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
17668         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
17669           <leadingDigits>21</leadingDigits>
17670           <format>$1 $2 $3</format>
17671         </numberFormat>
17672         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
17673         <numberFormat pattern="(\d{2})(\d{3})(\d{3,5})">
17674           <leadingDigits>
17675             2(?:
17676               1[1-9]|
17677               [69]|
17678               7[0-35-9]
17679             )|
17680             70|
17681             86
17682           </leadingDigits>
17683           <format>$1 $2 $3</format>
17684         </numberFormat>
17685         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
17686              than writing the first group as 022X based on Google web searches, and is used by
17687              2Degrees themselves. See formatting on http://www.2degreesmobile.co.nz for an example
17688              of the latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
17689         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
17690           <leadingDigits>2[028]</leadingDigits>
17691           <format>$1 $2 $3</format>
17692         </numberFormat>
17693         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17694           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900. -->
17695           <leadingDigits>
17696             2(?:
17697               10|
17698               74
17699             )|
17700             5|
17701             [89]0
17702           </leadingDigits>
17703           <format>$1 $2 $3</format>
17704         </numberFormat>
17705       </availableFormats>
17706       <generalDesc>
17707         <nationalNumberPattern>
17708           6[235-9]\d{6}|
17709           [2-57-9]\d{7,10}
17710         </nationalNumberPattern>
17711         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
17712       </generalDesc>
17713       <fixedLine>
17714         <nationalNumberPattern>
17715           (?:
17716             3[2-79]|
17717             [49][2-9]|
17718             6[235-9]|
17719             7[2-57-9]
17720           )\d{6}|
17721           24099\d{3}
17722         </nationalNumberPattern>
17723         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17724         <exampleNumber>32345678</exampleNumber>
17725       </fixedLine>
17726       <mobile>
17727         <!-- Includes mobile radio service numbers (e.g. TeamTalk). The lengths of numbers with
17728              prefix 21 are different from what's specified in the ITU doc, because of numbers found
17729              online. -->
17730         <nationalNumberPattern>
17731           2(?:
17732             [028]\d{7,8}|
17733             1(?:
17734               [03]\d{5,7}|
17735               [12457]\d{5,6}|
17736               [689]\d{5}
17737             )|
17738             [79]\d{7}
17739           )
17740         </nationalNumberPattern>
17741         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17742         <exampleNumber>211234567</exampleNumber>
17743       </mobile>
17744       <pager>
17745         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
17746         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17747         <exampleNumber>26123456</exampleNumber>
17748       </pager>
17749       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
17750            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
17751            not covered, as telecom companies don't seem to support them yet. -->
17752       <tollFree>
17753         <nationalNumberPattern>
17754           508\d{6,7}|
17755           80\d{6,8}
17756         </nationalNumberPattern>
17757         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17758         <exampleNumber>800123456</exampleNumber>
17759       </tollFree>
17760       <premiumRate>
17761         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
17762         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
17763         <exampleNumber>900123456</exampleNumber>
17764       </premiumRate>
17765       <personalNumber>
17766         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
17767         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17768         <exampleNumber>701234567</exampleNumber>
17769       </personalNumber>
17770     </territory>
17771
17772     <!-- Oman -->
17773     <territory id="OM" countryCode="968" internationalPrefix="00" mobileNumberPortableRegion="true">
17774       <references>
17775         <sourceUrl>http://www.itu.int/oth/T020200009F/en</sourceUrl>
17776       </references>
17777       <availableFormats>
17778         <numberFormat pattern="(2\d)(\d{6})">
17779           <leadingDigits>2</leadingDigits>
17780           <format>$1 $2</format>
17781         </numberFormat>
17782         <numberFormat pattern="(9\d{3})(\d{4})">
17783           <leadingDigits>9</leadingDigits>
17784           <format>$1 $2</format>
17785         </numberFormat>
17786         <numberFormat pattern="([58]00)(\d{4,6})">
17787           <leadingDigits>[58]</leadingDigits>
17788           <format>$1 $2</format>
17789         </numberFormat>
17790       </availableFormats>
17791       <generalDesc>
17792         <nationalNumberPattern>
17793           (?:
17794             2[2-6]|
17795             5|
17796             9[1-9]
17797           )\d{6}|
17798           800\d{5,6}
17799         </nationalNumberPattern>
17800         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17801       </generalDesc>
17802       <fixedLine>
17803         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
17804         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17805         <exampleNumber>23123456</exampleNumber>
17806       </fixedLine>
17807       <mobile>
17808         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
17809         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17810         <exampleNumber>92123456</exampleNumber>
17811       </mobile>
17812       <tollFree>
17813         <!-- Link to document about toll-free numbers on http://www.tra.gov.om, which suggests they
17814              should be 8007 followed by 4 digits. However, the only examples I can find, including
17815              the customer help line for the main telephony company there (omantel), is 8007 followed
17816              by 5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to
17817              offer international toll-free dialing numbers - +968 500 1300 for international help
17818              desk for omantel, for example. -->
17819         <nationalNumberPattern>
17820           8007\d{4,5}|
17821           500\d{4}
17822         </nationalNumberPattern>
17823         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17824         <exampleNumber>80071234</exampleNumber>
17825       </tollFree>
17826       <!-- No premiumRate information can be found. -->
17827     </territory>
17828
17829     <!-- Panama -->
17830     <territory id="PA" countryCode="507" internationalPrefix="00" mobileNumberPortableRegion="true">
17831       <references>
17832         <!-- Last read July 9, 2014. -->
17833         <sourceUrl>http://www.asep.gob.pa/telecom/pnn/default.asp</sourceUrl>
17834         <!-- Omits the fact that mobile phones are 8 digits long. -->
17835         <sourceUrl>http://en.wikipedia.org/wiki/%2B507</sourceUrl>
17836       </references>
17837       <availableFormats>
17838         <numberFormat pattern="(\d{3})(\d{4})">
17839           <leadingDigits>[1-57-9]</leadingDigits>
17840           <format>$1-$2</format>
17841         </numberFormat>
17842         <numberFormat pattern="(\d{4})(\d{4})">
17843           <leadingDigits>6</leadingDigits>
17844           <format>$1-$2</format>
17845         </numberFormat>
17846       </availableFormats>
17847       <generalDesc>
17848         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
17849         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17850       </generalDesc>
17851       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
17852            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
17853       <fixedLine>
17854         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
17855              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
17856         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
17857              proved to be diallable. -->
17858         <nationalNumberPattern>
17859           (?:
17860             1(?:
17861               0[02-579]|
17862               19|
17863               2[37]|
17864               3[03]|
17865               4[479]|
17866               57|
17867               65|
17868               7[016-8]|
17869               8[58]|
17870               9[1349]
17871             )|
17872             2(?:
17873               [0235679]\d|
17874               1[0-7]|
17875               4[04-9]|
17876               8[028]
17877             )|
17878             3(?:
17879               [09]\d|
17880               1[14-7]|
17881               2[0-3]|
17882               3[03]|
17883               4[0457]|
17884               5[56]|
17885               6[068]|
17886               7[06-8]|
17887               8[089]
17888             )|
17889             4(?:
17890               3[013-69]|
17891               4\d|
17892               7[0-689]
17893             )|
17894             5(?:
17895               [01]\d|
17896               2[0-7]|
17897               [56]0|
17898               79
17899             )|
17900             7(?:
17901               0[09]|
17902               2[0-267]|
17903               3[06]|
17904               [49]0|
17905               5[06-9]|
17906               7[0-24-7]|
17907               8[89]
17908             )|
17909             8(?:
17910               [34]\d|
17911               5[0-4]|
17912               8[02]
17913             )|
17914             9(?:
17915               0[6-8]|
17916               1[016-8]|
17917               2[036-8]|
17918               3[3679]|
17919               40|
17920               5[0489]|
17921               6[06-9]|
17922               7[046-9]|
17923               8[36-8]|
17924               9[1-9]
17925             )
17926           )\d{4}
17927         </nationalNumberPattern>
17928         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17929         <exampleNumber>2001234</exampleNumber>
17930       </fixedLine>
17931       <mobile>
17932         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
17933              service "210", "Servicio de Busca Personas". -->
17934         <nationalNumberPattern>
17935           (?:
17936             1[16]1|
17937             21[89]|
17938             8(?:
17939               1[01]|
17940               7[23]
17941             )
17942           )\d{4}|
17943           6(?:
17944             [024-9]\d|
17945             1[0-5]|
17946             3[0-24-9]
17947           )\d{5}
17948         </nationalNumberPattern>
17949         <exampleNumber>60012345</exampleNumber>
17950       </mobile>
17951       <tollFree>
17952         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
17953         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17954         <exampleNumber>8001234</exampleNumber>
17955       </tollFree>
17956       <premiumRate>
17957         <!-- Value-added services are represented as "400" in the plan. -->
17958         <nationalNumberPattern>
17959           (?:
17960             779|
17961             8(?:
17962               2[235]|
17963               55|
17964               60|
17965               7[578]|
17966               86|
17967               95
17968             )|
17969             9(?:
17970               0[0-2]|
17971               81
17972             )
17973           )\d{4}
17974         </nationalNumberPattern>
17975         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17976         <exampleNumber>8601234</exampleNumber>
17977       </premiumRate>
17978     </territory>
17979
17980     <!-- Peru -->
17981     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
17982                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
17983                preferredExtnPrefix=" Anexo " mobileNumberPortableRegion="true">
17984       <references>
17985         <sourceUrl>http://www.itu.int/oth/T02020000A6/en</sourceUrl>
17986         <sourceUrl>http://en.wikipedia.org/wiki/+51</sourceUrl>
17987         <sourceUrl>http://www.assistbook.com/South%20America/Peru/widecodes</sourceUrl>
17988       </references>
17989       <availableFormats>
17990         <numberFormat pattern="(1)(\d{7})">
17991           <leadingDigits>1</leadingDigits>
17992           <format>$1 $2</format>
17993         </numberFormat>
17994         <numberFormat pattern="([4-8]\d)(\d{6})">
17995           <leadingDigits>
17996             [4-7]|
17997             8[2-4]
17998           </leadingDigits>
17999           <format>$1 $2</format>
18000         </numberFormat>
18001         <numberFormat pattern="(\d{3})(\d{5})">
18002           <leadingDigits>80</leadingDigits>
18003           <format>$1 $2</format>
18004         </numberFormat>
18005         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
18006         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
18007                       nationalPrefixFormattingRule="$FG">
18008           <leadingDigits>9</leadingDigits>
18009           <format>$1 $2 $3</format>
18010         </numberFormat>
18011       </availableFormats>
18012       <generalDesc>
18013         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
18014         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18015       </generalDesc>
18016       <fixedLine>
18017         <nationalNumberPattern>
18018           (?:
18019             1\d|
18020             4[1-4]|
18021             5[1-46]|
18022             6[1-7]|
18023             7[2-46]|
18024             8[2-4]
18025           )\d{6}
18026         </nationalNumberPattern>
18027         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
18028         <exampleNumber>11234567</exampleNumber>
18029       </fixedLine>
18030       <mobile>
18031         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
18032         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18033         <exampleNumber>912345678</exampleNumber>
18034       </mobile>
18035       <tollFree>
18036         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18037         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18038         <exampleNumber>80012345</exampleNumber>
18039       </tollFree>
18040       <premiumRate>
18041         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
18042         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18043         <exampleNumber>80512345</exampleNumber>
18044       </premiumRate>
18045       <sharedCost>
18046         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
18047         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18048         <exampleNumber>80112345</exampleNumber>
18049       </sharedCost>
18050       <personalNumber>
18051         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
18052         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18053         <exampleNumber>80212345</exampleNumber>
18054       </personalNumber>
18055     </territory>
18056
18057     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
18058     <territory id="PF" countryCode="689" internationalPrefix="00">
18059       <references>
18060         <sourceUrl>http://www.itu.int/oth/T020200004D/en</sourceUrl>
18061       </references>
18062       <availableFormats>
18063         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
18064           <leadingDigits>
18065             4[09]|
18066             8[79]
18067           </leadingDigits>
18068           <format>$1 $2 $3 $4</format>
18069         </numberFormat>
18070         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
18071           <leadingDigits>44</leadingDigits>
18072           <format>$1 $2 $3</format>
18073         </numberFormat>
18074       </availableFormats>
18075       <generalDesc>
18076         <nationalNumberPattern>
18077           4\d{5,7}|
18078           8\d{7}
18079         </nationalNumberPattern>
18080         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
18081       </generalDesc>
18082       <noInternationalDialling>
18083         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
18084         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18085         <exampleNumber>441234</exampleNumber>
18086       </noInternationalDialling>
18087       <fixedLine>
18088         <!-- Includes payphone prefixes. -->
18089         <nationalNumberPattern>
18090           4(?:
18091             [09][45689]\d|
18092             4
18093           )\d{4}
18094         </nationalNumberPattern>
18095         <exampleNumber>40412345</exampleNumber>
18096       </fixedLine>
18097       <mobile>
18098         <nationalNumberPattern>8[79]\d{6}</nationalNumberPattern>
18099         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18100         <exampleNumber>87123456</exampleNumber>
18101       </mobile>
18102     </territory>
18103
18104     <!-- Papua New Guinea -->
18105     <territory id="PG" countryCode="675" internationalPrefix="00">
18106       <references>
18107         <sourceUrl>http://www.itu.int/oth/T02020000A4/en</sourceUrl>
18108         <sourceUrl>http://en.wikipedia.org/wiki/%2B675</sourceUrl>
18109       </references>
18110       <availableFormats>
18111         <numberFormat pattern="(\d{3})(\d{4})">
18112           <leadingDigits>
18113             [13-689]|
18114             27
18115           </leadingDigits>
18116           <format>$1 $2</format>
18117         </numberFormat>
18118         <numberFormat pattern="(\d{4})(\d{4})">
18119           <leadingDigits>
18120             20|
18121             7
18122           </leadingDigits>
18123           <format>$1 $2</format>
18124         </numberFormat>
18125       </availableFormats>
18126       <generalDesc>
18127         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18128         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18129       </generalDesc>
18130       <fixedLine>
18131         <nationalNumberPattern>
18132           (?:
18133             3[0-2]\d|
18134             4[25]\d|
18135             5[34]\d|
18136             64[1-9]|
18137             77(?:
18138               [0-24]\d|
18139               30
18140             )|
18141             85[02-46-9]|
18142             9[78]\d
18143           )\d{4}
18144         </nationalNumberPattern>
18145         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18146         <exampleNumber>3123456</exampleNumber>
18147       </fixedLine>
18148       <mobile>
18149         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
18150              Wikipedia.
18151              As per ITU doc, prefix 20150 will expire at the end of 2015. -->
18152         <nationalNumberPattern>
18153           (?:
18154             20150|
18155             68\d{2}|
18156             7(?:
18157               [0-369]\d|
18158               75
18159             )\d{2}
18160           )\d{3}
18161         </nationalNumberPattern>
18162         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18163         <exampleNumber>6812345</exampleNumber>
18164       </mobile>
18165       <tollFree>
18166         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
18167         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18168         <exampleNumber>1801234</exampleNumber>
18169       </tollFree>
18170       <voip>
18171         <!-- VSAT prefixes are here. -->
18172         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
18173         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18174         <exampleNumber>2751234</exampleNumber>
18175       </voip>
18176     </territory>
18177
18178     <!-- Philippines -->
18179     <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
18180       <references>
18181         <sourceUrl>http://en.wikipedia.org/wiki/%2B63</sourceUrl>
18182       </references>
18183       <availableFormats>
18184         <!-- Area code separated from number. Area codes found here:
18185         http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
18186         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18187           pattern="(2)(\d{3})(\d{4})">
18188           <leadingDigits>2</leadingDigits>
18189           <format>$1 $2 $3</format>
18190         </numberFormat>
18191         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18192           pattern="(2)(\d{5})">
18193           <leadingDigits>2</leadingDigits>
18194           <format>$1 $2</format>
18195         </numberFormat>
18196         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18197           pattern="(\d{4})(\d{4,6})">
18198           <leadingDigits>
18199             3(?:
18200               23|
18201               39|
18202               46
18203             )|
18204             4(?:
18205               2[3-6]|
18206               [35]9|
18207               4[26]|
18208               76
18209             )|
18210             5(?:
18211               22|
18212               44
18213             )|
18214             642|
18215             8(?:
18216               62|
18217               8[245]
18218             )
18219           </leadingDigits>
18220           <leadingDigits>
18221             3(?:
18222               230|
18223               397|
18224               461
18225             )|
18226             4(?:
18227               2(?:
18228                 35|
18229                 [46]4|
18230                 51
18231               )|
18232               396|
18233               4(?:
18234                 22|
18235                 63
18236               )|
18237               59[347]|
18238               76[15]
18239             )|
18240             5(?:
18241               221|
18242               446
18243             )|
18244             642[23]|
18245             8(?:
18246               622|
18247               8(?:
18248                 [24]2|
18249                 5[13]
18250               )
18251             )
18252           </leadingDigits>
18253           <format>$1 $2</format>
18254         </numberFormat>
18255         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18256           pattern="(\d{5})(\d{4})">
18257           <leadingDigits>
18258             346|
18259             4(?:
18260               27|
18261               9[35]
18262             )|
18263             883
18264           </leadingDigits>
18265           <leadingDigits>
18266             3469|
18267             4(?:
18268               279|
18269               9(?:
18270                 30|
18271                 56
18272               )
18273             )|
18274             8834
18275           </leadingDigits>
18276           <format>$1 $2</format>
18277         </numberFormat>
18278         <!-- This rule is a fallback for the more specific area codes. -->
18279         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18280           pattern="([3-8]\d)(\d{3})(\d{4})">
18281           <leadingDigits>[3-8]</leadingDigits>
18282           <format>$1 $2 $3</format>
18283         </numberFormat>
18284         <numberFormat nationalPrefixFormattingRule="$NP$FG"
18285           pattern="(\d{3})(\d{3})(\d{4})">
18286           <leadingDigits>
18287             81|
18288             9
18289           </leadingDigits>
18290           <format>$1 $2 $3</format>
18291         </numberFormat>
18292         <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
18293         <numberFormat pattern="(1800)(\d{3})(\d{4})">
18294           <leadingDigits>1</leadingDigits>
18295           <format>$1 $2 $3</format>
18296         </numberFormat>
18297         <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
18298           <leadingDigits>1</leadingDigits>
18299           <format>$1 $2 $3 $4</format>
18300         </numberFormat>
18301       </availableFormats>
18302       <generalDesc>
18303         <nationalNumberPattern>
18304           2\d{5,7}|
18305           [3-9]\d{7,9}|
18306           1800\d{7,9}
18307         </nationalNumberPattern>
18308         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
18309       </generalDesc>
18310       <fixedLine>
18311         <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
18312              that have only 5 digits after the area code; plus it seems the 8822 area code is
18313              followed by 6 digits, and 8842 by only 4. -->
18314         <nationalNumberPattern>
18315           2\d{5}(?:\d{2})?|
18316           (?:
18317             3[2-68]|
18318             4[2-9]|
18319             5[2-6]|
18320             6[2-58]|
18321             7[24578]|
18322             8[2-8]
18323           )\d{7}|
18324           88(?:
18325             22\d{6}|
18326             42\d{4}
18327           )
18328         </nationalNumberPattern>
18329         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
18330         <exampleNumber>21234567</exampleNumber>
18331       </fixedLine>
18332       <mobile>
18333         <!-- 950 added based on info received from Smart. -->
18334         <nationalNumberPattern>
18335           (?:
18336             81[37]|
18337             9(?:
18338               0[5-9]|
18339               1[024-9]|
18340               2[0-35-9]|
18341               3[02-9]|
18342               4[236-9]|
18343               50|
18344               7[34-79]|
18345               89|
18346               9[4-9]
18347             )
18348           )\d{7}
18349         </nationalNumberPattern>
18350         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18351         <exampleNumber>9051234567</exampleNumber>
18352       </mobile>
18353       <!-- Information on toll-free numbers collected from searching the internet -->
18354       <tollFree>
18355         <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
18356         <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
18357         <exampleNumber>180012345678</exampleNumber>
18358       </tollFree>
18359       <!-- No information can be found about other types of numbers (such as premium rate) in the
18360            Philippines. -->
18361     </territory>
18362
18363     <!-- Pakistan -->
18364     <territory id="PK" countryCode="92" internationalPrefix="00"
18365                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18366                mobileNumberPortableRegion="true">
18367       <references>
18368         <sourceUrl>http://www.itu.int/oth/T02020000A1/en</sourceUrl>
18369         <sourceUrl>http://en.wikipedia.org/wiki/%2B92</sourceUrl>
18370       </references>
18371       <availableFormats>
18372         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
18373              formatted nicely by the AYTF. -->
18374         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
18375           <leadingDigits>
18376             (?:
18377               2[125]|
18378               4[0-246-9]|
18379               5[1-35-7]|
18380               6[1-8]|
18381               7[14]|
18382               8[16]|
18383               91
18384             )1
18385           </leadingDigits>
18386           <leadingDigits>
18387             (?:
18388               2[125]|
18389               4[0-246-9]|
18390               5[1-35-7]|
18391               6[1-8]|
18392               7[14]|
18393               8[16]|
18394               91
18395             )11
18396           </leadingDigits>
18397           <leadingDigits>
18398             (?:
18399               2[125]|
18400               4[0-246-9]|
18401               5[1-35-7]|
18402               6[1-8]|
18403               7[14]|
18404               8[16]|
18405               91
18406             )111
18407           </leadingDigits>
18408           <format>$1 $2 $3 $4</format>
18409         </numberFormat>
18410         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
18411           <leadingDigits>
18412             2[349]|
18413             45|
18414             54|
18415             60|
18416             72|
18417             8[2-5]|
18418             9[2-9]
18419           </leadingDigits>
18420           <leadingDigits>
18421             (?:
18422               2[349]|
18423               45|
18424               54|
18425               60|
18426               72|
18427               8[2-5]|
18428               9[2-9]
18429             )\d1
18430           </leadingDigits>
18431           <leadingDigits>
18432             (?:
18433               2[349]|
18434               45|
18435               54|
18436               60|
18437               72|
18438               8[2-5]|
18439               9[2-9]
18440             )\d11
18441           </leadingDigits>
18442           <leadingDigits>
18443             (?:
18444               2[349]|
18445               45|
18446               54|
18447               60|
18448               72|
18449               8[2-5]|
18450               9[2-9]
18451             )\d111
18452           </leadingDigits>
18453           <format>$1 $2 $3 $4</format>
18454         </numberFormat>
18455         <numberFormat pattern="(\d{2})(\d{7,8})">
18456           <leadingDigits>
18457             (?:
18458               2[125]|
18459               4[0-246-9]|
18460               5[1-35-7]|
18461               6[1-8]|
18462               7[14]|
18463               8[16]|
18464               91
18465             )[2-9]
18466           </leadingDigits>
18467           <format>$1 $2</format>
18468         </numberFormat>
18469         <numberFormat pattern="(\d{3})(\d{6,7})">
18470           <leadingDigits>
18471             2[349]|
18472             45|
18473             54|
18474             60|
18475             72|
18476             8[2-5]|
18477             9[2-9]
18478           </leadingDigits>
18479           <leadingDigits>
18480             (?:
18481               2[349]|
18482               45|
18483               54|
18484               60|
18485               72|
18486               8[2-5]|
18487               9[2-9]
18488             )\d[2-9]
18489           </leadingDigits>
18490           <format>$1 $2</format>
18491         </numberFormat>
18492         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
18493           <leadingDigits>3</leadingDigits>
18494           <format>$1 $2</format>
18495         </numberFormat>
18496         <numberFormat pattern="([15]\d{3})(\d{5,6})">
18497           <leadingDigits>
18498             58[12]|
18499             1
18500           </leadingDigits>
18501           <format>$1 $2</format>
18502         </numberFormat>
18503         <!-- This is from online examples. -->
18504         <numberFormat pattern="(586\d{2})(\d{5})">
18505           <leadingDigits>586</leadingDigits>
18506           <format>$1 $2</format>
18507         </numberFormat>
18508         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
18509           <leadingDigits>[89]00</leadingDigits>
18510           <format>$1 $2 $3</format>
18511         </numberFormat>
18512       </availableFormats>
18513       <generalDesc>
18514         <!-- This is horribly complex because the country code is 92, and several area codes start
18515              with 92, and the number length is widely variable. -->
18516         <nationalNumberPattern>
18517           1\d{8}|
18518           [2-8]\d{5,11}|
18519           9(?:
18520             [013-9]\d{4,9}|
18521             2\d(?:
18522               111\d{6}|
18523               \d{3,7}
18524             )
18525           )
18526         </nationalNumberPattern>
18527         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
18528       </generalDesc>
18529       <fixedLine>
18530         <!-- The subscriber number length is not well defined for some area codes. From online
18531              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
18532              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
18533              of Karachi and Lahore (both 8). -->
18534         <nationalNumberPattern>
18535           (?:
18536             21|
18537             42
18538           )[2-9]\d{7}|
18539           (?:
18540             2[25]|
18541             4[0146-9]|
18542             5[1-35-7]|
18543             6[1-8]|
18544             7[14]|
18545             8[16]|
18546             91
18547           )[2-9]\d{6}|
18548           (?:
18549             2(?:
18550               3[2358]|
18551               4[2-4]|
18552               9[2-8]
18553             )|
18554             45[3479]|
18555             54[2-467]|
18556             60[468]|
18557             72[236]|
18558             8(?:
18559               2[2-689]|
18560               3[23578]|
18561               4[3478]|
18562               5[2356]
18563             )|
18564             9(?:
18565               1|
18566               2[2-8]|
18567               3[27-9]|
18568               4[2-6]|
18569               6[3569]|
18570               9[25-8]
18571             )
18572           )[2-9]\d{5,6}|
18573           58[126]\d{7}
18574         </nationalNumberPattern>
18575         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
18576         <exampleNumber>2123456789</exampleNumber>
18577       </fixedLine>
18578       <mobile>
18579         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
18580              can be found online with these prefixes. Added 310 based on information from Zong, and
18581              316 and 348 based on information found online. -->
18582         <nationalNumberPattern>
18583           3(?:
18584             0\d|
18585             1[0-6]|
18586             2[0-5]|
18587             3[0-7]|
18588             4[0-8]|
18589             55|
18590             64
18591           )\d{7}
18592         </nationalNumberPattern>
18593         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18594         <exampleNumber>3012345678</exampleNumber>
18595       </mobile>
18596       <tollFree>
18597         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18598         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18599         <exampleNumber>80012345</exampleNumber>
18600       </tollFree>
18601       <premiumRate>
18602         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
18603         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18604         <exampleNumber>90012345</exampleNumber>
18605       </premiumRate>
18606       <!-- These are referred to as UPT numbers in the plan. -->
18607       <personalNumber>
18608         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
18609         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18610         <!-- The example number here is the test number from the plan. -->
18611         <exampleNumber>122044444</exampleNumber>
18612       </personalNumber>
18613       <uan>
18614         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
18615              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
18616              what type of number they are. We exclude Azad Jammu, Kashmir and Northern Areas here
18617              since no online example UANs can be found, and they have an "access code" at the start,
18618              making it difficult to guess what a UAN in these areas would look like. -->
18619         <nationalNumberPattern>
18620           (?:
18621             2(?:
18622               [125]|
18623               3[2358]|
18624               4[2-4]|
18625               9[2-8]
18626             )|
18627             4(?:
18628               [0-246-9]|
18629               5[3479]
18630             )|
18631             5(?:
18632               [1-35-7]|
18633               4[2-467]
18634             )|
18635             6(?:
18636               [1-8]|
18637               0[468]
18638             )|
18639             7(?:
18640               [14]|
18641               2[236]
18642             )|
18643             8(?:
18644               [16]|
18645               2[2-689]|
18646               3[23578]|
18647               4[3478]|
18648               5[2356]
18649             )|
18650             9(?:
18651               1|
18652               22|
18653               3[27-9]|
18654               4[2-6]|
18655               6[3569]|
18656               9[2-7]
18657             )
18658           )111\d{6}
18659         </nationalNumberPattern>
18660         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
18661         <exampleNumber>21111825888</exampleNumber>
18662       </uan>
18663     </territory>
18664
18665     <!-- Poland -->
18666     <territory id="PL" countryCode="48" internationalPrefix="00" mobileNumberPortableRegion="true">
18667       <references>
18668         <sourceUrl>http://en.wikipedia.org/wiki/%2B48</sourceUrl>
18669         <sourceUrl>http://www.itu.int/oth/T02020000A8/en</sourceUrl>
18670         <!-- Source is in Polish. -->
18671         <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>
18672         <sourceUrl>http://www.sgwp.wp.mil.pl/pl/1_1225.html</sourceUrl>
18673       </references>
18674       <availableFormats>
18675         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
18676           <leadingDigits>
18677             [14]|
18678             2[0-57-9]|
18679             3[2-4]|
18680             5[24-689]|
18681             6[1-3578]|
18682             7[14-7]|
18683             8[1-79]|
18684             9[145]
18685           </leadingDigits>
18686           <format>$1 $2 $3 $4</format>
18687         </numberFormat>
18688         <numberFormat pattern="(\d{2})(\d{1})(\d{4})">
18689           <leadingDigits>[12]2</leadingDigits>
18690           <format>$1 $2 $3</format>
18691         </numberFormat>
18692         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
18693              Poles that this is more usual. -->
18694         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
18695           <leadingDigits>
18696             261|
18697             39|
18698             5[0137]|
18699             6[0469]|
18700             7[02389]|
18701             8[08]
18702           </leadingDigits>
18703           <format>$1 $2 $3</format>
18704         </numberFormat>
18705         <!-- Additional patterns for shorter pager numbers. -->
18706         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
18707           <leadingDigits>64</leadingDigits>
18708           <format>$1 $2 $3</format>
18709         </numberFormat>
18710         <numberFormat pattern="(\d{3})(\d{3})">
18711           <leadingDigits>64</leadingDigits>
18712           <format>$1 $2</format>
18713         </numberFormat>
18714       </availableFormats>
18715       <generalDesc>
18716         <nationalNumberPattern>
18717           [12]\d{6,8}|
18718           [3-57-9]\d{8}|
18719           6\d{5,8}
18720         </nationalNumberPattern>
18721         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18722       </generalDesc>
18723       <fixedLine>
18724         <!-- The plan says all geographical numbers are 9 digits; but in at least Warsaw (22) and
18725              Krakow (12) we have found internationally diallable numbers that are 7 digits instead,
18726              so we support those too. Numbers which start with 261 are allocated for the militrary,
18727              see: http://www.sgwp.wp.mil.pl/pl/1_1225.html. -->
18728         <nationalNumberPattern>
18729           (?:
18730             1[2-8]|
18731             2[2-59]|
18732             3[2-4]|
18733             4[1-468]|
18734             5[24-689]|
18735             6[1-3578]|
18736             7[14-7]|
18737             8[1-79]|
18738             9[145]
18739           )\d{7}|
18740           [12]2\d{5}|
18741           261\d{6}
18742         </nationalNumberPattern>
18743         <exampleNumber>123456789</exampleNumber>
18744       </fixedLine>
18745       <mobile>
18746         <nationalNumberPattern>
18747           (?:
18748             5[0137]|
18749             6[069]|
18750             7[2389]|
18751             88
18752           )\d{7}
18753         </nationalNumberPattern>
18754         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18755         <exampleNumber>512345678</exampleNumber>
18756       </mobile>
18757       <pager>
18758         <nationalNumberPattern>64\d{4,7}</nationalNumberPattern>
18759         <exampleNumber>641234567</exampleNumber>
18760       </pager>
18761       <tollFree>
18762         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
18763         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18764         <exampleNumber>800123456</exampleNumber>
18765       </tollFree>
18766       <premiumRate>
18767         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
18768         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18769         <exampleNumber>701234567</exampleNumber>
18770       </premiumRate>
18771       <sharedCost>
18772         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
18773         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18774         <exampleNumber>801234567</exampleNumber>
18775       </sharedCost>
18776       <voip>
18777         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
18778         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18779         <exampleNumber>391234567</exampleNumber>
18780       </voip>
18781     </territory>
18782
18783     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
18784     <territory id="PM" countryCode="508" internationalPrefix="00"
18785                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18786       <references>
18787         <sourceUrl>http://www.itu.int/oth/T02020000B2/en</sourceUrl>
18788       </references>
18789       <availableFormats>
18790         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
18791           <format>$1 $2 $3</format>
18792         </numberFormat>
18793       </availableFormats>
18794       <generalDesc>
18795         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
18796         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18797       </generalDesc>
18798       <fixedLine>
18799         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
18800         <exampleNumber>411234</exampleNumber>
18801       </fixedLine>
18802       <mobile>
18803         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
18804         <exampleNumber>551234</exampleNumber>
18805       </mobile>
18806     </territory>
18807
18808     <!-- Pitcairn Island -->
18809     <!-- id="PN" -->
18810     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
18811          satellite phones. -->
18812
18813     <!-- Puerto Rico -->
18814     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
18815                internationalPrefix="011">
18816       <references>
18817         <sourceUrl>http://www.itu.int/oth/T02020000AA/en</sourceUrl>
18818       </references>
18819       <generalDesc>
18820         <!-- NANPA country - uses US formatting rules -->
18821         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
18822         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
18823       </generalDesc>
18824       <fixedLine>
18825         <nationalNumberPattern>
18826           (?:
18827             787|
18828             939
18829           )[2-9]\d{6}
18830         </nationalNumberPattern>
18831         <exampleNumber>7872345678</exampleNumber>
18832       </fixedLine>
18833       <mobile>
18834         <nationalNumberPattern>
18835           (?:
18836             787|
18837             939
18838           )[2-9]\d{6}
18839         </nationalNumberPattern>
18840         <exampleNumber>7872345678</exampleNumber>
18841       </mobile>
18842       <tollFree>
18843         <nationalNumberPattern>
18844           8(?:
18845             00|
18846             44|
18847             55|
18848             66|
18849             77|
18850             88
18851           )[2-9]\d{6}
18852         </nationalNumberPattern>
18853         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18854         <exampleNumber>8002345678</exampleNumber>
18855       </tollFree>
18856       <premiumRate>
18857         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
18858         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18859         <exampleNumber>9002345678</exampleNumber>
18860       </premiumRate>
18861       <personalNumber>
18862         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
18863         <nationalNumberPattern>
18864           5(?:
18865             00|
18866             33|
18867             44|
18868             66|
18869             77
18870           )[2-9]\d{6}
18871         </nationalNumberPattern>
18872         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18873         <exampleNumber>5002345678</exampleNumber>
18874       </personalNumber>
18875     </territory>
18876
18877     <!-- Palestinian Authority -->
18878     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
18879          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
18880          subset of the Israeli formats. -->
18881     <territory id="PS" countryCode="970" internationalPrefix="00"
18882                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18883       <references>
18884         <sourceUrl>http://en.wikipedia.org/wiki/%2B970</sourceUrl>
18885         <sourceUrl>http://www.wtng.info/wtng-970-ps.html</sourceUrl>
18886         <sourceUrl>http://www.paltel.ps</sourceUrl>
18887       </references>
18888       <availableFormats>
18889         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
18890           <leadingDigits>[2489]</leadingDigits>
18891           <format>$1 $2 $3</format>
18892         </numberFormat>
18893         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
18894           <leadingDigits>5</leadingDigits>
18895           <format>$1 $2 $3</format>
18896         </numberFormat>
18897         <numberFormat nationalPrefixFormattingRule="$FG"
18898           pattern="(1[78]00)(\d{3})(\d{3})">
18899           <leadingDigits>1[78]</leadingDigits>
18900           <format>$1 $2 $3</format>
18901         </numberFormat>
18902         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
18903       </availableFormats>
18904       <generalDesc>
18905         <nationalNumberPattern>
18906           [24589]\d{7,8}|
18907           1(?:
18908             [78]\d{8}|
18909             [49]\d{2,3}
18910           )
18911         </nationalNumberPattern>
18912         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
18913       </generalDesc>
18914       <fixedLine>
18915         <nationalNumberPattern>
18916           (?:
18917             22[234789]|
18918             42[45]|
18919             82[01458]|
18920             92[369]
18921           )\d{5}
18922         </nationalNumberPattern>
18923         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18924         <exampleNumber>22234567</exampleNumber>
18925       </fixedLine>
18926       <mobile>
18927         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
18928         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18929         <exampleNumber>599123456</exampleNumber>
18930       </mobile>
18931       <tollFree>
18932         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
18933         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18934         <exampleNumber>1800123456</exampleNumber>
18935       </tollFree>
18936       <premiumRate>
18937         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
18938         <nationalNumberPattern>
18939           1(?:
18940             4|
18941             9\d
18942            )\d{2}
18943         </nationalNumberPattern>
18944         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
18945         <exampleNumber>19123</exampleNumber>
18946       </premiumRate>
18947       <sharedCost>
18948         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
18949         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18950         <exampleNumber>1700123456</exampleNumber>
18951       </sharedCost>
18952     </territory>
18953
18954     <!-- Portugal -->
18955     <territory id="PT" countryCode="351" internationalPrefix="00" mobileNumberPortableRegion="true">
18956       <references>
18957         <sourceUrl>http://www.anacom.pt/render.jsp?categoryId=279098</sourceUrl>
18958       </references>
18959       <availableFormats>
18960         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
18961              two digits in the first group; however, this doesn't seem to be majority usage based on
18962              searches online. -->
18963         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
18964           <leadingDigits>2[12]</leadingDigits>
18965           <format>$1 $2 $3</format>
18966         </numberFormat>
18967         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
18968           <leadingDigits>
18969             2[3-9]|
18970             [346-9]
18971           </leadingDigits>
18972           <format>$1 $2 $3</format>
18973         </numberFormat>
18974       </availableFormats>
18975       <generalDesc>
18976         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
18977         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18978       </generalDesc>
18979       <fixedLine>
18980         <nationalNumberPattern>
18981           2(?:
18982             [12]\d|
18983             [35][1-689]|
18984             4[1-59]|
18985             6[1-35689]|
18986             7[1-9]|
18987             8[1-69]|
18988             9[1256]
18989           )\d{6}
18990         </nationalNumberPattern>
18991         <exampleNumber>212345678</exampleNumber>
18992       </fixedLine>
18993       <mobile>
18994         <nationalNumberPattern>
18995           9(?:
18996             [136]\d{2}|
18997             2[0-79]\d|
18998             480
18999           )\d{5}
19000         </nationalNumberPattern>
19001         <exampleNumber>912345678</exampleNumber>
19002       </mobile>
19003       <tollFree>
19004         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
19005         <exampleNumber>800123456</exampleNumber>
19006       </tollFree>
19007       <premiumRate>
19008         <!-- Fixed maximum cost numbers: 761=0.60€, 761=1€, 762=2€. -->
19009         <nationalNumberPattern>
19010           76(?:
19011             0[1-57]|
19012             1[2-47]|
19013             2[237]
19014           )\d{5}
19015         </nationalNumberPattern>
19016         <exampleNumber>760123456</exampleNumber>
19017       </premiumRate>
19018       <sharedCost>
19019         <!-- 808 are priced as local calls, 809 are national calls. -->
19020         <nationalNumberPattern>
19021           80(?:
19022             8\d|
19023             9[1579]
19024           )\d{5}
19025         </nationalNumberPattern>
19026         <exampleNumber>808123456</exampleNumber>
19027       </sharedCost>
19028       <personalNumber>
19029         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
19030         <exampleNumber>884123456</exampleNumber>
19031       </personalNumber>
19032       <voip>
19033         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
19034         <exampleNumber>301234567</exampleNumber>
19035       </voip>
19036       <uan>
19037         <nationalNumberPattern>
19038           70(?:
19039             7\d|
19040             8[17]
19041           )\d{5}
19042         </nationalNumberPattern>
19043         <exampleNumber>707123456</exampleNumber>
19044       </uan>
19045     </territory>
19046
19047     <!-- Palau -->
19048     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
19049       <references>
19050         <sourceUrl>http://www.itu.int/oth/T02020000A2/en</sourceUrl>
19051       </references>
19052       <availableFormats>
19053         <numberFormat pattern="(\d{3})(\d{4})">
19054           <format>$1 $2</format>
19055         </numberFormat>
19056       </availableFormats>
19057       <generalDesc>
19058         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
19059         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19060       </generalDesc>
19061       <fixedLine>
19062         <nationalNumberPattern>
19063           2552255|
19064           (?:
19065             277|
19066             345|
19067             488|
19068             5(?:
19069               35|
19070               44|
19071               87
19072             )|
19073             6(?:
19074               22|
19075               54|
19076               79
19077             )|
19078             7(?:
19079               33|
19080               47
19081             )|
19082             8(?:
19083               24|
19084               55|
19085               76
19086             )
19087           )\d{4}
19088         </nationalNumberPattern>
19089         <exampleNumber>2771234</exampleNumber>
19090       </fixedLine>
19091       <mobile>
19092         <nationalNumberPattern>
19093           (?:
19094             6[234689]0|
19095             77[45789]
19096           )\d{4}
19097         </nationalNumberPattern>
19098         <exampleNumber>6201234</exampleNumber>
19099       </mobile>
19100     </territory>
19101
19102     <!-- Paraguay -->
19103     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0"
19104                mobileNumberPortableRegion="true">
19105       <references>
19106         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay</sourceUrl>
19107         <sourceUrl>http://www.itu.int/oth/T02020000A5/en</sourceUrl>
19108         <sourceUrl>http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html</sourceUrl>
19109       </references>
19110       <availableFormats>
19111         <!-- CONATEL plan. -->
19112         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
19113           <leadingDigits>
19114             (?:
19115               [26]1|
19116               3[289]|
19117               4[124678]|
19118               7[123]|
19119               8[1236]
19120             )
19121           </leadingDigits>
19122           <format>$1 $2</format>
19123         </numberFormat>
19124         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
19125           <leadingDigits>[2-9]0</leadingDigits>
19126           <format>$1 $2</format>
19127         </numberFormat>
19128         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
19129           <leadingDigits>9[1-9]</leadingDigits>
19130           <format>$1 $2</format>
19131         </numberFormat>
19132         <!-- Format seen in examples found online. -->
19133         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19134           <leadingDigits>8700</leadingDigits>
19135           <format>$1 $2 $3</format>
19136         </numberFormat>
19137         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
19138              -->
19139         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
19140           <leadingDigits>[2-8][1-9]</leadingDigits>
19141           <format>$1 $2</format>
19142         </numberFormat>
19143       </availableFormats>
19144       <generalDesc>
19145         <nationalNumberPattern>
19146           5[0-5]\d{4,7}|
19147           [2-46-9]\d{5,8}
19148         </nationalNumberPattern>
19149         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
19150       </generalDesc>
19151       <fixedLine>
19152         <nationalNumberPattern>
19153           (?:
19154             [26]1|
19155             3[289]|
19156             4[124678]|
19157             7[123]|
19158             8[1236]
19159           )\d{5,7}|
19160           (?:
19161             2(?:
19162               2[4568]|
19163               7[15]|
19164               9[1-5]
19165             )|
19166             3(?:
19167               18|
19168               3[167]|
19169               4[2357]|
19170               51
19171             )|
19172             4(?:
19173               18|
19174               2[45]|
19175               3[12]|
19176               5[13]|
19177               64|
19178               71|
19179               9[1-47]
19180             )|
19181             5(?:
19182               [1-4]\d|
19183               5[0234]
19184             )|
19185             6(?:
19186               3[1-3]|
19187               44|
19188               7[1-4678]
19189             )|
19190             7(?:
19191               17|
19192               4[0-4]|
19193               6[1-578]|
19194               75|
19195               8[0-8]
19196             )|
19197             858
19198           )\d{5,6}
19199         </nationalNumberPattern>
19200         <exampleNumber>212345678</exampleNumber>
19201       </fixedLine>
19202       <mobile>
19203         <!-- 962 was added for Tigo. -->
19204         <nationalNumberPattern>
19205           9(?:
19206             6[12]|
19207             [78][1-6]|
19208             9[1-5]
19209           )\d{6}
19210         </nationalNumberPattern>
19211         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19212         <exampleNumber>961456789</exampleNumber>
19213       </mobile>
19214       <voip>
19215         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
19216         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19217         <exampleNumber>870012345</exampleNumber>
19218       </voip>
19219       <uan>
19220         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
19221         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19222         <exampleNumber>201234567</exampleNumber>
19223       </uan>
19224     </territory>
19225
19226     <!-- Qatar -->
19227     <territory id="QA" countryCode="974" internationalPrefix="00" mobileNumberPortableRegion="true">
19228       <references>
19229         <sourceUrl>http://www.itu.int/oth/T02020000AB/en</sourceUrl>
19230         <sourceUrl>http://wtng.info/wtng-qq.html</sourceUrl>
19231       </references>
19232       <availableFormats>
19233         <numberFormat pattern="([28]\d{2})(\d{4})">
19234           <leadingDigits>[28]</leadingDigits>
19235           <format>$1 $2</format>
19236         </numberFormat>
19237         <numberFormat pattern="([3-7]\d{3})(\d{4})">
19238           <leadingDigits>[3-7]</leadingDigits>
19239           <format>$1 $2</format>
19240         </numberFormat>
19241       </availableFormats>
19242       <generalDesc>
19243         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
19244         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19245       </generalDesc>
19246       <fixedLine>
19247         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
19248         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
19249         <exampleNumber>44123456</exampleNumber>
19250       </fixedLine>
19251       <mobile>
19252         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
19253         <exampleNumber>33123456</exampleNumber>
19254       </mobile>
19255       <pager>
19256         <nationalNumberPattern>
19257           2(?:
19258             [12]\d|
19259             61
19260           )\d{4}
19261         </nationalNumberPattern>
19262         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19263         <exampleNumber>2123456</exampleNumber>
19264       </pager>
19265       <tollFree>
19266         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
19267         <exampleNumber>8001234</exampleNumber>
19268       </tollFree>
19269       <!-- No premiumRate information can be found. -->
19270     </territory>
19271
19272     <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
19273     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
19274          used by both of them. -->
19275     <territory id="RE" countryCode="262" internationalPrefix="00"
19276                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19277                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
19278       <references>
19279         <sourceUrl>http://www.itu.int/oth/T020200004B/en</sourceUrl>
19280       </references>
19281       <availableFormats>
19282         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
19283           <format>$1 $2 $3 $4</format>
19284         </numberFormat>
19285       </availableFormats>
19286       <generalDesc>
19287         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
19288         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19289       </generalDesc>
19290       <fixedLine>
19291         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
19292         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
19293         <exampleNumber>262161234</exampleNumber>
19294       </fixedLine>
19295       <mobile>
19296         <nationalNumberPattern>
19297           6(?:
19298             9[23]|
19299             47
19300           )\d{6}
19301         </nationalNumberPattern>
19302         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19303         <exampleNumber>692123456</exampleNumber>
19304       </mobile>
19305       <!-- 08* Numbers in Réunion are the same as those valid in France. -->
19306       <tollFree>
19307         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
19308         <exampleNumber>801234567</exampleNumber>
19309       </tollFree>
19310       <premiumRate>
19311         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
19312         <exampleNumber>891123456</exampleNumber>
19313       </premiumRate>
19314       <sharedCost>
19315         <nationalNumberPattern>
19316           8(?:
19317             1[019]|
19318             2[0156]|
19319             84|
19320             90
19321           )\d{6}
19322         </nationalNumberPattern>
19323         <exampleNumber>810123456</exampleNumber>
19324       </sharedCost>
19325     </territory>
19326
19327     <!-- Romania -->
19328     <!-- Extension prefix found online, confirmed by a Romanian. -->
19329     <territory id="RO" countryCode="40" internationalPrefix="00"
19330                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19331                preferredExtnPrefix=" int " mobileNumberPortableRegion="true">
19332       <references>
19333         <sourceUrl>http://www.itu.int/oth/T02020000AC/en</sourceUrl>
19334         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania</sourceUrl>
19335       </references>
19336       <availableFormats>
19337         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
19338           <leadingDigits>[23]1</leadingDigits>
19339           <format>$1 $2 $3</format>
19340         </numberFormat>
19341         <numberFormat pattern="(21)(\d{4})">
19342           <leadingDigits>21</leadingDigits>
19343           <format>$1 $2</format>
19344         </numberFormat>
19345         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19346           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
19347                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
19348                majority of numbers found online follow this convention. -->
19349           <leadingDigits>
19350             [23][3-7]|
19351             [7-9]
19352           </leadingDigits>
19353           <format>$1 $2 $3</format>
19354         </numberFormat>
19355         <numberFormat pattern="(2\d{2})(\d{3})">
19356           <leadingDigits>2[3-6]</leadingDigits>
19357           <format>$1 $2</format>
19358         </numberFormat>
19359       </availableFormats>
19360       <generalDesc>
19361         <nationalNumberPattern>
19362           2\d{5,8}|
19363           [37-9]\d{8}
19364         </nationalNumberPattern>
19365         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
19366              to wikipedia and people must dial the full number. However, there are still short
19367              numbers that total 6 digits long, so the possible number pattern should take these into
19368              account. -->
19369         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19370       </generalDesc>
19371       <fixedLine>
19372         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
19373              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
19374              this based on numbers found online and the wikipedia article which indicate that these
19375              are four digits long in Bucharest only, and three digits elsewhere. -->
19376         <nationalNumberPattern>
19377           2(?:
19378             1(?:
19379               \d{7}|
19380               9\d{3}
19381             )|
19382             [3-6](?:
19383               \d{7}|
19384               \d9\d{2}
19385             )
19386           )|
19387           3[13-6]\d{7}
19388           </nationalNumberPattern>
19389         <exampleNumber>211234567</exampleNumber>
19390       </fixedLine>
19391       <mobile>
19392         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
19393              numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
19394              open-source report and confirmation by existence of such numbers online. -->
19395         <nationalNumberPattern>
19396           7(?:
19397             000|
19398             [1-8]\d{2}|
19399             99\d
19400           )\d{5}
19401         </nationalNumberPattern>
19402         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19403         <exampleNumber>712345678</exampleNumber>
19404       </mobile>
19405       <tollFree>
19406         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19407         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19408         <exampleNumber>800123456</exampleNumber>
19409       </tollFree>
19410       <premiumRate>
19411         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
19412         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19413         <exampleNumber>900123456</exampleNumber>
19414       </premiumRate>
19415       <sharedCost>
19416         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19417         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19418         <exampleNumber>801123456</exampleNumber>
19419       </sharedCost>
19420       <personalNumber>
19421         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
19422         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19423         <exampleNumber>802123456</exampleNumber>
19424       </personalNumber>
19425       <uan>
19426         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
19427              location-independent national numbers. Only numbers beginning with 37 have been seen so
19428              these are the only ones supported for now. -->
19429         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
19430         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19431         <exampleNumber>372123456</exampleNumber>
19432       </uan>
19433     </territory>
19434
19435     <!-- Serbia -->
19436     <territory id="RS" countryCode="381" internationalPrefix="00"
19437                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19438                mobileNumberPortableRegion="true">
19439       <references>
19440         <sourceUrl>http://www.itu.int/oth/T02020000B9/en</sourceUrl>
19441         <sourceUrl>http://registar.ratel.rs/en/reg202</sourceUrl>
19442       </references>
19443       <availableFormats>
19444         <numberFormat pattern="([23]\d{2})(\d{4,9})">
19445           <leadingDigits>
19446             (?:
19447               2[389]|
19448               39
19449             )0
19450           </leadingDigits>
19451           <format>$1 $2</format>
19452         </numberFormat>
19453         <numberFormat pattern="([1-3]\d)(\d{5,10})">
19454           <leadingDigits>
19455             1|
19456             2(?:
19457               [0-24-7]|
19458               [389][1-9]
19459             )|
19460             3(?:
19461               [0-8]|
19462               9[1-9]
19463             )
19464           </leadingDigits>
19465           <format>$1 $2</format>
19466         </numberFormat>
19467         <numberFormat pattern="(6\d)(\d{6,8})">
19468           <leadingDigits>6</leadingDigits>
19469           <format>$1 $2</format>
19470         </numberFormat>
19471         <numberFormat pattern="([89]\d{2})(\d{3,9})">
19472           <leadingDigits>[89]</leadingDigits>
19473           <format>$1 $2</format>
19474         </numberFormat>
19475         <numberFormat pattern="(7[26])(\d{4,9})">
19476           <leadingDigits>7[26]</leadingDigits>
19477           <format>$1 $2</format>
19478         </numberFormat>
19479         <numberFormat pattern="(7[08]\d)(\d{4,9})">
19480           <leadingDigits>7[08]</leadingDigits>
19481           <format>$1 $2</format>
19482         </numberFormat>
19483       </availableFormats>
19484       <generalDesc>
19485         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
19486              by 2-9) and the country calling code (381). -->
19487         <nationalNumberPattern>
19488           [126-9]\d{4,11}|
19489           3(?:
19490             [0-79]\d{3,10}|
19491             8[2-9]\d{2,9}
19492           )
19493         </nationalNumberPattern>
19494         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19495       </generalDesc>
19496       <fixedLine>
19497         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
19498              has been issused, so we allow 11 1X here. -->
19499         <nationalNumberPattern>
19500           (?:
19501             1(?:
19502               [02-9][2-9]|
19503               1[1-9]
19504             )\d|
19505             2(?:
19506               [0-24-7][2-9]\d|
19507               [389](?:
19508                 0[2-9]|
19509                 [2-9]\d
19510               )
19511             )|
19512             3(?:
19513               [0-8][2-9]\d|
19514               9(?:
19515                 [2-9]\d|
19516                 0[2-9]
19517               )
19518             )
19519           )\d{3,8}
19520         </nationalNumberPattern>
19521         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19522         <exampleNumber>10234567</exampleNumber>
19523       </fixedLine>
19524       <mobile>
19525         <nationalNumberPattern>
19526           6(?:
19527             [0-689]|
19528             7\d
19529           )\d{6,7}
19530         </nationalNumberPattern>
19531         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
19532         <exampleNumber>601234567</exampleNumber>
19533       </mobile>
19534       <tollFree>
19535         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
19536         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19537         <exampleNumber>80012345</exampleNumber>
19538       </tollFree>
19539       <premiumRate>
19540         <nationalNumberPattern>
19541           (?:
19542             90[0169]|
19543             78\d
19544           )\d{3,7}
19545         </nationalNumberPattern>
19546         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19547         <exampleNumber>90012345</exampleNumber>
19548       </premiumRate>
19549       <uan>
19550         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
19551         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19552         <exampleNumber>700123456</exampleNumber>
19553       </uan>
19554     </territory>
19555
19556     <!-- Russian Federation -->
19557     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
19558                internationalPrefix="810" nationalPrefix="8"
19559                nationalPrefixFormattingRule="$NP ($FG)"
19560                nationalPrefixOptionalWhenFormatting="true" >
19561       <references>
19562         <sourceUrl>http://www.itu.int/oth/T02020000AD/en</sourceUrl>
19563         <sourceUrl>http://en.wikipedia.org/wiki/%2B7</sourceUrl>
19564       </references>
19565       <availableFormats>
19566         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
19567              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
19568              Kazakhstan as well. -->
19569         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
19570           <!-- Local numbers only - these do not start with the national prefix. -->
19571           <leadingDigits>[1-79]</leadingDigits>
19572           <format>$1-$2-$3</format>
19573           <intlFormat>NA</intlFormat>
19574         </numberFormat>
19575         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
19576           <leadingDigits>[34689]</leadingDigits>
19577           <format>$1 $2-$3-$4</format>
19578         </numberFormat>
19579         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
19580           <leadingDigits>7</leadingDigits>
19581           <format>$1 $2 $3</format>
19582         </numberFormat>
19583       </availableFormats>
19584       <generalDesc>
19585         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
19586         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19587       </generalDesc>
19588       <fixedLine>
19589         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
19590              in the yellow pages, and on their own website and is listed on wikipedia. This applies
19591              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
19592         <nationalNumberPattern>
19593           (?:
19594             3(?:
19595               0[12]|
19596               4[1-35-79]|
19597               5[1-3]|
19598               8[1-58]|
19599               9[0145]
19600             )|
19601             4(?:
19602               01|
19603               1[1356]|
19604               2[13467]|
19605               7[1-5]|
19606               8[1-7]|
19607               9[1-689]
19608             )|
19609             8(?:
19610               1[1-8]|
19611               2[01]|
19612               3[13-6]|
19613               4[0-8]|
19614               5[15]|
19615               6[1-35-7]|
19616               7[1-37-9]
19617             )
19618           )\d{7}
19619         </nationalNumberPattern>
19620         <exampleNumber>3011234567</exampleNumber>
19621       </fixedLine>
19622       <mobile>
19623         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
19624         <exampleNumber>9123456789</exampleNumber>
19625       </mobile>
19626       <tollFree>
19627         <!-- The metadata states that 804 numbers are UAN numbers, but
19628              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
19629              numbers. -->
19630         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
19631         <exampleNumber>8001234567</exampleNumber>
19632       </tollFree>
19633       <premiumRate>
19634         <!-- Covers tele-voting numbers as well. -->
19635         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
19636         <exampleNumber>8091234567</exampleNumber>
19637       </premiumRate>
19638     </territory>
19639
19640     <!-- Rwanda -->
19641     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
19642          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
19643          as http://www.tigo.co.rw "Choose Your Number" service. -->
19644     <territory id="RW" countryCode="250" internationalPrefix="00"
19645                nationalPrefix="0" leadingZeroPossible="true">
19646       <references>
19647         <sourceUrl>http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf</sourceUrl>
19648         <sourceUrl>http://en.wikipedia.org/wiki/+250</sourceUrl>
19649       </references>
19650       <availableFormats>
19651         <numberFormat nationalPrefixFormattingRule="$FG"
19652           pattern="(2\d{2})(\d{3})(\d{3})">
19653           <leadingDigits>2</leadingDigits>
19654           <format>$1 $2 $3</format>
19655         </numberFormat>
19656         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
19657           <leadingDigits>[7-9]</leadingDigits>
19658           <format>$1 $2 $3</format>
19659         </numberFormat>
19660         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
19661           <leadingDigits>0</leadingDigits>
19662           <format>$1 $2 $3 $4</format>
19663         </numberFormat>
19664       </availableFormats>
19665       <generalDesc>
19666         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
19667         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
19668       </generalDesc>
19669       <fixedLine>
19670         <!-- We support satellite numbers here, since they are in the plan, although no recent
19671              online examples can be found. We also support fixed-line ranges that have been reserved
19672              and paid for, even where no online numbers can be found. -->
19673         <nationalNumberPattern>
19674           2[258]\d{7}|
19675           06\d{6}
19676         </nationalNumberPattern>
19677         <exampleNumber>250123456</exampleNumber>
19678       </fixedLine>
19679       <mobile>
19680         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
19681              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
19682              license revoked. -->
19683         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
19684         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19685         <exampleNumber>720123456</exampleNumber>
19686       </mobile>
19687       <tollFree>
19688         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19689         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19690         <exampleNumber>800123456</exampleNumber>
19691       </tollFree>
19692       <premiumRate>
19693         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
19694         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19695         <exampleNumber>900123456</exampleNumber>
19696       </premiumRate>
19697     </territory>
19698
19699     <!-- Saudi Arabia -->
19700     <territory id="SA" countryCode="966" internationalPrefix="00"
19701                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19702                mobileNumberPortableRegion="true">
19703       <references>
19704         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia</sourceUrl>
19705         <sourceUrl>http://www.itu.int/oth/T02020000B7/en</sourceUrl>
19706       </references>
19707       <availableFormats>
19708         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
19709           <leadingDigits>[1-467]</leadingDigits>
19710           <format>$1 $2 $3</format>
19711         </numberFormat>
19712         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
19713           <leadingDigits>1[1-467]</leadingDigits>
19714           <format>$1 $2 $3</format>
19715         </numberFormat>
19716         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
19717           <leadingDigits>5</leadingDigits>
19718           <format>$1 $2 $3</format>
19719         </numberFormat>
19720         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
19721              the fact that no numbers of this form found online have a trunk prefix added. -->
19722         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
19723           <leadingDigits>92</leadingDigits>
19724           <format>$1 $2</format>
19725         </numberFormat>
19726         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
19727           <leadingDigits>80</leadingDigits>
19728           <format>$1 $2 $3</format>
19729         </numberFormat>
19730         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
19731           <leadingDigits>81</leadingDigits>
19732           <format>$1 $2 $3</format>
19733         </numberFormat>
19734       </availableFormats>
19735       <generalDesc>
19736         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
19737              fixed-line numbers. -->
19738         <nationalNumberPattern>
19739           1\d{7,8}|
19740           (?:
19741             [2-467]|
19742             92
19743           )\d{7}|
19744           5\d{8}|
19745           8\d{9}
19746         </nationalNumberPattern>
19747         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
19748       </generalDesc>
19749       <fixedLine>
19750         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
19751              happened in May for area code 1 (parallel running ended July 13th, 2013) and then in
19752              August for the other fixed-line numbers (parallel running ends October 18th, 2013). -->
19753         <nationalNumberPattern>
19754           11\d{7}|
19755           1?(?:
19756             2[24-8]|
19757             3[35-8]|
19758             4[3-68]|
19759             6[2-5]|
19760             7[235-7]
19761           )\d{6}
19762         </nationalNumberPattern>
19763         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
19764         <exampleNumber>112345678</exampleNumber>
19765       </fixedLine>
19766       <mobile>
19767         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
19768              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
19769              until we find evidence that this is an error, leaving them at 10 for now. -->
19770         <nationalNumberPattern>
19771           (?:
19772             5(?:
19773               [013-689]\d|
19774               7[0-26-8]
19775             )|
19776             811\d
19777           )\d{6}
19778         </nationalNumberPattern>
19779         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
19780         <exampleNumber>512345678</exampleNumber>
19781       </mobile>
19782       <tollFree>
19783         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
19784         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19785         <exampleNumber>8001234567</exampleNumber>
19786       </tollFree>
19787       <sharedCost>
19788         <!-- Including shared revenue with shared cost here. -->
19789         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
19790         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19791         <exampleNumber>920012345</exampleNumber>
19792       </sharedCost>
19793     </territory>
19794
19795     <!-- Solomon Islands -->
19796     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
19797       <references>
19798         <sourceUrl>http://www.itu.int/oth/T02020000BF/en</sourceUrl>
19799       </references>
19800       <!-- A single group is used to format 5-digit numbers. This formatting pattern follows
19801            the guidelines in the ITU document. -->
19802       <availableFormats>
19803         <numberFormat pattern="(\d{2})(\d{5})">
19804           <leadingDigits>[7-9]</leadingDigits>
19805           <format>$1 $2</format>
19806         </numberFormat>
19807       </availableFormats>
19808       <generalDesc>
19809         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
19810         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
19811       </generalDesc>
19812       <fixedLine>
19813         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
19814              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
19815         <nationalNumberPattern>
19816           (?:
19817             1[4-79]|
19818             [23]\d|
19819             4[01]|
19820             5[03]|
19821             6[0-37]
19822           )\d{3}
19823         </nationalNumberPattern>
19824         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19825         <exampleNumber>40123</exampleNumber>
19826       </fixedLine>
19827       <mobile>
19828         <!-- The 795 prefix is not in the ITU plan (5.XII.2014), but was added because such a number
19829              was dialed successfully. -->
19830         <nationalNumberPattern>
19831           48\d{3}|
19832           7(?:
19833             30|
19834             [46-8]\d|
19835             5[025-9]|
19836             9[0-5]
19837           )\d{4}|
19838           8[4-8]\d{5}|
19839           9(?:
19840             1[2-9]|
19841             2[013-9]|
19842             3[0-2]|
19843             [46]\d|
19844             5[0-46-9]|
19845             7[0-689]|
19846             8[0-79]|
19847             9[0-8]
19848           )\d{4}
19849         </nationalNumberPattern>
19850         <exampleNumber>7421234</exampleNumber>
19851       </mobile>
19852       <tollFree>
19853         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
19854         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19855         <exampleNumber>18123</exampleNumber>
19856       </tollFree>
19857       <voip>
19858         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
19859         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19860         <exampleNumber>51123</exampleNumber>
19861       </voip>
19862     </territory>
19863
19864     <!-- Seychelles -->
19865     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
19866                preferredInternationalPrefix="00">
19867       <references>
19868         <sourceUrl>http://www.itu.int/oth/T02020000BA/en</sourceUrl>
19869         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles</sourceUrl>
19870       </references>
19871       <availableFormats>
19872         <numberFormat pattern="(\d{3})(\d{3})">
19873           <leadingDigits>8</leadingDigits>
19874           <format>$1 $2</format>
19875         </numberFormat>
19876         <numberFormat pattern="(\d)(\d{3})(\d{3})">
19877           <leadingDigits>[246]</leadingDigits>
19878           <format>$1 $2 $3</format>
19879         </numberFormat>
19880       </availableFormats>
19881       <generalDesc>
19882         <nationalNumberPattern>[2468]\d{5,6}</nationalNumberPattern>
19883         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
19884       </generalDesc>
19885       <fixedLine>
19886         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
19887              they are more expensive to call than other Fixed Line services. ISDN and DID services
19888              are here too, since they seem to be also fixed-line phone numbers. -->
19889         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
19890         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19891         <exampleNumber>4217123</exampleNumber>
19892       </fixedLine>
19893       <mobile>
19894         <!-- Includes Fixed Cellular. -->
19895         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
19896         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19897         <exampleNumber>2510123</exampleNumber>
19898       </mobile>
19899       <tollFree>
19900         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
19901         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19902         <exampleNumber>800000</exampleNumber>
19903       </tollFree>
19904       <voip>
19905         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
19906         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19907         <exampleNumber>6412345</exampleNumber>
19908       </voip>
19909     </territory>
19910
19911     <!-- Sudan -->
19912     <territory id="SD" countryCode="249" internationalPrefix="00"
19913                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19914       <references>
19915         <sourceUrl>http://www.itu.int/oth/T02020000C4/en</sourceUrl>
19916       </references>
19917       <availableFormats>
19918         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19919           <format>$1 $2 $3</format>
19920         </numberFormat>
19921       </availableFormats>
19922       <generalDesc>
19923         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
19924         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19925       </generalDesc>
19926       <fixedLine>
19927         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
19928              found online. -->
19929         <nationalNumberPattern>
19930           1(?:
19931             [125]\d|
19932             8[3567]
19933           )\d{6}
19934         </nationalNumberPattern>
19935         <exampleNumber>121231234</exampleNumber>
19936       </fixedLine>
19937       <mobile>
19938         <!-- Adding 90X as online numbers have been found with this prefix. -->
19939         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
19940         <exampleNumber>911231234</exampleNumber>
19941       </mobile>
19942     </territory>
19943
19944     <!-- Sweden -->
19945     <territory id="SE" countryCode="46" internationalPrefix="00"
19946                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19947                mobileNumberPortableRegion="true">
19948       <references>
19949         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/swedish-numbering-plan-for-telephony-acc-itu-140407.pdf</sourceUrl>
19950       </references>
19951       <availableFormats>
19952       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
19953            http://gulasidorna.eniro.se -->
19954         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
19955           <leadingDigits>8</leadingDigits>
19956           <format>$1-$2 $3 $4</format>
19957           <intlFormat>$1 $2 $3 $4</intlFormat>
19958         </numberFormat>
19959         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
19960           <leadingDigits>
19961             1[013689]|
19962             2[0136]|
19963             3[1356]|
19964             4[0246]|
19965             54|
19966             6[03]|
19967             90
19968           </leadingDigits>
19969           <format>$1-$2 $3 $4</format>
19970           <intlFormat>$1 $2 $3 $4</intlFormat>
19971         </numberFormat>
19972         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
19973           <leadingDigits>
19974             1[13689]|
19975             2[136]|
19976             3[1356]|
19977             4[0246]|
19978             54|
19979             6[03]|
19980             90
19981           </leadingDigits>
19982           <format>$1-$2 $3</format>
19983           <intlFormat>$1 $2 $3</intlFormat>
19984         </numberFormat>
19985         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
19986           <leadingDigits>
19987             1[2457]|
19988             2[2457-9]|
19989             3[0247-9]|
19990             4[1357-9]|
19991             5[0-35-9]|
19992             6[124-9]|
19993             9(?:
19994               [125-8]|
19995               3[0-5]|
19996               4[0-3]
19997             )
19998           </leadingDigits>
19999           <format>$1-$2 $3 $4</format>
20000           <intlFormat>$1 $2 $3 $4</intlFormat>
20001         </numberFormat>
20002         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
20003           <leadingDigits>
20004             1[2457]|
20005             2[2457-9]|
20006             3[0247-9]|
20007             4[1357-9]|
20008             5[0-35-9]|
20009             6[124-9]|
20010             9(?:
20011               [125-8]|
20012               3[0-5]|
20013               4[0-3]
20014             )
20015           </leadingDigits>
20016           <format>$1-$2 $3</format>
20017           <intlFormat>$1 $2 $3</intlFormat>
20018         </numberFormat>
20019         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
20020           <leadingDigits>7</leadingDigits>
20021           <format>$1-$2 $3 $4</format>
20022           <intlFormat>$1 $2 $3 $4</intlFormat>
20023         </numberFormat>
20024         <numberFormat pattern="(77)(\d{2})(\d{2})">
20025           <leadingDigits>7</leadingDigits>
20026           <format>$1-$2$3</format>
20027           <intlFormat>$1 $2 $3</intlFormat>
20028         </numberFormat>
20029         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
20030           <leadingDigits>20</leadingDigits>
20031           <format>$1-$2 $3</format>
20032           <intlFormat>$1 $2 $3</intlFormat>
20033         </numberFormat>
20034         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
20035           <leadingDigits>9[034]</leadingDigits>
20036           <format>$1-$2 $3 $4</format>
20037           <intlFormat>$1 $2 $3 $4</intlFormat>
20038         </numberFormat>
20039         <numberFormat pattern="(9[034]\d)(\d{4})">
20040           <leadingDigits>9[034]</leadingDigits>
20041           <format>$1-$2</format>
20042           <intlFormat>$1 $2</intlFormat>
20043         </numberFormat>
20044       </availableFormats>
20045       <generalDesc>
20046         <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
20047         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
20048       </generalDesc>
20049       <fixedLine>
20050         <nationalNumberPattern>
20051           1(?:
20052             0[1-8]\d{6}|
20053             [136]\d{5,7}|
20054             (?:
20055               2[0-35]|
20056               4[0-4]|
20057               5[0-25-9]|
20058               7[13-6]|
20059               [89]\d
20060             )\d{5,6}
20061           )|
20062           2(?:
20063             [136]\d{5,7}|
20064             (?:
20065               2[0-7]|
20066               4[0136-8]|
20067               5[0138]|
20068               7[018]|
20069               8[01]|
20070               9[0-57]
20071             )\d{5,6}
20072           )|
20073           3(?:
20074             [356]\d{5,7}|
20075             (?:
20076               0[0-4]|
20077               1\d|
20078               2[0-25]|
20079               4[056]|
20080               7[0-2]|
20081               8[0-3]|
20082               9[023]
20083             )\d{5,6}
20084           )|
20085           4(?:
20086             0[1-9]\d{4,6}|
20087             [246]\d{5,7}|
20088             (?:
20089               1[013-8]|
20090               3[0135]|
20091               5[14-79]|
20092               7[0-246-9]|
20093               8[0156]|
20094               9[0-689]
20095             )\d{5,6}
20096           )|
20097           5(?:
20098             0[0-6]|
20099             [15][0-5]|
20100             2[0-68]|
20101             3[0-4]|
20102             4\d|
20103             6[03-5]|
20104             7[013]|
20105             8[0-79]|
20106             9[01]
20107           )\d{5,6}|
20108           6(?:
20109             0[1-9]\d{4,6}|
20110             3\d{5,7}|
20111             (?:
20112               1[1-3]|
20113               2[0-4]|
20114               4[02-57]|
20115               5[0-37]|
20116               6[0-3]|
20117               7[0-2]|
20118               8[0247]|
20119               9[0-356]
20120             )\d{5,6}
20121           )|
20122           8[1-9]\d{5,7}|
20123           9(?:
20124             0[1-9]\d{4,6}|
20125             (?:
20126               1[0-68]|
20127               2\d|
20128               3[02-5]|
20129               4[0-3]|
20130               5[0-4]|
20131               [68][01]|
20132               7[0135-8]
20133             )\d{5,6}
20134           )
20135         </nationalNumberPattern>
20136         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20137         <exampleNumber>8123456</exampleNumber>
20138       </fixedLine>
20139       <mobile>
20140         <nationalNumberPattern>7[02369]\d{7}</nationalNumberPattern>
20141         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20142         <exampleNumber>701234567</exampleNumber>
20143       </mobile>
20144       <pager>
20145         <nationalNumberPattern>74[02-9]\d{6}</nationalNumberPattern>
20146         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20147         <exampleNumber>740123456</exampleNumber>
20148       </pager>
20149       <tollFree>
20150         <nationalNumberPattern>
20151           20(?:
20152             0(?:
20153               0\d{2}|
20154               [1-9](?:
20155                 0\d{1,4}|
20156                 [1-9]\d{4}
20157               )
20158             )|
20159             1(?:
20160               0\d{4}|
20161               [1-9]\d{4,5}
20162             )|
20163             [2-9]\d{5}
20164           )
20165         </nationalNumberPattern>
20166         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20167         <exampleNumber>20123456</exampleNumber>
20168       </tollFree>
20169       <premiumRate>
20170         <nationalNumberPattern>
20171           9(?:
20172             00|
20173             39|
20174             44
20175           )(?:
20176             1(?:
20177               [0-26]\d{5}|
20178               [3-57-9]\d{2}
20179             )|
20180             2(?:
20181               [0-2]\d{5}|
20182               [3-9]\d{2}
20183             )|
20184             3(?:
20185               [0139]\d{5}|
20186               [24-8]\d{2}
20187             )|
20188             4(?:
20189               [045]\d{5}|
20190               [1-36-9]\d{2}
20191             )|
20192             5(?:
20193               5\d{5}|
20194               [0-46-9]\d{2}
20195             )|
20196             6(?:
20197               [679]\d{5}|
20198               [0-58]\d{2}
20199             )|
20200             7(?:
20201               [078]\d{5}|
20202               [1-69]\d{2}
20203             )|
20204             8(?:
20205               [578]\d{5}|
20206               [0-469]\d{2}
20207             )
20208           )
20209         </nationalNumberPattern>
20210         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
20211         <exampleNumber>9001234567</exampleNumber>
20212       </premiumRate>
20213       <sharedCost>
20214         <nationalNumberPattern>
20215           77(?:
20216             0(?:
20217               0\d{2}|
20218               [1-9](?:
20219                 0\d|
20220                 [1-9]\d{4}
20221               )
20222             )|
20223             [1-6][1-9]\d{5}
20224           )
20225         </nationalNumberPattern>
20226         <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
20227         <exampleNumber>771234567</exampleNumber>
20228       </sharedCost>
20229       <personalNumber>
20230         <nationalNumberPattern>75[1-8]\d{6}</nationalNumberPattern>
20231         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20232         <exampleNumber>751234567</exampleNumber>
20233       </personalNumber>
20234     </territory>
20235
20236     <!-- Singapore -->
20237     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d"
20238                mobileNumberPortableRegion="true">
20239       <references>
20240         <sourceUrl>http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx</sourceUrl>
20241       </references>
20242       <availableFormats>
20243         <numberFormat pattern="([3689]\d{3})(\d{4})">
20244           <leadingDigits>
20245             [369]|
20246             8[1-9]
20247           </leadingDigits>
20248           <format>$1 $2</format>
20249         </numberFormat>
20250         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
20251           <leadingDigits>1[89]</leadingDigits>
20252           <format>$1 $2 $3</format>
20253         </numberFormat>
20254         <numberFormat pattern="(7000)(\d{4})(\d{3})">
20255           <leadingDigits>70</leadingDigits>
20256           <format>$1 $2 $3</format>
20257         </numberFormat>
20258         <numberFormat pattern="(800)(\d{3})(\d{4})">
20259           <leadingDigits>80</leadingDigits>
20260           <format>$1 $2 $3</format>
20261         </numberFormat>
20262       </availableFormats>
20263       <generalDesc>
20264         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
20265              easily strip off leading "65" country codes. -->
20266         <nationalNumberPattern>
20267           [36]\d{7}|
20268           [17-9]\d{7,10}
20269         </nationalNumberPattern>
20270         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
20271       </generalDesc>
20272       <fixedLine>
20273         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
20274         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20275         <exampleNumber>61234567</exampleNumber>
20276       </fixedLine>
20277       <mobile>
20278         <nationalNumberPattern>
20279           (?:
20280             8[1-8]|
20281             9[0-8]
20282           )\d{6}
20283         </nationalNumberPattern>
20284         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20285         <exampleNumber>81234567</exampleNumber>
20286       </mobile>
20287       <tollFree>
20288         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
20289         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
20290         <exampleNumber>18001234567</exampleNumber>
20291       </tollFree>
20292       <premiumRate>
20293         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
20294         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20295         <exampleNumber>19001234567</exampleNumber>
20296       </premiumRate>
20297       <voip>
20298         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
20299         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20300         <exampleNumber>31234567</exampleNumber>
20301       </voip>
20302       <uan>
20303         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
20304              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
20305              -->
20306         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
20307         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20308         <exampleNumber>70001234567</exampleNumber>
20309       </uan>
20310     </territory>
20311
20312     <!-- Saint Helena -->
20313     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
20314       <references>
20315         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
20316       </references>
20317       <!-- Numbers are formatted as a block. -->
20318       <generalDesc>
20319         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
20320         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
20321       </generalDesc>
20322       <fixedLine>
20323         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
20324              The new pattern is first, followed by the old (hence the repetition of the leading 2).
20325              -->
20326         <nationalNumberPattern>
20327           2(?:
20328             [0-57-9]\d|
20329             6[4-9]
20330           )\d{2}|
20331           (?:
20332             [2-46]\d|
20333             7[01]
20334           )\d{2}
20335         </nationalNumberPattern>
20336         <!-- Using St Helena Tourism as the example number. -->
20337         <exampleNumber>2158</exampleNumber>
20338       </fixedLine>
20339       <mobile>
20340         <nationalNumberPattern>NA</nationalNumberPattern>
20341         <possibleNumberPattern>NA</possibleNumberPattern>
20342       </mobile>
20343       <premiumRate>
20344         <nationalNumberPattern>
20345           (?:
20346             [59]\d|
20347             7[2-9]
20348           )\d{2}
20349         </nationalNumberPattern>
20350         <exampleNumber>5012</exampleNumber>
20351       </premiumRate>
20352     </territory>
20353
20354     <!-- Slovenia -->
20355     <territory id="SI" countryCode="386" internationalPrefix="00"
20356                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20357                mobileNumberPortableRegion="true">
20358       <references>
20359         <sourceUrl>http://www.itu.int/oth/T02020000BE/en</sourceUrl>
20360       </references>
20361       <availableFormats>
20362         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
20363           pattern="(\d)(\d{3})(\d{2})(\d{2})">
20364           <leadingDigits>
20365             [12]|
20366             3[4-8]|
20367             4[24-8]|
20368             5[2-8]|
20369             7[3-8]
20370           </leadingDigits>
20371           <format>$1 $2 $3 $4</format>
20372           </numberFormat>
20373         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
20374           <leadingDigits>
20375             [37][01]|
20376             4[0139]|
20377             51|
20378             6
20379           </leadingDigits>
20380           <format>$1 $2 $3</format>
20381           </numberFormat>
20382         <numberFormat pattern="([89][09])(\d{3,6})">
20383           <leadingDigits>[89][09]</leadingDigits>
20384           <format>$1 $2</format>
20385         </numberFormat>
20386         <numberFormat pattern="([58]\d{2})(\d{5})">
20387           <leadingDigits>
20388             59|
20389             8[1-3]
20390           </leadingDigits>
20391           <format>$1 $2</format>
20392         </numberFormat>
20393       </availableFormats>
20394       <generalDesc>
20395         <nationalNumberPattern>
20396           [1-7]\d{6,7}|
20397           [89]\d{4,7}
20398         </nationalNumberPattern>
20399         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20400       </generalDesc>
20401       <fixedLine>
20402         <nationalNumberPattern>
20403           (?:
20404             1\d|
20405             [25][2-8]|
20406             3[4-8]|
20407             4[24-8]|
20408             7[3-8]
20409           )\d{6}
20410         </nationalNumberPattern>
20411         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
20412         <exampleNumber>11234567</exampleNumber>
20413       </fixedLine>
20414       <mobile>
20415         <!-- We include 043 and 049 here - it is VoIP in the plan, but is actually used to provide
20416              mobile coverage to Kosovo. Also added 068, which is used by the mobile operator bob.si
20417          -->
20418         <nationalNumberPattern>
20419           (?:
20420             [37][01]|
20421             4[0139]|
20422             51|
20423             6[48]
20424           )\d{6}
20425         </nationalNumberPattern>
20426         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20427         <exampleNumber>31234567</exampleNumber>
20428       </mobile>
20429       <tollFree>
20430         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
20431         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20432         <exampleNumber>80123456</exampleNumber>
20433       </tollFree>
20434       <premiumRate>
20435         <!-- Includes televoting, mass calling -->
20436         <nationalNumberPattern>
20437           90\d{4,6}|
20438           89[1-3]\d{2,5}
20439         </nationalNumberPattern>
20440         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20441         <exampleNumber>90123456</exampleNumber>
20442       </premiumRate>
20443       <voip>
20444         <nationalNumberPattern>
20445           (?:
20446             59|
20447             8[1-3]
20448           )\d{6}
20449         </nationalNumberPattern>
20450         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20451         <exampleNumber>59012345</exampleNumber>
20452       </voip>
20453     </territory>
20454
20455     <!-- Svalbard -->
20456     <!-- Metadata shared with Norway. -->
20457     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
20458       <references>
20459         <sourceUrl>http://www.npt.no/pt_internet/numsys/E.164.pdf</sourceUrl>
20460       </references>
20461       <generalDesc>
20462         <nationalNumberPattern>
20463           0\d{4}|
20464           [4789]\d{7}
20465         </nationalNumberPattern>
20466         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
20467       </generalDesc>
20468       <fixedLine>
20469         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
20470         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20471         <exampleNumber>79123456</exampleNumber>
20472       </fixedLine>
20473       <!-- Copied from Norway metadata. -->
20474       <mobile>
20475         <nationalNumberPattern>
20476           (?:
20477             4[015-8]|
20478             5[89]|
20479             9\d
20480           )\d{6}
20481         </nationalNumberPattern>
20482         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20483         <exampleNumber>41234567</exampleNumber>
20484       </mobile>
20485       <tollFree>
20486         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
20487         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20488         <exampleNumber>80012345</exampleNumber>
20489       </tollFree>
20490       <premiumRate>
20491         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
20492         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20493         <exampleNumber>82012345</exampleNumber>
20494       </premiumRate>
20495       <sharedCost>
20496         <nationalNumberPattern>
20497           810(?:
20498             0[0-6]|
20499             [2-8]\d
20500           )\d{3}
20501         </nationalNumberPattern>
20502         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20503         <exampleNumber>81021234</exampleNumber>
20504       </sharedCost>
20505       <personalNumber>
20506         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
20507         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20508         <exampleNumber>88012345</exampleNumber>
20509       </personalNumber>
20510       <voip>
20511         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
20512         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20513         <exampleNumber>85012345</exampleNumber>
20514       </voip>
20515       <uan>
20516         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
20517         <nationalNumberPattern>
20518           0\d{4}|
20519           81(?:
20520             0(?:
20521               0[7-9]|
20522               1\d
20523             )|
20524             5\d{2}
20525           )\d{3}
20526         </nationalNumberPattern>
20527         <exampleNumber>01234</exampleNumber>
20528       </uan>
20529       <voicemail>
20530         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
20531         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20532         <exampleNumber>81212345</exampleNumber>
20533       </voicemail>
20534     </territory>
20535
20536     <!-- Slovakia -->
20537     <territory id="SK" countryCode="421" internationalPrefix="00"
20538                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20539                mobileNumberPortableRegion="true">
20540       <references>
20541         <sourceUrl>http://www.itu.int/oth/T02020000BD/en</sourceUrl>
20542       </references>
20543       <availableFormats>
20544         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
20545           <leadingDigits>2</leadingDigits>
20546           <format>$1/$2 $3 $4</format>
20547         </numberFormat>
20548         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
20549           <leadingDigits>[3-5]</leadingDigits>
20550           <format>$1/$2 $3 $4</format>
20551         </numberFormat>
20552         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
20553           <leadingDigits>[689]</leadingDigits>
20554           <format>$1 $2 $3</format>
20555         </numberFormat>
20556       </availableFormats>
20557       <generalDesc>
20558         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
20559         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20560       </generalDesc>
20561       <noInternationalDialling>
20562         <nationalNumberPattern>
20563           (?:
20564             8(?:
20565               00|
20566               [5-9]\d
20567             )|
20568             9(?:
20569               00|
20570               [78]\d
20571             )
20572           )\d{6}
20573         </nationalNumberPattern>
20574         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20575         <exampleNumber>800123456</exampleNumber>
20576       </noInternationalDialling>
20577       <fixedLine>
20578         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
20579         <exampleNumber>212345678</exampleNumber>
20580       </fixedLine>
20581       <mobile>
20582         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
20583              deeming it valid for now. -->
20584         <nationalNumberPattern>
20585           9(?:
20586             0[1-8]|
20587             1[0-24-9]|
20588             4[0489]
20589           )\d{6}
20590         </nationalNumberPattern>
20591         <exampleNumber>912123456</exampleNumber>
20592       </mobile>
20593       <tollFree>
20594         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20595         <exampleNumber>800123456</exampleNumber>
20596       </tollFree>
20597       <premiumRate>
20598         <nationalNumberPattern>
20599           9(?:
20600             [78]\d{7}|
20601             00\d{6}
20602           )
20603         </nationalNumberPattern>
20604         <exampleNumber>900123456</exampleNumber>
20605       </premiumRate>
20606       <sharedCost>
20607         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
20608         <exampleNumber>850123456</exampleNumber>
20609       </sharedCost>
20610       <voip>
20611         <nationalNumberPattern>
20612           6(?:
20613             5[0-4]|
20614             9[0-6]
20615           )\d{6}
20616         </nationalNumberPattern>
20617         <exampleNumber>690123456</exampleNumber>
20618       </voip>
20619       <uan>
20620         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
20621         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20622         <exampleNumber>961234567</exampleNumber>
20623       </uan>
20624     </territory>
20625
20626     <!-- Sierra Leone -->
20627     <territory id="SL" countryCode="232" internationalPrefix="00"
20628                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
20629       <references>
20630         <sourceUrl>http://www.itu.int/oth/T02020000BB/en</sourceUrl>
20631       </references>
20632       <availableFormats>
20633         <!-- Following formatting of online yellow pages http://www.leonedirect.com -->
20634         <numberFormat pattern="(\d{2})(\d{6})">
20635           <format>$1 $2</format>
20636         </numberFormat>
20637       </availableFormats>
20638       <generalDesc>
20639         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
20640         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20641       </generalDesc>
20642       <fixedLine>
20643         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
20644         <exampleNumber>22221234</exampleNumber>
20645       </fixedLine>
20646       <mobile>
20647         <nationalNumberPattern>
20648           (?:
20649             2[15]|
20650             3[034]|
20651             4[04]|
20652             5[05]|
20653             7[6-9]|
20654             88|
20655             99
20656           )\d{6}
20657         </nationalNumberPattern>
20658         <exampleNumber>25123456</exampleNumber>
20659       </mobile>
20660     </territory>
20661
20662     <!-- San Marino -->
20663     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
20664          optional when dialling from outside the country; the phone number can be reached both with
20665          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
20666          are used to ensure that if the 0549 is not present, it will be added. -->
20667     <territory id="SM" countryCode="378" internationalPrefix="00"
20668                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
20669                leadingZeroPossible="true">
20670       <references>
20671         <sourceUrl>http://www.itu.int/oth/T02020000B5/en</sourceUrl>
20672         <!-- Information about Italy. -->
20673         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
20674         <sourceUrl>http://en.wikipedia.org/wiki/%2B378</sourceUrl>
20675       </references>
20676       <availableFormats>
20677         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
20678           <leadingDigits>[5-7]</leadingDigits>
20679           <format>$1 $2 $3 $4</format>
20680         </numberFormat>
20681         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
20682         <numberFormat pattern="(0549)(\d{6})">
20683           <leadingDigits>0</leadingDigits>
20684           <format>$1 $2</format>
20685           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
20686                formatting in international format. -->
20687           <intlFormat>($1) $2</intlFormat>
20688         </numberFormat>
20689         <!-- A rule in case the number has been stored without the leading 0549 necessary for
20690              fixed-lines. -->
20691         <numberFormat pattern="(\d{6})">
20692           <leadingDigits>[89]</leadingDigits>
20693           <format>0549 $1</format>
20694           <intlFormat>(0549) $1</intlFormat>
20695         </numberFormat>
20696       </availableFormats>
20697       <generalDesc>
20698         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
20699         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
20700       </generalDesc>
20701       <!-- Example numbers provided by the Telecommunications Services. -->
20702       <fixedLine>
20703         <nationalNumberPattern>
20704           0549(?:
20705             8[0157-9]|
20706             9\d
20707           )\d{4}
20708         </nationalNumberPattern>
20709         <exampleNumber>0549886377</exampleNumber>
20710       </fixedLine>
20711       <mobile>
20712         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
20713         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20714         <exampleNumber>66661212</exampleNumber>
20715       </mobile>
20716       <premiumRate>
20717         <!-- Includes Video Call numbers. -->
20718         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
20719         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20720         <exampleNumber>71123456</exampleNumber>
20721       </premiumRate>
20722       <voip>
20723         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
20724         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20725         <exampleNumber>58001110</exampleNumber>
20726       </voip>
20727     </territory>
20728
20729     <!-- Senegal -->
20730     <territory id="SN" countryCode="221" internationalPrefix="00">
20731       <references>
20732         <sourceUrl>http://www.itu.int/oth/T02020000B8/en</sourceUrl>
20733         <sourceUrl>http://www.artpsenegal.net</sourceUrl>
20734       </references>
20735       <availableFormats>
20736         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
20737              the national numbering plan. -->
20738         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
20739           <leadingDigits>[379]</leadingDigits>
20740           <format>$1 $2 $3 $4</format>
20741         </numberFormat>
20742         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20743           <leadingDigits>8</leadingDigits>
20744           <format>$1 $2 $3 $4</format>
20745         </numberFormat>
20746       </availableFormats>
20747       <generalDesc>
20748         <nationalNumberPattern>[3789]\d{8}</nationalNumberPattern>
20749         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20750       </generalDesc>
20751       <fixedLine>
20752         <nationalNumberPattern>
20753           3(?:
20754             0(?:
20755               1[0-2]|
20756               80
20757             )|
20758             282|
20759             3(?:
20760               8[1-9]|
20761               9[3-9]
20762             )|
20763             611|
20764             90[1-5]
20765           )\d{5}
20766         </nationalNumberPattern>
20767         <exampleNumber>301012345</exampleNumber>
20768       </fixedLine>
20769       <mobile>
20770         <nationalNumberPattern>
20771           7(?:
20772             [067]\d|
20773             21|
20774             8[0-26]|
20775             90
20776           )\d{6}
20777         </nationalNumberPattern>
20778         <exampleNumber>701234567</exampleNumber>
20779       </mobile>
20780       <tollFree>
20781         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20782         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20783         <exampleNumber>800123456</exampleNumber>
20784       </tollFree>
20785       <premiumRate>
20786         <!-- Revenu Partagé in the plan. -->
20787         <nationalNumberPattern>88[4689]\d{6}</nationalNumberPattern>
20788         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20789         <exampleNumber>884123456</exampleNumber>
20790       </premiumRate>
20791       <sharedCost>
20792         <nationalNumberPattern>81[02468]\d{6}</nationalNumberPattern>
20793         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20794         <exampleNumber>810123456</exampleNumber>
20795       </sharedCost>
20796       <voip>
20797         <!-- Also covers satellite telephony ranges. -->
20798         <nationalNumberPattern>
20799           3392\d{5}|
20800           93330\d{4}
20801         </nationalNumberPattern>
20802         <exampleNumber>933301234</exampleNumber>
20803       </voip>
20804     </territory>
20805
20806     <!-- Somalia -->
20807     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
20808          information available, and the numerous telecom carriers were previously working under an
20809          unregulated environment. The extra prefixes were added from the contact phone numbers of
20810          the countries main telecom operators. We also have received information that a national
20811          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
20812          for some operators, so that is included here although we do not use it when formatting. -->
20813     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
20814       <references>
20815         <sourceUrl>http://www.itu.int/oth/T02020000C0/en</sourceUrl>
20816         <sourceUrl>http://en.wikipedia.org/wiki/+252</sourceUrl>
20817       </references>
20818       <availableFormats>
20819         <!-- These follow formats online, such as http://www.hortel.net/contact_us.html -->
20820         <numberFormat pattern="(\d)(\d{6})">
20821           <leadingDigits>
20822             2[0-79]|
20823             [13-5]
20824           </leadingDigits>
20825           <format>$1 $2</format>
20826         </numberFormat>
20827         <numberFormat pattern="(\d)(\d{7})">
20828           <leadingDigits>
20829             24|
20830             [67]
20831           </leadingDigits>
20832           <format>$1 $2</format>
20833         </numberFormat>
20834         <numberFormat pattern="(\d{2})(\d{5,7})">
20835           <leadingDigits>
20836             15|
20837             28|
20838             6[1378]
20839           </leadingDigits>
20840           <format>$1 $2</format>
20841         </numberFormat>
20842         <numberFormat pattern="(69\d)(\d{6})">
20843           <leadingDigits>69</leadingDigits>
20844           <format>$1 $2</format>
20845         </numberFormat>
20846         <numberFormat pattern="(90\d)(\d{3})(\d{3})">
20847           <leadingDigits>90</leadingDigits>
20848           <format>$1 $2 $3</format>
20849         </numberFormat>
20850       </availableFormats>
20851       <generalDesc>
20852         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
20853         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20854       </generalDesc>
20855       <fixedLine>
20856         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
20857              here since that is apparently used for mobile. -->
20858         <nationalNumberPattern>
20859           (?:
20860             1\d|
20861             2[0-79]|
20862             3[0-46-8]|
20863             4[0-7]|
20864             59
20865           )\d{5}
20866         </nationalNumberPattern>
20867         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20868         <exampleNumber>4012345</exampleNumber>
20869       </fixedLine>
20870       <mobile>
20871         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
20872              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
20873              Somtel. 6 followed by only 7 digits is used by Telecom. Note that in June 2014 many
20874              ranges were suspended by the government. 90\d{6} was listed as one of the ranges to be
20875              suspended, but open-source contributors confirm that 907\d{6} is still in use, even if
20876              the shorter 90 ranges are no longer. -->
20877         <nationalNumberPattern>
20878           (?:
20879             15\d|
20880             2(?:
20881               4\d|
20882               8
20883             )|
20884             6[137-9]?\d{2}|
20885             7[1-9]\d|
20886             907\d
20887           )\d{5}
20888         </nationalNumberPattern>
20889         <exampleNumber>71123456</exampleNumber>
20890       </mobile>
20891     </territory>
20892
20893     <!-- Suriname -->
20894     <territory id="SR" countryCode="597" internationalPrefix="00">
20895       <references>
20896         <sourceUrl>http://www.itu.int/oth/T02020000C5/en</sourceUrl>
20897       </references>
20898       <availableFormats>
20899         <!-- Following conventions used in the Suriname Yellow Pages. -->
20900         <numberFormat pattern="(\d{3})(\d{3})">
20901           <leadingDigits>
20902             [2-4]|
20903             5[2-58]
20904           </leadingDigits>
20905           <format>$1-$2</format>
20906         </numberFormat>
20907         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
20908           <leadingDigits>56</leadingDigits>
20909           <format>$1-$2-$3</format>
20910         </numberFormat>
20911         <numberFormat pattern="(\d{3})(\d{4})">
20912           <leadingDigits>
20913             59|
20914             [6-8]
20915           </leadingDigits>
20916           <format>$1-$2</format>
20917         </numberFormat>
20918       </availableFormats>
20919       <generalDesc>
20920         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
20921         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20922       </generalDesc>
20923       <fixedLine>
20924         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
20925         <nationalNumberPattern>
20926           (?:
20927             2[1-3]|
20928             3[0-7]|
20929             4\d|
20930             5[2-58]|
20931             68\d
20932           )\d{4}
20933         </nationalNumberPattern>
20934         <exampleNumber>211234</exampleNumber>
20935       </fixedLine>
20936       <mobile>
20937         <nationalNumberPattern>
20938           (?:
20939             7[124-7]|
20940             8[1-9]
20941           )\d{5}
20942         </nationalNumberPattern>
20943         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20944         <exampleNumber>7412345</exampleNumber>
20945       </mobile>
20946       <voip>
20947         <nationalNumberPattern>
20948           5(?:
20949             6\d{4}|
20950             90[0-4]\d{3}
20951           )
20952         </nationalNumberPattern>
20953         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20954         <exampleNumber>561234</exampleNumber>
20955       </voip>
20956     </territory>
20957
20958     <!-- South Sudan -->
20959     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
20960       <references>
20961         <sourceUrl>http://www.itu.int/oth/T02020000F9/en</sourceUrl>
20962         <sourceUrl>http://en.wikipedia.org/wiki/+211</sourceUrl>
20963       </references>
20964       <availableFormats>
20965         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
20966           <format>$1 $2 $3</format>
20967         </numberFormat>
20968       </availableFormats>
20969       <generalDesc>
20970         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
20971         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20972       </generalDesc>
20973       <fixedLine>
20974         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
20975         <exampleNumber>181234567</exampleNumber>
20976       </fixedLine>
20977       <mobile>
20978         <nationalNumberPattern>
20979           (?:
20980             12|
20981             9[1257]
20982           )\d{7}
20983         </nationalNumberPattern>
20984         <exampleNumber>977123456</exampleNumber>
20985       </mobile>
20986     </territory>
20987
20988     <!-- Sao Tome and Principe -->
20989     <territory id="ST" countryCode="239" internationalPrefix="00">
20990       <references>
20991         <sourceUrl>http://www.itu.int/oth/T02020000B6/en</sourceUrl>
20992       </references>
20993       <availableFormats>
20994         <numberFormat pattern="(\d{3})(\d{4})">
20995           <format>$1 $2</format>
20996         </numberFormat>
20997       </availableFormats>
20998       <generalDesc>
20999         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
21000         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21001       </generalDesc>
21002       <fixedLine>
21003         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
21004         <exampleNumber>2221234</exampleNumber>
21005       </fixedLine>
21006       <mobile>
21007         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
21008         <exampleNumber>9812345</exampleNumber>
21009       </mobile>
21010     </territory>
21011
21012     <!-- El Salvador -->
21013     <territory id="SV" countryCode="503" internationalPrefix="00">
21014       <references>
21015         <sourceUrl>http://www.itu.int/oth/T020200003F/en</sourceUrl>
21016         <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>
21017       </references>
21018       <availableFormats>
21019         <numberFormat pattern="(\d{4})(\d{4})">
21020           <leadingDigits>[267]</leadingDigits>
21021           <format>$1 $2</format>
21022         </numberFormat>
21023         <numberFormat pattern="(\d{3})(\d{4})">
21024           <leadingDigits>[89]</leadingDigits>
21025           <format>$1 $2</format>
21026         </numberFormat>
21027         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
21028           <leadingDigits>[89]</leadingDigits>
21029           <format>$1 $2 $3</format>
21030         </numberFormat>
21031       </availableFormats>
21032       <generalDesc>
21033         <nationalNumberPattern>
21034           [267]\d{7}|
21035           [89]\d{6}(?:\d{4})?
21036         </nationalNumberPattern>
21037         <possibleNumberPattern>
21038           \d{7,8}|
21039           \d{11}
21040         </possibleNumberPattern>
21041       </generalDesc>
21042       <fixedLine>
21043         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
21044         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
21045         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21046         <exampleNumber>21234567</exampleNumber>
21047       </fixedLine>
21048       <mobile>
21049         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
21050         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21051         <exampleNumber>70123456</exampleNumber>
21052       </mobile>
21053       <tollFree>
21054         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
21055         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
21056         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21057         <exampleNumber>8001234</exampleNumber>
21058       </tollFree>
21059       <premiumRate>
21060         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
21061         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
21062         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21063         <exampleNumber>9001234</exampleNumber>
21064       </premiumRate>
21065     </territory>
21066
21067     <!-- Sint Maarten -->
21068     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
21069                internationalPrefix="011">
21070       <references>
21071         <sourceUrl>http://www.nanpa.com/pdf/PL_429.pdf</sourceUrl>
21072         <sourceUrl>http://www.itu.int/oth/T02020000F7/en</sourceUrl>
21073       </references>
21074       <generalDesc>
21075         <!-- NANPA country - uses US formatting rules -->
21076         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
21077         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21078       </generalDesc>
21079       <fixedLine>
21080         <nationalNumberPattern>
21081           7215(?:
21082             4[2-8]|
21083             8[239]|
21084             9[056]
21085           )\d{4}
21086         </nationalNumberPattern>
21087         <exampleNumber>7215425678</exampleNumber>
21088       </fixedLine>
21089       <mobile>
21090         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
21091              include these as mobile numbers. -->
21092         <nationalNumberPattern>
21093           7215(?:
21094             1[02]|
21095             2\d|
21096             5[034679]|
21097             8[014-8]
21098           )\d{4}
21099         </nationalNumberPattern>
21100         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21101         <exampleNumber>7215205678</exampleNumber>
21102       </mobile>
21103       <tollFree>
21104         <nationalNumberPattern>
21105           8(?:
21106             00|
21107             44|
21108             55|
21109             66|
21110             77|
21111             88
21112           )[2-9]\d{6}
21113         </nationalNumberPattern>
21114         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21115         <exampleNumber>8002123456</exampleNumber>
21116       </tollFree>
21117       <premiumRate>
21118         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21119         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21120         <exampleNumber>9002123456</exampleNumber>
21121       </premiumRate>
21122       <personalNumber>
21123         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21124         <nationalNumberPattern>
21125           5(?:
21126             00|
21127             33|
21128             44|
21129             66|
21130             77
21131           )[2-9]\d{6}
21132         </nationalNumberPattern>
21133         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21134         <exampleNumber>5002345678</exampleNumber>
21135       </personalNumber>
21136     </territory>
21137
21138     <!-- Syrian Arab Republic -->
21139     <territory id="SY" countryCode="963" internationalPrefix="00"
21140                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21141                nationalPrefixOptionalWhenFormatting="true">
21142       <references>
21143         <sourceUrl>http://www.itu.int/oth/T02020000C9/en</sourceUrl>
21144         <sourceUrl>http://en.wikipedia.org/wiki/%2B963</sourceUrl>
21145       </references>
21146       <availableFormats>
21147         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
21148           <leadingDigits>[1-5]</leadingDigits>
21149           <format>$1 $2 $3</format>
21150         </numberFormat>
21151         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
21152           <leadingDigits>9</leadingDigits>
21153           <format>$1 $2 $3</format>
21154         </numberFormat>
21155       </availableFormats>
21156       <generalDesc>
21157         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
21158         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
21159       </generalDesc>
21160       <fixedLine>
21161       <!-- Numbers with the 21 prefix are made optionally 1-digit longer based on numbers found on
21162            the Internet. -->
21163         <nationalNumberPattern>
21164           (?:
21165             1(?:
21166               1\d?|
21167               4\d|
21168               [2356]
21169             )|
21170             2(?:
21171               1\d?|
21172               [235]
21173             )|
21174             3(?:
21175               [13]\d|
21176               4
21177             )|
21178             4[13]|
21179             5[1-3]
21180           )\d{6}
21181         </nationalNumberPattern>
21182         <exampleNumber>112345678</exampleNumber>
21183       </fixedLine>
21184       <mobile>
21185         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
21186              95[138], and 96[05]. -->
21187         <nationalNumberPattern>
21188           9(?:
21189             22|
21190             [35][0-8]|
21191             4\d|
21192             6[024-9]|
21193             88|
21194             9[0-489]
21195           )\d{6}
21196         </nationalNumberPattern>
21197         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21198         <exampleNumber>944567890</exampleNumber>
21199       </mobile>
21200       <!-- No tollFree or premiumRate information can be found. -->
21201     </territory>
21202
21203     <!-- Swaziland -->
21204     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
21205       <references>
21206         <sourceUrl>http://www.itu.int/oth/T02020000C6/en</sourceUrl>
21207       </references>
21208       <availableFormats>
21209         <numberFormat pattern="(\d{4})(\d{4})">
21210           <leadingDigits>[027]</leadingDigits>
21211           <format>$1 $2</format>
21212         </numberFormat>
21213       </availableFormats>
21214       <generalDesc>
21215         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
21216         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21217       </generalDesc>
21218       <noInternationalDialling>
21219         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21220         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21221         <exampleNumber>08001234</exampleNumber>
21222       </noInternationalDialling>
21223       <fixedLine>
21224         <nationalNumberPattern>
21225           2(?:
21226             2(?:
21227               0[07]|
21228               [13]7|
21229               2[57]
21230             )|
21231             3(?:
21232               0[34]|
21233               [1278]3|
21234               3[23]|
21235               [46][34]
21236             )|
21237             (?:
21238               40[4-69]|
21239               67
21240             )|
21241             5(?:
21242               0[5-7]|
21243               1[6-9]|
21244               [23][78]|
21245               48|
21246               5[01]
21247             )
21248           )\d{4}
21249         </nationalNumberPattern>
21250         <exampleNumber>22171234</exampleNumber>
21251       </fixedLine>
21252       <mobile>
21253         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
21254         <exampleNumber>76123456</exampleNumber>
21255       </mobile>
21256       <tollFree>
21257         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21258         <exampleNumber>08001234</exampleNumber>
21259       </tollFree>
21260     </territory>
21261
21262     <!-- Tristan da Cunha -->
21263     <territory id="TA" countryCode="290" internationalPrefix="00">
21264       <references>
21265         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
21266       </references>
21267       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
21268       <generalDesc>
21269         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21270         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21271       </generalDesc>
21272       <fixedLine>
21273         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21274         <exampleNumber>8999</exampleNumber>
21275       </fixedLine>
21276       <mobile>
21277         <nationalNumberPattern>NA</nationalNumberPattern>
21278         <possibleNumberPattern>NA</possibleNumberPattern>
21279       </mobile>
21280     </territory>
21281
21282     <!-- Turks and Caicos Islands -->
21283     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
21284                internationalPrefix="011">
21285       <references>
21286         <sourceUrl>http://www.itu.int/oth/T02020000D8/en</sourceUrl>
21287       </references>
21288       <generalDesc>
21289         <!-- NANPA country - uses US formatting rules -->
21290         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
21291         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21292       </generalDesc>
21293       <fixedLine>
21294         <nationalNumberPattern>
21295           649(?:
21296             712|
21297             9(?:
21298               4\d|
21299               50
21300             )
21301           )\d{4}
21302         </nationalNumberPattern>
21303         <exampleNumber>6497121234</exampleNumber>
21304       </fixedLine>
21305       <mobile>
21306         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
21307         <nationalNumberPattern>
21308           649(?:
21309             2(?:
21310               3[129]|
21311               4[1-7]
21312             )|
21313             3(?:
21314               3[1-389]|
21315               4[1-7]
21316             )|
21317             4[34][1-3]
21318           )\d{4}
21319         </nationalNumberPattern>
21320         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21321         <exampleNumber>6492311234</exampleNumber>
21322       </mobile>
21323       <tollFree>
21324         <nationalNumberPattern>
21325           8(?:
21326             00|
21327             44|
21328             55|
21329             66|
21330             77|
21331             88
21332           )[2-9]\d{6}
21333         </nationalNumberPattern>
21334         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21335         <exampleNumber>8002345678</exampleNumber>
21336       </tollFree>
21337       <premiumRate>
21338         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21339         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21340         <exampleNumber>9002345678</exampleNumber>
21341       </premiumRate>
21342       <personalNumber>
21343         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21344         <nationalNumberPattern>
21345           5(?:
21346             00|
21347             33|
21348             44|
21349             66|
21350             77
21351           )[2-9]\d{6}
21352         </nationalNumberPattern>
21353         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21354         <exampleNumber>5002345678</exampleNumber>
21355       </personalNumber>
21356       <voip>
21357         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
21358         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21359         <exampleNumber>6497101234</exampleNumber>
21360       </voip>
21361     </territory>
21362
21363     <!-- Chad -->
21364     <!-- The international prefix includes 16 as the international manual exchange. -->
21365     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
21366                internationalPrefix="00|16">
21367       <references>
21368         <sourceUrl>http://www.itu.int/oth/T0202000029/en</sourceUrl>
21369       </references>
21370       <availableFormats>
21371         <numberFormat
21372           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21373           <format>$1 $2 $3 $4</format>
21374         </numberFormat>
21375       </availableFormats>
21376       <generalDesc>
21377         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
21378         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21379       </generalDesc>
21380       <fixedLine>
21381         <nationalNumberPattern>
21382           22(?:
21383             [3789]0|
21384             5[0-5]|
21385             6[89]
21386           )\d{4}
21387         </nationalNumberPattern>
21388         <exampleNumber>22501234</exampleNumber>
21389       </fixedLine>
21390       <mobile>
21391         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
21392              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
21393              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
21394         <nationalNumberPattern>
21395           (?:
21396             6[02368]\d|
21397             77\d|
21398             9(?:
21399               5[0-4]|
21400               9\d
21401             )
21402           )\d{5}
21403         </nationalNumberPattern>
21404         <exampleNumber>63012345</exampleNumber>
21405       </mobile>
21406     </territory>
21407
21408     <!-- French Southern Territories -->
21409     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
21410     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
21411          temporary inhabitants. -->
21412
21413     <!-- Togo -->
21414     <territory id="TG" countryCode="228" internationalPrefix="00">
21415       <references>
21416         <sourceUrl>http://www.itu.int/oth/T02020000D1/en</sourceUrl>
21417       </references>
21418       <availableFormats>
21419         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21420           <format>$1 $2 $3 $4</format>
21421         </numberFormat>
21422       </availableFormats>
21423       <generalDesc>
21424         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
21425         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21426       </generalDesc>
21427       <fixedLine>
21428         <nationalNumberPattern>
21429           2(?:
21430             2[2-7]|
21431             3[23]|
21432             44|
21433             55|
21434             66|
21435             77
21436           )\d{5}
21437         </nationalNumberPattern>
21438         <exampleNumber>22212345</exampleNumber>
21439       </fixedLine>
21440       <mobile>
21441         <!-- Prefix 93 is from an open-source bug report -->
21442         <nationalNumberPattern>9[0-389]\d{6}</nationalNumberPattern>
21443         <exampleNumber>90112345</exampleNumber>
21444       </mobile>
21445     </territory>
21446
21447     <!-- Thailand -->
21448     <territory id="TH" countryCode="66" internationalPrefix="00"
21449                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21450                mobileNumberPortableRegion="true">
21451       <references>
21452         <sourceUrl>http://www.itu.int/oth/T02020000CD/en</sourceUrl>
21453         <sourceUrl>http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf</sourceUrl>
21454       </references>
21455       <availableFormats>
21456         <!-- Formatting patterns from wikipedia and the document itself -
21457              http://en.wikipedia.org/wiki/%2B66 -->
21458         <numberFormat pattern="(2)(\d{3})(\d{4})">
21459           <leadingDigits>2</leadingDigits>
21460           <format>$1 $2 $3</format>
21461         </numberFormat>
21462         <numberFormat pattern="([13-9]\d)(\d{3})(\d{3,4})">
21463           <leadingDigits>
21464             14|
21465             [3-9]
21466           </leadingDigits>
21467           <format>$1 $2 $3</format>
21468         </numberFormat>
21469         <numberFormat nationalPrefixFormattingRule="$FG"
21470           pattern="(1[89]00)(\d{3})(\d{3})">
21471           <leadingDigits>1</leadingDigits>
21472           <format>$1 $2 $3</format>
21473         </numberFormat>
21474       </availableFormats>
21475       <generalDesc>
21476         <nationalNumberPattern>
21477           [2-9]\d{7,8}|
21478           1\d{3}(?:\d{5,6})?
21479         </nationalNumberPattern>
21480         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
21481       </generalDesc>
21482       <noInternationalDialling>
21483         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21484         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21485         <exampleNumber>1100</exampleNumber>
21486       </noInternationalDialling>
21487       <fixedLine>
21488         <!-- Numbers online have been found that start with 20, despite the ITU doc not covering
21489              these. -->
21490         <nationalNumberPattern>
21491           (?:
21492             2\d|
21493             3[2-9]|
21494             4[2-5]|
21495             5[2-6]|
21496             7[3-7]
21497           )\d{6}
21498         </nationalNumberPattern>
21499         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21500         <exampleNumber>21234567</exampleNumber>
21501       </fixedLine>
21502       <mobile>
21503         <!-- Numbers found online starting with 62. 14 and 63 are from an open-source bug report,
21504              we couldn't find evidence of these specifically being in use but this article
21505              http://www.prachachat.net/news_detail.php?newsid=1395732787&grpid=03&catid=06&subcatid=0600
21506              talks about prefix 6 and 1 being cleared for mobile use. -->
21507         <nationalNumberPattern>
21508           (?:
21509             14|
21510             6[1-3]|
21511             [89]\d
21512           )\d{7}
21513         </nationalNumberPattern>
21514         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21515         <exampleNumber>812345678</exampleNumber>
21516       </mobile>
21517       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
21518       <tollFree>
21519         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
21520         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21521         <exampleNumber>1800123456</exampleNumber>
21522       </tollFree>
21523       <premiumRate>
21524         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
21525         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21526         <exampleNumber>1900123456</exampleNumber>
21527       </premiumRate>
21528       <voip>
21529         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
21530              online to suggest they are actually used as mobile numbers. -->
21531         <nationalNumberPattern>6[08]\d{7}</nationalNumberPattern>
21532         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21533         <exampleNumber>601234567</exampleNumber>
21534       </voip>
21535       <uan>
21536         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
21537              their costs range from free to 6 Baht/min. -->
21538         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21539         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21540         <exampleNumber>1100</exampleNumber>
21541       </uan>
21542     </territory>
21543
21544     <!-- Tajikistan -->
21545     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
21546                internationalPrefix="810" nationalPrefix="8"
21547                nationalPrefixFormattingRule="($NP) $FG"
21548                nationalPrefixOptionalWhenFormatting="true">
21549       <references>
21550         <sourceUrl>http://www.itu.int/oth/T02020000CA/en</sourceUrl>
21551       </references>
21552       <availableFormats>
21553         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
21554           <leadingDigits>
21555             [34]7|
21556             91[78]
21557           </leadingDigits>
21558           <format>$1 $2 $3</format>
21559         </numberFormat>
21560         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
21561           <leadingDigits>
21562             4[48]|
21563             5|
21564             9(?:
21565               1[59]|
21566               [0235-9]
21567             )
21568           </leadingDigits>
21569           <format>$1 $2 $3</format>
21570         </numberFormat>
21571         <numberFormat pattern="(331700)(\d)(\d{2})">
21572           <leadingDigits>331</leadingDigits>
21573           <leadingDigits>3317</leadingDigits>
21574           <leadingDigits>33170</leadingDigits>
21575           <leadingDigits>331700</leadingDigits>
21576           <format>$1 $2 $3</format>
21577         </numberFormat>
21578         <numberFormat pattern="(\d{4})(\d)(\d{4})">
21579           <leadingDigits>3[1-5]</leadingDigits>
21580           <leadingDigits>
21581             3(?:
21582               [1245]|
21583               3(?:
21584                 [02-9]|
21585                 1[0-589]
21586               )
21587             )
21588           </leadingDigits>
21589           <format>$1 $2 $3</format>
21590         </numberFormat>
21591       </availableFormats>
21592       <generalDesc>
21593         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
21594         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
21595       </generalDesc>
21596       <fixedLine>
21597         <nationalNumberPattern>
21598           (?:
21599             3(?:
21600               1[3-5]|
21601               2[245]|
21602               3[12]|
21603               4[24-7]|
21604               5[25]|
21605               72
21606             )|
21607             4(?:
21608               46|
21609               74|
21610               87
21611             )
21612           )\d{6}
21613         </nationalNumberPattern>
21614         <exampleNumber>372123456</exampleNumber>
21615       </fixedLine>
21616       <mobile>
21617         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
21618              numbers, and 50[12] for TCell from bug reports. -->
21619         <nationalNumberPattern>
21620           (?:
21621             50[125]|
21622             9[0-35-9]\d
21623           )\d{6}
21624         </nationalNumberPattern>
21625         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21626         <exampleNumber>917123456</exampleNumber>
21627       </mobile>
21628       <!-- No tollFree or premiumRate information can be found. -->
21629     </territory>
21630
21631     <!-- Tokelau -->
21632     <territory id="TK" countryCode="690" internationalPrefix="00">
21633       <references>
21634         <sourceUrl>http://www.itu.int/oth/T02020000D2/en</sourceUrl>
21635       </references>
21636       <generalDesc>
21637         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
21638         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21639       </generalDesc>
21640       <fixedLine>
21641         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
21642         <!-- The example number is the contact number from the ITU document. -->
21643         <exampleNumber>3010</exampleNumber>
21644       </fixedLine>
21645       <mobile>
21646         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
21647         <exampleNumber>5190</exampleNumber>
21648       </mobile>
21649     </territory>
21650
21651     <!-- Timor-Leste (East Timor) -->
21652     <territory id="TL" countryCode="670" internationalPrefix="00">
21653       <references>
21654         <sourceUrl>http://www.itu.int/oth/T02020000D0/en</sourceUrl>
21655       </references>
21656       <availableFormats>
21657         <numberFormat pattern="(\d{3})(\d{4})">
21658           <leadingDigits>[2-489]</leadingDigits>
21659           <format>$1 $2</format>
21660         </numberFormat>
21661         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
21662              them. If we see another pattern being used, we should change this later. -->
21663         <numberFormat pattern="(\d{4})(\d{4})">
21664           <leadingDigits>7</leadingDigits>
21665           <format>$1 $2</format>
21666         </numberFormat>
21667       </availableFormats>
21668       <generalDesc>
21669         <nationalNumberPattern>
21670           [2-489]\d{6}|
21671           7\d{6,7}
21672         </nationalNumberPattern>
21673         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
21674       </generalDesc>
21675       <fixedLine>
21676         <nationalNumberPattern>
21677           (?:
21678             2[1-5]|
21679             3[1-9]|
21680             4[1-4]
21681           )\d{5}
21682         </nationalNumberPattern>
21683         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21684         <exampleNumber>2112345</exampleNumber>
21685       </fixedLine>
21686       <mobile>
21687         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
21688         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21689         <exampleNumber>77212345</exampleNumber>
21690       </mobile>
21691       <tollFree>
21692         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
21693         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21694         <exampleNumber>8012345</exampleNumber>
21695       </tollFree>
21696       <premiumRate>
21697         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
21698         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21699         <exampleNumber>9012345</exampleNumber>
21700       </premiumRate>
21701       <!-- We don't include paging or voicemail because the identified paging range was used by
21702            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
21703            numbers, or if the range was indeed previously used for voicemail at all. -->
21704       <personalNumber>
21705         <!-- We presume this wasn't affected by the numbering plan update. -->
21706         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
21707         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21708         <exampleNumber>7012345</exampleNumber>
21709       </personalNumber>
21710     </territory>
21711
21712     <!-- Turkmenistan -->
21713     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
21714                internationalPrefix="810" nationalPrefix="8"
21715                nationalPrefixFormattingRule="($NP $FG)">
21716       <references>
21717         <sourceUrl>http://www.itu.int/oth/T02020000D7/en</sourceUrl>
21718         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan</sourceUrl>
21719       </references>
21720       <availableFormats>
21721         <!-- There doesn't seem to be a standardized format. The format below is based on the
21722              Turkmenistan embassy at
21723              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
21724           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21725             <leadingDigits>12</leadingDigits>
21726             <format>$1 $2-$3-$4</format>
21727           </numberFormat>
21728           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
21729             <leadingDigits>6</leadingDigits>
21730             <format>$1 $2</format>
21731           </numberFormat>
21732           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
21733             <leadingDigits>
21734               13|
21735               [2-5]
21736             </leadingDigits>
21737             <format>$1 $2-$3-$4</format>
21738           </numberFormat>
21739       </availableFormats>
21740       <generalDesc>
21741         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
21742         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21743       </generalDesc>
21744       <fixedLine>
21745         <!-- Additional prefixes from the wikipedia page. -->
21746         <nationalNumberPattern>
21747           (?:
21748             1(?:
21749               2\d|
21750               3[1-9]
21751             )|
21752             2(?:
21753               22|
21754               4[0-35-8]
21755             )|
21756             3(?:
21757               22|
21758               4[03-9]
21759             )|
21760             4(?:
21761               22|
21762               3[128]|
21763               4\d|
21764               6[15]
21765             )|
21766             5(?:
21767               22|
21768               5[7-9]|
21769               6[014-689]
21770             )
21771           )\d{5}
21772         </nationalNumberPattern>
21773         <exampleNumber>12345678</exampleNumber>
21774       </fixedLine>
21775       <mobile>
21776         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
21777              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
21778              has been suspended. It is unclear whether it will resume. We support both ranges in the
21779              meantime. The range 62 seems also now to be in use, according to numbers found online.
21780              -->
21781         <nationalNumberPattern>6[2-8]\d{6}</nationalNumberPattern>
21782         <exampleNumber>66123456</exampleNumber>
21783       </mobile>
21784       <!-- No tollFree or premiumRate information can be found. -->
21785     </territory>
21786
21787     <!-- Tunisia -->
21788     <territory id="TN" countryCode="216" internationalPrefix="00">
21789       <references>
21790         <sourceUrl>http://www.itu.int/oth/T02020000D5/en</sourceUrl>
21791         <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>
21792         <sourceUrl>http://www.tunisietelecom.tn/tt/internet/fr/pme/fixe/numeros_acceuil</sourceUrl>
21793       </references>
21794       <availableFormats>
21795         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
21796           <format>$1 $2 $3</format>
21797         </numberFormat>
21798       </availableFormats>
21799       <generalDesc>
21800         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
21801         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21802       </generalDesc>
21803       <fixedLine>
21804         <!-- 3[012] numbers are no longer listed in the ITU doc, but we support them based on
21805              online searches. -->
21806         <nationalNumberPattern>
21807           3[012]\d{6}|
21808           7\d{7}|
21809           81200\d{3}
21810         </nationalNumberPattern>
21811         <exampleNumber>71234567</exampleNumber>
21812       </fixedLine>
21813       <mobile>
21814         <!-- Numbers starting with 5 are no longer listed in the ITU doc, but we support them based
21815              on online searches and Wikipedia. -->
21816         <nationalNumberPattern>
21817           (?:
21818             [259]\d|
21819             4[0-24]
21820           )\d{6}
21821         </nationalNumberPattern>
21822         <exampleNumber>20123456</exampleNumber>
21823       </mobile>
21824       <tollFree>
21825         <!-- ITU lists 80 xx xx xx, but the document published by Tunisie Telecom has more specific
21826              information which is followed here. -->
21827         <nationalNumberPattern>8010\d{4}</nationalNumberPattern>
21828         <exampleNumber>80101234</exampleNumber>
21829       </tollFree>
21830       <premiumRate>
21831         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
21832         <exampleNumber>88123456</exampleNumber>
21833       </premiumRate>
21834       <sharedCost>
21835         <!-- 8110xxxx numbers are listed as being "discounted non-geographical numbers" and are put
21836              here for now. In the future we might consider them as UAN.
21837              ITU lists 82 xx xx xx, but the document published by Tunisie Telecom has more specific
21838              information which is followed here. -->
21839         <nationalNumberPattern>8[12]10\d{4}</nationalNumberPattern>
21840         <exampleNumber>81101234</exampleNumber>
21841       </sharedCost>
21842     </territory>
21843
21844     <!-- Tonga -->
21845     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
21846       <references>
21847         <sourceUrl>http://www.itu.int/oth/T02020000D3/en</sourceUrl>
21848         <sourceUrl>http://www.wtng.info/wtng-676-to.html</sourceUrl>
21849       </references>
21850       <availableFormats>
21851         <numberFormat pattern="(\d{2})(\d{3})">
21852           <leadingDigits>
21853             [1-6]|
21854             7[0-4]|
21855             8[05]
21856           </leadingDigits>
21857           <format>$1-$2</format>
21858         </numberFormat>
21859         <numberFormat pattern="(\d{3})(\d{4})">
21860           <leadingDigits>
21861             7[5-9]|
21862             8[47-9]
21863           </leadingDigits>
21864           <format>$1 $2</format>
21865         </numberFormat>
21866         <numberFormat pattern="(\d{4})(\d{3})">
21867           <leadingDigits>0</leadingDigits>
21868           <format>$1 $2</format>
21869         </numberFormat>
21870       </availableFormats>
21871       <generalDesc>
21872         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
21873         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
21874       </generalDesc>
21875       <fixedLine>
21876         <nationalNumberPattern>
21877           (?:
21878             2\d|
21879             3[1-8]|
21880             4[1-4]|
21881             [56]0|
21882             7[0149]|
21883             8[05]
21884           )\d{3}
21885         </nationalNumberPattern>
21886         <possibleNumberPattern>\d{5}</possibleNumberPattern>
21887         <exampleNumber>20123</exampleNumber>
21888       </fixedLine>
21889       <mobile>
21890         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
21891              in their ITU document. Numbers with a prefix of "75" and "84" have also been found. -->
21892         <nationalNumberPattern>
21893           (?:
21894             7[578]|
21895             8[47-9]
21896           )\d{5}
21897         </nationalNumberPattern>
21898         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21899         <exampleNumber>7715123</exampleNumber>
21900       </mobile>
21901       <tollFree>
21902         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
21903         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21904         <exampleNumber>0800222</exampleNumber>
21905       </tollFree>
21906     </territory>
21907
21908     <!-- Turkey -->
21909     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0"
21910                mobileNumberPortableRegion="true">
21911       <references>
21912         <sourceUrl>http://en.wikipedia.org/wiki/%2B90</sourceUrl>
21913         <sourceUrl>http://www.itu.int/oth/T02020000D6/en</sourceUrl>
21914       </references>
21915       <availableFormats>
21916         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
21917           nationalPrefixOptionalWhenFormatting="true">
21918           <leadingDigits>
21919             [23]|
21920             4(?:
21921               [0-35-9]|
21922               4[0-35-9]
21923             )
21924           </leadingDigits>
21925           <format>$1 $2 $3</format>
21926         </numberFormat>
21927         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
21928           nationalPrefixOptionalWhenFormatting="true">
21929           <leadingDigits>[589]</leadingDigits>
21930           <format>$1 $2 $3</format>
21931         </numberFormat>
21932         <numberFormat pattern="(444)(\d{1})(\d{3})">
21933           <leadingDigits>444</leadingDigits>
21934           <format>$1 $2 $3</format>
21935         </numberFormat>
21936       </availableFormats>
21937       <generalDesc>
21938         <nationalNumberPattern>
21939           [2-589]\d{9}|
21940           444\d{4}
21941         </nationalNumberPattern>
21942         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21943       </generalDesc>
21944       <noInternationalDialling>
21945         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
21946         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21947         <exampleNumber>4441444</exampleNumber>
21948       </noInternationalDialling>
21949       <fixedLine>
21950         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
21951         <nationalNumberPattern>
21952           (?:
21953             2(?:
21954               [13][26]|
21955               [28][2468]|
21956               [45][268]|
21957               [67][246]
21958             )|
21959             3(?:
21960               [13][28]|
21961               [24-6][2468]|
21962               [78][02468]|
21963               92
21964             )|
21965             4(?:
21966               [16][246]|
21967               [23578][2468]|
21968               4[26]
21969             )
21970           )\d{7}
21971         </nationalNumberPattern>
21972         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21973         <exampleNumber>2123456789</exampleNumber>
21974       </fixedLine>
21975       <mobile>
21976         <!-- There are some differences between the Turkish and English wikipedia pages here, and
21977              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
21978              509 from the English page because of this. -->
21979         <nationalNumberPattern>
21980           5(?:
21981             0[1-7]|
21982             22|
21983             [34]\d|
21984             5[1-59]|
21985             9[246]
21986           )\d{7}
21987         </nationalNumberPattern>
21988         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21989         <exampleNumber>5012345678</exampleNumber>
21990       </mobile>
21991       <pager>
21992         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
21993         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21994         <exampleNumber>5123456789</exampleNumber>
21995       </pager>
21996       <tollFree>
21997         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
21998         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21999         <exampleNumber>8001234567</exampleNumber>
22000       </tollFree>
22001       <premiumRate>
22002         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
22003         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22004         <exampleNumber>9001234567</exampleNumber>
22005       </premiumRate>
22006       <uan>
22007         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
22008         <nationalNumberPattern>
22009           444\d{4}|
22010           850\d{7}
22011         </nationalNumberPattern>
22012         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
22013         <exampleNumber>4441444</exampleNumber>
22014       </uan>
22015     </territory>
22016
22017     <!-- Trinidad and Tobago -->
22018     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
22019                internationalPrefix="011">
22020       <references>
22021         <sourceUrl>http://www.itu.int/oth/T02020000D4/en</sourceUrl>
22022       </references>
22023       <generalDesc>
22024         <!-- NANPA country - uses US formatting rules -->
22025         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
22026         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22027       </generalDesc>
22028       <fixedLine>
22029         <nationalNumberPattern>
22030           868(?:
22031             2(?:
22032               [03]1|
22033               2[1-5]
22034             )|
22035             6(?:
22036               0[79]|
22037               1[02-9]|
22038               2[1-9]|
22039               [3-69]\d|
22040               7[0-79]
22041             )|
22042             82[124]
22043           )\d{4}
22044         </nationalNumberPattern>
22045         <exampleNumber>8682211234</exampleNumber>
22046       </fixedLine>
22047       <mobile>
22048         <nationalNumberPattern>
22049           868(?:
22050             2(?:
22051               [89]\d
22052             )|
22053             3(?:
22054               0[1-9]|
22055               1[02-9]|
22056               [2-9]\d
22057             )|
22058             4[6-9]\d|
22059             6(?:
22060               20|
22061               78|
22062               8\d
22063             )|
22064             7(?:
22065               0[1-9]|
22066               1[02-9]|
22067               [2-9]\d
22068             )
22069           )\d{4}
22070         </nationalNumberPattern>
22071         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22072         <exampleNumber>8682911234</exampleNumber>
22073       </mobile>
22074       <tollFree>
22075         <nationalNumberPattern>
22076           8(?:
22077             00|
22078             44|
22079             55|
22080             66|
22081             77|
22082             88
22083           )[2-9]\d{6}
22084         </nationalNumberPattern>
22085         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22086         <exampleNumber>8002345678</exampleNumber>
22087       </tollFree>
22088       <premiumRate>
22089         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22090         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22091         <exampleNumber>9002345678</exampleNumber>
22092       </premiumRate>
22093       <personalNumber>
22094         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22095         <nationalNumberPattern>
22096           5(?:
22097             00|
22098             33|
22099             44|
22100             66|
22101             77
22102           )[2-9]\d{6}
22103         </nationalNumberPattern>
22104         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22105         <exampleNumber>5002345678</exampleNumber>
22106       </personalNumber>
22107     </territory>
22108
22109     <!-- Tuvalu -->
22110     <territory id="TV" countryCode="688" internationalPrefix="00">
22111       <references>
22112         <sourceUrl>http://www.itu.int/oth/T02020000D9/en</sourceUrl>
22113         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu</sourceUrl>
22114       </references>
22115       <!-- Numbers are formatted as a block. -->
22116       <generalDesc>
22117         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
22118         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
22119       </generalDesc>
22120       <fixedLine>
22121         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
22122         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22123         <exampleNumber>20123</exampleNumber>
22124       </fixedLine>
22125       <mobile>
22126         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
22127              don't know if these are valid or not - the ITU document excludes them - so are not
22128              covering these for now. -->
22129         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
22130         <possibleNumberPattern>\d{6}</possibleNumberPattern>
22131         <exampleNumber>901234</exampleNumber>
22132       </mobile>
22133     </territory>
22134
22135     <!-- Taiwan, China -->
22136     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
22137          chosen as the preferred extension prefix. -->
22138     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
22139                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG"
22140                mobileNumberPortableRegion="true">
22141       <references>
22142         <sourceUrl>http://www.itu.int/oth/T02020000EB/en</sourceUrl>
22143       </references>
22144       <availableFormats>
22145         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
22146           <leadingDigits>
22147             [2-6]|
22148             [78][1-9]
22149           </leadingDigits>
22150           <format>$1 $2 $3</format>
22151         </numberFormat>
22152         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
22153           <leadingDigits>
22154             80|
22155             9
22156           </leadingDigits>
22157           <format>$1 $2 $3</format>
22158         </numberFormat>
22159         <numberFormat pattern="(70)(\d{4})(\d{4})">
22160           <leadingDigits>70</leadingDigits>
22161           <format>$1 $2 $3</format>
22162         </numberFormat>
22163       </availableFormats>
22164       <generalDesc>
22165         <nationalNumberPattern>
22166           [2-689]\d{7,8}|
22167           7\d{7,9}
22168         </nationalNumberPattern>
22169         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
22170       </generalDesc>
22171       <fixedLine>
22172         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
22173         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22174         <exampleNumber>21234567</exampleNumber>
22175       </fixedLine>
22176       <mobile>
22177         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
22178         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22179         <exampleNumber>912345678</exampleNumber>
22180       </mobile>
22181       <tollFree>
22182         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22183         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22184         <exampleNumber>800123456</exampleNumber>
22185       </tollFree>
22186       <premiumRate>
22187         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22188         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22189         <exampleNumber>900123456</exampleNumber>
22190       </premiumRate>
22191       <!-- http://www.chief.com.tw/telecom_eng/front/bin/ptlist.phtml?Category=107 -->
22192       <voip>
22193         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
22194         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22195         <exampleNumber>7012345678</exampleNumber>
22196       </voip>
22197     </territory>
22198
22199     <!-- Tanzania -->
22200     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
22201                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22202       <references>
22203         <sourceUrl>http://www.itu.int/oth/T02020000CB/en</sourceUrl>
22204       </references>
22205       <availableFormats>
22206         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
22207           <leadingDigits>[24]</leadingDigits>
22208           <format>$1 $2 $3</format>
22209         </numberFormat>
22210         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
22211           <leadingDigits>[67]</leadingDigits>
22212           <format>$1 $2 $3</format>
22213         </numberFormat>
22214         <!-- Formatting for special numbers from http://www.tcra.go.tz -->
22215         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
22216           <leadingDigits>[89]</leadingDigits>
22217           <format>$1 $2 $3</format>
22218         </numberFormat>
22219       </availableFormats>
22220       <generalDesc>
22221         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22222         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22223       </generalDesc>
22224       <fixedLine>
22225         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
22226         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22227         <exampleNumber>222345678</exampleNumber>
22228       </fixedLine>
22229       <mobile>
22230         <nationalNumberPattern>
22231           (?:
22232             6[1578]|
22233             7[1-9]
22234           )\d{7}
22235         </nationalNumberPattern>
22236         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22237         <exampleNumber>612345678</exampleNumber>
22238       </mobile>
22239       <tollFree>
22240         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
22241         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22242         <exampleNumber>800123456</exampleNumber>
22243       </tollFree>
22244       <premiumRate>
22245         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
22246         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22247         <exampleNumber>900123456</exampleNumber>
22248       </premiumRate>
22249       <sharedCost>
22250         <nationalNumberPattern>
22251           8(?:
22252             40|
22253             6[01]
22254           )\d{6}
22255         </nationalNumberPattern>
22256         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22257         <exampleNumber>840123456</exampleNumber>
22258       </sharedCost>
22259       <voip>
22260         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
22261         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22262         <exampleNumber>412345678</exampleNumber>
22263       </voip>
22264     </territory>
22265
22266     <!-- Ukraine -->
22267     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
22268                internationalPrefix="00"
22269                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22270       <references>
22271         <sourceUrl>http://www.itu.int/oth/T02020000DB/en</sourceUrl>
22272         <sourceUrl>http://en.wikipedia.org/wiki/%2B380</sourceUrl>
22273       </references>
22274       <availableFormats>
22275         <!-- City codes separated out. No definitive list has been found of what constitutes the
22276              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
22277              Have used local yellow pages guidelines, Google searches and regression tests to
22278              reverse-engineer these rules as well as bugs. -->
22279         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
22280           <leadingDigits>
22281             [38]9|
22282             4(?:
22283               [45][0-5]|
22284               87
22285             )|
22286             5(?:
22287               0|
22288               6[37]|
22289               7[37]
22290             )|
22291             6[36-8]|
22292             9[1-9]
22293           </leadingDigits>
22294           <leadingDigits>
22295             [38]9|
22296             4(?:
22297               [45][0-5]|
22298               87
22299             )|
22300             5(?:
22301               0|
22302               6(?:
22303                 3[14-7]|
22304                 7
22305               )|
22306               7[37]
22307             )|
22308             6[36-8]|
22309             9[1-9]
22310           </leadingDigits>
22311           <format>$1 $2 $3</format>
22312         </numberFormat>
22313         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
22314           <leadingDigits>
22315             3[1-8]2|
22316             4[13678]2|
22317             5(?:
22318               [12457]2|
22319               6[24]
22320             )|
22321             6(?:
22322               [49]2|
22323               [12][29]|
22324               5[24]
22325             )|
22326             8[0-8]|
22327             90
22328           </leadingDigits>
22329           <leadingDigits>
22330             3(?:
22331               [1-46-8]2[013-9]|
22332               52
22333             )|
22334             4(?:
22335               [1378]2|
22336               62[013-9]
22337             )|
22338             5(?:
22339               [12457]2|
22340               6[24]
22341             )|
22342             6(?:
22343               [49]2|
22344               [12][29]|
22345               5[24]
22346             )|
22347             8[0-8]|
22348             90
22349           </leadingDigits>
22350           <format>$1 $2 $3</format>
22351         </numberFormat>
22352         <numberFormat pattern="([3-6]\d{3})(\d{5})">
22353           <leadingDigits>
22354             3(?:
22355               5[013-9]|
22356               [1-46-8]
22357             )|
22358             4(?:
22359               [137][013-9]|
22360               6|
22361               [45][6-9]|
22362               8[4-6]
22363             )|
22364             5(?:
22365               [1245][013-9]|
22366               6[0135-9]|
22367               3|
22368               7[4-6]
22369             )|
22370             6(?:
22371               [49][013-9]|
22372               5[0135-9]|
22373               [12][13-8]
22374             )
22375           </leadingDigits>
22376           <leadingDigits>
22377             3(?:
22378               5[013-9]|
22379               [1-46-8](?:
22380                 22|
22381                 [013-9]
22382               )
22383             )|
22384             4(?:
22385               [137][013-9]|
22386               6(?:
22387                 [013-9]|
22388                 22
22389               )|
22390               [45][6-9]|
22391               8[4-6]
22392             )|
22393             5(?:
22394               [1245][013-9]|
22395               6(?:
22396                 3[02389]|
22397                 [015689]
22398               )|
22399               3|
22400               7[4-6]
22401             )|
22402             6(?:
22403               [49][013-9]|
22404               5[0135-9]|
22405               [12][13-8]
22406             )
22407           </leadingDigits>
22408           <format>$1 $2</format>
22409         </numberFormat>
22410       </availableFormats>
22411       <generalDesc>
22412         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
22413         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22414       </generalDesc>
22415       <fixedLine>
22416         <nationalNumberPattern>
22417           (?:
22418             3[1-8]|
22419             4[13-8]|
22420             5[1-7]|
22421             6[12459]
22422           )\d{7}
22423         </nationalNumberPattern>
22424         <exampleNumber>311234567</exampleNumber>
22425       </fixedLine>
22426       <mobile>
22427         <nationalNumberPattern>
22428           (?:
22429             39|
22430             50|
22431             6[36-8]|
22432             9[1-9]
22433           )\d{7}
22434         </nationalNumberPattern>
22435         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22436         <exampleNumber>391234567</exampleNumber>
22437       </mobile>
22438       <tollFree>
22439         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22440         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22441         <exampleNumber>800123456</exampleNumber>
22442       </tollFree>
22443       <premiumRate>
22444         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22445         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22446         <exampleNumber>900123456</exampleNumber>
22447       </premiumRate>
22448       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
22449       <voip>
22450         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
22451         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22452         <exampleNumber>891234567</exampleNumber>
22453       </voip>
22454     </territory>
22455
22456     <!-- Uganda -->
22457     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
22458                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22459       <references>
22460         <sourceUrl>http://www.itu.int/oth/T02020000F1/en</sourceUrl>
22461         <sourceUrl>http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf</sourceUrl>
22462       </references>
22463       <availableFormats>
22464         <numberFormat pattern="(\d{3})(\d{6})">
22465           <leadingDigits>
22466             [7-9]|
22467             20(?:
22468               [013-8]|
22469               2[5-9]
22470             )|
22471             4(?:
22472               6[45]|
22473               [7-9]
22474             )
22475           </leadingDigits>
22476           <format>$1 $2</format>
22477         </numberFormat>
22478         <numberFormat pattern="(\d{2})(\d{7})">
22479           <leadingDigits>
22480             3|
22481             4(?:
22482               [1-5]|
22483               6[0-36-9]
22484             )
22485           </leadingDigits>
22486           <format>$1 $2</format>
22487         </numberFormat>
22488         <numberFormat pattern="(2024)(\d{5})">
22489           <leadingDigits>2024</leadingDigits>
22490           <format>$1 $2</format>
22491         </numberFormat>
22492       </availableFormats>
22493       <generalDesc>
22494         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22495         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22496       </generalDesc>
22497       <fixedLine>
22498         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
22499         <nationalNumberPattern>
22500           20(?:
22501             [0147]\d{2}|
22502             2(?:
22503               40|
22504               [5-9]\d
22505             )|
22506             3[23]\d|
22507             5[0-4]\d|
22508             6[03]\d|
22509             8[0-2]\d
22510           )\d{4}|
22511           [34]\d{8}
22512         </nationalNumberPattern>
22513         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
22514              local dialing is still possible. We assume it is for now. -->
22515         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22516         <exampleNumber>312345678</exampleNumber>
22517       </fixedLine>
22518       <mobile>
22519         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
22520         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
22521         <!-- Ranges with prefixes 2030 or 723 are "not yet operational" as of Oct. 2014. -->
22522         <nationalNumberPattern>
22523           2030\d{5}|
22524           7(?:
22525             0[0-7]|
22526             [15789]\d|
22527             2[03]|
22528             30|
22529             [46][0-4]
22530           )\d{6}
22531         </nationalNumberPattern>
22532         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22533         <exampleNumber>712345678</exampleNumber>
22534       </mobile>
22535       <tollFree>
22536         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
22537         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22538         <exampleNumber>800123456</exampleNumber>
22539       </tollFree>
22540       <premiumRate>
22541         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
22542         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22543         <exampleNumber>901123456</exampleNumber>
22544       </premiumRate>
22545     </territory>
22546
22547     <!-- United States -->
22548     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
22549          numbers in the national format, it is not included. Therefore, we omit it here to make
22550          formatting consistent with the rest of the world. The same applies to all the
22551          countries/regions under NANPA -->
22552     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
22553          when formatting, but is set here so that users who are calling formatByPattern can specify
22554          NationalPrefixFormattingRule if they want to. -->
22555     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
22556                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true"
22557                mobileNumberPortableRegion="true">
22558       <references>
22559         <sourceUrl>http://www.nanpa.com/reports/reports_npa.html</sourceUrl>
22560         <sourceUrl>http://en.wikipedia.org/wiki/North_American_Numbering_Plan</sourceUrl>
22561       </references>
22562       <availableFormats>
22563         <numberFormat pattern="(\d{3})(\d{4})">
22564           <format>$1-$2</format>
22565           <intlFormat>NA</intlFormat>
22566         </numberFormat>
22567         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
22568           <format>($1) $2-$3</format>
22569           <!-- A different pattern is used when formatting internationally, as the area code is no
22570                longer optional and should not be in brackets. -->
22571           <intlFormat>$1-$2-$3</intlFormat>
22572         </numberFormat>
22573       </availableFormats>
22574       <generalDesc>
22575         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
22576         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22577       </generalDesc>
22578       <fixedLine>
22579         <nationalNumberPattern>
22580           (?:
22581             2(?:
22582               0[1-35-9]|
22583               1[02-9]|
22584               2[04589]|
22585               3[149]|
22586               4[08]|
22587               5[1-46]|
22588               6[0279]|
22589               7[026]|
22590               8[13]
22591             )|
22592             3(?:
22593               0[1-57-9]|
22594               1[02-9]|
22595               2[0135]|
22596               3[014679]|
22597               4[67]|
22598               5[12]|
22599               6[014]|
22600               8[56]
22601             )|
22602             4(?:
22603               0[124-9]|
22604               1[02-579]|
22605               2[3-5]|
22606               3[0245]|
22607               4[0235]|
22608               58|
22609               69|
22610               7[0589]|
22611               8[04]
22612             )|
22613             5(?:
22614               0[1-57-9]|
22615               1[0235-8]|
22616               20|
22617               3[0149]|
22618               4[01]|
22619               5[19]|
22620               6[1-37]|
22621               7[013-5]|
22622               8[056]
22623             )|
22624             6(?:
22625               0[1-35-9]|
22626               1[024-9]|
22627               2[03689]|
22628               3[016]|
22629               4[16]|
22630               5[017]|
22631               6[0-279]|
22632               78|
22633               8[12]
22634             )|
22635             7(?:
22636               0[1-46-8]|
22637               1[02-9]|
22638               2[0457]|
22639               3[1247]|
22640               4[07]|
22641               5[47]|
22642               6[02359]|
22643               7[02-59]|
22644               8[156]
22645             )|
22646             8(?:
22647               0[1-68]|
22648               1[02-8]|
22649               28|
22650               3[0-25]|
22651               4[3578]|
22652               5[06-9]|
22653               6[02-5]|
22654               7[028]
22655             )|
22656             9(?:
22657               0[1346-9]|
22658               1[02-9]|
22659               2[0589]|
22660               3[01678]|
22661               4[0179]|
22662               5[12469]|
22663               7[0-3589]|
22664               8[0459]
22665             )
22666           )[2-9]\d{6}
22667         </nationalNumberPattern>
22668         <exampleNumber>2015555555</exampleNumber>
22669       </fixedLine>
22670       <mobile>
22671         <nationalNumberPattern>
22672           (?:
22673             2(?:
22674               0[1-35-9]|
22675               1[02-9]|
22676               2[04589]|
22677               3[149]|
22678               4[08]|
22679               5[1-46]|
22680               6[0279]|
22681               7[026]|
22682               8[13]
22683             )|
22684             3(?:
22685               0[1-57-9]|
22686               1[02-9]|
22687               2[0135]|
22688               3[014679]|
22689               4[67]|
22690               5[12]|
22691               6[014]|
22692               8[56]
22693             )|
22694             4(?:
22695               0[124-9]|
22696               1[02-579]|
22697               2[3-5]|
22698               3[0245]|
22699               4[0235]|
22700               58|
22701               69|
22702               7[0589]|
22703               8[04]
22704             )|
22705             5(?:
22706               0[1-57-9]|
22707               1[0235-8]|
22708               20|
22709               3[0149]|
22710               4[01]|
22711               5[19]|
22712               6[1-37]|
22713               7[013-5]|
22714               8[056]
22715             )|
22716             6(?:
22717               0[1-35-9]|
22718               1[024-9]|
22719               2[03689]|
22720               3[016]|
22721               4[16]|
22722               5[017]|
22723               6[0-279]|
22724               78|
22725               8[12]
22726             )|
22727             7(?:
22728               0[1-46-8]|
22729               1[02-9]|
22730               2[0457]|
22731               3[1247]|
22732               4[07]|
22733               5[47]|
22734               6[02359]|
22735               7[02-59]|
22736               8[156]
22737             )|
22738             8(?:
22739               0[1-68]|
22740               1[02-8]|
22741               28|
22742               3[0-25]|
22743               4[3578]|
22744               5[06-9]|
22745               6[02-5]|
22746               7[028]
22747             )|
22748             9(?:
22749               0[1346-9]|
22750               1[02-9]|
22751               2[0589]|
22752               3[01678]|
22753               4[0179]|
22754               5[12469]|
22755               7[0-3589]|
22756               8[0459]
22757             )
22758           )[2-9]\d{6}
22759         </nationalNumberPattern>
22760         <exampleNumber>2015555555</exampleNumber>
22761       </mobile>
22762       <tollFree>
22763         <nationalNumberPattern>
22764           8(?:
22765             00|
22766             44|
22767             55|
22768             66|
22769             77|
22770             88
22771           )[2-9]\d{6}
22772         </nationalNumberPattern>
22773         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22774         <exampleNumber>8002345678</exampleNumber>
22775       </tollFree>
22776       <premiumRate>
22777         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22778         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22779         <exampleNumber>9002345678</exampleNumber>
22780       </premiumRate>
22781       <personalNumber>
22782         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22783         <nationalNumberPattern>
22784           5(?:
22785             00|
22786             33|
22787             44|
22788             66|
22789             77
22790           )[2-9]\d{6}
22791         </nationalNumberPattern>
22792         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22793         <exampleNumber>5002345678</exampleNumber>
22794       </personalNumber>
22795     </territory>
22796
22797     <!-- Uruguay -->
22798     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
22799          code JK, where J = [3-9] and K is any digit. -->
22800     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
22801                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
22802       <references>
22803         <sourceUrl>http://www.itu.int/oth/T02020000E0/en</sourceUrl>
22804         <sourceUrl>http://www.ursec.gub.uy</sourceUrl>
22805         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay</sourceUrl>
22806       </references>
22807       <availableFormats>
22808         <!-- Following paginasamarillas.com.uy formatting. -->
22809         <numberFormat pattern="(\d{4})(\d{4})">
22810           <leadingDigits>[24]</leadingDigits>
22811           <format>$1 $2</format>
22812         </numberFormat>
22813         <!-- Including the national prefix here since URSEC does when formatting these. -->
22814         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
22815           <leadingDigits>9[1-9]</leadingDigits>
22816           <format>$1 $2 $3</format>
22817         </numberFormat>
22818         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
22819           <leadingDigits>[89]0</leadingDigits>
22820           <format>$1 $2</format>
22821         </numberFormat>
22822       </availableFormats>
22823       <generalDesc>
22824         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
22825         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
22826       </generalDesc>
22827       <fixedLine>
22828         <nationalNumberPattern>
22829           2\d{7}|
22830           4[2-7]\d{6}
22831         </nationalNumberPattern>
22832         <exampleNumber>21231234</exampleNumber>
22833       </fixedLine>
22834       <mobile>
22835         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
22836         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22837         <exampleNumber>94231234</exampleNumber>
22838       </mobile>
22839       <tollFree>
22840         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
22841         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22842         <exampleNumber>8001234</exampleNumber>
22843       </tollFree>
22844       <premiumRate>
22845         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
22846         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22847         <exampleNumber>9001234</exampleNumber>
22848       </premiumRate>
22849      </territory>
22850
22851     <!-- Uzbekistan -->
22852     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
22853                internationalPrefix="810" nationalPrefix="8"
22854                nationalPrefixFormattingRule="$NP $FG">
22855       <references>
22856         <sourceUrl>http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng</sourceUrl>
22857         <sourceUrl>http://www.itu.int/oth/T02020000E1/en</sourceUrl>
22858       </references>
22859       <availableFormats>
22860         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
22861           <format>$1 $2 $3 $4</format>
22862         </numberFormat>
22863       </availableFormats>
22864       <generalDesc>
22865         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
22866         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22867       </generalDesc>
22868       <fixedLine>
22869         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
22870              be used in Namangan. -->
22871         <nationalNumberPattern>
22872           (?:
22873             6(?:
22874               1(?:
22875                 22|
22876                 3[124]|
22877                 4[1-4]|
22878                 5[123578]|
22879                 64
22880               )|
22881               2(?:
22882                 22|
22883                 3[0-57-9]|
22884                 41
22885               )|
22886               5(?:
22887                 22|
22888                 3[3-7]|
22889                 5[024-8]
22890               )|
22891               6\d{2}|
22892               7(?:
22893                 [23]\d|
22894                 7[69]
22895               )|
22896               9(?:
22897                 22|
22898                 4[1-8]|
22899                 6[135]
22900               )
22901             )|
22902             7(?:
22903               0(?:
22904                 5[4-9]|
22905                 6[0146]|
22906                 7[12456]|
22907                 9[135-8]
22908               )|
22909               1[12]\d|
22910               2(?:
22911                 22|
22912                 3[1345789]|
22913                 4[123579]|
22914                 5[14]
22915               )|
22916               3(?:
22917                 2\d|
22918                 3[1578]|
22919                 4[1-35-7]|
22920                 5[1-57]|
22921                 61
22922               )|
22923               4(?:
22924                 2\d|
22925                 3[1-579]|
22926                 7[1-79]
22927               )|
22928               5(?:
22929                 22|
22930                 5[1-9]|
22931                 6[1457]
22932               )|
22933               6(?:
22934                 22|
22935                 3[12457]|
22936                 4[13-8]
22937               )|
22938               9(?:
22939                 22|
22940                 5[1-9]
22941               )
22942             )
22943           )\d{5}
22944         </nationalNumberPattern>
22945         <exampleNumber>662345678</exampleNumber>
22946       </fixedLine>
22947       <mobile>
22948         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
22949              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
22950              prefixes Tyntec has a carrier mapped to. -->
22951         <nationalNumberPattern>
22952           6(?:
22953             1(?:
22954               2(?:
22955                 98|
22956                 2[01]
22957               )|
22958               35[0-4]|
22959               50\d|
22960               61[23]|
22961               7(?:
22962                 [01][017]|
22963                 4\d|
22964                 55|
22965                 9[5-9]
22966               )
22967             )|
22968             2(?:
22969               11\d|
22970               2(?:
22971                 [12]1|
22972                 9[01379]
22973               )|
22974               5(?:
22975                 [126]\d|
22976                 3[0-4]
22977               )|
22978               7\d{2}
22979             )|
22980             5(?:
22981               19[01]|
22982               2(?:
22983                 27|
22984                 9[26]
22985               )|
22986               30\d|
22987               59\d|
22988               7\d{2}
22989             )|
22990             6(?:
22991               2(?:
22992                 1[5-9]|
22993                 2[0367]|
22994                 38|
22995                 41|
22996                 52|
22997                 60
22998               )|
22999               3[79]\d|
23000               4(?:
23001                 56|
23002                 83
23003               )|
23004               7(?:
23005                 [07]\d|
23006                 1[017]|
23007                 3[07]|
23008                 4[047]|
23009                 5[057]|
23010                 67|
23011                 8[0178]|
23012                 9[79]
23013                 )|
23014               9[0-3]\d
23015             )|
23016             7(?:
23017               2(?:
23018                 24|
23019                 3[237]|
23020                 4[5-9]|
23021                 7[15-8]
23022               )|
23023               5(?:
23024                 7[12]|
23025                 8[0589]
23026               )|
23027               7(?:
23028                 0\d|
23029                 [39][07]
23030               )|
23031               9(?:
23032                 0\d|
23033                 7[079]
23034               )
23035             )|
23036             9(?:
23037               2(?:
23038                 1[1267]|
23039                 5\d|
23040                 3[01]|
23041                 7[0-4]
23042               )|
23043               5[67]\d|
23044               6(?:
23045                 2[0-26]|
23046                 8\d
23047               )|
23048               7\d{2}
23049             )
23050           )\d{4}|
23051           7(?:
23052             0\d{3}|
23053             1(?:
23054               13[01]|
23055               6(?:
23056                 0[47]|
23057                 1[67]|
23058                 66
23059               )|
23060               71[3-69]|
23061               98\d
23062             )|
23063             2(?:
23064               2(?:
23065                 2[79]|
23066                 95
23067               )|
23068               3(?:
23069                 2[5-9]|
23070                 6[0-6]
23071               )|
23072               57\d|
23073               7(?:
23074                 0\d|
23075                 1[17]|
23076                 2[27]|
23077                 3[37]|
23078                 44|
23079                 5[057]|
23080                 66|
23081                 88
23082               )
23083             )|
23084             3(?:
23085               2(?:
23086                 1[0-6]|
23087                 21|
23088                 3[469]|
23089                 7[159]
23090               )|
23091               33\d|
23092               5(?:
23093                 0[0-4]|
23094                 5[579]|
23095                 9\d
23096               )|
23097               7(?:
23098                 [0-3579]\d|
23099                 4[0467]|
23100                 6[67]|
23101                 8[078]
23102               )|
23103               9[4-6]\d
23104             )|
23105             4(?:
23106               2(?:
23107                 29|
23108                 5[0257]|
23109                 6[0-7]|
23110                 7[1-57]
23111               )|
23112               5(?:
23113                 1[0-4]|
23114                 8\d|
23115                 9[5-9]
23116               )|
23117               7(?:
23118                 0\d|
23119                 1[024589]|
23120                 2[0127]|
23121                 3[0137]|
23122                 [46][07]|
23123                 5[01]|
23124                 7[5-9]|
23125                 9[079]
23126               )|
23127               9(?:
23128                 7[015-9]|
23129                 [89]\d
23130               )
23131             )|
23132             5(?:
23133               112|
23134               2(?:
23135                 0\d|
23136                 2[29]|
23137                 [49]4
23138               )|
23139               3[1568]\d|
23140               52[6-9]|
23141               7(?:
23142                 0[01578]|
23143                 1[017]|
23144                 [23]7|
23145                 4[047]|
23146                 [5-7]\d|
23147                 8[78]|
23148                 9[079]
23149               )
23150             )|
23151             6(?:
23152               2(?:
23153                 2[1245]|
23154                 4[2-4]
23155               )|
23156               39\d|
23157               41[179]|
23158               5(?:
23159                 [349]\d|
23160                 5[0-2]
23161               )|
23162               7(?:
23163                 0[017]|
23164                 [13]\d|
23165                 22|
23166                 44|
23167                 55|
23168                 67|
23169                 88
23170               )
23171             )|
23172             9(?:
23173               22[128]|
23174               3(?:
23175                 2[0-4]|
23176                 7\d
23177               )|
23178               57[05629]|
23179               7(?:
23180                 2[05-9]|
23181                 3[37]|
23182                 4\d|
23183                 60|
23184                 7[2579]|
23185                 87|
23186                 9[07]
23187               )
23188             )
23189           )\d{4}|
23190           9[0-57-9]\d{7}
23191         </nationalNumberPattern>
23192         <exampleNumber>912345678</exampleNumber>
23193       </mobile>
23194       <!-- No tollFree or premiumRate information can be found. -->
23195     </territory>
23196
23197     <!-- Vatican City -->
23198     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
23199          also be dialled with the Vatican City country code. -->
23200     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
23201       <references>
23202         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City</sourceUrl>
23203       </references>
23204       <availableFormats>
23205         <numberFormat pattern="(06)(\d{4})(\d{4})">
23206           <format>$1 $2 $3</format>
23207         </numberFormat>
23208       </availableFormats>
23209       <generalDesc>
23210         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
23211         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23212       </generalDesc>
23213       <fixedLine>
23214         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
23215         <exampleNumber>0669812345</exampleNumber>
23216       </fixedLine>
23217       <mobile>
23218         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
23219              Italian mobile contracts. -->
23220         <nationalNumberPattern>NA</nationalNumberPattern>
23221         <possibleNumberPattern>NA</possibleNumberPattern>
23222       </mobile>
23223       <!-- No information exists about other types of numbers. -->
23224     </territory>
23225
23226     <!-- Saint Vincent and the Grenadines -->
23227     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
23228                internationalPrefix="011">
23229       <references>
23230         <sourceUrl>http://www.itu.int/oth/T02020000B3/en</sourceUrl>
23231       </references>
23232       <generalDesc>
23233         <!-- NANPA country - uses US formatting rules -->
23234         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
23235         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23236       </generalDesc>
23237       <!-- For 570, 571 and 572 prefixes, we believe the ITU doc incorrectly listed them to be under
23238            area code 758, which should be 784. -->
23239       <fixedLine>
23240         <nationalNumberPattern>
23241           784(?:
23242             266|
23243             3(?:
23244               6[6-9]|
23245               7\d|
23246               8[0-24-6]
23247             )|
23248             4(?:
23249               38|
23250               5[0-36-8]|
23251               8[0-8]
23252             )|
23253             5(?:
23254               55|
23255               7[0-2]|
23256               93
23257             )|
23258             638|
23259             784
23260           )\d{4}
23261         </nationalNumberPattern>
23262         <exampleNumber>7842661234</exampleNumber>
23263       </fixedLine>
23264       <mobile>
23265         <nationalNumberPattern>
23266           784(?:
23267             4(?:
23268               3[0-4]|
23269               5[45]|
23270               89|
23271               9[0-5]
23272             )|
23273             5(?:
23274               2[6-9]|
23275               3[0-4]
23276             )
23277           )\d{4}
23278         </nationalNumberPattern>
23279         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23280         <exampleNumber>7844301234</exampleNumber>
23281       </mobile>
23282       <tollFree>
23283         <nationalNumberPattern>
23284           8(?:
23285             00|
23286             44|
23287             55|
23288             66|
23289             77|
23290             88
23291           )[2-9]\d{6}
23292         </nationalNumberPattern>
23293         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23294         <exampleNumber>8002345678</exampleNumber>
23295       </tollFree>
23296       <premiumRate>
23297         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23298         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23299         <exampleNumber>9002345678</exampleNumber>
23300       </premiumRate>
23301       <personalNumber>
23302         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23303         <nationalNumberPattern>
23304           5(?:
23305             00|
23306             33|
23307             44|
23308             66|
23309             77
23310           )[2-9]\d{6}
23311         </nationalNumberPattern>
23312         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23313         <exampleNumber>5002345678</exampleNumber>
23314       </personalNumber>
23315     </territory>
23316
23317     <!-- Venezuela -->
23318     <!-- 1XX specifies a particular carrier to route a call to, but none of these have been
23319          implemented. -->
23320     <territory id="VE" countryCode="58" internationalPrefix="00"
23321                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23322                carrierCodeFormattingRule="$CC $FG">
23323       <references>
23324         <sourceUrl>http://www.itu.int/oth/T02020000E3/en</sourceUrl>
23325         <sourceUrl>http://en.wikipedia.org/wiki/+58</sourceUrl>
23326       </references>
23327       <availableFormats>
23328         <numberFormat pattern="(\d{3})(\d{7})">
23329           <format>$1-$2</format>
23330         </numberFormat>
23331       </availableFormats>
23332       <generalDesc>
23333         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
23334         <!-- Open numbering plan. -->
23335         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23336       </generalDesc>
23337       <fixedLine>
23338         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
23339              mentions these as 5XX, but online examples that can be found are seemingly restricted
23340              to 50[01]. -->
23341         <nationalNumberPattern>
23342           (?:
23343             2(?:
23344               12|
23345               3[457-9]|
23346               [58][1-9]|
23347               [467]\d|
23348               9[1-6]
23349             )|
23350             50[01]
23351           )\d{7}
23352         </nationalNumberPattern>
23353         <exampleNumber>2121234567</exampleNumber>
23354       </fixedLine>
23355       <mobile>
23356         <nationalNumberPattern>
23357           4(?:
23358             1[24-8]|
23359             2[46]
23360           )\d{7}
23361         </nationalNumberPattern>
23362         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23363         <exampleNumber>4121234567</exampleNumber>
23364       </mobile>
23365       <tollFree>
23366         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
23367         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23368         <exampleNumber>8001234567</exampleNumber>
23369       </tollFree>
23370       <premiumRate>
23371         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
23372         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23373         <exampleNumber>9001234567</exampleNumber>
23374       </premiumRate>
23375     </territory>
23376
23377     <!-- Virgin Islands, British -->
23378     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
23379                internationalPrefix="011">
23380       <references>
23381         <sourceUrl>http://www.itu.int/oth/T020200001E/en</sourceUrl>
23382       </references>
23383       <generalDesc>
23384         <!-- NANPA country - uses US formatting rules -->
23385         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
23386         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23387       </generalDesc>
23388       <fixedLine>
23389         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
23390              and 774 have been added from numbers found in the white pages. -->
23391         <nationalNumberPattern>
23392           284(?:
23393             (?:
23394               229|
23395               4(?:
23396                 22|
23397                 9[45]
23398               )|
23399               774|
23400               8(?:
23401                 52|
23402                 6[459]
23403               )
23404             )\d{4}|
23405             496[0-5]\d{3}
23406           )
23407         </nationalNumberPattern>
23408         <exampleNumber>2842291234</exampleNumber>
23409       </fixedLine>
23410       <mobile>
23411         <!-- No data on central office codes can be found on the nanpa.com website. The codes
23412              34[0-367], 446 and 54[57] have been added from numbers found in the white pages. -->
23413         <nationalNumberPattern>
23414           284(?:
23415             (?:
23416               3(?:
23417                 0[0-3]|
23418                 4[0-367]
23419               )|
23420               4(?:
23421                 4[0-6]|
23422                 68|
23423                 99
23424               )|
23425               54[0-57]
23426             )\d{4}|
23427             496[6-9]\d{3}
23428           )
23429         </nationalNumberPattern>
23430         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23431         <exampleNumber>2843001234</exampleNumber>
23432       </mobile>
23433       <tollFree>
23434         <nationalNumberPattern>
23435           8(?:
23436             00|
23437             44|
23438             55|
23439             66|
23440             77|
23441             88
23442           )[2-9]\d{6}
23443         </nationalNumberPattern>
23444         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23445         <exampleNumber>8002345678</exampleNumber>
23446       </tollFree>
23447       <premiumRate>
23448         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23449         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23450         <exampleNumber>9002345678</exampleNumber>
23451       </premiumRate>
23452       <personalNumber>
23453         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23454         <nationalNumberPattern>
23455           5(?:
23456             00|
23457             33|
23458             44|
23459             66|
23460             77
23461           )[2-9]\d{6}
23462         </nationalNumberPattern>
23463         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23464         <exampleNumber>5002345678</exampleNumber>
23465       </personalNumber>
23466     </territory>
23467
23468     <!-- Virgin Islands, United States -->
23469     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
23470                internationalPrefix="011">
23471       <references>
23472         <sourceUrl>http://www.itu.int/oth/T02020000DF/en</sourceUrl>
23473       </references>
23474       <generalDesc>
23475         <!-- NANPA country - uses US formatting rules -->
23476         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
23477         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23478       </generalDesc>
23479       <fixedLine>
23480         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
23481              yellow pages have been added, and the list of exchanges found on
23482              http://www.allareacodes.com/340 -->
23483         <nationalNumberPattern>
23484           340(?:
23485             2(?:
23486               01|
23487               2[0678]|
23488               44|
23489               77
23490             )|
23491             3(?:
23492               32|
23493               44
23494             )|
23495             4(?:
23496               22|
23497               7[34]
23498             )|
23499             5(?:
23500               1[34]|
23501               55
23502             )|
23503             6(?:
23504               26|
23505               4[23]|
23506               77|
23507               9[023]
23508             )|
23509             7(?:
23510               1[2-589]|
23511               27|
23512               7\d
23513             )|
23514             884|
23515             998
23516           )\d{4}
23517         </nationalNumberPattern>
23518         <exampleNumber>3406421234</exampleNumber>
23519       </fixedLine>
23520       <mobile>
23521         <nationalNumberPattern>
23522           340(?:
23523             2(?:
23524               01|
23525               2[0678]|
23526               44|
23527               77
23528             )|
23529             3(?:
23530               32|
23531               44
23532             )|
23533             4(?:
23534               22|
23535               7[34]
23536             )|
23537             5(?:
23538               1[34]|
23539               55
23540             )|
23541             6(?:
23542               26|
23543               4[23]|
23544               77|
23545               9[023]
23546             )|
23547             7(?:
23548               1[2-589]|
23549               27|
23550               7\d
23551             )|
23552             884|
23553             998
23554           )\d{4}
23555         </nationalNumberPattern>
23556         <exampleNumber>3406421234</exampleNumber>
23557       </mobile>
23558       <tollFree>
23559         <nationalNumberPattern>
23560           8(?:
23561             00|
23562             44|
23563             55|
23564             66|
23565             77|
23566             88
23567           )[2-9]\d{6}
23568         </nationalNumberPattern>
23569         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23570         <exampleNumber>8002345678</exampleNumber>
23571       </tollFree>
23572       <premiumRate>
23573         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23574         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23575         <exampleNumber>9002345678</exampleNumber>
23576       </premiumRate>
23577       <personalNumber>
23578         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23579         <nationalNumberPattern>
23580           5(?:
23581             00|
23582             33|
23583             44|
23584             66|
23585             77
23586           )[2-9]\d{6}
23587         </nationalNumberPattern>
23588         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23589         <exampleNumber>5002345678</exampleNumber>
23590       </personalNumber>
23591     </territory>
23592
23593     <!-- Viet Nam (Vietnam) -->
23594     <territory id="VN" countryCode="84" internationalPrefix="00"
23595                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23596                nationalPrefixOptionalWhenFormatting="true">
23597       <references>
23598         <sourceUrl>http://www.itu.int/oth/T02020000E4/en</sourceUrl>
23599         <sourceUrl>http://en.wikipedia.org/wiki/%2B84</sourceUrl>
23600       </references>
23601       <availableFormats>
23602         <numberFormat pattern="([17]99)(\d{4})">
23603           <leadingDigits>[17]99</leadingDigits>
23604           <format>$1 $2</format>
23605         </numberFormat>
23606         <numberFormat pattern="([48])(\d{4})(\d{4})">
23607           <leadingDigits>[48]</leadingDigits>
23608           <format>$1 $2 $3</format>
23609         </numberFormat>
23610         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
23611           <leadingDigits>
23612             2[025-79]|
23613             3[0136-9]|
23614             5[2-9]|
23615             6[0-46-8]|
23616             7[02-79]
23617           </leadingDigits>
23618           <format>$1 $2 $3</format>
23619         </numberFormat>
23620         <numberFormat pattern="(80)(\d{5})">
23621           <leadingDigits>80</leadingDigits>
23622           <format>$1 $2</format>
23623         </numberFormat>
23624         <numberFormat pattern="(69\d)(\d{4,5})">
23625           <leadingDigits>69</leadingDigits>
23626           <format>$1 $2</format>
23627         </numberFormat>
23628         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
23629           <leadingDigits>
23630             2[1348]|
23631             3[25]|
23632             5[01]|
23633             65|
23634             7[18]
23635           </leadingDigits>
23636           <format>$1 $2 $3</format>
23637         </numberFormat>
23638         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
23639           <leadingDigits>9</leadingDigits>
23640           <format>$1 $2 $3 $4</format>
23641         </numberFormat>
23642         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
23643           <leadingDigits>
23644             1(?:
23645               [26]|
23646               8[68]|
23647               99
23648             )
23649           </leadingDigits>
23650           <format>$1 $2 $3</format>
23651         </numberFormat>
23652         <numberFormat nationalPrefixFormattingRule="$FG"
23653           pattern="(1[89]00)(\d{4,6})">
23654           <leadingDigits>1[89]0</leadingDigits>
23655           <format>$1 $2</format>
23656         </numberFormat>
23657       </availableFormats>
23658       <generalDesc>
23659         <nationalNumberPattern>
23660           [17]\d{6,9}|
23661           [2-69]\d{7,9}|
23662           8\d{6,8}
23663         </nationalNumberPattern>
23664         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23665       </generalDesc>
23666       <noInternationalDialling>
23667         <nationalNumberPattern>
23668           [17]99\d{4}|
23669           69\d{5,6}
23670         </nationalNumberPattern>
23671         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23672         <exampleNumber>1992000</exampleNumber>
23673       </noInternationalDialling>
23674       <fixedLine>
23675         <nationalNumberPattern>
23676           (?:
23677             2(?:
23678               [025-79]|
23679               1[0189]|
23680               [348][01]
23681             )|
23682             3(?:
23683               [0136-9]|
23684               [25][01]
23685             )|
23686             4\d|
23687             5(?:
23688               [01][01]|
23689               [2-9]
23690             )|
23691             6(?:
23692               [0-46-8]|
23693               5[01]
23694             )|
23695             7(?:
23696               [02-79]|
23697               [18][01]
23698             )|
23699             8[1-9]
23700           )\d{7}
23701         </nationalNumberPattern>
23702         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23703         <exampleNumber>2101234567</exampleNumber>
23704       </fixedLine>
23705       <mobile>
23706         <nationalNumberPattern>
23707           (?:
23708             9\d|
23709             1(?:
23710               2\d|
23711               6[2-9]|
23712               8[68]|
23713               99
23714             )
23715           )\d{7}
23716         </nationalNumberPattern>
23717         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23718         <exampleNumber>912345678</exampleNumber>
23719       </mobile>
23720       <tollFree>
23721         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
23722         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23723         <exampleNumber>1800123456</exampleNumber>
23724       </tollFree>
23725       <premiumRate>
23726         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
23727         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23728         <exampleNumber>1900123456</exampleNumber>
23729       </premiumRate>
23730       <uan>
23731         <!-- These include non-geographic fixed numbers, such as for government ministries. While
23732         listed as "private networks", they may actually be callable from within Vietnam. (They are
23733         "private" in the sense that ordinary people could not be assigned these numbers.) -->
23734         <nationalNumberPattern>
23735           [17]99\d{4}|
23736           69\d{5,6}|
23737           80\d{5}
23738         </nationalNumberPattern>
23739         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23740         <exampleNumber>1992000</exampleNumber>
23741       </uan>
23742     </territory>
23743
23744     <!-- Vanuatu -->
23745     <territory id="VU" countryCode="678" internationalPrefix="00">
23746       <references>
23747         <sourceUrl>http://www.itu.int/oth/T02020000E2/en</sourceUrl>
23748       </references>
23749       <!-- Should be formatted in one block, apart from the mobile numbers. -->
23750       <availableFormats>
23751         <numberFormat pattern="(\d{3})(\d{4})">
23752           <leadingDigits>[579]</leadingDigits>
23753           <format>$1 $2</format>
23754         </numberFormat>
23755       </availableFormats>
23756       <generalDesc>
23757         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
23758         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23759       </generalDesc>
23760       <fixedLine>
23761         <nationalNumberPattern>
23762           (?:
23763             2[02-9]\d|
23764             3(?:
23765               [5-7]\d|
23766               8[0-8]
23767             )|
23768             48[4-9]|
23769             88\d
23770           )\d{2}
23771         </nationalNumberPattern>
23772         <possibleNumberPattern>\d{5}</possibleNumberPattern>
23773         <exampleNumber>22123</exampleNumber>
23774       </fixedLine>
23775       <mobile>
23776         <nationalNumberPattern>
23777           (?:
23778             5(?:
23779               7[2-5]|
23780               [3-69]\d
23781             )|
23782             7[013-7]\d
23783           )\d{4}
23784         </nationalNumberPattern>
23785         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23786         <exampleNumber>5912345</exampleNumber>
23787       </mobile>
23788       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
23789            for government fixed-line numbers. -->
23790       <uan>
23791         <nationalNumberPattern>
23792           3[03]\d{3}|
23793           900\d{4}
23794         </nationalNumberPattern>
23795         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23796         <exampleNumber>30123</exampleNumber>
23797       </uan>
23798     </territory>
23799
23800     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
23801     <territory id="WF" countryCode="681" internationalPrefix="00">
23802       <references>
23803         <sourceUrl>http://www.itu.int/oth/T02020000E6/en</sourceUrl>
23804       </references>
23805       <availableFormats>
23806         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
23807           <format>$1 $2 $3</format>
23808         </numberFormat>
23809       </availableFormats>
23810       <generalDesc>
23811         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
23812         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23813       </generalDesc>
23814       <fixedLine>
23815         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
23816              50 and 68 are possible, so they are included here. -->
23817         <nationalNumberPattern>
23818           (?:
23819             50|
23820             68|
23821             72
23822           )\d{4}
23823         </nationalNumberPattern>
23824         <exampleNumber>501234</exampleNumber>
23825       </fixedLine>
23826       <mobile>
23827         <nationalNumberPattern>
23828           (?:
23829             50|
23830             68|
23831             72
23832           )\d{4}
23833         </nationalNumberPattern>
23834         <exampleNumber>501234</exampleNumber>
23835       </mobile>
23836     </territory>
23837
23838     <!-- Samoa -->
23839     <territory id="WS" countryCode="685" internationalPrefix="0">
23840       <references>
23841         <sourceUrl>http://www.itu.int/oth/T02020000B4/en</sourceUrl>
23842       </references>
23843       <availableFormats>
23844         <numberFormat pattern="(8\d{2})(\d{3,4})">
23845           <leadingDigits>8</leadingDigits>
23846           <format>$1 $2</format>
23847         </numberFormat>
23848         <numberFormat pattern="(7\d)(\d{5})">
23849           <leadingDigits>7</leadingDigits>
23850           <format>$1 $2</format>
23851         </numberFormat>
23852         <numberFormat pattern="(\d{5})">
23853           <leadingDigits>[2-6]</leadingDigits>
23854           <format>$1</format>
23855         </numberFormat>
23856       </availableFormats>
23857       <generalDesc>
23858         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
23859         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23860       </generalDesc>
23861       <fixedLine>
23862         <nationalNumberPattern>
23863           (?:
23864             [2-5]\d|
23865             6[1-9]|
23866             84\d{2}
23867           )\d{3}
23868         </nationalNumberPattern>
23869         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23870         <exampleNumber>22123</exampleNumber>
23871       </fixedLine>
23872       <mobile>
23873         <nationalNumberPattern>
23874           (?:
23875             60|
23876             7[25-7]\d
23877           )\d{4}
23878         </nationalNumberPattern>
23879         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
23880         <exampleNumber>601234</exampleNumber>
23881       </mobile>
23882       <tollFree>
23883         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
23884              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
23885              for now, so may be also used for other purposes than toll free, but until we have
23886              further evidence of these we will keep it as toll free. -->
23887         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
23888         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23889         <exampleNumber>800123</exampleNumber>
23890       </tollFree>
23891       <!-- Current research suggests other types of numbers are not used in Samoa. -->
23892     </territory>
23893
23894     <!-- Yemen -->
23895     <territory id="YE" countryCode="967" internationalPrefix="00"
23896                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
23897       <references>
23898         <sourceUrl>http://www.itu.int/oth/T02020000E7/en</sourceUrl>
23899       </references>
23900       <availableFormats>
23901         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
23902           <leadingDigits>
23903             [1-6]|
23904             7[24-68]
23905           </leadingDigits>
23906           <format>$1 $2 $3</format>
23907         </numberFormat>
23908         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
23909           <leadingDigits>7[0137]</leadingDigits>
23910           <format>$1 $2 $3</format>
23911         </numberFormat>
23912       </availableFormats>
23913       <generalDesc>
23914         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
23915         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
23916       </generalDesc>
23917       <fixedLine>
23918         <nationalNumberPattern>
23919           (?:
23920             1(?:
23921               7\d|
23922               [2-68]
23923             )|
23924             2[2-68]|
23925             3[2358]|
23926             4[2-58]|
23927             5[2-6]|
23928             6[3-58]|
23929             7[24-68]
23930           )\d{5}
23931         </nationalNumberPattern>
23932         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
23933         <exampleNumber>1234567</exampleNumber>
23934       </fixedLine>
23935       <mobile>
23936         <!-- Adding 70 from numbers found online. -->
23937         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
23938         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23939         <exampleNumber>712345678</exampleNumber>
23940       </mobile>
23941       <!-- No tollFree or premiumRate information can be found. -->
23942     </territory>
23943
23944     <!-- Mayotte -->
23945     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
23946                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
23947       <references>
23948         <!-- Some information at the following source, but most from collection of internet data.
23949              -->
23950         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_France</sourceUrl>
23951         <!-- Verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
23952              -->
23953         <sourceUrl>http://www.comores-online.com/mwezinet/internet/262</sourceUrl>
23954       </references>
23955       <!-- Formatting as per La Réunion. -->
23956       <generalDesc>
23957         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
23958         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23959       </generalDesc>
23960       <fixedLine>
23961         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
23962         <exampleNumber>269601234</exampleNumber>
23963       </fixedLine>
23964       <mobile>
23965         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
23966         <exampleNumber>639123456</exampleNumber>
23967       </mobile>
23968       <!-- Same as in France. -->
23969       <tollFree>
23970         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23971         <exampleNumber>801234567</exampleNumber>
23972       </tollFree>
23973     </territory>
23974
23975     <!-- South Africa -->
23976     <territory id="ZA" countryCode="27" internationalPrefix="00"
23977                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23978                mobileNumberPortableRegion="true">
23979       <references>
23980         <sourceUrl>http://www.itu.int/oth/T02020000C1/en</sourceUrl>
23981         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa</sourceUrl>
23982       </references>
23983       <availableFormats>
23984         <numberFormat pattern="(860)(\d{3})(\d{3})">
23985           <leadingDigits>860</leadingDigits>
23986           <format>$1 $2 $3</format>
23987         </numberFormat>
23988         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
23989           <leadingDigits>
23990             [1-79]|
23991             8(?:
23992               [0-47]|
23993               6[1-9]
23994             )
23995           </leadingDigits>
23996           <format>$1 $2 $3</format>
23997         </numberFormat>
23998         <numberFormat pattern="(\d{2})(\d{3,4})">
23999           <leadingDigits>8[1-4]</leadingDigits>
24000           <format>$1 $2</format>
24001         </numberFormat>
24002         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
24003           <leadingDigits>8[1-4]</leadingDigits>
24004           <format>$1 $2 $3</format>
24005         </numberFormat>
24006       </availableFormats>
24007       <generalDesc>
24008         <nationalNumberPattern>
24009           [1-79]\d{8}|
24010           8(?:
24011             [067]\d{7}|
24012             [1-4]\d{3,7}
24013           )
24014         </nationalNumberPattern>
24015         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
24016       </generalDesc>
24017       <fixedLine>
24018         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
24019              used in 1996. -->
24020         <nationalNumberPattern>
24021           (?:
24022             1[0-8]|
24023             2[0-378]|
24024             3[1-69]|
24025             4\d|
24026             5[1346-8]
24027           )\d{7}
24028         </nationalNumberPattern>
24029         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24030         <exampleNumber>101234567</exampleNumber>
24031       </fixedLine>
24032       <mobile>
24033         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
24034              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
24035              in prominent places online, even though the ITU document says numbers must be 10 digits
24036              long (including the national prefix). -->
24037         <nationalNumberPattern>
24038           (?:
24039             6[0-5]|
24040             7[0-46-9]
24041           )\d{7}|
24042           8[1-4]\d{3,7}
24043         </nationalNumberPattern>
24044         <exampleNumber>711234567</exampleNumber>
24045       </mobile>
24046       <tollFree>
24047         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
24048         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24049         <exampleNumber>801234567</exampleNumber>
24050       </tollFree>
24051       <premiumRate>
24052         <nationalNumberPattern>
24053           86[2-9]\d{6}|
24054           90\d{7}
24055         </nationalNumberPattern>
24056         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24057         <exampleNumber>862345678</exampleNumber>
24058       </premiumRate>
24059       <sharedCost>
24060         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
24061         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24062         <exampleNumber>860123456</exampleNumber>
24063       </sharedCost>
24064       <voip>
24065         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
24066         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24067         <exampleNumber>871234567</exampleNumber>
24068       </voip>
24069       <uan>
24070         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
24071              numbers. -->
24072         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
24073         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24074         <exampleNumber>861123456</exampleNumber>
24075       </uan>
24076     </territory>
24077
24078     <!-- Zambia -->
24079     <territory id="ZM" countryCode="260" internationalPrefix="00"
24080                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24081       <references>
24082         <sourceUrl>http://www.itu.int/oth/T02020000E8/en</sourceUrl>
24083       </references>
24084       <availableFormats>
24085         <numberFormat pattern="([29]\d)(\d{7})">
24086           <leadingDigits>[29]</leadingDigits>
24087           <format>$1 $2</format>
24088         </numberFormat>
24089         <numberFormat pattern="(800)(\d{3})(\d{3})">
24090           <leadingDigits>8</leadingDigits>
24091           <format>$1 $2 $3</format>
24092         </numberFormat>
24093       </availableFormats>
24094       <generalDesc>
24095         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
24096         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24097       </generalDesc>
24098       <fixedLine>
24099         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
24100         <exampleNumber>211234567</exampleNumber>
24101       </fixedLine>
24102       <mobile>
24103         <!-- Adding extra prefixes 50 and 6[1-57-9] since SMS messages have been successfully
24104              delivered to these numbers, and numbers like this can be found on the Internet. Adding
24105              prefix 960 based on information received from MTN Zambia. The 97 range has been
24106              expanded based on their IR21 document, which states the range 97[1-9] is used. -->
24107         <nationalNumberPattern>
24108           9(?:
24109             5[05]|
24110             6\d|
24111             7[1-9]
24112           )\d{6}
24113         </nationalNumberPattern>
24114         <exampleNumber>955123456</exampleNumber>
24115       </mobile>
24116       <tollFree>
24117         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
24118         <exampleNumber>800123456</exampleNumber>
24119       </tollFree>
24120     </territory>
24121
24122     <!-- Zimbabwe -->
24123     <territory id="ZW" countryCode="263" internationalPrefix="00"
24124                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24125       <references>
24126         <sourceUrl>http://www.itu.int/oth/T02020000E9/en</sourceUrl>
24127       </references>
24128       <availableFormats>
24129         <!-- One-digit area codes -->
24130         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
24131           <leadingDigits>
24132             4|
24133             9[2-9]
24134           </leadingDigits>
24135           <format>$1 $2 $3</format>
24136         </numberFormat>
24137         <!-- Mobile numbers -->
24138         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
24139           <leadingDigits>
24140             [19]1|
24141             7
24142           </leadingDigits>
24143           <format>$1 $2 $3</format>
24144         </numberFormat>
24145         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
24146           <leadingDigits>86[24]</leadingDigits>
24147           <format>$1 $2 $3</format>
24148         </numberFormat>
24149         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
24150         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
24151           <leadingDigits>
24152             2(?:
24153               [278]|
24154               0[45]|
24155               [49]8
24156             )|
24157             3(?:
24158               08|
24159               17|
24160               3[78]|
24161               [78]
24162             )|
24163             5[15][78]|
24164             6(?:
24165               [29]8|
24166               37|
24167               [68][78]
24168             )
24169           </leadingDigits>
24170           <format>$1 $2</format>
24171         </numberFormat>
24172         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
24173           <leadingDigits>
24174             2(?:
24175               [278]|
24176               0[45]|
24177               48
24178             )|
24179             3(?:
24180               08|
24181               17|
24182               3[78]|
24183               [78]
24184             )|
24185             5[15][78]|
24186             6(?:
24187               [29]8|
24188               37|
24189               [68][78]
24190             )|
24191             80
24192           </leadingDigits>
24193           <format>$1 $2 $3</format>
24194         </numberFormat>
24195         <!-- Two-digit area codes -->
24196         <numberFormat pattern="([1-356]\d)(\d{3,5})">
24197           <leadingDigits>
24198             1[3-9]|
24199             2(?:
24200               [1-469]|
24201               0[0-35-9]|
24202               [45][0-79]
24203             )|
24204             3(?:
24205               0[0-79]|
24206               1[0-689]|
24207               [24-69]|
24208               3[0-69]
24209             )|
24210             5(?:
24211               [02-46-9]|
24212               [15][0-69]
24213             )|
24214             6(?:
24215               [0145]|
24216               [29][0-79]|
24217               3[0-689]|
24218               [68][0-69]
24219             )
24220           </leadingDigits>
24221           <format>$1 $2</format>
24222         </numberFormat>
24223         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
24224           <leadingDigits>
24225             1[3-9]|
24226             2(?:
24227               [1-469]|
24228               0[0-35-9]|
24229               [45][0-79]
24230             )|
24231             3(?:
24232               0[0-79]|
24233               1[0-689]|
24234               [24-69]|
24235               3[0-69]
24236             )|
24237             5(?:
24238               [02-46-9]|
24239               [15][0-69]
24240             )|
24241             6(?:
24242               [0145]|
24243               [29][0-79]|
24244               3[0-689]|
24245               [68][0-69]
24246             )
24247           </leadingDigits>
24248           <format>$1 $2 $3</format>
24249         </numberFormat>
24250         <!-- Four-digit area codes -->
24251         <numberFormat pattern="([25]\d{3})(\d{3,5})">
24252           <leadingDigits>
24253             (?:
24254               25|
24255               54
24256             )8
24257           </leadingDigits>
24258           <leadingDigits>
24259             258[23]|
24260             5483
24261           </leadingDigits>
24262           <format>$1 $2</format>
24263         </numberFormat>
24264         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
24265           <leadingDigits>
24266             (?:
24267               25|
24268               54
24269             )8
24270           </leadingDigits>
24271           <leadingDigits>
24272             258[23]|
24273             5483
24274           </leadingDigits>
24275           <format>$1 $2 $3</format>
24276         </numberFormat>
24277         <!-- VOIP numbers -->
24278         <numberFormat pattern="(8\d{3})(\d{6})">
24279           <leadingDigits>86</leadingDigits>
24280           <format>$1 $2</format>
24281         </numberFormat>
24282       </availableFormats>
24283       <generalDesc>
24284         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
24285              variable in length and the possible prefixes clash with the country code. -->
24286         <nationalNumberPattern>
24287           2(?:
24288             [012457-9]\d{3,8}|
24289             6\d{3,6}
24290           )|
24291           [13-79]\d{4,8}|
24292           8[06]\d{8}
24293         </nationalNumberPattern>
24294         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
24295       </generalDesc>
24296       <fixedLine>
24297         <!-- Numbering is grouped by subscriber-number length. -->
24298         <nationalNumberPattern>
24299           (?:
24300             1[3-9]|
24301             2(?:
24302               0[45]|
24303               [16]|
24304               2[28]|
24305               [49]8?|
24306               58[23]|
24307               7[246]|
24308               8[1346-9]
24309             )|
24310             3(?:
24311               08?|
24312               17?|
24313               3[78]|
24314               [2456]|
24315               7[1569]|
24316               8[379]
24317             )|
24318             5(?:
24319               [07-9]|
24320               1[78]|
24321               483|
24322               5(?:
24323                 7?|
24324                 8
24325               )
24326             )|
24327             6(?:
24328               0|
24329               28|
24330               37?|
24331               [45][68][78]|
24332               98?
24333             )|
24334             848
24335           )\d{3,6}|
24336           (?:
24337             2(?:
24338               27|
24339               5|
24340               7[135789]|
24341               8[25]
24342             )|
24343             3[39]|
24344             5[1-46]|
24345             6[126-8]
24346           )\d{4,6}|
24347           2(?:
24348             (?:
24349               0|
24350               70
24351             )\d{5,6}|
24352             2[05]\d{7}
24353           )|
24354           (?:
24355             4\d|
24356             9[2-8]
24357           )\d{4,7}
24358         </nationalNumberPattern>
24359         <exampleNumber>1312345</exampleNumber>
24360       </fixedLine>
24361       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
24362            also being used by the carriers as mobile prefixes. -->
24363       <mobile>
24364         <nationalNumberPattern>
24365           7[1378]\d{7}|
24366           86(?:
24367             22|
24368             44
24369           )\d{6}
24370         </nationalNumberPattern>
24371         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24372         <exampleNumber>711234567</exampleNumber>
24373       </mobile>
24374       <tollFree>
24375         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
24376         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24377         <exampleNumber>8001234567</exampleNumber>
24378       </tollFree>
24379       <!-- No premiumRate information can be found. -->
24380       <voip>
24381         <nationalNumberPattern>
24382           86(?:
24383             1[12]|
24384             30|
24385             55|
24386             77|
24387             8[367]|
24388             99
24389           )\d{6}
24390         </nationalNumberPattern>
24391         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24392         <exampleNumber>8686123456</exampleNumber>
24393       </voip>
24394     </territory>
24395
24396     <!-- Universal International Toll Free Number -->
24397     <territory id="001" countryCode="800" leadingZeroPossible="true">
24398       <references>
24399         <sourceUrl>http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx</sourceUrl>
24400       </references>
24401       <availableFormats>
24402         <numberFormat pattern="(\d{4})(\d{4})">
24403           <format>$1 $2</format>
24404         </numberFormat>
24405       </availableFormats>
24406       <generalDesc>
24407         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24408         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24409         <exampleNumber>12345678</exampleNumber>
24410       </generalDesc>
24411       <fixedLine>
24412         <nationalNumberPattern>NA</nationalNumberPattern>
24413         <possibleNumberPattern>NA</possibleNumberPattern>
24414       </fixedLine>
24415       <mobile>
24416         <nationalNumberPattern>NA</nationalNumberPattern>
24417         <possibleNumberPattern>NA</possibleNumberPattern>
24418       </mobile>
24419       <tollFree>
24420         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24421       </tollFree>
24422     </territory>
24423
24424     <!-- Universal International Shared Cost Number -->
24425     <territory id="001" countryCode="808" leadingZeroPossible="true">
24426       <references>
24427         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24428       </references>
24429       <availableFormats>
24430         <numberFormat pattern="(\d{4})(\d{4})">
24431           <format>$1 $2</format>
24432         </numberFormat>
24433       </availableFormats>
24434       <generalDesc>
24435         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24436         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24437         <exampleNumber>12345678</exampleNumber>
24438       </generalDesc>
24439       <fixedLine>
24440         <nationalNumberPattern>NA</nationalNumberPattern>
24441         <possibleNumberPattern>NA</possibleNumberPattern>
24442       </fixedLine>
24443       <mobile>
24444         <nationalNumberPattern>NA</nationalNumberPattern>
24445         <possibleNumberPattern>NA</possibleNumberPattern>
24446       </mobile>
24447       <sharedCost>
24448         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24449       </sharedCost>
24450     </territory>
24451
24452     <!-- Inmarsat Global Limited -->
24453     <territory id="001" countryCode="870">
24454       <references>
24455         <sourceUrl>http://www.itu.int/oth/T0202000065/en</sourceUrl>
24456         <sourceUrl>http://www.inmarsat.com</sourceUrl>
24457       </references>
24458       <availableFormats>
24459         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24460           <format>$1 $2 $3</format>
24461         </numberFormat>
24462       </availableFormats>
24463       <generalDesc>
24464         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
24465         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24466         <exampleNumber>301234567</exampleNumber>
24467       </generalDesc>
24468       <fixedLine>
24469         <nationalNumberPattern>NA</nationalNumberPattern>
24470         <possibleNumberPattern>NA</possibleNumberPattern>
24471       </fixedLine>
24472       <mobile>
24473         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
24474         <nationalNumberPattern>
24475           (?:
24476             [356]\d|
24477             7[6-8]
24478           )\d{7}
24479         </nationalNumberPattern>
24480       </mobile>
24481     </territory>
24482
24483     <!-- VISIONng -->
24484     <!-- Number length has been derived from examples found online. -->
24485     <territory id="001" countryCode="878">
24486       <references>
24487         <sourceUrl>http://www.itu.int/oth/T02020000E5/en</sourceUrl>
24488       </references>
24489       <availableFormats>
24490         <!-- Formatting chosen based on online examples. -->
24491         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
24492           <format>$1 $2 $3</format>
24493         </numberFormat>
24494       </availableFormats>
24495       <generalDesc>
24496         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
24497         <possibleNumberPattern>\d{12}</possibleNumberPattern>
24498         <exampleNumber>101234567890</exampleNumber>
24499       </generalDesc>
24500       <fixedLine>
24501         <nationalNumberPattern>NA</nationalNumberPattern>
24502         <possibleNumberPattern>NA</possibleNumberPattern>
24503       </fixedLine>
24504       <mobile>
24505         <nationalNumberPattern>NA</nationalNumberPattern>
24506         <possibleNumberPattern>NA</possibleNumberPattern>
24507       </mobile>
24508       <voip>
24509         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
24510       </voip>
24511     </territory>
24512
24513     <!-- Iridium -->
24514     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
24515          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
24516          are. For this reason, we only support Iridium numbers at the moment. -->
24517     <territory id="001" countryCode="881">
24518       <references>
24519         <sourceUrl>http://www.iridium.com</sourceUrl>
24520         <sourceUrl>http://www.itu.int/oth/T0202000069/en</sourceUrl>
24521       </references>
24522       <availableFormats>
24523         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
24524         <numberFormat pattern="(\d)(\d{3})(\d{5})">
24525           <leadingDigits>[67]</leadingDigits>
24526           <format>$1 $2 $3</format>
24527         </numberFormat>
24528       </availableFormats>
24529       <generalDesc>
24530         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24531         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24532         <exampleNumber>612345678</exampleNumber>
24533       </generalDesc>
24534       <fixedLine>
24535         <nationalNumberPattern>NA</nationalNumberPattern>
24536         <possibleNumberPattern>NA</possibleNumberPattern>
24537       </fixedLine>
24538       <mobile>
24539         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24540       </mobile>
24541     </territory>
24542
24543     <territory id="001" countryCode="882">
24544       <references>
24545         <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
24546         <sourceUrl>http://www.itu.int/oth/T0202000054/en</sourceUrl>
24547         <sourceUrl>http://www.gsm.aq/numberplan.php</sourceUrl>
24548         <sourceUrl>http://www.global.aq</sourceUrl>
24549         <!-- Maritime Communications Partner (MCP) +88232 -->
24550         <sourceUrl>http://www.itu.int/oth/T02020000F4/en</sourceUrl>
24551         <!-- Oration Technologies +88237 -->
24552         <sourceUrl>http://www.itu.int/oth/T02020000A0/en</sourceUrl>
24553         <!-- Telespazio S.p.A. +88213 -->
24554         <sourceUrl>http://www.itu.int/oth/T02020000CC/en</sourceUrl>
24555         <!-- Thuraya +88216 -->
24556         <sourceUrl>http://www.itu.int/oth/T02020000CF/en</sourceUrl>
24557       </references>
24558       <availableFormats>
24559         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
24560           <leadingDigits>3[23]</leadingDigits>
24561           <format>$1 $2 $3</format>
24562         </numberFormat>
24563         <numberFormat pattern="(\d{2})(\d{5})">
24564           <leadingDigits>
24565             16|
24566             342
24567           </leadingDigits>
24568           <format>$1 $2</format>
24569         </numberFormat>
24570         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
24571           <leadingDigits>34[57]</leadingDigits>
24572           <format>$1 $2 $3</format>
24573         </numberFormat>
24574         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
24575           <leadingDigits>348</leadingDigits>
24576           <format>$1 $2 $3</format>
24577         </numberFormat>
24578         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
24579           <leadingDigits>1</leadingDigits>
24580           <format>$1 $2 $3</format>
24581         </numberFormat>
24582         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
24583           <leadingDigits>16</leadingDigits>
24584           <format>$1 $2 $3</format>
24585         </numberFormat>
24586         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
24587           <leadingDigits>16</leadingDigits>
24588           <format>$1 $2 $3</format>
24589         </numberFormat>
24590       </availableFormats>
24591       <generalDesc>
24592         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
24593         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24594         <exampleNumber>3451234567</exampleNumber>
24595       </generalDesc>
24596       <fixedLine>
24597         <nationalNumberPattern>NA</nationalNumberPattern>
24598         <possibleNumberPattern>NA</possibleNumberPattern>
24599       </fixedLine>
24600       <mobile>
24601         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
24602              Oration based on numbers found online. -->
24603         <nationalNumberPattern>
24604           3(?:
24605             2\d{3}|
24606             37\d{2}|
24607             4(?:
24608               2|
24609               7\d{3}
24610             )
24611           )\d{4}
24612         </nationalNumberPattern>
24613         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
24614       </mobile>
24615       <voip>
24616         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
24617         <nationalNumberPattern>
24618           1(?:
24619             3(?:
24620               0[0347]|
24621               [13][0139]|
24622               2[035]|
24623               4[013568]|
24624               6[0459]|
24625               7[06]|
24626               8[15678]|
24627               9[0689]
24628             )\d{4}|
24629             6\d{5,10}
24630           )|
24631           345\d{7}
24632         </nationalNumberPattern>
24633         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24634       </voip>
24635       <voicemail>
24636         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
24637         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24638       </voicemail>
24639     </territory>
24640
24641     <territory id="001" countryCode="883">
24642       <references>
24643         <!-- bandwidth.com -->
24644         <sourceUrl>http://www.itu.int/oth/T02020000FB/en</sourceUrl>
24645         <!-- SipMe -->
24646         <sourceUrl>http://www.itu.int/oth/T02020000FC/en</sourceUrl>
24647         <!-- Voxbone -->
24648         <sourceUrl>http://www.itu.int/oth/T02020000F3/en</sourceUrl>
24649       </references>
24650       <availableFormats>
24651         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24652           <leadingDigits>510</leadingDigits>
24653           <format>$1 $2 $3</format>
24654         </numberFormat>
24655         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
24656           <leadingDigits>510</leadingDigits>
24657           <format>$1 $2 $3 $4</format>
24658         </numberFormat>
24659         <!-- When only 8 digits follow the "area code" formatting as XXXX XXXX
24660              seems preferred (see Bandwidth.com and SipMe). -->
24661         <numberFormat pattern="(\d{4})(\d{4})(\d{4})">
24662           <leadingDigits>51[13]</leadingDigits>
24663           <format>$1 $2 $3</format>
24664         </numberFormat>
24665       </availableFormats>
24666       <generalDesc>
24667         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
24668              costs can be found online, so we don't include them here for now. -->
24669         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
24670         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
24671         <exampleNumber>510012345</exampleNumber>
24672       </generalDesc>
24673       <fixedLine>
24674         <nationalNumberPattern>NA</nationalNumberPattern>
24675         <possibleNumberPattern>NA</possibleNumberPattern>
24676       </fixedLine>
24677       <mobile>
24678         <nationalNumberPattern>NA</nationalNumberPattern>
24679         <possibleNumberPattern>NA</possibleNumberPattern>
24680       </mobile>
24681       <voip>
24682         <nationalNumberPattern>
24683           51(?:
24684             00\d{5}(?:\d{3})?|
24685             [13]0\d{8}
24686           )
24687         </nationalNumberPattern>
24688       </voip>
24689     </territory>
24690
24691     <!-- United Nations- OCHA -->
24692     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
24693          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
24694          the tariff of a national call. -->
24695     <territory id="001" countryCode="888" leadingZeroPossible="true">
24696       <references>
24697         <sourceUrl>http://www.itu.int/oth/T02020000FA/en</sourceUrl>
24698       </references>
24699       <availableFormats>
24700         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
24701           <format>$1 $2 $3</format>
24702         </numberFormat>
24703       </availableFormats>
24704       <generalDesc>
24705         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24706         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24707         <exampleNumber>12345678901</exampleNumber>
24708       </generalDesc>
24709       <fixedLine>
24710         <nationalNumberPattern>NA</nationalNumberPattern>
24711         <possibleNumberPattern>NA</possibleNumberPattern>
24712       </fixedLine>
24713       <mobile>
24714         <nationalNumberPattern>NA</nationalNumberPattern>
24715         <possibleNumberPattern>NA</possibleNumberPattern>
24716       </mobile>
24717       <uan>
24718         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24719       </uan>
24720     </territory>
24721
24722     <!-- Universal International Premium Rate Number -->
24723     <territory id="001" countryCode="979" leadingZeroPossible="true">
24724       <references>
24725         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24726       </references>
24727       <availableFormats>
24728         <numberFormat pattern="(\d)(\d{4})(\d{4})">
24729           <format>$1 $2 $3</format>
24730         </numberFormat>
24731       </availableFormats>
24732       <generalDesc>
24733         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24734         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24735         <exampleNumber>123456789</exampleNumber>
24736       </generalDesc>
24737       <fixedLine>
24738         <nationalNumberPattern>NA</nationalNumberPattern>
24739         <possibleNumberPattern>NA</possibleNumberPattern>
24740       </fixedLine>
24741       <mobile>
24742         <nationalNumberPattern>NA</nationalNumberPattern>
24743         <possibleNumberPattern>NA</possibleNumberPattern>
24744       </mobile>
24745       <premiumRate>
24746         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24747       </premiumRate>
24748     </territory>
24749   </territories>
24750 </phoneNumberMetadata>