update libphonenumber issue links from Google Code to github
[platform/upstream/libphonenumber.git] / resources / PhoneNumberMetadata.xml
1 <!-- Copyright (C) 2009 The Libphonenumber Authors
2
3      Licensed under the Apache License, Version 2.0 (the "License");
4      you may not use this file except in compliance with the License.
5      You may obtain a copy of the License at
6
7      http://www.apache.org/licenses/LICENSE-2.0
8
9      Unless required by applicable law or agreed to in writing, software
10      distributed under the License is distributed on an "AS IS" BASIS,
11      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12      See the License for the specific language governing permissions and
13      limitations under the License.
14
15      @author: Shaopeng Jia
16
17      Metadata on Phone Number Plan and formatting rules
18      Note: Territories are in alphabetical order by their IDs, which are based on ISO 3166-1
19            two-letter country codes (or are set to "001" for non-geographical entities, which
20            represents "World" in the UN M.49 standard). The country names in the comments are the
21            official short names in English according to ISO 3166-1.
22
23      For more information on what each element represents, see
24      resources/phonemetadata.proto
25
26      Note that if you want to add validation metadata, the generalDesc nationalNumberPattern and
27      possibleNumberPattern must be provided. If this is missing, then the country will be
28      considered to have no more specific phone-number type metadata (fixedLine, mobile etc) and
29      hence only basic validation rules (numbers should be between 3 and 15 digits long) will be
30      applied.
31
32      If adding an element for a non-geographical entity, please add an example number element to the
33      general description.
34
35      Country code, international and national prefix information main source:
36      http://www.itu.int/pub/T-SP-E.164C-2011
37 -->
38
39 <!DOCTYPE phoneNumberMetadata [
40     <!ELEMENT phoneNumberMetadata (territories)>
41     <!ELEMENT territories (territory+)>
42     <!ELEMENT territory (references?, availableFormats?, generalDesc?, noInternationalDialling?,
43         areaCodeOptional?, fixedLine?, mobile?, pager?, tollFree?, premiumRate?,
44         sharedCost?, personalNumber?, voip?, uan?, voicemail?)>
45     <!ELEMENT references (sourceUrl+)>
46     <!ELEMENT generalDesc (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
47     <!ELEMENT noInternationalDialling (nationalNumberPattern, possibleNumberPattern?,
48         exampleNumber?)>
49     <!ELEMENT areaCodeOptional (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
50     <!ELEMENT fixedLine (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
51     <!ELEMENT mobile (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
52     <!ELEMENT pager (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
53     <!ELEMENT tollFree (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
54     <!ELEMENT premiumRate (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
55     <!ELEMENT sharedCost (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
56     <!ELEMENT personalNumber (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
57     <!ELEMENT voip (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
58     <!ELEMENT uan (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
59     <!ELEMENT voicemail (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
60     <!ELEMENT sourceUrl (#PCDATA)>
61     <!ELEMENT availableFormats (numberFormat+)>
62     <!ELEMENT nationalNumberPattern (#PCDATA)>
63     <!ELEMENT possibleNumberPattern (#PCDATA)>
64     <!ELEMENT exampleNumber (#PCDATA)>
65     <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)>
66     <!ELEMENT format (#PCDATA)>
67     <!ELEMENT intlFormat (#PCDATA)>
68     <!ELEMENT leadingDigits (#PCDATA)>
69
70     <!ATTLIST territory id CDATA #REQUIRED>
71     <!ATTLIST territory countryCode CDATA #REQUIRED>
72     <!ATTLIST territory mainCountryForCode (true) #IMPLIED>
73     <!ATTLIST territory leadingDigits CDATA #IMPLIED>
74     <!ATTLIST territory preferredInternationalPrefix CDATA #IMPLIED>
75     <!ATTLIST territory internationalPrefix CDATA #IMPLIED>
76     <!ATTLIST territory nationalPrefix CDATA #IMPLIED>
77     <!ATTLIST territory nationalPrefixForParsing CDATA #IMPLIED>
78     <!ATTLIST territory nationalPrefixTransformRule CDATA #IMPLIED>
79     <!ATTLIST territory preferredExtnPrefix CDATA #IMPLIED>
80     <!ATTLIST territory nationalPrefixFormattingRule CDATA #IMPLIED>
81     <!ATTLIST territory nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
82     <!ATTLIST territory leadingZeroPossible (true) #IMPLIED>
83     <!ATTLIST territory carrierCodeFormattingRule CDATA #IMPLIED>
84     <!ATTLIST territory mobileNumberPortableRegion (true) #IMPLIED>
85     <!ATTLIST numberFormat nationalPrefixFormattingRule CDATA #IMPLIED>
86     <!ATTLIST numberFormat nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
87     <!ATTLIST numberFormat carrierCodeFormattingRule CDATA #IMPLIED>
88     <!ATTLIST numberFormat pattern CDATA #REQUIRED>
89 ]>
90
91 <phoneNumberMetadata>
92   <territories>
93     <!-- Ascension Island -->
94     <territory id="AC" countryCode="247" internationalPrefix="00">
95       <references>
96         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
97       </references>
98       <!-- Formatted as a block. -->
99       <generalDesc>
100         <nationalNumberPattern>[2-7]\d{3,5}</nationalNumberPattern>
101         <possibleNumberPattern>\d{4,6}</possibleNumberPattern>
102       </generalDesc>
103       <fixedLine>
104         <nationalNumberPattern>
105           (?:
106             [267]\d|
107             3[0-5]|
108             4[4-69]
109           )\d{2}
110         </nationalNumberPattern>
111         <possibleNumberPattern>\d{4}</possibleNumberPattern>
112         <exampleNumber>6889</exampleNumber>
113       </fixedLine>
114       <mobile>
115         <nationalNumberPattern>5\d{5}</nationalNumberPattern>
116         <possibleNumberPattern>\d{6}</possibleNumberPattern>
117         <exampleNumber>501234</exampleNumber>
118       </mobile>
119     </territory>
120
121     <!-- Andorra -->
122     <territory id="AD" countryCode="376" internationalPrefix="00">
123       <references>
124         <sourceUrl>http://www.itu.int/oth/T0202000005/en</sourceUrl>
125       </references>
126       <availableFormats>
127         <numberFormat pattern="(\d{3})(\d{3})">
128           <leadingDigits>[346-9]</leadingDigits>
129           <format>$1 $2</format>
130         </numberFormat>
131         <numberFormat pattern="(180[02])(\d{4})">
132           <leadingDigits>1</leadingDigits>
133           <format>$1 $2</format>
134         </numberFormat>
135       </availableFormats>
136       <generalDesc>
137         <nationalNumberPattern>
138           (?:
139             [346-9]|
140             180
141           )\d{5}
142         </nationalNumberPattern>
143         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
144       </generalDesc>
145       <fixedLine>
146         <nationalNumberPattern>[78]\d{5}</nationalNumberPattern>
147         <possibleNumberPattern>\d{6}</possibleNumberPattern>
148         <exampleNumber>712345</exampleNumber>
149       </fixedLine>
150       <mobile>
151         <nationalNumberPattern>[346]\d{5}</nationalNumberPattern>
152         <possibleNumberPattern>\d{6}</possibleNumberPattern>
153         <exampleNumber>312345</exampleNumber>
154       </mobile>
155       <tollFree>
156         <!-- Note that the definitions of 1800 and 1802 numbers differ in the plan and on the
157              Andorran http://www.sta.ad website, but we consider both to be freephone here. -->
158         <nationalNumberPattern>180[02]\d{4}</nationalNumberPattern>
159         <possibleNumberPattern>\d{8}</possibleNumberPattern>
160         <exampleNumber>18001234</exampleNumber>
161       </tollFree>
162       <!-- The national numbering plan says that numbers beginning with 9 are reserved for special
163            services, so we assume they are premium rate here, although we cannot find examples
164            online. -->
165       <premiumRate>
166         <nationalNumberPattern>9\d{5}</nationalNumberPattern>
167         <possibleNumberPattern>\d{6}</possibleNumberPattern>
168         <exampleNumber>912345</exampleNumber>
169       </premiumRate>
170     </territory>
171
172     <!-- United Arab Emirates -->
173     <territory id="AE" countryCode="971" internationalPrefix="00"
174                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
175       <references>
176         <sourceUrl>http://www.itu.int/oth/T02020000DC/en</sourceUrl>
177       </references>
178       <availableFormats>
179         <numberFormat pattern="([2-4679])(\d{3})(\d{4})">
180           <leadingDigits>[2-4679][2-8]</leadingDigits>
181           <format>$1 $2 $3</format>
182         </numberFormat>
183         <numberFormat pattern="(5[0256])(\d{3})(\d{4})">
184           <leadingDigits>5</leadingDigits>
185           <format>$1 $2 $3</format>
186         </numberFormat>
187         <numberFormat pattern="([479]00)(\d)(\d{5})" nationalPrefixFormattingRule="$FG">
188           <leadingDigits>[479]0</leadingDigits>
189           <format>$1 $2 $3</format>
190         </numberFormat>
191         <numberFormat pattern="([68]00)(\d{2,9})" nationalPrefixFormattingRule="$FG">
192           <leadingDigits>
193             60|
194             8
195           </leadingDigits>
196           <format>$1 $2</format>
197         </numberFormat>
198       </availableFormats>
199       <generalDesc>
200         <nationalNumberPattern>
201           [2-79]\d{7,8}|
202           800\d{2,9}
203         </nationalNumberPattern>
204         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
205       </generalDesc>
206       <fixedLine>
207         <nationalNumberPattern>[2-4679][2-8]\d{6}</nationalNumberPattern>
208         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
209         <exampleNumber>22345678</exampleNumber>
210       </fixedLine>
211       <mobile>
212         <nationalNumberPattern>5[0256]\d{7}</nationalNumberPattern>
213         <possibleNumberPattern>\d{9}</possibleNumberPattern>
214         <exampleNumber>501234567</exampleNumber>
215       </mobile>
216       <tollFree>
217         <nationalNumberPattern>
218           400\d{6}|
219           800\d{2,9}
220         </nationalNumberPattern>
221         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
222         <exampleNumber>800123456</exampleNumber>
223       </tollFree>
224       <premiumRate>
225         <nationalNumberPattern>900[02]\d{5}</nationalNumberPattern>
226         <possibleNumberPattern>\d{9}</possibleNumberPattern>
227         <exampleNumber>900234567</exampleNumber>
228       </premiumRate>
229       <sharedCost>
230         <nationalNumberPattern>700[05]\d{5}</nationalNumberPattern>
231         <possibleNumberPattern>\d{9}</possibleNumberPattern>
232         <exampleNumber>700012345</exampleNumber>
233       </sharedCost>
234       <uan>
235         <nationalNumberPattern>600[25]\d{5}</nationalNumberPattern>
236         <possibleNumberPattern>\d{9}</possibleNumberPattern>
237         <exampleNumber>600212345</exampleNumber>
238       </uan>
239     </territory>
240
241     <!-- Afghanistan -->
242     <territory id="AF" countryCode="93" internationalPrefix="00"
243                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
244       <references>
245         <sourceUrl>http://www.itu.int/oth/T0202000001/en</sourceUrl>
246       </references>
247       <availableFormats>
248         <!-- Formatting based primarily on ITU document. -->
249         <numberFormat pattern="([2-7]\d)(\d{3})(\d{4})">
250           <leadingDigits>
251             [2-6]|
252             7[013-9]
253           </leadingDigits>
254           <format>$1 $2 $3</format>
255         </numberFormat>
256         <!-- Formatting 729 numbers differently based on numbers seen online. -->
257         <numberFormat pattern="(729)(\d{3})(\d{3})">
258           <leadingDigits>729</leadingDigits>
259           <format>$1 $2 $3</format>
260         </numberFormat>
261       </availableFormats>
262       <generalDesc>
263         <nationalNumberPattern>[2-7]\d{8}</nationalNumberPattern>
264         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
265       </generalDesc>
266       <fixedLine>
267         <nationalNumberPattern>
268           (?:
269             [25][0-8]|
270             [34][0-4]|
271             6[0-5]
272           )[2-9]\d{6}
273         </nationalNumberPattern>
274         <exampleNumber>234567890</exampleNumber>
275       </fixedLine>
276       <mobile>
277         <nationalNumberPattern>
278           7(?:
279             [05-9]\d{7}|
280             29\d{6}
281           )
282         </nationalNumberPattern>
283         <possibleNumberPattern>\d{9}</possibleNumberPattern>
284         <exampleNumber>701234567</exampleNumber>
285       </mobile>
286     </territory>
287
288     <!-- Antigua and Barbuda -->
289     <territory id="AG" countryCode="1" leadingDigits="268" nationalPrefix="1"
290                internationalPrefix="011">
291       <references>
292         <sourceUrl>http://www.itu.int/oth/T0202000008/en</sourceUrl>
293       </references>
294       <generalDesc>
295         <!-- NANPA country - uses US formatting rules -->
296         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
297         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
298       </generalDesc>
299       <fixedLine>
300         <!-- 268 468 is not in the plan, but has been added after numbers with this prefix have been
301              found in online searches. -->
302         <nationalNumberPattern>
303           268(?:
304             4(?:
305               6[0-38]|
306               84
307             )|
308             56[0-2]
309           )\d{4}
310         </nationalNumberPattern>
311         <exampleNumber>2684601234</exampleNumber>
312       </fixedLine>
313       <mobile>
314         <!-- 268 776/778/779 are not in the plan, but have been added after numbers with these
315              prefixes have been found in online searches. Same for 268 780/782/784/786. -->
316         <nationalNumberPattern>
317           268(?:
318             464|
319             7(?:
320               2[0-9]|
321               64|
322               7[0-689]|
323               8[02-68]
324             )
325           )\d{4}
326         </nationalNumberPattern>
327         <possibleNumberPattern>\d{10}</possibleNumberPattern>
328         <exampleNumber>2684641234</exampleNumber>
329       </mobile>
330       <pager>
331         <nationalNumberPattern>26840[69]\d{4}</nationalNumberPattern>
332         <possibleNumberPattern>\d{10}</possibleNumberPattern>
333         <exampleNumber>2684061234</exampleNumber>
334       </pager>
335       <tollFree>
336         <nationalNumberPattern>
337           8(?:
338             00|
339             44|
340             55|
341             66|
342             77|
343             88
344           )[2-9]\d{6}
345         </nationalNumberPattern>
346         <possibleNumberPattern>\d{10}</possibleNumberPattern>
347         <exampleNumber>8002123456</exampleNumber>
348       </tollFree>
349       <premiumRate>
350         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
351         <possibleNumberPattern>\d{10}</possibleNumberPattern>
352         <exampleNumber>9002123456</exampleNumber>
353       </premiumRate>
354       <personalNumber>
355         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
356         <nationalNumberPattern>
357           5(?:
358             00|
359             33|
360             44|
361             66|
362             77
363           )[2-9]\d{6}
364         </nationalNumberPattern>
365         <possibleNumberPattern>\d{10}</possibleNumberPattern>
366         <exampleNumber>5002345678</exampleNumber>
367       </personalNumber>
368       <voip>
369         <!-- This is included as Centrex in the plan. -->
370         <nationalNumberPattern>26848[01]\d{4}</nationalNumberPattern>
371         <possibleNumberPattern>\d{10}</possibleNumberPattern>
372         <exampleNumber>2684801234</exampleNumber>
373       </voip>
374     </territory>
375
376     <!-- Anguilla -->
377     <territory id="AI" countryCode="1" leadingDigits="264" nationalPrefix="1"
378                internationalPrefix="011">
379       <references>
380         <sourceUrl>http://www.itu.int/oth/T0202000007/en</sourceUrl>
381       </references>
382       <generalDesc>
383         <!-- NANPA country - uses US formatting rules -->
384         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
385         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
386       </generalDesc>
387       <fixedLine>
388         <nationalNumberPattern>
389           2644(?:
390             6[12]|
391             9[78]
392           )\d{4}
393         </nationalNumberPattern>
394         <exampleNumber>2644612345</exampleNumber>
395       </fixedLine>
396       <mobile>
397         <nationalNumberPattern>
398           264(?:
399             235|
400             476|
401             5(?:
402               3[6-9]|
403               8[1-4]
404             )|
405             7(?:
406               29|
407               72
408             )
409           )\d{4}
410         </nationalNumberPattern>
411         <possibleNumberPattern>\d{10}</possibleNumberPattern>
412         <exampleNumber>2642351234</exampleNumber>
413       </mobile>
414       <tollFree>
415         <nationalNumberPattern>
416           8(?:
417             00|
418             44|
419             55|
420             66|
421             77|
422             88
423           )[2-9]\d{6}
424         </nationalNumberPattern>
425         <possibleNumberPattern>\d{10}</possibleNumberPattern>
426         <exampleNumber>8002123456</exampleNumber>
427       </tollFree>
428       <premiumRate>
429         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
430         <possibleNumberPattern>\d{10}</possibleNumberPattern>
431         <exampleNumber>9002123456</exampleNumber>
432       </premiumRate>
433       <personalNumber>
434         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
435         <nationalNumberPattern>
436           5(?:
437             00|
438             33|
439             44|
440             66|
441             77
442           )[2-9]\d{6}
443         </nationalNumberPattern>
444         <possibleNumberPattern>\d{10}</possibleNumberPattern>
445         <exampleNumber>5002345678</exampleNumber>
446       </personalNumber>
447     </territory>
448
449     <!-- Albania -->
450     <territory id="AL" countryCode="355" internationalPrefix="00"
451                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
452                mobileNumberPortableRegion="true">
453       <references>
454         <sourceUrl>http://www.itu.int/oth/T0202000002/en</sourceUrl>
455       </references>
456       <availableFormats>
457         <!-- Formats mostly follow http://tirana.usembassy.gov/list_of_doctors.html -->
458         <numberFormat pattern="(4)(\d{3})(\d{4})">
459           <leadingDigits>4[0-6]</leadingDigits>
460           <format>$1 $2 $3</format>
461         </numberFormat>
462         <numberFormat pattern="(6[6-9])(\d{3})(\d{4})">
463           <leadingDigits>6</leadingDigits>
464           <format>$1 $2 $3</format>
465         </numberFormat>
466         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
467           <leadingDigits>
468             [2358][2-5]|
469             4[7-9]
470           </leadingDigits>
471           <format>$1 $2 $3</format>
472         </numberFormat>
473         <numberFormat pattern="(\d{3})(\d{3,5})">
474           <leadingDigits>
475             [235][16-9]|
476             8[016-9]|
477             [79]
478           </leadingDigits>
479           <format>$1 $2</format>
480         </numberFormat>
481       </availableFormats>
482       <generalDesc>
483         <nationalNumberPattern>
484           [2-57]\d{7}|
485           6\d{8}|
486           8\d{5,7}|
487           9\d{5}
488         </nationalNumberPattern>
489         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
490       </generalDesc>
491       <fixedLine>
492         <nationalNumberPattern>
493           (?:
494             2(?:
495               [168][1-9]|
496               [247]\d|
497               9[1-7]
498             )|
499             3(?:
500               1[1-3]|
501               [2-6]\d|
502               [79][1-8]|
503               8[1-9]
504             )|
505             4\d{2}|
506             5(?:
507               1[1-4]|
508               [2-578]\d|
509               6[1-5]|
510               9[1-7]
511             )|
512             8(?:
513               [19][1-5]|
514               [2-6]\d|
515               [78][1-7]
516             )
517           )\d{5}
518         </nationalNumberPattern>
519         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
520         <exampleNumber>22345678</exampleNumber>
521       </fixedLine>
522       <mobile>
523         <nationalNumberPattern>6[6-9]\d{7}</nationalNumberPattern>
524         <possibleNumberPattern>\d{9}</possibleNumberPattern>
525         <exampleNumber>661234567</exampleNumber>
526       </mobile>
527       <tollFree>
528         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
529         <possibleNumberPattern>\d{7}</possibleNumberPattern>
530         <exampleNumber>8001234</exampleNumber>
531       </tollFree>
532       <premiumRate>
533         <!-- It is named "Shared Revenue Services" in the plan, but as there is a separate "Shared
534              Cost Services", it is highly likely these numbers are premium rate numbers. No
535              information/example is found in the Internet. -->
536         <nationalNumberPattern>900\d{3}</nationalNumberPattern>
537         <possibleNumberPattern>\d{6}</possibleNumberPattern>
538         <exampleNumber>900123</exampleNumber>
539       </premiumRate>
540       <sharedCost>
541         <nationalNumberPattern>808\d{3}</nationalNumberPattern>
542         <possibleNumberPattern>\d{6}</possibleNumberPattern>
543         <exampleNumber>808123</exampleNumber>
544       </sharedCost>
545       <personalNumber>
546         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
547         <possibleNumberPattern>\d{8}</possibleNumberPattern>
548         <exampleNumber>70012345</exampleNumber>
549       </personalNumber>
550     </territory>
551
552     <!-- Armenia -->
553     <!-- We think the national dialling prefix is 0 - it seems this was a change in 2005 (or 2008)
554          along with the new city codes. However, their official document makes no mention of it,
555          websites disagree, and we are not sure if the change has actually been made. -->
556     <territory id="AM" countryCode="374" internationalPrefix="00"
557                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
558                mobileNumberPortableRegion="true" >
559       <references>
560         <sourceUrl>http://www.itu.int/oth/T020200000A/en</sourceUrl>
561         <sourceUrl>http://en.wikipedia.org/wiki/%2B374</sourceUrl>
562         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nagorno-Karabakh_Republic</sourceUrl>
563       </references>
564       <availableFormats>
565         <numberFormat pattern="(\d{2})(\d{6})">
566           <leadingDigits>
567             1|
568             47
569           </leadingDigits>
570           <format>$1 $2</format>
571         </numberFormat>
572         <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
573           <leadingDigits>
574             4[139]|
575             [5-7]|
576             9[1-9]
577           </leadingDigits>
578           <format>$1 $2</format>
579         </numberFormat>
580         <numberFormat pattern="(\d{3})(\d{5})">
581           <leadingDigits>[23]</leadingDigits>
582           <format>$1 $2</format>
583         </numberFormat>
584         <numberFormat pattern="(\d{3})(\d{2})(\d{3})" nationalPrefixFormattingRule="$NP $FG">
585           <leadingDigits>
586             8|
587             90
588           </leadingDigits>
589           <format>$1 $2 $3</format>
590         </numberFormat>
591       </availableFormats>
592       <generalDesc>
593         <nationalNumberPattern>[1-9]\d{7}</nationalNumberPattern>
594         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
595       </generalDesc>
596       <fixedLine>
597         <!-- Includes telephone numbers in Nagorno-Karabakh Republic, physically located inside
598              Azerbaijan, which use prefix 47. -->
599         <nationalNumberPattern>
600           (?:
601             1[01]\d|
602             2(?:
603               2[2-46]|
604               3[1-8]|
605               4[2-69]|
606               5[2-7]|
607               6[1-9]|
608               8[1-7]
609             )|
610             3[12]2|
611             47\d
612           )\d{5}
613         </nationalNumberPattern>
614         <exampleNumber>10123456</exampleNumber>
615       </fixedLine>
616       <mobile>
617         <!-- Part of the range 97 is used by Nagorno-Karabakh Republic. -->
618         <nationalNumberPattern>
619           (?:
620             4[139]|
621             55|
622             77|
623             9[1-9]
624           )\d{6}
625         </nationalNumberPattern>
626         <possibleNumberPattern>\d{8}</possibleNumberPattern>
627         <exampleNumber>77123456</exampleNumber>
628       </mobile>
629       <tollFree>
630         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
631         <possibleNumberPattern>\d{8}</possibleNumberPattern>
632         <exampleNumber>80012345</exampleNumber>
633       </tollFree>
634       <premiumRate>
635         <nationalNumberPattern>90[016]\d{5}</nationalNumberPattern>
636         <possibleNumberPattern>\d{8}</possibleNumberPattern>
637         <exampleNumber>90012345</exampleNumber>
638       </premiumRate>
639       <sharedCost>
640         <nationalNumberPattern>80[1-4]\d{5}</nationalNumberPattern>
641         <possibleNumberPattern>\d{8}</possibleNumberPattern>
642         <exampleNumber>80112345</exampleNumber>
643       </sharedCost>
644       <voip>
645         <nationalNumberPattern>60[2-6]\d{5}</nationalNumberPattern>
646         <possibleNumberPattern>\d{8}</possibleNumberPattern>
647         <exampleNumber>60271234</exampleNumber>
648       </voip>
649     </territory>
650
651     <!-- Angola -->
652     <territory id="AO" countryCode="244" internationalPrefix="00">
653       <references>
654         <sourceUrl>http://www.itu.int/oth/T0202000006/en</sourceUrl>
655       </references>
656       <availableFormats>
657         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
658           <format>$1 $2 $3</format>
659         </numberFormat>
660       </availableFormats>
661       <generalDesc>
662         <nationalNumberPattern>[29]\d{8}</nationalNumberPattern>
663         <possibleNumberPattern>\d{9}</possibleNumberPattern>
664       </generalDesc>
665       <fixedLine>
666         <nationalNumberPattern>
667           2\d(?:
668             [26-9]\d|
669             \d[26-9]
670           )\d{5}
671         </nationalNumberPattern>
672         <exampleNumber>222123456</exampleNumber>
673       </fixedLine>
674       <mobile>
675         <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel
676              apparently launched the prefix 94 on 25th April 2012, and Movicel has 99. -->
677         <nationalNumberPattern>9[1-49]\d{7}</nationalNumberPattern>
678         <exampleNumber>923123456</exampleNumber>
679       </mobile>
680     </territory>
681
682     <!-- Argentina -->
683     <!-- The national prefix for parsing here consists of a 0 (optional), followed by the area code
684          (which is captured, so that it can be retained), followed by 15, which is the mobile token,
685          which will be stripped if present. We expect the following combinations: 0AC15 and AC15
686          (where the 0 and 15 will be stripped, and it will be transformed into 9AC), 0, and 15 (in
687          the latter two cases we just strip the 0 or 15 as appropriate and leave the number as is.)
688          -->
689     <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
690        nationalPrefixForParsing="
691          0?(?:
692            (11|
693             2(?:
694               2(?:
695                 02?|
696                 [13]|
697                 2[13-79]|
698                 4[1-6]|
699                 5[2457]|
700                 6[124-8]|
701                 7[1-4]|
702                 8[13-6]|
703                 9[1267]
704               )|
705               3(?:
706                 02?|
707                 1[467]|
708                 2[03-6]|
709                 3[13-8]|
710                 [49][2-6]|
711                 5[2-8]|
712                 [67]
713               )|
714               4(?:
715                 7[3-578]|
716                 9
717               )|
718               6(?:
719                 [0136]|
720                 2[24-6]|
721                 4[6-8]?|
722                 5[15-8]
723               )|
724               80|
725               9(?:
726                 0[1-3]|
727                 [19]|
728                 2\d|
729                 3[1-6]|
730                 4[02568]?|
731                 5[2-4]|
732                 6[2-46]|
733                 72?|
734                 8[23]?
735               )
736            )|
737            3(?:
738              3(?:
739                2[79]|
740                6|
741                8[2578]
742              )|
743              4(?:
744                0[124-9]|
745                [12]|
746                3[5-8]?|
747                4[24-7]|
748                5[4-68]?|
749                6[02-9]|
750                7[126]|
751                8[2379]?|
752                9[1-36-8]
753              )|
754              5(?:
755                1|
756                2[1245]|
757                3[237]?|
758                4[1-46-9]|
759                6[2-4]|
760                7[1-6]|
761                8[2-5]?
762              )|
763              6[24]|
764              7(?:
765                1[1568]|
766                2[15]|
767                3[145]|
768                4[13]|
769                5[14-8]|
770                [069]|
771                7[2-57]|
772                8[126]
773              )|
774              8(?:
775                [01]|
776                2[15-7]|
777                3[2578]?|
778                4[13-6]|
779                5[4-8]?|
780                6[1-357-9]|
781                7[36-8]?|
782                8[5-8]?|
783                9[124]
784              )
785            )
786          )?15
787        )?"
788        nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG"
789        mobileNumberPortableRegion="true">
790       <references>
791         <sourceUrl>http://www.itu.int/oth/T0202000009/en</sourceUrl>
792         <!-- On the following link, click on Indicativos Interurbanos to access detailed
793              information. -->
794         <sourceUrl>http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp</sourceUrl>
795         <sourceUrl>http://en.wikipedia.org/wiki/+54</sourceUrl>
796       </references>
797       <availableFormats>
798         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
799           <leadingDigits>[68]</leadingDigits>
800           <format>$1-$2-$3</format>
801         </numberFormat>
802         <!-- Format local numbers in two groups. The leading digits are 2-9 since the ITU document
803              says that the digit zero and one will not be present at the start of the subscriber
804              number (which starts with an "Exchange characteristic"). -->
805         <numberFormat pattern="(\d{2})(\d{4})" nationalPrefixFormattingRule="$FG">
806           <leadingDigits>[2-9]</leadingDigits>
807           <format>$1-$2</format>
808           <intlFormat>NA</intlFormat>
809         </numberFormat>
810         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
811           <leadingDigits>[2-9]</leadingDigits>
812           <format>$1-$2</format>
813           <intlFormat>NA</intlFormat>
814         </numberFormat>
815         <numberFormat pattern="(\d{4})(\d{4})" nationalPrefixFormattingRule="$FG">
816           <leadingDigits>[2-9]</leadingDigits>
817           <format>$1-$2</format>
818           <intlFormat>NA</intlFormat>
819         </numberFormat>
820         <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
821           <leadingDigits>911</leadingDigits>
822           <format>$2 15-$3-$4</format>
823           <intlFormat>$1 $2 $3-$4</intlFormat>
824         </numberFormat>
825         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
826           <!-- Some 4-digit area codes actually are caught by this rule. Preference is given however
827                to the 3-digit area codes, since they are considerably larger communities. -->
828           <leadingDigits>
829             9(?:
830               2[234689]|
831               3[3-8]
832             )
833           </leadingDigits>
834           <leadingDigits>
835             9(?:
836               2(?:
837                 2[013]|
838                 3[067]|
839                 49|
840                 6[01346]|
841                 80|
842                 9[147-9]
843               )|
844               3(?:
845                 36|
846                 4[12358]|
847                 5[138]|
848                 6[24]|
849                 7[069]|
850                 8[013578]
851               )
852             )
853           </leadingDigits>
854           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948,
855                298[23], and several 38[3578]X four-digit area codes. -->
856           <leadingDigits>
857             9(?:
858               2(?:
859                 2[013]|
860                 3[067]|
861                 49|
862                 6[01346]|
863                 80|
864                 9(?:
865                   [179]|
866                   4[13479]|
867                   8[014-9]
868                 )
869               )|
870               3(?:
871                 36|
872                 4[12358]|
873                 5(?:
874                   [18]|
875                   3[014-689]
876                 )|
877                 6[24]|
878                 7[069]|
879                 8(?:
880                   [01]|
881                   3[013469]|
882                   5[0-39]|
883                   7[0-2459]|
884                   8[0-49]
885                 )
886               )
887             )
888           </leadingDigits>
889           <format>$2 15-$3-$4</format>
890           <intlFormat>$1 $2 $3-$4</intlFormat>
891         </numberFormat>
892         <!-- Both 4-3-3 and 4-2-4 have been seen online; we prefer the latter since it matches the
893              Argentinian ITU doc and wikipedia. -->
894         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
895           <leadingDigits>9[23]</leadingDigits>
896           <format>$2 15-$3-$4</format>
897           <intlFormat>$1 $2 $3-$4</intlFormat>
898         </numberFormat>
899         <numberFormat pattern="(11)(\d{4})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
900           <leadingDigits>1</leadingDigits>
901           <format>$1 $2-$3</format>
902         </numberFormat>
903         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
904         <numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
905           <leadingDigits>
906             2(?:
907               2[013]|
908               3[067]|
909               49|
910               6[01346]|
911               80|
912               9[147-9]
913             )|
914             3(?:
915               36|
916               4[12358]|
917               5[138]|
918               6[24]|
919               7[069]|
920               8[013578]
921             )
922           </leadingDigits>
923           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948,
924                298[23], and several 38[3578]X four-digit area codes. -->
925           <leadingDigits>
926             2(?:
927               2[013]|
928               3[067]|
929               49|
930               6[01346]|
931               80|
932               9(?:
933                 [179]|
934                 4[13479]|
935                 8[014-9]
936               )
937             )|
938             3(?:
939               36|
940               4[12358]|
941               5(?:
942                 [18]|
943                 3[0-689]
944               )|
945               6[24]|
946               7[069]|
947               8(?:
948                 [01]|
949                 3[013469]|
950                 5[0-39]|
951                 7[0-2459]|
952                 8[0-49]
953               )
954             )
955           </leadingDigits>
956           <format>$1 $2-$3</format>
957         </numberFormat>
958         <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
959           <leadingDigits>[23]</leadingDigits>
960           <format>$1 $2-$3</format>
961         </numberFormat>
962         <!-- Format short numbers as a block. -->
963         <numberFormat pattern="(\d{3})" nationalPrefixFormattingRule="$FG">
964           <leadingDigits>
965             1[012]|
966             911
967           </leadingDigits>
968           <format>$1</format>
969           <intlFormat>NA</intlFormat>
970         </numberFormat>
971       </availableFormats>
972       <generalDesc>
973         <!-- We restrict the second digit after 1 here so we can recognise and strip the 15 mobile
974            carrier prefix when we see it. -->
975         <nationalNumberPattern>
976           11\d{8}|
977           [2368]\d{9}|
978           9\d{10}
979         </nationalNumberPattern>
980         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
981       </generalDesc>
982       <noInternationalDialling>
983         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
984         <possibleNumberPattern>\d{10}</possibleNumberPattern>
985         <exampleNumber>8101234567</exampleNumber>
986       </noInternationalDialling>
987       <fixedLine>
988         <!-- Also covering fixed satellite service numbers (670). -->
989         <nationalNumberPattern>
990           11\d{8}|
991           (?:
992             2(?:
993               2(?:
994                 [013]\d|
995                 2[13-79]|
996                 4[1-6]|
997                 5[2457]|
998                 6[124-8]|
999                 7[1-4]|
1000                 8[13-6]|
1001                 9[1267]
1002               )|
1003               3(?:
1004                 1[467]|
1005                 2[03-6]|
1006                 3[13-8]|
1007                 [49][2-6]|
1008                 5[2-8]|
1009                 [067]\d
1010               )|
1011               4(?:
1012                 7[3-8]|
1013                 9\d
1014               )|
1015               6(?:
1016                 [01346]\d|
1017                 2[24-6]|
1018                 5[15-8]
1019               )|
1020               80\d|
1021               9(?:
1022                 [0124789]\d|
1023                 3[1-6]|
1024                 5[234]|
1025                 6[2-46]
1026               )
1027             )|
1028             3(?:
1029               3(?:
1030                 2[79]|
1031                 6\d|
1032                 8[2578]
1033               )|
1034               4(?:
1035                 [78]\d|
1036                 0[0124-9]|
1037                 [1-35]\d|
1038                 4[24-7]|
1039                 6[02-9]|
1040                 9[123678]
1041               )|
1042               5(?:
1043                 [138]\d|
1044                 2[1245]|
1045                 4[1-9]|
1046                 6[2-4]|
1047                 7[1-6]
1048               )|
1049               6[24]\d|
1050               7(?:
1051                 [0469]\d|
1052                 1[1568]|
1053                 2[013-9]|
1054                 3[145]|
1055                 5[14-8]|
1056                 7[2-57]|
1057                 8[0-24-9]
1058               )|
1059               8(?:
1060                 [013578]\d|
1061                 2[15-7]|
1062                 4[13-6]|
1063                 6[1-357-9]|
1064                 9[124]
1065               )
1066             )|
1067             670\d
1068           )\d{6}
1069         </nationalNumberPattern>
1070         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1071         <exampleNumber>1123456789</exampleNumber>
1072       </fixedLine>
1073       <mobile>
1074         <!-- Also covers mobile satellite services (675 numbers). -->
1075         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
1076              area code is in the range 2-9. The four-digit area-code checking is done in detail if
1077              we attempt to strip the caller-pays token (15) from the number. -->
1078         <nationalNumberPattern>
1079           675\d{7}|
1080           9(?:
1081             11[2-9]\d{7}|
1082             (?:
1083               2(?:
1084                 2[013]|
1085                 3[067]|
1086                 49|
1087                 6[01346]|
1088                 80|
1089                 9[147-9]
1090               )|
1091               3(?:
1092                 36|
1093                 4[12358]|
1094                 5[138]|
1095                 6[24]|
1096                 7[069]|
1097                 8[013578]
1098               )
1099             )[2-9]\d{6}|
1100             \d{4}[2-9]\d{5}
1101           )
1102         </nationalNumberPattern>
1103         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1104         <exampleNumber>91123456789</exampleNumber>
1105       </mobile>
1106       <tollFree>
1107         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
1108         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1109         <exampleNumber>8001234567</exampleNumber>
1110       </tollFree>
1111       <premiumRate>
1112         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
1113         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1114         <exampleNumber>6001234567</exampleNumber>
1115       </premiumRate>
1116       <uan>
1117         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1118         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1119         <exampleNumber>8101234567</exampleNumber>
1120       </uan>
1121     </territory>
1122
1123     <!-- American Samoa -->
1124     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
1125                internationalPrefix="011">
1126       <references>
1127         <sourceUrl>http://www.itu.int/oth/T0202000004/en</sourceUrl>
1128       </references>
1129       <generalDesc>
1130         <!-- NANPA country - uses US formatting rules -->
1131         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
1132         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1133       </generalDesc>
1134       <fixedLine>
1135         <nationalNumberPattern>
1136           6846(?:
1137             22|
1138             33|
1139             44|
1140             55|
1141             77|
1142             88|
1143             9[19]
1144           )\d{4}
1145         </nationalNumberPattern>
1146         <exampleNumber>6846221234</exampleNumber>
1147       </fixedLine>
1148       <mobile>
1149         <!-- Added 25[246], operated from Blue Sky. Added 731, 770, operated by ASTCA. -->
1150         <nationalNumberPattern>
1151           684(?:
1152             25[2468]|
1153             7(?:
1154               3[13]|
1155               70
1156             )
1157           )\d{4}
1158         </nationalNumberPattern>
1159         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1160         <exampleNumber>6847331234</exampleNumber>
1161       </mobile>
1162       <tollFree>
1163         <nationalNumberPattern>
1164           8(?:
1165             00|
1166             44|
1167             55|
1168             66|
1169             77|
1170             88
1171           )[2-9]\d{6}
1172         </nationalNumberPattern>
1173         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1174         <exampleNumber>8002123456</exampleNumber>
1175       </tollFree>
1176       <premiumRate>
1177         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1178         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1179         <exampleNumber>9002123456</exampleNumber>
1180       </premiumRate>
1181       <personalNumber>
1182         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1183         <nationalNumberPattern>
1184           5(?:
1185             00|
1186             33|
1187             44|
1188             66|
1189             77
1190           )[2-9]\d{6}
1191         </nationalNumberPattern>
1192         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1193         <exampleNumber>5002345678</exampleNumber>
1194       </personalNumber>
1195     </territory>
1196
1197     <!-- Austria -->
1198     <territory id="AT" countryCode="43" internationalPrefix="00"
1199                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1200                mobileNumberPortableRegion="true">
1201       <references>
1202         <sourceUrl>http://www.rtr.at/en/tk/E129</sourceUrl>
1203       </references>
1204       <availableFormats>
1205         <numberFormat pattern="(1)(\d{3,12})">
1206           <leadingDigits>1</leadingDigits>
1207           <format>$1 $2</format>
1208         </numberFormat>
1209         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
1210              found on Austrian web pages. -->
1211         <numberFormat pattern="(5\d)(\d{3,5})">
1212           <leadingDigits>5[079]</leadingDigits>
1213           <format>$1 $2</format>
1214         </numberFormat>
1215         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
1216           <leadingDigits>5[079]</leadingDigits>
1217           <format>$1 $2 $3</format>
1218         </numberFormat>
1219         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
1220           <leadingDigits>5[079]</leadingDigits>
1221           <format>$1 $2 $3</format>
1222         </numberFormat>
1223         <numberFormat pattern="(\d{3})(\d{3,10})">
1224           <leadingDigits>
1225             316|
1226             46|
1227             51|
1228             732|
1229             6(?:
1230               44|
1231               5[0-3579]|
1232               [6-9]
1233             )|
1234             7(?:
1235               1|
1236               [28]0
1237             )|
1238             [89]
1239           </leadingDigits>
1240           <format>$1 $2</format>
1241         </numberFormat>
1242         <numberFormat pattern="(\d{4})(\d{3,9})">
1243           <leadingDigits>
1244             2|
1245             3(?:
1246               1[1-578]|
1247               [3-8]
1248             )|
1249             4[2378]|
1250             5[2-6]|
1251             6(?:
1252               [12]|
1253               4[1-35-9]|
1254               5[468]
1255             )|
1256             7(?:
1257               2[1-8]|
1258               35|
1259               4[1-8]|
1260               [5-79]
1261             )
1262           </leadingDigits>
1263             <format>$1 $2</format>
1264           </numberFormat>
1265       </availableFormats>
1266       <generalDesc>
1267         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
1268         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
1269       </generalDesc>
1270       <fixedLine>
1271         <!-- Note that the full area code is not validated - just the first 3 digits. This also
1272              means that even though for most Austrian numbers the minimum length is 7, we allow 6
1273              since we don't differentiate below between 3 and 4 digit area codes for reasons of
1274              efficiency. -->
1275         <nationalNumberPattern>
1276           1\d{3,12}|
1277           (?:
1278             2(?:
1279               1[467]|
1280               2[13-8]|
1281               5[2357]|
1282               6[1-46-8]|
1283               7[1-8]|
1284               8[124-7]|
1285               9[1458]
1286             )|
1287             3(?:
1288               1[1-8]|
1289               3[23568]|
1290               4[5-7]|
1291               5[1378]|
1292               6[1-38]|
1293               8[3-68]
1294             )|
1295             4(?:
1296               2[1-8]|
1297               35|
1298               63|
1299               7[1368]|
1300               8[2457]
1301             )|
1302             5(?:
1303               12|
1304               2[1-8]|
1305               3[357]|
1306               4[147]|
1307               5[12578]|
1308               6[37]
1309             )|
1310             6(?:
1311               13|
1312               2[1-47]|
1313               4[1-35-8]|
1314               5[468]|
1315               62
1316             )|
1317             7(?:
1318               2[1-8]|
1319               3[25]|
1320               4[13478]|
1321               5[68]|
1322               6[16-8]|
1323               7[1-6]|
1324               9[45]
1325             )
1326           )\d{3,10}
1327         </nationalNumberPattern>
1328         <exampleNumber>1234567890</exampleNumber>
1329       </fixedLine>
1330       <mobile>
1331         <nationalNumberPattern>
1332           6(?:
1333             44|
1334             5[0-3579]|
1335             6[013-9]|
1336             [7-9]\d
1337           )\d{4,10}
1338         </nationalNumberPattern>
1339         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
1340         <exampleNumber>644123456</exampleNumber>
1341       </mobile>
1342       <tollFree>
1343         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
1344         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1345         <exampleNumber>800123456</exampleNumber>
1346       </tollFree>
1347       <premiumRate>
1348         <nationalNumberPattern>
1349           (?:
1350             711|
1351             9(?:
1352               0[01]|
1353               3[019]
1354             )
1355           )\d{6,10}
1356         </nationalNumberPattern>
1357         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1358         <exampleNumber>900123456</exampleNumber>
1359       </premiumRate>
1360       <sharedCost>
1361         <nationalNumberPattern>
1362           8(?:
1363             10|
1364             2[018]
1365           )\d{6,10}
1366         </nationalNumberPattern>
1367         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1368         <exampleNumber>810123456</exampleNumber>
1369       </sharedCost>
1370       <voip>
1371         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
1372         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1373         <exampleNumber>780123456</exampleNumber>
1374       </voip>
1375       <uan>
1376         <nationalNumberPattern>
1377           5(?:
1378             (?:
1379               0[1-9]|
1380               17
1381             )\d{2,10}|
1382             [79]\d{3,11}
1383           )|
1384           720\d{6,10}
1385         </nationalNumberPattern>
1386         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
1387         <exampleNumber>50123</exampleNumber>
1388       </uan>
1389     </territory>
1390
1391     <!-- Australia -->
1392     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
1393     <territory id="AU" countryCode="61" mainCountryForCode="true"
1394                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
1395                preferredInternationalPrefix="0011" nationalPrefix="0"
1396                mobileNumberPortableRegion="true">
1397       <references>
1398         <sourceUrl>http://www.itu.int/oth/T020200000D/en</sourceUrl>
1399         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
1400       </references>
1401       <availableFormats>
1402         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
1403           pattern="([2378])(\d{4})(\d{4})">
1404           <leadingDigits>[2378]</leadingDigits>
1405           <format>$1 $2 $3</format>
1406         </numberFormat>
1407         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1408           pattern="(\d{3})(\d{3})(\d{3})">
1409           <leadingDigits>
1410             [45]|
1411             14
1412           </leadingDigits>
1413           <format>$1 $2 $3</format>
1414         </numberFormat>
1415         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1416           pattern="(16)(\d{3})(\d{2,4})">
1417           <leadingDigits>16</leadingDigits>
1418           <format>$1 $2 $3</format>
1419         </numberFormat>
1420         <numberFormat nationalPrefixFormattingRule="$FG"
1421           pattern="(1[389]\d{2})(\d{3})(\d{3})">
1422           <leadingDigits>
1423             1(?:
1424               [38]0|
1425               90
1426             )
1427           </leadingDigits>
1428           <leadingDigits>
1429             1(?:
1430               [38]00|
1431               90
1432             )
1433           </leadingDigits>
1434           <format>$1 $2 $3</format>
1435         </numberFormat>
1436         <numberFormat nationalPrefixFormattingRule="$FG"
1437           pattern="(180)(2\d{3})">
1438           <leadingDigits>180</leadingDigits>
1439           <leadingDigits>1802</leadingDigits>
1440           <format>$1 $2</format>
1441         </numberFormat>
1442         <numberFormat nationalPrefixFormattingRule="$FG"
1443           pattern="(19\d)(\d{3})">
1444           <leadingDigits>19[13]</leadingDigits>
1445           <format>$1 $2</format>
1446         </numberFormat>
1447         <numberFormat nationalPrefixFormattingRule="$FG"
1448           pattern="(19\d{2})(\d{4})">
1449           <leadingDigits>19[67]</leadingDigits>
1450           <format>$1 $2</format>
1451         </numberFormat>
1452         <numberFormat nationalPrefixFormattingRule="$FG"
1453           pattern="(13)(\d{2})(\d{2})">
1454           <leadingDigits>13[1-9]</leadingDigits>
1455           <format>$1 $2 $3</format>
1456         </numberFormat>
1457       </availableFormats>
1458       <generalDesc>
1459         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
1460         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1461       </generalDesc>
1462       <noInternationalDialling>
1463         <nationalNumberPattern>
1464           1(?:
1465             3(?:
1466               \d{4}|
1467               00\d{6}
1468             )|
1469             80(?:
1470               0\d{6}|
1471               2\d{3}
1472             )
1473           )
1474         </nationalNumberPattern>
1475         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1476         <exampleNumber>1300123456</exampleNumber>
1477       </noInternationalDialling>
1478       <fixedLine>
1479         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
1480         <nationalNumberPattern>
1481           [237]\d{8}|
1482           8(?:
1483             [68]\d{3}|
1484             7[0-69]\d{2}|
1485             9(?:
1486               [02-9]\d{2}|
1487               1(?:
1488                 [0-57-9]\d|
1489                 6[0135-9]
1490               )
1491             )
1492           )\d{4}
1493         </nationalNumberPattern>
1494         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1495         <exampleNumber>212345678</exampleNumber>
1496       </fixedLine>
1497       <mobile>
1498         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
1499              other ranges 14[1-3] are not currently used. Note CC and CX should be updated as well
1500              if this pattern changes. -->
1501         <nationalNumberPattern>
1502           14(?:
1503             5\d|
1504             71
1505           )\d{5}|
1506           4(?:
1507             [0-2]\d|
1508             3[0-57-9]|
1509             4[47-9]|
1510             5[0-25-9]|
1511             6[6-9]|
1512             7[03-9]|
1513             8[17-9]|
1514             9[017-9]
1515           )\d{6}
1516         </nationalNumberPattern>
1517         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1518         <exampleNumber>412345678</exampleNumber>
1519       </mobile>
1520       <pager>
1521         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
1522         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
1523         <exampleNumber>1612345</exampleNumber>
1524       </pager>
1525       <tollFree>
1526         <nationalNumberPattern>
1527           180(?:
1528             0\d{3}|
1529             2
1530           )\d{3}
1531         </nationalNumberPattern>
1532         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1533         <exampleNumber>1800123456</exampleNumber>
1534       </tollFree>
1535       <premiumRate>
1536         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
1537         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1538         <exampleNumber>1900123456</exampleNumber>
1539       </premiumRate>
1540       <sharedCost>
1541       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
1542            although they charge a small local call connect fee (around 25c). These start with 13
1543            or 1300. -->
1544         <nationalNumberPattern>
1545           13(?:
1546             00\d{2}
1547           )?\d{4}
1548         </nationalNumberPattern>
1549         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1550         <exampleNumber>1300123456</exampleNumber>
1551       </sharedCost>
1552       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
1553            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
1554            from 0500000000 to 0590000000) -->
1555       <personalNumber>
1556         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
1557         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1558         <exampleNumber>500123456</exampleNumber>
1559       </personalNumber>
1560       <voip>
1561         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
1562         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1563         <exampleNumber>550123456</exampleNumber>
1564       </voip>
1565     </territory>
1566
1567     <!-- Aruba -->
1568     <territory id="AW" countryCode="297" internationalPrefix="00">
1569       <references>
1570         <sourceUrl>http://www.itu.int/oth/T020200000B/en</sourceUrl>
1571       </references>
1572       <availableFormats>
1573         <numberFormat pattern="(\d{3})(\d{4})">
1574           <format>$1 $2</format>
1575         </numberFormat>
1576       </availableFormats>
1577       <generalDesc>
1578         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
1579         <possibleNumberPattern>\d{7}</possibleNumberPattern>
1580       </generalDesc>
1581       <fixedLine>
1582         <nationalNumberPattern>
1583           5(?:
1584             2\d|
1585             8[1-9]
1586           )\d{4}
1587         </nationalNumberPattern>
1588         <exampleNumber>5212345</exampleNumber>
1589       </fixedLine>
1590       <mobile>
1591         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
1592              numbers found online. -->
1593         <nationalNumberPattern>
1594           (?:
1595             5(?:
1596               6\d|
1597               9[2-478]
1598             )|
1599             6(?:
1600               [039]0|
1601               22|
1602               4[01]|
1603               6[0-2]
1604             )|
1605             7[34]\d|
1606             9(?:
1607               6[45]|
1608               9[4-8]
1609             )
1610           )\d{4}
1611         </nationalNumberPattern>
1612         <exampleNumber>5601234</exampleNumber>
1613       </mobile>
1614       <tollFree>
1615         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
1616         <exampleNumber>8001234</exampleNumber>
1617       </tollFree>
1618       <premiumRate>
1619         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
1620         <exampleNumber>9001234</exampleNumber>
1621       </premiumRate>
1622       <voip>
1623         <nationalNumberPattern>
1624           28\d{5}|
1625           501\d{4}
1626         </nationalNumberPattern>
1627         <exampleNumber>5011234</exampleNumber>
1628       </voip>
1629     </territory>
1630
1631     <!-- Ã…land Islands. -->
1632     <!-- Metadata shared with Finland. -->
1633     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
1634                nationalPrefixFormattingRule="$NP$FG">
1635       <references>
1636         <sourceUrl>http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html</sourceUrl>
1637       </references>
1638       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
1639       <generalDesc>
1640         <nationalNumberPattern>
1641           [135]\d{5,9}|
1642           [27]\d{4,9}|
1643           4\d{5,10}|
1644           6\d{7,8}|
1645           8\d{6,9}
1646         </nationalNumberPattern>
1647         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
1648       </generalDesc>
1649       <noInternationalDialling>
1650         <!-- According to the national numbering plan, service numbers are in general not accessible
1651              from abroad, although 600/700/800 numbers may be. -->
1652         <nationalNumberPattern>
1653           [13]00\d{3,7}|
1654           2(?:
1655             0(?:
1656               0\d{3,7}|
1657               2[023]\d{1,6}|
1658               9[89]\d{1,6}
1659             )
1660           )|
1661           60(?:
1662             [12]\d{5,6}|
1663             6\d{7}
1664           )|
1665           7(?:
1666             1\d{7}|
1667             3\d{8}|
1668             5[03-9]\d{2,7}
1669           )
1670         </nationalNumberPattern>
1671         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1672         <exampleNumber>100123</exampleNumber>
1673       </noInternationalDialling>
1674       <fixedLine>
1675         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
1676         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
1677         <exampleNumber>1812345678</exampleNumber>
1678       </fixedLine>
1679       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
1680       <mobile>
1681         <nationalNumberPattern>
1682           4\d{5,10}|
1683           50\d{4,8}
1684         </nationalNumberPattern>
1685         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1686         <exampleNumber>412345678</exampleNumber>
1687       </mobile>
1688       <tollFree>
1689         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
1690         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1691         <exampleNumber>8001234567</exampleNumber>
1692       </tollFree>
1693       <premiumRate>
1694         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
1695         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1696         <exampleNumber>600123456</exampleNumber>
1697       </premiumRate>
1698       <uan>
1699         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
1700              assigned to institutions such as universities, the national post, etc, where they are
1701              not otherwise classified as toll-free or premium-rate numbers. -->
1702         <nationalNumberPattern>
1703           [13]0\d{4,8}|
1704           2(?:
1705             0(?:
1706               [016-8]\d{3,7}|
1707               [2-59]\d{2,7}
1708             )|
1709             9\d{4,8}
1710           )|
1711           60(?:
1712             [12]\d{5,6}|
1713             6\d{7}
1714           )|
1715           7(?:
1716             1\d{7}|
1717             3\d{8}|
1718             5[03-9]\d{2,7}
1719           )
1720         </nationalNumberPattern>
1721         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1722         <exampleNumber>10112345</exampleNumber>
1723       </uan>
1724     </territory>
1725
1726     <!-- Azerbaijan -->
1727     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
1728                nationalPrefixFormattingRule="($NP$FG)" mobileNumberPortableRegion="true">
1729       <references>
1730         <sourceUrl>http://www.itu.int/oth/T020200000F/en</sourceUrl>
1731       </references>
1732       <availableFormats>
1733         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
1734           <leadingDigits>
1735             (?:
1736               1[28]|
1737               2(?:
1738                 [45]2|
1739                 [0-36]
1740               )|
1741               365
1742             )
1743           </leadingDigits>
1744           <format>$1 $2 $3 $4</format>
1745         </numberFormat>
1746         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
1747           <leadingDigits>[4-8]</leadingDigits>
1748           <format>$1 $2 $3 $4</format>
1749         </numberFormat>
1750         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
1751           nationalPrefixFormattingRule="$NP$FG">
1752           <leadingDigits>9</leadingDigits>
1753           <format>$1 $2 $3 $4</format>
1754         </numberFormat>
1755       </availableFormats>
1756       <generalDesc>
1757         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
1758         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
1759       </generalDesc>
1760       <fixedLine>
1761         <nationalNumberPattern>
1762           (?:
1763             1[28]\d|
1764             2(?:
1765               02|
1766               1[24]|
1767               2[2-4]|
1768               33|
1769               [45]2|
1770               6[23]
1771             )|
1772             365
1773           )\d{6}
1774         </nationalNumberPattern>
1775         <exampleNumber>123123456</exampleNumber>
1776       </fixedLine>
1777       <mobile>
1778         <nationalNumberPattern>
1779           (?:
1780             4[04]|
1781             5[015]|
1782             60|
1783             7[07]
1784           )\d{7}
1785         </nationalNumberPattern>
1786         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1787         <exampleNumber>401234567</exampleNumber>
1788       </mobile>
1789       <tollFree>
1790         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
1791              suggest they are in fact national toll-free numbers. -->
1792         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
1793         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1794         <exampleNumber>881234567</exampleNumber>
1795       </tollFree>
1796       <premiumRate>
1797         <!-- These are marked as Interactive Calls in the ITU document. -->
1798         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
1799         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1800         <exampleNumber>900200123</exampleNumber>
1801       </premiumRate>
1802     </territory>
1803
1804     <!-- Bosnia and Herzegovina -->
1805     <territory id="BA" countryCode="387" internationalPrefix="00"
1806                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1807                mobileNumberPortableRegion="true">
1808       <references>
1809         <!-- accessible from http://www.cra.ba/en/telecom/numbering/ -->
1810         <sourceUrl>http://www.rak.ba/eng/index.php?uid=1272016657</sourceUrl>
1811         <sourceUrl>http://en.wikipedia.org/wiki/+387</sourceUrl>
1812       </references>
1813       <availableFormats>
1814         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1815           <leadingDigits>[3-5]</leadingDigits>
1816           <format>$1 $2-$3</format>
1817         </numberFormat>
1818         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1819           <leadingDigits>
1820             6[1-356]|
1821             [7-9]
1822           </leadingDigits>
1823           <format>$1 $2 $3</format>
1824         </numberFormat>
1825         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
1826           <leadingDigits>6[047]</leadingDigits>
1827           <format>$1 $2 $3 $4</format>
1828         </numberFormat>
1829       </availableFormats>
1830       <generalDesc>
1831         <nationalNumberPattern>[3-9]\d{7,8}</nationalNumberPattern>
1832         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
1833       </generalDesc>
1834       <fixedLine>
1835         <nationalNumberPattern>
1836           (?:
1837             [35]\d|
1838             49
1839           )\d{6}
1840         </nationalNumberPattern>
1841         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
1842         <exampleNumber>30123456</exampleNumber>
1843       </fixedLine>
1844       <mobile>
1845         <nationalNumberPattern>
1846           6(?:
1847             03|
1848             44|
1849             71|
1850             [1-356]
1851           )\d{6}
1852         </nationalNumberPattern>
1853         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1854         <exampleNumber>61123456</exampleNumber>
1855       </mobile>
1856       <tollFree>
1857         <nationalNumberPattern>8[08]\d{6}</nationalNumberPattern>
1858         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1859         <exampleNumber>80123456</exampleNumber>
1860       </tollFree>
1861       <premiumRate>
1862         <nationalNumberPattern>9[0246]\d{6}</nationalNumberPattern>
1863         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1864         <exampleNumber>90123456</exampleNumber>
1865       </premiumRate>
1866       <sharedCost>
1867         <!-- Using this category to model national tariff numbers - these are under Shared Cost in
1868              the plan. -->
1869         <nationalNumberPattern>8[12]\d{6}</nationalNumberPattern>
1870         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1871         <exampleNumber>82123456</exampleNumber>
1872       </sharedCost>
1873       <uan>
1874         <!-- Using this to classify nomad numbers. -->
1875         <nationalNumberPattern>70[23]\d{5}</nationalNumberPattern>
1876         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1877         <exampleNumber>70223456</exampleNumber>
1878       </uan>
1879     </territory>
1880
1881     <!-- Barbados -->
1882     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
1883                internationalPrefix="011">
1884       <references>
1885         <sourceUrl>http://www.itu.int/oth/T0202000013/en</sourceUrl>
1886       </references>
1887       <generalDesc>
1888         <!-- NANPA country - uses US formatting rules -->
1889         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
1890         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1891       </generalDesc>
1892       <fixedLine>
1893         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
1894         <exampleNumber>2462345678</exampleNumber>
1895       </fixedLine>
1896       <mobile>
1897         <nationalNumberPattern>
1898           246(?:
1899             (?:
1900               2[346]|
1901               45|
1902               82
1903             )\d|
1904             25[0-4]
1905           )\d{4}
1906         </nationalNumberPattern>
1907         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1908         <exampleNumber>2462501234</exampleNumber>
1909       </mobile>
1910       <tollFree>
1911         <nationalNumberPattern>
1912           8(?:
1913             00|
1914             44|
1915             55|
1916             66|
1917             77|
1918             88
1919           )[2-9]\d{6}
1920         </nationalNumberPattern>
1921         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1922         <exampleNumber>8002123456</exampleNumber>
1923       </tollFree>
1924       <premiumRate>
1925         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1926         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1927         <exampleNumber>9002123456</exampleNumber>
1928       </premiumRate>
1929       <personalNumber>
1930         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1931         <nationalNumberPattern>
1932           5(?:
1933             00|
1934             33|
1935             44|
1936             66|
1937             77
1938           )[2-9]\d{6}
1939         </nationalNumberPattern>
1940         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1941         <exampleNumber>5002345678</exampleNumber>
1942       </personalNumber>
1943     </territory>
1944
1945     <!-- Bangladesh -->
1946     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
1947                preferredInternationalPrefix="00"
1948                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
1949       <references>
1950         <sourceUrl>http://www.itu.int/oth/T0202000012/en</sourceUrl>
1951         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh</sourceUrl>
1952         <sourceUrl>http://www.btrc.gov.bd/sites/default/files/national_numbering_plan_2005_0.pdf</sourceUrl>
1953       </references>
1954       <availableFormats>
1955         <numberFormat pattern="(2)(\d{7})">
1956           <leadingDigits>2</leadingDigits>
1957           <format>$1-$2</format>
1958         </numberFormat>
1959         <numberFormat pattern="(\d{2})(\d{4,6})">
1960           <leadingDigits>[3-79]1</leadingDigits>
1961           <format>$1-$2</format>
1962         </numberFormat>
1963         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
1964         <numberFormat pattern="(\d{4})(\d{3,6})">
1965           <leadingDigits>
1966             1|
1967             3(?:
1968               0|
1969               [2-58]2
1970             )|
1971             4(?:
1972               0|
1973               [25]2|
1974               3[23]|
1975               [4689][25]
1976             )|
1977             5(?:
1978               [02-578]2|
1979               6[25]
1980             )|
1981             6(?:
1982               [0347-9]2|
1983               [26][25]
1984             )|
1985             7[02-9]2|
1986             8(?:
1987               [023][23]|
1988               [4-7]2
1989             )|
1990             9(?:
1991               [02][23]|
1992               [458]2|
1993               6[016]
1994             )
1995           </leadingDigits>
1996           <format>$1-$2</format>
1997         </numberFormat>
1998         <numberFormat pattern="(\d{3})(\d{3,7})">
1999           <leadingDigits>
2000             [3-79][2-9]|
2001             8
2002           </leadingDigits>
2003           <format>$1-$2</format>
2004         </numberFormat>
2005       </availableFormats>
2006       <generalDesc>
2007       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
2008            plan, so the country code can be accurately stripped off. -->
2009         <nationalNumberPattern>
2010           [2-79]\d{5,9}|
2011           1\d{9}|
2012           8[0-7]\d{4,8}
2013         </nationalNumberPattern>
2014         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
2015       </generalDesc>
2016       <fixedLine>
2017         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
2018              been realised, judging by online numbers and wikipedia. These patterns are grouped
2019              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731
2020              etc) are included despite not being mentioned on the wikipedia page or ITU doc due to
2021              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
2022              do not - both are allowed for now. For some area codes, the subscriber number length
2023              described in our source documentation doesn't match numbers online (e.g. 05222) so we
2024              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
2025              also added 04452 and 04923 from numbers found online. -->
2026         <nationalNumberPattern>
2027           2(?:
2028             7(?:
2029               1[0-267]|
2030               2[0-289]|
2031               3[0-29]|
2032               [46][01]|
2033               5[1-3]|
2034               7[017]|
2035               91
2036             )|
2037             8(?:
2038               0[125]|
2039               [139][1-6]|
2040               2[0157-9]|
2041               6[1-35]|
2042               7[1-5]|
2043               8[1-8]
2044             )|
2045             9(?:
2046               0[0-2]|
2047               1[1-4]|
2048               2[568]|
2049               3[3-6]|
2050               5[5-7]|
2051               6[0167]|
2052               7[15]|
2053               8[0146-8]
2054             )
2055           )\d{4}|
2056           3(?:
2057             12?[5-7]\d{2}|
2058             0(?:
2059               2(?:
2060                 [025-79]\d|
2061                 [348]\d{1,2}
2062               )|
2063               3(?:
2064                 [2-4]\d|
2065                 [56]\d?
2066               )
2067             )|
2068             2(?:
2069               1\d{2}|
2070               2(?:
2071                 [12]\d|
2072                 [35]\d{1,2}|
2073                 4\d?
2074               )
2075             )|
2076             3(?:
2077               1\d{2}|
2078               2(?:
2079                 [2356]\d|
2080                 4\d{1,2}
2081               )
2082             )|
2083             4(?:
2084               1\d{2}|
2085               2(?:
2086                 2\d{1,2}|
2087                 [47]|
2088                 5\d{2}
2089               )
2090             )|
2091             5(?:
2092               1\d{2}|
2093               29
2094             )|
2095             [67]1\d{2}|
2096             8(?:
2097               1\d{2}|
2098               2(?:
2099                 2\d{2}|
2100                 3|
2101                 4\d
2102               )
2103             )
2104           )\d{3}|
2105           4(?:
2106             0(?:
2107               2(?:
2108                 [09]\d|
2109                 7
2110               )|
2111               33\d{2}
2112             )|
2113             1\d{3}|
2114             2(?:
2115               1\d{2}|
2116               2(?:
2117                 [25]\d?|
2118                 [348]\d|
2119                 [67]\d{1,2}
2120               )
2121             )|
2122             3(?:
2123               1\d{2}(?:\d{2})?|
2124               2(?:
2125                 [045]\d|
2126                 [236-9]\d{1,2}
2127               )|
2128               32\d{2}
2129             )|
2130             4(?:
2131               [18]\d{2}|
2132               2(?:
2133                 [2-46]\d{2}|
2134                 3
2135               )|
2136               5[25]\d{2}
2137             )|
2138             5(?:
2139               1\d{2}|
2140               2(?:
2141                 3\d|
2142                 5
2143               )
2144             )|
2145             6(?:
2146               [18]\d{2}|
2147               2(?:
2148                 3(?:\d{2})?|
2149                 [46]\d{1,2}|
2150                 5\d{2}|
2151                 7\d
2152               )|
2153               5(?:
2154                 3\d?|
2155                 4\d|
2156                 [57]\d{1,2}|
2157                 6\d{2}|
2158                 8
2159               )
2160             )|
2161             71\d{2}|
2162             8(?:
2163               [18]\d{2}|
2164               23\d{2}|
2165               54\d{2}
2166             )|
2167             9(?:
2168               [18]\d{2}|
2169               2[2-5]\d{2}|
2170               53\d{1,2}
2171             )
2172           )\d{3}|
2173           5(?:
2174             02[03489]\d{2}|
2175             1\d{2}|
2176             2(?:
2177               1\d{2}|
2178               2(?:
2179                 2(?:\d{2})?|
2180                 [457]\d{2}
2181               )
2182             )|
2183             3(?:
2184               1\d{2}|
2185               2(?:
2186                 [37](?:\d{2})?|
2187                 [569]\d{2}
2188               )
2189             )|
2190             4(?:
2191               1\d{2}|
2192               2[46]\d{2}
2193             )|
2194             5(?:
2195               1\d{2}|
2196               26\d{1,2}
2197             )|
2198             6(?:
2199               [18]\d{2}|
2200               2|
2201               53\d{2}
2202             )|
2203             7(?:
2204               1|
2205               24
2206             )\d{2}|
2207             8(?:
2208               1|
2209               26
2210             )\d{2}|
2211             91\d{2}
2212           )\d{3}|
2213           6(?:
2214             0(?:
2215               1\d{2}|
2216               2(?:
2217                 3\d{2}|
2218                 4\d{1,2}
2219               )
2220             )|
2221             2(?:
2222               2[2-5]\d{2}|
2223               5(?:
2224                 [3-5]\d{2}|
2225                 7
2226               )|
2227               8\d{2}
2228             )|
2229             3(?:
2230               1|
2231               2[3478]
2232             )\d{2}|
2233             4(?:
2234               1|
2235               2[34]
2236             )\d{2}|
2237             5(?:
2238               1|
2239               2[47]
2240             )\d{2}|
2241             6(?:
2242               [18]\d{2}|
2243               6(?:
2244                 2(?:
2245                   2\d|
2246                   [34]\d{2}
2247                 )|
2248                 5(?:
2249                   [24]\d{2}|
2250                   3\d|
2251                   5\d{1,2}
2252                 )
2253               )
2254             )|
2255             72[2-5]\d{2}|
2256             8(?:
2257               1\d{2}|
2258               2[2-5]\d{2}
2259             )|
2260             9(?:
2261               1\d{2}|
2262               2[2-6]\d{2}
2263             )
2264           )\d{3}|
2265           7(?:
2266             (?:
2267               02|
2268               [3-589]1|
2269               6[12]|
2270               72[24]
2271             )\d{2}|
2272             21\d{3}|
2273             32
2274           )\d{3}|
2275           8(?:
2276             (?:
2277               4[12]|
2278               [5-7]2|
2279               1\d?
2280             )|
2281             (?:
2282               0|
2283               3[12]|
2284               [5-7]1|
2285               217
2286             )\d
2287           )\d{4}|
2288           9(?:
2289             [35]1|
2290             (?:
2291               [024]2|
2292               81
2293             )\d|
2294             (?:
2295               1|
2296               [24]1
2297             )\d{2}
2298           )\d{3}
2299         </nationalNumberPattern>
2300         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
2301         <exampleNumber>27111234</exampleNumber>
2302       </fixedLine>
2303       <mobile>
2304         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
2305              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
2306              numbers should be moving to 1[13-9] anyway. -->
2307         <nationalNumberPattern>
2308           (?:
2309             1[13-9]\d|
2310             (?:
2311               3[78]|
2312               44
2313             )[02-9]|
2314             6(?:
2315               44|
2316               6[02-9]
2317             )
2318           )\d{7}
2319         </nationalNumberPattern>
2320         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2321         <exampleNumber>1812345678</exampleNumber>
2322       </mobile>
2323       <tollFree>
2324         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
2325         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
2326         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2327         <exampleNumber>8001234567</exampleNumber>
2328       </tollFree>
2329       <voip>
2330         <nationalNumberPattern>
2331           96(?:
2332             0[49]|
2333             1[0-4]|
2334             6[69]
2335           )\d{6}
2336         </nationalNumberPattern>
2337         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2338         <exampleNumber>9604123456</exampleNumber>
2339       </voip>
2340     </territory>
2341
2342     <!-- Belgium -->
2343     <territory id="BE" countryCode="32" internationalPrefix="00"
2344                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2345                mobileNumberPortableRegion="true">
2346       <references>
2347         <sourceUrl>http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx</sourceUrl>
2348         <sourceUrl>http://www.telefoonzones.be/</sourceUrl>
2349       </references>
2350       <availableFormats>
2351         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
2352           <leadingDigits>4[6-9]</leadingDigits>
2353           <format>$1 $2 $3 $4</format>
2354         </numberFormat>
2355         <numberFormat pattern="([2-49])(\d{3})(\d{2})(\d{2})">
2356           <leadingDigits>
2357             [23]|
2358             [49][23]
2359           </leadingDigits>
2360           <format>$1 $2 $3 $4</format>
2361         </numberFormat>
2362         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
2363           <leadingDigits>
2364             [156]|
2365             7[018]|
2366             8(?:
2367               0[1-9]|
2368               [1-79]
2369             )
2370           </leadingDigits>
2371           <format>$1 $2 $3 $4</format>
2372         </numberFormat>
2373         <numberFormat pattern="([89]\d{2})(\d{2})(\d{3})">
2374           <leadingDigits>
2375             (?:
2376               80|
2377               9
2378             )0
2379           </leadingDigits>
2380           <format>$1 $2 $3</format>
2381         </numberFormat>
2382       </availableFormats>
2383       <generalDesc>
2384         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
2385         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2386       </generalDesc>
2387       <fixedLine>
2388         <!-- According to the published Excel document the third digit must be 1-9. -->
2389         <nationalNumberPattern>
2390           (?:
2391             1[0-69]|
2392             [49][23]|
2393             5\d|
2394             6[013-57-9]|
2395             71|
2396             8[0-79]
2397           )[1-9]\d{5}|
2398           [23][2-8]\d{6}
2399         </nationalNumberPattern>
2400         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2401         <exampleNumber>12345678</exampleNumber>
2402       </fixedLine>
2403       <mobile>
2404         <!-- Numbers beginning with 46 outside the ranges allocated by the plan have been included
2405              since many were found online. -->
2406         <nationalNumberPattern>
2407           4(?:
2408             [679]\d|
2409             8[03-9]
2410           )\d{6}
2411         </nationalNumberPattern>
2412         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2413         <exampleNumber>470123456</exampleNumber>
2414       </mobile>
2415       <tollFree>
2416         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2417         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2418         <exampleNumber>80012345</exampleNumber>
2419       </tollFree>
2420       <premiumRate>
2421         <nationalNumberPattern>
2422           (?:
2423             70[2-7]|
2424             90\d
2425           )\d{5}
2426         </nationalNumberPattern>
2427         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2428         <exampleNumber>90123456</exampleNumber>
2429       </premiumRate>
2430       <uan>
2431         <!-- Using this for National Rate Services, since
2432              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
2433              says it will be priced the same as any other national calls. -->
2434         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
2435         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2436         <exampleNumber>78123456</exampleNumber>
2437       </uan>
2438     </territory>
2439
2440     <!-- Burkina Faso -->
2441     <territory id="BF" countryCode="226" internationalPrefix="00">
2442       <references>
2443         <sourceUrl>http://www.itu.int/oth/T0202000021/en</sourceUrl>
2444         <sourceUrl>http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf</sourceUrl>
2445       </references>
2446       <availableFormats>
2447         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
2448              chosen to use the standard from numbers found on the internet instead. -->
2449         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2450           <format>$1 $2 $3 $4</format>
2451         </numberFormat>
2452       </availableFormats>
2453       <generalDesc>
2454         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
2455         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2456       </generalDesc>
2457       <fixedLine>
2458         <nationalNumberPattern>
2459           (?:
2460             20(?:
2461               49|
2462               5[23]|
2463               9[016-9]
2464             )|
2465             40(?:
2466               4[569]|
2467               5[4-6]|
2468               7[0179]
2469             )|
2470             50(?:
2471               [34]\d|
2472               50
2473             )
2474           )\d{4}
2475         </nationalNumberPattern>
2476         <exampleNumber>20491234</exampleNumber>
2477       </fixedLine>
2478       <mobile>
2479         <nationalNumberPattern>
2480           6(?:
2481             [0-689]\d|
2482             7[0-5]
2483           )\d{5}|
2484           7\d{7}
2485         </nationalNumberPattern>
2486         <exampleNumber>70123456</exampleNumber>
2487       </mobile>
2488     </territory>
2489
2490     <!-- Bulgaria -->
2491     <territory id="BG" countryCode="359" internationalPrefix="00"
2492                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2493                mobileNumberPortableRegion="true">
2494       <references>
2495         <sourceUrl>http://www.itu.int/oth/T0202000020/en</sourceUrl>
2496       </references>
2497       <availableFormats>
2498         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
2499              used to separate the area code from the rest of the number, based on sites like
2500              http://www.goldenpages.bg. -->
2501         <numberFormat pattern="(2)(\d{5})">
2502           <leadingDigits>29</leadingDigits>
2503           <format>$1 $2</format>
2504         </numberFormat>
2505         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
2506           <leadingDigits>2</leadingDigits>
2507           <format>$1 $2 $3</format>
2508         </numberFormat>
2509         <numberFormat pattern="(\d{3})(\d{4})">
2510           <leadingDigits>
2511             43[124-7]|
2512             70[1-9]
2513           </leadingDigits>
2514           <format>$1 $2</format>
2515         </numberFormat>
2516         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
2517           <leadingDigits>
2518             43[124-7]|
2519             70[1-9]
2520           </leadingDigits>
2521           <format>$1 $2 $3</format>
2522         </numberFormat>
2523         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2524           <leadingDigits>[78]00</leadingDigits>
2525           <format>$1 $2 $3</format>
2526         </numberFormat>
2527         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
2528           <leadingDigits>
2529             [356]|
2530             4[124-7]|
2531             7[1-9]|
2532             8[1-6]|
2533             9[1-7]
2534           </leadingDigits>
2535           <format>$1 $2 $3</format>
2536         </numberFormat>
2537         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2538           <leadingDigits>
2539             48|
2540             8[7-9]|
2541             9[08]
2542           </leadingDigits>
2543           <format>$1 $2 $3</format>
2544         </numberFormat>
2545       </availableFormats>
2546       <generalDesc>
2547         <nationalNumberPattern>
2548           [23567]\d{5,7}|
2549           [489]\d{6,8}
2550         </nationalNumberPattern>
2551         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
2552       </generalDesc>
2553       <fixedLine>
2554         <!-- 29xxxx numbers have been added because they can be found online, and are typically
2555              used by taxi companies. -->
2556         <nationalNumberPattern>
2557           2(?:
2558             [0-8]\d{5,6}|
2559             9\d{4,6}
2560           )|
2561           (?:
2562             [36]\d|
2563             5[1-9]|
2564             8[1-6]|
2565             9[1-7]
2566           )\d{5,6}|
2567           (?:
2568             4(?:
2569               [124-7]\d|
2570               3[1-6]
2571             )|
2572             7(?:
2573               0[1-9]|
2574               [1-9]\d
2575             )
2576           )\d{4,5}
2577         </nationalNumberPattern>
2578         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
2579         <exampleNumber>2123456</exampleNumber>
2580       </fixedLine>
2581       <mobile>
2582         <nationalNumberPattern>
2583           (?:
2584             8[7-9]|
2585             98
2586           )\d{7}|
2587           4(?:
2588             3[0789]|
2589             8\d
2590           )\d{5}
2591         </nationalNumberPattern>
2592         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2593         <exampleNumber>48123456</exampleNumber>
2594       </mobile>
2595       <tollFree>
2596         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2597         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2598         <exampleNumber>80012345</exampleNumber>
2599       </tollFree>
2600       <premiumRate>
2601         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
2602         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2603         <exampleNumber>90123456</exampleNumber>
2604       </premiumRate>
2605       <personalNumber>
2606         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
2607         <exampleNumber>70012345</exampleNumber>
2608       </personalNumber>
2609     </territory>
2610
2611     <!-- Bahrain -->
2612     <territory id="BH" countryCode="973" internationalPrefix="00" mobileNumberPortableRegion="true">
2613       <references>
2614         <sourceUrl>http://www.itu.int/oth/T0202000011/en</sourceUrl>
2615         <sourceUrl>http://www.tra.org.bh/en/marketNumbering.aspx</sourceUrl>
2616         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain</sourceUrl>
2617       </references>
2618       <availableFormats>
2619         <numberFormat pattern="(\d{4})(\d{4})">
2620           <format>$1 $2</format>
2621         </numberFormat>
2622       </availableFormats>
2623       <generalDesc>
2624         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
2625         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2626       </generalDesc>
2627       <!-- Some ranges were previously described as "universal", but in subsequent versions of the
2628            ITU doc they have been specified to be mobile or fixed-line. We follow the ITU
2629            designations, even though some publications still refer to them as universal. -->
2630       <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
2631            "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts the ITU doc
2632            which lists "6966, 6969, 6996, 6999". We follow ITU here. -->
2633       <fixedLine>
2634         <nationalNumberPattern>
2635           (?:
2636             1(?:
2637               3[13-6]|
2638               6[0156]|
2639               7\d
2640             )\d|
2641             6(?:
2642               1[16]\d|
2643               500|
2644               6(?:
2645                 0\d|
2646                 3[12]|
2647                 44|
2648                 88
2649               )|
2650               9[69][69]
2651             )|
2652             7(?:
2653               7\d{2}|
2654               178
2655             )
2656           )\d{4}
2657         </nationalNumberPattern>
2658         <exampleNumber>17001234</exampleNumber>
2659       </fixedLine>
2660       <!-- 31 is assigned to Royal Court, as per documents on Bahrain's own telecom site, even
2661            though it is omitted from the ITU document. 356 was added based on numbers found
2662            online. -->
2663       <mobile>
2664         <nationalNumberPattern>
2665           (?:
2666             3(?:
2667               [1-4679]\d|
2668               5[01356]|
2669               8[0-48]
2670             )\d|
2671             6(?:
2672               3(?:
2673                 00|
2674                 33|
2675                 6[16]
2676               )|
2677               6(?:
2678                 [69]\d|
2679                 3[03-9]
2680               )
2681             )
2682           )\d{4}
2683         </nationalNumberPattern>
2684         <exampleNumber>36001234</exampleNumber>
2685       </mobile>
2686       <tollFree>
2687         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
2688         <exampleNumber>80123456</exampleNumber>
2689       </tollFree>
2690       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
2691            now. -->
2692       <premiumRate>
2693         <nationalNumberPattern>
2694           (?:
2695             87|
2696             9[014578]
2697           )\d{6}
2698         </nationalNumberPattern>
2699         <exampleNumber>90123456</exampleNumber>
2700       </premiumRate>
2701       <sharedCost>
2702         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
2703         <exampleNumber>84123456</exampleNumber>
2704       </sharedCost>
2705     </territory>
2706
2707     <!-- Burundi -->
2708     <territory id="BI" countryCode="257" internationalPrefix="00">
2709       <references>
2710         <sourceUrl>http://www.itu.int/oth/T0202000022/en</sourceUrl>
2711       </references>
2712       <availableFormats>
2713         <numberFormat
2714           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2715           <format>$1 $2 $3 $4</format>
2716         </numberFormat>
2717       </availableFormats>
2718       <generalDesc>
2719         <nationalNumberPattern>[267]\d{7}</nationalNumberPattern>
2720         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2721       </generalDesc>
2722       <fixedLine>
2723         <nationalNumberPattern>
2724           22(?:
2725             2[0-7]|
2726             [3-5]0
2727           )\d{4}
2728         </nationalNumberPattern>
2729         <exampleNumber>22201234</exampleNumber>
2730       </fixedLine>
2731       <mobile>
2732         <!-- Extra online mobile number prefixes found: 74.
2733              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
2734              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
2735              satellite phones. -->
2736         <nationalNumberPattern>
2737           (?:
2738             [26]9|
2739             7[14-9]
2740           )\d{6}
2741         </nationalNumberPattern>
2742         <exampleNumber>79561234</exampleNumber>
2743       </mobile>
2744     </territory>
2745
2746     <!-- Benin -->
2747     <territory id="BJ" countryCode="229" internationalPrefix="00">
2748       <references>
2749         <sourceUrl>http://www.itu.int/oth/T0202000017/en</sourceUrl>
2750       </references>
2751       <availableFormats>
2752         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2753           <format>$1 $2 $3 $4</format>
2754         </numberFormat>
2755         <!-- Numbers beginning with 7 should be formatted as a block. -->
2756       </availableFormats>
2757       <generalDesc>
2758         <nationalNumberPattern>
2759           [2689]\d{7}|
2760           7\d{3}
2761         </nationalNumberPattern>
2762         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
2763       </generalDesc>
2764       <fixedLine>
2765         <!-- These come from the national numbering plan, but have been widened to include other
2766              prefixes found in the yellow pages - specifically 21 0. -->
2767         <nationalNumberPattern>
2768           2(?:
2769             02|
2770             1[037]|
2771             2[45]|
2772             3[68]
2773           )\d{5}
2774         </nationalNumberPattern>
2775         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2776         <exampleNumber>20211234</exampleNumber>
2777       </fixedLine>
2778       <mobile>
2779         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
2780              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
2781              6[167] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
2782              reported as having prefixes 68 and 9[89]. -->
2783         <nationalNumberPattern>
2784           (?:
2785             6[146-8]|
2786             9[03-9]
2787           )\d{6}
2788         </nationalNumberPattern>
2789         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2790         <exampleNumber>90011234</exampleNumber>
2791       </mobile>
2792       <tollFree>
2793         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
2794         <possibleNumberPattern>\d{4}</possibleNumberPattern>
2795         <exampleNumber>7312</exampleNumber>
2796       </tollFree>
2797       <voip>
2798         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
2799         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2800         <exampleNumber>85751234</exampleNumber>
2801       </voip>
2802       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
2803            as a local-call.) We model these as UAN since we have no more detailed information. -->
2804       <uan>
2805         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
2806         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2807         <exampleNumber>81123456</exampleNumber>
2808       </uan>
2809     </territory>
2810
2811     <!-- Saint Barthélemy, French Antilles -->
2812     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
2813          national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but
2814          it appears from searches in online white and yellow pages that a subset of the prefixes
2815          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
2816          of these region codes will be returned, although numbers will be valid for both regions.
2817          -->
2818     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
2819       <references>
2820         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
2821       </references>
2822       <!-- Formatting rules borrowed from Guadeloupe. -->
2823       <generalDesc>
2824         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
2825         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2826       </generalDesc>
2827       <fixedLine>
2828         <nationalNumberPattern>
2829           590(?:
2830             2[7-9]|
2831             5[12]|
2832             87
2833           )\d{4}
2834         </nationalNumberPattern>
2835         <exampleNumber>590271234</exampleNumber>
2836       </fixedLine>
2837       <mobile>
2838         <!-- Any ranges assigned from
2839              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
2840              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
2841              them. -->
2842         <nationalNumberPattern>
2843           690(?:
2844             0[0-7]|
2845             [1-9]\d
2846           )\d{4}
2847         </nationalNumberPattern>
2848         <exampleNumber>690301234</exampleNumber>
2849       </mobile>
2850     </territory>
2851
2852     <!-- Bermuda -->
2853     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
2854                internationalPrefix="011">
2855       <references>
2856         <sourceUrl>http://www.itu.int/oth/T0202000018/en</sourceUrl>
2857       </references>
2858       <generalDesc>
2859         <!-- NANPA country - uses US formatting rules -->
2860         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
2861         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
2862       </generalDesc>
2863       <fixedLine>
2864         <nationalNumberPattern>
2865           441(?:
2866             2(?:
2867               02|
2868               23|
2869               61|
2870               [3479]\d
2871             )|
2872             [46]\d{2}|
2873             5(?:
2874               4\d|
2875               60|
2876               89
2877             )|
2878             824
2879           )\d{4}
2880         </nationalNumberPattern>
2881         <exampleNumber>4412345678</exampleNumber>
2882       </fixedLine>
2883       <mobile>
2884         <nationalNumberPattern>
2885           441(?:
2886             [37]\d|
2887             5[0-39]
2888           )\d{5}
2889         </nationalNumberPattern>
2890         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2891         <exampleNumber>4413701234</exampleNumber>
2892       </mobile>
2893       <tollFree>
2894         <nationalNumberPattern>
2895           8(?:
2896             00|
2897             44|
2898             55|
2899             66|
2900             77|
2901             88
2902           )[2-9]\d{6}
2903         </nationalNumberPattern>
2904         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2905         <exampleNumber>8002123456</exampleNumber>
2906       </tollFree>
2907       <premiumRate>
2908         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
2909         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2910         <exampleNumber>9002123456</exampleNumber>
2911       </premiumRate>
2912       <personalNumber>
2913         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
2914         <nationalNumberPattern>
2915           5(?:
2916             00|
2917             33|
2918             44|
2919             66|
2920             77
2921           )[2-9]\d{6}
2922         </nationalNumberPattern>
2923         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2924         <exampleNumber>5002345678</exampleNumber>
2925       </personalNumber>
2926     </territory>
2927
2928     <!-- Brunei Darussalam -->
2929     <territory id="BN" countryCode="673" internationalPrefix="00">
2930       <references>
2931         <sourceUrl>http://www.itu.int/oth/T020200001F/en</sourceUrl>
2932       </references>
2933       <!-- Format is from http://aiti.gov.bn/contact.html -->
2934       <availableFormats>
2935         <numberFormat pattern="([2-578]\d{2})(\d{4})">
2936           <format>$1 $2</format>
2937         </numberFormat>
2938       </availableFormats>
2939       <generalDesc>
2940         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
2941         <possibleNumberPattern>\d{7}</possibleNumberPattern>
2942       </generalDesc>
2943       <fixedLine>
2944         <nationalNumberPattern>
2945           2(?:
2946             [013-9]\d|
2947             2[0-7]
2948           )\d{4}|
2949           [3-5]\d{6}
2950         </nationalNumberPattern>
2951         <exampleNumber>2345678</exampleNumber>
2952       </fixedLine>
2953       <mobile>
2954         <nationalNumberPattern>
2955           22[89]\d{4}|
2956           [78]\d{6}
2957         </nationalNumberPattern>
2958         <exampleNumber>7123456</exampleNumber>
2959       </mobile>
2960     </territory>
2961
2962     <!-- Bolivia -->
2963     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
2964                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
2965       <references>
2966         <sourceUrl>http://www.itu.int/oth/T020200001A/en</sourceUrl>
2967         <sourceUrl>http://www.bolivia.com/Servicios/Plandenumeracion.pdf</sourceUrl>
2968       </references>
2969       <availableFormats>
2970         <numberFormat pattern="([234])(\d{7})">
2971           <leadingDigits>[234]</leadingDigits>
2972           <format>$1 $2</format>
2973         </numberFormat>
2974         <numberFormat pattern="([67]\d{7})">
2975           <leadingDigits>[67]</leadingDigits>
2976           <format>$1</format>
2977         </numberFormat>
2978       </availableFormats>
2979       <generalDesc>
2980         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
2981         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
2982       </generalDesc>
2983       <fixedLine>
2984         <nationalNumberPattern>
2985           (?:
2986             2(?:
2987               2\d{2}|
2988               5(?:11|[258]\d|9[67])|
2989               6(?:12|2\d|9[34])|
2990               8(?:2[34]|39|62)
2991             )|
2992             3(?:
2993               3\d{2}|
2994               4(?:6\d|8[24])|
2995               8(?:25|42|5[257]|86|9[25])|
2996               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
2997             )|
2998             4(?:
2999               4\d{2}|
3000               6(?:11|[24689]\d|72)
3001             )
3002           )\d{4}
3003         </nationalNumberPattern>
3004         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3005         <exampleNumber>22123456</exampleNumber>
3006       </fixedLine>
3007       <mobile>
3008         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
3009         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3010         <exampleNumber>71234567</exampleNumber>
3011       </mobile>
3012     </territory>
3013
3014     <!-- Bonaire, Sint Eustatius and Saba -->
3015     <territory id="BQ" countryCode="599" internationalPrefix="00">
3016       <references>
3017         <sourceUrl>http://www.itu.int/oth/T02020000F8/en</sourceUrl>
3018       </references>
3019       <!-- Shares formatting patterns with CW. -->
3020       <generalDesc>
3021         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
3022         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3023       </generalDesc>
3024       <fixedLine>
3025         <nationalNumberPattern>
3026           (?:
3027             318[023]|
3028             416[023]|
3029             7(?:
3030               1[578]|
3031               50
3032             )\d
3033           )\d{3}
3034         </nationalNumberPattern>
3035         <exampleNumber>7151234</exampleNumber>
3036       </fixedLine>
3037       <mobile>
3038         <nationalNumberPattern>
3039           (?:
3040             318[14-68]|
3041             416[15-9]|
3042             7(?:
3043               0[01]|
3044               7[07]|
3045               [89]\d
3046             )\d
3047           )\d{3}
3048         </nationalNumberPattern>
3049         <exampleNumber>3181234</exampleNumber>
3050       </mobile>
3051     </territory>
3052
3053     <!-- Brazil -->
3054     <territory id="BR" countryCode="55"
3055                internationalPrefix="00(?:1[45]|2[135]|31|4[13])"
3056                nationalPrefix="0"
3057                nationalPrefixForParsing="0(?:(1[245]|2[135]|31|4[13])(\d{10,11}))?"
3058                nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true">
3059       <references>
3060         <sourceUrl>http://en.wikipedia.org/wiki/%2B55</sourceUrl>
3061         <sourceUrl>http://www.itu.int/oth/T020200001D/en</sourceUrl>
3062       </references>
3063       <!-- The national prefix for parsing here also contains a capturing group for the main number,
3064            since the carrier codes here may also be area codes, so we want to check the length of
3065            the number after capturing. We also need a nationalTransformRule to repopulate with the
3066            number without the carrier code. -->
3067       <availableFormats>
3068         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
3069              rules here handle this case. The leading digits pattern must be specific enough such
3070              that it doesn't match X00 numbers (e.g. toll-free). -->
3071         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
3072           <leadingDigits>
3073             [2-9](?:
3074               [1-9]|
3075               0[1-9]
3076             )
3077           </leadingDigits>
3078           <format>$1-$2</format>
3079           <intlFormat>NA</intlFormat>
3080         </numberFormat>
3081         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
3082           <leadingDigits>
3083             9(?:
3084               [1-9]|
3085               0[1-9]
3086             )
3087           </leadingDigits>
3088           <format>$1-$2</format>
3089           <intlFormat>NA</intlFormat>
3090         </numberFormat>
3091         <!-- Format short numbers as a block. -->
3092         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
3093           <leadingDigits>1[125689]</leadingDigits>
3094           <format>$1</format>
3095           <intlFormat>NA</intlFormat>
3096         </numberFormat>
3097         <numberFormat nationalPrefixFormattingRule="($FG)"
3098             pattern="(\d{2})(\d{5})(\d{4})"
3099             carrierCodeFormattingRule="$NP $CC ($FG)">
3100           <leadingDigits>
3101             (?:
3102               1[1-9]|
3103               2[12478]|
3104               9[1-9]
3105             )9
3106           </leadingDigits>
3107           <format>$1 $2-$3</format>
3108         </numberFormat>
3109         <numberFormat nationalPrefixFormattingRule="($FG)"
3110             pattern="(\d{2})(\d{4})(\d{4})"
3111             carrierCodeFormattingRule="$NP $CC ($FG)">
3112           <leadingDigits>[1-9][1-9]</leadingDigits>
3113           <format>$1 $2-$3</format>
3114         </numberFormat>
3115         <numberFormat pattern="([34]00\d)(\d{4})">
3116           <leadingDigits>[34]00</leadingDigits>
3117           <format>$1-$2</format>
3118         </numberFormat>
3119         <numberFormat nationalPrefixFormattingRule="$NP$FG"
3120             pattern="([3589]00)(\d{2,3})(\d{4})">
3121           <leadingDigits>[3589]00</leadingDigits>
3122           <format>$1 $2 $3</format>
3123         </numberFormat>
3124       </availableFormats>
3125       <generalDesc>
3126         <nationalNumberPattern>
3127           [1-46-9]\d{7,10}|
3128           5\d{8,9}
3129         </nationalNumberPattern>
3130         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
3131       </generalDesc>
3132       <noInternationalDialling>
3133         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3134         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3135         <exampleNumber>40041234</exampleNumber>
3136       </noInternationalDialling>
3137       <fixedLine>
3138         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
3139              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
3140              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
3141              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
3142              -->
3143         <nationalNumberPattern>
3144           1[1-9][2-5]\d{7}|
3145           (?:
3146             [4689][1-9]|
3147             2[12478]|
3148             3[1-578]|
3149             5[13-5]|
3150             7[13-579]
3151           )[2-5]\d{7}
3152         </nationalNumberPattern>
3153         <exampleNumber>1123456789</exampleNumber>
3154       </fixedLine>
3155       <mobile>
3156         <!-- Since 2012, Brazil has been migrating from 10 to 11 digits by inserting a 9 before the
3157              last 8 digits. The following pattern is divided into 3 sections: ranges for which the
3158              migration has been completed, ranges which are in transition, and ranges which are
3159              still in the old format. (Ranges which were supposed to have been deprecated in
3160              Oct. 2013 are still working as of Jan. 2014.) Note that mobile radio services are
3161              still 10 digits, with the subscriber number (the last 8 digits) beginning with 7. -->
3162         <nationalNumberPattern>
3163           1[1-9](?:
3164             7|
3165             9\d
3166           )\d{7}|
3167           (?:
3168             2[12478]|
3169             9[1-9]
3170           )9?[6-9]\d{7}|
3171           (?:
3172             3[1-578]|
3173             [468][1-9]|
3174             5[13-5]|
3175             7[13-579]
3176           )[6-9]\d{7}
3177         </nationalNumberPattern>
3178         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3179         <exampleNumber>11961234567</exampleNumber>
3180       </mobile>
3181       <tollFree>
3182         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
3183         <exampleNumber>800123456</exampleNumber>
3184       </tollFree>
3185       <premiumRate>
3186         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
3187         <exampleNumber>300123456</exampleNumber>
3188       </premiumRate>
3189       <sharedCost>
3190         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3191         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3192         <exampleNumber>40041234</exampleNumber>
3193       </sharedCost>
3194     </territory>
3195
3196     <!-- Bahamas -->
3197     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
3198                internationalPrefix="011">
3199       <references>
3200         <sourceUrl>http://www.itu.int/oth/T0202000010/en</sourceUrl>
3201       </references>
3202       <generalDesc>
3203         <!-- NANPA country - uses US formatting rules -->
3204         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
3205         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3206       </generalDesc>
3207       <fixedLine>
3208         <nationalNumberPattern>
3209           242(?:
3210             3(?:
3211               02|
3212               [236][1-9]|
3213               4[0-24-9]|
3214               5[0-68]|
3215               7[3467]|
3216               8[0-4]|
3217               9[2-467]
3218             )|
3219             461|
3220             502|
3221             6(?:
3222               0[12]|
3223               12|
3224               7[67]|
3225               8[78]|
3226               9[89]
3227             )|
3228             702
3229           )\d{4}
3230         </nationalNumberPattern>
3231         <exampleNumber>2423456789</exampleNumber>
3232       </fixedLine>
3233       <mobile>
3234         <nationalNumberPattern>
3235           242(?:
3236             3(?:
3237               5[79]|
3238               [79]5
3239             )|
3240             4(?:
3241               [2-4][1-9]|
3242               5[1-8]|
3243               6[2-8]|
3244               7\d|
3245               81
3246             )|
3247             5(?:
3248               2[45]|
3249               3[35]|
3250               44|
3251               5[1-9]|
3252               65|
3253               77
3254             )|
3255             6[34]6|
3256             727
3257           )\d{4}
3258         </nationalNumberPattern>
3259         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3260         <exampleNumber>2423591234</exampleNumber>
3261       </mobile>
3262       <tollFree>
3263         <!-- 242 300 is a Domestic Toll Free service. -->
3264         <nationalNumberPattern>
3265           242300\d{4}|
3266           8(?:
3267             00|
3268             44|
3269             55|
3270             66|
3271             77|
3272             88
3273           )[2-9]\d{6}
3274         </nationalNumberPattern>
3275         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3276         <exampleNumber>8002123456</exampleNumber>
3277       </tollFree>
3278       <premiumRate>
3279         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3280         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3281         <exampleNumber>9002123456</exampleNumber>
3282       </premiumRate>
3283       <personalNumber>
3284         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3285         <nationalNumberPattern>
3286           5(?:
3287             00|
3288             33|
3289             44|
3290             66|
3291             77
3292           )[2-9]\d{6}
3293         </nationalNumberPattern>
3294         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3295         <exampleNumber>5002345678</exampleNumber>
3296       </personalNumber>
3297     </territory>
3298
3299     <!-- Bhutan -->
3300     <territory id="BT" countryCode="975" internationalPrefix="00">
3301       <references>
3302         <sourceUrl>http://www.itu.int/oth/T0202000019/en</sourceUrl>
3303       </references>
3304       <availableFormats>
3305         <!-- Format is from
3306              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
3307         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
3308           <leadingDigits>
3309             1|
3310             77
3311           </leadingDigits>
3312           <format>$1 $2 $3 $4</format>
3313         </numberFormat>
3314         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
3315           <leadingDigits>
3316             [2-68]|
3317             7[246]
3318           </leadingDigits>
3319           <format>$1 $2 $3</format>
3320         </numberFormat>
3321       </availableFormats>
3322       <generalDesc>
3323         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
3324         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
3325       </generalDesc>
3326       <fixedLine>
3327         <nationalNumberPattern>
3328           (?:
3329             2[3-6]|
3330             [34][5-7]|
3331             5[236]|
3332             6[2-46]|
3333             7[246]|
3334             8[2-4]
3335           )\d{5}
3336         </nationalNumberPattern>
3337         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
3338         <exampleNumber>2345678</exampleNumber>
3339       </fixedLine>
3340       <mobile>
3341         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
3342              is in use. -->
3343         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
3344         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3345         <exampleNumber>17123456</exampleNumber>
3346       </mobile>
3347       <!-- No information on other types of phone numbers for Bhutan has been found. -->
3348     </territory>
3349
3350     <!-- Botswana -->
3351     <territory id="BW" countryCode="267" internationalPrefix="00">
3352       <references>
3353         <sourceUrl>http://www.itu.int/oth/T020200001C/en</sourceUrl>
3354       </references>
3355       <availableFormats>
3356         <numberFormat pattern="(\d{3})(\d{4})">
3357           <leadingDigits>[2-6]</leadingDigits>
3358           <format>$1 $2</format>
3359         </numberFormat>
3360         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
3361           <leadingDigits>7</leadingDigits>
3362           <format>$1 $2 $3</format>
3363         </numberFormat>
3364         <numberFormat pattern="(90)(\d{5})">
3365           <leadingDigits>9</leadingDigits>
3366           <format>$1 $2</format>
3367         </numberFormat>
3368       </availableFormats>
3369       <generalDesc>
3370         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
3371         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3372       </generalDesc>
3373       <fixedLine>
3374         <nationalNumberPattern>
3375           (?:
3376             2(?:
3377               4[0-48]|
3378               6[0-24]|
3379               9[0578]
3380             )|
3381             3(?:
3382               1[0235-9]|
3383               55|
3384               6\d|
3385               7[01]|
3386               9[0-57]
3387             )|
3388             4(?:
3389               6[03]|
3390               7[1267]|
3391               9[0-5]
3392             )|
3393             5(?:
3394               3[0389]|
3395               4[0489]|
3396               7[1-47]|
3397               88|
3398               9[0-49]
3399             )|
3400             6(?:
3401               2[1-35]|
3402               5[149]|
3403               8[067]
3404             )
3405           )\d{4}
3406         </nationalNumberPattern>
3407         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3408         <exampleNumber>2401234</exampleNumber>
3409       </fixedLine>
3410       <mobile>
3411         <nationalNumberPattern>
3412           7(?:
3413             [1-356]\d|
3414             4[0-7]|
3415             7[014-7]
3416           )\d{5}
3417         </nationalNumberPattern>
3418         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3419         <exampleNumber>71123456</exampleNumber>
3420       </mobile>
3421       <!-- No reliable information about toll-free numbers can be found; many are written on the
3422            internet like 0800 123 456, but this is not supported by any documentation and no
3423            numbers can be found that actually work. -->
3424       <premiumRate>
3425         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
3426         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3427         <exampleNumber>9012345</exampleNumber>
3428       </premiumRate>
3429       <voip>
3430         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
3431         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3432         <exampleNumber>79101234</exampleNumber>
3433       </voip>
3434     </territory>
3435
3436     <!-- Belarus -->
3437     <!-- Information on national prefix provided by a Belarussian person. -->
3438     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
3439                internationalPrefix="810" nationalPrefixForParsing="8?0?"
3440                nationalPrefix="8" mobileNumberPortableRegion="true">
3441       <references>
3442         <sourceUrl>http://www.eng.beltelecom.by/en/subscribers/phone-codes</sourceUrl>
3443       </references>
3444       <availableFormats>
3445         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3446           pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
3447           <leadingDigits>
3448             17[0-3589]|
3449             2[4-9]|
3450             [34]
3451           </leadingDigits>
3452           <leadingDigits>
3453             17(?:
3454               [02358]|
3455               1[0-2]|
3456               9[0189]
3457             )|
3458             2[4-9]|
3459             [34]
3460           </leadingDigits>
3461           <format>$1 $2-$3-$4</format>
3462         </numberFormat>
3463         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3464           pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
3465           <leadingDigits>
3466             1(?:
3467               5[24]|
3468               6[235]|
3469               7[467]
3470             )|
3471             2(?:
3472               1[246]|
3473               2[25]|
3474               3[26]
3475             )
3476           </leadingDigits>
3477           <leadingDigits>
3478             1(?:
3479               5[24]|
3480               6(?:
3481                 2|
3482                 3[04-9]|
3483                 5[0346-9]
3484               )|
3485               7(?:
3486                 [46]|
3487                 7[37-9]
3488               )
3489             )|
3490             2(?:
3491               1[246]|
3492               2[25]|
3493               3[26]
3494             )
3495           </leadingDigits>
3496           <format>$1 $2-$3-$4</format>
3497         </numberFormat>
3498         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3499           pattern="(\d{4})(\d{2})(\d{3})">
3500           <leadingDigits>
3501             1(?:
3502               5[169]|
3503               6[3-5]|
3504               7[179]
3505             )|
3506             2(?:
3507               1[35]|
3508               2[34]|
3509               3[3-5]
3510             )
3511           </leadingDigits>
3512           <leadingDigits>
3513             1(?:
3514               5[169]|
3515               6(?:
3516                 3[1-3]|
3517                 4|
3518                 5[125]
3519               )|
3520               7(?:
3521                 1[3-9]|
3522                 7[0-24-6]|
3523                 9[2-7]
3524               )
3525             )|
3526             2(?:
3527               1[35]|
3528               2[34]|
3529               3[3-5]
3530             )
3531           </leadingDigits>
3532           <format>$1 $2-$3</format>
3533         </numberFormat>
3534         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3535           pattern="([89]\d{2})(\d{3})(\d{4})">
3536           <leadingDigits>
3537             8[01]|
3538             9
3539           </leadingDigits>
3540           <format>$1 $2 $3</format>
3541         </numberFormat>
3542         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3543           pattern="(8\d{2})(\d{4})(\d{4})">
3544           <leadingDigits>82</leadingDigits>
3545           <format>$1 $2 $3</format>
3546         </numberFormat>
3547       </availableFormats>
3548       <generalDesc>
3549         <nationalNumberPattern>
3550           [1-4]\d{8}|
3551           [89]\d{9,10}
3552         </nationalNumberPattern>
3553         <!-- Numbers are often written without the city code. -->
3554         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
3555       </generalDesc>
3556       <!-- Toll-free and premium rate numbers are not available from abroad. -->
3557       <noInternationalDialling>
3558         <nationalNumberPattern>
3559           8(?:
3560             [013]|
3561             [12]0
3562           )\d{8}|
3563           902\d{7}
3564         </nationalNumberPattern>
3565         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3566         <exampleNumber>82012345678</exampleNumber>
3567       </noInternationalDialling>
3568       <fixedLine>
3569         <nationalNumberPattern>
3570           (?:
3571             1(?:
3572               5(?:
3573                 1[1-5]|
3574                 [24]\d|
3575                 6[2-4]|
3576                 9[1-7]
3577               )|
3578               6(?:
3579                 [235]\d|
3580                 4[1-7]
3581               )|
3582               7\d{2}
3583             )|
3584             2(?:
3585               1(?:
3586                 [246]\d|
3587                 3[0-35-9]|
3588                 5[1-9]
3589               )|
3590               2(?:
3591                 [235]\d|
3592                 4[0-8]
3593               )|
3594               3(?:
3595                 [26]\d|
3596                 3[02-79]|
3597                 4[024-7]|
3598                 5[03-7]
3599               )
3600             )
3601           )\d{5}
3602         </nationalNumberPattern>
3603         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3604         <!-- Using test number for Grodno from the plan. -->
3605         <exampleNumber>152450911</exampleNumber>
3606       </fixedLine>
3607       <mobile>
3608         <nationalNumberPattern>
3609           (?:
3610             2(?:
3611               5[5679]|
3612               9[1-9]
3613             )|
3614             33\d|
3615             44\d
3616           )\d{6}
3617         </nationalNumberPattern>
3618         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3619         <!-- Using test number for BelCel from the plan. -->
3620         <exampleNumber>294911911</exampleNumber>
3621       </mobile>
3622       <tollFree>
3623         <!-- Putting Interactive Polling Service (free) here too. -->
3624         <nationalNumberPattern>
3625           8(?:
3626             0[13]|
3627             20\d
3628           )\d{7}
3629         </nationalNumberPattern>
3630         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3631         <exampleNumber>8011234567</exampleNumber>
3632       </tollFree>
3633       <premiumRate>
3634         <!-- Putting Interactive Polling Service (paid) here too. -->
3635         <nationalNumberPattern>
3636           (?:
3637             810|
3638             902
3639           )\d{7}
3640         </nationalNumberPattern>
3641         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3642         <exampleNumber>9021234567</exampleNumber>
3643       </premiumRate>
3644     </territory>
3645
3646     <!-- Belize -->
3647     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
3648          -->
3649     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
3650       <references>
3651         <sourceUrl>http://www.itu.int/oth/T0202000016/en</sourceUrl>
3652       </references>
3653       <availableFormats>
3654         <numberFormat pattern="(\d{3})(\d{4})">
3655           <leadingDigits>[2-8]</leadingDigits>
3656           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
3657           <format>$1-$2</format>
3658         </numberFormat>
3659         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
3660           <leadingDigits>0</leadingDigits>
3661           <format>$1-$2-$3-$4</format>
3662         </numberFormat>
3663       </availableFormats>
3664       <generalDesc>
3665         <nationalNumberPattern>
3666           [2-8]\d{6}|
3667           0\d{10}
3668         </nationalNumberPattern>
3669         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
3670       </generalDesc>
3671       <fixedLine>
3672         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
3673         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3674         <exampleNumber>2221234</exampleNumber>
3675       </fixedLine>
3676       <mobile>
3677         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
3678              to these numbers or many numbers have been found online. -->
3679         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
3680         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3681         <exampleNumber>6221234</exampleNumber>
3682       </mobile>
3683       <!-- We don't know how these would be dialled internationally - it is possible that they can't
3684            be dialled internationally at all - so we represent the leading 0 as part of the number.
3685            Information from http://www.belizetelemedia.net. -->
3686       <tollFree>
3687         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
3688         <possibleNumberPattern>\d{11}</possibleNumberPattern>
3689         <exampleNumber>08001234123</exampleNumber>
3690       </tollFree>
3691     </territory>
3692
3693     <!-- Canada -->
3694     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1"
3695                mobileNumberPortableRegion="true">
3696       <references>
3697         <sourceUrl>http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm</sourceUrl>
3698       </references>
3699       <generalDesc>
3700         <!-- NANPA country - uses US formatting rules -->
3701         <nationalNumberPattern>
3702           [2-9]\d{9}|
3703           3\d{6}
3704         </nationalNumberPattern>
3705         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3706       </generalDesc>
3707       <fixedLine>
3708         <nationalNumberPattern>
3709           (?:
3710             2(?:
3711               04|
3712               [23]6|
3713               [48]9|
3714               50
3715             )|
3716             3(?:
3717               06|
3718               43|
3719               65
3720             )|
3721             4(?:
3722               03|
3723               1[68]|
3724               3[178]|
3725               50
3726             )|
3727             5(?:
3728               06|
3729               1[49]|
3730               79|
3731               8[17]
3732             )|
3733             6(?:
3734               0[04]|
3735               13|
3736               39|
3737               47
3738             )|
3739             7(?:
3740               0[59]|
3741               78|
3742               8[02]
3743             )|
3744             8(?:
3745               [06]7|
3746               19|
3747               73
3748             )|
3749             90[25]
3750           )[2-9]\d{6}|
3751           310\d{4}
3752         </nationalNumberPattern>
3753         <exampleNumber>2042345678</exampleNumber>
3754       </fixedLine>
3755       <mobile>
3756         <nationalNumberPattern>
3757           (?:
3758             2(?:
3759               04|
3760               [23]6|
3761               [48]9|
3762               50
3763             )|
3764             3(?:
3765               06|
3766               43|
3767               65
3768             )|
3769             4(?:
3770               03|
3771               1[68]|
3772               3[178]|
3773               50
3774             )|
3775             5(?:
3776               06|
3777               1[49]|
3778               79|
3779               8[17]
3780             )|
3781             6(?:
3782               0[04]|
3783               13|
3784               39|
3785               47
3786             )|
3787             7(?:
3788               0[59]|
3789               78|
3790               8[02]
3791             )|
3792             8(?:
3793               [06]7|
3794               19|
3795               73
3796             )|
3797             90[25]
3798           )[2-9]\d{6}
3799         </nationalNumberPattern>
3800         <exampleNumber>2042345678</exampleNumber>
3801       </mobile>
3802       <tollFree>
3803         <nationalNumberPattern>
3804           8(?:
3805             00|
3806             44|
3807             55|
3808             66|
3809             77|
3810             88
3811           )[2-9]\d{6}|
3812           310\d{4}
3813         </nationalNumberPattern>
3814         <exampleNumber>8002123456</exampleNumber>
3815       </tollFree>
3816       <premiumRate>
3817         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3818         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3819         <exampleNumber>9002123456</exampleNumber>
3820       </premiumRate>
3821       <personalNumber>
3822         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3823         <nationalNumberPattern>
3824           5(?:
3825             00|
3826             33|
3827             44|
3828             66|
3829             77
3830           )[2-9]\d{6}
3831         </nationalNumberPattern>
3832         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3833         <exampleNumber>5002345678</exampleNumber>
3834       </personalNumber>
3835     </territory>
3836
3837     <!-- Cocos Islands -->
3838     <!-- Metadata shared with Australia. -->
3839     <!-- References state Cocos Islands have fixed line numbers starting +61 8 9162. -->
3840     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
3841                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
3842                nationalPrefix="0">
3843       <references>
3844         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
3845         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
3846       </references>
3847       <!-- Uses AU formatting rules. -->
3848       <!-- General desc and fixed line rules different from Australia. -->
3849       <generalDesc>
3850         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
3851         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3852       </generalDesc>
3853       <fixedLine>
3854         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
3855         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
3856         <exampleNumber>891621234</exampleNumber>
3857       </fixedLine>
3858       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
3859       <mobile>
3860         <nationalNumberPattern>
3861           14(?:
3862             5\d|
3863             71
3864           )\d{5}|
3865           4(?:
3866             [0-2]\d|
3867             3[0-57-9]|
3868             4[47-9]|
3869             5[0-25-9]|
3870             6[6-9]|
3871             7[03-9]|
3872             8[17-9]|
3873             9[017-9]
3874           )\d{6}
3875         </nationalNumberPattern>
3876         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3877         <exampleNumber>412345678</exampleNumber>
3878       </mobile>
3879       <tollFree>
3880         <nationalNumberPattern>
3881           1(?:
3882             80(?:
3883               0\d{2}
3884             )?|
3885             3(?:
3886               00\d{2}
3887             )?
3888           )\d{4}
3889         </nationalNumberPattern>
3890         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3891         <exampleNumber>1800123456</exampleNumber>
3892       </tollFree>
3893       <premiumRate>
3894         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
3895         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3896         <exampleNumber>1900123456</exampleNumber>
3897       </premiumRate>
3898       <personalNumber>
3899         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
3900         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3901         <exampleNumber>500123456</exampleNumber>
3902       </personalNumber>
3903       <voip>
3904         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
3905         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3906         <exampleNumber>550123456</exampleNumber>
3907       </voip>
3908     </territory>
3909
3910     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
3911     <territory id="CD" countryCode="243" internationalPrefix="00"
3912                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
3913       <references>
3914         <sourceUrl>http://www.itu.int/oth/T0202000037/en</sourceUrl>
3915       </references>
3916       <availableFormats>
3917         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3918           <leadingDigits>12</leadingDigits>
3919           <format>$1 $2 $3</format>
3920         </numberFormat>
3921         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
3922           <leadingDigits>
3923             8[0-2459]|
3924             9
3925           </leadingDigits>
3926           <format>$1 $2 $3</format>
3927         </numberFormat>
3928         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
3929           <leadingDigits>88</leadingDigits>
3930           <format>$1 $2 $3</format>
3931         </numberFormat>
3932         <numberFormat pattern="(\d{2})(\d{5})">
3933           <leadingDigits>[1-6]</leadingDigits>
3934           <format>$1 $2</format>
3935         </numberFormat>
3936       </availableFormats>
3937       <generalDesc>
3938         <nationalNumberPattern>
3939           [2-6]\d{6}|
3940           [18]\d{6,8}|
3941           9\d{8}
3942         </nationalNumberPattern>
3943         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3944       </generalDesc>
3945       <fixedLine>
3946         <nationalNumberPattern>
3947           1(?:
3948             2\d{7}|
3949             \d{6}
3950           )|
3951           [2-6]\d{6}
3952         </nationalNumberPattern>
3953         <exampleNumber>1234567</exampleNumber>
3954       </fixedLine>
3955       <mobile>
3956         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
3957              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
3958              holdings company http://www.timeturnsholdings.com/products does not show a link for
3959              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
3960              tried were valid. If the holdings company does not respond to requests about this
3961              range and unless we receive further information, we will remove this range. -->
3962         <nationalNumberPattern>
3963           8(?:
3964             [0-2459]\d{2}|
3965             8
3966           )\d{5}|
3967           9[7-9]\d{7}
3968         </nationalNumberPattern>
3969         <exampleNumber>991234567</exampleNumber>
3970       </mobile>
3971     </territory>
3972
3973     <!-- Central African Republic -->
3974     <territory id="CF" countryCode="236" internationalPrefix="00">
3975       <references>
3976         <sourceUrl>http://www.itu.int/oth/T0202000028/en</sourceUrl>
3977       </references>
3978       <availableFormats>
3979         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
3980           <format>$1 $2 $3 $4</format>
3981         </numberFormat>
3982       </availableFormats>
3983       <generalDesc>
3984         <nationalNumberPattern>[278]\d{7}</nationalNumberPattern>
3985         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3986       </generalDesc>
3987       <fixedLine>
3988         <nationalNumberPattern>2[12]\d{6}</nationalNumberPattern>
3989         <exampleNumber>21612345</exampleNumber>
3990       </fixedLine>
3991       <mobile>
3992         <nationalNumberPattern>7[0257]\d{6}</nationalNumberPattern>
3993         <exampleNumber>70012345</exampleNumber>
3994       </mobile>
3995       <premiumRate>
3996         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
3997         <exampleNumber>87761234</exampleNumber>
3998       </premiumRate>
3999     </territory>
4000
4001     <!-- Congo (Rep. of the) (Brazzaville) -->
4002     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
4003       <references>
4004         <sourceUrl>http://www.itu.int/oth/T020200002E/en</sourceUrl>
4005       </references>
4006       <availableFormats>
4007         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
4008           <leadingDigits>[02]</leadingDigits>
4009           <format>$1 $2 $3</format>
4010         </numberFormat>
4011         <numberFormat pattern="(\d)(\d{4})(\d{4})">
4012           <leadingDigits>8</leadingDigits>
4013           <format>$1 $2 $3</format>
4014         </numberFormat>
4015       </availableFormats>
4016       <generalDesc>
4017         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
4018         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4019       </generalDesc>
4020       <fixedLine>
4021         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
4022         <exampleNumber>222123456</exampleNumber>
4023       </fixedLine>
4024       <mobile>
4025         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
4026         <exampleNumber>061234567</exampleNumber>
4027       </mobile>
4028       <!-- Referred to as a "Green number" in the telephone plan. -->
4029       <tollFree>
4030         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4031         <exampleNumber>800123456</exampleNumber>
4032       </tollFree>
4033     </territory>
4034
4035     <!-- Switzerland -->
4036     <territory id="CH" countryCode="41" internationalPrefix="00"
4037                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG"
4038                mobileNumberPortableRegion="true">
4039       <references>
4040         <!-- Under Technical prescriptions: Numbering plan for international carriers. -->
4041         <sourceUrl>http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en</sourceUrl>
4042       </references>
4043       <availableFormats>
4044         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
4045           <leadingDigits>
4046             [2-7]|
4047             [89]1
4048           </leadingDigits>
4049           <format>$1 $2 $3 $4</format>
4050         </numberFormat>
4051         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4052           <leadingDigits>
4053             8[047]|
4054             90
4055           </leadingDigits>
4056           <format>$1 $2 $3</format>
4057         </numberFormat>
4058         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
4059           <leadingDigits>860</leadingDigits>
4060           <format>$1 $2 $3 $4 $5</format>
4061         </numberFormat>
4062       </availableFormats>
4063       <generalDesc>
4064         <nationalNumberPattern>
4065           [2-9]\d{8}|
4066           860\d{9}
4067         </nationalNumberPattern>
4068         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
4069       </generalDesc>
4070       <fixedLine>
4071         <nationalNumberPattern>
4072           (?:
4073             2[12467]|
4074             3[1-4]|
4075             4[134]|
4076             5[256]|
4077             6[12]|
4078             [7-9]1
4079           )\d{7}
4080         </nationalNumberPattern>
4081         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4082         <exampleNumber>212345678</exampleNumber>
4083       </fixedLine>
4084       <mobile>
4085         <nationalNumberPattern>7[5-9]\d{7}</nationalNumberPattern>
4086         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4087         <exampleNumber>781234567</exampleNumber>
4088       </mobile>
4089       <pager>
4090         <!-- https://www.eofcom.admin.ch/eofcom/public/listEofcom_e164Allocated.do -->
4091         <nationalNumberPattern>74[0248]\d{6}</nationalNumberPattern>
4092         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4093         <exampleNumber>740123456</exampleNumber>
4094       </pager>
4095       <tollFree>
4096         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4097         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4098         <exampleNumber>800123456</exampleNumber>
4099       </tollFree>
4100       <premiumRate>
4101         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
4102         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4103         <exampleNumber>900123456</exampleNumber>
4104       </premiumRate>
4105       <sharedCost>
4106         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
4107         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4108         <exampleNumber>840123456</exampleNumber>
4109       </sharedCost>
4110       <personalNumber>
4111         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
4112         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4113         <exampleNumber>878123456</exampleNumber>
4114       </personalNumber>
4115       <uan>
4116         <!-- Used for corporate networks. -->
4117         <nationalNumberPattern>5[18]\d{7}</nationalNumberPattern>
4118         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4119         <exampleNumber>581234567</exampleNumber>
4120       </uan>
4121       <voicemail>
4122         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
4123         <possibleNumberPattern>\d{12}</possibleNumberPattern>
4124         <exampleNumber>860123456789</exampleNumber>
4125       </voicemail>
4126     </territory>
4127
4128     <!-- Côte d'Ivoire -->
4129     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
4130       <references>
4131         <sourceUrl>http://www.itu.int/oth/T0202000031/en</sourceUrl>
4132       </references>
4133       <availableFormats>
4134         <!-- Using format from online yellow pages over format implied in national numbering plan.
4135              -->
4136         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4137           <format>$1 $2 $3 $4</format>
4138         </numberFormat>
4139       </availableFormats>
4140       <generalDesc>
4141         <nationalNumberPattern>[02-7]\d{7}</nationalNumberPattern>
4142         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4143       </generalDesc>
4144       <fixedLine>
4145         <nationalNumberPattern>
4146           (?:
4147             2(?:
4148               0[023]|
4149               1[02357]|
4150               [23][045]|
4151               4[03-5]
4152             )|
4153             3(?:
4154               0[06]|
4155               1[069]|
4156               [2-4][07]|
4157               5[09]|
4158               6[08]
4159             )
4160           )\d{5}
4161         </nationalNumberPattern>
4162         <exampleNumber>21234567</exampleNumber>
4163       </fixedLine>
4164       <mobile>
4165         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 6[15] because SMS messages have been
4166              successfully delivered. Supported by numbers found on the internet. The prefix 56 was
4167              assigned to MTN in July 2013:
4168              http://www.atci.ci/images/stories/pdf/decisions-dg/decision_002.pdf
4169              The prefix 75 is from an open-source bug report.
4170              50 has been removed since Warid seems to have stopped operation in Côte d'Ivoire. -->
4171           <nationalNumberPattern>
4172           (?:
4173             0[1-9]|
4174             4[0-24-9]|
4175             5[4-9]|
4176             6[015-79]|
4177             7[57]
4178           )\d{6}
4179         </nationalNumberPattern>
4180         <exampleNumber>01234567</exampleNumber>
4181       </mobile>
4182     </territory>
4183
4184     <!-- Cook Islands -->
4185     <territory id="CK" countryCode="682" internationalPrefix="00">
4186       <references>
4187         <sourceUrl>http://www.itu.int/oth/T020200002F/en</sourceUrl>
4188       </references>
4189       <availableFormats>
4190         <numberFormat pattern="(\d{2})(\d{3})">
4191           <format>$1 $2</format>
4192         </numberFormat>
4193       </availableFormats>
4194       <generalDesc>
4195         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
4196         <possibleNumberPattern>\d{5}</possibleNumberPattern>
4197       </generalDesc>
4198       <fixedLine>
4199         <nationalNumberPattern>
4200           (?:
4201             2\d|
4202             3[13-7]|
4203             4[1-5]
4204           )\d{3}
4205         </nationalNumberPattern>
4206         <exampleNumber>21234</exampleNumber>
4207       </fixedLine>
4208       <mobile>
4209         <nationalNumberPattern>
4210           (?:
4211             5[0-68]|
4212             7\d
4213           )\d{3}
4214         </nationalNumberPattern>
4215         <exampleNumber>71234</exampleNumber>
4216       </mobile>
4217     </territory>
4218
4219     <!-- Chile -->
4220     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
4221     <territory id="CL" countryCode="56"
4222                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
4223                nationalPrefix="0"
4224                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
4225                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
4226       <references>
4227         <sourceUrl>http://www.itu.int/oth/T020200002A/en</sourceUrl>
4228         <sourceUrl>http://en.wikipedia.org/wiki/%2B56</sourceUrl>
4229         <sourceUrl>http://www.subtel.gob.cl/base_numeracion/tabla_numeracion_ido_idd.xlsx</sourceUrl>
4230       </references>
4231       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
4232            we strip here. National destinations may be dialled with a carrier if they are not local
4233            so we extract these carrier codes as well. -->
4234       <availableFormats>
4235         <numberFormat pattern="(\d)(\d{4})(\d{4})"
4236           nationalPrefixFormattingRule="($FG)"
4237           carrierCodeFormattingRule="$CC ($FG)">
4238           <leadingDigits>22</leadingDigits>
4239           <format>$1 $2 $3</format>
4240         </numberFormat>
4241         <numberFormat pattern="(\d{2})(\d{3})(\d{4})"
4242           nationalPrefixFormattingRule="($FG)"
4243           carrierCodeFormattingRule="$CC ($FG)">
4244           <leadingDigits>
4245             [357]|
4246             4[1-35]|
4247             6[13-57]
4248           </leadingDigits>
4249           <format>$1 $2 $3</format>
4250         </numberFormat>
4251         <numberFormat pattern="(9)(\d{4})(\d{4})">
4252           <leadingDigits>9</leadingDigits>
4253           <format>$1 $2 $3</format>
4254         </numberFormat>
4255         <numberFormat pattern="(44)(\d{3})(\d{4})">
4256           <leadingDigits>44</leadingDigits>
4257           <format>$1 $2 $3</format>
4258         </numberFormat>
4259         <numberFormat nationalPrefixFormattingRule="$FG"
4260           pattern="([68]00)(\d{3})(\d{3,4})">
4261           <leadingDigits>
4262             60|
4263             8
4264           </leadingDigits>
4265           <format>$1 $2 $3</format>
4266         </numberFormat>
4267         <numberFormat nationalPrefixFormattingRule="$FG"
4268           pattern="(600)(\d{3})(\d{2})(\d{3})">
4269           <leadingDigits>60</leadingDigits>
4270           <format>$1 $2 $3 $4</format>
4271         </numberFormat>
4272         <numberFormat nationalPrefixFormattingRule="$FG"
4273           pattern="(1230)(\d{3})(\d{4})">
4274           <leadingDigits>1</leadingDigits>
4275           <format>$1 $2 $3</format>
4276         </numberFormat>
4277         <numberFormat pattern="(\d{5})(\d{4})"
4278           nationalPrefixFormattingRule="($FG)"
4279           carrierCodeFormattingRule="$CC ($FG)">
4280           <leadingDigits>219</leadingDigits>
4281           <format>$1 $2</format>
4282         </numberFormat>
4283         <!-- Format some short numbers as a block. -->
4284         <numberFormat nationalPrefixFormattingRule="$FG"
4285           pattern="(\d{4,5})">
4286           <leadingDigits>[1-9]</leadingDigits>
4287           <format>$1</format>
4288           <intlFormat>NA</intlFormat>
4289         </numberFormat>
4290       </availableFormats>
4291       <generalDesc>
4292         <nationalNumberPattern>
4293           (?:
4294             [2-9]|
4295             600|
4296             123
4297           )\d{7,8}
4298         </nationalNumberPattern>
4299         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4300       </generalDesc>
4301       <noInternationalDialling>
4302         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4303         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4304         <exampleNumber>6001234567</exampleNumber>
4305       </noInternationalDialling>
4306       <fixedLine>
4307         <!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by
4308              inserting a '2' after the area code (which are 2 digits, with the exception of '2').
4309              As of Aug. 2014, all of the prefixes have been switched over to the new plan.
4310              IMPORTANT: The fact that Santiago numbers have a prefix of "22", and that numbers in
4311              other areas have '2' as their third digit, is likely to change in the future. At some
4312              stage, Santiago numbers will probably switch to prefix "2\d", and the third digit in
4313              other areas will probably be allowed to take on other values.
4314              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
4315                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
4316              -->
4317         <nationalNumberPattern>
4318           2(?:
4319             2\d{7}|
4320             1962\d{4}
4321           )|
4322           (?:
4323             3[2-5]|
4324             [47][1-35]|
4325             5[1-3578]|
4326             6[13-57]
4327           )\d{7}
4328         </nationalNumberPattern>
4329         <!-- Area codes do not need to be dialled when dialling within the same area, so the
4330              smallest possible number is length 7. -->
4331         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4332         <exampleNumber>221234567</exampleNumber>
4333       </fixedLine>
4334       <mobile>
4335         <nationalNumberPattern>9[4-9]\d{7}</nationalNumberPattern>
4336         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4337         <exampleNumber>961234567</exampleNumber>
4338       </mobile>
4339       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
4340            from a definitive source. -->
4341       <tollFree>
4342         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
4343         <nationalNumberPattern>
4344           800\d{6}|
4345           1230\d{7}
4346         </nationalNumberPattern>
4347         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
4348         <exampleNumber>800123456</exampleNumber>
4349       </tollFree>
4350       <sharedCost>
4351         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
4352         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4353         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4354         <exampleNumber>6001234567</exampleNumber>
4355       </sharedCost>
4356       <voip>
4357         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
4358         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4359         <exampleNumber>441234567</exampleNumber>
4360       </voip>
4361     </territory>
4362
4363     <!-- Cameroon -->
4364     <territory id="CM" countryCode="237" internationalPrefix="00">
4365       <references>
4366         <sourceUrl>http://www.itu.int/oth/T0202000024/en</sourceUrl>
4367         <sourceUrl>http://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-OB.1063-2014-OAS-PDF-E.pdf</sourceUrl>
4368       </references>
4369       <availableFormats>
4370         <!-- Formatting in the ITU update document aligns with formatting online (all 2 digit
4371              groups). For the new number format with 9 digits the first digit has it's own group.
4372              -->
4373         <numberFormat pattern="([26])(\d{2})(\d{2})(\d{2})(\d{2})">
4374           <leadingDigits>[26]</leadingDigits>
4375           <format>$1 $2 $3 $4 $5</format>
4376         </numberFormat>
4377         <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
4378           <leadingDigits>
4379             [23579]|
4380             88
4381           </leadingDigits>
4382           <format>$1 $2 $3 $4</format>
4383         </numberFormat>
4384         <numberFormat pattern="(800)(\d{2})(\d{3})">
4385           <leadingDigits>80</leadingDigits>
4386           <format>$1 $2 $3</format>
4387         </numberFormat>
4388       </availableFormats>
4389       <generalDesc>
4390         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
4391         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4392       </generalDesc>
4393       <fixedLine>
4394         <!-- Temporarily allow both old (22|33) and new 2(22|33) format. -->
4395         <!-- CDMA numbers are described in a subcategory to fixed line numbers in the ITU update
4396              document, so those prefixes are added to fixed line (24[23]). -->
4397         <nationalNumberPattern>
4398           2(?:
4399              22|
4400              33|
4401              4[23]
4402           )\d{6}|
4403           (?:
4404             22|
4405             33
4406           )\d{6}
4407         </nationalNumberPattern>
4408         <exampleNumber>222123456</exampleNumber>
4409       </fixedLine>
4410       <mobile>
4411         <!-- Temporarily allow both old [579]\d{7} and new 6[5-79]\d{7} format. -->
4412         <nationalNumberPattern>
4413           6[5-79]\d{7}|
4414           [579]\d{7}
4415         </nationalNumberPattern>
4416         <exampleNumber>671234567</exampleNumber>
4417       </mobile>
4418       <tollFree>
4419         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
4420         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4421         <exampleNumber>80012345</exampleNumber>
4422       </tollFree>
4423       <premiumRate>
4424         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
4425              with 88 (usually 880). No information can be found as to whether these are premium rate
4426              or shared cost. -->
4427         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
4428         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4429         <exampleNumber>88012345</exampleNumber>
4430       </premiumRate>
4431     </territory>
4432
4433     <!-- China -->
4434     <territory id="CN" countryCode="86" internationalPrefix="(1[1279]\d{3})?00"
4435                preferredInternationalPrefix="00" nationalPrefix="0"
4436                nationalPrefixForParsing="(1[1279]\d{3})|0">
4437       <references>
4438         <sourceUrl>http://www.itu.int/oth/T020200002B/en</sourceUrl>
4439       </references>
4440       <availableFormats>
4441         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
4442                       nationalPrefixOptionalWhenFormatting="true"
4443                       carrierCodeFormattingRule="$CC $FG">
4444           <leadingDigits>80[2678]</leadingDigits>
4445           <format>$1 $2</format>
4446         </numberFormat>
4447         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
4448           <leadingDigits>[48]00</leadingDigits>
4449           <format>$1 $2 $3</format>
4450         </numberFormat>
4451         <!-- 100xx and 95xxx(x) short numbers without area codes. Without this rule, these short
4452              numbers will be formatted incorrectly by the AsYouTypeFormatter because they overlap
4453              with area codes 010, 095x. These numbers are defined in ShortNumberMetadata.xml but
4454              must be accounted for here. Note although ITU says the format is more like 95 xxx, in
4455              reality no space is used when writing such numbers in China. -->
4456         <numberFormat pattern="(\d{5,6})">
4457           <leadingDigits>
4458             100|
4459             95
4460           </leadingDigits>
4461           <format>$1</format>
4462           <intlFormat>NA</intlFormat>
4463         </numberFormat>
4464         <!-- 100xx and 95xxx(x) numbers with area codes (these numbers without an area code are now
4465              dealt with by ShortNumberMetadata.xml) and 96xxx(x) numbers with area codes (we don't
4466              support these as short numbers because they are only unique within a province, not
4467              within a country). -->
4468         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
4469                       carrierCodeFormattingRule="$CC $FG">
4470           <leadingDigits>
4471             (?:
4472               10|
4473               2\d
4474             )[19]
4475           </leadingDigits>
4476           <leadingDigits>
4477             (?:
4478               10|
4479               2\d
4480             )(?:
4481               10|
4482               9[56]
4483             )
4484           </leadingDigits>
4485           <leadingDigits>
4486             (?:
4487               10|
4488               2\d
4489             )(?:
4490               100|
4491               9[56]
4492             )
4493           </leadingDigits>
4494           <format>$1 $2</format>
4495         </numberFormat>
4496         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{5,6})"
4497                       carrierCodeFormattingRule="$CC $FG">
4498           <leadingDigits>[3-9]</leadingDigits>
4499           <leadingDigits>[3-9]\d{2}[19]</leadingDigits>
4500           <leadingDigits>
4501             [3-9]\d{2}(?:
4502               10|
4503               9[56]
4504             )
4505           </leadingDigits>
4506           <format>$1 $2</format>
4507         </numberFormat>
4508         <!-- Local numbers -->
4509         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
4510              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
4511              people frequently store them in their cellphones. It has to stay before formatting
4512              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
4513              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
4514         <numberFormat pattern="(\d{3,4})(\d{4})">
4515           <leadingDigits>[2-9]</leadingDigits>
4516           <format>$1 $2</format>
4517           <intlFormat>NA</intlFormat>
4518         </numberFormat>
4519         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
4520                       nationalPrefixOptionalWhenFormatting="true"
4521                       carrierCodeFormattingRule="$CC $FG">
4522           <leadingDigits>21</leadingDigits>
4523           <format>$1 $2 $3</format>
4524         </numberFormat>
4525         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
4526                       nationalPrefixOptionalWhenFormatting="true"
4527                       carrierCodeFormattingRule="$CC $FG">
4528           <leadingDigits>
4529             10[1-9]|
4530             2[02-9]
4531           </leadingDigits>
4532           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
4533           <leadingDigits>
4534             10[1-9]|
4535             2[02-9]
4536           </leadingDigits>
4537           <leadingDigits>
4538             10(?:
4539               [1-79]|
4540               8(?:
4541                 [1-9]|
4542                 0[1-9]
4543               )
4544             )|
4545             2[02-9]
4546           </leadingDigits>
4547           <format>$1 $2 $3</format>
4548         </numberFormat>
4549         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
4550                       nationalPrefixOptionalWhenFormatting="true"
4551                       carrierCodeFormattingRule="$CC $FG">
4552           <leadingDigits>
4553             3(?:
4554               11|
4555               7[179]
4556             )|
4557             4(?:
4558               [15]1|
4559               3[12]
4560             )|
4561             5(?:
4562               1|
4563               2[37]|
4564               3[12]|
4565               51|
4566               7[13-79]|
4567               9[15]
4568             )|
4569             7(?:
4570               31|
4571               5[457]|
4572               6[09]|
4573               91
4574             )|
4575             8(?:
4576               71|
4577               98
4578             )
4579           </leadingDigits>
4580           <format>$1 $2 $3</format>
4581         </numberFormat>
4582         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
4583                       nationalPrefixOptionalWhenFormatting="true"
4584                       carrierCodeFormattingRule="$CC $FG">
4585           <leadingDigits>
4586             3(?:
4587               1[02-9]|
4588               35|
4589               49|
4590               5|
4591               7[02-68]|
4592               9[1-68]
4593             )|
4594             4(?:
4595               1[02-9]|
4596               2[179]|
4597               [35][2-9]|
4598               6[4789]|
4599               7\d|
4600               8[23]
4601             )|
4602             5(?:
4603               3[03-9]|
4604               4[36]|
4605               5[02-9]|
4606               6[1-46]|
4607               7[028]|
4608               80|
4609               9[2-46-9]
4610             )|
4611             6(?:
4612               3[1-5]|
4613               6[0238]|
4614               9[12]
4615             )|
4616             7(?:
4617               01|
4618               [1579]|
4619               2[248]|
4620               3[04-9]|
4621               4[3-6]|
4622               6[2368]
4623             )|
4624             8(?:
4625               1[236-8]|
4626               2[5-7]|
4627               3|
4628               5[1-9]|
4629               7[02-9]|
4630               8[3678]|
4631               9[1-7]
4632             )|
4633             9(?:
4634               0[1-3689]|
4635               1[1-79]|
4636               [379]|
4637               4[13]|
4638               5[1-5]
4639             )
4640           </leadingDigits>
4641           <format>$1 $2 $3</format>
4642         </numberFormat>
4643         <numberFormat pattern="(\d{3})(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
4644           <leadingDigits>1[3-578]</leadingDigits>
4645           <format>$1 $2 $3</format>
4646         </numberFormat>
4647         <numberFormat pattern="(10800)(\d{3})(\d{4})">
4648           <leadingDigits>108</leadingDigits>
4649           <leadingDigits>1080</leadingDigits>
4650           <leadingDigits>10800</leadingDigits>
4651           <format>$1 $2 $3</format>
4652         </numberFormat>
4653       </availableFormats>
4654       <generalDesc>
4655         <nationalNumberPattern>
4656           [1-7]\d{6,11}|
4657           8[0-357-9]\d{6,9}|
4658           9\d{7,9}
4659         </nationalNumberPattern>
4660         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
4661       </generalDesc>
4662       <noInternationalDialling>
4663         <nationalNumberPattern>
4664           (?:
4665             4|
4666             (?:
4667               10
4668             )?8
4669           )00\d{7}
4670         </nationalNumberPattern>
4671         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4672         <exampleNumber>4001234567</exampleNumber>
4673       </noInternationalDialling>
4674       <fixedLine>
4675         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
4676              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
4677              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
4678              in the ITU data.
4679              10xxx and 95xxx(x) numbers with area codes are also included here, as they behave
4680              exactly like fixed-line numbers. We don't support them for 4-digit area codes though,
4681              as they don't seem to be used there based on making actual phone calls.
4682          -->
4683         <nationalNumberPattern>
4684           21(?:
4685             100\d{2}|
4686             95\d{3,4}|
4687             \d{8,10}
4688           )|
4689           (?:
4690             10|
4691             2[02-57-9]|
4692             3(?:
4693               11|
4694               7[179]
4695             )|
4696             4(?:
4697               [15]1|
4698               3[12]
4699             )|
4700             5(?:
4701               1\d|
4702               2[37]|
4703               3[12]|
4704               51|
4705               7[13-79]|
4706               9[15]
4707             )|
4708             7(?:
4709               31|
4710               5[457]|
4711               6[09]|
4712               91
4713             )|
4714             8(?:
4715               71|
4716               98
4717             )
4718           )(?:
4719             100\d{2}|
4720             95\d{3,4}|
4721             \d{8}
4722           )|
4723           (?:
4724             3(?:
4725               1[02-9]|
4726               35|
4727               49|
4728               5\d|
4729               7[02-68]|
4730               9[1-68]
4731             )|
4732             4(?:
4733               1[02-9]|
4734               2[179]|
4735               3[3-9]|
4736               5[2-9]|
4737               6[4789]|
4738               7\d|
4739               8[23]
4740             )|
4741             5(?:
4742               3[03-9]|
4743               4[36]|
4744               5[02-9]|
4745               6[1-46]|
4746               7[028]|
4747               80|
4748               9[2-46-9]
4749             )|
4750             6(?:
4751               3[1-5]|
4752               6[0238]|
4753               9[12]
4754             )|
4755             7(?:
4756               01|
4757               [17]\d|
4758               2[248]|
4759               3[04-9]|
4760               4[3-6]|
4761               5[0-3689]|
4762               6[2368]|
4763               9[02-9]
4764             )|
4765             8(?:
4766               1[236-8]|
4767               2[5-7]|
4768               3\d|
4769               5[1-9]|
4770               7[02-9]|
4771               8[3678]|
4772               9[1-7]
4773             )|
4774             9(?:
4775               0[1-3689]|
4776               1[1-79]|
4777               [379]\d|
4778               4[13]|
4779               5[1-5]
4780             )
4781           )(?:
4782             100\d{2}|
4783             95\d{3,4}|
4784             \d{7}
4785           )|
4786           80(?:
4787             29|
4788             6[03578]|
4789             7[018]|
4790             81
4791           )\d{4}
4792         </nationalNumberPattern>
4793         <exampleNumber>1012345678</exampleNumber>
4794       </fixedLine>
4795       <mobile>
4796         <!-- 170, 176, 177 and 178 prefixes are introduced in early 2014 for 4G networks. -->
4797         <nationalNumberPattern>
4798           1(?:
4799             [38]\d|
4800             4[57]|
4801             5[0-35-9]|
4802             7[06-8]
4803           )\d{8}
4804         </nationalNumberPattern>
4805         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4806         <exampleNumber>13123456789</exampleNumber>
4807       </mobile>
4808       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
4809            number plan, and do not seem to have been standardized. The information below is
4810            collected from searching the web. -->
4811       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
4812       <tollFree>
4813         <nationalNumberPattern>
4814           (?:
4815             10
4816           )?800\d{7}
4817         </nationalNumberPattern>
4818         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4819         <exampleNumber>8001234567</exampleNumber>
4820       </tollFree>
4821       <premiumRate>
4822         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
4823         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4824         <exampleNumber>16812345</exampleNumber>
4825       </premiumRate>
4826       <sharedCost>
4827         <!-- 96xxx(x) numbers with area codes are included here. Their costs are not well
4828              documented, but they are thought to be mostly local costs with certain exceptions. We
4829              don't support them for 4-digit area codes though, as they don't seem to be used there
4830              based on online searches. -->
4831         <nationalNumberPattern>
4832           400\d{7}|
4833           (?:
4834             10|
4835             2[0-57-9]|
4836             3(?:
4837               [157]\d|
4838               35|
4839               49|
4840               9[1-68]
4841             )|
4842             4(?:
4843               [17]\d|
4844               2[179]|
4845               [35][1-9]|
4846               6[4789]|
4847               8[23]
4848             )|
4849             5(?:
4850               [1357]\d|
4851               2[37]|
4852               4[36]|
4853               6[1-46]|
4854               80|
4855               9[1-9]
4856             )|
4857             6(?:
4858               3[1-5]|
4859               6[0238]|
4860               9[12]
4861             )|
4862             7(?:
4863               01|
4864               [1579]\d|
4865               2[248]|
4866               3[014-9]|
4867               4[3-6]|
4868               6[023689]
4869             )|
4870             8(?:
4871               1[236-8]|
4872               2[5-7]|
4873               [37]\d|
4874               5[1-9]|
4875               8[3678]|
4876               9[1-8]
4877             )|
4878             9(?:
4879               0[1-3689]|
4880               1[1-79]|
4881               [379]\d|
4882               4[13]|
4883               5[1-5]
4884             )
4885           )96\d{3,4}
4886         </nationalNumberPattern>
4887         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
4888         <exampleNumber>4001234567</exampleNumber>
4889       </sharedCost>
4890     </territory>
4891
4892     <!-- Colombia -->
4893     <!-- Extra international dialling prefixes from http://www.claro.com.co and
4894          http://www.tigo.com.co. -->
4895     <!-- 05 and 005 are for Orbitel: co.orbitel.com -->
4896     <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])"
4897                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?"
4898                mobileNumberPortableRegion="true">
4899       <references>
4900         <sourceUrl>http://www.itu.int/oth/T020200002C/en</sourceUrl>
4901         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia</sourceUrl>
4902       </references>
4903       <availableFormats>
4904         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
4905           nationalPrefixFormattingRule="($FG)">
4906           <leadingDigits>
4907             1(?:
4908               8[2-9]|
4909               9[0-3]|
4910               [2-7]
4911             )|
4912             [24-8]
4913           </leadingDigits>
4914           <leadingDigits>
4915             1(?:
4916               8[2-9]|
4917               9(?:
4918                 09|
4919                 [1-3]
4920               )|
4921               [2-7]
4922             )|
4923             [24-8]
4924           </leadingDigits>
4925           <format>$1 $2</format>
4926         </numberFormat>
4927         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
4928           <leadingDigits>3</leadingDigits>
4929           <format>$1 $2</format>
4930         </numberFormat>
4931         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
4932           <leadingDigits>
4933             1(?:
4934               80|
4935               9[04]
4936             )
4937           </leadingDigits>
4938           <leadingDigits>
4939             1(?:
4940               800|
4941               9(?:
4942                 0[01]|
4943                 4[78]
4944               )
4945             )
4946           </leadingDigits>
4947           <format>$1-$2-$3</format>
4948           <intlFormat>$1 $2 $3</intlFormat>
4949         </numberFormat>
4950       </availableFormats>
4951       <generalDesc>
4952         <nationalNumberPattern>
4953           (?:
4954             [13]\d{0,3}|
4955             [24-8]
4956           )\d{7}
4957         </nationalNumberPattern>
4958         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4959       </generalDesc>
4960       <fixedLine>
4961         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
4962         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4963         <exampleNumber>12345678</exampleNumber>
4964       </fixedLine>
4965       <mobile>
4966         <nationalNumberPattern>
4967           3(?:
4968             0[0-5]|
4969             1\d|
4970             2[0-2]|
4971             5[01]
4972           )\d{7}
4973         </nationalNumberPattern>
4974         <possibleNumberPattern>\d{10}</possibleNumberPattern>
4975         <exampleNumber>3211234567</exampleNumber>
4976       </mobile>
4977       <tollFree>
4978         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
4979         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4980         <exampleNumber>18001234567</exampleNumber>
4981       </tollFree>
4982       <premiumRate>
4983         <nationalNumberPattern>
4984           19(?:
4985             0[01]|
4986             4[78]
4987           )\d{7}
4988         </nationalNumberPattern>
4989         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4990         <exampleNumber>19001234567</exampleNumber>
4991       </premiumRate>
4992     </territory>
4993
4994     <!-- Costa Rica -->
4995     <territory id="CR" countryCode="506" internationalPrefix="00"
4996                nationalPrefixForParsing="(19(?:0[012468]|1[09]|20|66|77|99))"
4997                carrierCodeFormattingRule="$CC $FG">
4998       <references>
4999         <sourceUrl>http://www.itu.int/oth/T0202000030/en</sourceUrl>
5000       </references>
5001       <availableFormats>
5002         <numberFormat pattern="(\d{4})(\d{4})">
5003           <leadingDigits>
5004             [24-7]|
5005             8[3-9]
5006           </leadingDigits>
5007           <format>$1 $2</format>
5008         </numberFormat>
5009         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
5010           <leadingDigits>[89]0</leadingDigits>
5011           <format>$1-$2-$3</format>
5012         </numberFormat>
5013       </availableFormats>
5014       <generalDesc>
5015         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
5016         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
5017       </generalDesc>
5018       <fixedLine>
5019         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
5020         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5021         <exampleNumber>22123456</exampleNumber>
5022       </fixedLine>
5023       <mobile>
5024         <nationalNumberPattern>
5025           5(?:
5026             0[01]|
5027             7[0-3]
5028           )\d{5}|
5029           6(?:
5030             [0-2]\d|
5031             30
5032           )\d{5}|
5033           7[0-3]\d{6}|
5034           8[3-9]\d{6}
5035         </nationalNumberPattern>
5036         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5037         <exampleNumber>83123456</exampleNumber>
5038       </mobile>
5039       <tollFree>
5040         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
5041         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5042         <exampleNumber>8001234567</exampleNumber>
5043       </tollFree>
5044       <premiumRate>
5045         <!-- Includes "mass calls" numbers with prefix 905. -->
5046         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
5047         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5048         <exampleNumber>9001234567</exampleNumber>
5049       </premiumRate>
5050       <voip>
5051         <!-- Including trunking service numbers starting with 5100. 4001 (callmyway.com) was added
5052              from an open-source bug report supported by numbers found online. -->
5053         <nationalNumberPattern>
5054           210[0-6]\d{4}|
5055           4(?:
5056             0(?:
5057               0[01]\d{4}|
5058               10[0-3]\d{3}|
5059               2(?:
5060                 00\d{3}|
5061                 900\d{2}
5062               )|
5063               3[01]\d{4}|
5064               40\d{4}|
5065               5\d{5}|
5066               60\d{4}|
5067               70[01]\d{3}|
5068               8[0-2]\d{4}
5069             )|
5070             1[01]\d{5}|
5071             20[0-3]\d{4}|
5072             400\d{4}|
5073             70[0-2]\d{4}
5074           )|
5075           5100\d{4}
5076         </nationalNumberPattern>
5077         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5078         <exampleNumber>40001234</exampleNumber>
5079       </voip>
5080     </territory>
5081
5082     <!-- Cuba -->
5083     <territory id="CU" countryCode="53" internationalPrefix="119"
5084                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
5085       <references>
5086         <sourceUrl>http://www.itu.int/oth/T0202000033/en</sourceUrl>
5087       </references>
5088       <availableFormats>
5089         <numberFormat pattern="(\d)(\d{6,7})">
5090           <leadingDigits>7</leadingDigits>
5091           <format>$1 $2</format>
5092         </numberFormat>
5093         <numberFormat pattern="(\d{2})(\d{4,6})">
5094           <leadingDigits>[2-4]</leadingDigits>
5095           <format>$1 $2</format>
5096         </numberFormat>
5097         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5098           <leadingDigits>5</leadingDigits>
5099           <format>$1 $2</format>
5100         </numberFormat>
5101       </availableFormats>
5102       <generalDesc>
5103         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
5104         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
5105       </generalDesc>
5106       <fixedLine>
5107         <nationalNumberPattern>
5108           2[1-4]\d{5,6}|
5109           3(?:
5110             1\d{6}|
5111             [23]\d{4,6}
5112           )|
5113           4(?:
5114             [125]\d{5,6}|
5115             [36]\d{6}|
5116             [78]\d{4,6}
5117           )|
5118           7\d{6,7}
5119         </nationalNumberPattern>
5120         <exampleNumber>71234567</exampleNumber>
5121       </fixedLine>
5122       <mobile>
5123         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
5124         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5125         <exampleNumber>51234567</exampleNumber>
5126       </mobile>
5127     </territory>
5128
5129     <!-- Cape Verde -->
5130     <territory id="CV" countryCode="238" internationalPrefix="0">
5131       <references>
5132         <sourceUrl>http://www.itu.int/oth/T0202000026/en</sourceUrl>
5133       </references>
5134       <availableFormats>
5135         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
5136           <format>$1 $2 $3</format>
5137         </numberFormat>
5138       </availableFormats>
5139       <generalDesc>
5140         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
5141         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5142       </generalDesc>
5143       <fixedLine>
5144         <nationalNumberPattern>
5145           2(?:
5146             2[1-7]|
5147             3[0-8]|
5148             4[12]|
5149             5[1256]|
5150             6\d|
5151             7[1-3]|
5152             8[1-5]
5153           )\d{4}
5154         </nationalNumberPattern>
5155         <exampleNumber>2211234</exampleNumber>
5156       </fixedLine>
5157       <mobile>
5158         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
5159              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
5160              example, and there are plenty of numbers on the internet that start with these
5161              prefixes. -->
5162         <nationalNumberPattern>
5163           (?:
5164             9\d|
5165             59
5166           )\d{5}
5167         </nationalNumberPattern>
5168         <exampleNumber>9911234</exampleNumber>
5169       </mobile>
5170     </territory>
5171
5172     <!-- Curaçao -->
5173     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
5174       <references>
5175         <sourceUrl>http://www.itu.int/oth/T02020000F5/en</sourceUrl>
5176       </references>
5177       <!-- All the formatting patterns for country-code 599 are here. -->
5178       <availableFormats>
5179         <numberFormat pattern="(\d{3})(\d{4})">
5180           <leadingDigits>[13-7]</leadingDigits>
5181           <format>$1 $2</format>
5182         </numberFormat>
5183         <numberFormat pattern="(9)(\d{3})(\d{4})">
5184           <leadingDigits>9</leadingDigits>
5185           <format>$1 $2 $3</format>
5186         </numberFormat>
5187       </availableFormats>
5188       <generalDesc>
5189         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
5190         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
5191       </generalDesc>
5192       <fixedLine>
5193         <nationalNumberPattern>
5194           9(?:
5195             [48]\d{2}|
5196             50\d|
5197             7(?:
5198               2[0-24]|
5199               [34]\d|
5200               6[35-7]|
5201               77|
5202               8[7-9]
5203             )
5204           )\d{4}
5205         </nationalNumberPattern>
5206         <exampleNumber>94151234</exampleNumber>
5207       </fixedLine>
5208       <mobile>
5209         <nationalNumberPattern>
5210           9(?:
5211             5(?:
5212               [1246]\d|
5213               3[01]
5214             )|
5215             6(?:
5216               [16-9]\d|
5217               3[01]
5218             )
5219           )\d{4}
5220         </nationalNumberPattern>
5221         <exampleNumber>95181234</exampleNumber>
5222       </mobile>
5223       <pager>
5224         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
5225         <exampleNumber>95581234</exampleNumber>
5226       </pager>
5227       <sharedCost>
5228         <!-- Value-added services are lumped together under shared cost, since we are not sure
5229              exactly what they are. -->
5230         <nationalNumberPattern>
5231           (?:
5232             10|
5233             69
5234           )\d{5}
5235         </nationalNumberPattern>
5236         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5237         <exampleNumber>1011234</exampleNumber>
5238       </sharedCost>
5239     </territory>
5240
5241     <!-- Christmas Islands -->
5242     <!-- Metadata shared with Australia. -->
5243     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
5244     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
5245                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
5246                nationalPrefix="0">
5247       <references>
5248         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
5249         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
5250       </references>
5251       <!-- Uses AU formatting rules. -->
5252       <!-- General desc and fixed line rules different from Australia. -->
5253       <generalDesc>
5254         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
5255         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5256       </generalDesc>
5257       <fixedLine>
5258         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
5259         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
5260         <exampleNumber>891641234</exampleNumber>
5261       </fixedLine>
5262       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5263       <mobile>
5264         <nationalNumberPattern>
5265           14(?:
5266             5\d|
5267             71
5268           )\d{5}|
5269           4(?:
5270             [0-2]\d|
5271             3[0-57-9]|
5272             4[47-9]|
5273             5[0-25-9]|
5274             6[6-9]|
5275             7[03-9]|
5276             8[17-9]|
5277             9[017-9]
5278           )\d{6}
5279         </nationalNumberPattern>
5280         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5281         <exampleNumber>412345678</exampleNumber>
5282       </mobile>
5283       <tollFree>
5284         <nationalNumberPattern>
5285           1(?:
5286             80(?:
5287               0\d{2}
5288             )?|
5289             3(?:
5290               00\d{2}
5291             )?
5292           )\d{4}
5293         </nationalNumberPattern>
5294         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5295         <exampleNumber>1800123456</exampleNumber>
5296       </tollFree>
5297       <premiumRate>
5298         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
5299         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5300         <exampleNumber>1900123456</exampleNumber>
5301       </premiumRate>
5302       <personalNumber>
5303         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
5304         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5305         <exampleNumber>500123456</exampleNumber>
5306       </personalNumber>
5307       <voip>
5308         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
5309         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5310         <exampleNumber>550123456</exampleNumber>
5311       </voip>
5312     </territory>
5313
5314     <!-- Cyprus -->
5315     <territory id="CY" countryCode="357" internationalPrefix="00" mobileNumberPortableRegion="true">
5316       <references>
5317         <sourceUrl>http://www.itu.int/oth/T0202000034/en</sourceUrl>
5318       </references>
5319       <availableFormats>
5320         <!-- Format from http://www.cyprusyellowpages.com -->
5321         <numberFormat pattern="(\d{2})(\d{6})">
5322           <format>$1 $2</format>
5323         </numberFormat>
5324       </availableFormats>
5325       <generalDesc>
5326         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
5327         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5328       </generalDesc>
5329       <fixedLine>
5330         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
5331         <exampleNumber>22345678</exampleNumber>
5332       </fixedLine>
5333       <mobile>
5334         <!-- Includes paging numbers (they are mixed into the same block). -->
5335         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
5336         <exampleNumber>96123456</exampleNumber>
5337       </mobile>
5338       <tollFree>
5339         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
5340         <exampleNumber>80001234</exampleNumber>
5341       </tollFree>
5342       <premiumRate>
5343         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
5344         <exampleNumber>90012345</exampleNumber>
5345       </premiumRate>
5346       <sharedCost>
5347         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
5348         <exampleNumber>80112345</exampleNumber>
5349       </sharedCost>
5350       <personalNumber>
5351         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
5352         <exampleNumber>70012345</exampleNumber>
5353       </personalNumber>
5354       <uan>
5355         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
5356         <nationalNumberPattern>
5357           (?:
5358             50|
5359             77
5360           )\d{6}
5361         </nationalNumberPattern>
5362         <exampleNumber>77123456</exampleNumber>
5363       </uan>
5364     </territory>
5365
5366     <!-- Czech Rep. -->
5367     <territory id="CZ" countryCode="420" internationalPrefix="00" mobileNumberPortableRegion="true">
5368       <references>
5369         <sourceUrl>http://www.itu.int/oth/T0202000035/en</sourceUrl>
5370         <sourceUrl>http://en.wikipedia.org/wiki/%2B420</sourceUrl>
5371       </references>
5372       <availableFormats>
5373         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
5374           <leadingDigits>
5375             [2-8]|
5376             9[015-7]
5377           </leadingDigits>
5378           <format>$1 $2 $3</format>
5379         </numberFormat>
5380         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
5381           <leadingDigits>96</leadingDigits>
5382           <format>$1 $2 $3 $4</format>
5383         </numberFormat>
5384         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
5385           <leadingDigits>9[36]</leadingDigits>
5386           <format>$1 $2 $3 $4</format>
5387         </numberFormat>
5388       </availableFormats>
5389       <generalDesc>
5390         <nationalNumberPattern>
5391           [2-8]\d{8}|
5392           9\d{8,11}
5393         </nationalNumberPattern>
5394         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5395       </generalDesc>
5396       <fixedLine>
5397         <nationalNumberPattern>
5398           2\d{8}|
5399           (?:
5400             3[1257-9]|
5401             4[16-9]|
5402             5[13-9]
5403           )\d{7}
5404         </nationalNumberPattern>
5405         <exampleNumber>212345678</exampleNumber>
5406       </fixedLine>
5407       <mobile>
5408         <nationalNumberPattern>
5409           (?:
5410             60[1-8]|
5411             7(?:
5412               0[2-5]|
5413               [2379]\d
5414             )
5415           )\d{6}
5416         </nationalNumberPattern>
5417         <exampleNumber>601123456</exampleNumber>
5418       </mobile>
5419       <tollFree>
5420         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
5421         <exampleNumber>800123456</exampleNumber>
5422       </tollFree>
5423       <premiumRate>
5424         <!-- Includes premium rate dial-up. -->
5425         <nationalNumberPattern>
5426           9(?:
5427             0[05689]|
5428             76
5429           )\d{6}
5430         </nationalNumberPattern>
5431         <exampleNumber>900123456</exampleNumber>
5432       </premiumRate>
5433       <sharedCost>
5434         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
5435         <exampleNumber>811234567</exampleNumber>
5436       </sharedCost>
5437       <personalNumber>
5438         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
5439         <exampleNumber>700123456</exampleNumber>
5440       </personalNumber>
5441       <voip>
5442         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
5443         <exampleNumber>910123456</exampleNumber>
5444       </voip>
5445       <uan>
5446         <!-- Numbers belonging to private communication networks are included here. These are
5447              classified as Institutional networks, belonging to institutions like the police, armed
5448              forces and railways, along with a couple of formerly government-owned banks. These
5449              numbers are reachable by the public. -->
5450         <nationalNumberPattern>
5451           9(?:
5452             5\d|
5453             7[234]
5454           )\d{6}
5455         </nationalNumberPattern>
5456         <exampleNumber>972123456</exampleNumber>
5457       </uan>
5458       <voicemail>
5459         <nationalNumberPattern>
5460           9(?:
5461             3\d{9}|
5462             6\d{7,10}
5463           )
5464         </nationalNumberPattern>
5465         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5466         <exampleNumber>93123456789</exampleNumber>
5467       </voicemail>
5468     </territory>
5469
5470     <!-- Germany -->
5471     <territory id="DE" countryCode="49" internationalPrefix="00"
5472                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
5473                mobileNumberPortableRegion="true">
5474       <references>
5475         <sourceUrl>http://www.itu.int/oth/T0202000051/en</sourceUrl>
5476         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_germany</sourceUrl>
5477       </references>
5478       <availableFormats>
5479         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
5480              these should best be formatted, even though actual usage varies. -->
5481         <numberFormat pattern="(1\d{2})(\d{7,8})">
5482           <leadingDigits>1[67]</leadingDigits>
5483           <format>$1 $2</format>
5484         </numberFormat>
5485         <numberFormat pattern="(1\d{3})(\d{7})">
5486           <leadingDigits>15</leadingDigits>
5487           <format>$1 $2</format>
5488         </numberFormat>
5489         <numberFormat pattern="(\d{2})(\d{3,11})">
5490           <leadingDigits>
5491             3[02]|
5492             40|
5493             [68]9
5494           </leadingDigits>
5495           <format>$1 $2</format>
5496         </numberFormat>
5497         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
5498         <!-- 3 digit area codes. -->
5499         <numberFormat pattern="(\d{3})(\d{3,11})">
5500           <leadingDigits>
5501             2(?:
5502               \d1|
5503               0[2389]|
5504               1[24]|
5505               28|
5506               34
5507             )|
5508             3(?:
5509               [3-9][15]|
5510               40
5511             )|
5512             [4-8][1-9]1|
5513             9(?:
5514               06|
5515               [1-9]1
5516             )
5517           </leadingDigits>
5518           <format>$1 $2</format>
5519         </numberFormat>
5520         <!-- 4 digit area codes. -->
5521         <numberFormat pattern="(\d{4})(\d{2,11})">
5522           <leadingDigits>
5523             [24-6]|
5524             [7-9](?:
5525               \d[1-9]|
5526               [1-9]\d
5527             )|
5528             3(?:
5529               [3569][02-46-9]|
5530               4[2-4679]|
5531               7[2-467]|
5532               8[2-46-8]
5533             )
5534           </leadingDigits>
5535           <leadingDigits>
5536             [24-6]|
5537             [7-9](?:
5538               \d[1-9]|
5539               [1-9]\d
5540             )|
5541             3(?:
5542               3(?:
5543                 0[1-467]|
5544                 2[127-9]|
5545                 3[124578]|
5546                 [46][1246]|
5547                 7[1257-9]|
5548                 8[1256]|
5549                 9[145]
5550               )|
5551               4(?:
5552                 2[135]|
5553                 3[1357]|
5554                 4[13578]|
5555                 6[1246]|
5556                 7[1356]|
5557                 9[1346]
5558               )|
5559               5(?:
5560                 0[14]|
5561                 2[1-3589]|
5562                 3[1357]|
5563                 4[1246]|
5564                 6[1-4]|
5565                 7[1346]|
5566                 8[13568]|
5567                 9[1246]
5568               )|
5569               6(?:
5570                 0[356]|
5571                 2[1-489]|
5572                 3[124-6]|
5573                 4[1347]|
5574                 6[13]|
5575                 7[12579]|
5576                 8[1-356]|
5577                 9[135]
5578               )|
5579               7(?:
5580                 2[1-7]|
5581                 3[1357]|
5582                 4[145]|
5583                 6[1-5]|
5584                 7[1-4]
5585               )|
5586               8(?:
5587                 21|
5588                 3[1468]|
5589                 4[1347]|
5590                 6[0135-9]|
5591                 7[1467]|
5592                 8[136]
5593               )|
5594               9(?:
5595                 0[12479]|
5596                 2[1358]|
5597                 3[1357]|
5598                 4[134679]|
5599                 6[1-9]|
5600                 7[136]|
5601                 8[147]|
5602                 9[1468]
5603               )
5604             )
5605           </leadingDigits>
5606           <format>$1 $2</format>
5607         </numberFormat>
5608         <!-- 5 digit area codes. -->
5609         <numberFormat pattern="(3\d{4})(\d{1,10})">
5610           <leadingDigits>3</leadingDigits>
5611           <format>$1 $2</format>
5612         </numberFormat>
5613         <!-- Note: this is getting ridiculous! How can we format these better? -->
5614         <numberFormat pattern="(800)(\d{7,12})">
5615           <leadingDigits>800</leadingDigits>
5616           <format>$1 $2</format>
5617         </numberFormat>
5618         <!-- Voicemail access numbers for the carrier Blau. -->
5619         <numberFormat pattern="(177)(99)(\d{7,8})">
5620           <leadingDigits>177</leadingDigits>
5621           <leadingDigits>1779</leadingDigits>
5622           <leadingDigits>17799</leadingDigits>
5623           <format>$1 $2 $3</format>
5624         </numberFormat>
5625         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
5626           <leadingDigits>
5627             (?:
5628               18|
5629               90
5630             )0|
5631             137
5632           </leadingDigits>
5633           <leadingDigits>
5634             1(?:
5635               37|
5636               80
5637             )|
5638             900[1359]
5639           </leadingDigits>
5640           <format>$1 $2 $3</format>
5641         </numberFormat>
5642         <numberFormat pattern="(1\d{2})(\d{5,11})">
5643           <leadingDigits>181</leadingDigits>
5644           <format>$1 $2</format>
5645         </numberFormat>
5646         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
5647              way it is generally written. For other prefixes, we fall back to using a three-digit
5648              prefix since we have currently no more information to allow us to format these more
5649              precisely. -->
5650         <numberFormat pattern="(18\d{3})(\d{6})">
5651           <leadingDigits>185</leadingDigits>
5652           <leadingDigits>1850</leadingDigits>
5653           <leadingDigits>18500</leadingDigits>
5654           <format>$1 $2</format>
5655         </numberFormat>
5656         <numberFormat pattern="(18\d{2})(\d{7})">
5657           <leadingDigits>18[68]</leadingDigits>
5658           <format>$1 $2</format>
5659         </numberFormat>
5660         <numberFormat pattern="(18\d)(\d{8})">
5661           <leadingDigits>18[2-579]</leadingDigits>
5662           <format>$1 $2</format>
5663         </numberFormat>
5664         <numberFormat pattern="(700)(\d{4})(\d{4})">
5665           <leadingDigits>700</leadingDigits>
5666           <format>$1 $2 $3</format>
5667         </numberFormat>
5668         <numberFormat pattern="(138)(\d{4})">
5669           <leadingDigits>138</leadingDigits>
5670           <format>$1 $2</format>
5671         </numberFormat>
5672       </availableFormats>
5673       <generalDesc>
5674         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
5675              examined to see if it is valid with the 49 as part of the number. Due to the variable
5676              length of German numbers, this test is hard to do. The national pattern is hence
5677              stricter for numbers starting with 49, to try and remove the country code if the number
5678              begins with 49 whenever possible. -->
5679         <nationalNumberPattern>
5680           [1-35-9]\d{3,14}|
5681           4(?:
5682             [0-8]\d{4,12}|
5683             9(?:
5684               [0-37]\d|
5685               4(?:
5686                 [1-35-8]|
5687                 4\d?
5688               )|
5689               5\d{1,2}|
5690               6[1-8]\d?
5691             )\d{2,8}
5692           )
5693         </nationalNumberPattern>
5694         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
5695       </generalDesc>
5696       <fixedLine>
5697         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
5698              don't seem to respect this. The max-length is hence extended. -->
5699         <nationalNumberPattern>
5700           [246]\d{5,13}|
5701           3(?:
5702             0\d{3,13}|
5703             2\d{9}|
5704             [3-9]\d{4,13}
5705           )|
5706           5(?:
5707             0[2-8]|
5708             [1256]\d|
5709             [38][0-8]|
5710             4\d{0,2}|
5711             [79][0-7]
5712           )\d{3,11}|
5713           7(?:
5714             0[2-8]|
5715             [1-9]\d
5716           )\d{3,10}|
5717           8(?:
5718             0[2-9]|
5719             [1-9]\d
5720           )\d{3,10}|
5721           9(?:
5722             0[6-9]\d{3,10}|
5723             1\d{4,12}|
5724             [2-9]\d{4,11}
5725           )
5726         </nationalNumberPattern>
5727         <exampleNumber>30123456</exampleNumber>
5728       </fixedLine>
5729       <mobile>
5730         <!-- According to
5731              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
5732              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
5733              The ranges 15[056] have been removed from the ITU doc, but information found online
5734              indicates that they may still be working.
5735              -->
5736         <nationalNumberPattern>
5737           1(?:
5738             5[0-2579]\d{8}|
5739             6[023]\d{7,8}|
5740             7(?:
5741               [0-57-9]\d?|
5742               6\d
5743             )\d{7}
5744           )
5745         </nationalNumberPattern>
5746         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5747         <exampleNumber>15123456789</exampleNumber>
5748       </mobile>
5749       <pager>
5750         <nationalNumberPattern>
5751           16(?:
5752             4\d{1,10}|
5753             [89]\d{1,11}
5754           )
5755         </nationalNumberPattern>
5756         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
5757         <exampleNumber>16412345</exampleNumber>
5758       </pager>
5759       <tollFree>
5760         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
5761         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
5762         <exampleNumber>8001234567890</exampleNumber>
5763       </tollFree>
5764       <premiumRate>
5765         <!-- Includes the more expensive of the "televoting" line numbers. See the shared cost
5766              section for more information. -->
5767         <nationalNumberPattern>
5768           137[7-9]\d{6}|
5769           900(?:
5770             [135]\d{6}|
5771             9\d{7}
5772           )
5773         </nationalNumberPattern>
5774         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5775         <exampleNumber>9001234567</exampleNumber>
5776       </premiumRate>
5777       <sharedCost>
5778         <!-- Includes some mass-traffic numbers, used for e.g. phone voting, raffles, since their
5779              costs when dialling from a fixed-line phone is similar.
5780              Prices:
5781              http://www.billiger-telefonieren.de/0180-0137-0900-sonderrufnummern/
5782              Documentation:
5783              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/0137/0137_Nummernplan.pdf?__blob=publicationFile&v=2
5784         -->
5785         <nationalNumberPattern>
5786           1(?:
5787             3(?:
5788               7[1-6]\d{6}|
5789               8\d{4}
5790             )|
5791             80\d{5,11}
5792           )
5793         </nationalNumberPattern>
5794         <possibleNumberPattern>\d{7,14}</possibleNumberPattern>
5795         <exampleNumber>18012345</exampleNumber>
5796       </sharedCost>
5797       <personalNumber>
5798         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
5799         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5800         <exampleNumber>70012345678</exampleNumber>
5801       </personalNumber>
5802       <uan>
5803         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
5804              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
5805              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
5806         <nationalNumberPattern>
5807           18(?:
5808             1\d{5,11}|
5809             [2-9]\d{8}
5810           )
5811         </nationalNumberPattern>
5812         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5813         <exampleNumber>18500123456</exampleNumber>
5814       </uan>
5815       <voicemail>
5816         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
5817         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
5818         <exampleNumber>177991234567</exampleNumber>
5819       </voicemail>
5820     </territory>
5821
5822     <!-- Djibouti -->
5823     <territory id="DJ" countryCode="253" internationalPrefix="00">
5824       <references>
5825         <sourceUrl>http://www.itu.int/oth/T020200003A/en</sourceUrl>
5826       </references>
5827       <availableFormats>
5828         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5829           <format>$1 $2 $3 $4</format>
5830         </numberFormat>
5831       </availableFormats>
5832       <generalDesc>
5833         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
5834         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5835       </generalDesc>
5836       <fixedLine>
5837         <!-- Includes "Numéro long CDMA fixe" numbers. -->
5838         <nationalNumberPattern>
5839           2(?:
5840             1[2-5]|
5841             7[45]
5842           )\d{5}
5843         </nationalNumberPattern>
5844         <exampleNumber>21360003</exampleNumber>
5845       </fixedLine>
5846       <mobile>
5847         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
5848         <exampleNumber>77831001</exampleNumber>
5849       </mobile>
5850     </territory>
5851
5852     <!-- Denmark -->
5853     <territory id="DK" countryCode="45" internationalPrefix="00" mobileNumberPortableRegion="true">
5854       <references>
5855         <sourceUrl>http://www.dba.erhvervsstyrelsen.dk/numbering-lists</sourceUrl>
5856       </references>
5857       <availableFormats>
5858         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5859           <format>$1 $2 $3 $4</format>
5860         </numberFormat>
5861       </availableFormats>
5862       <generalDesc>
5863         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
5864         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5865       </generalDesc>
5866       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
5867            safe. -->
5868       <fixedLine>
5869         <nationalNumberPattern>
5870           (?:
5871             [2-7]\d|
5872             8[126-9]|
5873             9[1-36-9]
5874           )\d{6}
5875         </nationalNumberPattern>
5876         <exampleNumber>32123456</exampleNumber>
5877       </fixedLine>
5878       <mobile>
5879         <nationalNumberPattern>
5880           (?:
5881             [2-7]\d|
5882             8[126-9]|
5883             9[1-36-9]
5884           )\d{6}
5885         </nationalNumberPattern>
5886         <exampleNumber>20123456</exampleNumber>
5887       </mobile>
5888       <tollFree>
5889         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
5890         <exampleNumber>80123456</exampleNumber>
5891       </tollFree>
5892       <premiumRate>
5893         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
5894         <exampleNumber>90123456</exampleNumber>
5895       </premiumRate>
5896     </territory>
5897
5898     <!-- Dominica -->
5899     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
5900                internationalPrefix="011">
5901       <references>
5902         <sourceUrl>http://www.itu.int/oth/T020200003B/en</sourceUrl>
5903       </references>
5904       <generalDesc>
5905         <!-- NANPA country - uses US formatting rules -->
5906         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
5907         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5908       </generalDesc>
5909       <fixedLine>
5910         <nationalNumberPattern>
5911           767(?:
5912             2(?:
5913               55|
5914               66
5915             )|
5916             4(?:
5917               2[01]|
5918               4[0-25-9]
5919             )|
5920             50[0-4]|
5921             70[1-3]
5922           )\d{4}
5923         </nationalNumberPattern>
5924         <exampleNumber>7674201234</exampleNumber>
5925       </fixedLine>
5926       <mobile>
5927         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
5928         <nationalNumberPattern>
5929           767(?:
5930             2(?:
5931               [234689]5|
5932               7[5-7]
5933             )|
5934             31[5-7]|
5935             61[2-7]
5936           )\d{4}
5937         </nationalNumberPattern>
5938         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5939         <exampleNumber>7672251234</exampleNumber>
5940       </mobile>
5941       <tollFree>
5942         <nationalNumberPattern>
5943           8(?:
5944             00|
5945             44|
5946             55|
5947             66|
5948             77|
5949             88
5950           )[2-9]\d{6}
5951         </nationalNumberPattern>
5952         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5953         <exampleNumber>8002123456</exampleNumber>
5954       </tollFree>
5955       <premiumRate>
5956         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
5957         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5958         <exampleNumber>9002123456</exampleNumber>
5959       </premiumRate>
5960       <personalNumber>
5961         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
5962         <nationalNumberPattern>
5963           5(?:
5964             00|
5965             33|
5966             44|
5967             66|
5968             77
5969           )[2-9]\d{6}
5970         </nationalNumberPattern>
5971         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5972         <exampleNumber>5002345678</exampleNumber>
5973       </personalNumber>
5974     </territory>
5975
5976     <!-- Dominican Rep. -->
5977     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
5978                internationalPrefix="011" mobileNumberPortableRegion="true">
5979       <references>
5980         <sourceUrl>http://www.itu.int/oth/T020200003C/en</sourceUrl>
5981       </references>
5982       <generalDesc>
5983         <!-- NANPA country - uses US formatting rules -->
5984         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
5985         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5986       </generalDesc>
5987       <fixedLine>
5988         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
5989              prefixes in the document are classified as such by excluding them from the fixed-line
5990              ranges, but other than this have a generic rule. -->
5991         <nationalNumberPattern>
5992           8(?:
5993             [04]9[2-9]\d{6}|
5994             29(?:
5995               2(?:
5996                 [0-59]\d|
5997                 6[04-9]|
5998                 7[0-27]|
5999                 8[0237-9]
6000               )|
6001               3(?:
6002                 [0-35-9]\d|
6003                 4[7-9]
6004               )|
6005               [45]\d{2}|
6006               6(?:
6007                 [0-27-9]\d|
6008                 [3-5][1-9]|
6009                 6[0135-8]
6010               )|
6011               7(?:
6012                 0[013-9]|
6013                 [1-37]\d|
6014                 4[1-35689]|
6015                 5[1-4689]|
6016                 6[1-57-9]|
6017                 8[1-79]|
6018                 9[1-8]
6019               )|
6020               8(?:
6021                 0[146-9]|
6022                 1[0-48]|
6023                 [248]\d|
6024                 3[1-79]|
6025                 5[01589]|
6026                 6[013-68]|
6027                 7[124-8]|
6028                 9[0-8]
6029               )|
6030               9(?:
6031                 [0-24]\d|
6032                 3[02-46-9]|
6033                 5[0-79]|
6034                 60|
6035                 7[0169]|
6036                 8[57-9]|
6037                 9[02-9]
6038               )
6039             )\d{4}
6040           )
6041         </nationalNumberPattern>
6042         <exampleNumber>8092345678</exampleNumber>
6043       </fixedLine>
6044       <mobile>
6045         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
6046         <exampleNumber>8092345678</exampleNumber>
6047       </mobile>
6048       <tollFree>
6049         <nationalNumberPattern>
6050           8(?:
6051             00|
6052             44|
6053             55|
6054             66|
6055             77|
6056             88
6057           )[2-9]\d{6}
6058         </nationalNumberPattern>
6059         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6060         <exampleNumber>8002123456</exampleNumber>
6061       </tollFree>
6062       <premiumRate>
6063         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6064         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6065         <exampleNumber>9002123456</exampleNumber>
6066       </premiumRate>
6067       <personalNumber>
6068         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6069         <nationalNumberPattern>
6070           5(?:
6071             00|
6072             33|
6073             44|
6074             66|
6075             77
6076           )[2-9]\d{6}
6077         </nationalNumberPattern>
6078         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6079         <exampleNumber>5002345678</exampleNumber>
6080       </personalNumber>
6081    </territory>
6082
6083     <!-- Algeria -->
6084     <territory id="DZ" countryCode="213" internationalPrefix="00"
6085                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6086       <references>
6087         <sourceUrl>http://www.itu.int/oth/T0202000003/en</sourceUrl>
6088         <sourceUrl>http://www.arpt.dz</sourceUrl>
6089       </references>
6090       <availableFormats>
6091         <!-- Formatting from http://www.pagesjaunes-dz.com. -->
6092         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
6093           <leadingDigits>[1-4]</leadingDigits>
6094           <format>$1 $2 $3 $4</format>
6095         </numberFormat>
6096         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
6097           <leadingDigits>[5-8]</leadingDigits>
6098           <format>$1 $2 $3 $4</format>
6099         </numberFormat>
6100         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
6101           <leadingDigits>9</leadingDigits>
6102           <format>$1 $2 $3 $4</format>
6103         </numberFormat>
6104       </availableFormats>
6105       <generalDesc>
6106         <nationalNumberPattern>
6107           (?:
6108             [1-4]|
6109             [5-9]\d
6110           )\d{7}
6111         </nationalNumberPattern>
6112         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6113       </generalDesc>
6114       <fixedLine>
6115         <!-- We include the VSAT lines here. -->
6116         <nationalNumberPattern>
6117           (?:
6118             1\d|
6119             2[014-79]|
6120             3[0-8]|
6121             4[0135689]
6122           )\d{6}|
6123           9619\d{5}
6124         </nationalNumberPattern>
6125         <exampleNumber>12345678</exampleNumber>
6126       </fixedLine>
6127       <mobile>
6128         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6129              Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-4] were also added for
6130              Mobilis Algeria based on evidence found online. -->
6131         <nationalNumberPattern>
6132           (?:
6133             5[4-6]|
6134             7[7-9]
6135           )\d{7}|
6136           6(?:
6137             [569]\d|
6138             7[0-4]
6139           )\d{6}
6140         </nationalNumberPattern>
6141         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6142         <exampleNumber>551234567</exampleNumber>
6143       </mobile>
6144       <tollFree>
6145         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
6146         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6147         <exampleNumber>800123456</exampleNumber>
6148       </tollFree>
6149       <premiumRate>
6150         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
6151         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6152         <exampleNumber>808123456</exampleNumber>
6153       </premiumRate>
6154       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
6155            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
6156            -->
6157       <sharedCost>
6158         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
6159         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6160         <exampleNumber>801123456</exampleNumber>
6161       </sharedCost>
6162       <voip>
6163         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
6164         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6165         <exampleNumber>983123456</exampleNumber>
6166       </voip>
6167    </territory>
6168
6169     <!-- Ecuador -->
6170     <territory id="EC" countryCode="593" internationalPrefix="00"
6171                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
6172                mobileNumberPortableRegion="true">
6173       <references>
6174         <sourceUrl>http://en.wikipedia.org/wiki/+593</sourceUrl>
6175         <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>
6176         <sourceUrl>http://www.itu.int/oth/T020200003D/en</sourceUrl>
6177       </references>
6178       <availableFormats>
6179         <numberFormat pattern="(\d)(\d{3})(\d{4})">
6180           <leadingDigits>
6181             [247]|
6182             [356][2-8]
6183           </leadingDigits>
6184           <format>$1 $2-$3</format>
6185           <intlFormat>$1-$2-$3</intlFormat>
6186         </numberFormat>
6187         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
6188              change on the http://www.conatel.gob.ec site. -->
6189         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
6190           <leadingDigits>9</leadingDigits>
6191           <format>$1 $2 $3</format>
6192         </numberFormat>
6193         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
6194           <leadingDigits>1</leadingDigits>
6195           <format>$1 $2 $3</format>
6196         </numberFormat>
6197       </availableFormats>
6198       <generalDesc>
6199         <nationalNumberPattern>
6200           1\d{9,10}|
6201           [2-8]\d{7}|
6202           9\d{8}
6203         </nationalNumberPattern>
6204         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
6205       </generalDesc>
6206       <fixedLine>
6207         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
6208         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6209         <exampleNumber>22123456</exampleNumber>
6210       </fixedLine>
6211       <mobile>
6212         <nationalNumberPattern>
6213           9(?:
6214             39|
6215             [45][89]|
6216             [67][7-9]|
6217             [89]\d
6218           )\d{6}
6219         </nationalNumberPattern>
6220         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6221         <exampleNumber>991234567</exampleNumber>
6222       </mobile>
6223       <tollFree>
6224         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
6225         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
6226         <exampleNumber>18001234567</exampleNumber>
6227       </tollFree>
6228       <voip>
6229         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
6230         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6231         <exampleNumber>28901234</exampleNumber>
6232       </voip>
6233     </territory>
6234
6235     <!-- Estonia -->
6236     <territory id="EE" countryCode="372" internationalPrefix="00" mobileNumberPortableRegion="true">
6237       <references>
6238         <sourceUrl>http://www.itu.int/oth/T0202000043/en</sourceUrl>
6239         <sourceUrl>http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm</sourceUrl>
6240       </references>
6241       <availableFormats>
6242         <numberFormat pattern="([3-79]\d{2})(\d{4})">
6243           <leadingDigits>
6244             [369]|
6245             4[3-8]|
6246             5(?:
6247               [0-2]|
6248               5[0-478]|
6249               6[45]
6250             )|
6251             7[1-9]
6252           </leadingDigits>
6253           <leadingDigits>
6254             [369]|
6255             4[3-8]|
6256             5(?:
6257               [02]|
6258               1(?:
6259                 [0-8]|
6260                 95
6261               )|
6262               5[0-478]|
6263               6(?:
6264                 4[0-4]|
6265                 5[1-589]
6266               )
6267             )|
6268             7[1-9]
6269           </leadingDigits>
6270           <format>$1 $2</format>
6271         </numberFormat>
6272         <numberFormat pattern="(70)(\d{2})(\d{4})">
6273           <leadingDigits>70</leadingDigits>
6274           <format>$1 $2 $3</format>
6275         </numberFormat>
6276         <numberFormat pattern="(8000)(\d{3})(\d{3})">
6277           <leadingDigits>800</leadingDigits>
6278           <leadingDigits>8000</leadingDigits>
6279           <format>$1 $2 $3</format>
6280         </numberFormat>
6281         <numberFormat pattern="([458]\d{3})(\d{3,4})">
6282           <leadingDigits>
6283             40|
6284             5|
6285             8(?:
6286               00|
6287               [1-5]
6288             )
6289           </leadingDigits>
6290           <leadingDigits>
6291             40|
6292             5|
6293             8(?:
6294               00[1-9]|
6295               [1-5]
6296             )
6297           </leadingDigits>
6298           <format>$1 $2</format>
6299         </numberFormat>
6300       </availableFormats>
6301       <generalDesc>
6302         <nationalNumberPattern>
6303           1\d{3,4}|
6304           [3-9]\d{6,7}|
6305           800\d{6,7}
6306         </nationalNumberPattern>
6307         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
6308       </generalDesc>
6309       <noInternationalDialling>
6310         <nationalNumberPattern>
6311           1\d{3,4}|
6312           800[2-9]\d{3}
6313         </nationalNumberPattern>
6314         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
6315         <exampleNumber>8002123</exampleNumber>
6316       </noInternationalDialling>
6317       <fixedLine>
6318         <nationalNumberPattern>
6319           (?:
6320             3[23589]|
6321             4[3-8]|
6322             6\d|
6323             7[1-9]|
6324             88
6325           )\d{5}
6326         </nationalNumberPattern>
6327         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6328         <exampleNumber>3212345</exampleNumber>
6329       </fixedLine>
6330       <mobile>
6331         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
6332              numbers are 8 digits. -->
6333         <nationalNumberPattern>
6334           (?:
6335             5\d|
6336             8[1-5]
6337           )\d{6}|
6338           5(?:
6339             [02]\d{2}|
6340             1(?:
6341               [0-8]\d|
6342               95
6343             )|
6344             5[0-478]\d|
6345             64[0-4]|
6346             65[1-589]
6347           )\d{3}
6348         </nationalNumberPattern>
6349         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6350         <exampleNumber>51234567</exampleNumber>
6351       </mobile>
6352       <tollFree>
6353         <nationalNumberPattern>
6354           800(?:
6355             0\d{3}|
6356             1\d|
6357             [2-9]
6358           )\d{3}
6359         </nationalNumberPattern>
6360         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6361         <exampleNumber>80012345</exampleNumber>
6362       </tollFree>
6363       <premiumRate>
6364         <!-- Supporting eFax numbers here as well. We aren't sure the exact cost, but have
6365              had user reports that they are expensive to dial. -->
6366         <nationalNumberPattern>
6367           (?:
6368             40\d{2}|
6369             900
6370           )\d{4}
6371         </nationalNumberPattern>
6372         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6373         <exampleNumber>9001234</exampleNumber>
6374       </premiumRate>
6375       <personalNumber>
6376         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
6377         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6378         <exampleNumber>70012345</exampleNumber>
6379       </personalNumber>
6380       <uan>
6381         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
6382              included here. -->
6383         <nationalNumberPattern>
6384           1(?:
6385             2[01245]|
6386             3[0-6]|
6387             4[1-489]|
6388             5[0-59]|
6389             6[1-46-9]|
6390             7[0-27-9]|
6391             8[189]|
6392             9[012]
6393           )\d{1,2}
6394         </nationalNumberPattern>
6395         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
6396         <exampleNumber>12123</exampleNumber>
6397       </uan>
6398     </territory>
6399
6400     <!-- Egypt -->
6401     <territory id="EG" countryCode="20" internationalPrefix="00"
6402                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
6403                mobileNumberPortableRegion="true">
6404        <references>
6405          <sourceUrl>http://www.itu.int/oth/T020200003E/en</sourceUrl>
6406        </references>
6407        <availableFormats>
6408          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
6409               or 19. These are formatted without national prefix, as a block, so do not need to be
6410               listed here. -->
6411          <numberFormat pattern="(\d)(\d{7,8})">
6412            <leadingDigits>[23]</leadingDigits>
6413            <format>$1 $2</format>
6414          </numberFormat>
6415          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
6416            <leadingDigits>
6417              1[012]|
6418              [89]00
6419            </leadingDigits>
6420            <format>$1 $2 $3</format>
6421          </numberFormat>
6422          <numberFormat pattern="(\d{2})(\d{6,7})">
6423            <leadingDigits>
6424              1[35]|
6425              [4-6]|
6426              [89][2-9]
6427            </leadingDigits>
6428            <format>$1 $2</format>
6429          </numberFormat>
6430        </availableFormats>
6431       <generalDesc>
6432         <nationalNumberPattern>
6433           1\d{4,9}|
6434           [2456]\d{8}|
6435           3\d{7}|
6436           [89]\d{8,9}
6437         </nationalNumberPattern>
6438         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6439       </generalDesc>
6440       <fixedLine>
6441         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
6442              that the plan says numbers starting with 15 should be followed by seven digit
6443              subscriber numbers, but some numbers we have found online are in fact six digit.
6444              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
6445              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
6446              092 and with 5 and 6 for 96. -->
6447         <nationalNumberPattern>
6448           (?:
6449             1(?:
6450               3[23]\d|
6451               5(?:
6452                 [23]|
6453                 9\d
6454               )
6455             )|
6456             2[2-4]\d{2}|
6457             3\d{2}|
6458             4(?:
6459               0[2-5]|
6460               [578][23]|
6461               64
6462             )\d|
6463             5(?:
6464               0[2-7]|
6465               [57][23]
6466             )\d|
6467             6[24-689]3\d|
6468             8(?:
6469               2[2-57]|
6470               4[26]|
6471               6[237]|
6472               8[2-4]
6473             )\d|
6474             9(?:
6475               2[27]|
6476               3[24]|
6477               52|
6478               6[2356]|
6479               7[2-4]
6480             )\d
6481           )\d{5}|
6482           1[69]\d{3}
6483         </nationalNumberPattern>
6484         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
6485         <exampleNumber>234567890</exampleNumber>
6486       </fixedLine>
6487       <mobile>
6488         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
6489              started allocating numbers beginning with these prefixes, along with 115 from numbers
6490              found online. Etisalat is using 110. -->
6491         <nationalNumberPattern>
6492           1(?:
6493             0[0-269]|
6494             1[0-245]|
6495             2[0-278]
6496           )\d{7}
6497         </nationalNumberPattern>
6498         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6499         <exampleNumber>1001234567</exampleNumber>
6500       </mobile>
6501       <tollFree>
6502         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
6503         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6504         <exampleNumber>8001234567</exampleNumber>
6505       </tollFree>
6506       <premiumRate>
6507         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
6508         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6509         <exampleNumber>9001234567</exampleNumber>
6510       </premiumRate>
6511     </territory>
6512
6513     <!-- Western Sahara -->
6514     <!-- Country calling code shared with Morocco (MA). -->
6515     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
6516     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
6517                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6518       <references>
6519         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
6520       </references>
6521       <!-- Uses MA formatting rules and shares general description
6522            (non-geographical numbers for Morocco are still valid). -->
6523       <generalDesc>
6524         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
6525         <!-- Closed numbering plan. -->
6526         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6527       </generalDesc>
6528       <fixedLine>
6529         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
6530         <exampleNumber>528812345</exampleNumber>
6531       </fixedLine>
6532       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
6533            numbers to be recognized as available from within Western Sahara. -->
6534       <mobile>
6535         <nationalNumberPattern>
6536           6(?:
6537             0[0-8]|
6538             [12-79]\d|
6539             8[01]
6540           )\d{6}
6541         </nationalNumberPattern>
6542         <exampleNumber>650123456</exampleNumber>
6543       </mobile>
6544       <tollFree>
6545         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
6546         <exampleNumber>801234567</exampleNumber>
6547       </tollFree>
6548       <premiumRate>
6549         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
6550         <exampleNumber>891234567</exampleNumber>
6551       </premiumRate>
6552     </territory>
6553
6554     <!-- Eritrea -->
6555     <territory id="ER" countryCode="291" internationalPrefix="00"
6556                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6557       <references>
6558         <sourceUrl>http://www.itu.int/oth/T0202000042/en</sourceUrl>
6559       </references>
6560       <availableFormats>
6561         <numberFormat pattern="(\d)(\d{3})(\d{3})">
6562           <format>$1 $2 $3</format>
6563         </numberFormat>
6564       </availableFormats>
6565       <generalDesc>
6566         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
6567         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
6568       </generalDesc>
6569       <fixedLine>
6570         <nationalNumberPattern>
6571           1(?:
6572             1[12568]|
6573             20|
6574             40|
6575             55|
6576             6[146]
6577           )\d{4}|
6578           8\d{6}
6579         </nationalNumberPattern>
6580         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
6581       </fixedLine>
6582       <mobile>
6583         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
6584              numbers or was in addition to them, so we support both here. -->
6585         <nationalNumberPattern>
6586           17[1-3]\d{4}|
6587           7\d{6}
6588         </nationalNumberPattern>
6589         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6590         <exampleNumber>7123456</exampleNumber>
6591       </mobile>
6592     </territory>
6593
6594     <!-- Spain -->
6595     <territory id="ES" countryCode="34" internationalPrefix="00" mobileNumberPortableRegion="true">
6596       <references>
6597         <sourceUrl>http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx</sourceUrl>
6598       </references>
6599       <availableFormats>
6600         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
6601           <leadingDigits>
6602             [568]|
6603             [79][0-8]
6604           </leadingDigits>
6605           <format>$1 $2 $3 $4</format>
6606         </numberFormat>
6607       </availableFormats>
6608       <generalDesc>
6609         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
6610         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6611       </generalDesc>
6612       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
6613            fixed-line ranges. -->
6614       <fixedLine>
6615         <nationalNumberPattern>
6616           8(?:
6617             [13]0|
6618             [28][0-8]|
6619             [47][1-9]|
6620             5[01346-9]|
6621             6[0457-9]
6622           )\d{6}|
6623           9(?:
6624             [1238][0-8]\d{6}|
6625             4[1-9]\d{6}|
6626             5\d{7}|
6627             6(?:
6628               [0-8]\d{6}|
6629               9(?:
6630                 0(?:
6631                   [0-57-9]\d{4}|
6632                   6(?:
6633                     0[0-8]|
6634                     1[1-9]|
6635                     [2-9]\d
6636                   )\d{2}
6637                 )|
6638                 [1-9]\d{5}
6639               )
6640             )|
6641             7(?:
6642               [124-9]\d{2}|
6643               3(?:
6644                 [0-8]\d|
6645                 9[1-9]
6646               )
6647             )\d{4}
6648           )
6649         </nationalNumberPattern>
6650         <exampleNumber>810123456</exampleNumber>
6651       </fixedLine>
6652       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
6653            information received from Lleida Networks. -->
6654       <mobile>
6655         <nationalNumberPattern>
6656           (?:
6657             6\d{6}|
6658             7[1-4]\d{5}|
6659             9(?:
6660               6906(?:
6661                 09|
6662                 10
6663               )|
6664               7390\d{2}
6665             )
6666           )\d{2}
6667         </nationalNumberPattern>
6668         <exampleNumber>612345678</exampleNumber>
6669       </mobile>
6670       <tollFree>
6671         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
6672         <exampleNumber>800123456</exampleNumber>
6673       </tollFree>
6674       <premiumRate>
6675         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
6676         <exampleNumber>803123456</exampleNumber>
6677       </premiumRate>
6678       <sharedCost>
6679         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
6680         <exampleNumber>901123456</exampleNumber>
6681       </sharedCost>
6682       <personalNumber>
6683         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
6684         <exampleNumber>701234567</exampleNumber>
6685       </personalNumber>
6686       <!-- Modelling non-geographic nomadic numbers as UAN. -->
6687       <uan>
6688         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
6689         <exampleNumber>511234567</exampleNumber>
6690       </uan>
6691     </territory>
6692
6693     <!-- Ethiopia -->
6694     <territory id="ET" countryCode="251" internationalPrefix="00"
6695                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6696       <references>
6697         <sourceUrl>http://www.itu.int/oth/T0202000044/en</sourceUrl>
6698       </references>
6699       <availableFormats>
6700         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
6701           <format>$1 $2 $3</format>
6702         </numberFormat>
6703       </availableFormats>
6704       <generalDesc>
6705         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
6706         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
6707       </generalDesc>
6708       <fixedLine>
6709         <nationalNumberPattern>
6710           (?:
6711             11(?:
6712               1(?:
6713                 1[124]|
6714                 2[2-57]|
6715                 3[1-5]|
6716                 5[5-8]|
6717                 8[6-8]
6718               )|
6719               2(?:
6720                 13|
6721                 3[6-8]|
6722                 5[89]|
6723                 7[05-9]|
6724                 8[2-6]
6725               )|
6726               3(?:
6727                 2[01]|
6728                 3[0-289]|
6729                 4[1289]|
6730                 7[1-4]|
6731                 87
6732               )|
6733               4(?:
6734                 1[69]|
6735                 3[2-49]|
6736                 4[0-3]|
6737                 6[5-8]
6738               )|
6739               5(?:
6740                 1[57]|
6741                 44|
6742                 5[0-4]
6743               )|
6744               6(?:
6745                 18|
6746                 2[69]|
6747                 4[5-7]|
6748                 5[1-5]|
6749                 6[0-59]|
6750                 8[015-8]
6751               )
6752             )|
6753             2(?:
6754               2(?:
6755                 11[1-9]|
6756                 22[0-7]|
6757                 33\d|
6758                 44[1467]|
6759                 66[1-68]
6760               )|
6761               5(?:
6762                 11[124-6]|
6763                 33[2-8]|
6764                 44[1467]|
6765                 55[14]|
6766                 66[1-3679]|
6767                 77[124-79]|
6768                 880
6769               )
6770             )|
6771             3(?:
6772               3(?:
6773                 11[0-46-8]|
6774                 22[0-6]|
6775                 33[0134689]|
6776                 44[04]|
6777                 55[0-6]|
6778                 66[01467]
6779               )|
6780               4(?:
6781                 44[0-8]|
6782                 55[0-69]|
6783                 66[0-3]|
6784                 77[1-5]
6785               )
6786             )|
6787             4(?:
6788               6(?:
6789                 22[0-24-7]|
6790                 33[1-5]|
6791                 44[13-69]|
6792                 55[14-689]|
6793                 660|
6794                 88[1-4]
6795               )|
6796               7(?:
6797                 11[1-9]|
6798                 22[1-9]|
6799                 33[13-7]|
6800                 44[13-6]|
6801                 55[1-689]
6802               )
6803             )|
6804             5(?:
6805               7(?:
6806                 227|
6807                 55[05]|
6808                 (?:
6809                   66|
6810                   77
6811                 )[14-8]
6812               )|
6813               8(?:
6814                 11[149]|
6815                 22[013-79]|
6816                 33[0-68]|
6817                 44[013-8]|
6818                 550|
6819                 66[1-5]|
6820                 77\d
6821               )
6822             )
6823           )\d{4}
6824         </nationalNumberPattern>
6825         <exampleNumber>111112345</exampleNumber>
6826       </fixedLine>
6827       <mobile>
6828         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
6829              numbers are visible online than are reported in the ITU document. This pattern is
6830              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
6831              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
6832         <nationalNumberPattern>
6833           9(?:
6834             [1-3]\d|
6835             5[89]
6836           )\d{6}
6837         </nationalNumberPattern>
6838         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6839         <exampleNumber>911234567</exampleNumber>
6840       </mobile>
6841     </territory>
6842
6843     <!-- Finland -->
6844     <!-- Metadata shared with Ã…land (AX) -->
6845     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
6846                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
6847                mobileNumberPortableRegion="true">
6848       <references>
6849         <sourceUrl>http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html</sourceUrl>
6850       </references>
6851       <availableFormats>
6852         <numberFormat pattern="(\d{3})(\d{3,7})">
6853           <leadingDigits>
6854             (?:
6855               [1-3]00|
6856               [6-8]0
6857             )
6858           </leadingDigits>
6859           <format>$1 $2</format>
6860         </numberFormat>
6861         <numberFormat pattern="(\d{2})(\d{4,10})">
6862           <leadingDigits>
6863             [14]|
6864             2[09]|
6865             50|
6866             7[135]
6867           </leadingDigits>
6868           <format>$1 $2</format>
6869         </numberFormat>
6870         <numberFormat pattern="(\d)(\d{4,11})">
6871           <leadingDigits>
6872             [25689][1-8]|
6873             3
6874           </leadingDigits>
6875           <format>$1 $2</format>
6876         </numberFormat>
6877       </availableFormats>
6878       <generalDesc>
6879         <nationalNumberPattern>
6880           1\d{4,11}|
6881           [2-9]\d{4,10}
6882         </nationalNumberPattern>
6883         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
6884       </generalDesc>
6885       <noInternationalDialling>
6886         <!-- According to the national numbering plan, service numbers are in general not accessible
6887              from abroad, although 600/700/800 numbers may be. -->
6888         <nationalNumberPattern>
6889           [13]00\d{3,7}|
6890           2(?:
6891             0(?:
6892               0\d{3,7}|
6893               2[023]\d{1,6}|
6894               9[89]\d{1,6}
6895             )
6896           )|
6897           60(?:
6898             [12]\d{5,6}|
6899             6\d{7}
6900           )|
6901           7(?:
6902             1\d{7}|
6903             3\d{8}|
6904             5[03-9]\d{2,7}
6905           )
6906         </nationalNumberPattern>
6907         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6908         <exampleNumber>100123</exampleNumber>
6909       </noInternationalDialling>
6910       <fixedLine>
6911         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
6912              are listed under UAN. It also excludes Ã…land numbers. -->
6913         <nationalNumberPattern>
6914           1(?:
6915             [3569][1-8]\d{3,9}|
6916             [47]\d{5,10}
6917           )|
6918           2[1-8]\d{3,9}|
6919           3(?:
6920             [1-8]\d{3,9}|
6921             9\d{4,8}
6922           )|
6923           [5689][1-8]\d{3,9}
6924         </nationalNumberPattern>
6925         <exampleNumber>1312345678</exampleNumber>
6926       </fixedLine>
6927       <mobile>
6928         <nationalNumberPattern>
6929           4\d{5,10}|
6930           50\d{4,8}
6931         </nationalNumberPattern>
6932         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
6933         <exampleNumber>412345678</exampleNumber>
6934       </mobile>
6935       <tollFree>
6936         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
6937         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6938         <exampleNumber>8001234567</exampleNumber>
6939       </tollFree>
6940       <premiumRate>
6941         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
6942         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6943         <exampleNumber>600123456</exampleNumber>
6944       </premiumRate>
6945       <uan>
6946         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
6947              assigned to institutions such as universities, the national post, etc, where they are
6948              not otherwise classified as toll-free or premium-rate numbers. -->
6949         <nationalNumberPattern>
6950           [13]0\d{4,8}|
6951           2(?:
6952             0(?:
6953               [016-8]\d{3,7}|
6954               [2-59]\d{2,7}
6955             )|
6956             9\d{4,8}
6957           )|
6958           60(?:
6959             [12]\d{5,6}|
6960             6\d{7}
6961           )|
6962           7(?:
6963             1\d{7}|
6964             3\d{8}|
6965             5[03-9]\d{2,7}
6966           )
6967         </nationalNumberPattern>
6968         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6969         <exampleNumber>10112345</exampleNumber>
6970       </uan>
6971     </territory>
6972
6973     <!-- Fiji -->
6974     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
6975                preferredInternationalPrefix="00" leadingZeroPossible="true">
6976       <references>
6977         <sourceUrl>http://www.itu.int/oth/T0202000048/en</sourceUrl>
6978         <sourceUrl>http://www.tfl.com.fj</sourceUrl>
6979       </references>
6980       <availableFormats>
6981         <numberFormat pattern="(\d{3})(\d{4})">
6982           <leadingDigits>[36-9]</leadingDigits>
6983           <format>$1 $2</format>
6984         </numberFormat>
6985         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
6986           <leadingDigits>0</leadingDigits>
6987           <format>$1 $2 $3</format>
6988         </numberFormat>
6989       </availableFormats>
6990       <generalDesc>
6991         <nationalNumberPattern>
6992           [36-9]\d{6}|
6993           0\d{10}
6994         </nationalNumberPattern>
6995         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
6996       </generalDesc>
6997       <fixedLine>
6998         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
6999              online, including in the white pages. 35X and 85X were found in the exchanges listed on
7000              http://www.tfl.com.fj. -->
7001         <nationalNumberPattern>
7002           (?:
7003             3[0-5]|
7004             6[25-7]|
7005             8[58]
7006           )\d{5}
7007         </nationalNumberPattern>
7008         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7009         <exampleNumber>3212345</exampleNumber>
7010       </fixedLine>
7011       <mobile>
7012         <!-- Adding 7[5-8], 8[03679], and 9[034678] from numbers found online and numbers where SMSs
7013              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
7014         <nationalNumberPattern>
7015           (?:
7016             7[0-8]|
7017             8[034679]|
7018             9\d
7019           )\d{5}
7020         </nationalNumberPattern>
7021         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7022         <exampleNumber>7012345</exampleNumber>
7023       </mobile>
7024       <tollFree>
7025         <!-- Information found on http://www.tfl.com.fj. It is not clear if these are
7026              internationally diallable, or if so, how. -->
7027         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
7028         <possibleNumberPattern>\d{11}</possibleNumberPattern>
7029         <exampleNumber>08001234567</exampleNumber>
7030       </tollFree>
7031     </territory>
7032
7033     <!-- Falkland Islands (Malvinas) -->
7034     <territory id="FK" countryCode="500" internationalPrefix="00">
7035       <references>
7036         <sourceUrl>http://www.itu.int/oth/T0202000046/en</sourceUrl>
7037       </references>
7038       <!-- All numbers are formatted together, as a block. -->
7039       <generalDesc>
7040         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
7041         <possibleNumberPattern>\d{5}</possibleNumberPattern>
7042       </generalDesc>
7043       <fixedLine>
7044         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
7045         <exampleNumber>31234</exampleNumber>
7046       </fixedLine>
7047       <mobile>
7048         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
7049         <exampleNumber>51234</exampleNumber>
7050       </mobile>
7051     </territory>
7052
7053     <!-- Micronesia, Federated States of -->
7054     <territory id="FM" countryCode="691" internationalPrefix="00">
7055       <references>
7056         <sourceUrl>http://www.itu.int/oth/T020200008B/en</sourceUrl>
7057       </references>
7058       <availableFormats>
7059         <numberFormat pattern="(\d{3})(\d{4})">
7060           <format>$1 $2</format>
7061         </numberFormat>
7062       </availableFormats>
7063       <generalDesc>
7064         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
7065         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7066       </generalDesc>
7067       <fixedLine>
7068         <nationalNumberPattern>
7069             3[2357]0[1-9]\d{3}|
7070             9[2-6]\d{5}
7071         </nationalNumberPattern>
7072         <exampleNumber>3201234</exampleNumber>
7073       </fixedLine>
7074       <mobile>
7075         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
7076              are exclusively mobile. -->
7077         <nationalNumberPattern>
7078           3[2357]0[1-9]\d{3}|
7079           9[2-7]\d{5}
7080         </nationalNumberPattern>
7081         <exampleNumber>3501234</exampleNumber>
7082       </mobile>
7083     </territory>
7084
7085     <!-- Faroe Islands -->
7086     <territory id="FO" countryCode="298" internationalPrefix="00"
7087                nationalPrefixForParsing="(10(?:01|[12]0|88))"
7088                carrierCodeFormattingRule="$CC $FG">
7089       <references>
7090         <sourceUrl>http://www.itu.int/oth/T0202000047/en</sourceUrl>
7091       </references>
7092       <!-- All numbers are formatted together, as a block. -->
7093       <availableFormats>
7094         <numberFormat pattern="(\d{6})">
7095           <format>$1</format>
7096         </numberFormat>
7097       </availableFormats>
7098       <generalDesc>
7099         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
7100         <possibleNumberPattern>\d{6}</possibleNumberPattern>
7101       </generalDesc>
7102       <fixedLine>
7103         <nationalNumberPattern>
7104           (?:
7105             20|
7106             [3-4]\d|
7107             8[19]
7108           )\d{4}
7109         </nationalNumberPattern>
7110         <exampleNumber>201234</exampleNumber>
7111       </fixedLine>
7112       <mobile>
7113         <nationalNumberPattern>
7114           (?:
7115             2[1-9]|
7116             5\d|
7117             7[1-79]
7118           )\d{4}
7119         </nationalNumberPattern>
7120         <exampleNumber>211234</exampleNumber>
7121       </mobile>
7122       <tollFree>
7123         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
7124         <exampleNumber>802123</exampleNumber>
7125       </tollFree>
7126       <premiumRate>
7127         <nationalNumberPattern>
7128           90(?:
7129             [1345][15-7]|
7130             2[125-7]|
7131             99
7132             )\d{2}
7133         </nationalNumberPattern>
7134         <exampleNumber>901123</exampleNumber>
7135       </premiumRate>
7136       <voip>
7137         <nationalNumberPattern>
7138           (?:
7139             6[0-36]|
7140             88
7141           )\d{4}
7142         </nationalNumberPattern>
7143         <exampleNumber>601234</exampleNumber>
7144       </voip>
7145     </territory>
7146
7147     <!-- France -->
7148     <territory id="FR" countryCode="33" internationalPrefix="00" nationalPrefix="0"
7149                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
7150       <references>
7151         <sourceUrl>http://www.itu.int/oth/T020200004A/en</sourceUrl>
7152         <sourceUrl>http://www.arcep.fr/index.php?id=8146</sourceUrl>
7153         <sourceUrl>http://en.wikipedia.org/wiki/%2B33</sourceUrl>
7154       </references>
7155       <!-- Short numbers will be formatted as a block without a national prefix. -->
7156       <availableFormats>
7157         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
7158           <leadingDigits>[1-79]</leadingDigits>
7159           <format>$1 $2 $3 $4 $5</format>
7160         </numberFormat>
7161         <numberFormat pattern="(1\d{2})(\d{3})" nationalPrefixFormattingRule="$FG">
7162           <leadingDigits>11</leadingDigits>
7163           <format>$1 $2</format>
7164           <intlFormat>NA</intlFormat>
7165         </numberFormat>
7166         <numberFormat nationalPrefixFormattingRule="$NP $FG"
7167           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
7168           <leadingDigits>8</leadingDigits>
7169           <format>$1 $2 $3 $4</format>
7170         </numberFormat>
7171       </availableFormats>
7172       <generalDesc>
7173         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
7174         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7175       </generalDesc>
7176       <fixedLine>
7177         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
7178         <exampleNumber>123456789</exampleNumber>
7179       </fixedLine>
7180       <mobile>
7181         <nationalNumberPattern>
7182           6\d{8}|
7183           7[5-9]\d{7}
7184         </nationalNumberPattern>
7185         <exampleNumber>612345678</exampleNumber>
7186       </mobile>
7187       <tollFree>
7188         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
7189         <exampleNumber>801234567</exampleNumber>
7190       </tollFree>
7191       <premiumRate>
7192         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
7193         <exampleNumber>891123456</exampleNumber>
7194       </premiumRate>
7195       <sharedCost>
7196         <nationalNumberPattern>
7197           8(?:
7198             1[019]|
7199             2[0156]|
7200             84|
7201             90
7202           )\d{6}
7203         </nationalNumberPattern>
7204         <exampleNumber>810123456</exampleNumber>
7205       </sharedCost>
7206       <voip>
7207         <!-- 087 numbers used to be used for this. -->
7208         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
7209         <exampleNumber>912345678</exampleNumber>
7210       </voip>
7211     </territory>
7212
7213     <!-- Gabon -->
7214     <!-- Note: We cannot set nationalPrefix="0" while fixed line numbers can start with a zero
7215          as this breaks parsing (it treats all leading zeros as national prefixes. -->
7216     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true" >
7217       <references>
7218         <sourceUrl>http://www.itu.int/oth/T020200004E/en</sourceUrl>
7219         <sourceUrl>http://www.arcep.ga</sourceUrl>
7220       </references>
7221       <availableFormats>
7222         <!-- If no leading zero was supplied, format with the national prefix. -->
7223         <numberFormat pattern="(\d)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="0$FG">
7224           <leadingDigits>[2-7]</leadingDigits>
7225           <format>$1 $2 $3 $4</format>
7226         </numberFormat>
7227         <!-- This already has a leading zero so we format is "as is". -->
7228         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
7229           <leadingDigits>0</leadingDigits>
7230          <format>$1 $2 $3 $4</format>
7231         </numberFormat>
7232       </availableFormats>
7233       <generalDesc>
7234         <nationalNumberPattern>0?\d{7}</nationalNumberPattern>
7235         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
7236       </generalDesc>
7237       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
7238            line and mobile numbering. However, this has only partially happened; mobile numbers can
7239            now be dialed without a leading zero, but fixed line numbers still require it. Their own
7240            website still lists fixed line numbers as "+241 01 44 68 11" and upon ringing they will
7241            not connect from outside the country without the 0. This was last tested March 2014. -->
7242       <fixedLine>
7243         <nationalNumberPattern>01\d{6}</nationalNumberPattern>
7244         <possibleNumberPattern>\d{8}</possibleNumberPattern>
7245         <exampleNumber>01441234</exampleNumber>
7246       </fixedLine>
7247       <mobile>
7248         <!-- Mobile numbers can be 7 or 8 digits (with or without a leading zero). -->
7249         <nationalNumberPattern>0?[2-7]\d{6}</nationalNumberPattern>
7250         <exampleNumber>06031234</exampleNumber>
7251       </mobile>
7252     </territory>
7253
7254     <!-- United Kingdom -->
7255     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
7256          validation, although the formatting rules are shared. -->
7257     <territory id="GB" countryCode="44" internationalPrefix="00"
7258                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
7259                mainCountryForCode="true" mobileNumberPortableRegion="true">
7260       <references>
7261         <sourceUrl>http://stakeholders.ofcom.org.uk/telecoms/numbering/</sourceUrl>
7262         <sourceUrl>http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes</sourceUrl>
7263         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=GB</sourceUrl>
7264       </references>
7265       <availableFormats>
7266         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
7267         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
7268           <leadingDigits>
7269             2|
7270             5[56]|
7271             7(?:
7272               0|
7273               6[013-9]
7274             )
7275           </leadingDigits>
7276           <leadingDigits>
7277             2|
7278             5[56]|
7279             7(?:
7280               0|
7281               6(?:
7282                 [013-9]|
7283                 2[0-35-9]
7284               )
7285             )
7286           </leadingDigits>
7287           <format>$1 $2 $3</format>
7288         </numberFormat>
7289         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
7290         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
7291           <leadingDigits>
7292             1(?:
7293               1|
7294               \d1
7295             )|
7296             3|
7297             9[018]
7298           </leadingDigits>
7299           <format>$1 $2 $3</format>
7300         </numberFormat>
7301         <!-- 1dddd with 9 or 10 digits.
7302              These area codes are very rare in GB, and are only available in the following places:
7303              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
7304              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
7305              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
7306         <numberFormat pattern="(\d{5})(\d{4,5})">
7307           <leadingDigits>
7308             1(?:
7309               38|
7310               5[23]|
7311               69|
7312               76|
7313               94
7314             )
7315           </leadingDigits>
7316           <leadingDigits>
7317             1(?:
7318               387|
7319               5(?:
7320                 24|
7321                 39
7322               )|
7323               697|
7324               768|
7325               946
7326             )
7327           </leadingDigits>
7328           <leadingDigits>
7329             1(?:
7330               3873|
7331               5(?:
7332                 242|
7333                 39[456]
7334               )|
7335               697[347]|
7336               768[347]|
7337               9467
7338             )
7339           </leadingDigits>
7340           <format>$1 $2</format>
7341         </numberFormat>
7342         <!-- 1ddd with 9 or 10 digits. -->
7343         <numberFormat pattern="(1\d{3})(\d{5,6})">
7344           <leadingDigits>1</leadingDigits>
7345           <format>$1 $2</format>
7346         </numberFormat>
7347         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
7348         <numberFormat pattern="(7\d{3})(\d{6})">
7349           <leadingDigits>
7350             7(?:
7351               [1-5789]|
7352               62
7353             )
7354           </leadingDigits>
7355           <leadingDigits>
7356             7(?:
7357               [1-5789]|
7358               624
7359             )
7360           </leadingDigits>
7361           <format>$1 $2</format>
7362         </numberFormat>
7363         <!-- 800 1111 : UK ChildLine. -->
7364         <numberFormat pattern="(800)(\d{4})">
7365           <leadingDigits>800</leadingDigits>
7366           <leadingDigits>8001</leadingDigits>
7367           <leadingDigits>80011</leadingDigits>
7368           <leadingDigits>800111</leadingDigits>
7369           <leadingDigits>8001111</leadingDigits>
7370           <format>$1 $2</format>
7371         </numberFormat>
7372         <!-- 845 46 47 : UK NHS Direct. -->
7373         <numberFormat pattern="(845)(46)(4\d)">
7374           <leadingDigits>845</leadingDigits>
7375           <leadingDigits>8454</leadingDigits>
7376           <leadingDigits>84546</leadingDigits>
7377           <leadingDigits>845464</leadingDigits>
7378           <format>$1 $2 $3</format>
7379         </numberFormat>
7380         <!-- 84d, 87d with 10 digits. -->
7381         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
7382           <leadingDigits>
7383             8(?:
7384               4[2-5]|
7385               7[0-3]
7386             )
7387           </leadingDigits>
7388           <format>$1 $2 $3</format>
7389         </numberFormat>
7390         <!-- 80d (including 800) with 10 digits. -->
7391         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
7392           <leadingDigits>80</leadingDigits>
7393           <format>$1 $2 $3</format>
7394         </numberFormat>
7395         <!-- 500, 800 with 9 digits. -->
7396         <numberFormat pattern="([58]00)(\d{6})">
7397           <leadingDigits>[58]00</leadingDigits>
7398           <format>$1 $2</format>
7399         </numberFormat>
7400       </availableFormats>
7401       <generalDesc>
7402         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
7403         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
7404       </generalDesc>
7405       <areaCodeOptional>
7406         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
7407              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
7408              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
7409              necessarily valid numbers. -->
7410         <nationalNumberPattern>
7411           2\d[2-9]\d{7}|
7412           1(?:
7413             1\d|
7414             \d1
7415           )[2-9]\d{6}|
7416           1(?:
7417             [248][02-9]\d[2-9]\d{4,5}|
7418             (?:
7419               3(?:
7420                 [02-79]\d|
7421                 8[0-69]
7422               )|
7423               5(?:
7424                 [04-9]\d|
7425                 2[0-35-9]|
7426                 3[0-8]
7427               )|
7428               6(?:
7429                 [02-8]\d|
7430                 9[0-689]
7431               )|
7432               7(?:
7433                 [02-5789]\d|
7434                 6[0-79]
7435               )|
7436               9(?:
7437                 [0235-9]\d|
7438                 4[0-5789]
7439               )
7440             )[2-9]\d{4,5}|
7441             (?:
7442               387(?:
7443                 3[2-9]|
7444                 [24-9]\d
7445               )|
7446               5(?:
7447                 24(?:
7448                   2[2-9]|
7449                   [3-9]\d
7450                 )|
7451                 39(?:
7452                   [4-6][2-9]|
7453                   [237-9]\d
7454                 )
7455               )|
7456               697(?:
7457                 [347][2-9]|
7458                 [25689]\d
7459               )|
7460               768(?:
7461                 [347][2-9]|
7462                 [25679]\d
7463               )|
7464               946(?:
7465                 7[2-9]|
7466                 [2-689]\d
7467               )
7468             )\d{3,4}
7469           )
7470         </nationalNumberPattern>
7471         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
7472         <exampleNumber>1332456789</exampleNumber>
7473       </areaCodeOptional>
7474       <fixedLine>
7475         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7476         <!-- Pattern matches geographic NSN=10 numbers as follows:
7477              - area code and local number first digit for 2+8,
7478              - area code and local number first digit for 3+7,
7479              - area code only for 4+6 (including areas with embedded 5+5).
7480              Pattern matches geographic NSN=9 numbers as follows:
7481              - area code and local number first two digits for 4+5,
7482              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
7483              - area code and local number first digit for 5+4 special case (016977) Dddd.
7484              All patterns exclude ranges used in GG, IM, JE. -->
7485         <nationalNumberPattern>
7486           2(?:
7487             0[01378]|
7488             3[0189]|
7489             4[017]|
7490             8[0-46-9]|
7491             9[012]
7492           )\d{7}|
7493           1(?:
7494             (?:
7495               1(?:
7496                 3[0-48]|
7497                 [46][0-4]|
7498                 5[012789]|
7499                 7[0-49]|
7500                 8[01349]
7501               )|
7502               21[0-7]|
7503               31[0-8]|
7504               [459]1\d|
7505               61[0-46-9]
7506             )
7507           )\d{6}|
7508           1(?:
7509             2(?:
7510               0[024-9]|
7511               2[3-9]|
7512               3[3-79]|
7513               4[1-689]|
7514               [58][02-9]|
7515               6[0-4789]|
7516               7[013-9]|
7517               9\d
7518             )|
7519             3(?:
7520               0\d|
7521               [25][02-9]|
7522               3[02-579]|
7523               [468][0-46-9]|
7524               7[1235679]|
7525               9[24578]
7526             )|
7527             4(?:
7528               0[03-9]|
7529               [28][02-5789]|
7530               [37]\d|
7531               4[02-69]|
7532               5[0-8]|
7533               [69][0-79]
7534             )|
7535             5(?:
7536               0[1235-9]|
7537               2[024-9]|
7538               3[015689]|
7539               4[02-9]|
7540               5[03-9]|
7541               6\d|
7542               7[0-35-9]|
7543               8[0-468]|
7544               9[0-5789]
7545             )|
7546             6(?:
7547               0[034689]|
7548               2[0-35689]|
7549               [38][013-9]|
7550               4[1-467]|
7551               5[0-69]|
7552               6[13-9]|
7553               7[0-8]|
7554               9[0124578]
7555             )|
7556             7(?:
7557               0[0246-9]|
7558               2\d|
7559               3[023678]|
7560               4[03-9]|
7561               5[0-46-9]|
7562               6[013-9]|
7563               7[0-35-9]|
7564               8[024-9]|
7565               9[02-9]
7566             )|
7567             8(?:
7568               0[35-9]|
7569               2[1-5789]|
7570               3[02-578]|
7571               4[0-578]|
7572               5[124-9]|
7573               6[2-69]|
7574               7\d|
7575               8[02-9]|
7576               9[02569]
7577             )|
7578             9(?:
7579               0[02-589]|
7580               2[02-689]|
7581               3[1-5789]|
7582               4[2-9]|
7583               5[0-579]|
7584               6[234789]|
7585               7[0124578]|
7586               8\d|
7587               9[2-57]
7588             )
7589           )\d{6}|
7590           1(?:
7591             2(?:
7592               0(?:
7593                 46[1-4]|
7594                 87[2-9]
7595               )|
7596               545[1-79]|
7597               76(?:
7598                 2\d|
7599                 3[1-8]|
7600                 6[1-6]
7601               )|
7602               9(?:
7603                 7(?:
7604                   2[0-4]|
7605                   3[2-5]
7606                 )|
7607                 8(?:
7608                   2[2-8]|
7609                   7[0-4789]|
7610                   8[345]
7611                 )
7612               )
7613             )|
7614             3(?:
7615               638[2-5]|
7616               647[23]|
7617               8(?:
7618                 47[04-9]|
7619                 64[015789]
7620               )
7621             )|
7622             4(?:
7623               044[1-7]|
7624               20(?:
7625                 2[23]|
7626                 8\d
7627               )|
7628               6(?:
7629                 0(?:
7630                   30|
7631                   5[2-57]|
7632                   6[1-8]|
7633                   7[2-8]
7634                 )|
7635                 140
7636               )|
7637               8(?:
7638                 052|
7639                 87[123]
7640               )
7641             )|
7642             5(?:
7643               24(?:
7644                 3[2-79]|
7645                 6\d
7646               )|
7647               276\d|
7648               6(?:
7649                 26[06-9]|
7650                 686
7651               )
7652             )|
7653             6(?:
7654               06(?:
7655                 4\d|
7656                 7[4-79]
7657               )|
7658               295[567]|
7659               35[34]\d|
7660               47(?:
7661                 24|
7662                 61
7663               )|
7664               59(?:
7665                 5[08]|
7666                 6[67]|
7667                 74
7668               )|
7669               955[0-4]
7670             )|
7671             7(?:
7672               26(?:
7673                 6[13-9]|
7674                 7[0-7]
7675               )|
7676               442\d|
7677               50(?:
7678                 2[0-3]|
7679                 [3-68]2|
7680                 76
7681               )
7682             )|
7683             8(?:
7684               27[56]\d|
7685               37(?:
7686                 5[2-5]|
7687                 8[239]
7688               )|
7689               84(?:
7690                 3[2-58]
7691               )
7692             )|
7693             9(?:
7694               0(?:
7695                 0(?:
7696                   6[1-8]|
7697                   85
7698                 )|
7699                 52\d
7700               )|
7701               3583|
7702               4(?:
7703                 66[1-8]|
7704                 9(?:
7705                   2[01]|
7706                   81
7707                 )
7708               )|
7709               63(?:
7710                 23|
7711                 3[1-4]
7712               )|
7713               9561
7714             )
7715           )\d{3}|
7716           176888[234678]\d{2}|
7717           16977[23]\d{3}
7718         </nationalNumberPattern>
7719         <exampleNumber>1212345678</exampleNumber>
7720       </fixedLine>
7721       <mobile>
7722         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
7723              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
7724         <nationalNumberPattern>
7725           7(?:
7726             [1-4]\d\d|
7727             5(?:
7728               0[0-8]|
7729               [13-9]\d|
7730               2[0-35-9]
7731             )|
7732             7(?:
7733               0[1-9]|
7734               [1-7]\d|
7735               8[02-9]|
7736               9[0-689]
7737             )|
7738             8(?:
7739               [014-9]\d|
7740               [23][0-8]
7741             )|
7742             9(?:
7743               [04-9]\d|
7744               1[02-9]|
7745               2[0-35-9]|
7746               3[0-689]
7747             )
7748           )\d{6}
7749         </nationalNumberPattern>
7750         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7751         <exampleNumber>7400123456</exampleNumber>
7752       </mobile>
7753       <pager>
7754         <!-- 76 with 10 digits; excluding ranges used in IM. -->
7755         <nationalNumberPattern>
7756           76(?:
7757             0[012]|
7758             2[356]|
7759             4[0134]|
7760             5[49]|
7761             6[0-369]|
7762             77|
7763             81|
7764             9[39]
7765           )\d{6}
7766         </nationalNumberPattern>
7767         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7768         <exampleNumber>7640123456</exampleNumber>
7769       </pager>
7770       <!-- Source for non geographic numbers:
7771            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
7772       <tollFree>
7773         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
7774              -->
7775         <nationalNumberPattern>
7776           80(?:
7777             0(?:
7778               1111|
7779               \d{6,7}
7780             )|
7781             8\d{7}
7782           )|
7783           500\d{6}
7784         </nationalNumberPattern>
7785         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
7786         <exampleNumber>8001234567</exampleNumber>
7787       </tollFree>
7788       <premiumRate>
7789         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
7790              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
7791              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
7792              910-919 are reserved for standard premium rate services. -->
7793         <nationalNumberPattern>
7794           (?:
7795             87[123]|
7796             9(?:
7797               [01]\d|
7798               8[2349]
7799             )
7800           )\d{7}
7801         </nationalNumberPattern>
7802         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7803         <exampleNumber>9012345678</exampleNumber>
7804       </premiumRate>
7805       <sharedCost>
7806         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
7807              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
7808         <nationalNumberPattern>
7809           8(?:
7810             4(?:
7811               5464\d|
7812               [2-5]\d{7}
7813             )|
7814             70\d{7}
7815           )
7816         </nationalNumberPattern>
7817         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7818         <exampleNumber>8431234567</exampleNumber>
7819       </sharedCost>
7820       <personalNumber>
7821         <!-- 70 with 10 digits. -->
7822         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
7823         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7824         <exampleNumber>7012345678</exampleNumber>
7825       </personalNumber>
7826       <voip>
7827         <!-- 56 with 10 digits. -->
7828         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
7829         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7830         <exampleNumber>5612345678</exampleNumber>
7831       </voip>
7832       <uan>
7833         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
7834         <nationalNumberPattern>
7835           (?:
7836             3[0347]|
7837             55
7838           )\d{8}
7839         </nationalNumberPattern>
7840         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7841         <exampleNumber>5512345678</exampleNumber>
7842       </uan>
7843     </territory>
7844
7845     <!-- Grenada -->
7846     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
7847                internationalPrefix="011">
7848       <references>
7849         <sourceUrl>http://www.itu.int/oth/T0202000057/en</sourceUrl>
7850       </references>
7851       <generalDesc>
7852         <!-- NANPA country - uses US formatting rules -->
7853         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
7854         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7855       </generalDesc>
7856       <fixedLine>
7857         <nationalNumberPattern>
7858           473(?:
7859             2(?:
7860               3[0-2]|
7861               69
7862             )|
7863             3(?:
7864               2[89]|
7865               86
7866             )|
7867             4(?:
7868               [06]8|
7869               3[5-9]|
7870               4[0-49]|
7871               5[5-79]|
7872               68|
7873               73|
7874               90
7875             )|
7876             63[68]|
7877             7(?:
7878               58|
7879               84
7880             )|
7881             800|
7882             938
7883           )\d{4}
7884         </nationalNumberPattern>
7885         <exampleNumber>4732691234</exampleNumber>
7886       </fixedLine>
7887       <mobile>
7888         <nationalNumberPattern>
7889           473(?:
7890             4(?:
7891               0[2-79]|
7892               1[04-9]|
7893               20|
7894               58
7895             )|
7896             5(?:
7897               2[01]|
7898               3[3-8]
7899             )|
7900             901
7901           )\d{4}
7902         </nationalNumberPattern>
7903         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7904         <exampleNumber>4734031234</exampleNumber>
7905       </mobile>
7906       <tollFree>
7907         <nationalNumberPattern>
7908           8(?:
7909             00|
7910             44|
7911             55|
7912             66|
7913             77|
7914             88
7915           )[2-9]\d{6}
7916         </nationalNumberPattern>
7917         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7918         <exampleNumber>8002123456</exampleNumber>
7919       </tollFree>
7920       <premiumRate>
7921         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
7922         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7923         <exampleNumber>9002123456</exampleNumber>
7924       </premiumRate>
7925       <personalNumber>
7926         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
7927         <nationalNumberPattern>
7928           5(?:
7929             00|
7930             33|
7931             44|
7932             66|
7933             77
7934           )[2-9]\d{6}
7935         </nationalNumberPattern>
7936         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7937         <exampleNumber>5002345678</exampleNumber>
7938       </personalNumber>
7939     </territory>
7940
7941     <!-- Georgia -->
7942     <territory id="GE" countryCode="995" internationalPrefix="00" nationalPrefix="0"
7943                mobileNumberPortableRegion="true">
7944       <references>
7945         <sourceUrl>http://www.itu.int/oth/T0202000050/en</sourceUrl>
7946         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia_(country)</sourceUrl>
7947       </references>
7948       <availableFormats>
7949         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
7950              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
7951         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
7952           <leadingDigits>[348]</leadingDigits>
7953           <format>$1 $2 $3 $4</format>
7954         </numberFormat>
7955         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
7956           <leadingDigits>7</leadingDigits>
7957           <format>$1 $2 $3</format>
7958         </numberFormat>
7959         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
7960           <leadingDigits>5</leadingDigits>
7961           <format>$1 $2 $3 $4</format>
7962         </numberFormat>
7963       </availableFormats>
7964       <noInternationalDialling>
7965         <!-- Online numbers mention that this is not internationally diallable. -->
7966         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
7967         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7968         <exampleNumber>706123456</exampleNumber>
7969       </noInternationalDialling>
7970       <generalDesc>
7971         <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
7972         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
7973       </generalDesc>
7974       <fixedLine>
7975         <nationalNumberPattern>
7976           (?:
7977             3(?:
7978               [256]\d|
7979               4[124-9]|
7980               7[0-4]
7981             )|
7982             4(?:
7983               1\d|
7984               2[2-7]|
7985               3[1-79]|
7986               4[2-8]|
7987               7[239]|
7988               9[1-7]
7989             )
7990           )\d{6}
7991         </nationalNumberPattern>
7992         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
7993         <exampleNumber>322123456</exampleNumber>
7994       </fixedLine>
7995       <mobile>
7996         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
7997              about the change in numbers, and online numbers found. -->
7998         <nationalNumberPattern>
7999           5(?:
8000             14|
8001             5[01578]|
8002             68|
8003             7[0147-9]|
8004             9[0-35-9]
8005           )\d{6}
8006         </nationalNumberPattern>
8007         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8008         <exampleNumber>555123456</exampleNumber>
8009       </mobile>
8010       <!-- Information from http://www.yell.ge, examples such as Wissol Petroleum Georgia
8011            hotline. -->
8012       <tollFree>
8013         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
8014         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8015         <exampleNumber>800123456</exampleNumber>
8016       </tollFree>
8017       <voip>
8018         <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
8019         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8020         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8021         <exampleNumber>706123456</exampleNumber>
8022       </voip>
8023       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
8024            these are omitted for now. -->
8025     </territory>
8026
8027     <!-- French Guiana (French Dept. of) -->
8028     <!-- Using a national prefix here as online numbers are formatted with it. -->
8029     <territory id="GF" countryCode="594" internationalPrefix="00"
8030                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
8031       <references>
8032         <sourceUrl>http://www.itu.int/oth/T020200004C/en</sourceUrl>
8033         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0594&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
8034         <sourceUrl>http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf</sourceUrl>
8035       </references>
8036       <availableFormats>
8037         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8038           <format>$1 $2 $3 $4</format>
8039         </numberFormat>
8040       </availableFormats>
8041       <generalDesc>
8042         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8043         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8044       </generalDesc>
8045       <fixedLine>
8046         <nationalNumberPattern>
8047           594(?:
8048             10|
8049             2[012457-9]|
8050             3[0-57-9]|
8051             4[3-9]|
8052             5[7-9]|
8053             6[0-3]|
8054             9[014]
8055           )\d{4}
8056         </nationalNumberPattern>
8057         <exampleNumber>594101234</exampleNumber>
8058       </fixedLine>
8059       <mobile>
8060         <nationalNumberPattern>
8061           694(?:
8062             [04][0-7]|
8063             1[0-5]|
8064             3[018]|
8065             [29]\d
8066           )\d{4}
8067         </nationalNumberPattern>
8068         <exampleNumber>694201234</exampleNumber>
8069       </mobile>
8070       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
8071            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
8072            too. -->
8073     </territory>
8074
8075     <!-- Guernsey -->
8076     <!-- Inherits formatting rules from the UK. -->
8077     <territory id="GG" countryCode="44" internationalPrefix="00"
8078                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
8079       <references>
8080         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
8081       </references>
8082       <generalDesc>
8083         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
8084         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
8085       </generalDesc>
8086       <areaCodeOptional>
8087         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
8088         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8089         <exampleNumber>1481250123</exampleNumber>
8090       </areaCodeOptional>
8091       <!-- Specific to GG. -->
8092       <fixedLine>
8093         <!-- 1481 with 10 digits. -->
8094         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
8095         <exampleNumber>1481456789</exampleNumber>
8096       </fixedLine>
8097       <mobile>
8098         <!-- 7781, 7839, 7911 with 10 digits. -->
8099         <nationalNumberPattern>
8100           7(?:
8101             781|
8102             839|
8103             911
8104           )\d{6}
8105         </nationalNumberPattern>
8106         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8107         <exampleNumber>7781123456</exampleNumber>
8108       </mobile>
8109       <!-- Other numbers as per GB. -->
8110       <pager>
8111         <nationalNumberPattern>
8112           76(?:
8113             0[012]|
8114             2[356]|
8115             4[0134]|
8116             5[49]|
8117             6[0-369]|
8118             77|
8119             81|
8120             9[39]
8121           )\d{6}
8122         </nationalNumberPattern>
8123         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8124         <exampleNumber>7640123456</exampleNumber>
8125       </pager>
8126       <tollFree>
8127         <nationalNumberPattern>
8128           80(?:
8129             0(?:
8130               1111|
8131               \d{6,7}
8132             )|
8133             8\d{7}
8134           )|
8135           500\d{6}
8136         </nationalNumberPattern>
8137         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
8138         <exampleNumber>8001234567</exampleNumber>
8139       </tollFree>
8140       <premiumRate>
8141         <nationalNumberPattern>
8142           (?:
8143             87[123]|
8144             9(?:
8145               [01]\d|
8146               8[0-3]
8147             )
8148           )\d{7}
8149         </nationalNumberPattern>
8150         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8151         <exampleNumber>9012345678</exampleNumber>
8152       </premiumRate>
8153       <sharedCost>
8154         <nationalNumberPattern>
8155           8(?:
8156             4(?:
8157               5464\d|
8158               [2-5]\d{7}
8159             )|
8160             70\d{7}
8161           )
8162         </nationalNumberPattern>
8163         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8164         <exampleNumber>8431234567</exampleNumber>
8165       </sharedCost>
8166       <personalNumber>
8167         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8168         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8169         <exampleNumber>7012345678</exampleNumber>
8170       </personalNumber>
8171       <voip>
8172         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
8173         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8174         <exampleNumber>5612345678</exampleNumber>
8175       </voip>
8176       <uan>
8177         <nationalNumberPattern>
8178           (?:
8179             3[0347]|
8180             55
8181           )\d{8}
8182         </nationalNumberPattern>
8183         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8184         <exampleNumber>5512345678</exampleNumber>
8185       </uan>
8186     </territory>
8187
8188     <!-- Ghana -->
8189     <territory id="GH" countryCode="233" internationalPrefix="00"
8190                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
8191                mobileNumberPortableRegion="true">
8192       <references>
8193         <sourceUrl>http://www.itu.int/oth/T0202000052/en</sourceUrl>
8194         <sourceUrl>http://www.nca.org.gh/index.php?option=com_content&amp;view=article&amp;id=90&amp;Itemid=65</sourceUrl>
8195       </references>
8196       <availableFormats>
8197         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
8198           <leadingDigits>[235]</leadingDigits>
8199           <format>$1 $2 $3</format>
8200         </numberFormat>
8201         <numberFormat pattern="(\d{3})(\d{5})">
8202           <leadingDigits>8</leadingDigits>
8203           <format>$1 $2</format>
8204         </numberFormat>
8205       </availableFormats>
8206       <generalDesc>
8207         <nationalNumberPattern>
8208           [235]\d{8}|
8209           8\d{7}
8210         </nationalNumberPattern>
8211         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8212       </generalDesc>
8213       <noInternationalDialling>
8214         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8215         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8216         <exampleNumber>80012345</exampleNumber>
8217       </noInternationalDialling>
8218       <fixedLine>
8219         <nationalNumberPattern>
8220           3(?:
8221             0[237]\d|
8222             [167](?:
8223               2[0-6]|
8224               7\d
8225             )|
8226             2(?:
8227               2[0-5]|
8228               7\d
8229             )|
8230             3(?:
8231               2[0-3]|
8232               7\d
8233             )|
8234             4(?:
8235               2[013-9]|
8236               3[01]|
8237               7\d
8238             )|
8239             5(?:
8240               2[0-7]|
8241               7\d
8242             )|
8243             8(?:
8244               2[0-2]|
8245               7\d
8246             )|
8247             9(?:
8248               20|
8249               7\d
8250             )
8251           )\d{5}
8252         </nationalNumberPattern>
8253         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8254         <exampleNumber>302345678</exampleNumber>
8255       </fixedLine>
8256       <mobile>
8257         <nationalNumberPattern>
8258           (?:
8259             2[034678]\d|
8260             5(?:
8261               [047]\d|
8262               54|
8263               6[01]
8264             )
8265           )\d{6}
8266         </nationalNumberPattern>
8267         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8268         <exampleNumber>231234567</exampleNumber>
8269       </mobile>
8270       <tollFree>
8271         <!-- Found online references to these numbers, although they are not in the plan since they
8272              are not internationally diallable. -->
8273         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8274         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8275         <exampleNumber>80012345</exampleNumber>
8276       </tollFree>
8277       <!-- No premiumRate information can be found. -->
8278     </territory>
8279
8280     <!-- Gibraltar -->
8281     <territory id="GI" countryCode="350" internationalPrefix="00">
8282       <references>
8283         <sourceUrl>http://www.gra.gi/index.php?topic=numbering+plan&amp;section=legislation&amp;site=communications</sourceUrl>
8284       </references>
8285       <availableFormats>
8286         <!-- Most numbers are formatted as a block -->
8287         <numberFormat pattern="(\d{3})(\d{5})">
8288           <leadingDigits>2</leadingDigits>
8289           <format>$1 $2</format>
8290         </numberFormat>
8291       </availableFormats>
8292       <generalDesc>
8293         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
8294         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8295       </generalDesc>
8296       <fixedLine>
8297         <nationalNumberPattern>
8298           2(?:
8299             00\d|
8300             1(?:
8301               6[24-7]|
8302               9\d
8303             )|
8304             2(?:
8305               00|
8306               2[2457]
8307             )
8308           )\d{4}
8309         </nationalNumberPattern>
8310         <exampleNumber>20012345</exampleNumber>
8311       </fixedLine>
8312       <mobile>
8313         <nationalNumberPattern>
8314           (?:
8315             5[46-8]|
8316             62
8317           )\d{6}
8318         </nationalNumberPattern>
8319         <exampleNumber>57123456</exampleNumber>
8320       </mobile>
8321       <tollFree>
8322         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
8323         <exampleNumber>80123456</exampleNumber>
8324       </tollFree>
8325       <premiumRate>
8326         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
8327         <exampleNumber>88123456</exampleNumber>
8328       </premiumRate>
8329       <sharedCost>
8330         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
8331         <exampleNumber>87123456</exampleNumber>
8332       </sharedCost>
8333     </territory>
8334
8335     <!-- Greenland -->
8336     <territory id="GL" countryCode="299" internationalPrefix="00">
8337       <references>
8338         <sourceUrl>http://www.itu.int/oth/T0202000056/en</sourceUrl>
8339       </references>
8340       <availableFormats>
8341         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
8342           <format>$1 $2 $3</format>
8343         </numberFormat>
8344       </availableFormats>
8345       <generalDesc>
8346         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
8347         <possibleNumberPattern>\d{6}</possibleNumberPattern>
8348       </generalDesc>
8349       <fixedLine>
8350         <!-- Including VSAT numbers here. -->
8351         <nationalNumberPattern>
8352           (?:
8353             19|
8354             3[1-6]|
8355             6[14689]|
8356             8[14-79]|
8357             9\d
8358           )\d{4}
8359         </nationalNumberPattern>
8360         <exampleNumber>321000</exampleNumber>
8361       </fixedLine>
8362       <mobile>
8363         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
8364         <exampleNumber>221234</exampleNumber>
8365       </mobile>
8366       <tollFree>
8367         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
8368         <exampleNumber>801234</exampleNumber>
8369       </tollFree>
8370       <voip>
8371         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
8372         <exampleNumber>381234</exampleNumber>
8373       </voip>
8374     </territory>
8375
8376     <!-- Gambia -->
8377     <territory id="GM" countryCode="220" internationalPrefix="00">
8378       <references>
8379         <sourceUrl>http://www.itu.int/oth/T020200004F/en</sourceUrl>
8380       </references>
8381       <availableFormats>
8382         <numberFormat pattern="(\d{3})(\d{4})">
8383           <format>$1 $2</format>
8384         </numberFormat>
8385       </availableFormats>
8386       <generalDesc>
8387         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
8388         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8389       </generalDesc>
8390       <fixedLine>
8391         <nationalNumberPattern>
8392           (?:
8393             4(?:
8394               [23]\d{2}|
8395               4(?:
8396                 1[024679]|
8397                 [6-9]\d
8398               )
8399             )|
8400             5(?:
8401               54[0-7]|
8402               6(?:
8403                 [67]\d
8404               )|
8405               7(?:
8406                 1[04]|
8407                 2[035]|
8408                 3[58]|
8409                 48
8410               )
8411             )|
8412             8\d{3}
8413           )\d{3}
8414         </nationalNumberPattern>
8415         <exampleNumber>5661234</exampleNumber>
8416       </fixedLine>
8417       <mobile>
8418         <nationalNumberPattern>
8419           (?:
8420             2[0-6]|
8421             [3679]\d
8422           )\d{5}
8423         </nationalNumberPattern>
8424         <exampleNumber>3012345</exampleNumber>
8425       </mobile>
8426     </territory>
8427
8428     <!-- Guinea -->
8429     <territory id="GN" countryCode="224" internationalPrefix="00">
8430       <references>
8431         <sourceUrl>http://www.itu.int/oth/T020200005B/en</sourceUrl>
8432       </references>
8433       <availableFormats>
8434         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
8435           <leadingDigits>3</leadingDigits>
8436           <format>$1 $2 $3 $4</format>
8437         </numberFormat>
8438         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8439           <leadingDigits>[67]</leadingDigits>
8440           <format>$1 $2 $3 $4</format>
8441         </numberFormat>
8442       </availableFormats>
8443       <generalDesc>
8444         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
8445         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
8446       </generalDesc>
8447       <fixedLine>
8448         <nationalNumberPattern>
8449           30(?:
8450             24|
8451             3[12]|
8452             4[1-35-7]|
8453             5[13]|
8454             6[189]|
8455             [78]1|
8456             9[1478]
8457           )\d{4}
8458         </nationalNumberPattern>
8459         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8460         <exampleNumber>30241234</exampleNumber>
8461       </fixedLine>
8462       <mobile>
8463         <!-- Prefixes here match those assigned to carriers, as per the ITU communication Jan 23rd
8464              2013. -->
8465         <nationalNumberPattern>6[02356]\d{7}</nationalNumberPattern>
8466         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8467         <exampleNumber>601123456</exampleNumber>
8468       </mobile>
8469       <voip>
8470         <!-- Gamma concept network is being listed as VoIP as per
8471              http://www.gammaconcept.com/internet%20sat.html -->
8472         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
8473         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8474         <exampleNumber>722123456</exampleNumber>
8475       </voip>
8476     </territory>
8477
8478     <!-- Guadeloupe -->
8479     <territory id="GP" countryCode="590" internationalPrefix="00"
8480                mainCountryForCode="true" nationalPrefix="0"
8481                nationalPrefixFormattingRule="$NP$FG">
8482       <references>
8483         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
8484         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
8485         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
8486       </references>
8487       <availableFormats>
8488         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
8489           <format>$1 $2-$3</format>
8490         </numberFormat>
8491       </availableFormats>
8492       <generalDesc>
8493         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8494         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8495       </generalDesc>
8496       <fixedLine>
8497         <nationalNumberPattern>
8498           590(?:
8499             0[13468]|
8500             1[012]|
8501             2[0-68]|
8502             3[28]|
8503             4[0-8]|
8504             5[579]|
8505             6[0189]|
8506             70|
8507             8[0-689]|
8508             9\d
8509           )\d{4}
8510         </nationalNumberPattern>
8511         <exampleNumber>590201234</exampleNumber>
8512       </fixedLine>
8513       <mobile>
8514         <!-- Any ranges assigned from
8515              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
8516              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
8517              them. -->
8518         <nationalNumberPattern>
8519           690(?:
8520             0[0-7]|
8521             [1-9]\d
8522           )\d{4}
8523         </nationalNumberPattern>
8524         <exampleNumber>690301234</exampleNumber>
8525       </mobile>
8526     </territory>
8527
8528     <!-- Equatorial Guinea -->
8529     <territory id="GQ" countryCode="240" internationalPrefix="00">
8530       <references>
8531         <sourceUrl>http://www.itu.int/oth/T0202000041/en</sourceUrl>
8532       </references>
8533       <availableFormats>
8534         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
8535           <leadingDigits>[235]</leadingDigits>
8536           <format>$1 $2 $3</format>
8537         </numberFormat>
8538         <numberFormat pattern="(\d{3})(\d{6})">
8539           <leadingDigits>[89]</leadingDigits>
8540           <format>$1 $2</format>
8541         </numberFormat>
8542       </availableFormats>
8543       <generalDesc>
8544         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
8545         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8546       </generalDesc>
8547       <fixedLine>
8548         <nationalNumberPattern>
8549           3(?:
8550             3(?:
8551               3\d[7-9]|
8552               [0-24-9]\d[46]
8553             )|
8554             5\d{2}[7-9]
8555           )\d{4}
8556         </nationalNumberPattern>
8557         <exampleNumber>333091234</exampleNumber>
8558       </fixedLine>
8559       <mobile>
8560         <nationalNumberPattern>
8561           (?:
8562             222|
8563             551
8564           )\d{6}
8565         </nationalNumberPattern>
8566         <exampleNumber>222123456</exampleNumber>
8567       </mobile>
8568       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
8569            they start allocating them there will be a differentiation of prefixes, but this is not
8570            clear now. -->
8571       <tollFree>
8572         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
8573         <exampleNumber>800123456</exampleNumber>
8574       </tollFree>
8575       <premiumRate>
8576         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
8577         <exampleNumber>900123456</exampleNumber>
8578       </premiumRate>
8579     </territory>
8580
8581     <!-- Greece -->
8582     <territory id="GR" countryCode="30" internationalPrefix="00" mobileNumberPortableRegion="true">
8583       <references>
8584         <sourceUrl>http://www.itu.int/oth/T0202000055/en</sourceUrl>
8585         <sourceUrl>http://en.wikipedia.org/wiki/%2B30</sourceUrl>
8586       </references>
8587       <availableFormats>
8588         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
8589           <leadingDigits>
8590             21|
8591             7
8592           </leadingDigits>
8593           <format>$1 $2 $3</format>
8594         </numberFormat>
8595         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
8596           <leadingDigits>
8597             2[2-9]1|
8598             [689]
8599           </leadingDigits>
8600           <format>$1 $2 $3</format>
8601         </numberFormat>
8602         <numberFormat pattern="(2\d{3})(\d{6})">
8603           <leadingDigits>2[2-9][02-9]</leadingDigits>
8604           <format>$1 $2</format>
8605         </numberFormat>
8606       </availableFormats>
8607       <generalDesc>
8608         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
8609         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8610       </generalDesc>
8611       <fixedLine>
8612         <nationalNumberPattern>
8613           2(?:
8614             1\d{2}|
8615             2(?:
8616               2[1-46-9]|
8617               3[1-8]|
8618               4[1-7]|
8619               5[1-4]|
8620               6[1-8]|
8621               7[1-5]|
8622               [89][1-9]
8623             )|
8624             3(?:
8625               1\d|
8626               2[1-57]|
8627               [35][1-3]|
8628               4[13]|
8629               7[1-7]|
8630               8[124-6]|
8631               9[1-79]
8632             )|
8633             4(?:
8634               1\d|
8635               2[1-8]|
8636               3[1-4]|
8637               4[13-5]|
8638               6[1-578]|
8639               9[1-5]
8640             )|
8641             5(?:
8642               1\d|
8643               [29][1-4]|
8644               3[1-5]|
8645               4[124]|
8646               5[1-6]
8647             )|
8648             6(?:
8649               1\d|
8650               3[1245]|
8651               4[1-7]|
8652               5[13-9]|
8653               [269][1-6]|
8654               7[14]|
8655               8[1-5]
8656             )|
8657             7(?:
8658               1\d|
8659               2[1-5]|
8660               3[1-6]|
8661               4[1-7]|
8662               5[1-57]|
8663               6[135]|
8664               9[125-7]
8665             )|
8666             8(?:
8667               1\d|
8668               2[1-5]|
8669               [34][1-4]|
8670               9[1-57]
8671             )
8672           )\d{6}
8673         </nationalNumberPattern>
8674         <exampleNumber>2123456789</exampleNumber>
8675       </fixedLine>
8676       <mobile>
8677         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
8678         <exampleNumber>6912345678</exampleNumber>
8679       </mobile>
8680       <tollFree>
8681         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
8682         <exampleNumber>8001234567</exampleNumber>
8683       </tollFree>
8684       <premiumRate>
8685         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
8686         <exampleNumber>9091234567</exampleNumber>
8687       </premiumRate>
8688       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
8689            rate. -->
8690       <sharedCost>
8691         <nationalNumberPattern>
8692           8(?:
8693             0[16]|
8694             12|
8695             25
8696           )\d{7}
8697         </nationalNumberPattern>
8698         <exampleNumber>8011234567</exampleNumber>
8699       </sharedCost>
8700       <personalNumber>
8701         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8702         <exampleNumber>7012345678</exampleNumber>
8703       </personalNumber>
8704     </territory>
8705
8706     <!-- Guatemala -->
8707     <territory id="GT" countryCode="502" internationalPrefix="00">
8708       <references>
8709         <sourceUrl>http://www.itu.int/oth/T020200005A/en</sourceUrl>
8710         <sourceUrl>http://www.sit.gob.gt/index.php?page=plan-de-numeracion</sourceUrl>
8711         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala</sourceUrl>
8712       </references>
8713       <availableFormats>
8714         <numberFormat pattern="(\d{4})(\d{4})">
8715           <leadingDigits>[2-7]</leadingDigits>
8716           <format>$1 $2</format>
8717         </numberFormat>
8718         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
8719           <leadingDigits>1</leadingDigits>
8720           <format>$1 $2 $3</format>
8721         </numberFormat>
8722       </availableFormats>
8723       <generalDesc>
8724         <nationalNumberPattern>
8725           [2-7]\d{7}|
8726           1[89]\d{9}
8727         </nationalNumberPattern>
8728         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
8729       </generalDesc>
8730       <fixedLine>
8731         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
8732         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8733         <exampleNumber>22456789</exampleNumber>
8734       </fixedLine>
8735       <mobile>
8736         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
8737              they are just reserved. -->
8738         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
8739         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8740         <exampleNumber>51234567</exampleNumber>
8741       </mobile>
8742       <tollFree>
8743         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
8744         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8745         <exampleNumber>18001112222</exampleNumber>
8746       </tollFree>
8747       <premiumRate>
8748         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
8749         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8750         <exampleNumber>19001112222</exampleNumber>
8751       </premiumRate>
8752     </territory>
8753
8754     <!-- Guam -->
8755     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
8756                internationalPrefix="011">
8757       <references>
8758         <sourceUrl>http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel</sourceUrl>
8759       </references>
8760       <generalDesc>
8761         <!-- NANPA country - uses US formatting rules -->
8762         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
8763         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8764       </generalDesc>
8765       <fixedLine>
8766         <!-- Added 671 489/555/720/721 based on information from
8767              http://www.area-codes.com/area-code/area-code-671.asp -->
8768         <nationalNumberPattern>
8769           671(?:
8770             3(?:
8771               00|
8772               3[39]|
8773               4[349]|
8774               55|
8775               6[26]
8776             )|
8777             4(?:
8778               56|
8779               7[1-9]|
8780               8[236-9]
8781             )|
8782             5(?:
8783               55|
8784               6[2-5]|
8785               88
8786             )|
8787             6(?:
8788               3[2-578]|
8789               4[24-9]|
8790               5[34]|
8791               78|
8792               8[5-9]
8793             )|
8794             7(?:
8795               [079]7|
8796               2[0167]|
8797               3[45]|
8798               8[789]
8799             )|
8800             8(?:
8801               [2-5789]8|
8802               6[48]
8803             )|
8804             9(?:
8805               2[29]|
8806               6[79]|
8807               7[179]|
8808               8[789]|
8809               9[78]
8810             )
8811           )\d{4}
8812         </nationalNumberPattern>
8813         <exampleNumber>6713001234</exampleNumber>
8814       </fixedLine>
8815       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
8816            -->
8817       <mobile>
8818         <nationalNumberPattern>
8819           671(?:
8820             3(?:
8821               00|
8822               3[39]|
8823               4[349]|
8824               55|
8825               6[26]
8826             )|
8827             4(?:
8828               56|
8829               7[1-9]|
8830               8[236-9]
8831             )|
8832             5(?:
8833               55|
8834               6[2-5]|
8835               88
8836             )|
8837             6(?:
8838               3[2-578]|
8839               4[24-9]|
8840               5[34]|
8841               78|
8842               8[5-9]
8843             )|
8844             7(?:
8845               [079]7|
8846               2[0167]|
8847               3[45]|
8848               8[789]
8849             )|
8850             8(?:
8851               [2-5789]8|
8852               6[48]
8853             )|
8854             9(?:
8855               2[29]|
8856               6[79]|
8857               7[179]|
8858               8[789]|
8859               9[78]
8860             )
8861           )\d{4}
8862         </nationalNumberPattern>
8863         <exampleNumber>6713001234</exampleNumber>
8864       </mobile>
8865       <tollFree>
8866         <nationalNumberPattern>
8867           8(?:
8868             00|
8869             44|
8870             55|
8871             66|
8872             77|
8873             88
8874           )[2-9]\d{6}
8875         </nationalNumberPattern>
8876         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8877         <exampleNumber>8002123456</exampleNumber>
8878       </tollFree>
8879       <premiumRate>
8880         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8881         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8882         <exampleNumber>9002123456</exampleNumber>
8883       </premiumRate>
8884       <personalNumber>
8885         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8886         <nationalNumberPattern>
8887           5(?:
8888             00|
8889             33|
8890             44|
8891             66|
8892             77
8893           )[2-9]\d{6}
8894         </nationalNumberPattern>
8895         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8896         <exampleNumber>5002345678</exampleNumber>
8897       </personalNumber>
8898     </territory>
8899
8900     <!-- Guinea-Bissau -->
8901     <territory id="GW" countryCode="245" internationalPrefix="00">
8902       <references>
8903         <sourceUrl>http://www.itu.int/oth/T020200005C/en</sourceUrl>
8904       </references>
8905       <availableFormats>
8906         <numberFormat pattern="(\d{3})(\d{4})">
8907           <format>$1 $2</format>
8908         </numberFormat>
8909       </availableFormats>
8910       <generalDesc>
8911         <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
8912         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8913       </generalDesc>
8914       <fixedLine>
8915         <nationalNumberPattern>
8916           3(?:
8917             2[0125]|
8918             3[1245]|
8919             4[12]|
8920             5[1-4]|
8921             70|
8922             9[1-467]
8923           )\d{4}
8924         </nationalNumberPattern>
8925         <exampleNumber>3201234</exampleNumber>
8926       </fixedLine>
8927       <mobile>
8928         <nationalNumberPattern>
8929           (?:
8930             [5-7]\d|
8931             9[012]
8932           )\d{5}
8933         </nationalNumberPattern>
8934         <exampleNumber>5012345</exampleNumber>
8935       </mobile>
8936       <voip>
8937         <nationalNumberPattern>40\d{5}</nationalNumberPattern>
8938         <exampleNumber>4012345</exampleNumber>
8939       </voip>
8940     </territory>
8941
8942     <!-- Guyana -->
8943     <territory id="GY" countryCode="592" internationalPrefix="001">
8944       <references>
8945         <sourceUrl>http://www.itu.int/oth/T020200005D/en</sourceUrl>
8946       </references>
8947       <availableFormats>
8948         <numberFormat pattern="(\d{3})(\d{4})">
8949           <format>$1 $2</format>
8950         </numberFormat>
8951       </availableFormats>
8952       <generalDesc>
8953         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
8954         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8955       </generalDesc>
8956       <fixedLine>
8957         <nationalNumberPattern>
8958           (?:
8959             2(?:
8960               1[6-9]|
8961               2[0-35-9]|
8962               3[1-4]|
8963               5[3-9]|
8964               6\d|
8965               7[0-24-79]
8966             )|
8967             3(?:
8968               2[25-9]|
8969               3\d
8970             )|
8971             4(?:
8972               4[0-24]|
8973               5[56]
8974             )|
8975             77[1-57]
8976           )\d{4}
8977         </nationalNumberPattern>
8978         <exampleNumber>2201234</exampleNumber>
8979       </fixedLine>
8980       <mobile>
8981         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
8982              that SMS messages have been succesfully sent to numbers in the entire range prefixed
8983              with 6. -->
8984         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
8985         <exampleNumber>6091234</exampleNumber>
8986       </mobile>
8987       <tollFree>
8988         <nationalNumberPattern>
8989           (?:
8990             289|
8991             862
8992           )\d{4}
8993         </nationalNumberPattern>
8994         <exampleNumber>2891234</exampleNumber>
8995       </tollFree>
8996       <premiumRate>
8997         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
8998         <exampleNumber>9008123</exampleNumber>
8999       </premiumRate>
9000     </territory>
9001
9002     <!-- Hong Kong -->
9003     <territory id="HK" countryCode="852" internationalPrefix="00" mobileNumberPortableRegion="true">
9004       <references>
9005         <sourceUrl>http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html</sourceUrl>
9006       </references>
9007       <availableFormats>
9008         <numberFormat pattern="(\d{4})(\d{4})">
9009           <leadingDigits>
9010             [235-7]|
9011             [89](?:
9012               0[1-9]|
9013               [1-9]
9014             )
9015           </leadingDigits>
9016           <format>$1 $2</format>
9017         </numberFormat>
9018         <numberFormat pattern="(800)(\d{3})(\d{3})">
9019           <leadingDigits>800</leadingDigits>
9020           <format>$1 $2 $3</format>
9021         </numberFormat>
9022         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
9023           <leadingDigits>900</leadingDigits>
9024           <format>$1 $2 $3 $4</format>
9025         </numberFormat>
9026         <numberFormat pattern="(900)(\d{2,5})">
9027           <leadingDigits>900</leadingDigits>
9028           <format>$1 $2</format>
9029         </numberFormat>
9030       </availableFormats>
9031       <generalDesc>
9032         <!-- Slightly more complex pattern to allow the country code to be stripped off if
9033              necessary. -->
9034         <nationalNumberPattern>
9035           [235-7]\d{7}|
9036           8\d{7,8}|
9037           9\d{4,10}
9038         </nationalNumberPattern>
9039         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9040       </generalDesc>
9041       <fixedLine>
9042         <nationalNumberPattern>
9043           (?:
9044             [23]\d|
9045             5[78]
9046           )\d{6}
9047         </nationalNumberPattern>
9048         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9049         <exampleNumber>21234567</exampleNumber>
9050       </fixedLine>
9051       <mobile>
9052         <nationalNumberPattern>
9053           (?:
9054             5[1-69]\d|
9055             6\d{2}|
9056             9(?:
9057               0[1-9]|
9058               [1-8]\d
9059             )
9060           )\d{5}
9061         </nationalNumberPattern>
9062         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9063         <exampleNumber>51234567</exampleNumber>
9064       </mobile>
9065       <pager>
9066         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
9067         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9068         <exampleNumber>71234567</exampleNumber>
9069       </pager>
9070       <tollFree>
9071         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
9072         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9073         <exampleNumber>800123456</exampleNumber>
9074       </tollFree>
9075       <premiumRate>
9076         <nationalNumberPattern>
9077           900(?:
9078             [0-24-9]\d{7}|
9079             3\d{1,4}
9080           )
9081         </nationalNumberPattern>
9082         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9083         <exampleNumber>90012345678</exampleNumber>
9084       </premiumRate>
9085       <personalNumber>
9086         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
9087         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9088         <exampleNumber>81123456</exampleNumber>
9089       </personalNumber>
9090    </territory>
9091
9092     <!-- Honduras -->
9093     <!-- It seems there is no longer a trunk prefix in use, based on websites like
9094          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
9095          national format. -->
9096     <territory id="HN" countryCode="504" internationalPrefix="00" >
9097       <references>
9098         <sourceUrl>http://www.itu.int/oth/T020200005F/en</sourceUrl>
9099       </references>
9100       <availableFormats>
9101        <numberFormat pattern="(\d{4})(\d{4})">
9102          <format>$1-$2</format>
9103        </numberFormat>
9104       </availableFormats>
9105       <generalDesc>
9106         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
9107         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9108       </generalDesc>
9109       <fixedLine>
9110         <!-- Extra prefixes 227[01389], 228X, 2292 & 260X were added from numbers found online. -->
9111         <nationalNumberPattern>
9112           2(?:
9113             2(?:
9114               0[019]|
9115               1[1-36]|
9116               [23]\d|
9117               4[056]|
9118               5[57]|
9119               7[01389]|
9120               8[0146-9]|
9121               9[012]
9122             )|
9123             4(?:
9124               2[3-59]|
9125               3[13-689]|
9126               4[0-68]|
9127               5[1-35]
9128             )|
9129             5(?:
9130               4[3-5]|
9131               5\d|
9132               6[56]|
9133               74
9134             )|
9135             6(?:
9136               [056]\d|
9137               4[0-378]|
9138               [78][0-8]|
9139               9[01]
9140             )|
9141             7(?:
9142               6[46-9]|
9143               7[02-9]|
9144               8[34]
9145             )|
9146             8(?:
9147               79|
9148               8[0-35789]|
9149               9[1-57-9]
9150             )
9151           )\d{4}
9152         </nationalNumberPattern>
9153         <exampleNumber>22123456</exampleNumber>
9154       </fixedLine>
9155       <mobile>
9156         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
9157         <exampleNumber>91234567</exampleNumber>
9158       </mobile>
9159     </territory>
9160
9161     <!-- Croatia -->
9162     <territory id="HR" countryCode="385" internationalPrefix="00"
9163                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
9164                mobileNumberPortableRegion="true">
9165       <references>
9166         <sourceUrl>http://www.itu.int/oth/T0202000032/en</sourceUrl>
9167         <sourceUrl>http://en.wikipedia.org/wiki/%2B385</sourceUrl>
9168       </references>
9169       <availableFormats>
9170         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
9171              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
9172              XXXX as well. -->
9173        <numberFormat pattern="(1)(\d{4})(\d{3})">
9174          <leadingDigits>1</leadingDigits>
9175          <format>$1 $2 $3</format>
9176        </numberFormat>
9177        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
9178          <leadingDigits>6[09]</leadingDigits>
9179          <format>$1 $2 $3</format>
9180        </numberFormat>
9181        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
9182          <leadingDigits>62</leadingDigits>
9183          <format>$1 $2 $3</format>
9184        </numberFormat>
9185        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
9186          <leadingDigits>[2-5]</leadingDigits>
9187           <format>$1 $2 $3</format>
9188         </numberFormat>
9189         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
9190           <leadingDigits>9</leadingDigits>
9191           <format>$1 $2 $3</format>
9192         </numberFormat>
9193         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
9194           <leadingDigits>9</leadingDigits>
9195           <format>$1 $2 $3</format>
9196         </numberFormat>
9197         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
9198           <leadingDigits>9</leadingDigits>
9199           <format>$1 $2 $3 $4</format>
9200         </numberFormat>
9201         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
9202           <leadingDigits>
9203             6[145]|
9204             7
9205           </leadingDigits>
9206           <format>$1 $2 $3</format>
9207         </numberFormat>
9208         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
9209           <leadingDigits>
9210             6[145]|
9211             7
9212           </leadingDigits>
9213           <format>$1 $2 $3</format>
9214         </numberFormat>
9215         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
9216           <leadingDigits>8</leadingDigits>
9217           <format>$1 $2 $3</format>
9218         </numberFormat>
9219         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
9220           <leadingDigits>8</leadingDigits>
9221           <format>$1 $2 $3</format>
9222         </numberFormat>
9223       </availableFormats>
9224       <generalDesc>
9225         <nationalNumberPattern>
9226           [1-7]\d{5,8}|
9227           [89]\d{6,11}
9228         </nationalNumberPattern>
9229         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
9230       </generalDesc>
9231       <fixedLine>
9232         <nationalNumberPattern>
9233           1\d{7}|
9234           (?:
9235             2[0-3]|
9236             3[1-5]|
9237             4[02-47-9]|
9238             5[1-3]
9239           )\d{6}
9240         </nationalNumberPattern>
9241         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
9242         <exampleNumber>12345678</exampleNumber>
9243       </fixedLine>
9244       <uan>
9245         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
9246              are numbers on the internet with 6 or 7 digits after the prefix. -->
9247         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
9248         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
9249         <exampleNumber>62123456</exampleNumber>
9250       </uan>
9251       <mobile>
9252         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
9253         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
9254         <exampleNumber>912345678</exampleNumber>
9255       </mobile>
9256       <tollFree>
9257         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
9258         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9259         <exampleNumber>8001234567</exampleNumber>
9260       </tollFree>
9261       <premiumRate>
9262         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
9263              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
9264              -->
9265         <nationalNumberPattern>
9266           6(?:
9267             [09]\d{7}|
9268             [145]\d{4,7}
9269           )
9270         </nationalNumberPattern>
9271         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9272         <exampleNumber>611234</exampleNumber>
9273       </premiumRate>
9274       <personalNumber>
9275         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
9276         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9277         <exampleNumber>741234567</exampleNumber>
9278       </personalNumber>
9279     </territory>
9280
9281     <!-- Haiti -->
9282     <territory id="HT" countryCode="509" internationalPrefix="00">
9283       <references>
9284         <sourceUrl>http://www.itu.int/oth/T020200005E/en</sourceUrl>
9285         <sourceUrl>http://www.numberingplans.com/</sourceUrl>
9286       </references>
9287       <availableFormats>
9288         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
9289           <format>$1 $2 $3</format>
9290         </numberFormat>
9291       </availableFormats>
9292       <generalDesc>
9293         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9294         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9295       </generalDesc>
9296       <fixedLine>
9297         <!-- The prefix 24 seems to be also used, based on online searches. -->
9298         <nationalNumberPattern>
9299           2(?:
9300             [24]\d|
9301             5[1-5]|
9302             94
9303           )\d{5}
9304         </nationalNumberPattern>
9305         <exampleNumber>22453300</exampleNumber>
9306       </fixedLine>
9307       <mobile>
9308         <!-- The prefix 31 seems to be also used, based on online searches. -->
9309         <nationalNumberPattern>
9310           (?:
9311             3[1-9]|
9312             4\d
9313           )\d{6}
9314         </nationalNumberPattern>
9315         <exampleNumber>34101234</exampleNumber>
9316       </mobile>
9317       <tollFree>
9318         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
9319              without making any further distinction. However, http://www.numberingplans.com/ seems
9320              to suggest they are free. -->
9321         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
9322         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9323         <exampleNumber>80012345</exampleNumber>
9324       </tollFree>
9325       <voip>
9326         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
9327              98[89]\d{5}. -->
9328         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
9329         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9330         <exampleNumber>98901234</exampleNumber>
9331       </voip>
9332     </territory>
9333
9334     <!-- Hungary -->
9335     <territory id="HU" countryCode="36" internationalPrefix="00"
9336                nationalPrefix="06" nationalPrefixFormattingRule="($FG)"
9337                mobileNumberPortableRegion="true">
9338       <references>
9339         <sourceUrl>http://www.itu.int/oth/T0202000061/en</sourceUrl>
9340       </references>
9341       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
9342            by a Hungarian person and following the yellow pages) is to omit this when formatting.
9343            Yellow pages: http://www.aranyoldalak.hu -->
9344       <availableFormats>
9345         <numberFormat pattern="(1)(\d{3})(\d{4})">
9346           <leadingDigits>1</leadingDigits>
9347           <format>$1 $2 $3</format>
9348         </numberFormat>
9349         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9350           <leadingDigits>[2-9]</leadingDigits>
9351           <format>$1 $2 $3</format>
9352         </numberFormat>
9353       </availableFormats>
9354       <generalDesc>
9355         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
9356         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9357       </generalDesc>
9358       <noInternationalDialling>
9359         <nationalNumberPattern>[48]0\d{6}</nationalNumberPattern>
9360         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9361         <exampleNumber>80123456</exampleNumber>
9362       </noInternationalDialling>
9363       <fixedLine>
9364         <!-- Includes numbers for corporate networks. -->
9365         <nationalNumberPattern>
9366           (?:
9367             1\d|
9368             2(?:
9369               1\d|
9370               [2-9]
9371             )|
9372             3[2-7]|
9373             4[24-9]|
9374             5[2-79]|
9375             6[23689]|
9376             7(?:
9377               1\d|
9378               [2-9]
9379             )|
9380             8[2-57-9]|
9381             9[2-69]
9382           )\d{6}
9383         </nationalNumberPattern>
9384         <exampleNumber>12345678</exampleNumber>
9385       </fixedLine>
9386       <mobile>
9387         <nationalNumberPattern>
9388           (?:
9389             [27]0|
9390             3[01]
9391           )\d{7}
9392         </nationalNumberPattern>
9393         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9394         <exampleNumber>201234567</exampleNumber>
9395       </mobile>
9396       <tollFree>
9397         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
9398         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9399         <exampleNumber>80123456</exampleNumber>
9400       </tollFree>
9401       <premiumRate>
9402         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
9403         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9404         <exampleNumber>90123456</exampleNumber>
9405       </premiumRate>
9406       <sharedCost>
9407         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
9408         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9409         <exampleNumber>40123456</exampleNumber>
9410       </sharedCost>
9411     </territory>
9412
9413     <!-- Indonesia -->
9414     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
9415                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9416       <references>
9417         <!-- From 2001, very out of date. -->
9418         <sourceUrl>http://www.itu.int/oth/T0202000064/en</sourceUrl>
9419         <sourceUrl>http://en.wikipedia.org/wiki/%2B62</sourceUrl>
9420       </references>
9421       <availableFormats>
9422         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9423           pattern="(\d{2})(\d{5,8})">
9424           <leadingDigits>
9425             2[124]|
9426             [36]1
9427           </leadingDigits>
9428           <format>$1 $2</format>
9429         </numberFormat>
9430         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9431           pattern="(\d{3})(\d{5,8})">
9432           <leadingDigits>
9433             [4579]|
9434             2[035-9]|
9435             [36][02-9]
9436           </leadingDigits>
9437           <format>$1 $2</format>
9438         </numberFormat>
9439         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
9440           <leadingDigits>8[1-35-9]</leadingDigits>
9441           <format>$1-$2-$3</format>
9442         </numberFormat>
9443         <numberFormat pattern="(177)(\d{6,8})">
9444           <leadingDigits>1</leadingDigits>
9445           <format>$1 $2</format>
9446         </numberFormat>
9447         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
9448              that sometimes they are followed by less digits. -->
9449         <numberFormat pattern="(800)(\d{5,7})">
9450           <leadingDigits>800</leadingDigits>
9451           <format>$1 $2</format>
9452         </numberFormat>
9453         <numberFormat pattern="(80\d)(\d)(\d{3})(\d{3})">
9454           <leadingDigits>80[79]</leadingDigits>
9455           <format>$1 $2 $3 $4</format>
9456         </numberFormat>
9457       </availableFormats>
9458       <generalDesc>
9459         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
9460         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9461       </generalDesc>
9462       <fixedLine>
9463         <!-- Area codes taken from wikipedia, with missing ones added from
9464              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
9465              We also added 0770 after user feedback because it seems to be used on Bintan island.
9466              Where known, fixed mobile prefixes have been represented as Mobile. -->
9467         <!-- Very short (5/6 digit) local numbers in Jakarta seem to be special cases for various
9468              well known companies (Mc Donalds, KFC etc...). Some of these are listed in:
9469              http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf
9470              There seem to be numbers of this length for area code 22 as well based on numbers found
9471              online. -->
9472         <nationalNumberPattern>
9473           2(?:
9474             1(?:
9475               14\d{3}|
9476               [0-8]\d{6,7}|
9477               500\d{3}|
9478               9\d{6}
9479             )|
9480             2\d{6,8}|
9481             4\d{7,8}
9482           )|
9483           (?:
9484             2(?:
9485               [35][1-4]|
9486               6[0-8]|
9487               7[1-6]|
9488               8\d|
9489               9[1-8]
9490             )|
9491             3(?:
9492               1|
9493               2[1-578]|
9494               3[1-68]|
9495               4[1-3]|
9496               5[1-8]|
9497               6[1-3568]|
9498               7[0-46]|
9499               8\d
9500             )|
9501             4(?:
9502               0[1-589]|
9503               1[01347-9]|
9504               2[0-36-8]|
9505               3[0-24-68]|
9506               5[1-378]|
9507               6[1-5]|
9508               7[134]|
9509               8[1245]
9510             )|
9511             5(?:
9512               1[1-35-9]|
9513               2[25-8]|
9514               3[1246-9]|
9515               4[1-3589]|
9516               5[1-46]|
9517               6[1-8]
9518             )|
9519             6(?:
9520               19?|
9521               [25]\d|
9522               3[1-469]|
9523               4[1-6]
9524             )|
9525             7(?:
9526               1[1-9]|
9527               2[14-9]|
9528               [36]\d|
9529               4[1-8]|
9530               5[1-9]|
9531               7[0-36-9]
9532             )|
9533             9(?:
9534               0[12]|
9535               1[013-8]|
9536               2[0-479]|
9537               5[125-8]|
9538               6[23679]|
9539               7[159]|
9540               8[01346]
9541             )
9542           )\d{5,8}
9543         </nationalNumberPattern>
9544         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9545         <exampleNumber>612345678</exampleNumber>
9546       </fixedLine>
9547       <mobile>
9548         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
9549              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
9550              are captured below. The pattern covers the area code plus the first one-two digits of
9551              the subscriber number. -->
9552         <nationalNumberPattern>
9553           (?:
9554             2(?:
9555               1(?:
9556                 3[145]|
9557                 4[01]|
9558                 5[1-469]|
9559                 60|
9560                 8[0359]|
9561                 9\d
9562               )|
9563               2(?:
9564                 88|
9565                 9[1256]
9566               )|
9567               3[1-4]9|
9568               4(?:
9569                 36|
9570                 91
9571               )|
9572               5(?:
9573                 1[349]|
9574                 [2-4]9
9575               )|
9576               6[0-7]9|
9577               7(?:
9578                 [1-36]9|
9579                 4[39]
9580               )|
9581               8[1-5]9|
9582               9[1-48]9
9583             )|
9584             3(?:
9585               19[1-3]|
9586               2[12]9|
9587               3[13]9|
9588               4(?:
9589                 1[69]|
9590                 39
9591               )|
9592               5[14]9|
9593               6(?:
9594                 1[69]|
9595                 2[89]
9596               )|
9597               709
9598             )|
9599             4[13]19|
9600             5(?:
9601               1(?:
9602                 19|
9603                 8[39]
9604               )|
9605               4[129]9|
9606               6[12]9
9607             )|
9608             6(?:
9609               19[12]|
9610               2(?:
9611                 [23]9|
9612                 77
9613               )
9614             )|
9615             7(?:
9616               1[13]9|
9617               2[15]9|
9618               419|
9619               5(?:
9620                 1[89]|
9621                 29
9622               )|
9623               6[15]9|
9624               7[178]9
9625             )
9626           )\d{5,6}|
9627           8[1-35-9]\d{7,9}
9628         </nationalNumberPattern>
9629         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
9630         <exampleNumber>812345678</exampleNumber>
9631       </mobile>
9632       <tollFree>
9633         <nationalNumberPattern>
9634           177\d{6,8}|
9635           800\d{5,7}
9636         </nationalNumberPattern>
9637         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
9638         <exampleNumber>8001234567</exampleNumber>
9639       </tollFree>
9640       <uan>
9641         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9642         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9643         <exampleNumber>8071123456</exampleNumber>
9644       </uan>
9645       <noInternationalDialling>
9646         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9647         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9648         <exampleNumber>8071123456</exampleNumber>
9649       </noInternationalDialling>
9650       <!-- The information below is provided by an Indonesian -->
9651       <premiumRate>
9652         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
9653         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9654         <exampleNumber>8091234567</exampleNumber>
9655       </premiumRate>
9656     </territory>
9657
9658     <!-- Ireland -->
9659     <territory id="IE" countryCode="353" internationalPrefix="00"
9660                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
9661                mobileNumberPortableRegion="true">
9662       <references>
9663         <sourceUrl>http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html</sourceUrl>
9664         <sourceUrl>http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf</sourceUrl>
9665       </references>
9666       <availableFormats>
9667         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
9668           <leadingDigits>1</leadingDigits>
9669           <format>$1 $2 $3</format>
9670         </numberFormat>
9671         <numberFormat pattern="(\d{2})(\d{5})">
9672           <leadingDigits>
9673             2[24-9]|
9674             47|
9675             58|
9676             6[237-9]|
9677             9[35-9]
9678           </leadingDigits>
9679           <format>$1 $2</format>
9680         </numberFormat>
9681         <numberFormat pattern="(\d{3})(\d{5})">
9682           <leadingDigits>
9683             40[24]|
9684             50[45]
9685           </leadingDigits>
9686           <format>$1 $2</format>
9687         </numberFormat>
9688         <numberFormat pattern="(48)(\d{4})(\d{4})">
9689           <leadingDigits>48</leadingDigits>
9690           <format>$1 $2 $3</format>
9691         </numberFormat>
9692         <numberFormat pattern="(818)(\d{3})(\d{3})">
9693           <leadingDigits>81</leadingDigits>
9694           <format>$1 $2 $3</format>
9695         </numberFormat>
9696         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9697           <leadingDigits>
9698             [24-69]|
9699             7[14]
9700           </leadingDigits>
9701           <format>$1 $2 $3</format>
9702         </numberFormat>
9703         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9704           pattern="([78]\d)(\d{3,4})(\d{4})">
9705           <leadingDigits>
9706             76|
9707             8[35-9]
9708           </leadingDigits>
9709           <format>$1 $2 $3</format>
9710         </numberFormat>
9711         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9712           pattern="(700)(\d{3})(\d{3})">
9713           <leadingDigits>70</leadingDigits>
9714           <format>$1 $2 $3</format>
9715         </numberFormat>
9716         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
9717           <leadingDigits>
9718             1(?:
9719               8[059]|
9720               5
9721             )
9722           </leadingDigits>
9723           <leadingDigits>
9724             1(?:
9725               8[059]0|
9726               5
9727             )
9728           </leadingDigits>
9729           <format>$1 $2 $3</format>
9730         </numberFormat>
9731       </availableFormats>
9732       <generalDesc>
9733         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
9734         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9735       </generalDesc>
9736       <noInternationalDialling>
9737         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9738         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9739         <exampleNumber>1850123456</exampleNumber>
9740       </noInternationalDialling>
9741       <fixedLine>
9742         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
9743              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
9744              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
9745              Ireland. We support these numbers here, although technically they are numbers for the
9746              UK. -->
9747         <nationalNumberPattern>
9748           1\d{7,8}|
9749           2(?:
9750             1\d{6,7}|
9751             3\d{7}|
9752             [24-9]\d{5}
9753           )|
9754           4(?:
9755             0[24]\d{5}|
9756             [1-469]\d{7}|
9757             5\d{6}|
9758             7\d{5}|
9759             8[0-46-9]\d{7}
9760           )|
9761           5(?:
9762             0[45]\d{5}|
9763             1\d{6}|
9764             [23679]\d{7}|
9765             8\d{5}
9766           )|
9767           6(?:
9768             1\d{6}|
9769             [237-9]\d{5}|
9770             [4-6]\d{7}
9771           )|
9772           7[14]\d{7}|
9773           9(?:
9774             1\d{6}|
9775             [04]\d{7}|
9776             [35-9]\d{5}
9777           )
9778         </nationalNumberPattern>
9779         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9780         <exampleNumber>2212345</exampleNumber>
9781       </fixedLine>
9782       <mobile>
9783         <nationalNumberPattern>
9784           8(?:
9785             22\d{6}|
9786             [35-9]\d{7}
9787           )
9788         </nationalNumberPattern>
9789         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9790         <exampleNumber>850123456</exampleNumber>
9791       </mobile>
9792       <tollFree>
9793         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
9794         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9795         <exampleNumber>1800123456</exampleNumber>
9796       </tollFree>
9797       <premiumRate>
9798         <nationalNumberPattern>
9799           15(?:
9800             1[2-8]|
9801             [2-8]0|
9802             9[089]
9803           )\d{6}
9804         </nationalNumberPattern>
9805         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9806         <exampleNumber>1520123456</exampleNumber>
9807       </premiumRate>
9808       <sharedCost>
9809         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9810         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9811         <exampleNumber>1850123456</exampleNumber>
9812       </sharedCost>
9813       <personalNumber>
9814         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
9815         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9816         <exampleNumber>700123456</exampleNumber>
9817       </personalNumber>
9818       <voip>
9819         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
9820         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9821         <exampleNumber>761234567</exampleNumber>
9822       </voip>
9823       <uan>
9824         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
9825         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9826         <exampleNumber>818123456</exampleNumber>
9827       </uan>
9828       <voicemail>
9829         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
9830         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9831         <exampleNumber>8501234567</exampleNumber>
9832       </voicemail>
9833     </territory>
9834
9835     <!-- Israel -->
9836     <!-- Formatting practice following wikipedia, and government sites. -->
9837     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
9838                nationalPrefix="0" nationalPrefixFormattingRule="$FG"
9839                mobileNumberPortableRegion="true">
9840       <references>
9841         <sourceUrl>http://www.itu.int/oth/T020200006A/en</sourceUrl>
9842         <sourceUrl>http://en.wikipedia.org/wiki/%2B972</sourceUrl>
9843         <!-- in Hebrew -->
9844         <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>
9845       </references>
9846       <availableFormats>
9847         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9848           pattern="([2-489])(\d{3})(\d{4})">
9849           <leadingDigits>[2-489]</leadingDigits>
9850           <format>$1-$2-$3</format>
9851         </numberFormat>
9852         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9853           pattern="([57]\d)(\d{3})(\d{4})">
9854           <leadingDigits>[57]</leadingDigits>
9855           <format>$1-$2-$3</format>
9856         </numberFormat>
9857         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
9858           <leadingDigits>1[7-9]</leadingDigits>
9859           <format>$1-$2-$3-$4</format>
9860         </numberFormat>
9861         <!-- The following number is for hospitals. -->
9862         <numberFormat pattern="(1255)(\d{3})">
9863           <leadingDigits>125</leadingDigits>
9864           <format>$1-$2</format>
9865         </numberFormat>
9866         <numberFormat pattern="(1200)(\d{3})(\d{3})">
9867           <leadingDigits>120</leadingDigits>
9868           <format>$1-$2-$3</format>
9869         </numberFormat>
9870         <numberFormat pattern="(1212)(\d{2})(\d{2})">
9871           <leadingDigits>121</leadingDigits>
9872           <format>$1-$2-$3</format>
9873         </numberFormat>
9874         <!-- The following is for voicemail access. -->
9875         <numberFormat pattern="(1599)(\d{6})">
9876           <leadingDigits>15</leadingDigits>
9877           <format>$1-$2</format>
9878         </numberFormat>
9879         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
9880              dialed with a star in front of the number. -->
9881         <numberFormat pattern="(\d{4})">
9882           <leadingDigits>[2-689]</leadingDigits>
9883           <format>*$1</format>
9884         </numberFormat>
9885       </availableFormats>
9886       <generalDesc >
9887         <nationalNumberPattern>
9888           [17]\d{6,9}|
9889           [2-589]\d{3}(?:\d{3,6})?|
9890           6\d{3}
9891         </nationalNumberPattern>
9892         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9893       </generalDesc>
9894       <noInternationalDialling>
9895         <nationalNumberPattern>
9896           1700\d{6}|
9897           [2-689]\d{3}
9898         </nationalNumberPattern>
9899         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9900         <exampleNumber>1700123456</exampleNumber>
9901       </noInternationalDialling>
9902       <fixedLine>
9903         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9904         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
9905         <exampleNumber>21234567</exampleNumber>
9906       </fixedLine>
9907       <mobile>
9908         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
9909              sure wikipedia is accurate based on news coverage of the launch of these numbers. -->
9910         <nationalNumberPattern>
9911           5(?:
9912             [02347-9]\d{2}|
9913             5(?:
9914               01|
9915               2[23]|
9916               3[34]|
9917               4[45]|
9918               5[5689]|
9919               6[67]|
9920               7[78]|
9921               8[89]|
9922               9[7-9]
9923             )|
9924             6[2-9]\d
9925           )\d{5}
9926         </nationalNumberPattern>
9927         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9928         <exampleNumber>501234567</exampleNumber>
9929       </mobile>
9930       <tollFree>
9931         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
9932         <nationalNumberPattern>
9933           1(?:
9934             80[019]\d{3}|
9935             255
9936           )\d{3}
9937         </nationalNumberPattern>
9938         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9939         <exampleNumber>1800123456</exampleNumber>
9940       </tollFree>
9941       <premiumRate>
9942           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
9943                However, no online numbers starting with these prefixes can be found, and this data
9944                is not found in any other source. -->
9945           <!-- 1200 and 1212 numbers are for televoting. -->
9946         <nationalNumberPattern>
9947           1(?:
9948             212|
9949             (?:
9950               9(?:
9951                 0[01]|
9952                 19
9953               )|
9954               200
9955             )\d{2}
9956           )\d{4}
9957         </nationalNumberPattern>
9958         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
9959         <exampleNumber>1919123456</exampleNumber>
9960       </premiumRate>
9961       <sharedCost>
9962         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
9963         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9964         <exampleNumber>1700123456</exampleNumber>
9965       </sharedCost>
9966       <voip>
9967         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
9968              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
9969              Dialing) numbers, that most people forward to VoIP numbers. -->
9970         <nationalNumberPattern>
9971           7(?:
9972             2[23]\d|
9973             3[237]\d|
9974             47\d|
9975             6(?:
9976               5\d|
9977               8[068]
9978             )|
9979             7\d{2}|
9980             8(?:
9981               33|
9982               55|
9983               77|
9984               81
9985             )
9986           )\d{5}
9987         </nationalNumberPattern>
9988         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9989         <exampleNumber>771234567</exampleNumber>
9990       </voip>
9991       <uan>
9992         <!-- 4-digit star numbers and 1-599 numbers. The latter are actually labelled "interactive
9993              voicemail" in the ITU document, but according to reports from businesses in Israel and
9994              the Hebrew version of the wikipedia page, these are actually a router for business
9995              calls, and incur a normal call cost on account of the caller. -->
9996         <nationalNumberPattern>
9997           [2-689]\d{3}|
9998           1599\d{6}
9999         </nationalNumberPattern>
10000         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
10001         <exampleNumber>1599123456</exampleNumber>
10002       </uan>
10003     </territory>
10004
10005     <!-- Isle of Man -->
10006     <!-- Inherits formatting rules from the UK. -->
10007     <territory id="IM" countryCode="44" internationalPrefix="00"
10008                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
10009       <references>
10010         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
10011       </references>
10012       <generalDesc>
10013         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
10014         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10015       </generalDesc>
10016       <areaCodeOptional>
10017         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
10018         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10019         <exampleNumber>1624250123</exampleNumber>
10020       </areaCodeOptional>
10021       <!-- Specific to IM. -->
10022       <fixedLine>
10023         <!-- 1624 with 10 digits. -->
10024         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
10025         <exampleNumber>1624456789</exampleNumber>
10026       </fixedLine>
10027       <mobile>
10028         <!-- 7524, 7624, 7924 with 10 digits. -->
10029         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
10030         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10031         <exampleNumber>7924123456</exampleNumber>
10032       </mobile>
10033       <tollFree>
10034         <!-- 808 162 with 10 digits. -->
10035         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
10036         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10037         <exampleNumber>8081624567</exampleNumber>
10038       </tollFree>
10039       <premiumRate>
10040         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
10041         <nationalNumberPattern>
10042           (?:
10043             872299|
10044             90[0167]624
10045           )\d{4}
10046         </nationalNumberPattern>
10047         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10048         <exampleNumber>9016247890</exampleNumber>
10049       </premiumRate>
10050       <sharedCost>
10051         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
10052         <nationalNumberPattern>
10053           8(?:
10054             4(?:
10055               40[49]06|
10056               5624\d
10057             )|
10058             70624\d
10059           )\d{3}
10060         </nationalNumberPattern>
10061         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10062         <exampleNumber>8456247890</exampleNumber>
10063       </sharedCost>
10064       <!-- Other numbers as per GB. -->
10065       <personalNumber>
10066         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
10067         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10068         <exampleNumber>7012345678</exampleNumber>
10069       </personalNumber>
10070       <voip>
10071         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
10072         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10073         <exampleNumber>5612345678</exampleNumber>
10074       </voip>
10075       <uan>
10076         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
10077         <nationalNumberPattern>
10078           3(?:
10079             08162\d|
10080             3\d{5}|
10081             4(?:
10082               40[49]06|
10083               5624\d
10084             )|
10085             7(?:
10086               0624\d|
10087               2299\d
10088             )
10089           )\d{3}|
10090           55\d{8}
10091         </nationalNumberPattern>
10092         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10093         <exampleNumber>5512345678</exampleNumber>
10094       </uan>
10095     </territory>
10096
10097     <!-- India -->
10098     <!-- Note that several changes in area codes have occurred since the numbering plan was released
10099          - fixed line changes are notified on the http://www.bsnl.co.in website. Area codes can be
10100          verified here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
10101     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
10102                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true"
10103                mobileNumberPortableRegion="true">
10104       <references>
10105         <sourceUrl>http://www.itu.int/oth/T0202000063/en</sourceUrl>
10106         <sourceUrl>http://en.wikipedia.org/wiki/%2B91</sourceUrl>
10107         <sourceUrl>http://www.coai.in/msccodes.php</sourceUrl>
10108       </references>
10109        <availableFormats>
10110          <!-- Mobile numbers. -->
10111          <numberFormat pattern="(\d{5})(\d{5})">
10112            <leadingDigits>
10113              7(?:
10114                0[2-9]|
10115                2[0579]|
10116                3[057-9]|
10117                4[0-389]|
10118                6[0-35-9]|
10119                [57]|
10120                8[0-79]
10121              )|
10122              8(?:
10123                0[015689]|
10124                1[0-57-9]|
10125                2[2356-9]|
10126                3[0-57-9]|
10127                [45]|
10128                6[02457-9]|
10129                7[1-69]|
10130                8[0124-9]|
10131                9[02-9]
10132              )|
10133              9
10134            </leadingDigits>
10135            <leadingDigits>
10136              7(?:
10137                0(?:
10138                  2[2-9]|
10139                  [3-8]|
10140                  9[0-8]
10141                )|
10142                2(?:
10143                  0[04-9]|
10144                  5[09]|
10145                  7[5-8]|
10146                  9[389]
10147                )|
10148                3(?:
10149                  0[1-9]|
10150                  [58]|
10151                  7[3679]|
10152                  9[689]
10153                )|
10154                4(?:
10155                  0[1-9]|
10156                  1[15-9]|
10157                  [29][89]|
10158                  39|
10159                  8[389]
10160                )|
10161                5(?:
10162                  [034678]|
10163                  2[03-9]|
10164                  5[017-9]|
10165                  9[7-9]
10166                )|
10167                6(?:
10168                  0[0-27]|
10169                  1[0-257-9]|
10170                  2[0-4]|
10171                  3[19]|
10172                  5[4589]|
10173                  [6-9]
10174                )|
10175                7(?:
10176                  0[2-9]|
10177                  [1-79]|
10178                  8[1-9]
10179                )|
10180                8(?:
10181                  [0-7]|
10182                  9[013-9]
10183                )
10184              )|
10185              8(?:
10186                0(?:
10187                  [01589]|
10188                  6[67]
10189                )|
10190                1(?:
10191                  [02-589]|
10192                  1[0135-9]|
10193                  7[0-79]
10194                )|
10195                2(?:
10196                  [236-9]|
10197                  5[1-9]
10198                )|
10199                3(?:
10200                  [0357-9]|
10201                  4[1-9]
10202                )|
10203                [45]|
10204                6[02457-9]|
10205                7[1-69]|
10206                8(?:
10207                  [0-26-9]|
10208                  44|
10209                  5[2-9]
10210                )|
10211                9(?:
10212                  [035-9]|
10213                  2[2-9]|
10214                  4[0-8]
10215                )
10216              )|
10217              9
10218            </leadingDigits>
10219            <format>$1 $2</format>
10220          </numberFormat>
10221          <!-- 2 digits area code -->
10222          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10223            <leadingDigits>
10224              11|
10225              2[02]|
10226              33|
10227              4[04]|
10228              79|
10229              80[2-46]
10230            </leadingDigits>
10231            <format>$1 $2 $3</format>
10232          </numberFormat>
10233          <!-- 3 digit area codes that don't clash with mobile patterns. -->
10234          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10235            <leadingDigits>
10236              1(?:
10237                2[0-249]|
10238                3[0-25]|
10239                4[145]|
10240                [569][14]|
10241                7[1257]|
10242                8[1346]|
10243                [68][1-9]
10244              )|
10245              2(?:
10246                1[257]|
10247                3[013]|
10248                4[01]|
10249                5[0137]|
10250                6[0158]|
10251                78|
10252                8[1568]|
10253                9[14]
10254              )|
10255              3(?:
10256                26|
10257                4[1-3]|
10258                5[34]|
10259                6[01489]|
10260                7[02-46]|
10261                8[159]
10262              )|
10263              4(?:
10264                1[36]|
10265                2[1-47]|
10266                3[15]|
10267                5[12]|
10268                6[0-26-9]|
10269                7[0-24-9]|
10270                8[013-57]|
10271                9[014-7]
10272              )|
10273              5(?:
10274                [136][25]|
10275                22|
10276                4[28]|
10277                5[12]|
10278                [78]1|
10279                9[15]
10280              )|
10281              6(?:
10282                12|
10283                [2345]1|
10284                57|
10285                6[13]|
10286                7[14]|
10287                80
10288              )
10289            </leadingDigits>
10290            <format>$1 $2 $3</format>
10291          </numberFormat>
10292          <!-- Three-digit area codes that potentially overlap with mobile. -->
10293          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10294            <leadingDigits>
10295              7(?:
10296                12|
10297                2[14]|
10298                3[134]|
10299                4[47]|
10300                5[15]|
10301                [67]1|
10302                88
10303              )
10304            </leadingDigits>
10305            <leadingDigits>
10306              7(?:
10307                12|
10308                2[14]|
10309                3[134]|
10310                4[47]|
10311                5(?:
10312                  1|
10313                  5[2-6]
10314                )|
10315                [67]1|
10316                88
10317              )
10318            </leadingDigits>
10319            <format>$1 $2 $3</format>
10320          </numberFormat>
10321          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10322            <leadingDigits>
10323              8(?:
10324                16|
10325                2[014]|
10326                3[126]|
10327                6[136]|
10328                7[078]|
10329                8[34]|
10330                91
10331              )
10332            </leadingDigits>
10333            <format>$1 $2 $3</format>
10334          </numberFormat>
10335          <!-- 4 digits area code -->
10336          <!-- Fallback for fixed-line numbers. -->
10337          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
10338            <leadingDigits>
10339              1(?:
10340                [23579]|
10341                [468][1-9]
10342              )|
10343              [2-8]
10344            </leadingDigits>
10345            <format>$1 $2 $3</format>
10346          </numberFormat>
10347          <numberFormat nationalPrefixFormattingRule="$FG"
10348            pattern="(1600)(\d{2})(\d{4})">
10349            <leadingDigits>160</leadingDigits>
10350            <leadingDigits>1600</leadingDigits>
10351            <format>$1 $2 $3</format>
10352          </numberFormat>
10353          <numberFormat nationalPrefixFormattingRule="$FG"
10354            pattern="(1800)(\d{4,5})">
10355            <leadingDigits>180</leadingDigits>
10356            <leadingDigits>1800</leadingDigits>
10357            <format>$1 $2</format>
10358          </numberFormat>
10359          <numberFormat nationalPrefixFormattingRule="$FG"
10360            pattern="(18[06]0)(\d{2,4})(\d{4})">
10361            <leadingDigits>18[06]</leadingDigits>
10362            <leadingDigits>18[06]0</leadingDigits>
10363            <format>$1 $2 $3</format>
10364          </numberFormat>
10365          <numberFormat nationalPrefixFormattingRule="$FG"
10366            pattern="(140)(\d{3})(\d{4})">
10367            <leadingDigits>140</leadingDigits>
10368            <format>$1 $2 $3</format>
10369          </numberFormat>
10370          <!-- Televoting numbers. Formatting information is from
10371               http://www.bsnl.co.in/service/telev.htm -->
10372          <numberFormat nationalPrefixFormattingRule="$FG"
10373            pattern="(\d{4})(\d{3})(\d{4})(\d{2})">
10374            <leadingDigits>18[06]</leadingDigits>
10375            <leadingDigits>
10376              18(?:
10377                03|
10378                6[12]
10379              )
10380            </leadingDigits>
10381            <format>$1 $2 $3 $4</format>
10382          </numberFormat>
10383       </availableFormats>
10384       <generalDesc>
10385         <nationalNumberPattern>
10386           1\d{7,12}|
10387           [2-9]\d{9,10}
10388         </nationalNumberPattern>
10389         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
10390       </generalDesc>
10391       <noInternationalDialling>
10392         <nationalNumberPattern>
10393           1(?:
10394             600\d{6}|
10395             8(?:
10396               0(?:
10397                 0\d{4,8}|
10398                 3\d{9}
10399               )|
10400               6(?:
10401                 0\d{7}|
10402                 [12]\d{9}
10403               )
10404             )
10405           )
10406         </nationalNumberPattern>
10407         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10408         <exampleNumber>1800123456</exampleNumber>
10409       </noInternationalDialling>
10410       <fixedLine>
10411         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
10412              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
10413              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
10414              Not all operator codes are available in all areas, but we don't maintain that
10415              distinction here.
10416              Area codes starting with a 7 are listed separately, since the prefixes need to be more
10417              detailed so they clash less with mobile phone prefixes. -->
10418         <nationalNumberPattern>
10419           (?:
10420             11|
10421             2[02]|
10422             33|
10423             4[04]|
10424             79
10425           )[2-7]\d{7}|
10426           80[2-467]\d{7}|
10427           (?:
10428             1(?:
10429               2[0-249]|
10430               3[0-25]|
10431               4[145]|
10432               [59][14]|
10433               6[014]|
10434               7[1257]|
10435               8[01346]
10436             )|
10437             2(?:
10438               1[257]|
10439               3[013]|
10440               4[01]|
10441               5[0137]|
10442               6[0158]|
10443               78|
10444               8[1568]|
10445               9[14]
10446             )|
10447             3(?:
10448               26|
10449               4[1-3]|
10450               5[34]|
10451               6[01489]|
10452               7[02-46]|
10453               8[159]
10454             )|
10455             4(?:
10456               1[36]|
10457               2[1-47]|
10458               3[15]|
10459               5[12]|
10460               6[0-26-9]|
10461               7[0-24-9]|
10462               8[013-57]|
10463               9[014-7]
10464             )|
10465             5(?:
10466               [136][25]|
10467               22|
10468               4[28]|
10469               5[12]|
10470               [78]1|
10471               9[15]
10472             )|
10473             6(?:
10474               12|
10475               [2345]1|
10476               57|
10477               6[13]|
10478               7[14]|
10479               80
10480             )|
10481             7(?:
10482               12|
10483               2[14]|
10484               3[134]|
10485               4[47]|
10486               5[15]|
10487               [67]1|
10488               88
10489             )|
10490             8(?:
10491               16|
10492               2[014]|
10493               3[126]|
10494               6[136]|
10495               7[078]|
10496               8[34]|
10497               91
10498             )
10499           )[2-7]\d{6}|
10500           (?:
10501             (?:
10502               1(?:
10503                 2[35-8]|
10504                 3[346-9]|
10505                 4[236-9]|
10506                 [59][0235-9]|
10507                 6[235-9]|
10508                 7[34689]|
10509                 8[257-9]
10510               )|
10511               2(?:
10512                 1[134689]|
10513                 3[24-8]|
10514                 4[2-8]|
10515                 5[25689]|
10516                 6[2-4679]|
10517                 7[13-79]|
10518                 8[2-479]|
10519                 9[235-9]
10520               )|
10521               3(?:
10522                 01|
10523                 1[79]|
10524                 2[1-5]|
10525                 4[25-8]|
10526                 5[125689]|
10527                 6[235-7]|
10528                 7[157-9]|
10529                 8[2-467]
10530               )|
10531               4(?:
10532                 1[14578]|
10533                 2[5689]|
10534                 3[2-467]|
10535                 5[4-7]|
10536                 6[35]|
10537                 73|
10538                 8[2689]|
10539                 9[2389]
10540               )|
10541               5(?:
10542                 [16][146-9]|
10543                 2[14-8]|
10544                 3[1346]|
10545                 4[14-69]|
10546                 5[46]|
10547                 7[2-4]|
10548                 8[2-8]|
10549                 9[246]
10550               )|
10551               6(?:
10552                 1[1358]|
10553                 2[2457]|
10554                 3[2-4]|
10555                 4[235-7]|
10556                 [57][2-689]|
10557                 6[24-578]|
10558                 8[1-6]
10559               )|
10560               8(?:
10561                 1[1357-9]|
10562                 2[235-8]|
10563                 3[03-57-9]|
10564                 4[0-24-9]|
10565                 5\d|
10566                 6[2457-9]|
10567                 7[1-6]|
10568                 8[1256]|
10569                 9[2-4]
10570               )
10571             )\d|
10572             7(?:
10573               (?:
10574                 1[013-9]|
10575                 2[0235-9]|
10576                 3[2679]|
10577                 4[1-35689]|
10578                 5[2-46-9]|
10579                 [67][02-9]|
10580                 9\d
10581               )\d|
10582               8(?:
10583                 2[0-6]|
10584                 [013-8]\d
10585               )
10586             )
10587           )[2-7]\d{5}
10588         </nationalNumberPattern>
10589         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10590         <exampleNumber>1123456789</exampleNumber>
10591       </fixedLine>
10592       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
10593       <!-- The document titled "List of MSC codes" linked off
10594            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
10595            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
10596       <mobile>
10597         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10598              codes list, are added because SMS messages have been successfully sent to these
10599              numbers. It seems almost impossible to know for some of these numbers whether they are
10600              land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[567],
10601              7695, 8299, 8309. New prefixes were also added based on the document provided from
10602              mobile carriers: https://github.com/googlei18n/libphonenumber/issues/260 -->
10603         <nationalNumberPattern>
10604           (?:
10605             7(?:
10606               0(?:
10607                 2[2-9]|
10608                 [3-8]\d|
10609                 9[0-8]
10610               )|
10611               2(?:
10612                 0[04-9]|
10613                 5[09]|
10614                 7[5-8]|
10615                 9[389]
10616               )|
10617               3(?:
10618                 0[1-9]|
10619                 [58]\d|
10620                 7[3679]|
10621                 9[689]
10622               )|
10623               4(?:
10624                 0[1-9]|
10625                 1[15-9]|
10626                 [29][89]|
10627                 39|
10628                 8[389]
10629               )|
10630               5(?:
10631                 [034678]\d|
10632                 2[03-9]|
10633                 5[017-9]|
10634                 9[7-9]
10635               )|
10636               6(?:
10637                 0[0127]|
10638                 1[0-257-9]|
10639                 2[0-4]|
10640                 3[19]|
10641                 5[4589]|
10642                 [6-9]\d
10643               )|
10644               7(?:
10645                 0[2-9]|
10646                 [1-79]\d|
10647                 8[1-9]
10648               )|
10649               8(?:
10650                 [0-7]\d|
10651                 9[013-9]
10652               )
10653             )|
10654             8(?:
10655               0(?:
10656                 [01589]\d|
10657                 6[67]
10658               )|
10659               1(?:
10660                 [02-589]\d|
10661                 1[0135-9]|
10662                 7[0-79]
10663               )|
10664               2(?:
10665                 [236-9]\d|
10666                 5[1-9]
10667               )|
10668               3(?:
10669                 [0357-9]\d|
10670                 4[1-9]
10671               )|
10672               [45]\d{2}|
10673               6[02457-9]\d|
10674               7[1-69]\d|
10675               8(?:
10676                 [0-26-9]\d|
10677                 44|
10678                 5[2-9]
10679               )|
10680               9(?:
10681                 [035-9]\d|
10682                 2[2-9]|
10683                 4[0-8]
10684               )
10685             )|
10686             9\d{3}
10687           )\d{6}
10688         </nationalNumberPattern>
10689         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10690         <exampleNumber>9123456789</exampleNumber>
10691       </mobile>
10692       <tollFree>
10693         <!-- Information gathered from sites such as
10694              http://www.surfindia.com/india-facts/toll-free-no.html and
10695              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
10696              http://www.bsnl.co.in/service/telev.htm -->
10697         <nationalNumberPattern>
10698           1(?:
10699             600\d{6}|
10700             80(?:
10701               0\d{4,8}|
10702               3\d{9}
10703             )
10704           )
10705         </nationalNumberPattern>
10706         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10707         <exampleNumber>1800123456</exampleNumber>
10708       </tollFree>
10709       <premiumRate>
10710         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
10711              because they overlap with mobile, and we haven't found any real numbers online. -->
10712         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
10713         <possibleNumberPattern>\d{13}</possibleNumberPattern>
10714         <exampleNumber>1861123456789</exampleNumber>
10715       </premiumRate>
10716       <sharedCost>
10717         <!-- While described as "universal numbers" in the numbering plan, evidence suggests
10718              that 1860 number are best described as shared cost. See "Call Local Service" in:
10719              http://www.tatadocomo.com/corporates/toll-free.aspx -->
10720         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
10721         <possibleNumberPattern>\d{11}</possibleNumberPattern>
10722         <exampleNumber>18603451234</exampleNumber>
10723       </sharedCost>
10724       <uan>
10725         <!-- Telemarketing numbers: http://en.wikipedia.org/wiki/Telephone_numbers_in_India -->
10726         <nationalNumberPattern>140\d{7}</nationalNumberPattern>
10727         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10728         <exampleNumber>1409305260</exampleNumber>
10729       </uan>
10730     </territory>
10731
10732     <!-- British Indian Ocean Territory / Diego Garcia -->
10733     <territory id="IO" countryCode="246" internationalPrefix="00">
10734       <references>
10735         <sourceUrl>http://www.itu.int/oth/T0202000039/en</sourceUrl>
10736       </references>
10737       <availableFormats>
10738         <numberFormat pattern="(\d{3})(\d{4})">
10739           <format>$1 $2</format>
10740         </numberFormat>
10741       </availableFormats>
10742       <generalDesc>
10743         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
10744         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10745       </generalDesc>
10746       <fixedLine>
10747         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
10748         <exampleNumber>3709100</exampleNumber>
10749       </fixedLine>
10750       <mobile>
10751         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
10752         <exampleNumber>3801234</exampleNumber>
10753       </mobile>
10754     </territory>
10755
10756     <!-- Iraq -->
10757     <territory id="IQ" countryCode="964" internationalPrefix="00"
10758                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10759       <references>
10760         <sourceUrl>http://en.wikipedia.org/wiki/%2B964</sourceUrl>
10761         <sourceUrl>http://wtng.info/wtng-964-ik.html</sourceUrl>
10762       </references>
10763       <availableFormats>
10764         <numberFormat pattern="(1)(\d{3})(\d{4})">
10765           <leadingDigits>1</leadingDigits>
10766           <format>$1 $2 $3</format>
10767         </numberFormat>
10768         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
10769           <leadingDigits>[2-6]</leadingDigits>
10770           <format>$1 $2 $3</format>
10771         </numberFormat>
10772         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
10773           <leadingDigits>7</leadingDigits>
10774           <format>$1 $2 $3</format>
10775         </numberFormat>
10776       </availableFormats>
10777       <generalDesc>
10778         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
10779         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10780       </generalDesc>
10781       <fixedLine>
10782         <nationalNumberPattern>
10783           1\d{7}|
10784           (?:
10785             2[13-5]|
10786             3[02367]|
10787             4[023]|
10788             5[03]|
10789             6[026]
10790           )\d{6,7}
10791         </nationalNumberPattern>
10792         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
10793         <exampleNumber>12345678</exampleNumber>
10794       </fixedLine>
10795       <mobile>
10796         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
10797         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10798         <exampleNumber>7912345678</exampleNumber>
10799       </mobile>
10800       <!-- No tollFree or premiumRate information can be found. -->
10801     </territory>
10802
10803     <!-- Iran, Islamic Republic of -->
10804     <territory id="IR" countryCode="98" internationalPrefix="00"
10805                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10806       <references>
10807         <sourceUrl>http://en.wikipedia.org/wiki/%2B98</sourceUrl>
10808         <sourceUrl>http://www.itu.int/oth/T0202000066/en</sourceUrl>
10809         <sourceUrl>http://www.tct.ir/?siteid=1&amp;pageid=195</sourceUrl>
10810         <sourceUrl>http://118.tct.ir/citycode.htm</sourceUrl>
10811       </references>
10812       <availableFormats>
10813         <!-- Formatting follows wikipedia. -->
10814         <numberFormat pattern="(21)(\d{3,5})">
10815           <leadingDigits>21</leadingDigits>
10816           <format>$1 $2</format>
10817         </numberFormat>
10818         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10819           <leadingDigits>[1-8]</leadingDigits>
10820           <format>$1 $2 $3</format>
10821         </numberFormat>
10822         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
10823           <leadingDigits>9</leadingDigits>
10824           <format>$1 $2 $3</format>
10825         </numberFormat>
10826         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
10827           <leadingDigits>9</leadingDigits>
10828           <format>$1 $2 $3</format>
10829         </numberFormat>
10830         <numberFormat pattern="(\d{3})(\d{3})">
10831           <leadingDigits>9</leadingDigits>
10832           <format>$1 $2</format>
10833         </numberFormat>
10834       </availableFormats>
10835       <generalDesc>
10836         <nationalNumberPattern>
10837           [1-8]\d{9}|
10838           9(?:
10839             [0-4]\d{8}|
10840             9\d{2,8}
10841           )
10842         </nationalNumberPattern>
10843         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10844       </generalDesc>
10845       <fixedLine>
10846         <!-- In Summer 2014 Iran unified all fixed phone numbers in the following way:
10847              Each province is assigned a two digit prefix (except for North Khorasan which has 3).
10848              Within each province, all numbers are exactly eight digits.  The expression below is
10849              organized by province.  For each province we accept all eight-digit combinations.
10850
10851              11 Mazandaran
10852              13 Gilan
10853              17 Golestan
10854              21 Tehran
10855              23 Semnan
10856              24 Zanjan
10857              25 Qom
10858              26 Alborz
10859              28 Qazvin
10860              31 Isfahan
10861              34 Kerman
10862              35 Yazd
10863              38 Chahar Mahaal and Bakhtiari
10864              41 East Azerbaijan
10865              44 West Azerbaijan
10866              45 Ardabil
10867              51 Razavi Khorasan
10868              54 Sistan and Baluchestan
10869              56 South Khorasan
10870              57 North Khorasan (Extras)
10871              58 North Khorasan
10872              61 Khuzestan
10873              64 North Khorasan (Extras)
10874              66 Lorestan
10875              71 Fars
10876              74 Kohgiluyeh and Boyer-Ahmad
10877              76 Hormozgan
10878              77 Bushehr
10879              81 Hamadan
10880              83 Kermanshah
10881              84 Ilam
10882              86 Markazi
10883              87 Kurdistan
10884              -->
10885         <nationalNumberPattern>
10886           (?:
10887             1[137]|
10888             2[13-68]|
10889             3[1458]|
10890             4[145]|
10891             5[146-8]|
10892             6[146]|
10893             7[1467]|
10894             8[13467]
10895           )\d{8}
10896         </nationalNumberPattern>
10897         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10898         <exampleNumber>2123456789</exampleNumber>
10899       </fixedLine>
10900       <mobile>
10901         <nationalNumberPattern>
10902           9(?:
10903             0[12]|
10904             [1-3]\d
10905           )\d{7}
10906         </nationalNumberPattern>
10907         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10908         <exampleNumber>9123456789</exampleNumber>
10909       </mobile>
10910       <pager>
10911         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
10912         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10913         <exampleNumber>9432123456</exampleNumber>
10914       </pager>
10915       <!-- No tollFree or premiumRate information can be found. -->
10916       <voip>
10917         <!-- Includes VSAT and Boomehen Satellite numbers. -->
10918         <nationalNumberPattern>
10919           (?:
10920             [2-6]0\d|
10921             993
10922           )\d{7}
10923         </nationalNumberPattern>
10924         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10925         <exampleNumber>9932123456</exampleNumber>
10926       </voip>
10927       <uan>
10928         <!-- MCI Public Relations numbers -->
10929         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
10930         <exampleNumber>9990123456</exampleNumber>
10931       </uan>
10932     </territory>
10933
10934     <!-- Iceland -->
10935     <territory id="IS" countryCode="354" internationalPrefix="00" mobileNumberPortableRegion="true">
10936       <references>
10937         <sourceUrl>http://www.pta.is/default.aspx?cat_id=85</sourceUrl>
10938         <sourceUrl>http://www.pfs.is/default.aspx?cat_id=14&amp;module_id=210&amp;element_id=4</sourceUrl>
10939       </references>
10940       <availableFormats>
10941         <numberFormat pattern="(\d{3})(\d{4})">
10942           <leadingDigits>[4-9]</leadingDigits>
10943           <format>$1 $2</format>
10944         </numberFormat>
10945         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
10946           <leadingDigits>3</leadingDigits>
10947           <format>$1 $2 $3</format>
10948         </numberFormat>
10949       </availableFormats>
10950       <generalDesc>
10951         <nationalNumberPattern>
10952           [4-9]\d{6}|
10953           38\d{7}
10954         </nationalNumberPattern>
10955         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
10956       </generalDesc>
10957       <fixedLine>
10958         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
10959         <nationalNumberPattern>
10960           (?:
10961             4(?:
10962               1[0-24-6]|
10963               2[0-7]|
10964               [37][0-8]|
10965               4[0-245]|
10966               5[0-3568]|
10967               6\d|
10968               8[0-36-8]
10969             )|
10970             5(?:
10971               05|
10972               [156]\d|
10973               2[02578]|
10974               3[013-7]|
10975               4[03-7]|
10976               7[0-2578]|
10977               8[0-35-9]|
10978               9[013-689]
10979             )|
10980             87[23]
10981           )\d{4}
10982         </nationalNumberPattern>
10983         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10984         <exampleNumber>4101234</exampleNumber>
10985       </fixedLine>
10986       <mobile>
10987         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
10988         <nationalNumberPattern>
10989           38[589]\d{6}|
10990           (?:
10991             6(?:
10992               1[1-8]|
10993               3[089]|
10994               4[0167]|
10995               5[019]|
10996               [67][0-69]|
10997               9\d
10998             )|
10999             7(?:
11000               5[057]|
11001               7\d|
11002               8[0-36-8]
11003             )|
11004             8(?:
11005               2[0-5]|
11006               3[0-4]|
11007               [469]\d|
11008               5[1-9]
11009             )
11010           )\d{4}
11011         </nationalNumberPattern>
11012         <exampleNumber>6111234</exampleNumber>
11013       </mobile>
11014       <tollFree>
11015         <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
11016              numbers can be found online, and it is not clear what these are; the standard
11017              definition would have them under the +800 country code instead of Iceland. -->
11018         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
11019         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11020         <exampleNumber>8001234</exampleNumber>
11021       </tollFree>
11022       <premiumRate>
11023         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
11024         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11025         <exampleNumber>9011234</exampleNumber>
11026       </premiumRate>
11027       <voip>
11028         <nationalNumberPattern>49\d{5}</nationalNumberPattern>
11029         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11030         <exampleNumber>4921234</exampleNumber>
11031       </voip>
11032       <voicemail>
11033         <nationalNumberPattern>
11034           (?:
11035             6(?:
11036               2[0-8]|
11037               49|
11038               8\d
11039             )|
11040             87[0189]|
11041             95[48]
11042           )\d{4}
11043         </nationalNumberPattern>
11044         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11045         <exampleNumber>6201234</exampleNumber>
11046       </voicemail>
11047     </territory>
11048
11049     <!-- Italy -->
11050     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true"
11051                mobileNumberPortableRegion="true">
11052       <references>
11053         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
11054       </references>
11055       <availableFormats>
11056         <!-- The leading zero for fixed numbers will be prepended before the matching of these
11057              regular expressions. -->
11058         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
11059           <leadingDigits>
11060             0[26]|
11061             55
11062           </leadingDigits>
11063           <format>$1 $2 $3</format>
11064         </numberFormat>
11065         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
11066           <leadingDigits>0[26]</leadingDigits>
11067           <format>$1 $2 $3</format>
11068         </numberFormat>
11069         <numberFormat pattern="(0[26])(\d{4,6})">
11070           <leadingDigits>0[26]</leadingDigits>
11071           <format>$1 $2</format>
11072         </numberFormat>
11073         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
11074           <leadingDigits>0[13-57-9][0159]</leadingDigits>
11075           <format>$1 $2 $3</format>
11076         </numberFormat>
11077         <numberFormat pattern="(\d{3})(\d{3,6})">
11078           <leadingDigits>
11079             0[13-57-9][0159]|
11080             8(?:
11081               03|
11082               4[17]|
11083               9[245]
11084             )
11085           </leadingDigits>
11086           <leadingDigits>
11087             0[13-57-9][0159]|
11088             8(?:
11089               03|
11090               4[17]|
11091               9(?:
11092                 2|
11093                 [45][0-4]
11094               )
11095             )
11096           </leadingDigits>
11097           <format>$1 $2</format>
11098         </numberFormat>
11099         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
11100           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11101           <format>$1 $2 $3</format>
11102         </numberFormat>
11103         <numberFormat pattern="(0\d{3})(\d{2,6})">
11104           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11105           <format>$1 $2</format>
11106         </numberFormat>
11107         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11108           <leadingDigits>
11109             [13]|
11110             8(?:
11111               00|
11112               4[08]|
11113               9[59]
11114             )
11115           </leadingDigits>
11116           <leadingDigits>
11117             [13]|
11118             8(?:
11119               00|
11120               4[08]|
11121               9(?:
11122                 5[5-9]|
11123                 9
11124               )
11125             )
11126           </leadingDigits>
11127           <format>$1 $2 $3</format>
11128         </numberFormat>
11129         <numberFormat pattern="(\d{4})(\d{4})">
11130           <leadingDigits>894</leadingDigits>
11131           <leadingDigits>894[5-9]</leadingDigits>
11132           <format>$1 $2</format>
11133         </numberFormat>
11134         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
11135           <leadingDigits>3</leadingDigits>
11136           <format>$1 $2 $3</format>
11137         </numberFormat>
11138       </availableFormats>
11139       <generalDesc>
11140         <nationalNumberPattern>
11141           [01589]\d{5,10}|
11142           3(?:
11143             [12457-9]\d{8}|
11144             [36]\d{7,9}
11145           )
11146         </nationalNumberPattern>
11147         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11148       </generalDesc>
11149       <noInternationalDialling>
11150         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
11151         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11152         <exampleNumber>848123456</exampleNumber>
11153       </noInternationalDialling>
11154       <fixedLine>
11155         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
11156              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
11157              found with other prefixes that are 11 digits long as well, so we allow it for all the
11158              three and four digit area codes. -->
11159         <nationalNumberPattern>
11160           0(?:
11161             [26]\d{4,9}|
11162             (?:
11163               1(?:
11164                 [0159]\d|
11165                 [27][1-5]|
11166                 31|
11167                 4[1-4]|
11168                 6[1356]|
11169                 8[2-57]
11170               )|
11171               3(?:
11172                 [0159]\d|
11173                 2[1-4]|
11174                 3[12]|
11175                 [48][1-6]|
11176                 6[2-59]|
11177                 7[1-7]
11178               )|
11179               4(?:
11180                 [0159]\d|
11181                 [23][1-9]|
11182                 4[245]|
11183                 6[1-5]|
11184                 7[1-4]|
11185                 81
11186               )|
11187               5(?:
11188                 [0159]\d|
11189                 2[1-5]|
11190                 3[2-6]|
11191                 4[1-79]|
11192                 6[4-6]|
11193                 7[1-578]|
11194                 8[3-8]
11195               )|
11196               7(?:
11197                 [0159]\d|
11198                 2[12]|
11199                 3[1-7]|
11200                 4[2346]|
11201                 6[13569]|
11202                 7[13-6]|
11203                 8[1-59]
11204               )|
11205               8(?:
11206                 [0159]\d|
11207                 2[34578]|
11208                 3[1-356]|
11209                 [6-8][1-5]
11210               )|
11211               9(?:
11212                 [0159]\d|
11213                 [238][1-5]|
11214                 4[12]|
11215                 6[1-8]|
11216                 7[1-6]
11217               )
11218             )\d{2,7}
11219           )
11220         </nationalNumberPattern>
11221         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11222         <exampleNumber>0212345678</exampleNumber>
11223       </fixedLine>
11224       <mobile>
11225         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
11226              digits long. However, a user reported the existence of new 11 digit long numbers for
11227              TIM with the prefix 33X, so this is supported also. -->
11228         <nationalNumberPattern>
11229           3(?:
11230             [12457-9]\d{8}|
11231             6\d{7,8}|
11232             3\d{7,9}
11233           )
11234         </nationalNumberPattern>
11235         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
11236         <exampleNumber>3123456789</exampleNumber>
11237       </mobile>
11238       <tollFree>
11239         <nationalNumberPattern>
11240           80(?:
11241             0\d{6}|
11242             3\d{3}
11243           )
11244         </nationalNumberPattern>
11245         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11246         <exampleNumber>800123456</exampleNumber>
11247       </tollFree>
11248       <premiumRate>
11249         <!-- Adding 0878 numbers, as per
11250              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
11251              premium prefixes are mentioned here:
11252              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
11253         <nationalNumberPattern>
11254           0878\d{5}|
11255           1(?:
11256             44|
11257             6[346]
11258           )\d{6}|
11259           89(?:
11260             2\d{3}|
11261             4(?:
11262               [0-4]\d{2}|
11263               [5-9]\d{4}
11264             )|
11265             5(?:
11266               [0-4]\d{2}|
11267               [5-9]\d{6}
11268             )|
11269             9\d{6}
11270           )
11271         </nationalNumberPattern>
11272         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11273         <exampleNumber>899123456</exampleNumber>
11274       </premiumRate>
11275       <sharedCost>
11276         <nationalNumberPattern>
11277           84(?:
11278             [08]\d{6}|
11279             [17]\d{3}
11280           )
11281         </nationalNumberPattern>
11282         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11283         <exampleNumber>848123456</exampleNumber>
11284       </sharedCost>
11285       <personalNumber>
11286         <nationalNumberPattern>
11287           1(?:
11288             78\d|
11289             99
11290           )\d{6}
11291         </nationalNumberPattern>
11292         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
11293         <exampleNumber>1781234567</exampleNumber>
11294       </personalNumber>
11295       <voip>
11296         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
11297         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11298         <exampleNumber>5512345678</exampleNumber>
11299       </voip>
11300     </territory>
11301
11302     <!-- Jersey -->
11303     <!-- Inherits formatting rules from the UK. -->
11304     <territory id="JE" countryCode="44" internationalPrefix="00"
11305                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
11306       <references>
11307         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
11308         <sourceUrl>http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&amp;childID=1036</sourceUrl>
11309       </references>
11310       <generalDesc>
11311         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
11312         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11313       </generalDesc>
11314       <areaCodeOptional>
11315         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
11316         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11317         <exampleNumber>1534250123</exampleNumber>
11318       </areaCodeOptional>
11319       <!-- Specific to JE. -->
11320       <fixedLine>
11321         <!-- 1534 with 10 digits. -->
11322         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
11323         <exampleNumber>1534456789</exampleNumber>
11324       </fixedLine>
11325       <mobile>
11326         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
11327         <nationalNumberPattern>
11328           7(?:
11329             509|
11330             7(?:
11331               00|
11332               97
11333             )|
11334             829|
11335             937
11336           )\d{6}
11337         </nationalNumberPattern>
11338         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11339         <exampleNumber>7797123456</exampleNumber>
11340       </mobile>
11341       <pager>
11342         <!-- Pager numbers as per GB. -->
11343         <nationalNumberPattern>
11344           76(?:
11345             0[012]|
11346             2[356]|
11347             4[0134]|
11348             5[49]|
11349             6[0-369]|
11350             77|
11351             81|
11352             9[39]
11353           )\d{6}
11354         </nationalNumberPattern>
11355         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11356         <exampleNumber>7640123456</exampleNumber>
11357       </pager>
11358       <!-- Specific to JE. -->
11359       <tollFree>
11360         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
11361         <nationalNumberPattern>
11362           80(?:
11363             07(?:
11364               35|
11365               81
11366             )|
11367             8901
11368           )\d{4}
11369         </nationalNumberPattern>
11370         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11371         <exampleNumber>8007354567</exampleNumber>
11372       </tollFree>
11373       <premiumRate>
11374         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
11375         <nationalNumberPattern>
11376           (?:
11377             871206|
11378             90(?:
11379               066[59]|
11380               1810|
11381               71(?:
11382                 07|
11383                 55
11384               )
11385             )
11386           )\d{4}
11387         </nationalNumberPattern>
11388         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11389         <exampleNumber>9018105678</exampleNumber>
11390       </premiumRate>
11391       <sharedCost>
11392         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
11393         <nationalNumberPattern>
11394           8(?:
11395             4(?:
11396               4(?:
11397                 4(?:
11398                   05|
11399                   42|
11400                   69
11401                 )|
11402                 703
11403               )|
11404               5(?:
11405                 041|
11406                 800
11407               )
11408             )|
11409             70002
11410           )\d{4}
11411         </nationalNumberPattern>
11412         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11413         <exampleNumber>8447034567</exampleNumber>
11414       </sharedCost>
11415       <personalNumber>
11416         <!-- 70 1511 with 10 digits. -->
11417         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
11418         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11419         <exampleNumber>7015115678</exampleNumber>
11420       </personalNumber>
11421       <voip>
11422         <!-- VoIP numbers as per GB. -->
11423         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
11424         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11425         <exampleNumber>5612345678</exampleNumber>
11426       </voip>
11427       <uan>
11428         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
11429              370 002, 371 206, 55 with 10 digits. -->
11430         <nationalNumberPattern>
11431           3(?:
11432             0(?:
11433               07(?:
11434                 35|
11435                 81
11436               )|
11437               8901
11438             )|
11439             3\d{4}|
11440             4(?:
11441               4(?:
11442                 4(?:
11443                   05|
11444                   42|
11445                   69
11446                 )|
11447                 703
11448               )|
11449               5(?:
11450                 041|
11451                 800
11452               )
11453             )|
11454             7(?:
11455               0002|
11456               1206
11457             )
11458           )\d{4}|
11459           55\d{8}
11460         </nationalNumberPattern>
11461         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11462         <exampleNumber>5512345678</exampleNumber>
11463       </uan>
11464     </territory>
11465
11466     <!-- Jamaica -->
11467     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
11468                internationalPrefix="011">
11469       <references>
11470         <sourceUrl>http://www.itu.int/oth/T020200006C/en</sourceUrl>
11471       </references>
11472       <generalDesc>
11473         <!-- NANPA country - uses US formatting rules -->
11474         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
11475         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
11476       </generalDesc>
11477       <fixedLine>
11478         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
11479         <nationalNumberPattern>
11480           876(?:
11481             5(?:
11482               0[12]|
11483               1[0-468]|
11484               2[35]|
11485               63
11486             )|
11487             6(?:
11488               0[1-3579]|
11489               1[027-9]|
11490               [23]\d|
11491               40|
11492               5[06]|
11493               6[2-589]|
11494               7[05]|
11495               8[04]|
11496               9[4-9]
11497             )|
11498             7(?:
11499               0[2-689]|
11500               [1-6]\d|
11501               8[056]|
11502               9[45]
11503             )|
11504             9(?:
11505               0[1-8]|
11506               1[02378]|
11507               [2-8]\d|
11508               9[2-468]
11509             )
11510           )\d{4}
11511         </nationalNumberPattern>
11512         <exampleNumber>8765123456</exampleNumber>
11513       </fixedLine>
11514       <mobile>
11515         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
11516              be valid by sending SMSs and looking at online number lookup sites. Also added 50[3-79]
11517              as we have found information online that the 50[3-9] range has been assigned to Digicel.
11518
11519              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
11520              Most have mobile numbers online so we have put them under mobile but is possible
11521              they are a mixture of fixed line and mobile. -->
11522         <nationalNumberPattern>
11523           876(?:
11524             2[1789]\d|
11525             [348]\d{2}|
11526             5(?:
11527               0[3-9]|
11528               27|
11529               6[0-24-9]|
11530               [3-578]\d
11531             )|
11532             7(?:
11533               0[07]|
11534               7\d|
11535               8[1-47-9]|
11536               9[0-36-9]
11537             )|
11538             9(?:
11539               [01]9|
11540               9[0579]
11541             )
11542           )\d{4}
11543         </nationalNumberPattern>
11544         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11545         <exampleNumber>8762101234</exampleNumber>
11546       </mobile>
11547       <tollFree>
11548         <nationalNumberPattern>
11549           8(?:
11550             00|
11551             44|
11552             55|
11553             66|
11554             77|
11555             88
11556           )[2-9]\d{6}
11557         </nationalNumberPattern>
11558         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11559         <exampleNumber>8002123456</exampleNumber>
11560       </tollFree>
11561       <premiumRate>
11562         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
11563         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11564         <exampleNumber>9002123456</exampleNumber>
11565       </premiumRate>
11566       <personalNumber>
11567         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
11568         <nationalNumberPattern>
11569           5(?:
11570             00|
11571             33|
11572             44|
11573             66|
11574             77
11575           )[2-9]\d{6}
11576         </nationalNumberPattern>
11577         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11578         <exampleNumber>5002345678</exampleNumber>
11579       </personalNumber>
11580     </territory>
11581
11582     <!-- Jordan -->
11583     <territory id="JO" countryCode="962" internationalPrefix="00"
11584                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
11585                mobileNumberPortableRegion="true">
11586       <references>
11587         <sourceUrl>http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english</sourceUrl>
11588         <sourceUrl>http://www.itu.int/oth/T020200006E/en</sourceUrl>
11589         <sourceUrl>http://en.wikipedia.org/wiki/%2B962</sourceUrl>
11590       </references>
11591       <availableFormats>
11592         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
11593           pattern="(\d)(\d{3})(\d{4})">
11594           <leadingDigits>
11595             [2356]|
11596             87
11597           </leadingDigits>
11598           <format>$1 $2 $3</format>
11599         </numberFormat>
11600         <numberFormat pattern="(7)(\d{4})(\d{4})">
11601           <leadingDigits>7[457-9]</leadingDigits>
11602           <format>$1 $2 $3</format>
11603         </numberFormat>
11604         <numberFormat pattern="(\d{3})(\d{5,6})">
11605           <leadingDigits>
11606             70|
11607             8[0158]|
11608             9
11609           </leadingDigits>
11610           <format>$1 $2</format>
11611         </numberFormat>
11612       </availableFormats>
11613       <generalDesc>
11614         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
11615         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11616       </generalDesc>
11617       <fixedLine>
11618         <nationalNumberPattern>
11619           (?:
11620             2(?:
11621               6(?:
11622                 2[0-35-9]|
11623                 3[0-57-8]|
11624                 4[24-7]|
11625                 5[0-24-8]|
11626                 [6-8][02]|
11627                 9[0-2]
11628               )|
11629               7(?:
11630                 0[1-79]|
11631                 10|
11632                 2[014-7]|
11633                 3[0-689]|
11634                 4[019]|
11635                 5[0-3578]
11636               )
11637             )|
11638             32(?:
11639               0[1-69]|
11640               1[1-35-7]|
11641               2[024-7]|
11642               3\d|
11643               4[0-2]|
11644               [57][02]|
11645               60
11646             )|
11647             53(?:
11648               0[0-2]|
11649               [13][02]|
11650               2[0-59]|
11651               49|
11652               5[0-35-9]|
11653               6[15]|
11654               7[45]|
11655               8[1-6]|
11656               9[0-36-9]
11657             )|
11658             6(?:
11659               2[50]0|
11660               300|
11661               4(?:
11662                 0[0125]|
11663                 1[2-7]|
11664                 2[0569]|
11665                 [38][07-9]|
11666                 4[025689]|
11667                 6[0-589]|
11668                 7\d|
11669                 9[0-2]
11670               )|
11671               5(?:
11672                 [01][056]|
11673                 2[034]|
11674                 3[0-57-9]|
11675                 4[17-8]|
11676                 5[0-69]|
11677                 6[0-35-9]|
11678                 7[1-379]|
11679                 8[0-68]|
11680                 9[02-39]
11681               )
11682             )|
11683             87(?:
11684               [02]0|
11685               7[08]|
11686               9[09]
11687             )
11688           )\d{4}
11689         </nationalNumberPattern>
11690         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
11691         <exampleNumber>62001234</exampleNumber>
11692       </fixedLine>
11693       <mobile>
11694         <nationalNumberPattern>
11695           7(?:
11696             55|
11697             7[25-9]|
11698             8[05-9]|
11699             9[015-9]
11700           )\d{6}
11701         </nationalNumberPattern>
11702         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11703         <exampleNumber>790123456</exampleNumber>
11704       </mobile>
11705       <pager>
11706         <nationalNumberPattern>
11707           74(?:
11708             66|
11709             77
11710           )\d{5}
11711         </nationalNumberPattern>
11712         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11713         <exampleNumber>746612345</exampleNumber>
11714       </pager>
11715       <tollFree>
11716         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
11717         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11718         <exampleNumber>80012345</exampleNumber>
11719       </tollFree>
11720       <premiumRate>
11721         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
11722         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11723         <exampleNumber>90012345</exampleNumber>
11724       </premiumRate>
11725       <sharedCost>
11726         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
11727         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11728         <exampleNumber>85012345</exampleNumber>
11729       </sharedCost>
11730       <personalNumber>
11731         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
11732         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11733         <exampleNumber>700123456</exampleNumber>
11734       </personalNumber>
11735       <uan>
11736         <!-- These numbers are Location Independent Services / Fixed cost according to
11737              http://www.trc.gov.jo -->
11738         <nationalNumberPattern>
11739           8(?:
11740             10|
11741             8\d
11742           )\d{5}
11743         </nationalNumberPattern>
11744         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11745         <exampleNumber>88101234</exampleNumber>
11746       </uan>
11747     </territory>
11748
11749     <!-- Japan -->
11750     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
11751                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true"
11752                mobileNumberPortableRegion="true">
11753       <references>
11754         <sourceUrl>http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html</sourceUrl>
11755         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=JP</sourceUrl>
11756       </references>
11757       <availableFormats>
11758         <!-- Toll-free, premium-rate and UAN numbers -->
11759         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
11760           <leadingDigits>
11761             (?:
11762               12|
11763               57|
11764               99
11765             )0
11766           </leadingDigits>
11767           <format>$1-$2-$3</format>
11768         </numberFormat>
11769         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
11770           <leadingDigits>800</leadingDigits>
11771           <format>$1-$2-$3</format>
11772         </numberFormat>
11773         <!-- National-only toll-free numbers (0037, 0066, 0077 and 0088). -->
11774         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
11775           <leadingDigits>0077</leadingDigits>
11776           <format>$1-$2</format>
11777           <intlFormat>NA</intlFormat>
11778         </numberFormat>
11779         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{3,4})">
11780           <leadingDigits>0077</leadingDigits>
11781           <format>$1-$2-$3</format>
11782           <intlFormat>NA</intlFormat>
11783         </numberFormat>
11784         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{4})">
11785           <leadingDigits>0088</leadingDigits>
11786           <format>$1-$2-$3</format>
11787           <intlFormat>NA</intlFormat>
11788         </numberFormat>
11789         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3,4})">
11790           <leadingDigits>
11791             00(?:
11792                37|
11793                66
11794             )
11795           </leadingDigits>
11796           <format>$1-$2-$3</format>
11797           <intlFormat>NA</intlFormat>
11798         </numberFormat>
11799         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})(\d{4,5})">
11800           <leadingDigits>
11801             00(?:
11802                37|
11803                66
11804             )
11805           </leadingDigits>
11806           <format>$1-$2-$3</format>
11807           <intlFormat>NA</intlFormat>
11808         </numberFormat>
11809         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{5})(\d{5,6})">
11810           <leadingDigits>
11811             00(?:
11812                37|
11813                66
11814             )
11815           </leadingDigits>
11816           <format>$1-$2-$3</format>
11817           <intlFormat>NA</intlFormat>
11818         </numberFormat>
11819         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{6})(\d{6,7})">
11820           <leadingDigits>
11821             00(?:
11822                37|
11823                66
11824             )
11825           </leadingDigits>
11826           <format>$1-$2-$3</format>
11827           <intlFormat>NA</intlFormat>
11828         </numberFormat>
11829         <!-- Some leading digits are explicitly reserved for a particular purpose.
11830              We handle them first in this rule, and let the following rules ignore those exceptions.
11831              Note: The rule here is not in the files we rely on when creating the other rules.
11832                    We would need to manually modify it if the Japanese goverment
11833                    decided to change the rule.
11834
11835              (prefix): purpose
11836              "20": Pagers
11837              "50": IP phone
11838              "70": PHS (Personal Handy-phone System, which has been used in Japan
11839                    with Non-3G, Japanese-specific protocol).
11840                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
11841              "80" and "90": Mobile phone
11842           -->
11843         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
11844           <leadingDigits>
11845             [2579]0|
11846             80[1-9]
11847           </leadingDigits>
11848           <format>$1-$2-$3</format>
11849         </numberFormat>
11850         <!-- The order of the reg-exps are important.
11851              Examples (not all):
11852              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
11853              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
11854              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
11855              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
11856              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
11857              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
11858           -->
11859         <numberFormat pattern="(\d{4})(\d)(\d{4})">
11860           <leadingDigits>
11861             1(?:
11862               26|
11863               3[79]|
11864               4[56]|
11865               5[4-68]|
11866               6[3-5]
11867             )|
11868             5(?:
11869               76|
11870               97
11871             )|
11872             499|
11873             746|
11874             8(?:
11875               3[89]|
11876               63|
11877               47|
11878               51
11879             )|
11880             9(?:
11881               49|
11882               80|
11883               9[16]
11884             )
11885           </leadingDigits>
11886           <leadingDigits>
11887             1(?:
11888               267|
11889               3(?:
11890                 7[247]|
11891                 9[278]
11892               )|
11893               4(?:
11894                 5[67]|
11895                 66
11896               )|
11897               5(?:
11898                 47|
11899                 58|
11900                 64|
11901                 8[67]
11902               )|
11903               6(?:
11904                 3[245]|
11905                 48|
11906                 5[4-68]
11907               )
11908             )|
11909             5(?:
11910               76|
11911               97
11912             )9|
11913             499[2468]|
11914             7468|
11915             8(?:
11916               3(?:
11917                 8[78]|
11918                 96
11919               )|
11920               636|
11921               477|
11922               51[24]
11923             )|
11924             9(?:
11925               496|
11926               802|
11927               9(?:
11928                 1[23]|
11929                 69
11930               )
11931             )
11932           </leadingDigits>
11933           <leadingDigits>
11934             1(?:
11935               267|
11936               3(?:
11937                 7[247]|
11938                 9[278]
11939               )|
11940               4(?:
11941                 5[67]|
11942                 66
11943               )|
11944               5(?:
11945                 47|
11946                 58|
11947                 64|
11948                 8[67]
11949               )|
11950               6(?:
11951                 3[245]|
11952                 48|
11953                 5[4-68]
11954               )
11955             )|
11956             5(?:
11957               769|
11958               979[2-69]
11959             )|
11960             499[2468]|
11961             7468|
11962             8(?:
11963               3(?:
11964                 8[78]|
11965                 96[2457-9]
11966               )|
11967               636[2-57-9]|
11968               477|
11969               51[24]
11970             )|
11971             9(?:
11972               496|
11973               802|
11974               9(?:
11975                 1[23]|
11976                 69
11977               )
11978             )
11979           </leadingDigits>
11980           <format>$1-$2-$3</format>
11981         </numberFormat>
11982         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
11983           <leadingDigits>
11984             1(?:
11985               2[3-6]|
11986               3[3-9]|
11987               4[2-6]|
11988               5[2-8]|
11989               [68][2-7]|
11990               7[2-689]|
11991               9[1-578]
11992             )|
11993             2(?:
11994               2[03-689]|
11995               3[3-58]|
11996               4[0-468]|
11997               5[04-8]|
11998               6[013-8]|
11999               7[06-9]|
12000               8[02-57-9]|
12001               9[13]
12002             )|
12003             4(?:
12004               2[28]|
12005               3[689]|
12006               6[035-7]|
12007               7[05689]|
12008               80|
12009               9[3-5]
12010             )|
12011             5(?:
12012               3[1-36-9]|
12013               4[4578]|
12014               5[013-8]|
12015               6[1-9]|
12016               7[2-8]|
12017               8[14-7]|
12018               9[4-9]
12019             )|
12020             7(?:
12021               2[15]|
12022               3[5-9]|
12023               4[02-9]|
12024               6[135-8]|
12025               7[0-4689]|
12026               9[014-9]
12027             )|
12028             8(?:
12029               2[49]|
12030               3[3-8]|
12031               4[5-8]|
12032               5[2-9]|
12033               6[35-9]|
12034               7[579]|
12035               8[03-579]|
12036               9[2-8]
12037             )|
12038             9(?:
12039               [23]0|
12040               4[02-46-9]|
12041               5[024-79]|
12042               6[4-9]|
12043               7[2-47-9]|
12044               8[02-7]|
12045               9[3-7]
12046             )
12047           </leadingDigits>
12048           <leadingDigits>
12049             1(?:
12050               2[3-6]|
12051               3[3-9]|
12052               4[2-6]|
12053               5(?:
12054                 [236-8]|
12055                 [45][2-69]
12056               )|
12057               [68][2-7]|
12058               7[2-689]|
12059               9[1-578]
12060             )|
12061             2(?:
12062               2(?:
12063                 [04-689]|
12064                 3[23]
12065               )|
12066               3[3-58]|
12067               4[0-468]|
12068               5(?:
12069                 5[78]|
12070                 7[2-4]|
12071                 [0468][2-9]
12072               )|
12073               6(?:
12074                 [0135-8]|
12075                 4[2-5]
12076               )|
12077               7(?:
12078                 [0679]|
12079                 8[2-7]
12080               )|
12081               8(?:
12082                 [024578]|
12083                 3[25-9]|
12084                 9[6-9]
12085               )|
12086               9(?:
12087                 11|
12088                 3[2-4]
12089               )
12090             )|
12091             4(?:
12092               2(?:
12093                 2[2-9]|
12094                 8[237-9]
12095               )|
12096               3[689]|
12097               6[035-7]|
12098               7(?:
12099                 [059][2-8]|
12100                 [68]
12101               )|
12102               80|
12103               9[3-5]
12104             )|
12105             5(?:
12106               3[1-36-9]|
12107               4[4578]|
12108               5[013-8]|
12109               6[1-9]|
12110               7[2-8]|
12111               8[14-7]|
12112               9(?:
12113                 [89][2-8]|
12114                 [4-7]
12115               )
12116             )|
12117             7(?:
12118               2[15]|
12119               3[5-9]|
12120               4[02-9]|
12121               6[135-8]|
12122               7[0-4689]|
12123               9(?:
12124                 [017-9]|
12125                 4[6-8]|
12126                 5[2-478]|
12127                 6[2-589]
12128               )
12129             )|
12130             8(?:
12131               2(?:
12132                 4[4-8]|
12133                 9[2-8]
12134               )|
12135               3(?:
12136                 7[2-6]|
12137                 [3-6][2-9]|
12138                 8[2-5]
12139               )|
12140               4[5-8]|
12141               5[2-9]|
12142               6(?:
12143                 [37]|
12144                 5[4-7]|
12145                 6[2-9]|
12146                 8[2-8]|
12147                 9[236-9]
12148               )|
12149               7[579]|
12150               8[03-579]|
12151               9[2-8]
12152             )|
12153             9(?:
12154               [23]0|
12155               4[02-46-9]|
12156               5[024-79]|
12157               6[4-9]|
12158               7[2-47-9]|
12159               8[02-7]|
12160               9(?:
12161                 3[34]|
12162                 [4-7]
12163               )
12164             )
12165           </leadingDigits>
12166           <leadingDigits>
12167             1(?:
12168               2[3-6]|
12169               3[3-9]|
12170               4[2-6]|
12171               5(?:
12172                 [236-8]|
12173                 [45][2-69]
12174               )|
12175               [68][2-7]|
12176               7[2-689]|
12177               9[1-578]
12178             )|
12179             2(?:
12180               2(?:
12181                 [04-689]|
12182                 3[23]
12183               )|
12184               3[3-58]|
12185               4[0-468]|
12186               5(?:
12187                 5[78]|
12188                 7[2-4]|
12189                 [0468][2-9]
12190               )|
12191               6(?:
12192                 [0135-8]|
12193                 4[2-5]
12194               )|
12195               7(?:
12196                 [0679]|
12197                 8[2-7]
12198               )|
12199               8(?:
12200                 [024578]|
12201                 3[25-9]|
12202                 9[6-9]
12203               )|
12204               9(?:
12205                 11|
12206                 3[2-4]
12207               )
12208             )|
12209             4(?:
12210               2(?:
12211                 2[2-9]|
12212                 8[237-9]
12213               )|
12214               3[689]|
12215               6[035-7]|
12216               7(?:
12217                 [059][2-8]|
12218                 [68]
12219               )|
12220               80|
12221               9[3-5]
12222             )|
12223             5(?:
12224               3[1-36-9]|
12225               4[4578]|
12226               5[013-8]|
12227               6[1-9]|
12228               7[2-8]|
12229               8[14-7]|
12230               9(?:
12231                 [89][2-8]|
12232                 [4-7]
12233               )
12234             )|
12235             7(?:
12236               2[15]|
12237               3[5-9]|
12238               4[02-9]|
12239               6[135-8]|
12240               7[0-4689]|
12241               9(?:
12242                 [017-9]|
12243                 4[6-8]|
12244                 5[2-478]|
12245                 6[2-589]
12246               )
12247             )|
12248             8(?:
12249               2(?:
12250                 4[4-8]|
12251                 9(?:
12252                   [3578]|
12253                   20|
12254                   4[04-9]|
12255                   6[56]
12256                 )
12257               )|
12258               3(?:
12259                 7(?:
12260                   [2-5]|
12261                   6[0-59]
12262                 )|
12263                 [3-6][2-9]|
12264                 8[2-5]
12265               )|
12266               4[5-8]|
12267               5[2-9]|
12268               6(?:
12269                 [37]|
12270                 5(?:
12271                   [467]|
12272                   5[014-9]
12273                 )|
12274                 6(?:
12275                   [2-8]|
12276                   9[02-69]
12277                 )|
12278                 8[2-8]|
12279                 9(?:
12280                   [236-8]|
12281                   9[23]
12282                 )
12283               )|
12284               7[579]|
12285               8[03-579]|
12286               9[2-8]
12287             )|
12288             9(?:
12289               [23]0|
12290               4[02-46-9]|
12291               5[024-79]|
12292               6[4-9]|
12293               7[2-47-9]|
12294               8[02-7]|
12295               9(?:
12296                 3(?:
12297                   3[02-9]|
12298                   4[0-24689]
12299                 )|
12300                 4[2-69]|
12301                 [5-7]
12302               )
12303             )
12304           </leadingDigits>
12305           <leadingDigits>
12306             1(?:
12307               2[3-6]|
12308               3[3-9]|
12309               4[2-6]|
12310               5(?:
12311                 [236-8]|
12312                 [45][2-69]
12313               )|
12314               [68][2-7]|
12315               7[2-689]|
12316               9[1-578]
12317             )|
12318             2(?:
12319               2(?:
12320                 [04-689]|
12321                 3[23]
12322               )|
12323               3[3-58]|
12324               4[0-468]|
12325               5(?:
12326                 5[78]|
12327                 7[2-4]|
12328                 [0468][2-9]
12329               )|
12330               6(?:
12331                 [0135-8]|
12332                 4[2-5]
12333               )|
12334               7(?:
12335                 [0679]|
12336                 8[2-7]
12337               )|
12338               8(?:
12339                 [024578]|
12340                 3[25-9]|
12341                 9[6-9]
12342               )|
12343               9(?:
12344                 11|
12345                 3[2-4]
12346               )
12347             )|
12348             4(?:
12349               2(?:
12350                 2[2-9]|
12351                 8[237-9]
12352               )|
12353               3[689]|
12354               6[035-7]|
12355               7(?:
12356                 [059][2-8]|
12357                 [68]
12358               )|
12359               80|
12360               9[3-5]
12361             )|
12362             5(?:
12363               3[1-36-9]|
12364               4[4578]|
12365               5[013-8]|
12366               6[1-9]|
12367               7[2-8]|
12368               8[14-7]|
12369               9(?:
12370                 [89][2-8]|
12371                 [4-7]
12372               )
12373             )|
12374             7(?:
12375               2[15]|
12376               3[5-9]|
12377               4[02-9]|
12378               6[135-8]|
12379               7[0-4689]|
12380               9(?:
12381                 [017-9]|
12382                 4[6-8]|
12383                 5[2-478]|
12384                 6[2-589]
12385               )
12386             )|
12387             8(?:
12388               2(?:
12389                 4[4-8]|
12390                 9(?:
12391                   [3578]|
12392                   20|
12393                   4[04-9]|
12394                   6(?:
12395                     5[25]|
12396                     60
12397                   )
12398                 )
12399               )|
12400               3(?:
12401                 7(?:
12402                   [2-5]|
12403                   6[0-59]
12404                 )|
12405                 [3-6][2-9]|
12406                 8[2-5]
12407               )|
12408               4[5-8]|
12409               5[2-9]|
12410               6(?:
12411                 [37]|
12412                 5(?:
12413                   [467]|
12414                   5[014-9]
12415                 )|
12416                 6(?:
12417                   [2-8]|
12418                   9[02-69]
12419                 )|
12420                 8[2-8]|
12421                 9(?:
12422                   [236-8]|
12423                   9[23]
12424                 )
12425               )|
12426               7[579]|
12427               8[03-579]|
12428               9[2-8]
12429             )|
12430             9(?:
12431               [23]0|
12432               4[02-46-9]|
12433               5[024-79]|
12434               6[4-9]|
12435               7[2-47-9]|
12436               8[02-7]|
12437               9(?:
12438                 3(?:
12439                   3[02-9]|
12440                   4[0-24689]
12441                 )|
12442                 4[2-69]|
12443                 [5-7]
12444               )
12445             )
12446           </leadingDigits>
12447           <format>$1-$2-$3</format>
12448         </numberFormat>
12449         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12450           <leadingDigits>
12451             1|
12452             2(?:
12453               2[37]|
12454               5[5-9]|
12455               64|
12456               78|
12457               8[39]|
12458               91
12459             )|
12460             4(?:
12461               2[2689]|
12462               64|
12463               7[347]
12464             )|
12465             5(?:
12466               [2-589]|
12467               39
12468             )|
12469             60|
12470             8(?:
12471               [46-9]|
12472               3[279]|
12473               2[124589]
12474             )|
12475             9(?:
12476               [235-8]|
12477               93
12478             )
12479           </leadingDigits>
12480           <leadingDigits>
12481             1|
12482             2(?:
12483               2[37]|
12484               5(?:
12485                 [57]|
12486                 [68]0|
12487                 9[19]
12488               )|
12489               64|
12490               78|
12491               8[39]|
12492               917
12493             )|
12494             4(?:
12495               2(?:
12496                 [68]|
12497                 20|
12498                 9[178]
12499               )|
12500               64|
12501               7[347]
12502             )|
12503             5(?:
12504               [2-589]|
12505               39[67]
12506             )|
12507             60|
12508             8(?:
12509               [46-9]|
12510               3[279]|
12511               2[124589]
12512             )|
12513             9(?:
12514               [235-8]|
12515               93[34]
12516             )
12517           </leadingDigits>
12518           <leadingDigits>
12519             1|
12520             2(?:
12521               2[37]|
12522               5(?:
12523                 [57]|
12524                 [68]0|
12525                 9(?:
12526                   17|
12527                   99
12528                 )
12529               )|
12530               64|
12531               78|
12532               8[39]|
12533               917
12534             )|
12535             4(?:
12536               2(?:
12537                 [68]|
12538                 20|
12539                 9[178]
12540               )|
12541               64|
12542               7[347]
12543             )|
12544             5(?:
12545               [2-589]|
12546               39[67]
12547             )|
12548             60|
12549             8(?:
12550               [46-9]|
12551               3[279]|
12552               2[124589]
12553             )|
12554             9(?:
12555               [235-8]|
12556               93(?:
12557                 31|
12558                 4
12559               )
12560             )
12561           </leadingDigits>
12562           <format>$1-$2-$3</format>
12563         </numberFormat>
12564         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12565           <leadingDigits>
12566             2(?:
12567               9[14-79]|
12568               74|
12569               [34]7|
12570               [56]9
12571             )|
12572             82|
12573             993
12574           </leadingDigits>
12575           <format>$1-$2-$3</format>
12576         </numberFormat>
12577         <numberFormat pattern="(\d)(\d{4})(\d{4})">
12578           <leadingDigits>
12579             3|
12580             4(?:
12581               2[09]|
12582               7[01]
12583             )|
12584             6[1-9]
12585           </leadingDigits>
12586           <format>$1-$2-$3</format>
12587         </numberFormat>
12588         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12589           <leadingDigits>[2479][1-9]</leadingDigits>
12590           <format>$1-$2-$3</format>
12591         </numberFormat>
12592       </availableFormats>
12593       <generalDesc>
12594         <nationalNumberPattern>
12595           [1-9]\d{8,9}|
12596           00(?:
12597              [36]\d{7,14}|
12598              7\d{5,7}|
12599              8\d{7}
12600           )
12601         </nationalNumberPattern>
12602         <possibleNumberPattern>\d{8,17}</possibleNumberPattern>
12603       </generalDesc>
12604       <noInternationalDialling>
12605         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
12606         <nationalNumberPattern>
12607           00(?:
12608              37\d{6,13}|
12609              66\d{6,13}|
12610              777(?:
12611                [01]\d{2}|
12612                5\d{3}|
12613                8\d{4}
12614              )|
12615              882[1245]\d{4}
12616           )
12617         </nationalNumberPattern>
12618         <exampleNumber>00777012</exampleNumber>
12619       </noInternationalDialling>
12620       <fixedLine>
12621         <nationalNumberPattern>
12622           (?:
12623             1(?:
12624               1[235-8]|
12625               2[3-6]|
12626               3[3-9]|
12627               4[2-6]|
12628               [58][2-8]|
12629               6[2-7]|
12630               7[2-9]|
12631               9[1-9]
12632             )|
12633             2[2-9]\d|
12634             [36][1-9]\d|
12635             4(?:
12636               6[02-8]|
12637               [2-578]\d|
12638               9[2-59]
12639             )|
12640             5(?:
12641               6[1-9]|
12642               7[2-8]|
12643               [2-589]\d
12644             )|
12645             7(?:
12646               3[4-9]|
12647               4[02-9]|
12648               [25-9]\d
12649             )|
12650             8(?:
12651               3[2-9]|
12652               4[5-9]|
12653               5[1-9]|
12654               8[03-9]|
12655               [2679]\d
12656             )|
12657             9(?:
12658               [679][1-9]|
12659               [2-58]\d
12660             )
12661           )\d{6}
12662         </nationalNumberPattern>
12663         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12664         <exampleNumber>312345678</exampleNumber>
12665       </fixedLine>
12666       <mobile>
12667         <nationalNumberPattern>[7-9]0[1-9]\d{7}</nationalNumberPattern>
12668         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12669         <exampleNumber>7012345678</exampleNumber>
12670       </mobile>
12671       <pager>
12672         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
12673         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12674         <exampleNumber>2012345678</exampleNumber>
12675       </pager>
12676       <tollFree>
12677         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
12678              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
12679              http://eonet.jp/home/denwa/service/access.html
12680              http://ci.fusioncom.co.jp/feature/
12681              http://www.auhikari.jp/service/tel/connection/index.html -->
12682         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
12683              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
12684              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
12685              for now (including both leading 00s). -->
12686         <nationalNumberPattern>
12687           120\d{6}|
12688           800\d{7}|
12689           00(?:
12690              37\d{6,13}|
12691              66\d{6,13}|
12692              777(?:
12693                [01]\d{2}|
12694                5\d{3}|
12695                8\d{4}
12696              )|
12697              882[1245]\d{4}
12698           )
12699         </nationalNumberPattern>
12700         <exampleNumber>120123456</exampleNumber>
12701       </tollFree>
12702       <premiumRate>
12703         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
12704         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12705         <exampleNumber>990123456</exampleNumber>
12706       </premiumRate>
12707       <personalNumber>
12708         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
12709         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12710         <exampleNumber>601234567</exampleNumber>
12711       </personalNumber>
12712       <voip>
12713         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
12714         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12715         <exampleNumber>5012345678</exampleNumber>
12716       </voip>
12717       <!-- Storing "unified number service" as UAN. -->
12718       <uan>
12719         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
12720         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12721         <exampleNumber>570123456</exampleNumber>
12722       </uan>
12723     </territory>
12724
12725     <!-- Kenya -->
12726     <territory id="KE" countryCode="254" internationalPrefix="000"
12727                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
12728                mobileNumberPortableRegion="true">
12729       <references>
12730         <sourceUrl>http://www.cck.go.ke/licensing/numbering/plan.html</sourceUrl>
12731         <sourceUrl>http://en.wikipedia.org/wiki/+254</sourceUrl>
12732       </references>
12733       <availableFormats>
12734         <numberFormat pattern="(\d{2})(\d{5,7})">
12735           <leadingDigits>[24-6]</leadingDigits>
12736           <format>$1 $2</format>
12737         </numberFormat>
12738         <numberFormat pattern="(\d{3})(\d{6,7})">
12739           <leadingDigits>7</leadingDigits>
12740           <format>$1 $2</format>
12741         </numberFormat>
12742         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12743           <leadingDigits>[89]</leadingDigits>
12744           <format>$1 $2 $3</format>
12745         </numberFormat>
12746       </availableFormats>
12747       <generalDesc>
12748         <nationalNumberPattern>
12749           20\d{6,7}|
12750           [4-9]\d{6,9}
12751         </nationalNumberPattern>
12752         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
12753       </generalDesc>
12754       <fixedLine>
12755         <!-- The prefixes 046, 050, 058, and 066 may appear online in less than 9 digits but
12756              calling them has confirmed these are outdated. However a 7-digit 068 number was
12757              dialed successfully so we consider these valid despite the plan. -->
12758         <nationalNumberPattern>
12759           20\d{6,7}|
12760           4(?:
12761             [0136]\d{7}|
12762             [245]\d{5,7}
12763           )|
12764           5(?:
12765             [08]\d{7}|
12766             [1-79]\d{5,7}
12767           )|
12768           6(?:
12769             [01457-9]\d{5,7}|
12770             [26]\d{7}
12771           )
12772         </nationalNumberPattern>
12773         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
12774         <exampleNumber>202012345</exampleNumber>
12775       </fixedLine>
12776       <mobile>
12777         <nationalNumberPattern>
12778           7(?:
12779             [0-36]\d|
12780             5[0-6]|
12781             7[0-5]|
12782             8[0-25-9]
12783           )\d{6}
12784         </nationalNumberPattern>
12785         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12786         <exampleNumber>712123456</exampleNumber>
12787       </mobile>
12788       <tollFree>
12789         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
12790         <!-- The plan suggests 0844 and 0845 may belong here, but these are short numbers rather
12791              than prefixes:
12792              http://www.telkomkenya.8k.com/Products/v/2.html
12793              http://www.kenya-advisor.com/phone-calls-kenya.html
12794              http://www.telkom.co.ke/index.php?option=com_content&view=article&id=64&Itemid=98 -->
12795         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
12796         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12797         <exampleNumber>800223456</exampleNumber>
12798       </tollFree>
12799       <premiumRate>
12800         <nationalNumberPattern>900[02-9]\d{5}</nationalNumberPattern>
12801         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12802         <exampleNumber>900223456</exampleNumber>
12803       </premiumRate>
12804     </territory>
12805
12806     <!-- Kyrgyzstan -->
12807     <territory id="KG" countryCode="996" internationalPrefix="00"
12808                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
12809       <references>
12810         <sourceUrl>http://www.itu.int/oth/T0202000074/en</sourceUrl>
12811       </references>
12812       <availableFormats>
12813         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
12814           <leadingDigits>
12815             [25-7]|
12816             31[25]
12817           </leadingDigits>
12818           <format>$1 $2 $3</format>
12819         </numberFormat>
12820         <numberFormat pattern="(\d{4})(\d{5})">
12821           <leadingDigits>
12822             3(?:
12823               1[36]|
12824               [2-9]
12825             )
12826           </leadingDigits>
12827           <format>$1 $2</format>
12828         </numberFormat>
12829         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
12830           <leadingDigits>8</leadingDigits>
12831           <format>$1 $2 $3 $4</format>
12832         </numberFormat>
12833       </availableFormats>
12834       <generalDesc>
12835         <nationalNumberPattern>[235-8]\d{8,9}</nationalNumberPattern>
12836         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12837       </generalDesc>
12838       <fixedLine>
12839         <!-- Extra area codes found on Web Search: 3147. -->
12840         <nationalNumberPattern>
12841           (?:
12842             3(?:
12843               1(?:
12844                 [256]\d|
12845                 3[1-9]|
12846                 47
12847               )|
12848               2(?:
12849                 22|
12850                 3[0-479]|
12851                 6[0-7]
12852               )|
12853               4(?:
12854                 22|
12855                 5[6-9]|
12856                 6\d
12857               )|
12858               5(?:
12859                 22|
12860                 3[4-7]|
12861                 59|
12862                 6\d
12863               )|
12864               6(?:
12865                 22|
12866                 5[35-7]|
12867                 6\d
12868               )|
12869               7(?:
12870                 22|
12871                 3[468]|
12872                 4[1-9]|
12873                 59|
12874                 [67]\d
12875               )|
12876               9(?:
12877                 22|
12878                 4[1-8]|
12879                 6\d
12880               )
12881             )|
12882             6(?:
12883               09|
12884               12|
12885               2[2-4]
12886             )\d
12887           )\d{5}
12888         </nationalNumberPattern>
12889         <exampleNumber>312123456</exampleNumber>
12890       </fixedLine>
12891       <mobile>
12892         <nationalNumberPattern>
12893           (?:
12894             20[0-35]|
12895             5[124-7]\d|
12896             7[07]\d
12897           )\d{6}
12898         </nationalNumberPattern>
12899         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12900         <exampleNumber>700123456</exampleNumber>
12901       </mobile>
12902       <tollFree>
12903         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
12904              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
12905         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
12906         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12907         <exampleNumber>800123456</exampleNumber>
12908       </tollFree>
12909       <!-- No premiumRate information can be found. -->
12910       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
12911     </territory>
12912
12913     <!-- Cambodia -->
12914     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
12915                nationalPrefix="0">
12916       <references>
12917         <sourceUrl>http://www.itu.int/oth/T0202000023/en</sourceUrl>
12918         <sourceUrl>http://en.wikipedia.org/wiki/+855</sourceUrl>
12919       </references>
12920       <availableFormats>
12921         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
12922           <leadingDigits>
12923             1\d[1-9]|
12924             [2-9]
12925           </leadingDigits>
12926           <format>$1 $2 $3</format>
12927         </numberFormat>
12928         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
12929           <leadingDigits>1[89]0</leadingDigits>
12930           <format>$1 $2 $3</format>
12931         </numberFormat>
12932       </availableFormats>
12933       <generalDesc>
12934         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
12935         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
12936       </generalDesc>
12937       <fixedLine>
12938         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
12939              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
12940              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
12941              range beginning with 6 seems to include some numbers that are one digit longer as well.
12942              Allowing 238\d{6} and 234[234]\d{4} based on information from Cambodia Yellow Pages.
12943              Note that numbers beginning with 234 are split across two patterns. -->
12944         <nationalNumberPattern>
12945           (?:
12946             2[3-6]|
12947             3[2-6]|
12948             4[2-4]|
12949             [5-7][2-5]
12950           )(?:
12951             [237-9]|
12952             4[56]|
12953             5\d|
12954             6\d?
12955           )\d{5}|
12956           23(?:
12957             4[234]|
12958             8\d{2}
12959           )\d{4}
12960         </nationalNumberPattern>
12961         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
12962         <exampleNumber>23756789</exampleNumber>
12963       </fixedLine>
12964       <mobile>
12965         <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
12966              Beeline uses 060.
12967              Mobitel uses 01[1247].
12968              Cellcard uses 0857 and 061.
12969              Extra prefixes found online: 088, 097.
12970              Allowing 9-digit 12, 31, 38 and 76 numbers based on information from Cambodia Yellow
12971              Pages and online search. -->
12972         <nationalNumberPattern>
12973           (?:
12974             1(?:
12975               [013-9]|
12976               2\d?
12977             )|
12978             3[18]\d|
12979             6[016-9]|
12980             7(?:
12981               [07-9]|
12982               6\d
12983             )|
12984             8(?:
12985               [013-79]|
12986               8\d
12987             )|
12988             9(?:
12989               6\d|
12990               7\d?|
12991               [0-589]
12992             )
12993           )\d{6}
12994         </nationalNumberPattern>
12995         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
12996         <exampleNumber>91234567</exampleNumber>
12997       </mobile>
12998       <tollFree>
12999         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
13000         <nationalNumberPattern>
13001           1800(?:
13002             1\d|
13003             2[019]
13004           )\d{4}
13005         </nationalNumberPattern>
13006         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13007         <exampleNumber>1800123456</exampleNumber>
13008       </tollFree>
13009       <premiumRate>
13010         <nationalNumberPattern>
13011           1900(?:
13012             1\d|
13013             2[09]
13014           )\d{4}
13015         </nationalNumberPattern>
13016         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13017         <exampleNumber>1900123456</exampleNumber>
13018       </premiumRate>
13019     </territory>
13020
13021     <!-- Kiribati -->
13022     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
13023          leading 0 - no numbers online have been found formatted this way, but the ITU document
13024          lists it as a national dialling prefix. -->
13025     <territory id="KI" countryCode="686" internationalPrefix="00"
13026                nationalPrefixForParsing="0">
13027       <references>
13028         <sourceUrl>http://www.itu.int/oth/T0202000071/en</sourceUrl>
13029       </references>
13030       <!-- Numbers should be formatted as a block." -->
13031       <generalDesc>
13032         <nationalNumberPattern>
13033           [2458]\d{4}|
13034           3\d{4,7}|
13035           7\d{7}
13036         </nationalNumberPattern>
13037         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
13038       </generalDesc>
13039       <fixedLine>
13040         <nationalNumberPattern>
13041           (?:
13042             [24]\d|
13043             3[1-9]|
13044             50|
13045             8[0-5]
13046           )\d{3}
13047         </nationalNumberPattern>
13048         <possibleNumberPattern>\d{5}</possibleNumberPattern>
13049         <exampleNumber>31234</exampleNumber>
13050       </fixedLine>
13051       <mobile>
13052         <!-- North Tarawa is listed as 720XXXXX-729XXXXX but considering that this deviates from the
13053              pattern followed by every other place, we are assuming 731XXXXX-732XXXXX for now. -->
13054         <nationalNumberPattern>
13055           7(?:
13056             [24]\d|
13057             3[1-9]|
13058             8[0-5]
13059           )\d{5}
13060         </nationalNumberPattern>
13061         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13062         <exampleNumber>72012345</exampleNumber>
13063       </mobile>
13064       <premiumRate>
13065         <!-- ITU refers to these as "Telemedia and audiotext". -->
13066         <nationalNumberPattern>3001\d{4}</nationalNumberPattern>
13067         <exampleNumber>30010000</exampleNumber>
13068       </premiumRate>
13069     </territory>
13070
13071     <!-- Comoros -->
13072     <territory id="KM" countryCode="269" internationalPrefix="00">
13073       <references>
13074         <sourceUrl>http://www.itu.int/oth/T020200002D/en</sourceUrl>
13075       </references>
13076       <availableFormats>
13077         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
13078           <format>$1 $2 $3</format>
13079         </numberFormat>
13080       </availableFormats>
13081       <generalDesc>
13082         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
13083         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13084       </generalDesc>
13085       <fixedLine>
13086         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
13087              http://www.comorestelecom.km/presentationcdma.php -->
13088         <nationalNumberPattern>
13089           7(?:
13090             6[0-37-9]|
13091             7[0-57-9]
13092           )\d{4}
13093         </nationalNumberPattern>
13094         <exampleNumber>7712345</exampleNumber>
13095       </fixedLine>
13096       <mobile>
13097         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
13098         <exampleNumber>3212345</exampleNumber>
13099       </mobile>
13100       <premiumRate>
13101         <!-- These are referred to as value-added services in the plan and no further information
13102              can be found. -->
13103         <nationalNumberPattern>
13104           (?:
13105             39[01]|
13106             9[01]0
13107           )\d{4}
13108         </nationalNumberPattern>
13109         <exampleNumber>9001234</exampleNumber>
13110       </premiumRate>
13111     </territory>
13112
13113     <!-- Saint Kitts and Nevis -->
13114     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
13115                internationalPrefix="011">
13116       <references>
13117         <sourceUrl>http://www.itu.int/oth/T02020000B0/en</sourceUrl>
13118       </references>
13119       <generalDesc>
13120         <!-- NANPA country - uses US formatting rules -->
13121         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
13122         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13123       </generalDesc>
13124       <fixedLine>
13125         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
13126              of it can be found. -->
13127         <nationalNumberPattern>
13128           869(?:
13129             2(?:
13130               29|
13131               36
13132             )|
13133             302|
13134             4(?:
13135               6[015-9]|
13136               70
13137             )
13138           )\d{4}
13139         </nationalNumberPattern>
13140         <exampleNumber>8692361234</exampleNumber>
13141       </fixedLine>
13142       <mobile>
13143         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
13144         <nationalNumberPattern>
13145           869(?:
13146             5(?:
13147               5[6-8]|
13148               6[5-7]
13149             )|
13150             66\d|
13151             76[02-6]
13152           )\d{4}
13153         </nationalNumberPattern>
13154         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13155         <!-- Example number from the ITU document. -->
13156         <exampleNumber>8697652917</exampleNumber>
13157       </mobile>
13158       <tollFree>
13159         <nationalNumberPattern>
13160           8(?:
13161             00|
13162             44|
13163             55|
13164             66|
13165             77|
13166             88
13167           )[2-9]\d{6}
13168         </nationalNumberPattern>
13169         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13170         <exampleNumber>8002123456</exampleNumber>
13171       </tollFree>
13172       <premiumRate>
13173         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
13174         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13175         <exampleNumber>9002123456</exampleNumber>
13176       </premiumRate>
13177       <personalNumber>
13178         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13179         <nationalNumberPattern>
13180           5(?:
13181             00|
13182             33|
13183             44|
13184             66|
13185             77
13186           )[2-9]\d{6}
13187         </nationalNumberPattern>
13188         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13189         <exampleNumber>5002345678</exampleNumber>
13190       </personalNumber>
13191     </territory>
13192
13193     <!-- Korea, Dem. People's Rep. of -->
13194     <territory id="KP" countryCode="850" internationalPrefix="00|99"
13195                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13196       <references>
13197         <sourceUrl>http://en.wikipedia.org/wiki/%2B850</sourceUrl>
13198       </references>
13199       <availableFormats>
13200         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13201           <leadingDigits>1</leadingDigits>
13202           <format>$1 $2 $3</format>
13203         </numberFormat>
13204         <numberFormat pattern="(\d)(\d{3})(\d{4})">
13205           <leadingDigits>2</leadingDigits>
13206           <format>$1 $2 $3</format>
13207         </numberFormat>
13208         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
13209           <leadingDigits>8</leadingDigits>
13210           <format>$1 $2 $3</format>
13211         </numberFormat>
13212       </availableFormats>
13213       <generalDesc>
13214         <nationalNumberPattern>
13215           1\d{9}|
13216           [28]\d{7}
13217         </nationalNumberPattern>
13218         <possibleNumberPattern>
13219           \d{6,8}|
13220           \d{10}
13221         </possibleNumberPattern>
13222       </generalDesc>
13223       <noInternationalDialling>
13224         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
13225         <nationalNumberPattern>
13226           2(?:
13227             [0-24-9]\d{2}|
13228             3(?:
13229               [0-79]\d|
13230               8[02-9]
13231             )
13232           )\d{4}
13233         </nationalNumberPattern>
13234         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13235         <exampleNumber>23821234</exampleNumber>
13236       </noInternationalDialling>
13237       <fixedLine>
13238         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
13239              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
13240              from overseas. Also, there is conflicting information about the length of fixed-line
13241              numbers, so here we are following Wikipedia. -->
13242         <nationalNumberPattern>
13243           2\d{7}|
13244           85\d{6}
13245         </nationalNumberPattern>
13246         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
13247         <exampleNumber>21234567</exampleNumber>
13248       </fixedLine>
13249       <mobile>
13250         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
13251         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13252         <exampleNumber>1921234567</exampleNumber>
13253       </mobile>
13254     </territory>
13255
13256     <!-- Korea (Rep. of) -->
13257     <!-- Exceptions :
13258         internationalPrefix
13259             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
13260         nationalPrefix
13261             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
13262     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
13263                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
13264                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG"
13265                mobileNumberPortableRegion="true">
13266       <references>
13267         <sourceUrl>http://www.itu.int/oth/T0202000072/en</sourceUrl>
13268         <sourceUrl>http://en.wikipedia.org/wiki/%2B82</sourceUrl>
13269         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2349</sourceUrl>
13270         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2240</sourceUrl>
13271         <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>
13272       </references>
13273       <availableFormats>
13274         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
13275           <leadingDigits>
13276             1(?:
13277               0|
13278               1[19]|
13279               [69]9|
13280               5[458]
13281             )|
13282             [57]0
13283           </leadingDigits>
13284           <leadingDigits>
13285             1(?:
13286               0|
13287               1[19]|
13288               [69]9|
13289               5(?:
13290                 44|
13291                 59|
13292                 8
13293               )
13294             )|
13295             [57]0
13296           </leadingDigits>
13297           <format>$1-$2-$3</format>
13298         </numberFormat>
13299         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
13300           <leadingDigits>
13301             1(?:
13302               [169][2-8]|
13303               [78]|
13304               5[1-4]
13305             )|
13306             [68]0|
13307             [3-6][1-9][1-9]
13308           </leadingDigits>
13309           <leadingDigits>
13310             1(?:
13311               [169][2-8]|
13312               [78]|
13313               5(?:
13314                 [1-3]|
13315                 4[56]
13316               )
13317             )|
13318             [68]0|
13319             [3-6][1-9][1-9]
13320           </leadingDigits>
13321           <format>$1-$2-$3</format>
13322         </numberFormat>
13323         <numberFormat pattern="(\d{3})(\d)(\d{4})">
13324           <leadingDigits>131</leadingDigits>
13325           <leadingDigits>1312</leadingDigits>
13326           <format>$1-$2-$3</format>
13327         </numberFormat>
13328         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
13329           <leadingDigits>131</leadingDigits>
13330           <leadingDigits>131[13-9]</leadingDigits>
13331           <format>$1-$2-$3</format>
13332         </numberFormat>
13333         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13334           <leadingDigits>13[2-9]</leadingDigits>
13335           <format>$1-$2-$3</format>
13336         </numberFormat>
13337         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
13338              limit of what digits may follow the 030, but we ignore that here. These numbers are
13339              actually not supported for validation purposes by the library at the moment as no
13340              online examples can be found, but we leave theme here so formatting continues to work
13341              if they are entered. -->
13342         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
13343           <leadingDigits>30</leadingDigits>
13344           <format>$1-$2-$3-$4</format>
13345         </numberFormat>
13346         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
13347           <leadingDigits>2[1-9]</leadingDigits>
13348           <format>$1-$2-$3</format>
13349         </numberFormat>
13350         <numberFormat pattern="(\d)(\d{3,4})">
13351           <leadingDigits>21[0-46-9]</leadingDigits>
13352           <format>$1-$2</format>
13353         </numberFormat>
13354         <numberFormat pattern="(\d{2})(\d{3,4})">
13355           <leadingDigits>[3-6][1-9]1</leadingDigits>
13356           <leadingDigits>
13357             [3-6][1-9]1(?:
13358               [0-46-9]
13359             )
13360           </leadingDigits>
13361           <format>$1-$2</format>
13362         </numberFormat>
13363         <!-- Company numbers. -->
13364         <numberFormat pattern="(\d{4})(\d{4})"
13365           nationalPrefixFormattingRule="$FG">
13366           <leadingDigits>
13367             1(?:
13368               5[46-9]|
13369               6[04678]|
13370               8[0579]
13371             )
13372           </leadingDigits>
13373           <leadingDigits>
13374             1(?:
13375               5(?:
13376                 44|
13377                 66|
13378                 77|
13379                 88|
13380                 99
13381               )|
13382               6(?:
13383                 00|
13384                 44|
13385                 6[16]|
13386                 70|
13387                 88
13388               )|
13389               8(?:
13390                 00|
13391                 55|
13392                 77|
13393                 99
13394               )
13395             )
13396           </leadingDigits>
13397           <format>$1-$2</format>
13398         </numberFormat>
13399       </availableFormats>
13400       <generalDesc>
13401         <nationalNumberPattern>
13402           [1-7]\d{3,9}|
13403           8\d{8}
13404         </nationalNumberPattern>
13405         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13406       </generalDesc>
13407       <fixedLine>
13408         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
13409              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
13410              starting with 1 based on evidence of real numbers found online. -->
13411         <nationalNumberPattern>
13412           (?:
13413             2|
13414             3[1-3]|
13415             [46][1-4]|
13416             5[1-5]
13417           )(?:
13418             1\d{2,3}|
13419             [1-9]\d{6,7}
13420           )
13421         </nationalNumberPattern>
13422         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13423         <exampleNumber>22123456</exampleNumber>
13424       </fixedLine>
13425       <mobile>
13426         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
13427         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13428         <exampleNumber>1023456789</exampleNumber>
13429       </mobile>
13430       <pager>
13431         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
13432         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13433         <exampleNumber>1523456789</exampleNumber>
13434       </pager>
13435       <tollFree>
13436         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
13437         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13438         <exampleNumber>801234567</exampleNumber>
13439       </tollFree>
13440       <!-- The information below is provided by a Korean person. -->
13441       <premiumRate>
13442         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
13443         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13444         <exampleNumber>602345678</exampleNumber>
13445       </premiumRate>
13446       <personalNumber>
13447         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
13448         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13449         <exampleNumber>5012345678</exampleNumber>
13450       </personalNumber>
13451       <voip>
13452         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
13453         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13454         <exampleNumber>7012345678</exampleNumber>
13455       </voip>
13456       <uan>
13457         <!-- Prefix 18 added from numbers found online. -->
13458         <nationalNumberPattern>
13459           1(?:
13460             5(?:
13461               44|
13462               66|
13463               77|
13464               88|
13465               99
13466             )|
13467             6(?:
13468               00|
13469               44|
13470               6[16]|
13471               70|
13472               88
13473             )|
13474             8(?:
13475               00|
13476               55|
13477               77|
13478               99
13479             )
13480           )\d{4}
13481         </nationalNumberPattern>
13482         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13483         <exampleNumber>15441234</exampleNumber>
13484       </uan>
13485     </territory>
13486
13487     <!-- Kuwait -->
13488     <territory id="KW" countryCode="965" internationalPrefix="00" mobileNumberPortableRegion="true">
13489       <references>
13490         <sourceUrl>http://www.itu.int/oth/T0202000073/en</sourceUrl>
13491       </references>
13492       <availableFormats>
13493         <!-- Format is from ITU. -->
13494         <numberFormat pattern="(\d{4})(\d{3,4})">
13495           <leadingDigits>[1269]</leadingDigits>
13496           <format>$1 $2</format>
13497         </numberFormat>
13498         <numberFormat pattern="(5[015]\d)(\d{5})">
13499           <leadingDigits>5</leadingDigits>
13500           <format>$1 $2</format>
13501         </numberFormat>
13502       </availableFormats>
13503       <generalDesc>
13504         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
13505         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13506       </generalDesc>
13507       <fixedLine>
13508         <nationalNumberPattern>
13509           (?:
13510             18\d|
13511             2(?:
13512               [23]\d{2}|
13513               4(?:
13514                 [1-35-9]\d|
13515                 44
13516               )|
13517               5(?:
13518                 0[034]|
13519                 [2-46]\d|
13520                 5[1-3]|
13521                 7[1-7]
13522               )
13523             )
13524           )\d{4}
13525         </nationalNumberPattern>
13526         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13527         <exampleNumber>22345678</exampleNumber>
13528       </fixedLine>
13529       <mobile>
13530         <nationalNumberPattern>
13531           (?:
13532             5(?:
13533               [05]\d|
13534               1[0-6]
13535             )|
13536             6(?:
13537               0[034679]|
13538               5[015-9]|
13539               6\d|
13540               7[067]|
13541               9[0369]
13542             )|
13543             9(?:
13544               0[09]|
13545               4[049]|
13546               55|
13547               6[069]|
13548               [79]\d|
13549               8[089]
13550             )
13551           )\d{5}
13552         </nationalNumberPattern>
13553         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13554         <exampleNumber>50012345</exampleNumber>
13555       </mobile>
13556       <!-- No tollFree or premiumRate information can be found. -->
13557     </territory>
13558
13559     <!-- Cayman Islands -->
13560     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
13561                internationalPrefix="011">
13562       <references>
13563         <sourceUrl>http://www.itu.int/oth/T0202000027/en</sourceUrl>
13564       </references>
13565       <generalDesc>
13566         <!-- NANPA country - uses US formatting rules -->
13567         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
13568         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13569       </generalDesc>
13570       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
13571            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
13572       <fixedLine>
13573         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
13574              as per numbers found online and their website http://www.logic.ky. -->
13575         <nationalNumberPattern>
13576           345(?:
13577             2(?:
13578               22|
13579               44
13580             )|
13581             444|
13582             6(?:
13583               23|
13584               38|
13585               40
13586             )|
13587             7(?:
13588               4[35-79]|
13589               6[6-9]|
13590               77
13591             )|
13592             8(?:
13593               00|
13594               1[45]|
13595               25|
13596               [48]8
13597             )|
13598             9(?:
13599               14|
13600               4[035-9]
13601             )
13602           )\d{4}
13603         </nationalNumberPattern>
13604         <exampleNumber>3452221234</exampleNumber>
13605       </fixedLine>
13606       <mobile>
13607         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
13608              Most central office codes that were surrendered have not been included, with the
13609              exception of 546 where numbers have been found. -->
13610         <nationalNumberPattern>
13611           345(?:
13612             32[1-9]|
13613             5(?:
13614               1[67]|
13615               2[5-7]|
13616               4[6-8]|
13617               76
13618             )|
13619             9(?:
13620               1[67]|
13621               2[3-9]|
13622               3[689]
13623             )
13624           )\d{4}
13625         </nationalNumberPattern>
13626         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13627         <exampleNumber>3453231234</exampleNumber>
13628       </mobile>
13629       <pager>
13630         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
13631         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13632         <exampleNumber>3458491234</exampleNumber>
13633       </pager>
13634       <tollFree>
13635         <nationalNumberPattern>
13636           8(?:
13637             00|
13638             44|
13639             55|
13640             66|
13641             77|
13642             88
13643           )[2-9]\d{6}
13644         </nationalNumberPattern>
13645         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13646         <exampleNumber>8002345678</exampleNumber>
13647       </tollFree>
13648       <premiumRate>
13649         <nationalNumberPattern>
13650           900[2-9]\d{6}|
13651           345976\d{4}
13652         </nationalNumberPattern>
13653         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13654         <exampleNumber>9002345678</exampleNumber>
13655       </premiumRate>
13656       <personalNumber>
13657         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13658         <nationalNumberPattern>
13659           5(?:
13660             00|
13661             33|
13662             44|
13663             66|
13664             77
13665           )[2-9]\d{6}
13666         </nationalNumberPattern>
13667         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13668         <exampleNumber>5002345678</exampleNumber>
13669       </personalNumber>
13670     </territory>
13671
13672     <!-- Kazakhstan -->
13673     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
13674                internationalPrefix="810" nationalPrefix="8">
13675       <references>
13676         <sourceUrl>http://www.itu.int/oth/T020200006F/en</sourceUrl>
13677       </references>
13678        <!-- Formatting rules obtained from Russia. -->
13679       <generalDesc>
13680         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
13681              determining the country is faster. -->
13682         <nationalNumberPattern>
13683           (?:
13684             33\d|
13685             7\d{2}|
13686             80[09]
13687           )\d{7}
13688         </nationalNumberPattern>
13689         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13690       </generalDesc>
13691       <noInternationalDialling>
13692         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13693         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13694         <exampleNumber>7511234567</exampleNumber>
13695       </noInternationalDialling>
13696       <fixedLine>
13697         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
13698              22), which is within Kazakhstan but in fact rented and administered by Russia at the
13699              moment. -->
13700         <nationalNumberPattern>
13701           33622\d{5}|
13702           7(?:
13703             1(?:
13704               0(?:
13705                 [23]\d|
13706                 4[023]|
13707                 59|
13708                 63
13709               )|
13710               1(?:
13711                 [23]\d|
13712                 4[0-79]|
13713                 59
13714               )|
13715               2(?:
13716                 [23]\d|
13717                 59
13718               )|
13719               3(?:
13720                 2\d|
13721                 3[1-79]|
13722                 4[0-35-9]|
13723                 59
13724               )|
13725               4(?:
13726                 2\d|
13727                 3[013-79]|
13728                 4[0-8]|
13729                 5[1-79]
13730               )|
13731               5(?:
13732                 2\d|
13733                 3[1-8]|
13734                 4[1-7]|
13735                 59
13736               )|
13737               6(?:
13738                 [234]\d|
13739                 5[19]|
13740                 61
13741               )|
13742               72\d|
13743               8(?:
13744                 [27]\d|
13745                 3[1-46-9]|
13746                 4[0-5]
13747               )
13748             )|
13749             2(?:
13750               1(?:
13751                 [23]\d|
13752                 4[46-9]|
13753                 5[3469]
13754               )|
13755               2(?:
13756                 2\d|
13757                 3[0679]|
13758                 46|
13759                 5[12679]
13760               )|
13761               3(?:
13762                 [234]\d|
13763                 5[139]
13764               )|
13765               4(?:
13766                 2\d|
13767                 3[1235-9]|
13768                 59
13769               )|
13770               5(?:
13771                 [23]\d|
13772                 4[01246-8]|
13773                 59|
13774                 61
13775               )|
13776               6(?:
13777                 2\d|
13778                 3[1-9]|
13779                 4[0-4]|
13780                 59
13781               )|
13782               7(?:
13783                 [237]\d|
13784                 40|
13785                 5[279]
13786               )|
13787               8(?:
13788                 [23]\d|
13789                 4[0-3]|
13790                 59
13791               )|
13792               9(?:
13793                 2\d|
13794                 3[124578]|
13795                 59
13796               )
13797             )
13798           )\d{5}
13799         </nationalNumberPattern>
13800         <exampleNumber>7123456789</exampleNumber>
13801       </fixedLine>
13802       <mobile>
13803         <!-- Added 708 for Altel, 776 for Beeline, 747 for Tele2. -->
13804         <nationalNumberPattern>
13805           7(?:
13806             0[012578]|
13807             47|
13808             6[02-4]|
13809             7[15-8]|
13810             85
13811           )\d{7}
13812         </nationalNumberPattern>
13813         <exampleNumber>7710009998</exampleNumber>
13814       </mobile>
13815       <tollFree>
13816         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
13817         <exampleNumber>8001234567</exampleNumber>
13818       </tollFree>
13819       <premiumRate>
13820         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
13821         <exampleNumber>8091234567</exampleNumber>
13822       </premiumRate>
13823       <voip>
13824         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13825         <exampleNumber>7511234567</exampleNumber>
13826       </voip>
13827     </territory>
13828
13829     <!-- Lao People's Dem. Rep. -->
13830     <territory id="LA" countryCode="856" internationalPrefix="00"
13831                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13832       <references>
13833         <!-- Seems incomplete -->
13834         <sourceUrl>http://www.itu.int/oth/T0202000075/en</sourceUrl>
13835         <sourceUrl>http://en.wikipedia.org/wiki/+856</sourceUrl>
13836       </references>
13837       <availableFormats>
13838         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
13839           <leadingDigits>20</leadingDigits>
13840           <format>$1 $2 $3 $4</format>
13841         </numberFormat>
13842         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
13843           <leadingDigits>
13844             2[13]|
13845             3[14]|
13846             [4-8]
13847           </leadingDigits>
13848           <format>$1 $2 $3</format>
13849         </numberFormat>
13850         <numberFormat pattern="(30)(\d{2})(\d{2})(\d{3})">
13851           <leadingDigits>30</leadingDigits>
13852           <format>$1 $2 $3 $4</format>
13853         </numberFormat>
13854       </availableFormats>
13855       <generalDesc>
13856         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
13857         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13858       </generalDesc>
13859       <fixedLine>
13860         <!-- The Lonely Planet says that newer WIN phones (fixed phones without a physical landline)
13861              start with 030 (and are longer). There are plenty of examples online. -->
13862         <nationalNumberPattern>
13863           (?:
13864             2[13]|
13865             3(?:
13866               0\d|
13867               [14]
13868             )|
13869             [5-7][14]|
13870             41|
13871             8[1468]
13872           )\d{6}
13873         </nationalNumberPattern>
13874         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13875         <exampleNumber>21212862</exampleNumber>
13876       </fixedLine>
13877       <mobile>
13878         <!-- Adding 202[89], 205[89], 207[68] and 209[15-7] from numbers found online. -->
13879         <nationalNumberPattern>
13880           20(?:
13881             2[2389]|
13882             5[4-689]|
13883             7[6-8]|
13884             9[15-9]
13885           )\d{6}
13886         </nationalNumberPattern>
13887         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13888         <exampleNumber>2023123456</exampleNumber>
13889       </mobile>
13890       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
13891     </territory>
13892
13893     <!-- Lebanon -->
13894     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
13895       <references>
13896         <sourceUrl>http://www.itu.int/oth/T0202000077/en</sourceUrl>
13897         <sourceUrl>http://en.wikipedia.org/wiki/%2B961</sourceUrl>
13898       </references>
13899       <availableFormats>
13900         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
13901           <leadingDigits>
13902             [13-6]|
13903             7(?:
13904               [2-579]|
13905               62|
13906               8[0-7]
13907             )|
13908             [89][2-9]
13909             </leadingDigits>
13910           <format>$1 $2 $3</format>
13911         </numberFormat>
13912         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
13913           <leadingDigits>
13914             [89][01]|
13915             7(?:
13916               [019]|
13917               6[013-9]|
13918               8[89]
13919             )
13920           </leadingDigits>
13921           <format>$1 $2 $3</format>
13922         </numberFormat>
13923       </availableFormats>
13924       <generalDesc>
13925         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
13926         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13927       </generalDesc>
13928       <fixedLine>
13929         <!-- The ITU document from October 2012 seems to have accidentally dropped the 79 prefix for
13930              fixed-line numbers, which had been in the version from July 2012. We consider these
13931              valid since we successfully dialed such a number in July 2014. -->
13932         <nationalNumberPattern>
13933           (?:
13934             [14-6]\d{2}|
13935             7(?:
13936               [2-579]\d|
13937               62|
13938               8[0-7]
13939             )|
13940             [89][2-9]\d
13941           )\d{4}
13942         </nationalNumberPattern>
13943         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13944         <exampleNumber>1123456</exampleNumber>
13945       </fixedLine>
13946       <mobile>
13947         <!-- We only validate the first three digits here, since the ranges are growing rapidly.
13948              The 79[02-9] prefixes were added from bug reports and numbers found online. -->
13949         <nationalNumberPattern>
13950           (?:
13951             3\d|
13952             7(?:
13953               [019]\d|
13954               6[013-9]|
13955               8[89]
13956             )
13957           )\d{5}
13958         </nationalNumberPattern>
13959         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13960         <exampleNumber>71123456</exampleNumber>
13961       </mobile>
13962       <premiumRate>
13963         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
13964         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13965         <exampleNumber>90123456</exampleNumber>
13966       </premiumRate>
13967       <sharedCost>
13968         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
13969         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13970         <exampleNumber>80123456</exampleNumber>
13971       </sharedCost>
13972     </territory>
13973
13974     <!-- Saint Lucia -->
13975     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
13976                internationalPrefix="011">
13977       <references>
13978         <sourceUrl>http://www.itu.int/oth/T02020000B1/en</sourceUrl>
13979       </references>
13980       <generalDesc>
13981         <!-- NANPA country - uses US formatting rules -->
13982         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
13983         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13984       </generalDesc>
13985       <fixedLine>
13986         <!-- Adding 430 since numbers have been found with these prefixes online. -->
13987         <nationalNumberPattern>
13988           758(?:
13989             4(?:
13990               30|
13991               5[0-9]|
13992               6[2-9]|
13993               8[0-2]
13994             )|
13995             57[0-2]|
13996             638
13997           )\d{4}
13998         </nationalNumberPattern>
13999         <exampleNumber>7584305678</exampleNumber>
14000       </fixedLine>
14001       <mobile>
14002         <nationalNumberPattern>
14003           758(?:
14004             28[4-7]|
14005             384|
14006             4(?:
14007               6[01]|
14008               8[4-9]
14009             )|
14010             5(?:
14011               1[89]|
14012               20|
14013               84
14014             )|
14015             7(?:
14016               1[2-9]|
14017               2[0-8]
14018             )
14019           )\d{4}
14020         </nationalNumberPattern>
14021         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14022         <exampleNumber>7582845678</exampleNumber>
14023       </mobile>
14024       <tollFree>
14025         <nationalNumberPattern>
14026           8(?:
14027             00|
14028             44|
14029             55|
14030             66|
14031             77|
14032             88
14033           )[2-9]\d{6}
14034         </nationalNumberPattern>
14035         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14036         <exampleNumber>8002123456</exampleNumber>
14037       </tollFree>
14038       <premiumRate>
14039         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
14040         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14041         <exampleNumber>9002123456</exampleNumber>
14042       </premiumRate>
14043       <personalNumber>
14044         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
14045         <nationalNumberPattern>
14046           5(?:
14047             00|
14048             33|
14049             44|
14050             66|
14051             77
14052           )[2-9]\d{6}
14053         </nationalNumberPattern>
14054         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14055         <exampleNumber>5002345678</exampleNumber>
14056       </personalNumber>
14057     </territory>
14058
14059     <!-- Liechtenstein -->
14060     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
14061     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
14062       <references>
14063         <sourceUrl>http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm</sourceUrl>
14064       </references>
14065       <availableFormats>
14066         <!-- Some different patterns for tollfree and shared cost numbers may be found by searching
14067              for "Mehrwertnummer" at http://www.telecom.li. -->
14068         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
14069           <leadingDigits>
14070             [23]|
14071             7[3-57-9]|
14072             87
14073           </leadingDigits>
14074           <format>$1 $2 $3</format>
14075         </numberFormat>
14076         <numberFormat pattern="(6\d)(\d{3})(\d{3})">
14077           <leadingDigits>6</leadingDigits>
14078           <format>$1 $2 $3</format>
14079         </numberFormat>
14080         <numberFormat pattern="(6[567]\d)(\d{3})(\d{3})">
14081           <leadingDigits>6[567]</leadingDigits>
14082           <format>$1 $2 $3</format>
14083         </numberFormat>
14084         <numberFormat pattern="(69)(7\d{2})(\d{4})">
14085           <leadingDigits>697</leadingDigits>
14086           <format>$1 $2 $3</format>
14087         </numberFormat>
14088         <numberFormat pattern="([7-9]0\d)(\d{2})(\d{2})">
14089           <leadingDigits>[7-9]0</leadingDigits>
14090           <format>$1 $2 $3</format>
14091         </numberFormat>
14092         <!-- Numbers of the form [89]00\d{6} are Swiss numbers callable from Liechtenstein. -->
14093         <numberFormat pattern="([89]0\d)(\d{2})(\d{2})(\d{2})"
14094           nationalPrefixFormattingRule="$NP$FG">
14095           <leadingDigits>[89]0</leadingDigits>
14096           <format>$1 $2 $3 $4</format>
14097         </numberFormat>
14098       </availableFormats>
14099       <generalDesc>
14100         <nationalNumberPattern>
14101           6\d{8}|
14102           [23789]\d{6}
14103         </nationalNumberPattern>
14104         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14105       </generalDesc>
14106       <fixedLine>
14107         <nationalNumberPattern>
14108           (?:
14109             2(?:
14110               01|
14111               1[27]|
14112               3\d|
14113               6[02-578]|
14114               96
14115             )|
14116             3(?:
14117               7[0135-7]|
14118               8[048]|
14119               9[0269]
14120             )
14121           )\d{4}
14122         </nationalNumberPattern>
14123         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14124         <exampleNumber>2345678</exampleNumber>
14125       </fixedLine>
14126       <mobile>
14127         <nationalNumberPattern>
14128           6(?:
14129             51[01]|
14130             6(?:
14131               [01][0-4]|
14132               2[016-9]|
14133               88
14134             )|
14135             710
14136           )\d{5}|
14137           7(?:
14138             36|
14139             4[25]|
14140             56|
14141             [7-9]\d
14142           )\d{4}
14143         </nationalNumberPattern>
14144         <exampleNumber>661234567</exampleNumber>
14145       </mobile>
14146       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
14147            even though it doesn't appear in the plan. -->
14148       <tollFree>
14149         <nationalNumberPattern>
14150           80(?:
14151             0(?:
14152               2[238]|
14153               79
14154             )|
14155             9\d{2}
14156           )\d{2}
14157         </nationalNumberPattern>
14158         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14159         <exampleNumber>8002222</exampleNumber>
14160       </tollFree>
14161       <premiumRate>
14162         <nationalNumberPattern>
14163           90(?:
14164             0(?:
14165               2[278]|
14166               79
14167             )|
14168             1(?:
14169               23|
14170               3[012]
14171             )|
14172             6(?:
14173               4\d|
14174               6[0126]
14175             )
14176           )\d{2}
14177         </nationalNumberPattern>
14178         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14179         <exampleNumber>9002222</exampleNumber>
14180       </premiumRate>
14181       <uan>
14182         <nationalNumberPattern>
14183           87(?:
14184             0[128]|
14185             7[0-4]
14186           )\d{3}
14187         </nationalNumberPattern>
14188         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14189         <exampleNumber>8770123</exampleNumber>
14190       </uan>
14191       <voicemail>
14192         <nationalNumberPattern>
14193           697(?:
14194             [35]6|
14195             4[25]|
14196             [7-9]\d
14197           )\d{4}
14198         </nationalNumberPattern>
14199         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14200         <exampleNumber>697361234</exampleNumber>
14201       </voicemail>
14202       <personalNumber>
14203         <nationalNumberPattern>701\d{4}</nationalNumberPattern>
14204         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14205         <exampleNumber>7011234</exampleNumber>
14206       </personalNumber>
14207     </territory>
14208
14209     <!-- Sri Lanka -->
14210     <territory id="LK" countryCode="94" internationalPrefix="00"
14211                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14212       <references>
14213         <sourceUrl>http://en.wikipedia.org/wiki/%2B94</sourceUrl>
14214         <sourceUrl>http://www.itu.int/oth/T02020000C3/en</sourceUrl>
14215       </references>
14216       <availableFormats>
14217         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
14218           <leadingDigits>[1-689]</leadingDigits>
14219           <format>$1 $2 $3</format>
14220         </numberFormat>
14221         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14222           <leadingDigits>7</leadingDigits>
14223           <format>$1 $2 $3</format>
14224         </numberFormat>
14225       </availableFormats>
14226       <generalDesc>
14227         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
14228         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14229       </generalDesc>
14230       <fixedLine>
14231         <nationalNumberPattern>
14232           (?:
14233             [189]1|
14234             2[13-7]|
14235             3[1-8]|
14236             4[157]|
14237             5[12457]|
14238             6[35-7]
14239           )[2-57]\d{6}
14240         </nationalNumberPattern>
14241         <exampleNumber>112345678</exampleNumber>
14242       </fixedLine>
14243       <mobile>
14244         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
14245         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
14246         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14247         <exampleNumber>712345678</exampleNumber>
14248       </mobile>
14249     </territory>
14250
14251     <!-- Liberia -->
14252     <territory id="LR" countryCode="231" internationalPrefix="00"
14253                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14254       <references>
14255         <sourceUrl>http://www.itu.int/oth/T0202000079/en</sourceUrl>
14256       </references>
14257       <availableFormats>
14258         <!-- Formatting from Ministry of Agriculture,
14259         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
14260         <numberFormat pattern="(2\d)(\d{3})(\d{3})">
14261           <leadingDigits>2</leadingDigits>
14262           <format>$1 $2 $3</format>
14263         </numberFormat>
14264         <numberFormat pattern="([79]\d{2})(\d{3})(\d{3})">
14265           <leadingDigits>[79]</leadingDigits>
14266           <format>$1 $2 $3</format>
14267         </numberFormat>
14268         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
14269           <leadingDigits>[4-6]</leadingDigits>
14270           <format>$1 $2 $3</format>
14271         </numberFormat>
14272         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14273           <leadingDigits>[38]</leadingDigits>
14274           <format>$1 $2 $3</format>
14275         </numberFormat>
14276       </availableFormats>
14277       <generalDesc>
14278         <nationalNumberPattern>
14279           2\d{7}|
14280           [37-9]\d{8}|
14281           [45]\d{6}
14282         </nationalNumberPattern>
14283         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14284       </generalDesc>
14285       <fixedLine>
14286         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14287         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14288         <exampleNumber>21234567</exampleNumber>
14289       </fixedLine>
14290       <mobile>
14291         <!-- West Africa Telecom seems to be a mobile company from their website. Adding Atlantic
14292              Wireless from the document, even though from online news reports it is not clear they
14293              are still operating. -->
14294         <nationalNumberPattern>
14295           (?:
14296             330\d|
14297             4[67]|
14298             5\d|
14299             77\d{2}|
14300             88\d{2}|
14301             994\d
14302           )\d{5}
14303         </nationalNumberPattern>
14304         <exampleNumber>770123456</exampleNumber>
14305       </mobile>
14306       <premiumRate>
14307         <!-- Telelinks and Interactive media service are listed under premium rate. -->
14308         <nationalNumberPattern>90[03]\d{6}</nationalNumberPattern>
14309         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14310         <exampleNumber>900123456</exampleNumber>
14311       </premiumRate>
14312       <voip>
14313         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
14314              say they are involved in the VoIP sector. Adding WASSCOM and Atlantic Realty &
14315              Investment Corporation here as well; no numbers can be found online, nor company
14316              information. -->
14317         <nationalNumberPattern>
14318           332(?:
14319             0[02]|
14320             5\d
14321           )\d{4}
14322         </nationalNumberPattern>
14323         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14324         <exampleNumber>332001234</exampleNumber>
14325       </voip>
14326     </territory>
14327
14328     <!-- Lesotho -->
14329     <territory id="LS" countryCode="266" internationalPrefix="00">
14330       <references>
14331         <sourceUrl>http://www.itu.int/oth/T0202000078/en</sourceUrl>
14332       </references>
14333       <availableFormats>
14334         <!-- Formatting following yellow pages: http://www.yellowpages.co.ls -->
14335         <numberFormat pattern="(\d{4})(\d{4})">
14336           <format>$1 $2</format>
14337         </numberFormat>
14338       </availableFormats>
14339       <generalDesc>
14340         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
14341         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14342       </generalDesc>
14343       <fixedLine>
14344         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14345         <exampleNumber>22123456</exampleNumber>
14346       </fixedLine>
14347       <mobile>
14348         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
14349         <exampleNumber>50123456</exampleNumber>
14350       </mobile>
14351       <tollFree>
14352         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
14353         <exampleNumber>80021234</exampleNumber>
14354       </tollFree>
14355     </territory>
14356
14357     <!-- Lithuania -->
14358     <!-- Note that Lithuania is switching to a national prefix of 0. We support
14359          both 0 and 8 when parsing until this switch is complete. -->
14360     <territory id="LT" countryCode="370" internationalPrefix="00"
14361                nationalPrefix="8" nationalPrefixForParsing="[08]"
14362                nationalPrefixFormattingRule="($NP-$FG)"
14363                nationalPrefixOptionalWhenFormatting="true" mobileNumberPortableRegion="true">
14364       <references>
14365         <sourceUrl>http://www.itu.int/oth/T020200007C/en</sourceUrl>
14366       </references>
14367       <!-- National Prefix formatting rule from http://www.yellowpages.lt -->
14368       <availableFormats>
14369         <!-- Two-digit area codes -->
14370         <numberFormat pattern="([34]\d)(\d{6})">
14371           <leadingDigits>
14372             37|
14373             4(?:
14374               1|
14375               5[45]|
14376               6[2-4]
14377             )
14378           </leadingDigits>
14379           <format>$1 $2</format>
14380         </numberFormat>
14381         <!-- Three-digit area codes -->
14382         <numberFormat pattern="([3-6]\d{2})(\d{5})">
14383           <leadingDigits>
14384             3[148]|
14385             4(?:
14386               [24]|
14387               6[09]
14388             )|
14389             528|
14390             6
14391           </leadingDigits>
14392           <format>$1 $2</format>
14393         </numberFormat>
14394         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
14395           nationalPrefixFormattingRule="$NP $FG">
14396           <leadingDigits>[7-9]</leadingDigits>
14397           <format>$1 $2 $3</format>
14398         </numberFormat>
14399         <numberFormat pattern="(5)(2\d{2})(\d{4})">
14400           <leadingDigits>52[0-79]</leadingDigits>
14401           <format>$1 $2 $3</format>
14402         </numberFormat>
14403       </availableFormats>
14404       <generalDesc>
14405         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
14406         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14407       </generalDesc>
14408       <fixedLine>
14409         <nationalNumberPattern>
14410           (?:
14411             3[1478]|
14412             4[124-6]|
14413             52
14414           )\d{6}
14415         </nationalNumberPattern>
14416         <exampleNumber>31234567</exampleNumber>
14417       </fixedLine>
14418       <mobile>
14419         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
14420         <exampleNumber>61234567</exampleNumber>
14421       </mobile>
14422       <tollFree>
14423         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14424         <exampleNumber>80012345</exampleNumber>
14425       </tollFree>
14426       <premiumRate>
14427         <nationalNumberPattern>
14428           9(?:
14429             0[0239]|
14430             10
14431           )\d{5}
14432         </nationalNumberPattern>
14433         <exampleNumber>90012345</exampleNumber>
14434       </premiumRate>
14435       <personalNumber>
14436         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
14437         <exampleNumber>70012345</exampleNumber>
14438       </personalNumber>
14439       <sharedCost>
14440         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14441         <exampleNumber>80812345</exampleNumber>
14442       </sharedCost>
14443       <uan>
14444         <!-- Including government service numbers here too. -->
14445         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
14446         <exampleNumber>70712345</exampleNumber>
14447       </uan>
14448     </territory>
14449
14450     <!-- Luxembourg -->
14451     <territory id="LU" countryCode="352" internationalPrefix="00"
14452                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
14453                carrierCodeFormattingRule="$CC $FG" mobileNumberPortableRegion="true">
14454       <references>
14455         <sourceUrl>http://www.ilr.public.lu/communications_electroniques/numerotation/index.html</sourceUrl>
14456       </references>
14457       <availableFormats>
14458         <!-- Patterns overlap because of variable number length. -->
14459         <numberFormat pattern="(\d{2})(\d{3})">
14460           <leadingDigits>
14461             [2-5]|
14462             7[1-9]|
14463             [89](?:
14464               [1-9]|
14465               0[2-9]
14466             )
14467           </leadingDigits>
14468           <format>$1 $2</format>
14469         </numberFormat>
14470         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
14471           <leadingDigits>
14472             [2-5]|
14473             7[1-9]|
14474             [89](?:
14475               [1-9]|
14476               0[2-9]
14477             )
14478           </leadingDigits>
14479           <format>$1 $2 $3</format>
14480         </numberFormat>
14481         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
14482           <leadingDigits>20</leadingDigits>
14483           <format>$1 $2 $3</format>
14484         </numberFormat>
14485         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
14486              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
14487              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
14488              -->
14489         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
14490           <leadingDigits>
14491             2(?:
14492               [0367]|
14493               4[3-8]
14494             )
14495           </leadingDigits>
14496           <format>$1 $2 $3 $4</format>
14497         </numberFormat>
14498         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
14499           <leadingDigits>20</leadingDigits>
14500           <format>$1 $2 $3 $4</format>
14501         </numberFormat>
14502         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
14503           <leadingDigits>
14504             2(?:
14505               [0367]|
14506               4[3-8]
14507             )
14508           </leadingDigits>
14509           <format>$1 $2 $3 $4 $5</format>
14510         </numberFormat>
14511         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
14512           <leadingDigits>
14513             2(?:
14514               [12589]|
14515               4[12]
14516             )|
14517             [3-5]|
14518             7[1-9]|
14519             [89](?:
14520               [1-9]|
14521               0[2-9]
14522             )
14523           </leadingDigits>
14524           <format>$1 $2 $3 $4</format>
14525         </numberFormat>
14526         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
14527           <leadingDigits>
14528             [89]0[01]|
14529             70
14530           </leadingDigits>
14531           <format>$1 $2 $3</format>
14532         </numberFormat>
14533         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14534           <leadingDigits>6</leadingDigits>
14535           <format>$1 $2 $3</format>
14536         </numberFormat>
14537       </availableFormats>
14538       <generalDesc>
14539         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
14540              necessary since the numbers have a variable number length. -->
14541         <nationalNumberPattern>
14542           [24-9]\d{3,10}|
14543           3(?:
14544             [0-46-9]\d{2,9}|
14545             5[013-9]\d{1,8}
14546           )
14547         </nationalNumberPattern>
14548         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
14549       </generalDesc>
14550       <fixedLine>
14551         <!-- Even though 20 is listed in the fixed-line plan, other documentation clarify that it is
14552              for VOIP. Furthermore, even though the plan says that numbers beginning with 2[346-8]
14553              must be exactly 8 digits, from information found online it seems that they can actually
14554              be 6 (but not 7) digits long. -->
14555         <nationalNumberPattern>
14556           (?:
14557             2(?:
14558               [259]\d{2,9}|
14559               [346-8]\d{4}(?:\d{2})?
14560             )|
14561             (?:
14562               [3457]\d{2}|
14563               8(?:
14564                 0[2-9]|
14565                 [13-9]\d
14566               )|
14567               9(?:
14568                 0[89]|
14569                 [2-579]\d
14570               )
14571             )\d{1,8}
14572           )
14573         </nationalNumberPattern>
14574         <exampleNumber>27123456</exampleNumber>
14575       </fixedLine>
14576       <mobile>
14577         <nationalNumberPattern>6[2679][18]\d{6}</nationalNumberPattern>
14578         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14579         <exampleNumber>628123456</exampleNumber>
14580       </mobile>
14581       <tollFree>
14582         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14583         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14584         <exampleNumber>80012345</exampleNumber>
14585       </tollFree>
14586       <premiumRate>
14587         <nationalNumberPattern>90[01]\d{5}</nationalNumberPattern>
14588         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14589         <exampleNumber>90012345</exampleNumber>
14590       </premiumRate>
14591       <sharedCost>
14592         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
14593         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14594         <exampleNumber>80112345</exampleNumber>
14595       </sharedCost>
14596       <personalNumber>
14597         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
14598         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14599         <exampleNumber>70123456</exampleNumber>
14600       </personalNumber>
14601       <voip>
14602         <!-- The document says the normal length will be 8 digits, but many numbers found online
14603              deviate from that. The prefixes from the following document have been added:
14604              http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
14605              201 has also been added since a diallable number was found online, and it says in
14606              http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
14607              numbers will be issued that begin with 200, numbers beginning with 201 will be issued
14608              one at a time, and 202-209 in blocks. -->
14609         <nationalNumberPattern>
14610           20(?:
14611             1\d{5}|
14612             [2-689]\d{1,7}
14613           )
14614         </nationalNumberPattern>
14615         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
14616         <exampleNumber>20201234</exampleNumber>
14617       </voip>
14618     </territory>
14619
14620     <!-- Latvia -->
14621     <territory id="LV" countryCode="371" internationalPrefix="00" mobileNumberPortableRegion="true">
14622       <references>
14623         <sourceUrl>http://www.itu.int/oth/T0202000076/en</sourceUrl>
14624         <sourceUrl>http://en.wikipedia.org/wiki/+371</sourceUrl>
14625       </references>
14626       <availableFormats>
14627         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
14628           <format>$1 $2 $3</format>
14629         </numberFormat>
14630       </availableFormats>
14631       <generalDesc>
14632         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
14633         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14634       </generalDesc>
14635       <fixedLine>
14636         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
14637         <exampleNumber>63123456</exampleNumber>
14638       </fixedLine>
14639       <mobile>
14640         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14641         <exampleNumber>21234567</exampleNumber>
14642       </mobile>
14643       <tollFree>
14644         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
14645         <exampleNumber>80123456</exampleNumber>
14646       </tollFree>
14647       <premiumRate>
14648         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14649         <exampleNumber>90123456</exampleNumber>
14650       </premiumRate>
14651       <sharedCost>
14652         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
14653         <exampleNumber>81123456</exampleNumber>
14654       </sharedCost>
14655     </territory>
14656
14657     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
14658     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
14659          and itu.int. The new area codes are on the Arabic website of the main telecommunication
14660          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
14661          using 096 (they are allowing customers to register numbers currently), so their code has
14662          also been added. -->
14663     <territory id="LY" countryCode="218" internationalPrefix="00"
14664                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14665       <references>
14666         <sourceUrl>http://hlc.ly/price.php</sourceUrl>
14667       </references>
14668       <availableFormats>
14669         <numberFormat pattern="([25679]\d)(\d{7})">
14670           <format>$1-$2</format>
14671         </numberFormat>
14672       </availableFormats>
14673       <generalDesc>
14674         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
14675         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14676       </generalDesc>
14677       <fixedLine>
14678         <nationalNumberPattern>
14679           (?:
14680             2[1345]|
14681             5[1347]|
14682             6[123479]|
14683             71
14684           )\d{7}
14685         </nationalNumberPattern>
14686         <exampleNumber>212345678</exampleNumber>
14687       </fixedLine>
14688       <mobile>
14689         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
14690              where SMS messages have been apparently successfully received. -->
14691         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
14692         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14693         <exampleNumber>912345678</exampleNumber>
14694       </mobile>
14695     </territory>
14696
14697     <!-- Morocco -->
14698     <!-- Shares formatting and some metadata with Western Sahara. -->
14699     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
14700                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
14701                mobileNumberPortableRegion="true">
14702       <references>
14703         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
14704         <sourceUrl>http://en.wikipedia.org/wiki/+212</sourceUrl>
14705       </references>
14706       <availableFormats>
14707         <numberFormat pattern="([56]\d{2})(\d{6})">
14708           <leadingDigits>
14709             5(?:
14710               2[015-7]|
14711               3[0-4]
14712             )|
14713             6
14714           </leadingDigits>
14715           <format>$1-$2</format>
14716         </numberFormat>
14717         <numberFormat pattern="([58]\d{3})(\d{5})">
14718           <leadingDigits>
14719             5(?:
14720               2[2-489]|
14721               3[5-9]
14722             )|
14723             892
14724           </leadingDigits>
14725           <leadingDigits>
14726             5(?:
14727               2(?:
14728                 [2-48]|
14729                 90
14730               )|
14731               3(?:
14732                 [5-79]|
14733                 80
14734               )
14735             )|
14736             892
14737           </leadingDigits>
14738           <format>$1-$2</format>
14739         </numberFormat>
14740         <numberFormat pattern="(5\d{4})(\d{4})">
14741           <leadingDigits>
14742             5(?:
14743               29|
14744               38
14745             )
14746           </leadingDigits>
14747           <leadingDigits>
14748             5(?:
14749               29|
14750               38
14751             )[89]
14752           </leadingDigits>
14753           <format>$1-$2</format>
14754         </numberFormat>
14755         <numberFormat pattern="(8[09])(\d{7})">
14756           <leadingDigits>
14757             8(?:
14758               0|
14759               9[013-9]
14760             )
14761           </leadingDigits>
14762           <format>$1-$2</format>
14763         </numberFormat>
14764       </availableFormats>
14765       <generalDesc>
14766         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
14767         <!-- Closed numbering plan. -->
14768         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14769       </generalDesc>
14770       <fixedLine>
14771         <nationalNumberPattern>
14772           5(?:
14773             2(?:
14774               (?:
14775                 [015-7]\d|
14776                 2[2-9]|
14777                 3[2-57]|
14778                 4[2-8]|
14779                 8[235-7]
14780               )\d|
14781               9(?:
14782                 0\d|
14783                 [89]0
14784               )
14785             )|
14786             3(?:
14787               (?:
14788                 [0-4]\d|
14789                 [57][2-9]|
14790                 6[235-8]|
14791                 9[3-9]
14792               )\d|
14793               8(?:
14794                 0\d|
14795                 [89]0
14796               )
14797             )
14798           )\d{4}
14799         </nationalNumberPattern>
14800         <exampleNumber>520123456</exampleNumber>
14801       </fixedLine>
14802       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
14803       <mobile>
14804         <!-- http://www.anrt.ma/sites/default/files/Blocs_de_numeros_par_operateur.pdf
14805              Prefixes 69[0136] added based on numbers found online. -->
14806         <nationalNumberPattern>
14807           6(?:
14808             0[0-8]|
14809             [12-79]\d|
14810             8[01]
14811           )\d{6}
14812         </nationalNumberPattern>
14813         <exampleNumber>650123456</exampleNumber>
14814       </mobile>
14815       <tollFree>
14816         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
14817         <exampleNumber>801234567</exampleNumber>
14818       </tollFree>
14819       <premiumRate>
14820         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
14821         <exampleNumber>891234567</exampleNumber>
14822       </premiumRate>
14823     </territory>
14824
14825     <!-- Monaco -->
14826     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
14827          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
14828          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
14829     <territory id="MC" countryCode="377" internationalPrefix="00"
14830                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14831       <references>
14832         <sourceUrl>http://www.itu.int/oth/T020200008D/en</sourceUrl>
14833       </references>
14834       <availableFormats>
14835         <!-- Following formatting found online rather than in the ITU document example. -->
14836         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
14837           <leadingDigits>9</leadingDigits>
14838           <format>$1 $2 $3 $4</format>
14839         </numberFormat>
14840         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14841           <leadingDigits>4</leadingDigits>
14842           <format>$1 $2 $3</format>
14843         </numberFormat>
14844         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
14845           <leadingDigits>6</leadingDigits>
14846           <format>$1 $2 $3 $4 $5</format>
14847         </numberFormat>
14848         <numberFormat pattern="(\d{3})(\d{3})(\d{2})" nationalPrefixFormattingRule="$FG">
14849           <leadingDigits>8</leadingDigits>
14850           <format>$1 $2 $3</format>
14851         </numberFormat>
14852       </availableFormats>
14853       <generalDesc>
14854         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
14855         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
14856       </generalDesc>
14857       <noInternationalDialling>
14858         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
14859         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14860       </noInternationalDialling>
14861       <fixedLine>
14862         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
14863         <nationalNumberPattern>
14864           870\d{5}|
14865           9[2-47-9]\d{6}
14866         </nationalNumberPattern>
14867         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14868         <exampleNumber>99123456</exampleNumber>
14869       </fixedLine>
14870       <mobile>
14871         <!-- 4X mobile numbers are actually used by Kosovo. -->
14872         <nationalNumberPattern>
14873           6\d{8}|
14874           4(?:
14875             4\d|
14876             5[2-9]
14877           )\d{5}
14878         </nationalNumberPattern>
14879         <exampleNumber>612345678</exampleNumber>
14880       </mobile>
14881       <tollFree>
14882         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14883         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14884         <exampleNumber>90123456</exampleNumber>
14885       </tollFree>
14886     </territory>
14887
14888     <!-- Moldova, Rep. of -->
14889     <territory id="MD" countryCode="373" internationalPrefix="00"
14890                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
14891                mobileNumberPortableRegion="true">
14892       <references>
14893         <sourceUrl>http://www.itu.int/oth/T020200008C/en</sourceUrl>
14894         <!-- Announcements -->
14895         <sourceUrl>http://anrceti.md/fileupload/58</sourceUrl>
14896         <!-- Mobile ranges -->
14897         <sourceUrl>http://en.anrceti.md/resurse_numerotare_tel_mobila</sourceUrl>
14898       </references>
14899       <availableFormats>
14900         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14901           <leadingDigits>
14902             22|
14903             3
14904           </leadingDigits>
14905           <format>$1 $2 $3</format>
14906         </numberFormat>
14907         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
14908           <leadingDigits>
14909             2[13-79]|
14910             [5-7]
14911           </leadingDigits>
14912           <format>$1 $2 $3</format>
14913         </numberFormat>
14914         <numberFormat pattern="([89]\d{2})(\d{5})">
14915           <leadingDigits>[89]</leadingDigits>
14916           <format>$1 $2</format>
14917         </numberFormat>
14918       </availableFormats>
14919       <generalDesc>
14920         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
14921         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14922       </generalDesc>
14923       <fixedLine>
14924         <nationalNumberPattern>
14925           (?:
14926             2(?:
14927               1[0569]|
14928               2\d|
14929               3[015-7]|
14930               4[1-46-9]|
14931               5[0-24689]|
14932               6[2-589]|
14933               7[1-37]|
14934               9[1347-9]
14935             )|
14936             5(?:
14937               33|
14938               5[257]
14939             )
14940           )\d{5}
14941         </nationalNumberPattern>
14942         <exampleNumber>22212345</exampleNumber>
14943       </fixedLine>
14944       <mobile>
14945         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
14946         <nationalNumberPattern>
14947           (?:
14948             562\d|
14949             6(?:
14950               [089]\d{2}|
14951               1[01]\d|
14952               21\d|
14953               50\d|
14954               7(?:
14955                 [1-6]\d|
14956                 7[0-4]
14957               )
14958             )|
14959             7(?:
14960               6[07]|
14961               7[457-9]|
14962               [89]\d
14963             )\d
14964           )\d{4}
14965         </nationalNumberPattern>
14966         <exampleNumber>65012345</exampleNumber>
14967       </mobile>
14968       <tollFree>
14969         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14970         <exampleNumber>80012345</exampleNumber>
14971       </tollFree>
14972       <premiumRate>
14973         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
14974         <exampleNumber>90012345</exampleNumber>
14975       </premiumRate>
14976       <!-- Information came from en.anrceti.md/node/81 -->
14977       <sharedCost>
14978         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14979         <exampleNumber>80812345</exampleNumber>
14980       </sharedCost>
14981       <uan>
14982         <!-- Includes numbers used for access to different transport directory services of general
14983              interest, since these are charged at the same rate as fixed-line numbers. -->
14984         <nationalNumberPattern>
14985           8(?:
14986             03|
14987             14
14988           )\d{5}
14989         </nationalNumberPattern>
14990         <exampleNumber>80312345</exampleNumber>
14991       </uan>
14992       <voip>
14993         <!-- Used for "nomadic numbers". -->
14994         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
14995         <exampleNumber>30123456</exampleNumber>
14996       </voip>
14997     </territory>
14998
14999     <!-- Montenegro -->
15000     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
15001                nationalPrefixFormattingRule="$NP$FG">
15002       <references>
15003         <sourceUrl>http://www.itu.int/oth/T02020000DA/en</sourceUrl>
15004         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro</sourceUrl>
15005         <sourceUrl>http://www.ekip.me/numeracija/dodijeljena.php</sourceUrl>
15006       </references>
15007       <availableFormats>
15008          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15009           <leadingDigits>[2-57-9]|6[3789]</leadingDigits>
15010           <leadingDigits>
15011             [2-57-9]|
15012             6(?:
15013               [389]|
15014               7(?:
15015                 [0-8]|
15016                 9[3-9]
15017               )
15018             )
15019           </leadingDigits>
15020           <format>$1 $2 $3</format>
15021         </numberFormat>
15022         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
15023           <leadingDigits>679</leadingDigits>
15024           <leadingDigits>679[0-2]</leadingDigits>
15025           <format>$1 $2 $3 $4</format>
15026         </numberFormat>
15027       </availableFormats>
15028       <generalDesc>
15029         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
15030         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
15031       </generalDesc>
15032       <fixedLine>
15033         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
15034              The valid options for the third digit were from
15035              http://www.ekip.me/numeracija/dodijeljena.php -->
15036         <nationalNumberPattern>
15037           (?:
15038             20[2-8]|
15039             3(?:
15040               0[2-7]|
15041               1[35-7]|
15042               2[3567]|
15043               3[4-7]
15044             )|
15045             4(?:
15046               0[237]|
15047               1[27]
15048             )|
15049             5(?:
15050               0[47]|
15051               1[27]|
15052               2[378]
15053             )
15054           )\d{5}
15055         </nationalNumberPattern>
15056         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15057         <exampleNumber>30234567</exampleNumber>
15058       </fixedLine>
15059       <mobile>
15060         <!-- Mobile numbers start with 632, 67, 68 or 69. -->
15061         <nationalNumberPattern>
15062           6(?:
15063             32\d|
15064             [89]\d{2}|
15065             7(?:
15066               [0-8]\d|
15067               9(?:
15068                 [3-9]|
15069                 [0-2]\d
15070               )
15071             )
15072           )\d{4}
15073         </nationalNumberPattern>
15074         <!-- According to ITU it is possible for the numbers to be between length 4-12
15075              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
15076              digits long, based on the Montenegro document. -->
15077         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15078         <exampleNumber>67622901</exampleNumber>
15079       </mobile>
15080       <tollFree>
15081         <!-- All toll free numbers have prefix 80 followed by 02 or 08. -->
15082         <nationalNumberPattern>800[28]\d{4}</nationalNumberPattern>
15083         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15084         <exampleNumber>80080002</exampleNumber>
15085       </tollFree>
15086       <premiumRate>
15087         <!-- Numbers with prefix 88, 94 or 95 are services with additional charges. -->
15088         <nationalNumberPattern>
15089           (?:
15090             88\d|
15091             9(?:
15092               4[13-8]|
15093               5[16-8]
15094             )
15095           )\d{5}
15096         </nationalNumberPattern>
15097         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15098         <exampleNumber>94515151</exampleNumber>
15099       </premiumRate>
15100       <voip>
15101         <!-- VOIP are prefixed with 78. -->
15102         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
15103         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15104         <exampleNumber>78108780</exampleNumber>
15105       </voip>
15106       <uan>
15107         <!-- Corporate Telephony are prefixed with 77. -->
15108         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
15109         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15110         <exampleNumber>77273012</exampleNumber>
15111       </uan>
15112     </territory>
15113
15114     <!-- Saint-Martin, French Antilles -->
15115     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
15116       <references>
15117         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
15118         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
15119         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
15120       </references>
15121       <!-- Formatting rules borrowed from Guadeloupe. -->
15122       <generalDesc>
15123         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15124         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15125       </generalDesc>
15126       <fixedLine>
15127         <nationalNumberPattern>
15128           590(?:
15129             [02][79]|
15130             13|
15131             5[0-268]|
15132             [78]7
15133           )\d{4}
15134         </nationalNumberPattern>
15135         <exampleNumber>590271234</exampleNumber>
15136       </fixedLine>
15137       <mobile>
15138         <!-- Any ranges assigned from
15139              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
15140              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
15141              them. -->
15142         <nationalNumberPattern>
15143           690(?:
15144             0[0-7]|
15145             [1-9]\d
15146           )\d{4}
15147         </nationalNumberPattern>
15148         <exampleNumber>690301234</exampleNumber>
15149       </mobile>
15150     </territory>
15151
15152     <!-- Madagascar -->
15153     <territory id="MG" countryCode="261" internationalPrefix="00"
15154                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15155       <references>
15156         <sourceUrl>http://www.itu.int/oth/T020200007F/en</sourceUrl>
15157       </references>
15158       <availableFormats>
15159         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
15160           <format>$1 $2 $3 $4</format>
15161         </numberFormat>
15162       </availableFormats>
15163       <generalDesc>
15164         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
15165         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15166       </generalDesc>
15167       <fixedLine>
15168         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
15169              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
15170              codes beginning with 4. -->
15171         <nationalNumberPattern>
15172           20(?:
15173             2\d{2}|
15174             4[47]\d|
15175             5[3467]\d|
15176             6[279]\d|
15177             7(?:
15178               2[29]|
15179               [35]\d
15180             )|
15181             8[268]\d|
15182             9[245]\d
15183           )\d{4}
15184         </nationalNumberPattern>
15185         <exampleNumber>202123456</exampleNumber>
15186       </fixedLine>
15187       <mobile>
15188         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
15189              out by reality. -->
15190         <nationalNumberPattern>3[2-49]\d{7}</nationalNumberPattern>
15191         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15192         <exampleNumber>321234567</exampleNumber>
15193       </mobile>
15194       <!-- Putting VSAT numbers here. -->
15195       <voip>
15196         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
15197         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15198         <exampleNumber>221234567</exampleNumber>
15199       </voip>
15200     </territory>
15201
15202     <!-- Marshall Islands -->
15203     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
15204       <references>
15205         <sourceUrl>http://www.itu.int/oth/T0202000085/en</sourceUrl>
15206       </references>
15207       <availableFormats>
15208         <numberFormat pattern="(\d{3})(\d{4})">
15209           <format>$1-$2</format>
15210         </numberFormat>
15211       </availableFormats>
15212       <generalDesc>
15213         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
15214         <possibleNumberPattern>\d{7}</possibleNumberPattern>
15215       </generalDesc>
15216       <fixedLine>
15217         <nationalNumberPattern>
15218           (?:
15219             247|
15220             528|
15221             625
15222           )\d{4}
15223         </nationalNumberPattern>
15224         <exampleNumber>2471234</exampleNumber>
15225       </fixedLine>
15226       <mobile>
15227         <nationalNumberPattern>
15228           (?:
15229             235|
15230             329|
15231             45[56]|
15232             545
15233           )\d{4}
15234         </nationalNumberPattern>
15235         <exampleNumber>2351234</exampleNumber>
15236       </mobile>
15237       <voip>
15238         <!-- VSAT prefixes are here. -->
15239         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
15240         <exampleNumber>6351234</exampleNumber>
15241       </voip>
15242     </territory>
15243
15244     <!-- Macedonia, Former Yugoslav Rep. of -->
15245     <territory id="MK" countryCode="389" internationalPrefix="00"
15246                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
15247                mobileNumberPortableRegion="true">
15248       <references>
15249         <sourceUrl>http://www.itu.int/oth/T02020000CE/en</sourceUrl>
15250       </references>
15251       <availableFormats>
15252         <!-- Formats follow wikipedia. -->
15253         <numberFormat pattern="(2)(\d{3})(\d{4})">
15254           <leadingDigits>2</leadingDigits>
15255           <format>$1 $2 $3</format>
15256         </numberFormat>
15257         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
15258           <leadingDigits>[347]</leadingDigits>
15259           <format>$1 $2 $3</format>
15260         </numberFormat>
15261         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
15262           <leadingDigits>[58]</leadingDigits>
15263           <format>$1 $2 $3 $4</format>
15264         </numberFormat>
15265       </availableFormats>
15266       <generalDesc>
15267         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
15268         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15269       </generalDesc>
15270       <fixedLine>
15271         <nationalNumberPattern>
15272           (?:
15273             2(?:
15274               [23]\d|
15275               5[124578]|
15276               6[01]
15277             )|
15278             3(?:
15279               1[3-6]|
15280               [23][2-6]|
15281               4[2356]
15282             )|
15283             4(?:
15284               [23][2-6]|
15285               4[3-6]|
15286               5[256]|
15287               6[25-8]|
15288               7[24-6]|
15289               8[4-6]
15290             )
15291           )\d{5}
15292         </nationalNumberPattern>
15293         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15294         <exampleNumber>22212345</exampleNumber>
15295       </fixedLine>
15296       <mobile>
15297         <nationalNumberPattern>
15298           7(?:
15299             [0-25-8]\d{2}|
15300             32\d|
15301             421
15302           )\d{4}
15303         </nationalNumberPattern>
15304         <exampleNumber>72345678</exampleNumber>
15305       </mobile>
15306       <tollFree>
15307         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15308         <exampleNumber>80012345</exampleNumber>
15309       </tollFree>
15310       <premiumRate>
15311         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
15312         <exampleNumber>50012345</exampleNumber>
15313       </premiumRate>
15314       <sharedCost>
15315         <nationalNumberPattern>
15316           8(?:
15317             0[1-9]|
15318             [1-9]\d
15319           )\d{5}
15320         </nationalNumberPattern>
15321         <exampleNumber>80123456</exampleNumber>
15322       </sharedCost>
15323     </territory>
15324
15325     <!-- Mali -->
15326     <territory id="ML" countryCode="223" internationalPrefix="00">
15327       <references>
15328         <sourceUrl>http://www.itu.int/oth/T0202000083/en</sourceUrl>
15329         <sourceUrl>http://crt-mali.org/pdf/plan_num</sourceUrl>
15330       </references>
15331       <availableFormats>
15332         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
15333           <leadingDigits>[246-9]</leadingDigits>
15334           <format>$1 $2 $3 $4</format>
15335         </numberFormat>
15336         <!-- Formatting some short numbers as a block. -->
15337         <numberFormat pattern="(\d{4})">
15338           <leadingDigits>
15339             67|
15340             74
15341           </leadingDigits>
15342           <intlFormat>NA</intlFormat>
15343           <format>$1</format>
15344         </numberFormat>
15345       </availableFormats>
15346       <generalDesc>
15347         <nationalNumberPattern>[246-9]\d{7}</nationalNumberPattern>
15348         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15349       </generalDesc>
15350       <fixedLine>
15351         <!-- Patterns from ITU with extra ranges 20 25, 20 7[13-9] and 217 provided by Sotelma and
15352              confirmed by searches online. -->
15353         <nationalNumberPattern>
15354           (?:
15355             2(?:
15356               0(?:
15357                 2[0-589]|
15358                 7\d
15359               )|
15360               1(?:
15361                 2[5-7]|
15362                 [3-689]\d|
15363                 7[2-4689]
15364               )
15365             )|
15366             44[239]\d
15367           )\d{4}
15368         </nationalNumberPattern>
15369         <exampleNumber>20212345</exampleNumber>
15370       </fixedLine>
15371       <mobile>
15372         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
15373              document (which is very stale). All mobile numbers starting with 7 are now Orange.
15374              Includes 6x from Malitel IR21. Numbers beginning with 9 have been found online and
15375              reported by open-source users, although the exact possible second digits are uncertain.
15376              -->
15377         <nationalNumberPattern>
15378           [67]\d{7}|
15379           9[0-25-9]\d{6}
15380         </nationalNumberPattern>
15381         <exampleNumber>65012345</exampleNumber>
15382       </mobile>
15383       <tollFree>
15384         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
15385              plan. -->
15386         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15387         <exampleNumber>80012345</exampleNumber>
15388       </tollFree>
15389    </territory>
15390
15391     <!-- Myanmar -->
15392     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
15393                nationalPrefixFormattingRule="$NP$FG">
15394       <references>
15395         <sourceUrl>http://www.itu.int/oth/T0202000092/en</sourceUrl>
15396       </references>
15397       <availableFormats>
15398         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
15399           <leadingDigits>
15400             1|
15401             2[45]
15402           </leadingDigits>
15403           <format>$1 $2 $3</format>
15404         </numberFormat>
15405         <numberFormat pattern="(2)(\d{4})(\d{4})">
15406           <leadingDigits>251</leadingDigits>
15407           <format>$1 $2 $3</format>
15408         </numberFormat>
15409         <numberFormat pattern="(\d)(\d{2})(\d{3})">
15410           <leadingDigits>
15411             16|
15412             2
15413           </leadingDigits>
15414           <format>$1 $2 $3</format>
15415         </numberFormat>
15416         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
15417           <leadingDigits>
15418             67|
15419             81
15420           </leadingDigits>
15421           <format>$1 $2 $3</format>
15422         </numberFormat>
15423         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
15424           <leadingDigits>[4-8]</leadingDigits>
15425           <format>$1 $2 $3</format>
15426         </numberFormat>
15427         <numberFormat pattern="(9)(\d{3})(\d{4,6})">
15428           <leadingDigits>
15429             9(?:
15430               2[0-4]|
15431               [35-9]|
15432               4[13789]
15433             )
15434           </leadingDigits>
15435           <format>$1 $2 $3</format>
15436         </numberFormat>
15437         <numberFormat pattern="(9)(4\d{4})(\d{4})">
15438           <leadingDigits>94[0245]</leadingDigits>
15439           <format>$1 $2 $3</format>
15440         </numberFormat>
15441         <!-- Following majority of numbers found online. -->
15442         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{3})">
15443           <leadingDigits>925</leadingDigits>
15444           <format>$1 $2 $3 $4</format>
15445         </numberFormat>
15446       </availableFormats>
15447       <generalDesc>
15448         <nationalNumberPattern>
15449           [14578]\d{5,7}|
15450           [26]\d{5,8}|
15451           9(?:
15452             2\d{0,2}|
15453             [58]|
15454             3\d|
15455             4\d{1,2}|
15456             6\d?|
15457             [79]\d{0,2}
15458           )\d{6}
15459         </nationalNumberPattern>
15460         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
15461       </generalDesc>
15462       <fixedLine>
15463         <nationalNumberPattern>
15464           1(?:
15465             2\d{1,2}|
15466             [3-5]\d|
15467             6\d?|
15468             [89][0-6]\d
15469           )\d{4}|
15470           2(?:
15471             [236-9]\d{4}|
15472             4(?:
15473               0\d{5}|
15474               \d{4}
15475             )|
15476             5(?:
15477               1\d{3,6}|
15478               [02-9]\d{3,5}
15479             )
15480           )|
15481           4(?:
15482             2[245-8]|
15483             [346][2-6]|
15484             5[3-5]
15485           )\d{4}|
15486           5(?:
15487             2(?:
15488               20?|
15489               [3-8]
15490             )|
15491             3[2-68]|
15492             4(?:
15493               21?|
15494               [4-8]
15495             )|
15496             5[23]|
15497             6[2-4]|
15498             7[2-8]|
15499             8[24-7]|
15500             9[2-7]
15501           )\d{4}|
15502           6(?:
15503             0[23]|
15504             1[2356]|
15505             [24][2-6]|
15506             3[24-6]|
15507             5[2-4]|
15508             6[2-8]|
15509             7(?:
15510               [2367]|
15511               4\d|
15512               5\d?|
15513               8[145]\d
15514             )|
15515             8[245]|
15516             9[24]
15517           )\d{4}|
15518           7(?:
15519             [04][24-8]|
15520             [15][2-7]|
15521             22|
15522             3[2-4]
15523           )\d{4}|
15524           8(?:
15525             1(?:
15526               2\d?|
15527               [3-689]
15528             )|
15529             2[2-8]|
15530             3[24]|
15531             4[24-7]|
15532             5[245]|
15533             6[23]
15534           )\d{4}
15535         </nationalNumberPattern>
15536         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
15537         <exampleNumber>1234567</exampleNumber>
15538       </fixedLine>
15539       <mobile>
15540         <!-- Added 99[089] (8 digits), 961 (9 digits), and 979 & 997 (10 digits) from bug
15541              reports/numbers found online. -->
15542         <nationalNumberPattern>
15543           17[01]\d{4}|
15544           9(?:
15545             2(?:
15546               [0-4]|
15547               5\d{2}
15548             )|
15549             3[136]\d|
15550             4(?:
15551               0[0-4]\d|
15552               [1379]\d|
15553               [24][0-589]\d|
15554               5\d{2}|
15555               88
15556             )|
15557             5[0-6]|
15558             61?\d|
15559             7(?:
15560               3\d|
15561               9\d{2}
15562             )|
15563             8\d|
15564             9(?:
15565               1\d|
15566               7\d{2}|
15567               [089]
15568             )
15569           )\d{5}
15570         </nationalNumberPattern>
15571         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
15572         <exampleNumber>92123456</exampleNumber>
15573       </mobile>
15574       <voip>
15575         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
15576         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15577         <exampleNumber>13331234</exampleNumber>
15578       </voip>
15579       <!-- No information on other types of phone numbers for Myanmar has been found. -->
15580     </territory>
15581
15582     <!-- Mongolia -->
15583     <territory id="MN" countryCode="976" internationalPrefix="001"
15584                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15585       <references>
15586         <sourceUrl>http://www.itu.int/oth/T020200008E/en</sourceUrl>
15587       </references>
15588       <availableFormats>
15589         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
15590           <leadingDigits>[12]1</leadingDigits>
15591           <format>$1 $2 $3</format>
15592         </numberFormat>
15593         <numberFormat pattern="([12]2\d)(\d{5,6})">
15594           <leadingDigits>[12]2[1-3]</leadingDigits>
15595           <format>$1 $2</format>
15596         </numberFormat>
15597         <numberFormat pattern="([12]\d{3})(\d{5})">
15598           <leadingDigits>
15599             [12](?:
15600               27|
15601               [3-5]
15602             )
15603           </leadingDigits>
15604           <leadingDigits>
15605             [12](?:
15606               27|
15607               [3-5]\d
15608             )2
15609           </leadingDigits>
15610           <format>$1 $2</format>
15611         </numberFormat>
15612         <!-- It seems from online formatting that the national prefix is not written (or perhaps
15613              needed?) for numbers in these ranges. -->
15614         <numberFormat pattern="(\d{4})(\d{4})"
15615           nationalPrefixFormattingRule="$FG">
15616           <leadingDigits>[57-9]</leadingDigits>
15617           <format>$1 $2</format>
15618         </numberFormat>
15619         <numberFormat pattern="([12]\d{4})(\d{4,5})">
15620           <leadingDigits>
15621             [12](?:
15622               27|
15623               [3-5]
15624             )
15625           </leadingDigits>
15626           <leadingDigits>
15627             [12](?:
15628               27|
15629               [3-5]\d
15630             )[4-9]
15631           </leadingDigits>
15632           <format>$1 $2</format>
15633         </numberFormat>
15634       </availableFormats>
15635       <generalDesc>
15636         <nationalNumberPattern>
15637           [12]\d{7,9}|
15638           [57-9]\d{7}
15639         </nationalNumberPattern>
15640         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
15641       </generalDesc>
15642       <fixedLine>
15643         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
15644              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
15645              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
15646              as well, even though we are not certain whether they are in fact fixed or mobile in
15647              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
15648              online numbers being found. -->
15649         <nationalNumberPattern>
15650           [12](?:
15651             1\d|
15652             2(?:
15653               [1-3]\d?|
15654               7\d
15655             )|
15656             3[2-8]\d{1,2}|
15657             4[2-68]\d{1,2}|
15658             5[1-4689]\d{1,2}
15659           )\d{5}|
15660           5[0568]\d{6}
15661         </nationalNumberPattern>
15662         <exampleNumber>50123456</exampleNumber>
15663       </fixedLine>
15664       <mobile>
15665         <nationalNumberPattern>
15666           (?:
15667             8[689]|
15668             9[013-9]
15669           )\d{6}
15670         </nationalNumberPattern>
15671         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15672         <exampleNumber>88123456</exampleNumber>
15673       </mobile>
15674       <!-- No tollFree or premiumRate information can be found. -->
15675       <voip>
15676         <!-- According to the document this could be stricter, but there are counter examples
15677              online. -->
15678         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
15679         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15680         <exampleNumber>75123456</exampleNumber>
15681       </voip>
15682     </territory>
15683
15684     <!-- Macao, China -->
15685     <territory id="MO" countryCode="853" internationalPrefix="00">
15686       <references>
15687         <sourceUrl>http://www.itu.int/oth/T020200007E/en</sourceUrl>
15688       </references>
15689       <availableFormats>
15690         <numberFormat pattern="([268]\d{3})(\d{4})">
15691           <format>$1 $2</format>
15692         </numberFormat>
15693       </availableFormats>
15694       <generalDesc>
15695         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
15696         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15697       </generalDesc>
15698       <fixedLine>
15699         <nationalNumberPattern>
15700           (?:
15701             28[2-57-9]|
15702             8[2-57-9]\d
15703           )\d{5}
15704         </nationalNumberPattern>
15705         <exampleNumber>28212345</exampleNumber>
15706       </fixedLine>
15707       <mobile>
15708         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
15709              numbers, and they are also widely present on the Internet. -->
15710         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
15711         <exampleNumber>66123456</exampleNumber>
15712       </mobile>
15713       <!-- No tollFree or premiumRate information can be found. -->
15714     </territory>
15715
15716     <!-- Northern Mariana Islands -->
15717     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
15718                internationalPrefix="011">
15719       <references>
15720         <sourceUrl>http://www.itu.int/oth/T02020000EE/en</sourceUrl>
15721         <sourceUrl>http://www.cnmiphonebook.com/</sourceUrl>
15722       </references>
15723       <generalDesc>
15724         <!-- NANPA country - uses US formatting rules -->
15725         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15726         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15727       </generalDesc>
15728       <fixedLine>
15729         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
15730              were seen in the white and yellow pages, but no numbers with these exchange codes have
15731              proved to be diallable so we exclude them for now.. -->
15732         <nationalNumberPattern>
15733           670(?:
15734             2(?:
15735               3[3-7]|
15736               56|
15737               8[5-8]
15738             )|
15739             32[1238]|
15740             4(?:
15741               33|
15742               8[348]
15743             )|
15744             5(?:
15745               32|
15746               55|
15747               88
15748             )|
15749             6(?:
15750               64|
15751               70|
15752               82
15753             )|
15754             78[589]|
15755             8[3-9]8|
15756             989
15757           )\d{4}
15758         </nationalNumberPattern>
15759         <exampleNumber>6702345678</exampleNumber>
15760       </fixedLine>
15761       <mobile>
15762         <nationalNumberPattern>
15763           670(?:
15764             2(?:
15765               3[3-7]|
15766               56|
15767               8[5-8]
15768             )|
15769             32[1238]|
15770             4(?:
15771               33|
15772               8[348]
15773             )|
15774             5(?:
15775               32|
15776               55|
15777               88
15778             )|
15779             6(?:
15780               64|
15781               70|
15782               82
15783             )|
15784             78[589]|
15785             8[3-9]8|
15786             989
15787           )\d{4}
15788         </nationalNumberPattern>
15789         <exampleNumber>6702345678</exampleNumber>
15790       </mobile>
15791       <tollFree>
15792         <nationalNumberPattern>
15793           8(?:
15794             00|
15795             44|
15796             55|
15797             66|
15798             77|
15799             88
15800           )[2-9]\d{6}
15801         </nationalNumberPattern>
15802         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15803         <exampleNumber>8002123456</exampleNumber>
15804       </tollFree>
15805       <premiumRate>
15806         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15807         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15808         <exampleNumber>9002123456</exampleNumber>
15809       </premiumRate>
15810       <personalNumber>
15811         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15812         <nationalNumberPattern>
15813           5(?:
15814             00|
15815             33|
15816             44|
15817             66|
15818             77
15819           )[2-9]\d{6}
15820         </nationalNumberPattern>
15821         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15822         <exampleNumber>5002345678</exampleNumber>
15823       </personalNumber>
15824     </territory>
15825
15826     <!-- Martinique (French Dept. of) -->
15827     <territory id="MQ" countryCode="596" internationalPrefix="00"
15828                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15829       <references>
15830         <sourceUrl>http://www.itu.int/oth/T0202000086/en</sourceUrl>
15831         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0596&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
15832       </references>
15833       <availableFormats>
15834         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
15835           <format>$1 $2 $3 $4</format>
15836         </numberFormat>
15837       </availableFormats>
15838       <generalDesc>
15839         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15840         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15841       </generalDesc>
15842       <fixedLine>
15843         <nationalNumberPattern>
15844           596(?:
15845             0[2-5]|
15846             [12]0|
15847             3[05-9]|
15848             4[024-8]|
15849             [5-7]\d|
15850             89|
15851             9[4-8]
15852           )\d{4}
15853         </nationalNumberPattern>
15854         <exampleNumber>596301234</exampleNumber>
15855       </fixedLine>
15856       <mobile>
15857         <nationalNumberPattern>
15858           696(?:
15859             [0-479]\d|
15860             5[01]|
15861             8[0-689]
15862           )\d{4}
15863         </nationalNumberPattern>
15864         <exampleNumber>696201234</exampleNumber>
15865       </mobile>
15866       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
15867            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
15868            too. -->
15869     </territory>
15870
15871     <!-- Mauritania -->
15872     <territory id="MR" countryCode="222" internationalPrefix="00" >
15873       <references>
15874         <sourceUrl>http://www.itu.int/oth/T0202000087/en</sourceUrl>
15875         <sourceUrl>http://are.mr/pdfs/pnn2010.pdf</sourceUrl>
15876       </references>
15877       <availableFormats>
15878         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
15879           <format>$1 $2 $3 $4</format>
15880         </numberFormat>
15881       </availableFormats>
15882       <generalDesc>
15883         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
15884         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15885       </generalDesc>
15886       <fixedLine>
15887         <nationalNumberPattern>
15888           25[08]\d{5}|
15889           35\d{6}|
15890           45[1-7]\d{5}
15891         </nationalNumberPattern>
15892         <exampleNumber>35123456</exampleNumber>
15893       </fixedLine>
15894       <!-- Added "49\d" in response to https://github.com/googlei18n/libphonenumber/issues/529
15895            which might be overly permissive, but we don't have an official documentation for this
15896            and only a small number of numbers were found online. At least 492 and 495 are valid.
15897            -->
15898       <mobile>
15899         <nationalNumberPattern>
15900           (?:
15901             2(?:
15902               2\d|
15903               70
15904             )|
15905             3(?:
15906               3\d|
15907               6[1-36]|
15908               7[1-3]
15909             )|
15910             4(?:
15911               [49]\d|
15912               6[0457-9]|
15913               7[4-9]|
15914               8[01346-8]
15915             )
15916           )\d{5}
15917         </nationalNumberPattern>
15918         <exampleNumber>22123456</exampleNumber>
15919       </mobile>
15920       <tollFree>
15921         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15922         <exampleNumber>80012345</exampleNumber>
15923       </tollFree>
15924     </territory>
15925
15926     <!-- Montserrat -->
15927     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
15928                internationalPrefix="011">
15929       <references>
15930         <sourceUrl>http://www.itu.int/oth/T020200008F/en</sourceUrl>
15931       </references>
15932       <generalDesc>
15933         <!-- NANPA country - uses US formatting rules -->
15934         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15935         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15936       </generalDesc>
15937       <fixedLine>
15938         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
15939         <exampleNumber>6644912345</exampleNumber>
15940       </fixedLine>
15941       <mobile>
15942         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
15943         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15944         <exampleNumber>6644923456</exampleNumber>
15945       </mobile>
15946       <tollFree>
15947         <nationalNumberPattern>
15948           8(?:
15949             00|
15950             44|
15951             55|
15952             66|
15953             77|
15954             88
15955           )[2-9]\d{6}
15956         </nationalNumberPattern>
15957         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15958         <exampleNumber>8002123456</exampleNumber>
15959       </tollFree>
15960       <premiumRate>
15961         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15962         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15963         <exampleNumber>9002123456</exampleNumber>
15964       </premiumRate>
15965       <personalNumber>
15966         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15967         <nationalNumberPattern>
15968           5(?:
15969             00|
15970             33|
15971             44|
15972             66|
15973             77
15974           )[2-9]\d{6}
15975         </nationalNumberPattern>
15976         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15977         <exampleNumber>5002345678</exampleNumber>
15978       </personalNumber>
15979     </territory>
15980
15981     <!-- Malta -->
15982     <territory id="MT" countryCode="356" internationalPrefix="00" mobileNumberPortableRegion="true">
15983       <references>
15984         <sourceUrl>http://www.itu.int/oth/T0202000084/en</sourceUrl>
15985         <!-- Numbering link in the LHS menu - has more up-to-date allocations -->
15986         <sourceUrl>http://www.mca.org.mt</sourceUrl>
15987       </references>
15988       <availableFormats>
15989         <numberFormat pattern="(\d{4})(\d{4})">
15990           <format>$1 $2</format>
15991         </numberFormat>
15992       </availableFormats>
15993       <generalDesc>
15994         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
15995         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15996       </generalDesc>
15997       <fixedLine>
15998         <nationalNumberPattern>
15999           2(?:
16000             0(?:
16001               1[0-6]|
16002               3[1-4]|
16003               [69]\d
16004             )|
16005             [1-357]\d{2}
16006           )\d{4}
16007         </nationalNumberPattern>
16008         <exampleNumber>21001234</exampleNumber>
16009       </fixedLine>
16010       <mobile>
16011         <!-- 7210 and 92XX come from the allocations listed on http://www.mca.org.mt, but they are
16012              not listed in the latest ITU document. -->
16013         <nationalNumberPattern>
16014           (?:
16015             7(?:
16016               210|
16017               [79]\d{2}
16018             )|
16019             9(?:
16020               2(?:
16021                1[01]|
16022                31
16023               )|
16024               696|
16025               8(?:
16026                 1[1-3]|
16027                 89|
16028                 97
16029               )|
16030               9\d{2}
16031             )
16032           )\d{4}
16033         </nationalNumberPattern>
16034         <exampleNumber>96961234</exampleNumber>
16035       </mobile>
16036       <pager>
16037         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
16038         <exampleNumber>71171234</exampleNumber>
16039       </pager>
16040       <tollFree>
16041         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
16042         <exampleNumber>80071234</exampleNumber>
16043       </tollFree>
16044       <premiumRate>
16045         <nationalNumberPattern>
16046           5(?:
16047             0(?:
16048               0(?:
16049                 37|
16050                 43
16051               )|
16052               6\d{2}|
16053               70\d|
16054               9[0168]
16055             )|
16056             [12]\d0[1-5]
16057           )\d{3}
16058         </nationalNumberPattern>
16059         <exampleNumber>50037123</exampleNumber>
16060       </premiumRate>
16061       <voip>
16062         <!-- In the plan as Non-PATS ECS. -->
16063         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
16064         <exampleNumber>35501234</exampleNumber>
16065       </voip>
16066       <uan>
16067         <!-- Using this for governmental numbers. -->
16068         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
16069         <exampleNumber>50112345</exampleNumber>
16070       </uan>
16071     </territory>
16072
16073     <!-- Mauritius -->
16074     <!-- Preferred international prefix is expected to standardize on just '00' -->
16075     <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
16076                preferredInternationalPrefix="020">
16077       <references>
16078         <sourceUrl>http://www.icta.mu/telecommunications/numbering.htm</sourceUrl>
16079       </references>
16080       <availableFormats>
16081         <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
16082           <leadingDigits>[2-46-9]</leadingDigits>
16083           <format>$1 $2</format>
16084         </numberFormat>
16085         <numberFormat pattern="(5\d{3})(\d{4})">
16086           <leadingDigits>5</leadingDigits>
16087           <format>$1 $2</format>
16088         </numberFormat>
16089       </availableFormats>
16090       <generalDesc>
16091         <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
16092         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
16093       </generalDesc>
16094       <fixedLine>
16095         <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
16096         <nationalNumberPattern>
16097           (?:
16098             2(?:
16099               [03478]\d|
16100               1[0-7]|
16101               6[1-69]
16102             )|
16103             4(?:
16104               [013568]\d|
16105               2[4-7]
16106             )|
16107             5(?:
16108               44\d|
16109               471
16110             )|
16111             6\d{2}|
16112             8(?:
16113               14|
16114               3[129]
16115             )
16116           )\d{4}
16117         </nationalNumberPattern>
16118         <exampleNumber>2012345</exampleNumber>
16119       </fixedLine>
16120       <mobile>
16121         <nationalNumberPattern>
16122           5(?:
16123             2[59]\d|
16124             4(?:
16125               2[1-389]|
16126               4\d|
16127               7[1-9]|
16128               9\d
16129             )|
16130             7\d{2}|
16131             8(?:
16132               [256]\d|
16133               7[15-8]
16134             )|
16135             9[0-8]\d
16136           )\d{4}
16137         </nationalNumberPattern>
16138         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16139         <exampleNumber>52512345</exampleNumber>
16140       </mobile>
16141       <tollFree>
16142         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
16143         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16144         <exampleNumber>8001234</exampleNumber>
16145       </tollFree>
16146       <premiumRate>
16147         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
16148         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16149         <exampleNumber>3012345</exampleNumber>
16150       </premiumRate>
16151       <voip>
16152         <nationalNumberPattern>
16153           3(?:
16154             20|
16155             9\d
16156           )\d{4}
16157         </nationalNumberPattern>
16158         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16159         <exampleNumber>3201234</exampleNumber>
16160       </voip>
16161     </territory>
16162
16163     <!-- Maldives -->
16164     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
16165                preferredInternationalPrefix="00">
16166       <references>
16167         <sourceUrl>http://www.itu.int/oth/T0202000082/en</sourceUrl>
16168         <sourceUrl>http://www.dhiraagu.com.mv</sourceUrl>
16169       </references>
16170       <availableFormats>
16171         <numberFormat pattern="(\d{3})(\d{4})">
16172           <leadingDigits>
16173             [3467]|
16174             9(?:
16175               [1-9]|
16176               0[1-9]
16177             )
16178           </leadingDigits>
16179           <format>$1-$2</format>
16180         </numberFormat>
16181         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16182           <leadingDigits>900</leadingDigits>
16183           <format>$1 $2 $3</format>
16184         </numberFormat>
16185       </availableFormats>
16186       <generalDesc>
16187         <nationalNumberPattern>
16188           [3467]\d{6}|
16189           9(?:
16190             00\d{7}|
16191             \d{6}
16192           )
16193         </nationalNumberPattern>
16194         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16195       </generalDesc>
16196       <fixedLine>
16197         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
16198              diallable. -->
16199         <nationalNumberPattern>
16200           (?:
16201             3(?:
16202               0[01]|
16203               3[0-59]
16204             )|
16205             6(?:
16206               [567][02468]|
16207               8[024689]|
16208               90
16209             )
16210           )\d{4}
16211         </nationalNumberPattern>
16212         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16213         <exampleNumber>6701234</exampleNumber>
16214       </fixedLine>
16215       <mobile>
16216         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
16217              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
16218              91 was added based on information from Wataniya Telecom. -->
16219         <nationalNumberPattern>
16220           (?:
16221             46[46]|
16222             7[3-9]\d|
16223             9[16-9]\d
16224           )\d{4}
16225         </nationalNumberPattern>
16226         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16227         <exampleNumber>7712345</exampleNumber>
16228       </mobile>
16229       <pager>
16230         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
16231         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16232         <exampleNumber>7812345</exampleNumber>
16233       </pager>
16234       <premiumRate>
16235         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16236         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16237         <exampleNumber>9001234567</exampleNumber>
16238       </premiumRate>
16239     </territory>
16240
16241     <!-- Malawi -->
16242     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
16243          consistent in having one. -->
16244     <territory id="MW" countryCode="265" internationalPrefix="00"
16245                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16246       <references>
16247         <sourceUrl>http://www.itu.int/oth/T0202000080/en</sourceUrl>
16248       </references>
16249       <availableFormats>
16250         <numberFormat pattern="(\d)(\d{3})(\d{3})">
16251           <leadingDigits>1</leadingDigits>
16252           <format>$1 $2 $3</format>
16253         </numberFormat>
16254         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
16255           <leadingDigits>2</leadingDigits>
16256           <format>$1 $2 $3</format>
16257         </numberFormat>
16258         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16259           <leadingDigits>[1789]</leadingDigits>
16260           <format>$1 $2 $3 $4</format>
16261         </numberFormat>
16262       </availableFormats>
16263       <generalDesc>
16264         <nationalNumberPattern>
16265           (?:
16266             1(?:
16267               \d{2}
16268             )?|
16269             [2789]\d{2}
16270           )\d{6}
16271         </nationalNumberPattern>
16272         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
16273       </generalDesc>
16274       <fixedLine>
16275         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
16276              been found so this is being retained for now. It is possible however that these may be
16277              old-format mobile numbers. -->
16278         <nationalNumberPattern>
16279           (?:
16280             1[2-9]|
16281             21\d{2}
16282           )\d{5}
16283         </nationalNumberPattern>
16284         <exampleNumber>1234567</exampleNumber>
16285       </fixedLine>
16286       <mobile>
16287         <nationalNumberPattern>
16288           (?:
16289             111|
16290             77\d|
16291             88\d|
16292             99\d
16293           )\d{6}
16294         </nationalNumberPattern>
16295         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16296         <exampleNumber>991234567</exampleNumber>
16297       </mobile>
16298     </territory>
16299
16300     <!-- Mexico -->
16301     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
16302                nationalPrefix="01"
16303                nationalPrefixForParsing="0[12]|04[45](\d{10})"
16304                nationalPrefixTransformRule="1$1"
16305                nationalPrefixFormattingRule="$NP $FG"
16306                nationalPrefixOptionalWhenFormatting="true"
16307                leadingZeroPossible="true" mobileNumberPortableRegion="true">
16308       <references>
16309         <sourceUrl>http://www.itu.int/oth/T020200008A/en</sourceUrl>
16310         <sourceUrl>http://en.wikipedia.org/wiki/%2B52</sourceUrl>
16311         <sourceUrl>http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico</sourceUrl>
16312         <sourceUrl>http://en.wikipedia.org/wiki/Toll-free_telephone_number</sourceUrl>
16313       </references>
16314       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
16315            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
16316            numbers, regardless of whether they are written in international format (leading 1) or
16317            national format (leading 044/045), will be parsed into the same form. -->
16318       <availableFormats>
16319         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
16320           <leadingDigits>
16321             33|
16322             55|
16323             81
16324           </leadingDigits>
16325           <format>$1 $2 $3</format>
16326         </numberFormat>
16327         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16328           <leadingDigits>
16329             [2467]|
16330             3[12457-9]|
16331             5[89]|
16332             8[02-9]|
16333             9[0-35-9]
16334           </leadingDigits>
16335           <format>$1 $2 $3</format>
16336         </numberFormat>
16337         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
16338           <leadingDigits>
16339             1(?:
16340               33|
16341               55|
16342               81
16343             )
16344           </leadingDigits>
16345           <format>044 $2 $3 $4</format>
16346           <intlFormat>$1 $2 $3 $4</intlFormat>
16347         </numberFormat>
16348         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
16349           <leadingDigits>
16350             1(?:
16351               [2467]|
16352               3[12457-9]|
16353               5[89]|
16354               8[2-9]|
16355               9[1-35-9]
16356             )
16357           </leadingDigits>
16358           <format>044 $2 $3 $4</format>
16359           <intlFormat>$1 $2 $3 $4</intlFormat>
16360         </numberFormat>
16361       </availableFormats>
16362       <generalDesc>
16363         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
16364         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
16365       </generalDesc>
16366       <fixedLine>
16367         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
16368         <nationalNumberPattern>
16369           (?:
16370             33|
16371             55|
16372             81
16373           )\d{8}|
16374           (?:
16375             2(?:
16376               2[2-9]|
16377               3[1-35-8]|
16378               4[13-9]|
16379               7[1-689]|
16380               8[1-578]|
16381               9[467]
16382             )|
16383             3(?:
16384               1[1-79]|
16385               [2458][1-9]|
16386               7[1-8]|
16387               9[1-5]
16388             )|
16389             4(?:
16390               1[1-57-9]|
16391               [24-6][1-9]|
16392               [37][1-8]|
16393               8[1-35-9]|
16394               9[2-689]
16395             )|
16396             5(?:
16397               88|
16398               9[1-79]
16399             )|
16400             6(?:
16401               1[2-68]|
16402               [234][1-9]|
16403               5[1-3689]|
16404               6[12457-9]|
16405               7[1-7]|
16406               8[67]|
16407               9[4-8]
16408             )|
16409             7(?:
16410               [13467][1-9]|
16411               2[1-8]|
16412               5[13-9]|
16413               8[1-69]|
16414               9[17]
16415             )|
16416             8(?:
16417               2[13-689]|
16418               3[1-6]|
16419               4[124-6]|
16420               6[1246-9]|
16421               7[1-378]|
16422               9[12479]
16423             )|
16424             9(?:
16425               1[346-9]|
16426               2[1-4]|
16427               3[2-46-8]|
16428               5[1348]|
16429               [69][1-9]|
16430               7[12]|
16431               8[1-8]
16432             )
16433           )\d{7}
16434         </nationalNumberPattern>
16435         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16436         <exampleNumber>2221234567</exampleNumber>
16437       </fixedLine>
16438       <mobile>
16439         <nationalNumberPattern>
16440           1(?:
16441             (?:
16442               33|
16443               55|
16444               81
16445             )\d{8}|
16446             (?:
16447               2(?:
16448                 2[2-9]|
16449                 3[1-35-8]|
16450                 4[13-9]|
16451                 7[1-689]|
16452                 8[1-578]|
16453                 9[467]
16454               )|
16455               3(?:
16456                 1[1-79]|
16457                 [2458][1-9]|
16458                 7[1-8]|
16459                 9[1-5]
16460               )|
16461               4(?:
16462                 1[1-57-9]|
16463                 [24-6][1-9]|
16464                 [37][1-8]|
16465                 8[1-35-9]|
16466                 9[2-689]
16467               )|
16468               5(?:
16469                 88|
16470                 9[1-79]
16471               )|
16472               6(?:
16473                 1[2-68]|
16474                 [2-4][1-9]|
16475                 5[1-3689]|
16476                 6[12457-9]|
16477                 7[1-7]|
16478                 8[67]|
16479                 9[4-8]
16480               )|
16481               7(?:
16482                 [13467][1-9]|
16483                 2[1-8]|
16484                 5[13-9]|
16485                 8[1-69]|
16486                 9[17]
16487               )|
16488               8(?:
16489                 2[13-689]|
16490                 3[1-6]|
16491                 4[124-6]|
16492                 6[1246-9]|
16493                 7[1-378]|
16494                 9[12479]
16495               )|
16496               9(?:
16497                 1[346-9]|
16498                 2[1-4]|
16499                 3[2-46-8]|
16500                 5[1348]|
16501                 [69][1-9]|
16502                 7[12]|
16503                 8[1-8]
16504               )
16505             )\d{7}
16506           )
16507         </nationalNumberPattern>
16508         <possibleNumberPattern>\d{11}</possibleNumberPattern>
16509         <exampleNumber>12221234567</exampleNumber>
16510       </mobile>
16511       <tollFree>
16512         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
16513         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16514         <exampleNumber>8001234567</exampleNumber>
16515       </tollFree>
16516       <premiumRate>
16517         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16518         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16519         <exampleNumber>9001234567</exampleNumber>
16520       </premiumRate>
16521     </territory>
16522
16523     <!-- Malaysia -->
16524     <territory id="MY" countryCode="60" internationalPrefix="00"
16525                nationalPrefix="0" mobileNumberPortableRegion="true">
16526       <references>
16527         <sourceUrl>http://en.wikipedia.org/wiki/%2B60</sourceUrl>
16528         <sourceUrl>http://www.skmm.gov.my</sourceUrl>
16529       </references>
16530       <availableFormats>
16531         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16532           pattern="([4-79])(\d{3})(\d{4})">
16533           <leadingDigits>[4-79]</leadingDigits>
16534           <format>$1-$2 $3</format>
16535         </numberFormat>
16536         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16537           pattern="(3)(\d{4})(\d{4})">
16538           <leadingDigits>3</leadingDigits>
16539           <format>$1-$2 $3</format>
16540         </numberFormat>
16541         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16542           pattern="([18]\d)(\d{3})(\d{3,4})">
16543           <leadingDigits>
16544             1[02-46-9][1-9]|
16545             8
16546           </leadingDigits>
16547           <format>$1-$2 $3</format>
16548         </numberFormat>
16549         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
16550           <leadingDigits>1[36-8]0</leadingDigits>
16551           <format>$1-$2-$3-$4</format>
16552         </numberFormat>
16553         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16554           pattern="(11)(\d{4})(\d{4})">
16555           <leadingDigits>11</leadingDigits>
16556           <format>$1-$2 $3</format>
16557         </numberFormat>
16558         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16559           pattern="(15[49])(\d{3})(\d{4})">
16560           <leadingDigits>15</leadingDigits>
16561           <format>$1-$2 $3</format>
16562         </numberFormat>
16563       </availableFormats>
16564       <generalDesc>
16565         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
16566         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
16567       </generalDesc>
16568       <fixedLine>
16569         <nationalNumberPattern>
16570           (?:
16571             3[2-9]\d|
16572             [4-9][2-9]
16573           )\d{6}
16574         </nationalNumberPattern>
16575         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
16576         <exampleNumber>323456789</exampleNumber>
16577       </fixedLine>
16578       <mobile>
16579         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
16580              is possible to send SMSs (and receive them) from numbers in this block, so we are
16581              listing them as mobile. 115 was added based on numbers found online. -->
16582         <nationalNumberPattern>
16583           1(?:
16584             1[1-35]\d{2}|
16585             [02-4679][2-9]\d|
16586             59\d{2}|
16587             8(?:
16588               1[23]|
16589               [2-9]\d
16590             )
16591           )\d{5}
16592         </nationalNumberPattern>
16593         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
16594         <exampleNumber>123456789</exampleNumber>
16595       </mobile>
16596       <tollFree>
16597         <!-- http://www.skmm.gov.my/skmmgovmy/media/General/pdf/Special_Service_Number.pdf -->
16598         <nationalNumberPattern>1[378]00\d{6}</nationalNumberPattern>
16599         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16600         <exampleNumber>1300123456</exampleNumber>
16601       </tollFree>
16602       <premiumRate>
16603         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
16604         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16605         <exampleNumber>1600123456</exampleNumber>
16606       </premiumRate>
16607       <voip>
16608         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
16609         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16610         <exampleNumber>1541234567</exampleNumber>
16611       </voip>
16612     </territory>
16613
16614     <!-- Mozambique -->
16615     <territory id="MZ" countryCode="258" internationalPrefix="00">
16616       <references>
16617         <sourceUrl>http://www.itu.int/oth/T0202000091/en</sourceUrl>
16618       </references>
16619       <availableFormats>
16620         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
16621           <leadingDigits>
16622             2|
16623             8[2-7]
16624           </leadingDigits>
16625           <format>$1 $2 $3</format>
16626         </numberFormat>
16627         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
16628           <leadingDigits>80</leadingDigits>
16629           <format>$1 $2 $3</format>
16630         </numberFormat>
16631       </availableFormats>
16632       <generalDesc>
16633         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
16634         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16635       </generalDesc>
16636       <fixedLine>
16637         <nationalNumberPattern>
16638           2(?:
16639             [1346]\d|
16640             5[0-2]|
16641             [78][12]|
16642             93
16643           )\d{5}
16644         </nationalNumberPattern>
16645         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16646         <exampleNumber>21123456</exampleNumber>
16647       </fixedLine>
16648       <mobile>
16649         <nationalNumberPattern>8[23467]\d{7}</nationalNumberPattern>
16650         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16651         <exampleNumber>821234567</exampleNumber>
16652       </mobile>
16653       <tollFree>
16654         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
16655              examples. -->
16656         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
16657         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16658         <exampleNumber>800123456</exampleNumber>
16659       </tollFree>
16660       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
16661            a 9 are premium rate, but no online examples can be found of any of these so they are
16662            omitted for the time-being. -->
16663     </territory>
16664
16665     <!-- Namibia -->
16666     <territory id="NA" countryCode="264" internationalPrefix="00"
16667                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16668       <references>
16669         <sourceUrl>http://www.itu.int/oth/T0202000093/en</sourceUrl>
16670       </references>
16671       <availableFormats>
16672         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
16673           <leadingDigits>8[1235]</leadingDigits>
16674           <format>$1 $2 $3</format>
16675         </numberFormat>
16676         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
16677           <leadingDigits>6</leadingDigits>
16678           <format>$1 $2 $3</format>
16679         </numberFormat>
16680         <numberFormat pattern="(88)(\d{3})(\d{3})">
16681           <leadingDigits>88</leadingDigits>
16682           <format>$1 $2 $3</format>
16683         </numberFormat>
16684         <numberFormat pattern="(870)(\d{3})(\d{3})">
16685           <leadingDigits>870</leadingDigits>
16686           <format>$1 $2 $3</format>
16687         </numberFormat>
16688       </availableFormats>
16689       <generalDesc>
16690         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
16691         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16692       </generalDesc>
16693       <fixedLine>
16694         <!-- Includes VSAT service. -->
16695         <nationalNumberPattern>
16696           6(?:
16697             1(?:
16698               17|
16699               2(?:
16700                 [0189]\d|
16701                 [2-6]|
16702                 7\d?
16703               )|
16704               3(?:
16705                 [01378]|
16706                 2\d
16707               )|
16708               4[01]|
16709               69|
16710               7[014]
16711             )|
16712             2(?:
16713               17|
16714               5(?:
16715                 [0-36-8]|
16716                 4\d?
16717               )|
16718               69|
16719               70
16720             )|
16721             3(?:
16722               17|
16723               2(?:
16724                 [0237]\d?|
16725                 [14-689]
16726               )|
16727               34|
16728               6[29]|
16729               7[01]|
16730               81
16731             )|
16732             4(?:
16733               17|
16734               2(?:
16735                 [012]|
16736                 7?
16737               )|
16738               4(?:
16739                 [06]|
16740                 1\d
16741               )|
16742               5(?:
16743                 [01357]|
16744                 [25]\d?
16745               )|
16746               69|
16747               7[01]
16748             )|
16749             5(?:
16750               17|
16751               2(?:
16752                 [0459]|
16753                 [23678]\d?
16754               )|
16755               69|
16756               7[01]
16757             )|
16758             6(?:
16759               17|
16760               2(?:
16761                 5|
16762                 6\d?
16763               )|
16764               38|
16765               42|
16766               69|
16767               7[01]
16768             )|
16769             7(?:
16770               17|
16771               2(?:
16772                 [569]|
16773                 [234]\d?
16774               )|
16775               3(?:
16776                 0\d?|
16777                 [13]
16778               )|
16779               69|
16780               7[01]
16781             )
16782           )\d{4}
16783         </nationalNumberPattern>
16784         <exampleNumber>61221234</exampleNumber>
16785       </fixedLine>
16786       <mobile>
16787         <!-- Includes the Switch CDMA Service. -->
16788         <nationalNumberPattern>
16789           (?:
16790             60|
16791             8[125]
16792           )\d{7}
16793         </nationalNumberPattern>
16794         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16795         <exampleNumber>811234567</exampleNumber>
16796       </mobile>
16797       <premiumRate>
16798         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
16799         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16800         <exampleNumber>870123456</exampleNumber>
16801       </premiumRate>
16802       <voip>
16803         <!-- Including virtual telephone and VOIP services. -->
16804         <nationalNumberPattern>
16805           8(?:
16806             3\d{2}|
16807             86
16808           )\d{5}
16809         </nationalNumberPattern>
16810         <exampleNumber>88612345</exampleNumber>
16811       </voip>
16812     </territory>
16813
16814     <!-- New Caledonia (Territoire français d'outre-mer) -->
16815     <territory id="NC" countryCode="687" internationalPrefix="00">
16816       <references>
16817         <sourceUrl>http://www.itu.int/oth/T0202000098/en</sourceUrl>
16818         <sourceUrl>http://www.opt.nc</sourceUrl>
16819       </references>
16820       <availableFormats>
16821         <!-- From http://www.1012.nc, the local yellow pages. -->
16822         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
16823           <!-- We exclude short-codes here so they are formatted as a block -->
16824           <leadingDigits>
16825             [2-46-9]|
16826             5[0-4]
16827           </leadingDigits>
16828           <format>$1.$2.$3</format>
16829         </numberFormat>
16830       </availableFormats>
16831       <generalDesc>
16832         <nationalNumberPattern>[2-57-9]\d{5}</nationalNumberPattern>
16833         <possibleNumberPattern>\d{6}</possibleNumberPattern>
16834       </generalDesc>
16835       <fixedLine>
16836         <!-- Including the 88 prefix for public payphones. -->
16837         <nationalNumberPattern>
16838           (?:
16839             2[03-9]|
16840             3[0-5]|
16841             4[1-7]|
16842             88
16843           )\d{4}
16844         </nationalNumberPattern>
16845         <exampleNumber>201234</exampleNumber>
16846       </fixedLine>
16847       <mobile>
16848         <nationalNumberPattern>
16849           (?:
16850             5[0-4]|
16851             [79]\d|
16852             8[0-79]
16853           )\d{4}
16854         </nationalNumberPattern>
16855         <exampleNumber>751234</exampleNumber>
16856       </mobile>
16857       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
16858       <!-- Note that OPT lists 3631 as a free short number for caller ID services, but the ITU
16859            document says that all 36 numbers are 6 digits. See ShortNumberMetadata.xml for more. -->
16860       <premiumRate>
16861         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
16862         <exampleNumber>366711</exampleNumber>
16863       </premiumRate>
16864     </territory>
16865
16866     <!-- Niger -->
16867     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
16868       <references>
16869         <sourceUrl>http://www.itu.int/oth/T020200009B/en</sourceUrl>
16870       </references>
16871       <availableFormats>
16872         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
16873           <leadingDigits>
16874             [289]|
16875             09
16876           </leadingDigits>
16877           <format>$1 $2 $3 $4</format>
16878         </numberFormat>
16879         <numberFormat pattern="(08)(\d{3})(\d{3})">
16880           <leadingDigits>08</leadingDigits>
16881           <format>$1 $2 $3</format>
16882         </numberFormat>
16883       </availableFormats>
16884       <generalDesc>
16885         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
16886         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16887       </generalDesc>
16888       <fixedLine>
16889         <!-- Adding 20 61 from online numbers. -->
16890         <nationalNumberPattern>
16891           2(?:
16892             0(?:
16893               20|
16894               3[1-7]|
16895               4[134]|
16896               5[14]|
16897               6[14578]|
16898               7[1-578]
16899             )|
16900             1(?:
16901               4[145]|
16902               5[14]|
16903               6[14-68]|
16904               7[169]|
16905               88
16906             )
16907           )\d{4}
16908         </nationalNumberPattern>
16909         <exampleNumber>20201234</exampleNumber>
16910       </fixedLine>
16911       <mobile>
16912         <!-- Added 90, 91, 92, 95, 97, 98 & 99 from online data. Airtel have confirmed that they use the
16913              89 and 97 prefixes, and Orange use 92. MOOV started using 95 in Jan 2014. -->
16914         <nationalNumberPattern>
16915           (?:
16916             89|
16917             9\d
16918           )\d{6}
16919         </nationalNumberPattern>
16920         <exampleNumber>93123456</exampleNumber>
16921       </mobile>
16922       <tollFree>
16923         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
16924         <exampleNumber>08123456</exampleNumber>
16925       </tollFree>
16926       <premiumRate>
16927         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
16928         <exampleNumber>09123456</exampleNumber>
16929       </premiumRate>
16930     </territory>
16931
16932     <!-- Norfolk Island -->
16933     <!-- Including numbers for Australian Antarctic stations. -->
16934     <territory id="NF" countryCode="672" internationalPrefix="00">
16935       <references>
16936         <sourceUrl>http://www.itu.int/oth/T020200009D/en</sourceUrl>
16937       </references>
16938       <availableFormats>
16939         <numberFormat pattern="(\d{2})(\d{4})">
16940            <leadingDigits>1</leadingDigits>
16941           <format>$1 $2</format>
16942         </numberFormat>
16943         <numberFormat pattern="(\d)(\d{5})">
16944           <leadingDigits>3</leadingDigits>
16945           <format>$1 $2</format>
16946         </numberFormat>
16947       </availableFormats>
16948       <generalDesc>
16949         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
16950         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
16951       </generalDesc>
16952       <fixedLine>
16953         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
16954              connect after we tried calling them. -->
16955         <nationalNumberPattern>
16956           (?:
16957             1(?:
16958               06|
16959               17|
16960               28|
16961               39
16962             )|
16963             3[012]\d
16964           )\d{3}
16965         </nationalNumberPattern>
16966         <exampleNumber>106609</exampleNumber>
16967       </fixedLine>
16968       <mobile>
16969         <!-- Numbers found online with prefix 35. -->
16970         <nationalNumberPattern>3[58]\d{4}</nationalNumberPattern>
16971         <exampleNumber>381234</exampleNumber>
16972       </mobile>
16973     </territory>
16974
16975     <!-- Nigeria -->
16976     <territory id="NG" countryCode="234" internationalPrefix="009"
16977                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
16978                mobileNumberPortableRegion="true">
16979       <references>
16980         <sourceUrl>http://www.itu.int/oth/T020200009C/en</sourceUrl>
16981       </references>
16982       <availableFormats>
16983         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
16984           <leadingDigits>[129]</leadingDigits>
16985           <format>$1 $2 $3</format>
16986         </numberFormat>
16987         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
16988           <leadingDigits>
16989             [3-6]|
16990             7(?:
16991               [1-79]|
16992               0[1-9]
16993             )|
16994             8[2-9]
16995           </leadingDigits>
16996           <format>$1 $2 $3</format>
16997         </numberFormat>
16998         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
16999           <leadingDigits>
17000             70|
17001             8[01]|
17002             90[2359]
17003           </leadingDigits>
17004           <format>$1 $2 $3</format>
17005         </numberFormat>
17006         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17007           <leadingDigits>[78]00</leadingDigits>
17008           <format>$1 $2 $3</format>
17009         </numberFormat>
17010         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
17011           <leadingDigits>[78]00</leadingDigits>
17012           <format>$1 $2 $3</format>
17013         </numberFormat>
17014         <numberFormat pattern="(78)(\d{2})(\d{3})">
17015           <leadingDigits>78</leadingDigits>
17016           <format>$1 $2 $3</format>
17017         </numberFormat>
17018       </availableFormats>
17019       <generalDesc>
17020         <nationalNumberPattern>
17021           [1-6]\d{5,8}|
17022           9\d{5,9}|
17023           [78]\d{5,13}
17024         </nationalNumberPattern>
17025         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
17026       </generalDesc>
17027       <fixedLine>
17028         <nationalNumberPattern>
17029           [12]\d{6,7}|
17030           9(?:
17031             0[3-9]|
17032             [1-9]\d
17033           )\d{5}|
17034           (?:
17035             3\d|
17036             4[023568]|
17037             5[02368]|
17038             6[02-469]|
17039             7[4-69]|
17040             8[2-9]
17041           )\d{6}|
17042           (?:
17043             4[47]|
17044             5[14579]|
17045             6[1578]|
17046             7[0-357]
17047           )\d{5,6}|
17048           (?:
17049             78|
17050             41
17051           )\d{5}
17052         </nationalNumberPattern>
17053         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
17054         <exampleNumber>12345678</exampleNumber>
17055       </fixedLine>
17056       <mobile>
17057         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17058              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17059              Starcomms have apparently, according to the company, been used for mobile numbers too,
17060              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17061              903 has been added for MTN, 905 has been added for Globacom (Glo), and 909 has been
17062              added for Etisalat. -->
17063         <nationalNumberPattern>
17064           (?:
17065             1(?:
17066               7[34]\d|
17067               8(?:
17068                 04|
17069                 [124579]\d|
17070                 8[0-3]
17071               )|
17072               95\d
17073             )|
17074             287[0-7]|
17075             3(?:
17076               18[1-8]|
17077               88[0-7]|
17078               9(?:
17079                 8[5-9]|
17080                 6[1-5]
17081               )
17082             )|
17083             4(?:
17084               28[0-2]|
17085               6(?:
17086                 7[1-9]|
17087                 8[02-47]
17088               )|
17089               88[0-2]
17090             )|
17091             5(?:
17092               2(?:
17093                 7[7-9]|
17094                 8\d
17095               )|
17096               38[1-79]|
17097               48[0-7]|
17098               68[4-7]
17099             )|
17100             6(?:
17101               2(?:
17102                 7[7-9]|
17103                 8\d
17104               )|
17105               4(?:
17106                 3[7-9]|
17107                 [68][129]|
17108                 7[04-69]|
17109                 9[1-8]
17110               )|
17111               58[0-2]|
17112               98[7-9]
17113             )|
17114             7(?:
17115               38[0-7]|
17116               69[1-8]|
17117               78[2-4]
17118             )|
17119             8(?:
17120               28[3-9]|
17121               38[0-2]|
17122               4(?:
17123                 2[12]|
17124                 3[147-9]|
17125                 5[346]|
17126                 7[4-9]|
17127                 8[014-689]|
17128                 90
17129               )|
17130               58[1-8]|
17131               78[2-9]|
17132               88[5-7]
17133             )|
17134             98[07]\d
17135           )\d{4}|
17136           (?:
17137             70(?:
17138               [13-9]\d|
17139               2[1-9]
17140             )|
17141             8(?:
17142               0[2-9]|
17143               1\d
17144             )\d|
17145             90[2359]\d
17146           )\d{6}
17147         </nationalNumberPattern>
17148         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17149         <exampleNumber>8021234567</exampleNumber>
17150       </mobile>
17151       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
17152       <tollFree>
17153         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
17154         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17155         <exampleNumber>80017591759</exampleNumber>
17156       </tollFree>
17157       <uan>
17158         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
17159         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17160         <exampleNumber>7001234567</exampleNumber>
17161       </uan>
17162     </territory>
17163
17164     <!-- Nicaragua -->
17165     <territory id="NI" countryCode="505" internationalPrefix="00">
17166       <references>
17167         <sourceUrl>http://www.itu.int/oth/T020200009A/en</sourceUrl>
17168       </references>
17169       <availableFormats>
17170         <numberFormat pattern="(\d{4})(\d{4})">
17171           <format>$1 $2</format>
17172         </numberFormat>
17173       </availableFormats>
17174       <generalDesc>
17175         <nationalNumberPattern>[12578]\d{7}</nationalNumberPattern>
17176         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17177       </generalDesc>
17178       <fixedLine>
17179         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
17180         <exampleNumber>21234567</exampleNumber>
17181       </fixedLine>
17182       <mobile>
17183         <!-- 55[0-7], 57, 58 and 7[5-8] were added from bug reports/numbers found online. -->
17184         <nationalNumberPattern>
17185           5(?:
17186             5[0-7]\d{5}|
17187             [78]\d{6}
17188           )|
17189           7[5-8]\d{6}|
17190           8\d{7}
17191         </nationalNumberPattern>
17192         <exampleNumber>81234567</exampleNumber>
17193       </mobile>
17194       <tollFree>
17195         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
17196         <exampleNumber>18001234</exampleNumber>
17197       </tollFree>
17198     </territory>
17199
17200     <!-- Netherlands -->
17201     <territory id="NL" countryCode="31" internationalPrefix="00"
17202                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17203                mobileNumberPortableRegion="true">
17204       <references>
17205         <sourceUrl>http://en.wikipedia.org/wiki/%2B31</sourceUrl>
17206         <sourceUrl>http://www.opta.nl/en/numbers/search-for-numbers</sourceUrl>
17207       </references>
17208       <availableFormats>
17209         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
17210           <leadingDigits>
17211             1[035]|
17212             2[0346]|
17213             3[03568]|
17214             4[0356]|
17215             5[0358]|
17216             7|
17217             8[4578]
17218           </leadingDigits>
17219           <format>$1 $2 $3</format>
17220         </numberFormat>
17221         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
17222           <leadingDigits>
17223             1[16-8]|
17224             2[259]|
17225             3[124]|
17226             4[17-9]|
17227             5[124679]
17228           </leadingDigits>
17229           <format>$1 $2 $3</format>
17230         </numberFormat>
17231         <numberFormat pattern="(6)(\d{8})">
17232           <leadingDigits>6[0-57-9]</leadingDigits>
17233           <format>$1 $2</format>
17234         </numberFormat>
17235         <numberFormat pattern="(66)(\d{7})">
17236           <leadingDigits>66</leadingDigits>
17237           <format>$1 $2</format>
17238         </numberFormat>
17239         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
17240           <leadingDigits>14</leadingDigits>
17241           <format>$1 $2</format>
17242         </numberFormat>
17243         <numberFormat pattern="([89]0\d)(\d{4,7})">
17244           <leadingDigits>
17245             80|
17246             9
17247           </leadingDigits>
17248           <format>$1 $2</format>
17249         </numberFormat>
17250       </availableFormats>
17251       <generalDesc>
17252         <nationalNumberPattern>
17253           1\d{4,8}|
17254           [2-7]\d{8}|
17255           [89]\d{6,9}
17256         </nationalNumberPattern>
17257         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
17258       </generalDesc>
17259       <noInternationalDialling>
17260         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
17261         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17262       </noInternationalDialling>
17263       <fixedLine>
17264         <nationalNumberPattern>
17265           (?:
17266             1[0135-8]|
17267             2[02-69]|
17268             3[0-68]|
17269             4[0135-9]|
17270             [57]\d|
17271             8[478]
17272           )\d{7}
17273         </nationalNumberPattern>
17274         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17275         <exampleNumber>101234567</exampleNumber>
17276       </fixedLine>
17277       <mobile>
17278         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
17279         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17280         <exampleNumber>612345678</exampleNumber>
17281       </mobile>
17282       <pager>
17283         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
17284         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17285         <exampleNumber>662345678</exampleNumber>
17286       </pager>
17287       <tollFree>
17288         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
17289         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17290         <exampleNumber>8001234</exampleNumber>
17291       </tollFree>
17292       <premiumRate>
17293         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
17294         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17295         <exampleNumber>9061234</exampleNumber>
17296       </premiumRate>
17297       <voip>
17298         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
17299         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17300         <exampleNumber>851234567</exampleNumber>
17301       </voip>
17302       <uan>
17303         <!-- These numbers are used for local government. They are formed by the appending the local
17304              dialling code (including the national prefix 0) after the leading digits "14". -->
17305         <nationalNumberPattern>
17306           140(?:
17307             1(?:
17308               [035]|
17309               [16-8]\d
17310             )|
17311             2(?:
17312               [0346]|
17313               [259]\d
17314             )|
17315             3(?:
17316               [03568]|
17317               [124]\d
17318             )|
17319             4(?:
17320               [0356]|
17321               [17-9]\d
17322             )|
17323             5(?:
17324               [0358]|
17325               [124679]\d
17326             )|
17327             7\d|
17328             8[458]
17329           )
17330         </nationalNumberPattern>
17331         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17332         <exampleNumber>14020</exampleNumber>
17333       </uan>
17334     </territory>
17335
17336     <!-- Norway -->
17337     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
17338     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
17339                mainCountryForCode="true" mobileNumberPortableRegion="true">
17340       <references>
17341         <sourceUrl>http://www.npt.no/npt/numsys/E.164.pdf</sourceUrl>
17342       </references>
17343       <availableFormats>
17344         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
17345           <leadingDigits>[489]</leadingDigits>
17346           <format>$1 $2 $3</format>
17347         </numberFormat>
17348         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
17349           <leadingDigits>[235-7]</leadingDigits>
17350           <format>$1 $2 $3 $4</format>
17351         </numberFormat>
17352       </availableFormats>
17353       <generalDesc>
17354         <nationalNumberPattern>
17355           0\d{4}|
17356           [2-9]\d{7}
17357         </nationalNumberPattern>
17358         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
17359       </generalDesc>
17360       <fixedLine>
17361         <!-- Excludes Svalbard fixed-line numbers. -->
17362         <nationalNumberPattern>
17363           (?:
17364             2[1-4]|
17365             3[1-3578]|
17366             5[1-35-7]|
17367             6[1-4679]|
17368             7[0-8]
17369           )\d{6}
17370         </nationalNumberPattern>
17371         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17372         <exampleNumber>21234567</exampleNumber>
17373       </fixedLine>
17374       <mobile>
17375         <nationalNumberPattern>
17376           (?:
17377             4[015-8]|
17378             5[89]|
17379             9\d
17380           )\d{6}
17381         </nationalNumberPattern>
17382         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17383         <exampleNumber>40612345</exampleNumber>
17384       </mobile>
17385       <tollFree>
17386         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
17387         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17388         <exampleNumber>80012345</exampleNumber>
17389       </tollFree>
17390       <premiumRate>
17391         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
17392         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17393         <exampleNumber>82012345</exampleNumber>
17394       </premiumRate>
17395       <sharedCost>
17396         <nationalNumberPattern>
17397           810(?:
17398             0[0-6]|
17399             [2-8]\d
17400           )\d{3}
17401         </nationalNumberPattern>
17402         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17403         <exampleNumber>81021234</exampleNumber>
17404       </sharedCost>
17405       <personalNumber>
17406         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
17407         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17408         <exampleNumber>88012345</exampleNumber>
17409       </personalNumber>
17410       <voip>
17411         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
17412         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17413         <exampleNumber>85012345</exampleNumber>
17414       </voip>
17415       <uan>
17416         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
17417         <nationalNumberPattern>
17418           0\d{4}|
17419           81(?:
17420             0(?:
17421               0[7-9]|
17422               1\d
17423             )|
17424             5\d{2}
17425           )\d{3}
17426         </nationalNumberPattern>
17427         <exampleNumber>01234</exampleNumber>
17428       </uan>
17429       <voicemail>
17430         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
17431         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17432         <exampleNumber>81212345</exampleNumber>
17433       </voicemail>
17434     </territory>
17435
17436     <!-- Nepal -->
17437     <territory id="NP" countryCode="977" internationalPrefix="00"
17438                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17439       <references>
17440         <sourceUrl>http://www.itu.int/oth/T0202000095/en</sourceUrl>
17441         <sourceUrl>http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php</sourceUrl>
17442         <sourceUrl>http://www.nta.gov.np/en/2012-06-01-11-45-17/2012-06-04-04-26-59/numbering-plan</sourceUrl>
17443       </references>
17444       <availableFormats>
17445         <!-- Formatting patterns taken from pages like http://www.nepalgov.gov.np -->
17446         <numberFormat pattern="(1)(\d{7})">
17447           <leadingDigits>1[2-6]</leadingDigits>
17448           <format>$1-$2</format>
17449         </numberFormat>
17450         <numberFormat pattern="(\d{2})(\d{6})">
17451           <leadingDigits>
17452             1[01]|
17453             [2-8]|
17454             9(?:
17455               [1-69]|
17456               7[15-9]
17457             )
17458           </leadingDigits>
17459           <format>$1-$2</format>
17460         </numberFormat>
17461         <numberFormat pattern="(9\d{2})(\d{7})">
17462           <leadingDigits>
17463             9(?:
17464               6[013]|
17465               7[245]|
17466               8
17467             )
17468             </leadingDigits>
17469           <format>$1-$2</format>
17470         </numberFormat>
17471       </availableFormats>
17472       <generalDesc>
17473         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
17474              numbers that have the country code prefixed. -->
17475         <nationalNumberPattern>
17476           [1-8]\d{7}|
17477           9(?:
17478             [1-69]\d{6,8}|
17479             7[2-6]\d{5,7}|
17480             8\d{8}
17481           )
17482         </nationalNumberPattern>
17483         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17484       </generalDesc>
17485       <!-- We don't support Rural Telecommunication Service at the moment since
17486            we are not sure what type it is. -->
17487       <fixedLine>
17488         <nationalNumberPattern>
17489           (?:
17490             1[0-6]\d|
17491             2[13-79][2-6]|
17492             3[135-8][2-6]|
17493             4[146-9][2-6]|
17494             5[135-7][2-6]|
17495             6[13-9][2-6]|
17496             7[15-9][2-6]|
17497             8[1-46-9][2-6]|
17498             9[1-79][2-6]
17499           )\d{5}
17500         </nationalNumberPattern>
17501         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17502         <exampleNumber>14567890</exampleNumber>
17503       </fixedLine>
17504       <mobile>
17505         <nationalNumberPattern>
17506           9(?:
17507             6[013]|
17508             7[245]|
17509             8[01456]
17510           )\d{7}
17511         </nationalNumberPattern>
17512         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17513         <exampleNumber>9841234567</exampleNumber>
17514       </mobile>
17515       <!-- No information on other types of phone numbers for Nepal has been found. -->
17516     </territory>
17517
17518     <!-- Nauru -->
17519     <territory id="NR" countryCode="674" internationalPrefix="00">
17520       <references>
17521         <sourceUrl>http://www.itu.int/oth/T0202000094/en</sourceUrl>
17522         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru</sourceUrl>
17523       </references>
17524       <availableFormats>
17525         <numberFormat pattern="(\d{3})(\d{4})">
17526           <format>$1 $2</format>
17527         </numberFormat>
17528       </availableFormats>
17529       <generalDesc>
17530         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
17531         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17532       </generalDesc>
17533       <fixedLine>
17534         <nationalNumberPattern>
17535           (?:
17536             444|
17537             888
17538           )\d{4}
17539         </nationalNumberPattern>
17540         <exampleNumber>4441234</exampleNumber>
17541       </fixedLine>
17542       <mobile>
17543         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
17544         <exampleNumber>5551234</exampleNumber>
17545       </mobile>
17546     </territory>
17547
17548     <!-- Niue -->
17549     <territory id="NU" countryCode="683" internationalPrefix="00">
17550       <references>
17551         <sourceUrl>http://www.itu.int/oth/T02020000EC/en</sourceUrl>
17552         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue</sourceUrl>
17553       </references>
17554       <!-- Numbers are always formatted as a block. -->
17555       <generalDesc>
17556         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
17557         <possibleNumberPattern>\d{4}</possibleNumberPattern>
17558       </generalDesc>
17559       <fixedLine>
17560         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
17561         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
17562         <exampleNumber>4002</exampleNumber>
17563       </fixedLine>
17564       <mobile>
17565         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
17566         <exampleNumber>1234</exampleNumber>
17567       </mobile>
17568     </territory>
17569
17570     <!-- New Zealand -->
17571     <!-- Includes Ross Dependency, Antarctica -->
17572     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
17573          numbers and 050 "Nation-Wide Service". -->
17574     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
17575                preferredInternationalPrefix="00" nationalPrefix="0"
17576                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
17577       <references>
17578         <sourceUrl>http://www.itu.int/oth/T0202000099/en</sourceUrl>
17579       </references>
17580       <availableFormats>
17581         <!-- Pattern for fixed-line formats. -->
17582         <numberFormat pattern="([34679])(\d{3})(\d{4})">
17583           <leadingDigits>
17584             [3467]|
17585             9[1-9]
17586           </leadingDigits>
17587           <format>$1-$2 $3</format>
17588         </numberFormat>
17589         <!-- Area code for NZ's Scott Base, in Antarctica. -->
17590         <numberFormat pattern="(24099)(\d{3})">
17591           <leadingDigits>240</leadingDigits>
17592           <leadingDigits>2409</leadingDigits>
17593           <leadingDigits>24099</leadingDigits>
17594           <format>$1 $2</format>
17595         </numberFormat>
17596         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
17597              length. -->
17598         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
17599         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
17600           <leadingDigits>21</leadingDigits>
17601           <format>$1 $2 $3</format>
17602         </numberFormat>
17603         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
17604         <numberFormat pattern="(\d{2})(\d{3})(\d{3,5})">
17605           <leadingDigits>
17606             2(?:
17607               1[1-9]|
17608               [69]|
17609               7[0-35-9]
17610             )|
17611             86
17612           </leadingDigits>
17613           <format>$1 $2 $3</format>
17614         </numberFormat>
17615         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
17616              than writing the first group as 022X based on Google web searches, and is used by
17617              2Degrees themselves. See formatting on http://www.2degreesmobile.co.nz for an example
17618              of the latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
17619         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
17620           <leadingDigits>2[028]</leadingDigits>
17621           <format>$1 $2 $3</format>
17622         </numberFormat>
17623         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17624           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900. -->
17625           <leadingDigits>
17626             2(?:
17627               10|
17628               74
17629             )|
17630             5|
17631             [89]0
17632           </leadingDigits>
17633           <format>$1 $2 $3</format>
17634         </numberFormat>
17635       </availableFormats>
17636       <generalDesc>
17637         <nationalNumberPattern>
17638           6[235-9]\d{6}|
17639           [2-57-9]\d{7,10}
17640         </nationalNumberPattern>
17641         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
17642       </generalDesc>
17643       <fixedLine>
17644         <!-- 07 788 was assigned to Voxbox according to
17645              http://www.nad.org.nz/07GeographicalCodes.php -->
17646         <nationalNumberPattern>
17647           (?:
17648             3[2-79]|
17649             [49][2-689]|
17650             6[235-9]|
17651             7[2-5789]
17652           )\d{6}|
17653           24099\d{3}
17654         </nationalNumberPattern>
17655         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17656         <exampleNumber>32345678</exampleNumber>
17657       </fixedLine>
17658       <mobile>
17659         <!-- Includes mobile radio service numbers (e.g. TeamTalk). The lengths of numbers with
17660              prefix 21 are different from what's specified in the ITU doc, because of numbers found
17661              online. -->
17662         <nationalNumberPattern>
17663           2(?:
17664             [028]\d{7,8}|
17665             1(?:
17666               [03]\d{5,7}|
17667               [12457]\d{5,6}|
17668               [689]\d{5}
17669             )|
17670             [79]\d{7}
17671           )
17672         </nationalNumberPattern>
17673         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17674         <exampleNumber>211234567</exampleNumber>
17675       </mobile>
17676       <pager>
17677         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
17678         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17679         <exampleNumber>26123456</exampleNumber>
17680       </pager>
17681       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
17682            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
17683            not covered, as telecom companies don't seem to support them yet. -->
17684       <tollFree>
17685         <nationalNumberPattern>
17686           508\d{6,7}|
17687           80\d{6,8}
17688         </nationalNumberPattern>
17689         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17690         <exampleNumber>800123456</exampleNumber>
17691       </tollFree>
17692       <premiumRate>
17693         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
17694         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
17695         <exampleNumber>900123456</exampleNumber>
17696       </premiumRate>
17697     </territory>
17698
17699     <!-- Oman -->
17700     <territory id="OM" countryCode="968" internationalPrefix="00" mobileNumberPortableRegion="true">
17701       <references>
17702         <sourceUrl>http://www.itu.int/oth/T020200009F/en</sourceUrl>
17703       </references>
17704       <availableFormats>
17705         <numberFormat pattern="(2\d)(\d{6})">
17706           <leadingDigits>2</leadingDigits>
17707           <format>$1 $2</format>
17708         </numberFormat>
17709         <numberFormat pattern="(9\d{3})(\d{4})">
17710           <leadingDigits>9</leadingDigits>
17711           <format>$1 $2</format>
17712         </numberFormat>
17713         <numberFormat pattern="([58]00)(\d{4,6})">
17714           <leadingDigits>[58]</leadingDigits>
17715           <format>$1 $2</format>
17716         </numberFormat>
17717       </availableFormats>
17718       <generalDesc>
17719         <nationalNumberPattern>
17720           (?:
17721             2[2-6]|
17722             5|
17723             9[1-9]
17724           )\d{6}|
17725           800\d{5,6}
17726         </nationalNumberPattern>
17727         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17728       </generalDesc>
17729       <fixedLine>
17730         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
17731         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17732         <exampleNumber>23123456</exampleNumber>
17733       </fixedLine>
17734       <mobile>
17735         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
17736         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17737         <exampleNumber>92123456</exampleNumber>
17738       </mobile>
17739       <tollFree>
17740         <!-- Link to document about toll-free numbers on http://www.tra.gov.om, which suggests they
17741              should be 8007 followed by 4 digits. However, the only examples I can find, including
17742              the customer help line for the main telephony company there (omantel), is 8007 followed
17743              by 5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to
17744              offer international toll-free dialing numbers - +968 500 1300 for international help
17745              desk for omantel, for example. -->
17746         <nationalNumberPattern>
17747           8007\d{4,5}|
17748           500\d{4}
17749         </nationalNumberPattern>
17750         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17751         <exampleNumber>80071234</exampleNumber>
17752       </tollFree>
17753       <!-- No premiumRate information can be found. -->
17754     </territory>
17755
17756     <!-- Panama -->
17757     <territory id="PA" countryCode="507" internationalPrefix="00" mobileNumberPortableRegion="true">
17758       <references>
17759         <!-- Last read July 9, 2014. -->
17760         <sourceUrl>http://www.asep.gob.pa/telecom/pnn/default.asp</sourceUrl>
17761         <!-- Omits the fact that mobile phones are 8 digits long. -->
17762         <sourceUrl>http://en.wikipedia.org/wiki/%2B507</sourceUrl>
17763       </references>
17764       <availableFormats>
17765         <numberFormat pattern="(\d{3})(\d{4})">
17766           <leadingDigits>[1-57-9]</leadingDigits>
17767           <format>$1-$2</format>
17768         </numberFormat>
17769         <numberFormat pattern="(\d{4})(\d{4})">
17770           <leadingDigits>6</leadingDigits>
17771           <format>$1-$2</format>
17772         </numberFormat>
17773       </availableFormats>
17774       <generalDesc>
17775         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
17776         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17777       </generalDesc>
17778       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
17779            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
17780       <fixedLine>
17781         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
17782              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
17783         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
17784              proved to be diallable. -->
17785         <nationalNumberPattern>
17786           (?:
17787             1(?:
17788               0[02-579]|
17789               19|
17790               2[37]|
17791               3[03]|
17792               4[479]|
17793               57|
17794               65|
17795               7[016-8]|
17796               8[58]|
17797               9[1349]
17798             )|
17799             2(?:
17800               [0235679]\d|
17801               1[0-7]|
17802               4[04-9]|
17803               8[028]
17804             )|
17805             3(?:
17806               [09]\d|
17807               1[14-7]|
17808               2[0-3]|
17809               3[03]|
17810               4[0457]|
17811               5[56]|
17812               6[068]|
17813               7[06-8]|
17814               8[089]
17815             )|
17816             4(?:
17817               3[013-69]|
17818               4\d|
17819               7[0-689]
17820             )|
17821             5(?:
17822               [01]\d|
17823               2[0-7]|
17824               [56]0|
17825               79
17826             )|
17827             7(?:
17828               0[09]|
17829               2[0-267]|
17830               3[06]|
17831               [49]0|
17832               5[06-9]|
17833               7[0-24-7]|
17834               8[89]
17835             )|
17836             8(?:
17837               [34]\d|
17838               5[0-4]|
17839               8[02]
17840             )|
17841             9(?:
17842               0[6-8]|
17843               1[016-8]|
17844               2[036-8]|
17845               3[3679]|
17846               40|
17847               5[0489]|
17848               6[06-9]|
17849               7[046-9]|
17850               8[36-8]|
17851               9[1-9]
17852             )
17853           )\d{4}
17854         </nationalNumberPattern>
17855         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17856         <exampleNumber>2001234</exampleNumber>
17857       </fixedLine>
17858       <mobile>
17859         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
17860              service "210", "Servicio de Busca Personas". -->
17861         <nationalNumberPattern>
17862           (?:
17863             1[16]1|
17864             21[89]|
17865             8(?:
17866               1[01]|
17867               7[23]
17868             )
17869           )\d{4}|
17870           6(?:
17871             [024-9]\d|
17872             1[0-5]|
17873             3[0-24-9]
17874           )\d{5}
17875         </nationalNumberPattern>
17876         <exampleNumber>60012345</exampleNumber>
17877       </mobile>
17878       <tollFree>
17879         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
17880         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17881         <exampleNumber>8001234</exampleNumber>
17882       </tollFree>
17883       <premiumRate>
17884         <!-- Value-added services are represented as "400" in the plan. -->
17885         <nationalNumberPattern>
17886           (?:
17887             779|
17888             8(?:
17889               2[235]|
17890               55|
17891               60|
17892               7[578]|
17893               86|
17894               95
17895             )|
17896             9(?:
17897               0[0-2]|
17898               81
17899             )
17900           )\d{4}
17901         </nationalNumberPattern>
17902         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17903         <exampleNumber>8601234</exampleNumber>
17904       </premiumRate>
17905     </territory>
17906
17907     <!-- Peru -->
17908     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
17909                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
17910                preferredExtnPrefix=" Anexo " mobileNumberPortableRegion="true">
17911       <references>
17912         <sourceUrl>http://www.itu.int/oth/T02020000A6/en</sourceUrl>
17913         <sourceUrl>http://en.wikipedia.org/wiki/+51</sourceUrl>
17914         <sourceUrl>http://www.assistbook.com/South%20America/Peru/widecodes</sourceUrl>
17915       </references>
17916       <availableFormats>
17917         <numberFormat pattern="(1)(\d{7})">
17918           <leadingDigits>1</leadingDigits>
17919           <format>$1 $2</format>
17920         </numberFormat>
17921         <numberFormat pattern="([4-8]\d)(\d{6})">
17922           <leadingDigits>
17923             [4-7]|
17924             8[2-4]
17925           </leadingDigits>
17926           <format>$1 $2</format>
17927         </numberFormat>
17928         <numberFormat pattern="(\d{3})(\d{5})">
17929           <leadingDigits>80</leadingDigits>
17930           <format>$1 $2</format>
17931         </numberFormat>
17932         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
17933         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
17934                       nationalPrefixFormattingRule="$FG">
17935           <leadingDigits>9</leadingDigits>
17936           <format>$1 $2 $3</format>
17937         </numberFormat>
17938       </availableFormats>
17939       <generalDesc>
17940         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
17941         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
17942       </generalDesc>
17943       <fixedLine>
17944         <nationalNumberPattern>
17945           (?:
17946             1\d|
17947             4[1-4]|
17948             5[1-46]|
17949             6[1-7]|
17950             7[2-46]|
17951             8[2-4]
17952           )\d{6}
17953         </nationalNumberPattern>
17954         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17955         <exampleNumber>11234567</exampleNumber>
17956       </fixedLine>
17957       <mobile>
17958         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
17959         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17960         <exampleNumber>912345678</exampleNumber>
17961       </mobile>
17962       <tollFree>
17963         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
17964         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17965         <exampleNumber>80012345</exampleNumber>
17966       </tollFree>
17967       <premiumRate>
17968         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
17969         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17970         <exampleNumber>80512345</exampleNumber>
17971       </premiumRate>
17972       <sharedCost>
17973         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
17974         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17975         <exampleNumber>80112345</exampleNumber>
17976       </sharedCost>
17977       <personalNumber>
17978         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
17979         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17980         <exampleNumber>80212345</exampleNumber>
17981       </personalNumber>
17982     </territory>
17983
17984     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
17985     <territory id="PF" countryCode="689" internationalPrefix="00">
17986       <references>
17987         <sourceUrl>http://www.itu.int/oth/T020200004D/en</sourceUrl>
17988       </references>
17989       <availableFormats>
17990         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
17991           <leadingDigits>
17992             4[09]|
17993             8[79]
17994           </leadingDigits>
17995           <format>$1 $2 $3 $4</format>
17996         </numberFormat>
17997         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
17998           <leadingDigits>44</leadingDigits>
17999           <format>$1 $2 $3</format>
18000         </numberFormat>
18001       </availableFormats>
18002       <generalDesc>
18003         <nationalNumberPattern>
18004           4\d{5,7}|
18005           8\d{7}
18006         </nationalNumberPattern>
18007         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
18008       </generalDesc>
18009       <noInternationalDialling>
18010         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
18011         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18012         <exampleNumber>441234</exampleNumber>
18013       </noInternationalDialling>
18014       <fixedLine>
18015         <!-- Includes payphone prefixes. -->
18016         <nationalNumberPattern>
18017           4(?:
18018             [09][45689]\d|
18019             4
18020           )\d{4}
18021         </nationalNumberPattern>
18022         <exampleNumber>40412345</exampleNumber>
18023       </fixedLine>
18024       <mobile>
18025         <nationalNumberPattern>8[79]\d{6}</nationalNumberPattern>
18026         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18027         <exampleNumber>87123456</exampleNumber>
18028       </mobile>
18029     </territory>
18030
18031     <!-- Papua New Guinea -->
18032     <territory id="PG" countryCode="675" internationalPrefix="00">
18033       <references>
18034         <sourceUrl>http://www.itu.int/oth/T02020000A4/en</sourceUrl>
18035         <sourceUrl>http://en.wikipedia.org/wiki/%2B675</sourceUrl>
18036       </references>
18037       <availableFormats>
18038         <numberFormat pattern="(\d{3})(\d{4})">
18039           <leadingDigits>
18040             [13-689]|
18041             27
18042           </leadingDigits>
18043           <format>$1 $2</format>
18044         </numberFormat>
18045         <numberFormat pattern="(\d{4})(\d{4})">
18046           <leadingDigits>
18047             20|
18048             7
18049           </leadingDigits>
18050           <format>$1 $2</format>
18051         </numberFormat>
18052       </availableFormats>
18053       <generalDesc>
18054         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18055         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18056       </generalDesc>
18057       <fixedLine>
18058         <nationalNumberPattern>
18059           (?:
18060             3[0-2]\d|
18061             4[25]\d|
18062             5[34]\d|
18063             64[1-9]|
18064             77(?:
18065               [0-24]\d|
18066               30
18067             )|
18068             85[02-46-9]|
18069             9[78]\d
18070           )\d{4}
18071         </nationalNumberPattern>
18072         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18073         <exampleNumber>3123456</exampleNumber>
18074       </fixedLine>
18075       <mobile>
18076         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
18077              Wikipedia.
18078              As per ITU doc, prefix 20150 will expire at the end of 2015. -->
18079         <nationalNumberPattern>
18080           (?:
18081             20150|
18082             68\d{2}|
18083             7(?:
18084               [0-369]\d|
18085               75
18086             )\d{2}
18087           )\d{3}
18088         </nationalNumberPattern>
18089         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18090         <exampleNumber>6812345</exampleNumber>
18091       </mobile>
18092       <tollFree>
18093         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
18094         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18095         <exampleNumber>1801234</exampleNumber>
18096       </tollFree>
18097       <voip>
18098         <!-- VSAT prefixes are here. -->
18099         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
18100         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18101         <exampleNumber>2751234</exampleNumber>
18102       </voip>
18103     </territory>
18104
18105     <!-- Philippines -->
18106     <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
18107       <references>
18108         <sourceUrl>http://en.wikipedia.org/wiki/%2B63</sourceUrl>
18109       </references>
18110       <availableFormats>
18111         <!-- Area code separated from number. Area codes found here:
18112         http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
18113         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18114           pattern="(2)(\d{3})(\d{4})">
18115           <leadingDigits>2</leadingDigits>
18116           <format>$1 $2 $3</format>
18117         </numberFormat>
18118         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18119           pattern="(2)(\d{5})">
18120           <leadingDigits>2</leadingDigits>
18121           <format>$1 $2</format>
18122         </numberFormat>
18123         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18124           pattern="(\d{4})(\d{4,6})">
18125           <leadingDigits>
18126             3(?:
18127               23|
18128               39|
18129               46
18130             )|
18131             4(?:
18132               2[3-6]|
18133               [35]9|
18134               4[26]|
18135               76
18136             )|
18137             5(?:
18138               22|
18139               44
18140             )|
18141             642|
18142             8(?:
18143               62|
18144               8[245]
18145             )
18146           </leadingDigits>
18147           <leadingDigits>
18148             3(?:
18149               230|
18150               397|
18151               461
18152             )|
18153             4(?:
18154               2(?:
18155                 35|
18156                 [46]4|
18157                 51
18158               )|
18159               396|
18160               4(?:
18161                 22|
18162                 63
18163               )|
18164               59[347]|
18165               76[15]
18166             )|
18167             5(?:
18168               221|
18169               446
18170             )|
18171             642[23]|
18172             8(?:
18173               622|
18174               8(?:
18175                 [24]2|
18176                 5[13]
18177               )
18178             )
18179           </leadingDigits>
18180           <format>$1 $2</format>
18181         </numberFormat>
18182         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18183           pattern="(\d{5})(\d{4})">
18184           <leadingDigits>
18185             346|
18186             4(?:
18187               27|
18188               9[35]
18189             )|
18190             883
18191           </leadingDigits>
18192           <leadingDigits>
18193             3469|
18194             4(?:
18195               279|
18196               9(?:
18197                 30|
18198                 56
18199               )
18200             )|
18201             8834
18202           </leadingDigits>
18203           <format>$1 $2</format>
18204         </numberFormat>
18205         <!-- This rule is a fallback for the more specific area codes. -->
18206         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18207           pattern="([3-8]\d)(\d{3})(\d{4})">
18208           <leadingDigits>[3-8]</leadingDigits>
18209           <format>$1 $2 $3</format>
18210         </numberFormat>
18211         <numberFormat nationalPrefixFormattingRule="$NP$FG"
18212           pattern="(\d{3})(\d{3})(\d{4})">
18213           <leadingDigits>
18214             81|
18215             9
18216           </leadingDigits>
18217           <format>$1 $2 $3</format>
18218         </numberFormat>
18219         <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
18220         <numberFormat pattern="(1800)(\d{3})(\d{4})">
18221           <leadingDigits>1</leadingDigits>
18222           <format>$1 $2 $3</format>
18223         </numberFormat>
18224         <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
18225           <leadingDigits>1</leadingDigits>
18226           <format>$1 $2 $3 $4</format>
18227         </numberFormat>
18228       </availableFormats>
18229       <generalDesc>
18230         <nationalNumberPattern>
18231           2\d{5,7}|
18232           [3-9]\d{7,9}|
18233           1800\d{7,9}
18234         </nationalNumberPattern>
18235         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
18236       </generalDesc>
18237       <fixedLine>
18238         <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
18239              that have only 5 digits after the area code; plus it seems the 8822 area code is
18240              followed by 6 digits, and 8842 by only 4. -->
18241         <nationalNumberPattern>
18242           2\d{5}(?:\d{2})?|
18243           (?:
18244             3[2-68]|
18245             4[2-9]|
18246             5[2-6]|
18247             6[2-58]|
18248             7[24578]|
18249             8[2-8]
18250           )\d{7}|
18251           88(?:
18252             22\d{6}|
18253             42\d{4}
18254           )
18255         </nationalNumberPattern>
18256         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
18257         <exampleNumber>21234567</exampleNumber>
18258       </fixedLine>
18259       <mobile>
18260         <nationalNumberPattern>
18261           (?:
18262             81[37]|
18263             9(?:
18264               0[5-9]|
18265               1[024-9]|
18266               2[0-35-9]|
18267               3[02-9]|
18268               4[236-9]|
18269               7[34-79]|
18270               89|
18271               9[4-9]
18272             )
18273           )\d{7}
18274         </nationalNumberPattern>
18275         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18276         <exampleNumber>9051234567</exampleNumber>
18277       </mobile>
18278       <!-- Information on toll-free numbers collected from searching the internet -->
18279       <tollFree>
18280         <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
18281         <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
18282         <exampleNumber>180012345678</exampleNumber>
18283       </tollFree>
18284       <!-- No information can be found about other types of numbers (such as premium rate) in the
18285            Philippines. -->
18286     </territory>
18287
18288     <!-- Pakistan -->
18289     <territory id="PK" countryCode="92" internationalPrefix="00"
18290                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18291                mobileNumberPortableRegion="true">
18292       <references>
18293         <sourceUrl>http://www.itu.int/oth/T02020000A1/en</sourceUrl>
18294         <sourceUrl>http://en.wikipedia.org/wiki/%2B92</sourceUrl>
18295       </references>
18296       <availableFormats>
18297         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
18298              formatted nicely by the AYTF. -->
18299         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
18300           <leadingDigits>
18301             (?:
18302               2[125]|
18303               4[0-246-9]|
18304               5[1-35-7]|
18305               6[1-8]|
18306               7[14]|
18307               8[16]|
18308               91
18309             )1
18310           </leadingDigits>
18311           <leadingDigits>
18312             (?:
18313               2[125]|
18314               4[0-246-9]|
18315               5[1-35-7]|
18316               6[1-8]|
18317               7[14]|
18318               8[16]|
18319               91
18320             )11
18321           </leadingDigits>
18322           <leadingDigits>
18323             (?:
18324               2[125]|
18325               4[0-246-9]|
18326               5[1-35-7]|
18327               6[1-8]|
18328               7[14]|
18329               8[16]|
18330               91
18331             )111
18332           </leadingDigits>
18333           <format>$1 $2 $3 $4</format>
18334         </numberFormat>
18335         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
18336           <leadingDigits>
18337             2[349]|
18338             45|
18339             54|
18340             60|
18341             72|
18342             8[2-5]|
18343             9[2-9]
18344           </leadingDigits>
18345           <leadingDigits>
18346             (?:
18347               2[349]|
18348               45|
18349               54|
18350               60|
18351               72|
18352               8[2-5]|
18353               9[2-9]
18354             )\d1
18355           </leadingDigits>
18356           <leadingDigits>
18357             (?:
18358               2[349]|
18359               45|
18360               54|
18361               60|
18362               72|
18363               8[2-5]|
18364               9[2-9]
18365             )\d11
18366           </leadingDigits>
18367           <leadingDigits>
18368             (?:
18369               2[349]|
18370               45|
18371               54|
18372               60|
18373               72|
18374               8[2-5]|
18375               9[2-9]
18376             )\d111
18377           </leadingDigits>
18378           <format>$1 $2 $3 $4</format>
18379         </numberFormat>
18380         <numberFormat pattern="(\d{2})(\d{7,8})">
18381           <leadingDigits>
18382             (?:
18383               2[125]|
18384               4[0-246-9]|
18385               5[1-35-7]|
18386               6[1-8]|
18387               7[14]|
18388               8[16]|
18389               91
18390             )[2-9]
18391           </leadingDigits>
18392           <format>$1 $2</format>
18393         </numberFormat>
18394         <numberFormat pattern="(\d{3})(\d{6,7})">
18395           <leadingDigits>
18396             2[349]|
18397             45|
18398             54|
18399             60|
18400             72|
18401             8[2-5]|
18402             9[2-9]
18403           </leadingDigits>
18404           <leadingDigits>
18405             (?:
18406               2[349]|
18407               45|
18408               54|
18409               60|
18410               72|
18411               8[2-5]|
18412               9[2-9]
18413             )\d[2-9]
18414           </leadingDigits>
18415           <format>$1 $2</format>
18416         </numberFormat>
18417         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
18418           <leadingDigits>3</leadingDigits>
18419           <format>$1 $2</format>
18420         </numberFormat>
18421         <numberFormat pattern="([15]\d{3})(\d{5,6})">
18422           <leadingDigits>
18423             58[12]|
18424             1
18425           </leadingDigits>
18426           <format>$1 $2</format>
18427         </numberFormat>
18428         <!-- This is from online examples. -->
18429         <numberFormat pattern="(586\d{2})(\d{5})">
18430           <leadingDigits>586</leadingDigits>
18431           <format>$1 $2</format>
18432         </numberFormat>
18433         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
18434           <leadingDigits>[89]00</leadingDigits>
18435           <format>$1 $2 $3</format>
18436         </numberFormat>
18437       </availableFormats>
18438       <generalDesc>
18439         <!-- This is horribly complex because the country code is 92, and several area codes start
18440              with 92, and the number length is widely variable. -->
18441         <nationalNumberPattern>
18442           1\d{8}|
18443           [2-8]\d{5,11}|
18444           9(?:
18445             [013-9]\d{4,9}|
18446             2\d(?:
18447               111\d{6}|
18448               \d{3,7}
18449             )
18450           )
18451         </nationalNumberPattern>
18452         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
18453       </generalDesc>
18454       <fixedLine>
18455         <!-- The subscriber number length is not well defined for some area codes. From online
18456              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
18457              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
18458              of Karachi and Lahore (both 8). -->
18459         <nationalNumberPattern>
18460           (?:
18461             21|
18462             42
18463           )[2-9]\d{7}|
18464           (?:
18465             2[25]|
18466             4[0146-9]|
18467             5[1-35-7]|
18468             6[1-8]|
18469             7[14]|
18470             8[16]|
18471             91
18472           )[2-9]\d{6}|
18473           (?:
18474             2(?:
18475               3[2358]|
18476               4[2-4]|
18477               9[2-8]
18478             )|
18479             45[3479]|
18480             54[2-467]|
18481             60[468]|
18482             72[236]|
18483             8(?:
18484               2[2-689]|
18485               3[23578]|
18486               4[3478]|
18487               5[2356]
18488             )|
18489             9(?:
18490               1|
18491               2[2-8]|
18492               3[27-9]|
18493               4[2-6]|
18494               6[3569]|
18495               9[25-8]
18496             )
18497           )[2-9]\d{5,6}|
18498           58[126]\d{7}
18499         </nationalNumberPattern>
18500         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
18501         <exampleNumber>2123456789</exampleNumber>
18502       </fixedLine>
18503       <mobile>
18504         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
18505              can be found online with these prefixes. Added 310 based on information from Zong, and
18506              316 based on information found online. -->
18507         <nationalNumberPattern>
18508           3(?:
18509             0\d|
18510             1[0-6]|
18511             2[0-5]|
18512             [34][0-7]|
18513             55|
18514             64
18515           )\d{7}
18516         </nationalNumberPattern>
18517         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18518         <exampleNumber>3012345678</exampleNumber>
18519       </mobile>
18520       <tollFree>
18521         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18522         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18523         <exampleNumber>80012345</exampleNumber>
18524       </tollFree>
18525       <premiumRate>
18526         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
18527         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18528         <exampleNumber>90012345</exampleNumber>
18529       </premiumRate>
18530       <!-- These are referred to as UPT numbers in the plan. -->
18531       <personalNumber>
18532         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
18533         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18534         <!-- The example number here is the test number from the plan. -->
18535         <exampleNumber>122044444</exampleNumber>
18536       </personalNumber>
18537       <uan>
18538         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
18539              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
18540              what type of number they are. We exclude Azad Jammu, Kashmir and Northern Areas here
18541              since no online example UANs can be found, and they have an "access code" at the start,
18542              making it difficult to guess what a UAN in these areas would look like. -->
18543         <nationalNumberPattern>
18544           (?:
18545             2(?:
18546               [125]|
18547               3[2358]|
18548               4[2-4]|
18549               9[2-8]
18550             )|
18551             4(?:
18552               [0-246-9]|
18553               5[3479]
18554             )|
18555             5(?:
18556               [1-35-7]|
18557               4[2-467]
18558             )|
18559             6(?:
18560               [1-8]|
18561               0[468]
18562             )|
18563             7(?:
18564               [14]|
18565               2[236]
18566             )|
18567             8(?:
18568               [16]|
18569               2[2-689]|
18570               3[23578]|
18571               4[3478]|
18572               5[2356]
18573             )|
18574             9(?:
18575               1|
18576               22|
18577               3[27-9]|
18578               4[2-6]|
18579               6[3569]|
18580               9[2-7]
18581             )
18582           )111\d{6}
18583         </nationalNumberPattern>
18584         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
18585         <exampleNumber>21111825888</exampleNumber>
18586       </uan>
18587     </territory>
18588
18589     <!-- Poland -->
18590     <territory id="PL" countryCode="48" internationalPrefix="00" mobileNumberPortableRegion="true">
18591       <references>
18592         <sourceUrl>http://en.wikipedia.org/wiki/%2B48</sourceUrl>
18593         <sourceUrl>http://www.itu.int/oth/T02020000A8/en</sourceUrl>
18594         <!-- Source is in Polish. -->
18595         <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>
18596       </references>
18597       <availableFormats>
18598         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
18599           <leadingDigits>
18600             [124]|
18601             3[2-4]|
18602             5[24-689]|
18603             6[1-3578]|
18604             7[14-7]|
18605             8[1-79]|
18606             9[145]
18607           </leadingDigits>
18608           <format>$1 $2 $3 $4</format>
18609         </numberFormat>
18610         <numberFormat pattern="(\d{2})(\d{1})(\d{4})">
18611           <leadingDigits>[12]2</leadingDigits>
18612           <format>$1 $2 $3</format>
18613         </numberFormat>
18614         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
18615              Poles that this is more usual. -->
18616         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
18617           <leadingDigits>
18618             39|
18619             5[0137]|
18620             6[0469]|
18621             7[02389]|
18622             8[08]
18623           </leadingDigits>
18624           <format>$1 $2 $3</format>
18625         </numberFormat>
18626         <!-- Additional patterns for shorter pager numbers. -->
18627         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
18628           <leadingDigits>64</leadingDigits>
18629           <format>$1 $2 $3</format>
18630         </numberFormat>
18631         <numberFormat pattern="(\d{3})(\d{3})">
18632           <leadingDigits>64</leadingDigits>
18633           <format>$1 $2</format>
18634         </numberFormat>
18635       </availableFormats>
18636       <generalDesc>
18637         <nationalNumberPattern>
18638           [12]\d{6,8}|
18639           [3-57-9]\d{8}|
18640           6\d{5,8}
18641         </nationalNumberPattern>
18642         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18643       </generalDesc>
18644       <fixedLine>
18645         <!-- The plan says all geographical numbers are 9 digits; but in at least Warsaw (22) and
18646              Krakow (12) we have found internationally diallable numbers that are 7 digits instead,
18647              so we support those too. -->
18648         <nationalNumberPattern>
18649           (?:
18650             1[2-8]|
18651             2[2-59]|
18652             3[2-4]|
18653             4[1-468]|
18654             5[24-689]|
18655             6[1-3578]|
18656             7[14-7]|
18657             8[1-79]|
18658             9[145]
18659           )\d{7}|
18660           [12]2\d{5}
18661         </nationalNumberPattern>
18662         <exampleNumber>123456789</exampleNumber>
18663       </fixedLine>
18664       <mobile>
18665         <nationalNumberPattern>
18666           (?:
18667             5[0137]|
18668             6[069]|
18669             7[2389]|
18670             88
18671           )\d{7}
18672         </nationalNumberPattern>
18673         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18674         <exampleNumber>512345678</exampleNumber>
18675       </mobile>
18676       <pager>
18677         <nationalNumberPattern>64\d{4,7}</nationalNumberPattern>
18678         <exampleNumber>641234567</exampleNumber>
18679       </pager>
18680       <tollFree>
18681         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
18682         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18683         <exampleNumber>800123456</exampleNumber>
18684       </tollFree>
18685       <premiumRate>
18686         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
18687         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18688         <exampleNumber>701234567</exampleNumber>
18689       </premiumRate>
18690       <sharedCost>
18691         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
18692         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18693         <exampleNumber>801234567</exampleNumber>
18694       </sharedCost>
18695       <voip>
18696         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
18697         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18698         <exampleNumber>391234567</exampleNumber>
18699       </voip>
18700     </territory>
18701
18702     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
18703     <territory id="PM" countryCode="508" internationalPrefix="00"
18704                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18705       <references>
18706         <sourceUrl>http://www.itu.int/oth/T02020000B2/en</sourceUrl>
18707       </references>
18708       <availableFormats>
18709         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
18710           <format>$1 $2 $3</format>
18711         </numberFormat>
18712       </availableFormats>
18713       <generalDesc>
18714         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
18715         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18716       </generalDesc>
18717       <fixedLine>
18718         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
18719         <exampleNumber>411234</exampleNumber>
18720       </fixedLine>
18721       <mobile>
18722         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
18723         <exampleNumber>551234</exampleNumber>
18724       </mobile>
18725     </territory>
18726
18727     <!-- Pitcairn Island -->
18728     <!-- id="PN" -->
18729     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
18730          satellite phones. -->
18731
18732     <!-- Puerto Rico -->
18733     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
18734                internationalPrefix="011">
18735       <references>
18736         <sourceUrl>http://www.itu.int/oth/T02020000AA/en</sourceUrl>
18737       </references>
18738       <generalDesc>
18739         <!-- NANPA country - uses US formatting rules -->
18740         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
18741         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
18742       </generalDesc>
18743       <fixedLine>
18744         <nationalNumberPattern>
18745           (?:
18746             787|
18747             939
18748           )[2-9]\d{6}
18749         </nationalNumberPattern>
18750         <exampleNumber>7872345678</exampleNumber>
18751       </fixedLine>
18752       <mobile>
18753         <nationalNumberPattern>
18754           (?:
18755             787|
18756             939
18757           )[2-9]\d{6}
18758         </nationalNumberPattern>
18759         <exampleNumber>7872345678</exampleNumber>
18760       </mobile>
18761       <tollFree>
18762         <nationalNumberPattern>
18763           8(?:
18764             00|
18765             44|
18766             55|
18767             66|
18768             77|
18769             88
18770           )[2-9]\d{6}
18771         </nationalNumberPattern>
18772         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18773         <exampleNumber>8002345678</exampleNumber>
18774       </tollFree>
18775       <premiumRate>
18776         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
18777         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18778         <exampleNumber>9002345678</exampleNumber>
18779       </premiumRate>
18780       <personalNumber>
18781         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
18782         <nationalNumberPattern>
18783           5(?:
18784             00|
18785             33|
18786             44|
18787             66|
18788             77
18789           )[2-9]\d{6}
18790         </nationalNumberPattern>
18791         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18792         <exampleNumber>5002345678</exampleNumber>
18793       </personalNumber>
18794     </territory>
18795
18796     <!-- Palestinian Authority -->
18797     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
18798          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
18799          subset of the Israeli formats. -->
18800     <territory id="PS" countryCode="970" internationalPrefix="00"
18801                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18802       <references>
18803         <sourceUrl>http://en.wikipedia.org/wiki/%2B970</sourceUrl>
18804         <sourceUrl>http://www.wtng.info/wtng-970-ps.html</sourceUrl>
18805         <sourceUrl>http://www.paltel.ps</sourceUrl>
18806       </references>
18807       <availableFormats>
18808         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
18809           <leadingDigits>[2489]</leadingDigits>
18810           <format>$1 $2 $3</format>
18811         </numberFormat>
18812         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
18813           <leadingDigits>5</leadingDigits>
18814           <format>$1 $2 $3</format>
18815         </numberFormat>
18816         <numberFormat nationalPrefixFormattingRule="$FG"
18817           pattern="(1[78]00)(\d{3})(\d{3})">
18818           <leadingDigits>1[78]</leadingDigits>
18819           <format>$1 $2 $3</format>
18820         </numberFormat>
18821         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
18822       </availableFormats>
18823       <generalDesc>
18824         <nationalNumberPattern>
18825           [24589]\d{7,8}|
18826           1(?:
18827             [78]\d{8}|
18828             [49]\d{2,3}
18829           )
18830         </nationalNumberPattern>
18831         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
18832       </generalDesc>
18833       <fixedLine>
18834         <nationalNumberPattern>
18835           (?:
18836             22[234789]|
18837             42[45]|
18838             82[01458]|
18839             92[369]
18840           )\d{5}
18841         </nationalNumberPattern>
18842         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18843         <exampleNumber>22234567</exampleNumber>
18844       </fixedLine>
18845       <mobile>
18846         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
18847         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18848         <exampleNumber>599123456</exampleNumber>
18849       </mobile>
18850       <tollFree>
18851         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
18852         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18853         <exampleNumber>1800123456</exampleNumber>
18854       </tollFree>
18855       <premiumRate>
18856         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
18857         <nationalNumberPattern>
18858           1(?:
18859             4|
18860             9\d
18861            )\d{2}
18862         </nationalNumberPattern>
18863         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
18864         <exampleNumber>19123</exampleNumber>
18865       </premiumRate>
18866       <sharedCost>
18867         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
18868         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18869         <exampleNumber>1700123456</exampleNumber>
18870       </sharedCost>
18871     </territory>
18872
18873     <!-- Portugal -->
18874     <territory id="PT" countryCode="351" internationalPrefix="00" mobileNumberPortableRegion="true">
18875       <references>
18876         <sourceUrl>http://www.anacom.pt/render.jsp?categoryId=279098</sourceUrl>
18877       </references>
18878       <availableFormats>
18879         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
18880              two digits in the first group; however, this doesn't seem to be majority usage based on
18881              searches online. -->
18882         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
18883           <leadingDigits>2[12]</leadingDigits>
18884           <format>$1 $2 $3</format>
18885         </numberFormat>
18886         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
18887           <leadingDigits>
18888             2[3-9]|
18889             [346-9]
18890           </leadingDigits>
18891           <format>$1 $2 $3</format>
18892         </numberFormat>
18893       </availableFormats>
18894       <generalDesc>
18895         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
18896         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18897       </generalDesc>
18898       <fixedLine>
18899         <nationalNumberPattern>
18900           2(?:
18901             [12]\d|
18902             [35][1-689]|
18903             4[1-59]|
18904             6[1-35689]|
18905             7[1-9]|
18906             8[1-69]|
18907             9[1256]
18908           )\d{6}
18909         </nationalNumberPattern>
18910         <exampleNumber>212345678</exampleNumber>
18911       </fixedLine>
18912       <mobile>
18913         <nationalNumberPattern>
18914           9(?:
18915             [136]\d{2}|
18916             2[0-79]\d|
18917             480
18918           )\d{5}
18919         </nationalNumberPattern>
18920         <exampleNumber>912345678</exampleNumber>
18921       </mobile>
18922       <tollFree>
18923         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
18924         <exampleNumber>800123456</exampleNumber>
18925       </tollFree>
18926       <premiumRate>
18927         <!-- Fixed maximum cost numbers: 761=0.60€, 761=1€, 762=2€. -->
18928         <nationalNumberPattern>
18929           76(?:
18930             0[1-57]|
18931             1[2-47]|
18932             2[237]
18933           )\d{5}
18934         </nationalNumberPattern>
18935         <exampleNumber>760123456</exampleNumber>
18936       </premiumRate>
18937       <sharedCost>
18938         <!-- 808 are priced as local calls, 809 are national calls. -->
18939         <nationalNumberPattern>
18940           80(?:
18941             8\d|
18942             9[1579]
18943           )\d{5}
18944         </nationalNumberPattern>
18945         <exampleNumber>808123456</exampleNumber>
18946       </sharedCost>
18947       <personalNumber>
18948         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
18949         <exampleNumber>884123456</exampleNumber>
18950       </personalNumber>
18951       <voip>
18952         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
18953         <exampleNumber>301234567</exampleNumber>
18954       </voip>
18955       <uan>
18956         <nationalNumberPattern>
18957           70(?:
18958             7\d|
18959             8[17]
18960           )\d{5}
18961         </nationalNumberPattern>
18962         <exampleNumber>707123456</exampleNumber>
18963       </uan>
18964     </territory>
18965
18966     <!-- Palau -->
18967     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
18968       <references>
18969         <sourceUrl>http://www.itu.int/oth/T02020000A2/en</sourceUrl>
18970       </references>
18971       <availableFormats>
18972         <numberFormat pattern="(\d{3})(\d{4})">
18973           <format>$1 $2</format>
18974         </numberFormat>
18975       </availableFormats>
18976       <generalDesc>
18977         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
18978         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18979       </generalDesc>
18980       <fixedLine>
18981         <nationalNumberPattern>
18982           2552255|
18983           (?:
18984             277|
18985             345|
18986             488|
18987             5(?:
18988               35|
18989               44|
18990               87
18991             )|
18992             6(?:
18993               22|
18994               54|
18995               79
18996             )|
18997             7(?:
18998               33|
18999               47
19000             )|
19001             8(?:
19002               24|
19003               55|
19004               76
19005             )
19006           )\d{4}
19007         </nationalNumberPattern>
19008         <exampleNumber>2771234</exampleNumber>
19009       </fixedLine>
19010       <mobile>
19011         <nationalNumberPattern>
19012           (?:
19013             6[234689]0|
19014             77[45789]
19015           )\d{4}
19016         </nationalNumberPattern>
19017         <exampleNumber>6201234</exampleNumber>
19018       </mobile>
19019     </territory>
19020
19021     <!-- Paraguay -->
19022     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0"
19023                mobileNumberPortableRegion="true">
19024       <references>
19025         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay</sourceUrl>
19026         <sourceUrl>http://www.itu.int/oth/T02020000A5/en</sourceUrl>
19027         <sourceUrl>http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html</sourceUrl>
19028       </references>
19029       <availableFormats>
19030         <!-- CONATEL plan. -->
19031         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
19032           <leadingDigits>
19033             (?:
19034               [26]1|
19035               3[289]|
19036               4[124678]|
19037               7[123]|
19038               8[1236]
19039             )
19040           </leadingDigits>
19041           <format>$1 $2</format>
19042         </numberFormat>
19043         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
19044           <leadingDigits>[2-9]0</leadingDigits>
19045           <format>$1 $2</format>
19046         </numberFormat>
19047         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
19048           <leadingDigits>9[1-9]</leadingDigits>
19049           <format>$1 $2</format>
19050         </numberFormat>
19051         <!-- Format seen in examples found online. -->
19052         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19053           <leadingDigits>8700</leadingDigits>
19054           <format>$1 $2 $3</format>
19055         </numberFormat>
19056         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
19057              -->
19058         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
19059           <leadingDigits>[2-8][1-9]</leadingDigits>
19060           <format>$1 $2</format>
19061         </numberFormat>
19062       </availableFormats>
19063       <generalDesc>
19064         <nationalNumberPattern>
19065           5[0-5]\d{4,7}|
19066           [2-46-9]\d{5,8}
19067         </nationalNumberPattern>
19068         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
19069       </generalDesc>
19070       <fixedLine>
19071         <nationalNumberPattern>
19072           (?:
19073             [26]1|
19074             3[289]|
19075             4[124678]|
19076             7[123]|
19077             8[1236]
19078           )\d{5,7}|
19079           (?:
19080             2(?:
19081               2[4568]|
19082               7[15]|
19083               9[1-5]
19084             )|
19085             3(?:
19086               18|
19087               3[167]|
19088               4[2357]|
19089               51
19090             )|
19091             4(?:
19092               18|
19093               2[45]|
19094               3[12]|
19095               5[13]|
19096               64|
19097               71|
19098               9[1-47]
19099             )|
19100             5(?:
19101               [1-4]\d|
19102               5[0234]
19103             )|
19104             6(?:
19105               3[1-3]|
19106               44|
19107               7[1-4678]
19108             )|
19109             7(?:
19110               17|
19111               4[0-4]|
19112               6[1-578]|
19113               75|
19114               8[0-8]
19115             )|
19116             858
19117           )\d{5,6}
19118         </nationalNumberPattern>
19119         <exampleNumber>212345678</exampleNumber>
19120       </fixedLine>
19121       <mobile>
19122         <!-- 962 was added for Tigo. -->
19123         <nationalNumberPattern>
19124           9(?:
19125             6[12]|
19126             [78][1-6]|
19127             9[1-5]
19128           )\d{6}
19129         </nationalNumberPattern>
19130         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19131         <exampleNumber>961456789</exampleNumber>
19132       </mobile>
19133       <voip>
19134         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
19135         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19136         <exampleNumber>870012345</exampleNumber>
19137       </voip>
19138       <uan>
19139         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
19140         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19141         <exampleNumber>201234567</exampleNumber>
19142       </uan>
19143     </territory>
19144
19145     <!-- Qatar -->
19146     <territory id="QA" countryCode="974" internationalPrefix="00" mobileNumberPortableRegion="true">
19147       <references>
19148         <sourceUrl>http://www.itu.int/oth/T02020000AB/en</sourceUrl>
19149         <sourceUrl>http://wtng.info/wtng-qq.html</sourceUrl>
19150       </references>
19151       <availableFormats>
19152         <numberFormat pattern="([28]\d{2})(\d{4})">
19153           <leadingDigits>[28]</leadingDigits>
19154           <format>$1 $2</format>
19155         </numberFormat>
19156         <numberFormat pattern="([3-7]\d{3})(\d{4})">
19157           <leadingDigits>[3-7]</leadingDigits>
19158           <format>$1 $2</format>
19159         </numberFormat>
19160       </availableFormats>
19161       <generalDesc>
19162         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
19163         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19164       </generalDesc>
19165       <fixedLine>
19166         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
19167         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
19168         <exampleNumber>44123456</exampleNumber>
19169       </fixedLine>
19170       <mobile>
19171         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
19172         <exampleNumber>33123456</exampleNumber>
19173       </mobile>
19174       <pager>
19175         <nationalNumberPattern>
19176           2(?:
19177             [12]\d|
19178             61
19179           )\d{4}
19180         </nationalNumberPattern>
19181         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19182         <exampleNumber>2123456</exampleNumber>
19183       </pager>
19184       <tollFree>
19185         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
19186         <exampleNumber>8001234</exampleNumber>
19187       </tollFree>
19188       <!-- No premiumRate information can be found. -->
19189     </territory>
19190
19191     <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
19192     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
19193          used by both of them. -->
19194     <territory id="RE" countryCode="262" internationalPrefix="00"
19195                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19196                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
19197       <references>
19198         <sourceUrl>http://www.itu.int/oth/T020200004B/en</sourceUrl>
19199       </references>
19200       <availableFormats>
19201         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
19202           <format>$1 $2 $3 $4</format>
19203         </numberFormat>
19204       </availableFormats>
19205       <generalDesc>
19206         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
19207         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19208       </generalDesc>
19209       <fixedLine>
19210         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
19211         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
19212         <exampleNumber>262161234</exampleNumber>
19213       </fixedLine>
19214       <mobile>
19215         <nationalNumberPattern>
19216           6(?:
19217             9[23]|
19218             47
19219           )\d{6}
19220         </nationalNumberPattern>
19221         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19222         <exampleNumber>692123456</exampleNumber>
19223       </mobile>
19224       <!-- 08* Numbers in Réunion are the same as those valid in France. -->
19225       <tollFree>
19226         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
19227         <exampleNumber>801234567</exampleNumber>
19228       </tollFree>
19229       <premiumRate>
19230         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
19231         <exampleNumber>891123456</exampleNumber>
19232       </premiumRate>
19233       <sharedCost>
19234         <nationalNumberPattern>
19235           8(?:
19236             1[019]|
19237             2[0156]|
19238             84|
19239             90
19240           )\d{6}
19241         </nationalNumberPattern>
19242         <exampleNumber>810123456</exampleNumber>
19243       </sharedCost>
19244     </territory>
19245
19246     <!-- Romania -->
19247     <!-- Extension prefix found online, confirmed by a Romanian. -->
19248     <territory id="RO" countryCode="40" internationalPrefix="00"
19249                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19250                preferredExtnPrefix=" int " mobileNumberPortableRegion="true">
19251       <references>
19252         <sourceUrl>http://www.itu.int/oth/T02020000AC/en</sourceUrl>
19253         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania</sourceUrl>
19254       </references>
19255       <availableFormats>
19256         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
19257           <leadingDigits>[23]1</leadingDigits>
19258           <format>$1 $2 $3</format>
19259         </numberFormat>
19260         <numberFormat pattern="(21)(\d{4})">
19261           <leadingDigits>21</leadingDigits>
19262           <format>$1 $2</format>
19263         </numberFormat>
19264         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19265           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
19266                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
19267                majority of numbers found online follow this convention. -->
19268           <leadingDigits>
19269             [23][3-7]|
19270             [7-9]
19271           </leadingDigits>
19272           <format>$1 $2 $3</format>
19273         </numberFormat>
19274         <numberFormat pattern="(2\d{2})(\d{3})">
19275           <leadingDigits>2[3-6]</leadingDigits>
19276           <format>$1 $2</format>
19277         </numberFormat>
19278       </availableFormats>
19279       <generalDesc>
19280         <nationalNumberPattern>
19281           2\d{5,8}|
19282           [37-9]\d{8}
19283         </nationalNumberPattern>
19284         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
19285              to wikipedia and people must dial the full number. However, there are still short
19286              numbers that total 6 digits long, so the possible number pattern should take these into
19287              account. -->
19288         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19289       </generalDesc>
19290       <fixedLine>
19291         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
19292              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
19293              this based on numbers found online and the wikipedia article which indicate that these
19294              are four digits long in Bucharest only, and three digits elsewhere. -->
19295         <nationalNumberPattern>
19296           2(?:
19297             1(?:
19298               \d{7}|
19299               9\d{3}
19300             )|
19301             [3-6](?:
19302               \d{7}|
19303               \d9\d{2}
19304             )
19305           )|
19306           3[13-6]\d{7}
19307           </nationalNumberPattern>
19308         <exampleNumber>211234567</exampleNumber>
19309       </fixedLine>
19310       <mobile>
19311         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
19312              numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
19313              open-source report and confirmation by existence of such numbers online. -->
19314         <nationalNumberPattern>
19315           7(?:
19316             000|
19317             [1-8]\d{2}|
19318             99\d
19319           )\d{5}
19320         </nationalNumberPattern>
19321         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19322         <exampleNumber>712345678</exampleNumber>
19323       </mobile>
19324       <tollFree>
19325         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19326         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19327         <exampleNumber>800123456</exampleNumber>
19328       </tollFree>
19329       <premiumRate>
19330         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
19331         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19332         <exampleNumber>900123456</exampleNumber>
19333       </premiumRate>
19334       <sharedCost>
19335         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19336         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19337         <exampleNumber>801123456</exampleNumber>
19338       </sharedCost>
19339       <personalNumber>
19340         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
19341         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19342         <exampleNumber>802123456</exampleNumber>
19343       </personalNumber>
19344       <uan>
19345         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
19346              location-independent national numbers. Only numbers beginning with 37 have been seen so
19347              these are the only ones supported for now. -->
19348         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
19349         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19350         <exampleNumber>372123456</exampleNumber>
19351       </uan>
19352     </territory>
19353
19354     <!-- Serbia -->
19355     <territory id="RS" countryCode="381" internationalPrefix="00"
19356                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19357                mobileNumberPortableRegion="true">
19358       <references>
19359         <sourceUrl>http://www.itu.int/oth/T02020000B9/en</sourceUrl>
19360         <sourceUrl>http://registar.ratel.rs/en/reg202</sourceUrl>
19361       </references>
19362       <availableFormats>
19363         <numberFormat pattern="([23]\d{2})(\d{4,9})">
19364           <leadingDigits>
19365             (?:
19366               2[389]|
19367               39
19368             )0
19369           </leadingDigits>
19370           <format>$1 $2</format>
19371         </numberFormat>
19372         <numberFormat pattern="([1-3]\d)(\d{5,10})">
19373           <leadingDigits>
19374             1|
19375             2(?:
19376               [0-24-7]|
19377               [389][1-9]
19378             )|
19379             3(?:
19380               [0-8]|
19381               9[1-9]
19382             )
19383           </leadingDigits>
19384           <format>$1 $2</format>
19385         </numberFormat>
19386         <numberFormat pattern="(6\d)(\d{6,8})">
19387           <leadingDigits>6</leadingDigits>
19388           <format>$1 $2</format>
19389         </numberFormat>
19390         <numberFormat pattern="([89]\d{2})(\d{3,9})">
19391           <leadingDigits>[89]</leadingDigits>
19392           <format>$1 $2</format>
19393         </numberFormat>
19394         <numberFormat pattern="(7[26])(\d{4,9})">
19395           <leadingDigits>7[26]</leadingDigits>
19396           <format>$1 $2</format>
19397         </numberFormat>
19398         <numberFormat pattern="(7[08]\d)(\d{4,9})">
19399           <leadingDigits>7[08]</leadingDigits>
19400           <format>$1 $2</format>
19401         </numberFormat>
19402       </availableFormats>
19403       <generalDesc>
19404         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
19405              by 2-9) and the country calling code (381). -->
19406         <nationalNumberPattern>
19407           [126-9]\d{4,11}|
19408           3(?:
19409             [0-79]\d{3,10}|
19410             8[2-9]\d{2,9}
19411           )
19412         </nationalNumberPattern>
19413         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19414       </generalDesc>
19415       <fixedLine>
19416         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
19417              has been issused, so we allow 11 1X here. -->
19418         <nationalNumberPattern>
19419           (?:
19420             1(?:
19421               [02-9][2-9]|
19422               1[1-9]
19423             )\d|
19424             2(?:
19425               [0-24-7][2-9]\d|
19426               [389](?:
19427                 0[2-9]|
19428                 [2-9]\d
19429               )
19430             )|
19431             3(?:
19432               [0-8][2-9]\d|
19433               9(?:
19434                 [2-9]\d|
19435                 0[2-9]
19436               )
19437             )
19438           )\d{3,8}
19439         </nationalNumberPattern>
19440         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19441         <exampleNumber>10234567</exampleNumber>
19442       </fixedLine>
19443       <mobile>
19444         <nationalNumberPattern>
19445           6(?:
19446             [0-689]|
19447             7\d
19448           )\d{6,7}
19449         </nationalNumberPattern>
19450         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
19451         <exampleNumber>601234567</exampleNumber>
19452       </mobile>
19453       <tollFree>
19454         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
19455         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19456         <exampleNumber>80012345</exampleNumber>
19457       </tollFree>
19458       <premiumRate>
19459         <nationalNumberPattern>
19460           (?:
19461             90[0169]|
19462             78\d
19463           )\d{3,7}
19464         </nationalNumberPattern>
19465         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19466         <exampleNumber>90012345</exampleNumber>
19467       </premiumRate>
19468       <uan>
19469         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
19470         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19471         <exampleNumber>700123456</exampleNumber>
19472       </uan>
19473     </territory>
19474
19475     <!-- Russian Federation -->
19476     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
19477                internationalPrefix="810" nationalPrefix="8"
19478                nationalPrefixFormattingRule="$NP ($FG)"
19479                nationalPrefixOptionalWhenFormatting="true" >
19480       <references>
19481         <sourceUrl>http://www.itu.int/oth/T02020000AD/en</sourceUrl>
19482         <sourceUrl>http://en.wikipedia.org/wiki/%2B7</sourceUrl>
19483       </references>
19484       <availableFormats>
19485         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
19486              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
19487              Kazakhstan as well. -->
19488         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
19489           <!-- Local numbers only - these do not start with the national prefix. -->
19490           <leadingDigits>[1-79]</leadingDigits>
19491           <format>$1-$2-$3</format>
19492           <intlFormat>NA</intlFormat>
19493         </numberFormat>
19494         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
19495           <leadingDigits>[34689]</leadingDigits>
19496           <format>$1 $2-$3-$4</format>
19497         </numberFormat>
19498         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
19499           <leadingDigits>7</leadingDigits>
19500           <format>$1 $2 $3</format>
19501         </numberFormat>
19502       </availableFormats>
19503       <generalDesc>
19504         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
19505         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19506       </generalDesc>
19507       <fixedLine>
19508         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
19509              in the yellow pages, and on their own website and is listed on wikipedia. This applies
19510              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
19511         <nationalNumberPattern>
19512           (?:
19513             3(?:
19514               0[12]|
19515               4[1-35-79]|
19516               5[1-3]|
19517               8[1-58]|
19518               9[0145]
19519             )|
19520             4(?:
19521               01|
19522               1[1356]|
19523               2[13467]|
19524               7[1-5]|
19525               8[1-7]|
19526               9[1-689]
19527             )|
19528             8(?:
19529               1[1-8]|
19530               2[01]|
19531               3[13-6]|
19532               4[0-8]|
19533               5[15]|
19534               6[1-35-7]|
19535               7[1-37-9]
19536             )
19537           )\d{7}
19538         </nationalNumberPattern>
19539         <exampleNumber>3011234567</exampleNumber>
19540       </fixedLine>
19541       <mobile>
19542         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
19543         <exampleNumber>9123456789</exampleNumber>
19544       </mobile>
19545       <tollFree>
19546         <!-- The metadata states that 804 numbers are UAN numbers, but
19547              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
19548              numbers. -->
19549         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
19550         <exampleNumber>8001234567</exampleNumber>
19551       </tollFree>
19552       <premiumRate>
19553         <!-- Covers tele-voting numbers as well. -->
19554         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
19555         <exampleNumber>8091234567</exampleNumber>
19556       </premiumRate>
19557     </territory>
19558
19559     <!-- Rwanda -->
19560     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
19561          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
19562          as http://www.tigo.co.rw "Choose Your Number" service. -->
19563     <territory id="RW" countryCode="250" internationalPrefix="00"
19564                nationalPrefix="0" leadingZeroPossible="true">
19565       <references>
19566         <sourceUrl>http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf</sourceUrl>
19567         <sourceUrl>http://en.wikipedia.org/wiki/+250</sourceUrl>
19568       </references>
19569       <availableFormats>
19570         <numberFormat nationalPrefixFormattingRule="$FG"
19571           pattern="(2\d{2})(\d{3})(\d{3})">
19572           <leadingDigits>2</leadingDigits>
19573           <format>$1 $2 $3</format>
19574         </numberFormat>
19575         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
19576           <leadingDigits>[7-9]</leadingDigits>
19577           <format>$1 $2 $3</format>
19578         </numberFormat>
19579         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
19580           <leadingDigits>0</leadingDigits>
19581           <format>$1 $2 $3 $4</format>
19582         </numberFormat>
19583       </availableFormats>
19584       <generalDesc>
19585         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
19586         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
19587       </generalDesc>
19588       <fixedLine>
19589         <!-- We support satellite numbers here, since they are in the plan, although no recent
19590              online examples can be found. We also support fixed-line ranges that have been reserved
19591              and paid for, even where no online numbers can be found. -->
19592         <nationalNumberPattern>
19593           2[258]\d{7}|
19594           06\d{6}
19595         </nationalNumberPattern>
19596         <exampleNumber>250123456</exampleNumber>
19597       </fixedLine>
19598       <mobile>
19599         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
19600              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
19601              license revoked. -->
19602         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
19603         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19604         <exampleNumber>720123456</exampleNumber>
19605       </mobile>
19606       <tollFree>
19607         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19608         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19609         <exampleNumber>800123456</exampleNumber>
19610       </tollFree>
19611       <premiumRate>
19612         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
19613         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19614         <exampleNumber>900123456</exampleNumber>
19615       </premiumRate>
19616     </territory>
19617
19618     <!-- Saudi Arabia -->
19619     <territory id="SA" countryCode="966" internationalPrefix="00"
19620                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19621                mobileNumberPortableRegion="true">
19622       <references>
19623         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia</sourceUrl>
19624         <sourceUrl>http://www.itu.int/oth/T02020000B7/en</sourceUrl>
19625       </references>
19626       <availableFormats>
19627         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
19628           <leadingDigits>[1-467]</leadingDigits>
19629           <format>$1 $2 $3</format>
19630         </numberFormat>
19631         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
19632           <leadingDigits>1[1-467]</leadingDigits>
19633           <format>$1 $2 $3</format>
19634         </numberFormat>
19635         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
19636           <leadingDigits>5</leadingDigits>
19637           <format>$1 $2 $3</format>
19638         </numberFormat>
19639         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
19640              the fact that no numbers of this form found online have a trunk prefix added. -->
19641         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
19642           <leadingDigits>92</leadingDigits>
19643           <format>$1 $2</format>
19644         </numberFormat>
19645         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
19646           <leadingDigits>80</leadingDigits>
19647           <format>$1 $2 $3</format>
19648         </numberFormat>
19649         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
19650           <leadingDigits>81</leadingDigits>
19651           <format>$1 $2 $3</format>
19652         </numberFormat>
19653       </availableFormats>
19654       <generalDesc>
19655         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
19656              fixed-line numbers. -->
19657         <nationalNumberPattern>
19658           1\d{7,8}|
19659           (?:
19660             [2-467]|
19661             92
19662           )\d{7}|
19663           5\d{8}|
19664           8\d{9}
19665         </nationalNumberPattern>
19666         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
19667       </generalDesc>
19668       <fixedLine>
19669         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
19670              happened in May for area code 1 (parallel running ended July 13th, 2013) and then in
19671              August for the other fixed-line numbers (parallel running ends October 18th, 2013). -->
19672         <nationalNumberPattern>
19673           11\d{7}|
19674           1?(?:
19675             2[24-8]|
19676             3[35-8]|
19677             4[3-68]|
19678             6[2-5]|
19679             7[235-7]
19680           )\d{6}
19681         </nationalNumberPattern>
19682         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
19683         <exampleNumber>112345678</exampleNumber>
19684       </fixedLine>
19685       <mobile>
19686         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
19687              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
19688              until we find evidence that this is an error, leaving them at 10 for now. -->
19689         <nationalNumberPattern>
19690           (?:
19691             5(?:
19692               [013-689]\d|
19693               7[0-26-8]
19694             )|
19695             811\d
19696           )\d{6}
19697         </nationalNumberPattern>
19698         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
19699         <exampleNumber>512345678</exampleNumber>
19700       </mobile>
19701       <tollFree>
19702         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
19703         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19704         <exampleNumber>8001234567</exampleNumber>
19705       </tollFree>
19706       <sharedCost>
19707         <!-- Including shared revenue with shared cost here. -->
19708         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
19709         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19710         <exampleNumber>920012345</exampleNumber>
19711       </sharedCost>
19712     </territory>
19713
19714     <!-- Solomon Islands -->
19715     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
19716       <references>
19717         <sourceUrl>http://www.itu.int/oth/T02020000BF/en</sourceUrl>
19718       </references>
19719       <!-- A single group is used to format 5-digit numbers. This formatting pattern follows
19720            the guidelines in the ITU document. -->
19721       <availableFormats>
19722         <numberFormat pattern="(\d{2})(\d{5})">
19723           <leadingDigits>[7-9]</leadingDigits>
19724           <format>$1 $2</format>
19725         </numberFormat>
19726       </availableFormats>
19727       <generalDesc>
19728         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
19729         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
19730       </generalDesc>
19731       <fixedLine>
19732         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
19733              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
19734         <nationalNumberPattern>
19735           (?:
19736             1[4-79]|
19737             [23]\d|
19738             4[01]|
19739             5[03]|
19740             6[0-37]
19741           )\d{3}
19742         </nationalNumberPattern>
19743         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19744         <exampleNumber>40123</exampleNumber>
19745       </fixedLine>
19746       <mobile>
19747         <nationalNumberPattern>
19748           48\d{3}|
19749           7(?:
19750             [46-8]\d|
19751             5[025-9]|
19752             9[0-4]
19753           )\d{4}|
19754           8[4-8]\d{5}|
19755           9(?:
19756             1[2-9]|
19757             2[013-9]|
19758             3[0-2]|
19759             [46]\d|
19760             5[0-46-9]|
19761             7[0-689]|
19762             8[0-79]|
19763             9[0-8]
19764           )\d{4}
19765         </nationalNumberPattern>
19766         <exampleNumber>7421234</exampleNumber>
19767       </mobile>
19768       <tollFree>
19769         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
19770         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19771         <exampleNumber>18123</exampleNumber>
19772       </tollFree>
19773       <voip>
19774         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
19775         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19776         <exampleNumber>51123</exampleNumber>
19777       </voip>
19778     </territory>
19779
19780     <!-- Seychelles -->
19781     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
19782                preferredInternationalPrefix="00">
19783       <references>
19784         <sourceUrl>http://www.itu.int/oth/T02020000BA/en</sourceUrl>
19785         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles</sourceUrl>
19786       </references>
19787       <availableFormats>
19788         <numberFormat pattern="(\d{3})(\d{3})">
19789           <leadingDigits>[89]</leadingDigits>
19790           <format>$1 $2</format>
19791         </numberFormat>
19792         <numberFormat pattern="(\d)(\d{3})(\d{3})">
19793           <leadingDigits>[246]</leadingDigits>
19794           <format>$1 $2 $3</format>
19795         </numberFormat>
19796       </availableFormats>
19797       <generalDesc>
19798         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
19799         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
19800       </generalDesc>
19801       <fixedLine>
19802         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
19803              they are more expensive to call than other Fixed Line services. ISDN and DID services
19804              are here too, since they seem to be also fixed-line phone numbers. -->
19805         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
19806         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19807         <exampleNumber>4217123</exampleNumber>
19808       </fixedLine>
19809       <mobile>
19810         <!-- Includes Fixed Cellular. -->
19811         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
19812         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19813         <exampleNumber>2510123</exampleNumber>
19814       </mobile>
19815       <tollFree>
19816         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
19817         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19818         <exampleNumber>800000</exampleNumber>
19819       </tollFree>
19820       <premiumRate>
19821         <!-- Using this to represent Value Added Service in the plan. -->
19822         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
19823         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19824         <exampleNumber>981234</exampleNumber>
19825       </premiumRate>
19826       <voip>
19827         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
19828         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19829         <exampleNumber>6412345</exampleNumber>
19830       </voip>
19831     </territory>
19832
19833     <!-- Sudan -->
19834     <territory id="SD" countryCode="249" internationalPrefix="00"
19835                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19836       <references>
19837         <sourceUrl>http://www.itu.int/oth/T02020000C4/en</sourceUrl>
19838       </references>
19839       <availableFormats>
19840         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19841           <format>$1 $2 $3</format>
19842         </numberFormat>
19843       </availableFormats>
19844       <generalDesc>
19845         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
19846         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19847       </generalDesc>
19848       <fixedLine>
19849         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
19850              found online. -->
19851         <nationalNumberPattern>
19852           1(?:
19853             [125]\d|
19854             8[3567]
19855           )\d{6}
19856         </nationalNumberPattern>
19857         <exampleNumber>121231234</exampleNumber>
19858       </fixedLine>
19859       <mobile>
19860         <!-- Adding 90X as online numbers have been found with this prefix. -->
19861         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
19862         <exampleNumber>911231234</exampleNumber>
19863       </mobile>
19864     </territory>
19865
19866     <!-- Sweden -->
19867     <territory id="SE" countryCode="46" internationalPrefix="00"
19868                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19869                mobileNumberPortableRegion="true">
19870       <references>
19871         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf</sourceUrl>
19872         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Nrplansammanst%C3%A4llning-2013-07-05.pdf</sourceUrl>
19873       </references>
19874       <availableFormats>
19875       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
19876            http://gulasidorna.eniro.se -->
19877         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
19878           <leadingDigits>8</leadingDigits>
19879           <format>$1-$2 $3 $4</format>
19880           <intlFormat>$1 $2 $3 $4</intlFormat>
19881         </numberFormat>
19882         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
19883           <leadingDigits>
19884             1[013689]|
19885             2[0136]|
19886             3[1356]|
19887             4[0246]|
19888             54|
19889             6[03]|
19890             90
19891           </leadingDigits>
19892           <format>$1-$2 $3 $4</format>
19893           <intlFormat>$1 $2 $3 $4</intlFormat>
19894         </numberFormat>
19895         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
19896           <leadingDigits>
19897             1[13689]|
19898             2[136]|
19899             3[1356]|
19900             4[0246]|
19901             54|
19902             6[03]|
19903             90
19904           </leadingDigits>
19905           <format>$1-$2 $3</format>
19906           <intlFormat>$1 $2 $3</intlFormat>
19907         </numberFormat>
19908         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
19909           <leadingDigits>
19910             1[2457]|
19911             2[2457-9]|
19912             3[0247-9]|
19913             4[1357-9]|
19914             5[0-35-9]|
19915             6[124-9]|
19916             9(?:
19917               [125-8]|
19918               3[0-5]|
19919               4[0-3]
19920             )
19921           </leadingDigits>
19922           <format>$1-$2 $3 $4</format>
19923           <intlFormat>$1 $2 $3 $4</intlFormat>
19924         </numberFormat>
19925         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
19926           <leadingDigits>
19927             1[2457]|
19928             2[2457-9]|
19929             3[0247-9]|
19930             4[1357-9]|
19931             5[0-35-9]|
19932             6[124-9]|
19933             9(?:
19934               [125-8]|
19935               3[0-5]|
19936               4[0-3]
19937             )
19938           </leadingDigits>
19939           <format>$1-$2 $3</format>
19940           <intlFormat>$1 $2 $3</intlFormat>
19941         </numberFormat>
19942         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
19943           <leadingDigits>7</leadingDigits>
19944           <format>$1-$2 $3 $4</format>
19945           <intlFormat>$1 $2 $3 $4</intlFormat>
19946         </numberFormat>
19947         <numberFormat pattern="(77)(\d{2})(\d{2})">
19948           <leadingDigits>7</leadingDigits>
19949           <format>$1-$2$3</format>
19950           <intlFormat>$1 $2 $3</intlFormat>
19951         </numberFormat>
19952         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
19953           <leadingDigits>20</leadingDigits>
19954           <format>$1-$2 $3</format>
19955           <intlFormat>$1 $2 $3</intlFormat>
19956         </numberFormat>
19957         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
19958           <leadingDigits>9[034]</leadingDigits>
19959           <format>$1-$2 $3 $4</format>
19960           <intlFormat>$1 $2 $3 $4</intlFormat>
19961         </numberFormat>
19962         <numberFormat pattern="(9[034]\d)(\d{4})">
19963           <leadingDigits>9[034]</leadingDigits>
19964           <format>$1-$2</format>
19965           <intlFormat>$1 $2</intlFormat>
19966         </numberFormat>
19967       </availableFormats>
19968       <generalDesc>
19969         <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
19970         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
19971       </generalDesc>
19972       <fixedLine>
19973         <nationalNumberPattern>
19974           1(?:
19975             0[1-8]\d{6}|
19976             [136]\d{5,7}|
19977             (?:
19978               2[0-35]|
19979               4[0-4]|
19980               5[0-25-9]|
19981               7[13-6]|
19982               [89]\d
19983             )\d{5,6}
19984           )|
19985           2(?:
19986             [136]\d{5,7}|
19987             (?:
19988               2[0-7]|
19989               4[0136-8]|
19990               5[0138]|
19991               7[018]|
19992               8[01]|
19993               9[0-57]
19994             )\d{5,6}
19995           )|
19996           3(?:
19997             [356]\d{5,7}|
19998             (?:
19999               0[0-4]|
20000               1\d|
20001               2[0-25]|
20002               4[056]|
20003               7[0-2]|
20004               8[0-3]|
20005               9[023]
20006             )\d{5,6}
20007           )|
20008           4(?:
20009             0[1-9]\d{4,6}|
20010             [246]\d{5,7}|
20011             (?:
20012               1[013-8]|
20013               3[0135]|
20014               5[14-79]|
20015               7[0-246-9]|
20016               8[0156]|
20017               9[0-689]
20018             )\d{5,6}
20019           )|
20020           5(?:
20021             0[0-6]|
20022             [15][0-5]|
20023             2[0-68]|
20024             3[0-4]|
20025             4\d|
20026             6[03-5]|
20027             7[013]|
20028             8[0-79]|
20029             9[01]
20030           )\d{5,6}|
20031           6(?:
20032             0[1-9]\d{4,6}|
20033             3\d{5,7}|
20034             (?:
20035               1[1-3]|
20036               2[0-4]|
20037               4[02-57]|
20038               5[0-37]|
20039               6[0-3]|
20040               7[0-2]|
20041               8[0247]|
20042               9[0-356]
20043             )\d{5,6}
20044           )|
20045           8[1-9]\d{5,7}|
20046           9(?:
20047             0[1-9]\d{4,6}|
20048             (?:
20049               1[0-68]|
20050               2\d|
20051               3[02-5]|
20052               4[0-3]|
20053               5[0-4]|
20054               [68][01]|
20055               7[0135-8]
20056             )\d{5,6}
20057           )
20058         </nationalNumberPattern>
20059         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20060         <exampleNumber>8123456</exampleNumber>
20061       </fixedLine>
20062       <mobile>
20063         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
20064         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20065         <exampleNumber>701234567</exampleNumber>
20066       </mobile>
20067       <pager>
20068         <nationalNumberPattern>74[02-9]\d{6}</nationalNumberPattern>
20069         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20070         <exampleNumber>740123456</exampleNumber>
20071       </pager>
20072       <tollFree>
20073         <nationalNumberPattern>
20074           20(?:
20075             0(?:
20076               0\d{2}|
20077               [1-9](?:
20078                 0\d{1,4}|
20079                 [1-9]\d{4}
20080               )
20081             )|
20082             1(?:
20083               0\d{4}|
20084               [1-9]\d{4,5}
20085             )|
20086             [2-9]\d{5}
20087           )
20088         </nationalNumberPattern>
20089         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20090         <exampleNumber>20123456</exampleNumber>
20091       </tollFree>
20092       <premiumRate>
20093         <nationalNumberPattern>
20094           9(?:
20095             00|
20096             39|
20097             44
20098           )(?:
20099             1(?:
20100               [0-26]\d{5}|
20101               [3-57-9]\d{2}
20102             )|
20103             2(?:
20104               [0-2]\d{5}|
20105               [3-9]\d{2}
20106             )|
20107             3(?:
20108               [0139]\d{5}|
20109               [24-8]\d{2}
20110             )|
20111             4(?:
20112               [045]\d{5}|
20113               [1-36-9]\d{2}
20114             )|
20115             5(?:
20116               5\d{5}|
20117               [0-46-9]\d{2}
20118             )|
20119             6(?:
20120               [679]\d{5}|
20121               [0-58]\d{2}
20122             )|
20123             7(?:
20124               [078]\d{5}|
20125               [1-69]\d{2}
20126             )|
20127             8(?:
20128               [578]\d{5}|
20129               [0-469]\d{2}
20130             )
20131           )
20132         </nationalNumberPattern>
20133         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
20134         <exampleNumber>9001234567</exampleNumber>
20135       </premiumRate>
20136       <sharedCost>
20137         <nationalNumberPattern>
20138           77(?:
20139             0(?:
20140               0\d{2}|
20141               [1-9](?:
20142                 0\d|
20143                 [1-9]\d{4}
20144               )
20145             )|
20146             [1-6][1-9]\d{5}
20147           )
20148         </nationalNumberPattern>
20149         <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
20150         <exampleNumber>771234567</exampleNumber>
20151       </sharedCost>
20152       <personalNumber>
20153         <nationalNumberPattern>75[1-8]\d{6}</nationalNumberPattern>
20154         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20155         <exampleNumber>751234567</exampleNumber>
20156       </personalNumber>
20157     </territory>
20158
20159     <!-- Singapore -->
20160     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d"
20161                mobileNumberPortableRegion="true">
20162       <references>
20163         <sourceUrl>http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx</sourceUrl>
20164       </references>
20165       <availableFormats>
20166         <numberFormat pattern="([3689]\d{3})(\d{4})">
20167           <leadingDigits>
20168             [369]|
20169             8[1-9]
20170           </leadingDigits>
20171           <format>$1 $2</format>
20172         </numberFormat>
20173         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
20174           <leadingDigits>1[89]</leadingDigits>
20175           <format>$1 $2 $3</format>
20176         </numberFormat>
20177         <numberFormat pattern="(7000)(\d{4})(\d{3})">
20178           <leadingDigits>70</leadingDigits>
20179           <format>$1 $2 $3</format>
20180         </numberFormat>
20181         <numberFormat pattern="(800)(\d{3})(\d{4})">
20182           <leadingDigits>80</leadingDigits>
20183           <format>$1 $2 $3</format>
20184         </numberFormat>
20185       </availableFormats>
20186       <generalDesc>
20187         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
20188              easily strip off leading "65" country codes. -->
20189         <nationalNumberPattern>
20190           [36]\d{7}|
20191           [17-9]\d{7,10}
20192         </nationalNumberPattern>
20193         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
20194       </generalDesc>
20195       <fixedLine>
20196         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
20197         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20198         <exampleNumber>61234567</exampleNumber>
20199       </fixedLine>
20200       <mobile>
20201         <nationalNumberPattern>
20202           (?:
20203             8[1-7]|
20204             9[0-8]
20205           )\d{6}
20206         </nationalNumberPattern>
20207         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20208         <exampleNumber>81234567</exampleNumber>
20209       </mobile>
20210       <tollFree>
20211         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
20212         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
20213         <exampleNumber>18001234567</exampleNumber>
20214       </tollFree>
20215       <premiumRate>
20216         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
20217         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20218         <exampleNumber>19001234567</exampleNumber>
20219       </premiumRate>
20220       <voip>
20221         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
20222         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20223         <exampleNumber>31234567</exampleNumber>
20224       </voip>
20225       <uan>
20226         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
20227              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
20228              -->
20229         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
20230         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20231         <exampleNumber>70001234567</exampleNumber>
20232       </uan>
20233     </territory>
20234
20235     <!-- Saint Helena -->
20236     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
20237       <references>
20238         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
20239       </references>
20240       <!-- Numbers are formatted as a block. -->
20241       <generalDesc>
20242         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
20243         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
20244       </generalDesc>
20245       <fixedLine>
20246         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
20247              The new pattern is first, followed by the old (hence the repetition of the leading 2).
20248              -->
20249         <nationalNumberPattern>
20250           2(?:
20251             [0-57-9]\d|
20252             6[4-9]
20253           )\d{2}|
20254           (?:
20255             [2-46]\d|
20256             7[01]
20257           )\d{2}
20258         </nationalNumberPattern>
20259         <!-- Using St Helena Tourism as the example number. -->
20260         <exampleNumber>2158</exampleNumber>
20261       </fixedLine>
20262       <mobile>
20263         <nationalNumberPattern>NA</nationalNumberPattern>
20264         <possibleNumberPattern>NA</possibleNumberPattern>
20265       </mobile>
20266       <premiumRate>
20267         <nationalNumberPattern>
20268           (?:
20269             [59]\d|
20270             7[2-9]
20271           )\d{2}
20272         </nationalNumberPattern>
20273         <exampleNumber>5012</exampleNumber>
20274       </premiumRate>
20275     </territory>
20276
20277     <!-- Slovenia -->
20278     <territory id="SI" countryCode="386" internationalPrefix="00"
20279                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20280                mobileNumberPortableRegion="true">
20281       <references>
20282         <sourceUrl>http://www.itu.int/oth/T02020000BE/en</sourceUrl>
20283       </references>
20284       <availableFormats>
20285         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
20286           pattern="(\d)(\d{3})(\d{2})(\d{2})">
20287           <leadingDigits>
20288             [12]|
20289             3[4-8]|
20290             4[24-8]|
20291             5[2-8]|
20292             7[3-8]
20293           </leadingDigits>
20294           <format>$1 $2 $3 $4</format>
20295           </numberFormat>
20296         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
20297           <leadingDigits>
20298             [37][01]|
20299             4[0139]|
20300             51|
20301             6
20302           </leadingDigits>
20303           <format>$1 $2 $3</format>
20304           </numberFormat>
20305         <numberFormat pattern="([89][09])(\d{3,6})">
20306           <leadingDigits>[89][09]</leadingDigits>
20307           <format>$1 $2</format>
20308         </numberFormat>
20309         <numberFormat pattern="([58]\d{2})(\d{5})">
20310           <leadingDigits>
20311             59|
20312             8[1-3]
20313           </leadingDigits>
20314           <format>$1 $2</format>
20315         </numberFormat>
20316       </availableFormats>
20317       <generalDesc>
20318         <nationalNumberPattern>
20319           [1-7]\d{6,7}|
20320           [89]\d{4,7}
20321         </nationalNumberPattern>
20322         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20323       </generalDesc>
20324       <fixedLine>
20325         <nationalNumberPattern>
20326           (?:
20327             1\d|
20328             [25][2-8]|
20329             3[4-8]|
20330             4[24-8]|
20331             7[3-8]
20332           )\d{6}
20333         </nationalNumberPattern>
20334         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
20335         <exampleNumber>11234567</exampleNumber>
20336       </fixedLine>
20337       <mobile>
20338         <!-- We include 043 and 049 here - it is VoIP in the plan, but is actually used to provide
20339              mobile coverage to Kosovo. Also added 068, which is used by the mobile operator bob.si
20340          -->
20341         <nationalNumberPattern>
20342           (?:
20343             [37][01]|
20344             4[0139]|
20345             51|
20346             6[48]
20347           )\d{6}
20348         </nationalNumberPattern>
20349         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20350         <exampleNumber>31234567</exampleNumber>
20351       </mobile>
20352       <tollFree>
20353         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
20354         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20355         <exampleNumber>80123456</exampleNumber>
20356       </tollFree>
20357       <premiumRate>
20358         <!-- Includes televoting, mass calling -->
20359         <nationalNumberPattern>
20360           90\d{4,6}|
20361           89[1-3]\d{2,5}
20362         </nationalNumberPattern>
20363         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20364         <exampleNumber>90123456</exampleNumber>
20365       </premiumRate>
20366       <voip>
20367         <nationalNumberPattern>
20368           (?:
20369             59|
20370             8[1-3]
20371           )\d{6}
20372         </nationalNumberPattern>
20373         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20374         <exampleNumber>59012345</exampleNumber>
20375       </voip>
20376     </territory>
20377
20378     <!-- Svalbard -->
20379     <!-- Metadata shared with Norway. -->
20380     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
20381       <references>
20382         <sourceUrl>http://www.npt.no/pt_internet/numsys/E.164.pdf</sourceUrl>
20383       </references>
20384       <generalDesc>
20385         <nationalNumberPattern>
20386           0\d{4}|
20387           [4789]\d{7}
20388         </nationalNumberPattern>
20389         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
20390       </generalDesc>
20391       <fixedLine>
20392         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
20393         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20394         <exampleNumber>79123456</exampleNumber>
20395       </fixedLine>
20396       <!-- Copied from Norway metadata. -->
20397       <mobile>
20398         <nationalNumberPattern>
20399           (?:
20400             4[015-8]|
20401             5[89]|
20402             9\d
20403           )\d{6}
20404         </nationalNumberPattern>
20405         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20406         <exampleNumber>41234567</exampleNumber>
20407       </mobile>
20408       <tollFree>
20409         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
20410         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20411         <exampleNumber>80012345</exampleNumber>
20412       </tollFree>
20413       <premiumRate>
20414         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
20415         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20416         <exampleNumber>82012345</exampleNumber>
20417       </premiumRate>
20418       <sharedCost>
20419         <nationalNumberPattern>
20420           810(?:
20421             0[0-6]|
20422             [2-8]\d
20423           )\d{3}
20424         </nationalNumberPattern>
20425         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20426         <exampleNumber>81021234</exampleNumber>
20427       </sharedCost>
20428       <personalNumber>
20429         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
20430         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20431         <exampleNumber>88012345</exampleNumber>
20432       </personalNumber>
20433       <voip>
20434         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
20435         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20436         <exampleNumber>85012345</exampleNumber>
20437       </voip>
20438       <uan>
20439         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
20440         <nationalNumberPattern>
20441           0\d{4}|
20442           81(?:
20443             0(?:
20444               0[7-9]|
20445               1\d
20446             )|
20447             5\d{2}
20448           )\d{3}
20449         </nationalNumberPattern>
20450         <exampleNumber>01234</exampleNumber>
20451       </uan>
20452       <voicemail>
20453         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
20454         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20455         <exampleNumber>81212345</exampleNumber>
20456       </voicemail>
20457     </territory>
20458
20459     <!-- Slovakia -->
20460     <territory id="SK" countryCode="421" internationalPrefix="00"
20461                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20462                mobileNumberPortableRegion="true">
20463       <references>
20464         <sourceUrl>http://www.itu.int/oth/T02020000BD/en</sourceUrl>
20465       </references>
20466       <availableFormats>
20467         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
20468           <leadingDigits>2</leadingDigits>
20469           <format>$1/$2 $3 $4</format>
20470         </numberFormat>
20471         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
20472           <leadingDigits>[3-5]</leadingDigits>
20473           <format>$1/$2 $3 $4</format>
20474         </numberFormat>
20475         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
20476           <leadingDigits>[689]</leadingDigits>
20477           <format>$1 $2 $3</format>
20478         </numberFormat>
20479       </availableFormats>
20480       <generalDesc>
20481         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
20482         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20483       </generalDesc>
20484       <noInternationalDialling>
20485         <nationalNumberPattern>
20486           (?:
20487             8(?:
20488               00|
20489               [5-9]\d
20490             )|
20491             9(?:
20492               00|
20493               [78]\d
20494             )
20495           )\d{6}
20496         </nationalNumberPattern>
20497         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20498         <exampleNumber>800123456</exampleNumber>
20499       </noInternationalDialling>
20500       <fixedLine>
20501         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
20502         <exampleNumber>212345678</exampleNumber>
20503       </fixedLine>
20504       <mobile>
20505         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
20506              deeming it valid for now. -->
20507         <nationalNumberPattern>
20508           9(?:
20509             0[1-8]|
20510             1[0-24-9]|
20511             4[0489]
20512           )\d{6}
20513         </nationalNumberPattern>
20514         <exampleNumber>912123456</exampleNumber>
20515       </mobile>
20516       <tollFree>
20517         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20518         <exampleNumber>800123456</exampleNumber>
20519       </tollFree>
20520       <premiumRate>
20521         <nationalNumberPattern>
20522           9(?:
20523             [78]\d{7}|
20524             00\d{6}
20525           )
20526         </nationalNumberPattern>
20527         <exampleNumber>900123456</exampleNumber>
20528       </premiumRate>
20529       <sharedCost>
20530         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
20531         <exampleNumber>850123456</exampleNumber>
20532       </sharedCost>
20533       <voip>
20534         <nationalNumberPattern>
20535           6(?:
20536             5[0-4]|
20537             9[0-6]
20538           )\d{6}
20539         </nationalNumberPattern>
20540         <exampleNumber>690123456</exampleNumber>
20541       </voip>
20542       <uan>
20543         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
20544         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20545         <exampleNumber>961234567</exampleNumber>
20546       </uan>
20547     </territory>
20548
20549     <!-- Sierra Leone -->
20550     <territory id="SL" countryCode="232" internationalPrefix="00"
20551                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
20552       <references>
20553         <sourceUrl>http://www.itu.int/oth/T02020000BB/en</sourceUrl>
20554       </references>
20555       <availableFormats>
20556         <!-- Following formatting of online yellow pages http://www.leonedirect.com -->
20557         <numberFormat pattern="(\d{2})(\d{6})">
20558           <format>$1 $2</format>
20559         </numberFormat>
20560       </availableFormats>
20561       <generalDesc>
20562         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
20563         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20564       </generalDesc>
20565       <fixedLine>
20566         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
20567         <exampleNumber>22221234</exampleNumber>
20568       </fixedLine>
20569       <mobile>
20570         <nationalNumberPattern>
20571           (?:
20572             2[15]|
20573             3[034]|
20574             4[04]|
20575             5[05]|
20576             7[6-9]|
20577             88
20578           )\d{6}
20579         </nationalNumberPattern>
20580         <exampleNumber>25123456</exampleNumber>
20581       </mobile>
20582     </territory>
20583
20584     <!-- San Marino -->
20585     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
20586          optional when dialling from outside the country; the phone number can be reached both with
20587          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
20588          are used to ensure that if the 0549 is not present, it will be added. -->
20589     <territory id="SM" countryCode="378" internationalPrefix="00"
20590                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
20591                leadingZeroPossible="true">
20592       <references>
20593         <sourceUrl>http://www.itu.int/oth/T02020000B5/en</sourceUrl>
20594         <!-- Information about Italy. -->
20595         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
20596         <sourceUrl>http://en.wikipedia.org/wiki/%2B378</sourceUrl>
20597       </references>
20598       <availableFormats>
20599         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
20600           <leadingDigits>[5-7]</leadingDigits>
20601           <format>$1 $2 $3 $4</format>
20602         </numberFormat>
20603         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
20604         <numberFormat pattern="(0549)(\d{6})">
20605           <leadingDigits>0</leadingDigits>
20606           <format>$1 $2</format>
20607           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
20608                formatting in international format. -->
20609           <intlFormat>($1) $2</intlFormat>
20610         </numberFormat>
20611         <!-- A rule in case the number has been stored without the leading 0549 necessary for
20612              fixed-lines. -->
20613         <numberFormat pattern="(\d{6})">
20614           <leadingDigits>[89]</leadingDigits>
20615           <format>0549 $1</format>
20616           <intlFormat>(0549) $1</intlFormat>
20617         </numberFormat>
20618       </availableFormats>
20619       <generalDesc>
20620         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
20621         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
20622       </generalDesc>
20623       <!-- Example numbers provided by the Telecommunications Services. -->
20624       <fixedLine>
20625         <nationalNumberPattern>
20626           0549(?:
20627             8[0157-9]|
20628             9\d
20629           )\d{4}
20630         </nationalNumberPattern>
20631         <exampleNumber>0549886377</exampleNumber>
20632       </fixedLine>
20633       <mobile>
20634         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
20635         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20636         <exampleNumber>66661212</exampleNumber>
20637       </mobile>
20638       <premiumRate>
20639         <!-- Includes Video Call numbers. -->
20640         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
20641         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20642         <exampleNumber>71123456</exampleNumber>
20643       </premiumRate>
20644       <voip>
20645         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
20646         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20647         <exampleNumber>58001110</exampleNumber>
20648       </voip>
20649     </territory>
20650
20651     <!-- Senegal -->
20652     <territory id="SN" countryCode="221" internationalPrefix="00">
20653       <references>
20654         <sourceUrl>http://www.itu.int/oth/T02020000B8/en</sourceUrl>
20655         <sourceUrl>http://www.artpsenegal.net</sourceUrl>
20656       </references>
20657       <availableFormats>
20658         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
20659              the national numbering plan. -->
20660         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
20661           <leadingDigits>[379]</leadingDigits>
20662           <format>$1 $2 $3 $4</format>
20663         </numberFormat>
20664         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20665           <leadingDigits>8</leadingDigits>
20666           <format>$1 $2 $3 $4</format>
20667         </numberFormat>
20668       </availableFormats>
20669       <generalDesc>
20670         <nationalNumberPattern>[3789]\d{8}</nationalNumberPattern>
20671         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20672       </generalDesc>
20673       <fixedLine>
20674         <nationalNumberPattern>
20675           3(?:
20676             0(?:
20677               1[0-2]|
20678               80
20679             )|
20680             282|
20681             3(?:
20682               8[1-9]|
20683               9[3-9]
20684             )|
20685             611|
20686             90[1-5]
20687           )\d{5}
20688         </nationalNumberPattern>
20689         <exampleNumber>301012345</exampleNumber>
20690       </fixedLine>
20691       <mobile>
20692         <nationalNumberPattern>
20693           7(?:
20694             [067]\d|
20695             21|
20696             8[0-26]|
20697             90
20698           )\d{6}
20699         </nationalNumberPattern>
20700         <exampleNumber>701234567</exampleNumber>
20701       </mobile>
20702       <tollFree>
20703         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20704         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20705         <exampleNumber>800123456</exampleNumber>
20706       </tollFree>
20707       <premiumRate>
20708         <!-- Revenu Partagé in the plan. -->
20709         <nationalNumberPattern>88[4689]\d{6}</nationalNumberPattern>
20710         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20711         <exampleNumber>884123456</exampleNumber>
20712       </premiumRate>
20713       <sharedCost>
20714         <nationalNumberPattern>81[02468]\d{6}</nationalNumberPattern>
20715         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20716         <exampleNumber>810123456</exampleNumber>
20717       </sharedCost>
20718       <voip>
20719         <!-- Also covers satellite telephony ranges. -->
20720         <nationalNumberPattern>
20721           3392\d{5}|
20722           93330\d{4}
20723         </nationalNumberPattern>
20724         <exampleNumber>933301234</exampleNumber>
20725       </voip>
20726     </territory>
20727
20728     <!-- Somalia -->
20729     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
20730          information available, and the numerous telecom carriers were previously working under an
20731          unregulated environment. The extra prefixes were added from the contact phone numbers of
20732          the countries main telecom operators. We also have received information that a national
20733          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
20734          for some operators, so that is included here although we do not use it when formatting. -->
20735     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
20736       <references>
20737         <sourceUrl>http://www.itu.int/oth/T02020000C0/en</sourceUrl>
20738         <sourceUrl>http://en.wikipedia.org/wiki/+252</sourceUrl>
20739       </references>
20740       <availableFormats>
20741         <!-- These follow formats online, such as http://www.hortel.net/contact_us.html -->
20742         <numberFormat pattern="(\d)(\d{6})">
20743           <leadingDigits>
20744             2[0-79]|
20745             [13-5]
20746           </leadingDigits>
20747           <format>$1 $2</format>
20748         </numberFormat>
20749         <numberFormat pattern="(\d)(\d{7})">
20750           <leadingDigits>
20751             24|
20752             [67]
20753           </leadingDigits>
20754           <format>$1 $2</format>
20755         </numberFormat>
20756         <numberFormat pattern="(\d{2})(\d{5,7})">
20757           <leadingDigits>
20758             15|
20759             28|
20760             6[1378]
20761           </leadingDigits>
20762           <format>$1 $2</format>
20763         </numberFormat>
20764         <numberFormat pattern="(69\d)(\d{6})">
20765           <leadingDigits>69</leadingDigits>
20766           <format>$1 $2</format>
20767         </numberFormat>
20768         <numberFormat pattern="(90\d)(\d{3})(\d{3})">
20769           <leadingDigits>90</leadingDigits>
20770           <format>$1 $2 $3</format>
20771         </numberFormat>
20772       </availableFormats>
20773       <generalDesc>
20774         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
20775         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20776       </generalDesc>
20777       <fixedLine>
20778         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
20779              here since that is apparently used for mobile. -->
20780         <nationalNumberPattern>
20781           (?:
20782             1\d|
20783             2[0-79]|
20784             3[0-46-8]|
20785             4[0-7]|
20786             59
20787           )\d{5}
20788         </nationalNumberPattern>
20789         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20790         <exampleNumber>4012345</exampleNumber>
20791       </fixedLine>
20792       <mobile>
20793         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
20794              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
20795              Somtel. 6 followed by only 7 digits is used by Telecom. Note that in June 2014 many
20796              ranges were suspended by the government. 90\d{6} was listed as one of the ranges to be
20797              suspended, but open-source contributors confirm that 907\d{6} is still in use, even if
20798              the shorter 90 ranges are no longer. -->
20799         <nationalNumberPattern>
20800           (?:
20801             15\d|
20802             2(?:
20803               4\d|
20804               8
20805             )|
20806             6[137-9]?\d{2}|
20807             7[1-9]\d|
20808             907\d
20809           )\d{5}
20810         </nationalNumberPattern>
20811         <exampleNumber>71123456</exampleNumber>
20812       </mobile>
20813     </territory>
20814
20815     <!-- Suriname -->
20816     <territory id="SR" countryCode="597" internationalPrefix="00">
20817       <references>
20818         <sourceUrl>http://www.itu.int/oth/T02020000C5/en</sourceUrl>
20819       </references>
20820       <availableFormats>
20821         <!-- Following conventions used in the Suriname Yellow Pages. -->
20822         <numberFormat pattern="(\d{3})(\d{3})">
20823           <leadingDigits>
20824             [2-4]|
20825             5[2-58]
20826           </leadingDigits>
20827           <format>$1-$2</format>
20828         </numberFormat>
20829         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
20830           <leadingDigits>56</leadingDigits>
20831           <format>$1-$2-$3</format>
20832         </numberFormat>
20833         <numberFormat pattern="(\d{3})(\d{4})">
20834           <leadingDigits>
20835             59|
20836             [6-8]
20837           </leadingDigits>
20838           <format>$1-$2</format>
20839         </numberFormat>
20840       </availableFormats>
20841       <generalDesc>
20842         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
20843         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20844       </generalDesc>
20845       <fixedLine>
20846         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
20847         <nationalNumberPattern>
20848           (?:
20849             2[1-3]|
20850             3[0-7]|
20851             4\d|
20852             5[2-58]|
20853             68\d
20854           )\d{4}
20855         </nationalNumberPattern>
20856         <exampleNumber>211234</exampleNumber>
20857       </fixedLine>
20858       <mobile>
20859         <nationalNumberPattern>
20860           (?:
20861             7[124-7]|
20862             8[1-9]
20863           )\d{5}
20864         </nationalNumberPattern>
20865         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20866         <exampleNumber>7412345</exampleNumber>
20867       </mobile>
20868       <voip>
20869         <nationalNumberPattern>
20870           5(?:
20871             6\d{4}|
20872             90[0-4]\d{3}
20873           )
20874         </nationalNumberPattern>
20875         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20876         <exampleNumber>561234</exampleNumber>
20877       </voip>
20878     </territory>
20879
20880     <!-- South Sudan -->
20881     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
20882       <references>
20883         <sourceUrl>http://www.itu.int/oth/T02020000F9/en</sourceUrl>
20884         <sourceUrl>http://en.wikipedia.org/wiki/+211</sourceUrl>
20885       </references>
20886       <availableFormats>
20887         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
20888           <format>$1 $2 $3</format>
20889         </numberFormat>
20890       </availableFormats>
20891       <generalDesc>
20892         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
20893         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20894       </generalDesc>
20895       <fixedLine>
20896         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
20897         <exampleNumber>181234567</exampleNumber>
20898       </fixedLine>
20899       <mobile>
20900         <nationalNumberPattern>
20901           (?:
20902             12|
20903             9[1257]
20904           )\d{7}
20905         </nationalNumberPattern>
20906         <exampleNumber>977123456</exampleNumber>
20907       </mobile>
20908     </territory>
20909
20910     <!-- Sao Tome and Principe -->
20911     <territory id="ST" countryCode="239" internationalPrefix="00">
20912       <references>
20913         <sourceUrl>http://www.itu.int/oth/T02020000B6/en</sourceUrl>
20914       </references>
20915       <availableFormats>
20916         <numberFormat pattern="(\d{3})(\d{4})">
20917           <format>$1 $2</format>
20918         </numberFormat>
20919       </availableFormats>
20920       <generalDesc>
20921         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
20922         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20923       </generalDesc>
20924       <fixedLine>
20925         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
20926         <exampleNumber>2221234</exampleNumber>
20927       </fixedLine>
20928       <mobile>
20929         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
20930         <exampleNumber>9812345</exampleNumber>
20931       </mobile>
20932     </territory>
20933
20934     <!-- El Salvador -->
20935     <territory id="SV" countryCode="503" internationalPrefix="00">
20936       <references>
20937         <sourceUrl>http://www.itu.int/oth/T020200003F/en</sourceUrl>
20938         <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>
20939       </references>
20940       <availableFormats>
20941         <numberFormat pattern="(\d{4})(\d{4})">
20942           <leadingDigits>[267]</leadingDigits>
20943           <format>$1 $2</format>
20944         </numberFormat>
20945         <numberFormat pattern="(\d{3})(\d{4})">
20946           <leadingDigits>[89]</leadingDigits>
20947           <format>$1 $2</format>
20948         </numberFormat>
20949         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
20950           <leadingDigits>[89]</leadingDigits>
20951           <format>$1 $2 $3</format>
20952         </numberFormat>
20953       </availableFormats>
20954       <generalDesc>
20955         <nationalNumberPattern>
20956           [267]\d{7}|
20957           [89]\d{6}(?:\d{4})?
20958         </nationalNumberPattern>
20959         <possibleNumberPattern>
20960           \d{7,8}|
20961           \d{11}
20962         </possibleNumberPattern>
20963       </generalDesc>
20964       <fixedLine>
20965         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
20966         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
20967         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20968         <exampleNumber>21234567</exampleNumber>
20969       </fixedLine>
20970       <mobile>
20971         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
20972         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20973         <exampleNumber>70123456</exampleNumber>
20974       </mobile>
20975       <tollFree>
20976         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
20977         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
20978         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
20979         <exampleNumber>8001234</exampleNumber>
20980       </tollFree>
20981       <premiumRate>
20982         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
20983         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
20984         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
20985         <exampleNumber>9001234</exampleNumber>
20986       </premiumRate>
20987     </territory>
20988
20989     <!-- Sint Maarten -->
20990     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
20991                internationalPrefix="011">
20992       <references>
20993         <sourceUrl>http://www.nanpa.com/pdf/PL_429.pdf</sourceUrl>
20994         <sourceUrl>http://www.itu.int/oth/T02020000F7/en</sourceUrl>
20995       </references>
20996       <generalDesc>
20997         <!-- NANPA country - uses US formatting rules -->
20998         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
20999         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21000       </generalDesc>
21001       <fixedLine>
21002         <nationalNumberPattern>
21003           7215(?:
21004             4[2-8]|
21005             8[239]|
21006             9[056]
21007           )\d{4}
21008         </nationalNumberPattern>
21009         <exampleNumber>7215425678</exampleNumber>
21010       </fixedLine>
21011       <mobile>
21012         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
21013              include these as mobile numbers. -->
21014         <nationalNumberPattern>
21015           7215(?:
21016             1[02]|
21017             2\d|
21018             5[034679]|
21019             8[014-8]
21020           )\d{4}
21021         </nationalNumberPattern>
21022         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21023         <exampleNumber>7215205678</exampleNumber>
21024       </mobile>
21025       <tollFree>
21026         <nationalNumberPattern>
21027           8(?:
21028             00|
21029             44|
21030             55|
21031             66|
21032             77|
21033             88
21034           )[2-9]\d{6}
21035         </nationalNumberPattern>
21036         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21037         <exampleNumber>8002123456</exampleNumber>
21038       </tollFree>
21039       <premiumRate>
21040         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21041         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21042         <exampleNumber>9002123456</exampleNumber>
21043       </premiumRate>
21044       <personalNumber>
21045         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21046         <nationalNumberPattern>
21047           5(?:
21048             00|
21049             33|
21050             44|
21051             66|
21052             77
21053           )[2-9]\d{6}
21054         </nationalNumberPattern>
21055         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21056         <exampleNumber>5002345678</exampleNumber>
21057       </personalNumber>
21058     </territory>
21059
21060     <!-- Syrian Arab Republic -->
21061     <territory id="SY" countryCode="963" internationalPrefix="00"
21062                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21063                nationalPrefixOptionalWhenFormatting="true">
21064       <references>
21065         <sourceUrl>http://www.itu.int/oth/T02020000C9/en</sourceUrl>
21066         <sourceUrl>http://en.wikipedia.org/wiki/%2B963</sourceUrl>
21067       </references>
21068       <availableFormats>
21069         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
21070           <leadingDigits>[1-5]</leadingDigits>
21071           <format>$1 $2 $3</format>
21072         </numberFormat>
21073         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
21074           <leadingDigits>9</leadingDigits>
21075           <format>$1 $2 $3</format>
21076         </numberFormat>
21077       </availableFormats>
21078       <generalDesc>
21079         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
21080         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
21081       </generalDesc>
21082       <fixedLine>
21083       <!-- Numbers with the 21 prefix are made optionally 1-digit longer based on numbers found on
21084            the Internet. -->
21085         <nationalNumberPattern>
21086           (?:
21087             1(?:
21088               1\d?|
21089               4\d|
21090               [2356]
21091             )|
21092             2(?:
21093               1\d?|
21094               [235]
21095             )|
21096             3(?:
21097               [13]\d|
21098               4
21099             )|
21100             4[13]|
21101             5[1-3]
21102           )\d{6}
21103         </nationalNumberPattern>
21104         <exampleNumber>112345678</exampleNumber>
21105       </fixedLine>
21106       <mobile>
21107         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
21108              95[138], and 96[05]. -->
21109         <nationalNumberPattern>
21110           9(?:
21111             22|
21112             [35][0-8]|
21113             4\d|
21114             6[024-9]|
21115             88|
21116             9[0-489]
21117           )\d{6}
21118         </nationalNumberPattern>
21119         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21120         <exampleNumber>944567890</exampleNumber>
21121       </mobile>
21122       <!-- No tollFree or premiumRate information can be found. -->
21123     </territory>
21124
21125     <!-- Swaziland -->
21126     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
21127       <references>
21128         <sourceUrl>http://www.itu.int/oth/T02020000C6/en</sourceUrl>
21129       </references>
21130       <availableFormats>
21131         <numberFormat pattern="(\d{4})(\d{4})">
21132           <leadingDigits>[027]</leadingDigits>
21133           <format>$1 $2</format>
21134         </numberFormat>
21135       </availableFormats>
21136       <generalDesc>
21137         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
21138         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21139       </generalDesc>
21140       <noInternationalDialling>
21141         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21142         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21143         <exampleNumber>08001234</exampleNumber>
21144       </noInternationalDialling>
21145       <fixedLine>
21146         <nationalNumberPattern>
21147           2(?:
21148             2(?:
21149               0[07]|
21150               [13]7|
21151               2[57]
21152             )|
21153             3(?:
21154               0[34]|
21155               [1278]3|
21156               3[23]|
21157               [46][34]
21158             )|
21159             (?:
21160               40[4-69]|
21161               67
21162             )|
21163             5(?:
21164               0[5-7]|
21165               1[6-9]|
21166               [23][78]|
21167               48|
21168               5[01]
21169             )
21170           )\d{4}
21171         </nationalNumberPattern>
21172         <exampleNumber>22171234</exampleNumber>
21173       </fixedLine>
21174       <mobile>
21175         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
21176         <exampleNumber>76123456</exampleNumber>
21177       </mobile>
21178       <tollFree>
21179         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21180         <exampleNumber>08001234</exampleNumber>
21181       </tollFree>
21182     </territory>
21183
21184     <!-- Tristan da Cunha -->
21185     <territory id="TA" countryCode="290" internationalPrefix="00">
21186       <references>
21187         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
21188       </references>
21189       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
21190       <generalDesc>
21191         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21192         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21193       </generalDesc>
21194       <fixedLine>
21195         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21196         <exampleNumber>8999</exampleNumber>
21197       </fixedLine>
21198       <mobile>
21199         <nationalNumberPattern>NA</nationalNumberPattern>
21200         <possibleNumberPattern>NA</possibleNumberPattern>
21201       </mobile>
21202     </territory>
21203
21204     <!-- Turks and Caicos Islands -->
21205     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
21206                internationalPrefix="011">
21207       <references>
21208         <sourceUrl>http://www.itu.int/oth/T02020000D8/en</sourceUrl>
21209       </references>
21210       <generalDesc>
21211         <!-- NANPA country - uses US formatting rules -->
21212         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
21213         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21214       </generalDesc>
21215       <fixedLine>
21216         <nationalNumberPattern>
21217           649(?:
21218             712|
21219             9(?:
21220               4\d|
21221               50
21222             )
21223           )\d{4}
21224         </nationalNumberPattern>
21225         <exampleNumber>6497121234</exampleNumber>
21226       </fixedLine>
21227       <mobile>
21228         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
21229         <nationalNumberPattern>
21230           649(?:
21231             2(?:
21232               3[129]|
21233               4[1-7]
21234             )|
21235             3(?:
21236               3[1-389]|
21237               4[1-7]
21238             )|
21239             4[34][1-3]
21240           )\d{4}
21241         </nationalNumberPattern>
21242         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21243         <exampleNumber>6492311234</exampleNumber>
21244       </mobile>
21245       <tollFree>
21246         <nationalNumberPattern>
21247           8(?:
21248             00|
21249             44|
21250             55|
21251             66|
21252             77|
21253             88
21254           )[2-9]\d{6}
21255         </nationalNumberPattern>
21256         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21257         <exampleNumber>8002345678</exampleNumber>
21258       </tollFree>
21259       <premiumRate>
21260         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21261         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21262         <exampleNumber>9002345678</exampleNumber>
21263       </premiumRate>
21264       <personalNumber>
21265         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21266         <nationalNumberPattern>
21267           5(?:
21268             00|
21269             33|
21270             44|
21271             66|
21272             77
21273           )[2-9]\d{6}
21274         </nationalNumberPattern>
21275         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21276         <exampleNumber>5002345678</exampleNumber>
21277       </personalNumber>
21278       <voip>
21279         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
21280         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21281         <exampleNumber>6497101234</exampleNumber>
21282       </voip>
21283     </territory>
21284
21285     <!-- Chad -->
21286     <!-- The international prefix includes 16 as the international manual exchange. -->
21287     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
21288                internationalPrefix="00|16">
21289       <references>
21290         <sourceUrl>http://www.itu.int/oth/T0202000029/en</sourceUrl>
21291       </references>
21292       <availableFormats>
21293         <numberFormat
21294           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21295           <format>$1 $2 $3 $4</format>
21296         </numberFormat>
21297       </availableFormats>
21298       <generalDesc>
21299         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
21300         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21301       </generalDesc>
21302       <fixedLine>
21303         <nationalNumberPattern>
21304           22(?:
21305             [3789]0|
21306             5[0-5]|
21307             6[89]
21308           )\d{4}
21309         </nationalNumberPattern>
21310         <exampleNumber>22501234</exampleNumber>
21311       </fixedLine>
21312       <mobile>
21313         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
21314              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
21315              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
21316         <nationalNumberPattern>
21317           (?:
21318             6[02368]\d|
21319             77\d|
21320             9(?:
21321               5[0-4]|
21322               9\d
21323             )
21324           )\d{5}
21325         </nationalNumberPattern>
21326         <exampleNumber>63012345</exampleNumber>
21327       </mobile>
21328     </territory>
21329
21330     <!-- French Southern Territories -->
21331     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
21332     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
21333          temporary inhabitants. -->
21334
21335     <!-- Togo -->
21336     <territory id="TG" countryCode="228" internationalPrefix="00">
21337       <references>
21338         <sourceUrl>http://www.itu.int/oth/T02020000D1/en</sourceUrl>
21339       </references>
21340       <availableFormats>
21341         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21342           <format>$1 $2 $3 $4</format>
21343         </numberFormat>
21344       </availableFormats>
21345       <generalDesc>
21346         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
21347         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21348       </generalDesc>
21349       <fixedLine>
21350         <nationalNumberPattern>
21351           2(?:
21352             2[2-7]|
21353             3[23]|
21354             44|
21355             55|
21356             66|
21357             77
21358           )\d{5}
21359         </nationalNumberPattern>
21360         <exampleNumber>22212345</exampleNumber>
21361       </fixedLine>
21362       <mobile>
21363         <!-- Prefix 93 is from an open-source bug report -->
21364         <nationalNumberPattern>9[0-389]\d{6}</nationalNumberPattern>
21365         <exampleNumber>90112345</exampleNumber>
21366       </mobile>
21367     </territory>
21368
21369     <!-- Thailand -->
21370     <territory id="TH" countryCode="66" internationalPrefix="00"
21371                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21372                mobileNumberPortableRegion="true">
21373       <references>
21374         <sourceUrl>http://www.itu.int/oth/T02020000CD/en</sourceUrl>
21375         <sourceUrl>http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf</sourceUrl>
21376       </references>
21377       <availableFormats>
21378         <!-- Formatting patterns from wikipedia and the document itself -
21379              http://en.wikipedia.org/wiki/%2B66 -->
21380         <numberFormat pattern="(2)(\d{3})(\d{4})">
21381           <leadingDigits>2</leadingDigits>
21382           <format>$1 $2 $3</format>
21383         </numberFormat>
21384         <numberFormat pattern="([13-9]\d)(\d{3})(\d{3,4})">
21385           <leadingDigits>
21386             14|
21387             [3-9]
21388           </leadingDigits>
21389           <format>$1 $2 $3</format>
21390         </numberFormat>
21391         <numberFormat nationalPrefixFormattingRule="$FG"
21392           pattern="(1[89]00)(\d{3})(\d{3})">
21393           <leadingDigits>1</leadingDigits>
21394           <format>$1 $2 $3</format>
21395         </numberFormat>
21396       </availableFormats>
21397       <generalDesc>
21398         <nationalNumberPattern>
21399           [2-9]\d{7,8}|
21400           1\d{3}(?:\d{5,6})?
21401         </nationalNumberPattern>
21402         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
21403       </generalDesc>
21404       <noInternationalDialling>
21405         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21406         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21407         <exampleNumber>1100</exampleNumber>
21408       </noInternationalDialling>
21409       <fixedLine>
21410         <!-- Numbers online have been found that start with 20, despite the ITU doc not covering
21411              these. -->
21412         <nationalNumberPattern>
21413           (?:
21414             2\d|
21415             3[2-9]|
21416             4[2-5]|
21417             5[2-6]|
21418             7[3-7]
21419           )\d{6}
21420         </nationalNumberPattern>
21421         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21422         <exampleNumber>21234567</exampleNumber>
21423       </fixedLine>
21424       <mobile>
21425         <!-- Numbers found online starting with 62. 14 and 63 are from an open-source bug report,
21426              we couldn't find evidence of these specifically being in use but this article
21427              http://www.prachachat.net/news_detail.php?newsid=1395732787&grpid=03&catid=06&subcatid=0600
21428              talks about prefix 6 and 1 being cleared for mobile use. -->
21429         <nationalNumberPattern>
21430           (?:
21431             14|
21432             6[1-3]|
21433             [89]\d
21434           )\d{7}
21435         </nationalNumberPattern>
21436         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21437         <exampleNumber>812345678</exampleNumber>
21438       </mobile>
21439       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
21440       <tollFree>
21441         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
21442         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21443         <exampleNumber>1800123456</exampleNumber>
21444       </tollFree>
21445       <premiumRate>
21446         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
21447         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21448         <exampleNumber>1900123456</exampleNumber>
21449       </premiumRate>
21450       <voip>
21451         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
21452              online to suggest they are actually used as mobile numbers. -->
21453         <nationalNumberPattern>6[08]\d{7}</nationalNumberPattern>
21454         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21455         <exampleNumber>601234567</exampleNumber>
21456       </voip>
21457       <uan>
21458         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
21459              their costs range from free to 6 Baht/min. -->
21460         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21461         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21462         <exampleNumber>1100</exampleNumber>
21463       </uan>
21464     </territory>
21465
21466     <!-- Tajikistan -->
21467     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
21468                internationalPrefix="810" nationalPrefix="8"
21469                nationalPrefixFormattingRule="($NP) $FG"
21470                nationalPrefixOptionalWhenFormatting="true">
21471       <references>
21472         <sourceUrl>http://www.itu.int/oth/T02020000CA/en</sourceUrl>
21473       </references>
21474       <availableFormats>
21475         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
21476           <leadingDigits>
21477             [34]7|
21478             91[78]
21479           </leadingDigits>
21480           <format>$1 $2 $3</format>
21481         </numberFormat>
21482         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
21483           <leadingDigits>
21484             4[48]|
21485             5|
21486             9(?:
21487               1[59]|
21488               [0235-9]
21489             )
21490           </leadingDigits>
21491           <format>$1 $2 $3</format>
21492         </numberFormat>
21493         <numberFormat pattern="(331700)(\d)(\d{2})">
21494           <leadingDigits>331</leadingDigits>
21495           <leadingDigits>3317</leadingDigits>
21496           <leadingDigits>33170</leadingDigits>
21497           <leadingDigits>331700</leadingDigits>
21498           <format>$1 $2 $3</format>
21499         </numberFormat>
21500         <numberFormat pattern="(\d{4})(\d)(\d{4})">
21501           <leadingDigits>3[1-5]</leadingDigits>
21502           <leadingDigits>
21503             3(?:
21504               [1245]|
21505               3(?:
21506                 [02-9]|
21507                 1[0-589]
21508               )
21509             )
21510           </leadingDigits>
21511           <format>$1 $2 $3</format>
21512         </numberFormat>
21513       </availableFormats>
21514       <generalDesc>
21515         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
21516         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
21517       </generalDesc>
21518       <fixedLine>
21519         <nationalNumberPattern>
21520           (?:
21521             3(?:
21522               1[3-5]|
21523               2[245]|
21524               3[12]|
21525               4[24-7]|
21526               5[25]|
21527               72
21528             )|
21529             4(?:
21530               46|
21531               74|
21532               87
21533             )
21534           )\d{6}
21535         </nationalNumberPattern>
21536         <exampleNumber>372123456</exampleNumber>
21537       </fixedLine>
21538       <mobile>
21539         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
21540              numbers, and 50[12] for TCell from bug reports. -->
21541         <nationalNumberPattern>
21542           (?:
21543             50[125]|
21544             9[0-35-9]\d
21545           )\d{6}
21546         </nationalNumberPattern>
21547         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21548         <exampleNumber>917123456</exampleNumber>
21549       </mobile>
21550       <!-- No tollFree or premiumRate information can be found. -->
21551     </territory>
21552
21553     <!-- Tokelau -->
21554     <territory id="TK" countryCode="690" internationalPrefix="00">
21555       <references>
21556         <sourceUrl>http://www.itu.int/oth/T02020000D2/en</sourceUrl>
21557       </references>
21558       <generalDesc>
21559         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
21560         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21561       </generalDesc>
21562       <fixedLine>
21563         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
21564         <!-- The example number is the contact number from the ITU document. -->
21565         <exampleNumber>3010</exampleNumber>
21566       </fixedLine>
21567       <mobile>
21568         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
21569         <exampleNumber>5190</exampleNumber>
21570       </mobile>
21571     </territory>
21572
21573     <!-- Timor-Leste (East Timor) -->
21574     <territory id="TL" countryCode="670" internationalPrefix="00">
21575       <references>
21576         <sourceUrl>http://www.itu.int/oth/T02020000D0/en</sourceUrl>
21577       </references>
21578       <availableFormats>
21579         <numberFormat pattern="(\d{3})(\d{4})">
21580           <leadingDigits>[2-489]</leadingDigits>
21581           <format>$1 $2</format>
21582         </numberFormat>
21583         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
21584              them. If we see another pattern being used, we should change this later. -->
21585         <numberFormat pattern="(\d{4})(\d{4})">
21586           <leadingDigits>7</leadingDigits>
21587           <format>$1 $2</format>
21588         </numberFormat>
21589       </availableFormats>
21590       <generalDesc>
21591         <nationalNumberPattern>
21592           [2-489]\d{6}|
21593           7\d{6,7}
21594         </nationalNumberPattern>
21595         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
21596       </generalDesc>
21597       <fixedLine>
21598         <nationalNumberPattern>
21599           (?:
21600             2[1-5]|
21601             3[1-9]|
21602             4[1-4]
21603           )\d{5}
21604         </nationalNumberPattern>
21605         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21606         <exampleNumber>2112345</exampleNumber>
21607       </fixedLine>
21608       <mobile>
21609         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
21610         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21611         <exampleNumber>77212345</exampleNumber>
21612       </mobile>
21613       <tollFree>
21614         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
21615         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21616         <exampleNumber>8012345</exampleNumber>
21617       </tollFree>
21618       <premiumRate>
21619         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
21620         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21621         <exampleNumber>9012345</exampleNumber>
21622       </premiumRate>
21623       <!-- We don't include paging or voicemail because the identified paging range was used by
21624            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
21625            numbers, or if the range was indeed previously used for voicemail at all. -->
21626       <personalNumber>
21627         <!-- We presume this wasn't affected by the numbering plan update. -->
21628         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
21629         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21630         <exampleNumber>7012345</exampleNumber>
21631       </personalNumber>
21632     </territory>
21633
21634     <!-- Turkmenistan -->
21635     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
21636                internationalPrefix="810" nationalPrefix="8"
21637                nationalPrefixFormattingRule="($NP $FG)">
21638       <references>
21639         <sourceUrl>http://www.itu.int/oth/T02020000D7/en</sourceUrl>
21640         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan</sourceUrl>
21641       </references>
21642       <availableFormats>
21643         <!-- There doesn't seem to be a standardized format. The format below is based on the
21644              Turkmenistan embassy at
21645              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
21646           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21647             <leadingDigits>12</leadingDigits>
21648             <format>$1 $2-$3-$4</format>
21649           </numberFormat>
21650           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
21651             <leadingDigits>6</leadingDigits>
21652             <format>$1 $2</format>
21653           </numberFormat>
21654           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
21655             <leadingDigits>
21656               13|
21657               [2-5]
21658             </leadingDigits>
21659             <format>$1 $2-$3-$4</format>
21660           </numberFormat>
21661       </availableFormats>
21662       <generalDesc>
21663         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
21664         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21665       </generalDesc>
21666       <fixedLine>
21667         <!-- Additional prefixes from the wikipedia page. -->
21668         <nationalNumberPattern>
21669           (?:
21670             1(?:
21671               2\d|
21672               3[1-9]
21673             )|
21674             2(?:
21675               22|
21676               4[0-35-8]
21677             )|
21678             3(?:
21679               22|
21680               4[03-9]
21681             )|
21682             4(?:
21683               22|
21684               3[128]|
21685               4\d|
21686               6[15]
21687             )|
21688             5(?:
21689               22|
21690               5[7-9]|
21691               6[014-689]
21692             )
21693           )\d{5}
21694         </nationalNumberPattern>
21695         <exampleNumber>12345678</exampleNumber>
21696       </fixedLine>
21697       <mobile>
21698         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
21699              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
21700              has been suspended. It is unclear whether it will resume. We support both ranges in the
21701              meantime. The range 62 seems also now to be in use, according to numbers found online.
21702              -->
21703         <nationalNumberPattern>6[2-8]\d{6}</nationalNumberPattern>
21704         <exampleNumber>66123456</exampleNumber>
21705       </mobile>
21706       <!-- No tollFree or premiumRate information can be found. -->
21707     </territory>
21708
21709     <!-- Tunisia -->
21710     <territory id="TN" countryCode="216" internationalPrefix="00">
21711       <references>
21712         <sourceUrl>http://www.itu.int/oth/T02020000D5/en</sourceUrl>
21713         <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>
21714         <sourceUrl>http://www.tunisietelecom.tn/tt/internet/fr/pme/fixe/numeros_acceuil</sourceUrl>
21715       </references>
21716       <availableFormats>
21717         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
21718           <format>$1 $2 $3</format>
21719         </numberFormat>
21720       </availableFormats>
21721       <generalDesc>
21722         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
21723         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21724       </generalDesc>
21725       <fixedLine>
21726         <!-- 3[012] numbers are no longer listed in the ITU doc, but we support them based on
21727              online searches. -->
21728         <nationalNumberPattern>
21729           3[012]\d{6}|
21730           7\d{7}|
21731           81200\d{3}
21732         </nationalNumberPattern>
21733         <exampleNumber>71234567</exampleNumber>
21734       </fixedLine>
21735       <mobile>
21736         <!-- Numbers starting with 5 are no longer listed in the ITU doc, but we support them based
21737              on online searches and Wikipedia. -->
21738         <nationalNumberPattern>
21739           (?:
21740             [259]\d|
21741             4[0-24]
21742           )\d{6}
21743         </nationalNumberPattern>
21744         <exampleNumber>20123456</exampleNumber>
21745       </mobile>
21746       <tollFree>
21747         <!-- ITU lists 80 xx xx xx, but the document published by Tunisie Telecom has more specific
21748              information which is followed here. -->
21749         <nationalNumberPattern>8010\d{4}</nationalNumberPattern>
21750         <exampleNumber>80101234</exampleNumber>
21751       </tollFree>
21752       <premiumRate>
21753         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
21754         <exampleNumber>88123456</exampleNumber>
21755       </premiumRate>
21756       <sharedCost>
21757         <!-- 8110xxxx numbers are listed as being "discounted non-geographical numbers" and are put
21758              here for now. In the future we might consider them as UAN.
21759              ITU lists 82 xx xx xx, but the document published by Tunisie Telecom has more specific
21760              information which is followed here. -->
21761         <nationalNumberPattern>8[12]10\d{4}</nationalNumberPattern>
21762         <exampleNumber>81101234</exampleNumber>
21763       </sharedCost>
21764     </territory>
21765
21766     <!-- Tonga -->
21767     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
21768       <references>
21769         <sourceUrl>http://www.itu.int/oth/T02020000D3/en</sourceUrl>
21770         <sourceUrl>http://www.wtng.info/wtng-676-to.html</sourceUrl>
21771       </references>
21772       <availableFormats>
21773         <numberFormat pattern="(\d{2})(\d{3})">
21774           <leadingDigits>
21775             [1-6]|
21776             7[0-4]|
21777             8[05]
21778           </leadingDigits>
21779           <format>$1-$2</format>
21780         </numberFormat>
21781         <numberFormat pattern="(\d{3})(\d{4})">
21782           <leadingDigits>
21783             7[5-9]|
21784             8[47-9]
21785           </leadingDigits>
21786           <format>$1 $2</format>
21787         </numberFormat>
21788         <numberFormat pattern="(\d{4})(\d{3})">
21789           <leadingDigits>0</leadingDigits>
21790           <format>$1 $2</format>
21791         </numberFormat>
21792       </availableFormats>
21793       <generalDesc>
21794         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
21795         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
21796       </generalDesc>
21797       <fixedLine>
21798         <nationalNumberPattern>
21799           (?:
21800             2\d|
21801             3[1-8]|
21802             4[1-4]|
21803             [56]0|
21804             7[0149]|
21805             8[05]
21806           )\d{3}
21807         </nationalNumberPattern>
21808         <possibleNumberPattern>\d{5}</possibleNumberPattern>
21809         <exampleNumber>20123</exampleNumber>
21810       </fixedLine>
21811       <mobile>
21812         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
21813              in their ITU document. Numbers with a prefix of "75" and "84" have also been found. -->
21814         <nationalNumberPattern>
21815           (?:
21816             7[578]|
21817             8[47-9]
21818           )\d{5}
21819         </nationalNumberPattern>
21820         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21821         <exampleNumber>7715123</exampleNumber>
21822       </mobile>
21823       <tollFree>
21824         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
21825         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21826         <exampleNumber>0800222</exampleNumber>
21827       </tollFree>
21828     </territory>
21829
21830     <!-- Turkey -->
21831     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0"
21832                mobileNumberPortableRegion="true">
21833       <references>
21834         <sourceUrl>http://en.wikipedia.org/wiki/%2B90</sourceUrl>
21835         <sourceUrl>http://www.itu.int/oth/T02020000D6/en</sourceUrl>
21836       </references>
21837       <availableFormats>
21838         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
21839           nationalPrefixOptionalWhenFormatting="true">
21840           <leadingDigits>
21841             [23]|
21842             4(?:
21843               [0-35-9]|
21844               4[0-35-9]
21845             )
21846           </leadingDigits>
21847           <format>$1 $2 $3</format>
21848         </numberFormat>
21849         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
21850           nationalPrefixOptionalWhenFormatting="true">
21851           <leadingDigits>[589]</leadingDigits>
21852           <format>$1 $2 $3</format>
21853         </numberFormat>
21854         <numberFormat pattern="(444)(\d{1})(\d{3})">
21855           <leadingDigits>444</leadingDigits>
21856           <format>$1 $2 $3</format>
21857         </numberFormat>
21858       </availableFormats>
21859       <generalDesc>
21860         <nationalNumberPattern>
21861           [2-589]\d{9}|
21862           444\d{4}
21863         </nationalNumberPattern>
21864         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21865       </generalDesc>
21866       <noInternationalDialling>
21867         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
21868         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21869         <exampleNumber>4441444</exampleNumber>
21870       </noInternationalDialling>
21871       <fixedLine>
21872         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
21873         <nationalNumberPattern>
21874           (?:
21875             2(?:
21876               [13][26]|
21877               [28][2468]|
21878               [45][268]|
21879               [67][246]
21880             )|
21881             3(?:
21882               [13][28]|
21883               [24-6][2468]|
21884               [78][02468]|
21885               92
21886             )|
21887             4(?:
21888               [16][246]|
21889               [23578][2468]|
21890               4[26]
21891             )
21892           )\d{7}
21893         </nationalNumberPattern>
21894         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21895         <exampleNumber>2123456789</exampleNumber>
21896       </fixedLine>
21897       <mobile>
21898         <!-- There are some differences between the Turkish and English wikipedia pages here, and
21899              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
21900              509 from the English page because of this. -->
21901         <nationalNumberPattern>
21902           5(?:
21903             0[1-7]|
21904             22|
21905             [34]\d|
21906             5[1-59]|
21907             9[246]
21908           )\d{7}
21909         </nationalNumberPattern>
21910         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21911         <exampleNumber>5012345678</exampleNumber>
21912       </mobile>
21913       <pager>
21914         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
21915         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21916         <exampleNumber>5123456789</exampleNumber>
21917       </pager>
21918       <tollFree>
21919         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
21920         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21921         <exampleNumber>8001234567</exampleNumber>
21922       </tollFree>
21923       <premiumRate>
21924         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
21925         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21926         <exampleNumber>9001234567</exampleNumber>
21927       </premiumRate>
21928       <uan>
21929         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
21930         <nationalNumberPattern>
21931           444\d{4}|
21932           850\d{7}
21933         </nationalNumberPattern>
21934         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21935         <exampleNumber>4441444</exampleNumber>
21936       </uan>
21937     </territory>
21938
21939     <!-- Trinidad and Tobago -->
21940     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
21941                internationalPrefix="011">
21942       <references>
21943         <sourceUrl>http://www.itu.int/oth/T02020000D4/en</sourceUrl>
21944       </references>
21945       <generalDesc>
21946         <!-- NANPA country - uses US formatting rules -->
21947         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
21948         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21949       </generalDesc>
21950       <fixedLine>
21951         <nationalNumberPattern>
21952           868(?:
21953             2(?:
21954               [03]1|
21955               2[1-5]
21956             )|
21957             6(?:
21958               0[79]|
21959               1[02-9]|
21960               2[1-9]|
21961               [3-69]\d|
21962               7[0-79]
21963             )|
21964             82[124]
21965           )\d{4}
21966         </nationalNumberPattern>
21967         <exampleNumber>8682211234</exampleNumber>
21968       </fixedLine>
21969       <mobile>
21970         <nationalNumberPattern>
21971           868(?:
21972             2(?:
21973               [89]\d
21974             )|
21975             3(?:
21976               0[1-9]|
21977               1[02-9]|
21978               [2-9]\d
21979             )|
21980             4[6-9]\d|
21981             6(?:
21982               20|
21983               78|
21984               8\d
21985             )|
21986             7(?:
21987               0[1-9]|
21988               1[02-9]|
21989               [2-9]\d
21990             )
21991           )\d{4}
21992         </nationalNumberPattern>
21993         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21994         <exampleNumber>8682911234</exampleNumber>
21995       </mobile>
21996       <tollFree>
21997         <nationalNumberPattern>
21998           8(?:
21999             00|
22000             44|
22001             55|
22002             66|
22003             77|
22004             88
22005           )[2-9]\d{6}
22006         </nationalNumberPattern>
22007         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22008         <exampleNumber>8002345678</exampleNumber>
22009       </tollFree>
22010       <premiumRate>
22011         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22012         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22013         <exampleNumber>9002345678</exampleNumber>
22014       </premiumRate>
22015       <personalNumber>
22016         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22017         <nationalNumberPattern>
22018           5(?:
22019             00|
22020             33|
22021             44|
22022             66|
22023             77
22024           )[2-9]\d{6}
22025         </nationalNumberPattern>
22026         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22027         <exampleNumber>5002345678</exampleNumber>
22028       </personalNumber>
22029     </territory>
22030
22031     <!-- Tuvalu -->
22032     <territory id="TV" countryCode="688" internationalPrefix="00">
22033       <references>
22034         <sourceUrl>http://www.itu.int/oth/T02020000D9/en</sourceUrl>
22035         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu</sourceUrl>
22036       </references>
22037       <!-- Numbers are formatted as a block. -->
22038       <generalDesc>
22039         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
22040         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
22041       </generalDesc>
22042       <fixedLine>
22043         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
22044         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22045         <exampleNumber>20123</exampleNumber>
22046       </fixedLine>
22047       <mobile>
22048         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
22049              don't know if these are valid or not - the ITU document excludes them - so are not
22050              covering these for now. -->
22051         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
22052         <possibleNumberPattern>\d{6}</possibleNumberPattern>
22053         <exampleNumber>901234</exampleNumber>
22054       </mobile>
22055     </territory>
22056
22057     <!-- Taiwan, China -->
22058     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
22059          chosen as the preferred extension prefix. -->
22060     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
22061                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG"
22062                mobileNumberPortableRegion="true">
22063       <references>
22064         <sourceUrl>http://www.itu.int/oth/T02020000EB/en</sourceUrl>
22065       </references>
22066       <availableFormats>
22067         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
22068           <leadingDigits>
22069             [2-6]|
22070             [78][1-9]
22071           </leadingDigits>
22072           <format>$1 $2 $3</format>
22073         </numberFormat>
22074         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
22075           <leadingDigits>
22076             80|
22077             9
22078           </leadingDigits>
22079           <format>$1 $2 $3</format>
22080         </numberFormat>
22081         <numberFormat pattern="(70)(\d{4})(\d{4})">
22082           <leadingDigits>70</leadingDigits>
22083           <format>$1 $2 $3</format>
22084         </numberFormat>
22085       </availableFormats>
22086       <generalDesc>
22087         <nationalNumberPattern>
22088           [2-689]\d{7,8}|
22089           7\d{7,9}
22090         </nationalNumberPattern>
22091         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
22092       </generalDesc>
22093       <fixedLine>
22094         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
22095         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22096         <exampleNumber>21234567</exampleNumber>
22097       </fixedLine>
22098       <mobile>
22099         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
22100         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22101         <exampleNumber>912345678</exampleNumber>
22102       </mobile>
22103       <tollFree>
22104         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22105         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22106         <exampleNumber>800123456</exampleNumber>
22107       </tollFree>
22108       <premiumRate>
22109         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22110         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22111         <exampleNumber>900123456</exampleNumber>
22112       </premiumRate>
22113       <!-- http://www.chief.com.tw/telecom_eng/front/bin/ptlist.phtml?Category=107 -->
22114       <voip>
22115         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
22116         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22117         <exampleNumber>7012345678</exampleNumber>
22118       </voip>
22119     </territory>
22120
22121     <!-- Tanzania -->
22122     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
22123                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22124       <references>
22125         <sourceUrl>http://www.itu.int/oth/T02020000CB/en</sourceUrl>
22126       </references>
22127       <availableFormats>
22128         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
22129           <leadingDigits>[24]</leadingDigits>
22130           <format>$1 $2 $3</format>
22131         </numberFormat>
22132         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
22133           <leadingDigits>[67]</leadingDigits>
22134           <format>$1 $2 $3</format>
22135         </numberFormat>
22136         <!-- Formatting for special numbers from http://www.tcra.go.tz -->
22137         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
22138           <leadingDigits>[89]</leadingDigits>
22139           <format>$1 $2 $3</format>
22140         </numberFormat>
22141       </availableFormats>
22142       <generalDesc>
22143         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22144         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22145       </generalDesc>
22146       <fixedLine>
22147         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
22148         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22149         <exampleNumber>222345678</exampleNumber>
22150       </fixedLine>
22151       <mobile>
22152         <nationalNumberPattern>
22153           (?:
22154             6[1578]|
22155             7[1-9]
22156           )\d{7}
22157         </nationalNumberPattern>
22158         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22159         <exampleNumber>612345678</exampleNumber>
22160       </mobile>
22161       <tollFree>
22162         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
22163         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22164         <exampleNumber>800123456</exampleNumber>
22165       </tollFree>
22166       <premiumRate>
22167         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
22168         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22169         <exampleNumber>900123456</exampleNumber>
22170       </premiumRate>
22171       <sharedCost>
22172         <nationalNumberPattern>
22173           8(?:
22174             40|
22175             6[01]
22176           )\d{6}
22177         </nationalNumberPattern>
22178         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22179         <exampleNumber>840123456</exampleNumber>
22180       </sharedCost>
22181       <voip>
22182         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
22183         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22184         <exampleNumber>412345678</exampleNumber>
22185       </voip>
22186     </territory>
22187
22188     <!-- Ukraine -->
22189     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
22190                internationalPrefix="00"
22191                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22192       <references>
22193         <sourceUrl>http://www.itu.int/oth/T02020000DB/en</sourceUrl>
22194         <sourceUrl>http://en.wikipedia.org/wiki/%2B380</sourceUrl>
22195       </references>
22196       <availableFormats>
22197         <!-- City codes separated out. No definitive list has been found of what constitutes the
22198              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
22199              Have used local yellow pages guidelines, Google searches and regression tests to
22200              reverse-engineer these rules as well as bugs. -->
22201         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
22202           <leadingDigits>
22203             [38]9|
22204             4(?:
22205               [45][0-5]|
22206               87
22207             )|
22208             5(?:
22209               0|
22210               6[37]|
22211               7[37]
22212             )|
22213             6[36-8]|
22214             9[1-9]
22215           </leadingDigits>
22216           <leadingDigits>
22217             [38]9|
22218             4(?:
22219               [45][0-5]|
22220               87
22221             )|
22222             5(?:
22223               0|
22224               6(?:
22225                 3[14-7]|
22226                 7
22227               )|
22228               7[37]
22229             )|
22230             6[36-8]|
22231             9[1-9]
22232           </leadingDigits>
22233           <format>$1 $2 $3</format>
22234         </numberFormat>
22235         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
22236           <leadingDigits>
22237             3[1-8]2|
22238             4[13678]2|
22239             5(?:
22240               [12457]2|
22241               6[24]
22242             )|
22243             6(?:
22244               [49]2|
22245               [12][29]|
22246               5[24]
22247             )|
22248             8[0-8]|
22249             90
22250           </leadingDigits>
22251           <leadingDigits>
22252             3(?:
22253               [1-46-8]2[013-9]|
22254               52
22255             )|
22256             4(?:
22257               [1378]2|
22258               62[013-9]
22259             )|
22260             5(?:
22261               [12457]2|
22262               6[24]
22263             )|
22264             6(?:
22265               [49]2|
22266               [12][29]|
22267               5[24]
22268             )|
22269             8[0-8]|
22270             90
22271           </leadingDigits>
22272           <format>$1 $2 $3</format>
22273         </numberFormat>
22274         <numberFormat pattern="([3-6]\d{3})(\d{5})">
22275           <leadingDigits>
22276             3(?:
22277               5[013-9]|
22278               [1-46-8]
22279             )|
22280             4(?:
22281               [137][013-9]|
22282               6|
22283               [45][6-9]|
22284               8[4-6]
22285             )|
22286             5(?:
22287               [1245][013-9]|
22288               6[0135-9]|
22289               3|
22290               7[4-6]
22291             )|
22292             6(?:
22293               [49][013-9]|
22294               5[0135-9]|
22295               [12][13-8]
22296             )
22297           </leadingDigits>
22298           <leadingDigits>
22299             3(?:
22300               5[013-9]|
22301               [1-46-8](?:
22302                 22|
22303                 [013-9]
22304               )
22305             )|
22306             4(?:
22307               [137][013-9]|
22308               6(?:
22309                 [013-9]|
22310                 22
22311               )|
22312               [45][6-9]|
22313               8[4-6]
22314             )|
22315             5(?:
22316               [1245][013-9]|
22317               6(?:
22318                 3[02389]|
22319                 [015689]
22320               )|
22321               3|
22322               7[4-6]
22323             )|
22324             6(?:
22325               [49][013-9]|
22326               5[0135-9]|
22327               [12][13-8]
22328             )
22329           </leadingDigits>
22330           <format>$1 $2</format>
22331         </numberFormat>
22332       </availableFormats>
22333       <generalDesc>
22334         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
22335         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22336       </generalDesc>
22337       <fixedLine>
22338         <nationalNumberPattern>
22339           (?:
22340             3[1-8]|
22341             4[13-8]|
22342             5[1-7]|
22343             6[12459]
22344           )\d{7}
22345         </nationalNumberPattern>
22346         <exampleNumber>311234567</exampleNumber>
22347       </fixedLine>
22348       <mobile>
22349         <nationalNumberPattern>
22350           (?:
22351             39|
22352             50|
22353             6[36-8]|
22354             9[1-9]
22355           )\d{7}
22356         </nationalNumberPattern>
22357         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22358         <exampleNumber>391234567</exampleNumber>
22359       </mobile>
22360       <tollFree>
22361         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22362         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22363         <exampleNumber>800123456</exampleNumber>
22364       </tollFree>
22365       <premiumRate>
22366         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22367         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22368         <exampleNumber>900123456</exampleNumber>
22369       </premiumRate>
22370       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
22371       <voip>
22372         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
22373         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22374         <exampleNumber>891234567</exampleNumber>
22375       </voip>
22376     </territory>
22377
22378     <!-- Uganda -->
22379     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
22380                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22381       <references>
22382         <sourceUrl>http://www.itu.int/oth/T02020000F1/en</sourceUrl>
22383         <sourceUrl>http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf</sourceUrl>
22384       </references>
22385       <availableFormats>
22386         <numberFormat pattern="(\d{3})(\d{6})">
22387           <leadingDigits>
22388             [7-9]|
22389             20(?:
22390               [013-8]|
22391               2[5-9]
22392             )|
22393             4(?:
22394               6[45]|
22395               [7-9]
22396             )
22397           </leadingDigits>
22398           <format>$1 $2</format>
22399         </numberFormat>
22400         <numberFormat pattern="(\d{2})(\d{7})">
22401           <leadingDigits>
22402             3|
22403             4(?:
22404               [1-5]|
22405               6[0-36-9]
22406             )
22407           </leadingDigits>
22408           <format>$1 $2</format>
22409         </numberFormat>
22410         <numberFormat pattern="(2024)(\d{5})">
22411           <leadingDigits>2024</leadingDigits>
22412           <format>$1 $2</format>
22413         </numberFormat>
22414       </availableFormats>
22415       <generalDesc>
22416         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22417         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22418       </generalDesc>
22419       <fixedLine>
22420         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
22421         <nationalNumberPattern>
22422           20(?:
22423             [0147]\d{2}|
22424             2(?:
22425               40|
22426               [5-9]\d
22427             )|
22428             3[23]\d|
22429             5[0-4]\d|
22430             6[03]\d|
22431             8[0-2]\d
22432           )\d{4}|
22433           [34]\d{8}
22434         </nationalNumberPattern>
22435         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
22436              local dialing is still possible. We assume it is for now. -->
22437         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22438         <exampleNumber>312345678</exampleNumber>
22439       </fixedLine>
22440       <mobile>
22441         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
22442         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
22443         <!-- Ranges with prefixes 2030 or 723 are "not yet operational" as of Oct. 2014. -->
22444         <nationalNumberPattern>
22445           2030\d{5}|
22446           7(?:
22447             0[0-7]|
22448             [15789]\d|
22449             2[03]|
22450             30|
22451             [46][0-4]
22452           )\d{6}
22453         </nationalNumberPattern>
22454         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22455         <exampleNumber>712345678</exampleNumber>
22456       </mobile>
22457       <tollFree>
22458         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
22459         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22460         <exampleNumber>800123456</exampleNumber>
22461       </tollFree>
22462       <premiumRate>
22463         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
22464         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22465         <exampleNumber>901123456</exampleNumber>
22466       </premiumRate>
22467     </territory>
22468
22469     <!-- United States -->
22470     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
22471          numbers in the national format, it is not included. Therefore, we omit it here to make
22472          formatting consistent with the rest of the world. The same applies to all the
22473          countries/regions under NANPA -->
22474     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
22475          when formatting, but is set here so that users who are calling formatByPattern can specify
22476          NationalPrefixFormattingRule if they want to. -->
22477     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
22478                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true"
22479                mobileNumberPortableRegion="true">
22480       <references>
22481         <sourceUrl>http://www.nanpa.com/reports/reports_npa.html</sourceUrl>
22482         <sourceUrl>http://en.wikipedia.org/wiki/North_American_Numbering_Plan</sourceUrl>
22483       </references>
22484       <availableFormats>
22485         <numberFormat pattern="(\d{3})(\d{4})">
22486           <format>$1-$2</format>
22487           <intlFormat>NA</intlFormat>
22488         </numberFormat>
22489         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
22490           <format>($1) $2-$3</format>
22491           <!-- A different pattern is used when formatting internationally, as the area code is no
22492                longer optional and should not be in brackets. -->
22493           <intlFormat>$1-$2-$3</intlFormat>
22494         </numberFormat>
22495       </availableFormats>
22496       <generalDesc>
22497         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
22498         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22499       </generalDesc>
22500       <fixedLine>
22501         <nationalNumberPattern>
22502           (?:
22503             2(?:
22504               0[1-35-9]|
22505               1[02-9]|
22506               2[4589]|
22507               3[149]|
22508               4[08]|
22509               5[1-46]|
22510               6[0279]|
22511               7[026]|
22512               8[13]
22513             )|
22514             3(?:
22515               0[1-57-9]|
22516               1[02-9]|
22517               2[0135]|
22518               3[014679]|
22519               4[67]|
22520               5[12]|
22521               6[014]|
22522               8[56]
22523             )|
22524             4(?:
22525               0[124-9]|
22526               1[02-579]|
22527               2[3-5]|
22528               3[0245]|
22529               4[0235]|
22530               58|
22531               69|
22532               7[0589]|
22533               8[04]
22534             )|
22535             5(?:
22536               0[1-57-9]|
22537               1[0235-8]|
22538               20|
22539               3[0149]|
22540               4[01]|
22541               5[19]|
22542               6[1-37]|
22543               7[013-5]|
22544               8[056]
22545             )|
22546             6(?:
22547               0[1-35-9]|
22548               1[024-9]|
22549               2[036]|
22550               3[016]|
22551               4[16]|
22552               5[017]|
22553               6[0-279]|
22554               78|
22555               8[12]
22556             )|
22557             7(?:
22558               0[1-46-8]|
22559               1[02-9]|
22560               2[0457]|
22561               3[1247]|
22562               4[07]|
22563               5[47]|
22564               6[02359]|
22565               7[02-59]|
22566               8[156]
22567             )|
22568             8(?:
22569               0[1-68]|
22570               1[02-8]|
22571               28|
22572               3[0-25]|
22573               4[3578]|
22574               5[06-9]|
22575               6[02-5]|
22576               7[028]
22577             )|
22578             9(?:
22579               0[1346-9]|
22580               1[02-9]|
22581               2[0589]|
22582               3[01678]|
22583               4[0179]|
22584               5[12469]|
22585               7[0-3589]|
22586               8[0459]
22587             )
22588           )[2-9]\d{6}
22589         </nationalNumberPattern>
22590         <exampleNumber>2015555555</exampleNumber>
22591       </fixedLine>
22592       <mobile>
22593         <nationalNumberPattern>
22594           (?:
22595             2(?:
22596               0[1-35-9]|
22597               1[02-9]|
22598               2[4589]|
22599               3[149]|
22600               4[08]|
22601               5[1-46]|
22602               6[0279]|
22603               7[026]|
22604               8[13]
22605             )|
22606             3(?:
22607               0[1-57-9]|
22608               1[02-9]|
22609               2[0135]|
22610               3[014679]|
22611               4[67]|
22612               5[12]|
22613               6[014]|
22614               8[56]
22615             )|
22616             4(?:
22617               0[124-9]|
22618               1[02-579]|
22619               2[3-5]|
22620               3[0245]|
22621               4[0235]|
22622               58|
22623               69|
22624               7[0589]|
22625               8[04]
22626             )|
22627             5(?:
22628               0[1-57-9]|
22629               1[0235-8]|
22630               20|
22631               3[0149]|
22632               4[01]|
22633               5[19]|
22634               6[1-37]|
22635               7[013-5]|
22636               8[056]
22637             )|
22638             6(?:
22639               0[1-35-9]|
22640               1[024-9]|
22641               2[036]|
22642               3[016]|
22643               4[16]|
22644               5[017]|
22645               6[0-279]|
22646               78|
22647               8[12]
22648             )|
22649             7(?:
22650               0[1-46-8]|
22651               1[02-9]|
22652               2[0457]|
22653               3[1247]|
22654               4[07]|
22655               5[47]|
22656               6[02359]|
22657               7[02-59]|
22658               8[156]
22659             )|
22660             8(?:
22661               0[1-68]|
22662               1[02-8]|
22663               28|
22664               3[0-25]|
22665               4[3578]|
22666               5[06-9]|
22667               6[02-5]|
22668               7[028]
22669             )|
22670             9(?:
22671               0[1346-9]|
22672               1[02-9]|
22673               2[0589]|
22674               3[01678]|
22675               4[0179]|
22676               5[12469]|
22677               7[0-3589]|
22678               8[0459]
22679             )
22680           )[2-9]\d{6}
22681         </nationalNumberPattern>
22682         <exampleNumber>2015555555</exampleNumber>
22683       </mobile>
22684       <tollFree>
22685         <nationalNumberPattern>
22686           8(?:
22687             00|
22688             44|
22689             55|
22690             66|
22691             77|
22692             88
22693           )[2-9]\d{6}
22694         </nationalNumberPattern>
22695         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22696         <exampleNumber>8002345678</exampleNumber>
22697       </tollFree>
22698       <premiumRate>
22699         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22700         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22701         <exampleNumber>9002345678</exampleNumber>
22702       </premiumRate>
22703       <personalNumber>
22704         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22705         <nationalNumberPattern>
22706           5(?:
22707             00|
22708             33|
22709             44|
22710             66|
22711             77
22712           )[2-9]\d{6}
22713         </nationalNumberPattern>
22714         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22715         <exampleNumber>5002345678</exampleNumber>
22716       </personalNumber>
22717     </territory>
22718
22719     <!-- Uruguay -->
22720     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
22721          code JK, where J = [3-9] and K is any digit. -->
22722     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
22723                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
22724       <references>
22725         <sourceUrl>http://www.itu.int/oth/T02020000E0/en</sourceUrl>
22726         <sourceUrl>http://www.ursec.gub.uy</sourceUrl>
22727         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay</sourceUrl>
22728       </references>
22729       <availableFormats>
22730         <!-- Following paginasamarillas.com.uy formatting. -->
22731         <numberFormat pattern="(\d{4})(\d{4})">
22732           <leadingDigits>[24]</leadingDigits>
22733           <format>$1 $2</format>
22734         </numberFormat>
22735         <!-- Including the national prefix here since URSEC does when formatting these. -->
22736         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
22737           <leadingDigits>9[1-9]</leadingDigits>
22738           <format>$1 $2 $3</format>
22739         </numberFormat>
22740         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
22741           <leadingDigits>[89]0</leadingDigits>
22742           <format>$1 $2</format>
22743         </numberFormat>
22744       </availableFormats>
22745       <generalDesc>
22746         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
22747         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
22748       </generalDesc>
22749       <fixedLine>
22750         <nationalNumberPattern>
22751           2\d{7}|
22752           4[2-7]\d{6}
22753         </nationalNumberPattern>
22754         <exampleNumber>21231234</exampleNumber>
22755       </fixedLine>
22756       <mobile>
22757         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
22758         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22759         <exampleNumber>94231234</exampleNumber>
22760       </mobile>
22761       <tollFree>
22762         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
22763         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22764         <exampleNumber>8001234</exampleNumber>
22765       </tollFree>
22766       <premiumRate>
22767         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
22768         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22769         <exampleNumber>9001234</exampleNumber>
22770       </premiumRate>
22771      </territory>
22772
22773     <!-- Uzbekistan -->
22774     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
22775                internationalPrefix="810" nationalPrefix="8"
22776                nationalPrefixFormattingRule="$NP $FG">
22777       <references>
22778         <sourceUrl>http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng</sourceUrl>
22779         <sourceUrl>http://www.itu.int/oth/T02020000E1/en</sourceUrl>
22780       </references>
22781       <availableFormats>
22782         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
22783           <format>$1 $2 $3 $4</format>
22784         </numberFormat>
22785       </availableFormats>
22786       <generalDesc>
22787         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
22788         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22789       </generalDesc>
22790       <fixedLine>
22791         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
22792              be used in Namangan. -->
22793         <nationalNumberPattern>
22794           (?:
22795             6(?:
22796               1(?:
22797                 22|
22798                 3[124]|
22799                 4[1-4]|
22800                 5[123578]|
22801                 64
22802               )|
22803               2(?:
22804                 22|
22805                 3[0-57-9]|
22806                 41
22807               )|
22808               5(?:
22809                 22|
22810                 3[3-7]|
22811                 5[024-8]
22812               )|
22813               6\d{2}|
22814               7(?:
22815                 [23]\d|
22816                 7[69]
22817               )|
22818               9(?:
22819                 22|
22820                 4[1-8]|
22821                 6[135]
22822               )
22823             )|
22824             7(?:
22825               0(?:
22826                 5[4-9]|
22827                 6[0146]|
22828                 7[12456]|
22829                 9[135-8]
22830               )|
22831               1[12]\d|
22832               2(?:
22833                 22|
22834                 3[1345789]|
22835                 4[123579]|
22836                 5[14]
22837               )|
22838               3(?:
22839                 2\d|
22840                 3[1578]|
22841                 4[1-35-7]|
22842                 5[1-57]|
22843                 61
22844               )|
22845               4(?:
22846                 2\d|
22847                 3[1-579]|
22848                 7[1-79]
22849               )|
22850               5(?:
22851                 22|
22852                 5[1-9]|
22853                 6[1457]
22854               )|
22855               6(?:
22856                 22|
22857                 3[12457]|
22858                 4[13-8]
22859               )|
22860               9(?:
22861                 22|
22862                 5[1-9]
22863               )
22864             )
22865           )\d{5}
22866         </nationalNumberPattern>
22867         <exampleNumber>662345678</exampleNumber>
22868       </fixedLine>
22869       <mobile>
22870         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
22871              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
22872              prefixes Tyntec has a carrier mapped to. -->
22873         <nationalNumberPattern>
22874           6(?:
22875             1(?:
22876               2(?:
22877                 98|
22878                 2[01]
22879               )|
22880               35[0-4]|
22881               50\d|
22882               61[23]|
22883               7(?:
22884                 [01][017]|
22885                 4\d|
22886                 55|
22887                 9[5-9]
22888               )
22889             )|
22890             2(?:
22891               11\d|
22892               2(?:
22893                 [12]1|
22894                 9[01379]
22895               )|
22896               5(?:
22897                 [126]\d|
22898                 3[0-4]
22899               )|
22900               7\d{2}
22901             )|
22902             5(?:
22903               19[01]|
22904               2(?:
22905                 27|
22906                 9[26]
22907               )|
22908               30\d|
22909               59\d|
22910               7\d{2}
22911             )|
22912             6(?:
22913               2(?:
22914                 1[5-9]|
22915                 2[0367]|
22916                 38|
22917                 41|
22918                 52|
22919                 60
22920               )|
22921               3[79]\d|
22922               4(?:
22923                 56|
22924                 83
22925               )|
22926               7(?:
22927                 [07]\d|
22928                 1[017]|
22929                 3[07]|
22930                 4[047]|
22931                 5[057]|
22932                 67|
22933                 8[0178]|
22934                 9[79]
22935                 )|
22936               9[0-3]\d
22937             )|
22938             7(?:
22939               2(?:
22940                 24|
22941                 3[237]|
22942                 4[5-9]|
22943                 7[15-8]
22944               )|
22945               5(?:
22946                 7[12]|
22947                 8[0589]
22948               )|
22949               7(?:
22950                 0\d|
22951                 [39][07]
22952               )|
22953               9(?:
22954                 0\d|
22955                 7[079]
22956               )
22957             )|
22958             9(?:
22959               2(?:
22960                 1[1267]|
22961                 5\d|
22962                 3[01]|
22963                 7[0-4]
22964               )|
22965               5[67]\d|
22966               6(?:
22967                 2[0-26]|
22968                 8\d
22969               )|
22970               7\d{2}
22971             )
22972           )\d{4}|
22973           7(?:
22974             0\d{3}|
22975             1(?:
22976               13[01]|
22977               6(?:
22978                 0[47]|
22979                 1[67]|
22980                 66
22981               )|
22982               71[3-69]|
22983               98\d
22984             )|
22985             2(?:
22986               2(?:
22987                 2[79]|
22988                 95
22989               )|
22990               3(?:
22991                 2[5-9]|
22992                 6[0-6]
22993               )|
22994               57\d|
22995               7(?:
22996                 0\d|
22997                 1[17]|
22998                 2[27]|
22999                 3[37]|
23000                 44|
23001                 5[057]|
23002                 66|
23003                 88
23004               )
23005             )|
23006             3(?:
23007               2(?:
23008                 1[0-6]|
23009                 21|
23010                 3[469]|
23011                 7[159]
23012               )|
23013               33\d|
23014               5(?:
23015                 0[0-4]|
23016                 5[579]|
23017                 9\d
23018               )|
23019               7(?:
23020                 [0-3579]\d|
23021                 4[0467]|
23022                 6[67]|
23023                 8[078]
23024               )|
23025               9[4-6]\d
23026             )|
23027             4(?:
23028               2(?:
23029                 29|
23030                 5[0257]|
23031                 6[0-7]|
23032                 7[1-57]
23033               )|
23034               5(?:
23035                 1[0-4]|
23036                 8\d|
23037                 9[5-9]
23038               )|
23039               7(?:
23040                 0\d|
23041                 1[024589]|
23042                 2[0127]|
23043                 3[0137]|
23044                 [46][07]|
23045                 5[01]|
23046                 7[5-9]|
23047                 9[079]
23048               )|
23049               9(?:
23050                 7[015-9]|
23051                 [89]\d
23052               )
23053             )|
23054             5(?:
23055               112|
23056               2(?:
23057                 0\d|
23058                 2[29]|
23059                 [49]4
23060               )|
23061               3[1568]\d|
23062               52[6-9]|
23063               7(?:
23064                 0[01578]|
23065                 1[017]|
23066                 [23]7|
23067                 4[047]|
23068                 [5-7]\d|
23069                 8[78]|
23070                 9[079]
23071               )
23072             )|
23073             6(?:
23074               2(?:
23075                 2[1245]|
23076                 4[2-4]
23077               )|
23078               39\d|
23079               41[179]|
23080               5(?:
23081                 [349]\d|
23082                 5[0-2]
23083               )|
23084               7(?:
23085                 0[017]|
23086                 [13]\d|
23087                 22|
23088                 44|
23089                 55|
23090                 67|
23091                 88
23092               )
23093             )|
23094             9(?:
23095               22[128]|
23096               3(?:
23097                 2[0-4]|
23098                 7\d
23099               )|
23100               57[05629]|
23101               7(?:
23102                 2[05-9]|
23103                 3[37]|
23104                 4\d|
23105                 60|
23106                 7[2579]|
23107                 87|
23108                 9[07]
23109               )
23110             )
23111           )\d{4}|
23112           9[0-57-9]\d{7}
23113         </nationalNumberPattern>
23114         <exampleNumber>912345678</exampleNumber>
23115       </mobile>
23116       <!-- No tollFree or premiumRate information can be found. -->
23117     </territory>
23118
23119     <!-- Vatican City -->
23120     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
23121          also be dialled with the Vatican City country code. -->
23122     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
23123       <references>
23124         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City</sourceUrl>
23125       </references>
23126       <availableFormats>
23127         <numberFormat pattern="(06)(\d{4})(\d{4})">
23128           <format>$1 $2 $3</format>
23129         </numberFormat>
23130       </availableFormats>
23131       <generalDesc>
23132         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
23133         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23134       </generalDesc>
23135       <fixedLine>
23136         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
23137         <exampleNumber>0669812345</exampleNumber>
23138       </fixedLine>
23139       <mobile>
23140         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
23141              Italian mobile contracts. -->
23142         <nationalNumberPattern>NA</nationalNumberPattern>
23143         <possibleNumberPattern>NA</possibleNumberPattern>
23144       </mobile>
23145       <!-- No information exists about other types of numbers. -->
23146     </territory>
23147
23148     <!-- Saint Vincent and the Grenadines -->
23149     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
23150                internationalPrefix="011">
23151       <references>
23152         <sourceUrl>http://www.itu.int/oth/T02020000B3/en</sourceUrl>
23153       </references>
23154       <generalDesc>
23155         <!-- NANPA country - uses US formatting rules -->
23156         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
23157         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23158       </generalDesc>
23159       <!-- For 570, 571 and 572 prefixes, we believe the ITU doc incorrectly listed them to be under
23160            area code 758, which should be 784. -->
23161       <fixedLine>
23162         <nationalNumberPattern>
23163           784(?:
23164             266|
23165             3(?:
23166               6[6-9]|
23167               7\d|
23168               8[0-24-6]
23169             )|
23170             4(?:
23171               38|
23172               5[0-36-8]|
23173               8[0-8]
23174             )|
23175             5(?:
23176               55|
23177               7[0-2]|
23178               93
23179             )|
23180             638|
23181             784
23182           )\d{4}
23183         </nationalNumberPattern>
23184         <exampleNumber>7842661234</exampleNumber>
23185       </fixedLine>
23186       <mobile>
23187         <nationalNumberPattern>
23188           784(?:
23189             4(?:
23190               3[0-4]|
23191               5[45]|
23192               89|
23193               9[0-5]
23194             )|
23195             5(?:
23196               2[6-9]|
23197               3[0-4]
23198             )
23199           )\d{4}
23200         </nationalNumberPattern>
23201         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23202         <exampleNumber>7844301234</exampleNumber>
23203       </mobile>
23204       <tollFree>
23205         <nationalNumberPattern>
23206           8(?:
23207             00|
23208             44|
23209             55|
23210             66|
23211             77|
23212             88
23213           )[2-9]\d{6}
23214         </nationalNumberPattern>
23215         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23216         <exampleNumber>8002345678</exampleNumber>
23217       </tollFree>
23218       <premiumRate>
23219         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23220         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23221         <exampleNumber>9002345678</exampleNumber>
23222       </premiumRate>
23223       <personalNumber>
23224         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23225         <nationalNumberPattern>
23226           5(?:
23227             00|
23228             33|
23229             44|
23230             66|
23231             77
23232           )[2-9]\d{6}
23233         </nationalNumberPattern>
23234         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23235         <exampleNumber>5002345678</exampleNumber>
23236       </personalNumber>
23237     </territory>
23238
23239     <!-- Venezuela -->
23240     <!-- 1XX specifies a particular carrier to route a call to, but none of these have been
23241          implemented. -->
23242     <territory id="VE" countryCode="58" internationalPrefix="00"
23243                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23244                carrierCodeFormattingRule="$CC $FG">
23245       <references>
23246         <sourceUrl>http://www.itu.int/oth/T02020000E3/en</sourceUrl>
23247         <sourceUrl>http://en.wikipedia.org/wiki/+58</sourceUrl>
23248       </references>
23249       <availableFormats>
23250         <numberFormat pattern="(\d{3})(\d{7})">
23251           <format>$1-$2</format>
23252         </numberFormat>
23253       </availableFormats>
23254       <generalDesc>
23255         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
23256         <!-- Open numbering plan. -->
23257         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23258       </generalDesc>
23259       <fixedLine>
23260         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
23261              mentions these as 5XX, but online examples that can be found are seemingly restricted
23262              to 50[01]. -->
23263         <nationalNumberPattern>
23264           (?:
23265             2(?:
23266               12|
23267               3[457-9]|
23268               [58][1-9]|
23269               [467]\d|
23270               9[1-6]
23271             )|
23272             50[01]
23273           )\d{7}
23274         </nationalNumberPattern>
23275         <exampleNumber>2121234567</exampleNumber>
23276       </fixedLine>
23277       <mobile>
23278         <nationalNumberPattern>
23279           4(?:
23280             1[24-8]|
23281             2[46]
23282           )\d{7}
23283         </nationalNumberPattern>
23284         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23285         <exampleNumber>4121234567</exampleNumber>
23286       </mobile>
23287       <tollFree>
23288         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
23289         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23290         <exampleNumber>8001234567</exampleNumber>
23291       </tollFree>
23292       <premiumRate>
23293         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
23294         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23295         <exampleNumber>9001234567</exampleNumber>
23296       </premiumRate>
23297     </territory>
23298
23299     <!-- Virgin Islands, British -->
23300     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
23301                internationalPrefix="011">
23302       <references>
23303         <sourceUrl>http://www.itu.int/oth/T020200001E/en</sourceUrl>
23304       </references>
23305       <generalDesc>
23306         <!-- NANPA country - uses US formatting rules -->
23307         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
23308         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23309       </generalDesc>
23310       <fixedLine>
23311         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
23312              and 774 have been added from numbers found in the white pages. -->
23313         <nationalNumberPattern>
23314           284(?:
23315             (?:
23316               229|
23317               4(?:
23318                 22|
23319                 9[45]
23320               )|
23321               774|
23322               8(?:
23323                 52|
23324                 6[459]
23325               )
23326             )\d{4}|
23327             496[0-5]\d{3}
23328           )
23329         </nationalNumberPattern>
23330         <exampleNumber>2842291234</exampleNumber>
23331       </fixedLine>
23332       <mobile>
23333         <!-- No data on central office codes can be found on the nanpa.com website. The codes
23334              34[0-367], 446 and 54[57] have been added from numbers found in the white pages. -->
23335         <nationalNumberPattern>
23336           284(?:
23337             (?:
23338               3(?:
23339                 0[0-3]|
23340                 4[0-367]
23341               )|
23342               4(?:
23343                 4[0-6]|
23344                 68|
23345                 99
23346               )|
23347               54[0-57]
23348             )\d{4}|
23349             496[6-9]\d{3}
23350           )
23351         </nationalNumberPattern>
23352         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23353         <exampleNumber>2843001234</exampleNumber>
23354       </mobile>
23355       <tollFree>
23356         <nationalNumberPattern>
23357           8(?:
23358             00|
23359             44|
23360             55|
23361             66|
23362             77|
23363             88
23364           )[2-9]\d{6}
23365         </nationalNumberPattern>
23366         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23367         <exampleNumber>8002345678</exampleNumber>
23368       </tollFree>
23369       <premiumRate>
23370         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23371         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23372         <exampleNumber>9002345678</exampleNumber>
23373       </premiumRate>
23374       <personalNumber>
23375         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23376         <nationalNumberPattern>
23377           5(?:
23378             00|
23379             33|
23380             44|
23381             66|
23382             77
23383           )[2-9]\d{6}
23384         </nationalNumberPattern>
23385         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23386         <exampleNumber>5002345678</exampleNumber>
23387       </personalNumber>
23388     </territory>
23389
23390     <!-- Virgin Islands, United States -->
23391     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
23392                internationalPrefix="011">
23393       <references>
23394         <sourceUrl>http://www.itu.int/oth/T02020000DF/en</sourceUrl>
23395       </references>
23396       <generalDesc>
23397         <!-- NANPA country - uses US formatting rules -->
23398         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
23399         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23400       </generalDesc>
23401       <fixedLine>
23402         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
23403              yellow pages have been added, and the list of exchanges found on
23404              http://www.allareacodes.com/340 -->
23405         <nationalNumberPattern>
23406           340(?:
23407             2(?:
23408               01|
23409               2[0678]|
23410               44|
23411               77
23412             )|
23413             3(?:
23414               32|
23415               44
23416             )|
23417             4(?:
23418               22|
23419               7[34]
23420             )|
23421             5(?:
23422               1[34]|
23423               55
23424             )|
23425             6(?:
23426               26|
23427               4[23]|
23428               77|
23429               9[023]
23430             )|
23431             7(?:
23432               1[2-589]|
23433               27|
23434               7\d
23435             )|
23436             884|
23437             998
23438           )\d{4}
23439         </nationalNumberPattern>
23440         <exampleNumber>3406421234</exampleNumber>
23441       </fixedLine>
23442       <mobile>
23443         <nationalNumberPattern>
23444           340(?:
23445             2(?:
23446               01|
23447               2[0678]|
23448               44|
23449               77
23450             )|
23451             3(?:
23452               32|
23453               44
23454             )|
23455             4(?:
23456               22|
23457               7[34]
23458             )|
23459             5(?:
23460               1[34]|
23461               55
23462             )|
23463             6(?:
23464               26|
23465               4[23]|
23466               77|
23467               9[023]
23468             )|
23469             7(?:
23470               1[2-589]|
23471               27|
23472               7\d
23473             )|
23474             884|
23475             998
23476           )\d{4}
23477         </nationalNumberPattern>
23478         <exampleNumber>3406421234</exampleNumber>
23479       </mobile>
23480       <tollFree>
23481         <nationalNumberPattern>
23482           8(?:
23483             00|
23484             44|
23485             55|
23486             66|
23487             77|
23488             88
23489           )[2-9]\d{6}
23490         </nationalNumberPattern>
23491         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23492         <exampleNumber>8002345678</exampleNumber>
23493       </tollFree>
23494       <premiumRate>
23495         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23496         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23497         <exampleNumber>9002345678</exampleNumber>
23498       </premiumRate>
23499       <personalNumber>
23500         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23501         <nationalNumberPattern>
23502           5(?:
23503             00|
23504             33|
23505             44|
23506             66|
23507             77
23508           )[2-9]\d{6}
23509         </nationalNumberPattern>
23510         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23511         <exampleNumber>5002345678</exampleNumber>
23512       </personalNumber>
23513     </territory>
23514
23515     <!-- Viet Nam (Vietnam) -->
23516     <territory id="VN" countryCode="84" internationalPrefix="00"
23517                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23518                nationalPrefixOptionalWhenFormatting="true">
23519       <references>
23520         <sourceUrl>http://www.itu.int/oth/T02020000E4/en</sourceUrl>
23521         <sourceUrl>http://en.wikipedia.org/wiki/%2B84</sourceUrl>
23522       </references>
23523       <availableFormats>
23524         <numberFormat pattern="([17]99)(\d{4})">
23525           <leadingDigits>[17]99</leadingDigits>
23526           <format>$1 $2</format>
23527         </numberFormat>
23528         <numberFormat pattern="([48])(\d{4})(\d{4})">
23529           <leadingDigits>[48]</leadingDigits>
23530           <format>$1 $2 $3</format>
23531         </numberFormat>
23532         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
23533           <leadingDigits>
23534             2[025-79]|
23535             3[0136-9]|
23536             5[2-9]|
23537             6[0-46-8]|
23538             7[02-79]
23539           </leadingDigits>
23540           <format>$1 $2 $3</format>
23541         </numberFormat>
23542         <numberFormat pattern="(80)(\d{5})">
23543           <leadingDigits>80</leadingDigits>
23544           <format>$1 $2</format>
23545         </numberFormat>
23546         <numberFormat pattern="(69\d)(\d{4,5})">
23547           <leadingDigits>69</leadingDigits>
23548           <format>$1 $2</format>
23549         </numberFormat>
23550         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
23551           <leadingDigits>
23552             2[1348]|
23553             3[25]|
23554             5[01]|
23555             65|
23556             7[18]
23557           </leadingDigits>
23558           <format>$1 $2 $3</format>
23559         </numberFormat>
23560         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
23561           <leadingDigits>9</leadingDigits>
23562           <format>$1 $2 $3 $4</format>
23563         </numberFormat>
23564         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
23565           <leadingDigits>
23566             1(?:
23567               [26]|
23568               8[68]|
23569               99
23570             )
23571           </leadingDigits>
23572           <format>$1 $2 $3</format>
23573         </numberFormat>
23574         <numberFormat nationalPrefixFormattingRule="$FG"
23575           pattern="(1[89]00)(\d{4,6})">
23576           <leadingDigits>1[89]0</leadingDigits>
23577           <format>$1 $2</format>
23578         </numberFormat>
23579       </availableFormats>
23580       <generalDesc>
23581         <nationalNumberPattern>
23582           [17]\d{6,9}|
23583           [2-69]\d{7,9}|
23584           8\d{6,8}
23585         </nationalNumberPattern>
23586         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23587       </generalDesc>
23588       <noInternationalDialling>
23589         <nationalNumberPattern>
23590           [17]99\d{4}|
23591           69\d{5,6}
23592         </nationalNumberPattern>
23593         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23594         <exampleNumber>1992000</exampleNumber>
23595       </noInternationalDialling>
23596       <fixedLine>
23597         <nationalNumberPattern>
23598           (?:
23599             2(?:
23600               [025-79]|
23601               1[0189]|
23602               [348][01]
23603             )|
23604             3(?:
23605               [0136-9]|
23606               [25][01]
23607             )|
23608             4\d|
23609             5(?:
23610               [01][01]|
23611               [2-9]
23612             )|
23613             6(?:
23614               [0-46-8]|
23615               5[01]
23616             )|
23617             7(?:
23618               [02-79]|
23619               [18][01]
23620             )|
23621             8[1-9]
23622           )\d{7}
23623         </nationalNumberPattern>
23624         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23625         <exampleNumber>2101234567</exampleNumber>
23626       </fixedLine>
23627       <mobile>
23628         <nationalNumberPattern>
23629           (?:
23630             9\d|
23631             1(?:
23632               2\d|
23633               6[2-9]|
23634               8[68]|
23635               99
23636             )
23637           )\d{7}
23638         </nationalNumberPattern>
23639         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23640         <exampleNumber>912345678</exampleNumber>
23641       </mobile>
23642       <tollFree>
23643         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
23644         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23645         <exampleNumber>1800123456</exampleNumber>
23646       </tollFree>
23647       <premiumRate>
23648         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
23649         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23650         <exampleNumber>1900123456</exampleNumber>
23651       </premiumRate>
23652       <uan>
23653         <!-- These include non-geographic fixed numbers, such as for government ministries. While
23654         listed as "private networks", they may actually be callable from within Vietnam. (They are
23655         "private" in the sense that ordinary people could not be assigned these numbers.) -->
23656         <nationalNumberPattern>
23657           [17]99\d{4}|
23658           69\d{5,6}|
23659           80\d{5}
23660         </nationalNumberPattern>
23661         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23662         <exampleNumber>1992000</exampleNumber>
23663       </uan>
23664     </territory>
23665
23666     <!-- Vanuatu -->
23667     <territory id="VU" countryCode="678" internationalPrefix="00">
23668       <references>
23669         <sourceUrl>http://www.itu.int/oth/T02020000E2/en</sourceUrl>
23670       </references>
23671       <!-- Should be formatted in one block, apart from the mobile numbers. -->
23672       <availableFormats>
23673         <numberFormat pattern="(\d{3})(\d{4})">
23674           <leadingDigits>[579]</leadingDigits>
23675           <format>$1 $2</format>
23676         </numberFormat>
23677       </availableFormats>
23678       <generalDesc>
23679         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
23680         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23681       </generalDesc>
23682       <fixedLine>
23683         <nationalNumberPattern>
23684           (?:
23685             2[02-9]\d|
23686             3(?:
23687               [5-7]\d|
23688               8[0-8]
23689             )|
23690             48[4-9]|
23691             88\d
23692           )\d{2}
23693         </nationalNumberPattern>
23694         <possibleNumberPattern>\d{5}</possibleNumberPattern>
23695         <exampleNumber>22123</exampleNumber>
23696       </fixedLine>
23697       <mobile>
23698         <nationalNumberPattern>
23699           (?:
23700             5(?:
23701               7[2-5]|
23702               [3-69]\d
23703             )|
23704             7[013-7]\d
23705           )\d{4}
23706         </nationalNumberPattern>
23707         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23708         <exampleNumber>5912345</exampleNumber>
23709       </mobile>
23710       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
23711            for government fixed-line numbers. -->
23712       <uan>
23713         <nationalNumberPattern>
23714           3[03]\d{3}|
23715           900\d{4}
23716         </nationalNumberPattern>
23717         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23718         <exampleNumber>30123</exampleNumber>
23719       </uan>
23720     </territory>
23721
23722     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
23723     <territory id="WF" countryCode="681" internationalPrefix="00">
23724       <references>
23725         <sourceUrl>http://www.itu.int/oth/T02020000E6/en</sourceUrl>
23726       </references>
23727       <availableFormats>
23728         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
23729           <format>$1 $2 $3</format>
23730         </numberFormat>
23731       </availableFormats>
23732       <generalDesc>
23733         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
23734         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23735       </generalDesc>
23736       <fixedLine>
23737         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
23738              50 and 68 are possible, so they are included here. -->
23739         <nationalNumberPattern>
23740           (?:
23741             50|
23742             68|
23743             72
23744           )\d{4}
23745         </nationalNumberPattern>
23746         <exampleNumber>501234</exampleNumber>
23747       </fixedLine>
23748       <mobile>
23749         <nationalNumberPattern>
23750           (?:
23751             50|
23752             68|
23753             72
23754           )\d{4}
23755         </nationalNumberPattern>
23756         <exampleNumber>501234</exampleNumber>
23757       </mobile>
23758     </territory>
23759
23760     <!-- Samoa -->
23761     <territory id="WS" countryCode="685" internationalPrefix="0">
23762       <references>
23763         <sourceUrl>http://www.itu.int/oth/T02020000B4/en</sourceUrl>
23764       </references>
23765       <availableFormats>
23766         <!-- Should be formatted in one block, apart from the specific series below. -->
23767         <numberFormat pattern="(8\d{2})(\d{3,4})">
23768           <leadingDigits>8</leadingDigits>
23769           <format>$1 $2</format>
23770         </numberFormat>
23771         <numberFormat pattern="(7\d)(\d{5})">
23772           <leadingDigits>7</leadingDigits>
23773           <format>$1 $2</format>
23774         </numberFormat>
23775       </availableFormats>
23776       <generalDesc>
23777         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
23778         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23779       </generalDesc>
23780       <fixedLine>
23781         <nationalNumberPattern>
23782           (?:
23783             [2-5]\d|
23784             6[1-9]|
23785             84\d{2}
23786           )\d{3}
23787         </nationalNumberPattern>
23788         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23789         <exampleNumber>22123</exampleNumber>
23790       </fixedLine>
23791       <mobile>
23792         <nationalNumberPattern>
23793           (?:
23794             60|
23795             7[25-7]\d
23796           )\d{4}
23797         </nationalNumberPattern>
23798         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
23799         <exampleNumber>601234</exampleNumber>
23800       </mobile>
23801       <tollFree>
23802         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
23803              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
23804              for now, so may be also used for other purposes than toll free, but until we have
23805              further evidence of these we will keep it as toll free. -->
23806         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
23807         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23808         <exampleNumber>800123</exampleNumber>
23809       </tollFree>
23810       <!-- Current research suggests other types of numbers are not used in Samoa. -->
23811     </territory>
23812
23813     <!-- Yemen -->
23814     <territory id="YE" countryCode="967" internationalPrefix="00"
23815                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
23816       <references>
23817         <sourceUrl>http://www.itu.int/oth/T02020000E7/en</sourceUrl>
23818       </references>
23819       <availableFormats>
23820         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
23821           <leadingDigits>
23822             [1-6]|
23823             7[24-68]
23824           </leadingDigits>
23825           <format>$1 $2 $3</format>
23826         </numberFormat>
23827         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
23828           <leadingDigits>7[0137]</leadingDigits>
23829           <format>$1 $2 $3</format>
23830         </numberFormat>
23831       </availableFormats>
23832       <generalDesc>
23833         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
23834         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
23835       </generalDesc>
23836       <fixedLine>
23837         <nationalNumberPattern>
23838           (?:
23839             1(?:
23840               7\d|
23841               [2-68]
23842             )|
23843             2[2-68]|
23844             3[2358]|
23845             4[2-58]|
23846             5[2-6]|
23847             6[3-58]|
23848             7[24-68]
23849           )\d{5}
23850         </nationalNumberPattern>
23851         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
23852         <exampleNumber>1234567</exampleNumber>
23853       </fixedLine>
23854       <mobile>
23855         <!-- Adding 70 from numbers found online. -->
23856         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
23857         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23858         <exampleNumber>712345678</exampleNumber>
23859       </mobile>
23860       <!-- No tollFree or premiumRate information can be found. -->
23861     </territory>
23862
23863     <!-- Mayotte -->
23864     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
23865                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
23866       <references>
23867         <!-- Some information at the following source, but most from collection of internet data.
23868              -->
23869         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_France</sourceUrl>
23870         <!-- Verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
23871              -->
23872         <sourceUrl>http://www.comores-online.com/mwezinet/internet/262</sourceUrl>
23873       </references>
23874       <!-- Formatting as per La Réunion. -->
23875       <generalDesc>
23876         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
23877         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23878       </generalDesc>
23879       <fixedLine>
23880         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
23881         <exampleNumber>269601234</exampleNumber>
23882       </fixedLine>
23883       <mobile>
23884         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
23885         <exampleNumber>639123456</exampleNumber>
23886       </mobile>
23887       <!-- Same as in France. -->
23888       <tollFree>
23889         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23890         <exampleNumber>801234567</exampleNumber>
23891       </tollFree>
23892     </territory>
23893
23894     <!-- South Africa -->
23895     <territory id="ZA" countryCode="27" internationalPrefix="00"
23896                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23897                mobileNumberPortableRegion="true">
23898       <references>
23899         <sourceUrl>http://www.itu.int/oth/T02020000C1/en</sourceUrl>
23900         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa</sourceUrl>
23901       </references>
23902       <availableFormats>
23903         <numberFormat pattern="(860)(\d{3})(\d{3})">
23904           <leadingDigits>860</leadingDigits>
23905           <format>$1 $2 $3</format>
23906         </numberFormat>
23907         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
23908           <leadingDigits>
23909             [1-79]|
23910             8(?:
23911               [0-47]|
23912               6[1-9]
23913             )
23914           </leadingDigits>
23915           <format>$1 $2 $3</format>
23916         </numberFormat>
23917         <numberFormat pattern="(\d{2})(\d{3,4})">
23918           <leadingDigits>8[1-4]</leadingDigits>
23919           <format>$1 $2</format>
23920         </numberFormat>
23921         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
23922           <leadingDigits>8[1-4]</leadingDigits>
23923           <format>$1 $2 $3</format>
23924         </numberFormat>
23925       </availableFormats>
23926       <generalDesc>
23927         <nationalNumberPattern>
23928           [1-79]\d{8}|
23929           8(?:
23930             [067]\d{7}|
23931             [1-4]\d{3,7}
23932           )
23933         </nationalNumberPattern>
23934         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
23935       </generalDesc>
23936       <fixedLine>
23937         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
23938              used in 1996. -->
23939         <nationalNumberPattern>
23940           (?:
23941             1[0-8]|
23942             2[0-378]|
23943             3[1-69]|
23944             4\d|
23945             5[1346-8]
23946           )\d{7}
23947         </nationalNumberPattern>
23948         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23949         <exampleNumber>101234567</exampleNumber>
23950       </fixedLine>
23951       <mobile>
23952         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
23953              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
23954              in prominent places online, even though the ITU document says numbers must be 10 digits
23955              long (including the national prefix). -->
23956         <nationalNumberPattern>
23957           (?:
23958             6[0-5]|
23959             7[0-46-9]
23960           )\d{7}|
23961           8[1-4]\d{3,7}
23962         </nationalNumberPattern>
23963         <exampleNumber>711234567</exampleNumber>
23964       </mobile>
23965       <tollFree>
23966         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23967         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23968         <exampleNumber>801234567</exampleNumber>
23969       </tollFree>
23970       <premiumRate>
23971         <nationalNumberPattern>
23972           86[2-9]\d{6}|
23973           90\d{7}
23974         </nationalNumberPattern>
23975         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23976         <exampleNumber>862345678</exampleNumber>
23977       </premiumRate>
23978       <sharedCost>
23979         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
23980         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23981         <exampleNumber>860123456</exampleNumber>
23982       </sharedCost>
23983       <voip>
23984         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
23985         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23986         <exampleNumber>871234567</exampleNumber>
23987       </voip>
23988       <uan>
23989         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
23990              numbers. -->
23991         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
23992         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23993         <exampleNumber>861123456</exampleNumber>
23994       </uan>
23995     </territory>
23996
23997     <!-- Zambia -->
23998     <territory id="ZM" countryCode="260" internationalPrefix="00"
23999                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24000       <references>
24001         <sourceUrl>http://www.itu.int/oth/T02020000E8/en</sourceUrl>
24002       </references>
24003       <availableFormats>
24004         <numberFormat pattern="([29]\d)(\d{7})">
24005           <leadingDigits>[29]</leadingDigits>
24006           <format>$1 $2</format>
24007         </numberFormat>
24008         <numberFormat pattern="(800)(\d{3})(\d{3})">
24009           <leadingDigits>8</leadingDigits>
24010           <format>$1 $2 $3</format>
24011         </numberFormat>
24012       </availableFormats>
24013       <generalDesc>
24014         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
24015         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24016       </generalDesc>
24017       <fixedLine>
24018         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
24019         <exampleNumber>211234567</exampleNumber>
24020       </fixedLine>
24021       <mobile>
24022         <!-- Adding extra prefixes 50 and 6[1-57-9] since SMS messages have been successfully
24023              delivered to these numbers, and numbers like this can be found on the Internet. Adding
24024              prefix 960 based on information received from MTN Zambia. The 97 range has been
24025              expanded based on their IR21 document, which states the range 97[1-9] is used. -->
24026         <nationalNumberPattern>
24027           9(?:
24028             5[05]|
24029             6\d|
24030             7[1-9]
24031           )\d{6}
24032         </nationalNumberPattern>
24033         <exampleNumber>955123456</exampleNumber>
24034       </mobile>
24035       <tollFree>
24036         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
24037         <exampleNumber>800123456</exampleNumber>
24038       </tollFree>
24039     </territory>
24040
24041     <!-- Zimbabwe -->
24042     <territory id="ZW" countryCode="263" internationalPrefix="00"
24043                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24044       <references>
24045         <sourceUrl>http://www.itu.int/oth/T02020000E9/en</sourceUrl>
24046       </references>
24047       <availableFormats>
24048         <!-- One-digit area codes -->
24049         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
24050           <leadingDigits>
24051             4|
24052             9[2-9]
24053           </leadingDigits>
24054           <format>$1 $2 $3</format>
24055         </numberFormat>
24056         <!-- Mobile numbers -->
24057         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
24058           <leadingDigits>
24059             [19]1|
24060             7
24061           </leadingDigits>
24062           <format>$1 $2 $3</format>
24063         </numberFormat>
24064         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
24065           <leadingDigits>86[24]</leadingDigits>
24066           <format>$1 $2 $3</format>
24067         </numberFormat>
24068         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
24069         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
24070           <leadingDigits>
24071             2(?:
24072               [278]|
24073               0[45]|
24074               [49]8
24075             )|
24076             3(?:
24077               08|
24078               17|
24079               3[78]|
24080               [78]
24081             )|
24082             5[15][78]|
24083             6(?:
24084               [29]8|
24085               37|
24086               [68][78]
24087             )
24088           </leadingDigits>
24089           <format>$1 $2</format>
24090         </numberFormat>
24091         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
24092           <leadingDigits>
24093             2(?:
24094               [278]|
24095               0[45]|
24096               48
24097             )|
24098             3(?:
24099               08|
24100               17|
24101               3[78]|
24102               [78]
24103             )|
24104             5[15][78]|
24105             6(?:
24106               [29]8|
24107               37|
24108               [68][78]
24109             )|
24110             80
24111           </leadingDigits>
24112           <format>$1 $2 $3</format>
24113         </numberFormat>
24114         <!-- Two-digit area codes -->
24115         <numberFormat pattern="([1-356]\d)(\d{3,5})">
24116           <leadingDigits>
24117             1[3-9]|
24118             2(?:
24119               [1-469]|
24120               0[0-35-9]|
24121               [45][0-79]
24122             )|
24123             3(?:
24124               0[0-79]|
24125               1[0-689]|
24126               [24-69]|
24127               3[0-69]
24128             )|
24129             5(?:
24130               [02-46-9]|
24131               [15][0-69]
24132             )|
24133             6(?:
24134               [0145]|
24135               [29][0-79]|
24136               3[0-689]|
24137               [68][0-69]
24138             )
24139           </leadingDigits>
24140           <format>$1 $2</format>
24141         </numberFormat>
24142         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
24143           <leadingDigits>
24144             1[3-9]|
24145             2(?:
24146               [1-469]|
24147               0[0-35-9]|
24148               [45][0-79]
24149             )|
24150             3(?:
24151               0[0-79]|
24152               1[0-689]|
24153               [24-69]|
24154               3[0-69]
24155             )|
24156             5(?:
24157               [02-46-9]|
24158               [15][0-69]
24159             )|
24160             6(?:
24161               [0145]|
24162               [29][0-79]|
24163               3[0-689]|
24164               [68][0-69]
24165             )
24166           </leadingDigits>
24167           <format>$1 $2 $3</format>
24168         </numberFormat>
24169         <!-- Four-digit area codes -->
24170         <numberFormat pattern="([25]\d{3})(\d{3,5})">
24171           <leadingDigits>
24172             (?:
24173               25|
24174               54
24175             )8
24176           </leadingDigits>
24177           <leadingDigits>
24178             258[23]|
24179             5483
24180           </leadingDigits>
24181           <format>$1 $2</format>
24182         </numberFormat>
24183         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
24184           <leadingDigits>
24185             (?:
24186               25|
24187               54
24188             )8
24189           </leadingDigits>
24190           <leadingDigits>
24191             258[23]|
24192             5483
24193           </leadingDigits>
24194           <format>$1 $2 $3</format>
24195         </numberFormat>
24196         <!-- VOIP numbers -->
24197         <numberFormat pattern="(8\d{3})(\d{6})">
24198           <leadingDigits>86</leadingDigits>
24199           <format>$1 $2</format>
24200         </numberFormat>
24201       </availableFormats>
24202       <generalDesc>
24203         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
24204              variable in length and the possible prefixes clash with the country code. -->
24205         <nationalNumberPattern>
24206           2(?:
24207             [012457-9]\d{3,8}|
24208             6\d{3,6}
24209           )|
24210           [13-79]\d{4,8}|
24211           8[06]\d{8}
24212         </nationalNumberPattern>
24213         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
24214       </generalDesc>
24215       <fixedLine>
24216         <!-- Numbering is grouped by subscriber-number length. -->
24217         <nationalNumberPattern>
24218           (?:
24219             1[3-9]|
24220             2(?:
24221               0[45]|
24222               [16]|
24223               2[28]|
24224               [49]8?|
24225               58[23]|
24226               7[246]|
24227               8[1346-9]
24228             )|
24229             3(?:
24230               08?|
24231               17?|
24232               3[78]|
24233               [2456]|
24234               7[1569]|
24235               8[379]
24236             )|
24237             5(?:
24238               [07-9]|
24239               1[78]|
24240               483|
24241               5(?:
24242                 7?|
24243                 8
24244               )
24245             )|
24246             6(?:
24247               0|
24248               28|
24249               37?|
24250               [45][68][78]|
24251               98?
24252             )|
24253             848
24254           )\d{3,6}|
24255           (?:
24256             2(?:
24257               27|
24258               5|
24259               7[135789]|
24260               8[25]
24261             )|
24262             3[39]|
24263             5[1-46]|
24264             6[126-8]
24265           )\d{4,6}|
24266           2(?:
24267             (?:
24268               0|
24269               70
24270             )\d{5,6}|
24271             2[05]\d{7}
24272           )|
24273           (?:
24274             4\d|
24275             9[2-8]
24276           )\d{4,7}
24277         </nationalNumberPattern>
24278         <exampleNumber>1312345</exampleNumber>
24279       </fixedLine>
24280       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
24281            also being used by the carriers as mobile prefixes. -->
24282       <mobile>
24283         <nationalNumberPattern>
24284           7[1378]\d{7}|
24285           86(?:
24286             22|
24287             44
24288           )\d{6}
24289         </nationalNumberPattern>
24290         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24291         <exampleNumber>711234567</exampleNumber>
24292       </mobile>
24293       <tollFree>
24294         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
24295         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24296         <exampleNumber>8001234567</exampleNumber>
24297       </tollFree>
24298       <!-- No premiumRate information can be found. -->
24299       <voip>
24300         <nationalNumberPattern>
24301           86(?:
24302             1[12]|
24303             30|
24304             55|
24305             77|
24306             8[367]|
24307             99
24308           )\d{6}
24309         </nationalNumberPattern>
24310         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24311         <exampleNumber>8686123456</exampleNumber>
24312       </voip>
24313     </territory>
24314
24315     <!-- Universal International Toll Free Number -->
24316     <territory id="001" countryCode="800" leadingZeroPossible="true">
24317       <references>
24318         <sourceUrl>http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx</sourceUrl>
24319       </references>
24320       <availableFormats>
24321         <numberFormat pattern="(\d{4})(\d{4})">
24322           <format>$1 $2</format>
24323         </numberFormat>
24324       </availableFormats>
24325       <generalDesc>
24326         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24327         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24328         <exampleNumber>12345678</exampleNumber>
24329       </generalDesc>
24330       <fixedLine>
24331         <nationalNumberPattern>NA</nationalNumberPattern>
24332         <possibleNumberPattern>NA</possibleNumberPattern>
24333       </fixedLine>
24334       <mobile>
24335         <nationalNumberPattern>NA</nationalNumberPattern>
24336         <possibleNumberPattern>NA</possibleNumberPattern>
24337       </mobile>
24338       <tollFree>
24339         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24340       </tollFree>
24341     </territory>
24342
24343     <!-- Universal International Shared Cost Number -->
24344     <territory id="001" countryCode="808" leadingZeroPossible="true">
24345       <references>
24346         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24347       </references>
24348       <availableFormats>
24349         <numberFormat pattern="(\d{4})(\d{4})">
24350           <format>$1 $2</format>
24351         </numberFormat>
24352       </availableFormats>
24353       <generalDesc>
24354         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24355         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24356         <exampleNumber>12345678</exampleNumber>
24357       </generalDesc>
24358       <fixedLine>
24359         <nationalNumberPattern>NA</nationalNumberPattern>
24360         <possibleNumberPattern>NA</possibleNumberPattern>
24361       </fixedLine>
24362       <mobile>
24363         <nationalNumberPattern>NA</nationalNumberPattern>
24364         <possibleNumberPattern>NA</possibleNumberPattern>
24365       </mobile>
24366       <sharedCost>
24367         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24368       </sharedCost>
24369     </territory>
24370
24371     <!-- Inmarsat Global Limited -->
24372     <territory id="001" countryCode="870">
24373       <references>
24374         <sourceUrl>http://www.itu.int/oth/T0202000065/en</sourceUrl>
24375         <sourceUrl>http://www.inmarsat.com</sourceUrl>
24376       </references>
24377       <availableFormats>
24378         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24379           <format>$1 $2 $3</format>
24380         </numberFormat>
24381       </availableFormats>
24382       <generalDesc>
24383         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
24384         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24385         <exampleNumber>301234567</exampleNumber>
24386       </generalDesc>
24387       <fixedLine>
24388         <nationalNumberPattern>NA</nationalNumberPattern>
24389         <possibleNumberPattern>NA</possibleNumberPattern>
24390       </fixedLine>
24391       <mobile>
24392         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
24393         <nationalNumberPattern>
24394           (?:
24395             [356]\d|
24396             7[6-8]
24397           )\d{7}
24398         </nationalNumberPattern>
24399       </mobile>
24400     </territory>
24401
24402     <!-- VISIONng -->
24403     <!-- Number length has been derived from examples found online. -->
24404     <territory id="001" countryCode="878">
24405       <references>
24406         <sourceUrl>http://www.itu.int/oth/T02020000E5/en</sourceUrl>
24407       </references>
24408       <availableFormats>
24409         <!-- Formatting chosen based on online examples. -->
24410         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
24411           <format>$1 $2 $3</format>
24412         </numberFormat>
24413       </availableFormats>
24414       <generalDesc>
24415         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
24416         <possibleNumberPattern>\d{12}</possibleNumberPattern>
24417         <exampleNumber>101234567890</exampleNumber>
24418       </generalDesc>
24419       <fixedLine>
24420         <nationalNumberPattern>NA</nationalNumberPattern>
24421         <possibleNumberPattern>NA</possibleNumberPattern>
24422       </fixedLine>
24423       <mobile>
24424         <nationalNumberPattern>NA</nationalNumberPattern>
24425         <possibleNumberPattern>NA</possibleNumberPattern>
24426       </mobile>
24427       <voip>
24428         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
24429       </voip>
24430     </territory>
24431
24432     <!-- Iridium -->
24433     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
24434          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
24435          are. For this reason, we only support Iridium numbers at the moment. -->
24436     <territory id="001" countryCode="881">
24437       <references>
24438         <sourceUrl>http://www.iridium.com</sourceUrl>
24439         <sourceUrl>http://www.itu.int/oth/T0202000069/en</sourceUrl>
24440       </references>
24441       <availableFormats>
24442         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
24443         <numberFormat pattern="(\d)(\d{3})(\d{5})">
24444           <leadingDigits>[67]</leadingDigits>
24445           <format>$1 $2 $3</format>
24446         </numberFormat>
24447       </availableFormats>
24448       <generalDesc>
24449         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24450         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24451         <exampleNumber>612345678</exampleNumber>
24452       </generalDesc>
24453       <fixedLine>
24454         <nationalNumberPattern>NA</nationalNumberPattern>
24455         <possibleNumberPattern>NA</possibleNumberPattern>
24456       </fixedLine>
24457       <mobile>
24458         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24459       </mobile>
24460     </territory>
24461
24462     <territory id="001" countryCode="882">
24463       <references>
24464         <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
24465         <sourceUrl>http://www.itu.int/oth/T0202000054/en</sourceUrl>
24466         <sourceUrl>http://www.gsm.aq/numberplan.php</sourceUrl>
24467         <sourceUrl>http://www.global.aq</sourceUrl>
24468         <!-- Maritime Communications Partner (MCP) +88232 -->
24469         <sourceUrl>http://www.itu.int/oth/T02020000F4/en</sourceUrl>
24470         <!-- Oration Technologies +88237 -->
24471         <sourceUrl>http://www.itu.int/oth/T02020000A0/en</sourceUrl>
24472         <!-- Telespazio S.p.A. +88213 -->
24473         <sourceUrl>http://www.itu.int/oth/T02020000CC/en</sourceUrl>
24474         <!-- Thuraya +88216 -->
24475         <sourceUrl>http://www.itu.int/oth/T02020000CF/en</sourceUrl>
24476       </references>
24477       <availableFormats>
24478         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
24479           <leadingDigits>3[23]</leadingDigits>
24480           <format>$1 $2 $3</format>
24481         </numberFormat>
24482         <numberFormat pattern="(\d{2})(\d{5})">
24483           <leadingDigits>
24484             16|
24485             342
24486           </leadingDigits>
24487           <format>$1 $2</format>
24488         </numberFormat>
24489         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
24490           <leadingDigits>34[57]</leadingDigits>
24491           <format>$1 $2 $3</format>
24492         </numberFormat>
24493         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
24494           <leadingDigits>348</leadingDigits>
24495           <format>$1 $2 $3</format>
24496         </numberFormat>
24497         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
24498           <leadingDigits>1</leadingDigits>
24499           <format>$1 $2 $3</format>
24500         </numberFormat>
24501         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
24502           <leadingDigits>16</leadingDigits>
24503           <format>$1 $2 $3</format>
24504         </numberFormat>
24505         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
24506           <leadingDigits>16</leadingDigits>
24507           <format>$1 $2 $3</format>
24508         </numberFormat>
24509       </availableFormats>
24510       <generalDesc>
24511         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
24512         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24513         <exampleNumber>3451234567</exampleNumber>
24514       </generalDesc>
24515       <fixedLine>
24516         <nationalNumberPattern>NA</nationalNumberPattern>
24517         <possibleNumberPattern>NA</possibleNumberPattern>
24518       </fixedLine>
24519       <mobile>
24520         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
24521              Oration based on numbers found online. -->
24522         <nationalNumberPattern>
24523           3(?:
24524             2\d{3}|
24525             37\d{2}|
24526             4(?:
24527               2|
24528               7\d{3}
24529             )
24530           )\d{4}
24531         </nationalNumberPattern>
24532         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
24533       </mobile>
24534       <voip>
24535         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
24536         <nationalNumberPattern>
24537           1(?:
24538             3(?:
24539               0[0347]|
24540               [13][0139]|
24541               2[035]|
24542               4[013568]|
24543               6[0459]|
24544               7[06]|
24545               8[15678]|
24546               9[0689]
24547             )\d{4}|
24548             6\d{5,10}
24549           )|
24550           345\d{7}
24551         </nationalNumberPattern>
24552         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24553       </voip>
24554       <voicemail>
24555         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
24556         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24557       </voicemail>
24558     </territory>
24559
24560     <territory id="001" countryCode="883">
24561       <references>
24562         <!-- bandwidth.com -->
24563         <sourceUrl>http://www.itu.int/oth/T02020000FB/en</sourceUrl>
24564         <!-- SipMe -->
24565         <sourceUrl>http://www.itu.int/oth/T02020000FC/en</sourceUrl>
24566         <!-- Voxbone -->
24567         <sourceUrl>http://www.itu.int/oth/T02020000F3/en</sourceUrl>
24568       </references>
24569       <availableFormats>
24570         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24571           <leadingDigits>510</leadingDigits>
24572           <format>$1 $2 $3</format>
24573         </numberFormat>
24574         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
24575           <leadingDigits>510</leadingDigits>
24576           <format>$1 $2 $3 $4</format>
24577         </numberFormat>
24578         <!-- When only 8 digits follow the "area code" formatting as XXXX XXXX
24579              seems preferred (see Bandwidth.com and SipMe). -->
24580         <numberFormat pattern="(\d{4})(\d{4})(\d{4})">
24581           <leadingDigits>51[13]</leadingDigits>
24582           <format>$1 $2 $3</format>
24583         </numberFormat>
24584       </availableFormats>
24585       <generalDesc>
24586         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
24587              costs can be found online, so we don't include them here for now. -->
24588         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
24589         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
24590         <exampleNumber>510012345</exampleNumber>
24591       </generalDesc>
24592       <fixedLine>
24593         <nationalNumberPattern>NA</nationalNumberPattern>
24594         <possibleNumberPattern>NA</possibleNumberPattern>
24595       </fixedLine>
24596       <mobile>
24597         <nationalNumberPattern>NA</nationalNumberPattern>
24598         <possibleNumberPattern>NA</possibleNumberPattern>
24599       </mobile>
24600       <voip>
24601         <nationalNumberPattern>
24602           51(?:
24603             00\d{5}(?:\d{3})?|
24604             [13]0\d{8}
24605           )
24606         </nationalNumberPattern>
24607       </voip>
24608     </territory>
24609
24610     <!-- United Nations- OCHA -->
24611     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
24612          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
24613          the tariff of a national call. -->
24614     <territory id="001" countryCode="888" leadingZeroPossible="true">
24615       <references>
24616         <sourceUrl>http://www.itu.int/oth/T02020000FA/en</sourceUrl>
24617       </references>
24618       <availableFormats>
24619         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
24620           <format>$1 $2 $3</format>
24621         </numberFormat>
24622       </availableFormats>
24623       <generalDesc>
24624         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24625         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24626         <exampleNumber>12345678901</exampleNumber>
24627       </generalDesc>
24628       <fixedLine>
24629         <nationalNumberPattern>NA</nationalNumberPattern>
24630         <possibleNumberPattern>NA</possibleNumberPattern>
24631       </fixedLine>
24632       <mobile>
24633         <nationalNumberPattern>NA</nationalNumberPattern>
24634         <possibleNumberPattern>NA</possibleNumberPattern>
24635       </mobile>
24636       <uan>
24637         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24638       </uan>
24639     </territory>
24640
24641     <!-- Universal International Premium Rate Number -->
24642     <territory id="001" countryCode="979" leadingZeroPossible="true">
24643       <references>
24644         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24645       </references>
24646       <availableFormats>
24647         <numberFormat pattern="(\d)(\d{4})(\d{4})">
24648           <format>$1 $2 $3</format>
24649         </numberFormat>
24650       </availableFormats>
24651       <generalDesc>
24652         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24653         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24654         <exampleNumber>123456789</exampleNumber>
24655       </generalDesc>
24656       <fixedLine>
24657         <nationalNumberPattern>NA</nationalNumberPattern>
24658         <possibleNumberPattern>NA</possibleNumberPattern>
24659       </fixedLine>
24660       <mobile>
24661         <nationalNumberPattern>NA</nationalNumberPattern>
24662         <possibleNumberPattern>NA</possibleNumberPattern>
24663       </mobile>
24664       <premiumRate>
24665         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24666       </premiumRate>
24667     </territory>
24668   </territories>
24669 </phoneNumberMetadata>