b083abd0902e3e0ec23edb0ede7ef95108a4156c
[platform/upstream/libphonenumber.git] / resources / PhoneNumberMetadata.xml
1 <!-- Copyright (C) 2009 The Libphonenumber Authors
2
3      Licensed under the Apache License, Version 2.0 (the "License");
4      you may not use this file except in compliance with the License.
5      You may obtain a copy of the License at
6
7      http://www.apache.org/licenses/LICENSE-2.0
8
9      Unless required by applicable law or agreed to in writing, software
10      distributed under the License is distributed on an "AS IS" BASIS,
11      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12      See the License for the specific language governing permissions and
13      limitations under the License.
14
15      @author: Shaopeng Jia
16
17      Metadata on Phone Number Plan and formatting rules
18      Note: Territories are in alphabetical order by their IDs, which are based on ISO 3166-1
19            two-letter country codes (or are set to "001" for non-geographical entities, which
20            represents "World" in the UN M.49 standard). The country names in the comments are the
21            official short names in English according to ISO 3166-1.
22
23      For more information on what each element represents, see
24      resources/phonemetadata.proto
25
26      Note that if you want to add validation metadata, the generalDesc nationalNumberPattern and
27      possibleNumberPattern must be provided. If this is missing, then the country will be
28      considered to have no more specific phone-number type metadata (fixedLine, mobile etc) and
29      hence only basic validation rules (numbers should be between 3 and 15 digits long) will be
30      applied.
31
32      If adding an element for a non-geographical entity, please add an example number element to the
33      general description.
34
35      Country code, international and national prefix information main source:
36      http://www.itu.int/pub/T-SP-E.164C-2011
37 -->
38
39 <!DOCTYPE phoneNumberMetadata [
40     <!ELEMENT phoneNumberMetadata (territories)>
41     <!ELEMENT territories (territory+)>
42     <!ELEMENT territory (references?, availableFormats?, generalDesc?, noInternationalDialling?,
43         areaCodeOptional?, fixedLine?, mobile?, pager?, tollFree?, premiumRate?,
44         sharedCost?, personalNumber?, voip?, uan?, voicemail?)>
45     <!ELEMENT references (sourceUrl+)>
46     <!ELEMENT generalDesc (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
47     <!ELEMENT noInternationalDialling (nationalNumberPattern, possibleNumberPattern?,
48         exampleNumber?)>
49     <!ELEMENT areaCodeOptional (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
50     <!ELEMENT fixedLine (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
51     <!ELEMENT mobile (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
52     <!ELEMENT pager (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
53     <!ELEMENT tollFree (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
54     <!ELEMENT premiumRate (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
55     <!ELEMENT sharedCost (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
56     <!ELEMENT personalNumber (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
57     <!ELEMENT voip (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
58     <!ELEMENT uan (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
59     <!ELEMENT voicemail (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
60     <!ELEMENT sourceUrl (#PCDATA)>
61     <!ELEMENT availableFormats (numberFormat+)>
62     <!ELEMENT nationalNumberPattern (#PCDATA)>
63     <!ELEMENT possibleNumberPattern (#PCDATA)>
64     <!ELEMENT exampleNumber (#PCDATA)>
65     <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)>
66     <!ELEMENT format (#PCDATA)>
67     <!ELEMENT intlFormat (#PCDATA)>
68     <!ELEMENT leadingDigits (#PCDATA)>
69
70     <!ATTLIST territory id CDATA #REQUIRED>
71     <!ATTLIST territory countryCode CDATA #REQUIRED>
72     <!ATTLIST territory mainCountryForCode (true) #IMPLIED>
73     <!ATTLIST territory leadingDigits CDATA #IMPLIED>
74     <!ATTLIST territory preferredInternationalPrefix CDATA #IMPLIED>
75     <!ATTLIST territory internationalPrefix CDATA #IMPLIED>
76     <!ATTLIST territory nationalPrefix CDATA #IMPLIED>
77     <!ATTLIST territory nationalPrefixForParsing CDATA #IMPLIED>
78     <!ATTLIST territory nationalPrefixTransformRule CDATA #IMPLIED>
79     <!ATTLIST territory preferredExtnPrefix CDATA #IMPLIED>
80     <!ATTLIST territory nationalPrefixFormattingRule CDATA #IMPLIED>
81     <!ATTLIST territory nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
82     <!ATTLIST territory leadingZeroPossible (true) #IMPLIED>
83     <!ATTLIST territory carrierCodeFormattingRule CDATA #IMPLIED>
84     <!ATTLIST territory mobileNumberPortableRegion (true) #IMPLIED>
85     <!ATTLIST numberFormat nationalPrefixFormattingRule CDATA #IMPLIED>
86     <!ATTLIST numberFormat nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
87     <!ATTLIST numberFormat carrierCodeFormattingRule CDATA #IMPLIED>
88     <!ATTLIST numberFormat pattern CDATA #REQUIRED>
89 ]>
90
91 <phoneNumberMetadata>
92   <territories>
93     <!-- Ascension Island -->
94     <territory id="AC" countryCode="247" internationalPrefix="00">
95       <references>
96         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
97       </references>
98       <!-- Formatted as a block. -->
99       <generalDesc>
100         <nationalNumberPattern>[2-7]\d{3,5}</nationalNumberPattern>
101         <possibleNumberPattern>\d{4,6}</possibleNumberPattern>
102       </generalDesc>
103       <fixedLine>
104         <nationalNumberPattern>
105           (?:
106             [267]\d|
107             3[0-5]|
108             4[4-69]
109           )\d{2}
110         </nationalNumberPattern>
111         <possibleNumberPattern>\d{4}</possibleNumberPattern>
112         <exampleNumber>6889</exampleNumber>
113       </fixedLine>
114       <mobile>
115         <nationalNumberPattern>5\d{5}</nationalNumberPattern>
116         <possibleNumberPattern>\d{6}</possibleNumberPattern>
117         <exampleNumber>501234</exampleNumber>
118       </mobile>
119     </territory>
120
121     <!-- Andorra -->
122     <territory id="AD" countryCode="376" internationalPrefix="00">
123       <references>
124         <sourceUrl>http://www.itu.int/oth/T0202000005/en</sourceUrl>
125       </references>
126       <availableFormats>
127         <numberFormat pattern="(\d{3})(\d{3})">
128           <leadingDigits>[346-9]</leadingDigits>
129           <format>$1 $2</format>
130         </numberFormat>
131         <numberFormat pattern="(180[02])(\d{4})">
132           <leadingDigits>1</leadingDigits>
133           <format>$1 $2</format>
134         </numberFormat>
135       </availableFormats>
136       <generalDesc>
137         <nationalNumberPattern>
138           (?:
139             [346-9]|
140             180
141           )\d{5}
142         </nationalNumberPattern>
143         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
144       </generalDesc>
145       <fixedLine>
146         <nationalNumberPattern>[78]\d{5}</nationalNumberPattern>
147         <possibleNumberPattern>\d{6}</possibleNumberPattern>
148         <exampleNumber>712345</exampleNumber>
149       </fixedLine>
150       <mobile>
151         <nationalNumberPattern>[346]\d{5}</nationalNumberPattern>
152         <possibleNumberPattern>\d{6}</possibleNumberPattern>
153         <exampleNumber>312345</exampleNumber>
154       </mobile>
155       <tollFree>
156         <!-- Note that the definitions of 1800 and 1802 numbers differ in the plan and on the
157              Andorran http://www.sta.ad website, but we consider both to be freephone here. -->
158         <nationalNumberPattern>180[02]\d{4}</nationalNumberPattern>
159         <possibleNumberPattern>\d{8}</possibleNumberPattern>
160         <exampleNumber>18001234</exampleNumber>
161       </tollFree>
162       <!-- The national numbering plan says that numbers beginning with 9 are reserved for special
163            services, so we assume they are premium rate here, although we cannot find examples
164            online. -->
165       <premiumRate>
166         <nationalNumberPattern>9\d{5}</nationalNumberPattern>
167         <possibleNumberPattern>\d{6}</possibleNumberPattern>
168         <exampleNumber>912345</exampleNumber>
169       </premiumRate>
170     </territory>
171
172     <!-- United Arab Emirates -->
173     <territory id="AE" countryCode="971" internationalPrefix="00"
174                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
175       <references>
176         <sourceUrl>http://www.itu.int/oth/T02020000DC/en</sourceUrl>
177       </references>
178       <availableFormats>
179         <numberFormat pattern="([2-4679])(\d{3})(\d{4})">
180           <leadingDigits>[2-4679][2-8]</leadingDigits>
181           <format>$1 $2 $3</format>
182         </numberFormat>
183         <numberFormat pattern="(5[0256])(\d{3})(\d{4})">
184           <leadingDigits>5</leadingDigits>
185           <format>$1 $2 $3</format>
186         </numberFormat>
187         <numberFormat pattern="([479]00)(\d)(\d{5})" nationalPrefixFormattingRule="$FG">
188           <leadingDigits>[479]0</leadingDigits>
189           <format>$1 $2 $3</format>
190         </numberFormat>
191         <numberFormat pattern="([68]00)(\d{2,9})" nationalPrefixFormattingRule="$FG">
192           <leadingDigits>
193             60|
194             8
195           </leadingDigits>
196           <format>$1 $2</format>
197         </numberFormat>
198       </availableFormats>
199       <generalDesc>
200         <nationalNumberPattern>
201           [2-79]\d{7,8}|
202           800\d{2,9}
203         </nationalNumberPattern>
204         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
205       </generalDesc>
206       <fixedLine>
207         <nationalNumberPattern>[2-4679][2-8]\d{6}</nationalNumberPattern>
208         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
209         <exampleNumber>22345678</exampleNumber>
210       </fixedLine>
211       <mobile>
212         <nationalNumberPattern>5[0256]\d{7}</nationalNumberPattern>
213         <possibleNumberPattern>\d{9}</possibleNumberPattern>
214         <exampleNumber>501234567</exampleNumber>
215       </mobile>
216       <tollFree>
217         <nationalNumberPattern>
218           400\d{6}|
219           800\d{2,9}
220         </nationalNumberPattern>
221         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
222         <exampleNumber>800123456</exampleNumber>
223       </tollFree>
224       <premiumRate>
225         <nationalNumberPattern>900[02]\d{5}</nationalNumberPattern>
226         <possibleNumberPattern>\d{9}</possibleNumberPattern>
227         <exampleNumber>900234567</exampleNumber>
228       </premiumRate>
229       <sharedCost>
230         <nationalNumberPattern>700[05]\d{5}</nationalNumberPattern>
231         <possibleNumberPattern>\d{9}</possibleNumberPattern>
232         <exampleNumber>700012345</exampleNumber>
233       </sharedCost>
234       <uan>
235         <nationalNumberPattern>600[25]\d{5}</nationalNumberPattern>
236         <possibleNumberPattern>\d{9}</possibleNumberPattern>
237         <exampleNumber>600212345</exampleNumber>
238       </uan>
239     </territory>
240
241     <!-- Afghanistan -->
242     <territory id="AF" countryCode="93" internationalPrefix="00"
243                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
244       <references>
245         <sourceUrl>http://www.itu.int/oth/T0202000001/en</sourceUrl>
246       </references>
247       <availableFormats>
248         <!-- Formatting based primarily on ITU document. -->
249         <numberFormat pattern="([2-7]\d)(\d{3})(\d{4})">
250           <leadingDigits>
251             [2-6]|
252             7[013-9]
253           </leadingDigits>
254           <format>$1 $2 $3</format>
255         </numberFormat>
256         <!-- Formatting 729 numbers differently based on numbers seen online. -->
257         <numberFormat pattern="(729)(\d{3})(\d{3})">
258           <leadingDigits>729</leadingDigits>
259           <format>$1 $2 $3</format>
260         </numberFormat>
261       </availableFormats>
262       <generalDesc>
263         <nationalNumberPattern>[2-7]\d{8}</nationalNumberPattern>
264         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
265       </generalDesc>
266       <fixedLine>
267         <nationalNumberPattern>
268           (?:
269             [25][0-8]|
270             [34][0-4]|
271             6[0-5]
272           )[2-9]\d{6}
273         </nationalNumberPattern>
274         <exampleNumber>234567890</exampleNumber>
275       </fixedLine>
276       <mobile>
277         <nationalNumberPattern>
278           7(?:
279             [05-9]\d{7}|
280             29\d{6}
281           )
282         </nationalNumberPattern>
283         <possibleNumberPattern>\d{9}</possibleNumberPattern>
284         <exampleNumber>701234567</exampleNumber>
285       </mobile>
286     </territory>
287
288     <!-- Antigua and Barbuda -->
289     <territory id="AG" countryCode="1" leadingDigits="268" nationalPrefix="1"
290                internationalPrefix="011">
291       <references>
292         <sourceUrl>http://www.itu.int/oth/T0202000008/en</sourceUrl>
293       </references>
294       <generalDesc>
295         <!-- NANPA country - uses US formatting rules -->
296         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
297         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
298       </generalDesc>
299       <fixedLine>
300         <!-- 268 468 is not in the plan, but has been added after numbers with this prefix have been
301              found in online searches. -->
302         <nationalNumberPattern>
303           268(?:
304             4(?:
305               6[0-38]|
306               84
307             )|
308             56[0-2]
309           )\d{4}
310         </nationalNumberPattern>
311         <exampleNumber>2684601234</exampleNumber>
312       </fixedLine>
313       <mobile>
314         <!-- 268 776/778/779 are not in the plan, but have been added after numbers with these
315              prefixes have been found in online searches. Same for 268 780/782/784/786. -->
316         <nationalNumberPattern>
317           268(?:
318             464|
319             7(?:
320               2[0-9]|
321               64|
322               7[0-689]|
323               8[02-68]
324             )
325           )\d{4}
326         </nationalNumberPattern>
327         <possibleNumberPattern>\d{10}</possibleNumberPattern>
328         <exampleNumber>2684641234</exampleNumber>
329       </mobile>
330       <pager>
331         <nationalNumberPattern>26840[69]\d{4}</nationalNumberPattern>
332         <possibleNumberPattern>\d{10}</possibleNumberPattern>
333         <exampleNumber>2684061234</exampleNumber>
334       </pager>
335       <tollFree>
336         <nationalNumberPattern>
337           8(?:
338             00|
339             44|
340             55|
341             66|
342             77|
343             88
344           )[2-9]\d{6}
345         </nationalNumberPattern>
346         <possibleNumberPattern>\d{10}</possibleNumberPattern>
347         <exampleNumber>8002123456</exampleNumber>
348       </tollFree>
349       <premiumRate>
350         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
351         <possibleNumberPattern>\d{10}</possibleNumberPattern>
352         <exampleNumber>9002123456</exampleNumber>
353       </premiumRate>
354       <personalNumber>
355         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
356         <nationalNumberPattern>
357           5(?:
358             00|
359             33|
360             44|
361             66|
362             77
363           )[2-9]\d{6}
364         </nationalNumberPattern>
365         <possibleNumberPattern>\d{10}</possibleNumberPattern>
366         <exampleNumber>5002345678</exampleNumber>
367       </personalNumber>
368       <voip>
369         <!-- This is included as Centrex in the plan. -->
370         <nationalNumberPattern>26848[01]\d{4}</nationalNumberPattern>
371         <possibleNumberPattern>\d{10}</possibleNumberPattern>
372         <exampleNumber>2684801234</exampleNumber>
373       </voip>
374     </territory>
375
376     <!-- Anguilla -->
377     <territory id="AI" countryCode="1" leadingDigits="264" nationalPrefix="1"
378                internationalPrefix="011">
379       <references>
380         <sourceUrl>http://www.itu.int/oth/T0202000007/en</sourceUrl>
381       </references>
382       <generalDesc>
383         <!-- NANPA country - uses US formatting rules -->
384         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
385         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
386       </generalDesc>
387       <fixedLine>
388         <nationalNumberPattern>
389           2644(?:
390             6[12]|
391             9[78]
392           )\d{4}
393         </nationalNumberPattern>
394         <exampleNumber>2644612345</exampleNumber>
395       </fixedLine>
396       <mobile>
397         <nationalNumberPattern>
398           264(?:
399             235|
400             476|
401             5(?:
402               3[6-9]|
403               8[1-4]
404             )|
405             7(?:
406               29|
407               72
408             )
409           )\d{4}
410         </nationalNumberPattern>
411         <possibleNumberPattern>\d{10}</possibleNumberPattern>
412         <exampleNumber>2642351234</exampleNumber>
413       </mobile>
414       <tollFree>
415         <nationalNumberPattern>
416           8(?:
417             00|
418             44|
419             55|
420             66|
421             77|
422             88
423           )[2-9]\d{6}
424         </nationalNumberPattern>
425         <possibleNumberPattern>\d{10}</possibleNumberPattern>
426         <exampleNumber>8002123456</exampleNumber>
427       </tollFree>
428       <premiumRate>
429         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
430         <possibleNumberPattern>\d{10}</possibleNumberPattern>
431         <exampleNumber>9002123456</exampleNumber>
432       </premiumRate>
433       <personalNumber>
434         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
435         <nationalNumberPattern>
436           5(?:
437             00|
438             33|
439             44|
440             66|
441             77
442           )[2-9]\d{6}
443         </nationalNumberPattern>
444         <possibleNumberPattern>\d{10}</possibleNumberPattern>
445         <exampleNumber>5002345678</exampleNumber>
446       </personalNumber>
447     </territory>
448
449     <!-- Albania -->
450     <territory id="AL" countryCode="355" internationalPrefix="00"
451                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
452                mobileNumberPortableRegion="true">
453       <references>
454         <sourceUrl>http://www.itu.int/oth/T0202000002/en</sourceUrl>
455       </references>
456       <availableFormats>
457         <!-- Formats mostly follow http://tirana.usembassy.gov/list_of_doctors.html -->
458         <numberFormat pattern="(4)(\d{3})(\d{4})">
459           <leadingDigits>4[0-6]</leadingDigits>
460           <format>$1 $2 $3</format>
461         </numberFormat>
462         <numberFormat pattern="(6[6-9])(\d{3})(\d{4})">
463           <leadingDigits>6</leadingDigits>
464           <format>$1 $2 $3</format>
465         </numberFormat>
466         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
467           <leadingDigits>
468             [2358][2-5]|
469             4[7-9]
470           </leadingDigits>
471           <format>$1 $2 $3</format>
472         </numberFormat>
473         <numberFormat pattern="(\d{3})(\d{3,5})">
474           <leadingDigits>
475             [235][16-9]|
476             8[016-9]|
477             [79]
478           </leadingDigits>
479           <format>$1 $2</format>
480         </numberFormat>
481       </availableFormats>
482       <generalDesc>
483         <nationalNumberPattern>
484           [2-57]\d{7}|
485           6\d{8}|
486           8\d{5,7}|
487           9\d{5}
488         </nationalNumberPattern>
489         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
490       </generalDesc>
491       <fixedLine>
492         <nationalNumberPattern>
493           (?:
494             2(?:
495               [168][1-9]|
496               [247]\d|
497               9[1-7]
498             )|
499             3(?:
500               1[1-3]|
501               [2-6]\d|
502               [79][1-8]|
503               8[1-9]
504             )|
505             4\d{2}|
506             5(?:
507               1[1-4]|
508               [2-578]\d|
509               6[1-5]|
510               9[1-7]
511             )|
512             8(?:
513               [19][1-5]|
514               [2-6]\d|
515               [78][1-7]
516             )
517           )\d{5}
518         </nationalNumberPattern>
519         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
520         <exampleNumber>22345678</exampleNumber>
521       </fixedLine>
522       <mobile>
523         <nationalNumberPattern>6[6-9]\d{7}</nationalNumberPattern>
524         <possibleNumberPattern>\d{9}</possibleNumberPattern>
525         <exampleNumber>661234567</exampleNumber>
526       </mobile>
527       <tollFree>
528         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
529         <possibleNumberPattern>\d{7}</possibleNumberPattern>
530         <exampleNumber>8001234</exampleNumber>
531       </tollFree>
532       <premiumRate>
533         <!-- It is named "Shared Revenue Services" in the plan, but as there is a separate "Shared
534              Cost Services", it is highly likely these numbers are premium rate numbers. No
535              information/example is found in the Internet. -->
536         <nationalNumberPattern>900\d{3}</nationalNumberPattern>
537         <possibleNumberPattern>\d{6}</possibleNumberPattern>
538         <exampleNumber>900123</exampleNumber>
539       </premiumRate>
540       <sharedCost>
541         <nationalNumberPattern>808\d{3}</nationalNumberPattern>
542         <possibleNumberPattern>\d{6}</possibleNumberPattern>
543         <exampleNumber>808123</exampleNumber>
544       </sharedCost>
545       <personalNumber>
546         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
547         <possibleNumberPattern>\d{8}</possibleNumberPattern>
548         <exampleNumber>70012345</exampleNumber>
549       </personalNumber>
550     </territory>
551
552     <!-- Armenia -->
553     <!-- We think the national dialling prefix is 0 - it seems this was a change in 2005 (or 2008)
554          along with the new city codes. However, their official document makes no mention of it,
555          websites disagree, and we are not sure if the change has actually been made. -->
556     <territory id="AM" countryCode="374" internationalPrefix="00"
557                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
558                mobileNumberPortableRegion="true" >
559       <references>
560         <sourceUrl>http://www.itu.int/oth/T020200000A/en</sourceUrl>
561         <sourceUrl>http://en.wikipedia.org/wiki/%2B374</sourceUrl>
562         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nagorno-Karabakh_Republic</sourceUrl>
563       </references>
564       <availableFormats>
565         <numberFormat pattern="(\d{2})(\d{6})">
566           <leadingDigits>
567             1|
568             47
569           </leadingDigits>
570           <format>$1 $2</format>
571         </numberFormat>
572         <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
573           <leadingDigits>
574             4[139]|
575             [5-7]|
576             9[1-9]
577           </leadingDigits>
578           <format>$1 $2</format>
579         </numberFormat>
580         <numberFormat pattern="(\d{3})(\d{5})">
581           <leadingDigits>[23]</leadingDigits>
582           <format>$1 $2</format>
583         </numberFormat>
584         <numberFormat pattern="(\d{3})(\d{2})(\d{3})" nationalPrefixFormattingRule="$NP $FG">
585           <leadingDigits>
586             8|
587             90
588           </leadingDigits>
589           <format>$1 $2 $3</format>
590         </numberFormat>
591       </availableFormats>
592       <generalDesc>
593         <nationalNumberPattern>[1-9]\d{7}</nationalNumberPattern>
594         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
595       </generalDesc>
596       <fixedLine>
597         <!-- Includes telephone numbers in Nagorno-Karabakh Republic, physically located inside
598              Azerbaijan, which use prefix 47. -->
599         <nationalNumberPattern>
600           (?:
601             1[01]\d|
602             2(?:
603               2[2-46]|
604               3[1-8]|
605               4[2-69]|
606               5[2-7]|
607               6[1-9]|
608               8[1-7]
609             )|
610             3[12]2|
611             47\d
612           )\d{5}
613         </nationalNumberPattern>
614         <exampleNumber>10123456</exampleNumber>
615       </fixedLine>
616       <mobile>
617         <!-- Part of the range 97 is used by Nagorno-Karabakh Republic. -->
618         <nationalNumberPattern>
619           (?:
620             4[139]|
621             55|
622             77|
623             9[1-9]
624           )\d{6}
625         </nationalNumberPattern>
626         <possibleNumberPattern>\d{8}</possibleNumberPattern>
627         <exampleNumber>77123456</exampleNumber>
628       </mobile>
629       <tollFree>
630         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
631         <possibleNumberPattern>\d{8}</possibleNumberPattern>
632         <exampleNumber>80012345</exampleNumber>
633       </tollFree>
634       <premiumRate>
635         <nationalNumberPattern>90[016]\d{5}</nationalNumberPattern>
636         <possibleNumberPattern>\d{8}</possibleNumberPattern>
637         <exampleNumber>90012345</exampleNumber>
638       </premiumRate>
639       <sharedCost>
640         <nationalNumberPattern>80[1-4]\d{5}</nationalNumberPattern>
641         <possibleNumberPattern>\d{8}</possibleNumberPattern>
642         <exampleNumber>80112345</exampleNumber>
643       </sharedCost>
644       <voip>
645         <nationalNumberPattern>60[2-6]\d{5}</nationalNumberPattern>
646         <possibleNumberPattern>\d{8}</possibleNumberPattern>
647         <exampleNumber>60271234</exampleNumber>
648       </voip>
649     </territory>
650
651     <!-- Angola -->
652     <territory id="AO" countryCode="244" internationalPrefix="00">
653       <references>
654         <sourceUrl>http://www.itu.int/oth/T0202000006/en</sourceUrl>
655       </references>
656       <availableFormats>
657         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
658           <format>$1 $2 $3</format>
659         </numberFormat>
660       </availableFormats>
661       <generalDesc>
662         <nationalNumberPattern>[29]\d{8}</nationalNumberPattern>
663         <possibleNumberPattern>\d{9}</possibleNumberPattern>
664       </generalDesc>
665       <fixedLine>
666         <nationalNumberPattern>
667           2\d(?:
668             [26-9]\d|
669             \d[26-9]
670           )\d{5}
671         </nationalNumberPattern>
672         <exampleNumber>222123456</exampleNumber>
673       </fixedLine>
674       <mobile>
675         <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel
676              apparently launched the prefix 94 on 25th April 2012, and Movicel has 99. -->
677         <nationalNumberPattern>9[1-49]\d{7}</nationalNumberPattern>
678         <exampleNumber>923123456</exampleNumber>
679       </mobile>
680     </territory>
681
682     <!-- Argentina -->
683     <!-- The national prefix for parsing here consists of a 0 (optional), followed by the area code
684          (which is captured, so that it can be retained), followed by 15, which is the mobile token,
685          which will be stripped if present. We expect the following combinations: 0AC15 and AC15
686          (where the 0 and 15 will be stripped, and it will be transformed into 9AC), 0, and 15 (in
687          the latter two cases we just strip the 0 or 15 as appropriate and leave the number as is.)
688          -->
689     <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
690        nationalPrefixForParsing="
691          0?(?:
692            (11|
693             2(?:
694               2(?:
695                 02?|
696                 [13]|
697                 2[13-79]|
698                 4[1-6]|
699                 5[2457]|
700                 6[124-8]|
701                 7[1-4]|
702                 8[13-6]|
703                 9[1267]
704               )|
705               3(?:
706                 02?|
707                 1[467]|
708                 2[03-6]|
709                 3[13-8]|
710                 [49][2-6]|
711                 5[2-8]|
712                 [67]
713               )|
714               4(?:
715                 7[3-578]|
716                 9
717               )|
718               6(?:
719                 [0136]|
720                 2[24-6]|
721                 4[6-8]?|
722                 5[15-8]
723               )|
724               80|
725               9(?:
726                 0[1-3]|
727                 [19]|
728                 2\d|
729                 3[1-6]|
730                 4[02568]?|
731                 5[2-4]|
732                 6[2-46]|
733                 72?|
734                 8[23]?
735               )
736            )|
737            3(?:
738              3(?:
739                2[79]|
740                6|
741                8[2578]
742              )|
743              4(?:
744                0[124-9]|
745                [12]|
746                3[5-8]?|
747                4[24-7]|
748                5[4-68]?|
749                6[02-9]|
750                7[126]|
751                8[2379]?|
752                9[1-36-8]
753              )|
754              5(?:
755                1|
756                2[1245]|
757                3[237]?|
758                4[1-46-9]|
759                6[2-4]|
760                7[1-6]|
761                8[2-5]?
762              )|
763              6[24]|
764              7(?:
765                1[1568]|
766                2[15]|
767                3[145]|
768                4[13]|
769                5[14-8]|
770                [069]|
771                7[2-57]|
772                8[126]
773              )|
774              8(?:
775                [01]|
776                2[15-7]|
777                3[2578]?|
778                4[13-6]|
779                5[4-8]?|
780                6[1-357-9]|
781                7[36-8]?|
782                8[5-8]?|
783                9[124]
784              )
785            )
786          )?15
787        )?"
788        nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG"
789        mobileNumberPortableRegion="true">
790       <references>
791         <sourceUrl>http://www.itu.int/oth/T0202000009/en</sourceUrl>
792         <!-- On the following link, click on Indicativos Interurbanos to access detailed
793              information. -->
794         <sourceUrl>http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp</sourceUrl>
795         <sourceUrl>http://en.wikipedia.org/wiki/+54</sourceUrl>
796       </references>
797       <availableFormats>
798         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
799           <leadingDigits>[68]</leadingDigits>
800           <format>$1-$2-$3</format>
801         </numberFormat>
802         <!-- Format local numbers in two groups. The leading digits are 2-9 since the ITU document
803              says that the digit zero and one will not be present at the start of the subscriber
804              number (which starts with an "Exchange characteristic"). -->
805         <numberFormat pattern="(\d{2})(\d{4})" nationalPrefixFormattingRule="$FG">
806           <leadingDigits>[2-9]</leadingDigits>
807           <format>$1-$2</format>
808           <intlFormat>NA</intlFormat>
809         </numberFormat>
810         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
811           <leadingDigits>[2-9]</leadingDigits>
812           <format>$1-$2</format>
813           <intlFormat>NA</intlFormat>
814         </numberFormat>
815         <numberFormat pattern="(\d{4})(\d{4})" nationalPrefixFormattingRule="$FG">
816           <leadingDigits>[2-9]</leadingDigits>
817           <format>$1-$2</format>
818           <intlFormat>NA</intlFormat>
819         </numberFormat>
820         <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
821           <leadingDigits>911</leadingDigits>
822           <format>$2 15-$3-$4</format>
823           <intlFormat>$1 $2 $3-$4</intlFormat>
824         </numberFormat>
825         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
826           <!-- Some 4-digit area codes actually are caught by this rule. Preference is given however
827                to the 3-digit area codes, since they are considerably larger communities. -->
828           <leadingDigits>
829             9(?:
830               2[234689]|
831               3[3-8]
832             )
833           </leadingDigits>
834           <leadingDigits>
835             9(?:
836               2(?:
837                 2[013]|
838                 3[067]|
839                 49|
840                 6[01346]|
841                 80|
842                 9[147-9]
843               )|
844               3(?:
845                 36|
846                 4[12358]|
847                 5[138]|
848                 6[24]|
849                 7[069]|
850                 8[013578]
851               )
852             )
853           </leadingDigits>
854           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948,
855                298[23], and several 38[3578]X four-digit area codes. -->
856           <leadingDigits>
857             9(?:
858               2(?:
859                 2[013]|
860                 3[067]|
861                 49|
862                 6[01346]|
863                 80|
864                 9(?:
865                   [179]|
866                   4[13479]|
867                   8[014-9]
868                 )
869               )|
870               3(?:
871                 36|
872                 4[12358]|
873                 5(?:
874                   [18]|
875                   3[014-689]
876                 )|
877                 6[24]|
878                 7[069]|
879                 8(?:
880                   [01]|
881                   3[013469]|
882                   5[0-39]|
883                   7[0-2459]|
884                   8[0-49]
885                 )
886               )
887             )
888           </leadingDigits>
889           <format>$2 15-$3-$4</format>
890           <intlFormat>$1 $2 $3-$4</intlFormat>
891         </numberFormat>
892         <!-- Both 4-3-3 and 4-2-4 have been seen online; we prefer the latter since it matches the
893              Argentinian ITU doc and wikipedia. -->
894         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
895           <leadingDigits>9[23]</leadingDigits>
896           <format>$2 15-$3-$4</format>
897           <intlFormat>$1 $2 $3-$4</intlFormat>
898         </numberFormat>
899         <numberFormat pattern="(11)(\d{4})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
900           <leadingDigits>1</leadingDigits>
901           <format>$1 $2-$3</format>
902         </numberFormat>
903         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
904         <numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
905           <leadingDigits>
906             2(?:
907               2[013]|
908               3[067]|
909               49|
910               6[01346]|
911               80|
912               9[147-9]
913             )|
914             3(?:
915               36|
916               4[12358]|
917               5[138]|
918               6[24]|
919               7[069]|
920               8[013578]
921             )
922           </leadingDigits>
923           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948,
924                298[23], and several 38[3578]X four-digit area codes. -->
925           <leadingDigits>
926             2(?:
927               2[013]|
928               3[067]|
929               49|
930               6[01346]|
931               80|
932               9(?:
933                 [179]|
934                 4[13479]|
935                 8[014-9]
936               )
937             )|
938             3(?:
939               36|
940               4[12358]|
941               5(?:
942                 [18]|
943                 3[0-689]
944               )|
945               6[24]|
946               7[069]|
947               8(?:
948                 [01]|
949                 3[013469]|
950                 5[0-39]|
951                 7[0-2459]|
952                 8[0-49]
953               )
954             )
955           </leadingDigits>
956           <format>$1 $2-$3</format>
957         </numberFormat>
958         <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
959           <leadingDigits>[23]</leadingDigits>
960           <format>$1 $2-$3</format>
961         </numberFormat>
962         <!-- Format short numbers as a block. -->
963         <numberFormat pattern="(\d{3})" nationalPrefixFormattingRule="$FG">
964           <leadingDigits>
965             1[012]|
966             911
967           </leadingDigits>
968           <format>$1</format>
969           <intlFormat>NA</intlFormat>
970         </numberFormat>
971       </availableFormats>
972       <generalDesc>
973         <!-- We restrict the second digit after 1 here so we can recognise and strip the 15 mobile
974            carrier prefix when we see it. -->
975         <nationalNumberPattern>
976           11\d{8}|
977           [2368]\d{9}|
978           9\d{10}
979         </nationalNumberPattern>
980         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
981       </generalDesc>
982       <noInternationalDialling>
983         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
984         <possibleNumberPattern>\d{10}</possibleNumberPattern>
985         <exampleNumber>8101234567</exampleNumber>
986       </noInternationalDialling>
987       <fixedLine>
988         <!-- Also covering fixed satellite service numbers (670). -->
989         <nationalNumberPattern>
990           11\d{8}|
991           (?:
992             2(?:
993               2(?:
994                 [013]\d|
995                 2[13-79]|
996                 4[1-6]|
997                 5[2457]|
998                 6[124-8]|
999                 7[1-4]|
1000                 8[13-6]|
1001                 9[1267]
1002               )|
1003               3(?:
1004                 1[467]|
1005                 2[03-6]|
1006                 3[13-8]|
1007                 [49][2-6]|
1008                 5[2-8]|
1009                 [067]\d
1010               )|
1011               4(?:
1012                 7[3-8]|
1013                 9\d
1014               )|
1015               6(?:
1016                 [01346]\d|
1017                 2[24-6]|
1018                 5[15-8]
1019               )|
1020               80\d|
1021               9(?:
1022                 [0124789]\d|
1023                 3[1-6]|
1024                 5[234]|
1025                 6[2-46]
1026               )
1027             )|
1028             3(?:
1029               3(?:
1030                 2[79]|
1031                 6\d|
1032                 8[2578]
1033               )|
1034               4(?:
1035                 [78]\d|
1036                 0[0124-9]|
1037                 [1-35]\d|
1038                 4[24-7]|
1039                 6[02-9]|
1040                 9[123678]
1041               )|
1042               5(?:
1043                 [138]\d|
1044                 2[1245]|
1045                 4[1-9]|
1046                 6[2-4]|
1047                 7[1-6]
1048               )|
1049               6[24]\d|
1050               7(?:
1051                 [0469]\d|
1052                 1[1568]|
1053                 2[013-9]|
1054                 3[145]|
1055                 5[14-8]|
1056                 7[2-57]|
1057                 8[0-24-9]
1058               )|
1059               8(?:
1060                 [013578]\d|
1061                 2[15-7]|
1062                 4[13-6]|
1063                 6[1-357-9]|
1064                 9[124]
1065               )
1066             )|
1067             670\d
1068           )\d{6}
1069         </nationalNumberPattern>
1070         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1071         <exampleNumber>1123456789</exampleNumber>
1072       </fixedLine>
1073       <mobile>
1074         <!-- Also covers mobile satellite services (675 numbers). -->
1075         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
1076              area code is in the range 2-9. The four-digit area-code checking is done in detail if
1077              we attempt to strip the caller-pays token (15) from the number. -->
1078         <nationalNumberPattern>
1079           675\d{7}|
1080           9(?:
1081             11[2-9]\d{7}|
1082             (?:
1083               2(?:
1084                 2[013]|
1085                 3[067]|
1086                 49|
1087                 6[01346]|
1088                 80|
1089                 9[147-9]
1090               )|
1091               3(?:
1092                 36|
1093                 4[12358]|
1094                 5[138]|
1095                 6[24]|
1096                 7[069]|
1097                 8[013578]
1098               )
1099             )[2-9]\d{6}|
1100             \d{4}[2-9]\d{5}
1101           )
1102         </nationalNumberPattern>
1103         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1104         <exampleNumber>91123456789</exampleNumber>
1105       </mobile>
1106       <tollFree>
1107         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
1108         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1109         <exampleNumber>8001234567</exampleNumber>
1110       </tollFree>
1111       <premiumRate>
1112         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
1113         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1114         <exampleNumber>6001234567</exampleNumber>
1115       </premiumRate>
1116       <uan>
1117         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1118         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1119         <exampleNumber>8101234567</exampleNumber>
1120       </uan>
1121     </territory>
1122
1123     <!-- American Samoa -->
1124     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
1125                internationalPrefix="011">
1126       <references>
1127         <sourceUrl>http://www.itu.int/oth/T0202000004/en</sourceUrl>
1128       </references>
1129       <generalDesc>
1130         <!-- NANPA country - uses US formatting rules -->
1131         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
1132         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1133       </generalDesc>
1134       <fixedLine>
1135         <nationalNumberPattern>
1136           6846(?:
1137             22|
1138             33|
1139             44|
1140             55|
1141             77|
1142             88|
1143             9[19]
1144           )\d{4}
1145         </nationalNumberPattern>
1146         <exampleNumber>6846221234</exampleNumber>
1147       </fixedLine>
1148       <mobile>
1149         <!-- Added 25[246], operated from Blue Sky. Added 731, 770, operated by ASTCA. -->
1150         <nationalNumberPattern>
1151           684(?:
1152             25[2468]|
1153             7(?:
1154               3[13]|
1155               70
1156             )
1157           )\d{4}
1158         </nationalNumberPattern>
1159         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1160         <exampleNumber>6847331234</exampleNumber>
1161       </mobile>
1162       <tollFree>
1163         <nationalNumberPattern>
1164           8(?:
1165             00|
1166             44|
1167             55|
1168             66|
1169             77|
1170             88
1171           )[2-9]\d{6}
1172         </nationalNumberPattern>
1173         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1174         <exampleNumber>8002123456</exampleNumber>
1175       </tollFree>
1176       <premiumRate>
1177         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1178         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1179         <exampleNumber>9002123456</exampleNumber>
1180       </premiumRate>
1181       <personalNumber>
1182         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1183         <nationalNumberPattern>
1184           5(?:
1185             00|
1186             33|
1187             44|
1188             66|
1189             77
1190           )[2-9]\d{6}
1191         </nationalNumberPattern>
1192         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1193         <exampleNumber>5002345678</exampleNumber>
1194       </personalNumber>
1195     </territory>
1196
1197     <!-- Austria -->
1198     <territory id="AT" countryCode="43" internationalPrefix="00"
1199                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1200                mobileNumberPortableRegion="true">
1201       <references>
1202         <sourceUrl>http://www.rtr.at/en/tk/E129</sourceUrl>
1203       </references>
1204       <availableFormats>
1205         <numberFormat pattern="(1)(\d{3,12})">
1206           <leadingDigits>1</leadingDigits>
1207           <format>$1 $2</format>
1208         </numberFormat>
1209         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
1210              found on Austrian web pages. -->
1211         <numberFormat pattern="(5\d)(\d{3,5})">
1212           <leadingDigits>5[079]</leadingDigits>
1213           <format>$1 $2</format>
1214         </numberFormat>
1215         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
1216           <leadingDigits>5[079]</leadingDigits>
1217           <format>$1 $2 $3</format>
1218         </numberFormat>
1219         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
1220           <leadingDigits>5[079]</leadingDigits>
1221           <format>$1 $2 $3</format>
1222         </numberFormat>
1223         <numberFormat pattern="(\d{3})(\d{3,10})">
1224           <leadingDigits>
1225             316|
1226             46|
1227             51|
1228             732|
1229             6(?:
1230               44|
1231               5[0-3579]|
1232               [6-9]
1233             )|
1234             7(?:
1235               1|
1236               [28]0
1237             )|
1238             [89]
1239           </leadingDigits>
1240           <format>$1 $2</format>
1241         </numberFormat>
1242         <numberFormat pattern="(\d{4})(\d{3,9})">
1243           <leadingDigits>
1244             2|
1245             3(?:
1246               1[1-578]|
1247               [3-8]
1248             )|
1249             4[2378]|
1250             5[2-6]|
1251             6(?:
1252               [12]|
1253               4[1-35-9]|
1254               5[468]
1255             )|
1256             7(?:
1257               2[1-8]|
1258               35|
1259               4[1-8]|
1260               [5-79]
1261             )
1262           </leadingDigits>
1263             <format>$1 $2</format>
1264           </numberFormat>
1265       </availableFormats>
1266       <generalDesc>
1267         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
1268         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
1269       </generalDesc>
1270       <fixedLine>
1271         <!-- Note that the full area code is not validated - just the first 3 digits. This also
1272              means that even though for most Austrian numbers the minimum length is 7, we allow 6
1273              since we don't differentiate below between 3 and 4 digit area codes for reasons of
1274              efficiency. -->
1275         <nationalNumberPattern>
1276           1\d{3,12}|
1277           (?:
1278             2(?:
1279               1[467]|
1280               2[13-8]|
1281               5[2357]|
1282               6[1-46-8]|
1283               7[1-8]|
1284               8[124-7]|
1285               9[1458]
1286             )|
1287             3(?:
1288               1[1-8]|
1289               3[23568]|
1290               4[5-7]|
1291               5[1378]|
1292               6[1-38]|
1293               8[3-68]
1294             )|
1295             4(?:
1296               2[1-8]|
1297               35|
1298               63|
1299               7[1368]|
1300               8[2457]
1301             )|
1302             5(?:
1303               12|
1304               2[1-8]|
1305               3[357]|
1306               4[147]|
1307               5[12578]|
1308               6[37]
1309             )|
1310             6(?:
1311               13|
1312               2[1-47]|
1313               4[1-35-8]|
1314               5[468]|
1315               62
1316             )|
1317             7(?:
1318               2[1-8]|
1319               3[25]|
1320               4[13478]|
1321               5[68]|
1322               6[16-8]|
1323               7[1-6]|
1324               9[45]
1325             )
1326           )\d{3,10}
1327         </nationalNumberPattern>
1328         <exampleNumber>1234567890</exampleNumber>
1329       </fixedLine>
1330       <mobile>
1331         <nationalNumberPattern>
1332           6(?:
1333             44|
1334             5[0-3579]|
1335             6[013-9]|
1336             [7-9]\d
1337           )\d{4,10}
1338         </nationalNumberPattern>
1339         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
1340         <exampleNumber>644123456</exampleNumber>
1341       </mobile>
1342       <tollFree>
1343         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
1344         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1345         <exampleNumber>800123456</exampleNumber>
1346       </tollFree>
1347       <premiumRate>
1348         <nationalNumberPattern>
1349           (?:
1350             711|
1351             9(?:
1352               0[01]|
1353               3[019]
1354             )
1355           )\d{6,10}
1356         </nationalNumberPattern>
1357         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1358         <exampleNumber>900123456</exampleNumber>
1359       </premiumRate>
1360       <sharedCost>
1361         <nationalNumberPattern>
1362           8(?:
1363             10|
1364             2[018]
1365           )\d{6,10}
1366         </nationalNumberPattern>
1367         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1368         <exampleNumber>810123456</exampleNumber>
1369       </sharedCost>
1370       <voip>
1371         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
1372         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1373         <exampleNumber>780123456</exampleNumber>
1374       </voip>
1375       <uan>
1376         <nationalNumberPattern>
1377           5(?:
1378             (?:
1379               0[1-9]|
1380               17
1381             )\d{2,10}|
1382             [79]\d{3,11}
1383           )|
1384           720\d{6,10}
1385         </nationalNumberPattern>
1386         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
1387         <exampleNumber>50123</exampleNumber>
1388       </uan>
1389     </territory>
1390
1391     <!-- Australia -->
1392     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
1393     <territory id="AU" countryCode="61" mainCountryForCode="true"
1394                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
1395                preferredInternationalPrefix="0011" nationalPrefix="0"
1396                mobileNumberPortableRegion="true">
1397       <references>
1398         <sourceUrl>http://www.itu.int/oth/T020200000D/en</sourceUrl>
1399         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
1400       </references>
1401       <availableFormats>
1402         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
1403           pattern="([2378])(\d{4})(\d{4})">
1404           <leadingDigits>[2378]</leadingDigits>
1405           <format>$1 $2 $3</format>
1406         </numberFormat>
1407         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1408           pattern="(\d{3})(\d{3})(\d{3})">
1409           <leadingDigits>
1410             [45]|
1411             14
1412           </leadingDigits>
1413           <format>$1 $2 $3</format>
1414         </numberFormat>
1415         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1416           pattern="(16)(\d{3})(\d{2,4})">
1417           <leadingDigits>16</leadingDigits>
1418           <format>$1 $2 $3</format>
1419         </numberFormat>
1420         <numberFormat nationalPrefixFormattingRule="$FG"
1421           pattern="(1[389]\d{2})(\d{3})(\d{3})">
1422           <leadingDigits>
1423             1(?:
1424               [38]0|
1425               90
1426             )
1427           </leadingDigits>
1428           <leadingDigits>
1429             1(?:
1430               [38]00|
1431               90
1432             )
1433           </leadingDigits>
1434           <format>$1 $2 $3</format>
1435         </numberFormat>
1436         <numberFormat nationalPrefixFormattingRule="$FG"
1437           pattern="(180)(2\d{3})">
1438           <leadingDigits>180</leadingDigits>
1439           <leadingDigits>1802</leadingDigits>
1440           <format>$1 $2</format>
1441         </numberFormat>
1442         <numberFormat nationalPrefixFormattingRule="$FG"
1443           pattern="(19\d)(\d{3})">
1444           <leadingDigits>19[13]</leadingDigits>
1445           <format>$1 $2</format>
1446         </numberFormat>
1447         <numberFormat nationalPrefixFormattingRule="$FG"
1448           pattern="(19\d{2})(\d{4})">
1449           <leadingDigits>19[67]</leadingDigits>
1450           <format>$1 $2</format>
1451         </numberFormat>
1452         <numberFormat nationalPrefixFormattingRule="$FG"
1453           pattern="(13)(\d{2})(\d{2})">
1454           <leadingDigits>13[1-9]</leadingDigits>
1455           <format>$1 $2 $3</format>
1456         </numberFormat>
1457       </availableFormats>
1458       <generalDesc>
1459         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
1460         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1461       </generalDesc>
1462       <noInternationalDialling>
1463         <nationalNumberPattern>
1464           1(?:
1465             3(?:
1466               \d{4}|
1467               00\d{6}
1468             )|
1469             80(?:
1470               0\d{6}|
1471               2\d{3}
1472             )
1473           )
1474         </nationalNumberPattern>
1475         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1476         <exampleNumber>1300123456</exampleNumber>
1477       </noInternationalDialling>
1478       <fixedLine>
1479         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
1480         <nationalNumberPattern>
1481           [237]\d{8}|
1482           8(?:
1483             [68]\d{3}|
1484             7[0-69]\d{2}|
1485             9(?:
1486               [02-9]\d{2}|
1487               1(?:
1488                 [0-57-9]\d|
1489                 6[0135-9]
1490               )
1491             )
1492           )\d{4}
1493         </nationalNumberPattern>
1494         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1495         <exampleNumber>212345678</exampleNumber>
1496       </fixedLine>
1497       <mobile>
1498         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
1499              other ranges 14[1-3] are not currently used. Note CC and CX should be updated as well
1500              if this pattern changes. -->
1501         <nationalNumberPattern>
1502           14(?:
1503             5\d|
1504             71
1505           )\d{5}|
1506           4(?:
1507             [0-2]\d|
1508             3[0-57-9]|
1509             4[47-9]|
1510             5[0-25-9]|
1511             6[6-9]|
1512             7[03-9]|
1513             8[17-9]|
1514             9[017-9]
1515           )\d{6}
1516         </nationalNumberPattern>
1517         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1518         <exampleNumber>412345678</exampleNumber>
1519       </mobile>
1520       <pager>
1521         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
1522         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
1523         <exampleNumber>1612345</exampleNumber>
1524       </pager>
1525       <tollFree>
1526         <nationalNumberPattern>
1527           180(?:
1528             0\d{3}|
1529             2
1530           )\d{3}
1531         </nationalNumberPattern>
1532         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1533         <exampleNumber>1800123456</exampleNumber>
1534       </tollFree>
1535       <premiumRate>
1536         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
1537         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1538         <exampleNumber>1900123456</exampleNumber>
1539       </premiumRate>
1540       <sharedCost>
1541       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
1542            although they charge a small local call connect fee (around 25c). These start with 13
1543            or 1300. -->
1544         <nationalNumberPattern>
1545           13(?:
1546             00\d{2}
1547           )?\d{4}
1548         </nationalNumberPattern>
1549         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1550         <exampleNumber>1300123456</exampleNumber>
1551       </sharedCost>
1552       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
1553            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
1554            from 0500000000 to 0590000000) -->
1555       <personalNumber>
1556         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
1557         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1558         <exampleNumber>500123456</exampleNumber>
1559       </personalNumber>
1560       <voip>
1561         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
1562         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1563         <exampleNumber>550123456</exampleNumber>
1564       </voip>
1565     </territory>
1566
1567     <!-- Aruba -->
1568     <territory id="AW" countryCode="297" internationalPrefix="00">
1569       <references>
1570         <sourceUrl>http://www.itu.int/oth/T020200000B/en</sourceUrl>
1571       </references>
1572       <availableFormats>
1573         <numberFormat pattern="(\d{3})(\d{4})">
1574           <format>$1 $2</format>
1575         </numberFormat>
1576       </availableFormats>
1577       <generalDesc>
1578         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
1579         <possibleNumberPattern>\d{7}</possibleNumberPattern>
1580       </generalDesc>
1581       <fixedLine>
1582         <nationalNumberPattern>
1583           5(?:
1584             2\d|
1585             8[1-9]
1586           )\d{4}
1587         </nationalNumberPattern>
1588         <exampleNumber>5212345</exampleNumber>
1589       </fixedLine>
1590       <mobile>
1591         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
1592              numbers found online. -->
1593         <nationalNumberPattern>
1594           (?:
1595             5(?:
1596               6\d|
1597               9[2-478]
1598             )|
1599             6(?:
1600               [039]0|
1601               22|
1602               4[01]|
1603               6[0-2]
1604             )|
1605             7[34]\d|
1606             9(?:
1607               6[45]|
1608               9[4-8]
1609             )
1610           )\d{4}
1611         </nationalNumberPattern>
1612         <exampleNumber>5601234</exampleNumber>
1613       </mobile>
1614       <tollFree>
1615         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
1616         <exampleNumber>8001234</exampleNumber>
1617       </tollFree>
1618       <premiumRate>
1619         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
1620         <exampleNumber>9001234</exampleNumber>
1621       </premiumRate>
1622       <voip>
1623         <nationalNumberPattern>
1624           28\d{5}|
1625           501\d{4}
1626         </nationalNumberPattern>
1627         <exampleNumber>5011234</exampleNumber>
1628       </voip>
1629     </territory>
1630
1631     <!-- Ã…land Islands. -->
1632     <!-- Metadata shared with Finland. -->
1633     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
1634                nationalPrefixFormattingRule="$NP$FG">
1635       <references>
1636         <sourceUrl>http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html</sourceUrl>
1637       </references>
1638       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
1639       <generalDesc>
1640         <nationalNumberPattern>
1641           [135]\d{5,9}|
1642           [27]\d{4,9}|
1643           4\d{5,10}|
1644           6\d{7,8}|
1645           8\d{6,9}
1646         </nationalNumberPattern>
1647         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
1648       </generalDesc>
1649       <noInternationalDialling>
1650         <!-- According to the national numbering plan, service numbers are in general not accessible
1651              from abroad, although 600/700/800 numbers may be. -->
1652         <nationalNumberPattern>
1653           [13]00\d{3,7}|
1654           2(?:
1655             0(?:
1656               0\d{3,7}|
1657               2[023]\d{1,6}|
1658               9[89]\d{1,6}
1659             )
1660           )|
1661           60(?:
1662             [12]\d{5,6}|
1663             6\d{7}
1664           )|
1665           7(?:
1666             1\d{7}|
1667             3\d{8}|
1668             5[03-9]\d{2,7}
1669           )
1670         </nationalNumberPattern>
1671         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1672         <exampleNumber>100123</exampleNumber>
1673       </noInternationalDialling>
1674       <fixedLine>
1675         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
1676         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
1677         <exampleNumber>1812345678</exampleNumber>
1678       </fixedLine>
1679       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
1680       <mobile>
1681         <nationalNumberPattern>
1682           4\d{5,10}|
1683           50\d{4,8}
1684         </nationalNumberPattern>
1685         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1686         <exampleNumber>412345678</exampleNumber>
1687       </mobile>
1688       <tollFree>
1689         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
1690         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1691         <exampleNumber>8001234567</exampleNumber>
1692       </tollFree>
1693       <premiumRate>
1694         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
1695         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1696         <exampleNumber>600123456</exampleNumber>
1697       </premiumRate>
1698       <uan>
1699         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
1700              assigned to institutions such as universities, the national post, etc, where they are
1701              not otherwise classified as toll-free or premium-rate numbers. -->
1702         <nationalNumberPattern>
1703           [13]0\d{4,8}|
1704           2(?:
1705             0(?:
1706               [016-8]\d{3,7}|
1707               [2-59]\d{2,7}
1708             )|
1709             9\d{4,8}
1710           )|
1711           60(?:
1712             [12]\d{5,6}|
1713             6\d{7}
1714           )|
1715           7(?:
1716             1\d{7}|
1717             3\d{8}|
1718             5[03-9]\d{2,7}
1719           )
1720         </nationalNumberPattern>
1721         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1722         <exampleNumber>10112345</exampleNumber>
1723       </uan>
1724     </territory>
1725
1726     <!-- Azerbaijan -->
1727     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
1728                nationalPrefixFormattingRule="($NP$FG)" mobileNumberPortableRegion="true">
1729       <references>
1730         <sourceUrl>http://www.itu.int/oth/T020200000F/en</sourceUrl>
1731       </references>
1732       <availableFormats>
1733         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
1734           <leadingDigits>
1735             (?:
1736               1[28]|
1737               2(?:
1738                 [45]2|
1739                 [0-36]
1740               )|
1741               365
1742             )
1743           </leadingDigits>
1744           <format>$1 $2 $3 $4</format>
1745         </numberFormat>
1746         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
1747           <leadingDigits>[4-8]</leadingDigits>
1748           <format>$1 $2 $3 $4</format>
1749         </numberFormat>
1750         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
1751           nationalPrefixFormattingRule="$NP$FG">
1752           <leadingDigits>9</leadingDigits>
1753           <format>$1 $2 $3 $4</format>
1754         </numberFormat>
1755       </availableFormats>
1756       <generalDesc>
1757         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
1758         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
1759       </generalDesc>
1760       <fixedLine>
1761         <nationalNumberPattern>
1762           (?:
1763             1[28]\d|
1764             2(?:
1765               02|
1766               1[24]|
1767               2[2-4]|
1768               33|
1769               [45]2|
1770               6[23]
1771             )|
1772             365
1773           )\d{6}
1774         </nationalNumberPattern>
1775         <exampleNumber>123123456</exampleNumber>
1776       </fixedLine>
1777       <mobile>
1778         <nationalNumberPattern>
1779           (?:
1780             4[04]|
1781             5[015]|
1782             60|
1783             7[07]
1784           )\d{7}
1785         </nationalNumberPattern>
1786         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1787         <exampleNumber>401234567</exampleNumber>
1788       </mobile>
1789       <tollFree>
1790         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
1791              suggest they are in fact national toll-free numbers. -->
1792         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
1793         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1794         <exampleNumber>881234567</exampleNumber>
1795       </tollFree>
1796       <premiumRate>
1797         <!-- These are marked as Interactive Calls in the ITU document. -->
1798         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
1799         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1800         <exampleNumber>900200123</exampleNumber>
1801       </premiumRate>
1802     </territory>
1803
1804     <!-- Bosnia and Herzegovina -->
1805     <territory id="BA" countryCode="387" internationalPrefix="00"
1806                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1807                mobileNumberPortableRegion="true">
1808       <references>
1809         <!-- accessible from http://www.cra.ba/en/telecom/numbering/ -->
1810         <sourceUrl>http://www.rak.ba/eng/index.php?uid=1272016657</sourceUrl>
1811         <sourceUrl>http://en.wikipedia.org/wiki/+387</sourceUrl>
1812       </references>
1813       <availableFormats>
1814         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1815           <leadingDigits>[3-5]</leadingDigits>
1816           <format>$1 $2-$3</format>
1817         </numberFormat>
1818         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1819           <leadingDigits>
1820             6[1-356]|
1821             [7-9]
1822           </leadingDigits>
1823           <format>$1 $2 $3</format>
1824         </numberFormat>
1825         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
1826           <leadingDigits>6[047]</leadingDigits>
1827           <format>$1 $2 $3 $4</format>
1828         </numberFormat>
1829       </availableFormats>
1830       <generalDesc>
1831         <nationalNumberPattern>[3-9]\d{7,8}</nationalNumberPattern>
1832         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
1833       </generalDesc>
1834       <fixedLine>
1835         <nationalNumberPattern>
1836           (?:
1837             [35]\d|
1838             49
1839           )\d{6}
1840         </nationalNumberPattern>
1841         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
1842         <exampleNumber>30123456</exampleNumber>
1843       </fixedLine>
1844       <mobile>
1845         <nationalNumberPattern>
1846           6(?:
1847             03|
1848             44|
1849             71|
1850             [1-356]
1851           )\d{6}
1852         </nationalNumberPattern>
1853         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1854         <exampleNumber>61123456</exampleNumber>
1855       </mobile>
1856       <tollFree>
1857         <nationalNumberPattern>8[08]\d{6}</nationalNumberPattern>
1858         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1859         <exampleNumber>80123456</exampleNumber>
1860       </tollFree>
1861       <premiumRate>
1862         <nationalNumberPattern>9[0246]\d{6}</nationalNumberPattern>
1863         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1864         <exampleNumber>90123456</exampleNumber>
1865       </premiumRate>
1866       <sharedCost>
1867         <!-- Using this category to model national tariff numbers - these are under Shared Cost in
1868              the plan. -->
1869         <nationalNumberPattern>8[12]\d{6}</nationalNumberPattern>
1870         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1871         <exampleNumber>82123456</exampleNumber>
1872       </sharedCost>
1873       <uan>
1874         <!-- Using this to classify nomad numbers. -->
1875         <nationalNumberPattern>70[23]\d{5}</nationalNumberPattern>
1876         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1877         <exampleNumber>70223456</exampleNumber>
1878       </uan>
1879     </territory>
1880
1881     <!-- Barbados -->
1882     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
1883                internationalPrefix="011">
1884       <references>
1885         <sourceUrl>http://www.itu.int/oth/T0202000013/en</sourceUrl>
1886       </references>
1887       <generalDesc>
1888         <!-- NANPA country - uses US formatting rules -->
1889         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
1890         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1891       </generalDesc>
1892       <fixedLine>
1893         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
1894         <exampleNumber>2462345678</exampleNumber>
1895       </fixedLine>
1896       <mobile>
1897         <nationalNumberPattern>
1898           246(?:
1899             (?:
1900               2[346]|
1901               45|
1902               82
1903             )\d|
1904             25[0-4]
1905           )\d{4}
1906         </nationalNumberPattern>
1907         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1908         <exampleNumber>2462501234</exampleNumber>
1909       </mobile>
1910       <tollFree>
1911         <nationalNumberPattern>
1912           8(?:
1913             00|
1914             44|
1915             55|
1916             66|
1917             77|
1918             88
1919           )[2-9]\d{6}
1920         </nationalNumberPattern>
1921         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1922         <exampleNumber>8002123456</exampleNumber>
1923       </tollFree>
1924       <premiumRate>
1925         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1926         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1927         <exampleNumber>9002123456</exampleNumber>
1928       </premiumRate>
1929       <personalNumber>
1930         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1931         <nationalNumberPattern>
1932           5(?:
1933             00|
1934             33|
1935             44|
1936             66|
1937             77
1938           )[2-9]\d{6}
1939         </nationalNumberPattern>
1940         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1941         <exampleNumber>5002345678</exampleNumber>
1942       </personalNumber>
1943     </territory>
1944
1945     <!-- Bangladesh -->
1946     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
1947                preferredInternationalPrefix="00"
1948                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
1949       <references>
1950         <sourceUrl>http://www.itu.int/oth/T0202000012/en</sourceUrl>
1951         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh</sourceUrl>
1952         <sourceUrl>http://www.btrc.gov.bd/engineering/national_numbering_plan_2005.pdf</sourceUrl>
1953       </references>
1954       <availableFormats>
1955         <numberFormat pattern="(2)(\d{7})">
1956           <leadingDigits>2</leadingDigits>
1957           <format>$1-$2</format>
1958         </numberFormat>
1959         <numberFormat pattern="(\d{2})(\d{4,6})">
1960           <leadingDigits>[3-79]1</leadingDigits>
1961           <format>$1-$2</format>
1962         </numberFormat>
1963         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
1964         <numberFormat pattern="(\d{4})(\d{3,6})">
1965           <leadingDigits>
1966             1|
1967             3(?:
1968               0|
1969               [2-58]2
1970             )|
1971             4(?:
1972               0|
1973               [25]2|
1974               3[23]|
1975               [4689][25]
1976             )|
1977             5(?:
1978               [02-578]2|
1979               6[25]
1980             )|
1981             6(?:
1982               [0347-9]2|
1983               [26][25]
1984             )|
1985             7[02-9]2|
1986             8(?:
1987               [023][23]|
1988               [4-7]2
1989             )|
1990             9(?:
1991               [02][23]|
1992               [458]2|
1993               6[016]
1994             )
1995           </leadingDigits>
1996           <format>$1-$2</format>
1997         </numberFormat>
1998         <numberFormat pattern="(\d{3})(\d{3,7})">
1999           <leadingDigits>
2000             [3-79][2-9]|
2001             8
2002           </leadingDigits>
2003           <format>$1-$2</format>
2004         </numberFormat>
2005       </availableFormats>
2006       <generalDesc>
2007       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
2008            plan, so the country code can be accurately stripped off. -->
2009         <nationalNumberPattern>
2010           [2-79]\d{5,9}|
2011           1\d{9}|
2012           8[0-7]\d{4,8}
2013         </nationalNumberPattern>
2014         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
2015       </generalDesc>
2016       <fixedLine>
2017         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
2018              been realised, judging by online numbers and wikipedia. These patterns are grouped
2019              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731
2020              etc) are included despite not being mentioned on the wikipedia page or ITU doc due to
2021              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
2022              do not - both are allowed for now. For some area codes, the subscriber number length
2023              described in our source documentation doesn't match numbers online (e.g. 05222) so we
2024              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
2025              also added 04452 and 04923 from numbers found online. -->
2026         <nationalNumberPattern>
2027           2(?:
2028             7(?:
2029               1[0-267]|
2030               2[0-289]|
2031               3[0-29]|
2032               [46][01]|
2033               5[1-3]|
2034               7[017]|
2035               91
2036             )|
2037             8(?:
2038               0[125]|
2039               [139][1-6]|
2040               2[0157-9]|
2041               6[1-35]|
2042               7[1-5]|
2043               8[1-8]
2044             )|
2045             9(?:
2046               0[0-2]|
2047               1[1-4]|
2048               2[568]|
2049               3[3-6]|
2050               5[5-7]|
2051               6[0167]|
2052               7[15]|
2053               8[016-8]
2054             )
2055           )\d{4}|
2056           3(?:
2057             12?[5-7]\d{2}|
2058             0(?:
2059               2(?:
2060                 [025-79]\d|
2061                 [348]\d{1,2}
2062               )|
2063               3(?:
2064                 [2-4]\d|
2065                 [56]\d?
2066               )
2067             )|
2068             2(?:
2069               1\d{2}|
2070               2(?:
2071                 [12]\d|
2072                 [35]\d{1,2}|
2073                 4\d?
2074               )
2075             )|
2076             3(?:
2077               1\d{2}|
2078               2(?:
2079                 [2356]\d|
2080                 4\d{1,2}
2081               )
2082             )|
2083             4(?:
2084               1\d{2}|
2085               2(?:
2086                 2\d{1,2}|
2087                 [47]|
2088                 5\d{2}
2089               )
2090             )|
2091             5(?:
2092               1\d{2}|
2093               29
2094             )|
2095             [67]1\d{2}|
2096             8(?:
2097               1\d{2}|
2098               2(?:
2099                 2\d{2}|
2100                 3|
2101                 4\d
2102               )
2103             )
2104           )\d{3}|
2105           4(?:
2106             0(?:
2107               2(?:
2108                 [09]\d|
2109                 7
2110               )|
2111               33\d{2}
2112             )|
2113             1\d{3}|
2114             2(?:
2115               1\d{2}|
2116               2(?:
2117                 [25]\d?|
2118                 [348]\d|
2119                 [67]\d{1,2}
2120               )
2121             )|
2122             3(?:
2123               1\d{2}(?:\d{2})?|
2124               2(?:
2125                 [045]\d|
2126                 [236-9]\d{1,2}
2127               )|
2128               32\d{2}
2129             )|
2130             4(?:
2131               [18]\d{2}|
2132               2(?:
2133                 [2-46]\d{2}|
2134                 3
2135               )|
2136               5[25]\d{2}
2137             )|
2138             5(?:
2139               1\d{2}|
2140               2(?:
2141                 3\d|
2142                 5
2143               )
2144             )|
2145             6(?:
2146               [18]\d{2}|
2147               2(?:
2148                 3(?:\d{2})?|
2149                 [46]\d{1,2}|
2150                 5\d{2}|
2151                 7\d
2152               )|
2153               5(?:
2154                 3\d?|
2155                 4\d|
2156                 [57]\d{1,2}|
2157                 6\d{2}|
2158                 8
2159               )
2160             )|
2161             71\d{2}|
2162             8(?:
2163               [18]\d{2}|
2164               23\d{2}|
2165               54\d{2}
2166             )|
2167             9(?:
2168               [18]\d{2}|
2169               2[2-5]\d{2}|
2170               53\d{1,2}
2171             )
2172           )\d{3}|
2173           5(?:
2174             02[03489]\d{2}|
2175             1\d{2}|
2176             2(?:
2177               1\d{2}|
2178               2(?:
2179                 2(?:\d{2})?|
2180                 [457]\d{2}
2181               )
2182             )|
2183             3(?:
2184               1\d{2}|
2185               2(?:
2186                 [37](?:\d{2})?|
2187                 [569]\d{2}
2188               )
2189             )|
2190             4(?:
2191               1\d{2}|
2192               2[46]\d{2}
2193             )|
2194             5(?:
2195               1\d{2}|
2196               26\d{1,2}
2197             )|
2198             6(?:
2199               [18]\d{2}|
2200               2|
2201               53\d{2}
2202             )|
2203             7(?:
2204               1|
2205               24
2206             )\d{2}|
2207             8(?:
2208               1|
2209               26
2210             )\d{2}|
2211             91\d{2}
2212           )\d{3}|
2213           6(?:
2214             0(?:
2215               1\d{2}|
2216               2(?:
2217                 3\d{2}|
2218                 4\d{1,2}
2219               )
2220             )|
2221             2(?:
2222               2[2-5]\d{2}|
2223               5(?:
2224                 [3-5]\d{2}|
2225                 7
2226               )|
2227               8\d{2}
2228             )|
2229             3(?:
2230               1|
2231               2[3478]
2232             )\d{2}|
2233             4(?:
2234               1|
2235               2[34]
2236             )\d{2}|
2237             5(?:
2238               1|
2239               2[47]
2240             )\d{2}|
2241             6(?:
2242               [18]\d{2}|
2243               6(?:
2244                 2(?:
2245                   2\d|
2246                   [34]\d{2}
2247                 )|
2248                 5(?:
2249                   [24]\d{2}|
2250                   3\d|
2251                   5\d{1,2}
2252                 )
2253               )
2254             )|
2255             72[2-5]\d{2}|
2256             8(?:
2257               1\d{2}|
2258               2[2-5]\d{2}
2259             )|
2260             9(?:
2261               1\d{2}|
2262               2[2-6]\d{2}
2263             )
2264           )\d{3}|
2265           7(?:
2266             (?:
2267               02|
2268               [3-589]1|
2269               6[12]|
2270               72[24]
2271             )\d{2}|
2272             21\d{3}|
2273             32
2274           )\d{3}|
2275           8(?:
2276             (?:
2277               4[12]|
2278               [5-7]2|
2279               1\d?
2280             )|
2281             (?:
2282               0|
2283               3[12]|
2284               [5-7]1|
2285               217
2286             )\d
2287           )\d{4}|
2288           9(?:
2289             [35]1|
2290             (?:
2291               [024]2|
2292               81
2293             )\d|
2294             (?:
2295               1|
2296               [24]1
2297             )\d{2}
2298           )\d{3}
2299         </nationalNumberPattern>
2300         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
2301         <exampleNumber>27111234</exampleNumber>
2302       </fixedLine>
2303       <mobile>
2304         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
2305              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
2306              numbers should be moving to 1[13-9] anyway. -->
2307         <nationalNumberPattern>
2308           (?:
2309             1[13-9]\d|
2310             (?:
2311               3[78]|
2312               44
2313             )[02-9]|
2314             6(?:
2315               44|
2316               6[02-9]
2317             )
2318           )\d{7}
2319         </nationalNumberPattern>
2320         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2321         <exampleNumber>1812345678</exampleNumber>
2322       </mobile>
2323       <tollFree>
2324         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
2325         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
2326         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2327         <exampleNumber>8001234567</exampleNumber>
2328       </tollFree>
2329       <voip>
2330         <nationalNumberPattern>
2331           96(?:
2332             0[49]|
2333             1[0-4]|
2334             6[69]
2335           )\d{6}
2336         </nationalNumberPattern>
2337         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2338         <exampleNumber>9604123456</exampleNumber>
2339       </voip>
2340     </territory>
2341
2342     <!-- Belgium -->
2343     <territory id="BE" countryCode="32" internationalPrefix="00"
2344                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2345                mobileNumberPortableRegion="true">
2346       <references>
2347         <sourceUrl>http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx</sourceUrl>
2348         <sourceUrl>http://www.telefoonzones.be/</sourceUrl>
2349       </references>
2350       <availableFormats>
2351         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
2352           <leadingDigits>4[6-9]</leadingDigits>
2353           <format>$1 $2 $3 $4</format>
2354         </numberFormat>
2355         <numberFormat pattern="([2-49])(\d{3})(\d{2})(\d{2})">
2356           <leadingDigits>
2357             [23]|
2358             [49][23]
2359           </leadingDigits>
2360           <format>$1 $2 $3 $4</format>
2361         </numberFormat>
2362         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
2363           <leadingDigits>
2364             [156]|
2365             7[018]|
2366             8(?:
2367               0[1-9]|
2368               [1-79]
2369             )
2370           </leadingDigits>
2371           <format>$1 $2 $3 $4</format>
2372         </numberFormat>
2373         <numberFormat pattern="([89]\d{2})(\d{2})(\d{3})">
2374           <leadingDigits>
2375             (?:
2376               80|
2377               9
2378             )0
2379           </leadingDigits>
2380           <format>$1 $2 $3</format>
2381         </numberFormat>
2382       </availableFormats>
2383       <generalDesc>
2384         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
2385         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2386       </generalDesc>
2387       <fixedLine>
2388         <!-- According to the published Excel document the third digit must be 1-9. -->
2389         <nationalNumberPattern>
2390           (?:
2391             1[0-69]|
2392             [49][23]|
2393             5\d|
2394             6[013-57-9]|
2395             71|
2396             8[0-79]
2397           )[1-9]\d{5}|
2398           [23][2-8]\d{6}
2399         </nationalNumberPattern>
2400         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2401         <exampleNumber>12345678</exampleNumber>
2402       </fixedLine>
2403       <mobile>
2404         <!-- Numbers beginning with 46 outside the ranges allocated by the plan have been included
2405              since many were found online. -->
2406         <nationalNumberPattern>
2407           4(?:
2408             [679]\d|
2409             8[03-9]
2410           )\d{6}
2411         </nationalNumberPattern>
2412         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2413         <exampleNumber>470123456</exampleNumber>
2414       </mobile>
2415       <tollFree>
2416         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2417         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2418         <exampleNumber>80012345</exampleNumber>
2419       </tollFree>
2420       <premiumRate>
2421         <nationalNumberPattern>
2422           (?:
2423             70[2-7]|
2424             90\d
2425           )\d{5}
2426         </nationalNumberPattern>
2427         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2428         <exampleNumber>90123456</exampleNumber>
2429       </premiumRate>
2430       <uan>
2431         <!-- Using this for National Rate Services, since
2432              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
2433              says it will be priced the same as any other national calls. -->
2434         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
2435         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2436         <exampleNumber>78123456</exampleNumber>
2437       </uan>
2438     </territory>
2439
2440     <!-- Burkina Faso -->
2441     <territory id="BF" countryCode="226" internationalPrefix="00">
2442       <references>
2443         <sourceUrl>http://www.itu.int/oth/T0202000021/en</sourceUrl>
2444         <sourceUrl>http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf</sourceUrl>
2445       </references>
2446       <availableFormats>
2447         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
2448              chosen to use the standard from numbers found on the internet instead. -->
2449         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2450           <format>$1 $2 $3 $4</format>
2451         </numberFormat>
2452       </availableFormats>
2453       <generalDesc>
2454         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
2455         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2456       </generalDesc>
2457       <fixedLine>
2458         <nationalNumberPattern>
2459           (?:
2460             20(?:
2461               49|
2462               5[23]|
2463               9[016-9]
2464             )|
2465             40(?:
2466               4[569]|
2467               5[4-6]|
2468               7[0179]
2469             )|
2470             50(?:
2471               [34]\d|
2472               50
2473             )
2474           )\d{4}
2475         </nationalNumberPattern>
2476         <exampleNumber>20491234</exampleNumber>
2477       </fixedLine>
2478       <mobile>
2479         <nationalNumberPattern>
2480           6(?:
2481             [0-689]\d|
2482             7[0-5]
2483           )\d{5}|
2484           7\d{7}
2485         </nationalNumberPattern>
2486         <exampleNumber>70123456</exampleNumber>
2487       </mobile>
2488     </territory>
2489
2490     <!-- Bulgaria -->
2491     <territory id="BG" countryCode="359" internationalPrefix="00"
2492                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2493                mobileNumberPortableRegion="true">
2494       <references>
2495         <sourceUrl>http://www.itu.int/oth/T0202000020/en</sourceUrl>
2496       </references>
2497       <availableFormats>
2498         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
2499              used to separate the area code from the rest of the number, based on sites like
2500              http://www.goldenpages.bg. -->
2501         <numberFormat pattern="(2)(\d{5})">
2502           <leadingDigits>29</leadingDigits>
2503           <format>$1 $2</format>
2504         </numberFormat>
2505         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
2506           <leadingDigits>2</leadingDigits>
2507           <format>$1 $2 $3</format>
2508         </numberFormat>
2509         <numberFormat pattern="(\d{3})(\d{4})">
2510           <leadingDigits>
2511             43[124-7]|
2512             70[1-9]
2513           </leadingDigits>
2514           <format>$1 $2</format>
2515         </numberFormat>
2516         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
2517           <leadingDigits>
2518             43[124-7]|
2519             70[1-9]
2520           </leadingDigits>
2521           <format>$1 $2 $3</format>
2522         </numberFormat>
2523         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2524           <leadingDigits>[78]00</leadingDigits>
2525           <format>$1 $2 $3</format>
2526         </numberFormat>
2527         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
2528           <leadingDigits>
2529             [356]|
2530             4[124-7]|
2531             7[1-9]|
2532             8[1-6]|
2533             9[1-7]
2534           </leadingDigits>
2535           <format>$1 $2 $3</format>
2536         </numberFormat>
2537         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2538           <leadingDigits>
2539             48|
2540             8[7-9]|
2541             9[08]
2542           </leadingDigits>
2543           <format>$1 $2 $3</format>
2544         </numberFormat>
2545       </availableFormats>
2546       <generalDesc>
2547         <nationalNumberPattern>
2548           [23567]\d{5,7}|
2549           [489]\d{6,8}
2550         </nationalNumberPattern>
2551         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
2552       </generalDesc>
2553       <fixedLine>
2554         <!-- 29xxxx numbers have been added because they can be found online, and are typically
2555              used by taxi companies. -->
2556         <nationalNumberPattern>
2557           2(?:
2558             [0-8]\d{5,6}|
2559             9\d{4,6}
2560           )|
2561           (?:
2562             [36]\d|
2563             5[1-9]|
2564             8[1-6]|
2565             9[1-7]
2566           )\d{5,6}|
2567           (?:
2568             4(?:
2569               [124-7]\d|
2570               3[1-6]
2571             )|
2572             7(?:
2573               0[1-9]|
2574               [1-9]\d
2575             )
2576           )\d{4,5}
2577         </nationalNumberPattern>
2578         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
2579         <exampleNumber>2123456</exampleNumber>
2580       </fixedLine>
2581       <mobile>
2582         <nationalNumberPattern>
2583           (?:
2584             8[7-9]|
2585             98
2586           )\d{7}|
2587           4(?:
2588             3[0789]|
2589             8\d
2590           )\d{5}
2591         </nationalNumberPattern>
2592         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2593         <exampleNumber>48123456</exampleNumber>
2594       </mobile>
2595       <tollFree>
2596         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2597         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2598         <exampleNumber>80012345</exampleNumber>
2599       </tollFree>
2600       <premiumRate>
2601         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
2602         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2603         <exampleNumber>90123456</exampleNumber>
2604       </premiumRate>
2605       <personalNumber>
2606         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
2607         <exampleNumber>70012345</exampleNumber>
2608       </personalNumber>
2609     </territory>
2610
2611     <!-- Bahrain -->
2612     <territory id="BH" countryCode="973" internationalPrefix="00" mobileNumberPortableRegion="true">
2613       <references>
2614         <sourceUrl>http://www.itu.int/oth/T0202000011/en</sourceUrl>
2615         <sourceUrl>http://www.tra.org.bh/en/marketNumbering.aspx</sourceUrl>
2616         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain</sourceUrl>
2617       </references>
2618       <availableFormats>
2619         <numberFormat pattern="(\d{4})(\d{4})">
2620           <format>$1 $2</format>
2621         </numberFormat>
2622       </availableFormats>
2623       <generalDesc>
2624         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
2625         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2626       </generalDesc>
2627       <!-- Some ranges were previously described as "universal", but in subsequent versions of the
2628            ITU doc they have been specified to be mobile or fixed-line. We follow the ITU
2629            designations, even though some publications still refer to them as universal. -->
2630       <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
2631            "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts the ITU doc
2632            which lists "6966, 6969, 6996, 6999". We follow ITU here. -->
2633       <fixedLine>
2634         <nationalNumberPattern>
2635           (?:
2636             1(?:
2637               3[13-6]|
2638               6[0156]|
2639               7\d
2640             )\d|
2641             6(?:
2642               1[16]\d|
2643               500|
2644               6(?:
2645                 0\d|
2646                 3[12]|
2647                 44|
2648                 88
2649               )|
2650               9[69][69]
2651             )|
2652             7(?:
2653               7\d{2}|
2654               178
2655             )
2656           )\d{4}
2657         </nationalNumberPattern>
2658         <exampleNumber>17001234</exampleNumber>
2659       </fixedLine>
2660       <!-- 31 is assigned to Royal Court, as per documents on Bahrain's own telecom site, even
2661            though it is omitted from the ITU document. -->
2662       <mobile>
2663         <nationalNumberPattern>
2664           (?:
2665             3(?:
2666               [1-4679]\d|
2667               5[0135]|
2668               8[0-48]
2669             )\d|
2670             6(?:
2671               3(?:
2672                 00|
2673                 33|
2674                 6[16]
2675               )|
2676               6(?:
2677                 [69]\d|
2678                 3[03-9]
2679               )
2680             )
2681           )\d{4}
2682         </nationalNumberPattern>
2683         <exampleNumber>36001234</exampleNumber>
2684       </mobile>
2685       <tollFree>
2686         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
2687         <exampleNumber>80123456</exampleNumber>
2688       </tollFree>
2689       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
2690            now. -->
2691       <premiumRate>
2692         <nationalNumberPattern>
2693           (?:
2694             87|
2695             9[014578]
2696           )\d{6}
2697         </nationalNumberPattern>
2698         <exampleNumber>90123456</exampleNumber>
2699       </premiumRate>
2700       <sharedCost>
2701         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
2702         <exampleNumber>84123456</exampleNumber>
2703       </sharedCost>
2704     </territory>
2705
2706     <!-- Burundi -->
2707     <territory id="BI" countryCode="257" internationalPrefix="00">
2708       <references>
2709         <sourceUrl>http://www.itu.int/oth/T0202000022/en</sourceUrl>
2710       </references>
2711       <availableFormats>
2712         <numberFormat
2713           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2714           <format>$1 $2 $3 $4</format>
2715         </numberFormat>
2716       </availableFormats>
2717       <generalDesc>
2718         <nationalNumberPattern>[267]\d{7}</nationalNumberPattern>
2719         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2720       </generalDesc>
2721       <fixedLine>
2722         <nationalNumberPattern>
2723           22(?:
2724             2[0-7]|
2725             [3-5]0
2726           )\d{4}
2727         </nationalNumberPattern>
2728         <exampleNumber>22201234</exampleNumber>
2729       </fixedLine>
2730       <mobile>
2731         <!-- Extra online mobile number prefixes found: 74.
2732              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
2733              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
2734              satellite phones. -->
2735         <nationalNumberPattern>
2736           (?:
2737             [26]9|
2738             7[14-9]
2739           )\d{6}
2740         </nationalNumberPattern>
2741         <exampleNumber>79561234</exampleNumber>
2742       </mobile>
2743     </territory>
2744
2745     <!-- Benin -->
2746     <territory id="BJ" countryCode="229" internationalPrefix="00">
2747       <references>
2748         <sourceUrl>http://www.itu.int/oth/T0202000017/en</sourceUrl>
2749       </references>
2750       <availableFormats>
2751         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2752           <format>$1 $2 $3 $4</format>
2753         </numberFormat>
2754         <!-- Numbers beginning with 7 should be formatted as a block. -->
2755       </availableFormats>
2756       <generalDesc>
2757         <nationalNumberPattern>
2758           [2689]\d{7}|
2759           7\d{3}
2760         </nationalNumberPattern>
2761         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
2762       </generalDesc>
2763       <fixedLine>
2764         <!-- These come from the national numbering plan, but have been widened to include other
2765              prefixes found in the yellow pages - specifically 21 0. -->
2766         <nationalNumberPattern>
2767           2(?:
2768             02|
2769             1[037]|
2770             2[45]|
2771             3[68]
2772           )\d{5}
2773         </nationalNumberPattern>
2774         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2775         <exampleNumber>20211234</exampleNumber>
2776       </fixedLine>
2777       <mobile>
2778         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
2779              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
2780              6[167] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
2781              reported as having prefixes 68 and 9[89]. -->
2782         <nationalNumberPattern>
2783           (?:
2784             6[146-8]|
2785             9[03-9]
2786           )\d{6}
2787         </nationalNumberPattern>
2788         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2789         <exampleNumber>90011234</exampleNumber>
2790       </mobile>
2791       <tollFree>
2792         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
2793         <possibleNumberPattern>\d{4}</possibleNumberPattern>
2794         <exampleNumber>7312</exampleNumber>
2795       </tollFree>
2796       <voip>
2797         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
2798         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2799         <exampleNumber>85751234</exampleNumber>
2800       </voip>
2801       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
2802            as a local-call.) We model these as UAN since we have no more detailed information. -->
2803       <uan>
2804         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
2805         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2806         <exampleNumber>81123456</exampleNumber>
2807       </uan>
2808     </territory>
2809
2810     <!-- Saint Barthélemy, French Antilles -->
2811     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
2812          national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but
2813          it appears from searches in online white and yellow pages that a subset of the prefixes
2814          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
2815          of these region codes will be returned, although numbers will be valid for both regions.
2816          -->
2817     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
2818       <references>
2819         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
2820       </references>
2821       <!-- Formatting rules borrowed from Guadeloupe. -->
2822       <generalDesc>
2823         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
2824         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2825       </generalDesc>
2826       <fixedLine>
2827         <nationalNumberPattern>
2828           590(?:
2829             2[7-9]|
2830             5[12]|
2831             87
2832           )\d{4}
2833         </nationalNumberPattern>
2834         <exampleNumber>590271234</exampleNumber>
2835       </fixedLine>
2836       <mobile>
2837         <!-- Any ranges assigned from
2838              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
2839              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
2840              them. -->
2841         <nationalNumberPattern>
2842           690(?:
2843             0[0-7]|
2844             [1-9]\d
2845           )\d{4}
2846         </nationalNumberPattern>
2847         <exampleNumber>690301234</exampleNumber>
2848       </mobile>
2849     </territory>
2850
2851     <!-- Bermuda -->
2852     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
2853                internationalPrefix="011">
2854       <references>
2855         <sourceUrl>http://www.itu.int/oth/T0202000018/en</sourceUrl>
2856       </references>
2857       <generalDesc>
2858         <!-- NANPA country - uses US formatting rules -->
2859         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
2860         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
2861       </generalDesc>
2862       <fixedLine>
2863         <nationalNumberPattern>
2864           441(?:
2865             2(?:
2866               02|
2867               23|
2868               61|
2869               [3479]\d
2870             )|
2871             [46]\d{2}|
2872             5(?:
2873               4\d|
2874               60|
2875               89
2876             )|
2877             824
2878           )\d{4}
2879         </nationalNumberPattern>
2880         <exampleNumber>4412345678</exampleNumber>
2881       </fixedLine>
2882       <mobile>
2883         <nationalNumberPattern>
2884           441(?:
2885             [37]\d|
2886             5[0-39]
2887           )\d{5}
2888         </nationalNumberPattern>
2889         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2890         <exampleNumber>4413701234</exampleNumber>
2891       </mobile>
2892       <tollFree>
2893         <nationalNumberPattern>
2894           8(?:
2895             00|
2896             44|
2897             55|
2898             66|
2899             77|
2900             88
2901           )[2-9]\d{6}
2902         </nationalNumberPattern>
2903         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2904         <exampleNumber>8002123456</exampleNumber>
2905       </tollFree>
2906       <premiumRate>
2907         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
2908         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2909         <exampleNumber>9002123456</exampleNumber>
2910       </premiumRate>
2911       <personalNumber>
2912         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
2913         <nationalNumberPattern>
2914           5(?:
2915             00|
2916             33|
2917             44|
2918             66|
2919             77
2920           )[2-9]\d{6}
2921         </nationalNumberPattern>
2922         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2923         <exampleNumber>5002345678</exampleNumber>
2924       </personalNumber>
2925     </territory>
2926
2927     <!-- Brunei Darussalam -->
2928     <territory id="BN" countryCode="673" internationalPrefix="00">
2929       <references>
2930         <sourceUrl>http://www.itu.int/oth/T020200001F/en</sourceUrl>
2931       </references>
2932       <!-- Format is from http://aiti.gov.bn/contact.html -->
2933       <availableFormats>
2934         <numberFormat pattern="([2-578]\d{2})(\d{4})">
2935           <format>$1 $2</format>
2936         </numberFormat>
2937       </availableFormats>
2938       <generalDesc>
2939         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
2940         <possibleNumberPattern>\d{7}</possibleNumberPattern>
2941       </generalDesc>
2942       <fixedLine>
2943         <nationalNumberPattern>
2944           2(?:
2945             [013-9]\d|
2946             2[0-7]
2947           )\d{4}|
2948           [3-5]\d{6}
2949         </nationalNumberPattern>
2950         <exampleNumber>2345678</exampleNumber>
2951       </fixedLine>
2952       <mobile>
2953         <nationalNumberPattern>
2954           22[89]\d{4}|
2955           [78]\d{6}
2956         </nationalNumberPattern>
2957         <exampleNumber>7123456</exampleNumber>
2958       </mobile>
2959     </territory>
2960
2961     <!-- Bolivia -->
2962     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
2963                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
2964       <references>
2965         <sourceUrl>http://www.itu.int/oth/T020200001A/en</sourceUrl>
2966         <sourceUrl>http://www.bolivia.com/Servicios/Plandenumeracion.pdf</sourceUrl>
2967       </references>
2968       <availableFormats>
2969         <numberFormat pattern="([234])(\d{7})">
2970           <leadingDigits>[234]</leadingDigits>
2971           <format>$1 $2</format>
2972         </numberFormat>
2973         <numberFormat pattern="([67]\d{7})">
2974           <leadingDigits>[67]</leadingDigits>
2975           <format>$1</format>
2976         </numberFormat>
2977       </availableFormats>
2978       <generalDesc>
2979         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
2980         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
2981       </generalDesc>
2982       <fixedLine>
2983         <nationalNumberPattern>
2984           (?:
2985             2(?:
2986               2\d{2}|
2987               5(?:11|[258]\d|9[67])|
2988               6(?:12|2\d|9[34])|
2989               8(?:2[34]|39|62)
2990             )|
2991             3(?:
2992               3\d{2}|
2993               4(?:6\d|8[24])|
2994               8(?:25|42|5[257]|86|9[25])|
2995               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
2996             )|
2997             4(?:
2998               4\d{2}|
2999               6(?:11|[24689]\d|72)
3000             )
3001           )\d{4}
3002         </nationalNumberPattern>
3003         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3004         <exampleNumber>22123456</exampleNumber>
3005       </fixedLine>
3006       <mobile>
3007         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
3008         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3009         <exampleNumber>71234567</exampleNumber>
3010       </mobile>
3011     </territory>
3012
3013     <!-- Bonaire, Sint Eustatius and Saba -->
3014     <territory id="BQ" countryCode="599" internationalPrefix="00">
3015       <references>
3016         <sourceUrl>http://www.itu.int/oth/T02020000F8/en</sourceUrl>
3017       </references>
3018       <!-- Shares formatting patterns with CW. -->
3019       <generalDesc>
3020         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
3021         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3022       </generalDesc>
3023       <fixedLine>
3024         <nationalNumberPattern>
3025           (?:
3026             318[023]|
3027             416[023]|
3028             7(?:
3029               1[578]|
3030               50
3031             )\d
3032           )\d{3}
3033         </nationalNumberPattern>
3034         <exampleNumber>7151234</exampleNumber>
3035       </fixedLine>
3036       <mobile>
3037         <nationalNumberPattern>
3038           (?:
3039             318[14-68]|
3040             416[15-9]|
3041             7(?:
3042               0[01]|
3043               7[07]|
3044               [89]\d
3045             )\d
3046           )\d{3}
3047         </nationalNumberPattern>
3048         <exampleNumber>3181234</exampleNumber>
3049       </mobile>
3050     </territory>
3051
3052     <!-- Brazil -->
3053     <territory id="BR" countryCode="55"
3054                internationalPrefix="00(?:1[45]|2[135]|31|4[13])"
3055                nationalPrefix="0"
3056                nationalPrefixForParsing="0(?:(1[245]|2[135]|31|4[13])(\d{10,11}))?"
3057                nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true">
3058       <references>
3059         <sourceUrl>http://en.wikipedia.org/wiki/%2B55</sourceUrl>
3060         <sourceUrl>http://www.itu.int/oth/T020200001D/en</sourceUrl>
3061       </references>
3062       <!-- The national prefix for parsing here also contains a capturing group for the main number,
3063            since the carrier codes here may also be area codes, so we want to check the length of
3064            the number after capturing. We also need a nationalTransformRule to repopulate with the
3065            number without the carrier code. -->
3066       <availableFormats>
3067         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
3068              rules here handle this case. The leading digits pattern must be specific enough such
3069              that it doesn't match X00 numbers (e.g. toll-free). -->
3070         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
3071           <leadingDigits>
3072             [2-9](?:
3073               [1-9]|
3074               0[1-9]
3075             )
3076           </leadingDigits>
3077           <format>$1-$2</format>
3078           <intlFormat>NA</intlFormat>
3079         </numberFormat>
3080         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
3081           <leadingDigits>
3082             9(?:
3083               [1-9]|
3084               0[1-9]
3085             )
3086           </leadingDigits>
3087           <format>$1-$2</format>
3088           <intlFormat>NA</intlFormat>
3089         </numberFormat>
3090         <!-- Format short numbers as a block. -->
3091         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
3092           <leadingDigits>1[125689]</leadingDigits>
3093           <format>$1</format>
3094           <intlFormat>NA</intlFormat>
3095         </numberFormat>
3096         <numberFormat nationalPrefixFormattingRule="($FG)"
3097             pattern="(\d{2})(\d{5})(\d{4})"
3098             carrierCodeFormattingRule="$NP $CC ($FG)">
3099           <leadingDigits>
3100             (?:
3101               1[1-9]|
3102               2[12478]|
3103               9[1-9]
3104             )9
3105           </leadingDigits>
3106           <format>$1 $2-$3</format>
3107         </numberFormat>
3108         <numberFormat nationalPrefixFormattingRule="($FG)"
3109             pattern="(\d{2})(\d{4})(\d{4})"
3110             carrierCodeFormattingRule="$NP $CC ($FG)">
3111           <leadingDigits>[1-9][1-9]</leadingDigits>
3112           <format>$1 $2-$3</format>
3113         </numberFormat>
3114         <numberFormat pattern="([34]00\d)(\d{4})">
3115           <leadingDigits>[34]00</leadingDigits>
3116           <format>$1-$2</format>
3117         </numberFormat>
3118         <numberFormat nationalPrefixFormattingRule="$NP$FG"
3119             pattern="([3589]00)(\d{2,3})(\d{4})">
3120           <leadingDigits>[3589]00</leadingDigits>
3121           <format>$1 $2 $3</format>
3122         </numberFormat>
3123       </availableFormats>
3124       <generalDesc>
3125         <nationalNumberPattern>
3126           [1-46-9]\d{7,10}|
3127           5\d{8,9}
3128         </nationalNumberPattern>
3129         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
3130       </generalDesc>
3131       <noInternationalDialling>
3132         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3133         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3134         <exampleNumber>40041234</exampleNumber>
3135       </noInternationalDialling>
3136       <fixedLine>
3137         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
3138              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
3139              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
3140              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
3141              -->
3142         <nationalNumberPattern>
3143           1[1-9][2-5]\d{7}|
3144           (?:
3145             [4689][1-9]|
3146             2[12478]|
3147             3[1-578]|
3148             5[13-5]|
3149             7[13-579]
3150           )[2-5]\d{7}
3151         </nationalNumberPattern>
3152         <exampleNumber>1123456789</exampleNumber>
3153       </fixedLine>
3154       <mobile>
3155         <!-- Since 2012, Brazil has been migrating from 10 to 11 digits by inserting a 9 before the
3156              last 8 digits. The following pattern is divided into 3 sections: ranges for which the
3157              migration has been completed, ranges which are in transition, and ranges which are
3158              still in the old format. (Ranges which were supposed to have been deprecated in
3159              Oct. 2013 are still working as of Jan. 2014.) Note that mobile radio services are
3160              still 10 digits, with the subscriber number (the last 8 digits) beginning with 7. -->
3161         <nationalNumberPattern>
3162           1[1-9](?:
3163             7|
3164             9\d
3165           )\d{7}|
3166           (?:
3167             2[12478]|
3168             9[1-9]
3169           )9?[6-9]\d{7}|
3170           (?:
3171             3[1-578]|
3172             [468][1-9]|
3173             5[13-5]|
3174             7[13-579]
3175           )[6-9]\d{7}
3176         </nationalNumberPattern>
3177         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3178         <exampleNumber>11961234567</exampleNumber>
3179       </mobile>
3180       <tollFree>
3181         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
3182         <exampleNumber>800123456</exampleNumber>
3183       </tollFree>
3184       <premiumRate>
3185         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
3186         <exampleNumber>300123456</exampleNumber>
3187       </premiumRate>
3188       <sharedCost>
3189         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3190         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3191         <exampleNumber>40041234</exampleNumber>
3192       </sharedCost>
3193     </territory>
3194
3195     <!-- Bahamas -->
3196     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
3197                internationalPrefix="011">
3198       <references>
3199         <sourceUrl>http://www.itu.int/oth/T0202000010/en</sourceUrl>
3200       </references>
3201       <generalDesc>
3202         <!-- NANPA country - uses US formatting rules -->
3203         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
3204         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3205       </generalDesc>
3206       <fixedLine>
3207         <nationalNumberPattern>
3208           242(?:
3209             3(?:
3210               02|
3211               [236][1-9]|
3212               4[0-24-9]|
3213               5[0-68]|
3214               7[3467]|
3215               8[0-4]|
3216               9[2-467]
3217             )|
3218             461|
3219             502|
3220             6(?:
3221               0[12]|
3222               12|
3223               7[67]|
3224               8[78]|
3225               9[89]
3226             )|
3227             702
3228           )\d{4}
3229         </nationalNumberPattern>
3230         <exampleNumber>2423456789</exampleNumber>
3231       </fixedLine>
3232       <mobile>
3233         <nationalNumberPattern>
3234           242(?:
3235             3(?:
3236               5[79]|
3237               [79]5
3238             )|
3239             4(?:
3240               [2-4][1-9]|
3241               5[1-8]|
3242               6[2-8]|
3243               7\d|
3244               81
3245             )|
3246             5(?:
3247               2[45]|
3248               3[35]|
3249               44|
3250               5[1-9]|
3251               65|
3252               77
3253             )|
3254             6[34]6|
3255             727
3256           )\d{4}
3257         </nationalNumberPattern>
3258         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3259         <exampleNumber>2423591234</exampleNumber>
3260       </mobile>
3261       <tollFree>
3262         <!-- 242 300 is a Domestic Toll Free service. -->
3263         <nationalNumberPattern>
3264           242300\d{4}|
3265           8(?:
3266             00|
3267             44|
3268             55|
3269             66|
3270             77|
3271             88
3272           )[2-9]\d{6}
3273         </nationalNumberPattern>
3274         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3275         <exampleNumber>8002123456</exampleNumber>
3276       </tollFree>
3277       <premiumRate>
3278         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3279         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3280         <exampleNumber>9002123456</exampleNumber>
3281       </premiumRate>
3282       <personalNumber>
3283         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3284         <nationalNumberPattern>
3285           5(?:
3286             00|
3287             33|
3288             44|
3289             66|
3290             77
3291           )[2-9]\d{6}
3292         </nationalNumberPattern>
3293         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3294         <exampleNumber>5002345678</exampleNumber>
3295       </personalNumber>
3296     </territory>
3297
3298     <!-- Bhutan -->
3299     <territory id="BT" countryCode="975" internationalPrefix="00">
3300       <references>
3301         <sourceUrl>http://www.itu.int/oth/T0202000019/en</sourceUrl>
3302       </references>
3303       <availableFormats>
3304         <!-- Format is from
3305              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
3306         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
3307           <leadingDigits>
3308             1|
3309             77
3310           </leadingDigits>
3311           <format>$1 $2 $3 $4</format>
3312         </numberFormat>
3313         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
3314           <leadingDigits>
3315             [2-68]|
3316             7[246]
3317           </leadingDigits>
3318           <format>$1 $2 $3</format>
3319         </numberFormat>
3320       </availableFormats>
3321       <generalDesc>
3322         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
3323         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
3324       </generalDesc>
3325       <fixedLine>
3326         <nationalNumberPattern>
3327           (?:
3328             2[3-6]|
3329             [34][5-7]|
3330             5[236]|
3331             6[2-46]|
3332             7[246]|
3333             8[2-4]
3334           )\d{5}
3335         </nationalNumberPattern>
3336         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
3337         <exampleNumber>2345678</exampleNumber>
3338       </fixedLine>
3339       <mobile>
3340         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
3341              is in use. -->
3342         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
3343         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3344         <exampleNumber>17123456</exampleNumber>
3345       </mobile>
3346       <!-- No information on other types of phone numbers for Bhutan has been found. -->
3347     </territory>
3348
3349     <!-- Botswana -->
3350     <territory id="BW" countryCode="267" internationalPrefix="00">
3351       <references>
3352         <sourceUrl>http://www.itu.int/oth/T020200001C/en</sourceUrl>
3353       </references>
3354       <availableFormats>
3355         <numberFormat pattern="(\d{3})(\d{4})">
3356           <leadingDigits>[2-6]</leadingDigits>
3357           <format>$1 $2</format>
3358         </numberFormat>
3359         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
3360           <leadingDigits>7</leadingDigits>
3361           <format>$1 $2 $3</format>
3362         </numberFormat>
3363         <numberFormat pattern="(90)(\d{5})">
3364           <leadingDigits>9</leadingDigits>
3365           <format>$1 $2</format>
3366         </numberFormat>
3367       </availableFormats>
3368       <generalDesc>
3369         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
3370         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3371       </generalDesc>
3372       <fixedLine>
3373         <nationalNumberPattern>
3374           (?:
3375             2(?:
3376               4[0-48]|
3377               6[0-24]|
3378               9[0578]
3379             )|
3380             3(?:
3381               1[0235-9]|
3382               55|
3383               6\d|
3384               7[01]|
3385               9[0-57]
3386             )|
3387             4(?:
3388               6[03]|
3389               7[1267]|
3390               9[0-5]
3391             )|
3392             5(?:
3393               3[0389]|
3394               4[0489]|
3395               7[1-47]|
3396               88|
3397               9[0-49]
3398             )|
3399             6(?:
3400               2[1-35]|
3401               5[149]|
3402               8[067]
3403             )
3404           )\d{4}
3405         </nationalNumberPattern>
3406         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3407         <exampleNumber>2401234</exampleNumber>
3408       </fixedLine>
3409       <mobile>
3410         <nationalNumberPattern>
3411           7(?:
3412             [1-356]\d|
3413             4[0-7]|
3414             7[014-7]
3415           )\d{5}
3416         </nationalNumberPattern>
3417         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3418         <exampleNumber>71123456</exampleNumber>
3419       </mobile>
3420       <!-- No reliable information about toll-free numbers can be found; many are written on the
3421            internet like 0800 123 456, but this is not supported by any documentation and no
3422            numbers can be found that actually work. -->
3423       <premiumRate>
3424         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
3425         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3426         <exampleNumber>9012345</exampleNumber>
3427       </premiumRate>
3428       <voip>
3429         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
3430         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3431         <exampleNumber>79101234</exampleNumber>
3432       </voip>
3433     </territory>
3434
3435     <!-- Belarus -->
3436     <!-- Information on national prefix provided by a Belarussian person. -->
3437     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
3438                internationalPrefix="810" nationalPrefixForParsing="8?0?"
3439                nationalPrefix="8" mobileNumberPortableRegion="true">
3440       <references>
3441         <sourceUrl>http://www.eng.beltelecom.by/en/subscribers/phone-codes</sourceUrl>
3442       </references>
3443       <availableFormats>
3444         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3445           pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
3446           <leadingDigits>
3447             17[0-3589]|
3448             2[4-9]|
3449             [34]
3450           </leadingDigits>
3451           <leadingDigits>
3452             17(?:
3453               [02358]|
3454               1[0-2]|
3455               9[0189]
3456             )|
3457             2[4-9]|
3458             [34]
3459           </leadingDigits>
3460           <format>$1 $2-$3-$4</format>
3461         </numberFormat>
3462         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3463           pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
3464           <leadingDigits>
3465             1(?:
3466               5[24]|
3467               6[235]|
3468               7[467]
3469             )|
3470             2(?:
3471               1[246]|
3472               2[25]|
3473               3[26]
3474             )
3475           </leadingDigits>
3476           <leadingDigits>
3477             1(?:
3478               5[24]|
3479               6(?:
3480                 2|
3481                 3[04-9]|
3482                 5[0346-9]
3483               )|
3484               7(?:
3485                 [46]|
3486                 7[37-9]
3487               )
3488             )|
3489             2(?:
3490               1[246]|
3491               2[25]|
3492               3[26]
3493             )
3494           </leadingDigits>
3495           <format>$1 $2-$3-$4</format>
3496         </numberFormat>
3497         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3498           pattern="(\d{4})(\d{2})(\d{3})">
3499           <leadingDigits>
3500             1(?:
3501               5[169]|
3502               6[3-5]|
3503               7[179]
3504             )|
3505             2(?:
3506               1[35]|
3507               2[34]|
3508               3[3-5]
3509             )
3510           </leadingDigits>
3511           <leadingDigits>
3512             1(?:
3513               5[169]|
3514               6(?:
3515                 3[1-3]|
3516                 4|
3517                 5[125]
3518               )|
3519               7(?:
3520                 1[3-9]|
3521                 7[0-24-6]|
3522                 9[2-7]
3523               )
3524             )|
3525             2(?:
3526               1[35]|
3527               2[34]|
3528               3[3-5]
3529             )
3530           </leadingDigits>
3531           <format>$1 $2-$3</format>
3532         </numberFormat>
3533         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3534           pattern="([89]\d{2})(\d{3})(\d{4})">
3535           <leadingDigits>
3536             8[01]|
3537             9
3538           </leadingDigits>
3539           <format>$1 $2 $3</format>
3540         </numberFormat>
3541         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3542           pattern="(8\d{2})(\d{4})(\d{4})">
3543           <leadingDigits>82</leadingDigits>
3544           <format>$1 $2 $3</format>
3545         </numberFormat>
3546       </availableFormats>
3547       <generalDesc>
3548         <nationalNumberPattern>
3549           [1-4]\d{8}|
3550           [89]\d{9,10}
3551         </nationalNumberPattern>
3552         <!-- Numbers are often written without the city code. -->
3553         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
3554       </generalDesc>
3555       <!-- Toll-free and premium rate numbers are not available from abroad. -->
3556       <noInternationalDialling>
3557         <nationalNumberPattern>
3558           8(?:
3559             [013]|
3560             [12]0
3561           )\d{8}|
3562           902\d{7}
3563         </nationalNumberPattern>
3564         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3565         <exampleNumber>82012345678</exampleNumber>
3566       </noInternationalDialling>
3567       <fixedLine>
3568         <nationalNumberPattern>
3569           (?:
3570             1(?:
3571               5(?:
3572                 1[1-5]|
3573                 [24]\d|
3574                 6[2-4]|
3575                 9[1-7]
3576               )|
3577               6(?:
3578                 [235]\d|
3579                 4[1-7]
3580               )|
3581               7\d{2}
3582             )|
3583             2(?:
3584               1(?:
3585                 [246]\d|
3586                 3[0-35-9]|
3587                 5[1-9]
3588               )|
3589               2(?:
3590                 [235]\d|
3591                 4[0-8]
3592               )|
3593               3(?:
3594                 [26]\d|
3595                 3[02-79]|
3596                 4[024-7]|
3597                 5[03-7]
3598               )
3599             )
3600           )\d{5}
3601         </nationalNumberPattern>
3602         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3603         <!-- Using test number for Grodno from the plan. -->
3604         <exampleNumber>152450911</exampleNumber>
3605       </fixedLine>
3606       <mobile>
3607         <nationalNumberPattern>
3608           (?:
3609             2(?:
3610               5[5679]|
3611               9[1-9]
3612             )|
3613             33\d|
3614             44\d
3615           )\d{6}
3616         </nationalNumberPattern>
3617         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3618         <!-- Using test number for BelCel from the plan. -->
3619         <exampleNumber>294911911</exampleNumber>
3620       </mobile>
3621       <tollFree>
3622         <!-- Putting Interactive Polling Service (free) here too. -->
3623         <nationalNumberPattern>
3624           8(?:
3625             0[13]|
3626             20\d
3627           )\d{7}
3628         </nationalNumberPattern>
3629         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3630         <exampleNumber>8011234567</exampleNumber>
3631       </tollFree>
3632       <premiumRate>
3633         <!-- Putting Interactive Polling Service (paid) here too. -->
3634         <nationalNumberPattern>
3635           (?:
3636             810|
3637             902
3638           )\d{7}
3639         </nationalNumberPattern>
3640         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3641         <exampleNumber>9021234567</exampleNumber>
3642       </premiumRate>
3643     </territory>
3644
3645     <!-- Belize -->
3646     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
3647          -->
3648     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
3649       <references>
3650         <sourceUrl>http://www.itu.int/oth/T0202000016/en</sourceUrl>
3651       </references>
3652       <availableFormats>
3653         <numberFormat pattern="(\d{3})(\d{4})">
3654           <leadingDigits>[2-8]</leadingDigits>
3655           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
3656           <format>$1-$2</format>
3657         </numberFormat>
3658         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
3659           <leadingDigits>0</leadingDigits>
3660           <format>$1-$2-$3-$4</format>
3661         </numberFormat>
3662       </availableFormats>
3663       <generalDesc>
3664         <nationalNumberPattern>
3665           [2-8]\d{6}|
3666           0\d{10}
3667         </nationalNumberPattern>
3668         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
3669       </generalDesc>
3670       <fixedLine>
3671         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
3672         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3673         <exampleNumber>2221234</exampleNumber>
3674       </fixedLine>
3675       <mobile>
3676         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
3677              to these numbers or many numbers have been found online. -->
3678         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
3679         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3680         <exampleNumber>6221234</exampleNumber>
3681       </mobile>
3682       <!-- We don't know how these would be dialled internationally - it is possible that they can't
3683            be dialled internationally at all - so we represent the leading 0 as part of the number.
3684            Information from http://www.belizetelemedia.net. -->
3685       <tollFree>
3686         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
3687         <possibleNumberPattern>\d{11}</possibleNumberPattern>
3688         <exampleNumber>08001234123</exampleNumber>
3689       </tollFree>
3690     </territory>
3691
3692     <!-- Canada -->
3693     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1"
3694                mobileNumberPortableRegion="true">
3695       <references>
3696         <sourceUrl>http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm</sourceUrl>
3697       </references>
3698       <generalDesc>
3699         <!-- NANPA country - uses US formatting rules -->
3700         <nationalNumberPattern>
3701           [2-9]\d{9}|
3702           3\d{6}
3703         </nationalNumberPattern>
3704         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3705       </generalDesc>
3706       <fixedLine>
3707         <nationalNumberPattern>
3708           (?:
3709             2(?:
3710               04|
3711               [23]6|
3712               [48]9|
3713               50
3714             )|
3715             3(?:
3716               06|
3717               43|
3718               65
3719             )|
3720             4(?:
3721               03|
3722               1[68]|
3723               3[178]|
3724               50
3725             )|
3726             5(?:
3727               06|
3728               1[49]|
3729               79|
3730               8[17]
3731             )|
3732             6(?:
3733               0[04]|
3734               13|
3735               39|
3736               47
3737             )|
3738             7(?:
3739               0[59]|
3740               78|
3741               8[02]
3742             )|
3743             8(?:
3744               [06]7|
3745               19|
3746               73
3747             )|
3748             90[25]
3749           )[2-9]\d{6}|
3750           310\d{4}
3751         </nationalNumberPattern>
3752         <exampleNumber>2042345678</exampleNumber>
3753       </fixedLine>
3754       <mobile>
3755         <nationalNumberPattern>
3756           (?:
3757             2(?:
3758               04|
3759               [23]6|
3760               [48]9|
3761               50
3762             )|
3763             3(?:
3764               06|
3765               43|
3766               65
3767             )|
3768             4(?:
3769               03|
3770               1[68]|
3771               3[178]|
3772               50
3773             )|
3774             5(?:
3775               06|
3776               1[49]|
3777               79|
3778               8[17]
3779             )|
3780             6(?:
3781               0[04]|
3782               13|
3783               39|
3784               47
3785             )|
3786             7(?:
3787               0[59]|
3788               78|
3789               8[02]
3790             )|
3791             8(?:
3792               [06]7|
3793               19|
3794               73
3795             )|
3796             90[25]
3797           )[2-9]\d{6}
3798         </nationalNumberPattern>
3799         <exampleNumber>2042345678</exampleNumber>
3800       </mobile>
3801       <tollFree>
3802         <nationalNumberPattern>
3803           8(?:
3804             00|
3805             44|
3806             55|
3807             66|
3808             77|
3809             88
3810           )[2-9]\d{6}|
3811           310\d{4}
3812         </nationalNumberPattern>
3813         <exampleNumber>8002123456</exampleNumber>
3814       </tollFree>
3815       <premiumRate>
3816         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3817         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3818         <exampleNumber>9002123456</exampleNumber>
3819       </premiumRate>
3820       <personalNumber>
3821         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3822         <nationalNumberPattern>
3823           5(?:
3824             00|
3825             33|
3826             44|
3827             66|
3828             77
3829           )[2-9]\d{6}
3830         </nationalNumberPattern>
3831         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3832         <exampleNumber>5002345678</exampleNumber>
3833       </personalNumber>
3834     </territory>
3835
3836     <!-- Cocos Islands -->
3837     <!-- Metadata shared with Australia. -->
3838     <!-- References state Cocos Islands have fixed line numbers starting +61 8 9162. -->
3839     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
3840                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
3841                nationalPrefix="0">
3842       <references>
3843         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
3844         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
3845       </references>
3846       <!-- Uses AU formatting rules. -->
3847       <!-- General desc and fixed line rules different from Australia. -->
3848       <generalDesc>
3849         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
3850         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3851       </generalDesc>
3852       <fixedLine>
3853         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
3854         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
3855         <exampleNumber>891621234</exampleNumber>
3856       </fixedLine>
3857       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
3858       <mobile>
3859         <nationalNumberPattern>
3860           14(?:
3861             5\d|
3862             71
3863           )\d{5}|
3864           4(?:
3865             [0-2]\d|
3866             3[0-57-9]|
3867             4[47-9]|
3868             5[0-25-9]|
3869             6[6-9]|
3870             7[03-9]|
3871             8[17-9]|
3872             9[017-9]
3873           )\d{6}
3874         </nationalNumberPattern>
3875         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3876         <exampleNumber>412345678</exampleNumber>
3877       </mobile>
3878       <tollFree>
3879         <nationalNumberPattern>
3880           1(?:
3881             80(?:
3882               0\d{2}
3883             )?|
3884             3(?:
3885               00\d{2}
3886             )?
3887           )\d{4}
3888         </nationalNumberPattern>
3889         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3890         <exampleNumber>1800123456</exampleNumber>
3891       </tollFree>
3892       <premiumRate>
3893         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
3894         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3895         <exampleNumber>1900123456</exampleNumber>
3896       </premiumRate>
3897       <personalNumber>
3898         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
3899         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3900         <exampleNumber>500123456</exampleNumber>
3901       </personalNumber>
3902       <voip>
3903         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
3904         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3905         <exampleNumber>550123456</exampleNumber>
3906       </voip>
3907     </territory>
3908
3909     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
3910     <territory id="CD" countryCode="243" internationalPrefix="00"
3911                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
3912       <references>
3913         <sourceUrl>http://www.itu.int/oth/T0202000037/en</sourceUrl>
3914       </references>
3915       <availableFormats>
3916         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3917           <leadingDigits>12</leadingDigits>
3918           <format>$1 $2 $3</format>
3919         </numberFormat>
3920         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
3921           <leadingDigits>
3922             8[0-2459]|
3923             9
3924           </leadingDigits>
3925           <format>$1 $2 $3</format>
3926         </numberFormat>
3927         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
3928           <leadingDigits>88</leadingDigits>
3929           <format>$1 $2 $3</format>
3930         </numberFormat>
3931         <numberFormat pattern="(\d{2})(\d{5})">
3932           <leadingDigits>[1-6]</leadingDigits>
3933           <format>$1 $2</format>
3934         </numberFormat>
3935       </availableFormats>
3936       <generalDesc>
3937         <nationalNumberPattern>
3938           [2-6]\d{6}|
3939           [18]\d{6,8}|
3940           9\d{8}
3941         </nationalNumberPattern>
3942         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3943       </generalDesc>
3944       <fixedLine>
3945         <nationalNumberPattern>
3946           1(?:
3947             2\d{7}|
3948             \d{6}
3949           )|
3950           [2-6]\d{6}
3951         </nationalNumberPattern>
3952         <exampleNumber>1234567</exampleNumber>
3953       </fixedLine>
3954       <mobile>
3955         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
3956              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
3957              holdings company http://www.timeturnsholdings.com/products does not show a link for
3958              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
3959              tried were valid. If the holdings company does not respond to requests about this
3960              range and unless we receive further information, we will remove this range. -->
3961         <nationalNumberPattern>
3962           8(?:
3963             [0-2459]\d{2}|
3964             8
3965           )\d{5}|
3966           9[7-9]\d{7}
3967         </nationalNumberPattern>
3968         <exampleNumber>991234567</exampleNumber>
3969       </mobile>
3970     </territory>
3971
3972     <!-- Central African Republic -->
3973     <territory id="CF" countryCode="236" internationalPrefix="00">
3974       <references>
3975         <sourceUrl>http://www.itu.int/oth/T0202000028/en</sourceUrl>
3976       </references>
3977       <availableFormats>
3978         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
3979           <format>$1 $2 $3 $4</format>
3980         </numberFormat>
3981       </availableFormats>
3982       <generalDesc>
3983         <nationalNumberPattern>[278]\d{7}</nationalNumberPattern>
3984         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3985       </generalDesc>
3986       <fixedLine>
3987         <nationalNumberPattern>2[12]\d{6}</nationalNumberPattern>
3988         <exampleNumber>21612345</exampleNumber>
3989       </fixedLine>
3990       <mobile>
3991         <nationalNumberPattern>7[0257]\d{6}</nationalNumberPattern>
3992         <exampleNumber>70012345</exampleNumber>
3993       </mobile>
3994       <premiumRate>
3995         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
3996         <exampleNumber>87761234</exampleNumber>
3997       </premiumRate>
3998     </territory>
3999
4000     <!-- Congo (Rep. of the) (Brazzaville) -->
4001     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
4002       <references>
4003         <sourceUrl>http://www.itu.int/oth/T020200002E/en</sourceUrl>
4004       </references>
4005       <availableFormats>
4006         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
4007           <leadingDigits>[02]</leadingDigits>
4008           <format>$1 $2 $3</format>
4009         </numberFormat>
4010         <numberFormat pattern="(\d)(\d{4})(\d{4})">
4011           <leadingDigits>8</leadingDigits>
4012           <format>$1 $2 $3</format>
4013         </numberFormat>
4014       </availableFormats>
4015       <generalDesc>
4016         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
4017         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4018       </generalDesc>
4019       <fixedLine>
4020         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
4021         <exampleNumber>222123456</exampleNumber>
4022       </fixedLine>
4023       <mobile>
4024         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
4025         <exampleNumber>061234567</exampleNumber>
4026       </mobile>
4027       <!-- Referred to as a "Green number" in the telephone plan. -->
4028       <tollFree>
4029         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4030         <exampleNumber>800123456</exampleNumber>
4031       </tollFree>
4032     </territory>
4033
4034     <!-- Switzerland -->
4035     <territory id="CH" countryCode="41" internationalPrefix="00"
4036                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG"
4037                mobileNumberPortableRegion="true">
4038       <references>
4039         <!-- Under Technical prescriptions: Numbering plan for international carriers. -->
4040         <sourceUrl>http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en</sourceUrl>
4041       </references>
4042       <availableFormats>
4043         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
4044           <leadingDigits>
4045             [2-7]|
4046             [89]1
4047           </leadingDigits>
4048           <format>$1 $2 $3 $4</format>
4049         </numberFormat>
4050         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4051           <leadingDigits>
4052             8[047]|
4053             90
4054           </leadingDigits>
4055           <format>$1 $2 $3</format>
4056         </numberFormat>
4057         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
4058           <leadingDigits>860</leadingDigits>
4059           <format>$1 $2 $3 $4 $5</format>
4060         </numberFormat>
4061       </availableFormats>
4062       <generalDesc>
4063         <nationalNumberPattern>
4064           [2-9]\d{8}|
4065           860\d{9}
4066         </nationalNumberPattern>
4067         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
4068       </generalDesc>
4069       <fixedLine>
4070         <nationalNumberPattern>
4071           (?:
4072             2[12467]|
4073             3[1-4]|
4074             4[134]|
4075             5[256]|
4076             6[12]|
4077             [7-9]1
4078           )\d{7}
4079         </nationalNumberPattern>
4080         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4081         <exampleNumber>212345678</exampleNumber>
4082       </fixedLine>
4083       <mobile>
4084         <nationalNumberPattern>7[5-9]\d{7}</nationalNumberPattern>
4085         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4086         <exampleNumber>781234567</exampleNumber>
4087       </mobile>
4088       <pager>
4089         <!-- https://www.eofcom.admin.ch/eofcom/public/listEofcom_e164Allocated.do -->
4090         <nationalNumberPattern>74[0248]\d{6}</nationalNumberPattern>
4091         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4092         <exampleNumber>740123456</exampleNumber>
4093       </pager>
4094       <tollFree>
4095         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4096         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4097         <exampleNumber>800123456</exampleNumber>
4098       </tollFree>
4099       <premiumRate>
4100         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
4101         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4102         <exampleNumber>900123456</exampleNumber>
4103       </premiumRate>
4104       <sharedCost>
4105         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
4106         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4107         <exampleNumber>840123456</exampleNumber>
4108       </sharedCost>
4109       <personalNumber>
4110         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
4111         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4112         <exampleNumber>878123456</exampleNumber>
4113       </personalNumber>
4114       <uan>
4115         <!-- Used for corporate networks. -->
4116         <nationalNumberPattern>5[18]\d{7}</nationalNumberPattern>
4117         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4118         <exampleNumber>581234567</exampleNumber>
4119       </uan>
4120       <voicemail>
4121         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
4122         <possibleNumberPattern>\d{12}</possibleNumberPattern>
4123         <exampleNumber>860123456789</exampleNumber>
4124       </voicemail>
4125     </territory>
4126
4127     <!-- Côte d'Ivoire -->
4128     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
4129       <references>
4130         <sourceUrl>http://www.itu.int/oth/T0202000031/en</sourceUrl>
4131       </references>
4132       <availableFormats>
4133         <!-- Using format from online yellow pages over format implied in national numbering plan.
4134              -->
4135         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4136           <format>$1 $2 $3 $4</format>
4137         </numberFormat>
4138       </availableFormats>
4139       <generalDesc>
4140         <nationalNumberPattern>[02-7]\d{7}</nationalNumberPattern>
4141         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4142       </generalDesc>
4143       <fixedLine>
4144         <nationalNumberPattern>
4145           (?:
4146             2(?:
4147               0[023]|
4148               1[02357]|
4149               [23][045]|
4150               4[03-5]
4151             )|
4152             3(?:
4153               0[06]|
4154               1[069]|
4155               [2-4][07]|
4156               5[09]|
4157               6[08]
4158             )
4159           )\d{5}
4160         </nationalNumberPattern>
4161         <exampleNumber>21234567</exampleNumber>
4162       </fixedLine>
4163       <mobile>
4164         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 6[15] because SMS messages have been
4165              successfully delivered. Supported by numbers found on the internet. The prefix 56 was
4166              assigned to MTN in July 2013:
4167              http://www.atci.ci/images/stories/pdf/decisions-dg/decision_002.pdf
4168              The prefix 75 is from an open-source bug report.
4169              50 has been removed since Warid seems to have stopped operation in Côte d'Ivoire. -->
4170           <nationalNumberPattern>
4171           (?:
4172             0[1-9]|
4173             4[0-24-9]|
4174             5[4-9]|
4175             6[015-79]|
4176             7[57]
4177           )\d{6}
4178         </nationalNumberPattern>
4179         <exampleNumber>01234567</exampleNumber>
4180       </mobile>
4181     </territory>
4182
4183     <!-- Cook Islands -->
4184     <territory id="CK" countryCode="682" internationalPrefix="00">
4185       <references>
4186         <sourceUrl>http://www.itu.int/oth/T020200002F/en</sourceUrl>
4187       </references>
4188       <availableFormats>
4189         <numberFormat pattern="(\d{2})(\d{3})">
4190           <format>$1 $2</format>
4191         </numberFormat>
4192       </availableFormats>
4193       <generalDesc>
4194         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
4195         <possibleNumberPattern>\d{5}</possibleNumberPattern>
4196       </generalDesc>
4197       <fixedLine>
4198         <nationalNumberPattern>
4199           (?:
4200             2\d|
4201             3[13-7]|
4202             4[1-5]
4203           )\d{3}
4204         </nationalNumberPattern>
4205         <exampleNumber>21234</exampleNumber>
4206       </fixedLine>
4207       <mobile>
4208         <nationalNumberPattern>
4209           (?:
4210             5[0-68]|
4211             7\d
4212           )\d{3}
4213         </nationalNumberPattern>
4214         <exampleNumber>71234</exampleNumber>
4215       </mobile>
4216     </territory>
4217
4218     <!-- Chile -->
4219     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
4220     <territory id="CL" countryCode="56"
4221                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
4222                nationalPrefix="0"
4223                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
4224                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
4225       <references>
4226         <sourceUrl>http://www.itu.int/oth/T020200002A/en</sourceUrl>
4227         <sourceUrl>http://en.wikipedia.org/wiki/%2B56</sourceUrl>
4228         <sourceUrl>http://www.subtel.gob.cl/base_numeracion/tabla_numeracion_ido_idd.xlsx</sourceUrl>
4229       </references>
4230       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
4231            we strip here. National destinations may be dialled with a carrier if they are not local
4232            so we extract these carrier codes as well. -->
4233       <availableFormats>
4234         <numberFormat pattern="(\d)(\d{4})(\d{4})"
4235           nationalPrefixFormattingRule="($FG)"
4236           carrierCodeFormattingRule="$CC ($FG)">
4237           <leadingDigits>22</leadingDigits>
4238           <format>$1 $2 $3</format>
4239         </numberFormat>
4240         <numberFormat pattern="(\d{2})(\d{3})(\d{4})"
4241           nationalPrefixFormattingRule="($FG)"
4242           carrierCodeFormattingRule="$CC ($FG)">
4243           <leadingDigits>
4244             [357]|
4245             4[1-35]|
4246             6[13-57]
4247           </leadingDigits>
4248           <format>$1 $2 $3</format>
4249         </numberFormat>
4250         <numberFormat pattern="(9)(\d{4})(\d{4})">
4251           <leadingDigits>9</leadingDigits>
4252           <format>$1 $2 $3</format>
4253         </numberFormat>
4254         <numberFormat pattern="(44)(\d{3})(\d{4})">
4255           <leadingDigits>44</leadingDigits>
4256           <format>$1 $2 $3</format>
4257         </numberFormat>
4258         <numberFormat nationalPrefixFormattingRule="$FG"
4259           pattern="([68]00)(\d{3})(\d{3,4})">
4260           <leadingDigits>
4261             60|
4262             8
4263           </leadingDigits>
4264           <format>$1 $2 $3</format>
4265         </numberFormat>
4266         <numberFormat nationalPrefixFormattingRule="$FG"
4267           pattern="(600)(\d{3})(\d{2})(\d{3})">
4268           <leadingDigits>60</leadingDigits>
4269           <format>$1 $2 $3 $4</format>
4270         </numberFormat>
4271         <numberFormat nationalPrefixFormattingRule="$FG"
4272           pattern="(1230)(\d{3})(\d{4})">
4273           <leadingDigits>1</leadingDigits>
4274           <format>$1 $2 $3</format>
4275         </numberFormat>
4276         <numberFormat pattern="(\d{5})(\d{4})"
4277           nationalPrefixFormattingRule="($FG)"
4278           carrierCodeFormattingRule="$CC ($FG)">
4279           <leadingDigits>219</leadingDigits>
4280           <format>$1 $2</format>
4281         </numberFormat>
4282         <!-- Format some short numbers as a block. -->
4283         <numberFormat nationalPrefixFormattingRule="$FG"
4284           pattern="(\d{4,5})">
4285           <leadingDigits>[1-9]</leadingDigits>
4286           <format>$1</format>
4287           <intlFormat>NA</intlFormat>
4288         </numberFormat>
4289       </availableFormats>
4290       <generalDesc>
4291         <nationalNumberPattern>
4292           (?:
4293             [2-9]|
4294             600|
4295             123
4296           )\d{7,8}
4297         </nationalNumberPattern>
4298         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4299       </generalDesc>
4300       <noInternationalDialling>
4301         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4302         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4303         <exampleNumber>6001234567</exampleNumber>
4304       </noInternationalDialling>
4305       <fixedLine>
4306         <!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by
4307              inserting a '2' after the area code (which are 2 digits, with the exception of '2').
4308              As of Aug. 2014, all of the prefixes have been switched over to the new plan.
4309              IMPORTANT: The fact that Santiago numbers have a prefix of "22", and that numbers in
4310              other areas have '2' as their third digit, is likely to change in the future. At some
4311              stage, Santiago numbers will probably switch to prefix "2\d", and the third digit in
4312              other areas will probably be allowed to take on other values.
4313              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
4314                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
4315              -->
4316         <nationalNumberPattern>
4317           2(?:
4318             2\d{7}|
4319             1962\d{4}
4320           )|
4321           (?:
4322             3[2-5]|
4323             [47][1-35]|
4324             5[1-3578]|
4325             6[13-57]
4326           )\d{7}
4327         </nationalNumberPattern>
4328         <!-- Area codes do not need to be dialled when dialling within the same area, so the
4329              smallest possible number is length 7. -->
4330         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4331         <exampleNumber>221234567</exampleNumber>
4332       </fixedLine>
4333       <mobile>
4334         <nationalNumberPattern>9[4-9]\d{7}</nationalNumberPattern>
4335         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4336         <exampleNumber>961234567</exampleNumber>
4337       </mobile>
4338       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
4339            from a definitive source. -->
4340       <tollFree>
4341         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
4342         <nationalNumberPattern>
4343           800\d{6}|
4344           1230\d{7}
4345         </nationalNumberPattern>
4346         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
4347         <exampleNumber>800123456</exampleNumber>
4348       </tollFree>
4349       <sharedCost>
4350         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
4351         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4352         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4353         <exampleNumber>6001234567</exampleNumber>
4354       </sharedCost>
4355       <voip>
4356         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
4357         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4358         <exampleNumber>441234567</exampleNumber>
4359       </voip>
4360     </territory>
4361
4362     <!-- Cameroon -->
4363     <territory id="CM" countryCode="237" internationalPrefix="00">
4364       <references>
4365         <sourceUrl>http://www.itu.int/oth/T0202000024/en</sourceUrl>
4366         <sourceUrl>http://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-OB.1063-2014-OAS-PDF-E.pdf</sourceUrl>
4367       </references>
4368       <availableFormats>
4369         <!-- Formatting in the ITU update document aligns with formatting online (all 2 digit
4370              groups). For the new number format with 9 digits the first digit has it's own group.
4371              -->
4372         <numberFormat pattern="([26])(\d{2})(\d{2})(\d{2})(\d{2})">
4373           <leadingDigits>[26]</leadingDigits>
4374           <format>$1 $2 $3 $4 $5</format>
4375         </numberFormat>
4376         <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
4377           <leadingDigits>
4378             [23579]|
4379             88
4380           </leadingDigits>
4381           <format>$1 $2 $3 $4</format>
4382         </numberFormat>
4383         <numberFormat pattern="(800)(\d{2})(\d{3})">
4384           <leadingDigits>80</leadingDigits>
4385           <format>$1 $2 $3</format>
4386         </numberFormat>
4387       </availableFormats>
4388       <generalDesc>
4389         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
4390         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4391       </generalDesc>
4392       <fixedLine>
4393         <!-- Temporarily allow both old (22|33) and new 2(22|33) format. -->
4394         <!-- CDMA numbers are described in a subcategory to fixed line numbers in the ITU update
4395              document, so those prefixes are added to fixed line (24[23]). -->
4396         <nationalNumberPattern>
4397           2(?:
4398              22|
4399              33|
4400              4[23]
4401           )\d{6}|
4402           (?:
4403             22|
4404             33
4405           )\d{6}
4406         </nationalNumberPattern>
4407         <exampleNumber>222123456</exampleNumber>
4408       </fixedLine>
4409       <mobile>
4410         <!-- Temporarily allow both old [579]\d{7} and new 6[5-79]\d{7} format. -->
4411         <nationalNumberPattern>
4412           6[5-79]\d{7}|
4413           [579]\d{7}
4414         </nationalNumberPattern>
4415         <exampleNumber>671234567</exampleNumber>
4416       </mobile>
4417       <tollFree>
4418         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
4419         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4420         <exampleNumber>80012345</exampleNumber>
4421       </tollFree>
4422       <premiumRate>
4423         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
4424              with 88 (usually 880). No information can be found as to whether these are premium rate
4425              or shared cost. -->
4426         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
4427         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4428         <exampleNumber>88012345</exampleNumber>
4429       </premiumRate>
4430     </territory>
4431
4432     <!-- China -->
4433     <territory id="CN" countryCode="86" internationalPrefix="(1[1279]\d{3})?00"
4434                preferredInternationalPrefix="00" nationalPrefix="0"
4435                nationalPrefixForParsing="(1[1279]\d{3})|0">
4436       <references>
4437         <sourceUrl>http://www.itu.int/oth/T020200002B/en</sourceUrl>
4438       </references>
4439       <availableFormats>
4440         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
4441                       nationalPrefixOptionalWhenFormatting="true"
4442                       carrierCodeFormattingRule="$CC $FG">
4443           <leadingDigits>80[2678]</leadingDigits>
4444           <format>$1 $2</format>
4445         </numberFormat>
4446         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
4447           <leadingDigits>[48]00</leadingDigits>
4448           <format>$1 $2 $3</format>
4449         </numberFormat>
4450         <!-- 100xx and 95xxx(x) short numbers without area codes. Without this rule, these short
4451              numbers will be formatted incorrectly by the AsYouTypeFormatter because they overlap
4452              with area codes 010, 095x. These numbers are defined in ShortNumberMetadata.xml but
4453              must be accounted for here. Note although ITU says the format is more like 95 xxx, in
4454              reality no space is used when writing such numbers in China. -->
4455         <numberFormat pattern="(\d{5,6})">
4456           <leadingDigits>
4457             100|
4458             95
4459           </leadingDigits>
4460           <format>$1</format>
4461           <intlFormat>NA</intlFormat>
4462         </numberFormat>
4463         <!-- 100xx and 95xxx(x) numbers with area codes (these numbers without an area code are now
4464              dealt with by ShortNumberMetadata.xml) and 96xxx(x) numbers with area codes (we don't
4465              support these as short numbers because they are only unique within a province, not
4466              within a country). -->
4467         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
4468                       carrierCodeFormattingRule="$CC $FG">
4469           <leadingDigits>
4470             (?:
4471               10|
4472               2\d
4473             )[19]
4474           </leadingDigits>
4475           <leadingDigits>
4476             (?:
4477               10|
4478               2\d
4479             )(?:
4480               10|
4481               9[56]
4482             )
4483           </leadingDigits>
4484           <leadingDigits>
4485             (?:
4486               10|
4487               2\d
4488             )(?:
4489               100|
4490               9[56]
4491             )
4492           </leadingDigits>
4493           <format>$1 $2</format>
4494         </numberFormat>
4495         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{5,6})"
4496                       carrierCodeFormattingRule="$CC $FG">
4497           <leadingDigits>[3-9]</leadingDigits>
4498           <leadingDigits>[3-9]\d{2}[19]</leadingDigits>
4499           <leadingDigits>
4500             [3-9]\d{2}(?:
4501               10|
4502               9[56]
4503             )
4504           </leadingDigits>
4505           <format>$1 $2</format>
4506         </numberFormat>
4507         <!-- Local numbers -->
4508         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
4509              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
4510              people frequently store them in their cellphones. It has to stay before formatting
4511              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
4512              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
4513         <numberFormat pattern="(\d{3,4})(\d{4})">
4514           <leadingDigits>[2-9]</leadingDigits>
4515           <format>$1 $2</format>
4516           <intlFormat>NA</intlFormat>
4517         </numberFormat>
4518         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
4519                       nationalPrefixOptionalWhenFormatting="true"
4520                       carrierCodeFormattingRule="$CC $FG">
4521           <leadingDigits>21</leadingDigits>
4522           <format>$1 $2 $3</format>
4523         </numberFormat>
4524         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
4525                       nationalPrefixOptionalWhenFormatting="true"
4526                       carrierCodeFormattingRule="$CC $FG">
4527           <leadingDigits>
4528             10[1-9]|
4529             2[02-9]
4530           </leadingDigits>
4531           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
4532           <leadingDigits>
4533             10[1-9]|
4534             2[02-9]
4535           </leadingDigits>
4536           <leadingDigits>
4537             10(?:
4538               [1-79]|
4539               8(?:
4540                 [1-9]|
4541                 0[1-9]
4542               )
4543             )|
4544             2[02-9]
4545           </leadingDigits>
4546           <format>$1 $2 $3</format>
4547         </numberFormat>
4548         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
4549                       nationalPrefixOptionalWhenFormatting="true"
4550                       carrierCodeFormattingRule="$CC $FG">
4551           <leadingDigits>
4552             3(?:
4553               11|
4554               7[179]
4555             )|
4556             4(?:
4557               [15]1|
4558               3[12]
4559             )|
4560             5(?:
4561               1|
4562               2[37]|
4563               3[12]|
4564               51|
4565               7[13-79]|
4566               9[15]
4567             )|
4568             7(?:
4569               31|
4570               5[457]|
4571               6[09]|
4572               91
4573             )|
4574             8(?:
4575               71|
4576               98
4577             )
4578           </leadingDigits>
4579           <format>$1 $2 $3</format>
4580         </numberFormat>
4581         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
4582                       nationalPrefixOptionalWhenFormatting="true"
4583                       carrierCodeFormattingRule="$CC $FG">
4584           <leadingDigits>
4585             3(?:
4586               1[02-9]|
4587               35|
4588               49|
4589               5|
4590               7[02-68]|
4591               9[1-68]
4592             )|
4593             4(?:
4594               1[02-9]|
4595               2[179]|
4596               [35][2-9]|
4597               6[4789]|
4598               7\d|
4599               8[23]
4600             )|
4601             5(?:
4602               3[03-9]|
4603               4[36]|
4604               5[02-9]|
4605               6[1-46]|
4606               7[028]|
4607               80|
4608               9[2-46-9]
4609             )|
4610             6(?:
4611               3[1-5]|
4612               6[0238]|
4613               9[12]
4614             )|
4615             7(?:
4616               01|
4617               [1579]|
4618               2[248]|
4619               3[04-9]|
4620               4[3-6]|
4621               6[2368]
4622             )|
4623             8(?:
4624               1[236-8]|
4625               2[5-7]|
4626               3|
4627               5[1-9]|
4628               7[02-9]|
4629               8[3678]|
4630               9[1-7]
4631             )|
4632             9(?:
4633               0[1-3689]|
4634               1[1-79]|
4635               [379]|
4636               4[13]|
4637               5[1-5]
4638             )
4639           </leadingDigits>
4640           <format>$1 $2 $3</format>
4641         </numberFormat>
4642         <numberFormat pattern="(\d{3})(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
4643           <leadingDigits>1[3-578]</leadingDigits>
4644           <format>$1 $2 $3</format>
4645         </numberFormat>
4646         <numberFormat pattern="(10800)(\d{3})(\d{4})">
4647           <leadingDigits>108</leadingDigits>
4648           <leadingDigits>1080</leadingDigits>
4649           <leadingDigits>10800</leadingDigits>
4650           <format>$1 $2 $3</format>
4651         </numberFormat>
4652       </availableFormats>
4653       <generalDesc>
4654         <nationalNumberPattern>
4655           [1-7]\d{6,11}|
4656           8[0-357-9]\d{6,9}|
4657           9\d{7,9}
4658         </nationalNumberPattern>
4659         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
4660       </generalDesc>
4661       <noInternationalDialling>
4662         <nationalNumberPattern>
4663           (?:
4664             4|
4665             (?:
4666               10
4667             )?8
4668           )00\d{7}
4669         </nationalNumberPattern>
4670         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4671         <exampleNumber>4001234567</exampleNumber>
4672       </noInternationalDialling>
4673       <fixedLine>
4674         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
4675              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
4676              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
4677              in the ITU data.
4678              10xxx and 95xxx(x) numbers with area codes are also included here, as they behave
4679              exactly like fixed-line numbers. We don't support them for 4-digit area codes though,
4680              as they don't seem to be used there based on making actual phone calls.
4681          -->
4682         <nationalNumberPattern>
4683           21(?:
4684             100\d{2}|
4685             95\d{3,4}|
4686             \d{8,10}
4687           )|
4688           (?:
4689             10|
4690             2[02-57-9]|
4691             3(?:
4692               11|
4693               7[179]
4694             )|
4695             4(?:
4696               [15]1|
4697               3[12]
4698             )|
4699             5(?:
4700               1\d|
4701               2[37]|
4702               3[12]|
4703               51|
4704               7[13-79]|
4705               9[15]
4706             )|
4707             7(?:
4708               31|
4709               5[457]|
4710               6[09]|
4711               91
4712             )|
4713             8(?:
4714               71|
4715               98
4716             )
4717           )(?:
4718             100\d{2}|
4719             95\d{3,4}|
4720             \d{8}
4721           )|
4722           (?:
4723             3(?:
4724               1[02-9]|
4725               35|
4726               49|
4727               5\d|
4728               7[02-68]|
4729               9[1-68]
4730             )|
4731             4(?:
4732               1[02-9]|
4733               2[179]|
4734               3[3-9]|
4735               5[2-9]|
4736               6[4789]|
4737               7\d|
4738               8[23]
4739             )|
4740             5(?:
4741               3[03-9]|
4742               4[36]|
4743               5[02-9]|
4744               6[1-46]|
4745               7[028]|
4746               80|
4747               9[2-46-9]
4748             )|
4749             6(?:
4750               3[1-5]|
4751               6[0238]|
4752               9[12]
4753             )|
4754             7(?:
4755               01|
4756               [17]\d|
4757               2[248]|
4758               3[04-9]|
4759               4[3-6]|
4760               5[0-3689]|
4761               6[2368]|
4762               9[02-9]
4763             )|
4764             8(?:
4765               1[236-8]|
4766               2[5-7]|
4767               3\d|
4768               5[1-9]|
4769               7[02-9]|
4770               8[3678]|
4771               9[1-7]
4772             )|
4773             9(?:
4774               0[1-3689]|
4775               1[1-79]|
4776               [379]\d|
4777               4[13]|
4778               5[1-5]
4779             )
4780           )(?:
4781             100\d{2}|
4782             95\d{3,4}|
4783             \d{7}
4784           )|
4785           80(?:
4786             29|
4787             6[03578]|
4788             7[018]|
4789             81
4790           )\d{4}
4791         </nationalNumberPattern>
4792         <exampleNumber>1012345678</exampleNumber>
4793       </fixedLine>
4794       <mobile>
4795         <!-- 170, 176, 177 and 178 prefixes are introduced in early 2014 for 4G networks. -->
4796         <nationalNumberPattern>
4797           1(?:
4798             [38]\d|
4799             4[57]|
4800             5[0-35-9]|
4801             7[06-8]
4802           )\d{8}
4803         </nationalNumberPattern>
4804         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4805         <exampleNumber>13123456789</exampleNumber>
4806       </mobile>
4807       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
4808            number plan, and do not seem to have been standardized. The information below is
4809            collected from searching the web. -->
4810       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
4811       <tollFree>
4812         <nationalNumberPattern>
4813           (?:
4814             10
4815           )?800\d{7}
4816         </nationalNumberPattern>
4817         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4818         <exampleNumber>8001234567</exampleNumber>
4819       </tollFree>
4820       <premiumRate>
4821         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
4822         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4823         <exampleNumber>16812345</exampleNumber>
4824       </premiumRate>
4825       <sharedCost>
4826         <!-- 96xxx(x) numbers with area codes are included here. Their costs are not well
4827              documented, but they are thought to be mostly local costs with certain exceptions. We
4828              don't support them for 4-digit area codes though, as they don't seem to be used there
4829              based on online searches. -->
4830         <nationalNumberPattern>
4831           400\d{7}|
4832           (?:
4833             10|
4834             2[0-57-9]|
4835             3(?:
4836               [157]\d|
4837               35|
4838               49|
4839               9[1-68]
4840             )|
4841             4(?:
4842               [17]\d|
4843               2[179]|
4844               [35][1-9]|
4845               6[4789]|
4846               8[23]
4847             )|
4848             5(?:
4849               [1357]\d|
4850               2[37]|
4851               4[36]|
4852               6[1-46]|
4853               80|
4854               9[1-9]
4855             )|
4856             6(?:
4857               3[1-5]|
4858               6[0238]|
4859               9[12]
4860             )|
4861             7(?:
4862               01|
4863               [1579]\d|
4864               2[248]|
4865               3[014-9]|
4866               4[3-6]|
4867               6[023689]
4868             )|
4869             8(?:
4870               1[236-8]|
4871               2[5-7]|
4872               [37]\d|
4873               5[1-9]|
4874               8[3678]|
4875               9[1-8]
4876             )|
4877             9(?:
4878               0[1-3689]|
4879               1[1-79]|
4880               [379]\d|
4881               4[13]|
4882               5[1-5]
4883             )
4884           )96\d{3,4}
4885         </nationalNumberPattern>
4886         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
4887         <exampleNumber>4001234567</exampleNumber>
4888       </sharedCost>
4889     </territory>
4890
4891     <!-- Colombia -->
4892     <!-- Extra international dialling prefixes from http://www.claro.com.co and
4893          http://www.tigo.com.co. -->
4894     <!-- 05 and 005 are for Orbitel: co.orbitel.com -->
4895     <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])"
4896                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?"
4897                mobileNumberPortableRegion="true">
4898       <references>
4899         <sourceUrl>http://www.itu.int/oth/T020200002C/en</sourceUrl>
4900         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia</sourceUrl>
4901       </references>
4902       <availableFormats>
4903         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
4904           nationalPrefixFormattingRule="($FG)">
4905           <leadingDigits>
4906             1(?:
4907               8[2-9]|
4908               9[0-3]|
4909               [2-7]
4910             )|
4911             [24-8]
4912           </leadingDigits>
4913           <leadingDigits>
4914             1(?:
4915               8[2-9]|
4916               9(?:
4917                 09|
4918                 [1-3]
4919               )|
4920               [2-7]
4921             )|
4922             [24-8]
4923           </leadingDigits>
4924           <format>$1 $2</format>
4925         </numberFormat>
4926         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
4927           <leadingDigits>3</leadingDigits>
4928           <format>$1 $2</format>
4929         </numberFormat>
4930         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
4931           <leadingDigits>
4932             1(?:
4933               80|
4934               9[04]
4935             )
4936           </leadingDigits>
4937           <leadingDigits>
4938             1(?:
4939               800|
4940               9(?:
4941                 0[01]|
4942                 4[78]
4943               )
4944             )
4945           </leadingDigits>
4946           <format>$1-$2-$3</format>
4947           <intlFormat>$1 $2 $3</intlFormat>
4948         </numberFormat>
4949       </availableFormats>
4950       <generalDesc>
4951         <nationalNumberPattern>
4952           (?:
4953             [13]\d{0,3}|
4954             [24-8]
4955           )\d{7}
4956         </nationalNumberPattern>
4957         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4958       </generalDesc>
4959       <fixedLine>
4960         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
4961         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4962         <exampleNumber>12345678</exampleNumber>
4963       </fixedLine>
4964       <mobile>
4965         <nationalNumberPattern>
4966           3(?:
4967             0[0-5]|
4968             1\d|
4969             2[0-2]|
4970             5[01]
4971           )\d{7}
4972         </nationalNumberPattern>
4973         <possibleNumberPattern>\d{10}</possibleNumberPattern>
4974         <exampleNumber>3211234567</exampleNumber>
4975       </mobile>
4976       <tollFree>
4977         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
4978         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4979         <exampleNumber>18001234567</exampleNumber>
4980       </tollFree>
4981       <premiumRate>
4982         <nationalNumberPattern>
4983           19(?:
4984             0[01]|
4985             4[78]
4986           )\d{7}
4987         </nationalNumberPattern>
4988         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4989         <exampleNumber>19001234567</exampleNumber>
4990       </premiumRate>
4991     </territory>
4992
4993     <!-- Costa Rica -->
4994     <territory id="CR" countryCode="506" internationalPrefix="00"
4995                nationalPrefixForParsing="(19(?:0[012468]|1[09]|20|66|77|99))"
4996                carrierCodeFormattingRule="$CC $FG">
4997       <references>
4998         <sourceUrl>http://www.itu.int/oth/T0202000030/en</sourceUrl>
4999       </references>
5000       <availableFormats>
5001         <numberFormat pattern="(\d{4})(\d{4})">
5002           <leadingDigits>
5003             [24-7]|
5004             8[3-9]
5005           </leadingDigits>
5006           <format>$1 $2</format>
5007         </numberFormat>
5008         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
5009           <leadingDigits>[89]0</leadingDigits>
5010           <format>$1-$2-$3</format>
5011         </numberFormat>
5012       </availableFormats>
5013       <generalDesc>
5014         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
5015         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
5016       </generalDesc>
5017       <fixedLine>
5018         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
5019         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5020         <exampleNumber>22123456</exampleNumber>
5021       </fixedLine>
5022       <mobile>
5023         <nationalNumberPattern>
5024           5(?:
5025             0[01]|
5026             7[0-3]
5027           )\d{5}|
5028           6(?:
5029             [0-2]\d|
5030             30
5031           )\d{5}|
5032           7[0-3]\d{6}|
5033           8[3-9]\d{6}
5034         </nationalNumberPattern>
5035         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5036         <exampleNumber>83123456</exampleNumber>
5037       </mobile>
5038       <tollFree>
5039         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
5040         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5041         <exampleNumber>8001234567</exampleNumber>
5042       </tollFree>
5043       <premiumRate>
5044         <!-- Includes "mass calls" numbers with prefix 905. -->
5045         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
5046         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5047         <exampleNumber>9001234567</exampleNumber>
5048       </premiumRate>
5049       <voip>
5050         <!-- Including trunking service numbers starting with 5100. 4001 (callmyway.com) was added
5051              from an open-source bug report supported by numbers found online. -->
5052         <nationalNumberPattern>
5053           210[0-6]\d{4}|
5054           4(?:
5055             0(?:
5056               0[01]\d{4}|
5057               10[0-3]\d{3}|
5058               2(?:
5059                 00\d{3}|
5060                 900\d{2}
5061               )|
5062               3[01]\d{4}|
5063               40\d{4}|
5064               5\d{5}|
5065               60\d{4}|
5066               70[01]\d{3}|
5067               8[0-2]\d{4}
5068             )|
5069             1[01]\d{5}|
5070             20[0-3]\d{4}|
5071             400\d{4}|
5072             70[0-2]\d{4}
5073           )|
5074           5100\d{4}
5075         </nationalNumberPattern>
5076         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5077         <exampleNumber>40001234</exampleNumber>
5078       </voip>
5079     </territory>
5080
5081     <!-- Cuba -->
5082     <territory id="CU" countryCode="53" internationalPrefix="119"
5083                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
5084       <references>
5085         <sourceUrl>http://www.itu.int/oth/T0202000033/en</sourceUrl>
5086       </references>
5087       <availableFormats>
5088         <numberFormat pattern="(\d)(\d{6,7})">
5089           <leadingDigits>7</leadingDigits>
5090           <format>$1 $2</format>
5091         </numberFormat>
5092         <numberFormat pattern="(\d{2})(\d{4,6})">
5093           <leadingDigits>[2-4]</leadingDigits>
5094           <format>$1 $2</format>
5095         </numberFormat>
5096         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5097           <leadingDigits>5</leadingDigits>
5098           <format>$1 $2</format>
5099         </numberFormat>
5100       </availableFormats>
5101       <generalDesc>
5102         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
5103         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
5104       </generalDesc>
5105       <fixedLine>
5106         <nationalNumberPattern>
5107           2[1-4]\d{5,6}|
5108           3(?:
5109             1\d{6}|
5110             [23]\d{4,6}
5111           )|
5112           4(?:
5113             [125]\d{5,6}|
5114             [36]\d{6}|
5115             [78]\d{4,6}
5116           )|
5117           7\d{6,7}
5118         </nationalNumberPattern>
5119         <exampleNumber>71234567</exampleNumber>
5120       </fixedLine>
5121       <mobile>
5122         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
5123         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5124         <exampleNumber>51234567</exampleNumber>
5125       </mobile>
5126     </territory>
5127
5128     <!-- Cape Verde -->
5129     <territory id="CV" countryCode="238" internationalPrefix="0">
5130       <references>
5131         <sourceUrl>http://www.itu.int/oth/T0202000026/en</sourceUrl>
5132       </references>
5133       <availableFormats>
5134         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
5135           <format>$1 $2 $3</format>
5136         </numberFormat>
5137       </availableFormats>
5138       <generalDesc>
5139         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
5140         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5141       </generalDesc>
5142       <fixedLine>
5143         <nationalNumberPattern>
5144           2(?:
5145             2[1-7]|
5146             3[0-8]|
5147             4[12]|
5148             5[1256]|
5149             6\d|
5150             7[1-3]|
5151             8[1-5]
5152           )\d{4}
5153         </nationalNumberPattern>
5154         <exampleNumber>2211234</exampleNumber>
5155       </fixedLine>
5156       <mobile>
5157         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
5158              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
5159              example, and there are plenty of numbers on the internet that start with these
5160              prefixes. -->
5161         <nationalNumberPattern>
5162           (?:
5163             9\d|
5164             59
5165           )\d{5}
5166         </nationalNumberPattern>
5167         <exampleNumber>9911234</exampleNumber>
5168       </mobile>
5169     </territory>
5170
5171     <!-- Curaçao -->
5172     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
5173       <references>
5174         <sourceUrl>http://www.itu.int/oth/T02020000F5/en</sourceUrl>
5175       </references>
5176       <!-- All the formatting patterns for country-code 599 are here. -->
5177       <availableFormats>
5178         <numberFormat pattern="(\d{3})(\d{4})">
5179           <leadingDigits>[13-7]</leadingDigits>
5180           <format>$1 $2</format>
5181         </numberFormat>
5182         <numberFormat pattern="(9)(\d{3})(\d{4})">
5183           <leadingDigits>9</leadingDigits>
5184           <format>$1 $2 $3</format>
5185         </numberFormat>
5186       </availableFormats>
5187       <generalDesc>
5188         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
5189         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
5190       </generalDesc>
5191       <fixedLine>
5192         <nationalNumberPattern>
5193           9(?:
5194             [48]\d{2}|
5195             50\d|
5196             7(?:
5197               2[0-24]|
5198               [34]\d|
5199               6[35-7]|
5200               77|
5201               8[7-9]
5202             )
5203           )\d{4}
5204         </nationalNumberPattern>
5205         <exampleNumber>94151234</exampleNumber>
5206       </fixedLine>
5207       <mobile>
5208         <nationalNumberPattern>
5209           9(?:
5210             5(?:
5211               [1246]\d|
5212               3[01]
5213             )|
5214             6(?:
5215               [16-9]\d|
5216               3[01]
5217             )
5218           )\d{4}
5219         </nationalNumberPattern>
5220         <exampleNumber>95181234</exampleNumber>
5221       </mobile>
5222       <pager>
5223         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
5224         <exampleNumber>95581234</exampleNumber>
5225       </pager>
5226       <sharedCost>
5227         <!-- Value-added services are lumped together under shared cost, since we are not sure
5228              exactly what they are. -->
5229         <nationalNumberPattern>
5230           (?:
5231             10|
5232             69
5233           )\d{5}
5234         </nationalNumberPattern>
5235         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5236         <exampleNumber>1011234</exampleNumber>
5237       </sharedCost>
5238     </territory>
5239
5240     <!-- Christmas Islands -->
5241     <!-- Metadata shared with Australia. -->
5242     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
5243     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
5244                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
5245                nationalPrefix="0">
5246       <references>
5247         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
5248         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
5249       </references>
5250       <!-- Uses AU formatting rules. -->
5251       <!-- General desc and fixed line rules different from Australia. -->
5252       <generalDesc>
5253         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
5254         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5255       </generalDesc>
5256       <fixedLine>
5257         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
5258         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
5259         <exampleNumber>891641234</exampleNumber>
5260       </fixedLine>
5261       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5262       <mobile>
5263         <nationalNumberPattern>
5264           14(?:
5265             5\d|
5266             71
5267           )\d{5}|
5268           4(?:
5269             [0-2]\d|
5270             3[0-57-9]|
5271             4[47-9]|
5272             5[0-25-9]|
5273             6[6-9]|
5274             7[03-9]|
5275             8[17-9]|
5276             9[017-9]
5277           )\d{6}
5278         </nationalNumberPattern>
5279         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5280         <exampleNumber>412345678</exampleNumber>
5281       </mobile>
5282       <tollFree>
5283         <nationalNumberPattern>
5284           1(?:
5285             80(?:
5286               0\d{2}
5287             )?|
5288             3(?:
5289               00\d{2}
5290             )?
5291           )\d{4}
5292         </nationalNumberPattern>
5293         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5294         <exampleNumber>1800123456</exampleNumber>
5295       </tollFree>
5296       <premiumRate>
5297         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
5298         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5299         <exampleNumber>1900123456</exampleNumber>
5300       </premiumRate>
5301       <personalNumber>
5302         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
5303         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5304         <exampleNumber>500123456</exampleNumber>
5305       </personalNumber>
5306       <voip>
5307         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
5308         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5309         <exampleNumber>550123456</exampleNumber>
5310       </voip>
5311     </territory>
5312
5313     <!-- Cyprus -->
5314     <territory id="CY" countryCode="357" internationalPrefix="00" mobileNumberPortableRegion="true">
5315       <references>
5316         <sourceUrl>http://www.itu.int/oth/T0202000034/en</sourceUrl>
5317       </references>
5318       <availableFormats>
5319         <!-- Format from http://www.cyprusyellowpages.com -->
5320         <numberFormat pattern="(\d{2})(\d{6})">
5321           <format>$1 $2</format>
5322         </numberFormat>
5323       </availableFormats>
5324       <generalDesc>
5325         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
5326         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5327       </generalDesc>
5328       <fixedLine>
5329         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
5330         <exampleNumber>22345678</exampleNumber>
5331       </fixedLine>
5332       <mobile>
5333         <!-- Includes paging numbers (they are mixed into the same block). -->
5334         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
5335         <exampleNumber>96123456</exampleNumber>
5336       </mobile>
5337       <tollFree>
5338         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
5339         <exampleNumber>80001234</exampleNumber>
5340       </tollFree>
5341       <premiumRate>
5342         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
5343         <exampleNumber>90012345</exampleNumber>
5344       </premiumRate>
5345       <sharedCost>
5346         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
5347         <exampleNumber>80112345</exampleNumber>
5348       </sharedCost>
5349       <personalNumber>
5350         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
5351         <exampleNumber>70012345</exampleNumber>
5352       </personalNumber>
5353       <uan>
5354         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
5355         <nationalNumberPattern>
5356           (?:
5357             50|
5358             77
5359           )\d{6}
5360         </nationalNumberPattern>
5361         <exampleNumber>77123456</exampleNumber>
5362       </uan>
5363     </territory>
5364
5365     <!-- Czech Rep. -->
5366     <territory id="CZ" countryCode="420" internationalPrefix="00" mobileNumberPortableRegion="true">
5367       <references>
5368         <sourceUrl>http://www.itu.int/oth/T0202000035/en</sourceUrl>
5369         <sourceUrl>http://en.wikipedia.org/wiki/%2B420</sourceUrl>
5370       </references>
5371       <availableFormats>
5372         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
5373           <leadingDigits>
5374             [2-8]|
5375             9[015-7]
5376           </leadingDigits>
5377           <format>$1 $2 $3</format>
5378         </numberFormat>
5379         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
5380           <leadingDigits>96</leadingDigits>
5381           <format>$1 $2 $3 $4</format>
5382         </numberFormat>
5383         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
5384           <leadingDigits>9[36]</leadingDigits>
5385           <format>$1 $2 $3 $4</format>
5386         </numberFormat>
5387       </availableFormats>
5388       <generalDesc>
5389         <nationalNumberPattern>
5390           [2-8]\d{8}|
5391           9\d{8,11}
5392         </nationalNumberPattern>
5393         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5394       </generalDesc>
5395       <fixedLine>
5396         <nationalNumberPattern>
5397           2\d{8}|
5398           (?:
5399             3[1257-9]|
5400             4[16-9]|
5401             5[13-9]
5402           )\d{7}
5403         </nationalNumberPattern>
5404         <exampleNumber>212345678</exampleNumber>
5405       </fixedLine>
5406       <mobile>
5407         <nationalNumberPattern>
5408           (?:
5409             60[1-8]|
5410             7(?:
5411               0[2-5]|
5412               [2379]\d
5413             )
5414           )\d{6}
5415         </nationalNumberPattern>
5416         <exampleNumber>601123456</exampleNumber>
5417       </mobile>
5418       <tollFree>
5419         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
5420         <exampleNumber>800123456</exampleNumber>
5421       </tollFree>
5422       <premiumRate>
5423         <!-- Includes premium rate dial-up. -->
5424         <nationalNumberPattern>
5425           9(?:
5426             0[05689]|
5427             76
5428           )\d{6}
5429         </nationalNumberPattern>
5430         <exampleNumber>900123456</exampleNumber>
5431       </premiumRate>
5432       <sharedCost>
5433         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
5434         <exampleNumber>811234567</exampleNumber>
5435       </sharedCost>
5436       <personalNumber>
5437         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
5438         <exampleNumber>700123456</exampleNumber>
5439       </personalNumber>
5440       <voip>
5441         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
5442         <exampleNumber>910123456</exampleNumber>
5443       </voip>
5444       <uan>
5445         <!-- Numbers belonging to private communication networks are included here. These are
5446              classified as Institutional networks, belonging to institutions like the police, armed
5447              forces and railways, along with a couple of formerly government-owned banks. These
5448              numbers are reachable by the public. -->
5449         <nationalNumberPattern>
5450           9(?:
5451             5\d|
5452             7[234]
5453           )\d{6}
5454         </nationalNumberPattern>
5455         <exampleNumber>972123456</exampleNumber>
5456       </uan>
5457       <voicemail>
5458         <nationalNumberPattern>
5459           9(?:
5460             3\d{9}|
5461             6\d{7,10}
5462           )
5463         </nationalNumberPattern>
5464         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5465         <exampleNumber>93123456789</exampleNumber>
5466       </voicemail>
5467     </territory>
5468
5469     <!-- Germany -->
5470     <territory id="DE" countryCode="49" internationalPrefix="00"
5471                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
5472                mobileNumberPortableRegion="true">
5473       <references>
5474         <sourceUrl>http://www.itu.int/oth/T0202000051/en</sourceUrl>
5475         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_germany</sourceUrl>
5476       </references>
5477       <availableFormats>
5478         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
5479              these should best be formatted, even though actual usage varies. -->
5480         <numberFormat pattern="(1\d{2})(\d{7,8})">
5481           <leadingDigits>1[67]</leadingDigits>
5482           <format>$1 $2</format>
5483         </numberFormat>
5484         <numberFormat pattern="(1\d{3})(\d{7})">
5485           <leadingDigits>15</leadingDigits>
5486           <format>$1 $2</format>
5487         </numberFormat>
5488         <numberFormat pattern="(\d{2})(\d{3,11})">
5489           <leadingDigits>
5490             3[02]|
5491             40|
5492             [68]9
5493           </leadingDigits>
5494           <format>$1 $2</format>
5495         </numberFormat>
5496         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
5497         <!-- 3 digit area codes. -->
5498         <numberFormat pattern="(\d{3})(\d{3,11})">
5499           <leadingDigits>
5500             2(?:
5501               \d1|
5502               0[2389]|
5503               1[24]|
5504               28|
5505               34
5506             )|
5507             3(?:
5508               [3-9][15]|
5509               40
5510             )|
5511             [4-8][1-9]1|
5512             9(?:
5513               06|
5514               [1-9]1
5515             )
5516           </leadingDigits>
5517           <format>$1 $2</format>
5518         </numberFormat>
5519         <!-- 4 digit area codes. -->
5520         <numberFormat pattern="(\d{4})(\d{2,11})">
5521           <leadingDigits>
5522             [24-6]|
5523             [7-9](?:
5524               \d[1-9]|
5525               [1-9]\d
5526             )|
5527             3(?:
5528               [3569][02-46-9]|
5529               4[2-4679]|
5530               7[2-467]|
5531               8[2-46-8]
5532             )
5533           </leadingDigits>
5534           <leadingDigits>
5535             [24-6]|
5536             [7-9](?:
5537               \d[1-9]|
5538               [1-9]\d
5539             )|
5540             3(?:
5541               3(?:
5542                 0[1-467]|
5543                 2[127-9]|
5544                 3[124578]|
5545                 [46][1246]|
5546                 7[1257-9]|
5547                 8[1256]|
5548                 9[145]
5549               )|
5550               4(?:
5551                 2[135]|
5552                 3[1357]|
5553                 4[13578]|
5554                 6[1246]|
5555                 7[1356]|
5556                 9[1346]
5557               )|
5558               5(?:
5559                 0[14]|
5560                 2[1-3589]|
5561                 3[1357]|
5562                 4[1246]|
5563                 6[1-4]|
5564                 7[1346]|
5565                 8[13568]|
5566                 9[1246]
5567               )|
5568               6(?:
5569                 0[356]|
5570                 2[1-489]|
5571                 3[124-6]|
5572                 4[1347]|
5573                 6[13]|
5574                 7[12579]|
5575                 8[1-356]|
5576                 9[135]
5577               )|
5578               7(?:
5579                 2[1-7]|
5580                 3[1357]|
5581                 4[145]|
5582                 6[1-5]|
5583                 7[1-4]
5584               )|
5585               8(?:
5586                 21|
5587                 3[1468]|
5588                 4[1347]|
5589                 6[0135-9]|
5590                 7[1467]|
5591                 8[136]
5592               )|
5593               9(?:
5594                 0[12479]|
5595                 2[1358]|
5596                 3[1357]|
5597                 4[134679]|
5598                 6[1-9]|
5599                 7[136]|
5600                 8[147]|
5601                 9[1468]
5602               )
5603             )
5604           </leadingDigits>
5605           <format>$1 $2</format>
5606         </numberFormat>
5607         <!-- 5 digit area codes. -->
5608         <numberFormat pattern="(3\d{4})(\d{1,10})">
5609           <leadingDigits>3</leadingDigits>
5610           <format>$1 $2</format>
5611         </numberFormat>
5612         <!-- Note: this is getting ridiculous! How can we format these better? -->
5613         <numberFormat pattern="(800)(\d{7,12})">
5614           <leadingDigits>800</leadingDigits>
5615           <format>$1 $2</format>
5616         </numberFormat>
5617         <!-- Voicemail access numbers for the carrier Blau. -->
5618         <numberFormat pattern="(177)(99)(\d{7,8})">
5619           <leadingDigits>177</leadingDigits>
5620           <leadingDigits>1779</leadingDigits>
5621           <leadingDigits>17799</leadingDigits>
5622           <format>$1 $2 $3</format>
5623         </numberFormat>
5624         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
5625           <leadingDigits>
5626             (?:
5627               18|
5628               90
5629             )0|
5630             137
5631           </leadingDigits>
5632           <leadingDigits>
5633             1(?:
5634               37|
5635               80
5636             )|
5637             900[1359]
5638           </leadingDigits>
5639           <format>$1 $2 $3</format>
5640         </numberFormat>
5641         <numberFormat pattern="(1\d{2})(\d{5,11})">
5642           <leadingDigits>181</leadingDigits>
5643           <format>$1 $2</format>
5644         </numberFormat>
5645         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
5646              way it is generally written. For other prefixes, we fall back to using a three-digit
5647              prefix since we have currently no more information to allow us to format these more
5648              precisely. -->
5649         <numberFormat pattern="(18\d{3})(\d{6})">
5650           <leadingDigits>185</leadingDigits>
5651           <leadingDigits>1850</leadingDigits>
5652           <leadingDigits>18500</leadingDigits>
5653           <format>$1 $2</format>
5654         </numberFormat>
5655         <numberFormat pattern="(18\d{2})(\d{7})">
5656           <leadingDigits>18[68]</leadingDigits>
5657           <format>$1 $2</format>
5658         </numberFormat>
5659         <numberFormat pattern="(18\d)(\d{8})">
5660           <leadingDigits>18[2-579]</leadingDigits>
5661           <format>$1 $2</format>
5662         </numberFormat>
5663         <numberFormat pattern="(700)(\d{4})(\d{4})">
5664           <leadingDigits>700</leadingDigits>
5665           <format>$1 $2 $3</format>
5666         </numberFormat>
5667         <numberFormat pattern="(138)(\d{4})">
5668           <leadingDigits>138</leadingDigits>
5669           <format>$1 $2</format>
5670         </numberFormat>
5671       </availableFormats>
5672       <generalDesc>
5673         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
5674              examined to see if it is valid with the 49 as part of the number. Due to the variable
5675              length of German numbers, this test is hard to do. The national pattern is hence
5676              stricter for numbers starting with 49, to try and remove the country code if the number
5677              begins with 49 whenever possible. -->
5678         <nationalNumberPattern>
5679           [1-35-9]\d{3,14}|
5680           4(?:
5681             [0-8]\d{4,12}|
5682             9(?:
5683               [0-37]\d|
5684               4(?:
5685                 [1-35-8]|
5686                 4\d?
5687               )|
5688               5\d{1,2}|
5689               6[1-8]\d?
5690             )\d{2,8}
5691           )
5692         </nationalNumberPattern>
5693         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
5694       </generalDesc>
5695       <fixedLine>
5696         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
5697              don't seem to respect this. The max-length is hence extended. -->
5698         <nationalNumberPattern>
5699           [246]\d{5,13}|
5700           3(?:
5701             0\d{3,13}|
5702             2\d{9}|
5703             [3-9]\d{4,13}
5704           )|
5705           5(?:
5706             0[2-8]|
5707             [1256]\d|
5708             [38][0-8]|
5709             4\d{0,2}|
5710             [79][0-7]
5711           )\d{3,11}|
5712           7(?:
5713             0[2-8]|
5714             [1-9]\d
5715           )\d{3,10}|
5716           8(?:
5717             0[2-9]|
5718             [1-9]\d
5719           )\d{3,10}|
5720           9(?:
5721             0[6-9]\d{3,10}|
5722             1\d{4,12}|
5723             [2-9]\d{4,11}
5724           )
5725         </nationalNumberPattern>
5726         <exampleNumber>30123456</exampleNumber>
5727       </fixedLine>
5728       <mobile>
5729         <!-- According to
5730              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
5731              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
5732              The ranges 15[056] have been removed from the ITU doc, but information found online
5733              indicates that they may still be working.
5734              -->
5735         <nationalNumberPattern>
5736           1(?:
5737             5[0-2579]\d{8}|
5738             6[023]\d{7,8}|
5739             7(?:
5740               [0-57-9]\d?|
5741               6\d
5742             )\d{7}
5743           )
5744         </nationalNumberPattern>
5745         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5746         <exampleNumber>15123456789</exampleNumber>
5747       </mobile>
5748       <pager>
5749         <nationalNumberPattern>
5750           16(?:
5751             4\d{1,10}|
5752             [89]\d{1,11}
5753           )
5754         </nationalNumberPattern>
5755         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
5756         <exampleNumber>16412345</exampleNumber>
5757       </pager>
5758       <tollFree>
5759         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
5760         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
5761         <exampleNumber>8001234567890</exampleNumber>
5762       </tollFree>
5763       <premiumRate>
5764         <!-- Includes the more expensive of the "televoting" line numbers. See the shared cost
5765              section for more information. -->
5766         <nationalNumberPattern>
5767           137[7-9]\d{6}|
5768           900(?:
5769             [135]\d{6}|
5770             9\d{7}
5771           )
5772         </nationalNumberPattern>
5773         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5774         <exampleNumber>9001234567</exampleNumber>
5775       </premiumRate>
5776       <sharedCost>
5777         <!-- Includes some mass-traffic numbers, used for e.g. phone voting, raffles, since their
5778              costs when dialling from a fixed-line phone is similar.
5779              Prices:
5780              http://www.billiger-telefonieren.de/0180-0137-0900-sonderrufnummern/
5781              Documentation:
5782              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/0137/0137_Nummernplan.pdf?__blob=publicationFile&v=2
5783         -->
5784         <nationalNumberPattern>
5785           1(?:
5786             3(?:
5787               7[1-6]\d{6}|
5788               8\d{4}
5789             )|
5790             80\d{5,11}
5791           )
5792         </nationalNumberPattern>
5793         <possibleNumberPattern>\d{7,14}</possibleNumberPattern>
5794         <exampleNumber>18012345</exampleNumber>
5795       </sharedCost>
5796       <personalNumber>
5797         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
5798         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5799         <exampleNumber>70012345678</exampleNumber>
5800       </personalNumber>
5801       <uan>
5802         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
5803              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
5804              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
5805         <nationalNumberPattern>
5806           18(?:
5807             1\d{5,11}|
5808             [2-9]\d{8}
5809           )
5810         </nationalNumberPattern>
5811         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5812         <exampleNumber>18500123456</exampleNumber>
5813       </uan>
5814       <voicemail>
5815         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
5816         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
5817         <exampleNumber>177991234567</exampleNumber>
5818       </voicemail>
5819     </territory>
5820
5821     <!-- Djibouti -->
5822     <territory id="DJ" countryCode="253" internationalPrefix="00">
5823       <references>
5824         <sourceUrl>http://www.itu.int/oth/T020200003A/en</sourceUrl>
5825       </references>
5826       <availableFormats>
5827         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5828           <format>$1 $2 $3 $4</format>
5829         </numberFormat>
5830       </availableFormats>
5831       <generalDesc>
5832         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
5833         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5834       </generalDesc>
5835       <fixedLine>
5836         <!-- Includes "Numéro long CDMA fixe" numbers. -->
5837         <nationalNumberPattern>
5838           2(?:
5839             1[2-5]|
5840             7[45]
5841           )\d{5}
5842         </nationalNumberPattern>
5843         <exampleNumber>21360003</exampleNumber>
5844       </fixedLine>
5845       <mobile>
5846         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
5847         <exampleNumber>77831001</exampleNumber>
5848       </mobile>
5849     </territory>
5850
5851     <!-- Denmark -->
5852     <territory id="DK" countryCode="45" internationalPrefix="00" mobileNumberPortableRegion="true">
5853       <references>
5854         <sourceUrl>http://www.dba.erhvervsstyrelsen.dk/numbering-lists</sourceUrl>
5855       </references>
5856       <availableFormats>
5857         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5858           <format>$1 $2 $3 $4</format>
5859         </numberFormat>
5860       </availableFormats>
5861       <generalDesc>
5862         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
5863         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5864       </generalDesc>
5865       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
5866            safe. -->
5867       <fixedLine>
5868         <nationalNumberPattern>
5869           (?:
5870             [2-7]\d|
5871             8[126-9]|
5872             9[1-36-9]
5873           )\d{6}
5874         </nationalNumberPattern>
5875         <exampleNumber>32123456</exampleNumber>
5876       </fixedLine>
5877       <mobile>
5878         <nationalNumberPattern>
5879           (?:
5880             [2-7]\d|
5881             8[126-9]|
5882             9[1-36-9]
5883           )\d{6}
5884         </nationalNumberPattern>
5885         <exampleNumber>20123456</exampleNumber>
5886       </mobile>
5887       <tollFree>
5888         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
5889         <exampleNumber>80123456</exampleNumber>
5890       </tollFree>
5891       <premiumRate>
5892         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
5893         <exampleNumber>90123456</exampleNumber>
5894       </premiumRate>
5895     </territory>
5896
5897     <!-- Dominica -->
5898     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
5899                internationalPrefix="011">
5900       <references>
5901         <sourceUrl>http://www.itu.int/oth/T020200003B/en</sourceUrl>
5902       </references>
5903       <generalDesc>
5904         <!-- NANPA country - uses US formatting rules -->
5905         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
5906         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5907       </generalDesc>
5908       <fixedLine>
5909         <nationalNumberPattern>
5910           767(?:
5911             2(?:
5912               55|
5913               66
5914             )|
5915             4(?:
5916               2[01]|
5917               4[0-25-9]
5918             )|
5919             50[0-4]|
5920             70[1-3]
5921           )\d{4}
5922         </nationalNumberPattern>
5923         <exampleNumber>7674201234</exampleNumber>
5924       </fixedLine>
5925       <mobile>
5926         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
5927         <nationalNumberPattern>
5928           767(?:
5929             2(?:
5930               [234689]5|
5931               7[5-7]
5932             )|
5933             31[5-7]|
5934             61[2-7]
5935           )\d{4}
5936         </nationalNumberPattern>
5937         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5938         <exampleNumber>7672251234</exampleNumber>
5939       </mobile>
5940       <tollFree>
5941         <nationalNumberPattern>
5942           8(?:
5943             00|
5944             44|
5945             55|
5946             66|
5947             77|
5948             88
5949           )[2-9]\d{6}
5950         </nationalNumberPattern>
5951         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5952         <exampleNumber>8002123456</exampleNumber>
5953       </tollFree>
5954       <premiumRate>
5955         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
5956         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5957         <exampleNumber>9002123456</exampleNumber>
5958       </premiumRate>
5959       <personalNumber>
5960         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
5961         <nationalNumberPattern>
5962           5(?:
5963             00|
5964             33|
5965             44|
5966             66|
5967             77
5968           )[2-9]\d{6}
5969         </nationalNumberPattern>
5970         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5971         <exampleNumber>5002345678</exampleNumber>
5972       </personalNumber>
5973     </territory>
5974
5975     <!-- Dominican Rep. -->
5976     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
5977                internationalPrefix="011" mobileNumberPortableRegion="true">
5978       <references>
5979         <sourceUrl>http://www.itu.int/oth/T020200003C/en</sourceUrl>
5980       </references>
5981       <generalDesc>
5982         <!-- NANPA country - uses US formatting rules -->
5983         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
5984         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5985       </generalDesc>
5986       <fixedLine>
5987         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
5988              prefixes in the document are classified as such by excluding them from the fixed-line
5989              ranges, but other than this have a generic rule. -->
5990         <nationalNumberPattern>
5991           8(?:
5992             [04]9[2-9]\d{6}|
5993             29(?:
5994               2(?:
5995                 [0-59]\d|
5996                 6[04-9]|
5997                 7[0-27]|
5998                 8[0237-9]
5999               )|
6000               3(?:
6001                 [0-35-9]\d|
6002                 4[7-9]
6003               )|
6004               [45]\d{2}|
6005               6(?:
6006                 [0-27-9]\d|
6007                 [3-5][1-9]|
6008                 6[0135-8]
6009               )|
6010               7(?:
6011                 0[013-9]|
6012                 [1-37]\d|
6013                 4[1-35689]|
6014                 5[1-4689]|
6015                 6[1-57-9]|
6016                 8[1-79]|
6017                 9[1-8]
6018               )|
6019               8(?:
6020                 0[146-9]|
6021                 1[0-48]|
6022                 [248]\d|
6023                 3[1-79]|
6024                 5[01589]|
6025                 6[013-68]|
6026                 7[124-8]|
6027                 9[0-8]
6028               )|
6029               9(?:
6030                 [0-24]\d|
6031                 3[02-46-9]|
6032                 5[0-79]|
6033                 60|
6034                 7[0169]|
6035                 8[57-9]|
6036                 9[02-9]
6037               )
6038             )\d{4}
6039           )
6040         </nationalNumberPattern>
6041         <exampleNumber>8092345678</exampleNumber>
6042       </fixedLine>
6043       <mobile>
6044         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
6045         <exampleNumber>8092345678</exampleNumber>
6046       </mobile>
6047       <tollFree>
6048         <nationalNumberPattern>
6049           8(?:
6050             00|
6051             44|
6052             55|
6053             66|
6054             77|
6055             88
6056           )[2-9]\d{6}
6057         </nationalNumberPattern>
6058         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6059         <exampleNumber>8002123456</exampleNumber>
6060       </tollFree>
6061       <premiumRate>
6062         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6063         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6064         <exampleNumber>9002123456</exampleNumber>
6065       </premiumRate>
6066       <personalNumber>
6067         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6068         <nationalNumberPattern>
6069           5(?:
6070             00|
6071             33|
6072             44|
6073             66|
6074             77
6075           )[2-9]\d{6}
6076         </nationalNumberPattern>
6077         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6078         <exampleNumber>5002345678</exampleNumber>
6079       </personalNumber>
6080    </territory>
6081
6082     <!-- Algeria -->
6083     <territory id="DZ" countryCode="213" internationalPrefix="00"
6084                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6085       <references>
6086         <sourceUrl>http://www.itu.int/oth/T0202000003/en</sourceUrl>
6087         <sourceUrl>http://www.arpt.dz</sourceUrl>
6088       </references>
6089       <availableFormats>
6090         <!-- Formatting from http://www.pagesjaunes-dz.com. -->
6091         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
6092           <leadingDigits>[1-4]</leadingDigits>
6093           <format>$1 $2 $3 $4</format>
6094         </numberFormat>
6095         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
6096           <leadingDigits>[5-8]</leadingDigits>
6097           <format>$1 $2 $3 $4</format>
6098         </numberFormat>
6099         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
6100           <leadingDigits>9</leadingDigits>
6101           <format>$1 $2 $3 $4</format>
6102         </numberFormat>
6103       </availableFormats>
6104       <generalDesc>
6105         <nationalNumberPattern>
6106           (?:
6107             [1-4]|
6108             [5-9]\d
6109           )\d{7}
6110         </nationalNumberPattern>
6111         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6112       </generalDesc>
6113       <fixedLine>
6114         <!-- We include the VSAT lines here. -->
6115         <nationalNumberPattern>
6116           (?:
6117             1\d|
6118             2[014-79]|
6119             3[0-8]|
6120             4[0135689]
6121           )\d{6}|
6122           9619\d{5}
6123         </nationalNumberPattern>
6124         <exampleNumber>12345678</exampleNumber>
6125       </fixedLine>
6126       <mobile>
6127         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6128              Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-4] were also added for
6129              Mobilis Algeria based on evidence found online. -->
6130         <nationalNumberPattern>
6131           (?:
6132             5[4-6]|
6133             7[7-9]
6134           )\d{7}|
6135           6(?:
6136             [569]\d|
6137             7[0-4]
6138           )\d{6}
6139         </nationalNumberPattern>
6140         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6141         <exampleNumber>551234567</exampleNumber>
6142       </mobile>
6143       <tollFree>
6144         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
6145         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6146         <exampleNumber>800123456</exampleNumber>
6147       </tollFree>
6148       <premiumRate>
6149         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
6150         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6151         <exampleNumber>808123456</exampleNumber>
6152       </premiumRate>
6153       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
6154            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
6155            -->
6156       <sharedCost>
6157         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
6158         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6159         <exampleNumber>801123456</exampleNumber>
6160       </sharedCost>
6161       <voip>
6162         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
6163         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6164         <exampleNumber>983123456</exampleNumber>
6165       </voip>
6166    </territory>
6167
6168     <!-- Ecuador -->
6169     <territory id="EC" countryCode="593" internationalPrefix="00"
6170                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
6171                mobileNumberPortableRegion="true">
6172       <references>
6173         <sourceUrl>http://en.wikipedia.org/wiki/+593</sourceUrl>
6174         <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>
6175         <sourceUrl>http://www.itu.int/oth/T020200003D/en</sourceUrl>
6176       </references>
6177       <availableFormats>
6178         <numberFormat pattern="(\d)(\d{3})(\d{4})">
6179           <leadingDigits>
6180             [247]|
6181             [356][2-8]
6182           </leadingDigits>
6183           <format>$1 $2-$3</format>
6184           <intlFormat>$1-$2-$3</intlFormat>
6185         </numberFormat>
6186         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
6187              change on the http://www.conatel.gob.ec site. -->
6188         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
6189           <leadingDigits>9</leadingDigits>
6190           <format>$1 $2 $3</format>
6191         </numberFormat>
6192         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
6193           <leadingDigits>1</leadingDigits>
6194           <format>$1 $2 $3</format>
6195         </numberFormat>
6196       </availableFormats>
6197       <generalDesc>
6198         <nationalNumberPattern>
6199           1\d{9,10}|
6200           [2-8]\d{7}|
6201           9\d{8}
6202         </nationalNumberPattern>
6203         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
6204       </generalDesc>
6205       <fixedLine>
6206         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
6207         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6208         <exampleNumber>22123456</exampleNumber>
6209       </fixedLine>
6210       <mobile>
6211         <nationalNumberPattern>
6212           9(?:
6213             39|
6214             [45][89]|
6215             [67][7-9]|
6216             [89]\d
6217           )\d{6}
6218         </nationalNumberPattern>
6219         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6220         <exampleNumber>991234567</exampleNumber>
6221       </mobile>
6222       <tollFree>
6223         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
6224         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
6225         <exampleNumber>18001234567</exampleNumber>
6226       </tollFree>
6227       <voip>
6228         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
6229         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6230         <exampleNumber>28901234</exampleNumber>
6231       </voip>
6232     </territory>
6233
6234     <!-- Estonia -->
6235     <territory id="EE" countryCode="372" internationalPrefix="00" mobileNumberPortableRegion="true">
6236       <references>
6237         <sourceUrl>http://www.itu.int/oth/T0202000043/en</sourceUrl>
6238         <sourceUrl>http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm</sourceUrl>
6239       </references>
6240       <availableFormats>
6241         <numberFormat pattern="([3-79]\d{2})(\d{4})">
6242           <leadingDigits>
6243             [369]|
6244             4[3-8]|
6245             5(?:
6246               [0-2]|
6247               5[0-478]|
6248               6[45]
6249             )|
6250             7[1-9]
6251           </leadingDigits>
6252           <leadingDigits>
6253             [369]|
6254             4[3-8]|
6255             5(?:
6256               [02]|
6257               1(?:
6258                 [0-8]|
6259                 95
6260               )|
6261               5[0-478]|
6262               6(?:
6263                 4[0-4]|
6264                 5[1-589]
6265               )
6266             )|
6267             7[1-9]
6268           </leadingDigits>
6269           <format>$1 $2</format>
6270         </numberFormat>
6271         <numberFormat pattern="(70)(\d{2})(\d{4})">
6272           <leadingDigits>70</leadingDigits>
6273           <format>$1 $2 $3</format>
6274         </numberFormat>
6275         <numberFormat pattern="(8000)(\d{3})(\d{3})">
6276           <leadingDigits>800</leadingDigits>
6277           <leadingDigits>8000</leadingDigits>
6278           <format>$1 $2 $3</format>
6279         </numberFormat>
6280         <numberFormat pattern="([458]\d{3})(\d{3,4})">
6281           <leadingDigits>
6282             40|
6283             5|
6284             8(?:
6285               00|
6286               [1-5]
6287             )
6288           </leadingDigits>
6289           <leadingDigits>
6290             40|
6291             5|
6292             8(?:
6293               00[1-9]|
6294               [1-5]
6295             )
6296           </leadingDigits>
6297           <format>$1 $2</format>
6298         </numberFormat>
6299       </availableFormats>
6300       <generalDesc>
6301         <nationalNumberPattern>
6302           1\d{3,4}|
6303           [3-9]\d{6,7}|
6304           800\d{6,7}
6305         </nationalNumberPattern>
6306         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
6307       </generalDesc>
6308       <noInternationalDialling>
6309         <nationalNumberPattern>
6310           1\d{3,4}|
6311           800[2-9]\d{3}
6312         </nationalNumberPattern>
6313         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
6314         <exampleNumber>8002123</exampleNumber>
6315       </noInternationalDialling>
6316       <fixedLine>
6317         <nationalNumberPattern>
6318           (?:
6319             3[23589]|
6320             4[3-8]|
6321             6\d|
6322             7[1-9]|
6323             88
6324           )\d{5}
6325         </nationalNumberPattern>
6326         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6327         <exampleNumber>3212345</exampleNumber>
6328       </fixedLine>
6329       <mobile>
6330         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
6331              numbers are 8 digits. -->
6332         <nationalNumberPattern>
6333           (?:
6334             5\d|
6335             8[1-5]
6336           )\d{6}|
6337           5(?:
6338             [02]\d{2}|
6339             1(?:
6340               [0-8]\d|
6341               95
6342             )|
6343             5[0-478]\d|
6344             64[0-4]|
6345             65[1-589]
6346           )\d{3}
6347         </nationalNumberPattern>
6348         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6349         <exampleNumber>51234567</exampleNumber>
6350       </mobile>
6351       <tollFree>
6352         <nationalNumberPattern>
6353           800(?:
6354             0\d{3}|
6355             1\d|
6356             [2-9]
6357           )\d{3}
6358         </nationalNumberPattern>
6359         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6360         <exampleNumber>80012345</exampleNumber>
6361       </tollFree>
6362       <premiumRate>
6363         <!-- Supporting eFax numbers here as well. We aren't sure the exact cost, but have
6364              had user reports that they are expensive to dial. -->
6365         <nationalNumberPattern>
6366           (?:
6367             40\d{2}|
6368             900
6369           )\d{4}
6370         </nationalNumberPattern>
6371         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6372         <exampleNumber>9001234</exampleNumber>
6373       </premiumRate>
6374       <personalNumber>
6375         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
6376         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6377         <exampleNumber>70012345</exampleNumber>
6378       </personalNumber>
6379       <uan>
6380         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
6381              included here. -->
6382         <nationalNumberPattern>
6383           1(?:
6384             2[01245]|
6385             3[0-6]|
6386             4[1-489]|
6387             5[0-59]|
6388             6[1-46-9]|
6389             7[0-27-9]|
6390             8[189]|
6391             9[012]
6392           )\d{1,2}
6393         </nationalNumberPattern>
6394         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
6395         <exampleNumber>12123</exampleNumber>
6396       </uan>
6397     </territory>
6398
6399     <!-- Egypt -->
6400     <territory id="EG" countryCode="20" internationalPrefix="00"
6401                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
6402                mobileNumberPortableRegion="true">
6403        <references>
6404          <sourceUrl>http://www.itu.int/oth/T020200003E/en</sourceUrl>
6405        </references>
6406        <availableFormats>
6407          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
6408               or 19. These are formatted without national prefix, as a block, so do not need to be
6409               listed here. -->
6410          <numberFormat pattern="(\d)(\d{7,8})">
6411            <leadingDigits>[23]</leadingDigits>
6412            <format>$1 $2</format>
6413          </numberFormat>
6414          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
6415            <leadingDigits>
6416              1[012]|
6417              [89]00
6418            </leadingDigits>
6419            <format>$1 $2 $3</format>
6420          </numberFormat>
6421          <numberFormat pattern="(\d{2})(\d{6,7})">
6422            <leadingDigits>
6423              1[35]|
6424              [4-6]|
6425              [89][2-9]
6426            </leadingDigits>
6427            <format>$1 $2</format>
6428          </numberFormat>
6429        </availableFormats>
6430       <generalDesc>
6431         <nationalNumberPattern>
6432           1\d{4,9}|
6433           [2456]\d{8}|
6434           3\d{7}|
6435           [89]\d{8,9}
6436         </nationalNumberPattern>
6437         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6438       </generalDesc>
6439       <fixedLine>
6440         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
6441              that the plan says numbers starting with 15 should be followed by seven digit
6442              subscriber numbers, but some numbers we have found online are in fact six digit.
6443              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
6444              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
6445              092 and with 5 and 6 for 96. -->
6446         <nationalNumberPattern>
6447           (?:
6448             1(?:
6449               3[23]\d|
6450               5(?:
6451                 [23]|
6452                 9\d
6453               )
6454             )|
6455             2[2-4]\d{2}|
6456             3\d{2}|
6457             4(?:
6458               0[2-5]|
6459               [578][23]|
6460               64
6461             )\d|
6462             5(?:
6463               0[2-7]|
6464               [57][23]
6465             )\d|
6466             6[24-689]3\d|
6467             8(?:
6468               2[2-57]|
6469               4[26]|
6470               6[237]|
6471               8[2-4]
6472             )\d|
6473             9(?:
6474               2[27]|
6475               3[24]|
6476               52|
6477               6[2356]|
6478               7[2-4]
6479             )\d
6480           )\d{5}|
6481           1[69]\d{3}
6482         </nationalNumberPattern>
6483         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
6484         <exampleNumber>234567890</exampleNumber>
6485       </fixedLine>
6486       <mobile>
6487         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
6488              started allocating numbers beginning with these prefixes, along with 115 from numbers
6489              found online. Etisalat is using 110. -->
6490         <nationalNumberPattern>
6491           1(?:
6492             0[0-269]|
6493             1[0-245]|
6494             2[0-278]
6495           )\d{7}
6496         </nationalNumberPattern>
6497         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6498         <exampleNumber>1001234567</exampleNumber>
6499       </mobile>
6500       <tollFree>
6501         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
6502         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6503         <exampleNumber>8001234567</exampleNumber>
6504       </tollFree>
6505       <premiumRate>
6506         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
6507         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6508         <exampleNumber>9001234567</exampleNumber>
6509       </premiumRate>
6510     </territory>
6511
6512     <!-- Western Sahara -->
6513     <!-- Country calling code shared with Morocco (MA). -->
6514     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
6515     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
6516                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6517       <references>
6518         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
6519       </references>
6520       <!-- Uses MA formatting rules and shares general description
6521            (non-geographical numbers for Morocco are still valid). -->
6522       <generalDesc>
6523         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
6524         <!-- Closed numbering plan. -->
6525         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6526       </generalDesc>
6527       <fixedLine>
6528         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
6529         <exampleNumber>528812345</exampleNumber>
6530       </fixedLine>
6531       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
6532            numbers to be recognized as available from within Western Sahara. -->
6533       <mobile>
6534         <nationalNumberPattern>
6535           6(?:
6536             0[0-8]|
6537             [12-7]\d|
6538             8[01]|
6539             9[2457-9]
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             )
8264           )\d{6}
8265         </nationalNumberPattern>
8266         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8267         <exampleNumber>231234567</exampleNumber>
8268       </mobile>
8269       <tollFree>
8270         <!-- Found online references to these numbers, although they are not in the plan since they
8271              are not internationally diallable. -->
8272         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8273         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8274         <exampleNumber>80012345</exampleNumber>
8275       </tollFree>
8276       <!-- No premiumRate information can be found. -->
8277     </territory>
8278
8279     <!-- Gibraltar -->
8280     <territory id="GI" countryCode="350" internationalPrefix="00">
8281       <references>
8282         <sourceUrl>http://www.gra.gi/index.php?topic=numbering+plan&amp;section=legislation&amp;site=communications</sourceUrl>
8283       </references>
8284       <availableFormats>
8285         <!-- Most numbers are formatted as a block -->
8286         <numberFormat pattern="(\d{3})(\d{5})">
8287           <leadingDigits>2</leadingDigits>
8288           <format>$1 $2</format>
8289         </numberFormat>
8290       </availableFormats>
8291       <generalDesc>
8292         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
8293         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8294       </generalDesc>
8295       <fixedLine>
8296         <nationalNumberPattern>
8297           2(?:
8298             00\d|
8299             1(?:
8300               6[24-7]|
8301               9\d
8302             )|
8303             2(?:
8304               00|
8305               2[2457]
8306             )
8307           )\d{4}
8308         </nationalNumberPattern>
8309         <exampleNumber>20012345</exampleNumber>
8310       </fixedLine>
8311       <mobile>
8312         <nationalNumberPattern>
8313           (?:
8314             5[46-8]|
8315             62
8316           )\d{6}
8317         </nationalNumberPattern>
8318         <exampleNumber>57123456</exampleNumber>
8319       </mobile>
8320       <tollFree>
8321         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
8322         <exampleNumber>80123456</exampleNumber>
8323       </tollFree>
8324       <premiumRate>
8325         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
8326         <exampleNumber>88123456</exampleNumber>
8327       </premiumRate>
8328       <sharedCost>
8329         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
8330         <exampleNumber>87123456</exampleNumber>
8331       </sharedCost>
8332     </territory>
8333
8334     <!-- Greenland -->
8335     <territory id="GL" countryCode="299" internationalPrefix="00">
8336       <references>
8337         <sourceUrl>http://www.itu.int/oth/T0202000056/en</sourceUrl>
8338       </references>
8339       <availableFormats>
8340         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
8341           <format>$1 $2 $3</format>
8342         </numberFormat>
8343       </availableFormats>
8344       <generalDesc>
8345         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
8346         <possibleNumberPattern>\d{6}</possibleNumberPattern>
8347       </generalDesc>
8348       <fixedLine>
8349         <!-- Including VSAT numbers here. -->
8350         <nationalNumberPattern>
8351           (?:
8352             19|
8353             3[1-6]|
8354             6[14689]|
8355             8[14-79]|
8356             9\d
8357           )\d{4}
8358         </nationalNumberPattern>
8359         <exampleNumber>321000</exampleNumber>
8360       </fixedLine>
8361       <mobile>
8362         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
8363         <exampleNumber>221234</exampleNumber>
8364       </mobile>
8365       <tollFree>
8366         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
8367         <exampleNumber>801234</exampleNumber>
8368       </tollFree>
8369       <voip>
8370         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
8371         <exampleNumber>381234</exampleNumber>
8372       </voip>
8373     </territory>
8374
8375     <!-- Gambia -->
8376     <territory id="GM" countryCode="220" internationalPrefix="00">
8377       <references>
8378         <sourceUrl>http://www.itu.int/oth/T020200004F/en</sourceUrl>
8379       </references>
8380       <availableFormats>
8381         <numberFormat pattern="(\d{3})(\d{4})">
8382           <format>$1 $2</format>
8383         </numberFormat>
8384       </availableFormats>
8385       <generalDesc>
8386         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
8387         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8388       </generalDesc>
8389       <fixedLine>
8390         <nationalNumberPattern>
8391           (?:
8392             4(?:
8393               [23]\d{2}|
8394               4(?:
8395                 1[024679]|
8396                 [6-9]\d
8397               )
8398             )|
8399             5(?:
8400               54[0-7]|
8401               6(?:
8402                 [67]\d
8403               )|
8404               7(?:
8405                 1[04]|
8406                 2[035]|
8407                 3[58]|
8408                 48
8409               )
8410             )|
8411             8\d{3}
8412           )\d{3}
8413         </nationalNumberPattern>
8414         <exampleNumber>5661234</exampleNumber>
8415       </fixedLine>
8416       <mobile>
8417         <nationalNumberPattern>
8418           (?:
8419             2[0-6]|
8420             [3679]\d
8421           )\d{5}
8422         </nationalNumberPattern>
8423         <exampleNumber>3012345</exampleNumber>
8424       </mobile>
8425     </territory>
8426
8427     <!-- Guinea -->
8428     <territory id="GN" countryCode="224" internationalPrefix="00">
8429       <references>
8430         <sourceUrl>http://www.itu.int/oth/T020200005B/en</sourceUrl>
8431       </references>
8432       <availableFormats>
8433         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
8434           <leadingDigits>3</leadingDigits>
8435           <format>$1 $2 $3 $4</format>
8436         </numberFormat>
8437         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8438           <leadingDigits>[67]</leadingDigits>
8439           <format>$1 $2 $3 $4</format>
8440         </numberFormat>
8441       </availableFormats>
8442       <generalDesc>
8443         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
8444         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
8445       </generalDesc>
8446       <fixedLine>
8447         <nationalNumberPattern>
8448           30(?:
8449             24|
8450             3[12]|
8451             4[1-35-7]|
8452             5[13]|
8453             6[189]|
8454             [78]1|
8455             9[1478]
8456           )\d{4}
8457         </nationalNumberPattern>
8458         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8459         <exampleNumber>30241234</exampleNumber>
8460       </fixedLine>
8461       <mobile>
8462         <!-- Prefixes here match those assigned to carriers, as per the ITU communication Jan 23rd
8463              2013. -->
8464         <nationalNumberPattern>6[02356]\d{7}</nationalNumberPattern>
8465         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8466         <exampleNumber>601123456</exampleNumber>
8467       </mobile>
8468       <voip>
8469         <!-- Gamma concept network is being listed as VoIP as per
8470              http://www.gammaconcept.com/internet%20sat.html -->
8471         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
8472         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8473         <exampleNumber>722123456</exampleNumber>
8474       </voip>
8475     </territory>
8476
8477     <!-- Guadeloupe -->
8478     <territory id="GP" countryCode="590" internationalPrefix="00"
8479                mainCountryForCode="true" nationalPrefix="0"
8480                nationalPrefixFormattingRule="$NP$FG">
8481       <references>
8482         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
8483         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
8484         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
8485       </references>
8486       <availableFormats>
8487         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
8488           <format>$1 $2-$3</format>
8489         </numberFormat>
8490       </availableFormats>
8491       <generalDesc>
8492         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8493         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8494       </generalDesc>
8495       <fixedLine>
8496         <nationalNumberPattern>
8497           590(?:
8498             0[13468]|
8499             1[012]|
8500             2[0-68]|
8501             3[28]|
8502             4[0-8]|
8503             5[579]|
8504             6[0189]|
8505             70|
8506             8[0-689]|
8507             9\d
8508           )\d{4}
8509         </nationalNumberPattern>
8510         <exampleNumber>590201234</exampleNumber>
8511       </fixedLine>
8512       <mobile>
8513         <!-- Any ranges assigned from
8514              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
8515              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
8516              them. -->
8517         <nationalNumberPattern>
8518           690(?:
8519             0[0-7]|
8520             [1-9]\d
8521           )\d{4}
8522         </nationalNumberPattern>
8523         <exampleNumber>690301234</exampleNumber>
8524       </mobile>
8525     </territory>
8526
8527     <!-- Equatorial Guinea -->
8528     <territory id="GQ" countryCode="240" internationalPrefix="00">
8529       <references>
8530         <sourceUrl>http://www.itu.int/oth/T0202000041/en</sourceUrl>
8531       </references>
8532       <availableFormats>
8533         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
8534           <leadingDigits>[235]</leadingDigits>
8535           <format>$1 $2 $3</format>
8536         </numberFormat>
8537         <numberFormat pattern="(\d{3})(\d{6})">
8538           <leadingDigits>[89]</leadingDigits>
8539           <format>$1 $2</format>
8540         </numberFormat>
8541       </availableFormats>
8542       <generalDesc>
8543         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
8544         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8545       </generalDesc>
8546       <fixedLine>
8547         <nationalNumberPattern>
8548           3(?:
8549             3(?:
8550               3\d[7-9]|
8551               [0-24-9]\d[46]
8552             )|
8553             5\d{2}[7-9]
8554           )\d{4}
8555         </nationalNumberPattern>
8556         <exampleNumber>333091234</exampleNumber>
8557       </fixedLine>
8558       <mobile>
8559         <nationalNumberPattern>
8560           (?:
8561             222|
8562             551
8563           )\d{6}
8564         </nationalNumberPattern>
8565         <exampleNumber>222123456</exampleNumber>
8566       </mobile>
8567       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
8568            they start allocating them there will be a differentiation of prefixes, but this is not
8569            clear now. -->
8570       <tollFree>
8571         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
8572         <exampleNumber>800123456</exampleNumber>
8573       </tollFree>
8574       <premiumRate>
8575         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
8576         <exampleNumber>900123456</exampleNumber>
8577       </premiumRate>
8578     </territory>
8579
8580     <!-- Greece -->
8581     <territory id="GR" countryCode="30" internationalPrefix="00" mobileNumberPortableRegion="true">
8582       <references>
8583         <sourceUrl>http://www.itu.int/oth/T0202000055/en</sourceUrl>
8584         <sourceUrl>http://en.wikipedia.org/wiki/%2B30</sourceUrl>
8585       </references>
8586       <availableFormats>
8587         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
8588           <leadingDigits>
8589             21|
8590             7
8591           </leadingDigits>
8592           <format>$1 $2 $3</format>
8593         </numberFormat>
8594         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
8595           <leadingDigits>
8596             2[2-9]1|
8597             [689]
8598           </leadingDigits>
8599           <format>$1 $2 $3</format>
8600         </numberFormat>
8601         <numberFormat pattern="(2\d{3})(\d{6})">
8602           <leadingDigits>2[2-9][02-9]</leadingDigits>
8603           <format>$1 $2</format>
8604         </numberFormat>
8605       </availableFormats>
8606       <generalDesc>
8607         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
8608         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8609       </generalDesc>
8610       <fixedLine>
8611         <nationalNumberPattern>
8612           2(?:
8613             1\d{2}|
8614             2(?:
8615               2[1-46-9]|
8616               3[1-8]|
8617               4[1-7]|
8618               5[1-4]|
8619               6[1-8]|
8620               7[1-5]|
8621               [89][1-9]
8622             )|
8623             3(?:
8624               1\d|
8625               2[1-57]|
8626               [35][1-3]|
8627               4[13]|
8628               7[1-7]|
8629               8[124-6]|
8630               9[1-79]
8631             )|
8632             4(?:
8633               1\d|
8634               2[1-8]|
8635               3[1-4]|
8636               4[13-5]|
8637               6[1-578]|
8638               9[1-5]
8639             )|
8640             5(?:
8641               1\d|
8642               [29][1-4]|
8643               3[1-5]|
8644               4[124]|
8645               5[1-6]
8646             )|
8647             6(?:
8648               1\d|
8649               3[1245]|
8650               4[1-7]|
8651               5[13-9]|
8652               [269][1-6]|
8653               7[14]|
8654               8[1-5]
8655             )|
8656             7(?:
8657               1\d|
8658               2[1-5]|
8659               3[1-6]|
8660               4[1-7]|
8661               5[1-57]|
8662               6[135]|
8663               9[125-7]
8664             )|
8665             8(?:
8666               1\d|
8667               2[1-5]|
8668               [34][1-4]|
8669               9[1-57]
8670             )
8671           )\d{6}
8672         </nationalNumberPattern>
8673         <exampleNumber>2123456789</exampleNumber>
8674       </fixedLine>
8675       <mobile>
8676         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
8677         <exampleNumber>6912345678</exampleNumber>
8678       </mobile>
8679       <tollFree>
8680         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
8681         <exampleNumber>8001234567</exampleNumber>
8682       </tollFree>
8683       <premiumRate>
8684         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
8685         <exampleNumber>9091234567</exampleNumber>
8686       </premiumRate>
8687       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
8688            rate. -->
8689       <sharedCost>
8690         <nationalNumberPattern>
8691           8(?:
8692             0[16]|
8693             12|
8694             25
8695           )\d{7}
8696         </nationalNumberPattern>
8697         <exampleNumber>8011234567</exampleNumber>
8698       </sharedCost>
8699       <personalNumber>
8700         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8701         <exampleNumber>7012345678</exampleNumber>
8702       </personalNumber>
8703     </territory>
8704
8705     <!-- Guatemala -->
8706     <territory id="GT" countryCode="502" internationalPrefix="00">
8707       <references>
8708         <sourceUrl>http://www.itu.int/oth/T020200005A/en</sourceUrl>
8709         <sourceUrl>http://www.sit.gob.gt/index.php?page=plan-de-numeracion</sourceUrl>
8710         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala</sourceUrl>
8711       </references>
8712       <availableFormats>
8713         <numberFormat pattern="(\d{4})(\d{4})">
8714           <leadingDigits>[2-7]</leadingDigits>
8715           <format>$1 $2</format>
8716         </numberFormat>
8717         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
8718           <leadingDigits>1</leadingDigits>
8719           <format>$1 $2 $3</format>
8720         </numberFormat>
8721       </availableFormats>
8722       <generalDesc>
8723         <nationalNumberPattern>
8724           [2-7]\d{7}|
8725           1[89]\d{9}
8726         </nationalNumberPattern>
8727         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
8728       </generalDesc>
8729       <fixedLine>
8730         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
8731         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8732         <exampleNumber>22456789</exampleNumber>
8733       </fixedLine>
8734       <mobile>
8735         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
8736              they are just reserved. -->
8737         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
8738         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8739         <exampleNumber>51234567</exampleNumber>
8740       </mobile>
8741       <tollFree>
8742         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
8743         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8744         <exampleNumber>18001112222</exampleNumber>
8745       </tollFree>
8746       <premiumRate>
8747         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
8748         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8749         <exampleNumber>19001112222</exampleNumber>
8750       </premiumRate>
8751     </territory>
8752
8753     <!-- Guam -->
8754     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
8755                internationalPrefix="011">
8756       <references>
8757         <sourceUrl>http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel</sourceUrl>
8758       </references>
8759       <generalDesc>
8760         <!-- NANPA country - uses US formatting rules -->
8761         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
8762         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8763       </generalDesc>
8764       <fixedLine>
8765         <!-- Added 671 489/555/720/721 based on information from
8766              http://www.area-codes.com/area-code/area-code-671.asp -->
8767         <nationalNumberPattern>
8768           671(?:
8769             3(?:
8770               00|
8771               3[39]|
8772               4[349]|
8773               55|
8774               6[26]
8775             )|
8776             4(?:
8777               56|
8778               7[1-9]|
8779               8[236-9]
8780             )|
8781             5(?:
8782               55|
8783               6[2-5]|
8784               88
8785             )|
8786             6(?:
8787               3[2-578]|
8788               4[24-9]|
8789               5[34]|
8790               78|
8791               8[5-9]
8792             )|
8793             7(?:
8794               [079]7|
8795               2[0167]|
8796               3[45]|
8797               8[789]
8798             )|
8799             8(?:
8800               [2-5789]8|
8801               6[48]
8802             )|
8803             9(?:
8804               2[29]|
8805               6[79]|
8806               7[179]|
8807               8[789]|
8808               9[78]
8809             )
8810           )\d{4}
8811         </nationalNumberPattern>
8812         <exampleNumber>6713001234</exampleNumber>
8813       </fixedLine>
8814       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
8815            -->
8816       <mobile>
8817         <nationalNumberPattern>
8818           671(?:
8819             3(?:
8820               00|
8821               3[39]|
8822               4[349]|
8823               55|
8824               6[26]
8825             )|
8826             4(?:
8827               56|
8828               7[1-9]|
8829               8[236-9]
8830             )|
8831             5(?:
8832               55|
8833               6[2-5]|
8834               88
8835             )|
8836             6(?:
8837               3[2-578]|
8838               4[24-9]|
8839               5[34]|
8840               78|
8841               8[5-9]
8842             )|
8843             7(?:
8844               [079]7|
8845               2[0167]|
8846               3[45]|
8847               8[789]
8848             )|
8849             8(?:
8850               [2-5789]8|
8851               6[48]
8852             )|
8853             9(?:
8854               2[29]|
8855               6[79]|
8856               7[179]|
8857               8[789]|
8858               9[78]
8859             )
8860           )\d{4}
8861         </nationalNumberPattern>
8862         <exampleNumber>6713001234</exampleNumber>
8863       </mobile>
8864       <tollFree>
8865         <nationalNumberPattern>
8866           8(?:
8867             00|
8868             44|
8869             55|
8870             66|
8871             77|
8872             88
8873           )[2-9]\d{6}
8874         </nationalNumberPattern>
8875         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8876         <exampleNumber>8002123456</exampleNumber>
8877       </tollFree>
8878       <premiumRate>
8879         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8880         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8881         <exampleNumber>9002123456</exampleNumber>
8882       </premiumRate>
8883       <personalNumber>
8884         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8885         <nationalNumberPattern>
8886           5(?:
8887             00|
8888             33|
8889             44|
8890             66|
8891             77
8892           )[2-9]\d{6}
8893         </nationalNumberPattern>
8894         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8895         <exampleNumber>5002345678</exampleNumber>
8896       </personalNumber>
8897     </territory>
8898
8899     <!-- Guinea-Bissau -->
8900     <territory id="GW" countryCode="245" internationalPrefix="00">
8901       <references>
8902         <sourceUrl>http://www.itu.int/oth/T020200005C/en</sourceUrl>
8903       </references>
8904       <availableFormats>
8905         <numberFormat pattern="(\d{3})(\d{4})">
8906           <format>$1 $2</format>
8907         </numberFormat>
8908       </availableFormats>
8909       <generalDesc>
8910         <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
8911         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8912       </generalDesc>
8913       <fixedLine>
8914         <nationalNumberPattern>
8915           3(?:
8916             2[0125]|
8917             3[1245]|
8918             4[12]|
8919             5[1-4]|
8920             70|
8921             9[1-467]
8922           )\d{4}
8923         </nationalNumberPattern>
8924         <exampleNumber>3201234</exampleNumber>
8925       </fixedLine>
8926       <mobile>
8927         <nationalNumberPattern>
8928           (?:
8929             [5-7]\d|
8930             9[012]
8931           )\d{5}
8932         </nationalNumberPattern>
8933         <exampleNumber>5012345</exampleNumber>
8934       </mobile>
8935       <voip>
8936         <nationalNumberPattern>40\d{5}</nationalNumberPattern>
8937         <exampleNumber>4012345</exampleNumber>
8938       </voip>
8939     </territory>
8940
8941     <!-- Guyana -->
8942     <territory id="GY" countryCode="592" internationalPrefix="001">
8943       <references>
8944         <sourceUrl>http://www.itu.int/oth/T020200005D/en</sourceUrl>
8945       </references>
8946       <availableFormats>
8947         <numberFormat pattern="(\d{3})(\d{4})">
8948           <format>$1 $2</format>
8949         </numberFormat>
8950       </availableFormats>
8951       <generalDesc>
8952         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
8953         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8954       </generalDesc>
8955       <fixedLine>
8956         <nationalNumberPattern>
8957           (?:
8958             2(?:
8959               1[6-9]|
8960               2[0-35-9]|
8961               3[1-4]|
8962               5[3-9]|
8963               6\d|
8964               7[0-24-79]
8965             )|
8966             3(?:
8967               2[25-9]|
8968               3\d
8969             )|
8970             4(?:
8971               4[0-24]|
8972               5[56]
8973             )|
8974             77[1-57]
8975           )\d{4}
8976         </nationalNumberPattern>
8977         <exampleNumber>2201234</exampleNumber>
8978       </fixedLine>
8979       <mobile>
8980         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
8981              that SMS messages have been succesfully sent to numbers in the entire range prefixed
8982              with 6. -->
8983         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
8984         <exampleNumber>6091234</exampleNumber>
8985       </mobile>
8986       <tollFree>
8987         <nationalNumberPattern>
8988           (?:
8989             289|
8990             862
8991           )\d{4}
8992         </nationalNumberPattern>
8993         <exampleNumber>2891234</exampleNumber>
8994       </tollFree>
8995       <premiumRate>
8996         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
8997         <exampleNumber>9008123</exampleNumber>
8998       </premiumRate>
8999     </territory>
9000
9001     <!-- Hong Kong -->
9002     <territory id="HK" countryCode="852" internationalPrefix="00" mobileNumberPortableRegion="true">
9003       <references>
9004         <sourceUrl>http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html</sourceUrl>
9005       </references>
9006       <availableFormats>
9007         <numberFormat pattern="(\d{4})(\d{4})">
9008           <leadingDigits>
9009             [235-7]|
9010             [89](?:
9011               0[1-9]|
9012               [1-9]
9013             )
9014           </leadingDigits>
9015           <format>$1 $2</format>
9016         </numberFormat>
9017         <numberFormat pattern="(800)(\d{3})(\d{3})">
9018           <leadingDigits>800</leadingDigits>
9019           <format>$1 $2 $3</format>
9020         </numberFormat>
9021         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
9022           <leadingDigits>900</leadingDigits>
9023           <format>$1 $2 $3 $4</format>
9024         </numberFormat>
9025         <numberFormat pattern="(900)(\d{2,5})">
9026           <leadingDigits>900</leadingDigits>
9027           <format>$1 $2</format>
9028         </numberFormat>
9029       </availableFormats>
9030       <generalDesc>
9031         <!-- Slightly more complex pattern to allow the country code to be stripped off if
9032              necessary. -->
9033         <nationalNumberPattern>
9034           [235-7]\d{7}|
9035           8\d{7,8}|
9036           9\d{4,10}
9037         </nationalNumberPattern>
9038         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9039       </generalDesc>
9040       <fixedLine>
9041         <nationalNumberPattern>
9042           (?:
9043             [23]\d|
9044             5[78]
9045           )\d{6}
9046         </nationalNumberPattern>
9047         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9048         <exampleNumber>21234567</exampleNumber>
9049       </fixedLine>
9050       <mobile>
9051         <nationalNumberPattern>
9052           (?:
9053             5[1-69]\d|
9054             6\d{2}|
9055             9(?:
9056               0[1-9]|
9057               [1-8]\d
9058             )
9059           )\d{5}
9060         </nationalNumberPattern>
9061         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9062         <exampleNumber>51234567</exampleNumber>
9063       </mobile>
9064       <pager>
9065         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
9066         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9067         <exampleNumber>71234567</exampleNumber>
9068       </pager>
9069       <tollFree>
9070         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
9071         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9072         <exampleNumber>800123456</exampleNumber>
9073       </tollFree>
9074       <premiumRate>
9075         <nationalNumberPattern>
9076           900(?:
9077             [0-24-9]\d{7}|
9078             3\d{1,4}
9079           )
9080         </nationalNumberPattern>
9081         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9082         <exampleNumber>90012345678</exampleNumber>
9083       </premiumRate>
9084       <personalNumber>
9085         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
9086         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9087         <exampleNumber>81123456</exampleNumber>
9088       </personalNumber>
9089    </territory>
9090
9091     <!-- Honduras -->
9092     <!-- It seems there is no longer a trunk prefix in use, based on websites like
9093          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
9094          national format. -->
9095     <territory id="HN" countryCode="504" internationalPrefix="00" >
9096       <references>
9097         <sourceUrl>http://www.itu.int/oth/T020200005F/en</sourceUrl>
9098       </references>
9099       <availableFormats>
9100        <numberFormat pattern="(\d{4})(\d{4})">
9101          <format>$1-$2</format>
9102        </numberFormat>
9103       </availableFormats>
9104       <generalDesc>
9105         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
9106         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9107       </generalDesc>
9108       <fixedLine>
9109         <!-- Extra prefixes 227[01389], 228X, 2292 & 260X were added from numbers found online. -->
9110         <nationalNumberPattern>
9111           2(?:
9112             2(?:
9113               0[019]|
9114               1[1-36]|
9115               [23]\d|
9116               4[056]|
9117               5[57]|
9118               7[01389]|
9119               8[0146-9]|
9120               9[012]
9121             )|
9122             4(?:
9123               2[3-59]|
9124               3[13-689]|
9125               4[0-68]|
9126               5[1-35]
9127             )|
9128             5(?:
9129               4[3-5]|
9130               5\d|
9131               6[56]|
9132               74
9133             )|
9134             6(?:
9135               [056]\d|
9136               4[0-378]|
9137               [78][0-8]|
9138               9[01]
9139             )|
9140             7(?:
9141               6[46-9]|
9142               7[02-9]|
9143               8[34]
9144             )|
9145             8(?:
9146               79|
9147               8[0-35789]|
9148               9[1-57-9]
9149             )
9150           )\d{4}
9151         </nationalNumberPattern>
9152         <exampleNumber>22123456</exampleNumber>
9153       </fixedLine>
9154       <mobile>
9155         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
9156         <exampleNumber>91234567</exampleNumber>
9157       </mobile>
9158     </territory>
9159
9160     <!-- Croatia -->
9161     <territory id="HR" countryCode="385" internationalPrefix="00"
9162                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
9163                mobileNumberPortableRegion="true">
9164       <references>
9165         <sourceUrl>http://www.itu.int/oth/T0202000032/en</sourceUrl>
9166         <sourceUrl>http://en.wikipedia.org/wiki/%2B385</sourceUrl>
9167       </references>
9168       <availableFormats>
9169         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
9170              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
9171              XXXX as well. -->
9172        <numberFormat pattern="(1)(\d{4})(\d{3})">
9173          <leadingDigits>1</leadingDigits>
9174          <format>$1 $2 $3</format>
9175        </numberFormat>
9176        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
9177          <leadingDigits>6[09]</leadingDigits>
9178          <format>$1 $2 $3</format>
9179        </numberFormat>
9180        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
9181          <leadingDigits>62</leadingDigits>
9182          <format>$1 $2 $3</format>
9183        </numberFormat>
9184        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
9185          <leadingDigits>[2-5]</leadingDigits>
9186           <format>$1 $2 $3</format>
9187         </numberFormat>
9188         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
9189           <leadingDigits>9</leadingDigits>
9190           <format>$1 $2 $3</format>
9191         </numberFormat>
9192         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
9193           <leadingDigits>9</leadingDigits>
9194           <format>$1 $2 $3</format>
9195         </numberFormat>
9196         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
9197           <leadingDigits>9</leadingDigits>
9198           <format>$1 $2 $3 $4</format>
9199         </numberFormat>
9200         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
9201           <leadingDigits>
9202             6[145]|
9203             7
9204           </leadingDigits>
9205           <format>$1 $2 $3</format>
9206         </numberFormat>
9207         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
9208           <leadingDigits>
9209             6[145]|
9210             7
9211           </leadingDigits>
9212           <format>$1 $2 $3</format>
9213         </numberFormat>
9214         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
9215           <leadingDigits>8</leadingDigits>
9216           <format>$1 $2 $3</format>
9217         </numberFormat>
9218         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
9219           <leadingDigits>8</leadingDigits>
9220           <format>$1 $2 $3</format>
9221         </numberFormat>
9222       </availableFormats>
9223       <generalDesc>
9224         <nationalNumberPattern>
9225           [1-7]\d{5,8}|
9226           [89]\d{6,11}
9227         </nationalNumberPattern>
9228         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
9229       </generalDesc>
9230       <fixedLine>
9231         <nationalNumberPattern>
9232           1\d{7}|
9233           (?:
9234             2[0-3]|
9235             3[1-5]|
9236             4[02-47-9]|
9237             5[1-3]
9238           )\d{6}
9239         </nationalNumberPattern>
9240         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
9241         <exampleNumber>12345678</exampleNumber>
9242       </fixedLine>
9243       <uan>
9244         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
9245              are numbers on the internet with 6 or 7 digits after the prefix. -->
9246         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
9247         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
9248         <exampleNumber>62123456</exampleNumber>
9249       </uan>
9250       <mobile>
9251         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
9252         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
9253         <exampleNumber>912345678</exampleNumber>
9254       </mobile>
9255       <tollFree>
9256         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
9257         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9258         <exampleNumber>8001234567</exampleNumber>
9259       </tollFree>
9260       <premiumRate>
9261         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
9262              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
9263              -->
9264         <nationalNumberPattern>
9265           6(?:
9266             [09]\d{7}|
9267             [145]\d{4,7}
9268           )
9269         </nationalNumberPattern>
9270         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9271         <exampleNumber>611234</exampleNumber>
9272       </premiumRate>
9273       <personalNumber>
9274         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
9275         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9276         <exampleNumber>741234567</exampleNumber>
9277       </personalNumber>
9278     </territory>
9279
9280     <!-- Haiti -->
9281     <territory id="HT" countryCode="509" internationalPrefix="00">
9282       <references>
9283         <sourceUrl>http://www.itu.int/oth/T020200005E/en</sourceUrl>
9284         <sourceUrl>http://www.numberingplans.com/</sourceUrl>
9285       </references>
9286       <availableFormats>
9287         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
9288           <format>$1 $2 $3</format>
9289         </numberFormat>
9290       </availableFormats>
9291       <generalDesc>
9292         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9293         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9294       </generalDesc>
9295       <fixedLine>
9296         <!-- The prefix 24 seems to be also used, based on online searches. -->
9297         <nationalNumberPattern>
9298           2(?:
9299             [24]\d|
9300             5[1-5]|
9301             94
9302           )\d{5}
9303         </nationalNumberPattern>
9304         <exampleNumber>22453300</exampleNumber>
9305       </fixedLine>
9306       <mobile>
9307         <!-- The prefix 31 seems to be also used, based on online searches. -->
9308         <nationalNumberPattern>
9309           (?:
9310             3[1-9]|
9311             4\d
9312           )\d{6}
9313         </nationalNumberPattern>
9314         <exampleNumber>34101234</exampleNumber>
9315       </mobile>
9316       <tollFree>
9317         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
9318              without making any further distinction. However, http://www.numberingplans.com/ seems
9319              to suggest they are free. -->
9320         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
9321         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9322         <exampleNumber>80012345</exampleNumber>
9323       </tollFree>
9324       <voip>
9325         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
9326              98[89]\d{5}. -->
9327         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
9328         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9329         <exampleNumber>98901234</exampleNumber>
9330       </voip>
9331     </territory>
9332
9333     <!-- Hungary -->
9334     <territory id="HU" countryCode="36" internationalPrefix="00"
9335                nationalPrefix="06" nationalPrefixFormattingRule="($FG)"
9336                mobileNumberPortableRegion="true">
9337       <references>
9338         <sourceUrl>http://www.itu.int/oth/T0202000061/en</sourceUrl>
9339       </references>
9340       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
9341            by a Hungarian person and following the yellow pages) is to omit this when formatting.
9342            Yellow pages: http://www.aranyoldalak.hu -->
9343       <availableFormats>
9344         <numberFormat pattern="(1)(\d{3})(\d{4})">
9345           <leadingDigits>1</leadingDigits>
9346           <format>$1 $2 $3</format>
9347         </numberFormat>
9348         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9349           <leadingDigits>[2-9]</leadingDigits>
9350           <format>$1 $2 $3</format>
9351         </numberFormat>
9352       </availableFormats>
9353       <generalDesc>
9354         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
9355         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9356       </generalDesc>
9357       <noInternationalDialling>
9358         <nationalNumberPattern>[48]0\d{6}</nationalNumberPattern>
9359         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9360         <exampleNumber>80123456</exampleNumber>
9361       </noInternationalDialling>
9362       <fixedLine>
9363         <!-- Includes numbers for corporate networks. -->
9364         <nationalNumberPattern>
9365           (?:
9366             1\d|
9367             2(?:
9368               1\d|
9369               [2-9]
9370             )|
9371             3[2-7]|
9372             4[24-9]|
9373             5[2-79]|
9374             6[23689]|
9375             7(?:
9376               1\d|
9377               [2-9]
9378             )|
9379             8[2-57-9]|
9380             9[2-69]
9381           )\d{6}
9382         </nationalNumberPattern>
9383         <exampleNumber>12345678</exampleNumber>
9384       </fixedLine>
9385       <mobile>
9386         <nationalNumberPattern>
9387           (?:
9388             [27]0|
9389             3[01]
9390           )\d{7}
9391         </nationalNumberPattern>
9392         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9393         <exampleNumber>201234567</exampleNumber>
9394       </mobile>
9395       <tollFree>
9396         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
9397         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9398         <exampleNumber>80123456</exampleNumber>
9399       </tollFree>
9400       <premiumRate>
9401         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
9402         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9403         <exampleNumber>90123456</exampleNumber>
9404       </premiumRate>
9405       <sharedCost>
9406         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
9407         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9408         <exampleNumber>40123456</exampleNumber>
9409       </sharedCost>
9410     </territory>
9411
9412     <!-- Indonesia -->
9413     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
9414                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9415       <references>
9416         <!-- From 2001, very out of date. -->
9417         <sourceUrl>http://www.itu.int/oth/T0202000064/en</sourceUrl>
9418         <sourceUrl>http://en.wikipedia.org/wiki/%2B62</sourceUrl>
9419       </references>
9420       <availableFormats>
9421         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9422           pattern="(\d{2})(\d{5,8})">
9423           <leadingDigits>
9424             2[124]|
9425             [36]1
9426           </leadingDigits>
9427           <format>$1 $2</format>
9428         </numberFormat>
9429         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9430           pattern="(\d{3})(\d{5,8})">
9431           <leadingDigits>
9432             [4579]|
9433             2[035-9]|
9434             [36][02-9]
9435           </leadingDigits>
9436           <format>$1 $2</format>
9437         </numberFormat>
9438         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
9439           <leadingDigits>8[1-35-9]</leadingDigits>
9440           <format>$1-$2-$3</format>
9441         </numberFormat>
9442         <numberFormat pattern="(177)(\d{6,8})">
9443           <leadingDigits>1</leadingDigits>
9444           <format>$1 $2</format>
9445         </numberFormat>
9446         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
9447              that sometimes they are followed by less digits. -->
9448         <numberFormat pattern="(800)(\d{5,7})">
9449           <leadingDigits>800</leadingDigits>
9450           <format>$1 $2</format>
9451         </numberFormat>
9452         <numberFormat pattern="(80\d)(\d)(\d{3})(\d{3})">
9453           <leadingDigits>80[79]</leadingDigits>
9454           <format>$1 $2 $3 $4</format>
9455         </numberFormat>
9456       </availableFormats>
9457       <generalDesc>
9458         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
9459         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9460       </generalDesc>
9461       <fixedLine>
9462         <!-- Area codes taken from wikipedia, with missing ones added from
9463              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
9464              We also added 0770 after user feedback because it seems to be used on Bintan island.
9465              Where known, fixed mobile prefixes have been represented as Mobile. -->
9466         <!-- Very short (5/6 digit) local numbers in Jakarta seem to be special cases for various
9467              well known companies (Mc Donalds, KFC etc...). Some of these are listed in:
9468              http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf
9469              There seem to be numbers of this length for area code 22 as well based on numbers found
9470              online. -->
9471         <nationalNumberPattern>
9472           2(?:
9473             1(?:
9474               14\d{3}|
9475               [0-8]\d{6,7}|
9476               500\d{3}|
9477               9\d{6}
9478             )|
9479             2\d{6,8}|
9480             4\d{7,8}
9481           )|
9482           (?:
9483             2(?:
9484               [35][1-4]|
9485               6[0-8]|
9486               7[1-6]|
9487               8\d|
9488               9[1-8]
9489             )|
9490             3(?:
9491               1|
9492               2[1-578]|
9493               3[1-68]|
9494               4[1-3]|
9495               5[1-8]|
9496               6[1-3568]|
9497               7[0-46]|
9498               8\d
9499             )|
9500             4(?:
9501               0[1-589]|
9502               1[01347-9]|
9503               2[0-36-8]|
9504               3[0-24-68]|
9505               5[1-378]|
9506               6[1-5]|
9507               7[134]|
9508               8[1245]
9509             )|
9510             5(?:
9511               1[1-35-9]|
9512               2[25-8]|
9513               3[1246-9]|
9514               4[1-3589]|
9515               5[1-46]|
9516               6[1-8]
9517             )|
9518             6(?:
9519               19?|
9520               [25]\d|
9521               3[1-469]|
9522               4[1-6]
9523             )|
9524             7(?:
9525               1[1-9]|
9526               2[14-9]|
9527               [36]\d|
9528               4[1-8]|
9529               5[1-9]|
9530               7[0-36-9]
9531             )|
9532             9(?:
9533               0[12]|
9534               1[013-8]|
9535               2[0-479]|
9536               5[125-8]|
9537               6[23679]|
9538               7[159]|
9539               8[01346]
9540             )
9541           )\d{5,8}
9542         </nationalNumberPattern>
9543         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9544         <exampleNumber>612345678</exampleNumber>
9545       </fixedLine>
9546       <mobile>
9547         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
9548              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
9549              are captured below. The pattern covers the area code plus the first one-two digits of
9550              the subscriber number. -->
9551         <nationalNumberPattern>
9552           (?:
9553             2(?:
9554               1(?:
9555                 3[145]|
9556                 4[01]|
9557                 5[1-469]|
9558                 60|
9559                 8[0359]|
9560                 9\d
9561               )|
9562               2(?:
9563                 88|
9564                 9[1256]
9565               )|
9566               3[1-4]9|
9567               4(?:
9568                 36|
9569                 91
9570               )|
9571               5(?:
9572                 1[349]|
9573                 [2-4]9
9574               )|
9575               6[0-7]9|
9576               7(?:
9577                 [1-36]9|
9578                 4[39]
9579               )|
9580               8[1-5]9|
9581               9[1-48]9
9582             )|
9583             3(?:
9584               19[1-3]|
9585               2[12]9|
9586               3[13]9|
9587               4(?:
9588                 1[69]|
9589                 39
9590               )|
9591               5[14]9|
9592               6(?:
9593                 1[69]|
9594                 2[89]
9595               )|
9596               709
9597             )|
9598             4[13]19|
9599             5(?:
9600               1(?:
9601                 19|
9602                 8[39]
9603               )|
9604               4[129]9|
9605               6[12]9
9606             )|
9607             6(?:
9608               19[12]|
9609               2(?:
9610                 [23]9|
9611                 77
9612               )
9613             )|
9614             7(?:
9615               1[13]9|
9616               2[15]9|
9617               419|
9618               5(?:
9619                 1[89]|
9620                 29
9621               )|
9622               6[15]9|
9623               7[178]9
9624             )
9625           )\d{5,6}|
9626           8[1-35-9]\d{7,9}
9627         </nationalNumberPattern>
9628         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
9629         <exampleNumber>812345678</exampleNumber>
9630       </mobile>
9631       <tollFree>
9632         <nationalNumberPattern>
9633           177\d{6,8}|
9634           800\d{5,7}
9635         </nationalNumberPattern>
9636         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
9637         <exampleNumber>8001234567</exampleNumber>
9638       </tollFree>
9639       <uan>
9640         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9641         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9642         <exampleNumber>8071123456</exampleNumber>
9643       </uan>
9644       <noInternationalDialling>
9645         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9646         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9647         <exampleNumber>8071123456</exampleNumber>
9648       </noInternationalDialling>
9649       <!-- The information below is provided by an Indonesian -->
9650       <premiumRate>
9651         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
9652         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9653         <exampleNumber>8091234567</exampleNumber>
9654       </premiumRate>
9655     </territory>
9656
9657     <!-- Ireland -->
9658     <territory id="IE" countryCode="353" internationalPrefix="00"
9659                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
9660                mobileNumberPortableRegion="true">
9661       <references>
9662         <sourceUrl>http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html</sourceUrl>
9663         <sourceUrl>http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf</sourceUrl>
9664       </references>
9665       <availableFormats>
9666         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
9667           <leadingDigits>1</leadingDigits>
9668           <format>$1 $2 $3</format>
9669         </numberFormat>
9670         <numberFormat pattern="(\d{2})(\d{5})">
9671           <leadingDigits>
9672             2[24-9]|
9673             47|
9674             58|
9675             6[237-9]|
9676             9[35-9]
9677           </leadingDigits>
9678           <format>$1 $2</format>
9679         </numberFormat>
9680         <numberFormat pattern="(\d{3})(\d{5})">
9681           <leadingDigits>
9682             40[24]|
9683             50[45]
9684           </leadingDigits>
9685           <format>$1 $2</format>
9686         </numberFormat>
9687         <numberFormat pattern="(48)(\d{4})(\d{4})">
9688           <leadingDigits>48</leadingDigits>
9689           <format>$1 $2 $3</format>
9690         </numberFormat>
9691         <numberFormat pattern="(818)(\d{3})(\d{3})">
9692           <leadingDigits>81</leadingDigits>
9693           <format>$1 $2 $3</format>
9694         </numberFormat>
9695         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9696           <leadingDigits>
9697             [24-69]|
9698             7[14]
9699           </leadingDigits>
9700           <format>$1 $2 $3</format>
9701         </numberFormat>
9702         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9703           pattern="([78]\d)(\d{3,4})(\d{4})">
9704           <leadingDigits>
9705             76|
9706             8[35-9]
9707           </leadingDigits>
9708           <format>$1 $2 $3</format>
9709         </numberFormat>
9710         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9711           pattern="(700)(\d{3})(\d{3})">
9712           <leadingDigits>70</leadingDigits>
9713           <format>$1 $2 $3</format>
9714         </numberFormat>
9715         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
9716           <leadingDigits>
9717             1(?:
9718               8[059]|
9719               5
9720             )
9721           </leadingDigits>
9722           <leadingDigits>
9723             1(?:
9724               8[059]0|
9725               5
9726             )
9727           </leadingDigits>
9728           <format>$1 $2 $3</format>
9729         </numberFormat>
9730       </availableFormats>
9731       <generalDesc>
9732         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
9733         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9734       </generalDesc>
9735       <noInternationalDialling>
9736         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9737         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9738         <exampleNumber>1850123456</exampleNumber>
9739       </noInternationalDialling>
9740       <fixedLine>
9741         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
9742              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
9743              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
9744              Ireland. We support these numbers here, although technically they are numbers for the
9745              UK. -->
9746         <nationalNumberPattern>
9747           1\d{7,8}|
9748           2(?:
9749             1\d{6,7}|
9750             3\d{7}|
9751             [24-9]\d{5}
9752           )|
9753           4(?:
9754             0[24]\d{5}|
9755             [1-469]\d{7}|
9756             5\d{6}|
9757             7\d{5}|
9758             8[0-46-9]\d{7}
9759           )|
9760           5(?:
9761             0[45]\d{5}|
9762             1\d{6}|
9763             [23679]\d{7}|
9764             8\d{5}
9765           )|
9766           6(?:
9767             1\d{6}|
9768             [237-9]\d{5}|
9769             [4-6]\d{7}
9770           )|
9771           7[14]\d{7}|
9772           9(?:
9773             1\d{6}|
9774             [04]\d{7}|
9775             [35-9]\d{5}
9776           )
9777         </nationalNumberPattern>
9778         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9779         <exampleNumber>2212345</exampleNumber>
9780       </fixedLine>
9781       <mobile>
9782         <nationalNumberPattern>
9783           8(?:
9784             22\d{6}|
9785             [35-9]\d{7}
9786           )
9787         </nationalNumberPattern>
9788         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9789         <exampleNumber>850123456</exampleNumber>
9790       </mobile>
9791       <tollFree>
9792         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
9793         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9794         <exampleNumber>1800123456</exampleNumber>
9795       </tollFree>
9796       <premiumRate>
9797         <nationalNumberPattern>
9798           15(?:
9799             1[2-8]|
9800             [2-8]0|
9801             9[089]
9802           )\d{6}
9803         </nationalNumberPattern>
9804         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9805         <exampleNumber>1520123456</exampleNumber>
9806       </premiumRate>
9807       <sharedCost>
9808         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9809         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9810         <exampleNumber>1850123456</exampleNumber>
9811       </sharedCost>
9812       <personalNumber>
9813         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
9814         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9815         <exampleNumber>700123456</exampleNumber>
9816       </personalNumber>
9817       <voip>
9818         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
9819         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9820         <exampleNumber>761234567</exampleNumber>
9821       </voip>
9822       <uan>
9823         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
9824         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9825         <exampleNumber>818123456</exampleNumber>
9826       </uan>
9827       <voicemail>
9828         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
9829         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9830         <exampleNumber>8501234567</exampleNumber>
9831       </voicemail>
9832     </territory>
9833
9834     <!-- Israel -->
9835     <!-- Formatting practice following wikipedia, and government sites. -->
9836     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
9837                nationalPrefix="0" nationalPrefixFormattingRule="$FG"
9838                mobileNumberPortableRegion="true">
9839       <references>
9840         <sourceUrl>http://www.itu.int/oth/T020200006A/en</sourceUrl>
9841         <sourceUrl>http://en.wikipedia.org/wiki/%2B972</sourceUrl>
9842         <!-- in Hebrew -->
9843         <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>
9844       </references>
9845       <availableFormats>
9846         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9847           pattern="([2-489])(\d{3})(\d{4})">
9848           <leadingDigits>[2-489]</leadingDigits>
9849           <format>$1-$2-$3</format>
9850         </numberFormat>
9851         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9852           pattern="([57]\d)(\d{3})(\d{4})">
9853           <leadingDigits>[57]</leadingDigits>
9854           <format>$1-$2-$3</format>
9855         </numberFormat>
9856         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
9857           <leadingDigits>1[7-9]</leadingDigits>
9858           <format>$1-$2-$3-$4</format>
9859         </numberFormat>
9860         <!-- The following number is for hospitals. -->
9861         <numberFormat pattern="(1255)(\d{3})">
9862           <leadingDigits>125</leadingDigits>
9863           <format>$1-$2</format>
9864         </numberFormat>
9865         <numberFormat pattern="(1200)(\d{3})(\d{3})">
9866           <leadingDigits>120</leadingDigits>
9867           <format>$1-$2-$3</format>
9868         </numberFormat>
9869         <numberFormat pattern="(1212)(\d{2})(\d{2})">
9870           <leadingDigits>121</leadingDigits>
9871           <format>$1-$2-$3</format>
9872         </numberFormat>
9873         <!-- The following is for voicemail access. -->
9874         <numberFormat pattern="(1599)(\d{6})">
9875           <leadingDigits>15</leadingDigits>
9876           <format>$1-$2</format>
9877         </numberFormat>
9878         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
9879              dialed with a star in front of the number. -->
9880         <numberFormat pattern="(\d{4})">
9881           <leadingDigits>[2-689]</leadingDigits>
9882           <format>*$1</format>
9883         </numberFormat>
9884       </availableFormats>
9885       <generalDesc >
9886         <nationalNumberPattern>
9887           [17]\d{6,9}|
9888           [2-589]\d{3}(?:\d{3,6})?|
9889           6\d{3}
9890         </nationalNumberPattern>
9891         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9892       </generalDesc>
9893       <noInternationalDialling>
9894         <nationalNumberPattern>
9895           1700\d{6}|
9896           [2-689]\d{3}
9897         </nationalNumberPattern>
9898         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9899         <exampleNumber>1700123456</exampleNumber>
9900       </noInternationalDialling>
9901       <fixedLine>
9902         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9903         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
9904         <exampleNumber>21234567</exampleNumber>
9905       </fixedLine>
9906       <mobile>
9907         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
9908              sure wikipedia is accurate based on news coverage of the launch of these numbers. -->
9909         <nationalNumberPattern>
9910           5(?:
9911             [02347-9]\d{2}|
9912             5(?:
9913               01|
9914               2[23]|
9915               3[34]|
9916               4[45]|
9917               5[5689]|
9918               6[67]|
9919               7[78]|
9920               8[89]|
9921               9[7-9]
9922             )|
9923             6[2-9]\d
9924           )\d{5}
9925         </nationalNumberPattern>
9926         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9927         <exampleNumber>501234567</exampleNumber>
9928       </mobile>
9929       <tollFree>
9930         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
9931         <nationalNumberPattern>
9932           1(?:
9933             80[019]\d{3}|
9934             255
9935           )\d{3}
9936         </nationalNumberPattern>
9937         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9938         <exampleNumber>1800123456</exampleNumber>
9939       </tollFree>
9940       <premiumRate>
9941           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
9942                However, no online numbers starting with these prefixes can be found, and this data
9943                is not found in any other source. -->
9944           <!-- 1200 and 1212 numbers are for televoting. -->
9945         <nationalNumberPattern>
9946           1(?:
9947             212|
9948             (?:
9949               9(?:
9950                 0[01]|
9951                 19
9952               )|
9953               200
9954             )\d{2}
9955           )\d{4}
9956         </nationalNumberPattern>
9957         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
9958         <exampleNumber>1919123456</exampleNumber>
9959       </premiumRate>
9960       <sharedCost>
9961         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
9962         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9963         <exampleNumber>1700123456</exampleNumber>
9964       </sharedCost>
9965       <voip>
9966         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
9967              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
9968              Dialing) numbers, that most people forward to VoIP numbers. -->
9969         <nationalNumberPattern>
9970           7(?:
9971             2[23]\d|
9972             3[237]\d|
9973             47\d|
9974             6(?:
9975               5\d|
9976               8[068]
9977             )|
9978             7\d{2}|
9979             8(?:
9980               33|
9981               55|
9982               77|
9983               81
9984             )
9985           )\d{5}
9986         </nationalNumberPattern>
9987         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9988         <exampleNumber>771234567</exampleNumber>
9989       </voip>
9990       <uan>
9991         <!-- 4-digit star numbers and 1-599 numbers. The latter are actually labelled "interactive
9992              voicemail" in the ITU document, but according to reports from businesses in Israel and
9993              the Hebrew version of the wikipedia page, these are actually a router for business
9994              calls, and incur a normal call cost on account of the caller. -->
9995         <nationalNumberPattern>
9996           [2-689]\d{3}|
9997           1599\d{6}
9998         </nationalNumberPattern>
9999         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
10000         <exampleNumber>1599123456</exampleNumber>
10001       </uan>
10002     </territory>
10003
10004     <!-- Isle of Man -->
10005     <!-- Inherits formatting rules from the UK. -->
10006     <territory id="IM" countryCode="44" internationalPrefix="00"
10007                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
10008       <references>
10009         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
10010       </references>
10011       <generalDesc>
10012         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
10013         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10014       </generalDesc>
10015       <areaCodeOptional>
10016         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
10017         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10018         <exampleNumber>1624250123</exampleNumber>
10019       </areaCodeOptional>
10020       <!-- Specific to IM. -->
10021       <fixedLine>
10022         <!-- 1624 with 10 digits. -->
10023         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
10024         <exampleNumber>1624456789</exampleNumber>
10025       </fixedLine>
10026       <mobile>
10027         <!-- 7524, 7624, 7924 with 10 digits. -->
10028         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
10029         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10030         <exampleNumber>7924123456</exampleNumber>
10031       </mobile>
10032       <tollFree>
10033         <!-- 808 162 with 10 digits. -->
10034         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
10035         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10036         <exampleNumber>8081624567</exampleNumber>
10037       </tollFree>
10038       <premiumRate>
10039         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
10040         <nationalNumberPattern>
10041           (?:
10042             872299|
10043             90[0167]624
10044           )\d{4}
10045         </nationalNumberPattern>
10046         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10047         <exampleNumber>9016247890</exampleNumber>
10048       </premiumRate>
10049       <sharedCost>
10050         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
10051         <nationalNumberPattern>
10052           8(?:
10053             4(?:
10054               40[49]06|
10055               5624\d
10056             )|
10057             70624\d
10058           )\d{3}
10059         </nationalNumberPattern>
10060         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10061         <exampleNumber>8456247890</exampleNumber>
10062       </sharedCost>
10063       <!-- Other numbers as per GB. -->
10064       <personalNumber>
10065         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
10066         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10067         <exampleNumber>7012345678</exampleNumber>
10068       </personalNumber>
10069       <voip>
10070         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
10071         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10072         <exampleNumber>5612345678</exampleNumber>
10073       </voip>
10074       <uan>
10075         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
10076         <nationalNumberPattern>
10077           3(?:
10078             08162\d|
10079             3\d{5}|
10080             4(?:
10081               40[49]06|
10082               5624\d
10083             )|
10084             7(?:
10085               0624\d|
10086               2299\d
10087             )
10088           )\d{3}|
10089           55\d{8}
10090         </nationalNumberPattern>
10091         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10092         <exampleNumber>5512345678</exampleNumber>
10093       </uan>
10094     </territory>
10095
10096     <!-- India -->
10097     <!-- Note that several changes in area codes have occurred since the numbering plan was released
10098          - fixed line changes are notified on the http://www.bsnl.co.in website. Area codes can be
10099          verified here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
10100     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
10101                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true"
10102                mobileNumberPortableRegion="true">
10103       <references>
10104         <sourceUrl>http://www.itu.int/oth/T0202000063/en</sourceUrl>
10105         <sourceUrl>http://en.wikipedia.org/wiki/%2B91</sourceUrl>
10106         <sourceUrl>http://www.coai.in/msccodes.php</sourceUrl>
10107       </references>
10108        <availableFormats>
10109          <!-- Mobile numbers. -->
10110          <numberFormat pattern="(\d{5})(\d{5})">
10111            <leadingDigits>
10112              7(?:
10113                0[2-9]|
10114                2[0579]|
10115                3[057-9]|
10116                4[0-389]|
10117                6[0-35-9]|
10118                [57]|
10119                8[0-79]
10120              )|
10121              8(?:
10122                0[015689]|
10123                1[0-57-9]|
10124                2[2356-9]|
10125                3[0-57-9]|
10126                [45]|
10127                6[02457-9]|
10128                7[1-69]|
10129                8[0124-9]|
10130                9[02-9]
10131              )|
10132              9
10133            </leadingDigits>
10134            <leadingDigits>
10135              7(?:
10136                0(?:
10137                  2[2-9]|
10138                  [3-8]|
10139                  9[0-4]
10140                )|
10141                2(?:
10142                  0[04-9]|
10143                  5[09]|
10144                  7[5-8]|
10145                  9[389]
10146                )|
10147                3(?:
10148                  0[1-9]|
10149                  [58]|
10150                  7[3679]|
10151                  9[689]
10152                )|
10153                4(?:
10154                  0[1-9]|
10155                  1[15-9]|
10156                  [29][89]|
10157                  39|
10158                  8[389]
10159                )|
10160                5(?:
10161                  [034678]|
10162                  2[03-9]|
10163                  5[017-9]|
10164                  9[7-9]
10165                )|
10166                6(?:
10167                  0[0-27]|
10168                  1[0-257-9]|
10169                  2[0-4]|
10170                  3[19]|
10171                  5[4589]|
10172                  [6-9]
10173                )|
10174                7(?:
10175                  0[2-9]|
10176                  [1-79]|
10177                  8[1-9]
10178                )|
10179                8(?:
10180                  [0-7]|
10181                  9[013-9]
10182                )
10183              )|
10184              8(?:
10185                0(?:
10186                  [01589]|
10187                  6[67]
10188                )|
10189                1(?:
10190                  [02-589]|
10191                  1[0135-9]|
10192                  7[0-79]
10193                )|
10194                2(?:
10195                  [236-9]|
10196                  5[1-9]
10197                )|
10198                3(?:
10199                  [0357-9]|
10200                  4[1-9]
10201                )|
10202                [45]|
10203                6[02457-9]|
10204                7[1-69]|
10205                8(?:
10206                  [0-26-9]|
10207                  44|
10208                  5[2-9]
10209                )|
10210                9(?:
10211                  [035-9]|
10212                  2[2-9]|
10213                  4[0-8]
10214                )
10215              )|
10216              9
10217            </leadingDigits>
10218            <format>$1 $2</format>
10219          </numberFormat>
10220          <!-- 2 digits area code -->
10221          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10222            <leadingDigits>
10223              11|
10224              2[02]|
10225              33|
10226              4[04]|
10227              79|
10228              80[2-46]
10229            </leadingDigits>
10230            <format>$1 $2 $3</format>
10231          </numberFormat>
10232          <!-- 3 digit area codes that don't clash with mobile patterns. -->
10233          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10234            <leadingDigits>
10235              1(?:
10236                2[0-249]|
10237                3[0-25]|
10238                4[145]|
10239                [569][14]|
10240                7[1257]|
10241                8[1346]|
10242                [68][1-9]
10243              )|
10244              2(?:
10245                1[257]|
10246                3[013]|
10247                4[01]|
10248                5[0137]|
10249                6[0158]|
10250                78|
10251                8[1568]|
10252                9[14]
10253              )|
10254              3(?:
10255                26|
10256                4[1-3]|
10257                5[34]|
10258                6[01489]|
10259                7[02-46]|
10260                8[159]
10261              )|
10262              4(?:
10263                1[36]|
10264                2[1-47]|
10265                3[15]|
10266                5[12]|
10267                6[126-9]|
10268                7[0-24-9]|
10269                8[013-57]|
10270                9[014-7]
10271              )|
10272              5(?:
10273                [136][25]|
10274                22|
10275                4[28]|
10276                5[12]|
10277                [78]1|
10278                9[15]
10279              )|
10280              6(?:
10281                12|
10282                [2345]1|
10283                57|
10284                6[13]|
10285                7[14]|
10286                80
10287              )
10288            </leadingDigits>
10289            <format>$1 $2 $3</format>
10290          </numberFormat>
10291          <!-- Three-digit area codes that potentially overlap with mobile. -->
10292          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10293            <leadingDigits>
10294              7(?:
10295                12|
10296                2[14]|
10297                3[134]|
10298                4[47]|
10299                5[15]|
10300                [67]1|
10301                88
10302              )
10303            </leadingDigits>
10304            <leadingDigits>
10305              7(?:
10306                12|
10307                2[14]|
10308                3[134]|
10309                4[47]|
10310                5(?:
10311                  1|
10312                  5[2-6]
10313                )|
10314                [67]1|
10315                88
10316              )
10317            </leadingDigits>
10318            <format>$1 $2 $3</format>
10319          </numberFormat>
10320          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10321            <leadingDigits>
10322              8(?:
10323                16|
10324                2[014]|
10325                3[126]|
10326                6[136]|
10327                7[078]|
10328                8[34]|
10329                91
10330              )
10331            </leadingDigits>
10332            <format>$1 $2 $3</format>
10333          </numberFormat>
10334          <!-- 4 digits area code -->
10335          <!-- Fallback for fixed-line numbers. -->
10336          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
10337            <leadingDigits>
10338              1(?:
10339                [23579]|
10340                [468][1-9]
10341              )|
10342              [2-8]
10343            </leadingDigits>
10344            <format>$1 $2 $3</format>
10345          </numberFormat>
10346          <numberFormat nationalPrefixFormattingRule="$FG"
10347            pattern="(1600)(\d{2})(\d{4})">
10348            <leadingDigits>160</leadingDigits>
10349            <leadingDigits>1600</leadingDigits>
10350            <format>$1 $2 $3</format>
10351          </numberFormat>
10352          <numberFormat nationalPrefixFormattingRule="$FG"
10353            pattern="(1800)(\d{4,5})">
10354            <leadingDigits>180</leadingDigits>
10355            <leadingDigits>1800</leadingDigits>
10356            <format>$1 $2</format>
10357          </numberFormat>
10358          <numberFormat nationalPrefixFormattingRule="$FG"
10359            pattern="(18[06]0)(\d{2,4})(\d{4})">
10360            <leadingDigits>18[06]</leadingDigits>
10361            <leadingDigits>18[06]0</leadingDigits>
10362            <format>$1 $2 $3</format>
10363          </numberFormat>
10364          <numberFormat nationalPrefixFormattingRule="$FG"
10365            pattern="(140)(\d{3})(\d{4})">
10366            <leadingDigits>140</leadingDigits>
10367            <format>$1 $2 $3</format>
10368          </numberFormat>
10369          <!-- Televoting numbers. Formatting information is from
10370               http://www.bsnl.co.in/service/telev.htm -->
10371          <numberFormat nationalPrefixFormattingRule="$FG"
10372            pattern="(\d{4})(\d{3})(\d{4})(\d{2})">
10373            <leadingDigits>18[06]</leadingDigits>
10374            <leadingDigits>
10375              18(?:
10376                03|
10377                6[12]
10378              )
10379            </leadingDigits>
10380            <format>$1 $2 $3 $4</format>
10381          </numberFormat>
10382       </availableFormats>
10383       <generalDesc>
10384         <nationalNumberPattern>
10385           1\d{7,12}|
10386           [2-9]\d{9,10}
10387         </nationalNumberPattern>
10388         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
10389       </generalDesc>
10390       <noInternationalDialling>
10391         <nationalNumberPattern>
10392           1(?:
10393             600\d{6}|
10394             8(?:
10395               0(?:
10396                 0\d{4,8}|
10397                 3\d{9}
10398               )|
10399               6(?:
10400                 0\d{7}|
10401                 [12]\d{9}
10402               )
10403             )
10404           )
10405         </nationalNumberPattern>
10406         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10407         <exampleNumber>1800123456</exampleNumber>
10408       </noInternationalDialling>
10409       <fixedLine>
10410         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
10411              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
10412              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
10413              Not all operator codes are available in all areas, but we don't maintain that
10414              distinction here.
10415              Area codes starting with a 7 are listed separately, since the prefixes need to be more
10416              detailed so they clash less with mobile phone prefixes. -->
10417         <nationalNumberPattern>
10418           (?:
10419             11|
10420             2[02]|
10421             33|
10422             4[04]|
10423             79
10424           )[2-7]\d{7}|
10425           80[2-467]\d{7}|
10426           (?:
10427             1(?:
10428               2[0-249]|
10429               3[0-25]|
10430               4[145]|
10431               [59][14]|
10432               6[014]|
10433               7[1257]|
10434               8[01346]
10435             )|
10436             2(?:
10437               1[257]|
10438               3[013]|
10439               4[01]|
10440               5[0137]|
10441               6[0158]|
10442               78|
10443               8[1568]|
10444               9[14]
10445             )|
10446             3(?:
10447               26|
10448               4[1-3]|
10449               5[34]|
10450               6[01489]|
10451               7[02-46]|
10452               8[159]
10453             )|
10454             4(?:
10455               1[36]|
10456               2[1-47]|
10457               3[15]|
10458               5[12]|
10459               6[126-9]|
10460               7[0-24-9]|
10461               8[013-57]|
10462               9[014-7]
10463             )|
10464             5(?:
10465               [136][25]|
10466               22|
10467               4[28]|
10468               5[12]|
10469               [78]1|
10470               9[15]
10471             )|
10472             6(?:
10473               12|
10474               [2345]1|
10475               57|
10476               6[13]|
10477               7[14]|
10478               80
10479             )|
10480             7(?:
10481               12|
10482               2[14]|
10483               3[134]|
10484               4[47]|
10485               5[15]|
10486               [67]1|
10487               88
10488             )|
10489             8(?:
10490               16|
10491               2[014]|
10492               3[126]|
10493               6[136]|
10494               7[078]|
10495               8[34]|
10496               91
10497             )
10498           )[2-7]\d{6}|
10499           (?:
10500             (?:
10501               1(?:
10502                 2[35-8]|
10503                 3[346-9]|
10504                 4[236-9]|
10505                 [59][0235-9]|
10506                 6[235-9]|
10507                 7[34689]|
10508                 8[257-9]
10509               )|
10510               2(?:
10511                 1[134689]|
10512                 3[24-8]|
10513                 4[2-8]|
10514                 5[25689]|
10515                 6[2-4679]|
10516                 7[13-79]|
10517                 8[2-479]|
10518                 9[235-9]
10519               )|
10520               3(?:
10521                 01|
10522                 1[79]|
10523                 2[1-5]|
10524                 4[25-8]|
10525                 5[125689]|
10526                 6[235-7]|
10527                 7[157-9]|
10528                 8[2-467]
10529               )|
10530               4(?:
10531                 1[14578]|
10532                 2[5689]|
10533                 3[2-467]|
10534                 5[4-7]|
10535                 6[35]|
10536                 73|
10537                 8[2689]|
10538                 9[2389]
10539               )|
10540               5(?:
10541                 [16][146-9]|
10542                 2[14-8]|
10543                 3[1346]|
10544                 4[14-69]|
10545                 5[46]|
10546                 7[2-4]|
10547                 8[2-8]|
10548                 9[246]
10549               )|
10550               6(?:
10551                 1[1358]|
10552                 2[2457]|
10553                 3[2-4]|
10554                 4[235-7]|
10555                 [57][2-689]|
10556                 6[24-578]|
10557                 8[1-6]
10558               )|
10559               8(?:
10560                 1[1357-9]|
10561                 2[235-8]|
10562                 3[03-57-9]|
10563                 4[0-24-9]|
10564                 5\d|
10565                 6[2457-9]|
10566                 7[1-6]|
10567                 8[1256]|
10568                 9[2-4]
10569               )
10570             )\d|
10571             7(?:
10572               (?:
10573                 1[013-9]|
10574                 2[0235-9]|
10575                 3[2679]|
10576                 4[1-35689]|
10577                 5[2-46-9]|
10578                 [67][02-9]|
10579                 9\d
10580               )\d|
10581               8(?:
10582                 2[0-6]|
10583                 [013-8]\d
10584               )
10585             )
10586           )[2-7]\d{5}
10587         </nationalNumberPattern>
10588         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10589         <exampleNumber>1123456789</exampleNumber>
10590       </fixedLine>
10591       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
10592       <!-- The document titled "List of MSC codes" linked off
10593            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
10594            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
10595       <mobile>
10596         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10597              codes list, are added because SMS messages have been successfully sent to these
10598              numbers. It seems almost impossible to know for some of these numbers whether they are
10599              land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[567],
10600              7695, 8299, 8309. New prefixes were also added based on the document provided from
10601              mobile carriers: https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
10602         <nationalNumberPattern>
10603           (?:
10604             7(?:
10605               0(?:
10606                 2[2-9]|
10607                 [3-8]\d|
10608                 9[0-4]
10609               )|
10610               2(?:
10611                 0[04-9]|
10612                 5[09]|
10613                 7[5-8]|
10614                 9[389]
10615               )|
10616               3(?:
10617                 0[1-9]|
10618                 [58]\d|
10619                 7[3679]|
10620                 9[689]
10621               )|
10622               4(?:
10623                 0[1-9]|
10624                 1[15-9]|
10625                 [29][89]|
10626                 39|
10627                 8[389]
10628               )|
10629               5(?:
10630                 [034678]\d|
10631                 2[03-9]|
10632                 5[017-9]|
10633                 9[7-9]
10634               )|
10635               6(?:
10636                 0[0127]|
10637                 1[0-257-9]|
10638                 2[0-4]|
10639                 3[19]|
10640                 5[4589]|
10641                 [6-9]\d
10642               )|
10643               7(?:
10644                 0[2-9]|
10645                 [1-79]\d|
10646                 8[1-9]
10647               )|
10648               8(?:
10649                 [0-7]\d|
10650                 9[013-9]
10651               )
10652             )|
10653             8(?:
10654               0(?:
10655                 [01589]\d|
10656                 6[67]
10657               )|
10658               1(?:
10659                 [02-589]\d|
10660                 1[0135-9]|
10661                 7[0-79]
10662               )|
10663               2(?:
10664                 [236-9]\d|
10665                 5[1-9]
10666               )|
10667               3(?:
10668                 [0357-9]\d|
10669                 4[1-9]
10670               )|
10671               [45]\d{2}|
10672               6[02457-9]\d|
10673               7[1-69]\d|
10674               8(?:
10675                 [0-26-9]\d|
10676                 44|
10677                 5[2-9]
10678               )|
10679               9(?:
10680                 [035-9]\d|
10681                 2[2-9]|
10682                 4[0-8]
10683               )
10684             )|
10685             9\d{3}
10686           )\d{6}
10687         </nationalNumberPattern>
10688         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10689         <exampleNumber>9123456789</exampleNumber>
10690       </mobile>
10691       <tollFree>
10692         <!-- Information gathered from sites such as
10693              http://www.surfindia.com/india-facts/toll-free-no.html and
10694              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
10695              http://www.bsnl.co.in/service/telev.htm -->
10696         <nationalNumberPattern>
10697           1(?:
10698             600\d{6}|
10699             80(?:
10700               0\d{4,8}|
10701               3\d{9}
10702             )
10703           )
10704         </nationalNumberPattern>
10705         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10706         <exampleNumber>1800123456</exampleNumber>
10707       </tollFree>
10708       <premiumRate>
10709         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
10710              because they overlap with mobile, and we haven't found any real numbers online. -->
10711         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
10712         <possibleNumberPattern>\d{13}</possibleNumberPattern>
10713         <exampleNumber>1861123456789</exampleNumber>
10714       </premiumRate>
10715       <sharedCost>
10716         <!-- While described as "universal numbers" in the numbering plan, evidence suggests
10717              that 1860 number are best described as shared cost. See "Call Local Service" in:
10718              http://www.tatadocomo.com/corporates/toll-free.aspx -->
10719         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
10720         <possibleNumberPattern>\d{11}</possibleNumberPattern>
10721         <exampleNumber>18603451234</exampleNumber>
10722       </sharedCost>
10723       <uan>
10724         <!-- Telemarketing numbers: http://en.wikipedia.org/wiki/Telephone_numbers_in_India -->
10725         <nationalNumberPattern>140\d{7}</nationalNumberPattern>
10726         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10727         <exampleNumber>1409305260</exampleNumber>
10728       </uan>
10729     </territory>
10730
10731     <!-- British Indian Ocean Territory / Diego Garcia -->
10732     <territory id="IO" countryCode="246" internationalPrefix="00">
10733       <references>
10734         <sourceUrl>http://www.itu.int/oth/T0202000039/en</sourceUrl>
10735       </references>
10736       <availableFormats>
10737         <numberFormat pattern="(\d{3})(\d{4})">
10738           <format>$1 $2</format>
10739         </numberFormat>
10740       </availableFormats>
10741       <generalDesc>
10742         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
10743         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10744       </generalDesc>
10745       <fixedLine>
10746         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
10747         <exampleNumber>3709100</exampleNumber>
10748       </fixedLine>
10749       <mobile>
10750         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
10751         <exampleNumber>3801234</exampleNumber>
10752       </mobile>
10753     </territory>
10754
10755     <!-- Iraq -->
10756     <territory id="IQ" countryCode="964" internationalPrefix="00"
10757                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10758       <references>
10759         <sourceUrl>http://en.wikipedia.org/wiki/%2B964</sourceUrl>
10760         <sourceUrl>http://wtng.info/wtng-964-ik.html</sourceUrl>
10761       </references>
10762       <availableFormats>
10763         <numberFormat pattern="(1)(\d{3})(\d{4})">
10764           <leadingDigits>1</leadingDigits>
10765           <format>$1 $2 $3</format>
10766         </numberFormat>
10767         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
10768           <leadingDigits>[2-6]</leadingDigits>
10769           <format>$1 $2 $3</format>
10770         </numberFormat>
10771         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
10772           <leadingDigits>7</leadingDigits>
10773           <format>$1 $2 $3</format>
10774         </numberFormat>
10775       </availableFormats>
10776       <generalDesc>
10777         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
10778         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10779       </generalDesc>
10780       <fixedLine>
10781         <nationalNumberPattern>
10782           1\d{7}|
10783           (?:
10784             2[13-5]|
10785             3[02367]|
10786             4[023]|
10787             5[03]|
10788             6[026]
10789           )\d{6,7}
10790         </nationalNumberPattern>
10791         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
10792         <exampleNumber>12345678</exampleNumber>
10793       </fixedLine>
10794       <mobile>
10795         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
10796         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10797         <exampleNumber>7912345678</exampleNumber>
10798       </mobile>
10799       <!-- No tollFree or premiumRate information can be found. -->
10800     </territory>
10801
10802     <!-- Iran, Islamic Republic of -->
10803     <territory id="IR" countryCode="98" internationalPrefix="00"
10804                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10805       <references>
10806         <sourceUrl>http://en.wikipedia.org/wiki/%2B98</sourceUrl>
10807         <sourceUrl>http://www.itu.int/oth/T0202000066/en</sourceUrl>
10808         <sourceUrl>http://www.tct.ir/?siteid=1&amp;pageid=195</sourceUrl>
10809         <sourceUrl>http://118.tct.ir/citycode.htm</sourceUrl>
10810       </references>
10811       <availableFormats>
10812         <!-- Formatting follows wikipedia. -->
10813         <numberFormat pattern="(21)(\d{3,5})">
10814           <leadingDigits>21</leadingDigits>
10815           <format>$1 $2</format>
10816         </numberFormat>
10817         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10818           <leadingDigits>[1-8]</leadingDigits>
10819           <format>$1 $2 $3</format>
10820         </numberFormat>
10821         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
10822           <leadingDigits>9</leadingDigits>
10823           <format>$1 $2 $3</format>
10824         </numberFormat>
10825         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
10826           <leadingDigits>9</leadingDigits>
10827           <format>$1 $2 $3</format>
10828         </numberFormat>
10829         <numberFormat pattern="(\d{3})(\d{3})">
10830           <leadingDigits>9</leadingDigits>
10831           <format>$1 $2</format>
10832         </numberFormat>
10833       </availableFormats>
10834       <generalDesc>
10835         <nationalNumberPattern>
10836           [1-8]\d{9}|
10837           9(?:
10838             [0-4]\d{8}|
10839             9\d{2,8}
10840           )
10841         </nationalNumberPattern>
10842         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10843       </generalDesc>
10844       <fixedLine>
10845         <!-- In Summer 2014 Iran unified all fixed phone numbers in the following way:
10846              Each province is assigned a two digit prefix (except for North Khorasan which has 3).
10847              Within each province, all numbers are exactly eight digits.  The expression below is
10848              organized by province.  For each province we accept all eight-digit combinations.
10849
10850              11 Mazandaran
10851              13 Gilan
10852              17 Golestan
10853              21 Tehran
10854              23 Semnan
10855              24 Zanjan
10856              25 Qom
10857              26 Alborz
10858              28 Qazvin
10859              31 Isfahan
10860              34 Kerman
10861              35 Yazd
10862              38 Chahar Mahaal and Bakhtiari
10863              41 East Azerbaijan
10864              44 West Azerbaijan
10865              45 Ardabil
10866              51 Razavi Khorasan
10867              54 Sistan and Baluchestan
10868              56 South Khorasan
10869              57 North Khorasan (Extras)
10870              58 North Khorasan
10871              61 Khuzestan
10872              64 North Khorasan (Extras)
10873              66 Lorestan
10874              71 Fars
10875              74 Kohgiluyeh and Boyer-Ahmad
10876              76 Hormozgan
10877              77 Bushehr
10878              81 Hamadan
10879              83 Kermanshah
10880              84 Ilam
10881              86 Markazi
10882              87 Kurdistan
10883              -->
10884         <nationalNumberPattern>
10885           (?:
10886             1[137]|
10887             2[13-68]|
10888             3[1458]|
10889             4[145]|
10890             5[146-8]|
10891             6[146]|
10892             7[1467]|
10893             8[13467]
10894           )\d{8}
10895         </nationalNumberPattern>
10896         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10897         <exampleNumber>2123456789</exampleNumber>
10898       </fixedLine>
10899       <mobile>
10900         <nationalNumberPattern>
10901           9(?:
10902             0[12]|
10903             [1-3]\d
10904           )\d{7}
10905         </nationalNumberPattern>
10906         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10907         <exampleNumber>9123456789</exampleNumber>
10908       </mobile>
10909       <pager>
10910         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
10911         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10912         <exampleNumber>9432123456</exampleNumber>
10913       </pager>
10914       <!-- No tollFree or premiumRate information can be found. -->
10915       <voip>
10916         <!-- Includes VSAT and Boomehen Satellite numbers. -->
10917         <nationalNumberPattern>
10918           (?:
10919             [2-6]0\d|
10920             993
10921           )\d{7}
10922         </nationalNumberPattern>
10923         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10924         <exampleNumber>9932123456</exampleNumber>
10925       </voip>
10926       <uan>
10927         <!-- MCI Public Relations numbers -->
10928         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
10929         <exampleNumber>9990123456</exampleNumber>
10930       </uan>
10931     </territory>
10932
10933     <!-- Iceland -->
10934     <territory id="IS" countryCode="354" internationalPrefix="00" mobileNumberPortableRegion="true">
10935       <references>
10936         <sourceUrl>http://www.pta.is/default.aspx?cat_id=85</sourceUrl>
10937         <sourceUrl>http://www.pfs.is/default.aspx?cat_id=14&amp;module_id=210&amp;element_id=4</sourceUrl>
10938       </references>
10939       <availableFormats>
10940         <numberFormat pattern="(\d{3})(\d{4})">
10941           <leadingDigits>[4-9]</leadingDigits>
10942           <format>$1 $2</format>
10943         </numberFormat>
10944         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
10945           <leadingDigits>3</leadingDigits>
10946           <format>$1 $2 $3</format>
10947         </numberFormat>
10948       </availableFormats>
10949       <generalDesc>
10950         <nationalNumberPattern>
10951           [4-9]\d{6}|
10952           38\d{7}
10953         </nationalNumberPattern>
10954         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
10955       </generalDesc>
10956       <fixedLine>
10957         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
10958         <nationalNumberPattern>
10959           (?:
10960             4(?:
10961               1[0-24-6]|
10962               2[0-7]|
10963               [37][0-8]|
10964               4[0-245]|
10965               5[0-3568]|
10966               6\d|
10967               8[0-36-8]
10968             )|
10969             5(?:
10970               05|
10971               [156]\d|
10972               2[02578]|
10973               3[013-7]|
10974               4[03-7]|
10975               7[0-2578]|
10976               8[0-35-9]|
10977               9[013-689]
10978             )|
10979             87[23]
10980           )\d{4}
10981         </nationalNumberPattern>
10982         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10983         <exampleNumber>4101234</exampleNumber>
10984       </fixedLine>
10985       <mobile>
10986         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
10987         <nationalNumberPattern>
10988           38[589]\d{6}|
10989           (?:
10990             6(?:
10991               1[1-8]|
10992               3[089]|
10993               4[0167]|
10994               5[019]|
10995               [67][0-69]|
10996               9\d
10997             )|
10998             7(?:
10999               5[057]|
11000               7\d|
11001               8[0-36-8]
11002             )|
11003             8(?:
11004               2[0-5]|
11005               3[0-4]|
11006               [469]\d|
11007               5[1-9]
11008             )
11009           )\d{4}
11010         </nationalNumberPattern>
11011         <exampleNumber>6111234</exampleNumber>
11012       </mobile>
11013       <tollFree>
11014         <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
11015              numbers can be found online, and it is not clear what these are; the standard
11016              definition would have them under the +800 country code instead of Iceland. -->
11017         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
11018         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11019         <exampleNumber>8001234</exampleNumber>
11020       </tollFree>
11021       <premiumRate>
11022         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
11023         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11024         <exampleNumber>9011234</exampleNumber>
11025       </premiumRate>
11026       <voip>
11027         <nationalNumberPattern>49\d{5}</nationalNumberPattern>
11028         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11029         <exampleNumber>4921234</exampleNumber>
11030       </voip>
11031       <voicemail>
11032         <nationalNumberPattern>
11033           (?:
11034             6(?:
11035               2[0-8]|
11036               49|
11037               8\d
11038             )|
11039             87[0189]|
11040             95[48]
11041           )\d{4}
11042         </nationalNumberPattern>
11043         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11044         <exampleNumber>6201234</exampleNumber>
11045       </voicemail>
11046     </territory>
11047
11048     <!-- Italy -->
11049     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true"
11050                mobileNumberPortableRegion="true">
11051       <references>
11052         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
11053       </references>
11054       <availableFormats>
11055         <!-- The leading zero for fixed numbers will be prepended before the matching of these
11056              regular expressions. -->
11057         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
11058           <leadingDigits>
11059             0[26]|
11060             55
11061           </leadingDigits>
11062           <format>$1 $2 $3</format>
11063         </numberFormat>
11064         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
11065           <leadingDigits>0[26]</leadingDigits>
11066           <format>$1 $2 $3</format>
11067         </numberFormat>
11068         <numberFormat pattern="(0[26])(\d{4,6})">
11069           <leadingDigits>0[26]</leadingDigits>
11070           <format>$1 $2</format>
11071         </numberFormat>
11072         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
11073           <leadingDigits>0[13-57-9][0159]</leadingDigits>
11074           <format>$1 $2 $3</format>
11075         </numberFormat>
11076         <numberFormat pattern="(\d{3})(\d{3,6})">
11077           <leadingDigits>
11078             0[13-57-9][0159]|
11079             8(?:
11080               03|
11081               4[17]|
11082               9[245]
11083             )
11084           </leadingDigits>
11085           <leadingDigits>
11086             0[13-57-9][0159]|
11087             8(?:
11088               03|
11089               4[17]|
11090               9(?:
11091                 2|
11092                 [45][0-4]
11093               )
11094             )
11095           </leadingDigits>
11096           <format>$1 $2</format>
11097         </numberFormat>
11098         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
11099           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11100           <format>$1 $2 $3</format>
11101         </numberFormat>
11102         <numberFormat pattern="(0\d{3})(\d{2,6})">
11103           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11104           <format>$1 $2</format>
11105         </numberFormat>
11106         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11107           <leadingDigits>
11108             [13]|
11109             8(?:
11110               00|
11111               4[08]|
11112               9[59]
11113             )
11114           </leadingDigits>
11115           <leadingDigits>
11116             [13]|
11117             8(?:
11118               00|
11119               4[08]|
11120               9(?:
11121                 5[5-9]|
11122                 9
11123               )
11124             )
11125           </leadingDigits>
11126           <format>$1 $2 $3</format>
11127         </numberFormat>
11128         <numberFormat pattern="(\d{4})(\d{4})">
11129           <leadingDigits>894</leadingDigits>
11130           <leadingDigits>894[5-9]</leadingDigits>
11131           <format>$1 $2</format>
11132         </numberFormat>
11133         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
11134           <leadingDigits>3</leadingDigits>
11135           <format>$1 $2 $3</format>
11136         </numberFormat>
11137       </availableFormats>
11138       <generalDesc>
11139         <nationalNumberPattern>
11140           [01589]\d{5,10}|
11141           3(?:
11142             [12457-9]\d{8}|
11143             [36]\d{7,9}
11144           )
11145         </nationalNumberPattern>
11146         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11147       </generalDesc>
11148       <noInternationalDialling>
11149         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
11150         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11151         <exampleNumber>848123456</exampleNumber>
11152       </noInternationalDialling>
11153       <fixedLine>
11154         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
11155              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
11156              found with other prefixes that are 11 digits long as well, so we allow it for all the
11157              three and four digit area codes. -->
11158         <nationalNumberPattern>
11159           0(?:
11160             [26]\d{4,9}|
11161             (?:
11162               1(?:
11163                 [0159]\d|
11164                 [27][1-5]|
11165                 31|
11166                 4[1-4]|
11167                 6[1356]|
11168                 8[2-57]
11169               )|
11170               3(?:
11171                 [0159]\d|
11172                 2[1-4]|
11173                 3[12]|
11174                 [48][1-6]|
11175                 6[2-59]|
11176                 7[1-7]
11177               )|
11178               4(?:
11179                 [0159]\d|
11180                 [23][1-9]|
11181                 4[245]|
11182                 6[1-5]|
11183                 7[1-4]|
11184                 81
11185               )|
11186               5(?:
11187                 [0159]\d|
11188                 2[1-5]|
11189                 3[2-6]|
11190                 4[1-79]|
11191                 6[4-6]|
11192                 7[1-578]|
11193                 8[3-8]
11194               )|
11195               7(?:
11196                 [0159]\d|
11197                 2[12]|
11198                 3[1-7]|
11199                 4[2346]|
11200                 6[13569]|
11201                 7[13-6]|
11202                 8[1-59]
11203               )|
11204               8(?:
11205                 [0159]\d|
11206                 2[34578]|
11207                 3[1-356]|
11208                 [6-8][1-5]
11209               )|
11210               9(?:
11211                 [0159]\d|
11212                 [238][1-5]|
11213                 4[12]|
11214                 6[1-8]|
11215                 7[1-6]
11216               )
11217             )\d{2,7}
11218           )
11219         </nationalNumberPattern>
11220         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11221         <exampleNumber>0212345678</exampleNumber>
11222       </fixedLine>
11223       <mobile>
11224         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
11225              digits long. However, a user reported the existence of new 11 digit long numbers for
11226              TIM with the prefix 33X, so this is supported also. -->
11227         <nationalNumberPattern>
11228           3(?:
11229             [12457-9]\d{8}|
11230             6\d{7,8}|
11231             3\d{7,9}
11232           )
11233         </nationalNumberPattern>
11234         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
11235         <exampleNumber>3123456789</exampleNumber>
11236       </mobile>
11237       <tollFree>
11238         <nationalNumberPattern>
11239           80(?:
11240             0\d{6}|
11241             3\d{3}
11242           )
11243         </nationalNumberPattern>
11244         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11245         <exampleNumber>800123456</exampleNumber>
11246       </tollFree>
11247       <premiumRate>
11248         <!-- Adding 0878 numbers, as per
11249              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
11250              premium prefixes are mentioned here:
11251              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
11252         <nationalNumberPattern>
11253           0878\d{5}|
11254           1(?:
11255             44|
11256             6[346]
11257           )\d{6}|
11258           89(?:
11259             2\d{3}|
11260             4(?:
11261               [0-4]\d{2}|
11262               [5-9]\d{4}
11263             )|
11264             5(?:
11265               [0-4]\d{2}|
11266               [5-9]\d{6}
11267             )|
11268             9\d{6}
11269           )
11270         </nationalNumberPattern>
11271         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11272         <exampleNumber>899123456</exampleNumber>
11273       </premiumRate>
11274       <sharedCost>
11275         <nationalNumberPattern>
11276           84(?:
11277             [08]\d{6}|
11278             [17]\d{3}
11279           )
11280         </nationalNumberPattern>
11281         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11282         <exampleNumber>848123456</exampleNumber>
11283       </sharedCost>
11284       <personalNumber>
11285         <nationalNumberPattern>
11286           1(?:
11287             78\d|
11288             99
11289           )\d{6}
11290         </nationalNumberPattern>
11291         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
11292         <exampleNumber>1781234567</exampleNumber>
11293       </personalNumber>
11294       <voip>
11295         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
11296         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11297         <exampleNumber>5512345678</exampleNumber>
11298       </voip>
11299     </territory>
11300
11301     <!-- Jersey -->
11302     <!-- Inherits formatting rules from the UK. -->
11303     <territory id="JE" countryCode="44" internationalPrefix="00"
11304                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
11305       <references>
11306         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
11307         <sourceUrl>http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&amp;childID=1036</sourceUrl>
11308       </references>
11309       <generalDesc>
11310         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
11311         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11312       </generalDesc>
11313       <areaCodeOptional>
11314         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
11315         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11316         <exampleNumber>1534250123</exampleNumber>
11317       </areaCodeOptional>
11318       <!-- Specific to JE. -->
11319       <fixedLine>
11320         <!-- 1534 with 10 digits. -->
11321         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
11322         <exampleNumber>1534456789</exampleNumber>
11323       </fixedLine>
11324       <mobile>
11325         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
11326         <nationalNumberPattern>
11327           7(?:
11328             509|
11329             7(?:
11330               00|
11331               97
11332             )|
11333             829|
11334             937
11335           )\d{6}
11336         </nationalNumberPattern>
11337         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11338         <exampleNumber>7797123456</exampleNumber>
11339       </mobile>
11340       <pager>
11341         <!-- Pager numbers as per GB. -->
11342         <nationalNumberPattern>
11343           76(?:
11344             0[012]|
11345             2[356]|
11346             4[0134]|
11347             5[49]|
11348             6[0-369]|
11349             77|
11350             81|
11351             9[39]
11352           )\d{6}
11353         </nationalNumberPattern>
11354         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11355         <exampleNumber>7640123456</exampleNumber>
11356       </pager>
11357       <!-- Specific to JE. -->
11358       <tollFree>
11359         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
11360         <nationalNumberPattern>
11361           80(?:
11362             07(?:
11363               35|
11364               81
11365             )|
11366             8901
11367           )\d{4}
11368         </nationalNumberPattern>
11369         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11370         <exampleNumber>8007354567</exampleNumber>
11371       </tollFree>
11372       <premiumRate>
11373         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
11374         <nationalNumberPattern>
11375           (?:
11376             871206|
11377             90(?:
11378               066[59]|
11379               1810|
11380               71(?:
11381                 07|
11382                 55
11383               )
11384             )
11385           )\d{4}
11386         </nationalNumberPattern>
11387         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11388         <exampleNumber>9018105678</exampleNumber>
11389       </premiumRate>
11390       <sharedCost>
11391         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
11392         <nationalNumberPattern>
11393           8(?:
11394             4(?:
11395               4(?:
11396                 4(?:
11397                   05|
11398                   42|
11399                   69
11400                 )|
11401                 703
11402               )|
11403               5(?:
11404                 041|
11405                 800
11406               )
11407             )|
11408             70002
11409           )\d{4}
11410         </nationalNumberPattern>
11411         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11412         <exampleNumber>8447034567</exampleNumber>
11413       </sharedCost>
11414       <personalNumber>
11415         <!-- 70 1511 with 10 digits. -->
11416         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
11417         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11418         <exampleNumber>7015115678</exampleNumber>
11419       </personalNumber>
11420       <voip>
11421         <!-- VoIP numbers as per GB. -->
11422         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
11423         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11424         <exampleNumber>5612345678</exampleNumber>
11425       </voip>
11426       <uan>
11427         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
11428              370 002, 371 206, 55 with 10 digits. -->
11429         <nationalNumberPattern>
11430           3(?:
11431             0(?:
11432               07(?:
11433                 35|
11434                 81
11435               )|
11436               8901
11437             )|
11438             3\d{4}|
11439             4(?:
11440               4(?:
11441                 4(?:
11442                   05|
11443                   42|
11444                   69
11445                 )|
11446                 703
11447               )|
11448               5(?:
11449                 041|
11450                 800
11451               )
11452             )|
11453             7(?:
11454               0002|
11455               1206
11456             )
11457           )\d{4}|
11458           55\d{8}
11459         </nationalNumberPattern>
11460         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11461         <exampleNumber>5512345678</exampleNumber>
11462       </uan>
11463     </territory>
11464
11465     <!-- Jamaica -->
11466     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
11467                internationalPrefix="011">
11468       <references>
11469         <sourceUrl>http://www.itu.int/oth/T020200006C/en</sourceUrl>
11470       </references>
11471       <generalDesc>
11472         <!-- NANPA country - uses US formatting rules -->
11473         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
11474         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
11475       </generalDesc>
11476       <fixedLine>
11477         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
11478         <nationalNumberPattern>
11479           876(?:
11480             5(?:
11481               0[12]|
11482               1[0-468]|
11483               2[35]|
11484               63
11485             )|
11486             6(?:
11487               0[1-3579]|
11488               1[027-9]|
11489               [23]\d|
11490               40|
11491               5[06]|
11492               6[2-589]|
11493               7[05]|
11494               8[04]|
11495               9[4-9]
11496             )|
11497             7(?:
11498               0[2-689]|
11499               [1-6]\d|
11500               8[056]|
11501               9[45]
11502             )|
11503             9(?:
11504               0[1-8]|
11505               1[02378]|
11506               [2-8]\d|
11507               9[2-468]
11508             )
11509           )\d{4}
11510         </nationalNumberPattern>
11511         <exampleNumber>8765123456</exampleNumber>
11512       </fixedLine>
11513       <mobile>
11514         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
11515              be valid by sending SMSs and looking at online number lookup sites.
11516
11517              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
11518              Most have mobile numbers online so we have put them under mobile but is possible
11519              they are a mixture of fixed line and mobile. -->
11520         <nationalNumberPattern>
11521           876(?:
11522             2[1789]\d|
11523             [348]\d{2}|
11524             5(?:
11525               08|
11526               27|
11527               6[0-24-9]|
11528               [3-578]\d
11529             )|
11530             7(?:
11531               0[07]|
11532               7\d|
11533               8[1-47-9]|
11534               9[0-36-9]
11535             )|
11536             9(?:
11537               [01]9|
11538               9[0579]
11539             )
11540           )\d{4}
11541         </nationalNumberPattern>
11542         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11543         <exampleNumber>8762101234</exampleNumber>
11544       </mobile>
11545       <tollFree>
11546         <nationalNumberPattern>
11547           8(?:
11548             00|
11549             44|
11550             55|
11551             66|
11552             77|
11553             88
11554           )[2-9]\d{6}
11555         </nationalNumberPattern>
11556         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11557         <exampleNumber>8002123456</exampleNumber>
11558       </tollFree>
11559       <premiumRate>
11560         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
11561         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11562         <exampleNumber>9002123456</exampleNumber>
11563       </premiumRate>
11564       <personalNumber>
11565         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
11566         <nationalNumberPattern>
11567           5(?:
11568             00|
11569             33|
11570             44|
11571             66|
11572             77
11573           )[2-9]\d{6}
11574         </nationalNumberPattern>
11575         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11576         <exampleNumber>5002345678</exampleNumber>
11577       </personalNumber>
11578     </territory>
11579
11580     <!-- Jordan -->
11581     <territory id="JO" countryCode="962" internationalPrefix="00"
11582                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
11583                mobileNumberPortableRegion="true">
11584       <references>
11585         <sourceUrl>http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english</sourceUrl>
11586         <sourceUrl>http://www.itu.int/oth/T020200006E/en</sourceUrl>
11587         <sourceUrl>http://en.wikipedia.org/wiki/%2B962</sourceUrl>
11588       </references>
11589       <availableFormats>
11590         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
11591           pattern="(\d)(\d{3})(\d{4})">
11592           <leadingDigits>
11593             [2356]|
11594             87
11595           </leadingDigits>
11596           <format>$1 $2 $3</format>
11597         </numberFormat>
11598         <numberFormat pattern="(7)(\d{4})(\d{4})">
11599           <leadingDigits>7[457-9]</leadingDigits>
11600           <format>$1 $2 $3</format>
11601         </numberFormat>
11602         <numberFormat pattern="(\d{3})(\d{5,6})">
11603           <leadingDigits>
11604             70|
11605             8[0158]|
11606             9
11607           </leadingDigits>
11608           <format>$1 $2</format>
11609         </numberFormat>
11610       </availableFormats>
11611       <generalDesc>
11612         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
11613         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11614       </generalDesc>
11615       <fixedLine>
11616         <nationalNumberPattern>
11617           (?:
11618             2(?:
11619               6(?:
11620                 2[0-35-9]|
11621                 3[0-57-8]|
11622                 4[24-7]|
11623                 5[0-24-8]|
11624                 [6-8][02]|
11625                 9[0-2]
11626               )|
11627               7(?:
11628                 0[1-79]|
11629                 10|
11630                 2[014-7]|
11631                 3[0-689]|
11632                 4[019]|
11633                 5[0-3578]
11634               )
11635             )|
11636             32(?:
11637               0[1-69]|
11638               1[1-35-7]|
11639               2[024-7]|
11640               3\d|
11641               4[0-2]|
11642               [57][02]|
11643               60
11644             )|
11645             53(?:
11646               0[0-2]|
11647               [13][02]|
11648               2[0-59]|
11649               49|
11650               5[0-35-9]|
11651               6[15]|
11652               7[45]|
11653               8[1-6]|
11654               9[0-36-9]
11655             )|
11656             6(?:
11657               2[50]0|
11658               300|
11659               4(?:
11660                 0[0125]|
11661                 1[2-7]|
11662                 2[0569]|
11663                 [38][07-9]|
11664                 4[025689]|
11665                 6[0-589]|
11666                 7\d|
11667                 9[0-2]
11668               )|
11669               5(?:
11670                 [01][056]|
11671                 2[034]|
11672                 3[0-57-9]|
11673                 4[17-8]|
11674                 5[0-69]|
11675                 6[0-35-9]|
11676                 7[1-379]|
11677                 8[0-68]|
11678                 9[02-39]
11679               )
11680             )|
11681             87(?:
11682               [02]0|
11683               7[08]|
11684               9[09]
11685             )
11686           )\d{4}
11687         </nationalNumberPattern>
11688         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
11689         <exampleNumber>62001234</exampleNumber>
11690       </fixedLine>
11691       <mobile>
11692         <nationalNumberPattern>
11693           7(?:
11694             55|
11695             7[25-9]|
11696             8[05-9]|
11697             9[015-9]
11698           )\d{6}
11699         </nationalNumberPattern>
11700         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11701         <exampleNumber>790123456</exampleNumber>
11702       </mobile>
11703       <pager>
11704         <nationalNumberPattern>
11705           74(?:
11706             66|
11707             77
11708           )\d{5}
11709         </nationalNumberPattern>
11710         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11711         <exampleNumber>746612345</exampleNumber>
11712       </pager>
11713       <tollFree>
11714         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
11715         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11716         <exampleNumber>80012345</exampleNumber>
11717       </tollFree>
11718       <premiumRate>
11719         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
11720         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11721         <exampleNumber>90012345</exampleNumber>
11722       </premiumRate>
11723       <sharedCost>
11724         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
11725         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11726         <exampleNumber>85012345</exampleNumber>
11727       </sharedCost>
11728       <personalNumber>
11729         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
11730         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11731         <exampleNumber>700123456</exampleNumber>
11732       </personalNumber>
11733       <uan>
11734         <!-- These numbers are Location Independent Services / Fixed cost according to
11735              http://www.trc.gov.jo -->
11736         <nationalNumberPattern>
11737           8(?:
11738             10|
11739             8\d
11740           )\d{5}
11741         </nationalNumberPattern>
11742         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11743         <exampleNumber>88101234</exampleNumber>
11744       </uan>
11745     </territory>
11746
11747     <!-- Japan -->
11748     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
11749                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true"
11750                mobileNumberPortableRegion="true">
11751       <references>
11752         <sourceUrl>http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html</sourceUrl>
11753         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=JP</sourceUrl>
11754       </references>
11755       <availableFormats>
11756         <!-- Toll-free, premium-rate and UAN numbers -->
11757         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
11758           <leadingDigits>
11759             (?:
11760               12|
11761               57|
11762               99
11763             )0
11764           </leadingDigits>
11765           <format>$1-$2-$3</format>
11766         </numberFormat>
11767         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
11768           <leadingDigits>800</leadingDigits>
11769           <format>$1-$2-$3</format>
11770         </numberFormat>
11771         <!-- National-only toll-free numbers (0037, 0066, 0077 and 0088). -->
11772         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
11773           <leadingDigits>0077</leadingDigits>
11774           <format>$1-$2</format>
11775           <intlFormat>NA</intlFormat>
11776         </numberFormat>
11777         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{3,4})">
11778           <leadingDigits>0077</leadingDigits>
11779           <format>$1-$2-$3</format>
11780           <intlFormat>NA</intlFormat>
11781         </numberFormat>
11782         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{4})">
11783           <leadingDigits>0088</leadingDigits>
11784           <format>$1-$2-$3</format>
11785           <intlFormat>NA</intlFormat>
11786         </numberFormat>
11787         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3,4})">
11788           <leadingDigits>
11789             00(?:
11790                37|
11791                66
11792             )
11793           </leadingDigits>
11794           <format>$1-$2-$3</format>
11795           <intlFormat>NA</intlFormat>
11796         </numberFormat>
11797         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})(\d{4,5})">
11798           <leadingDigits>
11799             00(?:
11800                37|
11801                66
11802             )
11803           </leadingDigits>
11804           <format>$1-$2-$3</format>
11805           <intlFormat>NA</intlFormat>
11806         </numberFormat>
11807         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{5})(\d{5,6})">
11808           <leadingDigits>
11809             00(?:
11810                37|
11811                66
11812             )
11813           </leadingDigits>
11814           <format>$1-$2-$3</format>
11815           <intlFormat>NA</intlFormat>
11816         </numberFormat>
11817         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{6})(\d{6,7})">
11818           <leadingDigits>
11819             00(?:
11820                37|
11821                66
11822             )
11823           </leadingDigits>
11824           <format>$1-$2-$3</format>
11825           <intlFormat>NA</intlFormat>
11826         </numberFormat>
11827         <!-- Some leading digits are explicitly reserved for a particular purpose.
11828              We handle them first in this rule, and let the following rules ignore those exceptions.
11829              Note: The rule here is not in the files we rely on when creating the other rules.
11830                    We would need to manually modify it if the Japanese goverment
11831                    decided to change the rule.
11832
11833              (prefix): purpose
11834              "20": Pagers
11835              "50": IP phone
11836              "70": PHS (Personal Handy-phone System, which has been used in Japan
11837                    with Non-3G, Japanese-specific protocol).
11838                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
11839              "80" and "90": Mobile phone
11840           -->
11841         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
11842           <leadingDigits>
11843             [2579]0|
11844             80[1-9]
11845           </leadingDigits>
11846           <format>$1-$2-$3</format>
11847         </numberFormat>
11848         <!-- The order of the reg-exps are important.
11849              Examples (not all):
11850              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
11851              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
11852              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
11853              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
11854              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
11855              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
11856           -->
11857         <numberFormat pattern="(\d{4})(\d)(\d{4})">
11858           <leadingDigits>
11859             1(?:
11860               26|
11861               3[79]|
11862               4[56]|
11863               5[4-68]|
11864               6[3-5]
11865             )|
11866             5(?:
11867               76|
11868               97
11869             )|
11870             499|
11871             746|
11872             8(?:
11873               3[89]|
11874               63|
11875               47|
11876               51
11877             )|
11878             9(?:
11879               49|
11880               80|
11881               9[16]
11882             )
11883           </leadingDigits>
11884           <leadingDigits>
11885             1(?:
11886               267|
11887               3(?:
11888                 7[247]|
11889                 9[278]
11890               )|
11891               4(?:
11892                 5[67]|
11893                 66
11894               )|
11895               5(?:
11896                 47|
11897                 58|
11898                 64|
11899                 8[67]
11900               )|
11901               6(?:
11902                 3[245]|
11903                 48|
11904                 5[4-68]
11905               )
11906             )|
11907             5(?:
11908               76|
11909               97
11910             )9|
11911             499[2468]|
11912             7468|
11913             8(?:
11914               3(?:
11915                 8[78]|
11916                 96
11917               )|
11918               636|
11919               477|
11920               51[24]
11921             )|
11922             9(?:
11923               496|
11924               802|
11925               9(?:
11926                 1[23]|
11927                 69
11928               )
11929             )
11930           </leadingDigits>
11931           <leadingDigits>
11932             1(?:
11933               267|
11934               3(?:
11935                 7[247]|
11936                 9[278]
11937               )|
11938               4(?:
11939                 5[67]|
11940                 66
11941               )|
11942               5(?:
11943                 47|
11944                 58|
11945                 64|
11946                 8[67]
11947               )|
11948               6(?:
11949                 3[245]|
11950                 48|
11951                 5[4-68]
11952               )
11953             )|
11954             5(?:
11955               769|
11956               979[2-69]
11957             )|
11958             499[2468]|
11959             7468|
11960             8(?:
11961               3(?:
11962                 8[78]|
11963                 96[2457-9]
11964               )|
11965               636[2-57-9]|
11966               477|
11967               51[24]
11968             )|
11969             9(?:
11970               496|
11971               802|
11972               9(?:
11973                 1[23]|
11974                 69
11975               )
11976             )
11977           </leadingDigits>
11978           <format>$1-$2-$3</format>
11979         </numberFormat>
11980         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
11981           <leadingDigits>
11982             1(?:
11983               2[3-6]|
11984               3[3-9]|
11985               4[2-6]|
11986               5[2-8]|
11987               [68][2-7]|
11988               7[2-689]|
11989               9[1-578]
11990             )|
11991             2(?:
11992               2[03-689]|
11993               3[3-58]|
11994               4[0-468]|
11995               5[04-8]|
11996               6[013-8]|
11997               7[06-9]|
11998               8[02-57-9]|
11999               9[13]
12000             )|
12001             4(?:
12002               2[28]|
12003               3[689]|
12004               6[035-7]|
12005               7[05689]|
12006               80|
12007               9[3-5]
12008             )|
12009             5(?:
12010               3[1-36-9]|
12011               4[4578]|
12012               5[013-8]|
12013               6[1-9]|
12014               7[2-8]|
12015               8[14-7]|
12016               9[4-9]
12017             )|
12018             7(?:
12019               2[15]|
12020               3[5-9]|
12021               4[02-9]|
12022               6[135-8]|
12023               7[0-4689]|
12024               9[014-9]
12025             )|
12026             8(?:
12027               2[49]|
12028               3[3-8]|
12029               4[5-8]|
12030               5[2-9]|
12031               6[35-9]|
12032               7[579]|
12033               8[03-579]|
12034               9[2-8]
12035             )|
12036             9(?:
12037               [23]0|
12038               4[02-46-9]|
12039               5[024-79]|
12040               6[4-9]|
12041               7[2-47-9]|
12042               8[02-7]|
12043               9[3-7]
12044             )
12045           </leadingDigits>
12046           <leadingDigits>
12047             1(?:
12048               2[3-6]|
12049               3[3-9]|
12050               4[2-6]|
12051               5(?:
12052                 [236-8]|
12053                 [45][2-69]
12054               )|
12055               [68][2-7]|
12056               7[2-689]|
12057               9[1-578]
12058             )|
12059             2(?:
12060               2(?:
12061                 [04-689]|
12062                 3[23]
12063               )|
12064               3[3-58]|
12065               4[0-468]|
12066               5(?:
12067                 5[78]|
12068                 7[2-4]|
12069                 [0468][2-9]
12070               )|
12071               6(?:
12072                 [0135-8]|
12073                 4[2-5]
12074               )|
12075               7(?:
12076                 [0679]|
12077                 8[2-7]
12078               )|
12079               8(?:
12080                 [024578]|
12081                 3[25-9]|
12082                 9[6-9]
12083               )|
12084               9(?:
12085                 11|
12086                 3[2-4]
12087               )
12088             )|
12089             4(?:
12090               2(?:
12091                 2[2-9]|
12092                 8[237-9]
12093               )|
12094               3[689]|
12095               6[035-7]|
12096               7(?:
12097                 [059][2-8]|
12098                 [68]
12099               )|
12100               80|
12101               9[3-5]
12102             )|
12103             5(?:
12104               3[1-36-9]|
12105               4[4578]|
12106               5[013-8]|
12107               6[1-9]|
12108               7[2-8]|
12109               8[14-7]|
12110               9(?:
12111                 [89][2-8]|
12112                 [4-7]
12113               )
12114             )|
12115             7(?:
12116               2[15]|
12117               3[5-9]|
12118               4[02-9]|
12119               6[135-8]|
12120               7[0-4689]|
12121               9(?:
12122                 [017-9]|
12123                 4[6-8]|
12124                 5[2-478]|
12125                 6[2-589]
12126               )
12127             )|
12128             8(?:
12129               2(?:
12130                 4[4-8]|
12131                 9[2-8]
12132               )|
12133               3(?:
12134                 7[2-6]|
12135                 [3-6][2-9]|
12136                 8[2-5]
12137               )|
12138               4[5-8]|
12139               5[2-9]|
12140               6(?:
12141                 [37]|
12142                 5[4-7]|
12143                 6[2-9]|
12144                 8[2-8]|
12145                 9[236-9]
12146               )|
12147               7[579]|
12148               8[03-579]|
12149               9[2-8]
12150             )|
12151             9(?:
12152               [23]0|
12153               4[02-46-9]|
12154               5[024-79]|
12155               6[4-9]|
12156               7[2-47-9]|
12157               8[02-7]|
12158               9(?:
12159                 3[34]|
12160                 [4-7]
12161               )
12162             )
12163           </leadingDigits>
12164           <leadingDigits>
12165             1(?:
12166               2[3-6]|
12167               3[3-9]|
12168               4[2-6]|
12169               5(?:
12170                 [236-8]|
12171                 [45][2-69]
12172               )|
12173               [68][2-7]|
12174               7[2-689]|
12175               9[1-578]
12176             )|
12177             2(?:
12178               2(?:
12179                 [04-689]|
12180                 3[23]
12181               )|
12182               3[3-58]|
12183               4[0-468]|
12184               5(?:
12185                 5[78]|
12186                 7[2-4]|
12187                 [0468][2-9]
12188               )|
12189               6(?:
12190                 [0135-8]|
12191                 4[2-5]
12192               )|
12193               7(?:
12194                 [0679]|
12195                 8[2-7]
12196               )|
12197               8(?:
12198                 [024578]|
12199                 3[25-9]|
12200                 9[6-9]
12201               )|
12202               9(?:
12203                 11|
12204                 3[2-4]
12205               )
12206             )|
12207             4(?:
12208               2(?:
12209                 2[2-9]|
12210                 8[237-9]
12211               )|
12212               3[689]|
12213               6[035-7]|
12214               7(?:
12215                 [059][2-8]|
12216                 [68]
12217               )|
12218               80|
12219               9[3-5]
12220             )|
12221             5(?:
12222               3[1-36-9]|
12223               4[4578]|
12224               5[013-8]|
12225               6[1-9]|
12226               7[2-8]|
12227               8[14-7]|
12228               9(?:
12229                 [89][2-8]|
12230                 [4-7]
12231               )
12232             )|
12233             7(?:
12234               2[15]|
12235               3[5-9]|
12236               4[02-9]|
12237               6[135-8]|
12238               7[0-4689]|
12239               9(?:
12240                 [017-9]|
12241                 4[6-8]|
12242                 5[2-478]|
12243                 6[2-589]
12244               )
12245             )|
12246             8(?:
12247               2(?:
12248                 4[4-8]|
12249                 9(?:
12250                   [3578]|
12251                   20|
12252                   4[04-9]|
12253                   6[56]
12254                 )
12255               )|
12256               3(?:
12257                 7(?:
12258                   [2-5]|
12259                   6[0-59]
12260                 )|
12261                 [3-6][2-9]|
12262                 8[2-5]
12263               )|
12264               4[5-8]|
12265               5[2-9]|
12266               6(?:
12267                 [37]|
12268                 5(?:
12269                   [467]|
12270                   5[014-9]
12271                 )|
12272                 6(?:
12273                   [2-8]|
12274                   9[02-69]
12275                 )|
12276                 8[2-8]|
12277                 9(?:
12278                   [236-8]|
12279                   9[23]
12280                 )
12281               )|
12282               7[579]|
12283               8[03-579]|
12284               9[2-8]
12285             )|
12286             9(?:
12287               [23]0|
12288               4[02-46-9]|
12289               5[024-79]|
12290               6[4-9]|
12291               7[2-47-9]|
12292               8[02-7]|
12293               9(?:
12294                 3(?:
12295                   3[02-9]|
12296                   4[0-24689]
12297                 )|
12298                 4[2-69]|
12299                 [5-7]
12300               )
12301             )
12302           </leadingDigits>
12303           <leadingDigits>
12304             1(?:
12305               2[3-6]|
12306               3[3-9]|
12307               4[2-6]|
12308               5(?:
12309                 [236-8]|
12310                 [45][2-69]
12311               )|
12312               [68][2-7]|
12313               7[2-689]|
12314               9[1-578]
12315             )|
12316             2(?:
12317               2(?:
12318                 [04-689]|
12319                 3[23]
12320               )|
12321               3[3-58]|
12322               4[0-468]|
12323               5(?:
12324                 5[78]|
12325                 7[2-4]|
12326                 [0468][2-9]
12327               )|
12328               6(?:
12329                 [0135-8]|
12330                 4[2-5]
12331               )|
12332               7(?:
12333                 [0679]|
12334                 8[2-7]
12335               )|
12336               8(?:
12337                 [024578]|
12338                 3[25-9]|
12339                 9[6-9]
12340               )|
12341               9(?:
12342                 11|
12343                 3[2-4]
12344               )
12345             )|
12346             4(?:
12347               2(?:
12348                 2[2-9]|
12349                 8[237-9]
12350               )|
12351               3[689]|
12352               6[035-7]|
12353               7(?:
12354                 [059][2-8]|
12355                 [68]
12356               )|
12357               80|
12358               9[3-5]
12359             )|
12360             5(?:
12361               3[1-36-9]|
12362               4[4578]|
12363               5[013-8]|
12364               6[1-9]|
12365               7[2-8]|
12366               8[14-7]|
12367               9(?:
12368                 [89][2-8]|
12369                 [4-7]
12370               )
12371             )|
12372             7(?:
12373               2[15]|
12374               3[5-9]|
12375               4[02-9]|
12376               6[135-8]|
12377               7[0-4689]|
12378               9(?:
12379                 [017-9]|
12380                 4[6-8]|
12381                 5[2-478]|
12382                 6[2-589]
12383               )
12384             )|
12385             8(?:
12386               2(?:
12387                 4[4-8]|
12388                 9(?:
12389                   [3578]|
12390                   20|
12391                   4[04-9]|
12392                   6(?:
12393                     5[25]|
12394                     60
12395                   )
12396                 )
12397               )|
12398               3(?:
12399                 7(?:
12400                   [2-5]|
12401                   6[0-59]
12402                 )|
12403                 [3-6][2-9]|
12404                 8[2-5]
12405               )|
12406               4[5-8]|
12407               5[2-9]|
12408               6(?:
12409                 [37]|
12410                 5(?:
12411                   [467]|
12412                   5[014-9]
12413                 )|
12414                 6(?:
12415                   [2-8]|
12416                   9[02-69]
12417                 )|
12418                 8[2-8]|
12419                 9(?:
12420                   [236-8]|
12421                   9[23]
12422                 )
12423               )|
12424               7[579]|
12425               8[03-579]|
12426               9[2-8]
12427             )|
12428             9(?:
12429               [23]0|
12430               4[02-46-9]|
12431               5[024-79]|
12432               6[4-9]|
12433               7[2-47-9]|
12434               8[02-7]|
12435               9(?:
12436                 3(?:
12437                   3[02-9]|
12438                   4[0-24689]
12439                 )|
12440                 4[2-69]|
12441                 [5-7]
12442               )
12443             )
12444           </leadingDigits>
12445           <format>$1-$2-$3</format>
12446         </numberFormat>
12447         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12448           <leadingDigits>
12449             1|
12450             2(?:
12451               2[37]|
12452               5[5-9]|
12453               64|
12454               78|
12455               8[39]|
12456               91
12457             )|
12458             4(?:
12459               2[2689]|
12460               64|
12461               7[347]
12462             )|
12463             5(?:
12464               [2-589]|
12465               39
12466             )|
12467             60|
12468             8(?:
12469               [46-9]|
12470               3[279]|
12471               2[124589]
12472             )|
12473             9(?:
12474               [235-8]|
12475               93
12476             )
12477           </leadingDigits>
12478           <leadingDigits>
12479             1|
12480             2(?:
12481               2[37]|
12482               5(?:
12483                 [57]|
12484                 [68]0|
12485                 9[19]
12486               )|
12487               64|
12488               78|
12489               8[39]|
12490               917
12491             )|
12492             4(?:
12493               2(?:
12494                 [68]|
12495                 20|
12496                 9[178]
12497               )|
12498               64|
12499               7[347]
12500             )|
12501             5(?:
12502               [2-589]|
12503               39[67]
12504             )|
12505             60|
12506             8(?:
12507               [46-9]|
12508               3[279]|
12509               2[124589]
12510             )|
12511             9(?:
12512               [235-8]|
12513               93[34]
12514             )
12515           </leadingDigits>
12516           <leadingDigits>
12517             1|
12518             2(?:
12519               2[37]|
12520               5(?:
12521                 [57]|
12522                 [68]0|
12523                 9(?:
12524                   17|
12525                   99
12526                 )
12527               )|
12528               64|
12529               78|
12530               8[39]|
12531               917
12532             )|
12533             4(?:
12534               2(?:
12535                 [68]|
12536                 20|
12537                 9[178]
12538               )|
12539               64|
12540               7[347]
12541             )|
12542             5(?:
12543               [2-589]|
12544               39[67]
12545             )|
12546             60|
12547             8(?:
12548               [46-9]|
12549               3[279]|
12550               2[124589]
12551             )|
12552             9(?:
12553               [235-8]|
12554               93(?:
12555                 31|
12556                 4
12557               )
12558             )
12559           </leadingDigits>
12560           <format>$1-$2-$3</format>
12561         </numberFormat>
12562         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12563           <leadingDigits>
12564             2(?:
12565               9[14-79]|
12566               74|
12567               [34]7|
12568               [56]9
12569             )|
12570             82|
12571             993
12572           </leadingDigits>
12573           <format>$1-$2-$3</format>
12574         </numberFormat>
12575         <numberFormat pattern="(\d)(\d{4})(\d{4})">
12576           <leadingDigits>
12577             3|
12578             4(?:
12579               2[09]|
12580               7[01]
12581             )|
12582             6[1-9]
12583           </leadingDigits>
12584           <format>$1-$2-$3</format>
12585         </numberFormat>
12586         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12587           <leadingDigits>[2479][1-9]</leadingDigits>
12588           <format>$1-$2-$3</format>
12589         </numberFormat>
12590       </availableFormats>
12591       <generalDesc>
12592         <nationalNumberPattern>
12593           [1-9]\d{8,9}|
12594           00(?:
12595              [36]\d{7,14}|
12596              7\d{5,7}|
12597              8\d{7}
12598           )
12599         </nationalNumberPattern>
12600         <possibleNumberPattern>\d{8,17}</possibleNumberPattern>
12601       </generalDesc>
12602       <noInternationalDialling>
12603         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
12604         <nationalNumberPattern>
12605           00(?:
12606              37\d{6,13}|
12607              66\d{6,13}|
12608              777(?:
12609                [01]\d{2}|
12610                5\d{3}|
12611                8\d{4}
12612              )|
12613              882[1245]\d{4}
12614           )
12615         </nationalNumberPattern>
12616         <exampleNumber>00777012</exampleNumber>
12617       </noInternationalDialling>
12618       <fixedLine>
12619         <nationalNumberPattern>
12620           (?:
12621             1(?:
12622               1[235-8]|
12623               2[3-6]|
12624               3[3-9]|
12625               4[2-6]|
12626               [58][2-8]|
12627               6[2-7]|
12628               7[2-9]|
12629               9[1-9]
12630             )|
12631             2[2-9]\d|
12632             [36][1-9]\d|
12633             4(?:
12634               6[02-8]|
12635               [2-578]\d|
12636               9[2-59]
12637             )|
12638             5(?:
12639               6[1-9]|
12640               7[2-8]|
12641               [2-589]\d
12642             )|
12643             7(?:
12644               3[4-9]|
12645               4[02-9]|
12646               [25-9]\d
12647             )|
12648             8(?:
12649               3[2-9]|
12650               4[5-9]|
12651               5[1-9]|
12652               8[03-9]|
12653               [2679]\d
12654             )|
12655             9(?:
12656               [679][1-9]|
12657               [2-58]\d
12658             )
12659           )\d{6}
12660         </nationalNumberPattern>
12661         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12662         <exampleNumber>312345678</exampleNumber>
12663       </fixedLine>
12664       <mobile>
12665         <nationalNumberPattern>[7-9]0[1-9]\d{7}</nationalNumberPattern>
12666         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12667         <exampleNumber>7012345678</exampleNumber>
12668       </mobile>
12669       <pager>
12670         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
12671         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12672         <exampleNumber>2012345678</exampleNumber>
12673       </pager>
12674       <tollFree>
12675         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
12676              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
12677              http://eonet.jp/home/denwa/service/access.html
12678              http://ci.fusioncom.co.jp/feature/
12679              http://www.auhikari.jp/service/tel/connection/index.html -->
12680         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
12681              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
12682              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
12683              for now (including both leading 00s). -->
12684         <nationalNumberPattern>
12685           120\d{6}|
12686           800\d{7}|
12687           00(?:
12688              37\d{6,13}|
12689              66\d{6,13}|
12690              777(?:
12691                [01]\d{2}|
12692                5\d{3}|
12693                8\d{4}
12694              )|
12695              882[1245]\d{4}
12696           )
12697         </nationalNumberPattern>
12698         <exampleNumber>120123456</exampleNumber>
12699       </tollFree>
12700       <premiumRate>
12701         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
12702         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12703         <exampleNumber>990123456</exampleNumber>
12704       </premiumRate>
12705       <personalNumber>
12706         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
12707         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12708         <exampleNumber>601234567</exampleNumber>
12709       </personalNumber>
12710       <voip>
12711         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
12712         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12713         <exampleNumber>5012345678</exampleNumber>
12714       </voip>
12715       <!-- Storing "unified number service" as UAN. -->
12716       <uan>
12717         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
12718         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12719         <exampleNumber>570123456</exampleNumber>
12720       </uan>
12721     </territory>
12722
12723     <!-- Kenya -->
12724     <territory id="KE" countryCode="254" internationalPrefix="000"
12725                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
12726                mobileNumberPortableRegion="true">
12727       <references>
12728         <sourceUrl>http://www.cck.go.ke/licensing/numbering/plan.html</sourceUrl>
12729         <sourceUrl>http://en.wikipedia.org/wiki/+254</sourceUrl>
12730       </references>
12731       <availableFormats>
12732         <numberFormat pattern="(\d{2})(\d{5,7})">
12733           <leadingDigits>[24-6]</leadingDigits>
12734           <format>$1 $2</format>
12735         </numberFormat>
12736         <numberFormat pattern="(\d{3})(\d{6,7})">
12737           <leadingDigits>7</leadingDigits>
12738           <format>$1 $2</format>
12739         </numberFormat>
12740         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12741           <leadingDigits>[89]</leadingDigits>
12742           <format>$1 $2 $3</format>
12743         </numberFormat>
12744       </availableFormats>
12745       <generalDesc>
12746         <nationalNumberPattern>
12747           20\d{6,7}|
12748           [4-9]\d{6,9}
12749         </nationalNumberPattern>
12750         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
12751       </generalDesc>
12752       <fixedLine>
12753         <!-- The prefixes 046, 050, 058, and 066 may appear online in less than 9 digits but
12754              calling them has confirmed these are outdated. However a 7-digit 068 number was
12755              dialed successfully so we consider these valid despite the plan. -->
12756         <nationalNumberPattern>
12757           20\d{6,7}|
12758           4(?:
12759             [0136]\d{7}|
12760             [245]\d{5,7}
12761           )|
12762           5(?:
12763             [08]\d{7}|
12764             [1-79]\d{5,7}
12765           )|
12766           6(?:
12767             [01457-9]\d{5,7}|
12768             [26]\d{7}
12769           )
12770         </nationalNumberPattern>
12771         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
12772         <exampleNumber>202012345</exampleNumber>
12773       </fixedLine>
12774       <mobile>
12775         <nationalNumberPattern>
12776           7(?:
12777             [0-36]\d|
12778             5[0-6]|
12779             7[0-5]|
12780             8[0-25-9]
12781           )\d{6}
12782         </nationalNumberPattern>
12783         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12784         <exampleNumber>712123456</exampleNumber>
12785       </mobile>
12786       <tollFree>
12787         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
12788         <!-- The plan suggests 0844 and 0845 may belong here, but these are short numbers rather
12789              than prefixes:
12790              http://www.telkomkenya.8k.com/Products/v/2.html
12791              http://www.kenya-advisor.com/phone-calls-kenya.html
12792              http://www.telkom.co.ke/index.php?option=com_content&view=article&id=64&Itemid=98 -->
12793         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
12794         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12795         <exampleNumber>800223456</exampleNumber>
12796       </tollFree>
12797       <premiumRate>
12798         <nationalNumberPattern>900[02-9]\d{5}</nationalNumberPattern>
12799         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12800         <exampleNumber>900223456</exampleNumber>
12801       </premiumRate>
12802     </territory>
12803
12804     <!-- Kyrgyzstan -->
12805     <territory id="KG" countryCode="996" internationalPrefix="00"
12806                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
12807       <references>
12808         <sourceUrl>http://www.itu.int/oth/T0202000074/en</sourceUrl>
12809       </references>
12810       <availableFormats>
12811         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
12812           <leadingDigits>
12813             [25-7]|
12814             31[25]
12815           </leadingDigits>
12816           <format>$1 $2 $3</format>
12817         </numberFormat>
12818         <numberFormat pattern="(\d{4})(\d{5})">
12819           <leadingDigits>
12820             3(?:
12821               1[36]|
12822               [2-9]
12823             )
12824           </leadingDigits>
12825           <format>$1 $2</format>
12826         </numberFormat>
12827         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
12828           <leadingDigits>8</leadingDigits>
12829           <format>$1 $2 $3 $4</format>
12830         </numberFormat>
12831       </availableFormats>
12832       <generalDesc>
12833         <nationalNumberPattern>[235-8]\d{8,9}</nationalNumberPattern>
12834         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12835       </generalDesc>
12836       <fixedLine>
12837         <!-- Extra area codes found on Web Search: 3147. -->
12838         <nationalNumberPattern>
12839           (?:
12840             3(?:
12841               1(?:
12842                 [256]\d|
12843                 3[1-9]|
12844                 47
12845               )|
12846               2(?:
12847                 22|
12848                 3[0-479]|
12849                 6[0-7]
12850               )|
12851               4(?:
12852                 22|
12853                 5[6-9]|
12854                 6\d
12855               )|
12856               5(?:
12857                 22|
12858                 3[4-7]|
12859                 59|
12860                 6\d
12861               )|
12862               6(?:
12863                 22|
12864                 5[35-7]|
12865                 6\d
12866               )|
12867               7(?:
12868                 22|
12869                 3[468]|
12870                 4[1-9]|
12871                 59|
12872                 [67]\d
12873               )|
12874               9(?:
12875                 22|
12876                 4[1-8]|
12877                 6\d
12878               )
12879             )|
12880             6(?:
12881               09|
12882               12|
12883               2[2-4]
12884             )\d
12885           )\d{5}
12886         </nationalNumberPattern>
12887         <exampleNumber>312123456</exampleNumber>
12888       </fixedLine>
12889       <mobile>
12890         <nationalNumberPattern>
12891           (?:
12892             20[0-35]|
12893             5[124-7]\d|
12894             7[07]\d
12895           )\d{6}
12896         </nationalNumberPattern>
12897         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12898         <exampleNumber>700123456</exampleNumber>
12899       </mobile>
12900       <tollFree>
12901         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
12902              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
12903         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
12904         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12905         <exampleNumber>800123456</exampleNumber>
12906       </tollFree>
12907       <!-- No premiumRate information can be found. -->
12908       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
12909     </territory>
12910
12911     <!-- Cambodia -->
12912     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
12913                nationalPrefix="0">
12914       <references>
12915         <sourceUrl>http://www.itu.int/oth/T0202000023/en</sourceUrl>
12916         <sourceUrl>http://en.wikipedia.org/wiki/+855</sourceUrl>
12917       </references>
12918       <availableFormats>
12919         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
12920           <leadingDigits>
12921             1\d[1-9]|
12922             [2-9]
12923           </leadingDigits>
12924           <format>$1 $2 $3</format>
12925         </numberFormat>
12926         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
12927           <leadingDigits>1[89]0</leadingDigits>
12928           <format>$1 $2 $3</format>
12929         </numberFormat>
12930       </availableFormats>
12931       <generalDesc>
12932         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
12933         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
12934       </generalDesc>
12935       <fixedLine>
12936         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
12937              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
12938              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
12939              range beginning with 6 seems to include some numbers that are one digit longer as well.
12940              Allowing 238\d{6} and 234[234]\d{4} based on information from Cambodia Yellow Pages.
12941              Note that numbers beginning with 234 are split across two patterns. -->
12942         <nationalNumberPattern>
12943           (?:
12944             2[3-6]|
12945             3[2-6]|
12946             4[2-4]|
12947             [5-7][2-5]
12948           )(?:
12949             [237-9]|
12950             4[56]|
12951             5\d|
12952             6\d?
12953           )\d{5}|
12954           23(?:
12955             4[234]|
12956             8\d{2}
12957           )\d{4}
12958         </nationalNumberPattern>
12959         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
12960         <exampleNumber>23756789</exampleNumber>
12961       </fixedLine>
12962       <mobile>
12963         <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
12964              Beeline uses 060.
12965              Mobitel uses 01[1247].
12966              Cellcard uses 0857 and 061.
12967              Extra prefixes found online: 088, 097.
12968              Allowing 9-digit 12, 31, 38 and 76 numbers based on information from Cambodia Yellow
12969              Pages and online search. -->
12970         <nationalNumberPattern>
12971           (?:
12972             1(?:
12973               [013-9]|
12974               2\d?
12975             )|
12976             3[18]\d|
12977             6[016-9]|
12978             7(?:
12979               [07-9]|
12980               6\d
12981             )|
12982             8(?:
12983               [013-79]|
12984               8\d
12985             )|
12986             9(?:
12987               6\d|
12988               7\d?|
12989               [0-589]
12990             )
12991           )\d{6}
12992         </nationalNumberPattern>
12993         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
12994         <exampleNumber>91234567</exampleNumber>
12995       </mobile>
12996       <tollFree>
12997         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
12998         <nationalNumberPattern>
12999           1800(?:
13000             1\d|
13001             2[019]
13002           )\d{4}
13003         </nationalNumberPattern>
13004         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13005         <exampleNumber>1800123456</exampleNumber>
13006       </tollFree>
13007       <premiumRate>
13008         <nationalNumberPattern>
13009           1900(?:
13010             1\d|
13011             2[09]
13012           )\d{4}
13013         </nationalNumberPattern>
13014         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13015         <exampleNumber>1900123456</exampleNumber>
13016       </premiumRate>
13017     </territory>
13018
13019     <!-- Kiribati -->
13020     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
13021          leading 0 - no numbers online have been found formatted this way, but the ITU document
13022          lists it as a national dialling prefix. -->
13023     <territory id="KI" countryCode="686" internationalPrefix="00"
13024                nationalPrefixForParsing="0">
13025       <references>
13026         <sourceUrl>http://www.itu.int/oth/T0202000071/en</sourceUrl>
13027       </references>
13028       <!-- Numbers should be formatted as a block." -->
13029       <generalDesc>
13030         <nationalNumberPattern>
13031           [2458]\d{4}|
13032           3\d{4,7}|
13033           7\d{7}
13034         </nationalNumberPattern>
13035         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
13036       </generalDesc>
13037       <fixedLine>
13038         <nationalNumberPattern>
13039           (?:
13040             [24]\d|
13041             3[1-9]|
13042             50|
13043             8[0-5]
13044           )\d{3}
13045         </nationalNumberPattern>
13046         <possibleNumberPattern>\d{5}</possibleNumberPattern>
13047         <exampleNumber>31234</exampleNumber>
13048       </fixedLine>
13049       <mobile>
13050         <!-- North Tarawa is listed as 720XXXXX-729XXXXX but considering that this deviates from the
13051              pattern followed by every other place, we are assuming 731XXXXX-732XXXXX for now. -->
13052         <nationalNumberPattern>
13053           7(?:
13054             [24]\d|
13055             3[1-9]|
13056             8[0-5]
13057           )\d{5}
13058         </nationalNumberPattern>
13059         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13060         <exampleNumber>72012345</exampleNumber>
13061       </mobile>
13062       <premiumRate>
13063         <!-- ITU refers to these as "Telemedia and audiotext". -->
13064         <nationalNumberPattern>3001\d{4}</nationalNumberPattern>
13065         <exampleNumber>30010000</exampleNumber>
13066       </premiumRate>
13067     </territory>
13068
13069     <!-- Comoros -->
13070     <territory id="KM" countryCode="269" internationalPrefix="00">
13071       <references>
13072         <sourceUrl>http://www.itu.int/oth/T020200002D/en</sourceUrl>
13073       </references>
13074       <availableFormats>
13075         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
13076           <format>$1 $2 $3</format>
13077         </numberFormat>
13078       </availableFormats>
13079       <generalDesc>
13080         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
13081         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13082       </generalDesc>
13083       <fixedLine>
13084         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
13085              http://www.comorestelecom.km/presentationcdma.php -->
13086         <nationalNumberPattern>
13087           7(?:
13088             6[0-37-9]|
13089             7[0-57-9]
13090           )\d{4}
13091         </nationalNumberPattern>
13092         <exampleNumber>7712345</exampleNumber>
13093       </fixedLine>
13094       <mobile>
13095         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
13096         <exampleNumber>3212345</exampleNumber>
13097       </mobile>
13098       <premiumRate>
13099         <!-- These are referred to as value-added services in the plan and no further information
13100              can be found. -->
13101         <nationalNumberPattern>
13102           (?:
13103             39[01]|
13104             9[01]0
13105           )\d{4}
13106         </nationalNumberPattern>
13107         <exampleNumber>9001234</exampleNumber>
13108       </premiumRate>
13109     </territory>
13110
13111     <!-- Saint Kitts and Nevis -->
13112     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
13113                internationalPrefix="011">
13114       <references>
13115         <sourceUrl>http://www.itu.int/oth/T02020000B0/en</sourceUrl>
13116       </references>
13117       <generalDesc>
13118         <!-- NANPA country - uses US formatting rules -->
13119         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
13120         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13121       </generalDesc>
13122       <fixedLine>
13123         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
13124              of it can be found. -->
13125         <nationalNumberPattern>
13126           869(?:
13127             2(?:
13128               29|
13129               36
13130             )|
13131             302|
13132             4(?:
13133               6[015-9]|
13134               70
13135             )
13136           )\d{4}
13137         </nationalNumberPattern>
13138         <exampleNumber>8692361234</exampleNumber>
13139       </fixedLine>
13140       <mobile>
13141         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
13142         <nationalNumberPattern>
13143           869(?:
13144             5(?:
13145               5[6-8]|
13146               6[5-7]
13147             )|
13148             66\d|
13149             76[02-6]
13150           )\d{4}
13151         </nationalNumberPattern>
13152         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13153         <!-- Example number from the ITU document. -->
13154         <exampleNumber>8697652917</exampleNumber>
13155       </mobile>
13156       <tollFree>
13157         <nationalNumberPattern>
13158           8(?:
13159             00|
13160             44|
13161             55|
13162             66|
13163             77|
13164             88
13165           )[2-9]\d{6}
13166         </nationalNumberPattern>
13167         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13168         <exampleNumber>8002123456</exampleNumber>
13169       </tollFree>
13170       <premiumRate>
13171         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
13172         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13173         <exampleNumber>9002123456</exampleNumber>
13174       </premiumRate>
13175       <personalNumber>
13176         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13177         <nationalNumberPattern>
13178           5(?:
13179             00|
13180             33|
13181             44|
13182             66|
13183             77
13184           )[2-9]\d{6}
13185         </nationalNumberPattern>
13186         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13187         <exampleNumber>5002345678</exampleNumber>
13188       </personalNumber>
13189     </territory>
13190
13191     <!-- Korea, Dem. People's Rep. of -->
13192     <territory id="KP" countryCode="850" internationalPrefix="00|99"
13193                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13194       <references>
13195         <sourceUrl>http://en.wikipedia.org/wiki/%2B850</sourceUrl>
13196       </references>
13197       <availableFormats>
13198         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13199           <leadingDigits>1</leadingDigits>
13200           <format>$1 $2 $3</format>
13201         </numberFormat>
13202         <numberFormat pattern="(\d)(\d{3})(\d{4})">
13203           <leadingDigits>2</leadingDigits>
13204           <format>$1 $2 $3</format>
13205         </numberFormat>
13206         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
13207           <leadingDigits>8</leadingDigits>
13208           <format>$1 $2 $3</format>
13209         </numberFormat>
13210       </availableFormats>
13211       <generalDesc>
13212         <nationalNumberPattern>
13213           1\d{9}|
13214           [28]\d{7}
13215         </nationalNumberPattern>
13216         <possibleNumberPattern>
13217           \d{6,8}|
13218           \d{10}
13219         </possibleNumberPattern>
13220       </generalDesc>
13221       <noInternationalDialling>
13222         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
13223         <nationalNumberPattern>
13224           2(?:
13225             [0-24-9]\d{2}|
13226             3(?:
13227               [0-79]\d|
13228               8[02-9]
13229             )
13230           )\d{4}
13231         </nationalNumberPattern>
13232         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13233         <exampleNumber>23821234</exampleNumber>
13234       </noInternationalDialling>
13235       <fixedLine>
13236         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
13237              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
13238              from overseas. Also, there is conflicting information about the length of fixed-line
13239              numbers, so here we are following Wikipedia. -->
13240         <nationalNumberPattern>
13241           2\d{7}|
13242           85\d{6}
13243         </nationalNumberPattern>
13244         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
13245         <exampleNumber>21234567</exampleNumber>
13246       </fixedLine>
13247       <mobile>
13248         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
13249         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13250         <exampleNumber>1921234567</exampleNumber>
13251       </mobile>
13252     </territory>
13253
13254     <!-- Korea (Rep. of) -->
13255     <!-- Exceptions :
13256         internationalPrefix
13257             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
13258         nationalPrefix
13259             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
13260     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
13261                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
13262                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG"
13263                mobileNumberPortableRegion="true">
13264       <references>
13265         <sourceUrl>http://www.itu.int/oth/T0202000072/en</sourceUrl>
13266         <sourceUrl>http://en.wikipedia.org/wiki/%2B82</sourceUrl>
13267         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2349</sourceUrl>
13268         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2240</sourceUrl>
13269         <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>
13270       </references>
13271       <availableFormats>
13272         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
13273           <leadingDigits>
13274             1(?:
13275               0|
13276               1[19]|
13277               [69]9|
13278               5[458]
13279             )|
13280             [57]0
13281           </leadingDigits>
13282           <leadingDigits>
13283             1(?:
13284               0|
13285               1[19]|
13286               [69]9|
13287               5(?:
13288                 44|
13289                 59|
13290                 8
13291               )
13292             )|
13293             [57]0
13294           </leadingDigits>
13295           <format>$1-$2-$3</format>
13296         </numberFormat>
13297         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
13298           <leadingDigits>
13299             1(?:
13300               [169][2-8]|
13301               [78]|
13302               5[1-4]
13303             )|
13304             [68]0|
13305             [3-6][1-9][1-9]
13306           </leadingDigits>
13307           <leadingDigits>
13308             1(?:
13309               [169][2-8]|
13310               [78]|
13311               5(?:
13312                 [1-3]|
13313                 4[56]
13314               )
13315             )|
13316             [68]0|
13317             [3-6][1-9][1-9]
13318           </leadingDigits>
13319           <format>$1-$2-$3</format>
13320         </numberFormat>
13321         <numberFormat pattern="(\d{3})(\d)(\d{4})">
13322           <leadingDigits>131</leadingDigits>
13323           <leadingDigits>1312</leadingDigits>
13324           <format>$1-$2-$3</format>
13325         </numberFormat>
13326         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
13327           <leadingDigits>131</leadingDigits>
13328           <leadingDigits>131[13-9]</leadingDigits>
13329           <format>$1-$2-$3</format>
13330         </numberFormat>
13331         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13332           <leadingDigits>13[2-9]</leadingDigits>
13333           <format>$1-$2-$3</format>
13334         </numberFormat>
13335         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
13336              limit of what digits may follow the 030, but we ignore that here. These numbers are
13337              actually not supported for validation purposes by the library at the moment as no
13338              online examples can be found, but we leave theme here so formatting continues to work
13339              if they are entered. -->
13340         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
13341           <leadingDigits>30</leadingDigits>
13342           <format>$1-$2-$3-$4</format>
13343         </numberFormat>
13344         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
13345           <leadingDigits>2[1-9]</leadingDigits>
13346           <format>$1-$2-$3</format>
13347         </numberFormat>
13348         <numberFormat pattern="(\d)(\d{3,4})">
13349           <leadingDigits>21[0-46-9]</leadingDigits>
13350           <format>$1-$2</format>
13351         </numberFormat>
13352         <numberFormat pattern="(\d{2})(\d{3,4})">
13353           <leadingDigits>[3-6][1-9]1</leadingDigits>
13354           <leadingDigits>
13355             [3-6][1-9]1(?:
13356               [0-46-9]
13357             )
13358           </leadingDigits>
13359           <format>$1-$2</format>
13360         </numberFormat>
13361         <!-- Company numbers. -->
13362         <numberFormat pattern="(\d{4})(\d{4})"
13363           nationalPrefixFormattingRule="$FG">
13364           <leadingDigits>
13365             1(?:
13366               5[46-9]|
13367               6[04678]|
13368               8[0579]
13369             )
13370           </leadingDigits>
13371           <leadingDigits>
13372             1(?:
13373               5(?:
13374                 44|
13375                 66|
13376                 77|
13377                 88|
13378                 99
13379               )|
13380               6(?:
13381                 00|
13382                 44|
13383                 6[16]|
13384                 70|
13385                 88
13386               )|
13387               8(?:
13388                 00|
13389                 55|
13390                 77|
13391                 99
13392               )
13393             )
13394           </leadingDigits>
13395           <format>$1-$2</format>
13396         </numberFormat>
13397       </availableFormats>
13398       <generalDesc>
13399         <nationalNumberPattern>
13400           [1-7]\d{3,9}|
13401           8\d{8}
13402         </nationalNumberPattern>
13403         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13404       </generalDesc>
13405       <fixedLine>
13406         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
13407              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
13408              starting with 1 based on evidence of real numbers found online. -->
13409         <nationalNumberPattern>
13410           (?:
13411             2|
13412             3[1-3]|
13413             [46][1-4]|
13414             5[1-5]
13415           )(?:
13416             1\d{2,3}|
13417             [1-9]\d{6,7}
13418           )
13419         </nationalNumberPattern>
13420         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13421         <exampleNumber>22123456</exampleNumber>
13422       </fixedLine>
13423       <mobile>
13424         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
13425         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13426         <exampleNumber>1023456789</exampleNumber>
13427       </mobile>
13428       <pager>
13429         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
13430         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13431         <exampleNumber>1523456789</exampleNumber>
13432       </pager>
13433       <tollFree>
13434         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
13435         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13436         <exampleNumber>801234567</exampleNumber>
13437       </tollFree>
13438       <!-- The information below is provided by a Korean person. -->
13439       <premiumRate>
13440         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
13441         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13442         <exampleNumber>602345678</exampleNumber>
13443       </premiumRate>
13444       <personalNumber>
13445         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
13446         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13447         <exampleNumber>5012345678</exampleNumber>
13448       </personalNumber>
13449       <voip>
13450         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
13451         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13452         <exampleNumber>7012345678</exampleNumber>
13453       </voip>
13454       <uan>
13455         <!-- Prefix 18 added from numbers found online. -->
13456         <nationalNumberPattern>
13457           1(?:
13458             5(?:
13459               44|
13460               66|
13461               77|
13462               88|
13463               99
13464             )|
13465             6(?:
13466               00|
13467               44|
13468               6[16]|
13469               70|
13470               88
13471             )|
13472             8(?:
13473               00|
13474               55|
13475               77|
13476               99
13477             )
13478           )\d{4}
13479         </nationalNumberPattern>
13480         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13481         <exampleNumber>15441234</exampleNumber>
13482       </uan>
13483     </territory>
13484
13485     <!-- Kuwait -->
13486     <territory id="KW" countryCode="965" internationalPrefix="00" mobileNumberPortableRegion="true">
13487       <references>
13488         <sourceUrl>http://www.itu.int/oth/T0202000073/en</sourceUrl>
13489       </references>
13490       <availableFormats>
13491         <!-- Format is from ITU. -->
13492         <numberFormat pattern="(\d{4})(\d{3,4})">
13493           <leadingDigits>[1269]</leadingDigits>
13494           <format>$1 $2</format>
13495         </numberFormat>
13496         <numberFormat pattern="(5[015]\d)(\d{5})">
13497           <leadingDigits>5</leadingDigits>
13498           <format>$1 $2</format>
13499         </numberFormat>
13500       </availableFormats>
13501       <generalDesc>
13502         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
13503         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13504       </generalDesc>
13505       <fixedLine>
13506         <nationalNumberPattern>
13507           (?:
13508             18\d|
13509             2(?:
13510               [23]\d{2}|
13511               4(?:
13512                 [1-35-9]\d|
13513                 44
13514               )|
13515               5(?:
13516                 0[034]|
13517                 [2-46]\d|
13518                 5[1-3]|
13519                 7[1-7]
13520               )
13521             )
13522           )\d{4}
13523         </nationalNumberPattern>
13524         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13525         <exampleNumber>22345678</exampleNumber>
13526       </fixedLine>
13527       <mobile>
13528         <nationalNumberPattern>
13529           (?:
13530             5(?:
13531               [05]\d|
13532               1[0-6]
13533             )|
13534             6(?:
13535               0[034679]|
13536               5[015-9]|
13537               6\d|
13538               7[067]|
13539               9[0369]
13540             )|
13541             9(?:
13542               0[09]|
13543               4[049]|
13544               55|
13545               6[069]|
13546               [79]\d|
13547               8[089]
13548             )
13549           )\d{5}
13550         </nationalNumberPattern>
13551         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13552         <exampleNumber>50012345</exampleNumber>
13553       </mobile>
13554       <!-- No tollFree or premiumRate information can be found. -->
13555     </territory>
13556
13557     <!-- Cayman Islands -->
13558     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
13559                internationalPrefix="011">
13560       <references>
13561         <sourceUrl>http://www.itu.int/oth/T0202000027/en</sourceUrl>
13562       </references>
13563       <generalDesc>
13564         <!-- NANPA country - uses US formatting rules -->
13565         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
13566         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13567       </generalDesc>
13568       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
13569            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
13570       <fixedLine>
13571         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
13572              as per numbers found online and their website http://www.logic.ky. -->
13573         <nationalNumberPattern>
13574           345(?:
13575             2(?:
13576               22|
13577               44
13578             )|
13579             444|
13580             6(?:
13581               23|
13582               38|
13583               40
13584             )|
13585             7(?:
13586               4[35-79]|
13587               6[6-9]|
13588               77
13589             )|
13590             8(?:
13591               00|
13592               1[45]|
13593               25|
13594               [48]8
13595             )|
13596             9(?:
13597               14|
13598               4[035-9]
13599             )
13600           )\d{4}
13601         </nationalNumberPattern>
13602         <exampleNumber>3452221234</exampleNumber>
13603       </fixedLine>
13604       <mobile>
13605         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
13606              Most central office codes that were surrendered have not been included, with the
13607              exception of 546 where numbers have been found. -->
13608         <nationalNumberPattern>
13609           345(?:
13610             32[1-9]|
13611             5(?:
13612               1[67]|
13613               2[5-7]|
13614               4[6-8]|
13615               76
13616             )|
13617             9(?:
13618               1[67]|
13619               2[3-9]|
13620               3[689]
13621             )
13622           )\d{4}
13623         </nationalNumberPattern>
13624         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13625         <exampleNumber>3453231234</exampleNumber>
13626       </mobile>
13627       <pager>
13628         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
13629         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13630         <exampleNumber>3458491234</exampleNumber>
13631       </pager>
13632       <tollFree>
13633         <nationalNumberPattern>
13634           8(?:
13635             00|
13636             44|
13637             55|
13638             66|
13639             77|
13640             88
13641           )[2-9]\d{6}
13642         </nationalNumberPattern>
13643         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13644         <exampleNumber>8002345678</exampleNumber>
13645       </tollFree>
13646       <premiumRate>
13647         <nationalNumberPattern>
13648           900[2-9]\d{6}|
13649           345976\d{4}
13650         </nationalNumberPattern>
13651         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13652         <exampleNumber>9002345678</exampleNumber>
13653       </premiumRate>
13654       <personalNumber>
13655         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13656         <nationalNumberPattern>
13657           5(?:
13658             00|
13659             33|
13660             44|
13661             66|
13662             77
13663           )[2-9]\d{6}
13664         </nationalNumberPattern>
13665         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13666         <exampleNumber>5002345678</exampleNumber>
13667       </personalNumber>
13668     </territory>
13669
13670     <!-- Kazakhstan -->
13671     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
13672                internationalPrefix="810" nationalPrefix="8">
13673       <references>
13674         <sourceUrl>http://www.itu.int/oth/T020200006F/en</sourceUrl>
13675       </references>
13676        <!-- Formatting rules obtained from Russia. -->
13677       <generalDesc>
13678         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
13679              determining the country is faster. -->
13680         <nationalNumberPattern>
13681           (?:
13682             33\d|
13683             7\d{2}|
13684             80[09]
13685           )\d{7}
13686         </nationalNumberPattern>
13687         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13688       </generalDesc>
13689       <noInternationalDialling>
13690         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13691         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13692         <exampleNumber>7511234567</exampleNumber>
13693       </noInternationalDialling>
13694       <fixedLine>
13695         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
13696              22), which is within Kazakhstan but in fact rented and administered by Russia at the
13697              moment. -->
13698         <nationalNumberPattern>
13699           33622\d{5}|
13700           7(?:
13701             1(?:
13702               0(?:
13703                 [23]\d|
13704                 4[023]|
13705                 59|
13706                 63
13707               )|
13708               1(?:
13709                 [23]\d|
13710                 4[0-79]|
13711                 59
13712               )|
13713               2(?:
13714                 [23]\d|
13715                 59
13716               )|
13717               3(?:
13718                 2\d|
13719                 3[1-79]|
13720                 4[0-35-9]|
13721                 59
13722               )|
13723               4(?:
13724                 2\d|
13725                 3[013-79]|
13726                 4[0-8]|
13727                 5[1-79]
13728               )|
13729               5(?:
13730                 2\d|
13731                 3[1-8]|
13732                 4[1-7]|
13733                 59
13734               )|
13735               6(?:
13736                 [234]\d|
13737                 5[19]|
13738                 61
13739               )|
13740               72\d|
13741               8(?:
13742                 [27]\d|
13743                 3[1-46-9]|
13744                 4[0-5]
13745               )
13746             )|
13747             2(?:
13748               1(?:
13749                 [23]\d|
13750                 4[46-9]|
13751                 5[3469]
13752               )|
13753               2(?:
13754                 2\d|
13755                 3[0679]|
13756                 46|
13757                 5[12679]
13758               )|
13759               3(?:
13760                 [234]\d|
13761                 5[139]
13762               )|
13763               4(?:
13764                 2\d|
13765                 3[1235-9]|
13766                 59
13767               )|
13768               5(?:
13769                 [23]\d|
13770                 4[01246-8]|
13771                 59|
13772                 61
13773               )|
13774               6(?:
13775                 2\d|
13776                 3[1-9]|
13777                 4[0-4]|
13778                 59
13779               )|
13780               7(?:
13781                 [237]\d|
13782                 40|
13783                 5[279]
13784               )|
13785               8(?:
13786                 [23]\d|
13787                 4[0-3]|
13788                 59
13789               )|
13790               9(?:
13791                 2\d|
13792                 3[124578]|
13793                 59
13794               )
13795             )
13796           )\d{5}
13797         </nationalNumberPattern>
13798         <exampleNumber>7123456789</exampleNumber>
13799       </fixedLine>
13800       <mobile>
13801         <!-- Added 708 for Altel, 776 for Beeline, 747 for Tele2. -->
13802         <nationalNumberPattern>
13803           7(?:
13804             0[012578]|
13805             47|
13806             6[02-4]|
13807             7[15-8]|
13808             85
13809           )\d{7}
13810         </nationalNumberPattern>
13811         <exampleNumber>7710009998</exampleNumber>
13812       </mobile>
13813       <tollFree>
13814         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
13815         <exampleNumber>8001234567</exampleNumber>
13816       </tollFree>
13817       <premiumRate>
13818         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
13819         <exampleNumber>8091234567</exampleNumber>
13820       </premiumRate>
13821       <voip>
13822         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13823         <exampleNumber>7511234567</exampleNumber>
13824       </voip>
13825     </territory>
13826
13827     <!-- Lao People's Dem. Rep. -->
13828     <territory id="LA" countryCode="856" internationalPrefix="00"
13829                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13830       <references>
13831         <!-- Seems incomplete -->
13832         <sourceUrl>http://www.itu.int/oth/T0202000075/en</sourceUrl>
13833         <sourceUrl>http://en.wikipedia.org/wiki/+856</sourceUrl>
13834       </references>
13835       <availableFormats>
13836         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
13837           <leadingDigits>20</leadingDigits>
13838           <format>$1 $2 $3 $4</format>
13839         </numberFormat>
13840         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
13841           <leadingDigits>
13842             2[13]|
13843             3[14]|
13844             [4-8]
13845           </leadingDigits>
13846           <format>$1 $2 $3</format>
13847         </numberFormat>
13848         <numberFormat pattern="(30)(\d{2})(\d{2})(\d{3})">
13849           <leadingDigits>30</leadingDigits>
13850           <format>$1 $2 $3 $4</format>
13851         </numberFormat>
13852       </availableFormats>
13853       <generalDesc>
13854         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
13855         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13856       </generalDesc>
13857       <fixedLine>
13858         <!-- The Lonely Planet says that newer WIN phones (fixed phones without a physical landline)
13859              start with 030 (and are longer). There are plenty of examples online. -->
13860         <nationalNumberPattern>
13861           (?:
13862             2[13]|
13863             3(?:
13864               0\d|
13865               [14]
13866             )|
13867             [5-7][14]|
13868             41|
13869             8[1468]
13870           )\d{6}
13871         </nationalNumberPattern>
13872         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13873         <exampleNumber>21212862</exampleNumber>
13874       </fixedLine>
13875       <mobile>
13876         <!-- Adding 202[89], 205[89], 207[68] and 209[15-7] from numbers found online. -->
13877         <nationalNumberPattern>
13878           20(?:
13879             2[2389]|
13880             5[4-689]|
13881             7[6-8]|
13882             9[15-9]
13883           )\d{6}
13884         </nationalNumberPattern>
13885         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13886         <exampleNumber>2023123456</exampleNumber>
13887       </mobile>
13888       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
13889     </territory>
13890
13891     <!-- Lebanon -->
13892     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
13893       <references>
13894         <sourceUrl>http://www.itu.int/oth/T0202000077/en</sourceUrl>
13895         <sourceUrl>http://en.wikipedia.org/wiki/%2B961</sourceUrl>
13896       </references>
13897       <availableFormats>
13898         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
13899           <leadingDigits>
13900             [13-6]|
13901             7(?:
13902               [2-579]|
13903               62|
13904               8[0-7]
13905             )|
13906             [89][2-9]
13907             </leadingDigits>
13908           <format>$1 $2 $3</format>
13909         </numberFormat>
13910         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
13911           <leadingDigits>
13912             [89][01]|
13913             7(?:
13914               [019]|
13915               6[013-9]|
13916               8[89]
13917             )
13918           </leadingDigits>
13919           <format>$1 $2 $3</format>
13920         </numberFormat>
13921       </availableFormats>
13922       <generalDesc>
13923         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
13924         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13925       </generalDesc>
13926       <fixedLine>
13927         <!-- The ITU document from October 2012 seems to have accidentally dropped the 79 prefix for
13928              fixed-line numbers, which had been in the version from July 2012. We consider these
13929              valid since we successfully dialed such a number in July 2014. -->
13930         <nationalNumberPattern>
13931           (?:
13932             [14-6]\d{2}|
13933             7(?:
13934               [2-579]\d|
13935               62|
13936               8[0-7]
13937             )|
13938             [89][2-9]\d
13939           )\d{4}
13940         </nationalNumberPattern>
13941         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13942         <exampleNumber>1123456</exampleNumber>
13943       </fixedLine>
13944       <mobile>
13945         <!-- We only validate the first three digits here, since the ranges are growing rapidly.
13946              The 79[02-9] prefixes were added from bug reports and numbers found online. -->
13947         <nationalNumberPattern>
13948           (?:
13949             3\d|
13950             7(?:
13951               [019]\d|
13952               6[013-9]|
13953               8[89]
13954             )
13955           )\d{5}
13956         </nationalNumberPattern>
13957         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13958         <exampleNumber>71123456</exampleNumber>
13959       </mobile>
13960       <premiumRate>
13961         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
13962         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13963         <exampleNumber>90123456</exampleNumber>
13964       </premiumRate>
13965       <sharedCost>
13966         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
13967         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13968         <exampleNumber>80123456</exampleNumber>
13969       </sharedCost>
13970     </territory>
13971
13972     <!-- Saint Lucia -->
13973     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
13974                internationalPrefix="011">
13975       <references>
13976         <sourceUrl>http://www.itu.int/oth/T02020000B1/en</sourceUrl>
13977       </references>
13978       <generalDesc>
13979         <!-- NANPA country - uses US formatting rules -->
13980         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
13981         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13982       </generalDesc>
13983       <fixedLine>
13984         <!-- Adding 430 since numbers have been found with these prefixes online. -->
13985         <nationalNumberPattern>
13986           758(?:
13987             4(?:
13988               30|
13989               5[0-9]|
13990               6[2-9]|
13991               8[0-2]
13992             )|
13993             57[0-2]|
13994             638
13995           )\d{4}
13996         </nationalNumberPattern>
13997         <exampleNumber>7584305678</exampleNumber>
13998       </fixedLine>
13999       <mobile>
14000         <nationalNumberPattern>
14001           758(?:
14002             28[4-7]|
14003             384|
14004             4(?:
14005               6[01]|
14006               8[4-9]
14007             )|
14008             5(?:
14009               1[89]|
14010               20|
14011               84
14012             )|
14013             7(?:
14014               1[2-9]|
14015               2[0-8]
14016             )
14017           )\d{4}
14018         </nationalNumberPattern>
14019         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14020         <exampleNumber>7582845678</exampleNumber>
14021       </mobile>
14022       <tollFree>
14023         <nationalNumberPattern>
14024           8(?:
14025             00|
14026             44|
14027             55|
14028             66|
14029             77|
14030             88
14031           )[2-9]\d{6}
14032         </nationalNumberPattern>
14033         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14034         <exampleNumber>8002123456</exampleNumber>
14035       </tollFree>
14036       <premiumRate>
14037         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
14038         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14039         <exampleNumber>9002123456</exampleNumber>
14040       </premiumRate>
14041       <personalNumber>
14042         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
14043         <nationalNumberPattern>
14044           5(?:
14045             00|
14046             33|
14047             44|
14048             66|
14049             77
14050           )[2-9]\d{6}
14051         </nationalNumberPattern>
14052         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14053         <exampleNumber>5002345678</exampleNumber>
14054       </personalNumber>
14055     </territory>
14056
14057     <!-- Liechtenstein -->
14058     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
14059     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
14060       <references>
14061         <sourceUrl>http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm</sourceUrl>
14062       </references>
14063       <availableFormats>
14064         <!-- Some different patterns for tollfree and shared cost numbers may be found by searching
14065              for "Mehrwertnummer" at http://www.telecom.li. -->
14066         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
14067           <leadingDigits>
14068             [23]|
14069             7[3-57-9]|
14070             87
14071           </leadingDigits>
14072           <format>$1 $2 $3</format>
14073         </numberFormat>
14074         <numberFormat pattern="(6\d)(\d{3})(\d{3})">
14075           <leadingDigits>6</leadingDigits>
14076           <format>$1 $2 $3</format>
14077         </numberFormat>
14078         <numberFormat pattern="(6[567]\d)(\d{3})(\d{3})">
14079           <leadingDigits>6[567]</leadingDigits>
14080           <format>$1 $2 $3</format>
14081         </numberFormat>
14082         <numberFormat pattern="(69)(7\d{2})(\d{4})">
14083           <leadingDigits>697</leadingDigits>
14084           <format>$1 $2 $3</format>
14085         </numberFormat>
14086         <numberFormat pattern="([7-9]0\d)(\d{2})(\d{2})">
14087           <leadingDigits>[7-9]0</leadingDigits>
14088           <format>$1 $2 $3</format>
14089         </numberFormat>
14090         <!-- Numbers of the form [89]00\d{6} are Swiss numbers callable from Liechtenstein. -->
14091         <numberFormat pattern="([89]0\d)(\d{2})(\d{2})(\d{2})"
14092           nationalPrefixFormattingRule="$NP$FG">
14093           <leadingDigits>[89]0</leadingDigits>
14094           <format>$1 $2 $3 $4</format>
14095         </numberFormat>
14096       </availableFormats>
14097       <generalDesc>
14098         <nationalNumberPattern>
14099           6\d{8}|
14100           [23789]\d{6}
14101         </nationalNumberPattern>
14102         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14103       </generalDesc>
14104       <fixedLine>
14105         <nationalNumberPattern>
14106           (?:
14107             2(?:
14108               01|
14109               1[27]|
14110               3\d|
14111               6[02-578]|
14112               96
14113             )|
14114             3(?:
14115               7[0135-7]|
14116               8[048]|
14117               9[0269]
14118             )
14119           )\d{4}
14120         </nationalNumberPattern>
14121         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14122         <exampleNumber>2345678</exampleNumber>
14123       </fixedLine>
14124       <mobile>
14125         <nationalNumberPattern>
14126           6(?:
14127             51[01]|
14128             6(?:
14129               [01][0-4]|
14130               2[016-9]|
14131               88
14132             )|
14133             710
14134           )\d{5}|
14135           7(?:
14136             36|
14137             4[25]|
14138             56|
14139             [7-9]\d
14140           )\d{4}
14141         </nationalNumberPattern>
14142         <exampleNumber>661234567</exampleNumber>
14143       </mobile>
14144       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
14145            even though it doesn't appear in the plan. -->
14146       <tollFree>
14147         <nationalNumberPattern>
14148           80(?:
14149             0(?:
14150               2[238]|
14151               79
14152             )|
14153             9\d{2}
14154           )\d{2}
14155         </nationalNumberPattern>
14156         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14157         <exampleNumber>8002222</exampleNumber>
14158       </tollFree>
14159       <premiumRate>
14160         <nationalNumberPattern>
14161           90(?:
14162             0(?:
14163               2[278]|
14164               79
14165             )|
14166             1(?:
14167               23|
14168               3[012]
14169             )|
14170             6(?:
14171               4\d|
14172               6[0126]
14173             )
14174           )\d{2}
14175         </nationalNumberPattern>
14176         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14177         <exampleNumber>9002222</exampleNumber>
14178       </premiumRate>
14179       <uan>
14180         <nationalNumberPattern>
14181           87(?:
14182             0[128]|
14183             7[0-4]
14184           )\d{3}
14185         </nationalNumberPattern>
14186         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14187         <exampleNumber>8770123</exampleNumber>
14188       </uan>
14189       <voicemail>
14190         <nationalNumberPattern>
14191           697(?:
14192             [35]6|
14193             4[25]|
14194             [7-9]\d
14195           )\d{4}
14196         </nationalNumberPattern>
14197         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14198         <exampleNumber>697361234</exampleNumber>
14199       </voicemail>
14200       <personalNumber>
14201         <nationalNumberPattern>701\d{4}</nationalNumberPattern>
14202         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14203         <exampleNumber>7011234</exampleNumber>
14204       </personalNumber>
14205     </territory>
14206
14207     <!-- Sri Lanka -->
14208     <territory id="LK" countryCode="94" internationalPrefix="00"
14209                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14210       <references>
14211         <sourceUrl>http://en.wikipedia.org/wiki/%2B94</sourceUrl>
14212         <sourceUrl>http://www.itu.int/oth/T02020000C3/en</sourceUrl>
14213       </references>
14214       <availableFormats>
14215         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
14216           <leadingDigits>[1-689]</leadingDigits>
14217           <format>$1 $2 $3</format>
14218         </numberFormat>
14219         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14220           <leadingDigits>7</leadingDigits>
14221           <format>$1 $2 $3</format>
14222         </numberFormat>
14223       </availableFormats>
14224       <generalDesc>
14225         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
14226         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14227       </generalDesc>
14228       <fixedLine>
14229         <nationalNumberPattern>
14230           (?:
14231             [189]1|
14232             2[13-7]|
14233             3[1-8]|
14234             4[157]|
14235             5[12457]|
14236             6[35-7]
14237           )[2-57]\d{6}
14238         </nationalNumberPattern>
14239         <exampleNumber>112345678</exampleNumber>
14240       </fixedLine>
14241       <mobile>
14242         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
14243         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
14244         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14245         <exampleNumber>712345678</exampleNumber>
14246       </mobile>
14247     </territory>
14248
14249     <!-- Liberia -->
14250     <territory id="LR" countryCode="231" internationalPrefix="00"
14251                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14252       <references>
14253         <sourceUrl>http://www.itu.int/oth/T0202000079/en</sourceUrl>
14254       </references>
14255       <availableFormats>
14256         <!-- Formatting from Ministry of Agriculture,
14257         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
14258         <numberFormat pattern="(2\d)(\d{3})(\d{3})">
14259           <leadingDigits>2</leadingDigits>
14260           <format>$1 $2 $3</format>
14261         </numberFormat>
14262         <numberFormat pattern="([79]\d{2})(\d{3})(\d{3})">
14263           <leadingDigits>[79]</leadingDigits>
14264           <format>$1 $2 $3</format>
14265         </numberFormat>
14266         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
14267           <leadingDigits>[4-6]</leadingDigits>
14268           <format>$1 $2 $3</format>
14269         </numberFormat>
14270         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14271           <leadingDigits>[38]</leadingDigits>
14272           <format>$1 $2 $3</format>
14273         </numberFormat>
14274       </availableFormats>
14275       <generalDesc>
14276         <nationalNumberPattern>
14277           2\d{7}|
14278           [37-9]\d{8}|
14279           [45]\d{6}
14280         </nationalNumberPattern>
14281         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14282       </generalDesc>
14283       <fixedLine>
14284         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14285         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14286         <exampleNumber>21234567</exampleNumber>
14287       </fixedLine>
14288       <mobile>
14289         <!-- West Africa Telecom seems to be a mobile company from their website. Adding Atlantic
14290              Wireless from the document, even though from online news reports it is not clear they
14291              are still operating. -->
14292         <nationalNumberPattern>
14293           (?:
14294             330\d|
14295             4[67]|
14296             5\d|
14297             77\d{2}|
14298             88\d{2}|
14299             994\d
14300           )\d{5}
14301         </nationalNumberPattern>
14302         <exampleNumber>770123456</exampleNumber>
14303       </mobile>
14304       <premiumRate>
14305         <!-- Telelinks and Interactive media service are listed under premium rate. -->
14306         <nationalNumberPattern>90[03]\d{6}</nationalNumberPattern>
14307         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14308         <exampleNumber>900123456</exampleNumber>
14309       </premiumRate>
14310       <voip>
14311         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
14312              say they are involved in the VoIP sector. Adding WASSCOM and Atlantic Realty &
14313              Investment Corporation here as well; no numbers can be found online, nor company
14314              information. -->
14315         <nationalNumberPattern>
14316           332(?:
14317             0[02]|
14318             5\d
14319           )\d{4}
14320         </nationalNumberPattern>
14321         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14322         <exampleNumber>332001234</exampleNumber>
14323       </voip>
14324     </territory>
14325
14326     <!-- Lesotho -->
14327     <territory id="LS" countryCode="266" internationalPrefix="00">
14328       <references>
14329         <sourceUrl>http://www.itu.int/oth/T0202000078/en</sourceUrl>
14330       </references>
14331       <availableFormats>
14332         <!-- Formatting following yellow pages: http://www.yellowpages.co.ls -->
14333         <numberFormat pattern="(\d{4})(\d{4})">
14334           <format>$1 $2</format>
14335         </numberFormat>
14336       </availableFormats>
14337       <generalDesc>
14338         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
14339         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14340       </generalDesc>
14341       <fixedLine>
14342         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14343         <exampleNumber>22123456</exampleNumber>
14344       </fixedLine>
14345       <mobile>
14346         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
14347         <exampleNumber>50123456</exampleNumber>
14348       </mobile>
14349       <tollFree>
14350         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
14351         <exampleNumber>80021234</exampleNumber>
14352       </tollFree>
14353     </territory>
14354
14355     <!-- Lithuania -->
14356     <!-- Note that Lithuania is switching to a national prefix of 0. We support
14357          both 0 and 8 when parsing until this switch is complete. -->
14358     <territory id="LT" countryCode="370" internationalPrefix="00"
14359                nationalPrefix="8" nationalPrefixForParsing="[08]"
14360                nationalPrefixFormattingRule="($NP-$FG)"
14361                nationalPrefixOptionalWhenFormatting="true" mobileNumberPortableRegion="true">
14362       <references>
14363         <sourceUrl>http://www.itu.int/oth/T020200007C/en</sourceUrl>
14364       </references>
14365       <!-- National Prefix formatting rule from http://www.yellowpages.lt -->
14366       <availableFormats>
14367         <!-- Two-digit area codes -->
14368         <numberFormat pattern="([34]\d)(\d{6})">
14369           <leadingDigits>
14370             37|
14371             4(?:
14372               1|
14373               5[45]|
14374               6[2-4]
14375             )
14376           </leadingDigits>
14377           <format>$1 $2</format>
14378         </numberFormat>
14379         <!-- Three-digit area codes -->
14380         <numberFormat pattern="([3-6]\d{2})(\d{5})">
14381           <leadingDigits>
14382             3[148]|
14383             4(?:
14384               [24]|
14385               6[09]
14386             )|
14387             528|
14388             6
14389           </leadingDigits>
14390           <format>$1 $2</format>
14391         </numberFormat>
14392         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
14393           nationalPrefixFormattingRule="$NP $FG">
14394           <leadingDigits>[7-9]</leadingDigits>
14395           <format>$1 $2 $3</format>
14396         </numberFormat>
14397         <numberFormat pattern="(5)(2\d{2})(\d{4})">
14398           <leadingDigits>52[0-79]</leadingDigits>
14399           <format>$1 $2 $3</format>
14400         </numberFormat>
14401       </availableFormats>
14402       <generalDesc>
14403         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
14404         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14405       </generalDesc>
14406       <fixedLine>
14407         <nationalNumberPattern>
14408           (?:
14409             3[1478]|
14410             4[124-6]|
14411             52
14412           )\d{6}
14413         </nationalNumberPattern>
14414         <exampleNumber>31234567</exampleNumber>
14415       </fixedLine>
14416       <mobile>
14417         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
14418         <exampleNumber>61234567</exampleNumber>
14419       </mobile>
14420       <tollFree>
14421         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14422         <exampleNumber>80012345</exampleNumber>
14423       </tollFree>
14424       <premiumRate>
14425         <nationalNumberPattern>
14426           9(?:
14427             0[0239]|
14428             10
14429           )\d{5}
14430         </nationalNumberPattern>
14431         <exampleNumber>90012345</exampleNumber>
14432       </premiumRate>
14433       <personalNumber>
14434         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
14435         <exampleNumber>70012345</exampleNumber>
14436       </personalNumber>
14437       <sharedCost>
14438         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14439         <exampleNumber>80812345</exampleNumber>
14440       </sharedCost>
14441       <uan>
14442         <!-- Including government service numbers here too. -->
14443         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
14444         <exampleNumber>70712345</exampleNumber>
14445       </uan>
14446     </territory>
14447
14448     <!-- Luxembourg -->
14449     <territory id="LU" countryCode="352" internationalPrefix="00"
14450                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
14451                carrierCodeFormattingRule="$CC $FG" mobileNumberPortableRegion="true">
14452       <references>
14453         <sourceUrl>http://www.ilr.public.lu/communications_electroniques/numerotation/index.html</sourceUrl>
14454       </references>
14455       <availableFormats>
14456         <!-- Patterns overlap because of variable number length. -->
14457         <numberFormat pattern="(\d{2})(\d{3})">
14458           <leadingDigits>
14459             [2-5]|
14460             7[1-9]|
14461             [89](?:
14462               [1-9]|
14463               0[2-9]
14464             )
14465           </leadingDigits>
14466           <format>$1 $2</format>
14467         </numberFormat>
14468         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
14469           <leadingDigits>
14470             [2-5]|
14471             7[1-9]|
14472             [89](?:
14473               [1-9]|
14474               0[2-9]
14475             )
14476           </leadingDigits>
14477           <format>$1 $2 $3</format>
14478         </numberFormat>
14479         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
14480           <leadingDigits>20</leadingDigits>
14481           <format>$1 $2 $3</format>
14482         </numberFormat>
14483         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
14484              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
14485              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
14486              -->
14487         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
14488           <leadingDigits>
14489             2(?:
14490               [0367]|
14491               4[3-8]
14492             )
14493           </leadingDigits>
14494           <format>$1 $2 $3 $4</format>
14495         </numberFormat>
14496         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
14497           <leadingDigits>20</leadingDigits>
14498           <format>$1 $2 $3 $4</format>
14499         </numberFormat>
14500         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
14501           <leadingDigits>
14502             2(?:
14503               [0367]|
14504               4[3-8]
14505             )
14506           </leadingDigits>
14507           <format>$1 $2 $3 $4 $5</format>
14508         </numberFormat>
14509         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
14510           <leadingDigits>
14511             2(?:
14512               [12589]|
14513               4[12]
14514             )|
14515             [3-5]|
14516             7[1-9]|
14517             [89](?:
14518               [1-9]|
14519               0[2-9]
14520             )
14521           </leadingDigits>
14522           <format>$1 $2 $3 $4</format>
14523         </numberFormat>
14524         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
14525           <leadingDigits>
14526             [89]0[01]|
14527             70
14528           </leadingDigits>
14529           <format>$1 $2 $3</format>
14530         </numberFormat>
14531         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14532           <leadingDigits>6</leadingDigits>
14533           <format>$1 $2 $3</format>
14534         </numberFormat>
14535       </availableFormats>
14536       <generalDesc>
14537         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
14538              necessary since the numbers have a variable number length. -->
14539         <nationalNumberPattern>
14540           [24-9]\d{3,10}|
14541           3(?:
14542             [0-46-9]\d{2,9}|
14543             5[013-9]\d{1,8}
14544           )
14545         </nationalNumberPattern>
14546         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
14547       </generalDesc>
14548       <fixedLine>
14549         <!-- Note that numbers starting with 2[367] can be a maximum of 10 digits - all others a
14550              maximum of 11. -->
14551         <nationalNumberPattern>
14552           (?:
14553             2(?:
14554               2\d{1,2}|
14555               3[2-9]|
14556               [67]\d|
14557               4[1-8]\d?|
14558               5[1-5]\d?|
14559               9[0-24-9]\d?
14560             )|
14561             3(?:
14562               [059][05-9]|
14563               [13]\d|
14564               [26][015-9]|
14565               4[0-26-9]|
14566               7[0-389]|
14567               8[08]
14568             )\d?|
14569             4\d{2,3}|
14570             5(?:
14571               [01458]\d|
14572               [27][0-69]|
14573               3[0-3]|
14574               [69][0-7]
14575             )\d?|
14576             7(?:
14577               1[019]|
14578               2[05-9]|
14579               3[05]|
14580               [45][07-9]|
14581               [679][089]|
14582               8[06-9]
14583             )\d?|
14584             8(?:
14585               0[2-9]|
14586               1[0-36-9]|
14587               3[3-9]|
14588               [469]9|
14589               [58][7-9]|
14590               7[89]
14591             )\d?|
14592             9(?:
14593               0[89]|
14594               2[0-49]|
14595               37|
14596               49|
14597               5[0-27-9]|
14598               7[7-9]|
14599               9[0-478]
14600             )\d?
14601           )\d{1,7}
14602         </nationalNumberPattern>
14603         <exampleNumber>27123456</exampleNumber>
14604       </fixedLine>
14605       <mobile>
14606         <nationalNumberPattern>
14607           6(?:
14608             [269][18]|
14609             71
14610           )\d{6}
14611         </nationalNumberPattern>
14612         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14613         <exampleNumber>628123456</exampleNumber>
14614       </mobile>
14615       <tollFree>
14616         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14617         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14618         <exampleNumber>80012345</exampleNumber>
14619       </tollFree>
14620       <premiumRate>
14621         <nationalNumberPattern>90[01]\d{5}</nationalNumberPattern>
14622         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14623         <exampleNumber>90012345</exampleNumber>
14624       </premiumRate>
14625       <sharedCost>
14626         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
14627         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14628         <exampleNumber>80112345</exampleNumber>
14629       </sharedCost>
14630       <personalNumber>
14631         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
14632         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14633         <exampleNumber>70123456</exampleNumber>
14634       </personalNumber>
14635       <voip>
14636         <!-- The document says the normal length will be 8 digits, but many numbers found online
14637              deviate from that. The prefixes from the following document have been added:
14638              http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
14639              201 has also been added since a diallable number was found online, and it says in
14640              http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
14641              numbers will be issued that begin with 200, numbers beginning with 201 will be issued
14642              one at a time, and 202-209 in blocks. -->
14643         <nationalNumberPattern>
14644           20(?:
14645             1\d{5}|
14646             [2-689]\d{1,7}
14647           )
14648         </nationalNumberPattern>
14649         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
14650         <exampleNumber>20201234</exampleNumber>
14651       </voip>
14652     </territory>
14653
14654     <!-- Latvia -->
14655     <territory id="LV" countryCode="371" internationalPrefix="00" mobileNumberPortableRegion="true">
14656       <references>
14657         <sourceUrl>http://www.itu.int/oth/T0202000076/en</sourceUrl>
14658         <sourceUrl>http://en.wikipedia.org/wiki/+371</sourceUrl>
14659       </references>
14660       <availableFormats>
14661         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
14662           <format>$1 $2 $3</format>
14663         </numberFormat>
14664       </availableFormats>
14665       <generalDesc>
14666         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
14667         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14668       </generalDesc>
14669       <fixedLine>
14670         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
14671         <exampleNumber>63123456</exampleNumber>
14672       </fixedLine>
14673       <mobile>
14674         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14675         <exampleNumber>21234567</exampleNumber>
14676       </mobile>
14677       <tollFree>
14678         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
14679         <exampleNumber>80123456</exampleNumber>
14680       </tollFree>
14681       <premiumRate>
14682         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14683         <exampleNumber>90123456</exampleNumber>
14684       </premiumRate>
14685       <sharedCost>
14686         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
14687         <exampleNumber>81123456</exampleNumber>
14688       </sharedCost>
14689     </territory>
14690
14691     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
14692     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
14693          and itu.int. The new area codes are on the Arabic website of the main telecommunication
14694          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
14695          using 096 (they are allowing customers to register numbers currently), so their code has
14696          also been added. -->
14697     <territory id="LY" countryCode="218" internationalPrefix="00"
14698                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14699       <references>
14700         <sourceUrl>http://hlc.ly/price.php</sourceUrl>
14701       </references>
14702       <availableFormats>
14703         <numberFormat pattern="([25679]\d)(\d{7})">
14704           <format>$1-$2</format>
14705         </numberFormat>
14706       </availableFormats>
14707       <generalDesc>
14708         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
14709         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14710       </generalDesc>
14711       <fixedLine>
14712         <nationalNumberPattern>
14713           (?:
14714             2[1345]|
14715             5[1347]|
14716             6[123479]|
14717             71
14718           )\d{7}
14719         </nationalNumberPattern>
14720         <exampleNumber>212345678</exampleNumber>
14721       </fixedLine>
14722       <mobile>
14723         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
14724              where SMS messages have been apparently successfully received. -->
14725         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
14726         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14727         <exampleNumber>912345678</exampleNumber>
14728       </mobile>
14729     </territory>
14730
14731     <!-- Morocco -->
14732     <!-- Shares formatting and some metadata with Western Sahara. -->
14733     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
14734                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
14735                mobileNumberPortableRegion="true">
14736       <references>
14737         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
14738         <sourceUrl>http://en.wikipedia.org/wiki/+212</sourceUrl>
14739       </references>
14740       <availableFormats>
14741         <numberFormat pattern="([56]\d{2})(\d{6})">
14742           <leadingDigits>
14743             5(?:
14744               2[015-7]|
14745               3[0-4]
14746             )|
14747             6
14748           </leadingDigits>
14749           <format>$1-$2</format>
14750         </numberFormat>
14751         <numberFormat pattern="([58]\d{3})(\d{5})">
14752           <leadingDigits>
14753             5(?:
14754               2[2-489]|
14755               3[5-9]
14756             )|
14757             892
14758           </leadingDigits>
14759           <leadingDigits>
14760             5(?:
14761               2(?:
14762                 [2-48]|
14763                 90
14764               )|
14765               3(?:
14766                 [5-79]|
14767                 80
14768               )
14769             )|
14770             892
14771           </leadingDigits>
14772           <format>$1-$2</format>
14773         </numberFormat>
14774         <numberFormat pattern="(5\d{4})(\d{4})">
14775           <leadingDigits>
14776             5(?:
14777               29|
14778               38
14779             )
14780           </leadingDigits>
14781           <leadingDigits>
14782             5(?:
14783               29|
14784               38
14785             )[89]
14786           </leadingDigits>
14787           <format>$1-$2</format>
14788         </numberFormat>
14789         <numberFormat pattern="(8[09])(\d{7})">
14790           <leadingDigits>
14791             8(?:
14792               0|
14793               9[013-9]
14794             )
14795           </leadingDigits>
14796           <format>$1-$2</format>
14797         </numberFormat>
14798       </availableFormats>
14799       <generalDesc>
14800         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
14801         <!-- Closed numbering plan. -->
14802         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14803       </generalDesc>
14804       <fixedLine>
14805         <nationalNumberPattern>
14806           5(?:
14807             2(?:
14808               (?:
14809                 [015-7]\d|
14810                 2[2-9]|
14811                 3[2-57]|
14812                 4[2-8]|
14813                 8[235-7]
14814               )\d|
14815               9(?:
14816                 0\d|
14817                 [89]0
14818               )
14819             )|
14820             3(?:
14821               (?:
14822                 [0-4]\d|
14823                 [57][2-9]|
14824                 6[235-8]|
14825                 9[3-9]
14826               )\d|
14827               8(?:
14828                 0\d|
14829                 [89]0
14830               )
14831             )
14832           )\d{4}
14833         </nationalNumberPattern>
14834         <exampleNumber>520123456</exampleNumber>
14835       </fixedLine>
14836       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
14837       <mobile>
14838         <!-- http://www.anrt.ma/sites/default/files/Blocs_de_numeros_par_operateur.pdf -->
14839         <nationalNumberPattern>
14840           6(?:
14841             0[0-8]|
14842             [12-7]\d|
14843             8[01]|
14844             9[2457-9]
14845           )\d{6}
14846         </nationalNumberPattern>
14847         <exampleNumber>650123456</exampleNumber>
14848       </mobile>
14849       <tollFree>
14850         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
14851         <exampleNumber>801234567</exampleNumber>
14852       </tollFree>
14853       <premiumRate>
14854         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
14855         <exampleNumber>891234567</exampleNumber>
14856       </premiumRate>
14857     </territory>
14858
14859     <!-- Monaco -->
14860     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
14861          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
14862          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
14863     <territory id="MC" countryCode="377" internationalPrefix="00"
14864                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14865       <references>
14866         <sourceUrl>http://www.itu.int/oth/T020200008D/en</sourceUrl>
14867       </references>
14868       <availableFormats>
14869         <!-- Following formatting found online rather than in the ITU document example. -->
14870         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
14871           <leadingDigits>9</leadingDigits>
14872           <format>$1 $2 $3 $4</format>
14873         </numberFormat>
14874         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14875           <leadingDigits>4</leadingDigits>
14876           <format>$1 $2 $3</format>
14877         </numberFormat>
14878         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
14879           <leadingDigits>6</leadingDigits>
14880           <format>$1 $2 $3 $4 $5</format>
14881         </numberFormat>
14882         <numberFormat pattern="(\d{3})(\d{3})(\d{2})" nationalPrefixFormattingRule="$FG">
14883           <leadingDigits>8</leadingDigits>
14884           <format>$1 $2 $3</format>
14885         </numberFormat>
14886       </availableFormats>
14887       <generalDesc>
14888         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
14889         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
14890       </generalDesc>
14891       <noInternationalDialling>
14892         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
14893         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14894       </noInternationalDialling>
14895       <fixedLine>
14896         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
14897         <nationalNumberPattern>
14898           870\d{5}|
14899           9[2-47-9]\d{6}
14900         </nationalNumberPattern>
14901         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14902         <exampleNumber>99123456</exampleNumber>
14903       </fixedLine>
14904       <mobile>
14905         <!-- 4X mobile numbers are actually used by Kosovo. -->
14906         <nationalNumberPattern>
14907           6\d{8}|
14908           4(?:
14909             4\d|
14910             5[2-9]
14911           )\d{5}
14912         </nationalNumberPattern>
14913         <exampleNumber>612345678</exampleNumber>
14914       </mobile>
14915       <tollFree>
14916         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14917         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14918         <exampleNumber>90123456</exampleNumber>
14919       </tollFree>
14920     </territory>
14921
14922     <!-- Moldova, Rep. of -->
14923     <territory id="MD" countryCode="373" internationalPrefix="00"
14924                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
14925                mobileNumberPortableRegion="true">
14926       <references>
14927         <sourceUrl>http://www.itu.int/oth/T020200008C/en</sourceUrl>
14928         <!-- Announcements -->
14929         <sourceUrl>http://anrceti.md/fileupload/58</sourceUrl>
14930         <!-- Mobile ranges -->
14931         <sourceUrl>http://en.anrceti.md/resurse_numerotare_tel_mobila</sourceUrl>
14932       </references>
14933       <availableFormats>
14934         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14935           <leadingDigits>
14936             22|
14937             3
14938           </leadingDigits>
14939           <format>$1 $2 $3</format>
14940         </numberFormat>
14941         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
14942           <leadingDigits>
14943             2[13-79]|
14944             [5-7]
14945           </leadingDigits>
14946           <format>$1 $2 $3</format>
14947         </numberFormat>
14948         <numberFormat pattern="([89]\d{2})(\d{5})">
14949           <leadingDigits>[89]</leadingDigits>
14950           <format>$1 $2</format>
14951         </numberFormat>
14952       </availableFormats>
14953       <generalDesc>
14954         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
14955         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14956       </generalDesc>
14957       <fixedLine>
14958         <nationalNumberPattern>
14959           (?:
14960             2(?:
14961               1[0569]|
14962               2\d|
14963               3[015-7]|
14964               4[1-46-9]|
14965               5[0-24689]|
14966               6[2-589]|
14967               7[1-37]|
14968               9[1347-9]
14969             )|
14970             5(?:
14971               33|
14972               5[257]
14973             )
14974           )\d{5}
14975         </nationalNumberPattern>
14976         <exampleNumber>22212345</exampleNumber>
14977       </fixedLine>
14978       <mobile>
14979         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
14980         <nationalNumberPattern>
14981           (?:
14982             562\d|
14983             6(?:
14984               [089]\d{2}|
14985               1[01]\d|
14986               21\d|
14987               50\d|
14988               7(?:
14989                 [1-6]\d|
14990                 7[0-4]
14991               )
14992             )|
14993             7(?:
14994               6[07]|
14995               7[457-9]|
14996               [89]\d
14997             )\d
14998           )\d{4}
14999         </nationalNumberPattern>
15000         <exampleNumber>65012345</exampleNumber>
15001       </mobile>
15002       <tollFree>
15003         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15004         <exampleNumber>80012345</exampleNumber>
15005       </tollFree>
15006       <premiumRate>
15007         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
15008         <exampleNumber>90012345</exampleNumber>
15009       </premiumRate>
15010       <!-- Information came from en.anrceti.md/node/81 -->
15011       <sharedCost>
15012         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
15013         <exampleNumber>80812345</exampleNumber>
15014       </sharedCost>
15015       <uan>
15016         <!-- Includes numbers used for access to different transport directory services of general
15017              interest, since these are charged at the same rate as fixed-line numbers. -->
15018         <nationalNumberPattern>
15019           8(?:
15020             03|
15021             14
15022           )\d{5}
15023         </nationalNumberPattern>
15024         <exampleNumber>80312345</exampleNumber>
15025       </uan>
15026       <voip>
15027         <!-- Used for "nomadic numbers". -->
15028         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
15029         <exampleNumber>30123456</exampleNumber>
15030       </voip>
15031     </territory>
15032
15033     <!-- Montenegro -->
15034     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
15035                nationalPrefixFormattingRule="$NP$FG">
15036       <references>
15037         <sourceUrl>http://www.itu.int/oth/T02020000DA/en</sourceUrl>
15038         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro</sourceUrl>
15039         <sourceUrl>http://www.ekip.me/numeracija/dodijeljena.php</sourceUrl>
15040       </references>
15041       <availableFormats>
15042          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15043           <leadingDigits>[2-57-9]|6[3789]</leadingDigits>
15044           <leadingDigits>
15045             [2-57-9]|
15046             6(?:
15047               [389]|
15048               7(?:
15049                 [0-8]|
15050                 9[3-9]
15051               )
15052             )
15053           </leadingDigits>
15054           <format>$1 $2 $3</format>
15055         </numberFormat>
15056         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
15057           <leadingDigits>679</leadingDigits>
15058           <leadingDigits>679[0-2]</leadingDigits>
15059           <format>$1 $2 $3 $4</format>
15060         </numberFormat>
15061       </availableFormats>
15062       <generalDesc>
15063         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
15064         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
15065       </generalDesc>
15066       <fixedLine>
15067         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
15068              The valid options for the third digit were from
15069              http://www.ekip.me/numeracija/dodijeljena.php -->
15070         <nationalNumberPattern>
15071           (?:
15072             20[2-8]|
15073             3(?:
15074               0[2-7]|
15075               1[35-7]|
15076               2[3567]|
15077               3[4-7]
15078             )|
15079             4(?:
15080               0[237]|
15081               1[27]
15082             )|
15083             5(?:
15084               0[47]|
15085               1[27]|
15086               2[378]
15087             )
15088           )\d{5}
15089         </nationalNumberPattern>
15090         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15091         <exampleNumber>30234567</exampleNumber>
15092       </fixedLine>
15093       <mobile>
15094         <!-- Mobile numbers start with 632, 67, 68 or 69. -->
15095         <nationalNumberPattern>
15096           6(?:
15097             32\d|
15098             [89]\d{2}|
15099             7(?:
15100               [0-8]\d|
15101               9(?:
15102                 [3-9]|
15103                 [0-2]\d
15104               )
15105             )
15106           )\d{4}
15107         </nationalNumberPattern>
15108         <!-- According to ITU it is possible for the numbers to be between length 4-12
15109              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
15110              digits long, based on the Montenegro document. -->
15111         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15112         <exampleNumber>67622901</exampleNumber>
15113       </mobile>
15114       <tollFree>
15115         <!-- All toll free numbers have prefix 80 followed by 02 or 08. -->
15116         <nationalNumberPattern>800[28]\d{4}</nationalNumberPattern>
15117         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15118         <exampleNumber>80080002</exampleNumber>
15119       </tollFree>
15120       <premiumRate>
15121         <!-- Numbers with prefix 88, 94 or 95 are services with additional charges. -->
15122         <nationalNumberPattern>
15123           (?:
15124             88\d|
15125             9(?:
15126               4[13-8]|
15127               5[16-8]
15128             )
15129           )\d{5}
15130         </nationalNumberPattern>
15131         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15132         <exampleNumber>94515151</exampleNumber>
15133       </premiumRate>
15134       <voip>
15135         <!-- VOIP are prefixed with 78. -->
15136         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
15137         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15138         <exampleNumber>78108780</exampleNumber>
15139       </voip>
15140       <uan>
15141         <!-- Corporate Telephony are prefixed with 77. -->
15142         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
15143         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15144         <exampleNumber>77273012</exampleNumber>
15145       </uan>
15146     </territory>
15147
15148     <!-- Saint-Martin, French Antilles -->
15149     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
15150       <references>
15151         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
15152         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
15153         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
15154       </references>
15155       <!-- Formatting rules borrowed from Guadeloupe. -->
15156       <generalDesc>
15157         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15158         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15159       </generalDesc>
15160       <fixedLine>
15161         <nationalNumberPattern>
15162           590(?:
15163             [02][79]|
15164             13|
15165             5[0-268]|
15166             [78]7
15167           )\d{4}
15168         </nationalNumberPattern>
15169         <exampleNumber>590271234</exampleNumber>
15170       </fixedLine>
15171       <mobile>
15172         <!-- Any ranges assigned from
15173              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
15174              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
15175              them. -->
15176         <nationalNumberPattern>
15177           690(?:
15178             0[0-7]|
15179             [1-9]\d
15180           )\d{4}
15181         </nationalNumberPattern>
15182         <exampleNumber>690301234</exampleNumber>
15183       </mobile>
15184     </territory>
15185
15186     <!-- Madagascar -->
15187     <territory id="MG" countryCode="261" internationalPrefix="00"
15188                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15189       <references>
15190         <sourceUrl>http://www.itu.int/oth/T020200007F/en</sourceUrl>
15191       </references>
15192       <availableFormats>
15193         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
15194           <format>$1 $2 $3 $4</format>
15195         </numberFormat>
15196       </availableFormats>
15197       <generalDesc>
15198         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
15199         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15200       </generalDesc>
15201       <fixedLine>
15202         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
15203              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
15204              codes beginning with 4. -->
15205         <nationalNumberPattern>
15206           20(?:
15207             2\d{2}|
15208             4[47]\d|
15209             5[3467]\d|
15210             6[279]\d|
15211             7(?:
15212               2[29]|
15213               [35]\d
15214             )|
15215             8[268]\d|
15216             9[245]\d
15217           )\d{4}
15218         </nationalNumberPattern>
15219         <exampleNumber>202123456</exampleNumber>
15220       </fixedLine>
15221       <mobile>
15222         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
15223              out by reality. -->
15224         <nationalNumberPattern>3[2-49]\d{7}</nationalNumberPattern>
15225         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15226         <exampleNumber>321234567</exampleNumber>
15227       </mobile>
15228       <!-- Putting VSAT numbers here. -->
15229       <voip>
15230         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
15231         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15232         <exampleNumber>221234567</exampleNumber>
15233       </voip>
15234     </territory>
15235
15236     <!-- Marshall Islands -->
15237     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
15238       <references>
15239         <sourceUrl>http://www.itu.int/oth/T0202000085/en</sourceUrl>
15240       </references>
15241       <availableFormats>
15242         <numberFormat pattern="(\d{3})(\d{4})">
15243           <format>$1-$2</format>
15244         </numberFormat>
15245       </availableFormats>
15246       <generalDesc>
15247         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
15248         <possibleNumberPattern>\d{7}</possibleNumberPattern>
15249       </generalDesc>
15250       <fixedLine>
15251         <nationalNumberPattern>
15252           (?:
15253             247|
15254             528|
15255             625
15256           )\d{4}
15257         </nationalNumberPattern>
15258         <exampleNumber>2471234</exampleNumber>
15259       </fixedLine>
15260       <mobile>
15261         <nationalNumberPattern>
15262           (?:
15263             235|
15264             329|
15265             45[56]|
15266             545
15267           )\d{4}
15268         </nationalNumberPattern>
15269         <exampleNumber>2351234</exampleNumber>
15270       </mobile>
15271       <voip>
15272         <!-- VSAT prefixes are here. -->
15273         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
15274         <exampleNumber>6351234</exampleNumber>
15275       </voip>
15276     </territory>
15277
15278     <!-- Macedonia, Former Yugoslav Rep. of -->
15279     <territory id="MK" countryCode="389" internationalPrefix="00"
15280                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
15281                mobileNumberPortableRegion="true">
15282       <references>
15283         <sourceUrl>http://www.itu.int/oth/T02020000CE/en</sourceUrl>
15284       </references>
15285       <availableFormats>
15286         <!-- Formats follow wikipedia. -->
15287         <numberFormat pattern="(2)(\d{3})(\d{4})">
15288           <leadingDigits>2</leadingDigits>
15289           <format>$1 $2 $3</format>
15290         </numberFormat>
15291         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
15292           <leadingDigits>[347]</leadingDigits>
15293           <format>$1 $2 $3</format>
15294         </numberFormat>
15295         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
15296           <leadingDigits>[58]</leadingDigits>
15297           <format>$1 $2 $3 $4</format>
15298         </numberFormat>
15299       </availableFormats>
15300       <generalDesc>
15301         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
15302         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15303       </generalDesc>
15304       <fixedLine>
15305         <nationalNumberPattern>
15306           (?:
15307             2(?:
15308               [23]\d|
15309               5[124578]|
15310               6[01]
15311             )|
15312             3(?:
15313               1[3-6]|
15314               [23][2-6]|
15315               4[2356]
15316             )|
15317             4(?:
15318               [23][2-6]|
15319               4[3-6]|
15320               5[256]|
15321               6[25-8]|
15322               7[24-6]|
15323               8[4-6]
15324             )
15325           )\d{5}
15326         </nationalNumberPattern>
15327         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15328         <exampleNumber>22212345</exampleNumber>
15329       </fixedLine>
15330       <mobile>
15331         <nationalNumberPattern>
15332           7(?:
15333             [0-25-8]\d{2}|
15334             32\d|
15335             421
15336           )\d{4}
15337         </nationalNumberPattern>
15338         <exampleNumber>72345678</exampleNumber>
15339       </mobile>
15340       <tollFree>
15341         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15342         <exampleNumber>80012345</exampleNumber>
15343       </tollFree>
15344       <premiumRate>
15345         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
15346         <exampleNumber>50012345</exampleNumber>
15347       </premiumRate>
15348       <sharedCost>
15349         <nationalNumberPattern>
15350           8(?:
15351             0[1-9]|
15352             [1-9]\d
15353           )\d{5}
15354         </nationalNumberPattern>
15355         <exampleNumber>80123456</exampleNumber>
15356       </sharedCost>
15357     </territory>
15358
15359     <!-- Mali -->
15360     <territory id="ML" countryCode="223" internationalPrefix="00">
15361       <references>
15362         <sourceUrl>http://www.itu.int/oth/T0202000083/en</sourceUrl>
15363         <sourceUrl>http://crt-mali.org/pdf/plan_num</sourceUrl>
15364       </references>
15365       <availableFormats>
15366         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
15367           <leadingDigits>[246-9]</leadingDigits>
15368           <format>$1 $2 $3 $4</format>
15369         </numberFormat>
15370         <!-- Formatting some short numbers as a block. -->
15371         <numberFormat pattern="(\d{4})">
15372           <leadingDigits>
15373             67|
15374             74
15375           </leadingDigits>
15376           <intlFormat>NA</intlFormat>
15377           <format>$1</format>
15378         </numberFormat>
15379       </availableFormats>
15380       <generalDesc>
15381         <nationalNumberPattern>[246-9]\d{7}</nationalNumberPattern>
15382         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15383       </generalDesc>
15384       <fixedLine>
15385         <!-- Patterns from ITU with extra ranges 20 25, 20 7[13-9] and 217 provided by Sotelma and
15386              confirmed by searches online. -->
15387         <nationalNumberPattern>
15388           (?:
15389             2(?:
15390               0(?:
15391                 2[0-589]|
15392                 7\d
15393               )|
15394               1(?:
15395                 2[5-7]|
15396                 [3-689]\d|
15397                 7[2-4689]
15398               )
15399             )|
15400             44[239]\d
15401           )\d{4}
15402         </nationalNumberPattern>
15403         <exampleNumber>20212345</exampleNumber>
15404       </fixedLine>
15405       <mobile>
15406         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
15407              document (which is very stale). All mobile numbers starting with 7 are now Orange.
15408              Includes 6x from Malitel IR21. Numbers beginning with 9 have been found online and
15409              reported by open-source users, although the exact possible second digits are uncertain.
15410              -->
15411         <nationalNumberPattern>
15412           [67]\d{7}|
15413           9[0-25-9]\d{6}
15414         </nationalNumberPattern>
15415         <exampleNumber>65012345</exampleNumber>
15416       </mobile>
15417       <tollFree>
15418         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
15419              plan. -->
15420         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15421         <exampleNumber>80012345</exampleNumber>
15422       </tollFree>
15423    </territory>
15424
15425     <!-- Myanmar -->
15426     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
15427                nationalPrefixFormattingRule="$NP$FG">
15428       <references>
15429         <sourceUrl>http://www.itu.int/oth/T0202000092/en</sourceUrl>
15430       </references>
15431       <availableFormats>
15432         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
15433           <leadingDigits>
15434             1|
15435             2[45]
15436           </leadingDigits>
15437           <format>$1 $2 $3</format>
15438         </numberFormat>
15439         <numberFormat pattern="(2)(\d{4})(\d{4})">
15440           <leadingDigits>251</leadingDigits>
15441           <format>$1 $2 $3</format>
15442         </numberFormat>
15443         <numberFormat pattern="(\d)(\d{2})(\d{3})">
15444           <leadingDigits>
15445             16|
15446             2
15447           </leadingDigits>
15448           <format>$1 $2 $3</format>
15449         </numberFormat>
15450         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
15451           <leadingDigits>
15452             67|
15453             81
15454           </leadingDigits>
15455           <format>$1 $2 $3</format>
15456         </numberFormat>
15457         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
15458           <leadingDigits>[4-8]</leadingDigits>
15459           <format>$1 $2 $3</format>
15460         </numberFormat>
15461         <numberFormat pattern="(9)(\d{3})(\d{4,6})">
15462           <leadingDigits>
15463             9(?:
15464               2[0-4]|
15465               [35-9]|
15466               4[13789]
15467             )
15468           </leadingDigits>
15469           <format>$1 $2 $3</format>
15470         </numberFormat>
15471         <numberFormat pattern="(9)(4\d{4})(\d{4})">
15472           <leadingDigits>94[0245]</leadingDigits>
15473           <format>$1 $2 $3</format>
15474         </numberFormat>
15475         <!-- Following majority of numbers found online. -->
15476         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{3})">
15477           <leadingDigits>925</leadingDigits>
15478           <format>$1 $2 $3 $4</format>
15479         </numberFormat>
15480       </availableFormats>
15481       <generalDesc>
15482         <nationalNumberPattern>
15483           [14578]\d{5,7}|
15484           [26]\d{5,8}|
15485           9(?:
15486             2\d{0,2}|
15487             [58]|
15488             3\d|
15489             4\d{1,2}|
15490             6\d?|
15491             [79]\d{0,2}
15492           )\d{6}
15493         </nationalNumberPattern>
15494         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
15495       </generalDesc>
15496       <fixedLine>
15497         <nationalNumberPattern>
15498           1(?:
15499             2\d{1,2}|
15500             [3-5]\d|
15501             6\d?|
15502             [89][0-6]\d
15503           )\d{4}|
15504           2(?:
15505             [236-9]\d{4}|
15506             4(?:
15507               0\d{5}|
15508               \d{4}
15509             )|
15510             5(?:
15511               1\d{3,6}|
15512               [02-9]\d{3,5}
15513             )
15514           )|
15515           4(?:
15516             2[245-8]|
15517             [346][2-6]|
15518             5[3-5]
15519           )\d{4}|
15520           5(?:
15521             2(?:
15522               20?|
15523               [3-8]
15524             )|
15525             3[2-68]|
15526             4(?:
15527               21?|
15528               [4-8]
15529             )|
15530             5[23]|
15531             6[2-4]|
15532             7[2-8]|
15533             8[24-7]|
15534             9[2-7]
15535           )\d{4}|
15536           6(?:
15537             0[23]|
15538             1[2356]|
15539             [24][2-6]|
15540             3[24-6]|
15541             5[2-4]|
15542             6[2-8]|
15543             7(?:
15544               [2367]|
15545               4\d|
15546               5\d?|
15547               8[145]\d
15548             )|
15549             8[245]|
15550             9[24]
15551           )\d{4}|
15552           7(?:
15553             [04][24-8]|
15554             [15][2-7]|
15555             22|
15556             3[2-4]
15557           )\d{4}|
15558           8(?:
15559             1(?:
15560               2\d?|
15561               [3-689]
15562             )|
15563             2[2-8]|
15564             3[24]|
15565             4[24-7]|
15566             5[245]|
15567             6[23]
15568           )\d{4}
15569         </nationalNumberPattern>
15570         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
15571         <exampleNumber>1234567</exampleNumber>
15572       </fixedLine>
15573       <mobile>
15574         <!-- Added 99[089] (8 digits), 961 (9 digits), and 979 & 997 (10 digits) from bug
15575              reports/numbers found online. -->
15576         <nationalNumberPattern>
15577           17[01]\d{4}|
15578           9(?:
15579             2(?:
15580               [0-4]|
15581               5\d{2}
15582             )|
15583             3[136]\d|
15584             4(?:
15585               0[0-4]\d|
15586               [1379]\d|
15587               [24][0-589]\d|
15588               5\d{2}|
15589               88
15590             )|
15591             5[0-6]|
15592             61?\d|
15593             7(?:
15594               3\d|
15595               9\d{2}
15596             )|
15597             8\d|
15598             9(?:
15599               1\d|
15600               7\d{2}|
15601               [089]
15602             )
15603           )\d{5}
15604         </nationalNumberPattern>
15605         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
15606         <exampleNumber>92123456</exampleNumber>
15607       </mobile>
15608       <voip>
15609         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
15610         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15611         <exampleNumber>13331234</exampleNumber>
15612       </voip>
15613       <!-- No information on other types of phone numbers for Myanmar has been found. -->
15614     </territory>
15615
15616     <!-- Mongolia -->
15617     <territory id="MN" countryCode="976" internationalPrefix="001"
15618                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15619       <references>
15620         <sourceUrl>http://www.itu.int/oth/T020200008E/en</sourceUrl>
15621       </references>
15622       <availableFormats>
15623         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
15624           <leadingDigits>[12]1</leadingDigits>
15625           <format>$1 $2 $3</format>
15626         </numberFormat>
15627         <numberFormat pattern="([12]2\d)(\d{5,6})">
15628           <leadingDigits>[12]2[1-3]</leadingDigits>
15629           <format>$1 $2</format>
15630         </numberFormat>
15631         <numberFormat pattern="([12]\d{3})(\d{5})">
15632           <leadingDigits>
15633             [12](?:
15634               27|
15635               [3-5]
15636             )
15637           </leadingDigits>
15638           <leadingDigits>
15639             [12](?:
15640               27|
15641               [3-5]\d
15642             )2
15643           </leadingDigits>
15644           <format>$1 $2</format>
15645         </numberFormat>
15646         <!-- It seems from online formatting that the national prefix is not written (or perhaps
15647              needed?) for numbers in these ranges. -->
15648         <numberFormat pattern="(\d{4})(\d{4})"
15649           nationalPrefixFormattingRule="$FG">
15650           <leadingDigits>[57-9]</leadingDigits>
15651           <format>$1 $2</format>
15652         </numberFormat>
15653         <numberFormat pattern="([12]\d{4})(\d{4,5})">
15654           <leadingDigits>
15655             [12](?:
15656               27|
15657               [3-5]
15658             )
15659           </leadingDigits>
15660           <leadingDigits>
15661             [12](?:
15662               27|
15663               [3-5]\d
15664             )[4-9]
15665           </leadingDigits>
15666           <format>$1 $2</format>
15667         </numberFormat>
15668       </availableFormats>
15669       <generalDesc>
15670         <nationalNumberPattern>
15671           [12]\d{7,9}|
15672           [57-9]\d{7}
15673         </nationalNumberPattern>
15674         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
15675       </generalDesc>
15676       <fixedLine>
15677         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
15678              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
15679              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
15680              as well, even though we are not certain whether they are in fact fixed or mobile in
15681              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
15682              online numbers being found. -->
15683         <nationalNumberPattern>
15684           [12](?:
15685             1\d|
15686             2(?:
15687               [1-3]\d?|
15688               7\d
15689             )|
15690             3[2-8]\d{1,2}|
15691             4[2-68]\d{1,2}|
15692             5[1-4689]\d{1,2}
15693           )\d{5}|
15694           5[0568]\d{6}
15695         </nationalNumberPattern>
15696         <exampleNumber>50123456</exampleNumber>
15697       </fixedLine>
15698       <mobile>
15699         <nationalNumberPattern>
15700           (?:
15701             8[689]|
15702             9[013-9]
15703           )\d{6}
15704         </nationalNumberPattern>
15705         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15706         <exampleNumber>88123456</exampleNumber>
15707       </mobile>
15708       <!-- No tollFree or premiumRate information can be found. -->
15709       <voip>
15710         <!-- According to the document this could be stricter, but there are counter examples
15711              online. -->
15712         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
15713         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15714         <exampleNumber>75123456</exampleNumber>
15715       </voip>
15716     </territory>
15717
15718     <!-- Macao, China -->
15719     <territory id="MO" countryCode="853" internationalPrefix="00">
15720       <references>
15721         <sourceUrl>http://www.itu.int/oth/T020200007E/en</sourceUrl>
15722       </references>
15723       <availableFormats>
15724         <numberFormat pattern="([268]\d{3})(\d{4})">
15725           <format>$1 $2</format>
15726         </numberFormat>
15727       </availableFormats>
15728       <generalDesc>
15729         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
15730         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15731       </generalDesc>
15732       <fixedLine>
15733         <nationalNumberPattern>
15734           (?:
15735             28[2-57-9]|
15736             8[2-57-9]\d
15737           )\d{5}
15738         </nationalNumberPattern>
15739         <exampleNumber>28212345</exampleNumber>
15740       </fixedLine>
15741       <mobile>
15742         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
15743              numbers, and they are also widely present on the Internet. -->
15744         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
15745         <exampleNumber>66123456</exampleNumber>
15746       </mobile>
15747       <!-- No tollFree or premiumRate information can be found. -->
15748     </territory>
15749
15750     <!-- Northern Mariana Islands -->
15751     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
15752                internationalPrefix="011">
15753       <references>
15754         <sourceUrl>http://www.itu.int/oth/T02020000EE/en</sourceUrl>
15755         <sourceUrl>http://www.cnmiphonebook.com/</sourceUrl>
15756       </references>
15757       <generalDesc>
15758         <!-- NANPA country - uses US formatting rules -->
15759         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15760         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15761       </generalDesc>
15762       <fixedLine>
15763         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
15764              were seen in the white and yellow pages, but no numbers with these exchange codes have
15765              proved to be diallable so we exclude them for now.. -->
15766         <nationalNumberPattern>
15767           670(?:
15768             2(?:
15769               3[3-7]|
15770               56|
15771               8[5-8]
15772             )|
15773             32[1238]|
15774             4(?:
15775               33|
15776               8[348]
15777             )|
15778             5(?:
15779               32|
15780               55|
15781               88
15782             )|
15783             6(?:
15784               64|
15785               70|
15786               82
15787             )|
15788             78[589]|
15789             8[3-9]8|
15790             989
15791           )\d{4}
15792         </nationalNumberPattern>
15793         <exampleNumber>6702345678</exampleNumber>
15794       </fixedLine>
15795       <mobile>
15796         <nationalNumberPattern>
15797           670(?:
15798             2(?:
15799               3[3-7]|
15800               56|
15801               8[5-8]
15802             )|
15803             32[1238]|
15804             4(?:
15805               33|
15806               8[348]
15807             )|
15808             5(?:
15809               32|
15810               55|
15811               88
15812             )|
15813             6(?:
15814               64|
15815               70|
15816               82
15817             )|
15818             78[589]|
15819             8[3-9]8|
15820             989
15821           )\d{4}
15822         </nationalNumberPattern>
15823         <exampleNumber>6702345678</exampleNumber>
15824       </mobile>
15825       <tollFree>
15826         <nationalNumberPattern>
15827           8(?:
15828             00|
15829             44|
15830             55|
15831             66|
15832             77|
15833             88
15834           )[2-9]\d{6}
15835         </nationalNumberPattern>
15836         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15837         <exampleNumber>8002123456</exampleNumber>
15838       </tollFree>
15839       <premiumRate>
15840         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15841         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15842         <exampleNumber>9002123456</exampleNumber>
15843       </premiumRate>
15844       <personalNumber>
15845         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15846         <nationalNumberPattern>
15847           5(?:
15848             00|
15849             33|
15850             44|
15851             66|
15852             77
15853           )[2-9]\d{6}
15854         </nationalNumberPattern>
15855         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15856         <exampleNumber>5002345678</exampleNumber>
15857       </personalNumber>
15858     </territory>
15859
15860     <!-- Martinique (French Dept. of) -->
15861     <territory id="MQ" countryCode="596" internationalPrefix="00"
15862                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15863       <references>
15864         <sourceUrl>http://www.itu.int/oth/T0202000086/en</sourceUrl>
15865         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0596&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
15866       </references>
15867       <availableFormats>
15868         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
15869           <format>$1 $2 $3 $4</format>
15870         </numberFormat>
15871       </availableFormats>
15872       <generalDesc>
15873         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15874         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15875       </generalDesc>
15876       <fixedLine>
15877         <nationalNumberPattern>
15878           596(?:
15879             0[2-5]|
15880             [12]0|
15881             3[05-9]|
15882             4[024-8]|
15883             [5-7]\d|
15884             89|
15885             9[4-8]
15886           )\d{4}
15887         </nationalNumberPattern>
15888         <exampleNumber>596301234</exampleNumber>
15889       </fixedLine>
15890       <mobile>
15891         <nationalNumberPattern>
15892           696(?:
15893             [0-479]\d|
15894             5[01]|
15895             8[0-689]
15896           )\d{4}
15897         </nationalNumberPattern>
15898         <exampleNumber>696201234</exampleNumber>
15899       </mobile>
15900       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
15901            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
15902            too. -->
15903     </territory>
15904
15905     <!-- Mauritania -->
15906     <territory id="MR" countryCode="222" internationalPrefix="00" >
15907       <references>
15908         <sourceUrl>http://www.itu.int/oth/T0202000087/en</sourceUrl>
15909         <sourceUrl>http://are.mr/pdfs/pnn2010.pdf</sourceUrl>
15910       </references>
15911       <availableFormats>
15912         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
15913           <format>$1 $2 $3 $4</format>
15914         </numberFormat>
15915       </availableFormats>
15916       <generalDesc>
15917         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
15918         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15919       </generalDesc>
15920       <fixedLine>
15921         <nationalNumberPattern>
15922           25[08]\d{5}|
15923           35\d{6}|
15924           45[1-7]\d{5}
15925         </nationalNumberPattern>
15926         <exampleNumber>35123456</exampleNumber>
15927       </fixedLine>
15928       <!-- Added "49\d" in response to https://code.google.com/p/libphonenumber/issues/detail?id=529
15929            which might be overly permissive, but we don't have an official documentation for this
15930            and only a small number of numbers were found online. At least 492 and 495 are valid.
15931            -->
15932       <mobile>
15933         <nationalNumberPattern>
15934           (?:
15935             2(?:
15936               2\d|
15937               70
15938             )|
15939             3(?:
15940               3\d|
15941               6[1-36]|
15942               7[1-3]
15943             )|
15944             4(?:
15945               [49]\d|
15946               6[0457-9]|
15947               7[4-9]|
15948               8[01346-8]
15949             )
15950           )\d{5}
15951         </nationalNumberPattern>
15952         <exampleNumber>22123456</exampleNumber>
15953       </mobile>
15954       <tollFree>
15955         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15956         <exampleNumber>80012345</exampleNumber>
15957       </tollFree>
15958     </territory>
15959
15960     <!-- Montserrat -->
15961     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
15962                internationalPrefix="011">
15963       <references>
15964         <sourceUrl>http://www.itu.int/oth/T020200008F/en</sourceUrl>
15965       </references>
15966       <generalDesc>
15967         <!-- NANPA country - uses US formatting rules -->
15968         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15969         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15970       </generalDesc>
15971       <fixedLine>
15972         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
15973         <exampleNumber>6644912345</exampleNumber>
15974       </fixedLine>
15975       <mobile>
15976         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
15977         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15978         <exampleNumber>6644923456</exampleNumber>
15979       </mobile>
15980       <tollFree>
15981         <nationalNumberPattern>
15982           8(?:
15983             00|
15984             44|
15985             55|
15986             66|
15987             77|
15988             88
15989           )[2-9]\d{6}
15990         </nationalNumberPattern>
15991         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15992         <exampleNumber>8002123456</exampleNumber>
15993       </tollFree>
15994       <premiumRate>
15995         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15996         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15997         <exampleNumber>9002123456</exampleNumber>
15998       </premiumRate>
15999       <personalNumber>
16000         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
16001         <nationalNumberPattern>
16002           5(?:
16003             00|
16004             33|
16005             44|
16006             66|
16007             77
16008           )[2-9]\d{6}
16009         </nationalNumberPattern>
16010         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16011         <exampleNumber>5002345678</exampleNumber>
16012       </personalNumber>
16013     </territory>
16014
16015     <!-- Malta -->
16016     <territory id="MT" countryCode="356" internationalPrefix="00" mobileNumberPortableRegion="true">
16017       <references>
16018         <sourceUrl>http://www.itu.int/oth/T0202000084/en</sourceUrl>
16019         <!-- Numbering link in the LHS menu - has more up-to-date allocations -->
16020         <sourceUrl>http://www.mca.org.mt</sourceUrl>
16021       </references>
16022       <availableFormats>
16023         <numberFormat pattern="(\d{4})(\d{4})">
16024           <format>$1 $2</format>
16025         </numberFormat>
16026       </availableFormats>
16027       <generalDesc>
16028         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
16029         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16030       </generalDesc>
16031       <fixedLine>
16032         <nationalNumberPattern>
16033           2(?:
16034             0(?:
16035               1[0-6]|
16036               3[1-4]|
16037               [69]\d
16038             )|
16039             [1-357]\d{2}
16040           )\d{4}
16041         </nationalNumberPattern>
16042         <exampleNumber>21001234</exampleNumber>
16043       </fixedLine>
16044       <mobile>
16045         <!-- 7210 and 92XX come from the allocations listed on http://www.mca.org.mt, but they are
16046              not listed in the latest ITU document. -->
16047         <nationalNumberPattern>
16048           (?:
16049             7(?:
16050               210|
16051               [79]\d{2}
16052             )|
16053             9(?:
16054               2(?:
16055                1[01]|
16056                31
16057               )|
16058               696|
16059               8(?:
16060                 1[1-3]|
16061                 89|
16062                 97
16063               )|
16064               9\d{2}
16065             )
16066           )\d{4}
16067         </nationalNumberPattern>
16068         <exampleNumber>96961234</exampleNumber>
16069       </mobile>
16070       <pager>
16071         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
16072         <exampleNumber>71171234</exampleNumber>
16073       </pager>
16074       <tollFree>
16075         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
16076         <exampleNumber>80071234</exampleNumber>
16077       </tollFree>
16078       <premiumRate>
16079         <nationalNumberPattern>
16080           5(?:
16081             0(?:
16082               0(?:
16083                 37|
16084                 43
16085               )|
16086               6\d{2}|
16087               70\d|
16088               9[0168]
16089             )|
16090             [12]\d0[1-5]
16091           )\d{3}
16092         </nationalNumberPattern>
16093         <exampleNumber>50037123</exampleNumber>
16094       </premiumRate>
16095       <voip>
16096         <!-- In the plan as Non-PATS ECS. -->
16097         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
16098         <exampleNumber>35501234</exampleNumber>
16099       </voip>
16100       <uan>
16101         <!-- Using this for governmental numbers. -->
16102         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
16103         <exampleNumber>50112345</exampleNumber>
16104       </uan>
16105     </territory>
16106
16107     <!-- Mauritius -->
16108     <!-- Preferred international prefix is expected to standardize on just '00' -->
16109     <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
16110                preferredInternationalPrefix="020">
16111       <references>
16112         <sourceUrl>http://www.icta.mu/telecommunications/numbering.htm</sourceUrl>
16113       </references>
16114       <availableFormats>
16115         <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
16116           <leadingDigits>[2-46-9]</leadingDigits>
16117           <format>$1 $2</format>
16118         </numberFormat>
16119         <numberFormat pattern="(5\d{3})(\d{4})">
16120           <leadingDigits>5</leadingDigits>
16121           <format>$1 $2</format>
16122         </numberFormat>
16123       </availableFormats>
16124       <generalDesc>
16125         <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
16126         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
16127       </generalDesc>
16128       <fixedLine>
16129         <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
16130         <nationalNumberPattern>
16131           (?:
16132             2(?:
16133               [03478]\d|
16134               1[0-7]|
16135               6[1-69]
16136             )|
16137             4(?:
16138               [013568]\d|
16139               2[4-7]
16140             )|
16141             5(?:
16142               44\d|
16143               471
16144             )|
16145             6\d{2}|
16146             8(?:
16147               14|
16148               3[129]
16149             )
16150           )\d{4}
16151         </nationalNumberPattern>
16152         <exampleNumber>2012345</exampleNumber>
16153       </fixedLine>
16154       <mobile>
16155         <nationalNumberPattern>
16156           5(?:
16157             2[59]\d|
16158             4(?:
16159               2[1-389]|
16160               4\d|
16161               7[1-9]|
16162               9\d
16163             )|
16164             7\d{2}|
16165             8(?:
16166               [256]\d|
16167               7[15-8]
16168             )|
16169             9[0-8]\d
16170           )\d{4}
16171         </nationalNumberPattern>
16172         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16173         <exampleNumber>52512345</exampleNumber>
16174       </mobile>
16175       <tollFree>
16176         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
16177         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16178         <exampleNumber>8001234</exampleNumber>
16179       </tollFree>
16180       <premiumRate>
16181         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
16182         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16183         <exampleNumber>3012345</exampleNumber>
16184       </premiumRate>
16185       <voip>
16186         <nationalNumberPattern>
16187           3(?:
16188             20|
16189             9\d
16190           )\d{4}
16191         </nationalNumberPattern>
16192         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16193         <exampleNumber>3201234</exampleNumber>
16194       </voip>
16195     </territory>
16196
16197     <!-- Maldives -->
16198     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
16199                preferredInternationalPrefix="00">
16200       <references>
16201         <sourceUrl>http://www.itu.int/oth/T0202000082/en</sourceUrl>
16202         <sourceUrl>http://www.dhiraagu.com.mv</sourceUrl>
16203       </references>
16204       <availableFormats>
16205         <numberFormat pattern="(\d{3})(\d{4})">
16206           <leadingDigits>
16207             [3467]|
16208             9(?:
16209               [1-9]|
16210               0[1-9]
16211             )
16212           </leadingDigits>
16213           <format>$1-$2</format>
16214         </numberFormat>
16215         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16216           <leadingDigits>900</leadingDigits>
16217           <format>$1 $2 $3</format>
16218         </numberFormat>
16219       </availableFormats>
16220       <generalDesc>
16221         <nationalNumberPattern>
16222           [3467]\d{6}|
16223           9(?:
16224             00\d{7}|
16225             \d{6}
16226           )
16227         </nationalNumberPattern>
16228         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16229       </generalDesc>
16230       <fixedLine>
16231         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
16232              diallable. -->
16233         <nationalNumberPattern>
16234           (?:
16235             3(?:
16236               0[01]|
16237               3[0-59]
16238             )|
16239             6(?:
16240               [567][02468]|
16241               8[024689]|
16242               90
16243             )
16244           )\d{4}
16245         </nationalNumberPattern>
16246         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16247         <exampleNumber>6701234</exampleNumber>
16248       </fixedLine>
16249       <mobile>
16250         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
16251              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
16252              91 was added based on information from Wataniya Telecom. -->
16253         <nationalNumberPattern>
16254           (?:
16255             46[46]|
16256             7[3-9]\d|
16257             9[16-9]\d
16258           )\d{4}
16259         </nationalNumberPattern>
16260         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16261         <exampleNumber>7712345</exampleNumber>
16262       </mobile>
16263       <pager>
16264         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
16265         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16266         <exampleNumber>7812345</exampleNumber>
16267       </pager>
16268       <premiumRate>
16269         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16270         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16271         <exampleNumber>9001234567</exampleNumber>
16272       </premiumRate>
16273     </territory>
16274
16275     <!-- Malawi -->
16276     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
16277          consistent in having one. -->
16278     <territory id="MW" countryCode="265" internationalPrefix="00"
16279                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16280       <references>
16281         <sourceUrl>http://www.itu.int/oth/T0202000080/en</sourceUrl>
16282       </references>
16283       <availableFormats>
16284         <numberFormat pattern="(\d)(\d{3})(\d{3})">
16285           <leadingDigits>1</leadingDigits>
16286           <format>$1 $2 $3</format>
16287         </numberFormat>
16288         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
16289           <leadingDigits>2</leadingDigits>
16290           <format>$1 $2 $3</format>
16291         </numberFormat>
16292         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16293           <leadingDigits>[1789]</leadingDigits>
16294           <format>$1 $2 $3 $4</format>
16295         </numberFormat>
16296       </availableFormats>
16297       <generalDesc>
16298         <nationalNumberPattern>
16299           (?:
16300             1(?:
16301               \d{2}
16302             )?|
16303             [2789]\d{2}
16304           )\d{6}
16305         </nationalNumberPattern>
16306         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
16307       </generalDesc>
16308       <fixedLine>
16309         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
16310              been found so this is being retained for now. It is possible however that these may be
16311              old-format mobile numbers. -->
16312         <nationalNumberPattern>
16313           (?:
16314             1[2-9]|
16315             21\d{2}
16316           )\d{5}
16317         </nationalNumberPattern>
16318         <exampleNumber>1234567</exampleNumber>
16319       </fixedLine>
16320       <mobile>
16321         <nationalNumberPattern>
16322           (?:
16323             111|
16324             77\d|
16325             88\d|
16326             99\d
16327           )\d{6}
16328         </nationalNumberPattern>
16329         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16330         <exampleNumber>991234567</exampleNumber>
16331       </mobile>
16332     </territory>
16333
16334     <!-- Mexico -->
16335     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
16336                nationalPrefix="01"
16337                nationalPrefixForParsing="0[12]|04[45](\d{10})"
16338                nationalPrefixTransformRule="1$1"
16339                nationalPrefixFormattingRule="$NP $FG"
16340                nationalPrefixOptionalWhenFormatting="true"
16341                leadingZeroPossible="true" mobileNumberPortableRegion="true">
16342       <references>
16343         <sourceUrl>http://www.itu.int/oth/T020200008A/en</sourceUrl>
16344         <sourceUrl>http://en.wikipedia.org/wiki/%2B52</sourceUrl>
16345         <sourceUrl>http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico</sourceUrl>
16346         <sourceUrl>http://en.wikipedia.org/wiki/Toll-free_telephone_number</sourceUrl>
16347       </references>
16348       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
16349            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
16350            numbers, regardless of whether they are written in international format (leading 1) or
16351            national format (leading 044/045), will be parsed into the same form. -->
16352       <availableFormats>
16353         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
16354           <leadingDigits>
16355             33|
16356             55|
16357             81
16358           </leadingDigits>
16359           <format>$1 $2 $3</format>
16360         </numberFormat>
16361         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16362           <leadingDigits>
16363             [2467]|
16364             3[12457-9]|
16365             5[89]|
16366             8[02-9]|
16367             9[0-35-9]
16368           </leadingDigits>
16369           <format>$1 $2 $3</format>
16370         </numberFormat>
16371         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
16372           <leadingDigits>
16373             1(?:
16374               33|
16375               55|
16376               81
16377             )
16378           </leadingDigits>
16379           <format>044 $2 $3 $4</format>
16380           <intlFormat>$1 $2 $3 $4</intlFormat>
16381         </numberFormat>
16382         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
16383           <leadingDigits>
16384             1(?:
16385               [2467]|
16386               3[12457-9]|
16387               5[89]|
16388               8[2-9]|
16389               9[1-35-9]
16390             )
16391           </leadingDigits>
16392           <format>044 $2 $3 $4</format>
16393           <intlFormat>$1 $2 $3 $4</intlFormat>
16394         </numberFormat>
16395       </availableFormats>
16396       <generalDesc>
16397         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
16398         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
16399       </generalDesc>
16400       <fixedLine>
16401         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
16402         <nationalNumberPattern>
16403           (?:
16404             33|
16405             55|
16406             81
16407           )\d{8}|
16408           (?:
16409             2(?:
16410               2[2-9]|
16411               3[1-35-8]|
16412               4[13-9]|
16413               7[1-689]|
16414               8[1-578]|
16415               9[467]
16416             )|
16417             3(?:
16418               1[1-79]|
16419               [2458][1-9]|
16420               7[1-8]|
16421               9[1-5]
16422             )|
16423             4(?:
16424               1[1-57-9]|
16425               [24-6][1-9]|
16426               [37][1-8]|
16427               8[1-35-9]|
16428               9[2-689]
16429             )|
16430             5(?:
16431               88|
16432               9[1-79]
16433             )|
16434             6(?:
16435               1[2-68]|
16436               [234][1-9]|
16437               5[1-3689]|
16438               6[12457-9]|
16439               7[1-7]|
16440               8[67]|
16441               9[4-8]
16442             )|
16443             7(?:
16444               [13467][1-9]|
16445               2[1-8]|
16446               5[13-9]|
16447               8[1-69]|
16448               9[17]
16449             )|
16450             8(?:
16451               2[13-689]|
16452               3[1-6]|
16453               4[124-6]|
16454               6[1246-9]|
16455               7[1-378]|
16456               9[12479]
16457             )|
16458             9(?:
16459               1[346-9]|
16460               2[1-4]|
16461               3[2-46-8]|
16462               5[1348]|
16463               [69][1-9]|
16464               7[12]|
16465               8[1-8]
16466             )
16467           )\d{7}
16468         </nationalNumberPattern>
16469         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16470         <exampleNumber>2221234567</exampleNumber>
16471       </fixedLine>
16472       <mobile>
16473         <nationalNumberPattern>
16474           1(?:
16475             (?:
16476               33|
16477               55|
16478               81
16479             )\d{8}|
16480             (?:
16481               2(?:
16482                 2[2-9]|
16483                 3[1-35-8]|
16484                 4[13-9]|
16485                 7[1-689]|
16486                 8[1-578]|
16487                 9[467]
16488               )|
16489               3(?:
16490                 1[1-79]|
16491                 [2458][1-9]|
16492                 7[1-8]|
16493                 9[1-5]
16494               )|
16495               4(?:
16496                 1[1-57-9]|
16497                 [24-6][1-9]|
16498                 [37][1-8]|
16499                 8[1-35-9]|
16500                 9[2-689]
16501               )|
16502               5(?:
16503                 88|
16504                 9[1-79]
16505               )|
16506               6(?:
16507                 1[2-68]|
16508                 [2-4][1-9]|
16509                 5[1-3689]|
16510                 6[12457-9]|
16511                 7[1-7]|
16512                 8[67]|
16513                 9[4-8]
16514               )|
16515               7(?:
16516                 [13467][1-9]|
16517                 2[1-8]|
16518                 5[13-9]|
16519                 8[1-69]|
16520                 9[17]
16521               )|
16522               8(?:
16523                 2[13-689]|
16524                 3[1-6]|
16525                 4[124-6]|
16526                 6[1246-9]|
16527                 7[1-378]|
16528                 9[12479]
16529               )|
16530               9(?:
16531                 1[346-9]|
16532                 2[1-4]|
16533                 3[2-46-8]|
16534                 5[1348]|
16535                 [69][1-9]|
16536                 7[12]|
16537                 8[1-8]
16538               )
16539             )\d{7}
16540           )
16541         </nationalNumberPattern>
16542         <possibleNumberPattern>\d{11}</possibleNumberPattern>
16543         <exampleNumber>12221234567</exampleNumber>
16544       </mobile>
16545       <tollFree>
16546         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
16547         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16548         <exampleNumber>8001234567</exampleNumber>
16549       </tollFree>
16550       <premiumRate>
16551         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16552         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16553         <exampleNumber>9001234567</exampleNumber>
16554       </premiumRate>
16555     </territory>
16556
16557     <!-- Malaysia -->
16558     <territory id="MY" countryCode="60" internationalPrefix="00"
16559                nationalPrefix="0" mobileNumberPortableRegion="true">
16560       <references>
16561         <sourceUrl>http://en.wikipedia.org/wiki/%2B60</sourceUrl>
16562         <sourceUrl>http://www.skmm.gov.my</sourceUrl>
16563       </references>
16564       <availableFormats>
16565         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16566           pattern="([4-79])(\d{3})(\d{4})">
16567           <leadingDigits>[4-79]</leadingDigits>
16568           <format>$1-$2 $3</format>
16569         </numberFormat>
16570         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16571           pattern="(3)(\d{4})(\d{4})">
16572           <leadingDigits>3</leadingDigits>
16573           <format>$1-$2 $3</format>
16574         </numberFormat>
16575         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16576           pattern="([18]\d)(\d{3})(\d{3,4})">
16577           <leadingDigits>
16578             1[02-46-9][1-9]|
16579             8
16580           </leadingDigits>
16581           <format>$1-$2 $3</format>
16582         </numberFormat>
16583         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
16584           <leadingDigits>1[36-8]0</leadingDigits>
16585           <format>$1-$2-$3-$4</format>
16586         </numberFormat>
16587         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16588           pattern="(11)(\d{4})(\d{4})">
16589           <leadingDigits>11</leadingDigits>
16590           <format>$1-$2 $3</format>
16591         </numberFormat>
16592         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16593           pattern="(15[49])(\d{3})(\d{4})">
16594           <leadingDigits>15</leadingDigits>
16595           <format>$1-$2 $3</format>
16596         </numberFormat>
16597       </availableFormats>
16598       <generalDesc>
16599         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
16600         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
16601       </generalDesc>
16602       <fixedLine>
16603         <nationalNumberPattern>
16604           (?:
16605             3[2-9]\d|
16606             [4-9][2-9]
16607           )\d{6}
16608         </nationalNumberPattern>
16609         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
16610         <exampleNumber>323456789</exampleNumber>
16611       </fixedLine>
16612       <mobile>
16613         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
16614              is possible to send SMSs (and receive them) from numbers in this block, so we are
16615              listing them as mobile. -->
16616         <nationalNumberPattern>
16617           1(?:
16618             1[1-3]\d{2}|
16619             [02-4679][2-9]\d|
16620             59\d{2}|
16621             8(?:
16622               1[23]|
16623               [2-9]\d
16624             )
16625           )\d{5}
16626         </nationalNumberPattern>
16627         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
16628         <exampleNumber>123456789</exampleNumber>
16629       </mobile>
16630       <tollFree>
16631         <!-- http://www.skmm.gov.my/skmmgovmy/media/General/pdf/Special_Service_Number.pdf -->
16632         <nationalNumberPattern>1[378]00\d{6}</nationalNumberPattern>
16633         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16634         <exampleNumber>1300123456</exampleNumber>
16635       </tollFree>
16636       <premiumRate>
16637         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
16638         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16639         <exampleNumber>1600123456</exampleNumber>
16640       </premiumRate>
16641       <voip>
16642         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
16643         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16644         <exampleNumber>1541234567</exampleNumber>
16645       </voip>
16646     </territory>
16647
16648     <!-- Mozambique -->
16649     <territory id="MZ" countryCode="258" internationalPrefix="00">
16650       <references>
16651         <sourceUrl>http://www.itu.int/oth/T0202000091/en</sourceUrl>
16652       </references>
16653       <availableFormats>
16654         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
16655           <leadingDigits>
16656             2|
16657             8[2-7]
16658           </leadingDigits>
16659           <format>$1 $2 $3</format>
16660         </numberFormat>
16661         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
16662           <leadingDigits>80</leadingDigits>
16663           <format>$1 $2 $3</format>
16664         </numberFormat>
16665       </availableFormats>
16666       <generalDesc>
16667         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
16668         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16669       </generalDesc>
16670       <fixedLine>
16671         <nationalNumberPattern>
16672           2(?:
16673             [1346]\d|
16674             5[0-2]|
16675             [78][12]|
16676             93
16677           )\d{5}
16678         </nationalNumberPattern>
16679         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16680         <exampleNumber>21123456</exampleNumber>
16681       </fixedLine>
16682       <mobile>
16683         <nationalNumberPattern>8[23467]\d{7}</nationalNumberPattern>
16684         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16685         <exampleNumber>821234567</exampleNumber>
16686       </mobile>
16687       <tollFree>
16688         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
16689              examples. -->
16690         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
16691         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16692         <exampleNumber>800123456</exampleNumber>
16693       </tollFree>
16694       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
16695            a 9 are premium rate, but no online examples can be found of any of these so they are
16696            omitted for the time-being. -->
16697     </territory>
16698
16699     <!-- Namibia -->
16700     <territory id="NA" countryCode="264" internationalPrefix="00"
16701                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16702       <references>
16703         <sourceUrl>http://www.itu.int/oth/T0202000093/en</sourceUrl>
16704       </references>
16705       <availableFormats>
16706         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
16707           <leadingDigits>8[1235]</leadingDigits>
16708           <format>$1 $2 $3</format>
16709         </numberFormat>
16710         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
16711           <leadingDigits>6</leadingDigits>
16712           <format>$1 $2 $3</format>
16713         </numberFormat>
16714         <numberFormat pattern="(88)(\d{3})(\d{3})">
16715           <leadingDigits>88</leadingDigits>
16716           <format>$1 $2 $3</format>
16717         </numberFormat>
16718         <numberFormat pattern="(870)(\d{3})(\d{3})">
16719           <leadingDigits>870</leadingDigits>
16720           <format>$1 $2 $3</format>
16721         </numberFormat>
16722       </availableFormats>
16723       <generalDesc>
16724         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
16725         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16726       </generalDesc>
16727       <fixedLine>
16728         <!-- Includes VSAT service. -->
16729         <nationalNumberPattern>
16730           6(?:
16731             1(?:
16732               17|
16733               2(?:
16734                 [0189]\d|
16735                 [2-6]|
16736                 7\d?
16737               )|
16738               3(?:
16739                 [01378]|
16740                 2\d
16741               )|
16742               4[01]|
16743               69|
16744               7[014]
16745             )|
16746             2(?:
16747               17|
16748               5(?:
16749                 [0-36-8]|
16750                 4\d?
16751               )|
16752               69|
16753               70
16754             )|
16755             3(?:
16756               17|
16757               2(?:
16758                 [0237]\d?|
16759                 [14-689]
16760               )|
16761               34|
16762               6[29]|
16763               7[01]|
16764               81
16765             )|
16766             4(?:
16767               17|
16768               2(?:
16769                 [012]|
16770                 7?
16771               )|
16772               4(?:
16773                 [06]|
16774                 1\d
16775               )|
16776               5(?:
16777                 [01357]|
16778                 [25]\d?
16779               )|
16780               69|
16781               7[01]
16782             )|
16783             5(?:
16784               17|
16785               2(?:
16786                 [0459]|
16787                 [23678]\d?
16788               )|
16789               69|
16790               7[01]
16791             )|
16792             6(?:
16793               17|
16794               2(?:
16795                 5|
16796                 6\d?
16797               )|
16798               38|
16799               42|
16800               69|
16801               7[01]
16802             )|
16803             7(?:
16804               17|
16805               2(?:
16806                 [569]|
16807                 [234]\d?
16808               )|
16809               3(?:
16810                 0\d?|
16811                 [13]
16812               )|
16813               69|
16814               7[01]
16815             )
16816           )\d{4}
16817         </nationalNumberPattern>
16818         <exampleNumber>61221234</exampleNumber>
16819       </fixedLine>
16820       <mobile>
16821         <!-- Includes the Switch CDMA Service. -->
16822         <nationalNumberPattern>
16823           (?:
16824             60|
16825             8[125]
16826           )\d{7}
16827         </nationalNumberPattern>
16828         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16829         <exampleNumber>811234567</exampleNumber>
16830       </mobile>
16831       <premiumRate>
16832         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
16833         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16834         <exampleNumber>870123456</exampleNumber>
16835       </premiumRate>
16836       <voip>
16837         <!-- Including virtual telephone and VOIP services. -->
16838         <nationalNumberPattern>
16839           8(?:
16840             3\d{2}|
16841             86
16842           )\d{5}
16843         </nationalNumberPattern>
16844         <exampleNumber>88612345</exampleNumber>
16845       </voip>
16846     </territory>
16847
16848     <!-- New Caledonia (Territoire français d'outre-mer) -->
16849     <territory id="NC" countryCode="687" internationalPrefix="00">
16850       <references>
16851         <sourceUrl>http://www.itu.int/oth/T0202000098/en</sourceUrl>
16852         <sourceUrl>http://www.opt.nc</sourceUrl>
16853       </references>
16854       <availableFormats>
16855         <!-- From http://www.1012.nc, the local yellow pages. -->
16856         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
16857           <!-- We exclude short-codes here so they are formatted as a block -->
16858           <leadingDigits>
16859             [2-46-9]|
16860             5[0-4]
16861           </leadingDigits>
16862           <format>$1.$2.$3</format>
16863         </numberFormat>
16864       </availableFormats>
16865       <generalDesc>
16866         <nationalNumberPattern>[2-57-9]\d{5}</nationalNumberPattern>
16867         <possibleNumberPattern>\d{6}</possibleNumberPattern>
16868       </generalDesc>
16869       <fixedLine>
16870         <!-- Including the 88 prefix for public payphones. -->
16871         <nationalNumberPattern>
16872           (?:
16873             2[03-9]|
16874             3[0-5]|
16875             4[1-7]|
16876             88
16877           )\d{4}
16878         </nationalNumberPattern>
16879         <exampleNumber>201234</exampleNumber>
16880       </fixedLine>
16881       <mobile>
16882         <nationalNumberPattern>
16883           (?:
16884             5[0-4]|
16885             [79]\d|
16886             8[0-79]
16887           )\d{4}
16888         </nationalNumberPattern>
16889         <exampleNumber>751234</exampleNumber>
16890       </mobile>
16891       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
16892       <!-- Note that OPT lists 3631 as a free short number for caller ID services, but the ITU
16893            document says that all 36 numbers are 6 digits. See ShortNumberMetadata.xml for more. -->
16894       <premiumRate>
16895         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
16896         <exampleNumber>366711</exampleNumber>
16897       </premiumRate>
16898     </territory>
16899
16900     <!-- Niger -->
16901     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
16902       <references>
16903         <sourceUrl>http://www.itu.int/oth/T020200009B/en</sourceUrl>
16904       </references>
16905       <availableFormats>
16906         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
16907           <leadingDigits>
16908             [289]|
16909             09
16910           </leadingDigits>
16911           <format>$1 $2 $3 $4</format>
16912         </numberFormat>
16913         <numberFormat pattern="(08)(\d{3})(\d{3})">
16914           <leadingDigits>08</leadingDigits>
16915           <format>$1 $2 $3</format>
16916         </numberFormat>
16917       </availableFormats>
16918       <generalDesc>
16919         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
16920         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16921       </generalDesc>
16922       <fixedLine>
16923         <!-- Adding 20 61 from online numbers. -->
16924         <nationalNumberPattern>
16925           2(?:
16926             0(?:
16927               20|
16928               3[1-7]|
16929               4[134]|
16930               5[14]|
16931               6[14578]|
16932               7[1-578]
16933             )|
16934             1(?:
16935               4[145]|
16936               5[14]|
16937               6[14-68]|
16938               7[169]|
16939               88
16940             )
16941           )\d{4}
16942         </nationalNumberPattern>
16943         <exampleNumber>20201234</exampleNumber>
16944       </fixedLine>
16945       <mobile>
16946         <!-- Added 90, 91, 92, 95, 97, 98 & 99 from online data. Airtel have confirmed that they use the
16947              89 and 97 prefixes, and Orange use 92. MOOV started using 95 in Jan 2014. -->
16948         <nationalNumberPattern>
16949           (?:
16950             89|
16951             9\d
16952           )\d{6}
16953         </nationalNumberPattern>
16954         <exampleNumber>93123456</exampleNumber>
16955       </mobile>
16956       <tollFree>
16957         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
16958         <exampleNumber>08123456</exampleNumber>
16959       </tollFree>
16960       <premiumRate>
16961         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
16962         <exampleNumber>09123456</exampleNumber>
16963       </premiumRate>
16964     </territory>
16965
16966     <!-- Norfolk Island -->
16967     <!-- Including numbers for Australian Antarctic stations. -->
16968     <territory id="NF" countryCode="672" internationalPrefix="00">
16969       <references>
16970         <sourceUrl>http://www.itu.int/oth/T020200009D/en</sourceUrl>
16971       </references>
16972       <availableFormats>
16973         <numberFormat pattern="(\d{2})(\d{4})">
16974            <leadingDigits>1</leadingDigits>
16975           <format>$1 $2</format>
16976         </numberFormat>
16977         <numberFormat pattern="(\d)(\d{5})">
16978           <leadingDigits>3</leadingDigits>
16979           <format>$1 $2</format>
16980         </numberFormat>
16981       </availableFormats>
16982       <generalDesc>
16983         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
16984         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
16985       </generalDesc>
16986       <fixedLine>
16987         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
16988              connect after we tried calling them. -->
16989         <nationalNumberPattern>
16990           (?:
16991             1(?:
16992               06|
16993               17|
16994               28|
16995               39
16996             )|
16997             3[012]\d
16998           )\d{3}
16999         </nationalNumberPattern>
17000         <exampleNumber>106609</exampleNumber>
17001       </fixedLine>
17002       <mobile>
17003         <nationalNumberPattern>38\d{4}</nationalNumberPattern>
17004         <exampleNumber>381234</exampleNumber>
17005       </mobile>
17006     </territory>
17007
17008     <!-- Nigeria -->
17009     <territory id="NG" countryCode="234" internationalPrefix="009"
17010                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17011                mobileNumberPortableRegion="true">
17012       <references>
17013         <sourceUrl>http://www.itu.int/oth/T020200009C/en</sourceUrl>
17014       </references>
17015       <availableFormats>
17016         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
17017           <leadingDigits>[129]</leadingDigits>
17018           <format>$1 $2 $3</format>
17019         </numberFormat>
17020         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
17021           <leadingDigits>
17022             [3-6]|
17023             7(?:
17024               [1-79]|
17025               0[1-9]
17026             )|
17027             8[2-9]
17028           </leadingDigits>
17029           <format>$1 $2 $3</format>
17030         </numberFormat>
17031         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17032           <leadingDigits>
17033             70|
17034             8[01]|
17035             90[239]
17036           </leadingDigits>
17037           <format>$1 $2 $3</format>
17038         </numberFormat>
17039         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17040           <leadingDigits>[78]00</leadingDigits>
17041           <format>$1 $2 $3</format>
17042         </numberFormat>
17043         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
17044           <leadingDigits>[78]00</leadingDigits>
17045           <format>$1 $2 $3</format>
17046         </numberFormat>
17047         <numberFormat pattern="(78)(\d{2})(\d{3})">
17048           <leadingDigits>78</leadingDigits>
17049           <format>$1 $2 $3</format>
17050         </numberFormat>
17051       </availableFormats>
17052       <generalDesc>
17053         <nationalNumberPattern>
17054           [1-6]\d{5,8}|
17055           9\d{5,9}|
17056           [78]\d{5,13}
17057         </nationalNumberPattern>
17058         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
17059       </generalDesc>
17060       <fixedLine>
17061         <nationalNumberPattern>
17062           [12]\d{6,7}|
17063           9(?:
17064             0[3-9]|
17065             [1-9]\d
17066           )\d{5}|
17067           (?:
17068             3\d|
17069             4[023568]|
17070             5[02368]|
17071             6[02-469]|
17072             7[4-69]|
17073             8[2-9]
17074           )\d{6}|
17075           (?:
17076             4[47]|
17077             5[14579]|
17078             6[1578]|
17079             7[0-357]
17080           )\d{5,6}|
17081           (?:
17082             78|
17083             41
17084           )\d{5}
17085         </nationalNumberPattern>
17086         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
17087         <exampleNumber>12345678</exampleNumber>
17088       </fixedLine>
17089       <mobile>
17090         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17091              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17092              Starcomms have apparently, according to the company, been used for mobile numbers too,
17093              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17094              903 has been added for MTN and 909 has been added for Etisalat. -->
17095         <nationalNumberPattern>
17096           (?:
17097             1(?:
17098               7[34]\d|
17099               8(?:
17100                 04|
17101                 [124579]\d|
17102                 8[0-3]
17103               )|
17104               95\d
17105             )|
17106             287[0-7]|
17107             3(?:
17108               18[1-8]|
17109               88[0-7]|
17110               9(?:
17111                 8[5-9]|
17112                 6[1-5]
17113               )
17114             )|
17115             4(?:
17116               28[0-2]|
17117               6(?:
17118                 7[1-9]|
17119                 8[02-47]
17120               )|
17121               88[0-2]
17122             )|
17123             5(?:
17124               2(?:
17125                 7[7-9]|
17126                 8\d
17127               )|
17128               38[1-79]|
17129               48[0-7]|
17130               68[4-7]
17131             )|
17132             6(?:
17133               2(?:
17134                 7[7-9]|
17135                 8\d
17136               )|
17137               4(?:
17138                 3[7-9]|
17139                 [68][129]|
17140                 7[04-69]|
17141                 9[1-8]
17142               )|
17143               58[0-2]|
17144               98[7-9]
17145             )|
17146             7(?:
17147               38[0-7]|
17148               69[1-8]|
17149               78[2-4]
17150             )|
17151             8(?:
17152               28[3-9]|
17153               38[0-2]|
17154               4(?:
17155                 2[12]|
17156                 3[147-9]|
17157                 5[346]|
17158                 7[4-9]|
17159                 8[014-689]|
17160                 90
17161               )|
17162               58[1-8]|
17163               78[2-9]|
17164               88[5-7]
17165             )|
17166             98[07]\d
17167           )\d{4}|
17168           (?:
17169             70(?:
17170               [13-9]\d|
17171               2[1-9]
17172             )|
17173             8(?:
17174               0[2-9]|
17175               1\d
17176             )\d|
17177             90[239]\d
17178           )\d{6}
17179         </nationalNumberPattern>
17180         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17181         <exampleNumber>8021234567</exampleNumber>
17182       </mobile>
17183       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
17184       <tollFree>
17185         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
17186         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17187         <exampleNumber>80017591759</exampleNumber>
17188       </tollFree>
17189       <uan>
17190         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
17191         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17192         <exampleNumber>7001234567</exampleNumber>
17193       </uan>
17194     </territory>
17195
17196     <!-- Nicaragua -->
17197     <territory id="NI" countryCode="505" internationalPrefix="00">
17198       <references>
17199         <sourceUrl>http://www.itu.int/oth/T020200009A/en</sourceUrl>
17200       </references>
17201       <availableFormats>
17202         <numberFormat pattern="(\d{4})(\d{4})">
17203           <format>$1 $2</format>
17204         </numberFormat>
17205       </availableFormats>
17206       <generalDesc>
17207         <nationalNumberPattern>[12578]\d{7}</nationalNumberPattern>
17208         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17209       </generalDesc>
17210       <fixedLine>
17211         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
17212         <exampleNumber>21234567</exampleNumber>
17213       </fixedLine>
17214       <mobile>
17215         <!-- 55[0-7], 57, 58 and 7[5-8] were added from bug reports/numbers found online. -->
17216         <nationalNumberPattern>
17217           5(?:
17218             5[0-7]\d{5}|
17219             [78]\d{6}
17220           )|
17221           7[5-8]\d{6}|
17222           8\d{7}
17223         </nationalNumberPattern>
17224         <exampleNumber>81234567</exampleNumber>
17225       </mobile>
17226       <tollFree>
17227         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
17228         <exampleNumber>18001234</exampleNumber>
17229       </tollFree>
17230     </territory>
17231
17232     <!-- Netherlands -->
17233     <territory id="NL" countryCode="31" internationalPrefix="00"
17234                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17235                mobileNumberPortableRegion="true">
17236       <references>
17237         <sourceUrl>http://en.wikipedia.org/wiki/%2B31</sourceUrl>
17238         <sourceUrl>http://www.opta.nl/en/numbers/search-for-numbers</sourceUrl>
17239       </references>
17240       <availableFormats>
17241         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
17242           <leadingDigits>
17243             1[035]|
17244             2[0346]|
17245             3[03568]|
17246             4[0356]|
17247             5[0358]|
17248             7|
17249             8[4578]
17250           </leadingDigits>
17251           <format>$1 $2 $3</format>
17252         </numberFormat>
17253         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
17254           <leadingDigits>
17255             1[16-8]|
17256             2[259]|
17257             3[124]|
17258             4[17-9]|
17259             5[124679]
17260           </leadingDigits>
17261           <format>$1 $2 $3</format>
17262         </numberFormat>
17263         <numberFormat pattern="(6)(\d{8})">
17264           <leadingDigits>6[0-57-9]</leadingDigits>
17265           <format>$1 $2</format>
17266         </numberFormat>
17267         <numberFormat pattern="(66)(\d{7})">
17268           <leadingDigits>66</leadingDigits>
17269           <format>$1 $2</format>
17270         </numberFormat>
17271         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
17272           <leadingDigits>14</leadingDigits>
17273           <format>$1 $2</format>
17274         </numberFormat>
17275         <numberFormat pattern="([89]0\d)(\d{4,7})">
17276           <leadingDigits>
17277             80|
17278             9
17279           </leadingDigits>
17280           <format>$1 $2</format>
17281         </numberFormat>
17282       </availableFormats>
17283       <generalDesc>
17284         <nationalNumberPattern>
17285           1\d{4,8}|
17286           [2-7]\d{8}|
17287           [89]\d{6,9}
17288         </nationalNumberPattern>
17289         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
17290       </generalDesc>
17291       <noInternationalDialling>
17292         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
17293         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17294       </noInternationalDialling>
17295       <fixedLine>
17296         <nationalNumberPattern>
17297           (?:
17298             1[0135-8]|
17299             2[02-69]|
17300             3[0-68]|
17301             4[0135-9]|
17302             [57]\d|
17303             8[478]
17304           )\d{7}
17305         </nationalNumberPattern>
17306         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17307         <exampleNumber>101234567</exampleNumber>
17308       </fixedLine>
17309       <mobile>
17310         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
17311         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17312         <exampleNumber>612345678</exampleNumber>
17313       </mobile>
17314       <pager>
17315         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
17316         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17317         <exampleNumber>662345678</exampleNumber>
17318       </pager>
17319       <tollFree>
17320         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
17321         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17322         <exampleNumber>8001234</exampleNumber>
17323       </tollFree>
17324       <premiumRate>
17325         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
17326         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17327         <exampleNumber>9061234</exampleNumber>
17328       </premiumRate>
17329       <voip>
17330         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
17331         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17332         <exampleNumber>851234567</exampleNumber>
17333       </voip>
17334       <uan>
17335         <!-- These numbers are used for local government. They are formed by the appending the local
17336              dialling code (including the national prefix 0) after the leading digits "14". -->
17337         <nationalNumberPattern>
17338           140(?:
17339             1(?:
17340               [035]|
17341               [16-8]\d
17342             )|
17343             2(?:
17344               [0346]|
17345               [259]\d
17346             )|
17347             3(?:
17348               [03568]|
17349               [124]\d
17350             )|
17351             4(?:
17352               [0356]|
17353               [17-9]\d
17354             )|
17355             5(?:
17356               [0358]|
17357               [124679]\d
17358             )|
17359             7\d|
17360             8[458]
17361           )
17362         </nationalNumberPattern>
17363         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17364         <exampleNumber>14020</exampleNumber>
17365       </uan>
17366     </territory>
17367
17368     <!-- Norway -->
17369     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
17370     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
17371                mainCountryForCode="true" mobileNumberPortableRegion="true">
17372       <references>
17373         <sourceUrl>http://www.npt.no/npt/numsys/E.164.pdf</sourceUrl>
17374       </references>
17375       <availableFormats>
17376         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
17377           <leadingDigits>[489]</leadingDigits>
17378           <format>$1 $2 $3</format>
17379         </numberFormat>
17380         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
17381           <leadingDigits>[235-7]</leadingDigits>
17382           <format>$1 $2 $3 $4</format>
17383         </numberFormat>
17384       </availableFormats>
17385       <generalDesc>
17386         <nationalNumberPattern>
17387           0\d{4}|
17388           [2-9]\d{7}
17389         </nationalNumberPattern>
17390         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
17391       </generalDesc>
17392       <fixedLine>
17393         <!-- Excludes Svalbard fixed-line numbers. -->
17394         <nationalNumberPattern>
17395           (?:
17396             2[1-4]|
17397             3[1-3578]|
17398             5[1-35-7]|
17399             6[1-4679]|
17400             7[0-8]
17401           )\d{6}
17402         </nationalNumberPattern>
17403         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17404         <exampleNumber>21234567</exampleNumber>
17405       </fixedLine>
17406       <mobile>
17407         <nationalNumberPattern>
17408           (?:
17409             4[015-8]|
17410             5[89]|
17411             9\d
17412           )\d{6}
17413         </nationalNumberPattern>
17414         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17415         <exampleNumber>40612345</exampleNumber>
17416       </mobile>
17417       <tollFree>
17418         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
17419         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17420         <exampleNumber>80012345</exampleNumber>
17421       </tollFree>
17422       <premiumRate>
17423         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
17424         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17425         <exampleNumber>82012345</exampleNumber>
17426       </premiumRate>
17427       <sharedCost>
17428         <nationalNumberPattern>
17429           810(?:
17430             0[0-6]|
17431             [2-8]\d
17432           )\d{3}
17433         </nationalNumberPattern>
17434         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17435         <exampleNumber>81021234</exampleNumber>
17436       </sharedCost>
17437       <personalNumber>
17438         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
17439         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17440         <exampleNumber>88012345</exampleNumber>
17441       </personalNumber>
17442       <voip>
17443         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
17444         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17445         <exampleNumber>85012345</exampleNumber>
17446       </voip>
17447       <uan>
17448         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
17449         <nationalNumberPattern>
17450           0\d{4}|
17451           81(?:
17452             0(?:
17453               0[7-9]|
17454               1\d
17455             )|
17456             5\d{2}
17457           )\d{3}
17458         </nationalNumberPattern>
17459         <exampleNumber>01234</exampleNumber>
17460       </uan>
17461       <voicemail>
17462         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
17463         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17464         <exampleNumber>81212345</exampleNumber>
17465       </voicemail>
17466     </territory>
17467
17468     <!-- Nepal -->
17469     <territory id="NP" countryCode="977" internationalPrefix="00"
17470                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17471       <references>
17472         <sourceUrl>http://www.itu.int/oth/T0202000095/en</sourceUrl>
17473         <sourceUrl>http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php</sourceUrl>
17474         <sourceUrl>http://www.nta.gov.np/en/2012-06-01-11-45-17/2012-06-04-04-26-59/numbering-plan</sourceUrl>
17475       </references>
17476       <availableFormats>
17477         <!-- Formatting patterns taken from pages like http://www.nepalgov.gov.np -->
17478         <numberFormat pattern="(1)(\d{7})">
17479           <leadingDigits>1[2-6]</leadingDigits>
17480           <format>$1-$2</format>
17481         </numberFormat>
17482         <numberFormat pattern="(\d{2})(\d{6})">
17483           <leadingDigits>
17484             1[01]|
17485             [2-8]|
17486             9(?:
17487               [1-69]|
17488               7[15-9]
17489             )
17490           </leadingDigits>
17491           <format>$1-$2</format>
17492         </numberFormat>
17493         <numberFormat pattern="(9\d{2})(\d{7})">
17494           <leadingDigits>
17495             9(?:
17496               6[013]|
17497               7[245]|
17498               8
17499             )
17500             </leadingDigits>
17501           <format>$1-$2</format>
17502         </numberFormat>
17503       </availableFormats>
17504       <generalDesc>
17505         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
17506              numbers that have the country code prefixed. -->
17507         <nationalNumberPattern>
17508           [1-8]\d{7}|
17509           9(?:
17510             [1-69]\d{6,8}|
17511             7[2-6]\d{5,7}|
17512             8\d{8}
17513           )
17514         </nationalNumberPattern>
17515         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17516       </generalDesc>
17517       <!-- We don't support Rural Telecommunication Service at the moment since
17518            we are not sure what type it is. -->
17519       <fixedLine>
17520         <nationalNumberPattern>
17521           (?:
17522             1[0-6]\d|
17523             2[13-79][2-6]|
17524             3[135-8][2-6]|
17525             4[146-9][2-6]|
17526             5[135-7][2-6]|
17527             6[13-9][2-6]|
17528             7[15-9][2-6]|
17529             8[1-46-9][2-6]|
17530             9[1-79][2-6]
17531           )\d{5}
17532         </nationalNumberPattern>
17533         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17534         <exampleNumber>14567890</exampleNumber>
17535       </fixedLine>
17536       <mobile>
17537         <nationalNumberPattern>
17538           9(?:
17539             6[013]|
17540             7[245]|
17541             8[01456]
17542           )\d{7}
17543         </nationalNumberPattern>
17544         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17545         <exampleNumber>9841234567</exampleNumber>
17546       </mobile>
17547       <!-- No information on other types of phone numbers for Nepal has been found. -->
17548     </territory>
17549
17550     <!-- Nauru -->
17551     <territory id="NR" countryCode="674" internationalPrefix="00">
17552       <references>
17553         <sourceUrl>http://www.itu.int/oth/T0202000094/en</sourceUrl>
17554         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru</sourceUrl>
17555       </references>
17556       <availableFormats>
17557         <numberFormat pattern="(\d{3})(\d{4})">
17558           <format>$1 $2</format>
17559         </numberFormat>
17560       </availableFormats>
17561       <generalDesc>
17562         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
17563         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17564       </generalDesc>
17565       <fixedLine>
17566         <nationalNumberPattern>
17567           (?:
17568             444|
17569             888
17570           )\d{4}
17571         </nationalNumberPattern>
17572         <exampleNumber>4441234</exampleNumber>
17573       </fixedLine>
17574       <mobile>
17575         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
17576         <exampleNumber>5551234</exampleNumber>
17577       </mobile>
17578     </territory>
17579
17580     <!-- Niue -->
17581     <territory id="NU" countryCode="683" internationalPrefix="00">
17582       <references>
17583         <sourceUrl>http://www.itu.int/oth/T02020000EC/en</sourceUrl>
17584         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue</sourceUrl>
17585       </references>
17586       <!-- Numbers are always formatted as a block. -->
17587       <generalDesc>
17588         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
17589         <possibleNumberPattern>\d{4}</possibleNumberPattern>
17590       </generalDesc>
17591       <fixedLine>
17592         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
17593         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
17594         <exampleNumber>4002</exampleNumber>
17595       </fixedLine>
17596       <mobile>
17597         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
17598         <exampleNumber>1234</exampleNumber>
17599       </mobile>
17600     </territory>
17601
17602     <!-- New Zealand -->
17603     <!-- Includes Ross Dependency, Antarctica -->
17604     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
17605          numbers and 050 "Nation-Wide Service". -->
17606     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
17607                preferredInternationalPrefix="00" nationalPrefix="0"
17608                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
17609       <references>
17610         <sourceUrl>http://www.itu.int/oth/T0202000099/en</sourceUrl>
17611       </references>
17612       <availableFormats>
17613         <!-- Pattern for fixed-line formats. -->
17614         <numberFormat pattern="([34679])(\d{3})(\d{4})">
17615           <leadingDigits>
17616             [3467]|
17617             9[1-9]
17618           </leadingDigits>
17619           <format>$1-$2 $3</format>
17620         </numberFormat>
17621         <!-- Area code for NZ's Scott Base, in Antarctica. -->
17622         <numberFormat pattern="(24099)(\d{3})">
17623           <leadingDigits>240</leadingDigits>
17624           <leadingDigits>2409</leadingDigits>
17625           <leadingDigits>24099</leadingDigits>
17626           <format>$1 $2</format>
17627         </numberFormat>
17628         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
17629              length. -->
17630         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
17631         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
17632           <leadingDigits>21</leadingDigits>
17633           <format>$1 $2 $3</format>
17634         </numberFormat>
17635         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
17636         <numberFormat pattern="(\d{2})(\d{3})(\d{3,5})">
17637           <leadingDigits>
17638             2(?:
17639               1[1-9]|
17640               [69]|
17641               7[0-35-9]
17642             )|
17643             86
17644           </leadingDigits>
17645           <format>$1 $2 $3</format>
17646         </numberFormat>
17647         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
17648              than writing the first group as 022X based on Google web searches, and is used by
17649              2Degrees themselves. See formatting on http://www.2degreesmobile.co.nz for an example
17650              of the latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
17651         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
17652           <leadingDigits>2[028]</leadingDigits>
17653           <format>$1 $2 $3</format>
17654         </numberFormat>
17655         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17656           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900. -->
17657           <leadingDigits>
17658             2(?:
17659               10|
17660               74
17661             )|
17662             5|
17663             [89]0
17664           </leadingDigits>
17665           <format>$1 $2 $3</format>
17666         </numberFormat>
17667       </availableFormats>
17668       <generalDesc>
17669         <nationalNumberPattern>
17670           6[235-9]\d{6}|
17671           [2-57-9]\d{7,10}
17672         </nationalNumberPattern>
17673         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
17674       </generalDesc>
17675       <fixedLine>
17676         <!-- 07 788 was assigned to Voxbox according to
17677              http://www.nad.org.nz/07GeographicalCodes.php -->
17678         <nationalNumberPattern>
17679           (?:
17680             3[2-79]|
17681             [49][2-689]|
17682             6[235-9]|
17683             7[2-5789]
17684           )\d{6}|
17685           24099\d{3}
17686         </nationalNumberPattern>
17687         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17688         <exampleNumber>32345678</exampleNumber>
17689       </fixedLine>
17690       <mobile>
17691         <!-- Includes mobile radio service numbers (e.g. TeamTalk). The lengths of numbers with
17692              prefix 21 are different from what's specified in the ITU doc, because of numbers found
17693              online. -->
17694         <nationalNumberPattern>
17695           2(?:
17696             [028]\d{7,8}|
17697             1(?:
17698               [03]\d{5,7}|
17699               [12457]\d{5,6}|
17700               [689]\d{5}
17701             )|
17702             [79]\d{7}
17703           )
17704         </nationalNumberPattern>
17705         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17706         <exampleNumber>211234567</exampleNumber>
17707       </mobile>
17708       <pager>
17709         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
17710         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17711         <exampleNumber>26123456</exampleNumber>
17712       </pager>
17713       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
17714            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
17715            not covered, as telecom companies don't seem to support them yet. -->
17716       <tollFree>
17717         <nationalNumberPattern>
17718           508\d{6,7}|
17719           80\d{6,8}
17720         </nationalNumberPattern>
17721         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17722         <exampleNumber>800123456</exampleNumber>
17723       </tollFree>
17724       <premiumRate>
17725         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
17726         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
17727         <exampleNumber>900123456</exampleNumber>
17728       </premiumRate>
17729     </territory>
17730
17731     <!-- Oman -->
17732     <territory id="OM" countryCode="968" internationalPrefix="00" mobileNumberPortableRegion="true">
17733       <references>
17734         <sourceUrl>http://www.itu.int/oth/T020200009F/en</sourceUrl>
17735       </references>
17736       <availableFormats>
17737         <numberFormat pattern="(2\d)(\d{6})">
17738           <leadingDigits>2</leadingDigits>
17739           <format>$1 $2</format>
17740         </numberFormat>
17741         <numberFormat pattern="(9\d{3})(\d{4})">
17742           <leadingDigits>9</leadingDigits>
17743           <format>$1 $2</format>
17744         </numberFormat>
17745         <numberFormat pattern="([58]00)(\d{4,6})">
17746           <leadingDigits>[58]</leadingDigits>
17747           <format>$1 $2</format>
17748         </numberFormat>
17749       </availableFormats>
17750       <generalDesc>
17751         <nationalNumberPattern>
17752           (?:
17753             2[2-6]|
17754             5|
17755             9[1-9]
17756           )\d{6}|
17757           800\d{5,6}
17758         </nationalNumberPattern>
17759         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17760       </generalDesc>
17761       <fixedLine>
17762         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
17763         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17764         <exampleNumber>23123456</exampleNumber>
17765       </fixedLine>
17766       <mobile>
17767         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
17768         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17769         <exampleNumber>92123456</exampleNumber>
17770       </mobile>
17771       <tollFree>
17772         <!-- Link to document about toll-free numbers on http://www.tra.gov.om, which suggests they
17773              should be 8007 followed by 4 digits. However, the only examples I can find, including
17774              the customer help line for the main telephony company there (omantel), is 8007 followed
17775              by 5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to
17776              offer international toll-free dialing numbers - +968 500 1300 for international help
17777              desk for omantel, for example. -->
17778         <nationalNumberPattern>
17779           8007\d{4,5}|
17780           500\d{4}
17781         </nationalNumberPattern>
17782         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17783         <exampleNumber>80071234</exampleNumber>
17784       </tollFree>
17785       <!-- No premiumRate information can be found. -->
17786     </territory>
17787
17788     <!-- Panama -->
17789     <territory id="PA" countryCode="507" internationalPrefix="00" mobileNumberPortableRegion="true">
17790       <references>
17791         <!-- Last read July 9, 2014. -->
17792         <sourceUrl>http://www.asep.gob.pa/telecom/pnn/default.asp</sourceUrl>
17793         <!-- Omits the fact that mobile phones are 8 digits long. -->
17794         <sourceUrl>http://en.wikipedia.org/wiki/%2B507</sourceUrl>
17795       </references>
17796       <availableFormats>
17797         <numberFormat pattern="(\d{3})(\d{4})">
17798           <leadingDigits>[1-57-9]</leadingDigits>
17799           <format>$1-$2</format>
17800         </numberFormat>
17801         <numberFormat pattern="(\d{4})(\d{4})">
17802           <leadingDigits>6</leadingDigits>
17803           <format>$1-$2</format>
17804         </numberFormat>
17805       </availableFormats>
17806       <generalDesc>
17807         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
17808         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17809       </generalDesc>
17810       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
17811            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
17812       <fixedLine>
17813         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
17814              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
17815         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
17816              proved to be diallable. -->
17817         <nationalNumberPattern>
17818           (?:
17819             1(?:
17820               0[02-579]|
17821               19|
17822               2[37]|
17823               3[03]|
17824               4[479]|
17825               57|
17826               65|
17827               7[016-8]|
17828               8[58]|
17829               9[1349]
17830             )|
17831             2(?:
17832               [0235679]\d|
17833               1[0-7]|
17834               4[04-9]|
17835               8[028]
17836             )|
17837             3(?:
17838               [09]\d|
17839               1[14-7]|
17840               2[0-3]|
17841               3[03]|
17842               4[0457]|
17843               5[56]|
17844               6[068]|
17845               7[06-8]|
17846               8[089]
17847             )|
17848             4(?:
17849               3[013-69]|
17850               4\d|
17851               7[0-689]
17852             )|
17853             5(?:
17854               [01]\d|
17855               2[0-7]|
17856               [56]0|
17857               79
17858             )|
17859             7(?:
17860               0[09]|
17861               2[0-267]|
17862               3[06]|
17863               [49]0|
17864               5[06-9]|
17865               7[0-24-7]|
17866               8[89]
17867             )|
17868             8(?:
17869               [34]\d|
17870               5[0-4]|
17871               8[02]
17872             )|
17873             9(?:
17874               0[6-8]|
17875               1[016-8]|
17876               2[036-8]|
17877               3[3679]|
17878               40|
17879               5[0489]|
17880               6[06-9]|
17881               7[046-9]|
17882               8[36-8]|
17883               9[1-9]
17884             )
17885           )\d{4}
17886         </nationalNumberPattern>
17887         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17888         <exampleNumber>2001234</exampleNumber>
17889       </fixedLine>
17890       <mobile>
17891         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
17892              service "210", "Servicio de Busca Personas". -->
17893         <nationalNumberPattern>
17894           (?:
17895             1[16]1|
17896             21[89]|
17897             8(?:
17898               1[01]|
17899               7[23]
17900             )
17901           )\d{4}|
17902           6(?:
17903             [024-9]\d|
17904             1[0-5]|
17905             3[0-24-9]
17906           )\d{5}
17907         </nationalNumberPattern>
17908         <exampleNumber>60012345</exampleNumber>
17909       </mobile>
17910       <tollFree>
17911         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
17912         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17913         <exampleNumber>8001234</exampleNumber>
17914       </tollFree>
17915       <premiumRate>
17916         <!-- Value-added services are represented as "400" in the plan. -->
17917         <nationalNumberPattern>
17918           (?:
17919             779|
17920             8(?:
17921               2[235]|
17922               55|
17923               60|
17924               7[578]|
17925               86|
17926               95
17927             )|
17928             9(?:
17929               0[0-2]|
17930               81
17931             )
17932           )\d{4}
17933         </nationalNumberPattern>
17934         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17935         <exampleNumber>8601234</exampleNumber>
17936       </premiumRate>
17937     </territory>
17938
17939     <!-- Peru -->
17940     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
17941                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
17942                preferredExtnPrefix=" Anexo " mobileNumberPortableRegion="true">
17943       <references>
17944         <sourceUrl>http://www.itu.int/oth/T02020000A6/en</sourceUrl>
17945         <sourceUrl>http://en.wikipedia.org/wiki/+51</sourceUrl>
17946         <sourceUrl>http://www.assistbook.com/South%20America/Peru/widecodes</sourceUrl>
17947       </references>
17948       <availableFormats>
17949         <numberFormat pattern="(1)(\d{7})">
17950           <leadingDigits>1</leadingDigits>
17951           <format>$1 $2</format>
17952         </numberFormat>
17953         <numberFormat pattern="([4-8]\d)(\d{6})">
17954           <leadingDigits>
17955             [4-7]|
17956             8[2-4]
17957           </leadingDigits>
17958           <format>$1 $2</format>
17959         </numberFormat>
17960         <numberFormat pattern="(\d{3})(\d{5})">
17961           <leadingDigits>80</leadingDigits>
17962           <format>$1 $2</format>
17963         </numberFormat>
17964         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
17965         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
17966                       nationalPrefixFormattingRule="$FG">
17967           <leadingDigits>9</leadingDigits>
17968           <format>$1 $2 $3</format>
17969         </numberFormat>
17970       </availableFormats>
17971       <generalDesc>
17972         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
17973         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
17974       </generalDesc>
17975       <fixedLine>
17976         <nationalNumberPattern>
17977           (?:
17978             1\d|
17979             4[1-4]|
17980             5[1-46]|
17981             6[1-7]|
17982             7[2-46]|
17983             8[2-4]
17984           )\d{6}
17985         </nationalNumberPattern>
17986         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17987         <exampleNumber>11234567</exampleNumber>
17988       </fixedLine>
17989       <mobile>
17990         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
17991         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17992         <exampleNumber>912345678</exampleNumber>
17993       </mobile>
17994       <tollFree>
17995         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
17996         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17997         <exampleNumber>80012345</exampleNumber>
17998       </tollFree>
17999       <premiumRate>
18000         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
18001         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18002         <exampleNumber>80512345</exampleNumber>
18003       </premiumRate>
18004       <sharedCost>
18005         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
18006         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18007         <exampleNumber>80112345</exampleNumber>
18008       </sharedCost>
18009       <personalNumber>
18010         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
18011         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18012         <exampleNumber>80212345</exampleNumber>
18013       </personalNumber>
18014     </territory>
18015
18016     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
18017     <territory id="PF" countryCode="689" internationalPrefix="00">
18018       <references>
18019         <sourceUrl>http://www.itu.int/oth/T020200004D/en</sourceUrl>
18020       </references>
18021       <availableFormats>
18022         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
18023           <leadingDigits>
18024             4[09]|
18025             8[79]
18026           </leadingDigits>
18027           <format>$1 $2 $3 $4</format>
18028         </numberFormat>
18029         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
18030           <leadingDigits>44</leadingDigits>
18031           <format>$1 $2 $3</format>
18032         </numberFormat>
18033       </availableFormats>
18034       <generalDesc>
18035         <nationalNumberPattern>
18036           4\d{5,7}|
18037           8\d{7}
18038         </nationalNumberPattern>
18039         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
18040       </generalDesc>
18041       <noInternationalDialling>
18042         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
18043         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18044         <exampleNumber>441234</exampleNumber>
18045       </noInternationalDialling>
18046       <fixedLine>
18047         <!-- Includes payphone prefixes. -->
18048         <nationalNumberPattern>
18049           4(?:
18050             [09][45689]\d|
18051             4
18052           )\d{4}
18053         </nationalNumberPattern>
18054         <exampleNumber>40412345</exampleNumber>
18055       </fixedLine>
18056       <mobile>
18057         <nationalNumberPattern>8[79]\d{6}</nationalNumberPattern>
18058         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18059         <exampleNumber>87123456</exampleNumber>
18060       </mobile>
18061     </territory>
18062
18063     <!-- Papua New Guinea -->
18064     <territory id="PG" countryCode="675" internationalPrefix="00">
18065       <references>
18066         <sourceUrl>http://www.itu.int/oth/T02020000A4/en</sourceUrl>
18067         <sourceUrl>http://en.wikipedia.org/wiki/%2B675</sourceUrl>
18068       </references>
18069       <availableFormats>
18070         <numberFormat pattern="(\d{3})(\d{4})">
18071           <leadingDigits>
18072             [13-689]|
18073             27
18074           </leadingDigits>
18075           <format>$1 $2</format>
18076         </numberFormat>
18077         <numberFormat pattern="(\d{4})(\d{4})">
18078           <leadingDigits>
18079             20|
18080             7
18081           </leadingDigits>
18082           <format>$1 $2</format>
18083         </numberFormat>
18084       </availableFormats>
18085       <generalDesc>
18086         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18087         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18088       </generalDesc>
18089       <fixedLine>
18090         <nationalNumberPattern>
18091           (?:
18092             3[0-2]\d|
18093             4[25]\d|
18094             5[34]\d|
18095             64[1-9]|
18096             77(?:
18097               [0-24]\d|
18098               30
18099             )|
18100             85[02-46-9]|
18101             9[78]\d
18102           )\d{4}
18103         </nationalNumberPattern>
18104         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18105         <exampleNumber>3123456</exampleNumber>
18106       </fixedLine>
18107       <mobile>
18108         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
18109              Wikipedia.
18110              As per ITU doc, prefix 20150 will expire at the end of 2015. -->
18111         <nationalNumberPattern>
18112           (?:
18113             20150|
18114             68\d{2}|
18115             7(?:
18116               [0-369]\d|
18117               75
18118             )\d{2}
18119           )\d{3}
18120         </nationalNumberPattern>
18121         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18122         <exampleNumber>6812345</exampleNumber>
18123       </mobile>
18124       <tollFree>
18125         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
18126         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18127         <exampleNumber>1801234</exampleNumber>
18128       </tollFree>
18129       <voip>
18130         <!-- VSAT prefixes are here. -->
18131         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
18132         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18133         <exampleNumber>2751234</exampleNumber>
18134       </voip>
18135     </territory>
18136
18137     <!-- Philippines -->
18138     <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
18139       <references>
18140         <sourceUrl>http://en.wikipedia.org/wiki/%2B63</sourceUrl>
18141       </references>
18142       <availableFormats>
18143         <!-- Area code separated from number. Area codes found here:
18144         http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
18145         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18146           pattern="(2)(\d{3})(\d{4})">
18147           <leadingDigits>2</leadingDigits>
18148           <format>$1 $2 $3</format>
18149         </numberFormat>
18150         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18151           pattern="(2)(\d{5})">
18152           <leadingDigits>2</leadingDigits>
18153           <format>$1 $2</format>
18154         </numberFormat>
18155         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18156           pattern="(\d{4})(\d{4,6})">
18157           <leadingDigits>
18158             3(?:
18159               23|
18160               39|
18161               46
18162             )|
18163             4(?:
18164               2[3-6]|
18165               [35]9|
18166               4[26]|
18167               76
18168             )|
18169             5(?:
18170               22|
18171               44
18172             )|
18173             642|
18174             8(?:
18175               62|
18176               8[245]
18177             )
18178           </leadingDigits>
18179           <leadingDigits>
18180             3(?:
18181               230|
18182               397|
18183               461
18184             )|
18185             4(?:
18186               2(?:
18187                 35|
18188                 [46]4|
18189                 51
18190               )|
18191               396|
18192               4(?:
18193                 22|
18194                 63
18195               )|
18196               59[347]|
18197               76[15]
18198             )|
18199             5(?:
18200               221|
18201               446
18202             )|
18203             642[23]|
18204             8(?:
18205               622|
18206               8(?:
18207                 [24]2|
18208                 5[13]
18209               )
18210             )
18211           </leadingDigits>
18212           <format>$1 $2</format>
18213         </numberFormat>
18214         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18215           pattern="(\d{5})(\d{4})">
18216           <leadingDigits>
18217             346|
18218             4(?:
18219               27|
18220               9[35]
18221             )|
18222             883
18223           </leadingDigits>
18224           <leadingDigits>
18225             3469|
18226             4(?:
18227               279|
18228               9(?:
18229                 30|
18230                 56
18231               )
18232             )|
18233             8834
18234           </leadingDigits>
18235           <format>$1 $2</format>
18236         </numberFormat>
18237         <!-- This rule is a fallback for the more specific area codes. -->
18238         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18239           pattern="([3-8]\d)(\d{3})(\d{4})">
18240           <leadingDigits>[3-8]</leadingDigits>
18241           <format>$1 $2 $3</format>
18242         </numberFormat>
18243         <numberFormat nationalPrefixFormattingRule="$NP$FG"
18244           pattern="(\d{3})(\d{3})(\d{4})">
18245           <leadingDigits>
18246             81|
18247             9
18248           </leadingDigits>
18249           <format>$1 $2 $3</format>
18250         </numberFormat>
18251         <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
18252         <numberFormat pattern="(1800)(\d{3})(\d{4})">
18253           <leadingDigits>1</leadingDigits>
18254           <format>$1 $2 $3</format>
18255         </numberFormat>
18256         <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
18257           <leadingDigits>1</leadingDigits>
18258           <format>$1 $2 $3 $4</format>
18259         </numberFormat>
18260       </availableFormats>
18261       <generalDesc>
18262         <nationalNumberPattern>
18263           2\d{5,7}|
18264           [3-9]\d{7,9}|
18265           1800\d{7,9}
18266         </nationalNumberPattern>
18267         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
18268       </generalDesc>
18269       <fixedLine>
18270         <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
18271              that have only 5 digits after the area code; plus it seems the 8822 area code is
18272              followed by 6 digits, and 8842 by only 4. -->
18273         <nationalNumberPattern>
18274           2\d{5}(?:\d{2})?|
18275           (?:
18276             3[2-68]|
18277             4[2-9]|
18278             5[2-6]|
18279             6[2-58]|
18280             7[24578]|
18281             8[2-8]
18282           )\d{7}|
18283           88(?:
18284             22\d{6}|
18285             42\d{4}
18286           )
18287         </nationalNumberPattern>
18288         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
18289         <exampleNumber>21234567</exampleNumber>
18290       </fixedLine>
18291       <mobile>
18292         <nationalNumberPattern>
18293           (?:
18294             81[37]|
18295             9(?:
18296               0[5-9]|
18297               1[024-9]|
18298               2[0-35-9]|
18299               3[02-9]|
18300               4[236-9]|
18301               7[34-79]|
18302               89|
18303               9[4-9]
18304             )
18305           )\d{7}
18306         </nationalNumberPattern>
18307         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18308         <exampleNumber>9051234567</exampleNumber>
18309       </mobile>
18310       <!-- Information on toll-free numbers collected from searching the internet -->
18311       <tollFree>
18312         <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
18313         <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
18314         <exampleNumber>180012345678</exampleNumber>
18315       </tollFree>
18316       <!-- No information can be found about other types of numbers (such as premium rate) in the
18317            Philippines. -->
18318     </territory>
18319
18320     <!-- Pakistan -->
18321     <territory id="PK" countryCode="92" internationalPrefix="00"
18322                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18323                mobileNumberPortableRegion="true">
18324       <references>
18325         <sourceUrl>http://www.itu.int/oth/T02020000A1/en</sourceUrl>
18326         <sourceUrl>http://en.wikipedia.org/wiki/%2B92</sourceUrl>
18327       </references>
18328       <availableFormats>
18329         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
18330              formatted nicely by the AYTF. -->
18331         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
18332           <leadingDigits>
18333             (?:
18334               2[125]|
18335               4[0-246-9]|
18336               5[1-35-7]|
18337               6[1-8]|
18338               7[14]|
18339               8[16]|
18340               91
18341             )1
18342           </leadingDigits>
18343           <leadingDigits>
18344             (?:
18345               2[125]|
18346               4[0-246-9]|
18347               5[1-35-7]|
18348               6[1-8]|
18349               7[14]|
18350               8[16]|
18351               91
18352             )11
18353           </leadingDigits>
18354           <leadingDigits>
18355             (?:
18356               2[125]|
18357               4[0-246-9]|
18358               5[1-35-7]|
18359               6[1-8]|
18360               7[14]|
18361               8[16]|
18362               91
18363             )111
18364           </leadingDigits>
18365           <format>$1 $2 $3 $4</format>
18366         </numberFormat>
18367         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
18368           <leadingDigits>
18369             2[349]|
18370             45|
18371             54|
18372             60|
18373             72|
18374             8[2-5]|
18375             9[2-9]
18376           </leadingDigits>
18377           <leadingDigits>
18378             (?:
18379               2[349]|
18380               45|
18381               54|
18382               60|
18383               72|
18384               8[2-5]|
18385               9[2-9]
18386             )\d1
18387           </leadingDigits>
18388           <leadingDigits>
18389             (?:
18390               2[349]|
18391               45|
18392               54|
18393               60|
18394               72|
18395               8[2-5]|
18396               9[2-9]
18397             )\d11
18398           </leadingDigits>
18399           <leadingDigits>
18400             (?:
18401               2[349]|
18402               45|
18403               54|
18404               60|
18405               72|
18406               8[2-5]|
18407               9[2-9]
18408             )\d111
18409           </leadingDigits>
18410           <format>$1 $2 $3 $4</format>
18411         </numberFormat>
18412         <numberFormat pattern="(\d{2})(\d{7,8})">
18413           <leadingDigits>
18414             (?:
18415               2[125]|
18416               4[0-246-9]|
18417               5[1-35-7]|
18418               6[1-8]|
18419               7[14]|
18420               8[16]|
18421               91
18422             )[2-9]
18423           </leadingDigits>
18424           <format>$1 $2</format>
18425         </numberFormat>
18426         <numberFormat pattern="(\d{3})(\d{6,7})">
18427           <leadingDigits>
18428             2[349]|
18429             45|
18430             54|
18431             60|
18432             72|
18433             8[2-5]|
18434             9[2-9]
18435           </leadingDigits>
18436           <leadingDigits>
18437             (?:
18438               2[349]|
18439               45|
18440               54|
18441               60|
18442               72|
18443               8[2-5]|
18444               9[2-9]
18445             )\d[2-9]
18446           </leadingDigits>
18447           <format>$1 $2</format>
18448         </numberFormat>
18449         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
18450           <leadingDigits>3</leadingDigits>
18451           <format>$1 $2</format>
18452         </numberFormat>
18453         <numberFormat pattern="([15]\d{3})(\d{5,6})">
18454           <leadingDigits>
18455             58[12]|
18456             1
18457           </leadingDigits>
18458           <format>$1 $2</format>
18459         </numberFormat>
18460         <!-- This is from online examples. -->
18461         <numberFormat pattern="(586\d{2})(\d{5})">
18462           <leadingDigits>586</leadingDigits>
18463           <format>$1 $2</format>
18464         </numberFormat>
18465         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
18466           <leadingDigits>[89]00</leadingDigits>
18467           <format>$1 $2 $3</format>
18468         </numberFormat>
18469       </availableFormats>
18470       <generalDesc>
18471         <!-- This is horribly complex because the country code is 92, and several area codes start
18472              with 92, and the number length is widely variable. -->
18473         <nationalNumberPattern>
18474           1\d{8}|
18475           [2-8]\d{5,11}|
18476           9(?:
18477             [013-9]\d{4,9}|
18478             2\d(?:
18479               111\d{6}|
18480               \d{3,7}
18481             )
18482           )
18483         </nationalNumberPattern>
18484         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
18485       </generalDesc>
18486       <fixedLine>
18487         <!-- The subscriber number length is not well defined for some area codes. From online
18488              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
18489              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
18490              of Karachi and Lahore (both 8). -->
18491         <nationalNumberPattern>
18492           (?:
18493             21|
18494             42
18495           )[2-9]\d{7}|
18496           (?:
18497             2[25]|
18498             4[0146-9]|
18499             5[1-35-7]|
18500             6[1-8]|
18501             7[14]|
18502             8[16]|
18503             91
18504           )[2-9]\d{6}|
18505           (?:
18506             2(?:
18507               3[2358]|
18508               4[2-4]|
18509               9[2-8]
18510             )|
18511             45[3479]|
18512             54[2-467]|
18513             60[468]|
18514             72[236]|
18515             8(?:
18516               2[2-689]|
18517               3[23578]|
18518               4[3478]|
18519               5[2356]
18520             )|
18521             9(?:
18522               1|
18523               2[2-8]|
18524               3[27-9]|
18525               4[2-6]|
18526               6[3569]|
18527               9[25-8]
18528             )
18529           )[2-9]\d{5,6}|
18530           58[126]\d{7}
18531         </nationalNumberPattern>
18532         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
18533         <exampleNumber>2123456789</exampleNumber>
18534       </fixedLine>
18535       <mobile>
18536         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
18537              can be found online with these prefixes. Added 310 based on information from Zong. -->
18538         <nationalNumberPattern>
18539           3(?:
18540             0\d|
18541             [12][0-5]|
18542             3[1-7]|
18543             4[0-7]|
18544             55|
18545             64
18546           )\d{7}
18547         </nationalNumberPattern>
18548         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18549         <exampleNumber>3012345678</exampleNumber>
18550       </mobile>
18551       <tollFree>
18552         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18553         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18554         <exampleNumber>80012345</exampleNumber>
18555       </tollFree>
18556       <premiumRate>
18557         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
18558         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18559         <exampleNumber>90012345</exampleNumber>
18560       </premiumRate>
18561       <!-- These are referred to as UPT numbers in the plan. -->
18562       <personalNumber>
18563         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
18564         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18565         <!-- The example number here is the test number from the plan. -->
18566         <exampleNumber>122044444</exampleNumber>
18567       </personalNumber>
18568       <uan>
18569         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
18570              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
18571              what type of number they are. We exclude Azad Jammu, Kashmir and Northern Areas here
18572              since no online example UANs can be found, and they have an "access code" at the start,
18573              making it difficult to guess what a UAN in these areas would look like. -->
18574         <nationalNumberPattern>
18575           (?:
18576             2(?:
18577               [125]|
18578               3[2358]|
18579               4[2-4]|
18580               9[2-8]
18581             )|
18582             4(?:
18583               [0-246-9]|
18584               5[3479]
18585             )|
18586             5(?:
18587               [1-35-7]|
18588               4[2-467]
18589             )|
18590             6(?:
18591               [1-8]|
18592               0[468]
18593             )|
18594             7(?:
18595               [14]|
18596               2[236]
18597             )|
18598             8(?:
18599               [16]|
18600               2[2-689]|
18601               3[23578]|
18602               4[3478]|
18603               5[2356]
18604             )|
18605             9(?:
18606               1|
18607               22|
18608               3[27-9]|
18609               4[2-6]|
18610               6[3569]|
18611               9[2-7]
18612             )
18613           )111\d{6}
18614         </nationalNumberPattern>
18615         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
18616         <exampleNumber>21111825888</exampleNumber>
18617       </uan>
18618     </territory>
18619
18620     <!-- Poland -->
18621     <territory id="PL" countryCode="48" internationalPrefix="00" mobileNumberPortableRegion="true">
18622       <references>
18623         <sourceUrl>http://en.wikipedia.org/wiki/%2B48</sourceUrl>
18624         <sourceUrl>http://www.itu.int/oth/T02020000A8/en</sourceUrl>
18625         <!-- Source is in Polish. -->
18626         <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>
18627       </references>
18628       <availableFormats>
18629         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
18630           <leadingDigits>
18631             [124]|
18632             3[2-4]|
18633             5[24-689]|
18634             6[1-3578]|
18635             7[14-7]|
18636             8[1-79]|
18637             9[145]
18638           </leadingDigits>
18639           <format>$1 $2 $3 $4</format>
18640         </numberFormat>
18641         <numberFormat pattern="(\d{2})(\d{1})(\d{4})">
18642           <leadingDigits>[12]2</leadingDigits>
18643           <format>$1 $2 $3</format>
18644         </numberFormat>
18645         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
18646              Poles that this is more usual. -->
18647         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
18648           <leadingDigits>
18649             39|
18650             5[0137]|
18651             6[0469]|
18652             7[02389]|
18653             8[08]
18654           </leadingDigits>
18655           <format>$1 $2 $3</format>
18656         </numberFormat>
18657         <!-- Additional patterns for shorter pager numbers. -->
18658         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
18659           <leadingDigits>64</leadingDigits>
18660           <format>$1 $2 $3</format>
18661         </numberFormat>
18662         <numberFormat pattern="(\d{3})(\d{3})">
18663           <leadingDigits>64</leadingDigits>
18664           <format>$1 $2</format>
18665         </numberFormat>
18666       </availableFormats>
18667       <generalDesc>
18668         <nationalNumberPattern>
18669           [12]\d{6,8}|
18670           [3-57-9]\d{8}|
18671           6\d{5,8}
18672         </nationalNumberPattern>
18673         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18674       </generalDesc>
18675       <fixedLine>
18676         <!-- The plan says all geographical numbers are 9 digits; but in at least Warsaw (22) and
18677              Krakow (12) we have found internationally diallable numbers that are 7 digits instead,
18678              so we support those too. -->
18679         <nationalNumberPattern>
18680           (?:
18681             1[2-8]|
18682             2[2-59]|
18683             3[2-4]|
18684             4[1-468]|
18685             5[24-689]|
18686             6[1-3578]|
18687             7[14-7]|
18688             8[1-79]|
18689             9[145]
18690           )\d{7}|
18691           [12]2\d{5}
18692         </nationalNumberPattern>
18693         <exampleNumber>123456789</exampleNumber>
18694       </fixedLine>
18695       <mobile>
18696         <nationalNumberPattern>
18697           (?:
18698             5[0137]|
18699             6[069]|
18700             7[2389]|
18701             88
18702           )\d{7}
18703         </nationalNumberPattern>
18704         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18705         <exampleNumber>512345678</exampleNumber>
18706       </mobile>
18707       <pager>
18708         <nationalNumberPattern>64\d{4,7}</nationalNumberPattern>
18709         <exampleNumber>641234567</exampleNumber>
18710       </pager>
18711       <tollFree>
18712         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
18713         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18714         <exampleNumber>800123456</exampleNumber>
18715       </tollFree>
18716       <premiumRate>
18717         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
18718         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18719         <exampleNumber>701234567</exampleNumber>
18720       </premiumRate>
18721       <sharedCost>
18722         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
18723         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18724         <exampleNumber>801234567</exampleNumber>
18725       </sharedCost>
18726       <voip>
18727         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
18728         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18729         <exampleNumber>391234567</exampleNumber>
18730       </voip>
18731     </territory>
18732
18733     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
18734     <territory id="PM" countryCode="508" internationalPrefix="00"
18735                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18736       <references>
18737         <sourceUrl>http://www.itu.int/oth/T02020000B2/en</sourceUrl>
18738       </references>
18739       <availableFormats>
18740         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
18741           <format>$1 $2 $3</format>
18742         </numberFormat>
18743       </availableFormats>
18744       <generalDesc>
18745         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
18746         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18747       </generalDesc>
18748       <fixedLine>
18749         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
18750         <exampleNumber>411234</exampleNumber>
18751       </fixedLine>
18752       <mobile>
18753         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
18754         <exampleNumber>551234</exampleNumber>
18755       </mobile>
18756     </territory>
18757
18758     <!-- Pitcairn Island -->
18759     <!-- id="PN" -->
18760     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
18761          satellite phones. -->
18762
18763     <!-- Puerto Rico -->
18764     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
18765                internationalPrefix="011">
18766       <references>
18767         <sourceUrl>http://www.itu.int/oth/T02020000AA/en</sourceUrl>
18768       </references>
18769       <generalDesc>
18770         <!-- NANPA country - uses US formatting rules -->
18771         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
18772         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
18773       </generalDesc>
18774       <fixedLine>
18775         <nationalNumberPattern>
18776           (?:
18777             787|
18778             939
18779           )[2-9]\d{6}
18780         </nationalNumberPattern>
18781         <exampleNumber>7872345678</exampleNumber>
18782       </fixedLine>
18783       <mobile>
18784         <nationalNumberPattern>
18785           (?:
18786             787|
18787             939
18788           )[2-9]\d{6}
18789         </nationalNumberPattern>
18790         <exampleNumber>7872345678</exampleNumber>
18791       </mobile>
18792       <tollFree>
18793         <nationalNumberPattern>
18794           8(?:
18795             00|
18796             44|
18797             55|
18798             66|
18799             77|
18800             88
18801           )[2-9]\d{6}
18802         </nationalNumberPattern>
18803         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18804         <exampleNumber>8002345678</exampleNumber>
18805       </tollFree>
18806       <premiumRate>
18807         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
18808         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18809         <exampleNumber>9002345678</exampleNumber>
18810       </premiumRate>
18811       <personalNumber>
18812         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
18813         <nationalNumberPattern>
18814           5(?:
18815             00|
18816             33|
18817             44|
18818             66|
18819             77
18820           )[2-9]\d{6}
18821         </nationalNumberPattern>
18822         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18823         <exampleNumber>5002345678</exampleNumber>
18824       </personalNumber>
18825     </territory>
18826
18827     <!-- Palestinian Authority -->
18828     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
18829          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
18830          subset of the Israeli formats. -->
18831     <territory id="PS" countryCode="970" internationalPrefix="00"
18832                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18833       <references>
18834         <sourceUrl>http://en.wikipedia.org/wiki/%2B970</sourceUrl>
18835         <sourceUrl>http://www.wtng.info/wtng-970-ps.html</sourceUrl>
18836         <sourceUrl>http://www.paltel.ps</sourceUrl>
18837       </references>
18838       <availableFormats>
18839         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
18840           <leadingDigits>[2489]</leadingDigits>
18841           <format>$1 $2 $3</format>
18842         </numberFormat>
18843         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
18844           <leadingDigits>5</leadingDigits>
18845           <format>$1 $2 $3</format>
18846         </numberFormat>
18847         <numberFormat nationalPrefixFormattingRule="$FG"
18848           pattern="(1[78]00)(\d{3})(\d{3})">
18849           <leadingDigits>1[78]</leadingDigits>
18850           <format>$1 $2 $3</format>
18851         </numberFormat>
18852         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
18853       </availableFormats>
18854       <generalDesc>
18855         <nationalNumberPattern>
18856           [24589]\d{7,8}|
18857           1(?:
18858             [78]\d{8}|
18859             [49]\d{2,3}
18860           )
18861         </nationalNumberPattern>
18862         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
18863       </generalDesc>
18864       <fixedLine>
18865         <nationalNumberPattern>
18866           (?:
18867             22[234789]|
18868             42[45]|
18869             82[01458]|
18870             92[369]
18871           )\d{5}
18872         </nationalNumberPattern>
18873         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18874         <exampleNumber>22234567</exampleNumber>
18875       </fixedLine>
18876       <mobile>
18877         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
18878         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18879         <exampleNumber>599123456</exampleNumber>
18880       </mobile>
18881       <tollFree>
18882         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
18883         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18884         <exampleNumber>1800123456</exampleNumber>
18885       </tollFree>
18886       <premiumRate>
18887         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
18888         <nationalNumberPattern>
18889           1(?:
18890             4|
18891             9\d
18892            )\d{2}
18893         </nationalNumberPattern>
18894         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
18895         <exampleNumber>19123</exampleNumber>
18896       </premiumRate>
18897       <sharedCost>
18898         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
18899         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18900         <exampleNumber>1700123456</exampleNumber>
18901       </sharedCost>
18902     </territory>
18903
18904     <!-- Portugal -->
18905     <territory id="PT" countryCode="351" internationalPrefix="00" mobileNumberPortableRegion="true">
18906       <references>
18907         <sourceUrl>http://www.anacom.pt/render.jsp?categoryId=279098</sourceUrl>
18908       </references>
18909       <availableFormats>
18910         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
18911              two digits in the first group; however, this doesn't seem to be majority usage based on
18912              searches online. -->
18913         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
18914           <leadingDigits>2[12]</leadingDigits>
18915           <format>$1 $2 $3</format>
18916         </numberFormat>
18917         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
18918           <leadingDigits>
18919             2[3-9]|
18920             [346-9]
18921           </leadingDigits>
18922           <format>$1 $2 $3</format>
18923         </numberFormat>
18924       </availableFormats>
18925       <generalDesc>
18926         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
18927         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18928       </generalDesc>
18929       <fixedLine>
18930         <nationalNumberPattern>
18931           2(?:
18932             [12]\d|
18933             [35][1-689]|
18934             4[1-59]|
18935             6[1-35689]|
18936             7[1-9]|
18937             8[1-69]|
18938             9[1256]
18939           )\d{6}
18940         </nationalNumberPattern>
18941         <exampleNumber>212345678</exampleNumber>
18942       </fixedLine>
18943       <mobile>
18944         <nationalNumberPattern>
18945           9(?:
18946             [136]\d{2}|
18947             2[0-79]\d|
18948             480
18949           )\d{5}
18950         </nationalNumberPattern>
18951         <exampleNumber>912345678</exampleNumber>
18952       </mobile>
18953       <tollFree>
18954         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
18955         <exampleNumber>800123456</exampleNumber>
18956       </tollFree>
18957       <premiumRate>
18958         <!-- Fixed maximum cost numbers: 761=0.60€, 761=1€, 762=2€. -->
18959         <nationalNumberPattern>
18960           76(?:
18961             0[1-57]|
18962             1[2-47]|
18963             2[237]
18964           )\d{5}
18965         </nationalNumberPattern>
18966         <exampleNumber>760123456</exampleNumber>
18967       </premiumRate>
18968       <sharedCost>
18969         <!-- 808 are priced as local calls, 809 are national calls. -->
18970         <nationalNumberPattern>
18971           80(?:
18972             8\d|
18973             9[1579]
18974           )\d{5}
18975         </nationalNumberPattern>
18976         <exampleNumber>808123456</exampleNumber>
18977       </sharedCost>
18978       <personalNumber>
18979         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
18980         <exampleNumber>884123456</exampleNumber>
18981       </personalNumber>
18982       <voip>
18983         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
18984         <exampleNumber>301234567</exampleNumber>
18985       </voip>
18986       <uan>
18987         <nationalNumberPattern>
18988           70(?:
18989             7\d|
18990             8[17]
18991           )\d{5}
18992         </nationalNumberPattern>
18993         <exampleNumber>707123456</exampleNumber>
18994       </uan>
18995     </territory>
18996
18997     <!-- Palau -->
18998     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
18999       <references>
19000         <sourceUrl>http://www.itu.int/oth/T02020000A2/en</sourceUrl>
19001       </references>
19002       <availableFormats>
19003         <numberFormat pattern="(\d{3})(\d{4})">
19004           <format>$1 $2</format>
19005         </numberFormat>
19006       </availableFormats>
19007       <generalDesc>
19008         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
19009         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19010       </generalDesc>
19011       <fixedLine>
19012         <nationalNumberPattern>
19013           2552255|
19014           (?:
19015             277|
19016             345|
19017             488|
19018             5(?:
19019               35|
19020               44|
19021               87
19022             )|
19023             6(?:
19024               22|
19025               54|
19026               79
19027             )|
19028             7(?:
19029               33|
19030               47
19031             )|
19032             8(?:
19033               24|
19034               55|
19035               76
19036             )
19037           )\d{4}
19038         </nationalNumberPattern>
19039         <exampleNumber>2771234</exampleNumber>
19040       </fixedLine>
19041       <mobile>
19042         <nationalNumberPattern>
19043           (?:
19044             6[234689]0|
19045             77[45789]
19046           )\d{4}
19047         </nationalNumberPattern>
19048         <exampleNumber>6201234</exampleNumber>
19049       </mobile>
19050     </territory>
19051
19052     <!-- Paraguay -->
19053     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0"
19054                mobileNumberPortableRegion="true">
19055       <references>
19056         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay</sourceUrl>
19057         <sourceUrl>http://www.itu.int/oth/T02020000A5/en</sourceUrl>
19058         <sourceUrl>http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html</sourceUrl>
19059       </references>
19060       <availableFormats>
19061         <!-- CONATEL plan. -->
19062         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
19063           <leadingDigits>
19064             (?:
19065               [26]1|
19066               3[289]|
19067               4[124678]|
19068               7[123]|
19069               8[1236]
19070             )
19071           </leadingDigits>
19072           <format>$1 $2</format>
19073         </numberFormat>
19074         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
19075           <leadingDigits>[2-9]0</leadingDigits>
19076           <format>$1 $2</format>
19077         </numberFormat>
19078         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
19079           <leadingDigits>9[1-9]</leadingDigits>
19080           <format>$1 $2</format>
19081         </numberFormat>
19082         <!-- Format seen in examples found online. -->
19083         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19084           <leadingDigits>8700</leadingDigits>
19085           <format>$1 $2 $3</format>
19086         </numberFormat>
19087         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
19088              -->
19089         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
19090           <leadingDigits>[2-8][1-9]</leadingDigits>
19091           <format>$1 $2</format>
19092         </numberFormat>
19093       </availableFormats>
19094       <generalDesc>
19095         <nationalNumberPattern>
19096           5[0-5]\d{4,7}|
19097           [2-46-9]\d{5,8}
19098         </nationalNumberPattern>
19099         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
19100       </generalDesc>
19101       <fixedLine>
19102         <nationalNumberPattern>
19103           (?:
19104             [26]1|
19105             3[289]|
19106             4[124678]|
19107             7[123]|
19108             8[1236]
19109           )\d{5,7}|
19110           (?:
19111             2(?:
19112               2[4568]|
19113               7[15]|
19114               9[1-5]
19115             )|
19116             3(?:
19117               18|
19118               3[167]|
19119               4[2357]|
19120               51
19121             )|
19122             4(?:
19123               18|
19124               2[45]|
19125               3[12]|
19126               5[13]|
19127               64|
19128               71|
19129               9[1-47]
19130             )|
19131             5(?:
19132               [1-4]\d|
19133               5[0234]
19134             )|
19135             6(?:
19136               3[1-3]|
19137               44|
19138               7[1-4678]
19139             )|
19140             7(?:
19141               17|
19142               4[0-4]|
19143               6[1-578]|
19144               75|
19145               8[0-8]
19146             )|
19147             858
19148           )\d{5,6}
19149         </nationalNumberPattern>
19150         <exampleNumber>212345678</exampleNumber>
19151       </fixedLine>
19152       <mobile>
19153         <!-- 962 was added for Tigo. -->
19154         <nationalNumberPattern>
19155           9(?:
19156             6[12]|
19157             [78][1-6]|
19158             9[1-5]
19159           )\d{6}
19160         </nationalNumberPattern>
19161         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19162         <exampleNumber>961456789</exampleNumber>
19163       </mobile>
19164       <voip>
19165         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
19166         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19167         <exampleNumber>870012345</exampleNumber>
19168       </voip>
19169       <uan>
19170         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
19171         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19172         <exampleNumber>201234567</exampleNumber>
19173       </uan>
19174     </territory>
19175
19176     <!-- Qatar -->
19177     <territory id="QA" countryCode="974" internationalPrefix="00" mobileNumberPortableRegion="true">
19178       <references>
19179         <sourceUrl>http://www.itu.int/oth/T02020000AB/en</sourceUrl>
19180         <sourceUrl>http://wtng.info/wtng-qq.html</sourceUrl>
19181       </references>
19182       <availableFormats>
19183         <numberFormat pattern="([28]\d{2})(\d{4})">
19184           <leadingDigits>[28]</leadingDigits>
19185           <format>$1 $2</format>
19186         </numberFormat>
19187         <numberFormat pattern="([3-7]\d{3})(\d{4})">
19188           <leadingDigits>[3-7]</leadingDigits>
19189           <format>$1 $2</format>
19190         </numberFormat>
19191       </availableFormats>
19192       <generalDesc>
19193         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
19194         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19195       </generalDesc>
19196       <fixedLine>
19197         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
19198         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
19199         <exampleNumber>44123456</exampleNumber>
19200       </fixedLine>
19201       <mobile>
19202         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
19203         <exampleNumber>33123456</exampleNumber>
19204       </mobile>
19205       <pager>
19206         <nationalNumberPattern>
19207           2(?:
19208             [12]\d|
19209             61
19210           )\d{4}
19211         </nationalNumberPattern>
19212         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19213         <exampleNumber>2123456</exampleNumber>
19214       </pager>
19215       <tollFree>
19216         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
19217         <exampleNumber>8001234</exampleNumber>
19218       </tollFree>
19219       <!-- No premiumRate information can be found. -->
19220     </territory>
19221
19222     <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
19223     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
19224          used by both of them. -->
19225     <territory id="RE" countryCode="262" internationalPrefix="00"
19226                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19227                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
19228       <references>
19229         <sourceUrl>http://www.itu.int/oth/T020200004B/en</sourceUrl>
19230       </references>
19231       <availableFormats>
19232         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
19233           <format>$1 $2 $3 $4</format>
19234         </numberFormat>
19235       </availableFormats>
19236       <generalDesc>
19237         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
19238         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19239       </generalDesc>
19240       <fixedLine>
19241         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
19242         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
19243         <exampleNumber>262161234</exampleNumber>
19244       </fixedLine>
19245       <mobile>
19246         <nationalNumberPattern>
19247           6(?:
19248             9[23]|
19249             47
19250           )\d{6}
19251         </nationalNumberPattern>
19252         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19253         <exampleNumber>692123456</exampleNumber>
19254       </mobile>
19255       <!-- 08* Numbers in Réunion are the same as those valid in France. -->
19256       <tollFree>
19257         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
19258         <exampleNumber>801234567</exampleNumber>
19259       </tollFree>
19260       <premiumRate>
19261         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
19262         <exampleNumber>891123456</exampleNumber>
19263       </premiumRate>
19264       <sharedCost>
19265         <nationalNumberPattern>
19266           8(?:
19267             1[019]|
19268             2[0156]|
19269             84|
19270             90
19271           )\d{6}
19272         </nationalNumberPattern>
19273         <exampleNumber>810123456</exampleNumber>
19274       </sharedCost>
19275     </territory>
19276
19277     <!-- Romania -->
19278     <!-- Extension prefix found online, confirmed by a Romanian. -->
19279     <territory id="RO" countryCode="40" internationalPrefix="00"
19280                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19281                preferredExtnPrefix=" int " mobileNumberPortableRegion="true">
19282       <references>
19283         <sourceUrl>http://www.itu.int/oth/T02020000AC/en</sourceUrl>
19284         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania</sourceUrl>
19285       </references>
19286       <availableFormats>
19287         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
19288           <leadingDigits>[23]1</leadingDigits>
19289           <format>$1 $2 $3</format>
19290         </numberFormat>
19291         <numberFormat pattern="(21)(\d{4})">
19292           <leadingDigits>21</leadingDigits>
19293           <format>$1 $2</format>
19294         </numberFormat>
19295         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19296           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
19297                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
19298                majority of numbers found online follow this convention. -->
19299           <leadingDigits>
19300             [23][3-7]|
19301             [7-9]
19302           </leadingDigits>
19303           <format>$1 $2 $3</format>
19304         </numberFormat>
19305         <numberFormat pattern="(2\d{2})(\d{3})">
19306           <leadingDigits>2[3-6]</leadingDigits>
19307           <format>$1 $2</format>
19308         </numberFormat>
19309       </availableFormats>
19310       <generalDesc>
19311         <nationalNumberPattern>
19312           2\d{5,8}|
19313           [37-9]\d{8}
19314         </nationalNumberPattern>
19315         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
19316              to wikipedia and people must dial the full number. However, there are still short
19317              numbers that total 6 digits long, so the possible number pattern should take these into
19318              account. -->
19319         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19320       </generalDesc>
19321       <fixedLine>
19322         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
19323              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
19324              this based on numbers found online and the wikipedia article which indicate that these
19325              are four digits long in Bucharest only, and three digits elsewhere. -->
19326         <nationalNumberPattern>
19327           2(?:
19328             1(?:
19329               \d{7}|
19330               9\d{3}
19331             )|
19332             [3-6](?:
19333               \d{7}|
19334               \d9\d{2}
19335             )
19336           )|
19337           3[13-6]\d{7}
19338           </nationalNumberPattern>
19339         <exampleNumber>211234567</exampleNumber>
19340       </fixedLine>
19341       <mobile>
19342         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
19343              numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
19344              open-source report and confirmation by existence of such numbers online. -->
19345         <nationalNumberPattern>
19346           7(?:
19347             000|
19348             [1-8]\d{2}|
19349             99\d
19350           )\d{5}
19351         </nationalNumberPattern>
19352         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19353         <exampleNumber>712345678</exampleNumber>
19354       </mobile>
19355       <tollFree>
19356         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19357         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19358         <exampleNumber>800123456</exampleNumber>
19359       </tollFree>
19360       <premiumRate>
19361         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
19362         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19363         <exampleNumber>900123456</exampleNumber>
19364       </premiumRate>
19365       <sharedCost>
19366         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19367         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19368         <exampleNumber>801123456</exampleNumber>
19369       </sharedCost>
19370       <personalNumber>
19371         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
19372         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19373         <exampleNumber>802123456</exampleNumber>
19374       </personalNumber>
19375       <uan>
19376         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
19377              location-independent national numbers. Only numbers beginning with 37 have been seen so
19378              these are the only ones supported for now. -->
19379         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
19380         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19381         <exampleNumber>372123456</exampleNumber>
19382       </uan>
19383     </territory>
19384
19385     <!-- Serbia -->
19386     <territory id="RS" countryCode="381" internationalPrefix="00"
19387                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19388                mobileNumberPortableRegion="true">
19389       <references>
19390         <sourceUrl>http://www.itu.int/oth/T02020000B9/en</sourceUrl>
19391         <sourceUrl>http://registar.ratel.rs/en/reg202</sourceUrl>
19392       </references>
19393       <availableFormats>
19394         <numberFormat pattern="([23]\d{2})(\d{4,9})">
19395           <leadingDigits>
19396             (?:
19397               2[389]|
19398               39
19399             )0
19400           </leadingDigits>
19401           <format>$1 $2</format>
19402         </numberFormat>
19403         <numberFormat pattern="([1-3]\d)(\d{5,10})">
19404           <leadingDigits>
19405             1|
19406             2(?:
19407               [0-24-7]|
19408               [389][1-9]
19409             )|
19410             3(?:
19411               [0-8]|
19412               9[1-9]
19413             )
19414           </leadingDigits>
19415           <format>$1 $2</format>
19416         </numberFormat>
19417         <numberFormat pattern="(6\d)(\d{6,8})">
19418           <leadingDigits>6</leadingDigits>
19419           <format>$1 $2</format>
19420         </numberFormat>
19421         <numberFormat pattern="([89]\d{2})(\d{3,9})">
19422           <leadingDigits>[89]</leadingDigits>
19423           <format>$1 $2</format>
19424         </numberFormat>
19425         <numberFormat pattern="(7[26])(\d{4,9})">
19426           <leadingDigits>7[26]</leadingDigits>
19427           <format>$1 $2</format>
19428         </numberFormat>
19429         <numberFormat pattern="(7[08]\d)(\d{4,9})">
19430           <leadingDigits>7[08]</leadingDigits>
19431           <format>$1 $2</format>
19432         </numberFormat>
19433       </availableFormats>
19434       <generalDesc>
19435         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
19436              by 2-9) and the country calling code (381). -->
19437         <nationalNumberPattern>
19438           [126-9]\d{4,11}|
19439           3(?:
19440             [0-79]\d{3,10}|
19441             8[2-9]\d{2,9}
19442           )
19443         </nationalNumberPattern>
19444         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19445       </generalDesc>
19446       <fixedLine>
19447         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
19448              has been issused, so we allow 11 1X here. -->
19449         <nationalNumberPattern>
19450           (?:
19451             1(?:
19452               [02-9][2-9]|
19453               1[1-9]
19454             )\d|
19455             2(?:
19456               [0-24-7][2-9]\d|
19457               [389](?:
19458                 0[2-9]|
19459                 [2-9]\d
19460               )
19461             )|
19462             3(?:
19463               [0-8][2-9]\d|
19464               9(?:
19465                 [2-9]\d|
19466                 0[2-9]
19467               )
19468             )
19469           )\d{3,8}
19470         </nationalNumberPattern>
19471         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19472         <exampleNumber>10234567</exampleNumber>
19473       </fixedLine>
19474       <mobile>
19475         <nationalNumberPattern>
19476           6(?:
19477             [0-689]|
19478             7\d
19479           )\d{6,7}
19480         </nationalNumberPattern>
19481         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
19482         <exampleNumber>601234567</exampleNumber>
19483       </mobile>
19484       <tollFree>
19485         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
19486         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19487         <exampleNumber>80012345</exampleNumber>
19488       </tollFree>
19489       <premiumRate>
19490         <nationalNumberPattern>
19491           (?:
19492             90[0169]|
19493             78\d
19494           )\d{3,7}
19495         </nationalNumberPattern>
19496         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19497         <exampleNumber>90012345</exampleNumber>
19498       </premiumRate>
19499       <uan>
19500         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
19501         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19502         <exampleNumber>700123456</exampleNumber>
19503       </uan>
19504     </territory>
19505
19506     <!-- Russian Federation -->
19507     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
19508                internationalPrefix="810" nationalPrefix="8"
19509                nationalPrefixFormattingRule="$NP ($FG)"
19510                nationalPrefixOptionalWhenFormatting="true" >
19511       <references>
19512         <sourceUrl>http://www.itu.int/oth/T02020000AD/en</sourceUrl>
19513         <sourceUrl>http://en.wikipedia.org/wiki/%2B7</sourceUrl>
19514       </references>
19515       <availableFormats>
19516         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
19517              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
19518              Kazakhstan as well. -->
19519         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
19520           <!-- Local numbers only - these do not start with the national prefix. -->
19521           <leadingDigits>[1-79]</leadingDigits>
19522           <format>$1-$2-$3</format>
19523           <intlFormat>NA</intlFormat>
19524         </numberFormat>
19525         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
19526           <leadingDigits>[34689]</leadingDigits>
19527           <format>$1 $2-$3-$4</format>
19528         </numberFormat>
19529         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
19530           <leadingDigits>7</leadingDigits>
19531           <format>$1 $2 $3</format>
19532         </numberFormat>
19533       </availableFormats>
19534       <generalDesc>
19535         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
19536         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19537       </generalDesc>
19538       <fixedLine>
19539         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
19540              in the yellow pages, and on their own website and is listed on wikipedia. This applies
19541              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
19542         <nationalNumberPattern>
19543           (?:
19544             3(?:
19545               0[12]|
19546               4[1-35-79]|
19547               5[1-3]|
19548               8[1-58]|
19549               9[0145]
19550             )|
19551             4(?:
19552               01|
19553               1[1356]|
19554               2[13467]|
19555               7[1-5]|
19556               8[1-7]|
19557               9[1-689]
19558             )|
19559             8(?:
19560               1[1-8]|
19561               2[01]|
19562               3[13-6]|
19563               4[0-8]|
19564               5[15]|
19565               6[1-35-7]|
19566               7[1-37-9]
19567             )
19568           )\d{7}
19569         </nationalNumberPattern>
19570         <exampleNumber>3011234567</exampleNumber>
19571       </fixedLine>
19572       <mobile>
19573         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
19574         <exampleNumber>9123456789</exampleNumber>
19575       </mobile>
19576       <tollFree>
19577         <!-- The metadata states that 804 numbers are UAN numbers, but
19578              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
19579              numbers. -->
19580         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
19581         <exampleNumber>8001234567</exampleNumber>
19582       </tollFree>
19583       <premiumRate>
19584         <!-- Covers tele-voting numbers as well. -->
19585         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
19586         <exampleNumber>8091234567</exampleNumber>
19587       </premiumRate>
19588     </territory>
19589
19590     <!-- Rwanda -->
19591     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
19592          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
19593          as http://www.tigo.co.rw "Choose Your Number" service. -->
19594     <territory id="RW" countryCode="250" internationalPrefix="00"
19595                nationalPrefix="0" leadingZeroPossible="true">
19596       <references>
19597         <sourceUrl>http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf</sourceUrl>
19598         <sourceUrl>http://en.wikipedia.org/wiki/+250</sourceUrl>
19599       </references>
19600       <availableFormats>
19601         <numberFormat nationalPrefixFormattingRule="$FG"
19602           pattern="(2\d{2})(\d{3})(\d{3})">
19603           <leadingDigits>2</leadingDigits>
19604           <format>$1 $2 $3</format>
19605         </numberFormat>
19606         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
19607           <leadingDigits>[7-9]</leadingDigits>
19608           <format>$1 $2 $3</format>
19609         </numberFormat>
19610         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
19611           <leadingDigits>0</leadingDigits>
19612           <format>$1 $2 $3 $4</format>
19613         </numberFormat>
19614       </availableFormats>
19615       <generalDesc>
19616         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
19617         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
19618       </generalDesc>
19619       <fixedLine>
19620         <!-- We support satellite numbers here, since they are in the plan, although no recent
19621              online examples can be found. We also support fixed-line ranges that have been reserved
19622              and paid for, even where no online numbers can be found. -->
19623         <nationalNumberPattern>
19624           2[258]\d{7}|
19625           06\d{6}
19626         </nationalNumberPattern>
19627         <exampleNumber>250123456</exampleNumber>
19628       </fixedLine>
19629       <mobile>
19630         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
19631              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
19632              license revoked. -->
19633         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
19634         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19635         <exampleNumber>720123456</exampleNumber>
19636       </mobile>
19637       <tollFree>
19638         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19639         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19640         <exampleNumber>800123456</exampleNumber>
19641       </tollFree>
19642       <premiumRate>
19643         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
19644         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19645         <exampleNumber>900123456</exampleNumber>
19646       </premiumRate>
19647     </territory>
19648
19649     <!-- Saudi Arabia -->
19650     <territory id="SA" countryCode="966" internationalPrefix="00"
19651                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19652                mobileNumberPortableRegion="true">
19653       <references>
19654         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia</sourceUrl>
19655         <sourceUrl>http://www.itu.int/oth/T02020000B7/en</sourceUrl>
19656       </references>
19657       <availableFormats>
19658         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
19659           <leadingDigits>[1-467]</leadingDigits>
19660           <format>$1 $2 $3</format>
19661         </numberFormat>
19662         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
19663           <leadingDigits>1[1-467]</leadingDigits>
19664           <format>$1 $2 $3</format>
19665         </numberFormat>
19666         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
19667           <leadingDigits>5</leadingDigits>
19668           <format>$1 $2 $3</format>
19669         </numberFormat>
19670         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
19671              the fact that no numbers of this form found online have a trunk prefix added. -->
19672         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
19673           <leadingDigits>92</leadingDigits>
19674           <format>$1 $2</format>
19675         </numberFormat>
19676         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
19677           <leadingDigits>80</leadingDigits>
19678           <format>$1 $2 $3</format>
19679         </numberFormat>
19680         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
19681           <leadingDigits>81</leadingDigits>
19682           <format>$1 $2 $3</format>
19683         </numberFormat>
19684       </availableFormats>
19685       <generalDesc>
19686         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
19687              fixed-line numbers. -->
19688         <nationalNumberPattern>
19689           1\d{7,8}|
19690           (?:
19691             [2-467]|
19692             92
19693           )\d{7}|
19694           5\d{8}|
19695           8\d{9}
19696         </nationalNumberPattern>
19697         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
19698       </generalDesc>
19699       <fixedLine>
19700         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
19701              happened in May for area code 1 (parallel running ended July 13th, 2013) and then in
19702              August for the other fixed-line numbers (parallel running ends October 18th, 2013). -->
19703         <nationalNumberPattern>
19704           11\d{7}|
19705           1?(?:
19706             2[24-8]|
19707             3[35-8]|
19708             4[3-68]|
19709             6[2-5]|
19710             7[235-7]
19711           )\d{6}
19712         </nationalNumberPattern>
19713         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
19714         <exampleNumber>112345678</exampleNumber>
19715       </fixedLine>
19716       <mobile>
19717         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
19718              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
19719              until we find evidence that this is an error, leaving them at 10 for now. -->
19720         <nationalNumberPattern>
19721           (?:
19722             5(?:
19723               [013-689]\d|
19724               7[0-26-8]
19725             )|
19726             811\d
19727           )\d{6}
19728         </nationalNumberPattern>
19729         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
19730         <exampleNumber>512345678</exampleNumber>
19731       </mobile>
19732       <tollFree>
19733         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
19734         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19735         <exampleNumber>8001234567</exampleNumber>
19736       </tollFree>
19737       <sharedCost>
19738         <!-- Including shared revenue with shared cost here. -->
19739         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
19740         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19741         <exampleNumber>920012345</exampleNumber>
19742       </sharedCost>
19743     </territory>
19744
19745     <!-- Solomon Islands -->
19746     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
19747       <references>
19748         <sourceUrl>http://www.itu.int/oth/T02020000BF/en</sourceUrl>
19749       </references>
19750       <!-- A single group is used to format 5-digit numbers. This formatting pattern follows
19751            the guidelines in the ITU document. -->
19752       <availableFormats>
19753         <numberFormat pattern="(\d{2})(\d{5})">
19754           <leadingDigits>[7-9]</leadingDigits>
19755           <format>$1 $2</format>
19756         </numberFormat>
19757       </availableFormats>
19758       <generalDesc>
19759         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
19760         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
19761       </generalDesc>
19762       <fixedLine>
19763         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
19764              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
19765         <nationalNumberPattern>
19766           (?:
19767             1[4-79]|
19768             [23]\d|
19769             4[01]|
19770             5[03]|
19771             6[0-37]
19772           )\d{3}
19773         </nationalNumberPattern>
19774         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19775         <exampleNumber>40123</exampleNumber>
19776       </fixedLine>
19777       <mobile>
19778         <nationalNumberPattern>
19779           48\d{3}|
19780           7(?:
19781             [0146-8]\d|
19782             5[025-9]|
19783             9[0124]
19784           )\d{4}|
19785           8[4-8]\d{5}|
19786           9(?:
19787             [46]\d|
19788             5[0-46-9]|
19789             7[0-689]|
19790             8[0-79]|
19791             9[0-8]
19792           )\d{4}
19793         </nationalNumberPattern>
19794         <exampleNumber>7421234</exampleNumber>
19795       </mobile>
19796       <tollFree>
19797         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
19798         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19799         <exampleNumber>18123</exampleNumber>
19800       </tollFree>
19801       <voip>
19802         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
19803         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19804         <exampleNumber>51123</exampleNumber>
19805       </voip>
19806     </territory>
19807
19808     <!-- Seychelles -->
19809     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
19810                preferredInternationalPrefix="00">
19811       <references>
19812         <sourceUrl>http://www.itu.int/oth/T02020000BA/en</sourceUrl>
19813         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles</sourceUrl>
19814       </references>
19815       <availableFormats>
19816         <numberFormat pattern="(\d{3})(\d{3})">
19817           <leadingDigits>[89]</leadingDigits>
19818           <format>$1 $2</format>
19819         </numberFormat>
19820         <numberFormat pattern="(\d)(\d{3})(\d{3})">
19821           <leadingDigits>[246]</leadingDigits>
19822           <format>$1 $2 $3</format>
19823         </numberFormat>
19824       </availableFormats>
19825       <generalDesc>
19826         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
19827         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
19828       </generalDesc>
19829       <fixedLine>
19830         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
19831              they are more expensive to call than other Fixed Line services. ISDN and DID services
19832              are here too, since they seem to be also fixed-line phone numbers. -->
19833         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
19834         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19835         <exampleNumber>4217123</exampleNumber>
19836       </fixedLine>
19837       <mobile>
19838         <!-- Includes Fixed Cellular. -->
19839         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
19840         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19841         <exampleNumber>2510123</exampleNumber>
19842       </mobile>
19843       <tollFree>
19844         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
19845         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19846         <exampleNumber>800000</exampleNumber>
19847       </tollFree>
19848       <premiumRate>
19849         <!-- Using this to represent Value Added Service in the plan. -->
19850         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
19851         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19852         <exampleNumber>981234</exampleNumber>
19853       </premiumRate>
19854       <voip>
19855         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
19856         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19857         <exampleNumber>6412345</exampleNumber>
19858       </voip>
19859     </territory>
19860
19861     <!-- Sudan -->
19862     <territory id="SD" countryCode="249" internationalPrefix="00"
19863                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19864       <references>
19865         <sourceUrl>http://www.itu.int/oth/T02020000C4/en</sourceUrl>
19866       </references>
19867       <availableFormats>
19868         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19869           <format>$1 $2 $3</format>
19870         </numberFormat>
19871       </availableFormats>
19872       <generalDesc>
19873         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
19874         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19875       </generalDesc>
19876       <fixedLine>
19877         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
19878              found online. -->
19879         <nationalNumberPattern>
19880           1(?:
19881             [125]\d|
19882             8[3567]
19883           )\d{6}
19884         </nationalNumberPattern>
19885         <exampleNumber>121231234</exampleNumber>
19886       </fixedLine>
19887       <mobile>
19888         <!-- Adding 90X as online numbers have been found with this prefix. -->
19889         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
19890         <exampleNumber>911231234</exampleNumber>
19891       </mobile>
19892     </territory>
19893
19894     <!-- Sweden -->
19895     <territory id="SE" countryCode="46" internationalPrefix="00"
19896                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19897                mobileNumberPortableRegion="true">
19898       <references>
19899         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf</sourceUrl>
19900         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Nrplansammanst%C3%A4llning-2013-07-05.pdf</sourceUrl>
19901       </references>
19902       <availableFormats>
19903       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
19904            http://gulasidorna.eniro.se -->
19905         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
19906           <leadingDigits>8</leadingDigits>
19907           <format>$1-$2 $3 $4</format>
19908           <intlFormat>$1 $2 $3 $4</intlFormat>
19909         </numberFormat>
19910         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
19911           <leadingDigits>
19912             1[013689]|
19913             2[0136]|
19914             3[1356]|
19915             4[0246]|
19916             54|
19917             6[03]|
19918             90
19919           </leadingDigits>
19920           <format>$1-$2 $3 $4</format>
19921           <intlFormat>$1 $2 $3 $4</intlFormat>
19922         </numberFormat>
19923         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
19924           <leadingDigits>
19925             1[13689]|
19926             2[136]|
19927             3[1356]|
19928             4[0246]|
19929             54|
19930             6[03]|
19931             90
19932           </leadingDigits>
19933           <format>$1-$2 $3</format>
19934           <intlFormat>$1 $2 $3</intlFormat>
19935         </numberFormat>
19936         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
19937           <leadingDigits>
19938             1[2457]|
19939             2[2457-9]|
19940             3[0247-9]|
19941             4[1357-9]|
19942             5[0-35-9]|
19943             6[124-9]|
19944             9(?:
19945               [125-8]|
19946               3[0-5]|
19947               4[0-3]
19948             )
19949           </leadingDigits>
19950           <format>$1-$2 $3 $4</format>
19951           <intlFormat>$1 $2 $3 $4</intlFormat>
19952         </numberFormat>
19953         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
19954           <leadingDigits>
19955             1[2457]|
19956             2[2457-9]|
19957             3[0247-9]|
19958             4[1357-9]|
19959             5[0-35-9]|
19960             6[124-9]|
19961             9(?:
19962               [125-8]|
19963               3[0-5]|
19964               4[0-3]
19965             )
19966           </leadingDigits>
19967           <format>$1-$2 $3</format>
19968           <intlFormat>$1 $2 $3</intlFormat>
19969         </numberFormat>
19970         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
19971           <leadingDigits>7</leadingDigits>
19972           <format>$1-$2 $3 $4</format>
19973           <intlFormat>$1 $2 $3 $4</intlFormat>
19974         </numberFormat>
19975         <numberFormat pattern="(77)(\d{2})(\d{2})">
19976           <leadingDigits>7</leadingDigits>
19977           <format>$1-$2$3</format>
19978           <intlFormat>$1 $2 $3</intlFormat>
19979         </numberFormat>
19980         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
19981           <leadingDigits>20</leadingDigits>
19982           <format>$1-$2 $3</format>
19983           <intlFormat>$1 $2 $3</intlFormat>
19984         </numberFormat>
19985         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
19986           <leadingDigits>9[034]</leadingDigits>
19987           <format>$1-$2 $3 $4</format>
19988           <intlFormat>$1 $2 $3 $4</intlFormat>
19989         </numberFormat>
19990         <numberFormat pattern="(9[034]\d)(\d{4})">
19991           <leadingDigits>9[034]</leadingDigits>
19992           <format>$1-$2</format>
19993           <intlFormat>$1 $2</intlFormat>
19994         </numberFormat>
19995       </availableFormats>
19996       <generalDesc>
19997         <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
19998         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
19999       </generalDesc>
20000       <fixedLine>
20001         <nationalNumberPattern>
20002           1(?:
20003             0[1-8]\d{6}|
20004             [136]\d{5,7}|
20005             (?:
20006               2[0-35]|
20007               4[0-4]|
20008               5[0-25-9]|
20009               7[13-6]|
20010               [89]\d
20011             )\d{5,6}
20012           )|
20013           2(?:
20014             [136]\d{5,7}|
20015             (?:
20016               2[0-7]|
20017               4[0136-8]|
20018               5[0138]|
20019               7[018]|
20020               8[01]|
20021               9[0-57]
20022             )\d{5,6}
20023           )|
20024           3(?:
20025             [356]\d{5,7}|
20026             (?:
20027               0[0-4]|
20028               1\d|
20029               2[0-25]|
20030               4[056]|
20031               7[0-2]|
20032               8[0-3]|
20033               9[023]
20034             )\d{5,6}
20035           )|
20036           4(?:
20037             0[1-9]\d{4,6}|
20038             [246]\d{5,7}|
20039             (?:
20040               1[013-8]|
20041               3[0135]|
20042               5[14-79]|
20043               7[0-246-9]|
20044               8[0156]|
20045               9[0-689]
20046             )\d{5,6}
20047           )|
20048           5(?:
20049             0[0-6]|
20050             [15][0-5]|
20051             2[0-68]|
20052             3[0-4]|
20053             4\d|
20054             6[03-5]|
20055             7[013]|
20056             8[0-79]|
20057             9[01]
20058           )\d{5,6}|
20059           6(?:
20060             0[1-9]\d{4,6}|
20061             3\d{5,7}|
20062             (?:
20063               1[1-3]|
20064               2[0-4]|
20065               4[02-57]|
20066               5[0-37]|
20067               6[0-3]|
20068               7[0-2]|
20069               8[0247]|
20070               9[0-356]
20071             )\d{5,6}
20072           )|
20073           8[1-9]\d{5,7}|
20074           9(?:
20075             0[1-9]\d{4,6}|
20076             (?:
20077               1[0-68]|
20078               2\d|
20079               3[02-5]|
20080               4[0-3]|
20081               5[0-4]|
20082               [68][01]|
20083               7[0135-8]
20084             )\d{5,6}
20085           )
20086         </nationalNumberPattern>
20087         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20088         <exampleNumber>8123456</exampleNumber>
20089       </fixedLine>
20090       <mobile>
20091         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
20092         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20093         <exampleNumber>701234567</exampleNumber>
20094       </mobile>
20095       <pager>
20096         <nationalNumberPattern>74[02-9]\d{6}</nationalNumberPattern>
20097         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20098         <exampleNumber>740123456</exampleNumber>
20099       </pager>
20100       <tollFree>
20101         <nationalNumberPattern>
20102           20(?:
20103             0(?:
20104               0\d{2}|
20105               [1-9](?:
20106                 0\d{1,4}|
20107                 [1-9]\d{4}
20108               )
20109             )|
20110             1(?:
20111               0\d{4}|
20112               [1-9]\d{4,5}
20113             )|
20114             [2-9]\d{5}
20115           )
20116         </nationalNumberPattern>
20117         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20118         <exampleNumber>20123456</exampleNumber>
20119       </tollFree>
20120       <premiumRate>
20121         <nationalNumberPattern>
20122           9(?:
20123             00|
20124             39|
20125             44
20126           )(?:
20127             1(?:
20128               [0-26]\d{5}|
20129               [3-57-9]\d{2}
20130             )|
20131             2(?:
20132               [0-2]\d{5}|
20133               [3-9]\d{2}
20134             )|
20135             3(?:
20136               [0139]\d{5}|
20137               [24-8]\d{2}
20138             )|
20139             4(?:
20140               [045]\d{5}|
20141               [1-36-9]\d{2}
20142             )|
20143             5(?:
20144               5\d{5}|
20145               [0-46-9]\d{2}
20146             )|
20147             6(?:
20148               [679]\d{5}|
20149               [0-58]\d{2}
20150             )|
20151             7(?:
20152               [078]\d{5}|
20153               [1-69]\d{2}
20154             )|
20155             8(?:
20156               [578]\d{5}|
20157               [0-469]\d{2}
20158             )
20159           )
20160         </nationalNumberPattern>
20161         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
20162         <exampleNumber>9001234567</exampleNumber>
20163       </premiumRate>
20164       <sharedCost>
20165         <nationalNumberPattern>
20166           77(?:
20167             0(?:
20168               0\d{2}|
20169               [1-9](?:
20170                 0\d|
20171                 [1-9]\d{4}
20172               )
20173             )|
20174             [1-6][1-9]\d{5}
20175           )
20176         </nationalNumberPattern>
20177         <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
20178         <exampleNumber>771234567</exampleNumber>
20179       </sharedCost>
20180       <personalNumber>
20181         <nationalNumberPattern>75[1-8]\d{6}</nationalNumberPattern>
20182         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20183         <exampleNumber>751234567</exampleNumber>
20184       </personalNumber>
20185     </territory>
20186
20187     <!-- Singapore -->
20188     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d"
20189                mobileNumberPortableRegion="true">
20190       <references>
20191         <sourceUrl>http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx</sourceUrl>
20192       </references>
20193       <availableFormats>
20194         <numberFormat pattern="([3689]\d{3})(\d{4})">
20195           <leadingDigits>
20196             [369]|
20197             8[1-9]
20198           </leadingDigits>
20199           <format>$1 $2</format>
20200         </numberFormat>
20201         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
20202           <leadingDigits>1[89]</leadingDigits>
20203           <format>$1 $2 $3</format>
20204         </numberFormat>
20205         <numberFormat pattern="(7000)(\d{4})(\d{3})">
20206           <leadingDigits>70</leadingDigits>
20207           <format>$1 $2 $3</format>
20208         </numberFormat>
20209         <numberFormat pattern="(800)(\d{3})(\d{4})">
20210           <leadingDigits>80</leadingDigits>
20211           <format>$1 $2 $3</format>
20212         </numberFormat>
20213       </availableFormats>
20214       <generalDesc>
20215         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
20216              easily strip off leading "65" country codes. -->
20217         <nationalNumberPattern>
20218           [36]\d{7}|
20219           [17-9]\d{7,10}
20220         </nationalNumberPattern>
20221         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
20222       </generalDesc>
20223       <fixedLine>
20224         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
20225         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20226         <exampleNumber>61234567</exampleNumber>
20227       </fixedLine>
20228       <mobile>
20229         <nationalNumberPattern>
20230           (?:
20231             8[1-7]|
20232             9[0-8]
20233           )\d{6}
20234         </nationalNumberPattern>
20235         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20236         <exampleNumber>81234567</exampleNumber>
20237       </mobile>
20238       <tollFree>
20239         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
20240         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
20241         <exampleNumber>18001234567</exampleNumber>
20242       </tollFree>
20243       <premiumRate>
20244         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
20245         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20246         <exampleNumber>19001234567</exampleNumber>
20247       </premiumRate>
20248       <voip>
20249         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
20250         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20251         <exampleNumber>31234567</exampleNumber>
20252       </voip>
20253       <uan>
20254         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
20255              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
20256              -->
20257         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
20258         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20259         <exampleNumber>70001234567</exampleNumber>
20260       </uan>
20261     </territory>
20262
20263     <!-- Saint Helena -->
20264     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
20265       <references>
20266         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
20267       </references>
20268       <!-- Numbers are formatted as a block. -->
20269       <generalDesc>
20270         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
20271         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
20272       </generalDesc>
20273       <fixedLine>
20274         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
20275              The new pattern is first, followed by the old (hence the repetition of the leading 2).
20276              -->
20277         <nationalNumberPattern>
20278           2(?:
20279             [0-57-9]\d|
20280             6[4-9]
20281           )\d{2}|
20282           (?:
20283             [2-46]\d|
20284             7[01]
20285           )\d{2}
20286         </nationalNumberPattern>
20287         <!-- Using St Helena Tourism as the example number. -->
20288         <exampleNumber>2158</exampleNumber>
20289       </fixedLine>
20290       <mobile>
20291         <nationalNumberPattern>NA</nationalNumberPattern>
20292         <possibleNumberPattern>NA</possibleNumberPattern>
20293       </mobile>
20294       <premiumRate>
20295         <nationalNumberPattern>
20296           (?:
20297             [59]\d|
20298             7[2-9]
20299           )\d{2}
20300         </nationalNumberPattern>
20301         <exampleNumber>5012</exampleNumber>
20302       </premiumRate>
20303     </territory>
20304
20305     <!-- Slovenia -->
20306     <territory id="SI" countryCode="386" internationalPrefix="00"
20307                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20308                mobileNumberPortableRegion="true">
20309       <references>
20310         <sourceUrl>http://www.itu.int/oth/T02020000BE/en</sourceUrl>
20311       </references>
20312       <availableFormats>
20313         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
20314           pattern="(\d)(\d{3})(\d{2})(\d{2})">
20315           <leadingDigits>
20316             [12]|
20317             3[4-8]|
20318             4[24-8]|
20319             5[2-8]|
20320             7[3-8]
20321           </leadingDigits>
20322           <format>$1 $2 $3 $4</format>
20323           </numberFormat>
20324         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
20325           <leadingDigits>
20326             [37][01]|
20327             4[0139]|
20328             51|
20329             6
20330           </leadingDigits>
20331           <format>$1 $2 $3</format>
20332           </numberFormat>
20333         <numberFormat pattern="([89][09])(\d{3,6})">
20334           <leadingDigits>[89][09]</leadingDigits>
20335           <format>$1 $2</format>
20336         </numberFormat>
20337         <numberFormat pattern="([58]\d{2})(\d{5})">
20338           <leadingDigits>
20339             59|
20340             8[1-3]
20341           </leadingDigits>
20342           <format>$1 $2</format>
20343         </numberFormat>
20344       </availableFormats>
20345       <generalDesc>
20346         <nationalNumberPattern>
20347           [1-7]\d{6,7}|
20348           [89]\d{4,7}
20349         </nationalNumberPattern>
20350         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20351       </generalDesc>
20352       <fixedLine>
20353         <nationalNumberPattern>
20354           (?:
20355             1\d|
20356             [25][2-8]|
20357             3[4-8]|
20358             4[24-8]|
20359             7[3-8]
20360           )\d{6}
20361         </nationalNumberPattern>
20362         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
20363         <exampleNumber>11234567</exampleNumber>
20364       </fixedLine>
20365       <mobile>
20366         <!-- We include 043 and 049 here - it is VoIP in the plan, but is actually used to provide
20367              mobile coverage to Kosovo. Also added 068, which is used by the mobile operator bob.si
20368          -->
20369         <nationalNumberPattern>
20370           (?:
20371             [37][01]|
20372             4[0139]|
20373             51|
20374             6[48]
20375           )\d{6}
20376         </nationalNumberPattern>
20377         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20378         <exampleNumber>31234567</exampleNumber>
20379       </mobile>
20380       <tollFree>
20381         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
20382         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20383         <exampleNumber>80123456</exampleNumber>
20384       </tollFree>
20385       <premiumRate>
20386         <!-- Includes televoting, mass calling -->
20387         <nationalNumberPattern>
20388           90\d{4,6}|
20389           89[1-3]\d{2,5}
20390         </nationalNumberPattern>
20391         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20392         <exampleNumber>90123456</exampleNumber>
20393       </premiumRate>
20394       <voip>
20395         <nationalNumberPattern>
20396           (?:
20397             59|
20398             8[1-3]
20399           )\d{6}
20400         </nationalNumberPattern>
20401         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20402         <exampleNumber>59012345</exampleNumber>
20403       </voip>
20404     </territory>
20405
20406     <!-- Svalbard -->
20407     <!-- Metadata shared with Norway. -->
20408     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
20409       <references>
20410         <sourceUrl>http://www.npt.no/pt_internet/numsys/E.164.pdf</sourceUrl>
20411       </references>
20412       <generalDesc>
20413         <nationalNumberPattern>
20414           0\d{4}|
20415           [4789]\d{7}
20416         </nationalNumberPattern>
20417         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
20418       </generalDesc>
20419       <fixedLine>
20420         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
20421         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20422         <exampleNumber>79123456</exampleNumber>
20423       </fixedLine>
20424       <!-- Copied from Norway metadata. -->
20425       <mobile>
20426         <nationalNumberPattern>
20427           (?:
20428             4[015-8]|
20429             5[89]|
20430             9\d
20431           )\d{6}
20432         </nationalNumberPattern>
20433         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20434         <exampleNumber>41234567</exampleNumber>
20435       </mobile>
20436       <tollFree>
20437         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
20438         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20439         <exampleNumber>80012345</exampleNumber>
20440       </tollFree>
20441       <premiumRate>
20442         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
20443         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20444         <exampleNumber>82012345</exampleNumber>
20445       </premiumRate>
20446       <sharedCost>
20447         <nationalNumberPattern>
20448           810(?:
20449             0[0-6]|
20450             [2-8]\d
20451           )\d{3}
20452         </nationalNumberPattern>
20453         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20454         <exampleNumber>81021234</exampleNumber>
20455       </sharedCost>
20456       <personalNumber>
20457         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
20458         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20459         <exampleNumber>88012345</exampleNumber>
20460       </personalNumber>
20461       <voip>
20462         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
20463         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20464         <exampleNumber>85012345</exampleNumber>
20465       </voip>
20466       <uan>
20467         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
20468         <nationalNumberPattern>
20469           0\d{4}|
20470           81(?:
20471             0(?:
20472               0[7-9]|
20473               1\d
20474             )|
20475             5\d{2}
20476           )\d{3}
20477         </nationalNumberPattern>
20478         <exampleNumber>01234</exampleNumber>
20479       </uan>
20480       <voicemail>
20481         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
20482         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20483         <exampleNumber>81212345</exampleNumber>
20484       </voicemail>
20485     </territory>
20486
20487     <!-- Slovakia -->
20488     <territory id="SK" countryCode="421" internationalPrefix="00"
20489                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20490                mobileNumberPortableRegion="true">
20491       <references>
20492         <sourceUrl>http://www.itu.int/oth/T02020000BD/en</sourceUrl>
20493       </references>
20494       <availableFormats>
20495         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
20496           <leadingDigits>2</leadingDigits>
20497           <format>$1/$2 $3 $4</format>
20498         </numberFormat>
20499         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
20500           <leadingDigits>[3-5]</leadingDigits>
20501           <format>$1/$2 $3 $4</format>
20502         </numberFormat>
20503         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
20504           <leadingDigits>[689]</leadingDigits>
20505           <format>$1 $2 $3</format>
20506         </numberFormat>
20507       </availableFormats>
20508       <generalDesc>
20509         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
20510         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20511       </generalDesc>
20512       <noInternationalDialling>
20513         <nationalNumberPattern>
20514           (?:
20515             8(?:
20516               00|
20517               [5-9]\d
20518             )|
20519             9(?:
20520               00|
20521               [78]\d
20522             )
20523           )\d{6}
20524         </nationalNumberPattern>
20525         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20526         <exampleNumber>800123456</exampleNumber>
20527       </noInternationalDialling>
20528       <fixedLine>
20529         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
20530         <exampleNumber>212345678</exampleNumber>
20531       </fixedLine>
20532       <mobile>
20533         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
20534              deeming it valid for now. -->
20535         <nationalNumberPattern>
20536           9(?:
20537             0[1-8]|
20538             1[0-24-9]|
20539             4[0489]
20540           )\d{6}
20541         </nationalNumberPattern>
20542         <exampleNumber>912123456</exampleNumber>
20543       </mobile>
20544       <tollFree>
20545         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20546         <exampleNumber>800123456</exampleNumber>
20547       </tollFree>
20548       <premiumRate>
20549         <nationalNumberPattern>
20550           9(?:
20551             [78]\d{7}|
20552             00\d{6}
20553           )
20554         </nationalNumberPattern>
20555         <exampleNumber>900123456</exampleNumber>
20556       </premiumRate>
20557       <sharedCost>
20558         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
20559         <exampleNumber>850123456</exampleNumber>
20560       </sharedCost>
20561       <voip>
20562         <nationalNumberPattern>
20563           6(?:
20564             5[0-4]|
20565             9[0-6]
20566           )\d{6}
20567         </nationalNumberPattern>
20568         <exampleNumber>690123456</exampleNumber>
20569       </voip>
20570       <uan>
20571         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
20572         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20573         <exampleNumber>961234567</exampleNumber>
20574       </uan>
20575     </territory>
20576
20577     <!-- Sierra Leone -->
20578     <territory id="SL" countryCode="232" internationalPrefix="00"
20579                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
20580       <references>
20581         <sourceUrl>http://www.itu.int/oth/T02020000BB/en</sourceUrl>
20582       </references>
20583       <availableFormats>
20584         <!-- Following formatting of online yellow pages http://www.leonedirect.com -->
20585         <numberFormat pattern="(\d{2})(\d{6})">
20586           <format>$1 $2</format>
20587         </numberFormat>
20588       </availableFormats>
20589       <generalDesc>
20590         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
20591         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20592       </generalDesc>
20593       <fixedLine>
20594         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
20595         <exampleNumber>22221234</exampleNumber>
20596       </fixedLine>
20597       <mobile>
20598         <nationalNumberPattern>
20599           (?:
20600             2[15]|
20601             3[034]|
20602             4[04]|
20603             5[05]|
20604             7[6-9]|
20605             88
20606           )\d{6}
20607         </nationalNumberPattern>
20608         <exampleNumber>25123456</exampleNumber>
20609       </mobile>
20610     </territory>
20611
20612     <!-- San Marino -->
20613     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
20614          optional when dialling from outside the country; the phone number can be reached both with
20615          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
20616          are used to ensure that if the 0549 is not present, it will be added. -->
20617     <territory id="SM" countryCode="378" internationalPrefix="00"
20618                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
20619                leadingZeroPossible="true">
20620       <references>
20621         <sourceUrl>http://www.itu.int/oth/T02020000B5/en</sourceUrl>
20622         <!-- Information about Italy. -->
20623         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
20624         <sourceUrl>http://en.wikipedia.org/wiki/%2B378</sourceUrl>
20625       </references>
20626       <availableFormats>
20627         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
20628           <leadingDigits>[5-7]</leadingDigits>
20629           <format>$1 $2 $3 $4</format>
20630         </numberFormat>
20631         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
20632         <numberFormat pattern="(0549)(\d{6})">
20633           <leadingDigits>0</leadingDigits>
20634           <format>$1 $2</format>
20635           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
20636                formatting in international format. -->
20637           <intlFormat>($1) $2</intlFormat>
20638         </numberFormat>
20639         <!-- A rule in case the number has been stored without the leading 0549 necessary for
20640              fixed-lines. -->
20641         <numberFormat pattern="(\d{6})">
20642           <leadingDigits>[89]</leadingDigits>
20643           <format>0549 $1</format>
20644           <intlFormat>(0549) $1</intlFormat>
20645         </numberFormat>
20646       </availableFormats>
20647       <generalDesc>
20648         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
20649         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
20650       </generalDesc>
20651       <!-- Example numbers provided by the Telecommunications Services. -->
20652       <fixedLine>
20653         <nationalNumberPattern>
20654           0549(?:
20655             8[0157-9]|
20656             9\d
20657           )\d{4}
20658         </nationalNumberPattern>
20659         <exampleNumber>0549886377</exampleNumber>
20660       </fixedLine>
20661       <mobile>
20662         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
20663         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20664         <exampleNumber>66661212</exampleNumber>
20665       </mobile>
20666       <premiumRate>
20667         <!-- Includes Video Call numbers. -->
20668         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
20669         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20670         <exampleNumber>71123456</exampleNumber>
20671       </premiumRate>
20672       <voip>
20673         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
20674         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20675         <exampleNumber>58001110</exampleNumber>
20676       </voip>
20677     </territory>
20678
20679     <!-- Senegal -->
20680     <territory id="SN" countryCode="221" internationalPrefix="00">
20681       <references>
20682         <sourceUrl>http://www.itu.int/oth/T02020000B8/en</sourceUrl>
20683         <sourceUrl>http://www.artpsenegal.net</sourceUrl>
20684       </references>
20685       <availableFormats>
20686         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
20687              the national numbering plan. -->
20688         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
20689           <leadingDigits>[379]</leadingDigits>
20690           <format>$1 $2 $3 $4</format>
20691         </numberFormat>
20692         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20693           <leadingDigits>8</leadingDigits>
20694           <format>$1 $2 $3 $4</format>
20695         </numberFormat>
20696       </availableFormats>
20697       <generalDesc>
20698         <nationalNumberPattern>[3789]\d{8}</nationalNumberPattern>
20699         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20700       </generalDesc>
20701       <fixedLine>
20702         <nationalNumberPattern>
20703           3(?:
20704             0(?:
20705               1[0-2]|
20706               80
20707             )|
20708             282|
20709             3(?:
20710               8[1-9]|
20711               9[3-9]
20712             )|
20713             611|
20714             90[1-5]
20715           )\d{5}
20716         </nationalNumberPattern>
20717         <exampleNumber>301012345</exampleNumber>
20718       </fixedLine>
20719       <mobile>
20720         <nationalNumberPattern>
20721           7(?:
20722             [067]\d|
20723             21|
20724             8[0-26]|
20725             90
20726           )\d{6}
20727         </nationalNumberPattern>
20728         <exampleNumber>701234567</exampleNumber>
20729       </mobile>
20730       <tollFree>
20731         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20732         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20733         <exampleNumber>800123456</exampleNumber>
20734       </tollFree>
20735       <premiumRate>
20736         <!-- Revenu Partagé in the plan. -->
20737         <nationalNumberPattern>88[4689]\d{6}</nationalNumberPattern>
20738         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20739         <exampleNumber>884123456</exampleNumber>
20740       </premiumRate>
20741       <sharedCost>
20742         <nationalNumberPattern>81[02468]\d{6}</nationalNumberPattern>
20743         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20744         <exampleNumber>810123456</exampleNumber>
20745       </sharedCost>
20746       <voip>
20747         <!-- Also covers satellite telephony ranges. -->
20748         <nationalNumberPattern>
20749           3392\d{5}|
20750           93330\d{4}
20751         </nationalNumberPattern>
20752         <exampleNumber>933301234</exampleNumber>
20753       </voip>
20754     </territory>
20755
20756     <!-- Somalia -->
20757     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
20758          information available, and the numerous telecom carriers were previously working under an
20759          unregulated environment. The extra prefixes were added from the contact phone numbers of
20760          the countries main telecom operators. We also have received information that a national
20761          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
20762          for some operators, so that is included here although we do not use it when formatting. -->
20763     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
20764       <references>
20765         <sourceUrl>http://www.itu.int/oth/T02020000C0/en</sourceUrl>
20766         <sourceUrl>http://en.wikipedia.org/wiki/+252</sourceUrl>
20767       </references>
20768       <availableFormats>
20769         <!-- These follow formats online, such as http://www.hortel.net/contact_us.html -->
20770         <numberFormat pattern="(\d)(\d{6})">
20771           <leadingDigits>
20772             2[0-79]|
20773             [13-5]
20774           </leadingDigits>
20775           <format>$1 $2</format>
20776         </numberFormat>
20777         <numberFormat pattern="(\d)(\d{7})">
20778           <leadingDigits>
20779             24|
20780             [67]
20781           </leadingDigits>
20782           <format>$1 $2</format>
20783         </numberFormat>
20784         <numberFormat pattern="(\d{2})(\d{5,7})">
20785           <leadingDigits>
20786             15|
20787             28|
20788             6[1378]
20789           </leadingDigits>
20790           <format>$1 $2</format>
20791         </numberFormat>
20792         <numberFormat pattern="(69\d)(\d{6})">
20793           <leadingDigits>69</leadingDigits>
20794           <format>$1 $2</format>
20795         </numberFormat>
20796         <numberFormat pattern="(90\d)(\d{3})(\d{3})">
20797           <leadingDigits>90</leadingDigits>
20798           <format>$1 $2 $3</format>
20799         </numberFormat>
20800       </availableFormats>
20801       <generalDesc>
20802         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
20803         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20804       </generalDesc>
20805       <fixedLine>
20806         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
20807              here since that is apparently used for mobile. -->
20808         <nationalNumberPattern>
20809           (?:
20810             1\d|
20811             2[0-79]|
20812             3[0-46-8]|
20813             4[0-7]|
20814             59
20815           )\d{5}
20816         </nationalNumberPattern>
20817         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20818         <exampleNumber>4012345</exampleNumber>
20819       </fixedLine>
20820       <mobile>
20821         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
20822              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
20823              Somtel. 6 followed by only 7 digits is used by Telecom. Note that in June 2014 many
20824              ranges were suspended by the government. 90\d{6} was listed as one of the ranges to be
20825              suspended, but open-source contributors confirm that 907\d{6} is still in use, even if
20826              the shorter 90 ranges are no longer. -->
20827         <nationalNumberPattern>
20828           (?:
20829             15\d|
20830             2(?:
20831               4\d|
20832               8
20833             )|
20834             6[137-9]?\d{2}|
20835             7[1-9]\d|
20836             907\d
20837           )\d{5}
20838         </nationalNumberPattern>
20839         <exampleNumber>71123456</exampleNumber>
20840       </mobile>
20841     </territory>
20842
20843     <!-- Suriname -->
20844     <territory id="SR" countryCode="597" internationalPrefix="00">
20845       <references>
20846         <sourceUrl>http://www.itu.int/oth/T02020000C5/en</sourceUrl>
20847       </references>
20848       <availableFormats>
20849         <!-- Following conventions used in the Suriname Yellow Pages. -->
20850         <numberFormat pattern="(\d{3})(\d{3})">
20851           <leadingDigits>
20852             [2-4]|
20853             5[2-58]
20854           </leadingDigits>
20855           <format>$1-$2</format>
20856         </numberFormat>
20857         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
20858           <leadingDigits>56</leadingDigits>
20859           <format>$1-$2-$3</format>
20860         </numberFormat>
20861         <numberFormat pattern="(\d{3})(\d{4})">
20862           <leadingDigits>
20863             59|
20864             [6-8]
20865           </leadingDigits>
20866           <format>$1-$2</format>
20867         </numberFormat>
20868       </availableFormats>
20869       <generalDesc>
20870         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
20871         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20872       </generalDesc>
20873       <fixedLine>
20874         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
20875         <nationalNumberPattern>
20876           (?:
20877             2[1-3]|
20878             3[0-7]|
20879             4\d|
20880             5[2-58]|
20881             68\d
20882           )\d{4}
20883         </nationalNumberPattern>
20884         <exampleNumber>211234</exampleNumber>
20885       </fixedLine>
20886       <mobile>
20887         <nationalNumberPattern>
20888           (?:
20889             7[124-7]|
20890             8[1-9]
20891           )\d{5}
20892         </nationalNumberPattern>
20893         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20894         <exampleNumber>7412345</exampleNumber>
20895       </mobile>
20896       <voip>
20897         <nationalNumberPattern>
20898           5(?:
20899             6\d{4}|
20900             90[0-4]\d{3}
20901           )
20902         </nationalNumberPattern>
20903         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20904         <exampleNumber>561234</exampleNumber>
20905       </voip>
20906     </territory>
20907
20908     <!-- South Sudan -->
20909     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
20910       <references>
20911         <sourceUrl>http://www.itu.int/oth/T02020000F9/en</sourceUrl>
20912         <sourceUrl>http://en.wikipedia.org/wiki/+211</sourceUrl>
20913       </references>
20914       <availableFormats>
20915         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
20916           <format>$1 $2 $3</format>
20917         </numberFormat>
20918       </availableFormats>
20919       <generalDesc>
20920         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
20921         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20922       </generalDesc>
20923       <fixedLine>
20924         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
20925         <exampleNumber>181234567</exampleNumber>
20926       </fixedLine>
20927       <mobile>
20928         <nationalNumberPattern>
20929           (?:
20930             12|
20931             9[1257]
20932           )\d{7}
20933         </nationalNumberPattern>
20934         <exampleNumber>977123456</exampleNumber>
20935       </mobile>
20936     </territory>
20937
20938     <!-- Sao Tome and Principe -->
20939     <territory id="ST" countryCode="239" internationalPrefix="00">
20940       <references>
20941         <sourceUrl>http://www.itu.int/oth/T02020000B6/en</sourceUrl>
20942       </references>
20943       <availableFormats>
20944         <numberFormat pattern="(\d{3})(\d{4})">
20945           <format>$1 $2</format>
20946         </numberFormat>
20947       </availableFormats>
20948       <generalDesc>
20949         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
20950         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20951       </generalDesc>
20952       <fixedLine>
20953         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
20954         <exampleNumber>2221234</exampleNumber>
20955       </fixedLine>
20956       <mobile>
20957         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
20958         <exampleNumber>9812345</exampleNumber>
20959       </mobile>
20960     </territory>
20961
20962     <!-- El Salvador -->
20963     <territory id="SV" countryCode="503" internationalPrefix="00">
20964       <references>
20965         <sourceUrl>http://www.itu.int/oth/T020200003F/en</sourceUrl>
20966         <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>
20967       </references>
20968       <availableFormats>
20969         <numberFormat pattern="(\d{4})(\d{4})">
20970           <leadingDigits>[267]</leadingDigits>
20971           <format>$1 $2</format>
20972         </numberFormat>
20973         <numberFormat pattern="(\d{3})(\d{4})">
20974           <leadingDigits>[89]</leadingDigits>
20975           <format>$1 $2</format>
20976         </numberFormat>
20977         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
20978           <leadingDigits>[89]</leadingDigits>
20979           <format>$1 $2 $3</format>
20980         </numberFormat>
20981       </availableFormats>
20982       <generalDesc>
20983         <nationalNumberPattern>
20984           [267]\d{7}|
20985           [89]\d{6}(?:\d{4})?
20986         </nationalNumberPattern>
20987         <possibleNumberPattern>
20988           \d{7,8}|
20989           \d{11}
20990         </possibleNumberPattern>
20991       </generalDesc>
20992       <fixedLine>
20993         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
20994         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
20995         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20996         <exampleNumber>21234567</exampleNumber>
20997       </fixedLine>
20998       <mobile>
20999         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
21000         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21001         <exampleNumber>70123456</exampleNumber>
21002       </mobile>
21003       <tollFree>
21004         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
21005         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
21006         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21007         <exampleNumber>8001234</exampleNumber>
21008       </tollFree>
21009       <premiumRate>
21010         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
21011         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
21012         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21013         <exampleNumber>9001234</exampleNumber>
21014       </premiumRate>
21015     </territory>
21016
21017     <!-- Sint Maarten -->
21018     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
21019                internationalPrefix="011">
21020       <references>
21021         <sourceUrl>http://www.nanpa.com/pdf/PL_429.pdf</sourceUrl>
21022         <sourceUrl>http://www.itu.int/oth/T02020000F7/en</sourceUrl>
21023       </references>
21024       <generalDesc>
21025         <!-- NANPA country - uses US formatting rules -->
21026         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
21027         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21028       </generalDesc>
21029       <fixedLine>
21030         <nationalNumberPattern>
21031           7215(?:
21032             4[2-8]|
21033             8[239]|
21034             9[056]
21035           )\d{4}
21036         </nationalNumberPattern>
21037         <exampleNumber>7215425678</exampleNumber>
21038       </fixedLine>
21039       <mobile>
21040         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
21041              include these as mobile numbers. -->
21042         <nationalNumberPattern>
21043           7215(?:
21044             1[02]|
21045             2\d|
21046             5[034679]|
21047             8[014-8]
21048           )\d{4}
21049         </nationalNumberPattern>
21050         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21051         <exampleNumber>7215205678</exampleNumber>
21052       </mobile>
21053       <tollFree>
21054         <nationalNumberPattern>
21055           8(?:
21056             00|
21057             44|
21058             55|
21059             66|
21060             77|
21061             88
21062           )[2-9]\d{6}
21063         </nationalNumberPattern>
21064         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21065         <exampleNumber>8002123456</exampleNumber>
21066       </tollFree>
21067       <premiumRate>
21068         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21069         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21070         <exampleNumber>9002123456</exampleNumber>
21071       </premiumRate>
21072       <personalNumber>
21073         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21074         <nationalNumberPattern>
21075           5(?:
21076             00|
21077             33|
21078             44|
21079             66|
21080             77
21081           )[2-9]\d{6}
21082         </nationalNumberPattern>
21083         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21084         <exampleNumber>5002345678</exampleNumber>
21085       </personalNumber>
21086     </territory>
21087
21088     <!-- Syrian Arab Republic -->
21089     <territory id="SY" countryCode="963" internationalPrefix="00"
21090                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21091                nationalPrefixOptionalWhenFormatting="true">
21092       <references>
21093         <sourceUrl>http://www.itu.int/oth/T02020000C9/en</sourceUrl>
21094         <sourceUrl>http://en.wikipedia.org/wiki/%2B963</sourceUrl>
21095       </references>
21096       <availableFormats>
21097         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
21098           <leadingDigits>[1-5]</leadingDigits>
21099           <format>$1 $2 $3</format>
21100         </numberFormat>
21101         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
21102           <leadingDigits>9</leadingDigits>
21103           <format>$1 $2 $3</format>
21104         </numberFormat>
21105       </availableFormats>
21106       <generalDesc>
21107         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
21108         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
21109       </generalDesc>
21110       <fixedLine>
21111       <!-- Numbers with the 21 prefix are made optionally 1-digit longer based on numbers found on
21112            the Internet. -->
21113         <nationalNumberPattern>
21114           (?:
21115             1(?:
21116               1\d?|
21117               4\d|
21118               [2356]
21119             )|
21120             2(?:
21121               1\d?|
21122               [235]
21123             )|
21124             3(?:
21125               [13]\d|
21126               4
21127             )|
21128             4[13]|
21129             5[1-3]
21130           )\d{6}
21131         </nationalNumberPattern>
21132         <exampleNumber>112345678</exampleNumber>
21133       </fixedLine>
21134       <mobile>
21135         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
21136              95[138], and 96[05]. -->
21137         <nationalNumberPattern>
21138           9(?:
21139             22|
21140             [35][0-8]|
21141             4\d|
21142             6[024-9]|
21143             88|
21144             9[0-489]
21145           )\d{6}
21146         </nationalNumberPattern>
21147         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21148         <exampleNumber>944567890</exampleNumber>
21149       </mobile>
21150       <!-- No tollFree or premiumRate information can be found. -->
21151     </territory>
21152
21153     <!-- Swaziland -->
21154     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
21155       <references>
21156         <sourceUrl>http://www.itu.int/oth/T02020000C6/en</sourceUrl>
21157       </references>
21158       <availableFormats>
21159         <numberFormat pattern="(\d{4})(\d{4})">
21160           <leadingDigits>[027]</leadingDigits>
21161           <format>$1 $2</format>
21162         </numberFormat>
21163       </availableFormats>
21164       <generalDesc>
21165         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
21166         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21167       </generalDesc>
21168       <noInternationalDialling>
21169         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21170         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21171         <exampleNumber>08001234</exampleNumber>
21172       </noInternationalDialling>
21173       <fixedLine>
21174         <nationalNumberPattern>
21175           2(?:
21176             2(?:
21177               0[07]|
21178               [13]7|
21179               2[57]
21180             )|
21181             3(?:
21182               0[34]|
21183               [1278]3|
21184               3[23]|
21185               [46][34]
21186             )|
21187             (?:
21188               40[4-69]|
21189               67
21190             )|
21191             5(?:
21192               0[5-7]|
21193               1[6-9]|
21194               [23][78]|
21195               48|
21196               5[01]
21197             )
21198           )\d{4}
21199         </nationalNumberPattern>
21200         <exampleNumber>22171234</exampleNumber>
21201       </fixedLine>
21202       <mobile>
21203         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
21204         <exampleNumber>76123456</exampleNumber>
21205       </mobile>
21206       <tollFree>
21207         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21208         <exampleNumber>08001234</exampleNumber>
21209       </tollFree>
21210     </territory>
21211
21212     <!-- Tristan da Cunha -->
21213     <territory id="TA" countryCode="290" internationalPrefix="00">
21214       <references>
21215         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
21216       </references>
21217       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
21218       <generalDesc>
21219         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21220         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21221       </generalDesc>
21222       <fixedLine>
21223         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21224         <exampleNumber>8999</exampleNumber>
21225       </fixedLine>
21226       <mobile>
21227         <nationalNumberPattern>NA</nationalNumberPattern>
21228         <possibleNumberPattern>NA</possibleNumberPattern>
21229       </mobile>
21230     </territory>
21231
21232     <!-- Turks and Caicos Islands -->
21233     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
21234                internationalPrefix="011">
21235       <references>
21236         <sourceUrl>http://www.itu.int/oth/T02020000D8/en</sourceUrl>
21237       </references>
21238       <generalDesc>
21239         <!-- NANPA country - uses US formatting rules -->
21240         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
21241         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21242       </generalDesc>
21243       <fixedLine>
21244         <nationalNumberPattern>
21245           649(?:
21246             712|
21247             9(?:
21248               4\d|
21249               50
21250             )
21251           )\d{4}
21252         </nationalNumberPattern>
21253         <exampleNumber>6497121234</exampleNumber>
21254       </fixedLine>
21255       <mobile>
21256         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
21257         <nationalNumberPattern>
21258           649(?:
21259             2(?:
21260               3[129]|
21261               4[1-7]
21262             )|
21263             3(?:
21264               3[1-389]|
21265               4[1-7]
21266             )|
21267             4[34][1-3]
21268           )\d{4}
21269         </nationalNumberPattern>
21270         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21271         <exampleNumber>6492311234</exampleNumber>
21272       </mobile>
21273       <tollFree>
21274         <nationalNumberPattern>
21275           8(?:
21276             00|
21277             44|
21278             55|
21279             66|
21280             77|
21281             88
21282           )[2-9]\d{6}
21283         </nationalNumberPattern>
21284         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21285         <exampleNumber>8002345678</exampleNumber>
21286       </tollFree>
21287       <premiumRate>
21288         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21289         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21290         <exampleNumber>9002345678</exampleNumber>
21291       </premiumRate>
21292       <personalNumber>
21293         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21294         <nationalNumberPattern>
21295           5(?:
21296             00|
21297             33|
21298             44|
21299             66|
21300             77
21301           )[2-9]\d{6}
21302         </nationalNumberPattern>
21303         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21304         <exampleNumber>5002345678</exampleNumber>
21305       </personalNumber>
21306       <voip>
21307         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
21308         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21309         <exampleNumber>6497101234</exampleNumber>
21310       </voip>
21311     </territory>
21312
21313     <!-- Chad -->
21314     <!-- The international prefix includes 16 as the international manual exchange. -->
21315     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
21316                internationalPrefix="00|16">
21317       <references>
21318         <sourceUrl>http://www.itu.int/oth/T0202000029/en</sourceUrl>
21319       </references>
21320       <availableFormats>
21321         <numberFormat
21322           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21323           <format>$1 $2 $3 $4</format>
21324         </numberFormat>
21325       </availableFormats>
21326       <generalDesc>
21327         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
21328         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21329       </generalDesc>
21330       <fixedLine>
21331         <nationalNumberPattern>
21332           22(?:
21333             [3789]0|
21334             5[0-5]|
21335             6[89]
21336           )\d{4}
21337         </nationalNumberPattern>
21338         <exampleNumber>22501234</exampleNumber>
21339       </fixedLine>
21340       <mobile>
21341         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
21342              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
21343              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
21344         <nationalNumberPattern>
21345           (?:
21346             6[02368]\d|
21347             77\d|
21348             9(?:
21349               5[0-4]|
21350               9\d
21351             )
21352           )\d{5}
21353         </nationalNumberPattern>
21354         <exampleNumber>63012345</exampleNumber>
21355       </mobile>
21356     </territory>
21357
21358     <!-- French Southern Territories -->
21359     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
21360     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
21361          temporary inhabitants. -->
21362
21363     <!-- Togo -->
21364     <territory id="TG" countryCode="228" internationalPrefix="00">
21365       <references>
21366         <sourceUrl>http://www.itu.int/oth/T02020000D1/en</sourceUrl>
21367       </references>
21368       <availableFormats>
21369         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21370           <format>$1 $2 $3 $4</format>
21371         </numberFormat>
21372       </availableFormats>
21373       <generalDesc>
21374         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
21375         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21376       </generalDesc>
21377       <fixedLine>
21378         <nationalNumberPattern>
21379           2(?:
21380             2[2-7]|
21381             3[23]|
21382             44|
21383             55|
21384             66|
21385             77
21386           )\d{5}
21387         </nationalNumberPattern>
21388         <exampleNumber>22212345</exampleNumber>
21389       </fixedLine>
21390       <mobile>
21391         <!-- Prefix 93 is from an open-source bug report -->
21392         <nationalNumberPattern>9[0-389]\d{6}</nationalNumberPattern>
21393         <exampleNumber>90112345</exampleNumber>
21394       </mobile>
21395     </territory>
21396
21397     <!-- Thailand -->
21398     <territory id="TH" countryCode="66" internationalPrefix="00"
21399                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21400                mobileNumberPortableRegion="true">
21401       <references>
21402         <sourceUrl>http://www.itu.int/oth/T02020000CD/en</sourceUrl>
21403         <sourceUrl>http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf</sourceUrl>
21404       </references>
21405       <availableFormats>
21406         <!-- Formatting patterns from wikipedia and the document itself -
21407              http://en.wikipedia.org/wiki/%2B66 -->
21408         <numberFormat pattern="(2)(\d{3})(\d{4})">
21409           <leadingDigits>2</leadingDigits>
21410           <format>$1 $2 $3</format>
21411         </numberFormat>
21412         <numberFormat pattern="([13-9]\d)(\d{3})(\d{3,4})">
21413           <leadingDigits>
21414             14|
21415             [3-9]
21416           </leadingDigits>
21417           <format>$1 $2 $3</format>
21418         </numberFormat>
21419         <numberFormat nationalPrefixFormattingRule="$FG"
21420           pattern="(1[89]00)(\d{3})(\d{3})">
21421           <leadingDigits>1</leadingDigits>
21422           <format>$1 $2 $3</format>
21423         </numberFormat>
21424       </availableFormats>
21425       <generalDesc>
21426         <nationalNumberPattern>
21427           [2-9]\d{7,8}|
21428           1\d{3}(?:\d{5,6})?
21429         </nationalNumberPattern>
21430         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
21431       </generalDesc>
21432       <noInternationalDialling>
21433         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21434         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21435         <exampleNumber>1100</exampleNumber>
21436       </noInternationalDialling>
21437       <fixedLine>
21438         <!-- Numbers online have been found that start with 20, despite the ITU doc not covering
21439              these. -->
21440         <nationalNumberPattern>
21441           (?:
21442             2\d|
21443             3[2-9]|
21444             4[2-5]|
21445             5[2-6]|
21446             7[3-7]
21447           )\d{6}
21448         </nationalNumberPattern>
21449         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21450         <exampleNumber>21234567</exampleNumber>
21451       </fixedLine>
21452       <mobile>
21453         <!-- Numbers found online starting with 62. 14 and 63 are from an open-source bug report,
21454              we couldn't find evidence of these specifically being in use but this article
21455              http://www.prachachat.net/news_detail.php?newsid=1395732787&grpid=03&catid=06&subcatid=0600
21456              talks about prefix 6 and 1 being cleared for mobile use. -->
21457         <nationalNumberPattern>
21458           (?:
21459             14|
21460             6[1-3]|
21461             [89]\d
21462           )\d{7}
21463         </nationalNumberPattern>
21464         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21465         <exampleNumber>812345678</exampleNumber>
21466       </mobile>
21467       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
21468       <tollFree>
21469         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
21470         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21471         <exampleNumber>1800123456</exampleNumber>
21472       </tollFree>
21473       <premiumRate>
21474         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
21475         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21476         <exampleNumber>1900123456</exampleNumber>
21477       </premiumRate>
21478       <voip>
21479         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
21480              online to suggest they are actually used as mobile numbers. -->
21481         <nationalNumberPattern>6[08]\d{7}</nationalNumberPattern>
21482         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21483         <exampleNumber>601234567</exampleNumber>
21484       </voip>
21485       <uan>
21486         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
21487              their costs range from free to 6 Baht/min. -->
21488         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21489         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21490         <exampleNumber>1100</exampleNumber>
21491       </uan>
21492     </territory>
21493
21494     <!-- Tajikistan -->
21495     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
21496                internationalPrefix="810" nationalPrefix="8"
21497                nationalPrefixFormattingRule="($NP) $FG"
21498                nationalPrefixOptionalWhenFormatting="true">
21499       <references>
21500         <sourceUrl>http://www.itu.int/oth/T02020000CA/en</sourceUrl>
21501       </references>
21502       <availableFormats>
21503         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
21504           <leadingDigits>
21505             [34]7|
21506             91[78]
21507           </leadingDigits>
21508           <format>$1 $2 $3</format>
21509         </numberFormat>
21510         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
21511           <leadingDigits>
21512             4[48]|
21513             5|
21514             9(?:
21515               1[59]|
21516               [0235-9]
21517             )
21518           </leadingDigits>
21519           <format>$1 $2 $3</format>
21520         </numberFormat>
21521         <numberFormat pattern="(331700)(\d)(\d{2})">
21522           <leadingDigits>331</leadingDigits>
21523           <leadingDigits>3317</leadingDigits>
21524           <leadingDigits>33170</leadingDigits>
21525           <leadingDigits>331700</leadingDigits>
21526           <format>$1 $2 $3</format>
21527         </numberFormat>
21528         <numberFormat pattern="(\d{4})(\d)(\d{4})">
21529           <leadingDigits>3[1-5]</leadingDigits>
21530           <leadingDigits>
21531             3(?:
21532               [1245]|
21533               3(?:
21534                 [02-9]|
21535                 1[0-589]
21536               )
21537             )
21538           </leadingDigits>
21539           <format>$1 $2 $3</format>
21540         </numberFormat>
21541       </availableFormats>
21542       <generalDesc>
21543         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
21544         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
21545       </generalDesc>
21546       <fixedLine>
21547         <nationalNumberPattern>
21548           (?:
21549             3(?:
21550               1[3-5]|
21551               2[245]|
21552               3[12]|
21553               4[24-7]|
21554               5[25]|
21555               72
21556             )|
21557             4(?:
21558               46|
21559               74|
21560               87
21561             )
21562           )\d{6}
21563         </nationalNumberPattern>
21564         <exampleNumber>372123456</exampleNumber>
21565       </fixedLine>
21566       <mobile>
21567         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
21568              numbers, and 50[12] for TCell from bug reports. -->
21569         <nationalNumberPattern>
21570           (?:
21571             50[125]|
21572             9[0-35-9]\d
21573           )\d{6}
21574         </nationalNumberPattern>
21575         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21576         <exampleNumber>917123456</exampleNumber>
21577       </mobile>
21578       <!-- No tollFree or premiumRate information can be found. -->
21579     </territory>
21580
21581     <!-- Tokelau -->
21582     <territory id="TK" countryCode="690" internationalPrefix="00">
21583       <references>
21584         <sourceUrl>http://www.itu.int/oth/T02020000D2/en</sourceUrl>
21585       </references>
21586       <generalDesc>
21587         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
21588         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21589       </generalDesc>
21590       <fixedLine>
21591         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
21592         <!-- The example number is the contact number from the ITU document. -->
21593         <exampleNumber>3010</exampleNumber>
21594       </fixedLine>
21595       <mobile>
21596         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
21597         <exampleNumber>5190</exampleNumber>
21598       </mobile>
21599     </territory>
21600
21601     <!-- Timor-Leste (East Timor) -->
21602     <territory id="TL" countryCode="670" internationalPrefix="00">
21603       <references>
21604         <sourceUrl>http://www.itu.int/oth/T02020000D0/en</sourceUrl>
21605       </references>
21606       <availableFormats>
21607         <numberFormat pattern="(\d{3})(\d{4})">
21608           <leadingDigits>[2-489]</leadingDigits>
21609           <format>$1 $2</format>
21610         </numberFormat>
21611         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
21612              them. If we see another pattern being used, we should change this later. -->
21613         <numberFormat pattern="(\d{4})(\d{4})">
21614           <leadingDigits>7</leadingDigits>
21615           <format>$1 $2</format>
21616         </numberFormat>
21617       </availableFormats>
21618       <generalDesc>
21619         <nationalNumberPattern>
21620           [2-489]\d{6}|
21621           7\d{6,7}
21622         </nationalNumberPattern>
21623         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
21624       </generalDesc>
21625       <fixedLine>
21626         <nationalNumberPattern>
21627           (?:
21628             2[1-5]|
21629             3[1-9]|
21630             4[1-4]
21631           )\d{5}
21632         </nationalNumberPattern>
21633         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21634         <exampleNumber>2112345</exampleNumber>
21635       </fixedLine>
21636       <mobile>
21637         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
21638         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21639         <exampleNumber>77212345</exampleNumber>
21640       </mobile>
21641       <tollFree>
21642         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
21643         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21644         <exampleNumber>8012345</exampleNumber>
21645       </tollFree>
21646       <premiumRate>
21647         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
21648         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21649         <exampleNumber>9012345</exampleNumber>
21650       </premiumRate>
21651       <!-- We don't include paging or voicemail because the identified paging range was used by
21652            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
21653            numbers, or if the range was indeed previously used for voicemail at all. -->
21654       <personalNumber>
21655         <!-- We presume this wasn't affected by the numbering plan update. -->
21656         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
21657         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21658         <exampleNumber>7012345</exampleNumber>
21659       </personalNumber>
21660     </territory>
21661
21662     <!-- Turkmenistan -->
21663     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
21664                internationalPrefix="810" nationalPrefix="8"
21665                nationalPrefixFormattingRule="($NP $FG)">
21666       <references>
21667         <sourceUrl>http://www.itu.int/oth/T02020000D7/en</sourceUrl>
21668         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan</sourceUrl>
21669       </references>
21670       <availableFormats>
21671         <!-- There doesn't seem to be a standardized format. The format below is based on the
21672              Turkmenistan embassy at
21673              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
21674           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21675             <leadingDigits>12</leadingDigits>
21676             <format>$1 $2-$3-$4</format>
21677           </numberFormat>
21678           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
21679             <leadingDigits>6</leadingDigits>
21680             <format>$1 $2</format>
21681           </numberFormat>
21682           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
21683             <leadingDigits>
21684               13|
21685               [2-5]
21686             </leadingDigits>
21687             <format>$1 $2-$3-$4</format>
21688           </numberFormat>
21689       </availableFormats>
21690       <generalDesc>
21691         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
21692         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21693       </generalDesc>
21694       <fixedLine>
21695         <!-- Additional prefixes from the wikipedia page. -->
21696         <nationalNumberPattern>
21697           (?:
21698             1(?:
21699               2\d|
21700               3[1-9]
21701             )|
21702             2(?:
21703               22|
21704               4[0-35-8]
21705             )|
21706             3(?:
21707               22|
21708               4[03-9]
21709             )|
21710             4(?:
21711               22|
21712               3[128]|
21713               4\d|
21714               6[15]
21715             )|
21716             5(?:
21717               22|
21718               5[7-9]|
21719               6[014-689]
21720             )
21721           )\d{5}
21722         </nationalNumberPattern>
21723         <exampleNumber>12345678</exampleNumber>
21724       </fixedLine>
21725       <mobile>
21726         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
21727              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
21728              has been suspended. It is unclear whether it will resume. We support both ranges in the
21729              meantime. The range 62 seems also now to be in use, according to numbers found online.
21730              -->
21731         <nationalNumberPattern>6[2-8]\d{6}</nationalNumberPattern>
21732         <exampleNumber>66123456</exampleNumber>
21733       </mobile>
21734       <!-- No tollFree or premiumRate information can be found. -->
21735     </territory>
21736
21737     <!-- Tunisia -->
21738     <territory id="TN" countryCode="216" internationalPrefix="00">
21739       <references>
21740         <sourceUrl>http://www.itu.int/oth/T02020000D5/en</sourceUrl>
21741         <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>
21742         <sourceUrl>http://www.tunisietelecom.tn/tt/internet/fr/pme/fixe/numeros_acceuil</sourceUrl>
21743       </references>
21744       <availableFormats>
21745         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
21746           <format>$1 $2 $3</format>
21747         </numberFormat>
21748       </availableFormats>
21749       <generalDesc>
21750         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
21751         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21752       </generalDesc>
21753       <fixedLine>
21754         <!-- 3[012] numbers are no longer listed in the ITU doc, but we support them based on
21755              online searches. -->
21756         <nationalNumberPattern>
21757           3[012]\d{6}|
21758           7\d{7}|
21759           81200\d{3}
21760         </nationalNumberPattern>
21761         <exampleNumber>71234567</exampleNumber>
21762       </fixedLine>
21763       <mobile>
21764         <!-- Numbers starting with 5 are no longer listed in the ITU doc, but we support them based
21765              on online searches and Wikipedia. -->
21766         <nationalNumberPattern>
21767           (?:
21768             [259]\d|
21769             4[0-24]
21770           )\d{6}
21771         </nationalNumberPattern>
21772         <exampleNumber>20123456</exampleNumber>
21773       </mobile>
21774       <tollFree>
21775         <!-- ITU lists 80 xx xx xx, but the document published by Tunisie Telecom has more specific
21776              information which is followed here. -->
21777         <nationalNumberPattern>8010\d{4}</nationalNumberPattern>
21778         <exampleNumber>80101234</exampleNumber>
21779       </tollFree>
21780       <premiumRate>
21781         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
21782         <exampleNumber>88123456</exampleNumber>
21783       </premiumRate>
21784       <sharedCost>
21785         <!-- 8110xxxx numbers are listed as being "discounted non-geographical numbers" and are put
21786              here for now. In the future we might consider them as UAN.
21787              ITU lists 82 xx xx xx, but the document published by Tunisie Telecom has more specific
21788              information which is followed here. -->
21789         <nationalNumberPattern>8[12]10\d{4}</nationalNumberPattern>
21790         <exampleNumber>81101234</exampleNumber>
21791       </sharedCost>
21792     </territory>
21793
21794     <!-- Tonga -->
21795     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
21796       <references>
21797         <sourceUrl>http://www.itu.int/oth/T02020000D3/en</sourceUrl>
21798         <sourceUrl>http://www.wtng.info/wtng-676-to.html</sourceUrl>
21799       </references>
21800       <availableFormats>
21801         <numberFormat pattern="(\d{2})(\d{3})">
21802           <leadingDigits>
21803             [1-6]|
21804             7[0-4]|
21805             8[05]
21806           </leadingDigits>
21807           <format>$1-$2</format>
21808         </numberFormat>
21809         <numberFormat pattern="(\d{3})(\d{4})">
21810           <leadingDigits>
21811             7[5-9]|
21812             8[47-9]
21813           </leadingDigits>
21814           <format>$1 $2</format>
21815         </numberFormat>
21816         <numberFormat pattern="(\d{4})(\d{3})">
21817           <leadingDigits>0</leadingDigits>
21818           <format>$1 $2</format>
21819         </numberFormat>
21820       </availableFormats>
21821       <generalDesc>
21822         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
21823         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
21824       </generalDesc>
21825       <fixedLine>
21826         <nationalNumberPattern>
21827           (?:
21828             2\d|
21829             3[1-8]|
21830             4[1-4]|
21831             [56]0|
21832             7[0149]|
21833             8[05]
21834           )\d{3}
21835         </nationalNumberPattern>
21836         <possibleNumberPattern>\d{5}</possibleNumberPattern>
21837         <exampleNumber>20123</exampleNumber>
21838       </fixedLine>
21839       <mobile>
21840         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
21841              in their ITU document. Numbers with a prefix of "75" and "84" have also been found. -->
21842         <nationalNumberPattern>
21843           (?:
21844             7[578]|
21845             8[47-9]
21846           )\d{5}
21847         </nationalNumberPattern>
21848         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21849         <exampleNumber>7715123</exampleNumber>
21850       </mobile>
21851       <tollFree>
21852         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
21853         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21854         <exampleNumber>0800222</exampleNumber>
21855       </tollFree>
21856     </territory>
21857
21858     <!-- Turkey -->
21859     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0"
21860                mobileNumberPortableRegion="true">
21861       <references>
21862         <sourceUrl>http://en.wikipedia.org/wiki/%2B90</sourceUrl>
21863         <sourceUrl>http://www.itu.int/oth/T02020000D6/en</sourceUrl>
21864       </references>
21865       <availableFormats>
21866         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
21867           nationalPrefixOptionalWhenFormatting="true">
21868           <leadingDigits>
21869             [23]|
21870             4(?:
21871               [0-35-9]|
21872               4[0-35-9]
21873             )
21874           </leadingDigits>
21875           <format>$1 $2 $3</format>
21876         </numberFormat>
21877         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
21878           nationalPrefixOptionalWhenFormatting="true">
21879           <leadingDigits>[589]</leadingDigits>
21880           <format>$1 $2 $3</format>
21881         </numberFormat>
21882         <numberFormat pattern="(444)(\d{1})(\d{3})">
21883           <leadingDigits>444</leadingDigits>
21884           <format>$1 $2 $3</format>
21885         </numberFormat>
21886       </availableFormats>
21887       <generalDesc>
21888         <nationalNumberPattern>
21889           [2-589]\d{9}|
21890           444\d{4}
21891         </nationalNumberPattern>
21892         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21893       </generalDesc>
21894       <noInternationalDialling>
21895         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
21896         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21897         <exampleNumber>4441444</exampleNumber>
21898       </noInternationalDialling>
21899       <fixedLine>
21900         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
21901         <nationalNumberPattern>
21902           (?:
21903             2(?:
21904               [13][26]|
21905               [28][2468]|
21906               [45][268]|
21907               [67][246]
21908             )|
21909             3(?:
21910               [13][28]|
21911               [24-6][2468]|
21912               [78][02468]|
21913               92
21914             )|
21915             4(?:
21916               [16][246]|
21917               [23578][2468]|
21918               4[26]
21919             )
21920           )\d{7}
21921         </nationalNumberPattern>
21922         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21923         <exampleNumber>2123456789</exampleNumber>
21924       </fixedLine>
21925       <mobile>
21926         <!-- There are some differences between the Turkish and English wikipedia pages here, and
21927              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
21928              509 from the English page because of this. -->
21929         <nationalNumberPattern>
21930           5(?:
21931             0[1-7]|
21932             22|
21933             [34]\d|
21934             5[1-59]|
21935             9[246]
21936           )\d{7}
21937         </nationalNumberPattern>
21938         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21939         <exampleNumber>5012345678</exampleNumber>
21940       </mobile>
21941       <pager>
21942         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
21943         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21944         <exampleNumber>5123456789</exampleNumber>
21945       </pager>
21946       <tollFree>
21947         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
21948         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21949         <exampleNumber>8001234567</exampleNumber>
21950       </tollFree>
21951       <premiumRate>
21952         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
21953         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21954         <exampleNumber>9001234567</exampleNumber>
21955       </premiumRate>
21956       <uan>
21957         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
21958         <nationalNumberPattern>
21959           444\d{4}|
21960           850\d{7}
21961         </nationalNumberPattern>
21962         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21963         <exampleNumber>4441444</exampleNumber>
21964       </uan>
21965     </territory>
21966
21967     <!-- Trinidad and Tobago -->
21968     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
21969                internationalPrefix="011">
21970       <references>
21971         <sourceUrl>http://www.itu.int/oth/T02020000D4/en</sourceUrl>
21972       </references>
21973       <generalDesc>
21974         <!-- NANPA country - uses US formatting rules -->
21975         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
21976         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21977       </generalDesc>
21978       <fixedLine>
21979         <nationalNumberPattern>
21980           868(?:
21981             2(?:
21982               01|
21983               2[1-5]
21984             )|
21985             6(?:
21986               0[79]|
21987               1[02-9]|
21988               2[1-9]|
21989               [3-69]\d|
21990               7[0-79]
21991             )|
21992             82[124]
21993           )\d{4}
21994         </nationalNumberPattern>
21995         <exampleNumber>8682211234</exampleNumber>
21996       </fixedLine>
21997       <mobile>
21998         <nationalNumberPattern>
21999           868(?:
22000             2(?:
22001               [89]\d
22002             )|
22003             3(?:
22004               0[1-9]|
22005               1[02-9]|
22006               [2-9]\d
22007             )|
22008             4[6-9]\d|
22009             6(?:
22010               20|
22011               78|
22012               8\d
22013             )|
22014             7(?:
22015               0[1-9]|
22016               1[02-9]|
22017               [2-9]\d
22018             )
22019           )\d{4}
22020         </nationalNumberPattern>
22021         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22022         <exampleNumber>8682911234</exampleNumber>
22023       </mobile>
22024       <tollFree>
22025         <nationalNumberPattern>
22026           8(?:
22027             00|
22028             44|
22029             55|
22030             66|
22031             77|
22032             88
22033           )[2-9]\d{6}
22034         </nationalNumberPattern>
22035         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22036         <exampleNumber>8002345678</exampleNumber>
22037       </tollFree>
22038       <premiumRate>
22039         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22040         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22041         <exampleNumber>9002345678</exampleNumber>
22042       </premiumRate>
22043       <personalNumber>
22044         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22045         <nationalNumberPattern>
22046           5(?:
22047             00|
22048             33|
22049             44|
22050             66|
22051             77
22052           )[2-9]\d{6}
22053         </nationalNumberPattern>
22054         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22055         <exampleNumber>5002345678</exampleNumber>
22056       </personalNumber>
22057     </territory>
22058
22059     <!-- Tuvalu -->
22060     <territory id="TV" countryCode="688" internationalPrefix="00">
22061       <references>
22062         <sourceUrl>http://www.itu.int/oth/T02020000D9/en</sourceUrl>
22063         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu</sourceUrl>
22064       </references>
22065       <!-- Numbers are formatted as a block. -->
22066       <generalDesc>
22067         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
22068         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
22069       </generalDesc>
22070       <fixedLine>
22071         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
22072         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22073         <exampleNumber>20123</exampleNumber>
22074       </fixedLine>
22075       <mobile>
22076         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
22077              don't know if these are valid or not - the ITU document excludes them - so are not
22078              covering these for now. -->
22079         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
22080         <possibleNumberPattern>\d{6}</possibleNumberPattern>
22081         <exampleNumber>901234</exampleNumber>
22082       </mobile>
22083     </territory>
22084
22085     <!-- Taiwan, China -->
22086     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
22087          chosen as the preferred extension prefix. -->
22088     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
22089                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG"
22090                mobileNumberPortableRegion="true">
22091       <references>
22092         <sourceUrl>http://www.itu.int/oth/T02020000EB/en</sourceUrl>
22093       </references>
22094       <availableFormats>
22095         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
22096           <leadingDigits>
22097             [2-6]|
22098             [78][1-9]
22099           </leadingDigits>
22100           <format>$1 $2 $3</format>
22101         </numberFormat>
22102         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
22103           <leadingDigits>
22104             80|
22105             9
22106           </leadingDigits>
22107           <format>$1 $2 $3</format>
22108         </numberFormat>
22109         <numberFormat pattern="(70)(\d{4})(\d{4})">
22110           <leadingDigits>70</leadingDigits>
22111           <format>$1 $2 $3</format>
22112         </numberFormat>
22113       </availableFormats>
22114       <generalDesc>
22115         <nationalNumberPattern>
22116           [2-689]\d{7,8}|
22117           7\d{7,9}
22118         </nationalNumberPattern>
22119         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
22120       </generalDesc>
22121       <fixedLine>
22122         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
22123         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22124         <exampleNumber>21234567</exampleNumber>
22125       </fixedLine>
22126       <mobile>
22127         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
22128         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22129         <exampleNumber>912345678</exampleNumber>
22130       </mobile>
22131       <tollFree>
22132         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22133         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22134         <exampleNumber>800123456</exampleNumber>
22135       </tollFree>
22136       <premiumRate>
22137         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22138         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22139         <exampleNumber>900123456</exampleNumber>
22140       </premiumRate>
22141       <!-- http://www.chief.com.tw/telecom_eng/front/bin/ptlist.phtml?Category=107 -->
22142       <voip>
22143         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
22144         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22145         <exampleNumber>7012345678</exampleNumber>
22146       </voip>
22147     </territory>
22148
22149     <!-- Tanzania -->
22150     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
22151                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22152       <references>
22153         <sourceUrl>http://www.itu.int/oth/T02020000CB/en</sourceUrl>
22154       </references>
22155       <availableFormats>
22156         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
22157           <leadingDigits>[24]</leadingDigits>
22158           <format>$1 $2 $3</format>
22159         </numberFormat>
22160         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
22161           <leadingDigits>[67]</leadingDigits>
22162           <format>$1 $2 $3</format>
22163         </numberFormat>
22164         <!-- Formatting for special numbers from http://www.tcra.go.tz -->
22165         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
22166           <leadingDigits>[89]</leadingDigits>
22167           <format>$1 $2 $3</format>
22168         </numberFormat>
22169       </availableFormats>
22170       <generalDesc>
22171         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22172         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22173       </generalDesc>
22174       <fixedLine>
22175         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
22176         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22177         <exampleNumber>222345678</exampleNumber>
22178       </fixedLine>
22179       <mobile>
22180         <nationalNumberPattern>
22181           (?:
22182             6[158]|
22183             7[1-9]
22184           )\d{7}
22185         </nationalNumberPattern>
22186         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22187         <exampleNumber>612345678</exampleNumber>
22188       </mobile>
22189       <tollFree>
22190         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
22191         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22192         <exampleNumber>800123456</exampleNumber>
22193       </tollFree>
22194       <premiumRate>
22195         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
22196         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22197         <exampleNumber>900123456</exampleNumber>
22198       </premiumRate>
22199       <sharedCost>
22200         <nationalNumberPattern>
22201           8(?:
22202             40|
22203             6[01]
22204           )\d{6}
22205         </nationalNumberPattern>
22206         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22207         <exampleNumber>840123456</exampleNumber>
22208       </sharedCost>
22209       <voip>
22210         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
22211         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22212         <exampleNumber>412345678</exampleNumber>
22213       </voip>
22214     </territory>
22215
22216     <!-- Ukraine -->
22217     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
22218                internationalPrefix="00"
22219                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22220       <references>
22221         <sourceUrl>http://www.itu.int/oth/T02020000DB/en</sourceUrl>
22222         <sourceUrl>http://en.wikipedia.org/wiki/%2B380</sourceUrl>
22223       </references>
22224       <availableFormats>
22225         <!-- City codes separated out. No definitive list has been found of what constitutes the
22226              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
22227              Have used local yellow pages guidelines, Google searches and regression tests to
22228              reverse-engineer these rules as well as bugs. -->
22229         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
22230           <leadingDigits>
22231             [38]9|
22232             4(?:
22233               [45][0-5]|
22234               87
22235             )|
22236             5(?:
22237               0|
22238               6[37]|
22239               7[37]
22240             )|
22241             6[36-8]|
22242             9[1-9]
22243           </leadingDigits>
22244           <leadingDigits>
22245             [38]9|
22246             4(?:
22247               [45][0-5]|
22248               87
22249             )|
22250             5(?:
22251               0|
22252               6(?:
22253                 3[14-7]|
22254                 7
22255               )|
22256               7[37]
22257             )|
22258             6[36-8]|
22259             9[1-9]
22260           </leadingDigits>
22261           <format>$1 $2 $3</format>
22262         </numberFormat>
22263         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
22264           <leadingDigits>
22265             3[1-8]2|
22266             4[13678]2|
22267             5(?:
22268               [12457]2|
22269               6[24]
22270             )|
22271             6(?:
22272               [49]2|
22273               [12][29]|
22274               5[24]
22275             )|
22276             8[0-8]|
22277             90
22278           </leadingDigits>
22279           <leadingDigits>
22280             3(?:
22281               [1-46-8]2[013-9]|
22282               52
22283             )|
22284             4(?:
22285               [1378]2|
22286               62[013-9]
22287             )|
22288             5(?:
22289               [12457]2|
22290               6[24]
22291             )|
22292             6(?:
22293               [49]2|
22294               [12][29]|
22295               5[24]
22296             )|
22297             8[0-8]|
22298             90
22299           </leadingDigits>
22300           <format>$1 $2 $3</format>
22301         </numberFormat>
22302         <numberFormat pattern="([3-6]\d{3})(\d{5})">
22303           <leadingDigits>
22304             3(?:
22305               5[013-9]|
22306               [1-46-8]
22307             )|
22308             4(?:
22309               [137][013-9]|
22310               6|
22311               [45][6-9]|
22312               8[4-6]
22313             )|
22314             5(?:
22315               [1245][013-9]|
22316               6[0135-9]|
22317               3|
22318               7[4-6]
22319             )|
22320             6(?:
22321               [49][013-9]|
22322               5[0135-9]|
22323               [12][13-8]
22324             )
22325           </leadingDigits>
22326           <leadingDigits>
22327             3(?:
22328               5[013-9]|
22329               [1-46-8](?:
22330                 22|
22331                 [013-9]
22332               )
22333             )|
22334             4(?:
22335               [137][013-9]|
22336               6(?:
22337                 [013-9]|
22338                 22
22339               )|
22340               [45][6-9]|
22341               8[4-6]
22342             )|
22343             5(?:
22344               [1245][013-9]|
22345               6(?:
22346                 3[02389]|
22347                 [015689]
22348               )|
22349               3|
22350               7[4-6]
22351             )|
22352             6(?:
22353               [49][013-9]|
22354               5[0135-9]|
22355               [12][13-8]
22356             )
22357           </leadingDigits>
22358           <format>$1 $2</format>
22359         </numberFormat>
22360       </availableFormats>
22361       <generalDesc>
22362         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
22363         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22364       </generalDesc>
22365       <fixedLine>
22366         <nationalNumberPattern>
22367           (?:
22368             3[1-8]|
22369             4[13-8]|
22370             5[1-7]|
22371             6[12459]
22372           )\d{7}
22373         </nationalNumberPattern>
22374         <exampleNumber>311234567</exampleNumber>
22375       </fixedLine>
22376       <mobile>
22377         <nationalNumberPattern>
22378           (?:
22379             39|
22380             50|
22381             6[36-8]|
22382             9[1-9]
22383           )\d{7}
22384         </nationalNumberPattern>
22385         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22386         <exampleNumber>391234567</exampleNumber>
22387       </mobile>
22388       <tollFree>
22389         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22390         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22391         <exampleNumber>800123456</exampleNumber>
22392       </tollFree>
22393       <premiumRate>
22394         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22395         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22396         <exampleNumber>900123456</exampleNumber>
22397       </premiumRate>
22398       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
22399       <voip>
22400         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
22401         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22402         <exampleNumber>891234567</exampleNumber>
22403       </voip>
22404     </territory>
22405
22406     <!-- Uganda -->
22407     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
22408                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22409       <references>
22410         <sourceUrl>http://www.itu.int/oth/T02020000F1/en</sourceUrl>
22411         <sourceUrl>http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf</sourceUrl>
22412       </references>
22413       <availableFormats>
22414         <numberFormat pattern="(\d{3})(\d{6})">
22415           <leadingDigits>
22416             [7-9]|
22417             20(?:
22418               [013-8]|
22419               2[5-9]
22420             )|
22421             4(?:
22422               6[45]|
22423               [7-9]
22424             )
22425           </leadingDigits>
22426           <format>$1 $2</format>
22427         </numberFormat>
22428         <numberFormat pattern="(\d{2})(\d{7})">
22429           <leadingDigits>
22430             3|
22431             4(?:
22432               [1-5]|
22433               6[0-36-9]
22434             )
22435           </leadingDigits>
22436           <format>$1 $2</format>
22437         </numberFormat>
22438         <numberFormat pattern="(2024)(\d{5})">
22439           <leadingDigits>2024</leadingDigits>
22440           <format>$1 $2</format>
22441         </numberFormat>
22442       </availableFormats>
22443       <generalDesc>
22444         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22445         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22446       </generalDesc>
22447       <fixedLine>
22448         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
22449         <nationalNumberPattern>
22450           20(?:
22451             [0147]\d{2}|
22452             2(?:
22453               40|
22454               [5-9]\d
22455             )|
22456             3[23]\d|
22457             5[0-4]\d|
22458             6[03]\d|
22459             8[0-2]\d
22460           )\d{4}|
22461           [34]\d{8}
22462         </nationalNumberPattern>
22463         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
22464              local dialing is still possible. We assume it is for now. -->
22465         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22466         <exampleNumber>312345678</exampleNumber>
22467       </fixedLine>
22468       <mobile>
22469         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
22470         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
22471         <!-- Ranges with prefixes 2030 or 723 are "not yet operational" as of Oct. 2014. -->
22472         <nationalNumberPattern>
22473           2030\d{5}|
22474           7(?:
22475             0[0-7]|
22476             [15789]\d|
22477             2[03]|
22478             30|
22479             [46][0-4]
22480           )\d{6}
22481         </nationalNumberPattern>
22482         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22483         <exampleNumber>712345678</exampleNumber>
22484       </mobile>
22485       <tollFree>
22486         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
22487         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22488         <exampleNumber>800123456</exampleNumber>
22489       </tollFree>
22490       <premiumRate>
22491         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
22492         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22493         <exampleNumber>901123456</exampleNumber>
22494       </premiumRate>
22495     </territory>
22496
22497     <!-- United States -->
22498     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
22499          numbers in the national format, it is not included. Therefore, we omit it here to make
22500          formatting consistent with the rest of the world. The same applies to all the
22501          countries/regions under NANPA -->
22502     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
22503          when formatting, but is set here so that users who are calling formatByPattern can specify
22504          NationalPrefixFormattingRule if they want to. -->
22505     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
22506                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true"
22507                mobileNumberPortableRegion="true">
22508       <references>
22509         <sourceUrl>http://www.nanpa.com/reports/reports_npa.html</sourceUrl>
22510         <sourceUrl>http://en.wikipedia.org/wiki/North_American_Numbering_Plan</sourceUrl>
22511       </references>
22512       <availableFormats>
22513         <numberFormat pattern="(\d{3})(\d{4})">
22514           <format>$1-$2</format>
22515           <intlFormat>NA</intlFormat>
22516         </numberFormat>
22517         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
22518           <format>($1) $2-$3</format>
22519           <!-- A different pattern is used when formatting internationally, as the area code is no
22520                longer optional and should not be in brackets. -->
22521           <intlFormat>$1-$2-$3</intlFormat>
22522         </numberFormat>
22523       </availableFormats>
22524       <generalDesc>
22525         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
22526         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22527       </generalDesc>
22528       <fixedLine>
22529         <nationalNumberPattern>
22530           (?:
22531             2(?:
22532               0[1-35-9]|
22533               1[02-9]|
22534               2[4589]|
22535               3[149]|
22536               4[08]|
22537               5[1-46]|
22538               6[0279]|
22539               7[026]|
22540               8[13]
22541             )|
22542             3(?:
22543               0[1-57-9]|
22544               1[02-9]|
22545               2[0135]|
22546               3[014679]|
22547               4[67]|
22548               5[12]|
22549               6[014]|
22550               8[56]
22551             )|
22552             4(?:
22553               0[124-9]|
22554               1[02-579]|
22555               2[3-5]|
22556               3[0245]|
22557               4[0235]|
22558               58|
22559               69|
22560               7[0589]|
22561               8[04]
22562             )|
22563             5(?:
22564               0[1-57-9]|
22565               1[0235-8]|
22566               20|
22567               3[0149]|
22568               4[01]|
22569               5[19]|
22570               6[1-37]|
22571               7[013-5]|
22572               8[056]
22573             )|
22574             6(?:
22575               0[1-35-9]|
22576               1[024-9]|
22577               2[036]|
22578               3[016]|
22579               4[16]|
22580               5[017]|
22581               6[0-279]|
22582               78|
22583               8[12]
22584             )|
22585             7(?:
22586               0[1-46-8]|
22587               1[02-9]|
22588               2[0457]|
22589               3[1247]|
22590               4[07]|
22591               5[47]|
22592               6[02359]|
22593               7[02-59]|
22594               8[156]
22595             )|
22596             8(?:
22597               0[1-68]|
22598               1[02-8]|
22599               28|
22600               3[0-25]|
22601               4[3578]|
22602               5[06-9]|
22603               6[02-5]|
22604               7[028]
22605             )|
22606             9(?:
22607               0[1346-9]|
22608               1[02-9]|
22609               2[0589]|
22610               3[01678]|
22611               4[0179]|
22612               5[12469]|
22613               7[0-3589]|
22614               8[0459]
22615             )
22616           )[2-9]\d{6}
22617         </nationalNumberPattern>
22618         <exampleNumber>2015555555</exampleNumber>
22619       </fixedLine>
22620       <mobile>
22621         <nationalNumberPattern>
22622           (?:
22623             2(?:
22624               0[1-35-9]|
22625               1[02-9]|
22626               2[4589]|
22627               3[149]|
22628               4[08]|
22629               5[1-46]|
22630               6[0279]|
22631               7[026]|
22632               8[13]
22633             )|
22634             3(?:
22635               0[1-57-9]|
22636               1[02-9]|
22637               2[0135]|
22638               3[014679]|
22639               4[67]|
22640               5[12]|
22641               6[014]|
22642               8[56]
22643             )|
22644             4(?:
22645               0[124-9]|
22646               1[02-579]|
22647               2[3-5]|
22648               3[0245]|
22649               4[0235]|
22650               58|
22651               69|
22652               7[0589]|
22653               8[04]
22654             )|
22655             5(?:
22656               0[1-57-9]|
22657               1[0235-8]|
22658               20|
22659               3[0149]|
22660               4[01]|
22661               5[19]|
22662               6[1-37]|
22663               7[013-5]|
22664               8[056]
22665             )|
22666             6(?:
22667               0[1-35-9]|
22668               1[024-9]|
22669               2[036]|
22670               3[016]|
22671               4[16]|
22672               5[017]|
22673               6[0-279]|
22674               78|
22675               8[12]
22676             )|
22677             7(?:
22678               0[1-46-8]|
22679               1[02-9]|
22680               2[0457]|
22681               3[1247]|
22682               4[07]|
22683               5[47]|
22684               6[02359]|
22685               7[02-59]|
22686               8[156]
22687             )|
22688             8(?:
22689               0[1-68]|
22690               1[02-8]|
22691               28|
22692               3[0-25]|
22693               4[3578]|
22694               5[06-9]|
22695               6[02-5]|
22696               7[028]
22697             )|
22698             9(?:
22699               0[1346-9]|
22700               1[02-9]|
22701               2[0589]|
22702               3[01678]|
22703               4[0179]|
22704               5[12469]|
22705               7[0-3589]|
22706               8[0459]
22707             )
22708           )[2-9]\d{6}
22709         </nationalNumberPattern>
22710         <exampleNumber>2015555555</exampleNumber>
22711       </mobile>
22712       <tollFree>
22713         <nationalNumberPattern>
22714           8(?:
22715             00|
22716             44|
22717             55|
22718             66|
22719             77|
22720             88
22721           )[2-9]\d{6}
22722         </nationalNumberPattern>
22723         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22724         <exampleNumber>8002345678</exampleNumber>
22725       </tollFree>
22726       <premiumRate>
22727         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22728         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22729         <exampleNumber>9002345678</exampleNumber>
22730       </premiumRate>
22731       <personalNumber>
22732         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22733         <nationalNumberPattern>
22734           5(?:
22735             00|
22736             33|
22737             44|
22738             66|
22739             77
22740           )[2-9]\d{6}
22741         </nationalNumberPattern>
22742         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22743         <exampleNumber>5002345678</exampleNumber>
22744       </personalNumber>
22745     </territory>
22746
22747     <!-- Uruguay -->
22748     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
22749          code JK, where J = [3-9] and K is any digit. -->
22750     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
22751                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
22752       <references>
22753         <sourceUrl>http://www.itu.int/oth/T02020000E0/en</sourceUrl>
22754         <sourceUrl>http://www.ursec.gub.uy</sourceUrl>
22755         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay</sourceUrl>
22756       </references>
22757       <availableFormats>
22758         <!-- Following paginasamarillas.com.uy formatting. -->
22759         <numberFormat pattern="(\d{4})(\d{4})">
22760           <leadingDigits>[24]</leadingDigits>
22761           <format>$1 $2</format>
22762         </numberFormat>
22763         <!-- Including the national prefix here since URSEC does when formatting these. -->
22764         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
22765           <leadingDigits>9[1-9]</leadingDigits>
22766           <format>$1 $2 $3</format>
22767         </numberFormat>
22768         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
22769           <leadingDigits>[89]0</leadingDigits>
22770           <format>$1 $2</format>
22771         </numberFormat>
22772       </availableFormats>
22773       <generalDesc>
22774         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
22775         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
22776       </generalDesc>
22777       <fixedLine>
22778         <nationalNumberPattern>
22779           2\d{7}|
22780           4[2-7]\d{6}
22781         </nationalNumberPattern>
22782         <exampleNumber>21231234</exampleNumber>
22783       </fixedLine>
22784       <mobile>
22785         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
22786         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22787         <exampleNumber>94231234</exampleNumber>
22788       </mobile>
22789       <tollFree>
22790         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
22791         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22792         <exampleNumber>8001234</exampleNumber>
22793       </tollFree>
22794       <premiumRate>
22795         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
22796         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22797         <exampleNumber>9001234</exampleNumber>
22798       </premiumRate>
22799      </territory>
22800
22801     <!-- Uzbekistan -->
22802     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
22803                internationalPrefix="810" nationalPrefix="8"
22804                nationalPrefixFormattingRule="$NP $FG">
22805       <references>
22806         <sourceUrl>http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng</sourceUrl>
22807         <sourceUrl>http://www.itu.int/oth/T02020000E1/en</sourceUrl>
22808       </references>
22809       <availableFormats>
22810         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
22811           <format>$1 $2 $3 $4</format>
22812         </numberFormat>
22813       </availableFormats>
22814       <generalDesc>
22815         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
22816         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22817       </generalDesc>
22818       <fixedLine>
22819         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
22820              be used in Namangan. -->
22821         <nationalNumberPattern>
22822           (?:
22823             6(?:
22824               1(?:
22825                 22|
22826                 3[124]|
22827                 4[1-4]|
22828                 5[123578]|
22829                 64
22830               )|
22831               2(?:
22832                 22|
22833                 3[0-57-9]|
22834                 41
22835               )|
22836               5(?:
22837                 22|
22838                 3[3-7]|
22839                 5[024-8]
22840               )|
22841               6\d{2}|
22842               7(?:
22843                 [23]\d|
22844                 7[69]
22845               )|
22846               9(?:
22847                 22|
22848                 4[1-8]|
22849                 6[135]
22850               )
22851             )|
22852             7(?:
22853               0(?:
22854                 5[4-9]|
22855                 6[0146]|
22856                 7[12456]|
22857                 9[135-8]
22858               )|
22859               1[12]\d|
22860               2(?:
22861                 22|
22862                 3[1345789]|
22863                 4[123579]|
22864                 5[14]
22865               )|
22866               3(?:
22867                 2\d|
22868                 3[1578]|
22869                 4[1-35-7]|
22870                 5[1-57]|
22871                 61
22872               )|
22873               4(?:
22874                 2\d|
22875                 3[1-579]|
22876                 7[1-79]
22877               )|
22878               5(?:
22879                 22|
22880                 5[1-9]|
22881                 6[1457]
22882               )|
22883               6(?:
22884                 22|
22885                 3[12457]|
22886                 4[13-8]
22887               )|
22888               9(?:
22889                 22|
22890                 5[1-9]
22891               )
22892             )
22893           )\d{5}
22894         </nationalNumberPattern>
22895         <exampleNumber>662345678</exampleNumber>
22896       </fixedLine>
22897       <mobile>
22898         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
22899              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
22900              prefixes Tyntec has a carrier mapped to. -->
22901         <nationalNumberPattern>
22902           6(?:
22903             1(?:
22904               2(?:
22905                 98|
22906                 2[01]
22907               )|
22908               35[0-4]|
22909               50\d|
22910               61[23]|
22911               7(?:
22912                 [01][017]|
22913                 4\d|
22914                 55|
22915                 9[5-9]
22916               )
22917             )|
22918             2(?:
22919               11\d|
22920               2(?:
22921                 [12]1|
22922                 9[01379]
22923               )|
22924               5(?:
22925                 [126]\d|
22926                 3[0-4]
22927               )|
22928               7\d{2}
22929             )|
22930             5(?:
22931               19[01]|
22932               2(?:
22933                 27|
22934                 9[26]
22935               )|
22936               30\d|
22937               59\d|
22938               7\d{2}
22939             )|
22940             6(?:
22941               2(?:
22942                 1[5-9]|
22943                 2[0367]|
22944                 38|
22945                 41|
22946                 52|
22947                 60
22948               )|
22949               3[79]\d|
22950               4(?:
22951                 56|
22952                 83
22953               )|
22954               7(?:
22955                 [07]\d|
22956                 1[017]|
22957                 3[07]|
22958                 4[047]|
22959                 5[057]|
22960                 67|
22961                 8[0178]|
22962                 9[79]
22963                 )|
22964               9[0-3]\d
22965             )|
22966             7(?:
22967               2(?:
22968                 24|
22969                 3[237]|
22970                 4[5-9]|
22971                 7[15-8]
22972               )|
22973               5(?:
22974                 7[12]|
22975                 8[0589]
22976               )|
22977               7(?:
22978                 0\d|
22979                 [39][07]
22980               )|
22981               9(?:
22982                 0\d|
22983                 7[079]
22984               )
22985             )|
22986             9(?:
22987               2(?:
22988                 1[1267]|
22989                 5\d|
22990                 3[01]|
22991                 7[0-4]
22992               )|
22993               5[67]\d|
22994               6(?:
22995                 2[0-26]|
22996                 8\d
22997               )|
22998               7\d{2}
22999             )
23000           )\d{4}|
23001           7(?:
23002             0\d{3}|
23003             1(?:
23004               13[01]|
23005               6(?:
23006                 0[47]|
23007                 1[67]|
23008                 66
23009               )|
23010               71[3-69]|
23011               98\d
23012             )|
23013             2(?:
23014               2(?:
23015                 2[79]|
23016                 95
23017               )|
23018               3(?:
23019                 2[5-9]|
23020                 6[0-6]
23021               )|
23022               57\d|
23023               7(?:
23024                 0\d|
23025                 1[17]|
23026                 2[27]|
23027                 3[37]|
23028                 44|
23029                 5[057]|
23030                 66|
23031                 88
23032               )
23033             )|
23034             3(?:
23035               2(?:
23036                 1[0-6]|
23037                 21|
23038                 3[469]|
23039                 7[159]
23040               )|
23041               33\d|
23042               5(?:
23043                 0[0-4]|
23044                 5[579]|
23045                 9\d
23046               )|
23047               7(?:
23048                 [0-3579]\d|
23049                 4[0467]|
23050                 6[67]|
23051                 8[078]
23052               )|
23053               9[4-6]\d
23054             )|
23055             4(?:
23056               2(?:
23057                 29|
23058                 5[0257]|
23059                 6[0-7]|
23060                 7[1-57]
23061               )|
23062               5(?:
23063                 1[0-4]|
23064                 8\d|
23065                 9[5-9]
23066               )|
23067               7(?:
23068                 0\d|
23069                 1[024589]|
23070                 2[0127]|
23071                 3[0137]|
23072                 [46][07]|
23073                 5[01]|
23074                 7[5-9]|
23075                 9[079]
23076               )|
23077               9(?:
23078                 7[015-9]|
23079                 [89]\d
23080               )
23081             )|
23082             5(?:
23083               112|
23084               2(?:
23085                 0\d|
23086                 2[29]|
23087                 [49]4
23088               )|
23089               3[1568]\d|
23090               52[6-9]|
23091               7(?:
23092                 0[01578]|
23093                 1[017]|
23094                 [23]7|
23095                 4[047]|
23096                 [5-7]\d|
23097                 8[78]|
23098                 9[079]
23099               )
23100             )|
23101             6(?:
23102               2(?:
23103                 2[1245]|
23104                 4[2-4]
23105               )|
23106               39\d|
23107               41[179]|
23108               5(?:
23109                 [349]\d|
23110                 5[0-2]
23111               )|
23112               7(?:
23113                 0[017]|
23114                 [13]\d|
23115                 22|
23116                 44|
23117                 55|
23118                 67|
23119                 88
23120               )
23121             )|
23122             9(?:
23123               22[128]|
23124               3(?:
23125                 2[0-4]|
23126                 7\d
23127               )|
23128               57[05629]|
23129               7(?:
23130                 2[05-9]|
23131                 3[37]|
23132                 4\d|
23133                 60|
23134                 7[2579]|
23135                 87|
23136                 9[07]
23137               )
23138             )
23139           )\d{4}|
23140           9[0-57-9]\d{7}
23141         </nationalNumberPattern>
23142         <exampleNumber>912345678</exampleNumber>
23143       </mobile>
23144       <!-- No tollFree or premiumRate information can be found. -->
23145     </territory>
23146
23147     <!-- Vatican City -->
23148     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
23149          also be dialled with the Vatican City country code. -->
23150     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
23151       <references>
23152         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City</sourceUrl>
23153       </references>
23154       <availableFormats>
23155         <numberFormat pattern="(06)(\d{4})(\d{4})">
23156           <format>$1 $2 $3</format>
23157         </numberFormat>
23158       </availableFormats>
23159       <generalDesc>
23160         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
23161         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23162       </generalDesc>
23163       <fixedLine>
23164         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
23165         <exampleNumber>0669812345</exampleNumber>
23166       </fixedLine>
23167       <mobile>
23168         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
23169              Italian mobile contracts. -->
23170         <nationalNumberPattern>NA</nationalNumberPattern>
23171         <possibleNumberPattern>NA</possibleNumberPattern>
23172       </mobile>
23173       <!-- No information exists about other types of numbers. -->
23174     </territory>
23175
23176     <!-- Saint Vincent and the Grenadines -->
23177     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
23178                internationalPrefix="011">
23179       <references>
23180         <sourceUrl>http://www.itu.int/oth/T02020000B3/en</sourceUrl>
23181       </references>
23182       <generalDesc>
23183         <!-- NANPA country - uses US formatting rules -->
23184         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
23185         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23186       </generalDesc>
23187       <!-- For 570, 571 and 572 prefixes, we believe the ITU doc incorrectly listed them to be under
23188            area code 758, which should be 784. -->
23189       <fixedLine>
23190         <nationalNumberPattern>
23191           784(?:
23192             266|
23193             3(?:
23194               6[6-9]|
23195               7\d|
23196               8[0-24-6]
23197             )|
23198             4(?:
23199               38|
23200               5[0-36-8]|
23201               8[0-8]
23202             )|
23203             5(?:
23204               55|
23205               7[0-2]|
23206               93
23207             )|
23208             638|
23209             784
23210           )\d{4}
23211         </nationalNumberPattern>
23212         <exampleNumber>7842661234</exampleNumber>
23213       </fixedLine>
23214       <mobile>
23215         <nationalNumberPattern>
23216           784(?:
23217             4(?:
23218               3[0-4]|
23219               5[45]|
23220               89|
23221               9[0-5]
23222             )|
23223             5(?:
23224               2[6-9]|
23225               3[0-4]
23226             )
23227           )\d{4}
23228         </nationalNumberPattern>
23229         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23230         <exampleNumber>7844301234</exampleNumber>
23231       </mobile>
23232       <tollFree>
23233         <nationalNumberPattern>
23234           8(?:
23235             00|
23236             44|
23237             55|
23238             66|
23239             77|
23240             88
23241           )[2-9]\d{6}
23242         </nationalNumberPattern>
23243         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23244         <exampleNumber>8002345678</exampleNumber>
23245       </tollFree>
23246       <premiumRate>
23247         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23248         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23249         <exampleNumber>9002345678</exampleNumber>
23250       </premiumRate>
23251       <personalNumber>
23252         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23253         <nationalNumberPattern>
23254           5(?:
23255             00|
23256             33|
23257             44|
23258             66|
23259             77
23260           )[2-9]\d{6}
23261         </nationalNumberPattern>
23262         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23263         <exampleNumber>5002345678</exampleNumber>
23264       </personalNumber>
23265     </territory>
23266
23267     <!-- Venezuela -->
23268     <!-- 1XX specifies a particular carrier to route a call to, but none of these have been
23269          implemented. -->
23270     <territory id="VE" countryCode="58" internationalPrefix="00"
23271                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23272                carrierCodeFormattingRule="$CC $FG">
23273       <references>
23274         <sourceUrl>http://www.itu.int/oth/T02020000E3/en</sourceUrl>
23275         <sourceUrl>http://en.wikipedia.org/wiki/+58</sourceUrl>
23276       </references>
23277       <availableFormats>
23278         <numberFormat pattern="(\d{3})(\d{7})">
23279           <format>$1-$2</format>
23280         </numberFormat>
23281       </availableFormats>
23282       <generalDesc>
23283         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
23284         <!-- Open numbering plan. -->
23285         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23286       </generalDesc>
23287       <fixedLine>
23288         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
23289              mentions these as 5XX, but online examples that can be found are seemingly restricted
23290              to 50[01]. -->
23291         <nationalNumberPattern>
23292           (?:
23293             2(?:
23294               12|
23295               3[457-9]|
23296               [58][1-9]|
23297               [467]\d|
23298               9[1-6]
23299             )|
23300             50[01]
23301           )\d{7}
23302         </nationalNumberPattern>
23303         <exampleNumber>2121234567</exampleNumber>
23304       </fixedLine>
23305       <mobile>
23306         <nationalNumberPattern>
23307           4(?:
23308             1[24-8]|
23309             2[46]
23310           )\d{7}
23311         </nationalNumberPattern>
23312         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23313         <exampleNumber>4121234567</exampleNumber>
23314       </mobile>
23315       <tollFree>
23316         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
23317         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23318         <exampleNumber>8001234567</exampleNumber>
23319       </tollFree>
23320       <premiumRate>
23321         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
23322         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23323         <exampleNumber>9001234567</exampleNumber>
23324       </premiumRate>
23325     </territory>
23326
23327     <!-- Virgin Islands, British -->
23328     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
23329                internationalPrefix="011">
23330       <references>
23331         <sourceUrl>http://www.itu.int/oth/T020200001E/en</sourceUrl>
23332       </references>
23333       <generalDesc>
23334         <!-- NANPA country - uses US formatting rules -->
23335         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
23336         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23337       </generalDesc>
23338       <fixedLine>
23339         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
23340              and 774 have been added from numbers found in the white pages. -->
23341         <nationalNumberPattern>
23342           284(?:
23343             (?:
23344               229|
23345               4(?:
23346                 22|
23347                 9[45]
23348               )|
23349               774|
23350               8(?:
23351                 52|
23352                 6[459]
23353               )
23354             )\d{4}|
23355             496[0-5]\d{3}
23356           )
23357         </nationalNumberPattern>
23358         <exampleNumber>2842291234</exampleNumber>
23359       </fixedLine>
23360       <mobile>
23361         <!-- No data on central office codes can be found on the nanpa.com website. The codes
23362              34[0-367], 446 and 54[57] have been added from numbers found in the white pages. -->
23363         <nationalNumberPattern>
23364           284(?:
23365             (?:
23366               3(?:
23367                 0[0-3]|
23368                 4[0-367]
23369               )|
23370               4(?:
23371                 4[0-6]|
23372                 68|
23373                 99
23374               )|
23375               54[0-57]
23376             )\d{4}|
23377             496[6-9]\d{3}
23378           )
23379         </nationalNumberPattern>
23380         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23381         <exampleNumber>2843001234</exampleNumber>
23382       </mobile>
23383       <tollFree>
23384         <nationalNumberPattern>
23385           8(?:
23386             00|
23387             44|
23388             55|
23389             66|
23390             77|
23391             88
23392           )[2-9]\d{6}
23393         </nationalNumberPattern>
23394         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23395         <exampleNumber>8002345678</exampleNumber>
23396       </tollFree>
23397       <premiumRate>
23398         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23399         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23400         <exampleNumber>9002345678</exampleNumber>
23401       </premiumRate>
23402       <personalNumber>
23403         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23404         <nationalNumberPattern>
23405           5(?:
23406             00|
23407             33|
23408             44|
23409             66|
23410             77
23411           )[2-9]\d{6}
23412         </nationalNumberPattern>
23413         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23414         <exampleNumber>5002345678</exampleNumber>
23415       </personalNumber>
23416     </territory>
23417
23418     <!-- Virgin Islands, United States -->
23419     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
23420                internationalPrefix="011">
23421       <references>
23422         <sourceUrl>http://www.itu.int/oth/T02020000DF/en</sourceUrl>
23423       </references>
23424       <generalDesc>
23425         <!-- NANPA country - uses US formatting rules -->
23426         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
23427         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23428       </generalDesc>
23429       <fixedLine>
23430         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
23431              yellow pages have been added, and the list of exchanges found on
23432              http://www.allareacodes.com/340 -->
23433         <nationalNumberPattern>
23434           340(?:
23435             2(?:
23436               01|
23437               2[0678]|
23438               44|
23439               77
23440             )|
23441             3(?:
23442               32|
23443               44
23444             )|
23445             4(?:
23446               22|
23447               7[34]
23448             )|
23449             5(?:
23450               1[34]|
23451               55
23452             )|
23453             6(?:
23454               26|
23455               4[23]|
23456               77|
23457               9[023]
23458             )|
23459             7(?:
23460               1[2-589]|
23461               27|
23462               7\d
23463             )|
23464             884|
23465             998
23466           )\d{4}
23467         </nationalNumberPattern>
23468         <exampleNumber>3406421234</exampleNumber>
23469       </fixedLine>
23470       <mobile>
23471         <nationalNumberPattern>
23472           340(?:
23473             2(?:
23474               01|
23475               2[0678]|
23476               44|
23477               77
23478             )|
23479             3(?:
23480               32|
23481               44
23482             )|
23483             4(?:
23484               22|
23485               7[34]
23486             )|
23487             5(?:
23488               1[34]|
23489               55
23490             )|
23491             6(?:
23492               26|
23493               4[23]|
23494               77|
23495               9[023]
23496             )|
23497             7(?:
23498               1[2-589]|
23499               27|
23500               7\d
23501             )|
23502             884|
23503             998
23504           )\d{4}
23505         </nationalNumberPattern>
23506         <exampleNumber>3406421234</exampleNumber>
23507       </mobile>
23508       <tollFree>
23509         <nationalNumberPattern>
23510           8(?:
23511             00|
23512             44|
23513             55|
23514             66|
23515             77|
23516             88
23517           )[2-9]\d{6}
23518         </nationalNumberPattern>
23519         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23520         <exampleNumber>8002345678</exampleNumber>
23521       </tollFree>
23522       <premiumRate>
23523         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23524         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23525         <exampleNumber>9002345678</exampleNumber>
23526       </premiumRate>
23527       <personalNumber>
23528         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23529         <nationalNumberPattern>
23530           5(?:
23531             00|
23532             33|
23533             44|
23534             66|
23535             77
23536           )[2-9]\d{6}
23537         </nationalNumberPattern>
23538         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23539         <exampleNumber>5002345678</exampleNumber>
23540       </personalNumber>
23541     </territory>
23542
23543     <!-- Viet Nam (Vietnam) -->
23544     <territory id="VN" countryCode="84" internationalPrefix="00"
23545                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23546                nationalPrefixOptionalWhenFormatting="true">
23547       <references>
23548         <sourceUrl>http://www.itu.int/oth/T02020000E4/en</sourceUrl>
23549         <sourceUrl>http://en.wikipedia.org/wiki/%2B84</sourceUrl>
23550       </references>
23551       <availableFormats>
23552         <numberFormat pattern="([17]99)(\d{4})">
23553           <leadingDigits>[17]99</leadingDigits>
23554           <format>$1 $2</format>
23555         </numberFormat>
23556         <numberFormat pattern="([48])(\d{4})(\d{4})">
23557           <leadingDigits>[48]</leadingDigits>
23558           <format>$1 $2 $3</format>
23559         </numberFormat>
23560         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
23561           <leadingDigits>
23562             2[025-79]|
23563             3[0136-9]|
23564             5[2-9]|
23565             6[0-46-8]|
23566             7[02-79]
23567           </leadingDigits>
23568           <format>$1 $2 $3</format>
23569         </numberFormat>
23570         <numberFormat pattern="(80)(\d{5})">
23571           <leadingDigits>80</leadingDigits>
23572           <format>$1 $2</format>
23573         </numberFormat>
23574         <numberFormat pattern="(69\d)(\d{4,5})">
23575           <leadingDigits>69</leadingDigits>
23576           <format>$1 $2</format>
23577         </numberFormat>
23578         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
23579           <leadingDigits>
23580             2[1348]|
23581             3[25]|
23582             5[01]|
23583             65|
23584             7[18]
23585           </leadingDigits>
23586           <format>$1 $2 $3</format>
23587         </numberFormat>
23588         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
23589           <leadingDigits>9</leadingDigits>
23590           <format>$1 $2 $3 $4</format>
23591         </numberFormat>
23592         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
23593           <leadingDigits>
23594             1(?:
23595               [26]|
23596               8[68]|
23597               99
23598             )
23599           </leadingDigits>
23600           <format>$1 $2 $3</format>
23601         </numberFormat>
23602         <numberFormat nationalPrefixFormattingRule="$FG"
23603           pattern="(1[89]00)(\d{4,6})">
23604           <leadingDigits>1[89]0</leadingDigits>
23605           <format>$1 $2</format>
23606         </numberFormat>
23607       </availableFormats>
23608       <generalDesc>
23609         <nationalNumberPattern>
23610           [17]\d{6,9}|
23611           [2-69]\d{7,9}|
23612           8\d{6,8}
23613         </nationalNumberPattern>
23614         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23615       </generalDesc>
23616       <noInternationalDialling>
23617         <nationalNumberPattern>
23618           [17]99\d{4}|
23619           69\d{5,6}
23620         </nationalNumberPattern>
23621         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23622         <exampleNumber>1992000</exampleNumber>
23623       </noInternationalDialling>
23624       <fixedLine>
23625         <nationalNumberPattern>
23626           (?:
23627             2(?:
23628               [025-79]|
23629               1[0189]|
23630               [348][01]
23631             )|
23632             3(?:
23633               [0136-9]|
23634               [25][01]
23635             )|
23636             4\d|
23637             5(?:
23638               [01][01]|
23639               [2-9]
23640             )|
23641             6(?:
23642               [0-46-8]|
23643               5[01]
23644             )|
23645             7(?:
23646               [02-79]|
23647               [18][01]
23648             )|
23649             8[1-9]
23650           )\d{7}
23651         </nationalNumberPattern>
23652         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23653         <exampleNumber>2101234567</exampleNumber>
23654       </fixedLine>
23655       <mobile>
23656         <nationalNumberPattern>
23657           (?:
23658             9\d|
23659             1(?:
23660               2\d|
23661               6[2-9]|
23662               8[68]|
23663               99
23664             )
23665           )\d{7}
23666         </nationalNumberPattern>
23667         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23668         <exampleNumber>912345678</exampleNumber>
23669       </mobile>
23670       <tollFree>
23671         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
23672         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23673         <exampleNumber>1800123456</exampleNumber>
23674       </tollFree>
23675       <premiumRate>
23676         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
23677         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23678         <exampleNumber>1900123456</exampleNumber>
23679       </premiumRate>
23680       <uan>
23681         <!-- These include non-geographic fixed numbers, such as for government ministries. While
23682         listed as "private networks", they may actually be callable from within Vietnam. (They are
23683         "private" in the sense that ordinary people could not be assigned these numbers.) -->
23684         <nationalNumberPattern>
23685           [17]99\d{4}|
23686           69\d{5,6}|
23687           80\d{5}
23688         </nationalNumberPattern>
23689         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23690         <exampleNumber>1992000</exampleNumber>
23691       </uan>
23692     </territory>
23693
23694     <!-- Vanuatu -->
23695     <territory id="VU" countryCode="678" internationalPrefix="00">
23696       <references>
23697         <sourceUrl>http://www.itu.int/oth/T02020000E2/en</sourceUrl>
23698       </references>
23699       <!-- Should be formatted in one block, apart from the mobile numbers. -->
23700       <availableFormats>
23701         <numberFormat pattern="(\d{3})(\d{4})">
23702           <leadingDigits>[579]</leadingDigits>
23703           <format>$1 $2</format>
23704         </numberFormat>
23705       </availableFormats>
23706       <generalDesc>
23707         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
23708         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23709       </generalDesc>
23710       <fixedLine>
23711         <nationalNumberPattern>
23712           (?:
23713             2[02-9]\d|
23714             3(?:
23715               [5-7]\d|
23716               8[0-8]
23717             )|
23718             48[4-9]|
23719             88\d
23720           )\d{2}
23721         </nationalNumberPattern>
23722         <possibleNumberPattern>\d{5}</possibleNumberPattern>
23723         <exampleNumber>22123</exampleNumber>
23724       </fixedLine>
23725       <mobile>
23726         <nationalNumberPattern>
23727           (?:
23728             5(?:
23729               7[2-5]|
23730               [3-69]\d
23731             )|
23732             7[013-7]\d
23733           )\d{4}
23734         </nationalNumberPattern>
23735         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23736         <exampleNumber>5912345</exampleNumber>
23737       </mobile>
23738       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
23739            for government fixed-line numbers. -->
23740       <uan>
23741         <nationalNumberPattern>
23742           3[03]\d{3}|
23743           900\d{4}
23744         </nationalNumberPattern>
23745         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23746         <exampleNumber>30123</exampleNumber>
23747       </uan>
23748     </territory>
23749
23750     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
23751     <territory id="WF" countryCode="681" internationalPrefix="00">
23752       <references>
23753         <sourceUrl>http://www.itu.int/oth/T02020000E6/en</sourceUrl>
23754       </references>
23755       <availableFormats>
23756         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
23757           <format>$1 $2 $3</format>
23758         </numberFormat>
23759       </availableFormats>
23760       <generalDesc>
23761         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
23762         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23763       </generalDesc>
23764       <fixedLine>
23765         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
23766              50 and 68 are possible, so they are included here. -->
23767         <nationalNumberPattern>
23768           (?:
23769             50|
23770             68|
23771             72
23772           )\d{4}
23773         </nationalNumberPattern>
23774         <exampleNumber>501234</exampleNumber>
23775       </fixedLine>
23776       <mobile>
23777         <nationalNumberPattern>
23778           (?:
23779             50|
23780             68|
23781             72
23782           )\d{4}
23783         </nationalNumberPattern>
23784         <exampleNumber>501234</exampleNumber>
23785       </mobile>
23786     </territory>
23787
23788     <!-- Samoa -->
23789     <territory id="WS" countryCode="685" internationalPrefix="0">
23790       <references>
23791         <sourceUrl>http://www.itu.int/oth/T02020000B4/en</sourceUrl>
23792       </references>
23793       <availableFormats>
23794         <!-- Should be formatted in one block, apart from the specific series below. -->
23795         <numberFormat pattern="(8\d{2})(\d{3,4})">
23796           <leadingDigits>8</leadingDigits>
23797           <format>$1 $2</format>
23798         </numberFormat>
23799         <numberFormat pattern="(7\d)(\d{5})">
23800           <leadingDigits>7</leadingDigits>
23801           <format>$1 $2</format>
23802         </numberFormat>
23803       </availableFormats>
23804       <generalDesc>
23805         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
23806         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23807       </generalDesc>
23808       <fixedLine>
23809         <nationalNumberPattern>
23810           (?:
23811             [2-5]\d|
23812             6[1-9]|
23813             84\d{2}
23814           )\d{3}
23815         </nationalNumberPattern>
23816         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23817         <exampleNumber>22123</exampleNumber>
23818       </fixedLine>
23819       <mobile>
23820         <nationalNumberPattern>
23821           (?:
23822             60|
23823             7[25-7]\d
23824           )\d{4}
23825         </nationalNumberPattern>
23826         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
23827         <exampleNumber>601234</exampleNumber>
23828       </mobile>
23829       <tollFree>
23830         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
23831              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
23832              for now, so may be also used for other purposes than toll free, but until we have
23833              further evidence of these we will keep it as toll free. -->
23834         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
23835         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23836         <exampleNumber>800123</exampleNumber>
23837       </tollFree>
23838       <!-- Current research suggests other types of numbers are not used in Samoa. -->
23839     </territory>
23840
23841     <!-- Yemen -->
23842     <territory id="YE" countryCode="967" internationalPrefix="00"
23843                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
23844       <references>
23845         <sourceUrl>http://www.itu.int/oth/T02020000E7/en</sourceUrl>
23846       </references>
23847       <availableFormats>
23848         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
23849           <leadingDigits>
23850             [1-6]|
23851             7[24-68]
23852           </leadingDigits>
23853           <format>$1 $2 $3</format>
23854         </numberFormat>
23855         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
23856           <leadingDigits>7[0137]</leadingDigits>
23857           <format>$1 $2 $3</format>
23858         </numberFormat>
23859       </availableFormats>
23860       <generalDesc>
23861         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
23862         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
23863       </generalDesc>
23864       <fixedLine>
23865         <nationalNumberPattern>
23866           (?:
23867             1(?:
23868               7\d|
23869               [2-68]
23870             )|
23871             2[2-68]|
23872             3[2358]|
23873             4[2-58]|
23874             5[2-6]|
23875             6[3-58]|
23876             7[24-68]
23877           )\d{5}
23878         </nationalNumberPattern>
23879         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
23880         <exampleNumber>1234567</exampleNumber>
23881       </fixedLine>
23882       <mobile>
23883         <!-- Adding 70 from numbers found online. -->
23884         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
23885         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23886         <exampleNumber>712345678</exampleNumber>
23887       </mobile>
23888       <!-- No tollFree or premiumRate information can be found. -->
23889     </territory>
23890
23891     <!-- Mayotte -->
23892     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
23893                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
23894       <references>
23895         <!-- Some information at the following source, but most from collection of internet data.
23896              -->
23897         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_France</sourceUrl>
23898         <!-- Verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
23899              -->
23900         <sourceUrl>http://www.comores-online.com/mwezinet/internet/262</sourceUrl>
23901       </references>
23902       <!-- Formatting as per La Réunion. -->
23903       <generalDesc>
23904         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
23905         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23906       </generalDesc>
23907       <fixedLine>
23908         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
23909         <exampleNumber>269601234</exampleNumber>
23910       </fixedLine>
23911       <mobile>
23912         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
23913         <exampleNumber>639123456</exampleNumber>
23914       </mobile>
23915       <!-- Same as in France. -->
23916       <tollFree>
23917         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23918         <exampleNumber>801234567</exampleNumber>
23919       </tollFree>
23920     </territory>
23921
23922     <!-- South Africa -->
23923     <territory id="ZA" countryCode="27" internationalPrefix="00"
23924                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23925                mobileNumberPortableRegion="true">
23926       <references>
23927         <sourceUrl>http://www.itu.int/oth/T02020000C1/en</sourceUrl>
23928         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa</sourceUrl>
23929       </references>
23930       <availableFormats>
23931         <numberFormat pattern="(860)(\d{3})(\d{3})">
23932           <leadingDigits>860</leadingDigits>
23933           <format>$1 $2 $3</format>
23934         </numberFormat>
23935         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
23936           <leadingDigits>
23937             [1-79]|
23938             8(?:
23939               [0-47]|
23940               6[1-9]
23941             )
23942           </leadingDigits>
23943           <format>$1 $2 $3</format>
23944         </numberFormat>
23945         <numberFormat pattern="(\d{2})(\d{3,4})">
23946           <leadingDigits>8[1-4]</leadingDigits>
23947           <format>$1 $2</format>
23948         </numberFormat>
23949         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
23950           <leadingDigits>8[1-4]</leadingDigits>
23951           <format>$1 $2 $3</format>
23952         </numberFormat>
23953       </availableFormats>
23954       <generalDesc>
23955         <nationalNumberPattern>
23956           [1-79]\d{8}|
23957           8(?:
23958             [067]\d{7}|
23959             [1-4]\d{3,7}
23960           )
23961         </nationalNumberPattern>
23962         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
23963       </generalDesc>
23964       <fixedLine>
23965         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
23966              used in 1996. -->
23967         <nationalNumberPattern>
23968           (?:
23969             1[0-8]|
23970             2[0-378]|
23971             3[1-69]|
23972             4\d|
23973             5[1346-8]
23974           )\d{7}
23975         </nationalNumberPattern>
23976         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23977         <exampleNumber>101234567</exampleNumber>
23978       </fixedLine>
23979       <mobile>
23980         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
23981              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
23982              in prominent places online, even though the ITU document says numbers must be 10 digits
23983              long (including the national prefix). -->
23984         <nationalNumberPattern>
23985           (?:
23986             6[0-5]|
23987             7[0-46-9]
23988           )\d{7}|
23989           8[1-4]\d{3,7}
23990         </nationalNumberPattern>
23991         <exampleNumber>711234567</exampleNumber>
23992       </mobile>
23993       <tollFree>
23994         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23995         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23996         <exampleNumber>801234567</exampleNumber>
23997       </tollFree>
23998       <premiumRate>
23999         <nationalNumberPattern>
24000           86[2-9]\d{6}|
24001           90\d{7}
24002         </nationalNumberPattern>
24003         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24004         <exampleNumber>862345678</exampleNumber>
24005       </premiumRate>
24006       <sharedCost>
24007         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
24008         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24009         <exampleNumber>860123456</exampleNumber>
24010       </sharedCost>
24011       <voip>
24012         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
24013         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24014         <exampleNumber>871234567</exampleNumber>
24015       </voip>
24016       <uan>
24017         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
24018              numbers. -->
24019         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
24020         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24021         <exampleNumber>861123456</exampleNumber>
24022       </uan>
24023     </territory>
24024
24025     <!-- Zambia -->
24026     <territory id="ZM" countryCode="260" internationalPrefix="00"
24027                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24028       <references>
24029         <sourceUrl>http://www.itu.int/oth/T02020000E8/en</sourceUrl>
24030       </references>
24031       <availableFormats>
24032         <numberFormat pattern="([29]\d)(\d{7})">
24033           <leadingDigits>[29]</leadingDigits>
24034           <format>$1 $2</format>
24035         </numberFormat>
24036         <numberFormat pattern="(800)(\d{3})(\d{3})">
24037           <leadingDigits>8</leadingDigits>
24038           <format>$1 $2 $3</format>
24039         </numberFormat>
24040       </availableFormats>
24041       <generalDesc>
24042         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
24043         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24044       </generalDesc>
24045       <fixedLine>
24046         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
24047         <exampleNumber>211234567</exampleNumber>
24048       </fixedLine>
24049       <mobile>
24050         <!-- Adding extra prefixes 50 and 6[1-57-9] since SMS messages have been successfully
24051              delivered to these numbers, and numbers like this can be found on the Internet. Adding
24052              prefix 960 based on information received from MTN Zambia. The 97 range has been
24053              expanded based on their IR21 document, which states the range 97[1-9] is used. -->
24054         <nationalNumberPattern>
24055           9(?:
24056             5[05]|
24057             6\d|
24058             7[1-9]
24059           )\d{6}
24060         </nationalNumberPattern>
24061         <exampleNumber>955123456</exampleNumber>
24062       </mobile>
24063       <tollFree>
24064         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
24065         <exampleNumber>800123456</exampleNumber>
24066       </tollFree>
24067     </territory>
24068
24069     <!-- Zimbabwe -->
24070     <territory id="ZW" countryCode="263" internationalPrefix="00"
24071                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24072       <references>
24073         <sourceUrl>http://www.itu.int/oth/T02020000E9/en</sourceUrl>
24074       </references>
24075       <availableFormats>
24076         <!-- One-digit area codes -->
24077         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
24078           <leadingDigits>
24079             4|
24080             9[2-9]
24081           </leadingDigits>
24082           <format>$1 $2 $3</format>
24083         </numberFormat>
24084         <!-- Mobile numbers -->
24085         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
24086           <leadingDigits>
24087             [19]1|
24088             7
24089           </leadingDigits>
24090           <format>$1 $2 $3</format>
24091         </numberFormat>
24092         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
24093           <leadingDigits>86[24]</leadingDigits>
24094           <format>$1 $2 $3</format>
24095         </numberFormat>
24096         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
24097         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
24098           <leadingDigits>
24099             2(?:
24100               [278]|
24101               0[45]|
24102               [49]8
24103             )|
24104             3(?:
24105               08|
24106               17|
24107               3[78]|
24108               [78]
24109             )|
24110             5[15][78]|
24111             6(?:
24112               [29]8|
24113               37|
24114               [68][78]
24115             )
24116           </leadingDigits>
24117           <format>$1 $2</format>
24118         </numberFormat>
24119         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
24120           <leadingDigits>
24121             2(?:
24122               [278]|
24123               0[45]|
24124               48
24125             )|
24126             3(?:
24127               08|
24128               17|
24129               3[78]|
24130               [78]
24131             )|
24132             5[15][78]|
24133             6(?:
24134               [29]8|
24135               37|
24136               [68][78]
24137             )|
24138             80
24139           </leadingDigits>
24140           <format>$1 $2 $3</format>
24141         </numberFormat>
24142         <!-- Two-digit area codes -->
24143         <numberFormat pattern="([1-356]\d)(\d{3,5})">
24144           <leadingDigits>
24145             1[3-9]|
24146             2(?:
24147               [1-469]|
24148               0[0-35-9]|
24149               [45][0-79]
24150             )|
24151             3(?:
24152               0[0-79]|
24153               1[0-689]|
24154               [24-69]|
24155               3[0-69]
24156             )|
24157             5(?:
24158               [02-46-9]|
24159               [15][0-69]
24160             )|
24161             6(?:
24162               [0145]|
24163               [29][0-79]|
24164               3[0-689]|
24165               [68][0-69]
24166             )
24167           </leadingDigits>
24168           <format>$1 $2</format>
24169         </numberFormat>
24170         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
24171           <leadingDigits>
24172             1[3-9]|
24173             2(?:
24174               [1-469]|
24175               0[0-35-9]|
24176               [45][0-79]
24177             )|
24178             3(?:
24179               0[0-79]|
24180               1[0-689]|
24181               [24-69]|
24182               3[0-69]
24183             )|
24184             5(?:
24185               [02-46-9]|
24186               [15][0-69]
24187             )|
24188             6(?:
24189               [0145]|
24190               [29][0-79]|
24191               3[0-689]|
24192               [68][0-69]
24193             )
24194           </leadingDigits>
24195           <format>$1 $2 $3</format>
24196         </numberFormat>
24197         <!-- Four-digit area codes -->
24198         <numberFormat pattern="([25]\d{3})(\d{3,5})">
24199           <leadingDigits>
24200             (?:
24201               25|
24202               54
24203             )8
24204           </leadingDigits>
24205           <leadingDigits>
24206             258[23]|
24207             5483
24208           </leadingDigits>
24209           <format>$1 $2</format>
24210         </numberFormat>
24211         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
24212           <leadingDigits>
24213             (?:
24214               25|
24215               54
24216             )8
24217           </leadingDigits>
24218           <leadingDigits>
24219             258[23]|
24220             5483
24221           </leadingDigits>
24222           <format>$1 $2 $3</format>
24223         </numberFormat>
24224         <!-- VOIP numbers -->
24225         <numberFormat pattern="(8\d{3})(\d{6})">
24226           <leadingDigits>86</leadingDigits>
24227           <format>$1 $2</format>
24228         </numberFormat>
24229       </availableFormats>
24230       <generalDesc>
24231         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
24232              variable in length and the possible prefixes clash with the country code. -->
24233         <nationalNumberPattern>
24234           2(?:
24235             [012457-9]\d{3,8}|
24236             6\d{3,6}
24237           )|
24238           [13-79]\d{4,8}|
24239           8[06]\d{8}
24240         </nationalNumberPattern>
24241         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
24242       </generalDesc>
24243       <fixedLine>
24244         <!-- Numbering is grouped by subscriber-number length. -->
24245         <nationalNumberPattern>
24246           (?:
24247             1[3-9]|
24248             2(?:
24249               0[45]|
24250               [16]|
24251               2[28]|
24252               [49]8?|
24253               58[23]|
24254               7[246]|
24255               8[1346-9]
24256             )|
24257             3(?:
24258               08?|
24259               17?|
24260               3[78]|
24261               [2456]|
24262               7[1569]|
24263               8[379]
24264             )|
24265             5(?:
24266               [07-9]|
24267               1[78]|
24268               483|
24269               5(?:
24270                 7?|
24271                 8
24272               )
24273             )|
24274             6(?:
24275               0|
24276               28|
24277               37?|
24278               [45][68][78]|
24279               98?
24280             )|
24281             848
24282           )\d{3,6}|
24283           (?:
24284             2(?:
24285               27|
24286               5|
24287               7[135789]|
24288               8[25]
24289             )|
24290             3[39]|
24291             5[1-46]|
24292             6[126-8]
24293           )\d{4,6}|
24294           2(?:
24295             (?:
24296               0|
24297               70
24298             )\d{5,6}|
24299             2[05]\d{7}
24300           )|
24301           (?:
24302             4\d|
24303             9[2-8]
24304           )\d{4,7}
24305         </nationalNumberPattern>
24306         <exampleNumber>1312345</exampleNumber>
24307       </fixedLine>
24308       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
24309            also being used by the carriers as mobile prefixes. -->
24310       <mobile>
24311         <nationalNumberPattern>
24312           7[1378]\d{7}|
24313           86(?:
24314             22|
24315             44
24316           )\d{6}
24317         </nationalNumberPattern>
24318         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24319         <exampleNumber>711234567</exampleNumber>
24320       </mobile>
24321       <tollFree>
24322         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
24323         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24324         <exampleNumber>8001234567</exampleNumber>
24325       </tollFree>
24326       <!-- No premiumRate information can be found. -->
24327       <voip>
24328         <nationalNumberPattern>
24329           86(?:
24330             1[12]|
24331             30|
24332             55|
24333             77|
24334             8[367]|
24335             99
24336           )\d{6}
24337         </nationalNumberPattern>
24338         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24339         <exampleNumber>8686123456</exampleNumber>
24340       </voip>
24341     </territory>
24342
24343     <!-- Universal International Toll Free Number -->
24344     <territory id="001" countryCode="800" leadingZeroPossible="true">
24345       <references>
24346         <sourceUrl>http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx</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       <tollFree>
24367         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24368       </tollFree>
24369     </territory>
24370
24371     <!-- Universal International Shared Cost Number -->
24372     <territory id="001" countryCode="808" leadingZeroPossible="true">
24373       <references>
24374         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24375       </references>
24376       <availableFormats>
24377         <numberFormat pattern="(\d{4})(\d{4})">
24378           <format>$1 $2</format>
24379         </numberFormat>
24380       </availableFormats>
24381       <generalDesc>
24382         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24383         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24384         <exampleNumber>12345678</exampleNumber>
24385       </generalDesc>
24386       <fixedLine>
24387         <nationalNumberPattern>NA</nationalNumberPattern>
24388         <possibleNumberPattern>NA</possibleNumberPattern>
24389       </fixedLine>
24390       <mobile>
24391         <nationalNumberPattern>NA</nationalNumberPattern>
24392         <possibleNumberPattern>NA</possibleNumberPattern>
24393       </mobile>
24394       <sharedCost>
24395         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24396       </sharedCost>
24397     </territory>
24398
24399     <!-- Inmarsat Global Limited -->
24400     <territory id="001" countryCode="870">
24401       <references>
24402         <sourceUrl>http://www.itu.int/oth/T0202000065/en</sourceUrl>
24403         <sourceUrl>http://www.inmarsat.com</sourceUrl>
24404       </references>
24405       <availableFormats>
24406         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24407           <format>$1 $2 $3</format>
24408         </numberFormat>
24409       </availableFormats>
24410       <generalDesc>
24411         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
24412         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24413         <exampleNumber>301234567</exampleNumber>
24414       </generalDesc>
24415       <fixedLine>
24416         <nationalNumberPattern>NA</nationalNumberPattern>
24417         <possibleNumberPattern>NA</possibleNumberPattern>
24418       </fixedLine>
24419       <mobile>
24420         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
24421         <nationalNumberPattern>
24422           (?:
24423             [356]\d|
24424             7[6-8]
24425           )\d{7}
24426         </nationalNumberPattern>
24427       </mobile>
24428     </territory>
24429
24430     <!-- VISIONng -->
24431     <!-- Number length has been derived from examples found online. -->
24432     <territory id="001" countryCode="878">
24433       <references>
24434         <sourceUrl>http://www.itu.int/oth/T02020000E5/en</sourceUrl>
24435       </references>
24436       <availableFormats>
24437         <!-- Formatting chosen based on online examples. -->
24438         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
24439           <format>$1 $2 $3</format>
24440         </numberFormat>
24441       </availableFormats>
24442       <generalDesc>
24443         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
24444         <possibleNumberPattern>\d{12}</possibleNumberPattern>
24445         <exampleNumber>101234567890</exampleNumber>
24446       </generalDesc>
24447       <fixedLine>
24448         <nationalNumberPattern>NA</nationalNumberPattern>
24449         <possibleNumberPattern>NA</possibleNumberPattern>
24450       </fixedLine>
24451       <mobile>
24452         <nationalNumberPattern>NA</nationalNumberPattern>
24453         <possibleNumberPattern>NA</possibleNumberPattern>
24454       </mobile>
24455       <voip>
24456         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
24457       </voip>
24458     </territory>
24459
24460     <!-- Iridium -->
24461     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
24462          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
24463          are. For this reason, we only support Iridium numbers at the moment. -->
24464     <territory id="001" countryCode="881">
24465       <references>
24466         <sourceUrl>http://www.iridium.com</sourceUrl>
24467         <sourceUrl>http://www.itu.int/oth/T0202000069/en</sourceUrl>
24468       </references>
24469       <availableFormats>
24470         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
24471         <numberFormat pattern="(\d)(\d{3})(\d{5})">
24472           <leadingDigits>[67]</leadingDigits>
24473           <format>$1 $2 $3</format>
24474         </numberFormat>
24475       </availableFormats>
24476       <generalDesc>
24477         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24478         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24479         <exampleNumber>612345678</exampleNumber>
24480       </generalDesc>
24481       <fixedLine>
24482         <nationalNumberPattern>NA</nationalNumberPattern>
24483         <possibleNumberPattern>NA</possibleNumberPattern>
24484       </fixedLine>
24485       <mobile>
24486         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24487       </mobile>
24488     </territory>
24489
24490     <territory id="001" countryCode="882">
24491       <references>
24492         <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
24493         <sourceUrl>http://www.itu.int/oth/T0202000054/en</sourceUrl>
24494         <sourceUrl>http://www.gsm.aq/numberplan.php</sourceUrl>
24495         <sourceUrl>http://www.global.aq</sourceUrl>
24496         <!-- Maritime Communications Partner (MCP) +88232 -->
24497         <sourceUrl>http://www.itu.int/oth/T02020000F4/en</sourceUrl>
24498         <!-- Oration Technologies +88237 -->
24499         <sourceUrl>http://www.itu.int/oth/T02020000A0/en</sourceUrl>
24500         <!-- Telespazio S.p.A. +88213 -->
24501         <sourceUrl>http://www.itu.int/oth/T02020000CC/en</sourceUrl>
24502         <!-- Thuraya +88216 -->
24503         <sourceUrl>http://www.itu.int/oth/T02020000CF/en</sourceUrl>
24504       </references>
24505       <availableFormats>
24506         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
24507           <leadingDigits>3[23]</leadingDigits>
24508           <format>$1 $2 $3</format>
24509         </numberFormat>
24510         <numberFormat pattern="(\d{2})(\d{5})">
24511           <leadingDigits>
24512             16|
24513             342
24514           </leadingDigits>
24515           <format>$1 $2</format>
24516         </numberFormat>
24517         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
24518           <leadingDigits>34[57]</leadingDigits>
24519           <format>$1 $2 $3</format>
24520         </numberFormat>
24521         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
24522           <leadingDigits>348</leadingDigits>
24523           <format>$1 $2 $3</format>
24524         </numberFormat>
24525         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
24526           <leadingDigits>1</leadingDigits>
24527           <format>$1 $2 $3</format>
24528         </numberFormat>
24529         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
24530           <leadingDigits>16</leadingDigits>
24531           <format>$1 $2 $3</format>
24532         </numberFormat>
24533         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
24534           <leadingDigits>16</leadingDigits>
24535           <format>$1 $2 $3</format>
24536         </numberFormat>
24537       </availableFormats>
24538       <generalDesc>
24539         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
24540         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24541         <exampleNumber>3451234567</exampleNumber>
24542       </generalDesc>
24543       <fixedLine>
24544         <nationalNumberPattern>NA</nationalNumberPattern>
24545         <possibleNumberPattern>NA</possibleNumberPattern>
24546       </fixedLine>
24547       <mobile>
24548         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
24549              Oration based on numbers found online. -->
24550         <nationalNumberPattern>
24551           3(?:
24552             2\d{3}|
24553             37\d{2}|
24554             4(?:
24555               2|
24556               7\d{3}
24557             )
24558           )\d{4}
24559         </nationalNumberPattern>
24560         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
24561       </mobile>
24562       <voip>
24563         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
24564         <nationalNumberPattern>
24565           1(?:
24566             3(?:
24567               0[0347]|
24568               [13][0139]|
24569               2[035]|
24570               4[013568]|
24571               6[0459]|
24572               7[06]|
24573               8[15678]|
24574               9[0689]
24575             )\d{4}|
24576             6\d{5,10}
24577           )|
24578           345\d{7}
24579         </nationalNumberPattern>
24580         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24581       </voip>
24582       <voicemail>
24583         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
24584         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24585       </voicemail>
24586     </territory>
24587
24588     <territory id="001" countryCode="883">
24589       <references>
24590         <!-- bandwidth.com -->
24591         <sourceUrl>http://www.itu.int/oth/T02020000FB/en</sourceUrl>
24592         <!-- SipMe -->
24593         <sourceUrl>http://www.itu.int/oth/T02020000FC/en</sourceUrl>
24594         <!-- Voxbone -->
24595         <sourceUrl>http://www.itu.int/oth/T02020000F3/en</sourceUrl>
24596       </references>
24597       <availableFormats>
24598         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24599           <leadingDigits>510</leadingDigits>
24600           <format>$1 $2 $3</format>
24601         </numberFormat>
24602         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
24603           <leadingDigits>510</leadingDigits>
24604           <format>$1 $2 $3 $4</format>
24605         </numberFormat>
24606         <!-- When only 8 digits follow the "area code" formatting as XXXX XXXX
24607              seems preferred (see Bandwidth.com and SipMe). -->
24608         <numberFormat pattern="(\d{4})(\d{4})(\d{4})">
24609           <leadingDigits>51[13]</leadingDigits>
24610           <format>$1 $2 $3</format>
24611         </numberFormat>
24612       </availableFormats>
24613       <generalDesc>
24614         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
24615              costs can be found online, so we don't include them here for now. -->
24616         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
24617         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
24618         <exampleNumber>510012345</exampleNumber>
24619       </generalDesc>
24620       <fixedLine>
24621         <nationalNumberPattern>NA</nationalNumberPattern>
24622         <possibleNumberPattern>NA</possibleNumberPattern>
24623       </fixedLine>
24624       <mobile>
24625         <nationalNumberPattern>NA</nationalNumberPattern>
24626         <possibleNumberPattern>NA</possibleNumberPattern>
24627       </mobile>
24628       <voip>
24629         <nationalNumberPattern>
24630           51(?:
24631             00\d{5}(?:\d{3})?|
24632             [13]0\d{8}
24633           )
24634         </nationalNumberPattern>
24635       </voip>
24636     </territory>
24637
24638     <!-- United Nations- OCHA -->
24639     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
24640          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
24641          the tariff of a national call. -->
24642     <territory id="001" countryCode="888" leadingZeroPossible="true">
24643       <references>
24644         <sourceUrl>http://www.itu.int/oth/T02020000FA/en</sourceUrl>
24645       </references>
24646       <availableFormats>
24647         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
24648           <format>$1 $2 $3</format>
24649         </numberFormat>
24650       </availableFormats>
24651       <generalDesc>
24652         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24653         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24654         <exampleNumber>12345678901</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       <uan>
24665         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24666       </uan>
24667     </territory>
24668
24669     <!-- Universal International Premium Rate Number -->
24670     <territory id="001" countryCode="979" leadingZeroPossible="true">
24671       <references>
24672         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24673       </references>
24674       <availableFormats>
24675         <numberFormat pattern="(\d)(\d{4})(\d{4})">
24676           <format>$1 $2 $3</format>
24677         </numberFormat>
24678       </availableFormats>
24679       <generalDesc>
24680         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24681         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24682         <exampleNumber>123456789</exampleNumber>
24683       </generalDesc>
24684       <fixedLine>
24685         <nationalNumberPattern>NA</nationalNumberPattern>
24686         <possibleNumberPattern>NA</possibleNumberPattern>
24687       </fixedLine>
24688       <mobile>
24689         <nationalNumberPattern>NA</nationalNumberPattern>
24690         <possibleNumberPattern>NA</possibleNumberPattern>
24691       </mobile>
24692       <premiumRate>
24693         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24694       </premiumRate>
24695     </territory>
24696   </territories>
24697 </phoneNumberMetadata>