Metadata update v7.0.3
[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[0-24-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                [069]|
766                1[1568]|
767                2[15]|
768                3[145]|
769                4[13]|
770                5[14-8]|
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        nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG"
788        mobileNumberPortableRegion="true">
789       <references>
790         <sourceUrl>http://www.itu.int/oth/T0202000009/en</sourceUrl>
791         <!-- On the following link, click on Indicativos Interurbanos to access detailed
792              information. -->
793         <sourceUrl>http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp</sourceUrl>
794         <!-- Download XLS spreadsheet from "Númeración Geográfica" link on following page: -->
795         <sourceUrl>http://www.cnc.gob.ar/asignaciones-a-la-fecha_p445</sourceUrl>
796         <sourceUrl>http://en.wikipedia.org/wiki/+54</sourceUrl>
797       </references>
798       <availableFormats>
799         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
800           <leadingDigits>[68]</leadingDigits>
801           <format>$1-$2-$3</format>
802         </numberFormat>
803         <!-- Format local numbers in two groups. The leading digits are 2-9 since the ITU document
804              says that the digit zero and one will not be present at the start of the subscriber
805              number (which starts with an "Exchange characteristic"). -->
806         <numberFormat pattern="(\d{2})(\d{4})" nationalPrefixFormattingRule="$FG">
807           <leadingDigits>[2-9]</leadingDigits>
808           <format>$1-$2</format>
809           <intlFormat>NA</intlFormat>
810         </numberFormat>
811         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
812           <leadingDigits>[2-9]</leadingDigits>
813           <format>$1-$2</format>
814           <intlFormat>NA</intlFormat>
815         </numberFormat>
816         <numberFormat pattern="(\d{4})(\d{4})" nationalPrefixFormattingRule="$FG">
817           <leadingDigits>[2-9]</leadingDigits>
818           <format>$1-$2</format>
819           <intlFormat>NA</intlFormat>
820         </numberFormat>
821         <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
822           <leadingDigits>911</leadingDigits>
823           <format>$2 15-$3-$4</format>
824           <intlFormat>$1 $2 $3-$4</intlFormat>
825         </numberFormat>
826         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
827           <!-- The regular expressions below were generated semi-automatically from data extracted
828                from the XLS spreadsheet downloaded from the "Númeración Geográfica" link cited
829                above. Each pattern captures all 3-3-4 prefixes for its length, but may also capture
830                some 4-2-4 cases.
831
832                In cases where a range contains both 3-3-4 and 4-2-4 prefixes, the most commonly used
833                one should be considered the default.
834                * If there are more distinct 4-2-4 prefixes, then the regular expression should
835                  INCLUDE only the explicitly mentioned 3-3-4 prefixes.
836                * If there are more distinct 3-3-4 prefixes, then the regular expression should
837                  EXCLUDE only the explicitly mentioned 4-2-4 prefixes.
838                This should help maximize the chances of new ranges automatically being assigned to
839                the right form.
840
841                In the final (most specific) regular expression, the few remaining ambiguous cases
842                are decided by comparing usage counts. Any manual edits to these expressions not
843                reflected in the XLS spreadsheet must be clearly called out below:
844
845                Added Manually as 3-3-4 format:
846                * 2981 (General Roca, Río Negro) : Numbers found online suggest 3-3-4
847
848                See also:
849                https://github.com/googlei18n/libphonenumber/issues/611
850                https://github.com/googlei18n/libphonenumber/issues/559
851                -->
852           <!-- Do NOT copy this into the section below. Removing the leading '9' will make it match
853                only 2 digits and the first <leadingDigits> section must always match 3 digits. -->
854           <leadingDigits>
855             9(?:
856               2[234689]|
857               3[3-8]
858             )
859           </leadingDigits>
860           <!-- If modified, copy this expression into the section below, minus the leading '9' -->
861           <leadingDigits>
862             9(?:
863               2(?:
864                 2[013]|
865                 3[067]|
866                 49|
867                 6[01346]|
868                 80|
869                 9[147-9]
870               )|
871               3(?:
872                 36|
873                 4[1-358]|
874                 5[138]|
875                 6[24]|
876                 7[069]|
877                 8[013578]
878               )
879             )
880           </leadingDigits>
881           <!-- Note that some patterns appear as both 3 and 4 digit area codes. In these cases
882                (to avoid going to 6 digits of discrimination) we simply pick the one with the
883                most uses. Patterns excluded from this expression will be treated as 4-2-4:
884                - XXXX (usage count as 3-digit code:usage count as 4-digit code)
885                - 2646 (7:15)   - excluded
886                - 3435 (39:63)  - excluded
887                - 3436 (16:54)  - excluded
888                - 3454 (90:48)
889                - 3455 (13:94)  - excluded
890                - 3456 (3:93)   - excluded
891                - 3584 (143:65)
892                - 3585 (21:42)  - excluded
893                - 3854 (115:73)
894                - 3855 (76:40)
895                - 3856 (19:44)  - excluded
896                - 3876 (56:99)  - excluded
897                - 3885 (120:45)
898                - 3886 (3:137)  - excluded
899                -->
900           <!-- If modified, copy this expression into the section below, minus the leading '9' -->
901           <leadingDigits>
902             9(?:
903               2(?:
904                 2(?:
905                   0[013-9]|
906                   [13]
907                 )|
908                 3(?:
909                   0[013-9]|
910                   [67]
911                 )|
912                 49|
913                 6(?:
914                   [0136]|
915                   4[0-59]
916                 )|
917                 8|
918                 9(?:
919                   [19]|
920                   44|
921                   7[013-9]|
922                   8[14]
923                 )
924               )|
925               3(?:
926                 36|
927                 4(?:
928                   [12]|
929                   [358]4
930                 )|
931                 5(?:
932                   1|
933                   3[0-24-689]|
934                   8[46]
935                 )|
936                 6|
937                 7[069]|
938                 8(?:
939                   [01]|
940                   34|
941                   [578][45]
942                 )
943               )
944             )
945           </leadingDigits>
946           <format>$2 15-$3-$4</format>
947           <intlFormat>$1 $2 $3-$4</intlFormat>
948         </numberFormat>
949         <!-- Both 4-3-3 and 4-2-4 have been seen online; we prefer the latter since it matches the
950              Argentinian ITU doc and wikipedia. -->
951         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
952           <leadingDigits>9[23]</leadingDigits>
953           <format>$2 15-$3-$4</format>
954           <intlFormat>$1 $2 $3-$4</intlFormat>
955         </numberFormat>
956         <numberFormat pattern="(11)(\d{4})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
957           <leadingDigits>1</leadingDigits>
958           <format>$1 $2-$3</format>
959         </numberFormat>
960         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
961         <numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
962           <!-- Never modify this manually, always copy from above and remove leading '9' -->
963           <leadingDigits>
964             2(?:
965               2[013]|
966               3[067]|
967               49|
968               6[01346]|
969               80|
970               9[147-9]
971             )|
972             3(?:
973               36|
974               4[1-358]|
975               5[138]|
976               6[24]|
977               7[069]|
978               8[013578]
979             )
980           </leadingDigits>
981           <!-- Never modify this manually, always copy from above and remove leading '9' -->
982           <leadingDigits>
983             2(?:
984               2(?:
985                 0[013-9]|
986                 [13]
987               )|
988               3(?:
989                 0[013-9]|
990                 [67]
991               )|
992               49|
993               6(?:
994                 [0136]|
995                 4[0-59]
996               )|
997               8|
998               9(?:
999                 [19]|
1000                 44|
1001                 7[013-9]|
1002                 8[14]
1003               )
1004             )|
1005             3(?:
1006               36|
1007               4(?:
1008                 [12]|
1009                 [358]4
1010               )|
1011               5(?:
1012                 1|
1013                 3[0-24-689]|
1014                 8[46]
1015               )|
1016               6|
1017               7[069]|
1018               8(?:
1019                 [01]|
1020                 34|
1021                 [578][45]
1022               )
1023             )
1024           </leadingDigits>
1025           <format>$1 $2-$3</format>
1026         </numberFormat>
1027         <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
1028           <leadingDigits>[23]</leadingDigits>
1029           <format>$1 $2-$3</format>
1030         </numberFormat>
1031         <!-- Format short numbers as a block. -->
1032         <numberFormat pattern="(\d{3})" nationalPrefixFormattingRule="$FG">
1033           <leadingDigits>
1034             1[012]|
1035             911
1036           </leadingDigits>
1037           <format>$1</format>
1038           <intlFormat>NA</intlFormat>
1039         </numberFormat>
1040       </availableFormats>
1041       <generalDesc>
1042         <!-- We restrict the second digit after 1 here so we can recognise and strip the 15 mobile
1043            carrier prefix when we see it. -->
1044         <nationalNumberPattern>
1045           11\d{8}|
1046           [2368]\d{9}|
1047           9\d{10}
1048         </nationalNumberPattern>
1049         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1050       </generalDesc>
1051       <noInternationalDialling>
1052         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1053         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1054         <exampleNumber>8101234567</exampleNumber>
1055       </noInternationalDialling>
1056       <fixedLine>
1057         <!-- Also covering fixed satellite service numbers (670). -->
1058         <nationalNumberPattern>
1059           11\d{8}|
1060           (?:
1061             2(?:
1062               2(?:
1063                 [013]\d|
1064                 2[13-79]|
1065                 4[1-6]|
1066                 5[2457]|
1067                 6[124-8]|
1068                 7[1-4]|
1069                 8[13-6]|
1070                 9[1267]
1071               )|
1072               3(?:
1073                 1[467]|
1074                 2[03-6]|
1075                 3[13-8]|
1076                 [49][2-6]|
1077                 5[2-8]|
1078                 [067]\d
1079               )|
1080               4(?:
1081                 7[3-8]|
1082                 9\d
1083               )|
1084               6(?:
1085                 [01346]\d|
1086                 2[24-6]|
1087                 5[15-8]
1088               )|
1089               80\d|
1090               9(?:
1091                 [0124789]\d|
1092                 3[1-6]|
1093                 5[234]|
1094                 6[2-46]
1095               )
1096             )|
1097             3(?:
1098               3(?:
1099                 2[79]|
1100                 6\d|
1101                 8[2578]
1102               )|
1103               4(?:
1104                 [78]\d|
1105                 0[0124-9]|
1106                 [1-35]\d|
1107                 4[24-7]|
1108                 6[02-9]|
1109                 9[123678]
1110               )|
1111               5(?:
1112                 [138]\d|
1113                 2[1245]|
1114                 4[1-9]|
1115                 6[2-4]|
1116                 7[1-6]
1117               )|
1118               6[24]\d|
1119               7(?:
1120                 [0469]\d|
1121                 1[1568]|
1122                 2[013-9]|
1123                 3[145]|
1124                 5[14-8]|
1125                 7[2-57]|
1126                 8[0-24-9]
1127               )|
1128               8(?:
1129                 [013578]\d|
1130                 2[15-7]|
1131                 4[13-6]|
1132                 6[1-357-9]|
1133                 9[124]
1134               )
1135             )|
1136             670\d
1137           )\d{6}
1138         </nationalNumberPattern>
1139         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1140         <exampleNumber>1123456789</exampleNumber>
1141       </fixedLine>
1142       <mobile>
1143         <!-- Also covers mobile satellite services (675 numbers). -->
1144         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
1145              area code is in the range 2-9. The four-digit area-code checking is done in detail if
1146              we attempt to strip the caller-pays token (15) from the number. -->
1147         <nationalNumberPattern>
1148           675\d{7}|
1149           9(?:
1150             11[2-9]\d{7}|
1151             (?:
1152               2(?:
1153                 2[013]|
1154                 3[067]|
1155                 49|
1156                 6[01346]|
1157                 80|
1158                 9[147-9]
1159               )|
1160               3(?:
1161                 36|
1162                 4[12358]|
1163                 5[138]|
1164                 6[24]|
1165                 7[069]|
1166                 8[013578]
1167               )
1168             )[2-9]\d{6}|
1169             \d{4}[2-9]\d{5}
1170           )
1171         </nationalNumberPattern>
1172         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1173         <exampleNumber>91123456789</exampleNumber>
1174       </mobile>
1175       <tollFree>
1176         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
1177         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1178         <exampleNumber>8001234567</exampleNumber>
1179       </tollFree>
1180       <premiumRate>
1181         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
1182         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1183         <exampleNumber>6001234567</exampleNumber>
1184       </premiumRate>
1185       <uan>
1186         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1187         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1188         <exampleNumber>8101234567</exampleNumber>
1189       </uan>
1190     </territory>
1191
1192     <!-- American Samoa -->
1193     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
1194                internationalPrefix="011">
1195       <references>
1196         <sourceUrl>http://www.itu.int/oth/T0202000004/en</sourceUrl>
1197       </references>
1198       <generalDesc>
1199         <!-- NANPA country - uses US formatting rules -->
1200         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
1201         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1202       </generalDesc>
1203       <fixedLine>
1204         <nationalNumberPattern>
1205           6846(?:
1206             22|
1207             33|
1208             44|
1209             55|
1210             77|
1211             88|
1212             9[19]
1213           )\d{4}
1214         </nationalNumberPattern>
1215         <exampleNumber>6846221234</exampleNumber>
1216       </fixedLine>
1217       <mobile>
1218         <!-- Added 25[246], operated from Blue Sky. Added 731, 770, operated by ASTCA. -->
1219         <nationalNumberPattern>
1220           684(?:
1221             25[2468]|
1222             7(?:
1223               3[13]|
1224               70
1225             )
1226           )\d{4}
1227         </nationalNumberPattern>
1228         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1229         <exampleNumber>6847331234</exampleNumber>
1230       </mobile>
1231       <tollFree>
1232         <nationalNumberPattern>
1233           8(?:
1234             00|
1235             44|
1236             55|
1237             66|
1238             77|
1239             88
1240           )[2-9]\d{6}
1241         </nationalNumberPattern>
1242         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1243         <exampleNumber>8002123456</exampleNumber>
1244       </tollFree>
1245       <premiumRate>
1246         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1247         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1248         <exampleNumber>9002123456</exampleNumber>
1249       </premiumRate>
1250       <personalNumber>
1251         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
1252         <nationalNumberPattern>
1253           5(?:
1254             00|
1255             33|
1256             44|
1257             66|
1258             77
1259           )[2-9]\d{6}
1260         </nationalNumberPattern>
1261         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1262         <exampleNumber>5002345678</exampleNumber>
1263       </personalNumber>
1264     </territory>
1265
1266     <!-- Austria -->
1267     <territory id="AT" countryCode="43" internationalPrefix="00"
1268                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1269                mobileNumberPortableRegion="true">
1270       <references>
1271         <sourceUrl>http://www.rtr.at/en/tk/E129</sourceUrl>
1272       </references>
1273       <availableFormats>
1274         <numberFormat pattern="(1)(\d{3,12})">
1275           <leadingDigits>1</leadingDigits>
1276           <format>$1 $2</format>
1277         </numberFormat>
1278         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
1279              found on Austrian web pages. -->
1280         <numberFormat pattern="(5\d)(\d{3,5})">
1281           <leadingDigits>5[079]</leadingDigits>
1282           <format>$1 $2</format>
1283         </numberFormat>
1284         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
1285           <leadingDigits>5[079]</leadingDigits>
1286           <format>$1 $2 $3</format>
1287         </numberFormat>
1288         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
1289           <leadingDigits>5[079]</leadingDigits>
1290           <format>$1 $2 $3</format>
1291         </numberFormat>
1292         <numberFormat pattern="(\d{3})(\d{3,10})">
1293           <leadingDigits>
1294             316|
1295             46|
1296             51|
1297             732|
1298             6(?:
1299               44|
1300               5[0-3579]|
1301               [6-9]
1302             )|
1303             7(?:
1304               1|
1305               [28]0
1306             )|
1307             [89]
1308           </leadingDigits>
1309           <format>$1 $2</format>
1310         </numberFormat>
1311         <numberFormat pattern="(\d{4})(\d{3,9})">
1312           <leadingDigits>
1313             2|
1314             3(?:
1315               1[1-578]|
1316               [3-8]
1317             )|
1318             4[2378]|
1319             5[2-6]|
1320             6(?:
1321               [12]|
1322               4[1-35-9]|
1323               5[468]
1324             )|
1325             7(?:
1326               2[1-8]|
1327               35|
1328               4[1-8]|
1329               [5-79]
1330             )
1331           </leadingDigits>
1332             <format>$1 $2</format>
1333           </numberFormat>
1334       </availableFormats>
1335       <generalDesc>
1336         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
1337         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
1338       </generalDesc>
1339       <fixedLine>
1340         <!-- Note that the full area code is not validated - just the first 3 digits. This also
1341              means that even though for most Austrian numbers the minimum length is 7, we allow 6
1342              since we don't differentiate below between 3 and 4 digit area codes for reasons of
1343              efficiency. -->
1344         <nationalNumberPattern>
1345           1\d{3,12}|
1346           (?:
1347             2(?:
1348               1[467]|
1349               2[13-8]|
1350               5[2357]|
1351               6[1-46-8]|
1352               7[1-8]|
1353               8[124-7]|
1354               9[1458]
1355             )|
1356             3(?:
1357               1[1-8]|
1358               3[23568]|
1359               4[5-7]|
1360               5[1378]|
1361               6[1-38]|
1362               8[3-68]
1363             )|
1364             4(?:
1365               2[1-8]|
1366               35|
1367               63|
1368               7[1368]|
1369               8[2457]
1370             )|
1371             5(?:
1372               12|
1373               2[1-8]|
1374               3[357]|
1375               4[147]|
1376               5[12578]|
1377               6[37]
1378             )|
1379             6(?:
1380               13|
1381               2[1-47]|
1382               4[1-35-8]|
1383               5[468]|
1384               62
1385             )|
1386             7(?:
1387               2[1-8]|
1388               3[25]|
1389               4[13478]|
1390               5[68]|
1391               6[16-8]|
1392               7[1-6]|
1393               9[45]
1394             )
1395           )\d{3,10}
1396         </nationalNumberPattern>
1397         <exampleNumber>1234567890</exampleNumber>
1398       </fixedLine>
1399       <mobile>
1400         <nationalNumberPattern>
1401           6(?:
1402             44|
1403             5[0-3579]|
1404             6[013-9]|
1405             [7-9]\d
1406           )\d{4,10}
1407         </nationalNumberPattern>
1408         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
1409         <exampleNumber>644123456</exampleNumber>
1410       </mobile>
1411       <tollFree>
1412         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
1413         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1414         <exampleNumber>800123456</exampleNumber>
1415       </tollFree>
1416       <premiumRate>
1417         <nationalNumberPattern>
1418           (?:
1419             711|
1420             9(?:
1421               0[01]|
1422               3[019]
1423             )
1424           )\d{6,10}
1425         </nationalNumberPattern>
1426         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1427         <exampleNumber>900123456</exampleNumber>
1428       </premiumRate>
1429       <sharedCost>
1430         <nationalNumberPattern>
1431           8(?:
1432             10|
1433             2[018]
1434           )\d{6,10}
1435         </nationalNumberPattern>
1436         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1437         <exampleNumber>810123456</exampleNumber>
1438       </sharedCost>
1439       <voip>
1440         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
1441         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1442         <exampleNumber>780123456</exampleNumber>
1443       </voip>
1444       <uan>
1445         <nationalNumberPattern>
1446           5(?:
1447             (?:
1448               0[1-9]|
1449               17
1450             )\d{2,10}|
1451             [79]\d{3,11}
1452           )|
1453           720\d{6,10}
1454         </nationalNumberPattern>
1455         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
1456         <exampleNumber>50123</exampleNumber>
1457       </uan>
1458     </territory>
1459
1460     <!-- Australia -->
1461     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
1462     <territory id="AU" countryCode="61" mainCountryForCode="true"
1463                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
1464                preferredInternationalPrefix="0011" nationalPrefix="0"
1465                mobileNumberPortableRegion="true">
1466       <references>
1467         <sourceUrl>http://www.itu.int/oth/T020200000D/en</sourceUrl>
1468         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
1469       </references>
1470       <availableFormats>
1471         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
1472           pattern="([2378])(\d{4})(\d{4})">
1473           <leadingDigits>[2378]</leadingDigits>
1474           <format>$1 $2 $3</format>
1475         </numberFormat>
1476         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1477           pattern="(\d{3})(\d{3})(\d{3})">
1478           <leadingDigits>
1479             [45]|
1480             14
1481           </leadingDigits>
1482           <format>$1 $2 $3</format>
1483         </numberFormat>
1484         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1485           pattern="(16)(\d{3})(\d{2,4})">
1486           <leadingDigits>16</leadingDigits>
1487           <format>$1 $2 $3</format>
1488         </numberFormat>
1489         <numberFormat nationalPrefixFormattingRule="$FG"
1490           pattern="(1[389]\d{2})(\d{3})(\d{3})">
1491           <leadingDigits>
1492             1(?:
1493               [38]0|
1494               90
1495             )
1496           </leadingDigits>
1497           <leadingDigits>
1498             1(?:
1499               [38]00|
1500               90
1501             )
1502           </leadingDigits>
1503           <format>$1 $2 $3</format>
1504         </numberFormat>
1505         <numberFormat nationalPrefixFormattingRule="$FG"
1506           pattern="(180)(2\d{3})">
1507           <leadingDigits>180</leadingDigits>
1508           <leadingDigits>1802</leadingDigits>
1509           <format>$1 $2</format>
1510         </numberFormat>
1511         <numberFormat nationalPrefixFormattingRule="$FG"
1512           pattern="(19\d)(\d{3})">
1513           <leadingDigits>19[13]</leadingDigits>
1514           <format>$1 $2</format>
1515         </numberFormat>
1516         <numberFormat nationalPrefixFormattingRule="$FG"
1517           pattern="(19\d{2})(\d{4})">
1518           <leadingDigits>19[67]</leadingDigits>
1519           <format>$1 $2</format>
1520         </numberFormat>
1521         <numberFormat nationalPrefixFormattingRule="$FG"
1522           pattern="(13)(\d{2})(\d{2})">
1523           <leadingDigits>13[1-9]</leadingDigits>
1524           <format>$1 $2 $3</format>
1525         </numberFormat>
1526       </availableFormats>
1527       <generalDesc>
1528         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
1529         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1530       </generalDesc>
1531       <noInternationalDialling>
1532         <nationalNumberPattern>
1533           1(?:
1534             3(?:
1535               \d{4}|
1536               00\d{6}
1537             )|
1538             80(?:
1539               0\d{6}|
1540               2\d{3}
1541             )
1542           )
1543         </nationalNumberPattern>
1544         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1545         <exampleNumber>1300123456</exampleNumber>
1546       </noInternationalDialling>
1547       <fixedLine>
1548         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
1549         <nationalNumberPattern>
1550           [237]\d{8}|
1551           8(?:
1552             [68]\d{3}|
1553             7[0-69]\d{2}|
1554             9(?:
1555               [02-9]\d{2}|
1556               1(?:
1557                 [0-57-9]\d|
1558                 6[0135-9]
1559               )
1560             )
1561           )\d{4}
1562         </nationalNumberPattern>
1563         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1564         <exampleNumber>212345678</exampleNumber>
1565       </fixedLine>
1566       <mobile>
1567         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
1568              other ranges 14[1-3] are not currently used. Note CC and CX should be updated as well
1569              if this pattern changes. -->
1570         <nationalNumberPattern>
1571           14(?:
1572             5\d|
1573             71
1574           )\d{5}|
1575           4(?:
1576             [0-2]\d|
1577             3[0-57-9]|
1578             4[47-9]|
1579             5[0-25-9]|
1580             6[6-9]|
1581             7[03-9]|
1582             8[17-9]|
1583             9[017-9]
1584           )\d{6}
1585         </nationalNumberPattern>
1586         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1587         <exampleNumber>412345678</exampleNumber>
1588       </mobile>
1589       <pager>
1590         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
1591         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
1592         <exampleNumber>1612345</exampleNumber>
1593       </pager>
1594       <tollFree>
1595         <nationalNumberPattern>
1596           180(?:
1597             0\d{3}|
1598             2
1599           )\d{3}
1600         </nationalNumberPattern>
1601         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1602         <exampleNumber>1800123456</exampleNumber>
1603       </tollFree>
1604       <premiumRate>
1605         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
1606         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1607         <exampleNumber>1900123456</exampleNumber>
1608       </premiumRate>
1609       <sharedCost>
1610       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
1611            although they charge a small local call connect fee (around 25c). These start with 13
1612            or 1300. -->
1613         <nationalNumberPattern>
1614           13(?:
1615             00\d{2}
1616           )?\d{4}
1617         </nationalNumberPattern>
1618         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1619         <exampleNumber>1300123456</exampleNumber>
1620       </sharedCost>
1621       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
1622            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
1623            from 0500000000 to 0590000000) -->
1624       <personalNumber>
1625         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
1626         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1627         <exampleNumber>500123456</exampleNumber>
1628       </personalNumber>
1629       <voip>
1630         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
1631         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1632         <exampleNumber>550123456</exampleNumber>
1633       </voip>
1634     </territory>
1635
1636     <!-- Aruba -->
1637     <territory id="AW" countryCode="297" internationalPrefix="00">
1638       <references>
1639         <sourceUrl>http://www.itu.int/oth/T020200000B/en</sourceUrl>
1640       </references>
1641       <availableFormats>
1642         <numberFormat pattern="(\d{3})(\d{4})">
1643           <format>$1 $2</format>
1644         </numberFormat>
1645       </availableFormats>
1646       <generalDesc>
1647         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
1648         <possibleNumberPattern>\d{7}</possibleNumberPattern>
1649       </generalDesc>
1650       <fixedLine>
1651         <nationalNumberPattern>
1652           5(?:
1653             2\d|
1654             8[1-9]
1655           )\d{4}
1656         </nationalNumberPattern>
1657         <exampleNumber>5212345</exampleNumber>
1658       </fixedLine>
1659       <mobile>
1660         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
1661              numbers found online. -->
1662         <nationalNumberPattern>
1663           (?:
1664             5(?:
1665               6\d|
1666               9[2-478]
1667             )|
1668             6(?:
1669               [039]0|
1670               22|
1671               4[01]|
1672               6[0-2]
1673             )|
1674             7[34]\d|
1675             9(?:
1676               6[45]|
1677               9[4-8]
1678             )
1679           )\d{4}
1680         </nationalNumberPattern>
1681         <exampleNumber>5601234</exampleNumber>
1682       </mobile>
1683       <tollFree>
1684         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
1685         <exampleNumber>8001234</exampleNumber>
1686       </tollFree>
1687       <premiumRate>
1688         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
1689         <exampleNumber>9001234</exampleNumber>
1690       </premiumRate>
1691       <voip>
1692         <nationalNumberPattern>
1693           28\d{5}|
1694           501\d{4}
1695         </nationalNumberPattern>
1696         <exampleNumber>5011234</exampleNumber>
1697       </voip>
1698     </territory>
1699
1700     <!-- Ã…land Islands. -->
1701     <!-- Metadata shared with Finland. -->
1702     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
1703                nationalPrefixFormattingRule="$NP$FG">
1704       <references>
1705         <sourceUrl>http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html</sourceUrl>
1706       </references>
1707       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
1708       <generalDesc>
1709         <nationalNumberPattern>
1710           [135]\d{5,9}|
1711           [27]\d{4,9}|
1712           4\d{5,10}|
1713           6\d{7,8}|
1714           8\d{6,9}
1715         </nationalNumberPattern>
1716         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
1717       </generalDesc>
1718       <noInternationalDialling>
1719         <!-- According to the national numbering plan, service numbers are in general not accessible
1720              from abroad, although 600/700/800 numbers may be. -->
1721         <nationalNumberPattern>
1722           [13]00\d{3,7}|
1723           2(?:
1724             0(?:
1725               0\d{3,7}|
1726               2[023]\d{1,6}|
1727               9[89]\d{1,6}
1728             )
1729           )|
1730           60(?:
1731             [12]\d{5,6}|
1732             6\d{7}
1733           )|
1734           7(?:
1735             1\d{7}|
1736             3\d{8}|
1737             5[03-9]\d{2,7}
1738           )
1739         </nationalNumberPattern>
1740         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1741         <exampleNumber>100123</exampleNumber>
1742       </noInternationalDialling>
1743       <fixedLine>
1744         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
1745         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
1746         <exampleNumber>1812345678</exampleNumber>
1747       </fixedLine>
1748       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
1749       <mobile>
1750         <nationalNumberPattern>
1751           4\d{5,10}|
1752           50\d{4,8}
1753         </nationalNumberPattern>
1754         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1755         <exampleNumber>412345678</exampleNumber>
1756       </mobile>
1757       <tollFree>
1758         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
1759         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1760         <exampleNumber>8001234567</exampleNumber>
1761       </tollFree>
1762       <premiumRate>
1763         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
1764         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1765         <exampleNumber>600123456</exampleNumber>
1766       </premiumRate>
1767       <uan>
1768         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
1769              assigned to institutions such as universities, the national post, etc, where they are
1770              not otherwise classified as toll-free or premium-rate numbers. -->
1771         <nationalNumberPattern>
1772           [13]0\d{4,8}|
1773           2(?:
1774             0(?:
1775               [016-8]\d{3,7}|
1776               [2-59]\d{2,7}
1777             )|
1778             9\d{4,8}
1779           )|
1780           60(?:
1781             [12]\d{5,6}|
1782             6\d{7}
1783           )|
1784           7(?:
1785             1\d{7}|
1786             3\d{8}|
1787             5[03-9]\d{2,7}
1788           )
1789         </nationalNumberPattern>
1790         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1791         <exampleNumber>10112345</exampleNumber>
1792       </uan>
1793     </territory>
1794
1795     <!-- Azerbaijan -->
1796     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
1797                nationalPrefixFormattingRule="($NP$FG)" mobileNumberPortableRegion="true">
1798       <references>
1799         <sourceUrl>http://www.itu.int/oth/T020200000F/en</sourceUrl>
1800       </references>
1801       <availableFormats>
1802         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
1803           <leadingDigits>
1804             (?:
1805               1[28]|
1806               2(?:
1807                 [45]2|
1808                 [0-36]
1809               )|
1810               365
1811             )
1812           </leadingDigits>
1813           <format>$1 $2 $3 $4</format>
1814         </numberFormat>
1815         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
1816           <leadingDigits>[4-8]</leadingDigits>
1817           <format>$1 $2 $3 $4</format>
1818         </numberFormat>
1819         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
1820           nationalPrefixFormattingRule="$NP$FG">
1821           <leadingDigits>9</leadingDigits>
1822           <format>$1 $2 $3 $4</format>
1823         </numberFormat>
1824       </availableFormats>
1825       <generalDesc>
1826         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
1827         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
1828       </generalDesc>
1829       <fixedLine>
1830         <nationalNumberPattern>
1831           (?:
1832             1[28]\d|
1833             2(?:
1834               02|
1835               1[24]|
1836               2[2-4]|
1837               33|
1838               [45]2|
1839               6[23]
1840             )|
1841             365
1842           )\d{6}
1843         </nationalNumberPattern>
1844         <exampleNumber>123123456</exampleNumber>
1845       </fixedLine>
1846       <mobile>
1847         <nationalNumberPattern>
1848           (?:
1849             4[04]|
1850             5[015]|
1851             60|
1852             7[07]
1853           )\d{7}
1854         </nationalNumberPattern>
1855         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1856         <exampleNumber>401234567</exampleNumber>
1857       </mobile>
1858       <tollFree>
1859         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
1860              suggest they are in fact national toll-free numbers. -->
1861         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
1862         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1863         <exampleNumber>881234567</exampleNumber>
1864       </tollFree>
1865       <premiumRate>
1866         <!-- These are marked as Interactive Calls in the ITU document. -->
1867         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
1868         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1869         <exampleNumber>900200123</exampleNumber>
1870       </premiumRate>
1871     </territory>
1872
1873     <!-- Bosnia and Herzegovina -->
1874     <territory id="BA" countryCode="387" internationalPrefix="00"
1875                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
1876                mobileNumberPortableRegion="true">
1877       <references>
1878         <!-- accessible from http://www.cra.ba/en/telecom/numbering/ -->
1879         <sourceUrl>http://www.rak.ba/eng/index.php?uid=1272016657</sourceUrl>
1880         <sourceUrl>http://en.wikipedia.org/wiki/+387</sourceUrl>
1881       </references>
1882       <availableFormats>
1883         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1884           <leadingDigits>[3-5]</leadingDigits>
1885           <format>$1 $2-$3</format>
1886         </numberFormat>
1887         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1888           <leadingDigits>
1889             6[1-356]|
1890             [7-9]
1891           </leadingDigits>
1892           <format>$1 $2 $3</format>
1893         </numberFormat>
1894         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
1895           <leadingDigits>6[047]</leadingDigits>
1896           <format>$1 $2 $3 $4</format>
1897         </numberFormat>
1898       </availableFormats>
1899       <generalDesc>
1900         <nationalNumberPattern>[3-9]\d{7,8}</nationalNumberPattern>
1901         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
1902       </generalDesc>
1903       <fixedLine>
1904         <nationalNumberPattern>
1905           (?:
1906             [35]\d|
1907             49
1908           )\d{6}
1909         </nationalNumberPattern>
1910         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
1911         <exampleNumber>30123456</exampleNumber>
1912       </fixedLine>
1913       <mobile>
1914         <nationalNumberPattern>
1915           6(?:
1916             03|
1917             44|
1918             71|
1919             [1-356]
1920           )\d{6}
1921         </nationalNumberPattern>
1922         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1923         <exampleNumber>61123456</exampleNumber>
1924       </mobile>
1925       <tollFree>
1926         <nationalNumberPattern>8[08]\d{6}</nationalNumberPattern>
1927         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1928         <exampleNumber>80123456</exampleNumber>
1929       </tollFree>
1930       <premiumRate>
1931         <nationalNumberPattern>9[0246]\d{6}</nationalNumberPattern>
1932         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1933         <exampleNumber>90123456</exampleNumber>
1934       </premiumRate>
1935       <sharedCost>
1936         <!-- Using this category to model national tariff numbers - these are under Shared Cost in
1937              the plan. -->
1938         <nationalNumberPattern>8[12]\d{6}</nationalNumberPattern>
1939         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1940         <exampleNumber>82123456</exampleNumber>
1941       </sharedCost>
1942       <uan>
1943         <!-- Using this to classify nomad numbers. -->
1944         <nationalNumberPattern>70[23]\d{5}</nationalNumberPattern>
1945         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1946         <exampleNumber>70223456</exampleNumber>
1947       </uan>
1948     </territory>
1949
1950     <!-- Barbados -->
1951     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
1952                internationalPrefix="011">
1953       <references>
1954         <sourceUrl>http://www.itu.int/oth/T0202000013/en</sourceUrl>
1955       </references>
1956       <generalDesc>
1957         <!-- NANPA country - uses US formatting rules -->
1958         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
1959         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1960       </generalDesc>
1961       <fixedLine>
1962         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
1963         <exampleNumber>2462345678</exampleNumber>
1964       </fixedLine>
1965       <mobile>
1966         <nationalNumberPattern>
1967           246(?:
1968             (?:
1969               2[346]|
1970               45|
1971               82
1972             )\d|
1973             25[0-4]
1974           )\d{4}
1975         </nationalNumberPattern>
1976         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1977         <exampleNumber>2462501234</exampleNumber>
1978       </mobile>
1979       <tollFree>
1980         <nationalNumberPattern>
1981           8(?:
1982             00|
1983             44|
1984             55|
1985             66|
1986             77|
1987             88
1988           )[2-9]\d{6}
1989         </nationalNumberPattern>
1990         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1991         <exampleNumber>8002123456</exampleNumber>
1992       </tollFree>
1993       <premiumRate>
1994         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1995         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1996         <exampleNumber>9002123456</exampleNumber>
1997       </premiumRate>
1998       <personalNumber>
1999         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
2000         <nationalNumberPattern>
2001           5(?:
2002             00|
2003             33|
2004             44|
2005             66|
2006             77
2007           )[2-9]\d{6}
2008         </nationalNumberPattern>
2009         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2010         <exampleNumber>5002345678</exampleNumber>
2011       </personalNumber>
2012     </territory>
2013
2014     <!-- Bangladesh -->
2015     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
2016                preferredInternationalPrefix="00"
2017                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
2018       <references>
2019         <sourceUrl>http://www.itu.int/oth/T0202000012/en</sourceUrl>
2020         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh</sourceUrl>
2021         <sourceUrl>http://www.btrc.gov.bd/sites/default/files/national_numbering_plan_2005_0.pdf</sourceUrl>
2022       </references>
2023       <availableFormats>
2024         <numberFormat pattern="(2)(\d{7})">
2025           <leadingDigits>2</leadingDigits>
2026           <format>$1-$2</format>
2027         </numberFormat>
2028         <numberFormat pattern="(\d{2})(\d{4,6})">
2029           <leadingDigits>[3-79]1</leadingDigits>
2030           <format>$1-$2</format>
2031         </numberFormat>
2032         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
2033         <numberFormat pattern="(\d{4})(\d{3,6})">
2034           <leadingDigits>
2035             1|
2036             3(?:
2037               0|
2038               [2-58]2
2039             )|
2040             4(?:
2041               0|
2042               [25]2|
2043               3[23]|
2044               [4689][25]
2045             )|
2046             5(?:
2047               [02-578]2|
2048               6[25]
2049             )|
2050             6(?:
2051               [0347-9]2|
2052               [26][25]
2053             )|
2054             7[02-9]2|
2055             8(?:
2056               [023][23]|
2057               [4-7]2
2058             )|
2059             9(?:
2060               [02][23]|
2061               [458]2|
2062               6[016]
2063             )
2064           </leadingDigits>
2065           <format>$1-$2</format>
2066         </numberFormat>
2067         <numberFormat pattern="(\d{3})(\d{3,7})">
2068           <leadingDigits>
2069             [3-79][2-9]|
2070             8
2071           </leadingDigits>
2072           <format>$1-$2</format>
2073         </numberFormat>
2074       </availableFormats>
2075       <generalDesc>
2076       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
2077            plan, so the country code can be accurately stripped off. -->
2078         <nationalNumberPattern>
2079           [2-79]\d{5,9}|
2080           1\d{9}|
2081           8[0-7]\d{4,8}
2082         </nationalNumberPattern>
2083         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
2084       </generalDesc>
2085       <fixedLine>
2086         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
2087              been realised, judging by online numbers and wikipedia. These patterns are grouped
2088              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731
2089              etc) are included despite not being mentioned on the wikipedia page or ITU doc due to
2090              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
2091              do not - both are allowed for now. For some area codes, the subscriber number length
2092              described in our source documentation doesn't match numbers online (e.g. 05222) so we
2093              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
2094              also added 04452 and 04923 from numbers found online. -->
2095         <nationalNumberPattern>
2096           2(?:
2097             7(?:
2098               1[0-267]|
2099               2[0-289]|
2100               3[0-29]|
2101               [46][01]|
2102               5[1-3]|
2103               7[017]|
2104               91
2105             )|
2106             8(?:
2107               0[125]|
2108               [139][1-6]|
2109               2[0157-9]|
2110               6[1-35]|
2111               7[1-5]|
2112               8[1-8]
2113             )|
2114             9(?:
2115               0[0-2]|
2116               1[1-4]|
2117               2[568]|
2118               3[3-6]|
2119               5[5-7]|
2120               6[0167]|
2121               7[15]|
2122               8[0146-8]
2123             )
2124           )\d{4}|
2125           3(?:
2126             12?[5-7]\d{2}|
2127             0(?:
2128               2(?:
2129                 [025-79]\d|
2130                 [348]\d{1,2}
2131               )|
2132               3(?:
2133                 [2-4]\d|
2134                 [56]\d?
2135               )
2136             )|
2137             2(?:
2138               1\d{2}|
2139               2(?:
2140                 [12]\d|
2141                 [35]\d{1,2}|
2142                 4\d?
2143               )
2144             )|
2145             3(?:
2146               1\d{2}|
2147               2(?:
2148                 [2356]\d|
2149                 4\d{1,2}
2150               )
2151             )|
2152             4(?:
2153               1\d{2}|
2154               2(?:
2155                 2\d{1,2}|
2156                 [47]|
2157                 5\d{2}
2158               )
2159             )|
2160             5(?:
2161               1\d{2}|
2162               29
2163             )|
2164             [67]1\d{2}|
2165             8(?:
2166               1\d{2}|
2167               2(?:
2168                 2\d{2}|
2169                 3|
2170                 4\d
2171               )
2172             )
2173           )\d{3}|
2174           4(?:
2175             0(?:
2176               2(?:
2177                 [09]\d|
2178                 7
2179               )|
2180               33\d{2}
2181             )|
2182             1\d{3}|
2183             2(?:
2184               1\d{2}|
2185               2(?:
2186                 [25]\d?|
2187                 [348]\d|
2188                 [67]\d{1,2}
2189               )
2190             )|
2191             3(?:
2192               1\d{2}(?:\d{2})?|
2193               2(?:
2194                 [045]\d|
2195                 [236-9]\d{1,2}
2196               )|
2197               32\d{2}
2198             )|
2199             4(?:
2200               [18]\d{2}|
2201               2(?:
2202                 [2-46]\d{2}|
2203                 3
2204               )|
2205               5[25]\d{2}
2206             )|
2207             5(?:
2208               1\d{2}|
2209               2(?:
2210                 3\d|
2211                 5
2212               )
2213             )|
2214             6(?:
2215               [18]\d{2}|
2216               2(?:
2217                 3(?:\d{2})?|
2218                 [46]\d{1,2}|
2219                 5\d{2}|
2220                 7\d
2221               )|
2222               5(?:
2223                 3\d?|
2224                 4\d|
2225                 [57]\d{1,2}|
2226                 6\d{2}|
2227                 8
2228               )
2229             )|
2230             71\d{2}|
2231             8(?:
2232               [18]\d{2}|
2233               23\d{2}|
2234               54\d{2}
2235             )|
2236             9(?:
2237               [18]\d{2}|
2238               2[2-5]\d{2}|
2239               53\d{1,2}
2240             )
2241           )\d{3}|
2242           5(?:
2243             02[03489]\d{2}|
2244             1\d{2}|
2245             2(?:
2246               1\d{2}|
2247               2(?:
2248                 2(?:\d{2})?|
2249                 [457]\d{2}
2250               )
2251             )|
2252             3(?:
2253               1\d{2}|
2254               2(?:
2255                 [37](?:\d{2})?|
2256                 [569]\d{2}
2257               )
2258             )|
2259             4(?:
2260               1\d{2}|
2261               2[46]\d{2}
2262             )|
2263             5(?:
2264               1\d{2}|
2265               26\d{1,2}
2266             )|
2267             6(?:
2268               [18]\d{2}|
2269               2|
2270               53\d{2}
2271             )|
2272             7(?:
2273               1|
2274               24
2275             )\d{2}|
2276             8(?:
2277               1|
2278               26
2279             )\d{2}|
2280             91\d{2}
2281           )\d{3}|
2282           6(?:
2283             0(?:
2284               1\d{2}|
2285               2(?:
2286                 3\d{2}|
2287                 4\d{1,2}
2288               )
2289             )|
2290             2(?:
2291               2[2-5]\d{2}|
2292               5(?:
2293                 [3-5]\d{2}|
2294                 7
2295               )|
2296               8\d{2}
2297             )|
2298             3(?:
2299               1|
2300               2[3478]
2301             )\d{2}|
2302             4(?:
2303               1|
2304               2[34]
2305             )\d{2}|
2306             5(?:
2307               1|
2308               2[47]
2309             )\d{2}|
2310             6(?:
2311               [18]\d{2}|
2312               6(?:
2313                 2(?:
2314                   2\d|
2315                   [34]\d{2}
2316                 )|
2317                 5(?:
2318                   [24]\d{2}|
2319                   3\d|
2320                   5\d{1,2}
2321                 )
2322               )
2323             )|
2324             72[2-5]\d{2}|
2325             8(?:
2326               1\d{2}|
2327               2[2-5]\d{2}
2328             )|
2329             9(?:
2330               1\d{2}|
2331               2[2-6]\d{2}
2332             )
2333           )\d{3}|
2334           7(?:
2335             (?:
2336               02|
2337               [3-589]1|
2338               6[12]|
2339               72[24]
2340             )\d{2}|
2341             21\d{3}|
2342             32
2343           )\d{3}|
2344           8(?:
2345             (?:
2346               4[12]|
2347               [5-7]2|
2348               1\d?
2349             )|
2350             (?:
2351               0|
2352               3[12]|
2353               [5-7]1|
2354               217
2355             )\d
2356           )\d{4}|
2357           9(?:
2358             [35]1|
2359             (?:
2360               [024]2|
2361               81
2362             )\d|
2363             (?:
2364               1|
2365               [24]1
2366             )\d{2}
2367           )\d{3}
2368         </nationalNumberPattern>
2369         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
2370         <exampleNumber>27111234</exampleNumber>
2371       </fixedLine>
2372       <mobile>
2373         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
2374              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
2375              numbers should be moving to 1[13-9] anyway. -->
2376         <nationalNumberPattern>
2377           (?:
2378             1[13-9]\d|
2379             (?:
2380               3[78]|
2381               44
2382             )[02-9]|
2383             6(?:
2384               44|
2385               6[02-9]
2386             )
2387           )\d{7}
2388         </nationalNumberPattern>
2389         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2390         <exampleNumber>1812345678</exampleNumber>
2391       </mobile>
2392       <tollFree>
2393         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
2394         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
2395         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2396         <exampleNumber>8001234567</exampleNumber>
2397       </tollFree>
2398       <voip>
2399         <nationalNumberPattern>
2400           96(?:
2401             0[49]|
2402             1[0-4]|
2403             6[69]
2404           )\d{6}
2405         </nationalNumberPattern>
2406         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2407         <exampleNumber>9604123456</exampleNumber>
2408       </voip>
2409     </territory>
2410
2411     <!-- Belgium -->
2412     <territory id="BE" countryCode="32" internationalPrefix="00"
2413                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2414                mobileNumberPortableRegion="true">
2415       <references>
2416         <sourceUrl>http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx</sourceUrl>
2417         <sourceUrl>http://www.telefoonzones.be/</sourceUrl>
2418       </references>
2419       <availableFormats>
2420         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
2421           <leadingDigits>4[6-9]</leadingDigits>
2422           <format>$1 $2 $3 $4</format>
2423         </numberFormat>
2424         <numberFormat pattern="([2-49])(\d{3})(\d{2})(\d{2})">
2425           <leadingDigits>
2426             [23]|
2427             [49][23]
2428           </leadingDigits>
2429           <format>$1 $2 $3 $4</format>
2430         </numberFormat>
2431         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
2432           <leadingDigits>
2433             [156]|
2434             7[018]|
2435             8(?:
2436               0[1-9]|
2437               [1-79]
2438             )
2439           </leadingDigits>
2440           <format>$1 $2 $3 $4</format>
2441         </numberFormat>
2442         <numberFormat pattern="([89]\d{2})(\d{2})(\d{3})">
2443           <leadingDigits>
2444             (?:
2445               80|
2446               9
2447             )0
2448           </leadingDigits>
2449           <format>$1 $2 $3</format>
2450         </numberFormat>
2451       </availableFormats>
2452       <generalDesc>
2453         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
2454         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2455       </generalDesc>
2456       <fixedLine>
2457         <!-- According to the published Excel document the third digit must be 1-9. -->
2458         <nationalNumberPattern>
2459           (?:
2460             1[0-69]|
2461             [49][23]|
2462             5\d|
2463             6[013-57-9]|
2464             71|
2465             8[0-79]
2466           )[1-9]\d{5}|
2467           [23][2-8]\d{6}
2468         </nationalNumberPattern>
2469         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2470         <exampleNumber>12345678</exampleNumber>
2471       </fixedLine>
2472       <mobile>
2473         <!-- Numbers beginning with 46 outside the ranges allocated by the plan have been included
2474              since many were found online. -->
2475         <nationalNumberPattern>
2476           4(?:
2477             [679]\d|
2478             8[03-9]
2479           )\d{6}
2480         </nationalNumberPattern>
2481         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2482         <exampleNumber>470123456</exampleNumber>
2483       </mobile>
2484       <tollFree>
2485         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2486         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2487         <exampleNumber>80012345</exampleNumber>
2488       </tollFree>
2489       <premiumRate>
2490         <nationalNumberPattern>
2491           (?:
2492             70[2-7]|
2493             90\d
2494           )\d{5}
2495         </nationalNumberPattern>
2496         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2497         <exampleNumber>90123456</exampleNumber>
2498       </premiumRate>
2499       <uan>
2500         <!-- Using this for National Rate Services, since
2501              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
2502              says it will be priced the same as any other national calls. -->
2503         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
2504         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2505         <exampleNumber>78123456</exampleNumber>
2506       </uan>
2507     </territory>
2508
2509     <!-- Burkina Faso -->
2510     <territory id="BF" countryCode="226" internationalPrefix="00">
2511       <references>
2512         <sourceUrl>http://www.itu.int/oth/T0202000021/en</sourceUrl>
2513         <sourceUrl>http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf</sourceUrl>
2514       </references>
2515       <availableFormats>
2516         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
2517              chosen to use the standard from numbers found on the internet instead. -->
2518         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2519           <format>$1 $2 $3 $4</format>
2520         </numberFormat>
2521       </availableFormats>
2522       <generalDesc>
2523         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
2524         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2525       </generalDesc>
2526       <fixedLine>
2527         <nationalNumberPattern>
2528           (?:
2529             20(?:
2530               49|
2531               5[23]|
2532               9[016-9]
2533             )|
2534             40(?:
2535               4[569]|
2536               5[4-6]|
2537               7[0179]
2538             )|
2539             50(?:
2540               [34]\d|
2541               50
2542             )
2543           )\d{4}
2544         </nationalNumberPattern>
2545         <exampleNumber>20491234</exampleNumber>
2546       </fixedLine>
2547       <mobile>
2548         <nationalNumberPattern>
2549           6(?:
2550             [0-689]\d|
2551             7[0-5]
2552           )\d{5}|
2553           7\d{7}
2554         </nationalNumberPattern>
2555         <exampleNumber>70123456</exampleNumber>
2556       </mobile>
2557     </territory>
2558
2559     <!-- Bulgaria -->
2560     <territory id="BG" countryCode="359" internationalPrefix="00"
2561                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
2562                mobileNumberPortableRegion="true">
2563       <references>
2564         <sourceUrl>http://www.itu.int/oth/T0202000020/en</sourceUrl>
2565       </references>
2566       <availableFormats>
2567         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
2568              used to separate the area code from the rest of the number, based on sites like
2569              http://www.goldenpages.bg. -->
2570         <numberFormat pattern="(2)(\d{5})">
2571           <leadingDigits>29</leadingDigits>
2572           <format>$1 $2</format>
2573         </numberFormat>
2574         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
2575           <leadingDigits>2</leadingDigits>
2576           <format>$1 $2 $3</format>
2577         </numberFormat>
2578         <numberFormat pattern="(\d{3})(\d{4})">
2579           <leadingDigits>
2580             43[124-7]|
2581             70[1-9]
2582           </leadingDigits>
2583           <format>$1 $2</format>
2584         </numberFormat>
2585         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
2586           <leadingDigits>
2587             43[124-7]|
2588             70[1-9]
2589           </leadingDigits>
2590           <format>$1 $2 $3</format>
2591         </numberFormat>
2592         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2593           <leadingDigits>[78]00</leadingDigits>
2594           <format>$1 $2 $3</format>
2595         </numberFormat>
2596         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
2597           <leadingDigits>
2598             [356]|
2599             4[124-7]|
2600             7[1-9]|
2601             8[1-6]|
2602             9[1-7]
2603           </leadingDigits>
2604           <format>$1 $2 $3</format>
2605         </numberFormat>
2606         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2607           <leadingDigits>
2608             48|
2609             8[7-9]|
2610             9[08]
2611           </leadingDigits>
2612           <format>$1 $2 $3</format>
2613         </numberFormat>
2614       </availableFormats>
2615       <generalDesc>
2616         <nationalNumberPattern>
2617           [23567]\d{5,7}|
2618           [489]\d{6,8}
2619         </nationalNumberPattern>
2620         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
2621       </generalDesc>
2622       <fixedLine>
2623         <!-- 29xxxx numbers have been added because they can be found online, and are typically
2624              used by taxi companies. -->
2625         <nationalNumberPattern>
2626           2(?:
2627             [0-8]\d{5,6}|
2628             9\d{4,6}
2629           )|
2630           (?:
2631             [36]\d|
2632             5[1-9]|
2633             8[1-6]|
2634             9[1-7]
2635           )\d{5,6}|
2636           (?:
2637             4(?:
2638               [124-7]\d|
2639               3[1-6]
2640             )|
2641             7(?:
2642               0[1-9]|
2643               [1-9]\d
2644             )
2645           )\d{4,5}
2646         </nationalNumberPattern>
2647         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
2648         <exampleNumber>2123456</exampleNumber>
2649       </fixedLine>
2650       <mobile>
2651         <nationalNumberPattern>
2652           (?:
2653             8[7-9]|
2654             98
2655           )\d{7}|
2656           4(?:
2657             3[0789]|
2658             8\d
2659           )\d{5}
2660         </nationalNumberPattern>
2661         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2662         <exampleNumber>48123456</exampleNumber>
2663       </mobile>
2664       <tollFree>
2665         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2666         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2667         <exampleNumber>80012345</exampleNumber>
2668       </tollFree>
2669       <premiumRate>
2670         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
2671         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2672         <exampleNumber>90123456</exampleNumber>
2673       </premiumRate>
2674       <personalNumber>
2675         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
2676         <exampleNumber>70012345</exampleNumber>
2677       </personalNumber>
2678     </territory>
2679
2680     <!-- Bahrain -->
2681     <territory id="BH" countryCode="973" internationalPrefix="00" mobileNumberPortableRegion="true">
2682       <references>
2683         <sourceUrl>http://www.itu.int/oth/T0202000011/en</sourceUrl>
2684         <sourceUrl>http://www.tra.org.bh/en/marketNumbering.aspx</sourceUrl>
2685         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain</sourceUrl>
2686       </references>
2687       <availableFormats>
2688         <numberFormat pattern="(\d{4})(\d{4})">
2689           <format>$1 $2</format>
2690         </numberFormat>
2691       </availableFormats>
2692       <generalDesc>
2693         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
2694         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2695       </generalDesc>
2696       <!-- Some ranges were previously described as "universal", but in subsequent versions of the
2697            ITU doc they have been specified to be mobile or fixed-line. We follow the ITU
2698            designations, even though some publications still refer to them as universal. -->
2699       <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
2700            "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts the ITU doc
2701            which lists "6966, 6969, 6996, 6999". We follow ITU here. -->
2702       <fixedLine>
2703         <nationalNumberPattern>
2704           (?:
2705             1(?:
2706               3[1356]|
2707               6[0156]|
2708               7\d
2709             )\d|
2710             6(?:
2711               1[16]\d|
2712               500|
2713               6(?:
2714                 0\d|
2715                 3[12]|
2716                 44|
2717                 7[7-9]
2718               )|
2719               9[69][69]
2720             )|
2721             7(?:
2722               1(?:
2723                 11|
2724                 78
2725               )|
2726               7\d{2}
2727             )
2728           )\d{4}
2729         </nationalNumberPattern>
2730         <exampleNumber>17001234</exampleNumber>
2731       </fixedLine>
2732       <!-- 31 is assigned to Royal Court, as per documents on Bahrain's own telecom site, even
2733            though it is omitted from the ITU document. -->
2734       <mobile>
2735         <nationalNumberPattern>
2736           (?:
2737             3(?:
2738               [1-4679]\d|
2739               5[013569]|
2740               8[0-47-9]
2741             )\d|
2742             6(?:
2743               3(?:
2744                 00|
2745                 33|
2746                 6[16]
2747               )|
2748               6(?:
2749                 [69]\d|
2750                 3[03-9]|
2751                 7[0-6]
2752               )
2753             )
2754           )\d{4}
2755         </nationalNumberPattern>
2756         <exampleNumber>36001234</exampleNumber>
2757       </mobile>
2758       <tollFree>
2759         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
2760         <exampleNumber>80123456</exampleNumber>
2761       </tollFree>
2762       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
2763            now. -->
2764       <premiumRate>
2765         <nationalNumberPattern>
2766           (?:
2767             87|
2768             9[014578]
2769           )\d{6}
2770         </nationalNumberPattern>
2771         <exampleNumber>90123456</exampleNumber>
2772       </premiumRate>
2773       <sharedCost>
2774         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
2775         <exampleNumber>84123456</exampleNumber>
2776       </sharedCost>
2777     </territory>
2778
2779     <!-- Burundi -->
2780     <territory id="BI" countryCode="257" internationalPrefix="00">
2781       <references>
2782         <sourceUrl>http://www.itu.int/oth/T0202000022/en</sourceUrl>
2783       </references>
2784       <availableFormats>
2785         <numberFormat
2786           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2787           <format>$1 $2 $3 $4</format>
2788         </numberFormat>
2789       </availableFormats>
2790       <generalDesc>
2791         <nationalNumberPattern>[267]\d{7}</nationalNumberPattern>
2792         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2793       </generalDesc>
2794       <fixedLine>
2795         <nationalNumberPattern>
2796           22(?:
2797             2[0-7]|
2798             [3-5]0
2799           )\d{4}
2800         </nationalNumberPattern>
2801         <exampleNumber>22201234</exampleNumber>
2802       </fixedLine>
2803       <mobile>
2804         <!-- Extra online mobile number prefixes found: 74.
2805              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
2806              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
2807              satellite phones. -->
2808         <nationalNumberPattern>
2809           (?:
2810             [26]9|
2811             7[14-9]
2812           )\d{6}
2813         </nationalNumberPattern>
2814         <exampleNumber>79561234</exampleNumber>
2815       </mobile>
2816     </territory>
2817
2818     <!-- Benin -->
2819     <territory id="BJ" countryCode="229" internationalPrefix="00">
2820       <references>
2821         <sourceUrl>http://www.itu.int/oth/T0202000017/en</sourceUrl>
2822       </references>
2823       <availableFormats>
2824         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2825           <format>$1 $2 $3 $4</format>
2826         </numberFormat>
2827         <!-- Numbers beginning with 7 should be formatted as a block. -->
2828       </availableFormats>
2829       <generalDesc>
2830         <nationalNumberPattern>
2831           [2689]\d{7}|
2832           7\d{3}
2833         </nationalNumberPattern>
2834         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
2835       </generalDesc>
2836       <fixedLine>
2837         <!-- These come from the national numbering plan, but have been widened to include other
2838              prefixes found in the yellow pages - specifically 21 0. -->
2839         <nationalNumberPattern>
2840           2(?:
2841             02|
2842             1[037]|
2843             2[45]|
2844             3[68]
2845           )\d{5}
2846         </nationalNumberPattern>
2847         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2848         <exampleNumber>20211234</exampleNumber>
2849       </fixedLine>
2850       <mobile>
2851         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
2852              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
2853              6[167] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
2854              reported as having prefixes 68 and 9[89]. -->
2855         <nationalNumberPattern>
2856           (?:
2857             6[146-8]|
2858             9[03-9]
2859           )\d{6}
2860         </nationalNumberPattern>
2861         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2862         <exampleNumber>90011234</exampleNumber>
2863       </mobile>
2864       <tollFree>
2865         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
2866         <possibleNumberPattern>\d{4}</possibleNumberPattern>
2867         <exampleNumber>7312</exampleNumber>
2868       </tollFree>
2869       <voip>
2870         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
2871         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2872         <exampleNumber>85751234</exampleNumber>
2873       </voip>
2874       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
2875            as a local-call.) We model these as UAN since we have no more detailed information. -->
2876       <uan>
2877         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
2878         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2879         <exampleNumber>81123456</exampleNumber>
2880       </uan>
2881     </territory>
2882
2883     <!-- Saint Barthélemy, French Antilles -->
2884     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
2885          national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but
2886          it appears from searches in online white and yellow pages that a subset of the prefixes
2887          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
2888          of these region codes will be returned, although numbers will be valid for both regions.
2889          -->
2890     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
2891       <references>
2892         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
2893       </references>
2894       <!-- Formatting rules borrowed from Guadeloupe. -->
2895       <generalDesc>
2896         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
2897         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2898       </generalDesc>
2899       <fixedLine>
2900         <nationalNumberPattern>
2901           590(?:
2902             2[7-9]|
2903             5[12]|
2904             87
2905           )\d{4}
2906         </nationalNumberPattern>
2907         <exampleNumber>590271234</exampleNumber>
2908       </fixedLine>
2909       <mobile>
2910         <!-- Any ranges assigned from
2911              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
2912              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
2913              them. -->
2914         <nationalNumberPattern>
2915           690(?:
2916             0[0-7]|
2917             [1-9]\d
2918           )\d{4}
2919         </nationalNumberPattern>
2920         <exampleNumber>690301234</exampleNumber>
2921       </mobile>
2922     </territory>
2923
2924     <!-- Bermuda -->
2925     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
2926                internationalPrefix="011">
2927       <references>
2928         <sourceUrl>http://www.itu.int/oth/T0202000018/en</sourceUrl>
2929       </references>
2930       <generalDesc>
2931         <!-- NANPA country - uses US formatting rules -->
2932         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
2933         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
2934       </generalDesc>
2935       <fixedLine>
2936         <nationalNumberPattern>
2937           441(?:
2938             2(?:
2939               02|
2940               23|
2941               61|
2942               [3479]\d
2943             )|
2944             [46]\d{2}|
2945             5(?:
2946               4\d|
2947               60|
2948               89
2949             )|
2950             824
2951           )\d{4}
2952         </nationalNumberPattern>
2953         <exampleNumber>4412345678</exampleNumber>
2954       </fixedLine>
2955       <mobile>
2956         <nationalNumberPattern>
2957           441(?:
2958             [37]\d|
2959             5[0-39]
2960           )\d{5}
2961         </nationalNumberPattern>
2962         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2963         <exampleNumber>4413701234</exampleNumber>
2964       </mobile>
2965       <tollFree>
2966         <nationalNumberPattern>
2967           8(?:
2968             00|
2969             44|
2970             55|
2971             66|
2972             77|
2973             88
2974           )[2-9]\d{6}
2975         </nationalNumberPattern>
2976         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2977         <exampleNumber>8002123456</exampleNumber>
2978       </tollFree>
2979       <premiumRate>
2980         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
2981         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2982         <exampleNumber>9002123456</exampleNumber>
2983       </premiumRate>
2984       <personalNumber>
2985         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
2986         <nationalNumberPattern>
2987           5(?:
2988             00|
2989             33|
2990             44|
2991             66|
2992             77
2993           )[2-9]\d{6}
2994         </nationalNumberPattern>
2995         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2996         <exampleNumber>5002345678</exampleNumber>
2997       </personalNumber>
2998     </territory>
2999
3000     <!-- Brunei Darussalam -->
3001     <territory id="BN" countryCode="673" internationalPrefix="00">
3002       <references>
3003         <sourceUrl>http://www.itu.int/oth/T020200001F/en</sourceUrl>
3004       </references>
3005       <!-- Format is from http://aiti.gov.bn/contact.html -->
3006       <availableFormats>
3007         <numberFormat pattern="([2-578]\d{2})(\d{4})">
3008           <format>$1 $2</format>
3009         </numberFormat>
3010       </availableFormats>
3011       <generalDesc>
3012         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
3013         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3014       </generalDesc>
3015       <fixedLine>
3016         <nationalNumberPattern>
3017           2(?:
3018             [013-9]\d|
3019             2[0-7]
3020           )\d{4}|
3021           [3-5]\d{6}
3022         </nationalNumberPattern>
3023         <exampleNumber>2345678</exampleNumber>
3024       </fixedLine>
3025       <mobile>
3026         <nationalNumberPattern>
3027           22[89]\d{4}|
3028           [78]\d{6}
3029         </nationalNumberPattern>
3030         <exampleNumber>7123456</exampleNumber>
3031       </mobile>
3032     </territory>
3033
3034     <!-- Bolivia -->
3035     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
3036                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
3037       <references>
3038         <sourceUrl>http://www.itu.int/oth/T020200001A/en</sourceUrl>
3039         <sourceUrl>http://www.bolivia.com/Servicios/Plandenumeracion.pdf</sourceUrl>
3040       </references>
3041       <availableFormats>
3042         <numberFormat pattern="([234])(\d{7})">
3043           <leadingDigits>[234]</leadingDigits>
3044           <format>$1 $2</format>
3045         </numberFormat>
3046         <numberFormat pattern="([67]\d{7})">
3047           <leadingDigits>[67]</leadingDigits>
3048           <format>$1</format>
3049         </numberFormat>
3050       </availableFormats>
3051       <generalDesc>
3052         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
3053         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3054       </generalDesc>
3055       <fixedLine>
3056         <nationalNumberPattern>
3057           (?:
3058             2(?:
3059               2\d{2}|
3060               5(?:11|[258]\d|9[67])|
3061               6(?:12|2\d|9[34])|
3062               8(?:2[34]|39|62)
3063             )|
3064             3(?:
3065               3\d{2}|
3066               4(?:6\d|8[24])|
3067               8(?:25|42|5[257]|86|9[25])|
3068               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
3069             )|
3070             4(?:
3071               4\d{2}|
3072               6(?:11|[24689]\d|72)
3073             )
3074           )\d{4}
3075         </nationalNumberPattern>
3076         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3077         <exampleNumber>22123456</exampleNumber>
3078       </fixedLine>
3079       <mobile>
3080         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
3081         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3082         <exampleNumber>71234567</exampleNumber>
3083       </mobile>
3084     </territory>
3085
3086     <!-- Bonaire, Sint Eustatius and Saba -->
3087     <territory id="BQ" countryCode="599" internationalPrefix="00">
3088       <references>
3089         <sourceUrl>http://www.itu.int/oth/T02020000F8/en</sourceUrl>
3090       </references>
3091       <!-- Shares formatting patterns with CW. -->
3092       <generalDesc>
3093         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
3094         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3095       </generalDesc>
3096       <fixedLine>
3097         <nationalNumberPattern>
3098           (?:
3099             318[023]|
3100             416[023]|
3101             7(?:
3102               1[578]|
3103               50
3104             )\d
3105           )\d{3}
3106         </nationalNumberPattern>
3107         <exampleNumber>7151234</exampleNumber>
3108       </fixedLine>
3109       <mobile>
3110         <nationalNumberPattern>
3111           (?:
3112             318[14-68]|
3113             416[15-9]|
3114             7(?:
3115               0[01]|
3116               7[07]|
3117               [89]\d
3118             )\d
3119           )\d{3}
3120         </nationalNumberPattern>
3121         <exampleNumber>3181234</exampleNumber>
3122       </mobile>
3123     </territory>
3124
3125     <!-- Brazil -->
3126     <territory id="BR" countryCode="55"
3127                internationalPrefix="00(?:1[45]|2[135]|31|4[13])"
3128                nationalPrefix="0"
3129                nationalPrefixForParsing="0(?:(1[245]|2[135]|31|4[13])(\d{10,11}))?"
3130                nationalPrefixTransformRule="$2" mobileNumberPortableRegion="true">
3131       <references>
3132         <sourceUrl>http://en.wikipedia.org/wiki/%2B55</sourceUrl>
3133         <sourceUrl>http://www.itu.int/oth/T020200001D/en</sourceUrl>
3134       </references>
3135       <!-- The national prefix for parsing here also contains a capturing group for the main number,
3136            since the carrier codes here may also be area codes, so we want to check the length of
3137            the number after capturing. We also need a nationalTransformRule to repopulate with the
3138            number without the carrier code. -->
3139       <availableFormats>
3140         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
3141              rules here handle this case. The leading digits pattern must be specific enough such
3142              that it doesn't match X00 numbers (e.g. toll-free). -->
3143         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
3144           <leadingDigits>
3145             [2-9](?:
3146               [1-9]|
3147               0[1-9]
3148             )
3149           </leadingDigits>
3150           <format>$1-$2</format>
3151           <intlFormat>NA</intlFormat>
3152         </numberFormat>
3153         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
3154           <leadingDigits>
3155             9(?:
3156               [1-9]|
3157               0[1-9]
3158             )
3159           </leadingDigits>
3160           <format>$1-$2</format>
3161           <intlFormat>NA</intlFormat>
3162         </numberFormat>
3163         <!-- Format short numbers as a block. -->
3164         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
3165           <leadingDigits>1[125689]</leadingDigits>
3166           <format>$1</format>
3167           <intlFormat>NA</intlFormat>
3168         </numberFormat>
3169         <numberFormat nationalPrefixFormattingRule="($FG)"
3170             pattern="(\d{2})(\d{5})(\d{4})"
3171             carrierCodeFormattingRule="$NP $CC ($FG)">
3172           <leadingDigits>
3173             (?:
3174               1[1-9]|
3175               2[12478]|
3176               9[1-9]
3177             )9
3178           </leadingDigits>
3179           <format>$1 $2-$3</format>
3180         </numberFormat>
3181         <numberFormat nationalPrefixFormattingRule="($FG)"
3182             pattern="(\d{2})(\d{4})(\d{4})"
3183             carrierCodeFormattingRule="$NP $CC ($FG)">
3184           <leadingDigits>[1-9][1-9]</leadingDigits>
3185           <format>$1 $2-$3</format>
3186         </numberFormat>
3187         <numberFormat pattern="([34]00\d)(\d{4})">
3188           <leadingDigits>[34]00</leadingDigits>
3189           <format>$1-$2</format>
3190         </numberFormat>
3191         <numberFormat nationalPrefixFormattingRule="$NP$FG"
3192             pattern="([3589]00)(\d{2,3})(\d{4})">
3193           <leadingDigits>[3589]00</leadingDigits>
3194           <format>$1 $2 $3</format>
3195         </numberFormat>
3196       </availableFormats>
3197       <generalDesc>
3198         <nationalNumberPattern>
3199           [1-46-9]\d{7,10}|
3200           5\d{8,9}
3201         </nationalNumberPattern>
3202         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
3203       </generalDesc>
3204       <noInternationalDialling>
3205         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3206         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3207         <exampleNumber>40041234</exampleNumber>
3208       </noInternationalDialling>
3209       <fixedLine>
3210         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
3211              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
3212              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
3213              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
3214              -->
3215         <nationalNumberPattern>
3216           1[1-9][2-5]\d{7}|
3217           (?:
3218             [4689][1-9]|
3219             2[12478]|
3220             3[1-578]|
3221             5[13-5]|
3222             7[13-579]
3223           )[2-5]\d{7}
3224         </nationalNumberPattern>
3225         <exampleNumber>1123456789</exampleNumber>
3226       </fixedLine>
3227       <mobile>
3228         <!-- Since 2012, Brazil has been migrating from 10 to 11 digits by inserting a 9 before the
3229              last 8 digits. The following pattern is divided into 3 sections: ranges for which the
3230              migration has been completed, ranges which are in transition, and ranges which are
3231              still in the old format. (Ranges which were supposed to have been deprecated in
3232              Oct. 2013 are still working as of Jan. 2014.) Note that mobile radio services are
3233              still 10 digits, with the subscriber number (the last 8 digits) beginning with 7. -->
3234         <nationalNumberPattern>
3235           1[1-9](?:
3236             7|
3237             9\d
3238           )\d{7}|
3239           (?:
3240             2[12478]|
3241             9[1-9]
3242           )9?[6-9]\d{7}|
3243           (?:
3244             3[1-578]|
3245             [468][1-9]|
3246             5[13-5]|
3247             7[13-579]
3248           )[6-9]\d{7}
3249         </nationalNumberPattern>
3250         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3251         <exampleNumber>11961234567</exampleNumber>
3252       </mobile>
3253       <tollFree>
3254         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
3255         <exampleNumber>800123456</exampleNumber>
3256       </tollFree>
3257       <premiumRate>
3258         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
3259         <exampleNumber>300123456</exampleNumber>
3260       </premiumRate>
3261       <sharedCost>
3262         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3263         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3264         <exampleNumber>40041234</exampleNumber>
3265       </sharedCost>
3266     </territory>
3267
3268     <!-- Bahamas -->
3269     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
3270                internationalPrefix="011">
3271       <references>
3272         <sourceUrl>http://www.itu.int/oth/T0202000010/en</sourceUrl>
3273       </references>
3274       <generalDesc>
3275         <!-- NANPA country - uses US formatting rules -->
3276         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
3277         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3278       </generalDesc>
3279       <fixedLine>
3280         <nationalNumberPattern>
3281           242(?:
3282             3(?:
3283               02|
3284               [236][1-9]|
3285               4[0-24-9]|
3286               5[0-68]|
3287               7[3467]|
3288               8[0-4]|
3289               9[2-467]
3290             )|
3291             461|
3292             502|
3293             6(?:
3294               0[12]|
3295               12|
3296               7[67]|
3297               8[78]|
3298               9[89]
3299             )|
3300             702
3301           )\d{4}
3302         </nationalNumberPattern>
3303         <exampleNumber>2423456789</exampleNumber>
3304       </fixedLine>
3305       <mobile>
3306         <nationalNumberPattern>
3307           242(?:
3308             3(?:
3309               5[79]|
3310               [79]5
3311             )|
3312             4(?:
3313               [2-4][1-9]|
3314               5[1-8]|
3315               6[2-8]|
3316               7\d|
3317               81
3318             )|
3319             5(?:
3320               2[45]|
3321               3[35]|
3322               44|
3323               5[1-9]|
3324               65|
3325               77
3326             )|
3327             6[34]6|
3328             727
3329           )\d{4}
3330         </nationalNumberPattern>
3331         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3332         <exampleNumber>2423591234</exampleNumber>
3333       </mobile>
3334       <tollFree>
3335         <!-- 242 300 is a Domestic Toll Free service. -->
3336         <nationalNumberPattern>
3337           242300\d{4}|
3338           8(?:
3339             00|
3340             44|
3341             55|
3342             66|
3343             77|
3344             88
3345           )[2-9]\d{6}
3346         </nationalNumberPattern>
3347         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3348         <exampleNumber>8002123456</exampleNumber>
3349       </tollFree>
3350       <premiumRate>
3351         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3352         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3353         <exampleNumber>9002123456</exampleNumber>
3354       </premiumRate>
3355       <personalNumber>
3356         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3357         <nationalNumberPattern>
3358           5(?:
3359             00|
3360             33|
3361             44|
3362             66|
3363             77
3364           )[2-9]\d{6}
3365         </nationalNumberPattern>
3366         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3367         <exampleNumber>5002345678</exampleNumber>
3368       </personalNumber>
3369     </territory>
3370
3371     <!-- Bhutan -->
3372     <territory id="BT" countryCode="975" internationalPrefix="00">
3373       <references>
3374         <sourceUrl>http://www.itu.int/oth/T0202000019/en</sourceUrl>
3375       </references>
3376       <availableFormats>
3377         <!-- Format is from
3378              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
3379         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
3380           <leadingDigits>
3381             1|
3382             77
3383           </leadingDigits>
3384           <format>$1 $2 $3 $4</format>
3385         </numberFormat>
3386         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
3387           <leadingDigits>
3388             [2-68]|
3389             7[246]
3390           </leadingDigits>
3391           <format>$1 $2 $3</format>
3392         </numberFormat>
3393       </availableFormats>
3394       <generalDesc>
3395         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
3396         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
3397       </generalDesc>
3398       <fixedLine>
3399         <nationalNumberPattern>
3400           (?:
3401             2[3-6]|
3402             [34][5-7]|
3403             5[236]|
3404             6[2-46]|
3405             7[246]|
3406             8[2-4]
3407           )\d{5}
3408         </nationalNumberPattern>
3409         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
3410         <exampleNumber>2345678</exampleNumber>
3411       </fixedLine>
3412       <mobile>
3413         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
3414              is in use. -->
3415         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
3416         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3417         <exampleNumber>17123456</exampleNumber>
3418       </mobile>
3419       <!-- No information on other types of phone numbers for Bhutan has been found. -->
3420     </territory>
3421
3422     <!-- Botswana -->
3423     <territory id="BW" countryCode="267" internationalPrefix="00">
3424       <references>
3425         <sourceUrl>http://www.itu.int/oth/T020200001C/en</sourceUrl>
3426       </references>
3427       <availableFormats>
3428         <numberFormat pattern="(\d{3})(\d{4})">
3429           <leadingDigits>[2-6]</leadingDigits>
3430           <format>$1 $2</format>
3431         </numberFormat>
3432         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
3433           <leadingDigits>7</leadingDigits>
3434           <format>$1 $2 $3</format>
3435         </numberFormat>
3436         <numberFormat pattern="(90)(\d{5})">
3437           <leadingDigits>9</leadingDigits>
3438           <format>$1 $2</format>
3439         </numberFormat>
3440       </availableFormats>
3441       <generalDesc>
3442         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
3443         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3444       </generalDesc>
3445       <fixedLine>
3446         <nationalNumberPattern>
3447           (?:
3448             2(?:
3449               4[0-48]|
3450               6[0-24]|
3451               9[0578]
3452             )|
3453             3(?:
3454               1[0235-9]|
3455               55|
3456               6\d|
3457               7[01]|
3458               9[0-57]
3459             )|
3460             4(?:
3461               6[03]|
3462               7[1267]|
3463               9[0-5]
3464             )|
3465             5(?:
3466               3[0389]|
3467               4[0489]|
3468               7[1-47]|
3469               88|
3470               9[0-49]
3471             )|
3472             6(?:
3473               2[1-35]|
3474               5[149]|
3475               8[067]
3476             )
3477           )\d{4}
3478         </nationalNumberPattern>
3479         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3480         <exampleNumber>2401234</exampleNumber>
3481       </fixedLine>
3482       <mobile>
3483         <nationalNumberPattern>
3484           7(?:
3485             [1-356]\d|
3486             4[0-7]|
3487             7[014-7]
3488           )\d{5}
3489         </nationalNumberPattern>
3490         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3491         <exampleNumber>71123456</exampleNumber>
3492       </mobile>
3493       <!-- No reliable information about toll-free numbers can be found; many are written on the
3494            internet like 0800 123 456, but this is not supported by any documentation and no
3495            numbers can be found that actually work. -->
3496       <premiumRate>
3497         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
3498         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3499         <exampleNumber>9012345</exampleNumber>
3500       </premiumRate>
3501       <voip>
3502         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
3503         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3504         <exampleNumber>79101234</exampleNumber>
3505       </voip>
3506     </territory>
3507
3508     <!-- Belarus -->
3509     <!-- Information on national prefix provided by a Belarussian person. -->
3510     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
3511                internationalPrefix="810" nationalPrefixForParsing="8?0?"
3512                nationalPrefix="8" mobileNumberPortableRegion="true">
3513       <references>
3514         <sourceUrl>http://www.eng.beltelecom.by/en/subscribers/phone-codes</sourceUrl>
3515       </references>
3516       <availableFormats>
3517         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3518           pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
3519           <leadingDigits>
3520             17[0-3589]|
3521             2[4-9]|
3522             [34]
3523           </leadingDigits>
3524           <leadingDigits>
3525             17(?:
3526               [02358]|
3527               1[0-2]|
3528               9[0189]
3529             )|
3530             2[4-9]|
3531             [34]
3532           </leadingDigits>
3533           <format>$1 $2-$3-$4</format>
3534         </numberFormat>
3535         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3536           pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
3537           <leadingDigits>
3538             1(?:
3539               5[24]|
3540               6[235]|
3541               7[467]
3542             )|
3543             2(?:
3544               1[246]|
3545               2[25]|
3546               3[26]
3547             )
3548           </leadingDigits>
3549           <leadingDigits>
3550             1(?:
3551               5[24]|
3552               6(?:
3553                 2|
3554                 3[04-9]|
3555                 5[0346-9]
3556               )|
3557               7(?:
3558                 [46]|
3559                 7[37-9]
3560               )
3561             )|
3562             2(?:
3563               1[246]|
3564               2[25]|
3565               3[26]
3566             )
3567           </leadingDigits>
3568           <format>$1 $2-$3-$4</format>
3569         </numberFormat>
3570         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3571           pattern="(\d{4})(\d{2})(\d{3})">
3572           <leadingDigits>
3573             1(?:
3574               5[169]|
3575               6[3-5]|
3576               7[179]
3577             )|
3578             2(?:
3579               1[35]|
3580               2[34]|
3581               3[3-5]
3582             )
3583           </leadingDigits>
3584           <leadingDigits>
3585             1(?:
3586               5[169]|
3587               6(?:
3588                 3[1-3]|
3589                 4|
3590                 5[125]
3591               )|
3592               7(?:
3593                 1[3-9]|
3594                 7[0-24-6]|
3595                 9[2-7]
3596               )
3597             )|
3598             2(?:
3599               1[35]|
3600               2[34]|
3601               3[3-5]
3602             )
3603           </leadingDigits>
3604           <format>$1 $2-$3</format>
3605         </numberFormat>
3606         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3607           pattern="([89]\d{2})(\d{3})(\d{4})">
3608           <leadingDigits>
3609             8[01]|
3610             9
3611           </leadingDigits>
3612           <format>$1 $2 $3</format>
3613         </numberFormat>
3614         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3615           pattern="(8\d{2})(\d{4})(\d{4})">
3616           <leadingDigits>82</leadingDigits>
3617           <format>$1 $2 $3</format>
3618         </numberFormat>
3619       </availableFormats>
3620       <generalDesc>
3621         <nationalNumberPattern>
3622           [1-4]\d{8}|
3623           [89]\d{9,10}
3624         </nationalNumberPattern>
3625         <!-- Numbers are often written without the city code. -->
3626         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
3627       </generalDesc>
3628       <!-- Toll-free and premium rate numbers are not available from abroad. -->
3629       <noInternationalDialling>
3630         <nationalNumberPattern>
3631           8(?:
3632             [013]|
3633             [12]0
3634           )\d{8}|
3635           902\d{7}
3636         </nationalNumberPattern>
3637         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3638         <exampleNumber>82012345678</exampleNumber>
3639       </noInternationalDialling>
3640       <fixedLine>
3641         <nationalNumberPattern>
3642           (?:
3643             1(?:
3644               5(?:
3645                 1[1-5]|
3646                 [24]\d|
3647                 6[2-4]|
3648                 9[1-7]
3649               )|
3650               6(?:
3651                 [235]\d|
3652                 4[1-7]
3653               )|
3654               7\d{2}
3655             )|
3656             2(?:
3657               1(?:
3658                 [246]\d|
3659                 3[0-35-9]|
3660                 5[1-9]
3661               )|
3662               2(?:
3663                 [235]\d|
3664                 4[0-8]
3665               )|
3666               3(?:
3667                 [26]\d|
3668                 3[02-79]|
3669                 4[024-7]|
3670                 5[03-7]
3671               )
3672             )
3673           )\d{5}
3674         </nationalNumberPattern>
3675         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3676         <!-- Using test number for Grodno from the plan. -->
3677         <exampleNumber>152450911</exampleNumber>
3678       </fixedLine>
3679       <mobile>
3680         <nationalNumberPattern>
3681           (?:
3682             2(?:
3683               5[5679]|
3684               9[1-9]
3685             )|
3686             33\d|
3687             44\d
3688           )\d{6}
3689         </nationalNumberPattern>
3690         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3691         <!-- Using test number for BelCel from the plan. -->
3692         <exampleNumber>294911911</exampleNumber>
3693       </mobile>
3694       <tollFree>
3695         <!-- Putting Interactive Polling Service (free) here too. -->
3696         <nationalNumberPattern>
3697           8(?:
3698             0[13]|
3699             20\d
3700           )\d{7}
3701         </nationalNumberPattern>
3702         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3703         <exampleNumber>8011234567</exampleNumber>
3704       </tollFree>
3705       <premiumRate>
3706         <!-- Putting Interactive Polling Service (paid) here too. -->
3707         <nationalNumberPattern>
3708           (?:
3709             810|
3710             902
3711           )\d{7}
3712         </nationalNumberPattern>
3713         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3714         <exampleNumber>9021234567</exampleNumber>
3715       </premiumRate>
3716       <voip>
3717         <!-- 249 prefix for Beltelcom's Maxiphone added based on online info. -->
3718         <nationalNumberPattern>249\d{6}</nationalNumberPattern>
3719         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3720         <exampleNumber>249123456</exampleNumber>
3721       </voip>
3722     </territory>
3723
3724     <!-- Belize -->
3725     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
3726          -->
3727     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
3728       <references>
3729         <sourceUrl>http://www.itu.int/oth/T0202000016/en</sourceUrl>
3730       </references>
3731       <availableFormats>
3732         <numberFormat pattern="(\d{3})(\d{4})">
3733           <leadingDigits>[2-8]</leadingDigits>
3734           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
3735           <format>$1-$2</format>
3736         </numberFormat>
3737         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
3738           <leadingDigits>0</leadingDigits>
3739           <format>$1-$2-$3-$4</format>
3740         </numberFormat>
3741       </availableFormats>
3742       <generalDesc>
3743         <nationalNumberPattern>
3744           [2-8]\d{6}|
3745           0\d{10}
3746         </nationalNumberPattern>
3747         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
3748       </generalDesc>
3749       <fixedLine>
3750         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
3751         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3752         <exampleNumber>2221234</exampleNumber>
3753       </fixedLine>
3754       <mobile>
3755         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
3756              to these numbers or many numbers have been found online. -->
3757         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
3758         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3759         <exampleNumber>6221234</exampleNumber>
3760       </mobile>
3761       <!-- We don't know how these would be dialled internationally - it is possible that they can't
3762            be dialled internationally at all - so we represent the leading 0 as part of the number.
3763            Information from http://www.belizetelemedia.net. -->
3764       <tollFree>
3765         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
3766         <possibleNumberPattern>\d{11}</possibleNumberPattern>
3767         <exampleNumber>08001234123</exampleNumber>
3768       </tollFree>
3769     </territory>
3770
3771     <!-- Canada -->
3772     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1"
3773                mobileNumberPortableRegion="true">
3774       <references>
3775         <sourceUrl>http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm</sourceUrl>
3776       </references>
3777       <generalDesc>
3778         <!-- NANPA country - uses US formatting rules -->
3779         <nationalNumberPattern>
3780           [2-9]\d{9}|
3781           3\d{6}
3782         </nationalNumberPattern>
3783         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3784       </generalDesc>
3785       <fixedLine>
3786         <nationalNumberPattern>
3787           (?:
3788             2(?:
3789               04|
3790               [23]6|
3791               [48]9|
3792               50
3793             )|
3794             3(?:
3795               06|
3796               43|
3797               65
3798             )|
3799             4(?:
3800               03|
3801               1[68]|
3802               3[178]|
3803               50
3804             )|
3805             5(?:
3806               06|
3807               1[49]|
3808               79|
3809               8[17]
3810             )|
3811             6(?:
3812               0[04]|
3813               13|
3814               39|
3815               47
3816             )|
3817             7(?:
3818               0[59]|
3819               78|
3820               8[02]
3821             )|
3822             8(?:
3823               [06]7|
3824               19|
3825               73
3826             )|
3827             90[25]
3828           )[2-9]\d{6}|
3829           310\d{4}
3830         </nationalNumberPattern>
3831         <exampleNumber>2042345678</exampleNumber>
3832       </fixedLine>
3833       <mobile>
3834         <nationalNumberPattern>
3835           (?:
3836             2(?:
3837               04|
3838               [23]6|
3839               [48]9|
3840               50
3841             )|
3842             3(?:
3843               06|
3844               43|
3845               65
3846             )|
3847             4(?:
3848               03|
3849               1[68]|
3850               3[178]|
3851               50
3852             )|
3853             5(?:
3854               06|
3855               1[49]|
3856               79|
3857               8[17]
3858             )|
3859             6(?:
3860               0[04]|
3861               13|
3862               39|
3863               47
3864             )|
3865             7(?:
3866               0[59]|
3867               78|
3868               8[02]
3869             )|
3870             8(?:
3871               [06]7|
3872               19|
3873               73
3874             )|
3875             90[25]
3876           )[2-9]\d{6}
3877         </nationalNumberPattern>
3878         <exampleNumber>2042345678</exampleNumber>
3879       </mobile>
3880       <tollFree>
3881         <nationalNumberPattern>
3882           8(?:
3883             00|
3884             44|
3885             55|
3886             66|
3887             77|
3888             88
3889           )[2-9]\d{6}|
3890           310\d{4}
3891         </nationalNumberPattern>
3892         <exampleNumber>8002123456</exampleNumber>
3893       </tollFree>
3894       <premiumRate>
3895         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3896         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3897         <exampleNumber>9002123456</exampleNumber>
3898       </premiumRate>
3899       <personalNumber>
3900         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
3901         <nationalNumberPattern>
3902           5(?:
3903             00|
3904             33|
3905             44|
3906             66|
3907             77
3908           )[2-9]\d{6}
3909         </nationalNumberPattern>
3910         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3911         <exampleNumber>5002345678</exampleNumber>
3912       </personalNumber>
3913     </territory>
3914
3915     <!-- Cocos Islands -->
3916     <!-- Metadata shared with Australia. -->
3917     <!-- References state Cocos Islands have fixed line numbers starting +61 8 9162. -->
3918     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
3919                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
3920                nationalPrefix="0">
3921       <references>
3922         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
3923         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
3924       </references>
3925       <!-- Uses AU formatting rules. -->
3926       <!-- General desc and fixed line rules different from Australia. -->
3927       <generalDesc>
3928         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
3929         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3930       </generalDesc>
3931       <fixedLine>
3932         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
3933         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
3934         <exampleNumber>891621234</exampleNumber>
3935       </fixedLine>
3936       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
3937       <mobile>
3938         <nationalNumberPattern>
3939           14(?:
3940             5\d|
3941             71
3942           )\d{5}|
3943           4(?:
3944             [0-2]\d|
3945             3[0-57-9]|
3946             4[47-9]|
3947             5[0-25-9]|
3948             6[6-9]|
3949             7[03-9]|
3950             8[17-9]|
3951             9[017-9]
3952           )\d{6}
3953         </nationalNumberPattern>
3954         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3955         <exampleNumber>412345678</exampleNumber>
3956       </mobile>
3957       <tollFree>
3958         <nationalNumberPattern>
3959           1(?:
3960             80(?:
3961               0\d{2}
3962             )?|
3963             3(?:
3964               00\d{2}
3965             )?
3966           )\d{4}
3967         </nationalNumberPattern>
3968         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3969         <exampleNumber>1800123456</exampleNumber>
3970       </tollFree>
3971       <premiumRate>
3972         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
3973         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3974         <exampleNumber>1900123456</exampleNumber>
3975       </premiumRate>
3976       <personalNumber>
3977         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
3978         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3979         <exampleNumber>500123456</exampleNumber>
3980       </personalNumber>
3981       <voip>
3982         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
3983         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3984         <exampleNumber>550123456</exampleNumber>
3985       </voip>
3986     </territory>
3987
3988     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
3989     <territory id="CD" countryCode="243" internationalPrefix="00"
3990                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
3991       <references>
3992         <sourceUrl>http://www.itu.int/oth/T0202000037/en</sourceUrl>
3993       </references>
3994       <availableFormats>
3995         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3996           <leadingDigits>12</leadingDigits>
3997           <format>$1 $2 $3</format>
3998         </numberFormat>
3999         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4000           <leadingDigits>
4001             8[0-2459]|
4002             9
4003           </leadingDigits>
4004           <format>$1 $2 $3</format>
4005         </numberFormat>
4006         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
4007           <leadingDigits>88</leadingDigits>
4008           <format>$1 $2 $3</format>
4009         </numberFormat>
4010         <numberFormat pattern="(\d{2})(\d{5})">
4011           <leadingDigits>[1-6]</leadingDigits>
4012           <format>$1 $2</format>
4013         </numberFormat>
4014       </availableFormats>
4015       <generalDesc>
4016         <nationalNumberPattern>
4017           [2-6]\d{6}|
4018           [18]\d{6,8}|
4019           9\d{8}
4020         </nationalNumberPattern>
4021         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4022       </generalDesc>
4023       <fixedLine>
4024         <nationalNumberPattern>
4025           1(?:
4026             2\d{7}|
4027             \d{6}
4028           )|
4029           [2-6]\d{6}
4030         </nationalNumberPattern>
4031         <exampleNumber>1234567</exampleNumber>
4032       </fixedLine>
4033       <mobile>
4034         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
4035              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
4036              holdings company http://www.timeturnsholdings.com/products does not show a link for
4037              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
4038              tried were valid. If the holdings company does not respond to requests about this
4039              range and unless we receive further information, we will remove this range. -->
4040         <nationalNumberPattern>
4041           8(?:
4042             [0-2459]\d{2}|
4043             8
4044           )\d{5}|
4045           9[7-9]\d{7}
4046         </nationalNumberPattern>
4047         <exampleNumber>991234567</exampleNumber>
4048       </mobile>
4049     </territory>
4050
4051     <!-- Central African Republic -->
4052     <territory id="CF" countryCode="236" internationalPrefix="00">
4053       <references>
4054         <sourceUrl>http://www.itu.int/oth/T0202000028/en</sourceUrl>
4055       </references>
4056       <availableFormats>
4057         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4058           <format>$1 $2 $3 $4</format>
4059         </numberFormat>
4060       </availableFormats>
4061       <generalDesc>
4062         <nationalNumberPattern>[278]\d{7}</nationalNumberPattern>
4063         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4064       </generalDesc>
4065       <fixedLine>
4066         <nationalNumberPattern>2[12]\d{6}</nationalNumberPattern>
4067         <exampleNumber>21612345</exampleNumber>
4068       </fixedLine>
4069       <mobile>
4070         <nationalNumberPattern>7[0257]\d{6}</nationalNumberPattern>
4071         <exampleNumber>70012345</exampleNumber>
4072       </mobile>
4073       <premiumRate>
4074         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
4075         <exampleNumber>87761234</exampleNumber>
4076       </premiumRate>
4077     </territory>
4078
4079     <!-- Congo (Rep. of the) (Brazzaville) -->
4080     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
4081       <references>
4082         <sourceUrl>http://www.itu.int/oth/T020200002E/en</sourceUrl>
4083       </references>
4084       <availableFormats>
4085         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
4086           <leadingDigits>[02]</leadingDigits>
4087           <format>$1 $2 $3</format>
4088         </numberFormat>
4089         <numberFormat pattern="(\d)(\d{4})(\d{4})">
4090           <leadingDigits>8</leadingDigits>
4091           <format>$1 $2 $3</format>
4092         </numberFormat>
4093       </availableFormats>
4094       <generalDesc>
4095         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
4096         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4097       </generalDesc>
4098       <fixedLine>
4099         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
4100         <exampleNumber>222123456</exampleNumber>
4101       </fixedLine>
4102       <mobile>
4103         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
4104         <exampleNumber>061234567</exampleNumber>
4105       </mobile>
4106       <!-- Referred to as a "Green number" in the telephone plan. -->
4107       <tollFree>
4108         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4109         <exampleNumber>800123456</exampleNumber>
4110       </tollFree>
4111     </territory>
4112
4113     <!-- Switzerland -->
4114     <territory id="CH" countryCode="41" internationalPrefix="00"
4115                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG"
4116                mobileNumberPortableRegion="true">
4117       <references>
4118         <!-- Under Technical prescriptions: Numbering plan for international carriers. -->
4119         <sourceUrl>http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en</sourceUrl>
4120       </references>
4121       <availableFormats>
4122         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
4123           <leadingDigits>
4124             [2-7]|
4125             [89]1
4126           </leadingDigits>
4127           <format>$1 $2 $3 $4</format>
4128         </numberFormat>
4129         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4130           <leadingDigits>
4131             8[047]|
4132             90
4133           </leadingDigits>
4134           <format>$1 $2 $3</format>
4135         </numberFormat>
4136         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
4137           <leadingDigits>860</leadingDigits>
4138           <format>$1 $2 $3 $4 $5</format>
4139         </numberFormat>
4140       </availableFormats>
4141       <generalDesc>
4142         <nationalNumberPattern>
4143           [2-9]\d{8}|
4144           860\d{9}
4145         </nationalNumberPattern>
4146         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
4147       </generalDesc>
4148       <fixedLine>
4149         <nationalNumberPattern>
4150           (?:
4151             2[12467]|
4152             3[1-4]|
4153             4[134]|
4154             5[256]|
4155             6[12]|
4156             [7-9]1
4157           )\d{7}
4158         </nationalNumberPattern>
4159         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4160         <exampleNumber>212345678</exampleNumber>
4161       </fixedLine>
4162       <mobile>
4163         <nationalNumberPattern>7[5-9]\d{7}</nationalNumberPattern>
4164         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4165         <exampleNumber>781234567</exampleNumber>
4166       </mobile>
4167       <pager>
4168         <!-- https://www.eofcom.admin.ch/eofcom/public/listEofcom_e164Allocated.do -->
4169         <nationalNumberPattern>74[0248]\d{6}</nationalNumberPattern>
4170         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4171         <exampleNumber>740123456</exampleNumber>
4172       </pager>
4173       <tollFree>
4174         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4175         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4176         <exampleNumber>800123456</exampleNumber>
4177       </tollFree>
4178       <premiumRate>
4179         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
4180         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4181         <exampleNumber>900123456</exampleNumber>
4182       </premiumRate>
4183       <sharedCost>
4184         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
4185         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4186         <exampleNumber>840123456</exampleNumber>
4187       </sharedCost>
4188       <personalNumber>
4189         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
4190         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4191         <exampleNumber>878123456</exampleNumber>
4192       </personalNumber>
4193       <uan>
4194         <!-- Used for corporate networks. -->
4195         <nationalNumberPattern>5[18]\d{7}</nationalNumberPattern>
4196         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4197         <exampleNumber>581234567</exampleNumber>
4198       </uan>
4199       <voicemail>
4200         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
4201         <possibleNumberPattern>\d{12}</possibleNumberPattern>
4202         <exampleNumber>860123456789</exampleNumber>
4203       </voicemail>
4204     </territory>
4205
4206     <!-- Côte d'Ivoire -->
4207     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
4208       <references>
4209         <sourceUrl>http://www.itu.int/oth/T0202000031/en</sourceUrl>
4210       </references>
4211       <availableFormats>
4212         <!-- Using format from online yellow pages over format implied in national numbering plan.
4213              -->
4214         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4215           <format>$1 $2 $3 $4</format>
4216         </numberFormat>
4217       </availableFormats>
4218       <generalDesc>
4219         <nationalNumberPattern>[02-7]\d{7}</nationalNumberPattern>
4220         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4221       </generalDesc>
4222       <fixedLine>
4223         <nationalNumberPattern>
4224           (?:
4225             2(?:
4226               0[023]|
4227               1[02357]|
4228               [23][045]|
4229               4[03-5]
4230             )|
4231             3(?:
4232               0[06]|
4233               1[069]|
4234               [2-4][07]|
4235               5[09]|
4236               6[08]
4237             )
4238           )\d{5}
4239         </nationalNumberPattern>
4240         <exampleNumber>21234567</exampleNumber>
4241       </fixedLine>
4242       <mobile>
4243         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 6[15] because SMS messages have been
4244              successfully delivered. Supported by numbers found on the internet. The prefix 56 was
4245              assigned to MTN in July 2013:
4246              http://www.atci.ci/images/stories/pdf/decisions-dg/decision_002.pdf
4247              The prefix 75 is from an open-source bug report.
4248              50 has been removed since Warid seems to have stopped operation in Côte d'Ivoire. -->
4249           <nationalNumberPattern>
4250           (?:
4251             0[1-9]|
4252             4[0-24-9]|
4253             5[4-9]|
4254             6[015-79]|
4255             7[578]
4256           )\d{6}
4257         </nationalNumberPattern>
4258         <exampleNumber>01234567</exampleNumber>
4259       </mobile>
4260     </territory>
4261
4262     <!-- Cook Islands -->
4263     <territory id="CK" countryCode="682" internationalPrefix="00">
4264       <references>
4265         <sourceUrl>http://www.itu.int/oth/T020200002F/en</sourceUrl>
4266       </references>
4267       <availableFormats>
4268         <numberFormat pattern="(\d{2})(\d{3})">
4269           <format>$1 $2</format>
4270         </numberFormat>
4271       </availableFormats>
4272       <generalDesc>
4273         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
4274         <possibleNumberPattern>\d{5}</possibleNumberPattern>
4275       </generalDesc>
4276       <fixedLine>
4277         <nationalNumberPattern>
4278           (?:
4279             2\d|
4280             3[13-7]|
4281             4[1-5]
4282           )\d{3}
4283         </nationalNumberPattern>
4284         <exampleNumber>21234</exampleNumber>
4285       </fixedLine>
4286       <mobile>
4287         <nationalNumberPattern>
4288           (?:
4289             5[0-68]|
4290             7\d
4291           )\d{3}
4292         </nationalNumberPattern>
4293         <exampleNumber>71234</exampleNumber>
4294       </mobile>
4295     </territory>
4296
4297     <!-- Chile -->
4298     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
4299     <territory id="CL" countryCode="56"
4300                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
4301                nationalPrefix="0"
4302                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
4303                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
4304       <references>
4305         <sourceUrl>http://www.itu.int/oth/T020200002A/en</sourceUrl>
4306         <sourceUrl>http://en.wikipedia.org/wiki/%2B56</sourceUrl>
4307         <sourceUrl>http://www.subtel.gob.cl/base_numeracion/tabla_numeracion_ido_idd.xlsx</sourceUrl>
4308       </references>
4309       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
4310            we strip here. National destinations may be dialled with a carrier if they are not local
4311            so we extract these carrier codes as well. -->
4312       <availableFormats>
4313         <numberFormat pattern="(\d)(\d{4})(\d{4})"
4314           nationalPrefixFormattingRule="($FG)"
4315           carrierCodeFormattingRule="$CC ($FG)">
4316           <leadingDigits>22</leadingDigits>
4317           <format>$1 $2 $3</format>
4318         </numberFormat>
4319         <numberFormat pattern="(\d{2})(\d{3})(\d{4})"
4320           nationalPrefixFormattingRule="($FG)"
4321           carrierCodeFormattingRule="$CC ($FG)">
4322           <leadingDigits>
4323             [357]|
4324             4[1-35]|
4325             6[13-57]
4326           </leadingDigits>
4327           <format>$1 $2 $3</format>
4328         </numberFormat>
4329         <numberFormat pattern="(9)(\d{4})(\d{4})">
4330           <leadingDigits>9</leadingDigits>
4331           <format>$1 $2 $3</format>
4332         </numberFormat>
4333         <numberFormat pattern="(44)(\d{3})(\d{4})">
4334           <leadingDigits>44</leadingDigits>
4335           <format>$1 $2 $3</format>
4336         </numberFormat>
4337         <numberFormat nationalPrefixFormattingRule="$FG"
4338           pattern="([68]00)(\d{3})(\d{3,4})">
4339           <leadingDigits>
4340             60|
4341             8
4342           </leadingDigits>
4343           <format>$1 $2 $3</format>
4344         </numberFormat>
4345         <numberFormat nationalPrefixFormattingRule="$FG"
4346           pattern="(600)(\d{3})(\d{2})(\d{3})">
4347           <leadingDigits>60</leadingDigits>
4348           <format>$1 $2 $3 $4</format>
4349         </numberFormat>
4350         <numberFormat nationalPrefixFormattingRule="$FG"
4351           pattern="(1230)(\d{3})(\d{4})">
4352           <leadingDigits>1</leadingDigits>
4353           <format>$1 $2 $3</format>
4354         </numberFormat>
4355         <numberFormat pattern="(\d{5})(\d{4})"
4356           nationalPrefixFormattingRule="($FG)"
4357           carrierCodeFormattingRule="$CC ($FG)">
4358           <leadingDigits>219</leadingDigits>
4359           <format>$1 $2</format>
4360         </numberFormat>
4361         <!-- Format some short numbers as a block. -->
4362         <numberFormat nationalPrefixFormattingRule="$FG"
4363           pattern="(\d{4,5})">
4364           <leadingDigits>[1-9]</leadingDigits>
4365           <format>$1</format>
4366           <intlFormat>NA</intlFormat>
4367         </numberFormat>
4368       </availableFormats>
4369       <generalDesc>
4370         <nationalNumberPattern>
4371           (?:
4372             [2-9]|
4373             600|
4374             123
4375           )\d{7,8}
4376         </nationalNumberPattern>
4377         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4378       </generalDesc>
4379       <noInternationalDialling>
4380         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4381         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4382         <exampleNumber>6001234567</exampleNumber>
4383       </noInternationalDialling>
4384       <fixedLine>
4385         <!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by
4386              inserting a '2' after the area code (which are 2 digits, with the exception of '2').
4387              As of Aug. 2014, all of the prefixes have been switched over to the new plan.
4388              IMPORTANT: The fact that Santiago numbers have a prefix of "22", and that numbers in
4389              other areas have '2' as their third digit, is likely to change in the future. At some
4390              stage, Santiago numbers will probably switch to prefix "2\d", and the third digit in
4391              other areas will probably be allowed to take on other values.
4392              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
4393                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
4394              -->
4395         <nationalNumberPattern>
4396           2(?:
4397             2\d{7}|
4398             1962\d{4}
4399           )|
4400           (?:
4401             3[2-5]|
4402             [47][1-35]|
4403             5[1-3578]|
4404             6[13-57]
4405           )\d{7}
4406         </nationalNumberPattern>
4407         <!-- Area codes do not need to be dialled when dialling within the same area, so the
4408              smallest possible number is length 7. -->
4409         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4410         <exampleNumber>221234567</exampleNumber>
4411       </fixedLine>
4412       <mobile>
4413         <nationalNumberPattern>9[4-9]\d{7}</nationalNumberPattern>
4414         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4415         <exampleNumber>961234567</exampleNumber>
4416       </mobile>
4417       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
4418            from a definitive source. -->
4419       <tollFree>
4420         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
4421         <nationalNumberPattern>
4422           800\d{6}|
4423           1230\d{7}
4424         </nationalNumberPattern>
4425         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
4426         <exampleNumber>800123456</exampleNumber>
4427       </tollFree>
4428       <sharedCost>
4429         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
4430         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4431         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4432         <exampleNumber>6001234567</exampleNumber>
4433       </sharedCost>
4434       <voip>
4435         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
4436         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4437         <exampleNumber>441234567</exampleNumber>
4438       </voip>
4439     </territory>
4440
4441     <!-- Cameroon -->
4442     <territory id="CM" countryCode="237" internationalPrefix="00">
4443       <references>
4444         <sourceUrl>http://www.itu.int/oth/T0202000024/en</sourceUrl>
4445         <sourceUrl>http://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-OB.1063-2014-OAS-PDF-E.pdf</sourceUrl>
4446       </references>
4447       <availableFormats>
4448         <!-- Formatting in the ITU update document aligns with formatting online (all 2 digit
4449              groups). For the new number format with 9 digits the first digit has it's own group.
4450              -->
4451         <numberFormat pattern="([26])(\d{2})(\d{2})(\d{2})(\d{2})">
4452           <leadingDigits>[26]</leadingDigits>
4453           <format>$1 $2 $3 $4 $5</format>
4454         </numberFormat>
4455         <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
4456           <leadingDigits>
4457             [23579]|
4458             88
4459           </leadingDigits>
4460           <format>$1 $2 $3 $4</format>
4461         </numberFormat>
4462         <numberFormat pattern="(800)(\d{2})(\d{3})">
4463           <leadingDigits>80</leadingDigits>
4464           <format>$1 $2 $3</format>
4465         </numberFormat>
4466       </availableFormats>
4467       <generalDesc>
4468         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
4469         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4470       </generalDesc>
4471       <fixedLine>
4472         <!-- Temporarily allow both old (22|33) and new 2(22|33) format. -->
4473         <!-- CDMA numbers are described in a subcategory to fixed line numbers in the ITU update
4474              document, so those prefixes are added to fixed line (24[23]). -->
4475         <nationalNumberPattern>
4476           2(?:
4477              22|
4478              33|
4479              4[23]
4480           )\d{6}|
4481           (?:
4482             22|
4483             33
4484           )\d{6}
4485         </nationalNumberPattern>
4486         <exampleNumber>222123456</exampleNumber>
4487       </fixedLine>
4488       <mobile>
4489         <!-- Temporarily allow both old [579]\d{7} and new 6[5-79]\d{7} format. -->
4490         <nationalNumberPattern>
4491           6[5-79]\d{7}|
4492           [579]\d{7}
4493         </nationalNumberPattern>
4494         <exampleNumber>671234567</exampleNumber>
4495       </mobile>
4496       <tollFree>
4497         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
4498         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4499         <exampleNumber>80012345</exampleNumber>
4500       </tollFree>
4501       <premiumRate>
4502         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
4503              with 88 (usually 880). No information can be found as to whether these are premium rate
4504              or shared cost. -->
4505         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
4506         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4507         <exampleNumber>88012345</exampleNumber>
4508       </premiumRate>
4509     </territory>
4510
4511     <!-- China -->
4512     <!-- The international/national prefix patterns must not collide with valid prefixes such
4513          as 170, 176, 177 and 178. 179XX00 is a valid calling prefix, see: www.chahaoba.com/179 -->
4514     <territory id="CN" countryCode="86" internationalPrefix="(1(?:[129]\d{3}|79\d{2}))?00"
4515                preferredInternationalPrefix="00" nationalPrefix="0"
4516                nationalPrefixForParsing="(1(?:[129]\d{3}|79\d{2}))|0">
4517       <references>
4518         <sourceUrl>http://www.itu.int/oth/T020200002B/en</sourceUrl>
4519       </references>
4520       <availableFormats>
4521         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
4522                       nationalPrefixOptionalWhenFormatting="true"
4523                       carrierCodeFormattingRule="$CC $FG">
4524           <leadingDigits>80[2678]</leadingDigits>
4525           <format>$1 $2</format>
4526         </numberFormat>
4527         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
4528           <leadingDigits>[48]00</leadingDigits>
4529           <format>$1 $2 $3</format>
4530         </numberFormat>
4531         <!-- 100xx and 95xxx(x) short numbers without area codes. Without this rule, these short
4532              numbers will be formatted incorrectly by the AsYouTypeFormatter because they overlap
4533              with area codes 010, 095x. These numbers are defined in ShortNumberMetadata.xml but
4534              must be accounted for here. Note although ITU says the format is more like 95 xxx, in
4535              reality no space is used when writing such numbers in China. -->
4536         <numberFormat pattern="(\d{5,6})">
4537           <leadingDigits>
4538             100|
4539             95
4540           </leadingDigits>
4541           <format>$1</format>
4542           <intlFormat>NA</intlFormat>
4543         </numberFormat>
4544         <!-- 100xx and 95xxx(x) numbers with area codes (these numbers without an area code are now
4545              dealt with by ShortNumberMetadata.xml) and 96xxx(x) numbers with area codes (we don't
4546              support these as short numbers because they are only unique within a province, not
4547              within a country). -->
4548         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
4549                       carrierCodeFormattingRule="$CC $FG">
4550           <leadingDigits>
4551             (?:
4552               10|
4553               2\d
4554             )[19]
4555           </leadingDigits>
4556           <leadingDigits>
4557             (?:
4558               10|
4559               2\d
4560             )(?:
4561               10|
4562               9[56]
4563             )
4564           </leadingDigits>
4565           <leadingDigits>
4566             (?:
4567               10|
4568               2\d
4569             )(?:
4570               100|
4571               9[56]
4572             )
4573           </leadingDigits>
4574           <format>$1 $2</format>
4575         </numberFormat>
4576         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{5,6})"
4577                       carrierCodeFormattingRule="$CC $FG">
4578           <leadingDigits>[3-9]</leadingDigits>
4579           <leadingDigits>[3-9]\d{2}[19]</leadingDigits>
4580           <leadingDigits>
4581             [3-9]\d{2}(?:
4582               10|
4583               9[56]
4584             )
4585           </leadingDigits>
4586           <format>$1 $2</format>
4587         </numberFormat>
4588         <!-- Local numbers -->
4589         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
4590              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
4591              people frequently store them in their cellphones. It has to stay before formatting
4592              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
4593              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
4594         <numberFormat pattern="(\d{3,4})(\d{4})">
4595           <leadingDigits>[2-9]</leadingDigits>
4596           <format>$1 $2</format>
4597           <intlFormat>NA</intlFormat>
4598         </numberFormat>
4599         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
4600                       nationalPrefixOptionalWhenFormatting="true"
4601                       carrierCodeFormattingRule="$CC $FG">
4602           <leadingDigits>21</leadingDigits>
4603           <format>$1 $2 $3</format>
4604         </numberFormat>
4605         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
4606                       nationalPrefixOptionalWhenFormatting="true"
4607                       carrierCodeFormattingRule="$CC $FG">
4608           <leadingDigits>
4609             10[1-9]|
4610             2[02-9]
4611           </leadingDigits>
4612           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
4613           <leadingDigits>
4614             10[1-9]|
4615             2[02-9]
4616           </leadingDigits>
4617           <leadingDigits>
4618             10(?:
4619               [1-79]|
4620               8(?:
4621                 [1-9]|
4622                 0[1-9]
4623               )
4624             )|
4625             2[02-9]
4626           </leadingDigits>
4627           <format>$1 $2 $3</format>
4628         </numberFormat>
4629         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
4630                       nationalPrefixOptionalWhenFormatting="true"
4631                       carrierCodeFormattingRule="$CC $FG">
4632           <leadingDigits>
4633             3(?:
4634               11|
4635               7[179]
4636             )|
4637             4(?:
4638               [15]1|
4639               3[12]
4640             )|
4641             5(?:
4642               1|
4643               2[37]|
4644               3[12]|
4645               51|
4646               7[13-79]|
4647               9[15]
4648             )|
4649             7(?:
4650               31|
4651               5[457]|
4652               6[09]|
4653               91
4654             )|
4655             8(?:
4656               [57]1|
4657               98
4658             )
4659           </leadingDigits>
4660           <format>$1 $2 $3</format>
4661         </numberFormat>
4662         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
4663                       nationalPrefixOptionalWhenFormatting="true"
4664                       carrierCodeFormattingRule="$CC $FG">
4665           <leadingDigits>
4666             3(?:
4667               1[02-9]|
4668               35|
4669               49|
4670               5|
4671               7[02-68]|
4672               9[1-68]
4673             )|
4674             4(?:
4675               1[02-9]|
4676               2[179]|
4677               [35][2-9]|
4678               6[4789]|
4679               7\d|
4680               8[23]
4681             )|
4682             5(?:
4683               3[03-9]|
4684               4[36]|
4685               5[02-9]|
4686               6[1-46]|
4687               7[028]|
4688               80|
4689               9[2-46-9]
4690             )|
4691             6(?:
4692               3[1-5]|
4693               6[0238]|
4694               9[12]
4695             )|
4696             7(?:
4697               01|
4698               [1579]|
4699               2[248]|
4700               3[04-9]|
4701               4[3-6]|
4702               6[2368]
4703             )|
4704             8(?:
4705               1[236-8]|
4706               2[5-7]|
4707               3|
4708               5[4-9]|
4709               7[02-9]|
4710               8[3678]|
4711               9[1-7]
4712             )|
4713             9(?:
4714               0[1-3689]|
4715               1[1-79]|
4716               [379]|
4717               4[13]|
4718               5[1-5]
4719             )
4720           </leadingDigits>
4721           <format>$1 $2 $3</format>
4722         </numberFormat>
4723         <numberFormat pattern="(\d{3})(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
4724           <leadingDigits>1[3-578]</leadingDigits>
4725           <format>$1 $2 $3</format>
4726         </numberFormat>
4727         <numberFormat pattern="(10800)(\d{3})(\d{4})">
4728           <leadingDigits>108</leadingDigits>
4729           <leadingDigits>1080</leadingDigits>
4730           <leadingDigits>10800</leadingDigits>
4731           <format>$1 $2 $3</format>
4732         </numberFormat>
4733         <numberFormat pattern="(\d{3})(\d{7,8})">
4734           <leadingDigits>950</leadingDigits>
4735           <format>$1 $2</format>
4736         </numberFormat>
4737       </availableFormats>
4738       <generalDesc>
4739         <nationalNumberPattern>
4740           [1-7]\d{6,11}|
4741           8[0-357-9]\d{6,9}|
4742           9\d{7,10}
4743         </nationalNumberPattern>
4744         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
4745       </generalDesc>
4746       <noInternationalDialling>
4747         <nationalNumberPattern>
4748           (?:
4749             4|
4750             (?:
4751               10
4752             )?8
4753           )00\d{7}|
4754           950\d{7,8}
4755         </nationalNumberPattern>
4756         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4757         <exampleNumber>4001234567</exampleNumber>
4758       </noInternationalDialling>
4759       <fixedLine>
4760         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
4761              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
4762              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
4763              in the ITU data.
4764              10xxx and 95xxx(x) numbers with area codes are also included here, as they behave
4765              exactly like fixed-line numbers. We don't support them for 4-digit area codes though,
4766              as they don't seem to be used there based on making actual phone calls.
4767          -->
4768         <nationalNumberPattern>
4769           21(?:
4770             100\d{2}|
4771             95\d{3,4}|
4772             \d{8,10}
4773           )|
4774           (?:
4775             10|
4776             2[02-57-9]|
4777             3(?:
4778               11|
4779               7[179]
4780             )|
4781             4(?:
4782               [15]1|
4783               3[12]
4784             )|
4785             5(?:
4786               1\d|
4787               2[37]|
4788               3[12]|
4789               51|
4790               7[13-79]|
4791               9[15]
4792             )|
4793             7(?:
4794               31|
4795               5[457]|
4796               6[09]|
4797               91
4798             )|
4799             8(?:
4800               [57]1|
4801               98
4802             )
4803           )(?:
4804             100\d{2}|
4805             95\d{3,4}|
4806             \d{8}
4807           )|
4808           (?:
4809             3(?:
4810               1[02-9]|
4811               35|
4812               49|
4813               5\d|
4814               7[02-68]|
4815               9[1-68]
4816             )|
4817             4(?:
4818               1[02-9]|
4819               2[179]|
4820               3[3-9]|
4821               5[2-9]|
4822               6[4789]|
4823               7\d|
4824               8[23]
4825             )|
4826             5(?:
4827               3[03-9]|
4828               4[36]|
4829               5[02-9]|
4830               6[1-46]|
4831               7[028]|
4832               80|
4833               9[2-46-9]
4834             )|
4835             6(?:
4836               3[1-5]|
4837               6[0238]|
4838               9[12]
4839             )|
4840             7(?:
4841               01|
4842               [17]\d|
4843               2[248]|
4844               3[04-9]|
4845               4[3-6]|
4846               5[0-3689]|
4847               6[2368]|
4848               9[02-9]
4849             )|
4850             8(?:
4851               1[236-8]|
4852               2[5-7]|
4853               3\d|
4854               5[4-9]|
4855               7[02-9]|
4856               8[3678]|
4857               9[1-7]
4858             )|
4859             9(?:
4860               0[1-3689]|
4861               1[1-79]|
4862               [379]\d|
4863               4[13]|
4864               5[1-5]
4865             )
4866           )(?:
4867             100\d{2}|
4868             95\d{3,4}|
4869             \d{7}
4870           )|
4871           80(?:
4872             29|
4873             6[03578]|
4874             7[018]|
4875             81
4876           )\d{4}
4877         </nationalNumberPattern>
4878         <exampleNumber>1012345678</exampleNumber>
4879       </fixedLine>
4880       <mobile>
4881         <!-- 170, 176, 177 and 178 prefixes are introduced in early 2014 for 4G networks. -->
4882         <nationalNumberPattern>
4883           1(?:
4884             [38]\d|
4885             4[57]|
4886             5[0-35-9]|
4887             7[06-8]
4888           )\d{8}
4889         </nationalNumberPattern>
4890         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4891         <exampleNumber>13123456789</exampleNumber>
4892       </mobile>
4893       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
4894            number plan, and do not seem to have been standardized. The information below is
4895            collected from searching the web. -->
4896       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
4897       <tollFree>
4898         <nationalNumberPattern>
4899           (?:
4900             10
4901           )?800\d{7}
4902         </nationalNumberPattern>
4903         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4904         <exampleNumber>8001234567</exampleNumber>
4905       </tollFree>
4906       <premiumRate>
4907         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
4908         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4909         <exampleNumber>16812345</exampleNumber>
4910       </premiumRate>
4911       <sharedCost>
4912         <!-- 96xxx(x) numbers with area codes are included here. Their costs are not well
4913              documented, but they are thought to be mostly local costs with certain exceptions. We
4914              don't support them for 4-digit area codes though, as they don't seem to be used there
4915              based on online searches. -->
4916         <nationalNumberPattern>
4917           400\d{7}|
4918           950\d{7,8}|
4919           (?:
4920             10|
4921             2[0-57-9]|
4922             3(?:
4923               [157]\d|
4924               35|
4925               49|
4926               9[1-68]
4927             )|
4928             4(?:
4929               [17]\d|
4930               2[179]|
4931               [35][1-9]|
4932               6[4789]|
4933               8[23]
4934             )|
4935             5(?:
4936               [1357]\d|
4937               2[37]|
4938               4[36]|
4939               6[1-46]|
4940               80|
4941               9[1-9]
4942             )|
4943             6(?:
4944               3[1-5]|
4945               6[0238]|
4946               9[12]
4947             )|
4948             7(?:
4949               01|
4950               [1579]\d|
4951               2[248]|
4952               3[014-9]|
4953               4[3-6]|
4954               6[023689]
4955             )|
4956             8(?:
4957               1[236-8]|
4958               2[5-7]|
4959               [37]\d|
4960               5[14-9]|
4961               8[3678]|
4962               9[1-8]
4963             )|
4964             9(?:
4965               0[1-3689]|
4966               1[1-79]|
4967               [379]\d|
4968               4[13]|
4969               5[1-5]
4970             )
4971           )96\d{3,4}
4972         </nationalNumberPattern>
4973         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4974         <exampleNumber>4001234567</exampleNumber>
4975       </sharedCost>
4976     </territory>
4977
4978     <!-- Colombia -->
4979     <!-- Extra international dialling prefixes from http://www.claro.com.co and
4980          http://www.tigo.com.co. -->
4981     <!-- 05 and 005 are for Orbitel: co.orbitel.com -->
4982     <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])"
4983                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?"
4984                mobileNumberPortableRegion="true">
4985       <references>
4986         <sourceUrl>http://www.itu.int/oth/T020200002C/en</sourceUrl>
4987         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia</sourceUrl>
4988       </references>
4989       <availableFormats>
4990         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
4991           nationalPrefixFormattingRule="($FG)">
4992           <leadingDigits>
4993             1(?:
4994               8[2-9]|
4995               9[0-3]|
4996               [2-7]
4997             )|
4998             [24-8]
4999           </leadingDigits>
5000           <leadingDigits>
5001             1(?:
5002               8[2-9]|
5003               9(?:
5004                 09|
5005                 [1-3]
5006               )|
5007               [2-7]
5008             )|
5009             [24-8]
5010           </leadingDigits>
5011           <format>$1 $2</format>
5012         </numberFormat>
5013         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
5014           <leadingDigits>3</leadingDigits>
5015           <format>$1 $2</format>
5016         </numberFormat>
5017         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5018           <leadingDigits>
5019             1(?:
5020               80|
5021               9[04]
5022             )
5023           </leadingDigits>
5024           <leadingDigits>
5025             1(?:
5026               800|
5027               9(?:
5028                 0[01]|
5029                 4[78]
5030               )
5031             )
5032           </leadingDigits>
5033           <format>$1-$2-$3</format>
5034           <intlFormat>$1 $2 $3</intlFormat>
5035         </numberFormat>
5036       </availableFormats>
5037       <generalDesc>
5038         <nationalNumberPattern>
5039           (?:
5040             [13]\d{0,3}|
5041             [24-8]
5042           )\d{7}
5043         </nationalNumberPattern>
5044         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
5045       </generalDesc>
5046       <fixedLine>
5047         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
5048         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5049         <exampleNumber>12345678</exampleNumber>
5050       </fixedLine>
5051       <mobile>
5052         <nationalNumberPattern>
5053           3(?:
5054             0[0-5]|
5055             1\d|
5056             2[0-2]|
5057             5[01]
5058           )\d{7}
5059         </nationalNumberPattern>
5060         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5061         <exampleNumber>3211234567</exampleNumber>
5062       </mobile>
5063       <tollFree>
5064         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
5065         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5066         <exampleNumber>18001234567</exampleNumber>
5067       </tollFree>
5068       <premiumRate>
5069         <nationalNumberPattern>
5070           19(?:
5071             0[01]|
5072             4[78]
5073           )\d{7}
5074         </nationalNumberPattern>
5075         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5076         <exampleNumber>19001234567</exampleNumber>
5077       </premiumRate>
5078     </territory>
5079
5080     <!-- Costa Rica -->
5081     <territory id="CR" countryCode="506" internationalPrefix="00"
5082                nationalPrefixForParsing="(19(?:0[012468]|1[09]|20|66|77|99))"
5083                carrierCodeFormattingRule="$CC $FG">
5084       <references>
5085         <sourceUrl>http://www.itu.int/oth/T0202000030/en</sourceUrl>
5086       </references>
5087       <availableFormats>
5088         <numberFormat pattern="(\d{4})(\d{4})">
5089           <leadingDigits>
5090             [24-7]|
5091             8[3-9]
5092           </leadingDigits>
5093           <format>$1 $2</format>
5094         </numberFormat>
5095         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
5096           <leadingDigits>[89]0</leadingDigits>
5097           <format>$1-$2-$3</format>
5098         </numberFormat>
5099       </availableFormats>
5100       <generalDesc>
5101         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
5102         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
5103       </generalDesc>
5104       <fixedLine>
5105         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
5106         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5107         <exampleNumber>22123456</exampleNumber>
5108       </fixedLine>
5109       <mobile>
5110         <nationalNumberPattern>
5111           5(?:
5112             0[01]|
5113             7[0-3]
5114           )\d{5}|
5115           6(?:
5116             [0-2]\d|
5117             30
5118           )\d{5}|
5119           7[0-3]\d{6}|
5120           8[3-9]\d{6}
5121         </nationalNumberPattern>
5122         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5123         <exampleNumber>83123456</exampleNumber>
5124       </mobile>
5125       <tollFree>
5126         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
5127         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5128         <exampleNumber>8001234567</exampleNumber>
5129       </tollFree>
5130       <premiumRate>
5131         <!-- Includes "mass calls" numbers with prefix 905. -->
5132         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
5133         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5134         <exampleNumber>9001234567</exampleNumber>
5135       </premiumRate>
5136       <voip>
5137         <!-- Including trunking service numbers starting with 5100. 4001 (callmyway.com) was added
5138              from an open-source bug report supported by numbers found online. -->
5139         <nationalNumberPattern>
5140           210[0-6]\d{4}|
5141           4(?:
5142             0(?:
5143               0[01]\d{4}|
5144               10[0-3]\d{3}|
5145               2(?:
5146                 00\d{3}|
5147                 900\d{2}
5148               )|
5149               3[01]\d{4}|
5150               40\d{4}|
5151               5\d{5}|
5152               60\d{4}|
5153               70[01]\d{3}|
5154               8[0-2]\d{4}
5155             )|
5156             1[01]\d{5}|
5157             20[0-3]\d{4}|
5158             400\d{4}|
5159             70[0-2]\d{4}
5160           )|
5161           5100\d{4}
5162         </nationalNumberPattern>
5163         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5164         <exampleNumber>40001234</exampleNumber>
5165       </voip>
5166     </territory>
5167
5168     <!-- Cuba -->
5169     <territory id="CU" countryCode="53" internationalPrefix="119"
5170                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
5171       <references>
5172         <sourceUrl>http://www.itu.int/oth/T0202000033/en</sourceUrl>
5173       </references>
5174       <availableFormats>
5175         <numberFormat pattern="(\d)(\d{6,7})">
5176           <leadingDigits>7</leadingDigits>
5177           <format>$1 $2</format>
5178         </numberFormat>
5179         <numberFormat pattern="(\d{2})(\d{4,6})">
5180           <leadingDigits>[2-4]</leadingDigits>
5181           <format>$1 $2</format>
5182         </numberFormat>
5183         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5184           <leadingDigits>5</leadingDigits>
5185           <format>$1 $2</format>
5186         </numberFormat>
5187       </availableFormats>
5188       <generalDesc>
5189         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
5190         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
5191       </generalDesc>
5192       <fixedLine>
5193         <nationalNumberPattern>
5194           2[1-4]\d{5,6}|
5195           3(?:
5196             1\d{6}|
5197             [23]\d{4,6}
5198           )|
5199           4(?:
5200             [125]\d{5,6}|
5201             [36]\d{6}|
5202             [78]\d{4,6}
5203           )|
5204           7\d{6,7}
5205         </nationalNumberPattern>
5206         <exampleNumber>71234567</exampleNumber>
5207       </fixedLine>
5208       <mobile>
5209         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
5210         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5211         <exampleNumber>51234567</exampleNumber>
5212       </mobile>
5213     </territory>
5214
5215     <!-- Cape Verde -->
5216     <territory id="CV" countryCode="238" internationalPrefix="0">
5217       <references>
5218         <sourceUrl>http://www.itu.int/oth/T0202000026/en</sourceUrl>
5219       </references>
5220       <availableFormats>
5221         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
5222           <format>$1 $2 $3</format>
5223         </numberFormat>
5224       </availableFormats>
5225       <generalDesc>
5226         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
5227         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5228       </generalDesc>
5229       <fixedLine>
5230         <nationalNumberPattern>
5231           2(?:
5232             2[1-7]|
5233             3[0-8]|
5234             4[12]|
5235             5[1256]|
5236             6\d|
5237             7[1-3]|
5238             8[1-5]
5239           )\d{4}
5240         </nationalNumberPattern>
5241         <exampleNumber>2211234</exampleNumber>
5242       </fixedLine>
5243       <mobile>
5244         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
5245              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
5246              example, and there are plenty of numbers on the internet that start with these
5247              prefixes. -->
5248         <nationalNumberPattern>
5249           (?:
5250             9\d|
5251             59
5252           )\d{5}
5253         </nationalNumberPattern>
5254         <exampleNumber>9911234</exampleNumber>
5255       </mobile>
5256     </territory>
5257
5258     <!-- Curaçao -->
5259     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
5260       <references>
5261         <sourceUrl>http://www.itu.int/oth/T02020000F5/en</sourceUrl>
5262       </references>
5263       <!-- All the formatting patterns for country-code 599 are here. -->
5264       <availableFormats>
5265         <numberFormat pattern="(\d{3})(\d{4})">
5266           <leadingDigits>[13-7]</leadingDigits>
5267           <format>$1 $2</format>
5268         </numberFormat>
5269         <numberFormat pattern="(9)(\d{3})(\d{4})">
5270           <leadingDigits>9</leadingDigits>
5271           <format>$1 $2 $3</format>
5272         </numberFormat>
5273       </availableFormats>
5274       <generalDesc>
5275         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
5276         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
5277       </generalDesc>
5278       <fixedLine>
5279         <nationalNumberPattern>
5280           9(?:
5281             [48]\d{2}|
5282             50\d|
5283             7(?:
5284               2[0-24]|
5285               [34]\d|
5286               6[35-7]|
5287               77|
5288               8[7-9]
5289             )
5290           )\d{4}
5291         </nationalNumberPattern>
5292         <exampleNumber>94151234</exampleNumber>
5293       </fixedLine>
5294       <mobile>
5295         <nationalNumberPattern>
5296           9(?:
5297             5(?:
5298               [1246]\d|
5299               3[01]
5300             )|
5301             6(?:
5302               [16-9]\d|
5303               3[01]
5304             )
5305           )\d{4}
5306         </nationalNumberPattern>
5307         <exampleNumber>95181234</exampleNumber>
5308       </mobile>
5309       <pager>
5310         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
5311         <exampleNumber>95581234</exampleNumber>
5312       </pager>
5313       <sharedCost>
5314         <!-- Value-added services are lumped together under shared cost, since we are not sure
5315              exactly what they are. -->
5316         <nationalNumberPattern>
5317           (?:
5318             10|
5319             69
5320           )\d{5}
5321         </nationalNumberPattern>
5322         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5323         <exampleNumber>1011234</exampleNumber>
5324       </sharedCost>
5325     </territory>
5326
5327     <!-- Christmas Islands -->
5328     <!-- Metadata shared with Australia. -->
5329     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
5330     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
5331                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
5332                nationalPrefix="0">
5333       <references>
5334         <sourceUrl>http://en.wikipedia.org/wiki/List_of_country_calling_codes</sourceUrl>
5335         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia</sourceUrl>
5336       </references>
5337       <!-- Uses AU formatting rules. -->
5338       <!-- General desc and fixed line rules different from Australia. -->
5339       <generalDesc>
5340         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
5341         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5342       </generalDesc>
5343       <fixedLine>
5344         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
5345         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
5346         <exampleNumber>891641234</exampleNumber>
5347       </fixedLine>
5348       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5349       <mobile>
5350         <nationalNumberPattern>
5351           14(?:
5352             5\d|
5353             71
5354           )\d{5}|
5355           4(?:
5356             [0-2]\d|
5357             3[0-57-9]|
5358             4[47-9]|
5359             5[0-25-9]|
5360             6[6-9]|
5361             7[03-9]|
5362             8[17-9]|
5363             9[017-9]
5364           )\d{6}
5365         </nationalNumberPattern>
5366         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5367         <exampleNumber>412345678</exampleNumber>
5368       </mobile>
5369       <tollFree>
5370         <nationalNumberPattern>
5371           1(?:
5372             80(?:
5373               0\d{2}
5374             )?|
5375             3(?:
5376               00\d{2}
5377             )?
5378           )\d{4}
5379         </nationalNumberPattern>
5380         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5381         <exampleNumber>1800123456</exampleNumber>
5382       </tollFree>
5383       <premiumRate>
5384         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
5385         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5386         <exampleNumber>1900123456</exampleNumber>
5387       </premiumRate>
5388       <personalNumber>
5389         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
5390         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5391         <exampleNumber>500123456</exampleNumber>
5392       </personalNumber>
5393       <voip>
5394         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
5395         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5396         <exampleNumber>550123456</exampleNumber>
5397       </voip>
5398     </territory>
5399
5400     <!-- Cyprus -->
5401     <territory id="CY" countryCode="357" internationalPrefix="00" mobileNumberPortableRegion="true">
5402       <references>
5403         <sourceUrl>http://www.itu.int/oth/T0202000034/en</sourceUrl>
5404       </references>
5405       <availableFormats>
5406         <!-- Format from http://www.cyprusyellowpages.com -->
5407         <numberFormat pattern="(\d{2})(\d{6})">
5408           <format>$1 $2</format>
5409         </numberFormat>
5410       </availableFormats>
5411       <generalDesc>
5412         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
5413         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5414       </generalDesc>
5415       <fixedLine>
5416         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
5417         <exampleNumber>22345678</exampleNumber>
5418       </fixedLine>
5419       <mobile>
5420         <!-- Includes paging numbers (they are mixed into the same block). -->
5421         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
5422         <exampleNumber>96123456</exampleNumber>
5423       </mobile>
5424       <tollFree>
5425         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
5426         <exampleNumber>80001234</exampleNumber>
5427       </tollFree>
5428       <premiumRate>
5429         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
5430         <exampleNumber>90012345</exampleNumber>
5431       </premiumRate>
5432       <sharedCost>
5433         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
5434         <exampleNumber>80112345</exampleNumber>
5435       </sharedCost>
5436       <personalNumber>
5437         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
5438         <exampleNumber>70012345</exampleNumber>
5439       </personalNumber>
5440       <uan>
5441         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
5442         <nationalNumberPattern>
5443           (?:
5444             50|
5445             77
5446           )\d{6}
5447         </nationalNumberPattern>
5448         <exampleNumber>77123456</exampleNumber>
5449       </uan>
5450     </territory>
5451
5452     <!-- Czech Rep. -->
5453     <territory id="CZ" countryCode="420" internationalPrefix="00" mobileNumberPortableRegion="true">
5454       <references>
5455         <sourceUrl>http://www.itu.int/oth/T0202000035/en</sourceUrl>
5456         <sourceUrl>http://en.wikipedia.org/wiki/%2B420</sourceUrl>
5457       </references>
5458       <availableFormats>
5459         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
5460           <leadingDigits>
5461             [2-8]|
5462             9[015-7]
5463           </leadingDigits>
5464           <format>$1 $2 $3</format>
5465         </numberFormat>
5466         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
5467           <leadingDigits>96</leadingDigits>
5468           <format>$1 $2 $3 $4</format>
5469         </numberFormat>
5470         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
5471           <leadingDigits>9[36]</leadingDigits>
5472           <format>$1 $2 $3 $4</format>
5473         </numberFormat>
5474       </availableFormats>
5475       <generalDesc>
5476         <nationalNumberPattern>
5477           [2-8]\d{8}|
5478           9\d{8,11}
5479         </nationalNumberPattern>
5480         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5481       </generalDesc>
5482       <fixedLine>
5483         <nationalNumberPattern>
5484           2\d{8}|
5485           (?:
5486             3[1257-9]|
5487             4[16-9]|
5488             5[13-9]
5489           )\d{7}
5490         </nationalNumberPattern>
5491         <exampleNumber>212345678</exampleNumber>
5492       </fixedLine>
5493       <mobile>
5494         <nationalNumberPattern>
5495           (?:
5496             60[1-8]|
5497             7(?:
5498               0[2-5]|
5499               [2379]\d
5500             )
5501           )\d{6}
5502         </nationalNumberPattern>
5503         <exampleNumber>601123456</exampleNumber>
5504       </mobile>
5505       <tollFree>
5506         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
5507         <exampleNumber>800123456</exampleNumber>
5508       </tollFree>
5509       <premiumRate>
5510         <!-- Includes premium rate dial-up. -->
5511         <nationalNumberPattern>
5512           9(?:
5513             0[05689]|
5514             76
5515           )\d{6}
5516         </nationalNumberPattern>
5517         <exampleNumber>900123456</exampleNumber>
5518       </premiumRate>
5519       <sharedCost>
5520         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
5521         <exampleNumber>811234567</exampleNumber>
5522       </sharedCost>
5523       <personalNumber>
5524         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
5525         <exampleNumber>700123456</exampleNumber>
5526       </personalNumber>
5527       <voip>
5528         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
5529         <exampleNumber>910123456</exampleNumber>
5530       </voip>
5531       <uan>
5532         <!-- Numbers belonging to private communication networks are included here. These are
5533              classified as Institutional networks, belonging to institutions like the police, armed
5534              forces and railways, along with a couple of formerly government-owned banks. These
5535              numbers are reachable by the public. -->
5536         <nationalNumberPattern>
5537           9(?:
5538             5\d|
5539             7[234]
5540           )\d{6}
5541         </nationalNumberPattern>
5542         <exampleNumber>972123456</exampleNumber>
5543       </uan>
5544       <voicemail>
5545         <nationalNumberPattern>
5546           9(?:
5547             3\d{9}|
5548             6\d{7,10}
5549           )
5550         </nationalNumberPattern>
5551         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5552         <exampleNumber>93123456789</exampleNumber>
5553       </voicemail>
5554     </territory>
5555
5556     <!-- Germany -->
5557     <territory id="DE" countryCode="49" internationalPrefix="00"
5558                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
5559                mobileNumberPortableRegion="true">
5560       <references>
5561         <sourceUrl>http://www.itu.int/oth/T0202000051/en</sourceUrl>
5562         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_germany</sourceUrl>
5563       </references>
5564       <availableFormats>
5565         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
5566              these should best be formatted, even though actual usage varies. -->
5567         <numberFormat pattern="(1\d{2})(\d{7,8})">
5568           <leadingDigits>1[67]</leadingDigits>
5569           <format>$1 $2</format>
5570         </numberFormat>
5571         <numberFormat pattern="(1\d{3})(\d{7})">
5572           <leadingDigits>15</leadingDigits>
5573           <format>$1 $2</format>
5574         </numberFormat>
5575         <numberFormat pattern="(\d{2})(\d{3,11})">
5576           <leadingDigits>
5577             3[02]|
5578             40|
5579             [68]9
5580           </leadingDigits>
5581           <format>$1 $2</format>
5582         </numberFormat>
5583         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
5584         <!-- 3 digit area codes. -->
5585         <numberFormat pattern="(\d{3})(\d{3,11})">
5586           <leadingDigits>
5587             2(?:
5588               \d1|
5589               0[2389]|
5590               1[24]|
5591               28|
5592               34
5593             )|
5594             3(?:
5595               [3-9][15]|
5596               40
5597             )|
5598             [4-8][1-9]1|
5599             9(?:
5600               06|
5601               [1-9]1
5602             )
5603           </leadingDigits>
5604           <format>$1 $2</format>
5605         </numberFormat>
5606         <!-- 4 digit area codes. -->
5607         <numberFormat pattern="(\d{4})(\d{2,11})">
5608           <leadingDigits>
5609             [24-6]|
5610             [7-9](?:
5611               \d[1-9]|
5612               [1-9]\d
5613             )|
5614             3(?:
5615               [3569][02-46-9]|
5616               4[2-4679]|
5617               7[2-467]|
5618               8[2-46-8]
5619             )
5620           </leadingDigits>
5621           <leadingDigits>
5622             [24-6]|
5623             [7-9](?:
5624               \d[1-9]|
5625               [1-9]\d
5626             )|
5627             3(?:
5628               3(?:
5629                 0[1-467]|
5630                 2[127-9]|
5631                 3[124578]|
5632                 [46][1246]|
5633                 7[1257-9]|
5634                 8[1256]|
5635                 9[145]
5636               )|
5637               4(?:
5638                 2[135]|
5639                 3[1357]|
5640                 4[13578]|
5641                 6[1246]|
5642                 7[1356]|
5643                 9[1346]
5644               )|
5645               5(?:
5646                 0[14]|
5647                 2[1-3589]|
5648                 3[1357]|
5649                 4[1246]|
5650                 6[1-4]|
5651                 7[1346]|
5652                 8[13568]|
5653                 9[1246]
5654               )|
5655               6(?:
5656                 0[356]|
5657                 2[1-489]|
5658                 3[124-6]|
5659                 4[1347]|
5660                 6[13]|
5661                 7[12579]|
5662                 8[1-356]|
5663                 9[135]
5664               )|
5665               7(?:
5666                 2[1-7]|
5667                 3[1357]|
5668                 4[145]|
5669                 6[1-5]|
5670                 7[1-4]
5671               )|
5672               8(?:
5673                 21|
5674                 3[1468]|
5675                 4[1347]|
5676                 6[0135-9]|
5677                 7[1467]|
5678                 8[136]
5679               )|
5680               9(?:
5681                 0[12479]|
5682                 2[1358]|
5683                 3[1357]|
5684                 4[134679]|
5685                 6[1-9]|
5686                 7[136]|
5687                 8[147]|
5688                 9[1468]
5689               )
5690             )
5691           </leadingDigits>
5692           <format>$1 $2</format>
5693         </numberFormat>
5694         <!-- 5 digit area codes. -->
5695         <numberFormat pattern="(3\d{4})(\d{1,10})">
5696           <leadingDigits>3</leadingDigits>
5697           <format>$1 $2</format>
5698         </numberFormat>
5699         <!-- Note: this is getting ridiculous! How can we format these better? -->
5700         <numberFormat pattern="(800)(\d{7,12})">
5701           <leadingDigits>800</leadingDigits>
5702           <format>$1 $2</format>
5703         </numberFormat>
5704         <!-- Voicemail access numbers for the carrier Blau. -->
5705         <numberFormat pattern="(177)(99)(\d{7,8})">
5706           <leadingDigits>177</leadingDigits>
5707           <leadingDigits>1779</leadingDigits>
5708           <leadingDigits>17799</leadingDigits>
5709           <format>$1 $2 $3</format>
5710         </numberFormat>
5711         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
5712           <leadingDigits>
5713             (?:
5714               18|
5715               90
5716             )0|
5717             137
5718           </leadingDigits>
5719           <leadingDigits>
5720             1(?:
5721               37|
5722               80
5723             )|
5724             900[1359]
5725           </leadingDigits>
5726           <format>$1 $2 $3</format>
5727         </numberFormat>
5728         <numberFormat pattern="(1\d{2})(\d{5,11})">
5729           <leadingDigits>181</leadingDigits>
5730           <format>$1 $2</format>
5731         </numberFormat>
5732         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
5733              way it is generally written. For other prefixes, we fall back to using a three-digit
5734              prefix since we have currently no more information to allow us to format these more
5735              precisely. -->
5736         <numberFormat pattern="(18\d{3})(\d{6})">
5737           <leadingDigits>185</leadingDigits>
5738           <leadingDigits>1850</leadingDigits>
5739           <leadingDigits>18500</leadingDigits>
5740           <format>$1 $2</format>
5741         </numberFormat>
5742         <numberFormat pattern="(18\d{2})(\d{7})">
5743           <leadingDigits>18[68]</leadingDigits>
5744           <format>$1 $2</format>
5745         </numberFormat>
5746         <numberFormat pattern="(18\d)(\d{8})">
5747           <leadingDigits>18[2-579]</leadingDigits>
5748           <format>$1 $2</format>
5749         </numberFormat>
5750         <numberFormat pattern="(700)(\d{4})(\d{4})">
5751           <leadingDigits>700</leadingDigits>
5752           <format>$1 $2 $3</format>
5753         </numberFormat>
5754         <numberFormat pattern="(138)(\d{4})">
5755           <leadingDigits>138</leadingDigits>
5756           <format>$1 $2</format>
5757         </numberFormat>
5758       </availableFormats>
5759       <generalDesc>
5760         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
5761              examined to see if it is valid with the 49 as part of the number. Due to the variable
5762              length of German numbers, this test is hard to do. The national pattern is hence
5763              stricter for numbers starting with 49, to try and remove the country code if the number
5764              begins with 49 whenever possible. -->
5765         <nationalNumberPattern>
5766           [1-35-9]\d{3,14}|
5767           4(?:
5768             [0-8]\d{4,12}|
5769             9(?:
5770               [0-37]\d|
5771               4(?:
5772                 [1-35-8]|
5773                 4\d?
5774               )|
5775               5\d{1,2}|
5776               6[1-8]\d?
5777             )\d{2,8}
5778           )
5779         </nationalNumberPattern>
5780         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
5781       </generalDesc>
5782       <fixedLine>
5783         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
5784              don't seem to respect this. The max-length is hence extended. -->
5785         <nationalNumberPattern>
5786           [246]\d{5,13}|
5787           3(?:
5788             0\d{3,13}|
5789             2\d{9}|
5790             [3-9]\d{4,13}
5791           )|
5792           5(?:
5793             0[2-8]|
5794             [1256]\d|
5795             [38][0-8]|
5796             4\d{0,2}|
5797             [79][0-7]
5798           )\d{3,11}|
5799           7(?:
5800             0[2-8]|
5801             [1-9]\d
5802           )\d{3,10}|
5803           8(?:
5804             0[2-9]|
5805             [1-9]\d
5806           )\d{3,10}|
5807           9(?:
5808             0[6-9]\d{3,10}|
5809             1\d{4,12}|
5810             [2-9]\d{4,11}
5811           )
5812         </nationalNumberPattern>
5813         <exampleNumber>30123456</exampleNumber>
5814       </fixedLine>
5815       <mobile>
5816         <!-- According to
5817              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
5818              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
5819              The ranges 15[056] have been removed from the ITU doc, but information found online
5820              indicates that they may still be working.
5821              -->
5822         <nationalNumberPattern>
5823           1(?:
5824             5[0-2579]\d{8}|
5825             6[023]\d{7,8}|
5826             7(?:
5827               [0-57-9]\d?|
5828               6\d
5829             )\d{7}
5830           )
5831         </nationalNumberPattern>
5832         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5833         <exampleNumber>15123456789</exampleNumber>
5834       </mobile>
5835       <pager>
5836         <nationalNumberPattern>
5837           16(?:
5838             4\d{1,10}|
5839             [89]\d{1,11}
5840           )
5841         </nationalNumberPattern>
5842         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
5843         <exampleNumber>16412345</exampleNumber>
5844       </pager>
5845       <tollFree>
5846         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
5847         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
5848         <exampleNumber>8001234567890</exampleNumber>
5849       </tollFree>
5850       <premiumRate>
5851         <!-- Includes the more expensive of the "televoting" line numbers. See the shared cost
5852              section for more information. -->
5853         <nationalNumberPattern>
5854           137[7-9]\d{6}|
5855           900(?:
5856             [135]\d{6}|
5857             9\d{7}
5858           )
5859         </nationalNumberPattern>
5860         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5861         <exampleNumber>9001234567</exampleNumber>
5862       </premiumRate>
5863       <sharedCost>
5864         <!-- Includes some mass-traffic numbers, used for e.g. phone voting, raffles, since their
5865              costs when dialling from a fixed-line phone is similar.
5866              Prices:
5867              http://www.billiger-telefonieren.de/0180-0137-0900-sonderrufnummern/
5868              Documentation:
5869              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/0137/0137_Nummernplan.pdf?__blob=publicationFile&v=2
5870         -->
5871         <nationalNumberPattern>
5872           1(?:
5873             3(?:
5874               7[1-6]\d{6}|
5875               8\d{4}
5876             )|
5877             80\d{5,11}
5878           )
5879         </nationalNumberPattern>
5880         <possibleNumberPattern>\d{7,14}</possibleNumberPattern>
5881         <exampleNumber>18012345</exampleNumber>
5882       </sharedCost>
5883       <personalNumber>
5884         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
5885         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5886         <exampleNumber>70012345678</exampleNumber>
5887       </personalNumber>
5888       <uan>
5889         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
5890              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
5891              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
5892         <nationalNumberPattern>
5893           18(?:
5894             1\d{5,11}|
5895             [2-9]\d{8}
5896           )
5897         </nationalNumberPattern>
5898         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5899         <exampleNumber>18500123456</exampleNumber>
5900       </uan>
5901       <voicemail>
5902         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
5903         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
5904         <exampleNumber>177991234567</exampleNumber>
5905       </voicemail>
5906     </territory>
5907
5908     <!-- Djibouti -->
5909     <territory id="DJ" countryCode="253" internationalPrefix="00">
5910       <references>
5911         <sourceUrl>http://www.itu.int/oth/T020200003A/en</sourceUrl>
5912       </references>
5913       <availableFormats>
5914         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5915           <format>$1 $2 $3 $4</format>
5916         </numberFormat>
5917       </availableFormats>
5918       <generalDesc>
5919         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
5920         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5921       </generalDesc>
5922       <fixedLine>
5923         <!-- Includes "Numéro long CDMA fixe" numbers. -->
5924         <nationalNumberPattern>
5925           2(?:
5926             1[2-5]|
5927             7[45]
5928           )\d{5}
5929         </nationalNumberPattern>
5930         <exampleNumber>21360003</exampleNumber>
5931       </fixedLine>
5932       <mobile>
5933         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
5934         <exampleNumber>77831001</exampleNumber>
5935       </mobile>
5936     </territory>
5937
5938     <!-- Denmark -->
5939     <territory id="DK" countryCode="45" internationalPrefix="00" mobileNumberPortableRegion="true">
5940       <references>
5941         <sourceUrl>http://www.dba.erhvervsstyrelsen.dk/numbering-lists</sourceUrl>
5942       </references>
5943       <availableFormats>
5944         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5945           <format>$1 $2 $3 $4</format>
5946         </numberFormat>
5947       </availableFormats>
5948       <generalDesc>
5949         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
5950         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5951       </generalDesc>
5952       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
5953            safe. -->
5954       <fixedLine>
5955         <nationalNumberPattern>
5956           (?:
5957             [2-7]\d|
5958             8[126-9]|
5959             9[1-36-9]
5960           )\d{6}
5961         </nationalNumberPattern>
5962         <exampleNumber>32123456</exampleNumber>
5963       </fixedLine>
5964       <mobile>
5965         <nationalNumberPattern>
5966           (?:
5967             [2-7]\d|
5968             8[126-9]|
5969             9[1-36-9]
5970           )\d{6}
5971         </nationalNumberPattern>
5972         <exampleNumber>20123456</exampleNumber>
5973       </mobile>
5974       <tollFree>
5975         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
5976         <exampleNumber>80123456</exampleNumber>
5977       </tollFree>
5978       <premiumRate>
5979         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
5980         <exampleNumber>90123456</exampleNumber>
5981       </premiumRate>
5982     </territory>
5983
5984     <!-- Dominica -->
5985     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
5986                internationalPrefix="011">
5987       <references>
5988         <sourceUrl>http://www.itu.int/oth/T020200003B/en</sourceUrl>
5989       </references>
5990       <generalDesc>
5991         <!-- NANPA country - uses US formatting rules -->
5992         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
5993         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5994       </generalDesc>
5995       <fixedLine>
5996         <nationalNumberPattern>
5997           767(?:
5998             2(?:
5999               55|
6000               66
6001             )|
6002             4(?:
6003               2[01]|
6004               4[0-25-9]
6005             )|
6006             50[0-4]|
6007             70[1-3]
6008           )\d{4}
6009         </nationalNumberPattern>
6010         <exampleNumber>7674201234</exampleNumber>
6011       </fixedLine>
6012       <mobile>
6013         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
6014         <nationalNumberPattern>
6015           767(?:
6016             2(?:
6017               [234689]5|
6018               7[5-7]
6019             )|
6020             31[5-7]|
6021             61[2-7]
6022           )\d{4}
6023         </nationalNumberPattern>
6024         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6025         <exampleNumber>7672251234</exampleNumber>
6026       </mobile>
6027       <tollFree>
6028         <nationalNumberPattern>
6029           8(?:
6030             00|
6031             44|
6032             55|
6033             66|
6034             77|
6035             88
6036           )[2-9]\d{6}
6037         </nationalNumberPattern>
6038         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6039         <exampleNumber>8002123456</exampleNumber>
6040       </tollFree>
6041       <premiumRate>
6042         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6043         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6044         <exampleNumber>9002123456</exampleNumber>
6045       </premiumRate>
6046       <personalNumber>
6047         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6048         <nationalNumberPattern>
6049           5(?:
6050             00|
6051             33|
6052             44|
6053             66|
6054             77
6055           )[2-9]\d{6}
6056         </nationalNumberPattern>
6057         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6058         <exampleNumber>5002345678</exampleNumber>
6059       </personalNumber>
6060     </territory>
6061
6062     <!-- Dominican Rep. -->
6063     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
6064                internationalPrefix="011" mobileNumberPortableRegion="true">
6065       <references>
6066         <sourceUrl>http://www.itu.int/oth/T020200003C/en</sourceUrl>
6067       </references>
6068       <generalDesc>
6069         <!-- NANPA country - uses US formatting rules -->
6070         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
6071         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
6072       </generalDesc>
6073       <fixedLine>
6074         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
6075              prefixes in the document are classified as such by excluding them from the fixed-line
6076              ranges, but other than this have a generic rule. -->
6077         <nationalNumberPattern>
6078           8(?:
6079             [04]9[2-9]\d{6}|
6080             29(?:
6081               2(?:
6082                 [0-59]\d|
6083                 6[04-9]|
6084                 7[0-27]|
6085                 8[0237-9]
6086               )|
6087               3(?:
6088                 [0-35-9]\d|
6089                 4[7-9]
6090               )|
6091               [45]\d{2}|
6092               6(?:
6093                 [0-27-9]\d|
6094                 [3-5][1-9]|
6095                 6[0135-8]
6096               )|
6097               7(?:
6098                 0[013-9]|
6099                 [1-37]\d|
6100                 4[1-35689]|
6101                 5[1-4689]|
6102                 6[1-57-9]|
6103                 8[1-79]|
6104                 9[1-8]
6105               )|
6106               8(?:
6107                 0[146-9]|
6108                 1[0-48]|
6109                 [248]\d|
6110                 3[1-79]|
6111                 5[01589]|
6112                 6[013-68]|
6113                 7[124-8]|
6114                 9[0-8]
6115               )|
6116               9(?:
6117                 [0-24]\d|
6118                 3[02-46-9]|
6119                 5[0-79]|
6120                 60|
6121                 7[0169]|
6122                 8[57-9]|
6123                 9[02-9]
6124               )
6125             )\d{4}
6126           )
6127         </nationalNumberPattern>
6128         <exampleNumber>8092345678</exampleNumber>
6129       </fixedLine>
6130       <mobile>
6131         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
6132         <exampleNumber>8092345678</exampleNumber>
6133       </mobile>
6134       <tollFree>
6135         <nationalNumberPattern>
6136           8(?:
6137             00|
6138             44|
6139             55|
6140             66|
6141             77|
6142             88
6143           )[2-9]\d{6}
6144         </nationalNumberPattern>
6145         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6146         <exampleNumber>8002123456</exampleNumber>
6147       </tollFree>
6148       <premiumRate>
6149         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6150         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6151         <exampleNumber>9002123456</exampleNumber>
6152       </premiumRate>
6153       <personalNumber>
6154         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
6155         <nationalNumberPattern>
6156           5(?:
6157             00|
6158             33|
6159             44|
6160             66|
6161             77
6162           )[2-9]\d{6}
6163         </nationalNumberPattern>
6164         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6165         <exampleNumber>5002345678</exampleNumber>
6166       </personalNumber>
6167    </territory>
6168
6169     <!-- Algeria -->
6170     <territory id="DZ" countryCode="213" internationalPrefix="00"
6171                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6172       <references>
6173         <sourceUrl>http://www.itu.int/oth/T0202000003/en</sourceUrl>
6174         <sourceUrl>http://www.arpt.dz</sourceUrl>
6175       </references>
6176       <availableFormats>
6177         <!-- Formatting from http://www.pagesjaunes-dz.com. -->
6178         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
6179           <leadingDigits>[1-4]</leadingDigits>
6180           <format>$1 $2 $3 $4</format>
6181         </numberFormat>
6182         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
6183           <leadingDigits>[5-8]</leadingDigits>
6184           <format>$1 $2 $3 $4</format>
6185         </numberFormat>
6186         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
6187           <leadingDigits>9</leadingDigits>
6188           <format>$1 $2 $3 $4</format>
6189         </numberFormat>
6190       </availableFormats>
6191       <generalDesc>
6192         <nationalNumberPattern>
6193           (?:
6194             [1-4]|
6195             [5-9]\d
6196           )\d{7}
6197         </nationalNumberPattern>
6198         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6199       </generalDesc>
6200       <fixedLine>
6201         <!-- We include the VSAT lines here. -->
6202         <nationalNumberPattern>
6203           (?:
6204             1\d|
6205             2[014-79]|
6206             3[0-8]|
6207             4[0135689]
6208           )\d{6}|
6209           9619\d{5}
6210         </nationalNumberPattern>
6211         <exampleNumber>12345678</exampleNumber>
6212       </fixedLine>
6213       <mobile>
6214         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6215              Mobilis Algeria provided it, and 54 for Nedjma. Prefixes 67[1-4] were also added for
6216              Mobilis Algeria based on evidence found online. -->
6217         <nationalNumberPattern>
6218           (?:
6219             5[4-6]|
6220             7[7-9]
6221           )\d{7}|
6222           6(?:
6223             [569]\d|
6224             7[0-4]
6225           )\d{6}
6226         </nationalNumberPattern>
6227         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6228         <exampleNumber>551234567</exampleNumber>
6229       </mobile>
6230       <tollFree>
6231         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
6232         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6233         <exampleNumber>800123456</exampleNumber>
6234       </tollFree>
6235       <premiumRate>
6236         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
6237         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6238         <exampleNumber>808123456</exampleNumber>
6239       </premiumRate>
6240       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
6241            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
6242            -->
6243       <sharedCost>
6244         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
6245         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6246         <exampleNumber>801123456</exampleNumber>
6247       </sharedCost>
6248       <voip>
6249         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
6250         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6251         <exampleNumber>983123456</exampleNumber>
6252       </voip>
6253    </territory>
6254
6255     <!-- Ecuador -->
6256     <territory id="EC" countryCode="593" internationalPrefix="00"
6257                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
6258                mobileNumberPortableRegion="true">
6259       <references>
6260         <sourceUrl>http://en.wikipedia.org/wiki/+593</sourceUrl>
6261         <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>
6262         <sourceUrl>http://www.itu.int/oth/T020200003D/en</sourceUrl>
6263       </references>
6264       <availableFormats>
6265         <numberFormat pattern="(\d)(\d{3})(\d{4})">
6266           <leadingDigits>
6267             [247]|
6268             [356][2-8]
6269           </leadingDigits>
6270           <format>$1 $2-$3</format>
6271           <intlFormat>$1-$2-$3</intlFormat>
6272         </numberFormat>
6273         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
6274              change on the http://www.conatel.gob.ec site. -->
6275         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
6276           <leadingDigits>9</leadingDigits>
6277           <format>$1 $2 $3</format>
6278         </numberFormat>
6279         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
6280           <leadingDigits>1</leadingDigits>
6281           <format>$1 $2 $3</format>
6282         </numberFormat>
6283       </availableFormats>
6284       <generalDesc>
6285         <nationalNumberPattern>
6286           1\d{9,10}|
6287           [2-8]\d{7}|
6288           9\d{8}
6289         </nationalNumberPattern>
6290         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
6291       </generalDesc>
6292       <fixedLine>
6293         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
6294         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6295         <exampleNumber>22123456</exampleNumber>
6296       </fixedLine>
6297       <mobile>
6298         <nationalNumberPattern>
6299           9(?:
6300             39|
6301             [45][89]|
6302             [67][7-9]|
6303             [89]\d
6304           )\d{6}
6305         </nationalNumberPattern>
6306         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6307         <exampleNumber>991234567</exampleNumber>
6308       </mobile>
6309       <tollFree>
6310         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
6311         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
6312         <exampleNumber>18001234567</exampleNumber>
6313       </tollFree>
6314       <voip>
6315         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
6316         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6317         <exampleNumber>28901234</exampleNumber>
6318       </voip>
6319     </territory>
6320
6321     <!-- Estonia -->
6322     <territory id="EE" countryCode="372" internationalPrefix="00" mobileNumberPortableRegion="true">
6323       <references>
6324         <sourceUrl>http://www.itu.int/oth/T0202000043/en</sourceUrl>
6325         <sourceUrl>http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm</sourceUrl>
6326       </references>
6327       <availableFormats>
6328         <numberFormat pattern="([3-79]\d{2})(\d{4})">
6329           <leadingDigits>
6330             [369]|
6331             4[3-8]|
6332             5(?:
6333               [0-2]|
6334               5[0-478]|
6335               6[45]
6336             )|
6337             7[1-9]
6338           </leadingDigits>
6339           <leadingDigits>
6340             [369]|
6341             4[3-8]|
6342             5(?:
6343               [02]|
6344               1(?:
6345                 [0-8]|
6346                 95
6347               )|
6348               5[0-478]|
6349               6(?:
6350                 4[0-4]|
6351                 5[1-589]
6352               )
6353             )|
6354             7[1-9]
6355           </leadingDigits>
6356           <format>$1 $2</format>
6357         </numberFormat>
6358         <numberFormat pattern="(70)(\d{2})(\d{4})">
6359           <leadingDigits>70</leadingDigits>
6360           <format>$1 $2 $3</format>
6361         </numberFormat>
6362         <numberFormat pattern="(8000)(\d{3})(\d{3})">
6363           <leadingDigits>800</leadingDigits>
6364           <leadingDigits>8000</leadingDigits>
6365           <format>$1 $2 $3</format>
6366         </numberFormat>
6367         <numberFormat pattern="([458]\d{3})(\d{3,4})">
6368           <leadingDigits>
6369             40|
6370             5|
6371             8(?:
6372               00|
6373               [1-5]
6374             )
6375           </leadingDigits>
6376           <leadingDigits>
6377             40|
6378             5|
6379             8(?:
6380               00[1-9]|
6381               [1-5]
6382             )
6383           </leadingDigits>
6384           <format>$1 $2</format>
6385         </numberFormat>
6386       </availableFormats>
6387       <generalDesc>
6388         <nationalNumberPattern>
6389           1\d{3,4}|
6390           [3-9]\d{6,7}|
6391           800\d{6,7}
6392         </nationalNumberPattern>
6393         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
6394       </generalDesc>
6395       <noInternationalDialling>
6396         <nationalNumberPattern>
6397           1\d{3,4}|
6398           800[2-9]\d{3}
6399         </nationalNumberPattern>
6400         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
6401         <exampleNumber>8002123</exampleNumber>
6402       </noInternationalDialling>
6403       <fixedLine>
6404         <nationalNumberPattern>
6405           (?:
6406             3[23589]|
6407             4[3-8]|
6408             6\d|
6409             7[1-9]|
6410             88
6411           )\d{5}
6412         </nationalNumberPattern>
6413         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6414         <exampleNumber>3212345</exampleNumber>
6415       </fixedLine>
6416       <mobile>
6417         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
6418              numbers are 8 digits. -->
6419         <nationalNumberPattern>
6420           (?:
6421             5\d|
6422             8[1-5]
6423           )\d{6}|
6424           5(?:
6425             [02]\d{2}|
6426             1(?:
6427               [0-8]\d|
6428               95
6429             )|
6430             5[0-478]\d|
6431             64[0-4]|
6432             65[1-589]
6433           )\d{3}
6434         </nationalNumberPattern>
6435         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6436         <exampleNumber>51234567</exampleNumber>
6437       </mobile>
6438       <tollFree>
6439         <nationalNumberPattern>
6440           800(?:
6441             0\d{3}|
6442             1\d|
6443             [2-9]
6444           )\d{3}
6445         </nationalNumberPattern>
6446         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6447         <exampleNumber>80012345</exampleNumber>
6448       </tollFree>
6449       <premiumRate>
6450         <!-- Supporting eFax numbers here as well. We aren't sure the exact cost, but have
6451              had user reports that they are expensive to dial. -->
6452         <nationalNumberPattern>
6453           (?:
6454             40\d{2}|
6455             900
6456           )\d{4}
6457         </nationalNumberPattern>
6458         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6459         <exampleNumber>9001234</exampleNumber>
6460       </premiumRate>
6461       <personalNumber>
6462         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
6463         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6464         <exampleNumber>70012345</exampleNumber>
6465       </personalNumber>
6466       <uan>
6467         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
6468              included here. -->
6469         <nationalNumberPattern>
6470           1(?:
6471             2[01245]|
6472             3[0-6]|
6473             4[1-489]|
6474             5[0-59]|
6475             6[1-46-9]|
6476             7[0-27-9]|
6477             8[189]|
6478             9[012]
6479           )\d{1,2}
6480         </nationalNumberPattern>
6481         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
6482         <exampleNumber>12123</exampleNumber>
6483       </uan>
6484     </territory>
6485
6486     <!-- Egypt -->
6487     <territory id="EG" countryCode="20" internationalPrefix="00"
6488                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
6489                mobileNumberPortableRegion="true">
6490        <references>
6491          <sourceUrl>http://www.itu.int/oth/T020200003E/en</sourceUrl>
6492        </references>
6493        <availableFormats>
6494          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
6495               or 19. These are formatted without national prefix, as a block, so do not need to be
6496               listed here. -->
6497          <numberFormat pattern="(\d)(\d{7,8})">
6498            <leadingDigits>[23]</leadingDigits>
6499            <format>$1 $2</format>
6500          </numberFormat>
6501          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
6502            <leadingDigits>
6503              1[012]|
6504              [89]00
6505            </leadingDigits>
6506            <format>$1 $2 $3</format>
6507          </numberFormat>
6508          <numberFormat pattern="(\d{2})(\d{6,7})">
6509            <leadingDigits>
6510              1[35]|
6511              [4-6]|
6512              [89][2-9]
6513            </leadingDigits>
6514            <format>$1 $2</format>
6515          </numberFormat>
6516        </availableFormats>
6517       <generalDesc>
6518         <nationalNumberPattern>
6519           1\d{4,9}|
6520           [2456]\d{8}|
6521           3\d{7}|
6522           [89]\d{8,9}
6523         </nationalNumberPattern>
6524         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6525       </generalDesc>
6526       <fixedLine>
6527         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
6528              that the plan says numbers starting with 15 should be followed by seven digit
6529              subscriber numbers, but some numbers we have found online are in fact six digit.
6530              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
6531              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
6532              092 and with 5 and 6 for 96. -->
6533         <nationalNumberPattern>
6534           (?:
6535             1(?:
6536               3[23]\d|
6537               5(?:
6538                 [23]|
6539                 9\d
6540               )
6541             )|
6542             2[2-4]\d{2}|
6543             3\d{2}|
6544             4(?:
6545               0[2-5]|
6546               [578][23]|
6547               64
6548             )\d|
6549             5(?:
6550               0[2-7]|
6551               [57][23]
6552             )\d|
6553             6[24-689]3\d|
6554             8(?:
6555               2[2-57]|
6556               4[26]|
6557               6[237]|
6558               8[2-4]
6559             )\d|
6560             9(?:
6561               2[27]|
6562               3[24]|
6563               52|
6564               6[2356]|
6565               7[2-4]
6566             )\d
6567           )\d{5}|
6568           1[69]\d{3}
6569         </nationalNumberPattern>
6570         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
6571         <exampleNumber>234567890</exampleNumber>
6572       </fixedLine>
6573       <mobile>
6574         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
6575              started allocating numbers beginning with these prefixes, along with 115 from numbers
6576              found online. Etisalat is using 110. -->
6577         <nationalNumberPattern>
6578           1(?:
6579             0[0-269]|
6580             1[0-245]|
6581             2[0-278]
6582           )\d{7}
6583         </nationalNumberPattern>
6584         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6585         <exampleNumber>1001234567</exampleNumber>
6586       </mobile>
6587       <tollFree>
6588         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
6589         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6590         <exampleNumber>8001234567</exampleNumber>
6591       </tollFree>
6592       <premiumRate>
6593         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
6594         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6595         <exampleNumber>9001234567</exampleNumber>
6596       </premiumRate>
6597     </territory>
6598
6599     <!-- Western Sahara -->
6600     <!-- Country calling code shared with Morocco (MA). -->
6601     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
6602     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
6603                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6604       <references>
6605         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
6606       </references>
6607       <!-- Uses MA formatting rules and shares general description
6608            (non-geographical numbers for Morocco are still valid). -->
6609       <generalDesc>
6610         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
6611         <!-- Closed numbering plan. -->
6612         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6613       </generalDesc>
6614       <fixedLine>
6615         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
6616         <exampleNumber>528812345</exampleNumber>
6617       </fixedLine>
6618       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
6619            numbers to be recognized as available from within Western Sahara. -->
6620       <mobile>
6621         <nationalNumberPattern>
6622           6(?:
6623             0[0-8]|
6624             [12-79]\d|
6625             8[01]
6626           )\d{6}
6627         </nationalNumberPattern>
6628         <exampleNumber>650123456</exampleNumber>
6629       </mobile>
6630       <tollFree>
6631         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
6632         <exampleNumber>801234567</exampleNumber>
6633       </tollFree>
6634       <premiumRate>
6635         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
6636         <exampleNumber>891234567</exampleNumber>
6637       </premiumRate>
6638     </territory>
6639
6640     <!-- Eritrea -->
6641     <territory id="ER" countryCode="291" internationalPrefix="00"
6642                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6643       <references>
6644         <sourceUrl>http://www.itu.int/oth/T0202000042/en</sourceUrl>
6645       </references>
6646       <availableFormats>
6647         <numberFormat pattern="(\d)(\d{3})(\d{3})">
6648           <format>$1 $2 $3</format>
6649         </numberFormat>
6650       </availableFormats>
6651       <generalDesc>
6652         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
6653         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
6654       </generalDesc>
6655       <fixedLine>
6656         <nationalNumberPattern>
6657           1(?:
6658             1[12568]|
6659             20|
6660             40|
6661             55|
6662             6[146]
6663           )\d{4}|
6664           8\d{6}
6665         </nationalNumberPattern>
6666         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
6667       </fixedLine>
6668       <mobile>
6669         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
6670              numbers or was in addition to them, so we support both here. -->
6671         <nationalNumberPattern>
6672           17[1-3]\d{4}|
6673           7\d{6}
6674         </nationalNumberPattern>
6675         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6676         <exampleNumber>7123456</exampleNumber>
6677       </mobile>
6678     </territory>
6679
6680     <!-- Spain -->
6681     <territory id="ES" countryCode="34" internationalPrefix="00" mobileNumberPortableRegion="true">
6682       <references>
6683         <sourceUrl>http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx</sourceUrl>
6684       </references>
6685       <availableFormats>
6686         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
6687           <leadingDigits>
6688             [568]|
6689             [79][0-8]
6690           </leadingDigits>
6691           <format>$1 $2 $3 $4</format>
6692         </numberFormat>
6693       </availableFormats>
6694       <generalDesc>
6695         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
6696         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6697       </generalDesc>
6698       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
6699            fixed-line ranges. -->
6700       <fixedLine>
6701         <nationalNumberPattern>
6702           8(?:
6703             [13]0|
6704             [28][0-8]|
6705             [47][1-9]|
6706             5[01346-9]|
6707             6[0457-9]
6708           )\d{6}|
6709           9(?:
6710             [1238][0-8]\d{6}|
6711             4[1-9]\d{6}|
6712             5\d{7}|
6713             6(?:
6714               [0-8]\d{6}|
6715               9(?:
6716                 0(?:
6717                   [0-57-9]\d{4}|
6718                   6(?:
6719                     0[0-8]|
6720                     1[1-9]|
6721                     [2-9]\d
6722                   )\d{2}
6723                 )|
6724                 [1-9]\d{5}
6725               )
6726             )|
6727             7(?:
6728               [124-9]\d{2}|
6729               3(?:
6730                 [0-8]\d|
6731                 9[1-9]
6732               )
6733             )\d{4}
6734           )
6735         </nationalNumberPattern>
6736         <exampleNumber>810123456</exampleNumber>
6737       </fixedLine>
6738       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
6739            information received from Lleida Networks. -->
6740       <mobile>
6741         <nationalNumberPattern>
6742           (?:
6743             6\d{6}|
6744             7[1-4]\d{5}|
6745             9(?:
6746               6906(?:
6747                 09|
6748                 10
6749               )|
6750               7390\d{2}
6751             )
6752           )\d{2}
6753         </nationalNumberPattern>
6754         <exampleNumber>612345678</exampleNumber>
6755       </mobile>
6756       <tollFree>
6757         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
6758         <exampleNumber>800123456</exampleNumber>
6759       </tollFree>
6760       <premiumRate>
6761         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
6762         <exampleNumber>803123456</exampleNumber>
6763       </premiumRate>
6764       <sharedCost>
6765         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
6766         <exampleNumber>901123456</exampleNumber>
6767       </sharedCost>
6768       <personalNumber>
6769         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
6770         <exampleNumber>701234567</exampleNumber>
6771       </personalNumber>
6772       <!-- Modelling non-geographic nomadic numbers as UAN. -->
6773       <uan>
6774         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
6775         <exampleNumber>511234567</exampleNumber>
6776       </uan>
6777     </territory>
6778
6779     <!-- Ethiopia -->
6780     <territory id="ET" countryCode="251" internationalPrefix="00"
6781                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6782       <references>
6783         <sourceUrl>http://www.itu.int/oth/T0202000044/en</sourceUrl>
6784       </references>
6785       <availableFormats>
6786         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
6787           <format>$1 $2 $3</format>
6788         </numberFormat>
6789       </availableFormats>
6790       <generalDesc>
6791         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
6792         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
6793       </generalDesc>
6794       <fixedLine>
6795         <nationalNumberPattern>
6796           (?:
6797             11(?:
6798               1(?:
6799                 1[124]|
6800                 2[2-57]|
6801                 3[1-5]|
6802                 5[5-8]|
6803                 8[6-8]
6804               )|
6805               2(?:
6806                 13|
6807                 3[6-8]|
6808                 5[89]|
6809                 7[05-9]|
6810                 8[2-6]
6811               )|
6812               3(?:
6813                 2[01]|
6814                 3[0-289]|
6815                 4[1289]|
6816                 7[1-4]|
6817                 87
6818               )|
6819               4(?:
6820                 1[69]|
6821                 3[2-49]|
6822                 4[0-3]|
6823                 6[5-8]
6824               )|
6825               5(?:
6826                 1[57]|
6827                 44|
6828                 5[0-4]
6829               )|
6830               6(?:
6831                 18|
6832                 2[69]|
6833                 4[5-7]|
6834                 5[1-5]|
6835                 6[0-59]|
6836                 8[015-8]
6837               )
6838             )|
6839             2(?:
6840               2(?:
6841                 11[1-9]|
6842                 22[0-7]|
6843                 33\d|
6844                 44[1467]|
6845                 66[1-68]
6846               )|
6847               5(?:
6848                 11[124-6]|
6849                 33[2-8]|
6850                 44[1467]|
6851                 55[14]|
6852                 66[1-3679]|
6853                 77[124-79]|
6854                 880
6855               )
6856             )|
6857             3(?:
6858               3(?:
6859                 11[0-46-8]|
6860                 22[0-6]|
6861                 33[0134689]|
6862                 44[04]|
6863                 55[0-6]|
6864                 66[01467]
6865               )|
6866               4(?:
6867                 44[0-8]|
6868                 55[0-69]|
6869                 66[0-3]|
6870                 77[1-5]
6871               )
6872             )|
6873             4(?:
6874               6(?:
6875                 22[0-24-7]|
6876                 33[1-5]|
6877                 44[13-69]|
6878                 55[14-689]|
6879                 660|
6880                 88[1-4]
6881               )|
6882               7(?:
6883                 11[1-9]|
6884                 22[1-9]|
6885                 33[13-7]|
6886                 44[13-6]|
6887                 55[1-689]
6888               )
6889             )|
6890             5(?:
6891               7(?:
6892                 227|
6893                 55[05]|
6894                 (?:
6895                   66|
6896                   77
6897                 )[14-8]
6898               )|
6899               8(?:
6900                 11[149]|
6901                 22[013-79]|
6902                 33[0-68]|
6903                 44[013-8]|
6904                 550|
6905                 66[1-5]|
6906                 77\d
6907               )
6908             )
6909           )\d{4}
6910         </nationalNumberPattern>
6911         <exampleNumber>111112345</exampleNumber>
6912       </fixedLine>
6913       <mobile>
6914         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
6915              numbers are visible online than are reported in the ITU document. This pattern is
6916              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
6917              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
6918         <nationalNumberPattern>
6919           9(?:
6920             [1-3]\d|
6921             5[89]
6922           )\d{6}
6923         </nationalNumberPattern>
6924         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6925         <exampleNumber>911234567</exampleNumber>
6926       </mobile>
6927     </territory>
6928
6929     <!-- Finland -->
6930     <!-- Metadata shared with Ã…land (AX) -->
6931     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
6932                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
6933                mobileNumberPortableRegion="true">
6934       <references>
6935         <sourceUrl>http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html</sourceUrl>
6936       </references>
6937       <availableFormats>
6938         <numberFormat pattern="(\d{3})(\d{3,7})">
6939           <leadingDigits>
6940             (?:
6941               [1-3]00|
6942               [6-8]0
6943             )
6944           </leadingDigits>
6945           <format>$1 $2</format>
6946         </numberFormat>
6947         <numberFormat pattern="(\d{2})(\d{4,10})">
6948           <leadingDigits>
6949             [14]|
6950             2[09]|
6951             50|
6952             7[135]
6953           </leadingDigits>
6954           <format>$1 $2</format>
6955         </numberFormat>
6956         <numberFormat pattern="(\d)(\d{4,11})">
6957           <leadingDigits>
6958             [25689][1-8]|
6959             3
6960           </leadingDigits>
6961           <format>$1 $2</format>
6962         </numberFormat>
6963       </availableFormats>
6964       <generalDesc>
6965         <nationalNumberPattern>
6966           1\d{4,11}|
6967           [2-9]\d{4,10}
6968         </nationalNumberPattern>
6969         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
6970       </generalDesc>
6971       <noInternationalDialling>
6972         <!-- According to the national numbering plan, service numbers are in general not accessible
6973              from abroad, although 600/700/800 numbers may be. -->
6974         <nationalNumberPattern>
6975           [13]00\d{3,7}|
6976           2(?:
6977             0(?:
6978               0\d{3,7}|
6979               2[023]\d{1,6}|
6980               9[89]\d{1,6}
6981             )
6982           )|
6983           60(?:
6984             [12]\d{5,6}|
6985             6\d{7}
6986           )|
6987           7(?:
6988             1\d{7}|
6989             3\d{8}|
6990             5[03-9]\d{2,7}
6991           )
6992         </nationalNumberPattern>
6993         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6994         <exampleNumber>100123</exampleNumber>
6995       </noInternationalDialling>
6996       <fixedLine>
6997         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
6998              are listed under UAN. It also excludes Ã…land numbers. -->
6999         <nationalNumberPattern>
7000           1(?:
7001             [3569][1-8]\d{3,9}|
7002             [47]\d{5,10}
7003           )|
7004           2[1-8]\d{3,9}|
7005           3(?:
7006             [1-8]\d{3,9}|
7007             9\d{4,8}
7008           )|
7009           [5689][1-8]\d{3,9}
7010         </nationalNumberPattern>
7011         <exampleNumber>1312345678</exampleNumber>
7012       </fixedLine>
7013       <mobile>
7014         <nationalNumberPattern>
7015           4\d{5,10}|
7016           50\d{4,8}
7017         </nationalNumberPattern>
7018         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
7019         <exampleNumber>412345678</exampleNumber>
7020       </mobile>
7021       <tollFree>
7022         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
7023         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
7024         <exampleNumber>8001234567</exampleNumber>
7025       </tollFree>
7026       <premiumRate>
7027         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
7028         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
7029         <exampleNumber>600123456</exampleNumber>
7030       </premiumRate>
7031       <uan>
7032         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
7033              assigned to institutions such as universities, the national post, etc, where they are
7034              not otherwise classified as toll-free or premium-rate numbers. -->
7035         <nationalNumberPattern>
7036           [13]0\d{4,8}|
7037           2(?:
7038             0(?:
7039               [016-8]\d{3,7}|
7040               [2-59]\d{2,7}
7041             )|
7042             9\d{4,8}
7043           )|
7044           60(?:
7045             [12]\d{5,6}|
7046             6\d{7}
7047           )|
7048           7(?:
7049             1\d{7}|
7050             3\d{8}|
7051             5[03-9]\d{2,7}
7052           )
7053         </nationalNumberPattern>
7054         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
7055         <exampleNumber>10112345</exampleNumber>
7056       </uan>
7057     </territory>
7058
7059     <!-- Fiji -->
7060     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
7061                preferredInternationalPrefix="00" leadingZeroPossible="true">
7062       <references>
7063         <sourceUrl>http://www.itu.int/oth/T0202000048/en</sourceUrl>
7064         <sourceUrl>http://www.tfl.com.fj</sourceUrl>
7065       </references>
7066       <availableFormats>
7067         <numberFormat pattern="(\d{3})(\d{4})">
7068           <leadingDigits>[36-9]</leadingDigits>
7069           <format>$1 $2</format>
7070         </numberFormat>
7071         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
7072           <leadingDigits>0</leadingDigits>
7073           <format>$1 $2 $3</format>
7074         </numberFormat>
7075       </availableFormats>
7076       <generalDesc>
7077         <nationalNumberPattern>
7078           [36-9]\d{6}|
7079           0\d{10}
7080         </nationalNumberPattern>
7081         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
7082       </generalDesc>
7083       <fixedLine>
7084         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
7085              online, including in the white pages. 35X and 85X were found in the exchanges listed on
7086              http://www.tfl.com.fj. -->
7087         <nationalNumberPattern>
7088           (?:
7089             3[0-5]|
7090             6[25-7]|
7091             8[58]
7092           )\d{5}
7093         </nationalNumberPattern>
7094         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7095         <exampleNumber>3212345</exampleNumber>
7096       </fixedLine>
7097       <mobile>
7098         <!-- Adding 7[5-8], 8[03679], and 9[034678] from numbers found online and numbers where SMSs
7099              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
7100         <nationalNumberPattern>
7101           (?:
7102             7[0-8]|
7103             8[034679]|
7104             9\d
7105           )\d{5}
7106         </nationalNumberPattern>
7107         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7108         <exampleNumber>7012345</exampleNumber>
7109       </mobile>
7110       <tollFree>
7111         <!-- Information found on http://www.tfl.com.fj. It is not clear if these are
7112              internationally diallable, or if so, how. -->
7113         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
7114         <possibleNumberPattern>\d{11}</possibleNumberPattern>
7115         <exampleNumber>08001234567</exampleNumber>
7116       </tollFree>
7117     </territory>
7118
7119     <!-- Falkland Islands (Malvinas) -->
7120     <territory id="FK" countryCode="500" internationalPrefix="00">
7121       <references>
7122         <sourceUrl>http://www.itu.int/oth/T0202000046/en</sourceUrl>
7123       </references>
7124       <!-- All numbers are formatted together, as a block. -->
7125       <generalDesc>
7126         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
7127         <possibleNumberPattern>\d{5}</possibleNumberPattern>
7128       </generalDesc>
7129       <fixedLine>
7130         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
7131         <exampleNumber>31234</exampleNumber>
7132       </fixedLine>
7133       <mobile>
7134         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
7135         <exampleNumber>51234</exampleNumber>
7136       </mobile>
7137     </territory>
7138
7139     <!-- Micronesia, Federated States of -->
7140     <territory id="FM" countryCode="691" internationalPrefix="00">
7141       <references>
7142         <sourceUrl>http://www.itu.int/oth/T020200008B/en</sourceUrl>
7143       </references>
7144       <availableFormats>
7145         <numberFormat pattern="(\d{3})(\d{4})">
7146           <format>$1 $2</format>
7147         </numberFormat>
7148       </availableFormats>
7149       <generalDesc>
7150         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
7151         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7152       </generalDesc>
7153       <fixedLine>
7154         <nationalNumberPattern>
7155             3[2357]0[1-9]\d{3}|
7156             9[2-6]\d{5}
7157         </nationalNumberPattern>
7158         <exampleNumber>3201234</exampleNumber>
7159       </fixedLine>
7160       <mobile>
7161         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
7162              are exclusively mobile. -->
7163         <nationalNumberPattern>
7164           3[2357]0[1-9]\d{3}|
7165           9[2-7]\d{5}
7166         </nationalNumberPattern>
7167         <exampleNumber>3501234</exampleNumber>
7168       </mobile>
7169     </territory>
7170
7171     <!-- Faroe Islands -->
7172     <territory id="FO" countryCode="298" internationalPrefix="00"
7173                nationalPrefixForParsing="(10(?:01|[12]0|88))"
7174                carrierCodeFormattingRule="$CC $FG">
7175       <references>
7176         <sourceUrl>http://www.itu.int/oth/T0202000047/en</sourceUrl>
7177       </references>
7178       <!-- All numbers are formatted together, as a block. -->
7179       <availableFormats>
7180         <numberFormat pattern="(\d{6})">
7181           <format>$1</format>
7182         </numberFormat>
7183       </availableFormats>
7184       <generalDesc>
7185         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
7186         <possibleNumberPattern>\d{6}</possibleNumberPattern>
7187       </generalDesc>
7188       <fixedLine>
7189         <nationalNumberPattern>
7190           (?:
7191             20|
7192             [3-4]\d|
7193             8[19]
7194           )\d{4}
7195         </nationalNumberPattern>
7196         <exampleNumber>201234</exampleNumber>
7197       </fixedLine>
7198       <mobile>
7199         <nationalNumberPattern>
7200           (?:
7201             2[1-9]|
7202             5\d|
7203             7[1-79]
7204           )\d{4}
7205         </nationalNumberPattern>
7206         <exampleNumber>211234</exampleNumber>
7207       </mobile>
7208       <tollFree>
7209         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
7210         <exampleNumber>802123</exampleNumber>
7211       </tollFree>
7212       <premiumRate>
7213         <nationalNumberPattern>
7214           90(?:
7215             [1345][15-7]|
7216             2[125-7]|
7217             99
7218             )\d{2}
7219         </nationalNumberPattern>
7220         <exampleNumber>901123</exampleNumber>
7221       </premiumRate>
7222       <voip>
7223         <nationalNumberPattern>
7224           (?:
7225             6[0-36]|
7226             88
7227           )\d{4}
7228         </nationalNumberPattern>
7229         <exampleNumber>601234</exampleNumber>
7230       </voip>
7231     </territory>
7232
7233     <!-- France -->
7234     <territory id="FR" countryCode="33" internationalPrefix="00" nationalPrefix="0"
7235                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
7236       <references>
7237         <sourceUrl>http://www.itu.int/oth/T020200004A/en</sourceUrl>
7238         <sourceUrl>http://www.arcep.fr/index.php?id=8146</sourceUrl>
7239         <sourceUrl>http://en.wikipedia.org/wiki/%2B33</sourceUrl>
7240       </references>
7241       <!-- Short numbers will be formatted as a block without a national prefix. -->
7242       <availableFormats>
7243         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
7244           <leadingDigits>[1-79]</leadingDigits>
7245           <format>$1 $2 $3 $4 $5</format>
7246         </numberFormat>
7247         <numberFormat pattern="(1\d{2})(\d{3})" nationalPrefixFormattingRule="$FG">
7248           <leadingDigits>11</leadingDigits>
7249           <format>$1 $2</format>
7250           <intlFormat>NA</intlFormat>
7251         </numberFormat>
7252         <numberFormat nationalPrefixFormattingRule="$NP $FG"
7253           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
7254           <leadingDigits>8</leadingDigits>
7255           <format>$1 $2 $3 $4</format>
7256         </numberFormat>
7257       </availableFormats>
7258       <generalDesc>
7259         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
7260         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7261       </generalDesc>
7262       <fixedLine>
7263         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
7264         <exampleNumber>123456789</exampleNumber>
7265       </fixedLine>
7266       <mobile>
7267         <nationalNumberPattern>
7268           6\d{8}|
7269           7[5-9]\d{7}
7270         </nationalNumberPattern>
7271         <exampleNumber>612345678</exampleNumber>
7272       </mobile>
7273       <tollFree>
7274         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
7275         <exampleNumber>801234567</exampleNumber>
7276       </tollFree>
7277       <premiumRate>
7278         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
7279         <exampleNumber>891123456</exampleNumber>
7280       </premiumRate>
7281       <sharedCost>
7282         <nationalNumberPattern>
7283           8(?:
7284             1[019]|
7285             2[0156]|
7286             84|
7287             90
7288           )\d{6}
7289         </nationalNumberPattern>
7290         <exampleNumber>810123456</exampleNumber>
7291       </sharedCost>
7292       <voip>
7293         <!-- 087 numbers used to be used for this. -->
7294         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
7295         <exampleNumber>912345678</exampleNumber>
7296       </voip>
7297     </territory>
7298
7299     <!-- Gabon -->
7300     <!-- Note: We cannot set nationalPrefix="0" while fixed line numbers can start with a zero
7301          as this breaks parsing (it treats all leading zeros as national prefixes. -->
7302     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true" >
7303       <references>
7304         <sourceUrl>http://www.itu.int/oth/T020200004E/en</sourceUrl>
7305         <sourceUrl>http://www.arcep.ga</sourceUrl>
7306       </references>
7307       <availableFormats>
7308         <!-- If no leading zero was supplied, format with the national prefix. -->
7309         <numberFormat pattern="(\d)(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="0$FG">
7310           <leadingDigits>[2-7]</leadingDigits>
7311           <format>$1 $2 $3 $4</format>
7312         </numberFormat>
7313         <!-- This already has a leading zero so we format is "as is". -->
7314         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
7315           <leadingDigits>0</leadingDigits>
7316          <format>$1 $2 $3 $4</format>
7317         </numberFormat>
7318       </availableFormats>
7319       <generalDesc>
7320         <nationalNumberPattern>0?\d{7}</nationalNumberPattern>
7321         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
7322       </generalDesc>
7323       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
7324            line and mobile numbering. However, this has only partially happened; mobile numbers can
7325            now be dialed without a leading zero, but fixed line numbers still require it. Their own
7326            website still lists fixed line numbers as "+241 01 44 68 11" and upon ringing they will
7327            not connect from outside the country without the 0. This was last tested March 2014. -->
7328       <fixedLine>
7329         <nationalNumberPattern>01\d{6}</nationalNumberPattern>
7330         <possibleNumberPattern>\d{8}</possibleNumberPattern>
7331         <exampleNumber>01441234</exampleNumber>
7332       </fixedLine>
7333       <mobile>
7334         <!-- Mobile numbers can be 7 or 8 digits (with or without a leading zero). -->
7335         <nationalNumberPattern>0?[2-7]\d{6}</nationalNumberPattern>
7336         <exampleNumber>06031234</exampleNumber>
7337       </mobile>
7338     </territory>
7339
7340     <!-- United Kingdom -->
7341     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
7342          validation, although the formatting rules are shared. -->
7343     <territory id="GB" countryCode="44" internationalPrefix="00"
7344                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
7345                mainCountryForCode="true" mobileNumberPortableRegion="true">
7346       <references>
7347         <sourceUrl>http://stakeholders.ofcom.org.uk/telecoms/numbering/</sourceUrl>
7348         <sourceUrl>http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes</sourceUrl>
7349         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=GB</sourceUrl>
7350       </references>
7351       <availableFormats>
7352         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
7353         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
7354           <leadingDigits>
7355             2|
7356             5[56]|
7357             7(?:
7358               0|
7359               6[013-9]
7360             )
7361           </leadingDigits>
7362           <leadingDigits>
7363             2|
7364             5[56]|
7365             7(?:
7366               0|
7367               6(?:
7368                 [013-9]|
7369                 2[0-35-9]
7370               )
7371             )
7372           </leadingDigits>
7373           <format>$1 $2 $3</format>
7374         </numberFormat>
7375         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
7376         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
7377           <leadingDigits>
7378             1(?:
7379               1|
7380               \d1
7381             )|
7382             3|
7383             9[018]
7384           </leadingDigits>
7385           <format>$1 $2 $3</format>
7386         </numberFormat>
7387         <!-- 1dddd with 9 or 10 digits.
7388              These area codes are very rare in GB, and are only available in the following places:
7389              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
7390              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
7391              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
7392         <numberFormat pattern="(\d{5})(\d{4,5})">
7393           <leadingDigits>
7394             1(?:
7395               38|
7396               5[23]|
7397               69|
7398               76|
7399               94
7400             )
7401           </leadingDigits>
7402           <leadingDigits>
7403             1(?:
7404               387|
7405               5(?:
7406                 24|
7407                 39
7408               )|
7409               697|
7410               768|
7411               946
7412             )
7413           </leadingDigits>
7414           <leadingDigits>
7415             1(?:
7416               3873|
7417               5(?:
7418                 242|
7419                 39[456]
7420               )|
7421               697[347]|
7422               768[347]|
7423               9467
7424             )
7425           </leadingDigits>
7426           <format>$1 $2</format>
7427         </numberFormat>
7428         <!-- 1ddd with 9 or 10 digits. -->
7429         <numberFormat pattern="(1\d{3})(\d{5,6})">
7430           <leadingDigits>1</leadingDigits>
7431           <format>$1 $2</format>
7432         </numberFormat>
7433         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
7434         <numberFormat pattern="(7\d{3})(\d{6})">
7435           <leadingDigits>
7436             7(?:
7437               [1-5789]|
7438               62
7439             )
7440           </leadingDigits>
7441           <leadingDigits>
7442             7(?:
7443               [1-5789]|
7444               624
7445             )
7446           </leadingDigits>
7447           <format>$1 $2</format>
7448         </numberFormat>
7449         <!-- 800 1111 : UK ChildLine. -->
7450         <numberFormat pattern="(800)(\d{4})">
7451           <leadingDigits>800</leadingDigits>
7452           <leadingDigits>8001</leadingDigits>
7453           <leadingDigits>80011</leadingDigits>
7454           <leadingDigits>800111</leadingDigits>
7455           <leadingDigits>8001111</leadingDigits>
7456           <format>$1 $2</format>
7457         </numberFormat>
7458         <!-- 845 46 47 : UK NHS Direct. -->
7459         <numberFormat pattern="(845)(46)(4\d)">
7460           <leadingDigits>845</leadingDigits>
7461           <leadingDigits>8454</leadingDigits>
7462           <leadingDigits>84546</leadingDigits>
7463           <leadingDigits>845464</leadingDigits>
7464           <format>$1 $2 $3</format>
7465         </numberFormat>
7466         <!-- 84d, 87d with 10 digits. -->
7467         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
7468           <leadingDigits>
7469             8(?:
7470               4[2-5]|
7471               7[0-3]
7472             )
7473           </leadingDigits>
7474           <format>$1 $2 $3</format>
7475         </numberFormat>
7476         <!-- 80d (including 800) with 10 digits. -->
7477         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
7478           <leadingDigits>80</leadingDigits>
7479           <format>$1 $2 $3</format>
7480         </numberFormat>
7481         <!-- 500, 800 with 9 digits. -->
7482         <numberFormat pattern="([58]00)(\d{6})">
7483           <leadingDigits>[58]00</leadingDigits>
7484           <format>$1 $2</format>
7485         </numberFormat>
7486       </availableFormats>
7487       <generalDesc>
7488         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
7489         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
7490       </generalDesc>
7491       <areaCodeOptional>
7492         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
7493              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
7494              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
7495              necessarily valid numbers. -->
7496         <nationalNumberPattern>
7497           2\d[2-9]\d{7}|
7498           1(?:
7499             1\d|
7500             \d1
7501           )[2-9]\d{6}|
7502           1(?:
7503             [248][02-9]\d[2-9]\d{4,5}|
7504             (?:
7505               3(?:
7506                 [02-79]\d|
7507                 8[0-69]
7508               )|
7509               5(?:
7510                 [04-9]\d|
7511                 2[0-35-9]|
7512                 3[0-8]
7513               )|
7514               6(?:
7515                 [02-8]\d|
7516                 9[0-689]
7517               )|
7518               7(?:
7519                 [02-5789]\d|
7520                 6[0-79]
7521               )|
7522               9(?:
7523                 [0235-9]\d|
7524                 4[0-5789]
7525               )
7526             )[2-9]\d{4,5}|
7527             (?:
7528               387(?:
7529                 3[2-9]|
7530                 [24-9]\d
7531               )|
7532               5(?:
7533                 24(?:
7534                   2[2-9]|
7535                   [3-9]\d
7536                 )|
7537                 39(?:
7538                   [4-6][2-9]|
7539                   [237-9]\d
7540                 )
7541               )|
7542               697(?:
7543                 [347][2-9]|
7544                 [25689]\d
7545               )|
7546               768(?:
7547                 [347][2-9]|
7548                 [25679]\d
7549               )|
7550               946(?:
7551                 7[2-9]|
7552                 [2-689]\d
7553               )
7554             )\d{3,4}
7555           )
7556         </nationalNumberPattern>
7557         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
7558         <exampleNumber>1332456789</exampleNumber>
7559       </areaCodeOptional>
7560       <fixedLine>
7561         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7562         <!-- Pattern matches geographic NSN=10 numbers as follows:
7563              - area code and local number first digit for 2+8,
7564              - area code and local number first digit for 3+7,
7565              - area code only for 4+6 (including areas with embedded 5+5).
7566              Pattern matches geographic NSN=9 numbers as follows:
7567              - area code and local number first two digits for 4+5,
7568              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
7569              - area code and local number first digit for 5+4 special case (016977) Dddd.
7570              All patterns exclude ranges used in GG, IM, JE. -->
7571         <nationalNumberPattern>
7572           2(?:
7573             0[01378]|
7574             3[0189]|
7575             4[017]|
7576             8[0-46-9]|
7577             9[012]
7578           )\d{7}|
7579           1(?:
7580             (?:
7581               1(?:
7582                 3[0-48]|
7583                 [46][0-4]|
7584                 5[012789]|
7585                 7[0-49]|
7586                 8[01349]
7587               )|
7588               21[0-7]|
7589               31[0-8]|
7590               [459]1\d|
7591               61[0-46-9]
7592             )
7593           )\d{6}|
7594           1(?:
7595             2(?:
7596               0[024-9]|
7597               2[3-9]|
7598               3[3-79]|
7599               4[1-689]|
7600               [58][02-9]|
7601               6[0-4789]|
7602               7[013-9]|
7603               9\d
7604             )|
7605             3(?:
7606               0\d|
7607               [25][02-9]|
7608               3[02-579]|
7609               [468][0-46-9]|
7610               7[1235679]|
7611               9[24578]
7612             )|
7613             4(?:
7614               0[03-9]|
7615               [28][02-5789]|
7616               [37]\d|
7617               4[02-69]|
7618               5[0-8]|
7619               [69][0-79]
7620             )|
7621             5(?:
7622               0[1235-9]|
7623               2[024-9]|
7624               3[015689]|
7625               4[02-9]|
7626               5[03-9]|
7627               6\d|
7628               7[0-35-9]|
7629               8[0-468]|
7630               9[0-5789]
7631             )|
7632             6(?:
7633               0[034689]|
7634               2[0-35689]|
7635               [38][013-9]|
7636               4[1-467]|
7637               5[0-69]|
7638               6[13-9]|
7639               7[0-8]|
7640               9[0124578]
7641             )|
7642             7(?:
7643               0[0246-9]|
7644               2\d|
7645               3[023678]|
7646               4[03-9]|
7647               5[0-46-9]|
7648               6[013-9]|
7649               7[0-35-9]|
7650               8[024-9]|
7651               9[02-9]
7652             )|
7653             8(?:
7654               0[35-9]|
7655               2[1-5789]|
7656               3[02-578]|
7657               4[0-578]|
7658               5[124-9]|
7659               6[2-69]|
7660               7\d|
7661               8[02-9]|
7662               9[02569]
7663             )|
7664             9(?:
7665               0[02-589]|
7666               2[02-689]|
7667               3[1-5789]|
7668               4[2-9]|
7669               5[0-579]|
7670               6[234789]|
7671               7[0124578]|
7672               8\d|
7673               9[2-57]
7674             )
7675           )\d{6}|
7676           1(?:
7677             2(?:
7678               0(?:
7679                 46[1-4]|
7680                 87[2-9]
7681               )|
7682               545[1-79]|
7683               76(?:
7684                 2\d|
7685                 3[1-8]|
7686                 6[1-6]
7687               )|
7688               9(?:
7689                 7(?:
7690                   2[0-4]|
7691                   3[2-5]
7692                 )|
7693                 8(?:
7694                   2[2-8]|
7695                   7[0-4789]|
7696                   8[345]
7697                 )
7698               )
7699             )|
7700             3(?:
7701               638[2-5]|
7702               647[23]|
7703               8(?:
7704                 47[04-9]|
7705                 64[015789]
7706               )
7707             )|
7708             4(?:
7709               044[1-7]|
7710               20(?:
7711                 2[23]|
7712                 8\d
7713               )|
7714               6(?:
7715                 0(?:
7716                   30|
7717                   5[2-57]|
7718                   6[1-8]|
7719                   7[2-8]
7720                 )|
7721                 140
7722               )|
7723               8(?:
7724                 052|
7725                 87[123]
7726               )
7727             )|
7728             5(?:
7729               24(?:
7730                 3[2-79]|
7731                 6\d
7732               )|
7733               276\d|
7734               6(?:
7735                 26[06-9]|
7736                 686
7737               )
7738             )|
7739             6(?:
7740               06(?:
7741                 4\d|
7742                 7[4-79]
7743               )|
7744               295[567]|
7745               35[34]\d|
7746               47(?:
7747                 24|
7748                 61
7749               )|
7750               59(?:
7751                 5[08]|
7752                 6[67]|
7753                 74
7754               )|
7755               955[0-4]
7756             )|
7757             7(?:
7758               26(?:
7759                 6[13-9]|
7760                 7[0-7]
7761               )|
7762               442\d|
7763               50(?:
7764                 2[0-3]|
7765                 [3-68]2|
7766                 76
7767               )
7768             )|
7769             8(?:
7770               27[56]\d|
7771               37(?:
7772                 5[2-5]|
7773                 8[239]
7774               )|
7775               84(?:
7776                 3[2-58]
7777               )
7778             )|
7779             9(?:
7780               0(?:
7781                 0(?:
7782                   6[1-8]|
7783                   85
7784                 )|
7785                 52\d
7786               )|
7787               3583|
7788               4(?:
7789                 66[1-8]|
7790                 9(?:
7791                   2[01]|
7792                   81
7793                 )
7794               )|
7795               63(?:
7796                 23|
7797                 3[1-4]
7798               )|
7799               9561
7800             )
7801           )\d{3}|
7802           176888[234678]\d{2}|
7803           16977[23]\d{3}
7804         </nationalNumberPattern>
7805         <exampleNumber>1212345678</exampleNumber>
7806       </fixedLine>
7807       <mobile>
7808         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
7809              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
7810         <nationalNumberPattern>
7811           7(?:
7812             [1-4]\d\d|
7813             5(?:
7814               0[0-8]|
7815               [13-9]\d|
7816               2[0-35-9]
7817             )|
7818             7(?:
7819               0[1-9]|
7820               [1-7]\d|
7821               8[02-9]|
7822               9[0-689]
7823             )|
7824             8(?:
7825               [014-9]\d|
7826               [23][0-8]
7827             )|
7828             9(?:
7829               [04-9]\d|
7830               1[02-9]|
7831               2[0-35-9]|
7832               3[0-689]
7833             )
7834           )\d{6}
7835         </nationalNumberPattern>
7836         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7837         <exampleNumber>7400123456</exampleNumber>
7838       </mobile>
7839       <pager>
7840         <!-- 76 with 10 digits; excluding ranges used in IM. -->
7841         <nationalNumberPattern>
7842           76(?:
7843             0[012]|
7844             2[356]|
7845             4[0134]|
7846             5[49]|
7847             6[0-369]|
7848             77|
7849             81|
7850             9[39]
7851           )\d{6}
7852         </nationalNumberPattern>
7853         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7854         <exampleNumber>7640123456</exampleNumber>
7855       </pager>
7856       <!-- Source for non geographic numbers:
7857            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
7858       <tollFree>
7859         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
7860              -->
7861         <nationalNumberPattern>
7862           80(?:
7863             0(?:
7864               1111|
7865               \d{6,7}
7866             )|
7867             8\d{7}
7868           )|
7869           500\d{6}
7870         </nationalNumberPattern>
7871         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
7872         <exampleNumber>8001234567</exampleNumber>
7873       </tollFree>
7874       <premiumRate>
7875         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
7876              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
7877              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
7878              910-919 are reserved for standard premium rate services. -->
7879         <nationalNumberPattern>
7880           (?:
7881             87[123]|
7882             9(?:
7883               [01]\d|
7884               8[2349]
7885             )
7886           )\d{7}
7887         </nationalNumberPattern>
7888         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7889         <exampleNumber>9012345678</exampleNumber>
7890       </premiumRate>
7891       <sharedCost>
7892         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
7893              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
7894         <nationalNumberPattern>
7895           8(?:
7896             4(?:
7897               5464\d|
7898               [2-5]\d{7}
7899             )|
7900             70\d{7}
7901           )
7902         </nationalNumberPattern>
7903         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7904         <exampleNumber>8431234567</exampleNumber>
7905       </sharedCost>
7906       <personalNumber>
7907         <!-- 70 with 10 digits. -->
7908         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
7909         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7910         <exampleNumber>7012345678</exampleNumber>
7911       </personalNumber>
7912       <voip>
7913         <!-- 56 with 10 digits. -->
7914         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
7915         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7916         <exampleNumber>5612345678</exampleNumber>
7917       </voip>
7918       <uan>
7919         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
7920         <nationalNumberPattern>
7921           (?:
7922             3[0347]|
7923             55
7924           )\d{8}
7925         </nationalNumberPattern>
7926         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7927         <exampleNumber>5512345678</exampleNumber>
7928       </uan>
7929     </territory>
7930
7931     <!-- Grenada -->
7932     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
7933                internationalPrefix="011">
7934       <references>
7935         <sourceUrl>http://www.itu.int/oth/T0202000057/en</sourceUrl>
7936       </references>
7937       <generalDesc>
7938         <!-- NANPA country - uses US formatting rules -->
7939         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
7940         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7941       </generalDesc>
7942       <fixedLine>
7943         <nationalNumberPattern>
7944           473(?:
7945             2(?:
7946               3[0-2]|
7947               69
7948             )|
7949             3(?:
7950               2[89]|
7951               86
7952             )|
7953             4(?:
7954               [06]8|
7955               3[5-9]|
7956               4[0-49]|
7957               5[5-79]|
7958               68|
7959               73|
7960               90
7961             )|
7962             63[68]|
7963             7(?:
7964               58|
7965               84
7966             )|
7967             800|
7968             938
7969           )\d{4}
7970         </nationalNumberPattern>
7971         <exampleNumber>4732691234</exampleNumber>
7972       </fixedLine>
7973       <mobile>
7974         <nationalNumberPattern>
7975           473(?:
7976             4(?:
7977               0[2-79]|
7978               1[04-9]|
7979               20|
7980               58
7981             )|
7982             5(?:
7983               2[01]|
7984               3[3-8]
7985             )|
7986             901
7987           )\d{4}
7988         </nationalNumberPattern>
7989         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7990         <exampleNumber>4734031234</exampleNumber>
7991       </mobile>
7992       <tollFree>
7993         <nationalNumberPattern>
7994           8(?:
7995             00|
7996             44|
7997             55|
7998             66|
7999             77|
8000             88
8001           )[2-9]\d{6}
8002         </nationalNumberPattern>
8003         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8004         <exampleNumber>8002123456</exampleNumber>
8005       </tollFree>
8006       <premiumRate>
8007         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8008         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8009         <exampleNumber>9002123456</exampleNumber>
8010       </premiumRate>
8011       <personalNumber>
8012         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8013         <nationalNumberPattern>
8014           5(?:
8015             00|
8016             33|
8017             44|
8018             66|
8019             77
8020           )[2-9]\d{6}
8021         </nationalNumberPattern>
8022         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8023         <exampleNumber>5002345678</exampleNumber>
8024       </personalNumber>
8025     </territory>
8026
8027     <!-- Georgia -->
8028     <territory id="GE" countryCode="995" internationalPrefix="00" nationalPrefix="0"
8029                mobileNumberPortableRegion="true">
8030       <references>
8031         <sourceUrl>http://www.itu.int/oth/T0202000050/en</sourceUrl>
8032         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia_(country)</sourceUrl>
8033       </references>
8034       <availableFormats>
8035         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
8036              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
8037         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
8038           <leadingDigits>[348]</leadingDigits>
8039           <format>$1 $2 $3 $4</format>
8040         </numberFormat>
8041         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
8042           <leadingDigits>7</leadingDigits>
8043           <format>$1 $2 $3</format>
8044         </numberFormat>
8045         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
8046           <leadingDigits>5</leadingDigits>
8047           <format>$1 $2 $3 $4</format>
8048         </numberFormat>
8049       </availableFormats>
8050       <noInternationalDialling>
8051         <!-- Online numbers mention that this is not internationally diallable. -->
8052         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8053         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8054         <exampleNumber>706123456</exampleNumber>
8055       </noInternationalDialling>
8056       <generalDesc>
8057         <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
8058         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8059       </generalDesc>
8060       <fixedLine>
8061         <nationalNumberPattern>
8062           (?:
8063             3(?:
8064               [256]\d|
8065               4[124-9]|
8066               7[0-4]
8067             )|
8068             4(?:
8069               1\d|
8070               2[2-7]|
8071               3[1-79]|
8072               4[2-8]|
8073               7[239]|
8074               9[1-7]
8075             )
8076           )\d{6}
8077         </nationalNumberPattern>
8078         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8079         <exampleNumber>322123456</exampleNumber>
8080       </fixedLine>
8081       <mobile>
8082         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
8083              about the change in numbers, and online numbers found. -->
8084         <nationalNumberPattern>
8085           5(?:
8086             14|
8087             5[01578]|
8088             68|
8089             7[0147-9]|
8090             9[0-35-9]
8091           )\d{6}
8092         </nationalNumberPattern>
8093         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8094         <exampleNumber>555123456</exampleNumber>
8095       </mobile>
8096       <!-- Information from http://www.yell.ge, examples such as Wissol Petroleum Georgia
8097            hotline. -->
8098       <tollFree>
8099         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
8100         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8101         <exampleNumber>800123456</exampleNumber>
8102       </tollFree>
8103       <voip>
8104         <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
8105         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8106         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8107         <exampleNumber>706123456</exampleNumber>
8108       </voip>
8109       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
8110            these are omitted for now. -->
8111     </territory>
8112
8113     <!-- French Guiana (French Dept. of) -->
8114     <!-- Using a national prefix here as online numbers are formatted with it. -->
8115     <territory id="GF" countryCode="594" internationalPrefix="00"
8116                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
8117       <references>
8118         <sourceUrl>http://www.itu.int/oth/T020200004C/en</sourceUrl>
8119         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0594&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
8120         <sourceUrl>http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf</sourceUrl>
8121       </references>
8122       <availableFormats>
8123         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8124           <format>$1 $2 $3 $4</format>
8125         </numberFormat>
8126       </availableFormats>
8127       <generalDesc>
8128         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8129         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8130       </generalDesc>
8131       <fixedLine>
8132         <nationalNumberPattern>
8133           594(?:
8134             10|
8135             2[012457-9]|
8136             3[0-57-9]|
8137             4[3-9]|
8138             5[7-9]|
8139             6[0-3]|
8140             9[014]
8141           )\d{4}
8142         </nationalNumberPattern>
8143         <exampleNumber>594101234</exampleNumber>
8144       </fixedLine>
8145       <mobile>
8146         <nationalNumberPattern>
8147           694(?:
8148             [04][0-7]|
8149             1[0-5]|
8150             3[018]|
8151             [29]\d
8152           )\d{4}
8153         </nationalNumberPattern>
8154         <exampleNumber>694201234</exampleNumber>
8155       </mobile>
8156       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
8157            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
8158            too. -->
8159     </territory>
8160
8161     <!-- Guernsey -->
8162     <!-- Inherits formatting rules from the UK. -->
8163     <territory id="GG" countryCode="44" internationalPrefix="00"
8164                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
8165       <references>
8166         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
8167       </references>
8168       <generalDesc>
8169         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
8170         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
8171       </generalDesc>
8172       <areaCodeOptional>
8173         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
8174         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8175         <exampleNumber>1481250123</exampleNumber>
8176       </areaCodeOptional>
8177       <!-- Specific to GG. -->
8178       <fixedLine>
8179         <!-- 1481 with 10 digits. -->
8180         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
8181         <exampleNumber>1481456789</exampleNumber>
8182       </fixedLine>
8183       <mobile>
8184         <!-- 7781, 7839, 7911 with 10 digits. -->
8185         <nationalNumberPattern>
8186           7(?:
8187             781|
8188             839|
8189             911
8190           )\d{6}
8191         </nationalNumberPattern>
8192         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8193         <exampleNumber>7781123456</exampleNumber>
8194       </mobile>
8195       <!-- Other numbers as per GB. -->
8196       <pager>
8197         <nationalNumberPattern>
8198           76(?:
8199             0[012]|
8200             2[356]|
8201             4[0134]|
8202             5[49]|
8203             6[0-369]|
8204             77|
8205             81|
8206             9[39]
8207           )\d{6}
8208         </nationalNumberPattern>
8209         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8210         <exampleNumber>7640123456</exampleNumber>
8211       </pager>
8212       <tollFree>
8213         <nationalNumberPattern>
8214           80(?:
8215             0(?:
8216               1111|
8217               \d{6,7}
8218             )|
8219             8\d{7}
8220           )|
8221           500\d{6}
8222         </nationalNumberPattern>
8223         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
8224         <exampleNumber>8001234567</exampleNumber>
8225       </tollFree>
8226       <premiumRate>
8227         <nationalNumberPattern>
8228           (?:
8229             87[123]|
8230             9(?:
8231               [01]\d|
8232               8[0-3]
8233             )
8234           )\d{7}
8235         </nationalNumberPattern>
8236         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8237         <exampleNumber>9012345678</exampleNumber>
8238       </premiumRate>
8239       <sharedCost>
8240         <nationalNumberPattern>
8241           8(?:
8242             4(?:
8243               5464\d|
8244               [2-5]\d{7}
8245             )|
8246             70\d{7}
8247           )
8248         </nationalNumberPattern>
8249         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8250         <exampleNumber>8431234567</exampleNumber>
8251       </sharedCost>
8252       <personalNumber>
8253         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8254         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8255         <exampleNumber>7012345678</exampleNumber>
8256       </personalNumber>
8257       <voip>
8258         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
8259         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8260         <exampleNumber>5612345678</exampleNumber>
8261       </voip>
8262       <uan>
8263         <nationalNumberPattern>
8264           (?:
8265             3[0347]|
8266             55
8267           )\d{8}
8268         </nationalNumberPattern>
8269         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8270         <exampleNumber>5512345678</exampleNumber>
8271       </uan>
8272     </territory>
8273
8274     <!-- Ghana -->
8275     <territory id="GH" countryCode="233" internationalPrefix="00"
8276                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
8277                mobileNumberPortableRegion="true">
8278       <references>
8279         <sourceUrl>http://www.itu.int/oth/T0202000052/en</sourceUrl>
8280         <sourceUrl>http://www.nca.org.gh/index.php?option=com_content&amp;view=article&amp;id=90&amp;Itemid=65</sourceUrl>
8281       </references>
8282       <availableFormats>
8283         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
8284           <leadingDigits>[235]</leadingDigits>
8285           <format>$1 $2 $3</format>
8286         </numberFormat>
8287         <numberFormat pattern="(\d{3})(\d{5})">
8288           <leadingDigits>8</leadingDigits>
8289           <format>$1 $2</format>
8290         </numberFormat>
8291       </availableFormats>
8292       <generalDesc>
8293         <nationalNumberPattern>
8294           [235]\d{8}|
8295           8\d{7}
8296         </nationalNumberPattern>
8297         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8298       </generalDesc>
8299       <noInternationalDialling>
8300         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8301         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8302         <exampleNumber>80012345</exampleNumber>
8303       </noInternationalDialling>
8304       <fixedLine>
8305         <nationalNumberPattern>
8306           3(?:
8307             0[237]\d|
8308             [167](?:
8309               2[0-6]|
8310               7\d
8311             )|
8312             2(?:
8313               2[0-5]|
8314               7\d
8315             )|
8316             3(?:
8317               2[0-3]|
8318               7\d
8319             )|
8320             4(?:
8321               2[013-9]|
8322               3[01]|
8323               7\d
8324             )|
8325             5(?:
8326               2[0-7]|
8327               7\d
8328             )|
8329             8(?:
8330               2[0-2]|
8331               7\d
8332             )|
8333             9(?:
8334               20|
8335               7\d
8336             )
8337           )\d{5}
8338         </nationalNumberPattern>
8339         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8340         <exampleNumber>302345678</exampleNumber>
8341       </fixedLine>
8342       <mobile>
8343         <nationalNumberPattern>
8344           (?:
8345             2[034678]\d|
8346             5(?:
8347               [047]\d|
8348               5[3-6]|
8349               6[01]
8350             )
8351           )\d{6}
8352         </nationalNumberPattern>
8353         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8354         <exampleNumber>231234567</exampleNumber>
8355       </mobile>
8356       <tollFree>
8357         <!-- Found online references to these numbers, although they are not in the plan since they
8358              are not internationally diallable. -->
8359         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8360         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8361         <exampleNumber>80012345</exampleNumber>
8362       </tollFree>
8363       <!-- No premiumRate information can be found. -->
8364     </territory>
8365
8366     <!-- Gibraltar -->
8367     <territory id="GI" countryCode="350" internationalPrefix="00">
8368       <references>
8369         <sourceUrl>http://www.gra.gi/index.php?topic=numbering+plan&amp;section=legislation&amp;site=communications</sourceUrl>
8370       </references>
8371       <availableFormats>
8372         <!-- Most numbers are formatted as a block -->
8373         <numberFormat pattern="(\d{3})(\d{5})">
8374           <leadingDigits>2</leadingDigits>
8375           <format>$1 $2</format>
8376         </numberFormat>
8377       </availableFormats>
8378       <generalDesc>
8379         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
8380         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8381       </generalDesc>
8382       <fixedLine>
8383         <nationalNumberPattern>
8384           2(?:
8385             00\d|
8386             1(?:
8387               6[24-7]|
8388               9\d
8389             )|
8390             2(?:
8391               00|
8392               2[2457]
8393             )
8394           )\d{4}
8395         </nationalNumberPattern>
8396         <exampleNumber>20012345</exampleNumber>
8397       </fixedLine>
8398       <mobile>
8399         <nationalNumberPattern>
8400           (?:
8401             5[46-8]|
8402             62
8403           )\d{6}
8404         </nationalNumberPattern>
8405         <exampleNumber>57123456</exampleNumber>
8406       </mobile>
8407       <tollFree>
8408         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
8409         <exampleNumber>80123456</exampleNumber>
8410       </tollFree>
8411       <premiumRate>
8412         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
8413         <exampleNumber>88123456</exampleNumber>
8414       </premiumRate>
8415       <sharedCost>
8416         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
8417         <exampleNumber>87123456</exampleNumber>
8418       </sharedCost>
8419     </territory>
8420
8421     <!-- Greenland -->
8422     <territory id="GL" countryCode="299" internationalPrefix="00">
8423       <references>
8424         <sourceUrl>http://www.itu.int/oth/T0202000056/en</sourceUrl>
8425       </references>
8426       <availableFormats>
8427         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
8428           <format>$1 $2 $3</format>
8429         </numberFormat>
8430       </availableFormats>
8431       <generalDesc>
8432         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
8433         <possibleNumberPattern>\d{6}</possibleNumberPattern>
8434       </generalDesc>
8435       <fixedLine>
8436         <!-- Including VSAT numbers here. -->
8437         <nationalNumberPattern>
8438           (?:
8439             19|
8440             3[1-6]|
8441             6[14689]|
8442             8[14-79]|
8443             9\d
8444           )\d{4}
8445         </nationalNumberPattern>
8446         <exampleNumber>321000</exampleNumber>
8447       </fixedLine>
8448       <mobile>
8449         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
8450         <exampleNumber>221234</exampleNumber>
8451       </mobile>
8452       <tollFree>
8453         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
8454         <exampleNumber>801234</exampleNumber>
8455       </tollFree>
8456       <voip>
8457         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
8458         <exampleNumber>381234</exampleNumber>
8459       </voip>
8460     </territory>
8461
8462     <!-- Gambia -->
8463     <territory id="GM" countryCode="220" internationalPrefix="00">
8464       <references>
8465         <sourceUrl>http://www.itu.int/oth/T020200004F/en</sourceUrl>
8466       </references>
8467       <availableFormats>
8468         <numberFormat pattern="(\d{3})(\d{4})">
8469           <format>$1 $2</format>
8470         </numberFormat>
8471       </availableFormats>
8472       <generalDesc>
8473         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
8474         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8475       </generalDesc>
8476       <fixedLine>
8477         <nationalNumberPattern>
8478           (?:
8479             4(?:
8480               [23]\d{2}|
8481               4(?:
8482                 1[024679]|
8483                 [6-9]\d
8484               )
8485             )|
8486             5(?:
8487               54[0-7]|
8488               6(?:
8489                 [67]\d
8490               )|
8491               7(?:
8492                 1[04]|
8493                 2[035]|
8494                 3[58]|
8495                 48
8496               )
8497             )|
8498             8\d{3}
8499           )\d{3}
8500         </nationalNumberPattern>
8501         <exampleNumber>5661234</exampleNumber>
8502       </fixedLine>
8503       <mobile>
8504         <nationalNumberPattern>
8505           (?:
8506             2[0-6]|
8507             [3679]\d
8508           )\d{5}
8509         </nationalNumberPattern>
8510         <exampleNumber>3012345</exampleNumber>
8511       </mobile>
8512     </territory>
8513
8514     <!-- Guinea -->
8515     <territory id="GN" countryCode="224" internationalPrefix="00">
8516       <references>
8517         <sourceUrl>http://www.itu.int/oth/T020200005B/en</sourceUrl>
8518       </references>
8519       <availableFormats>
8520         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
8521           <leadingDigits>3</leadingDigits>
8522           <format>$1 $2 $3 $4</format>
8523         </numberFormat>
8524         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8525           <leadingDigits>[67]</leadingDigits>
8526           <format>$1 $2 $3 $4</format>
8527         </numberFormat>
8528       </availableFormats>
8529       <generalDesc>
8530         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
8531         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
8532       </generalDesc>
8533       <fixedLine>
8534         <nationalNumberPattern>
8535           30(?:
8536             24|
8537             3[12]|
8538             4[1-35-7]|
8539             5[13]|
8540             6[189]|
8541             [78]1|
8542             9[1478]
8543           )\d{4}
8544         </nationalNumberPattern>
8545         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8546         <exampleNumber>30241234</exampleNumber>
8547       </fixedLine>
8548       <mobile>
8549         <!-- Prefixes here match those assigned to carriers, as per the ITU communication Jan 23rd
8550              2013. -->
8551         <nationalNumberPattern>6[02356]\d{7}</nationalNumberPattern>
8552         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8553         <exampleNumber>601123456</exampleNumber>
8554       </mobile>
8555       <voip>
8556         <!-- Gamma concept network is being listed as VoIP as per
8557              http://www.gammaconcept.com/internet%20sat.html -->
8558         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
8559         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8560         <exampleNumber>722123456</exampleNumber>
8561       </voip>
8562     </territory>
8563
8564     <!-- Guadeloupe -->
8565     <territory id="GP" countryCode="590" internationalPrefix="00"
8566                mainCountryForCode="true" nationalPrefix="0"
8567                nationalPrefixFormattingRule="$NP$FG">
8568       <references>
8569         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
8570         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
8571         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
8572       </references>
8573       <availableFormats>
8574         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
8575           <format>$1 $2-$3</format>
8576         </numberFormat>
8577       </availableFormats>
8578       <generalDesc>
8579         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8580         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8581       </generalDesc>
8582       <fixedLine>
8583         <nationalNumberPattern>
8584           590(?:
8585             0[13468]|
8586             1[012]|
8587             2[0-68]|
8588             3[28]|
8589             4[0-8]|
8590             5[579]|
8591             6[0189]|
8592             70|
8593             8[0-689]|
8594             9\d
8595           )\d{4}
8596         </nationalNumberPattern>
8597         <exampleNumber>590201234</exampleNumber>
8598       </fixedLine>
8599       <mobile>
8600         <!-- Any ranges assigned from
8601              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
8602              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
8603              them. -->
8604         <nationalNumberPattern>
8605           690(?:
8606             0[0-7]|
8607             [1-9]\d
8608           )\d{4}
8609         </nationalNumberPattern>
8610         <exampleNumber>690301234</exampleNumber>
8611       </mobile>
8612     </territory>
8613
8614     <!-- Equatorial Guinea -->
8615     <territory id="GQ" countryCode="240" internationalPrefix="00">
8616       <references>
8617         <sourceUrl>http://www.itu.int/oth/T0202000041/en</sourceUrl>
8618       </references>
8619       <availableFormats>
8620         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
8621           <leadingDigits>[235]</leadingDigits>
8622           <format>$1 $2 $3</format>
8623         </numberFormat>
8624         <numberFormat pattern="(\d{3})(\d{6})">
8625           <leadingDigits>[89]</leadingDigits>
8626           <format>$1 $2</format>
8627         </numberFormat>
8628       </availableFormats>
8629       <generalDesc>
8630         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
8631         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8632       </generalDesc>
8633       <fixedLine>
8634         <nationalNumberPattern>
8635           3(?:
8636             3(?:
8637               3\d[7-9]|
8638               [0-24-9]\d[46]
8639             )|
8640             5\d{2}[7-9]
8641           )\d{4}
8642         </nationalNumberPattern>
8643         <exampleNumber>333091234</exampleNumber>
8644       </fixedLine>
8645       <mobile>
8646         <nationalNumberPattern>
8647           (?:
8648             222|
8649             551
8650           )\d{6}
8651         </nationalNumberPattern>
8652         <exampleNumber>222123456</exampleNumber>
8653       </mobile>
8654       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
8655            they start allocating them there will be a differentiation of prefixes, but this is not
8656            clear now. -->
8657       <tollFree>
8658         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
8659         <exampleNumber>800123456</exampleNumber>
8660       </tollFree>
8661       <premiumRate>
8662         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
8663         <exampleNumber>900123456</exampleNumber>
8664       </premiumRate>
8665     </territory>
8666
8667     <!-- Greece -->
8668     <territory id="GR" countryCode="30" internationalPrefix="00" mobileNumberPortableRegion="true">
8669       <references>
8670         <sourceUrl>http://www.itu.int/oth/T0202000055/en</sourceUrl>
8671         <sourceUrl>http://en.wikipedia.org/wiki/%2B30</sourceUrl>
8672       </references>
8673       <availableFormats>
8674         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
8675           <leadingDigits>
8676             21|
8677             7
8678           </leadingDigits>
8679           <format>$1 $2 $3</format>
8680         </numberFormat>
8681         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
8682           <leadingDigits>
8683             2[2-9]1|
8684             [689]
8685           </leadingDigits>
8686           <format>$1 $2 $3</format>
8687         </numberFormat>
8688         <numberFormat pattern="(2\d{3})(\d{6})">
8689           <leadingDigits>2[2-9][02-9]</leadingDigits>
8690           <format>$1 $2</format>
8691         </numberFormat>
8692       </availableFormats>
8693       <generalDesc>
8694         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
8695         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8696       </generalDesc>
8697       <fixedLine>
8698         <nationalNumberPattern>
8699           2(?:
8700             1\d{2}|
8701             2(?:
8702               2[1-46-9]|
8703               3[1-8]|
8704               4[1-7]|
8705               5[1-4]|
8706               6[1-8]|
8707               7[1-5]|
8708               [89][1-9]
8709             )|
8710             3(?:
8711               1\d|
8712               2[1-57]|
8713               [35][1-3]|
8714               4[13]|
8715               7[1-7]|
8716               8[124-6]|
8717               9[1-79]
8718             )|
8719             4(?:
8720               1\d|
8721               2[1-8]|
8722               3[1-4]|
8723               4[13-5]|
8724               6[1-578]|
8725               9[1-5]
8726             )|
8727             5(?:
8728               1\d|
8729               [29][1-4]|
8730               3[1-5]|
8731               4[124]|
8732               5[1-6]
8733             )|
8734             6(?:
8735               1\d|
8736               3[1245]|
8737               4[1-7]|
8738               5[13-9]|
8739               [269][1-6]|
8740               7[14]|
8741               8[1-5]
8742             )|
8743             7(?:
8744               1\d|
8745               2[1-5]|
8746               3[1-6]|
8747               4[1-7]|
8748               5[1-57]|
8749               6[135]|
8750               9[125-7]
8751             )|
8752             8(?:
8753               1\d|
8754               2[1-5]|
8755               [34][1-4]|
8756               9[1-57]
8757             )
8758           )\d{6}
8759         </nationalNumberPattern>
8760         <exampleNumber>2123456789</exampleNumber>
8761       </fixedLine>
8762       <mobile>
8763         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
8764         <exampleNumber>6912345678</exampleNumber>
8765       </mobile>
8766       <tollFree>
8767         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
8768         <exampleNumber>8001234567</exampleNumber>
8769       </tollFree>
8770       <premiumRate>
8771         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
8772         <exampleNumber>9091234567</exampleNumber>
8773       </premiumRate>
8774       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
8775            rate. -->
8776       <sharedCost>
8777         <nationalNumberPattern>
8778           8(?:
8779             0[16]|
8780             12|
8781             25
8782           )\d{7}
8783         </nationalNumberPattern>
8784         <exampleNumber>8011234567</exampleNumber>
8785       </sharedCost>
8786       <personalNumber>
8787         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8788         <exampleNumber>7012345678</exampleNumber>
8789       </personalNumber>
8790     </territory>
8791
8792     <!-- Guatemala -->
8793     <territory id="GT" countryCode="502" internationalPrefix="00">
8794       <references>
8795         <sourceUrl>http://www.itu.int/oth/T020200005A/en</sourceUrl>
8796         <sourceUrl>http://www.sit.gob.gt/index.php?page=plan-de-numeracion</sourceUrl>
8797         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala</sourceUrl>
8798       </references>
8799       <availableFormats>
8800         <numberFormat pattern="(\d{4})(\d{4})">
8801           <leadingDigits>[2-7]</leadingDigits>
8802           <format>$1 $2</format>
8803         </numberFormat>
8804         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
8805           <leadingDigits>1</leadingDigits>
8806           <format>$1 $2 $3</format>
8807         </numberFormat>
8808       </availableFormats>
8809       <generalDesc>
8810         <nationalNumberPattern>
8811           [2-7]\d{7}|
8812           1[89]\d{9}
8813         </nationalNumberPattern>
8814         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
8815       </generalDesc>
8816       <fixedLine>
8817         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
8818         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8819         <exampleNumber>22456789</exampleNumber>
8820       </fixedLine>
8821       <mobile>
8822         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
8823              they are just reserved. -->
8824         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
8825         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8826         <exampleNumber>51234567</exampleNumber>
8827       </mobile>
8828       <tollFree>
8829         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
8830         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8831         <exampleNumber>18001112222</exampleNumber>
8832       </tollFree>
8833       <premiumRate>
8834         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
8835         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8836         <exampleNumber>19001112222</exampleNumber>
8837       </premiumRate>
8838     </territory>
8839
8840     <!-- Guam -->
8841     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
8842                internationalPrefix="011">
8843       <references>
8844         <sourceUrl>http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel</sourceUrl>
8845       </references>
8846       <generalDesc>
8847         <!-- NANPA country - uses US formatting rules -->
8848         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
8849         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8850       </generalDesc>
8851       <fixedLine>
8852         <!-- Added 671 489/555/720/721 based on information from
8853              http://www.area-codes.com/area-code/area-code-671.asp -->
8854         <nationalNumberPattern>
8855           671(?:
8856             3(?:
8857               00|
8858               3[39]|
8859               4[349]|
8860               55|
8861               6[26]
8862             )|
8863             4(?:
8864               56|
8865               7[1-9]|
8866               8[236-9]
8867             )|
8868             5(?:
8869               55|
8870               6[2-5]|
8871               88
8872             )|
8873             6(?:
8874               3[2-578]|
8875               4[24-9]|
8876               5[34]|
8877               78|
8878               8[5-9]
8879             )|
8880             7(?:
8881               [079]7|
8882               2[0167]|
8883               3[45]|
8884               8[789]
8885             )|
8886             8(?:
8887               [2-5789]8|
8888               6[48]
8889             )|
8890             9(?:
8891               2[29]|
8892               6[79]|
8893               7[179]|
8894               8[789]|
8895               9[78]
8896             )
8897           )\d{4}
8898         </nationalNumberPattern>
8899         <exampleNumber>6713001234</exampleNumber>
8900       </fixedLine>
8901       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
8902            -->
8903       <mobile>
8904         <nationalNumberPattern>
8905           671(?:
8906             3(?:
8907               00|
8908               3[39]|
8909               4[349]|
8910               55|
8911               6[26]
8912             )|
8913             4(?:
8914               56|
8915               7[1-9]|
8916               8[236-9]
8917             )|
8918             5(?:
8919               55|
8920               6[2-5]|
8921               88
8922             )|
8923             6(?:
8924               3[2-578]|
8925               4[24-9]|
8926               5[34]|
8927               78|
8928               8[5-9]
8929             )|
8930             7(?:
8931               [079]7|
8932               2[0167]|
8933               3[45]|
8934               8[789]
8935             )|
8936             8(?:
8937               [2-5789]8|
8938               6[48]
8939             )|
8940             9(?:
8941               2[29]|
8942               6[79]|
8943               7[179]|
8944               8[789]|
8945               9[78]
8946             )
8947           )\d{4}
8948         </nationalNumberPattern>
8949         <exampleNumber>6713001234</exampleNumber>
8950       </mobile>
8951       <tollFree>
8952         <nationalNumberPattern>
8953           8(?:
8954             00|
8955             44|
8956             55|
8957             66|
8958             77|
8959             88
8960           )[2-9]\d{6}
8961         </nationalNumberPattern>
8962         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8963         <exampleNumber>8002123456</exampleNumber>
8964       </tollFree>
8965       <premiumRate>
8966         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8967         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8968         <exampleNumber>9002123456</exampleNumber>
8969       </premiumRate>
8970       <personalNumber>
8971         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
8972         <nationalNumberPattern>
8973           5(?:
8974             00|
8975             33|
8976             44|
8977             66|
8978             77
8979           )[2-9]\d{6}
8980         </nationalNumberPattern>
8981         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8982         <exampleNumber>5002345678</exampleNumber>
8983       </personalNumber>
8984     </territory>
8985
8986     <!-- Guinea-Bissau -->
8987     <territory id="GW" countryCode="245" internationalPrefix="00">
8988       <references>
8989         <sourceUrl>http://www.itu.int/oth/T020200005C/en</sourceUrl>
8990       </references>
8991       <availableFormats>
8992         <numberFormat pattern="(\d{3})(\d{4})">
8993           <format>$1 $2</format>
8994         </numberFormat>
8995       </availableFormats>
8996       <generalDesc>
8997         <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
8998         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8999       </generalDesc>
9000       <fixedLine>
9001         <nationalNumberPattern>
9002           3(?:
9003             2[0125]|
9004             3[1245]|
9005             4[12]|
9006             5[1-4]|
9007             70|
9008             9[1-467]
9009           )\d{4}
9010         </nationalNumberPattern>
9011         <exampleNumber>3201234</exampleNumber>
9012       </fixedLine>
9013       <mobile>
9014         <nationalNumberPattern>
9015           (?:
9016             [5-7]\d|
9017             9[012]
9018           )\d{5}
9019         </nationalNumberPattern>
9020         <exampleNumber>5012345</exampleNumber>
9021       </mobile>
9022       <voip>
9023         <nationalNumberPattern>40\d{5}</nationalNumberPattern>
9024         <exampleNumber>4012345</exampleNumber>
9025       </voip>
9026     </territory>
9027
9028     <!-- Guyana -->
9029     <territory id="GY" countryCode="592" internationalPrefix="001">
9030       <references>
9031         <sourceUrl>http://www.itu.int/oth/T020200005D/en</sourceUrl>
9032       </references>
9033       <availableFormats>
9034         <numberFormat pattern="(\d{3})(\d{4})">
9035           <format>$1 $2</format>
9036         </numberFormat>
9037       </availableFormats>
9038       <generalDesc>
9039         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
9040         <possibleNumberPattern>\d{7}</possibleNumberPattern>
9041       </generalDesc>
9042       <fixedLine>
9043         <nationalNumberPattern>
9044           (?:
9045             2(?:
9046               1[6-9]|
9047               2[0-35-9]|
9048               3[1-4]|
9049               5[3-9]|
9050               6\d|
9051               7[0-24-79]
9052             )|
9053             3(?:
9054               2[25-9]|
9055               3\d
9056             )|
9057             4(?:
9058               4[0-24]|
9059               5[56]
9060             )|
9061             77[1-57]
9062           )\d{4}
9063         </nationalNumberPattern>
9064         <exampleNumber>2201234</exampleNumber>
9065       </fixedLine>
9066       <mobile>
9067         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
9068              that SMS messages have been succesfully sent to numbers in the entire range prefixed
9069              with 6. -->
9070         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
9071         <exampleNumber>6091234</exampleNumber>
9072       </mobile>
9073       <tollFree>
9074         <nationalNumberPattern>
9075           (?:
9076             289|
9077             862
9078           )\d{4}
9079         </nationalNumberPattern>
9080         <exampleNumber>2891234</exampleNumber>
9081       </tollFree>
9082       <premiumRate>
9083         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
9084         <exampleNumber>9008123</exampleNumber>
9085       </premiumRate>
9086     </territory>
9087
9088     <!-- Hong Kong -->
9089     <territory id="HK" countryCode="852" internationalPrefix="00" mobileNumberPortableRegion="true">
9090       <references>
9091         <sourceUrl>http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html</sourceUrl>
9092       </references>
9093       <availableFormats>
9094         <numberFormat pattern="(\d{4})(\d{4})">
9095           <leadingDigits>
9096             [235-7]|
9097             [89](?:
9098               0[1-9]|
9099               [1-9]
9100             )
9101           </leadingDigits>
9102           <format>$1 $2</format>
9103         </numberFormat>
9104         <numberFormat pattern="(800)(\d{3})(\d{3})">
9105           <leadingDigits>800</leadingDigits>
9106           <format>$1 $2 $3</format>
9107         </numberFormat>
9108         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
9109           <leadingDigits>900</leadingDigits>
9110           <format>$1 $2 $3 $4</format>
9111         </numberFormat>
9112         <numberFormat pattern="(900)(\d{2,5})">
9113           <leadingDigits>900</leadingDigits>
9114           <format>$1 $2</format>
9115         </numberFormat>
9116       </availableFormats>
9117       <generalDesc>
9118         <!-- Slightly more complex pattern to allow the country code to be stripped off if
9119              necessary. -->
9120         <nationalNumberPattern>
9121           [235-7]\d{7}|
9122           8\d{7,8}|
9123           9\d{4,10}
9124         </nationalNumberPattern>
9125         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9126       </generalDesc>
9127       <fixedLine>
9128         <nationalNumberPattern>
9129           (?:
9130             [23]\d|
9131             5[78]
9132           )\d{6}
9133         </nationalNumberPattern>
9134         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9135         <exampleNumber>21234567</exampleNumber>
9136       </fixedLine>
9137       <mobile>
9138         <nationalNumberPattern>
9139           (?:
9140             5[1-69]\d|
9141             6\d{2}|
9142             9(?:
9143               0[1-9]|
9144               [1-8]\d
9145             )
9146           )\d{5}
9147         </nationalNumberPattern>
9148         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9149         <exampleNumber>51234567</exampleNumber>
9150       </mobile>
9151       <pager>
9152         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
9153         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9154         <exampleNumber>71234567</exampleNumber>
9155       </pager>
9156       <tollFree>
9157         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
9158         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9159         <exampleNumber>800123456</exampleNumber>
9160       </tollFree>
9161       <premiumRate>
9162         <nationalNumberPattern>
9163           900(?:
9164             [0-24-9]\d{7}|
9165             3\d{1,4}
9166           )
9167         </nationalNumberPattern>
9168         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9169         <exampleNumber>90012345678</exampleNumber>
9170       </premiumRate>
9171       <personalNumber>
9172         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
9173         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9174         <exampleNumber>81123456</exampleNumber>
9175       </personalNumber>
9176    </territory>
9177
9178     <!-- Honduras -->
9179     <!-- It seems there is no longer a trunk prefix in use, based on websites like
9180          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
9181          national format. -->
9182     <territory id="HN" countryCode="504" internationalPrefix="00" >
9183       <references>
9184         <sourceUrl>http://www.itu.int/oth/T020200005F/en</sourceUrl>
9185       </references>
9186       <availableFormats>
9187        <numberFormat pattern="(\d{4})(\d{4})">
9188          <format>$1-$2</format>
9189        </numberFormat>
9190       </availableFormats>
9191       <generalDesc>
9192         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
9193         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9194       </generalDesc>
9195       <fixedLine>
9196         <!-- Extra prefixes 227[01389], 228X, 2292 & 260X were added from numbers found online. -->
9197         <nationalNumberPattern>
9198           2(?:
9199             2(?:
9200               0[019]|
9201               1[1-36]|
9202               [23]\d|
9203               4[056]|
9204               5[57]|
9205               7[01389]|
9206               8[0146-9]|
9207               9[012]
9208             )|
9209             4(?:
9210               2[3-59]|
9211               3[13-689]|
9212               4[0-68]|
9213               5[1-35]
9214             )|
9215             5(?:
9216               4[3-5]|
9217               5\d|
9218               6[56]|
9219               74
9220             )|
9221             6(?:
9222               [056]\d|
9223               4[0-378]|
9224               [78][0-8]|
9225               9[01]
9226             )|
9227             7(?:
9228               6[46-9]|
9229               7[02-9]|
9230               8[34]
9231             )|
9232             8(?:
9233               79|
9234               8[0-35789]|
9235               9[1-57-9]
9236             )
9237           )\d{4}
9238         </nationalNumberPattern>
9239         <exampleNumber>22123456</exampleNumber>
9240       </fixedLine>
9241       <mobile>
9242         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
9243         <exampleNumber>91234567</exampleNumber>
9244       </mobile>
9245     </territory>
9246
9247     <!-- Croatia -->
9248     <territory id="HR" countryCode="385" internationalPrefix="00"
9249                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
9250                mobileNumberPortableRegion="true">
9251       <references>
9252         <sourceUrl>http://www.itu.int/oth/T0202000032/en</sourceUrl>
9253         <sourceUrl>http://en.wikipedia.org/wiki/%2B385</sourceUrl>
9254       </references>
9255       <availableFormats>
9256         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
9257              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
9258              XXXX as well. -->
9259        <numberFormat pattern="(1)(\d{4})(\d{3})">
9260          <leadingDigits>1</leadingDigits>
9261          <format>$1 $2 $3</format>
9262        </numberFormat>
9263        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
9264          <leadingDigits>6[09]</leadingDigits>
9265          <format>$1 $2 $3</format>
9266        </numberFormat>
9267        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
9268          <leadingDigits>62</leadingDigits>
9269          <format>$1 $2 $3</format>
9270        </numberFormat>
9271        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
9272          <leadingDigits>[2-5]</leadingDigits>
9273           <format>$1 $2 $3</format>
9274         </numberFormat>
9275         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
9276           <leadingDigits>9</leadingDigits>
9277           <format>$1 $2 $3</format>
9278         </numberFormat>
9279         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
9280           <leadingDigits>9</leadingDigits>
9281           <format>$1 $2 $3</format>
9282         </numberFormat>
9283         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
9284           <leadingDigits>9</leadingDigits>
9285           <format>$1 $2 $3 $4</format>
9286         </numberFormat>
9287         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
9288           <leadingDigits>
9289             6[145]|
9290             7
9291           </leadingDigits>
9292           <format>$1 $2 $3</format>
9293         </numberFormat>
9294         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
9295           <leadingDigits>
9296             6[145]|
9297             7
9298           </leadingDigits>
9299           <format>$1 $2 $3</format>
9300         </numberFormat>
9301         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
9302           <leadingDigits>8</leadingDigits>
9303           <format>$1 $2 $3</format>
9304         </numberFormat>
9305         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
9306           <leadingDigits>8</leadingDigits>
9307           <format>$1 $2 $3</format>
9308         </numberFormat>
9309       </availableFormats>
9310       <generalDesc>
9311         <nationalNumberPattern>
9312           [1-7]\d{5,8}|
9313           [89]\d{6,11}
9314         </nationalNumberPattern>
9315         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
9316       </generalDesc>
9317       <fixedLine>
9318         <nationalNumberPattern>
9319           1\d{7}|
9320           (?:
9321             2[0-3]|
9322             3[1-5]|
9323             4[02-47-9]|
9324             5[1-3]
9325           )\d{6}
9326         </nationalNumberPattern>
9327         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
9328         <exampleNumber>12345678</exampleNumber>
9329       </fixedLine>
9330       <uan>
9331         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
9332              are numbers on the internet with 6 or 7 digits after the prefix. -->
9333         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
9334         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
9335         <exampleNumber>62123456</exampleNumber>
9336       </uan>
9337       <mobile>
9338         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
9339         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
9340         <exampleNumber>912345678</exampleNumber>
9341       </mobile>
9342       <tollFree>
9343         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
9344         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9345         <exampleNumber>8001234567</exampleNumber>
9346       </tollFree>
9347       <premiumRate>
9348         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
9349              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
9350              -->
9351         <nationalNumberPattern>
9352           6(?:
9353             [09]\d{7}|
9354             [145]\d{4,7}
9355           )
9356         </nationalNumberPattern>
9357         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9358         <exampleNumber>611234</exampleNumber>
9359       </premiumRate>
9360       <personalNumber>
9361         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
9362         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9363         <exampleNumber>741234567</exampleNumber>
9364       </personalNumber>
9365     </territory>
9366
9367     <!-- Haiti -->
9368     <territory id="HT" countryCode="509" internationalPrefix="00">
9369       <references>
9370         <sourceUrl>http://www.itu.int/oth/T020200005E/en</sourceUrl>
9371         <sourceUrl>http://www.numberingplans.com/</sourceUrl>
9372       </references>
9373       <availableFormats>
9374         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
9375           <format>$1 $2 $3</format>
9376         </numberFormat>
9377       </availableFormats>
9378       <generalDesc>
9379         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9380         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9381       </generalDesc>
9382       <fixedLine>
9383         <!-- The prefix 24 seems to be also used, based on online searches. -->
9384         <nationalNumberPattern>
9385           2(?:
9386             [24]\d|
9387             5[1-5]|
9388             94
9389           )\d{5}
9390         </nationalNumberPattern>
9391         <exampleNumber>22453300</exampleNumber>
9392       </fixedLine>
9393       <mobile>
9394         <!-- The prefix 31 seems to be also used, based on online searches. -->
9395         <nationalNumberPattern>
9396           (?:
9397             3[1-9]|
9398             4\d
9399           )\d{6}
9400         </nationalNumberPattern>
9401         <exampleNumber>34101234</exampleNumber>
9402       </mobile>
9403       <tollFree>
9404         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
9405              without making any further distinction. However, http://www.numberingplans.com/ seems
9406              to suggest they are free. -->
9407         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
9408         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9409         <exampleNumber>80012345</exampleNumber>
9410       </tollFree>
9411       <voip>
9412         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
9413              98[89]\d{5}. -->
9414         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
9415         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9416         <exampleNumber>98901234</exampleNumber>
9417       </voip>
9418     </territory>
9419
9420     <!-- Hungary -->
9421     <territory id="HU" countryCode="36" internationalPrefix="00"
9422                nationalPrefix="06" nationalPrefixFormattingRule="($FG)"
9423                mobileNumberPortableRegion="true">
9424       <references>
9425         <sourceUrl>http://www.itu.int/oth/T0202000061/en</sourceUrl>
9426       </references>
9427       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
9428            by a Hungarian person and following the yellow pages) is to omit this when formatting.
9429            Yellow pages: http://www.aranyoldalak.hu -->
9430       <availableFormats>
9431         <numberFormat pattern="(1)(\d{3})(\d{4})">
9432           <leadingDigits>1</leadingDigits>
9433           <format>$1 $2 $3</format>
9434         </numberFormat>
9435         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9436           <leadingDigits>[2-9]</leadingDigits>
9437           <format>$1 $2 $3</format>
9438         </numberFormat>
9439       </availableFormats>
9440       <generalDesc>
9441         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
9442         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9443       </generalDesc>
9444       <noInternationalDialling>
9445         <nationalNumberPattern>[48]0\d{6}</nationalNumberPattern>
9446         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9447         <exampleNumber>80123456</exampleNumber>
9448       </noInternationalDialling>
9449       <fixedLine>
9450         <!-- Includes numbers for corporate networks. -->
9451         <nationalNumberPattern>
9452           (?:
9453             1\d|
9454             2(?:
9455               1\d|
9456               [2-9]
9457             )|
9458             3[2-7]|
9459             4[24-9]|
9460             5[2-79]|
9461             6[23689]|
9462             7(?:
9463               1\d|
9464               [2-9]
9465             )|
9466             8[2-57-9]|
9467             9[2-69]
9468           )\d{6}
9469         </nationalNumberPattern>
9470         <exampleNumber>12345678</exampleNumber>
9471       </fixedLine>
9472       <mobile>
9473         <nationalNumberPattern>
9474           (?:
9475             [27]0|
9476             3[01]
9477           )\d{7}
9478         </nationalNumberPattern>
9479         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9480         <exampleNumber>201234567</exampleNumber>
9481       </mobile>
9482       <tollFree>
9483         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
9484         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9485         <exampleNumber>80123456</exampleNumber>
9486       </tollFree>
9487       <premiumRate>
9488         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
9489         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9490         <exampleNumber>90123456</exampleNumber>
9491       </premiumRate>
9492       <sharedCost>
9493         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
9494         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9495         <exampleNumber>40123456</exampleNumber>
9496       </sharedCost>
9497     </territory>
9498
9499     <!-- Indonesia -->
9500     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
9501                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9502       <references>
9503         <!-- From 2001, very out of date. -->
9504         <sourceUrl>http://www.itu.int/oth/T0202000064/en</sourceUrl>
9505         <sourceUrl>http://en.wikipedia.org/wiki/%2B62</sourceUrl>
9506       </references>
9507       <availableFormats>
9508         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9509           pattern="(\d{2})(\d{5,8})">
9510           <leadingDigits>
9511             2[124]|
9512             [36]1
9513           </leadingDigits>
9514           <format>$1 $2</format>
9515         </numberFormat>
9516         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9517           pattern="(\d{3})(\d{5,8})">
9518           <leadingDigits>
9519             [4579]|
9520             2[035-9]|
9521             [36][02-9]
9522           </leadingDigits>
9523           <format>$1 $2</format>
9524         </numberFormat>
9525         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
9526           <leadingDigits>8[1-35-9]</leadingDigits>
9527           <format>$1-$2-$3</format>
9528         </numberFormat>
9529         <numberFormat pattern="(177)(\d{6,8})">
9530           <leadingDigits>1</leadingDigits>
9531           <format>$1 $2</format>
9532         </numberFormat>
9533         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
9534              that sometimes they are followed by less digits. -->
9535         <numberFormat pattern="(800)(\d{5,7})">
9536           <leadingDigits>800</leadingDigits>
9537           <format>$1 $2</format>
9538         </numberFormat>
9539         <numberFormat pattern="(80\d)(\d)(\d{3})(\d{3})">
9540           <leadingDigits>80[79]</leadingDigits>
9541           <format>$1 $2 $3 $4</format>
9542         </numberFormat>
9543       </availableFormats>
9544       <generalDesc>
9545         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
9546         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9547       </generalDesc>
9548       <fixedLine>
9549         <!-- Area codes taken from wikipedia, with missing ones added from
9550              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
9551              We also added 0770 after user feedback because it seems to be used on Bintan island.
9552              Where known, fixed mobile prefixes have been represented as Mobile. -->
9553         <!-- Very short (5/6 digit) local numbers in Jakarta seem to be special cases for various
9554              well known companies (Mc Donalds, KFC etc...). Some of these are listed in:
9555              http://cms.binus.edu/datapage/file/io/Spring2014SE/International_Student_Handbook_BINUS.pdf
9556              There seem to be numbers of this length for area code 22 as well based on numbers found
9557              online. -->
9558         <nationalNumberPattern>
9559           2(?:
9560             1(?:
9561               14\d{3}|
9562               [0-8]\d{6,7}|
9563               500\d{3}|
9564               9\d{6}
9565             )|
9566             2\d{6,8}|
9567             4\d{7,8}
9568           )|
9569           (?:
9570             2(?:
9571               [35][1-4]|
9572               6[0-8]|
9573               7[1-6]|
9574               8\d|
9575               9[1-8]
9576             )|
9577             3(?:
9578               1|
9579               2[1-578]|
9580               3[1-68]|
9581               4[1-3]|
9582               5[1-8]|
9583               6[1-3568]|
9584               7[0-46]|
9585               8\d
9586             )|
9587             4(?:
9588               0[1-589]|
9589               1[01347-9]|
9590               2[0-36-8]|
9591               3[0-24-68]|
9592               5[1-378]|
9593               6[1-5]|
9594               7[134]|
9595               8[1245]
9596             )|
9597             5(?:
9598               1[1-35-9]|
9599               2[25-8]|
9600               3[1246-9]|
9601               4[1-3589]|
9602               5[1-46]|
9603               6[1-8]
9604             )|
9605             6(?:
9606               19?|
9607               [25]\d|
9608               3[1-469]|
9609               4[1-6]
9610             )|
9611             7(?:
9612               1[1-9]|
9613               2[14-9]|
9614               [36]\d|
9615               4[1-8]|
9616               5[1-9]|
9617               7[0-36-9]
9618             )|
9619             9(?:
9620               0[12]|
9621               1[013-8]|
9622               2[0-479]|
9623               5[125-8]|
9624               6[23679]|
9625               7[159]|
9626               8[01346]
9627             )
9628           )\d{5,8}
9629         </nationalNumberPattern>
9630         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9631         <exampleNumber>612345678</exampleNumber>
9632       </fixedLine>
9633       <mobile>
9634         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
9635              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
9636              are captured below. The pattern covers the area code plus the first one-two digits of
9637              the subscriber number. -->
9638         <nationalNumberPattern>
9639           (?:
9640             2(?:
9641               1(?:
9642                 3[145]|
9643                 4[01]|
9644                 5[1-469]|
9645                 60|
9646                 8[0359]|
9647                 9\d
9648               )|
9649               2(?:
9650                 88|
9651                 9[1256]
9652               )|
9653               3[1-4]9|
9654               4(?:
9655                 36|
9656                 91
9657               )|
9658               5(?:
9659                 1[349]|
9660                 [2-4]9
9661               )|
9662               6[0-7]9|
9663               7(?:
9664                 [1-36]9|
9665                 4[39]
9666               )|
9667               8[1-5]9|
9668               9[1-48]9
9669             )|
9670             3(?:
9671               19[1-3]|
9672               2[12]9|
9673               3[13]9|
9674               4(?:
9675                 1[69]|
9676                 39
9677               )|
9678               5[14]9|
9679               6(?:
9680                 1[69]|
9681                 2[89]
9682               )|
9683               709
9684             )|
9685             4[13]19|
9686             5(?:
9687               1(?:
9688                 19|
9689                 8[39]
9690               )|
9691               4[129]9|
9692               6[12]9
9693             )|
9694             6(?:
9695               19[12]|
9696               2(?:
9697                 [23]9|
9698                 77
9699               )
9700             )|
9701             7(?:
9702               1[13]9|
9703               2[15]9|
9704               419|
9705               5(?:
9706                 1[89]|
9707                 29
9708               )|
9709               6[15]9|
9710               7[178]9
9711             )
9712           )\d{5,6}|
9713           8[1-35-9]\d{7,9}
9714         </nationalNumberPattern>
9715         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
9716         <exampleNumber>812345678</exampleNumber>
9717       </mobile>
9718       <tollFree>
9719         <nationalNumberPattern>
9720           177\d{6,8}|
9721           800\d{5,7}
9722         </nationalNumberPattern>
9723         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
9724         <exampleNumber>8001234567</exampleNumber>
9725       </tollFree>
9726       <uan>
9727         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9728         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9729         <exampleNumber>8071123456</exampleNumber>
9730       </uan>
9731       <noInternationalDialling>
9732         <nationalNumberPattern>8071\d{6}</nationalNumberPattern>
9733         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9734         <exampleNumber>8071123456</exampleNumber>
9735       </noInternationalDialling>
9736       <!-- The information below is provided by an Indonesian -->
9737       <premiumRate>
9738         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
9739         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9740         <exampleNumber>8091234567</exampleNumber>
9741       </premiumRate>
9742     </territory>
9743
9744     <!-- Ireland -->
9745     <territory id="IE" countryCode="353" internationalPrefix="00"
9746                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
9747                mobileNumberPortableRegion="true">
9748       <references>
9749         <sourceUrl>http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html</sourceUrl>
9750         <sourceUrl>http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf</sourceUrl>
9751       </references>
9752       <availableFormats>
9753         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
9754           <leadingDigits>1</leadingDigits>
9755           <format>$1 $2 $3</format>
9756         </numberFormat>
9757         <numberFormat pattern="(\d{2})(\d{5})">
9758           <leadingDigits>
9759             2[24-9]|
9760             47|
9761             58|
9762             6[237-9]|
9763             9[35-9]
9764           </leadingDigits>
9765           <format>$1 $2</format>
9766         </numberFormat>
9767         <numberFormat pattern="(\d{3})(\d{5})">
9768           <leadingDigits>
9769             40[24]|
9770             50[45]
9771           </leadingDigits>
9772           <format>$1 $2</format>
9773         </numberFormat>
9774         <numberFormat pattern="(48)(\d{4})(\d{4})">
9775           <leadingDigits>48</leadingDigits>
9776           <format>$1 $2 $3</format>
9777         </numberFormat>
9778         <numberFormat pattern="(818)(\d{3})(\d{3})">
9779           <leadingDigits>81</leadingDigits>
9780           <format>$1 $2 $3</format>
9781         </numberFormat>
9782         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9783           <leadingDigits>
9784             [24-69]|
9785             7[14]
9786           </leadingDigits>
9787           <format>$1 $2 $3</format>
9788         </numberFormat>
9789         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9790           pattern="([78]\d)(\d{3,4})(\d{4})">
9791           <leadingDigits>
9792             76|
9793             8[35-9]
9794           </leadingDigits>
9795           <format>$1 $2 $3</format>
9796         </numberFormat>
9797         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9798           pattern="(700)(\d{3})(\d{3})">
9799           <leadingDigits>70</leadingDigits>
9800           <format>$1 $2 $3</format>
9801         </numberFormat>
9802         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
9803           <leadingDigits>
9804             1(?:
9805               8[059]|
9806               5
9807             )
9808           </leadingDigits>
9809           <leadingDigits>
9810             1(?:
9811               8[059]0|
9812               5
9813             )
9814           </leadingDigits>
9815           <format>$1 $2 $3</format>
9816         </numberFormat>
9817       </availableFormats>
9818       <generalDesc>
9819         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
9820         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9821       </generalDesc>
9822       <noInternationalDialling>
9823         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9824         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9825         <exampleNumber>1850123456</exampleNumber>
9826       </noInternationalDialling>
9827       <fixedLine>
9828         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
9829              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
9830              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
9831              Ireland. We support these numbers here, although technically they are numbers for the
9832              UK. -->
9833         <nationalNumberPattern>
9834           1\d{7,8}|
9835           2(?:
9836             1\d{6,7}|
9837             3\d{7}|
9838             [24-9]\d{5}
9839           )|
9840           4(?:
9841             0[24]\d{5}|
9842             [1-469]\d{7}|
9843             5\d{6}|
9844             7\d{5}|
9845             8[0-46-9]\d{7}
9846           )|
9847           5(?:
9848             0[45]\d{5}|
9849             1\d{6}|
9850             [23679]\d{7}|
9851             8\d{5}
9852           )|
9853           6(?:
9854             1\d{6}|
9855             [237-9]\d{5}|
9856             [4-6]\d{7}
9857           )|
9858           7[14]\d{7}|
9859           9(?:
9860             1\d{6}|
9861             [04]\d{7}|
9862             [35-9]\d{5}
9863           )
9864         </nationalNumberPattern>
9865         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9866         <exampleNumber>2212345</exampleNumber>
9867       </fixedLine>
9868       <mobile>
9869         <nationalNumberPattern>
9870           8(?:
9871             22\d{6}|
9872             [35-9]\d{7}
9873           )
9874         </nationalNumberPattern>
9875         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9876         <exampleNumber>850123456</exampleNumber>
9877       </mobile>
9878       <tollFree>
9879         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
9880         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9881         <exampleNumber>1800123456</exampleNumber>
9882       </tollFree>
9883       <premiumRate>
9884         <nationalNumberPattern>
9885           15(?:
9886             1[2-8]|
9887             [2-8]0|
9888             9[089]
9889           )\d{6}
9890         </nationalNumberPattern>
9891         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9892         <exampleNumber>1520123456</exampleNumber>
9893       </premiumRate>
9894       <sharedCost>
9895         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9896         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9897         <exampleNumber>1850123456</exampleNumber>
9898       </sharedCost>
9899       <personalNumber>
9900         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
9901         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9902         <exampleNumber>700123456</exampleNumber>
9903       </personalNumber>
9904       <voip>
9905         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
9906         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9907         <exampleNumber>761234567</exampleNumber>
9908       </voip>
9909       <uan>
9910         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
9911         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9912         <exampleNumber>818123456</exampleNumber>
9913       </uan>
9914       <voicemail>
9915         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
9916         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9917         <exampleNumber>8501234567</exampleNumber>
9918       </voicemail>
9919     </territory>
9920
9921     <!-- Israel -->
9922     <!-- Formatting practice following wikipedia, and government sites. -->
9923     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
9924                nationalPrefix="0" nationalPrefixFormattingRule="$FG"
9925                mobileNumberPortableRegion="true">
9926       <references>
9927         <sourceUrl>http://www.itu.int/oth/T020200006A/en</sourceUrl>
9928         <sourceUrl>http://en.wikipedia.org/wiki/%2B972</sourceUrl>
9929         <!-- in Hebrew -->
9930         <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>
9931       </references>
9932       <availableFormats>
9933         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9934           pattern="([2-489])(\d{3})(\d{4})">
9935           <leadingDigits>[2-489]</leadingDigits>
9936           <format>$1-$2-$3</format>
9937         </numberFormat>
9938         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9939           pattern="([57]\d)(\d{3})(\d{4})">
9940           <leadingDigits>[57]</leadingDigits>
9941           <format>$1-$2-$3</format>
9942         </numberFormat>
9943         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
9944           <leadingDigits>1[7-9]</leadingDigits>
9945           <format>$1-$2-$3-$4</format>
9946         </numberFormat>
9947         <!-- The following number is for hospitals. -->
9948         <numberFormat pattern="(1255)(\d{3})">
9949           <leadingDigits>125</leadingDigits>
9950           <format>$1-$2</format>
9951         </numberFormat>
9952         <numberFormat pattern="(1200)(\d{3})(\d{3})">
9953           <leadingDigits>120</leadingDigits>
9954           <format>$1-$2-$3</format>
9955         </numberFormat>
9956         <numberFormat pattern="(1212)(\d{2})(\d{2})">
9957           <leadingDigits>121</leadingDigits>
9958           <format>$1-$2-$3</format>
9959         </numberFormat>
9960         <!-- The following is for voicemail access. -->
9961         <numberFormat pattern="(1599)(\d{6})">
9962           <leadingDigits>15</leadingDigits>
9963           <format>$1-$2</format>
9964         </numberFormat>
9965         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
9966              dialed with a star in front of the number. -->
9967         <numberFormat pattern="(\d{4})">
9968           <leadingDigits>[2-689]</leadingDigits>
9969           <format>*$1</format>
9970         </numberFormat>
9971       </availableFormats>
9972       <generalDesc >
9973         <nationalNumberPattern>
9974           [17]\d{6,9}|
9975           [2-589]\d{3}(?:\d{3,6})?|
9976           6\d{3}
9977         </nationalNumberPattern>
9978         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9979       </generalDesc>
9980       <noInternationalDialling>
9981         <nationalNumberPattern>
9982           1700\d{6}|
9983           [2-689]\d{3}
9984         </nationalNumberPattern>
9985         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
9986         <exampleNumber>1700123456</exampleNumber>
9987       </noInternationalDialling>
9988       <fixedLine>
9989         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9990         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
9991         <exampleNumber>21234567</exampleNumber>
9992       </fixedLine>
9993       <mobile>
9994         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
9995              sure wikipedia is accurate based on news coverage of the launch of these numbers. -->
9996         <nationalNumberPattern>
9997           5(?:
9998             [02347-9]\d{2}|
9999             5(?:
10000               01|
10001               2[23]|
10002               3[34]|
10003               4[45]|
10004               5[5689]|
10005               6[67]|
10006               7[78]|
10007               8[89]|
10008               9[7-9]
10009             )|
10010             6[2-9]\d
10011           )\d{5}
10012         </nationalNumberPattern>
10013         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10014         <exampleNumber>501234567</exampleNumber>
10015       </mobile>
10016       <tollFree>
10017         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
10018         <nationalNumberPattern>
10019           1(?:
10020             80[019]\d{3}|
10021             255
10022           )\d{3}
10023         </nationalNumberPattern>
10024         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
10025         <exampleNumber>1800123456</exampleNumber>
10026       </tollFree>
10027       <premiumRate>
10028           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
10029                However, no online numbers starting with these prefixes can be found, and this data
10030                is not found in any other source. -->
10031           <!-- 1200 and 1212 numbers are for televoting. -->
10032         <nationalNumberPattern>
10033           1(?:
10034             212|
10035             (?:
10036               9(?:
10037                 0[01]|
10038                 19
10039               )|
10040               200
10041             )\d{2}
10042           )\d{4}
10043         </nationalNumberPattern>
10044         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
10045         <exampleNumber>1919123456</exampleNumber>
10046       </premiumRate>
10047       <sharedCost>
10048         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
10049         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10050         <exampleNumber>1700123456</exampleNumber>
10051       </sharedCost>
10052       <voip>
10053         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
10054              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
10055              Dialing) numbers, that most people forward to VoIP numbers. -->
10056         <nationalNumberPattern>
10057           7(?:
10058             2[23]\d|
10059             3[237]\d|
10060             47\d|
10061             6(?:
10062               5\d|
10063               8[068]
10064             )|
10065             7\d{2}|
10066             8(?:
10067               33|
10068               55|
10069               77|
10070               81
10071             )
10072           )\d{5}
10073         </nationalNumberPattern>
10074         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10075         <exampleNumber>771234567</exampleNumber>
10076       </voip>
10077       <uan>
10078         <!-- 4-digit star numbers and 1-599 numbers. The latter are actually labelled "interactive
10079              voicemail" in the ITU document, but according to reports from businesses in Israel and
10080              the Hebrew version of the wikipedia page, these are actually a router for business
10081              calls, and incur a normal call cost on account of the caller. -->
10082         <nationalNumberPattern>
10083           [2-689]\d{3}|
10084           1599\d{6}
10085         </nationalNumberPattern>
10086         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
10087         <exampleNumber>1599123456</exampleNumber>
10088       </uan>
10089     </territory>
10090
10091     <!-- Isle of Man -->
10092     <!-- Inherits formatting rules from the UK. -->
10093     <territory id="IM" countryCode="44" internationalPrefix="00"
10094                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
10095       <references>
10096         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
10097       </references>
10098       <generalDesc>
10099         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
10100         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10101       </generalDesc>
10102       <areaCodeOptional>
10103         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
10104         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10105         <exampleNumber>1624250123</exampleNumber>
10106       </areaCodeOptional>
10107       <!-- Specific to IM. -->
10108       <fixedLine>
10109         <!-- 1624 with 10 digits. -->
10110         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
10111         <exampleNumber>1624456789</exampleNumber>
10112       </fixedLine>
10113       <mobile>
10114         <!-- 7524, 7624, 7924 with 10 digits. -->
10115         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
10116         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10117         <exampleNumber>7924123456</exampleNumber>
10118       </mobile>
10119       <tollFree>
10120         <!-- 808 162 with 10 digits. -->
10121         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
10122         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10123         <exampleNumber>8081624567</exampleNumber>
10124       </tollFree>
10125       <premiumRate>
10126         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
10127         <nationalNumberPattern>
10128           (?:
10129             872299|
10130             90[0167]624
10131           )\d{4}
10132         </nationalNumberPattern>
10133         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10134         <exampleNumber>9016247890</exampleNumber>
10135       </premiumRate>
10136       <sharedCost>
10137         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
10138         <nationalNumberPattern>
10139           8(?:
10140             4(?:
10141               40[49]06|
10142               5624\d
10143             )|
10144             70624\d
10145           )\d{3}
10146         </nationalNumberPattern>
10147         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10148         <exampleNumber>8456247890</exampleNumber>
10149       </sharedCost>
10150       <!-- Other numbers as per GB. -->
10151       <personalNumber>
10152         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
10153         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10154         <exampleNumber>7012345678</exampleNumber>
10155       </personalNumber>
10156       <voip>
10157         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
10158         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10159         <exampleNumber>5612345678</exampleNumber>
10160       </voip>
10161       <uan>
10162         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
10163         <nationalNumberPattern>
10164           3(?:
10165             08162\d|
10166             3\d{5}|
10167             4(?:
10168               40[49]06|
10169               5624\d
10170             )|
10171             7(?:
10172               0624\d|
10173               2299\d
10174             )
10175           )\d{3}|
10176           55\d{8}
10177         </nationalNumberPattern>
10178         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10179         <exampleNumber>5512345678</exampleNumber>
10180       </uan>
10181     </territory>
10182
10183     <!-- India -->
10184     <!-- Note that several changes in area codes have occurred since the numbering plan was released
10185          - fixed line changes are notified on the http://www.bsnl.co.in website. Area codes can be
10186          verified here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
10187     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
10188                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true"
10189                mobileNumberPortableRegion="true">
10190       <references>
10191         <sourceUrl>http://www.itu.int/oth/T0202000063/en</sourceUrl>
10192         <sourceUrl>http://en.wikipedia.org/wiki/%2B91</sourceUrl>
10193         <sourceUrl>http://www.coai.in/msccodes.php</sourceUrl>
10194       </references>
10195        <availableFormats>
10196          <!-- Mobile numbers. -->
10197          <numberFormat pattern="(\d{5})(\d{5})">
10198            <leadingDigits>
10199              7(?:
10200                0[2-9]|
10201                2[0579]|
10202                3[057-9]|
10203                4[0-389]|
10204                6[0-35-9]|
10205                [57]|
10206                8[0-79]
10207              )|
10208              8(?:
10209                0[015689]|
10210                1[0-57-9]|
10211                2[2356-9]|
10212                3[0-57-9]|
10213                [45]|
10214                6[02457-9]|
10215                7[1-69]|
10216                8[0124-9]|
10217                9[02-9]
10218              )|
10219              9
10220            </leadingDigits>
10221            <leadingDigits>
10222              7(?:
10223                0(?:
10224                  2[2-9]|
10225                  [3-8]|
10226                  9[0-8]
10227                )|
10228                2(?:
10229                  0[04-9]|
10230                  5[09]|
10231                  7[5-8]|
10232                  9[389]
10233                )|
10234                3(?:
10235                  0[1-9]|
10236                  [58]|
10237                  7[3679]|
10238                  9[689]
10239                )|
10240                4(?:
10241                  0[1-9]|
10242                  1[15-9]|
10243                  [29][89]|
10244                  39|
10245                  8[389]
10246                )|
10247                5(?:
10248                  [034678]|
10249                  2[03-9]|
10250                  5[017-9]|
10251                  9[7-9]
10252                )|
10253                6(?:
10254                  0[0-27]|
10255                  1[0-257-9]|
10256                  2[0-4]|
10257                  3[19]|
10258                  5[4589]|
10259                  [6-9]
10260                )|
10261                7(?:
10262                  0[2-9]|
10263                  [1-79]|
10264                  8[1-9]
10265                )|
10266                8(?:
10267                  [0-7]|
10268                  9[013-9]
10269                )
10270              )|
10271              8(?:
10272                0(?:
10273                  [01589]|
10274                  6[67]
10275                )|
10276                1(?:
10277                  [02-589]|
10278                  1[0135-9]|
10279                  7[0-79]
10280                )|
10281                2(?:
10282                  [236-9]|
10283                  5[1-9]
10284                )|
10285                3(?:
10286                  [0357-9]|
10287                  4[1-9]
10288                )|
10289                [45]|
10290                6[02457-9]|
10291                7[1-69]|
10292                8(?:
10293                  [0-26-9]|
10294                  44|
10295                  5[2-9]
10296                )|
10297                9(?:
10298                  [035-9]|
10299                  2[2-9]|
10300                  4[0-8]
10301                )
10302              )|
10303              9
10304            </leadingDigits>
10305            <format>$1 $2</format>
10306          </numberFormat>
10307          <!-- 2 digits area code -->
10308          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10309            <leadingDigits>
10310              11|
10311              2[02]|
10312              33|
10313              4[04]|
10314              79|
10315              80[2-46]
10316            </leadingDigits>
10317            <format>$1 $2 $3</format>
10318          </numberFormat>
10319          <!-- 3 digit area codes that don't clash with mobile patterns. -->
10320          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10321            <leadingDigits>
10322              1(?:
10323                2[0-249]|
10324                3[0-25]|
10325                4[145]|
10326                [569][14]|
10327                7[1257]|
10328                8[1346]|
10329                [68][1-9]
10330              )|
10331              2(?:
10332                1[257]|
10333                3[013]|
10334                4[01]|
10335                5[0137]|
10336                6[0158]|
10337                78|
10338                8[1568]|
10339                9[14]
10340              )|
10341              3(?:
10342                26|
10343                4[1-3]|
10344                5[34]|
10345                6[01489]|
10346                7[02-46]|
10347                8[159]
10348              )|
10349              4(?:
10350                1[36]|
10351                2[1-47]|
10352                3[15]|
10353                5[12]|
10354                6[0-26-9]|
10355                7[0-24-9]|
10356                8[013-57]|
10357                9[014-7]
10358              )|
10359              5(?:
10360                [136][25]|
10361                22|
10362                4[28]|
10363                5[12]|
10364                [78]1|
10365                9[15]
10366              )|
10367              6(?:
10368                12|
10369                [2345]1|
10370                57|
10371                6[13]|
10372                7[14]|
10373                80
10374              )
10375            </leadingDigits>
10376            <format>$1 $2 $3</format>
10377          </numberFormat>
10378          <!-- Three-digit area codes that potentially overlap with mobile. -->
10379          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10380            <leadingDigits>
10381              7(?:
10382                12|
10383                2[14]|
10384                3[134]|
10385                4[47]|
10386                5[15]|
10387                [67]1|
10388                88
10389              )
10390            </leadingDigits>
10391            <leadingDigits>
10392              7(?:
10393                12|
10394                2[14]|
10395                3[134]|
10396                4[47]|
10397                5(?:
10398                  1|
10399                  5[2-6]
10400                )|
10401                [67]1|
10402                88
10403              )
10404            </leadingDigits>
10405            <format>$1 $2 $3</format>
10406          </numberFormat>
10407          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10408            <leadingDigits>
10409              8(?:
10410                16|
10411                2[014]|
10412                3[126]|
10413                6[136]|
10414                7[078]|
10415                8[34]|
10416                91
10417              )
10418            </leadingDigits>
10419            <format>$1 $2 $3</format>
10420          </numberFormat>
10421          <!-- 4 digits area code -->
10422          <!-- Fallback for fixed-line numbers. -->
10423          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
10424            <leadingDigits>
10425              1(?:
10426                [23579]|
10427                [468][1-9]
10428              )|
10429              [2-8]
10430            </leadingDigits>
10431            <format>$1 $2 $3</format>
10432          </numberFormat>
10433          <numberFormat nationalPrefixFormattingRule="$FG"
10434            pattern="(1600)(\d{2})(\d{4})">
10435            <leadingDigits>160</leadingDigits>
10436            <leadingDigits>1600</leadingDigits>
10437            <format>$1 $2 $3</format>
10438          </numberFormat>
10439          <numberFormat nationalPrefixFormattingRule="$FG"
10440            pattern="(1800)(\d{4,5})">
10441            <leadingDigits>180</leadingDigits>
10442            <leadingDigits>1800</leadingDigits>
10443            <format>$1 $2</format>
10444          </numberFormat>
10445          <numberFormat nationalPrefixFormattingRule="$FG"
10446            pattern="(18[06]0)(\d{2,4})(\d{4})">
10447            <leadingDigits>18[06]</leadingDigits>
10448            <leadingDigits>18[06]0</leadingDigits>
10449            <format>$1 $2 $3</format>
10450          </numberFormat>
10451          <numberFormat nationalPrefixFormattingRule="$FG"
10452            pattern="(140)(\d{3})(\d{4})">
10453            <leadingDigits>140</leadingDigits>
10454            <format>$1 $2 $3</format>
10455          </numberFormat>
10456          <!-- Televoting numbers. Formatting information is from
10457               http://www.bsnl.co.in/service/telev.htm -->
10458          <numberFormat nationalPrefixFormattingRule="$FG"
10459            pattern="(\d{4})(\d{3})(\d{4})(\d{2})">
10460            <leadingDigits>18[06]</leadingDigits>
10461            <leadingDigits>
10462              18(?:
10463                03|
10464                6[12]
10465              )
10466            </leadingDigits>
10467            <format>$1 $2 $3 $4</format>
10468          </numberFormat>
10469       </availableFormats>
10470       <generalDesc>
10471         <nationalNumberPattern>
10472           1\d{7,12}|
10473           [2-9]\d{9,10}
10474         </nationalNumberPattern>
10475         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
10476       </generalDesc>
10477       <noInternationalDialling>
10478         <nationalNumberPattern>
10479           1(?:
10480             600\d{6}|
10481             8(?:
10482               0(?:
10483                 0\d{4,8}|
10484                 3\d{9}
10485               )|
10486               6(?:
10487                 0\d{7}|
10488                 [12]\d{9}
10489               )
10490             )
10491           )
10492         </nationalNumberPattern>
10493         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10494         <exampleNumber>1800123456</exampleNumber>
10495       </noInternationalDialling>
10496       <fixedLine>
10497         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
10498              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
10499              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
10500              Not all operator codes are available in all areas, but we don't maintain that
10501              distinction here.
10502              Area codes starting with a 7 are listed separately, since the prefixes need to be more
10503              detailed so they clash less with mobile phone prefixes. -->
10504         <nationalNumberPattern>
10505           (?:
10506             11|
10507             2[02]|
10508             33|
10509             4[04]|
10510             79
10511           )[2-7]\d{7}|
10512           80[2-467]\d{7}|
10513           (?:
10514             1(?:
10515               2[0-249]|
10516               3[0-25]|
10517               4[145]|
10518               [59][14]|
10519               6[014]|
10520               7[1257]|
10521               8[01346]
10522             )|
10523             2(?:
10524               1[257]|
10525               3[013]|
10526               4[01]|
10527               5[0137]|
10528               6[0158]|
10529               78|
10530               8[1568]|
10531               9[14]
10532             )|
10533             3(?:
10534               26|
10535               4[1-3]|
10536               5[34]|
10537               6[01489]|
10538               7[02-46]|
10539               8[159]
10540             )|
10541             4(?:
10542               1[36]|
10543               2[1-47]|
10544               3[15]|
10545               5[12]|
10546               6[0-26-9]|
10547               7[0-24-9]|
10548               8[013-57]|
10549               9[014-7]
10550             )|
10551             5(?:
10552               [136][25]|
10553               22|
10554               4[28]|
10555               5[12]|
10556               [78]1|
10557               9[15]
10558             )|
10559             6(?:
10560               12|
10561               [2345]1|
10562               57|
10563               6[13]|
10564               7[14]|
10565               80
10566             )|
10567             7(?:
10568               12|
10569               2[14]|
10570               3[134]|
10571               4[47]|
10572               5[15]|
10573               [67]1|
10574               88
10575             )|
10576             8(?:
10577               16|
10578               2[014]|
10579               3[126]|
10580               6[136]|
10581               7[078]|
10582               8[34]|
10583               91
10584             )
10585           )[2-7]\d{6}|
10586           (?:
10587             (?:
10588               1(?:
10589                 2[35-8]|
10590                 3[346-9]|
10591                 4[236-9]|
10592                 [59][0235-9]|
10593                 6[235-9]|
10594                 7[34689]|
10595                 8[257-9]
10596               )|
10597               2(?:
10598                 1[134689]|
10599                 3[24-8]|
10600                 4[2-8]|
10601                 5[25689]|
10602                 6[2-4679]|
10603                 7[13-79]|
10604                 8[2-479]|
10605                 9[235-9]
10606               )|
10607               3(?:
10608                 01|
10609                 1[79]|
10610                 2[1-5]|
10611                 4[25-8]|
10612                 5[125689]|
10613                 6[235-7]|
10614                 7[157-9]|
10615                 8[2-467]
10616               )|
10617               4(?:
10618                 1[14578]|
10619                 2[5689]|
10620                 3[2-467]|
10621                 5[4-7]|
10622                 6[35]|
10623                 73|
10624                 8[2689]|
10625                 9[2389]
10626               )|
10627               5(?:
10628                 [16][146-9]|
10629                 2[14-8]|
10630                 3[1346]|
10631                 4[14-69]|
10632                 5[46]|
10633                 7[2-4]|
10634                 8[2-8]|
10635                 9[246]
10636               )|
10637               6(?:
10638                 1[1358]|
10639                 2[2457]|
10640                 3[2-4]|
10641                 4[235-7]|
10642                 [57][2-689]|
10643                 6[24-578]|
10644                 8[1-6]
10645               )|
10646               8(?:
10647                 1[1357-9]|
10648                 2[235-8]|
10649                 3[03-57-9]|
10650                 4[0-24-9]|
10651                 5\d|
10652                 6[2457-9]|
10653                 7[1-6]|
10654                 8[1256]|
10655                 9[2-4]
10656               )
10657             )\d|
10658             7(?:
10659               (?:
10660                 1[013-9]|
10661                 2[0235-9]|
10662                 3[2679]|
10663                 4[1-35689]|
10664                 5[2-46-9]|
10665                 [67][02-9]|
10666                 9\d
10667               )\d|
10668               8(?:
10669                 2[0-6]|
10670                 [013-8]\d
10671               )
10672             )
10673           )[2-7]\d{5}
10674         </nationalNumberPattern>
10675         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10676         <exampleNumber>1123456789</exampleNumber>
10677       </fixedLine>
10678       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
10679       <!-- The document titled "List of MSC codes" linked off
10680            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
10681            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
10682       <mobile>
10683         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10684              codes list, are added because SMS messages have been successfully sent to these
10685              numbers. It seems almost impossible to know for some of these numbers whether they are
10686              land-line or mobile, since the ranges overlap. Extra prefixes added: 7601, 768[567],
10687              7695, 8299, 8309. New prefixes were also added based on the document provided from
10688              mobile carriers: https://github.com/googlei18n/libphonenumber/issues/260 -->
10689         <nationalNumberPattern>
10690           (?:
10691             7(?:
10692               0(?:
10693                 2[2-9]|
10694                 [3-8]\d|
10695                 9[0-8]
10696               )|
10697               2(?:
10698                 0[04-9]|
10699                 5[09]|
10700                 7[5-8]|
10701                 9[389]
10702               )|
10703               3(?:
10704                 0[1-9]|
10705                 [58]\d|
10706                 7[3679]|
10707                 9[689]
10708               )|
10709               4(?:
10710                 0[1-9]|
10711                 1[15-9]|
10712                 [29][89]|
10713                 39|
10714                 8[389]
10715               )|
10716               5(?:
10717                 [034678]\d|
10718                 2[03-9]|
10719                 5[017-9]|
10720                 9[7-9]
10721               )|
10722               6(?:
10723                 0[0127]|
10724                 1[0-257-9]|
10725                 2[0-4]|
10726                 3[19]|
10727                 5[4589]|
10728                 [6-9]\d
10729               )|
10730               7(?:
10731                 0[2-9]|
10732                 [1-79]\d|
10733                 8[1-9]
10734               )|
10735               8(?:
10736                 [0-7]\d|
10737                 9[013-9]
10738               )
10739             )|
10740             8(?:
10741               0(?:
10742                 [01589]\d|
10743                 6[67]
10744               )|
10745               1(?:
10746                 [02-589]\d|
10747                 1[0135-9]|
10748                 7[0-79]
10749               )|
10750               2(?:
10751                 [236-9]\d|
10752                 5[1-9]
10753               )|
10754               3(?:
10755                 [0357-9]\d|
10756                 4[1-9]
10757               )|
10758               [45]\d{2}|
10759               6[02457-9]\d|
10760               7[1-69]\d|
10761               8(?:
10762                 [0-26-9]\d|
10763                 44|
10764                 5[2-9]
10765               )|
10766               9(?:
10767                 [035-9]\d|
10768                 2[2-9]|
10769                 4[0-8]
10770               )
10771             )|
10772             9\d{3}
10773           )\d{6}
10774         </nationalNumberPattern>
10775         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10776         <exampleNumber>9123456789</exampleNumber>
10777       </mobile>
10778       <tollFree>
10779         <!-- Information gathered from sites such as
10780              http://www.surfindia.com/india-facts/toll-free-no.html and
10781              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
10782              http://www.bsnl.co.in/service/telev.htm -->
10783         <nationalNumberPattern>
10784           1(?:
10785             600\d{6}|
10786             80(?:
10787               0\d{4,8}|
10788               3\d{9}
10789             )
10790           )
10791         </nationalNumberPattern>
10792         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10793         <exampleNumber>1800123456</exampleNumber>
10794       </tollFree>
10795       <premiumRate>
10796         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
10797              because they overlap with mobile, and we haven't found any real numbers online. -->
10798         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
10799         <possibleNumberPattern>\d{13}</possibleNumberPattern>
10800         <exampleNumber>1861123456789</exampleNumber>
10801       </premiumRate>
10802       <sharedCost>
10803         <!-- While described as "universal numbers" in the numbering plan, evidence suggests
10804              that 1860 number are best described as shared cost. See "Call Local Service" in:
10805              http://www.tatadocomo.com/corporates/toll-free.aspx -->
10806         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
10807         <possibleNumberPattern>\d{11}</possibleNumberPattern>
10808         <exampleNumber>18603451234</exampleNumber>
10809       </sharedCost>
10810       <uan>
10811         <!-- Telemarketing numbers: http://en.wikipedia.org/wiki/Telephone_numbers_in_India -->
10812         <nationalNumberPattern>140\d{7}</nationalNumberPattern>
10813         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10814         <exampleNumber>1409305260</exampleNumber>
10815       </uan>
10816     </territory>
10817
10818     <!-- British Indian Ocean Territory / Diego Garcia -->
10819     <territory id="IO" countryCode="246" internationalPrefix="00">
10820       <references>
10821         <sourceUrl>http://www.itu.int/oth/T0202000039/en</sourceUrl>
10822       </references>
10823       <availableFormats>
10824         <numberFormat pattern="(\d{3})(\d{4})">
10825           <format>$1 $2</format>
10826         </numberFormat>
10827       </availableFormats>
10828       <generalDesc>
10829         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
10830         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10831       </generalDesc>
10832       <fixedLine>
10833         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
10834         <exampleNumber>3709100</exampleNumber>
10835       </fixedLine>
10836       <mobile>
10837         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
10838         <exampleNumber>3801234</exampleNumber>
10839       </mobile>
10840     </territory>
10841
10842     <!-- Iraq -->
10843     <territory id="IQ" countryCode="964" internationalPrefix="00"
10844                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10845       <references>
10846         <sourceUrl>http://en.wikipedia.org/wiki/%2B964</sourceUrl>
10847         <sourceUrl>http://wtng.info/wtng-964-ik.html</sourceUrl>
10848       </references>
10849       <availableFormats>
10850         <numberFormat pattern="(1)(\d{3})(\d{4})">
10851           <leadingDigits>1</leadingDigits>
10852           <format>$1 $2 $3</format>
10853         </numberFormat>
10854         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
10855           <leadingDigits>[2-6]</leadingDigits>
10856           <format>$1 $2 $3</format>
10857         </numberFormat>
10858         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
10859           <leadingDigits>7</leadingDigits>
10860           <format>$1 $2 $3</format>
10861         </numberFormat>
10862       </availableFormats>
10863       <generalDesc>
10864         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
10865         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10866       </generalDesc>
10867       <fixedLine>
10868         <nationalNumberPattern>
10869           1\d{7}|
10870           (?:
10871             2[13-5]|
10872             3[02367]|
10873             4[023]|
10874             5[03]|
10875             6[026]
10876           )\d{6,7}
10877         </nationalNumberPattern>
10878         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
10879         <exampleNumber>12345678</exampleNumber>
10880       </fixedLine>
10881       <mobile>
10882         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
10883         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10884         <exampleNumber>7912345678</exampleNumber>
10885       </mobile>
10886       <!-- No tollFree or premiumRate information can be found. -->
10887     </territory>
10888
10889     <!-- Iran, Islamic Republic of -->
10890     <territory id="IR" countryCode="98" internationalPrefix="00"
10891                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10892       <references>
10893         <sourceUrl>http://en.wikipedia.org/wiki/%2B98</sourceUrl>
10894         <sourceUrl>http://www.itu.int/oth/T0202000066/en</sourceUrl>
10895         <sourceUrl>http://www.tct.ir/?siteid=1&amp;pageid=195</sourceUrl>
10896         <sourceUrl>http://118.tct.ir/citycode.htm</sourceUrl>
10897       </references>
10898       <availableFormats>
10899         <!-- Formatting follows wikipedia. -->
10900         <numberFormat pattern="(21)(\d{3,5})">
10901           <leadingDigits>21</leadingDigits>
10902           <format>$1 $2</format>
10903         </numberFormat>
10904         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10905           <leadingDigits>[1-8]</leadingDigits>
10906           <format>$1 $2 $3</format>
10907         </numberFormat>
10908         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
10909           <leadingDigits>9</leadingDigits>
10910           <format>$1 $2 $3</format>
10911         </numberFormat>
10912         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
10913           <leadingDigits>9</leadingDigits>
10914           <format>$1 $2 $3</format>
10915         </numberFormat>
10916         <numberFormat pattern="(\d{3})(\d{3})">
10917           <leadingDigits>9</leadingDigits>
10918           <format>$1 $2</format>
10919         </numberFormat>
10920       </availableFormats>
10921       <generalDesc>
10922         <nationalNumberPattern>
10923           [1-8]\d{9}|
10924           9(?:
10925             [0-4]\d{8}|
10926             9\d{2,8}
10927           )
10928         </nationalNumberPattern>
10929         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10930       </generalDesc>
10931       <fixedLine>
10932         <!-- In Summer 2014 Iran unified all fixed phone numbers in the following way:
10933              Each province is assigned a two digit prefix (except for North Khorasan which has 3).
10934              Within each province, all numbers are exactly eight digits.  The expression below is
10935              organized by province.  For each province we accept all eight-digit combinations.
10936
10937              11 Mazandaran
10938              13 Gilan
10939              17 Golestan
10940              21 Tehran
10941              23 Semnan
10942              24 Zanjan
10943              25 Qom
10944              26 Alborz
10945              28 Qazvin
10946              31 Isfahan
10947              34 Kerman
10948              35 Yazd
10949              38 Chahar Mahaal and Bakhtiari
10950              41 East Azerbaijan
10951              44 West Azerbaijan
10952              45 Ardabil
10953              51 Razavi Khorasan
10954              54 Sistan and Baluchestan
10955              56 South Khorasan
10956              57 North Khorasan (Extras)
10957              58 North Khorasan
10958              61 Khuzestan
10959              64 North Khorasan (Extras)
10960              66 Lorestan
10961              71 Fars
10962              74 Kohgiluyeh and Boyer-Ahmad
10963              76 Hormozgan
10964              77 Bushehr
10965              81 Hamadan
10966              83 Kermanshah
10967              84 Ilam
10968              86 Markazi
10969              87 Kurdistan
10970              -->
10971         <nationalNumberPattern>
10972           (?:
10973             1[137]|
10974             2[13-68]|
10975             3[1458]|
10976             4[145]|
10977             5[146-8]|
10978             6[146]|
10979             7[1467]|
10980             8[13467]
10981           )\d{8}
10982         </nationalNumberPattern>
10983         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10984         <exampleNumber>2123456789</exampleNumber>
10985       </fixedLine>
10986       <mobile>
10987         <nationalNumberPattern>
10988           9(?:
10989             0[12]|
10990             [1-3]\d
10991           )\d{7}
10992         </nationalNumberPattern>
10993         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10994         <exampleNumber>9123456789</exampleNumber>
10995       </mobile>
10996       <pager>
10997         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
10998         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10999         <exampleNumber>9432123456</exampleNumber>
11000       </pager>
11001       <!-- No tollFree or premiumRate information can be found. -->
11002       <voip>
11003         <!-- Includes VSAT and Boomehen Satellite numbers. -->
11004         <nationalNumberPattern>
11005           (?:
11006             [2-6]0\d|
11007             993
11008           )\d{7}
11009         </nationalNumberPattern>
11010         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11011         <exampleNumber>9932123456</exampleNumber>
11012       </voip>
11013       <uan>
11014         <!-- MCI Public Relations numbers -->
11015         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
11016         <exampleNumber>9990123456</exampleNumber>
11017       </uan>
11018     </territory>
11019
11020     <!-- Iceland -->
11021     <territory id="IS" countryCode="354" internationalPrefix="00" mobileNumberPortableRegion="true">
11022       <references>
11023         <sourceUrl>http://www.pta.is/default.aspx?cat_id=85</sourceUrl>
11024         <sourceUrl>http://www.pfs.is/default.aspx?cat_id=14&amp;module_id=210&amp;element_id=4</sourceUrl>
11025       </references>
11026       <availableFormats>
11027         <numberFormat pattern="(\d{3})(\d{4})">
11028           <leadingDigits>[4-9]</leadingDigits>
11029           <format>$1 $2</format>
11030         </numberFormat>
11031         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
11032           <leadingDigits>3</leadingDigits>
11033           <format>$1 $2 $3</format>
11034         </numberFormat>
11035       </availableFormats>
11036       <generalDesc>
11037         <nationalNumberPattern>
11038           [4-9]\d{6}|
11039           38\d{7}
11040         </nationalNumberPattern>
11041         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11042       </generalDesc>
11043       <fixedLine>
11044         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
11045         <nationalNumberPattern>
11046           (?:
11047             4(?:
11048               1[0-24-6]|
11049               2[0-7]|
11050               [37][0-8]|
11051               4[0-245]|
11052               5[0-3568]|
11053               6\d|
11054               8[0-36-8]
11055             )|
11056             5(?:
11057               05|
11058               [156]\d|
11059               2[02578]|
11060               3[013-7]|
11061               4[03-7]|
11062               7[0-2578]|
11063               8[0-35-9]|
11064               9[013-689]
11065             )|
11066             87[23]
11067           )\d{4}
11068         </nationalNumberPattern>
11069         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11070         <exampleNumber>4101234</exampleNumber>
11071       </fixedLine>
11072       <mobile>
11073         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
11074         <nationalNumberPattern>
11075           38[589]\d{6}|
11076           (?:
11077             6(?:
11078               1[1-8]|
11079               3[089]|
11080               4[0167]|
11081               5[019]|
11082               [67][0-69]|
11083               9\d
11084             )|
11085             7(?:
11086               5[057]|
11087               7\d|
11088               8[0-36-8]
11089             )|
11090             8(?:
11091               2[0-5]|
11092               3[0-4]|
11093               [469]\d|
11094               5[1-9]
11095             )
11096           )\d{4}
11097         </nationalNumberPattern>
11098         <exampleNumber>6111234</exampleNumber>
11099       </mobile>
11100       <tollFree>
11101         <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
11102              numbers can be found online, and it is not clear what these are; the standard
11103              definition would have them under the +800 country code instead of Iceland. -->
11104         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
11105         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11106         <exampleNumber>8001234</exampleNumber>
11107       </tollFree>
11108       <premiumRate>
11109         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
11110         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11111         <exampleNumber>9011234</exampleNumber>
11112       </premiumRate>
11113       <voip>
11114         <nationalNumberPattern>49\d{5}</nationalNumberPattern>
11115         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11116         <exampleNumber>4921234</exampleNumber>
11117       </voip>
11118       <voicemail>
11119         <nationalNumberPattern>
11120           (?:
11121             6(?:
11122               2[0-8]|
11123               49|
11124               8\d
11125             )|
11126             87[0189]|
11127             95[48]
11128           )\d{4}
11129         </nationalNumberPattern>
11130         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11131         <exampleNumber>6201234</exampleNumber>
11132       </voicemail>
11133     </territory>
11134
11135     <!-- Italy -->
11136     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true"
11137                mobileNumberPortableRegion="true">
11138       <references>
11139         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
11140       </references>
11141       <availableFormats>
11142         <!-- The leading zero for fixed numbers will be prepended before the matching of these
11143              regular expressions. -->
11144         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
11145           <leadingDigits>
11146             0[26]|
11147             55
11148           </leadingDigits>
11149           <format>$1 $2 $3</format>
11150         </numberFormat>
11151         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
11152           <leadingDigits>0[26]</leadingDigits>
11153           <format>$1 $2 $3</format>
11154         </numberFormat>
11155         <numberFormat pattern="(0[26])(\d{4,6})">
11156           <leadingDigits>0[26]</leadingDigits>
11157           <format>$1 $2</format>
11158         </numberFormat>
11159         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
11160           <leadingDigits>0[13-57-9][0159]</leadingDigits>
11161           <format>$1 $2 $3</format>
11162         </numberFormat>
11163         <numberFormat pattern="(\d{3})(\d{3,6})">
11164           <leadingDigits>
11165             0[13-57-9][0159]|
11166             8(?:
11167               03|
11168               4[17]|
11169               9[245]
11170             )
11171           </leadingDigits>
11172           <leadingDigits>
11173             0[13-57-9][0159]|
11174             8(?:
11175               03|
11176               4[17]|
11177               9(?:
11178                 2|
11179                 [45][0-4]
11180               )
11181             )
11182           </leadingDigits>
11183           <format>$1 $2</format>
11184         </numberFormat>
11185         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
11186           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11187           <format>$1 $2 $3</format>
11188         </numberFormat>
11189         <numberFormat pattern="(0\d{3})(\d{2,6})">
11190           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11191           <format>$1 $2</format>
11192         </numberFormat>
11193         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11194           <leadingDigits>
11195             [13]|
11196             8(?:
11197               00|
11198               4[08]|
11199               9[59]
11200             )
11201           </leadingDigits>
11202           <leadingDigits>
11203             [13]|
11204             8(?:
11205               00|
11206               4[08]|
11207               9(?:
11208                 5[5-9]|
11209                 9
11210               )
11211             )
11212           </leadingDigits>
11213           <format>$1 $2 $3</format>
11214         </numberFormat>
11215         <numberFormat pattern="(\d{4})(\d{4})">
11216           <leadingDigits>894</leadingDigits>
11217           <leadingDigits>894[5-9]</leadingDigits>
11218           <format>$1 $2</format>
11219         </numberFormat>
11220         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
11221           <leadingDigits>3</leadingDigits>
11222           <format>$1 $2 $3</format>
11223         </numberFormat>
11224       </availableFormats>
11225       <generalDesc>
11226         <nationalNumberPattern>
11227           [01589]\d{5,10}|
11228           3(?:
11229             [12457-9]\d{8}|
11230             [36]\d{7,9}
11231           )
11232         </nationalNumberPattern>
11233         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11234       </generalDesc>
11235       <noInternationalDialling>
11236         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
11237         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11238         <exampleNumber>848123456</exampleNumber>
11239       </noInternationalDialling>
11240       <fixedLine>
11241         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
11242              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
11243              found with other prefixes that are 11 digits long as well, so we allow it for all the
11244              three and four digit area codes. -->
11245         <nationalNumberPattern>
11246           0(?:
11247             [26]\d{4,9}|
11248             (?:
11249               1(?:
11250                 [0159]\d|
11251                 [27][1-5]|
11252                 31|
11253                 4[1-4]|
11254                 6[1356]|
11255                 8[2-57]
11256               )|
11257               3(?:
11258                 [0159]\d|
11259                 2[1-4]|
11260                 3[12]|
11261                 [48][1-6]|
11262                 6[2-59]|
11263                 7[1-7]
11264               )|
11265               4(?:
11266                 [0159]\d|
11267                 [23][1-9]|
11268                 4[245]|
11269                 6[1-5]|
11270                 7[1-4]|
11271                 81
11272               )|
11273               5(?:
11274                 [0159]\d|
11275                 2[1-5]|
11276                 3[2-6]|
11277                 4[1-79]|
11278                 6[4-6]|
11279                 7[1-578]|
11280                 8[3-8]
11281               )|
11282               7(?:
11283                 [0159]\d|
11284                 2[12]|
11285                 3[1-7]|
11286                 4[2346]|
11287                 6[13569]|
11288                 7[13-6]|
11289                 8[1-59]
11290               )|
11291               8(?:
11292                 [0159]\d|
11293                 2[34578]|
11294                 3[1-356]|
11295                 [6-8][1-5]
11296               )|
11297               9(?:
11298                 [0159]\d|
11299                 [238][1-5]|
11300                 4[12]|
11301                 6[1-8]|
11302                 7[1-6]
11303               )
11304             )\d{2,7}
11305           )
11306         </nationalNumberPattern>
11307         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11308         <exampleNumber>0212345678</exampleNumber>
11309       </fixedLine>
11310       <mobile>
11311         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
11312              digits long. However, a user reported the existence of new 11 digit long numbers for
11313              TIM with the prefix 33X, so this is supported also. -->
11314         <nationalNumberPattern>
11315           3(?:
11316             [12457-9]\d{8}|
11317             6\d{7,8}|
11318             3\d{7,9}
11319           )
11320         </nationalNumberPattern>
11321         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
11322         <exampleNumber>3123456789</exampleNumber>
11323       </mobile>
11324       <tollFree>
11325         <nationalNumberPattern>
11326           80(?:
11327             0\d{6}|
11328             3\d{3}
11329           )
11330         </nationalNumberPattern>
11331         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11332         <exampleNumber>800123456</exampleNumber>
11333       </tollFree>
11334       <premiumRate>
11335         <!-- Adding 0878 numbers, as per
11336              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
11337              premium prefixes are mentioned here:
11338              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
11339         <nationalNumberPattern>
11340           0878\d{5}|
11341           1(?:
11342             44|
11343             6[346]
11344           )\d{6}|
11345           89(?:
11346             2\d{3}|
11347             4(?:
11348               [0-4]\d{2}|
11349               [5-9]\d{4}
11350             )|
11351             5(?:
11352               [0-4]\d{2}|
11353               [5-9]\d{6}
11354             )|
11355             9\d{6}
11356           )
11357         </nationalNumberPattern>
11358         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11359         <exampleNumber>899123456</exampleNumber>
11360       </premiumRate>
11361       <sharedCost>
11362         <nationalNumberPattern>
11363           84(?:
11364             [08]\d{6}|
11365             [17]\d{3}
11366           )
11367         </nationalNumberPattern>
11368         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11369         <exampleNumber>848123456</exampleNumber>
11370       </sharedCost>
11371       <personalNumber>
11372         <nationalNumberPattern>
11373           1(?:
11374             78\d|
11375             99
11376           )\d{6}
11377         </nationalNumberPattern>
11378         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
11379         <exampleNumber>1781234567</exampleNumber>
11380       </personalNumber>
11381       <voip>
11382         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
11383         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11384         <exampleNumber>5512345678</exampleNumber>
11385       </voip>
11386     </territory>
11387
11388     <!-- Jersey -->
11389     <!-- Inherits formatting rules from the UK. -->
11390     <territory id="JE" countryCode="44" internationalPrefix="00"
11391                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
11392       <references>
11393         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom</sourceUrl>
11394         <sourceUrl>http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&amp;childID=1036</sourceUrl>
11395       </references>
11396       <generalDesc>
11397         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
11398         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11399       </generalDesc>
11400       <areaCodeOptional>
11401         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
11402         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11403         <exampleNumber>1534250123</exampleNumber>
11404       </areaCodeOptional>
11405       <!-- Specific to JE. -->
11406       <fixedLine>
11407         <!-- 1534 with 10 digits. -->
11408         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
11409         <exampleNumber>1534456789</exampleNumber>
11410       </fixedLine>
11411       <mobile>
11412         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
11413         <nationalNumberPattern>
11414           7(?:
11415             509|
11416             7(?:
11417               00|
11418               97
11419             )|
11420             829|
11421             937
11422           )\d{6}
11423         </nationalNumberPattern>
11424         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11425         <exampleNumber>7797123456</exampleNumber>
11426       </mobile>
11427       <pager>
11428         <!-- Pager numbers as per GB. -->
11429         <nationalNumberPattern>
11430           76(?:
11431             0[012]|
11432             2[356]|
11433             4[0134]|
11434             5[49]|
11435             6[0-369]|
11436             77|
11437             81|
11438             9[39]
11439           )\d{6}
11440         </nationalNumberPattern>
11441         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11442         <exampleNumber>7640123456</exampleNumber>
11443       </pager>
11444       <!-- Specific to JE. -->
11445       <tollFree>
11446         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
11447         <nationalNumberPattern>
11448           80(?:
11449             07(?:
11450               35|
11451               81
11452             )|
11453             8901
11454           )\d{4}
11455         </nationalNumberPattern>
11456         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11457         <exampleNumber>8007354567</exampleNumber>
11458       </tollFree>
11459       <premiumRate>
11460         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
11461         <nationalNumberPattern>
11462           (?:
11463             871206|
11464             90(?:
11465               066[59]|
11466               1810|
11467               71(?:
11468                 07|
11469                 55
11470               )
11471             )
11472           )\d{4}
11473         </nationalNumberPattern>
11474         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11475         <exampleNumber>9018105678</exampleNumber>
11476       </premiumRate>
11477       <sharedCost>
11478         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
11479         <nationalNumberPattern>
11480           8(?:
11481             4(?:
11482               4(?:
11483                 4(?:
11484                   05|
11485                   42|
11486                   69
11487                 )|
11488                 703
11489               )|
11490               5(?:
11491                 041|
11492                 800
11493               )
11494             )|
11495             70002
11496           )\d{4}
11497         </nationalNumberPattern>
11498         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11499         <exampleNumber>8447034567</exampleNumber>
11500       </sharedCost>
11501       <personalNumber>
11502         <!-- 70 1511 with 10 digits. -->
11503         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
11504         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11505         <exampleNumber>7015115678</exampleNumber>
11506       </personalNumber>
11507       <voip>
11508         <!-- VoIP numbers as per GB. -->
11509         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
11510         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11511         <exampleNumber>5612345678</exampleNumber>
11512       </voip>
11513       <uan>
11514         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
11515              370 002, 371 206, 55 with 10 digits. -->
11516         <nationalNumberPattern>
11517           3(?:
11518             0(?:
11519               07(?:
11520                 35|
11521                 81
11522               )|
11523               8901
11524             )|
11525             3\d{4}|
11526             4(?:
11527               4(?:
11528                 4(?:
11529                   05|
11530                   42|
11531                   69
11532                 )|
11533                 703
11534               )|
11535               5(?:
11536                 041|
11537                 800
11538               )
11539             )|
11540             7(?:
11541               0002|
11542               1206
11543             )
11544           )\d{4}|
11545           55\d{8}
11546         </nationalNumberPattern>
11547         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11548         <exampleNumber>5512345678</exampleNumber>
11549       </uan>
11550     </territory>
11551
11552     <!-- Jamaica -->
11553     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
11554                internationalPrefix="011">
11555       <references>
11556         <sourceUrl>http://www.itu.int/oth/T020200006C/en</sourceUrl>
11557       </references>
11558       <generalDesc>
11559         <!-- NANPA country - uses US formatting rules -->
11560         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
11561         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
11562       </generalDesc>
11563       <fixedLine>
11564         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
11565         <nationalNumberPattern>
11566           876(?:
11567             5(?:
11568               0[12]|
11569               1[0-468]|
11570               2[35]|
11571               63
11572             )|
11573             6(?:
11574               0[1-3579]|
11575               1[027-9]|
11576               [23]\d|
11577               40|
11578               5[06]|
11579               6[2-589]|
11580               7[05]|
11581               8[04]|
11582               9[4-9]
11583             )|
11584             7(?:
11585               0[2-689]|
11586               [1-6]\d|
11587               8[056]|
11588               9[45]
11589             )|
11590             9(?:
11591               0[1-8]|
11592               1[02378]|
11593               [2-8]\d|
11594               9[2-468]
11595             )
11596           )\d{4}
11597         </nationalNumberPattern>
11598         <exampleNumber>8765123456</exampleNumber>
11599       </fixedLine>
11600       <mobile>
11601         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
11602              be valid by sending SMSs and looking at online number lookup sites. Also added 50[3-79]
11603              as we have found information online that the 50[3-9] range has been assigned to Digicel.
11604
11605              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
11606              Most have mobile numbers online so we have put them under mobile but is possible
11607              they are a mixture of fixed line and mobile. -->
11608         <nationalNumberPattern>
11609           876(?:
11610             2[1789]\d|
11611             [348]\d{2}|
11612             5(?:
11613               0[3-9]|
11614               27|
11615               6[0-24-9]|
11616               [3-578]\d
11617             )|
11618             7(?:
11619               0[07]|
11620               7\d|
11621               8[1-47-9]|
11622               9[0-36-9]
11623             )|
11624             9(?:
11625               [01]9|
11626               9[0579]
11627             )
11628           )\d{4}
11629         </nationalNumberPattern>
11630         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11631         <exampleNumber>8762101234</exampleNumber>
11632       </mobile>
11633       <tollFree>
11634         <nationalNumberPattern>
11635           8(?:
11636             00|
11637             44|
11638             55|
11639             66|
11640             77|
11641             88
11642           )[2-9]\d{6}
11643         </nationalNumberPattern>
11644         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11645         <exampleNumber>8002123456</exampleNumber>
11646       </tollFree>
11647       <premiumRate>
11648         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
11649         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11650         <exampleNumber>9002123456</exampleNumber>
11651       </premiumRate>
11652       <personalNumber>
11653         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
11654         <nationalNumberPattern>
11655           5(?:
11656             00|
11657             33|
11658             44|
11659             66|
11660             77
11661           )[2-9]\d{6}
11662         </nationalNumberPattern>
11663         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11664         <exampleNumber>5002345678</exampleNumber>
11665       </personalNumber>
11666     </territory>
11667
11668     <!-- Jordan -->
11669     <territory id="JO" countryCode="962" internationalPrefix="00"
11670                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
11671                mobileNumberPortableRegion="true">
11672       <references>
11673         <sourceUrl>http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english</sourceUrl>
11674         <sourceUrl>http://www.itu.int/oth/T020200006E/en</sourceUrl>
11675         <sourceUrl>http://en.wikipedia.org/wiki/%2B962</sourceUrl>
11676       </references>
11677       <availableFormats>
11678         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
11679           pattern="(\d)(\d{3})(\d{4})">
11680           <leadingDigits>
11681             [2356]|
11682             87
11683           </leadingDigits>
11684           <format>$1 $2 $3</format>
11685         </numberFormat>
11686         <numberFormat pattern="(7)(\d{4})(\d{4})">
11687           <leadingDigits>7[457-9]</leadingDigits>
11688           <format>$1 $2 $3</format>
11689         </numberFormat>
11690         <numberFormat pattern="(\d{3})(\d{5,6})">
11691           <leadingDigits>
11692             70|
11693             8[0158]|
11694             9
11695           </leadingDigits>
11696           <format>$1 $2</format>
11697         </numberFormat>
11698       </availableFormats>
11699       <generalDesc>
11700         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
11701         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11702       </generalDesc>
11703       <fixedLine>
11704         <nationalNumberPattern>
11705           (?:
11706             2(?:
11707               6(?:
11708                 2[0-35-9]|
11709                 3[0-57-8]|
11710                 4[24-7]|
11711                 5[0-24-8]|
11712                 [6-8][02]|
11713                 9[0-2]
11714               )|
11715               7(?:
11716                 0[1-79]|
11717                 10|
11718                 2[014-7]|
11719                 3[0-689]|
11720                 4[019]|
11721                 5[0-3578]
11722               )
11723             )|
11724             32(?:
11725               0[1-69]|
11726               1[1-35-7]|
11727               2[024-7]|
11728               3\d|
11729               4[0-2]|
11730               [57][02]|
11731               60
11732             )|
11733             53(?:
11734               0[0-2]|
11735               [13][02]|
11736               2[0-59]|
11737               49|
11738               5[0-35-9]|
11739               6[15]|
11740               7[45]|
11741               8[1-6]|
11742               9[0-36-9]
11743             )|
11744             6(?:
11745               2[50]0|
11746               300|
11747               4(?:
11748                 0[0125]|
11749                 1[2-7]|
11750                 2[0569]|
11751                 [38][07-9]|
11752                 4[025689]|
11753                 6[0-589]|
11754                 7\d|
11755                 9[0-2]
11756               )|
11757               5(?:
11758                 [01][056]|
11759                 2[034]|
11760                 3[0-57-9]|
11761                 4[17-8]|
11762                 5[0-69]|
11763                 6[0-35-9]|
11764                 7[1-379]|
11765                 8[0-68]|
11766                 9[02-39]
11767               )
11768             )|
11769             87(?:
11770               [02]0|
11771               7[08]|
11772               9[09]
11773             )
11774           )\d{4}
11775         </nationalNumberPattern>
11776         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
11777         <exampleNumber>62001234</exampleNumber>
11778       </fixedLine>
11779       <mobile>
11780         <nationalNumberPattern>
11781           7(?:
11782             55|
11783             7[25-9]|
11784             8[05-9]|
11785             9[015-9]
11786           )\d{6}
11787         </nationalNumberPattern>
11788         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11789         <exampleNumber>790123456</exampleNumber>
11790       </mobile>
11791       <pager>
11792         <nationalNumberPattern>
11793           74(?:
11794             66|
11795             77
11796           )\d{5}
11797         </nationalNumberPattern>
11798         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11799         <exampleNumber>746612345</exampleNumber>
11800       </pager>
11801       <tollFree>
11802         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
11803         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11804         <exampleNumber>80012345</exampleNumber>
11805       </tollFree>
11806       <premiumRate>
11807         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
11808         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11809         <exampleNumber>90012345</exampleNumber>
11810       </premiumRate>
11811       <sharedCost>
11812         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
11813         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11814         <exampleNumber>85012345</exampleNumber>
11815       </sharedCost>
11816       <personalNumber>
11817         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
11818         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11819         <exampleNumber>700123456</exampleNumber>
11820       </personalNumber>
11821       <uan>
11822         <!-- These numbers are Location Independent Services / Fixed cost according to
11823              http://www.trc.gov.jo -->
11824         <nationalNumberPattern>
11825           8(?:
11826             10|
11827             8\d
11828           )\d{5}
11829         </nationalNumberPattern>
11830         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11831         <exampleNumber>88101234</exampleNumber>
11832       </uan>
11833     </territory>
11834
11835     <!-- Japan -->
11836     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
11837                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true"
11838                mobileNumberPortableRegion="true">
11839       <references>
11840         <sourceUrl>http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html</sourceUrl>
11841         <sourceUrl>http://www.numberingplans.com/?page=dialling&amp;sub=areacodes&amp;ac=JP</sourceUrl>
11842       </references>
11843       <availableFormats>
11844         <!-- Toll-free, premium-rate and UAN numbers -->
11845         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
11846           <leadingDigits>
11847             (?:
11848               12|
11849               57|
11850               99
11851             )0
11852           </leadingDigits>
11853           <format>$1-$2-$3</format>
11854         </numberFormat>
11855         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
11856           <leadingDigits>800</leadingDigits>
11857           <format>$1-$2-$3</format>
11858         </numberFormat>
11859         <!-- National-only toll-free numbers (0037, 0066, 0077 and 0088). -->
11860         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
11861           <leadingDigits>0077</leadingDigits>
11862           <format>$1-$2</format>
11863           <intlFormat>NA</intlFormat>
11864         </numberFormat>
11865         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{3,4})">
11866           <leadingDigits>0077</leadingDigits>
11867           <format>$1-$2-$3</format>
11868           <intlFormat>NA</intlFormat>
11869         </numberFormat>
11870         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{2})(\d{4})">
11871           <leadingDigits>0088</leadingDigits>
11872           <format>$1-$2-$3</format>
11873           <intlFormat>NA</intlFormat>
11874         </numberFormat>
11875         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3,4})">
11876           <leadingDigits>
11877             00(?:
11878                37|
11879                66
11880             )
11881           </leadingDigits>
11882           <format>$1-$2-$3</format>
11883           <intlFormat>NA</intlFormat>
11884         </numberFormat>
11885         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})(\d{4,5})">
11886           <leadingDigits>
11887             00(?:
11888                37|
11889                66
11890             )
11891           </leadingDigits>
11892           <format>$1-$2-$3</format>
11893           <intlFormat>NA</intlFormat>
11894         </numberFormat>
11895         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{5})(\d{5,6})">
11896           <leadingDigits>
11897             00(?:
11898                37|
11899                66
11900             )
11901           </leadingDigits>
11902           <format>$1-$2-$3</format>
11903           <intlFormat>NA</intlFormat>
11904         </numberFormat>
11905         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{6})(\d{6,7})">
11906           <leadingDigits>
11907             00(?:
11908                37|
11909                66
11910             )
11911           </leadingDigits>
11912           <format>$1-$2-$3</format>
11913           <intlFormat>NA</intlFormat>
11914         </numberFormat>
11915         <!-- Some leading digits are explicitly reserved for a particular purpose.
11916              We handle them first in this rule, and let the following rules ignore those exceptions.
11917              Note: The rule here is not in the files we rely on when creating the other rules.
11918                    We would need to manually modify it if the Japanese goverment
11919                    decided to change the rule.
11920
11921              (prefix): purpose
11922              "20": Pagers
11923              "50": IP phone
11924              "70": PHS (Personal Handy-phone System, which has been used in Japan
11925                    with Non-3G, Japanese-specific protocol).
11926                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
11927              "80" and "90": Mobile phone
11928           -->
11929         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
11930           <leadingDigits>
11931             [2579]0|
11932             80[1-9]
11933           </leadingDigits>
11934           <format>$1-$2-$3</format>
11935         </numberFormat>
11936         <!-- The order of the reg-exps are important.
11937              Examples (not all):
11938              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
11939              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
11940              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
11941              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
11942              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
11943              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
11944           -->
11945         <numberFormat pattern="(\d{4})(\d)(\d{4})">
11946           <leadingDigits>
11947             1(?:
11948               26|
11949               3[79]|
11950               4[56]|
11951               5[4-68]|
11952               6[3-5]
11953             )|
11954             5(?:
11955               76|
11956               97
11957             )|
11958             499|
11959             746|
11960             8(?:
11961               3[89]|
11962               63|
11963               47|
11964               51
11965             )|
11966             9(?:
11967               49|
11968               80|
11969               9[16]
11970             )
11971           </leadingDigits>
11972           <leadingDigits>
11973             1(?:
11974               267|
11975               3(?:
11976                 7[247]|
11977                 9[278]
11978               )|
11979               4(?:
11980                 5[67]|
11981                 66
11982               )|
11983               5(?:
11984                 47|
11985                 58|
11986                 64|
11987                 8[67]
11988               )|
11989               6(?:
11990                 3[245]|
11991                 48|
11992                 5[4-68]
11993               )
11994             )|
11995             5(?:
11996               76|
11997               97
11998             )9|
11999             499[2468]|
12000             7468|
12001             8(?:
12002               3(?:
12003                 8[78]|
12004                 96
12005               )|
12006               636|
12007               477|
12008               51[24]
12009             )|
12010             9(?:
12011               496|
12012               802|
12013               9(?:
12014                 1[23]|
12015                 69
12016               )
12017             )
12018           </leadingDigits>
12019           <leadingDigits>
12020             1(?:
12021               267|
12022               3(?:
12023                 7[247]|
12024                 9[278]
12025               )|
12026               4(?:
12027                 5[67]|
12028                 66
12029               )|
12030               5(?:
12031                 47|
12032                 58|
12033                 64|
12034                 8[67]
12035               )|
12036               6(?:
12037                 3[245]|
12038                 48|
12039                 5[4-68]
12040               )
12041             )|
12042             5(?:
12043               769|
12044               979[2-69]
12045             )|
12046             499[2468]|
12047             7468|
12048             8(?:
12049               3(?:
12050                 8[78]|
12051                 96[2457-9]
12052               )|
12053               636[2-57-9]|
12054               477|
12055               51[24]
12056             )|
12057             9(?:
12058               496|
12059               802|
12060               9(?:
12061                 1[23]|
12062                 69
12063               )
12064             )
12065           </leadingDigits>
12066           <format>$1-$2-$3</format>
12067         </numberFormat>
12068         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12069           <leadingDigits>
12070             1(?:
12071               2[3-6]|
12072               3[3-9]|
12073               4[2-6]|
12074               5[2-8]|
12075               [68][2-7]|
12076               7[2-689]|
12077               9[1-578]
12078             )|
12079             2(?:
12080               2[03-689]|
12081               3[3-58]|
12082               4[0-468]|
12083               5[04-8]|
12084               6[013-8]|
12085               7[06-9]|
12086               8[02-57-9]|
12087               9[13]
12088             )|
12089             4(?:
12090               2[28]|
12091               3[689]|
12092               6[035-7]|
12093               7[05689]|
12094               80|
12095               9[3-5]
12096             )|
12097             5(?:
12098               3[1-36-9]|
12099               4[4578]|
12100               5[013-8]|
12101               6[1-9]|
12102               7[2-8]|
12103               8[14-7]|
12104               9[4-9]
12105             )|
12106             7(?:
12107               2[15]|
12108               3[5-9]|
12109               4[02-9]|
12110               6[135-8]|
12111               7[0-4689]|
12112               9[014-9]
12113             )|
12114             8(?:
12115               2[49]|
12116               3[3-8]|
12117               4[5-8]|
12118               5[2-9]|
12119               6[35-9]|
12120               7[579]|
12121               8[03-579]|
12122               9[2-8]
12123             )|
12124             9(?:
12125               [23]0|
12126               4[02-46-9]|
12127               5[024-79]|
12128               6[4-9]|
12129               7[2-47-9]|
12130               8[02-7]|
12131               9[3-7]
12132             )
12133           </leadingDigits>
12134           <leadingDigits>
12135             1(?:
12136               2[3-6]|
12137               3[3-9]|
12138               4[2-6]|
12139               5(?:
12140                 [236-8]|
12141                 [45][2-69]
12142               )|
12143               [68][2-7]|
12144               7[2-689]|
12145               9[1-578]
12146             )|
12147             2(?:
12148               2(?:
12149                 [04-689]|
12150                 3[23]
12151               )|
12152               3[3-58]|
12153               4[0-468]|
12154               5(?:
12155                 5[78]|
12156                 7[2-4]|
12157                 [0468][2-9]
12158               )|
12159               6(?:
12160                 [0135-8]|
12161                 4[2-5]
12162               )|
12163               7(?:
12164                 [0679]|
12165                 8[2-7]
12166               )|
12167               8(?:
12168                 [024578]|
12169                 3[25-9]|
12170                 9[6-9]
12171               )|
12172               9(?:
12173                 11|
12174                 3[2-4]
12175               )
12176             )|
12177             4(?:
12178               2(?:
12179                 2[2-9]|
12180                 8[237-9]
12181               )|
12182               3[689]|
12183               6[035-7]|
12184               7(?:
12185                 [059][2-8]|
12186                 [68]
12187               )|
12188               80|
12189               9[3-5]
12190             )|
12191             5(?:
12192               3[1-36-9]|
12193               4[4578]|
12194               5[013-8]|
12195               6[1-9]|
12196               7[2-8]|
12197               8[14-7]|
12198               9(?:
12199                 [89][2-8]|
12200                 [4-7]
12201               )
12202             )|
12203             7(?:
12204               2[15]|
12205               3[5-9]|
12206               4[02-9]|
12207               6[135-8]|
12208               7[0-4689]|
12209               9(?:
12210                 [017-9]|
12211                 4[6-8]|
12212                 5[2-478]|
12213                 6[2-589]
12214               )
12215             )|
12216             8(?:
12217               2(?:
12218                 4[4-8]|
12219                 9[2-8]
12220               )|
12221               3(?:
12222                 7[2-6]|
12223                 [3-6][2-9]|
12224                 8[2-5]
12225               )|
12226               4[5-8]|
12227               5[2-9]|
12228               6(?:
12229                 [37]|
12230                 5[4-7]|
12231                 6[2-9]|
12232                 8[2-8]|
12233                 9[236-9]
12234               )|
12235               7[579]|
12236               8[03-579]|
12237               9[2-8]
12238             )|
12239             9(?:
12240               [23]0|
12241               4[02-46-9]|
12242               5[024-79]|
12243               6[4-9]|
12244               7[2-47-9]|
12245               8[02-7]|
12246               9(?:
12247                 3[34]|
12248                 [4-7]
12249               )
12250             )
12251           </leadingDigits>
12252           <leadingDigits>
12253             1(?:
12254               2[3-6]|
12255               3[3-9]|
12256               4[2-6]|
12257               5(?:
12258                 [236-8]|
12259                 [45][2-69]
12260               )|
12261               [68][2-7]|
12262               7[2-689]|
12263               9[1-578]
12264             )|
12265             2(?:
12266               2(?:
12267                 [04-689]|
12268                 3[23]
12269               )|
12270               3[3-58]|
12271               4[0-468]|
12272               5(?:
12273                 5[78]|
12274                 7[2-4]|
12275                 [0468][2-9]
12276               )|
12277               6(?:
12278                 [0135-8]|
12279                 4[2-5]
12280               )|
12281               7(?:
12282                 [0679]|
12283                 8[2-7]
12284               )|
12285               8(?:
12286                 [024578]|
12287                 3[25-9]|
12288                 9[6-9]
12289               )|
12290               9(?:
12291                 11|
12292                 3[2-4]
12293               )
12294             )|
12295             4(?:
12296               2(?:
12297                 2[2-9]|
12298                 8[237-9]
12299               )|
12300               3[689]|
12301               6[035-7]|
12302               7(?:
12303                 [059][2-8]|
12304                 [68]
12305               )|
12306               80|
12307               9[3-5]
12308             )|
12309             5(?:
12310               3[1-36-9]|
12311               4[4578]|
12312               5[013-8]|
12313               6[1-9]|
12314               7[2-8]|
12315               8[14-7]|
12316               9(?:
12317                 [89][2-8]|
12318                 [4-7]
12319               )
12320             )|
12321             7(?:
12322               2[15]|
12323               3[5-9]|
12324               4[02-9]|
12325               6[135-8]|
12326               7[0-4689]|
12327               9(?:
12328                 [017-9]|
12329                 4[6-8]|
12330                 5[2-478]|
12331                 6[2-589]
12332               )
12333             )|
12334             8(?:
12335               2(?:
12336                 4[4-8]|
12337                 9(?:
12338                   [3578]|
12339                   20|
12340                   4[04-9]|
12341                   6[56]
12342                 )
12343               )|
12344               3(?:
12345                 7(?:
12346                   [2-5]|
12347                   6[0-59]
12348                 )|
12349                 [3-6][2-9]|
12350                 8[2-5]
12351               )|
12352               4[5-8]|
12353               5[2-9]|
12354               6(?:
12355                 [37]|
12356                 5(?:
12357                   [467]|
12358                   5[014-9]
12359                 )|
12360                 6(?:
12361                   [2-8]|
12362                   9[02-69]
12363                 )|
12364                 8[2-8]|
12365                 9(?:
12366                   [236-8]|
12367                   9[23]
12368                 )
12369               )|
12370               7[579]|
12371               8[03-579]|
12372               9[2-8]
12373             )|
12374             9(?:
12375               [23]0|
12376               4[02-46-9]|
12377               5[024-79]|
12378               6[4-9]|
12379               7[2-47-9]|
12380               8[02-7]|
12381               9(?:
12382                 3(?:
12383                   3[02-9]|
12384                   4[0-24689]
12385                 )|
12386                 4[2-69]|
12387                 [5-7]
12388               )
12389             )
12390           </leadingDigits>
12391           <leadingDigits>
12392             1(?:
12393               2[3-6]|
12394               3[3-9]|
12395               4[2-6]|
12396               5(?:
12397                 [236-8]|
12398                 [45][2-69]
12399               )|
12400               [68][2-7]|
12401               7[2-689]|
12402               9[1-578]
12403             )|
12404             2(?:
12405               2(?:
12406                 [04-689]|
12407                 3[23]
12408               )|
12409               3[3-58]|
12410               4[0-468]|
12411               5(?:
12412                 5[78]|
12413                 7[2-4]|
12414                 [0468][2-9]
12415               )|
12416               6(?:
12417                 [0135-8]|
12418                 4[2-5]
12419               )|
12420               7(?:
12421                 [0679]|
12422                 8[2-7]
12423               )|
12424               8(?:
12425                 [024578]|
12426                 3[25-9]|
12427                 9[6-9]
12428               )|
12429               9(?:
12430                 11|
12431                 3[2-4]
12432               )
12433             )|
12434             4(?:
12435               2(?:
12436                 2[2-9]|
12437                 8[237-9]
12438               )|
12439               3[689]|
12440               6[035-7]|
12441               7(?:
12442                 [059][2-8]|
12443                 [68]
12444               )|
12445               80|
12446               9[3-5]
12447             )|
12448             5(?:
12449               3[1-36-9]|
12450               4[4578]|
12451               5[013-8]|
12452               6[1-9]|
12453               7[2-8]|
12454               8[14-7]|
12455               9(?:
12456                 [89][2-8]|
12457                 [4-7]
12458               )
12459             )|
12460             7(?:
12461               2[15]|
12462               3[5-9]|
12463               4[02-9]|
12464               6[135-8]|
12465               7[0-4689]|
12466               9(?:
12467                 [017-9]|
12468                 4[6-8]|
12469                 5[2-478]|
12470                 6[2-589]
12471               )
12472             )|
12473             8(?:
12474               2(?:
12475                 4[4-8]|
12476                 9(?:
12477                   [3578]|
12478                   20|
12479                   4[04-9]|
12480                   6(?:
12481                     5[25]|
12482                     60
12483                   )
12484                 )
12485               )|
12486               3(?:
12487                 7(?:
12488                   [2-5]|
12489                   6[0-59]
12490                 )|
12491                 [3-6][2-9]|
12492                 8[2-5]
12493               )|
12494               4[5-8]|
12495               5[2-9]|
12496               6(?:
12497                 [37]|
12498                 5(?:
12499                   [467]|
12500                   5[014-9]
12501                 )|
12502                 6(?:
12503                   [2-8]|
12504                   9[02-69]
12505                 )|
12506                 8[2-8]|
12507                 9(?:
12508                   [236-8]|
12509                   9[23]
12510                 )
12511               )|
12512               7[579]|
12513               8[03-579]|
12514               9[2-8]
12515             )|
12516             9(?:
12517               [23]0|
12518               4[02-46-9]|
12519               5[024-79]|
12520               6[4-9]|
12521               7[2-47-9]|
12522               8[02-7]|
12523               9(?:
12524                 3(?:
12525                   3[02-9]|
12526                   4[0-24689]
12527                 )|
12528                 4[2-69]|
12529                 [5-7]
12530               )
12531             )
12532           </leadingDigits>
12533           <format>$1-$2-$3</format>
12534         </numberFormat>
12535         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12536           <leadingDigits>
12537             1|
12538             2(?:
12539               2[37]|
12540               5[5-9]|
12541               64|
12542               78|
12543               8[39]|
12544               91
12545             )|
12546             4(?:
12547               2[2689]|
12548               64|
12549               7[347]
12550             )|
12551             5(?:
12552               [2-589]|
12553               39
12554             )|
12555             60|
12556             8(?:
12557               [46-9]|
12558               3[279]|
12559               2[124589]
12560             )|
12561             9(?:
12562               [235-8]|
12563               93
12564             )
12565           </leadingDigits>
12566           <leadingDigits>
12567             1|
12568             2(?:
12569               2[37]|
12570               5(?:
12571                 [57]|
12572                 [68]0|
12573                 9[19]
12574               )|
12575               64|
12576               78|
12577               8[39]|
12578               917
12579             )|
12580             4(?:
12581               2(?:
12582                 [68]|
12583                 20|
12584                 9[178]
12585               )|
12586               64|
12587               7[347]
12588             )|
12589             5(?:
12590               [2-589]|
12591               39[67]
12592             )|
12593             60|
12594             8(?:
12595               [46-9]|
12596               3[279]|
12597               2[124589]
12598             )|
12599             9(?:
12600               [235-8]|
12601               93[34]
12602             )
12603           </leadingDigits>
12604           <leadingDigits>
12605             1|
12606             2(?:
12607               2[37]|
12608               5(?:
12609                 [57]|
12610                 [68]0|
12611                 9(?:
12612                   17|
12613                   99
12614                 )
12615               )|
12616               64|
12617               78|
12618               8[39]|
12619               917
12620             )|
12621             4(?:
12622               2(?:
12623                 [68]|
12624                 20|
12625                 9[178]
12626               )|
12627               64|
12628               7[347]
12629             )|
12630             5(?:
12631               [2-589]|
12632               39[67]
12633             )|
12634             60|
12635             8(?:
12636               [46-9]|
12637               3[279]|
12638               2[124589]
12639             )|
12640             9(?:
12641               [235-8]|
12642               93(?:
12643                 31|
12644                 4
12645               )
12646             )
12647           </leadingDigits>
12648           <format>$1-$2-$3</format>
12649         </numberFormat>
12650         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12651           <leadingDigits>
12652             2(?:
12653               9[14-79]|
12654               74|
12655               [34]7|
12656               [56]9
12657             )|
12658             82|
12659             993
12660           </leadingDigits>
12661           <format>$1-$2-$3</format>
12662         </numberFormat>
12663         <numberFormat pattern="(\d)(\d{4})(\d{4})">
12664           <leadingDigits>
12665             3|
12666             4(?:
12667               2[09]|
12668               7[01]
12669             )|
12670             6[1-9]
12671           </leadingDigits>
12672           <format>$1-$2-$3</format>
12673         </numberFormat>
12674         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12675           <leadingDigits>[2479][1-9]</leadingDigits>
12676           <format>$1-$2-$3</format>
12677         </numberFormat>
12678       </availableFormats>
12679       <generalDesc>
12680         <nationalNumberPattern>
12681           [1-9]\d{8,9}|
12682           00(?:
12683              [36]\d{7,14}|
12684              7\d{5,7}|
12685              8\d{7}
12686           )
12687         </nationalNumberPattern>
12688         <possibleNumberPattern>\d{8,17}</possibleNumberPattern>
12689       </generalDesc>
12690       <noInternationalDialling>
12691         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
12692         <nationalNumberPattern>
12693           00(?:
12694              37\d{6,13}|
12695              66\d{6,13}|
12696              777(?:
12697                [01]\d{2}|
12698                5\d{3}|
12699                8\d{4}
12700              )|
12701              882[1245]\d{4}
12702           )
12703         </nationalNumberPattern>
12704         <exampleNumber>00777012</exampleNumber>
12705       </noInternationalDialling>
12706       <fixedLine>
12707         <nationalNumberPattern>
12708           (?:
12709             1(?:
12710               1[235-8]|
12711               2[3-6]|
12712               3[3-9]|
12713               4[2-6]|
12714               [58][2-8]|
12715               6[2-7]|
12716               7[2-9]|
12717               9[1-9]
12718             )|
12719             2[2-9]\d|
12720             [36][1-9]\d|
12721             4(?:
12722               6[02-8]|
12723               [2-578]\d|
12724               9[2-59]
12725             )|
12726             5(?:
12727               6[1-9]|
12728               7[2-8]|
12729               [2-589]\d
12730             )|
12731             7(?:
12732               3[4-9]|
12733               4[02-9]|
12734               [25-9]\d
12735             )|
12736             8(?:
12737               3[2-9]|
12738               4[5-9]|
12739               5[1-9]|
12740               8[03-9]|
12741               [2679]\d
12742             )|
12743             9(?:
12744               [679][1-9]|
12745               [2-58]\d
12746             )
12747           )\d{6}
12748         </nationalNumberPattern>
12749         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12750         <exampleNumber>312345678</exampleNumber>
12751       </fixedLine>
12752       <mobile>
12753         <nationalNumberPattern>[7-9]0[1-9]\d{7}</nationalNumberPattern>
12754         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12755         <exampleNumber>7012345678</exampleNumber>
12756       </mobile>
12757       <pager>
12758         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
12759         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12760         <exampleNumber>2012345678</exampleNumber>
12761       </pager>
12762       <tollFree>
12763         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
12764              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
12765              http://eonet.jp/home/denwa/service/access.html
12766              http://ci.fusioncom.co.jp/feature/
12767              http://www.auhikari.jp/service/tel/connection/index.html -->
12768         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
12769              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
12770              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
12771              for now (including both leading 00s). -->
12772         <nationalNumberPattern>
12773           120\d{6}|
12774           800\d{7}|
12775           00(?:
12776              37\d{6,13}|
12777              66\d{6,13}|
12778              777(?:
12779                [01]\d{2}|
12780                5\d{3}|
12781                8\d{4}
12782              )|
12783              882[1245]\d{4}
12784           )
12785         </nationalNumberPattern>
12786         <exampleNumber>120123456</exampleNumber>
12787       </tollFree>
12788       <premiumRate>
12789         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
12790         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12791         <exampleNumber>990123456</exampleNumber>
12792       </premiumRate>
12793       <personalNumber>
12794         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
12795         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12796         <exampleNumber>601234567</exampleNumber>
12797       </personalNumber>
12798       <voip>
12799         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
12800         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12801         <exampleNumber>5012345678</exampleNumber>
12802       </voip>
12803       <!-- Storing "unified number service" as UAN. -->
12804       <uan>
12805         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
12806         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12807         <exampleNumber>570123456</exampleNumber>
12808       </uan>
12809     </territory>
12810
12811     <!-- Kenya -->
12812     <territory id="KE" countryCode="254" internationalPrefix="000"
12813                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
12814                mobileNumberPortableRegion="true">
12815       <references>
12816         <sourceUrl>http://www.cck.go.ke/licensing/numbering/plan.html</sourceUrl>
12817         <sourceUrl>http://en.wikipedia.org/wiki/+254</sourceUrl>
12818       </references>
12819       <availableFormats>
12820         <numberFormat pattern="(\d{2})(\d{5,7})">
12821           <leadingDigits>[24-6]</leadingDigits>
12822           <format>$1 $2</format>
12823         </numberFormat>
12824         <numberFormat pattern="(\d{3})(\d{6,7})">
12825           <leadingDigits>7</leadingDigits>
12826           <format>$1 $2</format>
12827         </numberFormat>
12828         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12829           <leadingDigits>[89]</leadingDigits>
12830           <format>$1 $2 $3</format>
12831         </numberFormat>
12832       </availableFormats>
12833       <generalDesc>
12834         <nationalNumberPattern>
12835           20\d{6,7}|
12836           [4-9]\d{6,9}
12837         </nationalNumberPattern>
12838         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
12839       </generalDesc>
12840       <fixedLine>
12841         <!-- The prefixes 046, 050, 058, and 066 may appear online in less than 9 digits but
12842              calling them has confirmed these are outdated. However a 7-digit 068 number was
12843              dialed successfully so we consider these valid despite the plan. -->
12844         <nationalNumberPattern>
12845           20\d{6,7}|
12846           4(?:
12847             [0136]\d{7}|
12848             [245]\d{5,7}
12849           )|
12850           5(?:
12851             [08]\d{7}|
12852             [1-79]\d{5,7}
12853           )|
12854           6(?:
12855             [01457-9]\d{5,7}|
12856             [26]\d{7}
12857           )
12858         </nationalNumberPattern>
12859         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
12860         <exampleNumber>202012345</exampleNumber>
12861       </fixedLine>
12862       <mobile>
12863         <nationalNumberPattern>
12864           7(?:
12865             [0-36]\d|
12866             5[0-6]|
12867             7[0-5]|
12868             8[0-25-9]
12869           )\d{6}
12870         </nationalNumberPattern>
12871         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12872         <exampleNumber>712123456</exampleNumber>
12873       </mobile>
12874       <tollFree>
12875         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
12876         <!-- The plan suggests 0844 and 0845 may belong here, but these are short numbers rather
12877              than prefixes:
12878              http://www.telkomkenya.8k.com/Products/v/2.html
12879              http://www.kenya-advisor.com/phone-calls-kenya.html
12880              http://www.telkom.co.ke/index.php?option=com_content&view=article&id=64&Itemid=98 -->
12881         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
12882         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12883         <exampleNumber>800223456</exampleNumber>
12884       </tollFree>
12885       <premiumRate>
12886         <nationalNumberPattern>900[02-9]\d{5}</nationalNumberPattern>
12887         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12888         <exampleNumber>900223456</exampleNumber>
12889       </premiumRate>
12890     </territory>
12891
12892     <!-- Kyrgyzstan -->
12893     <territory id="KG" countryCode="996" internationalPrefix="00"
12894                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
12895       <references>
12896         <sourceUrl>http://www.itu.int/oth/T0202000074/en</sourceUrl>
12897       </references>
12898       <availableFormats>
12899         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
12900           <leadingDigits>
12901             [25-7]|
12902             31[25]
12903           </leadingDigits>
12904           <format>$1 $2 $3</format>
12905         </numberFormat>
12906         <numberFormat pattern="(\d{4})(\d{5})">
12907           <leadingDigits>
12908             3(?:
12909               1[36]|
12910               [2-9]
12911             )
12912           </leadingDigits>
12913           <format>$1 $2</format>
12914         </numberFormat>
12915         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
12916           <leadingDigits>8</leadingDigits>
12917           <format>$1 $2 $3 $4</format>
12918         </numberFormat>
12919       </availableFormats>
12920       <generalDesc>
12921         <nationalNumberPattern>[235-8]\d{8,9}</nationalNumberPattern>
12922         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12923       </generalDesc>
12924       <fixedLine>
12925         <!-- Extra area codes found on Web Search: 3147. -->
12926         <nationalNumberPattern>
12927           (?:
12928             3(?:
12929               1(?:
12930                 [256]\d|
12931                 3[1-9]|
12932                 47
12933               )|
12934               2(?:
12935                 22|
12936                 3[0-479]|
12937                 6[0-7]
12938               )|
12939               4(?:
12940                 22|
12941                 5[6-9]|
12942                 6\d
12943               )|
12944               5(?:
12945                 22|
12946                 3[4-7]|
12947                 59|
12948                 6\d
12949               )|
12950               6(?:
12951                 22|
12952                 5[35-7]|
12953                 6\d
12954               )|
12955               7(?:
12956                 22|
12957                 3[468]|
12958                 4[1-9]|
12959                 59|
12960                 [67]\d
12961               )|
12962               9(?:
12963                 22|
12964                 4[1-8]|
12965                 6\d
12966               )
12967             )|
12968             6(?:
12969               09|
12970               12|
12971               2[2-4]
12972             )\d
12973           )\d{5}
12974         </nationalNumberPattern>
12975         <exampleNumber>312123456</exampleNumber>
12976       </fixedLine>
12977       <mobile>
12978         <nationalNumberPattern>
12979           (?:
12980             20[0-35]|
12981             5[124-7]\d|
12982             7[07]\d
12983           )\d{6}
12984         </nationalNumberPattern>
12985         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12986         <exampleNumber>700123456</exampleNumber>
12987       </mobile>
12988       <tollFree>
12989         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
12990              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
12991         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
12992         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
12993         <exampleNumber>800123456</exampleNumber>
12994       </tollFree>
12995       <!-- No premiumRate information can be found. -->
12996       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
12997     </territory>
12998
12999     <!-- Cambodia -->
13000     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
13001                nationalPrefix="0">
13002       <references>
13003         <sourceUrl>http://www.itu.int/oth/T0202000023/en</sourceUrl>
13004         <sourceUrl>http://en.wikipedia.org/wiki/+855</sourceUrl>
13005       </references>
13006       <availableFormats>
13007         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
13008           <leadingDigits>
13009             1\d[1-9]|
13010             [2-9]
13011           </leadingDigits>
13012           <format>$1 $2 $3</format>
13013         </numberFormat>
13014         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
13015           <leadingDigits>1[89]0</leadingDigits>
13016           <format>$1 $2 $3</format>
13017         </numberFormat>
13018       </availableFormats>
13019       <generalDesc>
13020         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
13021         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13022       </generalDesc>
13023       <fixedLine>
13024         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
13025              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
13026              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
13027              range beginning with 6 seems to include some numbers that are one digit longer as well.
13028              Allowing 238\d{6} and 234[234]\d{4} based on information from Cambodia Yellow Pages.
13029              Note that numbers beginning with 234 are split across two patterns. -->
13030         <nationalNumberPattern>
13031           (?:
13032             2[3-6]|
13033             3[2-6]|
13034             4[2-4]|
13035             [5-7][2-5]
13036           )(?:
13037             [237-9]|
13038             4[56]|
13039             5\d|
13040             6\d?
13041           )\d{5}|
13042           23(?:
13043             4[234]|
13044             8\d{2}
13045           )\d{4}
13046         </nationalNumberPattern>
13047         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13048         <exampleNumber>23756789</exampleNumber>
13049       </fixedLine>
13050       <mobile>
13051         <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
13052              Beeline uses 060.
13053              Mobitel uses 01[1247].
13054              Cellcard uses 0857 and 061.
13055              Extra prefixes found online: 088, 097.
13056              Allowing 9-digit 12, 31, 38 and 76 numbers based on information from Cambodia Yellow
13057              Pages and online search. -->
13058         <nationalNumberPattern>
13059           (?:
13060             1(?:
13061               [013-9]|
13062               2\d?
13063             )|
13064             3[18]\d|
13065             6[016-9]|
13066             7(?:
13067               [07-9]|
13068               6\d
13069             )|
13070             8(?:
13071               [013-79]|
13072               8\d
13073             )|
13074             9(?:
13075               6\d|
13076               7\d?|
13077               [0-589]
13078             )
13079           )\d{6}
13080         </nationalNumberPattern>
13081         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
13082         <exampleNumber>91234567</exampleNumber>
13083       </mobile>
13084       <tollFree>
13085         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
13086         <nationalNumberPattern>
13087           1800(?:
13088             1\d|
13089             2[019]
13090           )\d{4}
13091         </nationalNumberPattern>
13092         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13093         <exampleNumber>1800123456</exampleNumber>
13094       </tollFree>
13095       <premiumRate>
13096         <nationalNumberPattern>
13097           1900(?:
13098             1\d|
13099             2[09]
13100           )\d{4}
13101         </nationalNumberPattern>
13102         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13103         <exampleNumber>1900123456</exampleNumber>
13104       </premiumRate>
13105     </territory>
13106
13107     <!-- Kiribati -->
13108     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
13109          leading 0 - no numbers online have been found formatted this way, but the ITU document
13110          lists it as a national dialling prefix. -->
13111     <territory id="KI" countryCode="686" internationalPrefix="00"
13112                nationalPrefixForParsing="0">
13113       <references>
13114         <sourceUrl>http://www.itu.int/oth/T0202000071/en</sourceUrl>
13115       </references>
13116       <!-- Numbers should be formatted as a block." -->
13117       <generalDesc>
13118         <nationalNumberPattern>
13119           [2458]\d{4}|
13120           3\d{4,7}|
13121           7\d{7}
13122         </nationalNumberPattern>
13123         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
13124       </generalDesc>
13125       <fixedLine>
13126         <nationalNumberPattern>
13127           (?:
13128             [24]\d|
13129             3[1-9]|
13130             50|
13131             8[0-5]
13132           )\d{3}
13133         </nationalNumberPattern>
13134         <possibleNumberPattern>\d{5}</possibleNumberPattern>
13135         <exampleNumber>31234</exampleNumber>
13136       </fixedLine>
13137       <mobile>
13138         <!-- North Tarawa is listed as 720XXXXX-729XXXXX but considering that this deviates from the
13139              pattern followed by every other place, we are assuming 731XXXXX-732XXXXX for now. -->
13140         <nationalNumberPattern>
13141           7(?:
13142             [24]\d|
13143             3[1-9]|
13144             8[0-5]
13145           )\d{5}
13146         </nationalNumberPattern>
13147         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13148         <exampleNumber>72012345</exampleNumber>
13149       </mobile>
13150       <premiumRate>
13151         <!-- ITU refers to these as "Telemedia and audiotext". -->
13152         <nationalNumberPattern>3001\d{4}</nationalNumberPattern>
13153         <exampleNumber>30010000</exampleNumber>
13154       </premiumRate>
13155     </territory>
13156
13157     <!-- Comoros -->
13158     <territory id="KM" countryCode="269" internationalPrefix="00">
13159       <references>
13160         <sourceUrl>http://www.itu.int/oth/T020200002D/en</sourceUrl>
13161       </references>
13162       <availableFormats>
13163         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
13164           <format>$1 $2 $3</format>
13165         </numberFormat>
13166       </availableFormats>
13167       <generalDesc>
13168         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
13169         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13170       </generalDesc>
13171       <fixedLine>
13172         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
13173              http://www.comorestelecom.km/presentationcdma.php -->
13174         <nationalNumberPattern>
13175           7(?:
13176             6[0-37-9]|
13177             7[0-57-9]
13178           )\d{4}
13179         </nationalNumberPattern>
13180         <exampleNumber>7712345</exampleNumber>
13181       </fixedLine>
13182       <mobile>
13183         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
13184         <exampleNumber>3212345</exampleNumber>
13185       </mobile>
13186       <premiumRate>
13187         <!-- These are referred to as value-added services in the plan and no further information
13188              can be found. -->
13189         <nationalNumberPattern>
13190           (?:
13191             39[01]|
13192             9[01]0
13193           )\d{4}
13194         </nationalNumberPattern>
13195         <exampleNumber>9001234</exampleNumber>
13196       </premiumRate>
13197     </territory>
13198
13199     <!-- Saint Kitts and Nevis -->
13200     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
13201                internationalPrefix="011">
13202       <references>
13203         <sourceUrl>http://www.itu.int/oth/T02020000B0/en</sourceUrl>
13204       </references>
13205       <generalDesc>
13206         <!-- NANPA country - uses US formatting rules -->
13207         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
13208         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13209       </generalDesc>
13210       <fixedLine>
13211         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
13212              of it can be found. -->
13213         <nationalNumberPattern>
13214           869(?:
13215             2(?:
13216               29|
13217               36
13218             )|
13219             302|
13220             4(?:
13221               6[015-9]|
13222               70
13223             )
13224           )\d{4}
13225         </nationalNumberPattern>
13226         <exampleNumber>8692361234</exampleNumber>
13227       </fixedLine>
13228       <mobile>
13229         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
13230         <nationalNumberPattern>
13231           869(?:
13232             5(?:
13233               5[6-8]|
13234               6[5-7]
13235             )|
13236             66\d|
13237             76[02-6]
13238           )\d{4}
13239         </nationalNumberPattern>
13240         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13241         <!-- Example number from the ITU document. -->
13242         <exampleNumber>8697652917</exampleNumber>
13243       </mobile>
13244       <tollFree>
13245         <nationalNumberPattern>
13246           8(?:
13247             00|
13248             44|
13249             55|
13250             66|
13251             77|
13252             88
13253           )[2-9]\d{6}
13254         </nationalNumberPattern>
13255         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13256         <exampleNumber>8002123456</exampleNumber>
13257       </tollFree>
13258       <premiumRate>
13259         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
13260         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13261         <exampleNumber>9002123456</exampleNumber>
13262       </premiumRate>
13263       <personalNumber>
13264         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13265         <nationalNumberPattern>
13266           5(?:
13267             00|
13268             33|
13269             44|
13270             66|
13271             77
13272           )[2-9]\d{6}
13273         </nationalNumberPattern>
13274         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13275         <exampleNumber>5002345678</exampleNumber>
13276       </personalNumber>
13277     </territory>
13278
13279     <!-- Korea, Dem. People's Rep. of -->
13280     <territory id="KP" countryCode="850" internationalPrefix="00|99"
13281                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13282       <references>
13283         <sourceUrl>http://en.wikipedia.org/wiki/%2B850</sourceUrl>
13284       </references>
13285       <availableFormats>
13286         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13287           <leadingDigits>1</leadingDigits>
13288           <format>$1 $2 $3</format>
13289         </numberFormat>
13290         <numberFormat pattern="(\d)(\d{3})(\d{4})">
13291           <leadingDigits>2</leadingDigits>
13292           <format>$1 $2 $3</format>
13293         </numberFormat>
13294         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
13295           <leadingDigits>8</leadingDigits>
13296           <format>$1 $2 $3</format>
13297         </numberFormat>
13298       </availableFormats>
13299       <generalDesc>
13300         <nationalNumberPattern>
13301           1\d{9}|
13302           [28]\d{7}
13303         </nationalNumberPattern>
13304         <possibleNumberPattern>
13305           \d{6,8}|
13306           \d{10}
13307         </possibleNumberPattern>
13308       </generalDesc>
13309       <noInternationalDialling>
13310         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
13311         <nationalNumberPattern>
13312           2(?:
13313             [0-24-9]\d{2}|
13314             3(?:
13315               [0-79]\d|
13316               8[02-9]
13317             )
13318           )\d{4}
13319         </nationalNumberPattern>
13320         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13321         <exampleNumber>23821234</exampleNumber>
13322       </noInternationalDialling>
13323       <fixedLine>
13324         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
13325              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
13326              from overseas. Also, there is conflicting information about the length of fixed-line
13327              numbers, so here we are following Wikipedia. -->
13328         <nationalNumberPattern>
13329           2\d{7}|
13330           85\d{6}
13331         </nationalNumberPattern>
13332         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
13333         <exampleNumber>21234567</exampleNumber>
13334       </fixedLine>
13335       <mobile>
13336         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
13337         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13338         <exampleNumber>1921234567</exampleNumber>
13339       </mobile>
13340     </territory>
13341
13342     <!-- Korea (Rep. of) -->
13343     <!-- Exceptions :
13344         internationalPrefix
13345             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
13346         nationalPrefix
13347             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
13348     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
13349                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
13350                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG"
13351                mobileNumberPortableRegion="true">
13352       <references>
13353         <sourceUrl>http://www.itu.int/oth/T0202000072/en</sourceUrl>
13354         <sourceUrl>http://en.wikipedia.org/wiki/%2B82</sourceUrl>
13355         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2349</sourceUrl>
13356         <sourceUrl>http://www.kcc.go.kr/user.do?mode=view&amp;page=P02030300&amp;dc=K02030300&amp;boardId=1074&amp;boardSeq=2240</sourceUrl>
13357         <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>
13358       </references>
13359       <availableFormats>
13360         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
13361           <leadingDigits>
13362             1(?:
13363               0|
13364               1[19]|
13365               [69]9|
13366               5[458]
13367             )|
13368             [57]0
13369           </leadingDigits>
13370           <leadingDigits>
13371             1(?:
13372               0|
13373               1[19]|
13374               [69]9|
13375               5(?:
13376                 44|
13377                 59|
13378                 8
13379               )
13380             )|
13381             [57]0
13382           </leadingDigits>
13383           <format>$1-$2-$3</format>
13384         </numberFormat>
13385         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
13386           <leadingDigits>
13387             1(?:
13388               [169][2-8]|
13389               [78]|
13390               5[1-4]
13391             )|
13392             [68]0|
13393             [3-6][1-9][1-9]
13394           </leadingDigits>
13395           <leadingDigits>
13396             1(?:
13397               [169][2-8]|
13398               [78]|
13399               5(?:
13400                 [1-3]|
13401                 4[56]
13402               )
13403             )|
13404             [68]0|
13405             [3-6][1-9][1-9]
13406           </leadingDigits>
13407           <format>$1-$2-$3</format>
13408         </numberFormat>
13409         <numberFormat pattern="(\d{3})(\d)(\d{4})">
13410           <leadingDigits>131</leadingDigits>
13411           <leadingDigits>1312</leadingDigits>
13412           <format>$1-$2-$3</format>
13413         </numberFormat>
13414         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
13415           <leadingDigits>131</leadingDigits>
13416           <leadingDigits>131[13-9]</leadingDigits>
13417           <format>$1-$2-$3</format>
13418         </numberFormat>
13419         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13420           <leadingDigits>13[2-9]</leadingDigits>
13421           <format>$1-$2-$3</format>
13422         </numberFormat>
13423         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
13424              limit of what digits may follow the 030, but we ignore that here. These numbers are
13425              actually not supported for validation purposes by the library at the moment as no
13426              online examples can be found, but we leave theme here so formatting continues to work
13427              if they are entered. -->
13428         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
13429           <leadingDigits>30</leadingDigits>
13430           <format>$1-$2-$3-$4</format>
13431         </numberFormat>
13432         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
13433           <leadingDigits>2[1-9]</leadingDigits>
13434           <format>$1-$2-$3</format>
13435         </numberFormat>
13436         <numberFormat pattern="(\d)(\d{3,4})">
13437           <leadingDigits>21[0-46-9]</leadingDigits>
13438           <format>$1-$2</format>
13439         </numberFormat>
13440         <numberFormat pattern="(\d{2})(\d{3,4})">
13441           <leadingDigits>[3-6][1-9]1</leadingDigits>
13442           <leadingDigits>
13443             [3-6][1-9]1(?:
13444               [0-46-9]
13445             )
13446           </leadingDigits>
13447           <format>$1-$2</format>
13448         </numberFormat>
13449         <!-- Company numbers. -->
13450         <numberFormat pattern="(\d{4})(\d{4})"
13451           nationalPrefixFormattingRule="$FG">
13452           <leadingDigits>
13453             1(?:
13454               5[46-9]|
13455               6[04678]|
13456               8[0579]
13457             )
13458           </leadingDigits>
13459           <leadingDigits>
13460             1(?:
13461               5(?:
13462                 44|
13463                 66|
13464                 77|
13465                 88|
13466                 99
13467               )|
13468               6(?:
13469                 00|
13470                 44|
13471                 6[16]|
13472                 70|
13473                 88
13474               )|
13475               8(?:
13476                 00|
13477                 55|
13478                 77|
13479                 99
13480               )
13481             )
13482           </leadingDigits>
13483           <format>$1-$2</format>
13484         </numberFormat>
13485       </availableFormats>
13486       <generalDesc>
13487         <nationalNumberPattern>
13488           [1-7]\d{3,9}|
13489           8\d{8}
13490         </nationalNumberPattern>
13491         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13492       </generalDesc>
13493       <fixedLine>
13494         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
13495              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
13496              starting with 1 based on evidence of real numbers found online. -->
13497         <nationalNumberPattern>
13498           (?:
13499             2|
13500             3[1-3]|
13501             [46][1-4]|
13502             5[1-5]
13503           )(?:
13504             1\d{2,3}|
13505             [1-9]\d{6,7}
13506           )
13507         </nationalNumberPattern>
13508         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13509         <exampleNumber>22123456</exampleNumber>
13510       </fixedLine>
13511       <mobile>
13512         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
13513         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13514         <exampleNumber>1000000000</exampleNumber>
13515       </mobile>
13516       <pager>
13517         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
13518         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13519         <exampleNumber>1523456789</exampleNumber>
13520       </pager>
13521       <tollFree>
13522         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
13523         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13524         <exampleNumber>801234567</exampleNumber>
13525       </tollFree>
13526       <!-- The information below is provided by a Korean person. -->
13527       <premiumRate>
13528         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
13529         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13530         <exampleNumber>602345678</exampleNumber>
13531       </premiumRate>
13532       <personalNumber>
13533         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
13534         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13535         <exampleNumber>5012345678</exampleNumber>
13536       </personalNumber>
13537       <voip>
13538         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
13539         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13540         <exampleNumber>7012345678</exampleNumber>
13541       </voip>
13542       <uan>
13543         <!-- Prefix 18 added from numbers found online. -->
13544         <nationalNumberPattern>
13545           1(?:
13546             5(?:
13547               44|
13548               66|
13549               77|
13550               88|
13551               99
13552             )|
13553             6(?:
13554               00|
13555               44|
13556               6[16]|
13557               70|
13558               88
13559             )|
13560             8(?:
13561               00|
13562               55|
13563               77|
13564               99
13565             )
13566           )\d{4}
13567         </nationalNumberPattern>
13568         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13569         <exampleNumber>15441234</exampleNumber>
13570       </uan>
13571     </territory>
13572
13573     <!-- Kuwait -->
13574     <territory id="KW" countryCode="965" internationalPrefix="00" mobileNumberPortableRegion="true">
13575       <references>
13576         <sourceUrl>http://www.itu.int/oth/T0202000073/en</sourceUrl>
13577       </references>
13578       <availableFormats>
13579         <!-- Format is from ITU. -->
13580         <numberFormat pattern="(\d{4})(\d{3,4})">
13581           <leadingDigits>[1269]</leadingDigits>
13582           <format>$1 $2</format>
13583         </numberFormat>
13584         <numberFormat pattern="(5[015]\d)(\d{5})">
13585           <leadingDigits>5</leadingDigits>
13586           <format>$1 $2</format>
13587         </numberFormat>
13588       </availableFormats>
13589       <generalDesc>
13590         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
13591         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13592       </generalDesc>
13593       <fixedLine>
13594         <nationalNumberPattern>
13595           (?:
13596             18\d|
13597             2(?:
13598               [23]\d{2}|
13599               4(?:
13600                 [1-35-9]\d|
13601                 44
13602               )|
13603               5(?:
13604                 0[034]|
13605                 [2-46]\d|
13606                 5[1-3]|
13607                 7[1-7]
13608               )
13609             )
13610           )\d{4}
13611         </nationalNumberPattern>
13612         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13613         <exampleNumber>22345678</exampleNumber>
13614       </fixedLine>
13615       <mobile>
13616         <nationalNumberPattern>
13617           (?:
13618             5(?:
13619               [05]\d|
13620               1[0-7]
13621             )|
13622             6(?:
13623               0[034679]|
13624               5[015-9]|
13625               6\d|
13626               7[067]|
13627               9[0369]
13628             )|
13629             9(?:
13630               0[09]|
13631               4[049]|
13632               55|
13633               6[069]|
13634               [79]\d|
13635               8[07-9]
13636             )
13637           )\d{5}
13638         </nationalNumberPattern>
13639         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13640         <exampleNumber>50012345</exampleNumber>
13641       </mobile>
13642       <!-- No tollFree or premiumRate information can be found. -->
13643     </territory>
13644
13645     <!-- Cayman Islands -->
13646     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
13647                internationalPrefix="011">
13648       <references>
13649         <sourceUrl>http://www.itu.int/oth/T0202000027/en</sourceUrl>
13650       </references>
13651       <generalDesc>
13652         <!-- NANPA country - uses US formatting rules -->
13653         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
13654         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13655       </generalDesc>
13656       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
13657            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
13658       <fixedLine>
13659         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
13660              as per numbers found online and their website http://www.logic.ky. -->
13661         <nationalNumberPattern>
13662           345(?:
13663             2(?:
13664               22|
13665               44
13666             )|
13667             444|
13668             6(?:
13669               23|
13670               38|
13671               40
13672             )|
13673             7(?:
13674               4[35-79]|
13675               6[6-9]|
13676               77
13677             )|
13678             8(?:
13679               00|
13680               1[45]|
13681               25|
13682               [48]8
13683             )|
13684             9(?:
13685               14|
13686               4[035-9]
13687             )
13688           )\d{4}
13689         </nationalNumberPattern>
13690         <exampleNumber>3452221234</exampleNumber>
13691       </fixedLine>
13692       <mobile>
13693         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
13694              Most central office codes that were surrendered have not been included, with the
13695              exception of 546 where numbers have been found. -->
13696         <nationalNumberPattern>
13697           345(?:
13698             32[1-9]|
13699             5(?:
13700               1[67]|
13701               2[5-7]|
13702               4[6-8]|
13703               76
13704             )|
13705             9(?:
13706               1[67]|
13707               2[3-9]|
13708               3[689]
13709             )
13710           )\d{4}
13711         </nationalNumberPattern>
13712         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13713         <exampleNumber>3453231234</exampleNumber>
13714       </mobile>
13715       <pager>
13716         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
13717         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13718         <exampleNumber>3458491234</exampleNumber>
13719       </pager>
13720       <tollFree>
13721         <nationalNumberPattern>
13722           8(?:
13723             00|
13724             44|
13725             55|
13726             66|
13727             77|
13728             88
13729           )[2-9]\d{6}
13730         </nationalNumberPattern>
13731         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13732         <exampleNumber>8002345678</exampleNumber>
13733       </tollFree>
13734       <premiumRate>
13735         <nationalNumberPattern>
13736           900[2-9]\d{6}|
13737           345976\d{4}
13738         </nationalNumberPattern>
13739         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13740         <exampleNumber>9002345678</exampleNumber>
13741       </premiumRate>
13742       <personalNumber>
13743         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
13744         <nationalNumberPattern>
13745           5(?:
13746             00|
13747             33|
13748             44|
13749             66|
13750             77
13751           )[2-9]\d{6}
13752         </nationalNumberPattern>
13753         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13754         <exampleNumber>5002345678</exampleNumber>
13755       </personalNumber>
13756     </territory>
13757
13758     <!-- Kazakhstan -->
13759     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
13760                internationalPrefix="810" nationalPrefix="8">
13761       <references>
13762         <sourceUrl>http://www.itu.int/oth/T020200006F/en</sourceUrl>
13763       </references>
13764        <!-- Formatting rules obtained from Russia. -->
13765       <generalDesc>
13766         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
13767              determining the country is faster. -->
13768         <nationalNumberPattern>
13769           (?:
13770             33\d|
13771             7\d{2}|
13772             80[09]
13773           )\d{7}
13774         </nationalNumberPattern>
13775         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13776       </generalDesc>
13777       <noInternationalDialling>
13778         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13779         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13780         <exampleNumber>7511234567</exampleNumber>
13781       </noInternationalDialling>
13782       <fixedLine>
13783         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
13784              22), which is within Kazakhstan but in fact rented and administered by Russia at the
13785              moment. -->
13786         <nationalNumberPattern>
13787           33622\d{5}|
13788           7(?:
13789             1(?:
13790               0(?:
13791                 [23]\d|
13792                 4[023]|
13793                 59|
13794                 63
13795               )|
13796               1(?:
13797                 [23]\d|
13798                 4[0-79]|
13799                 59
13800               )|
13801               2(?:
13802                 [23]\d|
13803                 59
13804               )|
13805               3(?:
13806                 2\d|
13807                 3[1-79]|
13808                 4[0-35-9]|
13809                 59
13810               )|
13811               4(?:
13812                 2\d|
13813                 3[013-79]|
13814                 4[0-8]|
13815                 5[1-79]
13816               )|
13817               5(?:
13818                 2\d|
13819                 3[1-8]|
13820                 4[1-7]|
13821                 59
13822               )|
13823               6(?:
13824                 [234]\d|
13825                 5[19]|
13826                 61
13827               )|
13828               72\d|
13829               8(?:
13830                 [27]\d|
13831                 3[1-46-9]|
13832                 4[0-5]
13833               )
13834             )|
13835             2(?:
13836               1(?:
13837                 [23]\d|
13838                 4[46-9]|
13839                 5[3469]
13840               )|
13841               2(?:
13842                 2\d|
13843                 3[0679]|
13844                 46|
13845                 5[12679]
13846               )|
13847               3(?:
13848                 [234]\d|
13849                 5[139]
13850               )|
13851               4(?:
13852                 2\d|
13853                 3[1235-9]|
13854                 59
13855               )|
13856               5(?:
13857                 [23]\d|
13858                 4[01246-8]|
13859                 59|
13860                 61
13861               )|
13862               6(?:
13863                 2\d|
13864                 3[1-9]|
13865                 4[0-4]|
13866                 59
13867               )|
13868               7(?:
13869                 [237]\d|
13870                 40|
13871                 5[279]
13872               )|
13873               8(?:
13874                 [23]\d|
13875                 4[0-3]|
13876                 59
13877               )|
13878               9(?:
13879                 2\d|
13880                 3[124578]|
13881                 59
13882               )
13883             )
13884           )\d{5}
13885         </nationalNumberPattern>
13886         <exampleNumber>7123456789</exampleNumber>
13887       </fixedLine>
13888       <mobile>
13889         <!-- Added 708 for Altel, 776 for Beeline, 747 for Tele2. -->
13890         <nationalNumberPattern>
13891           7(?:
13892             0[012578]|
13893             47|
13894             6[02-4]|
13895             7[15-8]|
13896             85
13897           )\d{7}
13898         </nationalNumberPattern>
13899         <exampleNumber>7710009998</exampleNumber>
13900       </mobile>
13901       <tollFree>
13902         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
13903         <exampleNumber>8001234567</exampleNumber>
13904       </tollFree>
13905       <premiumRate>
13906         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
13907         <exampleNumber>8091234567</exampleNumber>
13908       </premiumRate>
13909       <voip>
13910         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13911         <exampleNumber>7511234567</exampleNumber>
13912       </voip>
13913     </territory>
13914
13915     <!-- Lao People's Dem. Rep. -->
13916     <territory id="LA" countryCode="856" internationalPrefix="00"
13917                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13918       <references>
13919         <!-- Seems incomplete -->
13920         <sourceUrl>http://www.itu.int/oth/T0202000075/en</sourceUrl>
13921         <sourceUrl>http://en.wikipedia.org/wiki/+856</sourceUrl>
13922       </references>
13923       <availableFormats>
13924         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
13925           <leadingDigits>20</leadingDigits>
13926           <format>$1 $2 $3 $4</format>
13927         </numberFormat>
13928         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
13929           <leadingDigits>
13930             2[13]|
13931             3[14]|
13932             [4-8]
13933           </leadingDigits>
13934           <format>$1 $2 $3</format>
13935         </numberFormat>
13936         <numberFormat pattern="(30)(\d{2})(\d{2})(\d{3})">
13937           <leadingDigits>30</leadingDigits>
13938           <format>$1 $2 $3 $4</format>
13939         </numberFormat>
13940       </availableFormats>
13941       <generalDesc>
13942         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
13943         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13944       </generalDesc>
13945       <fixedLine>
13946         <!-- The Lonely Planet says that newer WIN phones (fixed phones without a physical landline)
13947              start with 030 (and are longer). There are plenty of examples online. -->
13948         <nationalNumberPattern>
13949           (?:
13950             2[13]|
13951             3(?:
13952               0\d|
13953               [14]
13954             )|
13955             [5-7][14]|
13956             41|
13957             8[1468]
13958           )\d{6}
13959         </nationalNumberPattern>
13960         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13961         <exampleNumber>21212862</exampleNumber>
13962       </fixedLine>
13963       <mobile>
13964         <!-- Adding 202[89], 205[89], 207[68] and 209[15-7] from numbers found online. -->
13965         <nationalNumberPattern>
13966           20(?:
13967             2[2389]|
13968             5[4-689]|
13969             7[6-8]|
13970             9[15-9]
13971           )\d{6}
13972         </nationalNumberPattern>
13973         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13974         <exampleNumber>2023123456</exampleNumber>
13975       </mobile>
13976       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
13977     </territory>
13978
13979     <!-- Lebanon -->
13980     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
13981       <references>
13982         <sourceUrl>http://www.itu.int/oth/T0202000077/en</sourceUrl>
13983         <sourceUrl>http://en.wikipedia.org/wiki/%2B961</sourceUrl>
13984       </references>
13985       <availableFormats>
13986         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
13987           <leadingDigits>
13988             [13-6]|
13989             7(?:
13990               [2-579]|
13991               62|
13992               8[0-7]
13993             )|
13994             [89][2-9]
13995             </leadingDigits>
13996           <format>$1 $2 $3</format>
13997         </numberFormat>
13998         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
13999           <leadingDigits>
14000             [89][01]|
14001             7(?:
14002               [019]|
14003               6[013-9]|
14004               8[89]
14005             )
14006           </leadingDigits>
14007           <format>$1 $2 $3</format>
14008         </numberFormat>
14009       </availableFormats>
14010       <generalDesc>
14011         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
14012         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14013       </generalDesc>
14014       <fixedLine>
14015         <!-- The ITU document from October 2012 seems to have accidentally dropped the 79 prefix for
14016              fixed-line numbers, which had been in the version from July 2012. We consider these
14017              valid since we successfully dialed such a number in July 2014. -->
14018         <nationalNumberPattern>
14019           (?:
14020             [14-6]\d{2}|
14021             7(?:
14022               [2-579]\d|
14023               62|
14024               8[0-7]
14025             )|
14026             [89][2-9]\d
14027           )\d{4}
14028         </nationalNumberPattern>
14029         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14030         <exampleNumber>1123456</exampleNumber>
14031       </fixedLine>
14032       <mobile>
14033         <!-- We only validate the first three digits here, since the ranges are growing rapidly.
14034              The 79[02-9] prefixes were added from bug reports and numbers found online. -->
14035         <nationalNumberPattern>
14036           (?:
14037             3\d|
14038             7(?:
14039               [019]\d|
14040               6[013-9]|
14041               8[89]
14042             )
14043           )\d{5}
14044         </nationalNumberPattern>
14045         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14046         <exampleNumber>71123456</exampleNumber>
14047       </mobile>
14048       <premiumRate>
14049         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
14050         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14051         <exampleNumber>90123456</exampleNumber>
14052       </premiumRate>
14053       <sharedCost>
14054         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
14055         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14056         <exampleNumber>80123456</exampleNumber>
14057       </sharedCost>
14058     </territory>
14059
14060     <!-- Saint Lucia -->
14061     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
14062                internationalPrefix="011">
14063       <references>
14064         <sourceUrl>http://www.itu.int/oth/T02020000B1/en</sourceUrl>
14065       </references>
14066       <generalDesc>
14067         <!-- NANPA country - uses US formatting rules -->
14068         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
14069         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
14070       </generalDesc>
14071       <fixedLine>
14072         <!-- Adding 430 since numbers have been found with these prefixes online. -->
14073         <nationalNumberPattern>
14074           758(?:
14075             4(?:
14076               30|
14077               5[0-9]|
14078               6[2-9]|
14079               8[0-2]
14080             )|
14081             57[0-2]|
14082             638
14083           )\d{4}
14084         </nationalNumberPattern>
14085         <exampleNumber>7584305678</exampleNumber>
14086       </fixedLine>
14087       <mobile>
14088         <nationalNumberPattern>
14089           758(?:
14090             28[4-7]|
14091             384|
14092             4(?:
14093               6[01]|
14094               8[4-9]
14095             )|
14096             5(?:
14097               1[89]|
14098               20|
14099               84
14100             )|
14101             7(?:
14102               1[2-9]|
14103               2[0-8]
14104             )
14105           )\d{4}
14106         </nationalNumberPattern>
14107         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14108         <exampleNumber>7582845678</exampleNumber>
14109       </mobile>
14110       <tollFree>
14111         <nationalNumberPattern>
14112           8(?:
14113             00|
14114             44|
14115             55|
14116             66|
14117             77|
14118             88
14119           )[2-9]\d{6}
14120         </nationalNumberPattern>
14121         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14122         <exampleNumber>8002123456</exampleNumber>
14123       </tollFree>
14124       <premiumRate>
14125         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
14126         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14127         <exampleNumber>9002123456</exampleNumber>
14128       </premiumRate>
14129       <personalNumber>
14130         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
14131         <nationalNumberPattern>
14132           5(?:
14133             00|
14134             33|
14135             44|
14136             66|
14137             77
14138           )[2-9]\d{6}
14139         </nationalNumberPattern>
14140         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14141         <exampleNumber>5002345678</exampleNumber>
14142       </personalNumber>
14143     </territory>
14144
14145     <!-- Liechtenstein -->
14146     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
14147     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
14148       <references>
14149         <sourceUrl>http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm</sourceUrl>
14150       </references>
14151       <availableFormats>
14152         <!-- Some different patterns for tollfree and shared cost numbers may be found by searching
14153              for "Mehrwertnummer" at http://www.telecom.li. -->
14154         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
14155           <leadingDigits>
14156             [23]|
14157             7[3-57-9]|
14158             87
14159           </leadingDigits>
14160           <format>$1 $2 $3</format>
14161         </numberFormat>
14162         <numberFormat pattern="(6\d)(\d{3})(\d{3})">
14163           <leadingDigits>6</leadingDigits>
14164           <format>$1 $2 $3</format>
14165         </numberFormat>
14166         <numberFormat pattern="(6[567]\d)(\d{3})(\d{3})">
14167           <leadingDigits>6[567]</leadingDigits>
14168           <format>$1 $2 $3</format>
14169         </numberFormat>
14170         <numberFormat pattern="(69)(7\d{2})(\d{4})">
14171           <leadingDigits>697</leadingDigits>
14172           <format>$1 $2 $3</format>
14173         </numberFormat>
14174         <numberFormat pattern="([7-9]0\d)(\d{2})(\d{2})">
14175           <leadingDigits>[7-9]0</leadingDigits>
14176           <format>$1 $2 $3</format>
14177         </numberFormat>
14178         <!-- Numbers of the form [89]00\d{6} are Swiss numbers callable from Liechtenstein. -->
14179         <numberFormat pattern="([89]0\d)(\d{2})(\d{2})(\d{2})"
14180           nationalPrefixFormattingRule="$NP$FG">
14181           <leadingDigits>[89]0</leadingDigits>
14182           <format>$1 $2 $3 $4</format>
14183         </numberFormat>
14184       </availableFormats>
14185       <generalDesc>
14186         <nationalNumberPattern>
14187           6\d{8}|
14188           [23789]\d{6}
14189         </nationalNumberPattern>
14190         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14191       </generalDesc>
14192       <fixedLine>
14193         <nationalNumberPattern>
14194           (?:
14195             2(?:
14196               01|
14197               1[27]|
14198               3\d|
14199               6[02-578]|
14200               96
14201             )|
14202             3(?:
14203               7[0135-7]|
14204               8[048]|
14205               9[0269]
14206             )
14207           )\d{4}
14208         </nationalNumberPattern>
14209         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14210         <exampleNumber>2345678</exampleNumber>
14211       </fixedLine>
14212       <mobile>
14213         <nationalNumberPattern>
14214           6(?:
14215             51[01]|
14216             6(?:
14217               [01][0-4]|
14218               2[016-9]|
14219               88
14220             )|
14221             710
14222           )\d{5}|
14223           7(?:
14224             36|
14225             4[25]|
14226             56|
14227             [7-9]\d
14228           )\d{4}
14229         </nationalNumberPattern>
14230         <exampleNumber>661234567</exampleNumber>
14231       </mobile>
14232       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
14233            even though it doesn't appear in the plan. -->
14234       <tollFree>
14235         <nationalNumberPattern>
14236           80(?:
14237             0(?:
14238               2[238]|
14239               79
14240             )|
14241             9\d{2}
14242           )\d{2}
14243         </nationalNumberPattern>
14244         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14245         <exampleNumber>8002222</exampleNumber>
14246       </tollFree>
14247       <premiumRate>
14248         <nationalNumberPattern>
14249           90(?:
14250             0(?:
14251               2[278]|
14252               79
14253             )|
14254             1(?:
14255               23|
14256               3[012]
14257             )|
14258             6(?:
14259               4\d|
14260               6[0126]
14261             )
14262           )\d{2}
14263         </nationalNumberPattern>
14264         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14265         <exampleNumber>9002222</exampleNumber>
14266       </premiumRate>
14267       <uan>
14268         <nationalNumberPattern>
14269           87(?:
14270             0[128]|
14271             7[0-4]
14272           )\d{3}
14273         </nationalNumberPattern>
14274         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14275         <exampleNumber>8770123</exampleNumber>
14276       </uan>
14277       <voicemail>
14278         <nationalNumberPattern>
14279           697(?:
14280             [35]6|
14281             4[25]|
14282             [7-9]\d
14283           )\d{4}
14284         </nationalNumberPattern>
14285         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14286         <exampleNumber>697361234</exampleNumber>
14287       </voicemail>
14288       <personalNumber>
14289         <nationalNumberPattern>701\d{4}</nationalNumberPattern>
14290         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14291         <exampleNumber>7011234</exampleNumber>
14292       </personalNumber>
14293     </territory>
14294
14295     <!-- Sri Lanka -->
14296     <territory id="LK" countryCode="94" internationalPrefix="00"
14297                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14298       <references>
14299         <sourceUrl>http://en.wikipedia.org/wiki/%2B94</sourceUrl>
14300         <sourceUrl>http://www.itu.int/oth/T02020000C3/en</sourceUrl>
14301       </references>
14302       <availableFormats>
14303         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
14304           <leadingDigits>[1-689]</leadingDigits>
14305           <format>$1 $2 $3</format>
14306         </numberFormat>
14307         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14308           <leadingDigits>7</leadingDigits>
14309           <format>$1 $2 $3</format>
14310         </numberFormat>
14311       </availableFormats>
14312       <generalDesc>
14313         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
14314         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14315       </generalDesc>
14316       <fixedLine>
14317         <nationalNumberPattern>
14318           (?:
14319             [189]1|
14320             2[13-7]|
14321             3[1-8]|
14322             4[157]|
14323             5[12457]|
14324             6[35-7]
14325           )[2-57]\d{6}
14326         </nationalNumberPattern>
14327         <exampleNumber>112345678</exampleNumber>
14328       </fixedLine>
14329       <mobile>
14330         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
14331         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
14332         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14333         <exampleNumber>712345678</exampleNumber>
14334       </mobile>
14335     </territory>
14336
14337     <!-- Liberia -->
14338     <territory id="LR" countryCode="231" internationalPrefix="00"
14339                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14340       <references>
14341         <sourceUrl>http://www.itu.int/oth/T0202000079/en</sourceUrl>
14342       </references>
14343       <availableFormats>
14344         <!-- Formatting from Ministry of Agriculture,
14345         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
14346         <numberFormat pattern="(2\d)(\d{3})(\d{3})">
14347           <leadingDigits>2</leadingDigits>
14348           <format>$1 $2 $3</format>
14349         </numberFormat>
14350         <numberFormat pattern="([79]\d{2})(\d{3})(\d{3})">
14351           <leadingDigits>[79]</leadingDigits>
14352           <format>$1 $2 $3</format>
14353         </numberFormat>
14354         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
14355           <leadingDigits>[4-6]</leadingDigits>
14356           <format>$1 $2 $3</format>
14357         </numberFormat>
14358         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14359           <leadingDigits>[38]</leadingDigits>
14360           <format>$1 $2 $3</format>
14361         </numberFormat>
14362       </availableFormats>
14363       <generalDesc>
14364         <nationalNumberPattern>
14365           2\d{7}|
14366           [37-9]\d{8}|
14367           [45]\d{6}
14368         </nationalNumberPattern>
14369         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14370       </generalDesc>
14371       <fixedLine>
14372         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14373         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14374         <exampleNumber>21234567</exampleNumber>
14375       </fixedLine>
14376       <mobile>
14377         <!-- West Africa Telecom seems to be a mobile company from their website. Adding Atlantic
14378              Wireless from the document, even though from online news reports it is not clear they
14379              are still operating. -->
14380         <nationalNumberPattern>
14381           (?:
14382             330\d|
14383             4[67]|
14384             5\d|
14385             77\d{2}|
14386             88\d{2}|
14387             994\d
14388           )\d{5}
14389         </nationalNumberPattern>
14390         <exampleNumber>770123456</exampleNumber>
14391       </mobile>
14392       <premiumRate>
14393         <!-- Telelinks and Interactive media service are listed under premium rate. -->
14394         <nationalNumberPattern>90[03]\d{6}</nationalNumberPattern>
14395         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14396         <exampleNumber>900123456</exampleNumber>
14397       </premiumRate>
14398       <voip>
14399         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
14400              say they are involved in the VoIP sector. Adding WASSCOM and Atlantic Realty &
14401              Investment Corporation here as well; no numbers can be found online, nor company
14402              information. -->
14403         <nationalNumberPattern>
14404           332(?:
14405             0[02]|
14406             5\d
14407           )\d{4}
14408         </nationalNumberPattern>
14409         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14410         <exampleNumber>332001234</exampleNumber>
14411       </voip>
14412     </territory>
14413
14414     <!-- Lesotho -->
14415     <territory id="LS" countryCode="266" internationalPrefix="00">
14416       <references>
14417         <sourceUrl>http://www.itu.int/oth/T0202000078/en</sourceUrl>
14418       </references>
14419       <availableFormats>
14420         <!-- Formatting following yellow pages: http://www.yellowpages.co.ls -->
14421         <numberFormat pattern="(\d{4})(\d{4})">
14422           <format>$1 $2</format>
14423         </numberFormat>
14424       </availableFormats>
14425       <generalDesc>
14426         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
14427         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14428       </generalDesc>
14429       <fixedLine>
14430         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14431         <exampleNumber>22123456</exampleNumber>
14432       </fixedLine>
14433       <mobile>
14434         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
14435         <exampleNumber>50123456</exampleNumber>
14436       </mobile>
14437       <tollFree>
14438         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
14439         <exampleNumber>80021234</exampleNumber>
14440       </tollFree>
14441     </territory>
14442
14443     <!-- Lithuania -->
14444     <!-- Note that Lithuania is switching to a national prefix of 0. We support
14445          both 0 and 8 when parsing until this switch is complete. -->
14446     <territory id="LT" countryCode="370" internationalPrefix="00"
14447                nationalPrefix="8" nationalPrefixForParsing="[08]"
14448                nationalPrefixFormattingRule="($NP-$FG)"
14449                nationalPrefixOptionalWhenFormatting="true" mobileNumberPortableRegion="true">
14450       <references>
14451         <sourceUrl>http://www.itu.int/oth/T020200007C/en</sourceUrl>
14452       </references>
14453       <!-- National Prefix formatting rule from http://www.yellowpages.lt -->
14454       <availableFormats>
14455         <!-- Two-digit area codes -->
14456         <numberFormat pattern="([34]\d)(\d{6})">
14457           <leadingDigits>
14458             37|
14459             4(?:
14460               1|
14461               5[45]|
14462               6[2-4]
14463             )
14464           </leadingDigits>
14465           <format>$1 $2</format>
14466         </numberFormat>
14467         <!-- Three-digit area codes -->
14468         <numberFormat pattern="([3-6]\d{2})(\d{5})">
14469           <leadingDigits>
14470             3[148]|
14471             4(?:
14472               [24]|
14473               6[09]
14474             )|
14475             528|
14476             6
14477           </leadingDigits>
14478           <format>$1 $2</format>
14479         </numberFormat>
14480         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
14481           nationalPrefixFormattingRule="$NP $FG">
14482           <leadingDigits>[7-9]</leadingDigits>
14483           <format>$1 $2 $3</format>
14484         </numberFormat>
14485         <numberFormat pattern="(5)(2\d{2})(\d{4})">
14486           <leadingDigits>52[0-79]</leadingDigits>
14487           <format>$1 $2 $3</format>
14488         </numberFormat>
14489       </availableFormats>
14490       <generalDesc>
14491         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
14492         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14493       </generalDesc>
14494       <fixedLine>
14495         <nationalNumberPattern>
14496           (?:
14497             3[1478]|
14498             4[124-6]|
14499             52
14500           )\d{6}
14501         </nationalNumberPattern>
14502         <exampleNumber>31234567</exampleNumber>
14503       </fixedLine>
14504       <mobile>
14505         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
14506         <exampleNumber>61234567</exampleNumber>
14507       </mobile>
14508       <tollFree>
14509         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14510         <exampleNumber>80012345</exampleNumber>
14511       </tollFree>
14512       <premiumRate>
14513         <nationalNumberPattern>
14514           9(?:
14515             0[0239]|
14516             10
14517           )\d{5}
14518         </nationalNumberPattern>
14519         <exampleNumber>90012345</exampleNumber>
14520       </premiumRate>
14521       <personalNumber>
14522         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
14523         <exampleNumber>70012345</exampleNumber>
14524       </personalNumber>
14525       <sharedCost>
14526         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14527         <exampleNumber>80812345</exampleNumber>
14528       </sharedCost>
14529       <uan>
14530         <!-- Including government service numbers here too. -->
14531         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
14532         <exampleNumber>70712345</exampleNumber>
14533       </uan>
14534     </territory>
14535
14536     <!-- Luxembourg -->
14537     <territory id="LU" countryCode="352" internationalPrefix="00"
14538                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
14539                carrierCodeFormattingRule="$CC $FG" mobileNumberPortableRegion="true">
14540       <references>
14541         <sourceUrl>http://www.ilr.public.lu/communications_electroniques/numerotation/index.html</sourceUrl>
14542       </references>
14543       <availableFormats>
14544         <!-- Patterns overlap because of variable number length. -->
14545         <numberFormat pattern="(\d{2})(\d{3})">
14546           <leadingDigits>
14547             [2-5]|
14548             7[1-9]|
14549             [89](?:
14550               [1-9]|
14551               0[2-9]
14552             )
14553           </leadingDigits>
14554           <format>$1 $2</format>
14555         </numberFormat>
14556         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
14557           <leadingDigits>
14558             [2-5]|
14559             7[1-9]|
14560             [89](?:
14561               [1-9]|
14562               0[2-9]
14563             )
14564           </leadingDigits>
14565           <format>$1 $2 $3</format>
14566         </numberFormat>
14567         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
14568           <leadingDigits>20</leadingDigits>
14569           <format>$1 $2 $3</format>
14570         </numberFormat>
14571         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
14572              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
14573              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
14574              -->
14575         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
14576           <leadingDigits>
14577             2(?:
14578               [0367]|
14579               4[3-8]
14580             )
14581           </leadingDigits>
14582           <format>$1 $2 $3 $4</format>
14583         </numberFormat>
14584         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
14585           <leadingDigits>20</leadingDigits>
14586           <format>$1 $2 $3 $4</format>
14587         </numberFormat>
14588         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
14589           <leadingDigits>
14590             2(?:
14591               [0367]|
14592               4[3-8]
14593             )
14594           </leadingDigits>
14595           <format>$1 $2 $3 $4 $5</format>
14596         </numberFormat>
14597         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
14598           <leadingDigits>
14599             2(?:
14600               [12589]|
14601               4[12]
14602             )|
14603             [3-5]|
14604             7[1-9]|
14605             [89](?:
14606               [1-9]|
14607               0[2-9]
14608             )
14609           </leadingDigits>
14610           <format>$1 $2 $3 $4</format>
14611         </numberFormat>
14612         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
14613           <leadingDigits>
14614             [89]0[01]|
14615             70
14616           </leadingDigits>
14617           <format>$1 $2 $3</format>
14618         </numberFormat>
14619         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14620           <leadingDigits>6</leadingDigits>
14621           <format>$1 $2 $3</format>
14622         </numberFormat>
14623       </availableFormats>
14624       <generalDesc>
14625         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
14626              necessary since the numbers have a variable number length. -->
14627         <nationalNumberPattern>
14628           [24-9]\d{3,10}|
14629           3(?:
14630             [0-46-9]\d{2,9}|
14631             5[013-9]\d{1,8}
14632           )
14633         </nationalNumberPattern>
14634         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
14635       </generalDesc>
14636       <fixedLine>
14637         <!-- Even though 20 is listed in the fixed-line plan, other documentation clarify that it is
14638              for VOIP. Furthermore, even though the plan says that numbers beginning with 2[346-8]
14639              must be exactly 8 digits, from information found online it seems that they can actually
14640              be 6 or 7 digits long. -->
14641         <nationalNumberPattern>
14642           (?:
14643             2(?:
14644               [259]\d{2,9}|
14645               [346-8]\d{4,6}
14646             )|
14647             (?:
14648               [3457]\d{2}|
14649               8(?:
14650                 0[2-9]|
14651                 [13-9]\d
14652               )|
14653               9(?:
14654                 0[89]|
14655                 [2-579]\d
14656               )
14657             )\d{1,8}
14658           )
14659         </nationalNumberPattern>
14660         <exampleNumber>27123456</exampleNumber>
14661       </fixedLine>
14662       <mobile>
14663         <nationalNumberPattern>6[2679][18]\d{6}</nationalNumberPattern>
14664         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14665         <exampleNumber>628123456</exampleNumber>
14666       </mobile>
14667       <tollFree>
14668         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14669         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14670         <exampleNumber>80012345</exampleNumber>
14671       </tollFree>
14672       <premiumRate>
14673         <nationalNumberPattern>90[01]\d{5}</nationalNumberPattern>
14674         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14675         <exampleNumber>90012345</exampleNumber>
14676       </premiumRate>
14677       <sharedCost>
14678         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
14679         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14680         <exampleNumber>80112345</exampleNumber>
14681       </sharedCost>
14682       <personalNumber>
14683         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
14684         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14685         <exampleNumber>70123456</exampleNumber>
14686       </personalNumber>
14687       <voip>
14688         <!-- The document says the normal length will be 8 digits, but many numbers found online
14689              deviate from that. The prefixes from the following document have been added:
14690              http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
14691              201 has also been added since a diallable number was found online, and it says in
14692              http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
14693              numbers will be issued that begin with 200, numbers beginning with 201 will be issued
14694              one at a time, and 202-209 in blocks. -->
14695         <nationalNumberPattern>
14696           20(?:
14697             1\d{5}|
14698             [2-689]\d{1,7}
14699           )
14700         </nationalNumberPattern>
14701         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
14702         <exampleNumber>20201234</exampleNumber>
14703       </voip>
14704     </territory>
14705
14706     <!-- Latvia -->
14707     <territory id="LV" countryCode="371" internationalPrefix="00" mobileNumberPortableRegion="true">
14708       <references>
14709         <sourceUrl>http://www.itu.int/oth/T0202000076/en</sourceUrl>
14710         <sourceUrl>http://en.wikipedia.org/wiki/+371</sourceUrl>
14711       </references>
14712       <availableFormats>
14713         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
14714           <format>$1 $2 $3</format>
14715         </numberFormat>
14716       </availableFormats>
14717       <generalDesc>
14718         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
14719         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14720       </generalDesc>
14721       <fixedLine>
14722         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
14723         <exampleNumber>63123456</exampleNumber>
14724       </fixedLine>
14725       <mobile>
14726         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14727         <exampleNumber>21234567</exampleNumber>
14728       </mobile>
14729       <tollFree>
14730         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
14731         <exampleNumber>80123456</exampleNumber>
14732       </tollFree>
14733       <premiumRate>
14734         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14735         <exampleNumber>90123456</exampleNumber>
14736       </premiumRate>
14737       <sharedCost>
14738         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
14739         <exampleNumber>81123456</exampleNumber>
14740       </sharedCost>
14741     </territory>
14742
14743     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
14744     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
14745          and itu.int. The new area codes are on the Arabic website of the main telecommunication
14746          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
14747          using 096 (they are allowing customers to register numbers currently), so their code has
14748          also been added. -->
14749     <territory id="LY" countryCode="218" internationalPrefix="00"
14750                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14751       <references>
14752         <sourceUrl>http://hlc.ly/price.php</sourceUrl>
14753       </references>
14754       <availableFormats>
14755         <numberFormat pattern="([25679]\d)(\d{7})">
14756           <format>$1-$2</format>
14757         </numberFormat>
14758       </availableFormats>
14759       <generalDesc>
14760         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
14761         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14762       </generalDesc>
14763       <fixedLine>
14764         <nationalNumberPattern>
14765           (?:
14766             2[1345]|
14767             5[1347]|
14768             6[123479]|
14769             71
14770           )\d{7}
14771         </nationalNumberPattern>
14772         <exampleNumber>212345678</exampleNumber>
14773       </fixedLine>
14774       <mobile>
14775         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
14776              where SMS messages have been apparently successfully received. -->
14777         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
14778         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14779         <exampleNumber>912345678</exampleNumber>
14780       </mobile>
14781     </territory>
14782
14783     <!-- Morocco -->
14784     <!-- Shares formatting and some metadata with Western Sahara. -->
14785     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
14786                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true"
14787                mobileNumberPortableRegion="true">
14788       <references>
14789         <sourceUrl>http://www.itu.int/oth/T0202000090/en</sourceUrl>
14790         <sourceUrl>http://en.wikipedia.org/wiki/+212</sourceUrl>
14791       </references>
14792       <availableFormats>
14793         <numberFormat pattern="([56]\d{2})(\d{6})">
14794           <leadingDigits>
14795             5(?:
14796               2[015-7]|
14797               3[0-4]
14798             )|
14799             6
14800           </leadingDigits>
14801           <format>$1-$2</format>
14802         </numberFormat>
14803         <numberFormat pattern="([58]\d{3})(\d{5})">
14804           <leadingDigits>
14805             5(?:
14806               2[2-489]|
14807               3[5-9]
14808             )|
14809             892
14810           </leadingDigits>
14811           <leadingDigits>
14812             5(?:
14813               2(?:
14814                 [2-48]|
14815                 90
14816               )|
14817               3(?:
14818                 [5-79]|
14819                 80
14820               )
14821             )|
14822             892
14823           </leadingDigits>
14824           <format>$1-$2</format>
14825         </numberFormat>
14826         <numberFormat pattern="(5\d{4})(\d{4})">
14827           <leadingDigits>
14828             5(?:
14829               29|
14830               38
14831             )
14832           </leadingDigits>
14833           <leadingDigits>
14834             5(?:
14835               29|
14836               38
14837             )[89]
14838           </leadingDigits>
14839           <format>$1-$2</format>
14840         </numberFormat>
14841         <numberFormat pattern="(8[09])(\d{7})">
14842           <leadingDigits>
14843             8(?:
14844               0|
14845               9[013-9]
14846             )
14847           </leadingDigits>
14848           <format>$1-$2</format>
14849         </numberFormat>
14850       </availableFormats>
14851       <generalDesc>
14852         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
14853         <!-- Closed numbering plan. -->
14854         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14855       </generalDesc>
14856       <fixedLine>
14857         <nationalNumberPattern>
14858           5(?:
14859             2(?:
14860               (?:
14861                 [015-7]\d|
14862                 2[2-9]|
14863                 3[2-57]|
14864                 4[2-8]|
14865                 8[235-7]
14866               )\d|
14867               9(?:
14868                 0\d|
14869                 [89]0
14870               )
14871             )|
14872             3(?:
14873               (?:
14874                 [0-4]\d|
14875                 [57][2-9]|
14876                 6[235-8]|
14877                 9[3-9]
14878               )\d|
14879               8(?:
14880                 0\d|
14881                 [89]0
14882               )
14883             )
14884           )\d{4}
14885         </nationalNumberPattern>
14886         <exampleNumber>520123456</exampleNumber>
14887       </fixedLine>
14888       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
14889       <mobile>
14890         <!-- http://www.anrt.ma/sites/default/files/Blocs_de_numeros_par_operateur.pdf
14891              Prefixes 69[0136] added based on numbers found online. -->
14892         <nationalNumberPattern>
14893           6(?:
14894             0[0-8]|
14895             [12-79]\d|
14896             8[01]
14897           )\d{6}
14898         </nationalNumberPattern>
14899         <exampleNumber>650123456</exampleNumber>
14900       </mobile>
14901       <tollFree>
14902         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
14903         <exampleNumber>801234567</exampleNumber>
14904       </tollFree>
14905       <premiumRate>
14906         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
14907         <exampleNumber>891234567</exampleNumber>
14908       </premiumRate>
14909     </territory>
14910
14911     <!-- Monaco -->
14912     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
14913          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
14914          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
14915     <territory id="MC" countryCode="377" internationalPrefix="00"
14916                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14917       <references>
14918         <sourceUrl>http://www.itu.int/oth/T020200008D/en</sourceUrl>
14919       </references>
14920       <availableFormats>
14921         <!-- Following formatting found online rather than in the ITU document example. -->
14922         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
14923           <leadingDigits>9</leadingDigits>
14924           <format>$1 $2 $3 $4</format>
14925         </numberFormat>
14926         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14927           <leadingDigits>4</leadingDigits>
14928           <format>$1 $2 $3</format>
14929         </numberFormat>
14930         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
14931           <leadingDigits>6</leadingDigits>
14932           <format>$1 $2 $3 $4 $5</format>
14933         </numberFormat>
14934         <numberFormat pattern="(\d{3})(\d{3})(\d{2})" nationalPrefixFormattingRule="$FG">
14935           <leadingDigits>8</leadingDigits>
14936           <format>$1 $2 $3</format>
14937         </numberFormat>
14938       </availableFormats>
14939       <generalDesc>
14940         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
14941         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
14942       </generalDesc>
14943       <noInternationalDialling>
14944         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
14945         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14946       </noInternationalDialling>
14947       <fixedLine>
14948         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
14949         <nationalNumberPattern>
14950           870\d{5}|
14951           9[2-47-9]\d{6}
14952         </nationalNumberPattern>
14953         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14954         <exampleNumber>99123456</exampleNumber>
14955       </fixedLine>
14956       <mobile>
14957         <!-- 4X mobile numbers are actually used by Kosovo. -->
14958         <nationalNumberPattern>
14959           6\d{8}|
14960           4(?:
14961             4\d|
14962             5[2-9]
14963           )\d{5}
14964         </nationalNumberPattern>
14965         <exampleNumber>612345678</exampleNumber>
14966       </mobile>
14967       <tollFree>
14968         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14969         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14970         <exampleNumber>90123456</exampleNumber>
14971       </tollFree>
14972     </territory>
14973
14974     <!-- Moldova, Rep. of -->
14975     <territory id="MD" countryCode="373" internationalPrefix="00"
14976                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
14977                mobileNumberPortableRegion="true">
14978       <references>
14979         <sourceUrl>http://www.itu.int/oth/T020200008C/en</sourceUrl>
14980         <!-- Announcements -->
14981         <sourceUrl>http://anrceti.md/fileupload/58</sourceUrl>
14982         <!-- Mobile ranges -->
14983         <sourceUrl>http://en.anrceti.md/resurse_numerotare_tel_mobila</sourceUrl>
14984       </references>
14985       <availableFormats>
14986         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
14987           <leadingDigits>
14988             22|
14989             3
14990           </leadingDigits>
14991           <format>$1 $2 $3</format>
14992         </numberFormat>
14993         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
14994           <leadingDigits>
14995             2[13-79]|
14996             [5-7]
14997           </leadingDigits>
14998           <format>$1 $2 $3</format>
14999         </numberFormat>
15000         <numberFormat pattern="([89]\d{2})(\d{5})">
15001           <leadingDigits>[89]</leadingDigits>
15002           <format>$1 $2</format>
15003         </numberFormat>
15004       </availableFormats>
15005       <generalDesc>
15006         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
15007         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15008       </generalDesc>
15009       <fixedLine>
15010         <nationalNumberPattern>
15011           (?:
15012             2(?:
15013               1[0569]|
15014               2\d|
15015               3[015-7]|
15016               4[1-46-9]|
15017               5[0-24689]|
15018               6[2-589]|
15019               7[1-37]|
15020               9[1347-9]
15021             )|
15022             5(?:
15023               33|
15024               5[257]
15025             )
15026           )\d{5}
15027         </nationalNumberPattern>
15028         <exampleNumber>22212345</exampleNumber>
15029       </fixedLine>
15030       <mobile>
15031         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
15032         <nationalNumberPattern>
15033           (?:
15034             562\d|
15035             6(?:
15036               [089]\d{2}|
15037               1[01]\d|
15038               21\d|
15039               50\d|
15040               7(?:
15041                 [1-6]\d|
15042                 7[0-4]
15043               )
15044             )|
15045             7(?:
15046               6[07]|
15047               7[457-9]|
15048               [89]\d
15049             )\d
15050           )\d{4}
15051         </nationalNumberPattern>
15052         <exampleNumber>65012345</exampleNumber>
15053       </mobile>
15054       <tollFree>
15055         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15056         <exampleNumber>80012345</exampleNumber>
15057       </tollFree>
15058       <premiumRate>
15059         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
15060         <exampleNumber>90012345</exampleNumber>
15061       </premiumRate>
15062       <!-- Information came from en.anrceti.md/node/81 -->
15063       <sharedCost>
15064         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
15065         <exampleNumber>80812345</exampleNumber>
15066       </sharedCost>
15067       <uan>
15068         <!-- Includes numbers used for access to different transport directory services of general
15069              interest, since these are charged at the same rate as fixed-line numbers. -->
15070         <nationalNumberPattern>
15071           8(?:
15072             03|
15073             14
15074           )\d{5}
15075         </nationalNumberPattern>
15076         <exampleNumber>80312345</exampleNumber>
15077       </uan>
15078       <voip>
15079         <!-- Used for "nomadic numbers". -->
15080         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
15081         <exampleNumber>30123456</exampleNumber>
15082       </voip>
15083     </territory>
15084
15085     <!-- Montenegro -->
15086     <!-- According to EKIP, the detailed phone number assignments are published on their
15087          website (regulation:
15088          http://www.ekip.me/download/Law%20on%20Electronic%20Communications%20(updated)%204.9.2013%20(1)nova%20verzija.pdf
15089          ). Thus ITU updates always need to be combined with the information at the below ekip.me source URL. -->
15090     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
15091                nationalPrefixFormattingRule="$NP$FG">
15092       <references>
15093         <sourceUrl>http://www.itu.int/oth/T02020000DA/en</sourceUrl>
15094         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro</sourceUrl>
15095         <sourceUrl>http://www.ekip.me/numeracija/dodijeljena.php</sourceUrl>
15096       </references>
15097       <availableFormats>
15098          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15099           <leadingDigits>[2-57-9]|6[036-9]</leadingDigits>
15100           <leadingDigits>
15101             [2-57-9]|
15102             6(?:
15103               [03689]|
15104               7(?:
15105                 [0-8]|
15106                 9[3-9]
15107               )
15108             )
15109           </leadingDigits>
15110           <format>$1 $2 $3</format>
15111         </numberFormat>
15112         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
15113           <leadingDigits>679</leadingDigits>
15114           <leadingDigits>679[0-2]</leadingDigits>
15115           <format>$1 $2 $3 $4</format>
15116         </numberFormat>
15117       </availableFormats>
15118       <generalDesc>
15119         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
15120         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
15121       </generalDesc>
15122       <fixedLine>
15123         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
15124              The valid options for the third digit were from
15125              http://www.ekip.me/numeracija/dodijeljena.php -->
15126         <nationalNumberPattern>
15127           (?:
15128             20[2-8]|
15129             3(?:
15130               0[2-7]|
15131               [12][35-7]|
15132               3[4-7]
15133             )|
15134             4(?:
15135               0[2367]|
15136               1[267]
15137             )|
15138             5(?:
15139               0[467]|
15140               1[267]|
15141               2[367]
15142             )
15143           )\d{5}
15144         </nationalNumberPattern>
15145         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15146         <exampleNumber>30234567</exampleNumber>
15147       </fixedLine>
15148       <mobile>
15149         <!-- Mobile numbers start with 600, 632, 661, 67, 68 or 69. -->
15150         <nationalNumberPattern>
15151           6(?:
15152             00\d|
15153             32\d|
15154             [89]\d{2}|
15155             61\d|
15156             7(?:
15157               [0-8]\d|
15158               9(?:
15159                 [3-9]|
15160                 [0-2]\d
15161               )
15162             )
15163           )\d{4}
15164         </nationalNumberPattern>
15165         <!-- According to ITU it is possible for the numbers to be between length 4-12
15166              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
15167              digits long, based on the Montenegro document. -->
15168         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15169         <exampleNumber>67622901</exampleNumber>
15170       </mobile>
15171       <tollFree>
15172         <!-- All toll free numbers have prefix 80. -->
15173         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
15174         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15175         <exampleNumber>80080002</exampleNumber>
15176       </tollFree>
15177       <premiumRate>
15178         <!-- Numbers with prefix 94 or 95 are services with additional charges. -->
15179         <nationalNumberPattern>
15180           (?:
15181             9(?:
15182               4[1568]|
15183               5[178]
15184             )
15185           )\d{5}
15186         </nationalNumberPattern>
15187         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15188         <exampleNumber>94515151</exampleNumber>
15189       </premiumRate>
15190       <voip>
15191         <!-- VOIP are prefixed with 78. -->
15192         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
15193         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15194         <exampleNumber>78108780</exampleNumber>
15195       </voip>
15196       <uan>
15197         <!-- Corporate Telephony are prefixed with 77. -->
15198         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
15199         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15200         <exampleNumber>77273012</exampleNumber>
15201       </uan>
15202     </territory>
15203
15204     <!-- Saint-Martin, French Antilles -->
15205     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
15206       <references>
15207         <sourceUrl>http://www.itu.int/oth/T0202000058/en</sourceUrl>
15208         <!-- Linked from http://www.arcep.fr/index.php?id=interactivenumeros -->
15209         <sourceUrl>http://www.arcep.fr/fileadmin/reprise/dossiers/numero/ZABPQ-ZNE.xls</sourceUrl>
15210       </references>
15211       <!-- Formatting rules borrowed from Guadeloupe. -->
15212       <generalDesc>
15213         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15214         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15215       </generalDesc>
15216       <fixedLine>
15217         <nationalNumberPattern>
15218           590(?:
15219             [02][79]|
15220             13|
15221             5[0-268]|
15222             [78]7
15223           )\d{4}
15224         </nationalNumberPattern>
15225         <exampleNumber>590271234</exampleNumber>
15226       </fixedLine>
15227       <mobile>
15228         <!-- Any ranges assigned from
15229              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
15230              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
15231              them. -->
15232         <nationalNumberPattern>
15233           690(?:
15234             0[0-7]|
15235             [1-9]\d
15236           )\d{4}
15237         </nationalNumberPattern>
15238         <exampleNumber>690301234</exampleNumber>
15239       </mobile>
15240     </territory>
15241
15242     <!-- Madagascar -->
15243     <territory id="MG" countryCode="261" internationalPrefix="00"
15244                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15245       <references>
15246         <sourceUrl>http://www.itu.int/oth/T020200007F/en</sourceUrl>
15247       </references>
15248       <availableFormats>
15249         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
15250           <format>$1 $2 $3 $4</format>
15251         </numberFormat>
15252       </availableFormats>
15253       <generalDesc>
15254         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
15255         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15256       </generalDesc>
15257       <fixedLine>
15258         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
15259              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
15260              codes beginning with 4. -->
15261         <nationalNumberPattern>
15262           20(?:
15263             2\d{2}|
15264             4[47]\d|
15265             5[3467]\d|
15266             6[279]\d|
15267             7(?:
15268               2[29]|
15269               [35]\d
15270             )|
15271             8[268]\d|
15272             9[245]\d
15273           )\d{4}
15274         </nationalNumberPattern>
15275         <exampleNumber>202123456</exampleNumber>
15276       </fixedLine>
15277       <mobile>
15278         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
15279              out by reality. -->
15280         <nationalNumberPattern>3[2-49]\d{7}</nationalNumberPattern>
15281         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15282         <exampleNumber>321234567</exampleNumber>
15283       </mobile>
15284       <!-- Putting VSAT numbers here. -->
15285       <voip>
15286         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
15287         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15288         <exampleNumber>221234567</exampleNumber>
15289       </voip>
15290     </territory>
15291
15292     <!-- Marshall Islands -->
15293     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
15294       <references>
15295         <sourceUrl>http://www.itu.int/oth/T0202000085/en</sourceUrl>
15296       </references>
15297       <availableFormats>
15298         <numberFormat pattern="(\d{3})(\d{4})">
15299           <format>$1-$2</format>
15300         </numberFormat>
15301       </availableFormats>
15302       <generalDesc>
15303         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
15304         <possibleNumberPattern>\d{7}</possibleNumberPattern>
15305       </generalDesc>
15306       <fixedLine>
15307         <nationalNumberPattern>
15308           (?:
15309             247|
15310             528|
15311             625
15312           )\d{4}
15313         </nationalNumberPattern>
15314         <exampleNumber>2471234</exampleNumber>
15315       </fixedLine>
15316       <mobile>
15317         <nationalNumberPattern>
15318           (?:
15319             235|
15320             329|
15321             45[56]|
15322             545
15323           )\d{4}
15324         </nationalNumberPattern>
15325         <exampleNumber>2351234</exampleNumber>
15326       </mobile>
15327       <voip>
15328         <!-- VSAT prefixes are here. -->
15329         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
15330         <exampleNumber>6351234</exampleNumber>
15331       </voip>
15332     </territory>
15333
15334     <!-- Macedonia, Former Yugoslav Rep. of -->
15335     <territory id="MK" countryCode="389" internationalPrefix="00"
15336                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
15337                mobileNumberPortableRegion="true">
15338       <references>
15339         <sourceUrl>http://www.itu.int/oth/T02020000CE/en</sourceUrl>
15340       </references>
15341       <availableFormats>
15342         <!-- Formats follow wikipedia. -->
15343         <numberFormat pattern="(2)(\d{3})(\d{4})">
15344           <leadingDigits>2</leadingDigits>
15345           <format>$1 $2 $3</format>
15346         </numberFormat>
15347         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
15348           <leadingDigits>[347]</leadingDigits>
15349           <format>$1 $2 $3</format>
15350         </numberFormat>
15351         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
15352           <leadingDigits>[58]</leadingDigits>
15353           <format>$1 $2 $3 $4</format>
15354         </numberFormat>
15355       </availableFormats>
15356       <generalDesc>
15357         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
15358         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15359       </generalDesc>
15360       <fixedLine>
15361         <nationalNumberPattern>
15362           (?:
15363             2(?:
15364               [23]\d|
15365               5[124578]|
15366               6[01]
15367             )|
15368             3(?:
15369               1[3-6]|
15370               [23][2-6]|
15371               4[2356]
15372             )|
15373             4(?:
15374               [23][2-6]|
15375               4[3-6]|
15376               5[256]|
15377               6[25-8]|
15378               7[24-6]|
15379               8[4-6]
15380             )
15381           )\d{5}
15382         </nationalNumberPattern>
15383         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15384         <exampleNumber>22212345</exampleNumber>
15385       </fixedLine>
15386       <mobile>
15387         <nationalNumberPattern>
15388           7(?:
15389             [0-25-8]\d{2}|
15390             32\d|
15391             421
15392           )\d{4}
15393         </nationalNumberPattern>
15394         <exampleNumber>72345678</exampleNumber>
15395       </mobile>
15396       <tollFree>
15397         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15398         <exampleNumber>80012345</exampleNumber>
15399       </tollFree>
15400       <premiumRate>
15401         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
15402         <exampleNumber>50012345</exampleNumber>
15403       </premiumRate>
15404       <sharedCost>
15405         <nationalNumberPattern>
15406           8(?:
15407             0[1-9]|
15408             [1-9]\d
15409           )\d{5}
15410         </nationalNumberPattern>
15411         <exampleNumber>80123456</exampleNumber>
15412       </sharedCost>
15413     </territory>
15414
15415     <!-- Mali -->
15416     <territory id="ML" countryCode="223" internationalPrefix="00">
15417       <references>
15418         <sourceUrl>http://www.itu.int/oth/T0202000083/en</sourceUrl>
15419         <sourceUrl>http://crt-mali.org/pdf/plan_num</sourceUrl>
15420       </references>
15421       <availableFormats>
15422         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
15423           <leadingDigits>[246-9]</leadingDigits>
15424           <format>$1 $2 $3 $4</format>
15425         </numberFormat>
15426         <!-- Formatting some short numbers as a block. -->
15427         <numberFormat pattern="(\d{4})">
15428           <leadingDigits>
15429             67|
15430             74
15431           </leadingDigits>
15432           <intlFormat>NA</intlFormat>
15433           <format>$1</format>
15434         </numberFormat>
15435       </availableFormats>
15436       <generalDesc>
15437         <nationalNumberPattern>[246-9]\d{7}</nationalNumberPattern>
15438         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15439       </generalDesc>
15440       <fixedLine>
15441         <!-- Patterns from ITU with extra ranges 20 25, 20 7[13-9] and 217 provided by Sotelma and
15442              confirmed by searches online. -->
15443         <nationalNumberPattern>
15444           (?:
15445             2(?:
15446               0(?:
15447                 2[0-589]|
15448                 7\d
15449               )|
15450               1(?:
15451                 2[5-7]|
15452                 [3-689]\d|
15453                 7[2-4689]
15454               )
15455             )|
15456             44[239]\d
15457           )\d{4}
15458         </nationalNumberPattern>
15459         <exampleNumber>20212345</exampleNumber>
15460       </fixedLine>
15461       <mobile>
15462         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
15463              document (which is very stale). All mobile numbers starting with 7 are now Orange.
15464              Includes 6x from Malitel IR21. Numbers beginning with 9 have been found online and
15465              reported by open-source users, although the exact possible second digits are uncertain.
15466              -->
15467         <nationalNumberPattern>
15468           [67]\d{7}|
15469           9[0-25-9]\d{6}
15470         </nationalNumberPattern>
15471         <exampleNumber>65012345</exampleNumber>
15472       </mobile>
15473       <tollFree>
15474         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
15475              plan. -->
15476         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15477         <exampleNumber>80012345</exampleNumber>
15478       </tollFree>
15479    </territory>
15480
15481     <!-- Myanmar -->
15482     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
15483                nationalPrefixFormattingRule="$NP$FG">
15484       <references>
15485         <sourceUrl>http://www.itu.int/oth/T0202000092/en</sourceUrl>
15486       </references>
15487       <availableFormats>
15488         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
15489           <leadingDigits>
15490             1|
15491             2[45]
15492           </leadingDigits>
15493           <format>$1 $2 $3</format>
15494         </numberFormat>
15495         <numberFormat pattern="(2)(\d{4})(\d{4})">
15496           <leadingDigits>251</leadingDigits>
15497           <format>$1 $2 $3</format>
15498         </numberFormat>
15499         <numberFormat pattern="(\d)(\d{2})(\d{3})">
15500           <leadingDigits>
15501             16|
15502             2
15503           </leadingDigits>
15504           <format>$1 $2 $3</format>
15505         </numberFormat>
15506         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
15507           <leadingDigits>
15508             67|
15509             81
15510           </leadingDigits>
15511           <format>$1 $2 $3</format>
15512         </numberFormat>
15513         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
15514           <leadingDigits>[4-8]</leadingDigits>
15515           <format>$1 $2 $3</format>
15516         </numberFormat>
15517         <numberFormat pattern="(9)(\d{3})(\d{4,6})">
15518           <leadingDigits>
15519             9(?:
15520               2[0-4]|
15521               [35-9]|
15522               4[13789]
15523             )
15524           </leadingDigits>
15525           <format>$1 $2 $3</format>
15526         </numberFormat>
15527         <numberFormat pattern="(9)(4\d{4})(\d{4})">
15528           <leadingDigits>94[0245]</leadingDigits>
15529           <format>$1 $2 $3</format>
15530         </numberFormat>
15531         <!-- Following majority of numbers found online. -->
15532         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{3})">
15533           <leadingDigits>925</leadingDigits>
15534           <format>$1 $2 $3 $4</format>
15535         </numberFormat>
15536       </availableFormats>
15537       <generalDesc>
15538         <nationalNumberPattern>
15539           [14578]\d{5,7}|
15540           [26]\d{5,8}|
15541           9(?:
15542             2\d{0,2}|
15543             [58]|
15544             3\d|
15545             4\d{1,2}|
15546             6\d?|
15547             [79]\d{0,2}
15548           )\d{6}
15549         </nationalNumberPattern>
15550         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
15551       </generalDesc>
15552       <fixedLine>
15553         <nationalNumberPattern>
15554           1(?:
15555             2\d{1,2}|
15556             [3-5]\d|
15557             6\d?|
15558             [89][0-6]\d
15559           )\d{4}|
15560           2(?:
15561             [236-9]\d{4}|
15562             4(?:
15563               0\d{5}|
15564               \d{4}
15565             )|
15566             5(?:
15567               1\d{3,6}|
15568               [02-9]\d{3,5}
15569             )
15570           )|
15571           4(?:
15572             2[245-8]|
15573             [346][2-6]|
15574             5[3-5]
15575           )\d{4}|
15576           5(?:
15577             2(?:
15578               20?|
15579               [3-8]
15580             )|
15581             3[2-68]|
15582             4(?:
15583               21?|
15584               [4-8]
15585             )|
15586             5[23]|
15587             6[2-4]|
15588             7[2-8]|
15589             8[24-7]|
15590             9[2-7]
15591           )\d{4}|
15592           6(?:
15593             0[23]|
15594             1[2356]|
15595             [24][2-6]|
15596             3[24-6]|
15597             5[2-4]|
15598             6[2-8]|
15599             7(?:
15600               [2367]|
15601               4\d|
15602               5\d?|
15603               8[145]\d
15604             )|
15605             8[245]|
15606             9[24]
15607           )\d{4}|
15608           7(?:
15609             [04][24-8]|
15610             [15][2-7]|
15611             22|
15612             3[2-4]
15613           )\d{4}|
15614           8(?:
15615             1(?:
15616               2\d?|
15617               [3-689]
15618             )|
15619             2[2-8]|
15620             3[24]|
15621             4[24-7]|
15622             5[245]|
15623             6[23]
15624           )\d{4}
15625         </nationalNumberPattern>
15626         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
15627         <exampleNumber>1234567</exampleNumber>
15628       </fixedLine>
15629       <mobile>
15630         <!-- Added 99[089] (8 digits), 961 (9 digits), and 979 & 997 (10 digits) from bug
15631              reports/numbers found online. -->
15632         <nationalNumberPattern>
15633           17[01]\d{4}|
15634           9(?:
15635             2(?:
15636               [0-4]|
15637               5\d{2}
15638             )|
15639             3[136]\d|
15640             4(?:
15641               0[0-4]\d|
15642               [1379]\d|
15643               [24][0-589]\d|
15644               5\d{2}|
15645               88
15646             )|
15647             5[0-6]|
15648             61?\d|
15649             7(?:
15650               3\d|
15651               9\d{2}
15652             )|
15653             8\d|
15654             9(?:
15655               1\d|
15656               7\d{2}|
15657               [089]
15658             )
15659           )\d{5}
15660         </nationalNumberPattern>
15661         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
15662         <exampleNumber>92123456</exampleNumber>
15663       </mobile>
15664       <voip>
15665         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
15666         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15667         <exampleNumber>13331234</exampleNumber>
15668       </voip>
15669       <!-- No information on other types of phone numbers for Myanmar has been found. -->
15670     </territory>
15671
15672     <!-- Mongolia -->
15673     <territory id="MN" countryCode="976" internationalPrefix="001"
15674                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15675       <references>
15676         <sourceUrl>http://www.itu.int/oth/T020200008E/en</sourceUrl>
15677       </references>
15678       <availableFormats>
15679         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
15680           <leadingDigits>[12]1</leadingDigits>
15681           <format>$1 $2 $3</format>
15682         </numberFormat>
15683         <numberFormat pattern="([12]2\d)(\d{5,6})">
15684           <leadingDigits>[12]2[1-3]</leadingDigits>
15685           <format>$1 $2</format>
15686         </numberFormat>
15687         <numberFormat pattern="([12]\d{3})(\d{5})">
15688           <leadingDigits>
15689             [12](?:
15690               27|
15691               [3-5]
15692             )
15693           </leadingDigits>
15694           <leadingDigits>
15695             [12](?:
15696               27|
15697               [3-5]\d
15698             )2
15699           </leadingDigits>
15700           <format>$1 $2</format>
15701         </numberFormat>
15702         <!-- It seems from online formatting that the national prefix is not written (or perhaps
15703              needed?) for numbers in these ranges. -->
15704         <numberFormat pattern="(\d{4})(\d{4})"
15705           nationalPrefixFormattingRule="$FG">
15706           <leadingDigits>[57-9]</leadingDigits>
15707           <format>$1 $2</format>
15708         </numberFormat>
15709         <numberFormat pattern="([12]\d{4})(\d{4,5})">
15710           <leadingDigits>
15711             [12](?:
15712               27|
15713               [3-5]
15714             )
15715           </leadingDigits>
15716           <leadingDigits>
15717             [12](?:
15718               27|
15719               [3-5]\d
15720             )[4-9]
15721           </leadingDigits>
15722           <format>$1 $2</format>
15723         </numberFormat>
15724       </availableFormats>
15725       <generalDesc>
15726         <nationalNumberPattern>
15727           [12]\d{7,9}|
15728           [57-9]\d{7}
15729         </nationalNumberPattern>
15730         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
15731       </generalDesc>
15732       <fixedLine>
15733         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
15734              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
15735              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
15736              as well, even though we are not certain whether they are in fact fixed or mobile in
15737              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
15738              online numbers being found. -->
15739         <nationalNumberPattern>
15740           [12](?:
15741             1\d|
15742             2(?:
15743               [1-3]\d?|
15744               7\d
15745             )|
15746             3[2-8]\d{1,2}|
15747             4[2-68]\d{1,2}|
15748             5[1-4689]\d{1,2}
15749           )\d{5}|
15750           5[0568]\d{6}
15751         </nationalNumberPattern>
15752         <exampleNumber>50123456</exampleNumber>
15753       </fixedLine>
15754       <mobile>
15755         <nationalNumberPattern>
15756           (?:
15757             8[689]|
15758             9[013-9]
15759           )\d{6}
15760         </nationalNumberPattern>
15761         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15762         <exampleNumber>88123456</exampleNumber>
15763       </mobile>
15764       <!-- No tollFree or premiumRate information can be found. -->
15765       <voip>
15766         <!-- According to the document this could be stricter, but there are counter examples
15767              online. -->
15768         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
15769         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15770         <exampleNumber>75123456</exampleNumber>
15771       </voip>
15772     </territory>
15773
15774     <!-- Macao, China -->
15775     <territory id="MO" countryCode="853" internationalPrefix="00">
15776       <references>
15777         <sourceUrl>http://www.itu.int/oth/T020200007E/en</sourceUrl>
15778       </references>
15779       <availableFormats>
15780         <numberFormat pattern="([268]\d{3})(\d{4})">
15781           <format>$1 $2</format>
15782         </numberFormat>
15783       </availableFormats>
15784       <generalDesc>
15785         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
15786         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15787       </generalDesc>
15788       <fixedLine>
15789         <nationalNumberPattern>
15790           (?:
15791             28[2-57-9]|
15792             8[2-57-9]\d
15793           )\d{5}
15794         </nationalNumberPattern>
15795         <exampleNumber>28212345</exampleNumber>
15796       </fixedLine>
15797       <mobile>
15798         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
15799              numbers, and they are also widely present on the Internet. -->
15800         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
15801         <exampleNumber>66123456</exampleNumber>
15802       </mobile>
15803       <!-- No tollFree or premiumRate information can be found. -->
15804     </territory>
15805
15806     <!-- Northern Mariana Islands -->
15807     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
15808                internationalPrefix="011">
15809       <references>
15810         <sourceUrl>http://www.itu.int/oth/T02020000EE/en</sourceUrl>
15811         <sourceUrl>http://www.cnmiphonebook.com/</sourceUrl>
15812       </references>
15813       <generalDesc>
15814         <!-- NANPA country - uses US formatting rules -->
15815         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
15816         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
15817       </generalDesc>
15818       <fixedLine>
15819         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
15820              were seen in the white and yellow pages, but no numbers with these exchange codes have
15821              proved to be diallable so we exclude them for now.. -->
15822         <nationalNumberPattern>
15823           670(?:
15824             2(?:
15825               3[3-7]|
15826               56|
15827               8[5-8]
15828             )|
15829             32[1238]|
15830             4(?:
15831               33|
15832               8[348]
15833             )|
15834             5(?:
15835               32|
15836               55|
15837               88
15838             )|
15839             6(?:
15840               64|
15841               70|
15842               82
15843             )|
15844             78[589]|
15845             8[3-9]8|
15846             989
15847           )\d{4}
15848         </nationalNumberPattern>
15849         <exampleNumber>6702345678</exampleNumber>
15850       </fixedLine>
15851       <mobile>
15852         <nationalNumberPattern>
15853           670(?:
15854             2(?:
15855               3[3-7]|
15856               56|
15857               8[5-8]
15858             )|
15859             32[1238]|
15860             4(?:
15861               33|
15862               8[348]
15863             )|
15864             5(?:
15865               32|
15866               55|
15867               88
15868             )|
15869             6(?:
15870               64|
15871               70|
15872               82
15873             )|
15874             78[589]|
15875             8[3-9]8|
15876             989
15877           )\d{4}
15878         </nationalNumberPattern>
15879         <exampleNumber>6702345678</exampleNumber>
15880       </mobile>
15881       <tollFree>
15882         <nationalNumberPattern>
15883           8(?:
15884             00|
15885             44|
15886             55|
15887             66|
15888             77|
15889             88
15890           )[2-9]\d{6}
15891         </nationalNumberPattern>
15892         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15893         <exampleNumber>8002123456</exampleNumber>
15894       </tollFree>
15895       <premiumRate>
15896         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
15897         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15898         <exampleNumber>9002123456</exampleNumber>
15899       </premiumRate>
15900       <personalNumber>
15901         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
15902         <nationalNumberPattern>
15903           5(?:
15904             00|
15905             33|
15906             44|
15907             66|
15908             77
15909           )[2-9]\d{6}
15910         </nationalNumberPattern>
15911         <possibleNumberPattern>\d{10}</possibleNumberPattern>
15912         <exampleNumber>5002345678</exampleNumber>
15913       </personalNumber>
15914     </territory>
15915
15916     <!-- Martinique (French Dept. of) -->
15917     <territory id="MQ" countryCode="596" internationalPrefix="00"
15918                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15919       <references>
15920         <sourceUrl>http://www.itu.int/oth/T0202000086/en</sourceUrl>
15921         <sourceUrl>http://www.arcep.fr/index.php?id=2137&amp;bloc=0596&amp;CMD=RESULTS_NUMEROTATION</sourceUrl>
15922       </references>
15923       <availableFormats>
15924         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
15925           <format>$1 $2 $3 $4</format>
15926         </numberFormat>
15927       </availableFormats>
15928       <generalDesc>
15929         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15930         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15931       </generalDesc>
15932       <fixedLine>
15933         <nationalNumberPattern>
15934           596(?:
15935             0[2-5]|
15936             [12]0|
15937             3[05-9]|
15938             4[024-8]|
15939             [5-7]\d|
15940             89|
15941             9[4-8]
15942           )\d{4}
15943         </nationalNumberPattern>
15944         <exampleNumber>596301234</exampleNumber>
15945       </fixedLine>
15946       <mobile>
15947         <nationalNumberPattern>
15948           696(?:
15949             [0-479]\d|
15950             5[01]|
15951             8[0-689]
15952           )\d{4}
15953         </nationalNumberPattern>
15954         <exampleNumber>696201234</exampleNumber>
15955       </mobile>
15956       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
15957            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
15958            too. -->
15959     </territory>
15960
15961     <!-- Mauritania -->
15962     <territory id="MR" countryCode="222" internationalPrefix="00" >
15963       <references>
15964         <sourceUrl>http://www.itu.int/oth/T0202000087/en</sourceUrl>
15965         <sourceUrl>http://are.mr/pdfs/pnn2010.pdf</sourceUrl>
15966       </references>
15967       <availableFormats>
15968         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
15969           <format>$1 $2 $3 $4</format>
15970         </numberFormat>
15971       </availableFormats>
15972       <generalDesc>
15973         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
15974         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15975       </generalDesc>
15976       <fixedLine>
15977         <nationalNumberPattern>
15978           25[08]\d{5}|
15979           35\d{6}|
15980           45[1-7]\d{5}
15981         </nationalNumberPattern>
15982         <exampleNumber>35123456</exampleNumber>
15983       </fixedLine>
15984       <!-- Added "49\d" in response to https://github.com/googlei18n/libphonenumber/issues/529
15985            which might be overly permissive, but we don't have an official documentation for this
15986            and only a small number of numbers were found online. At least 492 and 495 are valid.
15987            -->
15988       <mobile>
15989         <nationalNumberPattern>
15990           (?:
15991             2(?:
15992               2\d|
15993               70
15994             )|
15995             3(?:
15996               3\d|
15997               6[1-36]|
15998               7[1-3]
15999             )|
16000             4(?:
16001               [49]\d|
16002               6[0457-9]|
16003               7[4-9]|
16004               8[01346-8]
16005             )
16006           )\d{5}
16007         </nationalNumberPattern>
16008         <exampleNumber>22123456</exampleNumber>
16009       </mobile>
16010       <tollFree>
16011         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
16012         <exampleNumber>80012345</exampleNumber>
16013       </tollFree>
16014     </territory>
16015
16016     <!-- Montserrat -->
16017     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
16018                internationalPrefix="011">
16019       <references>
16020         <sourceUrl>http://www.itu.int/oth/T020200008F/en</sourceUrl>
16021       </references>
16022       <generalDesc>
16023         <!-- NANPA country - uses US formatting rules -->
16024         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
16025         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
16026       </generalDesc>
16027       <fixedLine>
16028         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
16029         <exampleNumber>6644912345</exampleNumber>
16030       </fixedLine>
16031       <mobile>
16032         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
16033         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16034         <exampleNumber>6644923456</exampleNumber>
16035       </mobile>
16036       <tollFree>
16037         <nationalNumberPattern>
16038           8(?:
16039             00|
16040             44|
16041             55|
16042             66|
16043             77|
16044             88
16045           )[2-9]\d{6}
16046         </nationalNumberPattern>
16047         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16048         <exampleNumber>8002123456</exampleNumber>
16049       </tollFree>
16050       <premiumRate>
16051         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
16052         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16053         <exampleNumber>9002123456</exampleNumber>
16054       </premiumRate>
16055       <personalNumber>
16056         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
16057         <nationalNumberPattern>
16058           5(?:
16059             00|
16060             33|
16061             44|
16062             66|
16063             77
16064           )[2-9]\d{6}
16065         </nationalNumberPattern>
16066         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16067         <exampleNumber>5002345678</exampleNumber>
16068       </personalNumber>
16069     </territory>
16070
16071     <!-- Malta -->
16072     <territory id="MT" countryCode="356" internationalPrefix="00" mobileNumberPortableRegion="true">
16073       <references>
16074         <sourceUrl>http://www.itu.int/oth/T0202000084/en</sourceUrl>
16075         <!-- Numbering link in the LHS menu - has more up-to-date allocations -->
16076         <sourceUrl>http://www.mca.org.mt</sourceUrl>
16077       </references>
16078       <availableFormats>
16079         <numberFormat pattern="(\d{4})(\d{4})">
16080           <format>$1 $2</format>
16081         </numberFormat>
16082       </availableFormats>
16083       <generalDesc>
16084         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
16085         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16086       </generalDesc>
16087       <fixedLine>
16088         <nationalNumberPattern>
16089           2(?:
16090             0(?:
16091               1[0-6]|
16092               3[1-4]|
16093               [69]\d
16094             )|
16095             [1-357]\d{2}
16096           )\d{4}
16097         </nationalNumberPattern>
16098         <exampleNumber>21001234</exampleNumber>
16099       </fixedLine>
16100       <mobile>
16101         <!-- 7210 and 92XX come from the allocations listed on http://www.mca.org.mt, but they are
16102              not listed in the latest ITU document. -->
16103         <nationalNumberPattern>
16104           (?:
16105             7(?:
16106               210|
16107               [79]\d{2}
16108             )|
16109             9(?:
16110               2(?:
16111                1[01]|
16112                31
16113               )|
16114               696|
16115               8(?:
16116                 1[1-3]|
16117                 89|
16118                 97
16119               )|
16120               9\d{2}
16121             )
16122           )\d{4}
16123         </nationalNumberPattern>
16124         <exampleNumber>96961234</exampleNumber>
16125       </mobile>
16126       <pager>
16127         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
16128         <exampleNumber>71171234</exampleNumber>
16129       </pager>
16130       <tollFree>
16131         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
16132         <exampleNumber>80071234</exampleNumber>
16133       </tollFree>
16134       <premiumRate>
16135         <nationalNumberPattern>
16136           5(?:
16137             0(?:
16138               0(?:
16139                 37|
16140                 43
16141               )|
16142               6\d{2}|
16143               70\d|
16144               9[0168]
16145             )|
16146             [12]\d0[1-5]
16147           )\d{3}
16148         </nationalNumberPattern>
16149         <exampleNumber>50037123</exampleNumber>
16150       </premiumRate>
16151       <voip>
16152         <!-- In the plan as Non-PATS ECS. -->
16153         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
16154         <exampleNumber>35501234</exampleNumber>
16155       </voip>
16156       <uan>
16157         <!-- Using this for governmental numbers. -->
16158         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
16159         <exampleNumber>50112345</exampleNumber>
16160       </uan>
16161     </territory>
16162
16163     <!-- Mauritius -->
16164     <!-- Preferred international prefix is expected to standardize on just '00' -->
16165     <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
16166                preferredInternationalPrefix="020">
16167       <references>
16168         <sourceUrl>http://www.icta.mu/telecommunications/numbering.htm</sourceUrl>
16169       </references>
16170       <availableFormats>
16171         <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
16172           <leadingDigits>[2-46-9]</leadingDigits>
16173           <format>$1 $2</format>
16174         </numberFormat>
16175         <numberFormat pattern="(5\d{3})(\d{4})">
16176           <leadingDigits>5</leadingDigits>
16177           <format>$1 $2</format>
16178         </numberFormat>
16179       </availableFormats>
16180       <generalDesc>
16181         <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
16182         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
16183       </generalDesc>
16184       <fixedLine>
16185         <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
16186         <nationalNumberPattern>
16187           (?:
16188             2(?:
16189               [03478]\d|
16190               1[0-7]|
16191               6[1-69]
16192             )|
16193             4(?:
16194               [013568]\d|
16195               2[4-7]
16196             )|
16197             5(?:
16198               44\d|
16199               471
16200             )|
16201             6\d{2}|
16202             8(?:
16203               14|
16204               3[129]
16205             )
16206           )\d{4}
16207         </nationalNumberPattern>
16208         <exampleNumber>2012345</exampleNumber>
16209       </fixedLine>
16210       <mobile>
16211         <nationalNumberPattern>
16212           5(?:
16213             2[59]\d|
16214             4(?:
16215               2[1-389]|
16216               4\d|
16217               7[1-9]|
16218               9\d
16219             )|
16220             7\d{2}|
16221             8(?:
16222               [256]\d|
16223               7[15-8]
16224             )|
16225             9[0-8]\d
16226           )\d{4}
16227         </nationalNumberPattern>
16228         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16229         <exampleNumber>52512345</exampleNumber>
16230       </mobile>
16231       <tollFree>
16232         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
16233         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16234         <exampleNumber>8001234</exampleNumber>
16235       </tollFree>
16236       <premiumRate>
16237         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
16238         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16239         <exampleNumber>3012345</exampleNumber>
16240       </premiumRate>
16241       <voip>
16242         <nationalNumberPattern>
16243           3(?:
16244             20|
16245             9\d
16246           )\d{4}
16247         </nationalNumberPattern>
16248         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16249         <exampleNumber>3201234</exampleNumber>
16250       </voip>
16251     </territory>
16252
16253     <!-- Maldives -->
16254     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
16255                preferredInternationalPrefix="00">
16256       <references>
16257         <sourceUrl>http://www.itu.int/oth/T0202000082/en</sourceUrl>
16258         <sourceUrl>http://www.dhiraagu.com.mv</sourceUrl>
16259       </references>
16260       <availableFormats>
16261         <numberFormat pattern="(\d{3})(\d{4})">
16262           <leadingDigits>
16263             [3467]|
16264             9(?:
16265               [1-9]|
16266               0[1-9]
16267             )
16268           </leadingDigits>
16269           <format>$1-$2</format>
16270         </numberFormat>
16271         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16272           <leadingDigits>900</leadingDigits>
16273           <format>$1 $2 $3</format>
16274         </numberFormat>
16275       </availableFormats>
16276       <generalDesc>
16277         <nationalNumberPattern>
16278           [3467]\d{6}|
16279           9(?:
16280             00\d{7}|
16281             \d{6}
16282           )
16283         </nationalNumberPattern>
16284         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16285       </generalDesc>
16286       <fixedLine>
16287         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
16288              diallable. -->
16289         <nationalNumberPattern>
16290           (?:
16291             3(?:
16292               0[01]|
16293               3[0-59]
16294             )|
16295             6(?:
16296               [567][02468]|
16297               8[024689]|
16298               90
16299             )
16300           )\d{4}
16301         </nationalNumberPattern>
16302         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16303         <exampleNumber>6701234</exampleNumber>
16304       </fixedLine>
16305       <mobile>
16306         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
16307              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
16308              91 was added based on information from Wataniya Telecom. -->
16309         <nationalNumberPattern>
16310           (?:
16311             46[46]|
16312             7[3-9]\d|
16313             9[16-9]\d
16314           )\d{4}
16315         </nationalNumberPattern>
16316         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16317         <exampleNumber>7712345</exampleNumber>
16318       </mobile>
16319       <pager>
16320         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
16321         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16322         <exampleNumber>7812345</exampleNumber>
16323       </pager>
16324       <premiumRate>
16325         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16326         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16327         <exampleNumber>9001234567</exampleNumber>
16328       </premiumRate>
16329     </territory>
16330
16331     <!-- Malawi -->
16332     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
16333          consistent in having one. -->
16334     <territory id="MW" countryCode="265" internationalPrefix="00"
16335                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16336       <references>
16337         <sourceUrl>http://www.itu.int/oth/T0202000080/en</sourceUrl>
16338       </references>
16339       <availableFormats>
16340         <numberFormat pattern="(\d)(\d{3})(\d{3})">
16341           <leadingDigits>1</leadingDigits>
16342           <format>$1 $2 $3</format>
16343         </numberFormat>
16344         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
16345           <leadingDigits>2</leadingDigits>
16346           <format>$1 $2 $3</format>
16347         </numberFormat>
16348         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16349           <leadingDigits>[1789]</leadingDigits>
16350           <format>$1 $2 $3 $4</format>
16351         </numberFormat>
16352       </availableFormats>
16353       <generalDesc>
16354         <nationalNumberPattern>
16355           (?:
16356             1(?:
16357               \d{2}
16358             )?|
16359             [2789]\d{2}
16360           )\d{6}
16361         </nationalNumberPattern>
16362         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
16363       </generalDesc>
16364       <fixedLine>
16365         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
16366              been found so this is being retained for now. It is possible however that these may be
16367              old-format mobile numbers. -->
16368         <nationalNumberPattern>
16369           (?:
16370             1[2-9]|
16371             21\d{2}
16372           )\d{5}
16373         </nationalNumberPattern>
16374         <exampleNumber>1234567</exampleNumber>
16375       </fixedLine>
16376       <mobile>
16377         <nationalNumberPattern>
16378           (?:
16379             111|
16380             77\d|
16381             88\d|
16382             99\d
16383           )\d{6}
16384         </nationalNumberPattern>
16385         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16386         <exampleNumber>991234567</exampleNumber>
16387       </mobile>
16388     </territory>
16389
16390     <!-- Mexico -->
16391     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
16392                nationalPrefix="01"
16393                nationalPrefixForParsing="0[12]|04[45](\d{10})"
16394                nationalPrefixTransformRule="1$1"
16395                nationalPrefixFormattingRule="$NP $FG"
16396                nationalPrefixOptionalWhenFormatting="true"
16397                leadingZeroPossible="true" mobileNumberPortableRegion="true">
16398       <references>
16399         <sourceUrl>http://www.itu.int/oth/T020200008A/en</sourceUrl>
16400         <sourceUrl>http://en.wikipedia.org/wiki/%2B52</sourceUrl>
16401         <sourceUrl>http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico</sourceUrl>
16402         <sourceUrl>http://en.wikipedia.org/wiki/Toll-free_telephone_number</sourceUrl>
16403       </references>
16404       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
16405            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
16406            numbers, regardless of whether they are written in international format (leading 1) or
16407            national format (leading 044/045), will be parsed into the same form. -->
16408       <availableFormats>
16409         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
16410           <leadingDigits>
16411             33|
16412             55|
16413             81
16414           </leadingDigits>
16415           <format>$1 $2 $3</format>
16416         </numberFormat>
16417         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16418           <leadingDigits>
16419             [2467]|
16420             3[12457-9]|
16421             5[89]|
16422             8[02-9]|
16423             9[0-35-9]
16424           </leadingDigits>
16425           <format>$1 $2 $3</format>
16426         </numberFormat>
16427         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
16428           <leadingDigits>
16429             1(?:
16430               33|
16431               55|
16432               81
16433             )
16434           </leadingDigits>
16435           <format>044 $2 $3 $4</format>
16436           <intlFormat>$1 $2 $3 $4</intlFormat>
16437         </numberFormat>
16438         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
16439           <leadingDigits>
16440             1(?:
16441               [2467]|
16442               3[12457-9]|
16443               5[89]|
16444               8[2-9]|
16445               9[1-35-9]
16446             )
16447           </leadingDigits>
16448           <format>044 $2 $3 $4</format>
16449           <intlFormat>$1 $2 $3 $4</intlFormat>
16450         </numberFormat>
16451       </availableFormats>
16452       <generalDesc>
16453         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
16454         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
16455       </generalDesc>
16456       <fixedLine>
16457         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
16458         <nationalNumberPattern>
16459           (?:
16460             33|
16461             55|
16462             81
16463           )\d{8}|
16464           (?:
16465             2(?:
16466               2[2-9]|
16467               3[1-35-8]|
16468               4[13-9]|
16469               7[1-689]|
16470               8[1-578]|
16471               9[467]
16472             )|
16473             3(?:
16474               1[1-79]|
16475               [2458][1-9]|
16476               7[1-8]|
16477               9[1-5]
16478             )|
16479             4(?:
16480               1[1-57-9]|
16481               [24-6][1-9]|
16482               [37][1-8]|
16483               8[1-35-9]|
16484               9[2-689]
16485             )|
16486             5(?:
16487               88|
16488               9[1-79]
16489             )|
16490             6(?:
16491               1[2-68]|
16492               [234][1-9]|
16493               5[1-3689]|
16494               6[12457-9]|
16495               7[1-7]|
16496               8[67]|
16497               9[4-8]
16498             )|
16499             7(?:
16500               [13467][1-9]|
16501               2[1-8]|
16502               5[13-9]|
16503               8[1-69]|
16504               9[17]
16505             )|
16506             8(?:
16507               2[13-689]|
16508               3[1-6]|
16509               4[124-6]|
16510               6[1246-9]|
16511               7[1-378]|
16512               9[12479]
16513             )|
16514             9(?:
16515               1[346-9]|
16516               2[1-4]|
16517               3[2-46-8]|
16518               5[1348]|
16519               [69][1-9]|
16520               7[12]|
16521               8[1-8]
16522             )
16523           )\d{7}
16524         </nationalNumberPattern>
16525         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16526         <exampleNumber>2221234567</exampleNumber>
16527       </fixedLine>
16528       <mobile>
16529         <nationalNumberPattern>
16530           1(?:
16531             (?:
16532               33|
16533               55|
16534               81
16535             )\d{8}|
16536             (?:
16537               2(?:
16538                 2[2-9]|
16539                 3[1-35-8]|
16540                 4[13-9]|
16541                 7[1-689]|
16542                 8[1-578]|
16543                 9[467]
16544               )|
16545               3(?:
16546                 1[1-79]|
16547                 [2458][1-9]|
16548                 7[1-8]|
16549                 9[1-5]
16550               )|
16551               4(?:
16552                 1[1-57-9]|
16553                 [24-6][1-9]|
16554                 [37][1-8]|
16555                 8[1-35-9]|
16556                 9[2-689]
16557               )|
16558               5(?:
16559                 88|
16560                 9[1-79]
16561               )|
16562               6(?:
16563                 1[2-68]|
16564                 [2-4][1-9]|
16565                 5[1-3689]|
16566                 6[12457-9]|
16567                 7[1-7]|
16568                 8[67]|
16569                 9[4-8]
16570               )|
16571               7(?:
16572                 [13467][1-9]|
16573                 2[1-8]|
16574                 5[13-9]|
16575                 8[1-69]|
16576                 9[17]
16577               )|
16578               8(?:
16579                 2[13-689]|
16580                 3[1-6]|
16581                 4[124-6]|
16582                 6[1246-9]|
16583                 7[1-378]|
16584                 9[12479]
16585               )|
16586               9(?:
16587                 1[346-9]|
16588                 2[1-4]|
16589                 3[2-46-8]|
16590                 5[1348]|
16591                 [69][1-9]|
16592                 7[12]|
16593                 8[1-8]
16594               )
16595             )\d{7}
16596           )
16597         </nationalNumberPattern>
16598         <possibleNumberPattern>\d{11}</possibleNumberPattern>
16599         <exampleNumber>12221234567</exampleNumber>
16600       </mobile>
16601       <tollFree>
16602         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
16603         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16604         <exampleNumber>8001234567</exampleNumber>
16605       </tollFree>
16606       <premiumRate>
16607         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16608         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16609         <exampleNumber>9001234567</exampleNumber>
16610       </premiumRate>
16611     </territory>
16612
16613     <!-- Malaysia -->
16614     <territory id="MY" countryCode="60" internationalPrefix="00"
16615                nationalPrefix="0" mobileNumberPortableRegion="true">
16616       <references>
16617         <sourceUrl>http://en.wikipedia.org/wiki/%2B60</sourceUrl>
16618         <sourceUrl>http://www.skmm.gov.my</sourceUrl>
16619       </references>
16620       <availableFormats>
16621         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16622           pattern="([4-79])(\d{3})(\d{4})">
16623           <leadingDigits>[4-79]</leadingDigits>
16624           <format>$1-$2 $3</format>
16625         </numberFormat>
16626         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16627           pattern="(3)(\d{4})(\d{4})">
16628           <leadingDigits>3</leadingDigits>
16629           <format>$1-$2 $3</format>
16630         </numberFormat>
16631         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16632           pattern="([18]\d)(\d{3})(\d{3,4})">
16633           <leadingDigits>
16634             1[02-46-9][1-9]|
16635             8
16636           </leadingDigits>
16637           <format>$1-$2 $3</format>
16638         </numberFormat>
16639         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
16640           <leadingDigits>1[36-8]0</leadingDigits>
16641           <format>$1-$2-$3-$4</format>
16642         </numberFormat>
16643         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16644           pattern="(11)(\d{4})(\d{4})">
16645           <leadingDigits>11</leadingDigits>
16646           <format>$1-$2 $3</format>
16647         </numberFormat>
16648         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16649           pattern="(15[49])(\d{3})(\d{4})">
16650           <leadingDigits>15</leadingDigits>
16651           <format>$1-$2 $3</format>
16652         </numberFormat>
16653       </availableFormats>
16654       <generalDesc>
16655         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
16656         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
16657       </generalDesc>
16658       <fixedLine>
16659         <nationalNumberPattern>
16660           (?:
16661             3[2-9]\d|
16662             [4-9][2-9]
16663           )\d{6}
16664         </nationalNumberPattern>
16665         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
16666         <exampleNumber>323456789</exampleNumber>
16667       </fixedLine>
16668       <mobile>
16669         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
16670              is possible to send SMSs (and receive them) from numbers in this block, so we are
16671              listing them as mobile. 115 was added based on numbers found online. -->
16672         <nationalNumberPattern>
16673           1(?:
16674             1[1-35]\d{2}|
16675             [02-4679][2-9]\d|
16676             59\d{2}|
16677             8(?:
16678               1[23]|
16679               [2-9]\d
16680             )
16681           )\d{5}
16682         </nationalNumberPattern>
16683         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
16684         <exampleNumber>123456789</exampleNumber>
16685       </mobile>
16686       <tollFree>
16687         <!-- http://www.skmm.gov.my/skmmgovmy/media/General/pdf/Special_Service_Number.pdf -->
16688         <nationalNumberPattern>1[378]00\d{6}</nationalNumberPattern>
16689         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16690         <exampleNumber>1300123456</exampleNumber>
16691       </tollFree>
16692       <premiumRate>
16693         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
16694         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16695         <exampleNumber>1600123456</exampleNumber>
16696       </premiumRate>
16697       <voip>
16698         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
16699         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16700         <exampleNumber>1541234567</exampleNumber>
16701       </voip>
16702     </territory>
16703
16704     <!-- Mozambique -->
16705     <territory id="MZ" countryCode="258" internationalPrefix="00">
16706       <references>
16707         <sourceUrl>http://www.itu.int/oth/T0202000091/en</sourceUrl>
16708       </references>
16709       <availableFormats>
16710         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
16711           <leadingDigits>
16712             2|
16713             8[2-7]
16714           </leadingDigits>
16715           <format>$1 $2 $3</format>
16716         </numberFormat>
16717         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
16718           <leadingDigits>80</leadingDigits>
16719           <format>$1 $2 $3</format>
16720         </numberFormat>
16721       </availableFormats>
16722       <generalDesc>
16723         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
16724         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16725       </generalDesc>
16726       <fixedLine>
16727         <nationalNumberPattern>
16728           2(?:
16729             [1346]\d|
16730             5[0-2]|
16731             [78][12]|
16732             93
16733           )\d{5}
16734         </nationalNumberPattern>
16735         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16736         <exampleNumber>21123456</exampleNumber>
16737       </fixedLine>
16738       <mobile>
16739         <nationalNumberPattern>8[23467]\d{7}</nationalNumberPattern>
16740         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16741         <exampleNumber>821234567</exampleNumber>
16742       </mobile>
16743       <tollFree>
16744         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
16745              examples. -->
16746         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
16747         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16748         <exampleNumber>800123456</exampleNumber>
16749       </tollFree>
16750       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
16751            a 9 are premium rate, but no online examples can be found of any of these so they are
16752            omitted for the time-being. -->
16753     </territory>
16754
16755     <!-- Namibia -->
16756     <territory id="NA" countryCode="264" internationalPrefix="00"
16757                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16758       <references>
16759         <sourceUrl>http://www.itu.int/oth/T0202000093/en</sourceUrl>
16760       </references>
16761       <availableFormats>
16762         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
16763           <leadingDigits>8[1235]</leadingDigits>
16764           <format>$1 $2 $3</format>
16765         </numberFormat>
16766         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
16767           <leadingDigits>6</leadingDigits>
16768           <format>$1 $2 $3</format>
16769         </numberFormat>
16770         <numberFormat pattern="(88)(\d{3})(\d{3})">
16771           <leadingDigits>88</leadingDigits>
16772           <format>$1 $2 $3</format>
16773         </numberFormat>
16774         <numberFormat pattern="(870)(\d{3})(\d{3})">
16775           <leadingDigits>870</leadingDigits>
16776           <format>$1 $2 $3</format>
16777         </numberFormat>
16778       </availableFormats>
16779       <generalDesc>
16780         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
16781         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
16782       </generalDesc>
16783       <fixedLine>
16784         <!-- Includes VSAT service. -->
16785         <nationalNumberPattern>
16786           6(?:
16787             1(?:
16788               17|
16789               2(?:
16790                 [0189]\d|
16791                 [2-6]|
16792                 7\d?
16793               )|
16794               3(?:
16795                 [01378]|
16796                 2\d
16797               )|
16798               4[01]|
16799               69|
16800               7[014]
16801             )|
16802             2(?:
16803               17|
16804               5(?:
16805                 [0-36-8]|
16806                 4\d?
16807               )|
16808               69|
16809               70
16810             )|
16811             3(?:
16812               17|
16813               2(?:
16814                 [0237]\d?|
16815                 [14-689]
16816               )|
16817               34|
16818               6[29]|
16819               7[01]|
16820               81
16821             )|
16822             4(?:
16823               17|
16824               2(?:
16825                 [012]|
16826                 7?
16827               )|
16828               4(?:
16829                 [06]|
16830                 1\d
16831               )|
16832               5(?:
16833                 [01357]|
16834                 [25]\d?
16835               )|
16836               69|
16837               7[01]
16838             )|
16839             5(?:
16840               17|
16841               2(?:
16842                 [0459]|
16843                 [23678]\d?
16844               )|
16845               69|
16846               7[01]
16847             )|
16848             6(?:
16849               17|
16850               2(?:
16851                 5|
16852                 6\d?
16853               )|
16854               38|
16855               42|
16856               69|
16857               7[01]
16858             )|
16859             7(?:
16860               17|
16861               2(?:
16862                 [569]|
16863                 [234]\d?
16864               )|
16865               3(?:
16866                 0\d?|
16867                 [13]
16868               )|
16869               69|
16870               7[01]
16871             )
16872           )\d{4}
16873         </nationalNumberPattern>
16874         <exampleNumber>61221234</exampleNumber>
16875       </fixedLine>
16876       <mobile>
16877         <!-- Includes the Switch CDMA Service. -->
16878         <nationalNumberPattern>
16879           (?:
16880             60|
16881             8[125]
16882           )\d{7}
16883         </nationalNumberPattern>
16884         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16885         <exampleNumber>811234567</exampleNumber>
16886       </mobile>
16887       <premiumRate>
16888         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
16889         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16890         <exampleNumber>870123456</exampleNumber>
16891       </premiumRate>
16892       <voip>
16893         <!-- Including virtual telephone and VOIP services. -->
16894         <nationalNumberPattern>
16895           8(?:
16896             3\d{2}|
16897             86
16898           )\d{5}
16899         </nationalNumberPattern>
16900         <exampleNumber>88612345</exampleNumber>
16901       </voip>
16902     </territory>
16903
16904     <!-- New Caledonia (Territoire français d'outre-mer) -->
16905     <territory id="NC" countryCode="687" internationalPrefix="00">
16906       <references>
16907         <sourceUrl>http://www.itu.int/oth/T0202000098/en</sourceUrl>
16908         <sourceUrl>http://www.opt.nc</sourceUrl>
16909       </references>
16910       <availableFormats>
16911         <!-- From http://www.1012.nc, the local yellow pages. -->
16912         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
16913           <!-- We exclude short-codes here so they are formatted as a block -->
16914           <leadingDigits>
16915             [2-46-9]|
16916             5[0-4]
16917           </leadingDigits>
16918           <format>$1.$2.$3</format>
16919         </numberFormat>
16920       </availableFormats>
16921       <generalDesc>
16922         <nationalNumberPattern>[2-57-9]\d{5}</nationalNumberPattern>
16923         <possibleNumberPattern>\d{6}</possibleNumberPattern>
16924       </generalDesc>
16925       <fixedLine>
16926         <!-- Including the 88 prefix for public payphones. -->
16927         <nationalNumberPattern>
16928           (?:
16929             2[03-9]|
16930             3[0-5]|
16931             4[1-7]|
16932             88
16933           )\d{4}
16934         </nationalNumberPattern>
16935         <exampleNumber>201234</exampleNumber>
16936       </fixedLine>
16937       <mobile>
16938         <nationalNumberPattern>
16939           (?:
16940             5[0-4]|
16941             [79]\d|
16942             8[0-79]
16943           )\d{4}
16944         </nationalNumberPattern>
16945         <exampleNumber>751234</exampleNumber>
16946       </mobile>
16947       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
16948       <!-- Note that OPT lists 3631 as a free short number for caller ID services, but the ITU
16949            document says that all 36 numbers are 6 digits. See ShortNumberMetadata.xml for more. -->
16950       <premiumRate>
16951         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
16952         <exampleNumber>366711</exampleNumber>
16953       </premiumRate>
16954     </territory>
16955
16956     <!-- Niger -->
16957     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
16958       <references>
16959         <sourceUrl>http://www.itu.int/oth/T020200009B/en</sourceUrl>
16960       </references>
16961       <availableFormats>
16962         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
16963           <leadingDigits>
16964             [289]|
16965             09
16966           </leadingDigits>
16967           <format>$1 $2 $3 $4</format>
16968         </numberFormat>
16969         <numberFormat pattern="(08)(\d{3})(\d{3})">
16970           <leadingDigits>08</leadingDigits>
16971           <format>$1 $2 $3</format>
16972         </numberFormat>
16973       </availableFormats>
16974       <generalDesc>
16975         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
16976         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16977       </generalDesc>
16978       <fixedLine>
16979         <!-- Adding 20 61 from online numbers. -->
16980         <nationalNumberPattern>
16981           2(?:
16982             0(?:
16983               20|
16984               3[1-7]|
16985               4[134]|
16986               5[14]|
16987               6[14578]|
16988               7[1-578]
16989             )|
16990             1(?:
16991               4[145]|
16992               5[14]|
16993               6[14-68]|
16994               7[169]|
16995               88
16996             )
16997           )\d{4}
16998         </nationalNumberPattern>
16999         <exampleNumber>20201234</exampleNumber>
17000       </fixedLine>
17001       <mobile>
17002         <!-- Added 90, 91, 92, 95, 97, 98 & 99 from online data. Airtel have confirmed that they use the
17003              89 and 97 prefixes, and Orange use 92. MOOV started using 95 in Jan 2014. -->
17004         <nationalNumberPattern>
17005           (?:
17006             89|
17007             9\d
17008           )\d{6}
17009         </nationalNumberPattern>
17010         <exampleNumber>93123456</exampleNumber>
17011       </mobile>
17012       <tollFree>
17013         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
17014         <exampleNumber>08123456</exampleNumber>
17015       </tollFree>
17016       <premiumRate>
17017         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
17018         <exampleNumber>09123456</exampleNumber>
17019       </premiumRate>
17020     </territory>
17021
17022     <!-- Norfolk Island -->
17023     <!-- Including numbers for Australian Antarctic stations. -->
17024     <territory id="NF" countryCode="672" internationalPrefix="00">
17025       <references>
17026         <sourceUrl>http://www.itu.int/oth/T020200009D/en</sourceUrl>
17027       </references>
17028       <availableFormats>
17029         <numberFormat pattern="(\d{2})(\d{4})">
17030            <leadingDigits>1</leadingDigits>
17031           <format>$1 $2</format>
17032         </numberFormat>
17033         <numberFormat pattern="(\d)(\d{5})">
17034           <leadingDigits>3</leadingDigits>
17035           <format>$1 $2</format>
17036         </numberFormat>
17037       </availableFormats>
17038       <generalDesc>
17039         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
17040         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17041       </generalDesc>
17042       <fixedLine>
17043         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
17044              connect after we tried calling them. -->
17045         <nationalNumberPattern>
17046           (?:
17047             1(?:
17048               06|
17049               17|
17050               28|
17051               39
17052             )|
17053             3[012]\d
17054           )\d{3}
17055         </nationalNumberPattern>
17056         <exampleNumber>106609</exampleNumber>
17057       </fixedLine>
17058       <mobile>
17059         <!-- Numbers found online with prefix 35. -->
17060         <nationalNumberPattern>3[58]\d{4}</nationalNumberPattern>
17061         <exampleNumber>381234</exampleNumber>
17062       </mobile>
17063     </territory>
17064
17065     <!-- Nigeria -->
17066     <territory id="NG" countryCode="234" internationalPrefix="009"
17067                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17068                mobileNumberPortableRegion="true">
17069       <references>
17070         <sourceUrl>http://www.itu.int/oth/T020200009C/en</sourceUrl>
17071       </references>
17072       <availableFormats>
17073         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
17074           <leadingDigits>[129]</leadingDigits>
17075           <format>$1 $2 $3</format>
17076         </numberFormat>
17077         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
17078           <leadingDigits>
17079             [3-6]|
17080             7(?:
17081               [1-79]|
17082               0[1-9]
17083             )|
17084             8[2-9]
17085           </leadingDigits>
17086           <format>$1 $2 $3</format>
17087         </numberFormat>
17088         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17089           <leadingDigits>
17090             70|
17091             8[01]|
17092             90[2359]
17093           </leadingDigits>
17094           <format>$1 $2 $3</format>
17095         </numberFormat>
17096         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17097           <leadingDigits>[78]00</leadingDigits>
17098           <format>$1 $2 $3</format>
17099         </numberFormat>
17100         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
17101           <leadingDigits>[78]00</leadingDigits>
17102           <format>$1 $2 $3</format>
17103         </numberFormat>
17104         <numberFormat pattern="(78)(\d{2})(\d{3})">
17105           <leadingDigits>78</leadingDigits>
17106           <format>$1 $2 $3</format>
17107         </numberFormat>
17108       </availableFormats>
17109       <generalDesc>
17110         <nationalNumberPattern>
17111           [1-6]\d{5,8}|
17112           9\d{5,9}|
17113           [78]\d{5,13}
17114         </nationalNumberPattern>
17115         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
17116       </generalDesc>
17117       <fixedLine>
17118         <nationalNumberPattern>
17119           [12]\d{6,7}|
17120           9(?:
17121             0[3-9]|
17122             [1-9]\d
17123           )\d{5}|
17124           (?:
17125             3\d|
17126             4[023568]|
17127             5[02368]|
17128             6[02-469]|
17129             7[4-69]|
17130             8[2-9]
17131           )\d{6}|
17132           (?:
17133             4[47]|
17134             5[14579]|
17135             6[1578]|
17136             7[0-357]
17137           )\d{5,6}|
17138           (?:
17139             78|
17140             41
17141           )\d{5}
17142         </nationalNumberPattern>
17143         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
17144         <exampleNumber>12345678</exampleNumber>
17145       </fixedLine>
17146       <mobile>
17147         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17148              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17149              Starcomms have apparently, according to the company, been used for mobile numbers too,
17150              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17151              903 has been added for MTN, 905 has been added for Globacom (Glo), and 909 has been
17152              added for Etisalat. -->
17153         <nationalNumberPattern>
17154           (?:
17155             1(?:
17156               7[34]\d|
17157               8(?:
17158                 04|
17159                 [124579]\d|
17160                 8[0-3]
17161               )|
17162               95\d
17163             )|
17164             287[0-7]|
17165             3(?:
17166               18[1-8]|
17167               88[0-7]|
17168               9(?:
17169                 8[5-9]|
17170                 6[1-5]
17171               )
17172             )|
17173             4(?:
17174               28[0-2]|
17175               6(?:
17176                 7[1-9]|
17177                 8[02-47]
17178               )|
17179               88[0-2]
17180             )|
17181             5(?:
17182               2(?:
17183                 7[7-9]|
17184                 8\d
17185               )|
17186               38[1-79]|
17187               48[0-7]|
17188               68[4-7]
17189             )|
17190             6(?:
17191               2(?:
17192                 7[7-9]|
17193                 8\d
17194               )|
17195               4(?:
17196                 3[7-9]|
17197                 [68][129]|
17198                 7[04-69]|
17199                 9[1-8]
17200               )|
17201               58[0-2]|
17202               98[7-9]
17203             )|
17204             7(?:
17205               38[0-7]|
17206               69[1-8]|
17207               78[2-4]
17208             )|
17209             8(?:
17210               28[3-9]|
17211               38[0-2]|
17212               4(?:
17213                 2[12]|
17214                 3[147-9]|
17215                 5[346]|
17216                 7[4-9]|
17217                 8[014-689]|
17218                 90
17219               )|
17220               58[1-8]|
17221               78[2-9]|
17222               88[5-7]
17223             )|
17224             98[07]\d
17225           )\d{4}|
17226           (?:
17227             70(?:
17228               [13-9]\d|
17229               2[1-9]
17230             )|
17231             8(?:
17232               0[2-9]|
17233               1\d
17234             )\d|
17235             90[2359]\d
17236           )\d{6}
17237         </nationalNumberPattern>
17238         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17239         <exampleNumber>8021234567</exampleNumber>
17240       </mobile>
17241       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
17242       <tollFree>
17243         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
17244         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17245         <exampleNumber>80017591759</exampleNumber>
17246       </tollFree>
17247       <uan>
17248         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
17249         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17250         <exampleNumber>7001234567</exampleNumber>
17251       </uan>
17252     </territory>
17253
17254     <!-- Nicaragua -->
17255     <territory id="NI" countryCode="505" internationalPrefix="00">
17256       <references>
17257         <sourceUrl>http://www.itu.int/oth/T020200009A/en</sourceUrl>
17258       </references>
17259       <availableFormats>
17260         <numberFormat pattern="(\d{4})(\d{4})">
17261           <format>$1 $2</format>
17262         </numberFormat>
17263       </availableFormats>
17264       <generalDesc>
17265         <nationalNumberPattern>[12578]\d{7}</nationalNumberPattern>
17266         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17267       </generalDesc>
17268       <fixedLine>
17269         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
17270         <exampleNumber>21234567</exampleNumber>
17271       </fixedLine>
17272       <mobile>
17273         <!-- 55[0-7], 57, 58 and 7[5-8] were added from bug reports/numbers found online. -->
17274         <nationalNumberPattern>
17275           5(?:
17276             5[0-7]\d{5}|
17277             [78]\d{6}
17278           )|
17279           7[5-8]\d{6}|
17280           8\d{7}
17281         </nationalNumberPattern>
17282         <exampleNumber>81234567</exampleNumber>
17283       </mobile>
17284       <tollFree>
17285         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
17286         <exampleNumber>18001234</exampleNumber>
17287       </tollFree>
17288     </territory>
17289
17290     <!-- Netherlands -->
17291     <territory id="NL" countryCode="31" internationalPrefix="00"
17292                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
17293                mobileNumberPortableRegion="true">
17294       <references>
17295         <sourceUrl>http://en.wikipedia.org/wiki/%2B31</sourceUrl>
17296         <sourceUrl>http://www.opta.nl/en/numbers/search-for-numbers</sourceUrl>
17297       </references>
17298       <availableFormats>
17299         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
17300           <leadingDigits>
17301             1[035]|
17302             2[0346]|
17303             3[03568]|
17304             4[0356]|
17305             5[0358]|
17306             7|
17307             8[4578]
17308           </leadingDigits>
17309           <format>$1 $2 $3</format>
17310         </numberFormat>
17311         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
17312           <leadingDigits>
17313             1[16-8]|
17314             2[259]|
17315             3[124]|
17316             4[17-9]|
17317             5[124679]
17318           </leadingDigits>
17319           <format>$1 $2 $3</format>
17320         </numberFormat>
17321         <numberFormat pattern="(6)(\d{8})">
17322           <leadingDigits>6[0-57-9]</leadingDigits>
17323           <format>$1 $2</format>
17324         </numberFormat>
17325         <numberFormat pattern="(66)(\d{7})">
17326           <leadingDigits>66</leadingDigits>
17327           <format>$1 $2</format>
17328         </numberFormat>
17329         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
17330           <leadingDigits>14</leadingDigits>
17331           <format>$1 $2</format>
17332         </numberFormat>
17333         <numberFormat pattern="([89]0\d)(\d{4,7})">
17334           <leadingDigits>
17335             80|
17336             9
17337           </leadingDigits>
17338           <format>$1 $2</format>
17339         </numberFormat>
17340       </availableFormats>
17341       <generalDesc>
17342         <nationalNumberPattern>
17343           1\d{4,8}|
17344           [2-7]\d{8}|
17345           [89]\d{6,9}
17346         </nationalNumberPattern>
17347         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
17348       </generalDesc>
17349       <noInternationalDialling>
17350         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
17351         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17352       </noInternationalDialling>
17353       <fixedLine>
17354         <nationalNumberPattern>
17355           (?:
17356             1[0135-8]|
17357             2[02-69]|
17358             3[0-68]|
17359             4[0135-9]|
17360             [57]\d|
17361             8[478]
17362           )\d{7}
17363         </nationalNumberPattern>
17364         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17365         <exampleNumber>101234567</exampleNumber>
17366       </fixedLine>
17367       <mobile>
17368         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
17369         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17370         <exampleNumber>612345678</exampleNumber>
17371       </mobile>
17372       <pager>
17373         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
17374         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17375         <exampleNumber>662345678</exampleNumber>
17376       </pager>
17377       <tollFree>
17378         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
17379         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17380         <exampleNumber>8001234</exampleNumber>
17381       </tollFree>
17382       <premiumRate>
17383         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
17384         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17385         <exampleNumber>9061234</exampleNumber>
17386       </premiumRate>
17387       <voip>
17388         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
17389         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17390         <exampleNumber>851234567</exampleNumber>
17391       </voip>
17392       <uan>
17393         <!-- These numbers are used for local government. They are formed by the appending the local
17394              dialling code (including the national prefix 0) after the leading digits "14". -->
17395         <nationalNumberPattern>
17396           140(?:
17397             1(?:
17398               [035]|
17399               [16-8]\d
17400             )|
17401             2(?:
17402               [0346]|
17403               [259]\d
17404             )|
17405             3(?:
17406               [03568]|
17407               [124]\d
17408             )|
17409             4(?:
17410               [0356]|
17411               [17-9]\d
17412             )|
17413             5(?:
17414               [0358]|
17415               [124679]\d
17416             )|
17417             7\d|
17418             8[458]
17419           )
17420         </nationalNumberPattern>
17421         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17422         <exampleNumber>14020</exampleNumber>
17423       </uan>
17424     </territory>
17425
17426     <!-- Norway -->
17427     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
17428     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
17429                mainCountryForCode="true" mobileNumberPortableRegion="true">
17430       <references>
17431         <sourceUrl>http://www.npt.no/npt/numsys/E.164.pdf</sourceUrl>
17432       </references>
17433       <availableFormats>
17434         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
17435           <leadingDigits>[489]</leadingDigits>
17436           <format>$1 $2 $3</format>
17437         </numberFormat>
17438         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
17439           <leadingDigits>[235-7]</leadingDigits>
17440           <format>$1 $2 $3 $4</format>
17441         </numberFormat>
17442       </availableFormats>
17443       <generalDesc>
17444         <nationalNumberPattern>
17445           0\d{4}|
17446           [2-9]\d{7}
17447         </nationalNumberPattern>
17448         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
17449       </generalDesc>
17450       <fixedLine>
17451         <!-- Excludes Svalbard fixed-line numbers. -->
17452         <nationalNumberPattern>
17453           (?:
17454             2[1-4]|
17455             3[1-3578]|
17456             5[1-35-7]|
17457             6[1-4679]|
17458             7[0-8]
17459           )\d{6}
17460         </nationalNumberPattern>
17461         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17462         <exampleNumber>21234567</exampleNumber>
17463       </fixedLine>
17464       <mobile>
17465         <nationalNumberPattern>
17466           (?:
17467             4[015-8]|
17468             5[89]|
17469             9\d
17470           )\d{6}
17471         </nationalNumberPattern>
17472         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17473         <exampleNumber>40612345</exampleNumber>
17474       </mobile>
17475       <tollFree>
17476         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
17477         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17478         <exampleNumber>80012345</exampleNumber>
17479       </tollFree>
17480       <premiumRate>
17481         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
17482         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17483         <exampleNumber>82012345</exampleNumber>
17484       </premiumRate>
17485       <sharedCost>
17486         <nationalNumberPattern>
17487           810(?:
17488             0[0-6]|
17489             [2-8]\d
17490           )\d{3}
17491         </nationalNumberPattern>
17492         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17493         <exampleNumber>81021234</exampleNumber>
17494       </sharedCost>
17495       <personalNumber>
17496         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
17497         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17498         <exampleNumber>88012345</exampleNumber>
17499       </personalNumber>
17500       <voip>
17501         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
17502         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17503         <exampleNumber>85012345</exampleNumber>
17504       </voip>
17505       <uan>
17506         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
17507         <nationalNumberPattern>
17508           0\d{4}|
17509           81(?:
17510             0(?:
17511               0[7-9]|
17512               1\d
17513             )|
17514             5\d{2}
17515           )\d{3}
17516         </nationalNumberPattern>
17517         <exampleNumber>01234</exampleNumber>
17518       </uan>
17519       <voicemail>
17520         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
17521         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17522         <exampleNumber>81212345</exampleNumber>
17523       </voicemail>
17524     </territory>
17525
17526     <!-- Nepal -->
17527     <territory id="NP" countryCode="977" internationalPrefix="00"
17528                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17529       <references>
17530         <sourceUrl>http://www.itu.int/oth/T0202000095/en</sourceUrl>
17531         <sourceUrl>http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php</sourceUrl>
17532         <sourceUrl>http://www.nta.gov.np/en/2012-06-01-11-45-17/2012-06-04-04-26-59/numbering-plan</sourceUrl>
17533       </references>
17534       <availableFormats>
17535         <!-- Formatting patterns taken from pages like http://www.nepalgov.gov.np -->
17536         <numberFormat pattern="(1)(\d{7})">
17537           <leadingDigits>1[2-6]</leadingDigits>
17538           <format>$1-$2</format>
17539         </numberFormat>
17540         <numberFormat pattern="(\d{2})(\d{6})">
17541           <leadingDigits>
17542             1[01]|
17543             [2-8]|
17544             9(?:
17545               [1-69]|
17546               7[15-9]
17547             )
17548           </leadingDigits>
17549           <format>$1-$2</format>
17550         </numberFormat>
17551         <numberFormat pattern="(9\d{2})(\d{7})">
17552           <leadingDigits>
17553             9(?:
17554               6[013]|
17555               7[245]|
17556               8
17557             )
17558             </leadingDigits>
17559           <format>$1-$2</format>
17560         </numberFormat>
17561       </availableFormats>
17562       <generalDesc>
17563         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
17564              numbers that have the country code prefixed. -->
17565         <nationalNumberPattern>
17566           [1-8]\d{7}|
17567           9(?:
17568             [1-69]\d{6,8}|
17569             7[2-6]\d{5,7}|
17570             8\d{8}
17571           )
17572         </nationalNumberPattern>
17573         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17574       </generalDesc>
17575       <!-- We don't support Rural Telecommunication Service at the moment since
17576            we are not sure what type it is. -->
17577       <fixedLine>
17578         <nationalNumberPattern>
17579           (?:
17580             1[0-6]\d|
17581             2[13-79][2-6]|
17582             3[135-8][2-6]|
17583             4[146-9][2-6]|
17584             5[135-7][2-6]|
17585             6[13-9][2-6]|
17586             7[15-9][2-6]|
17587             8[1-46-9][2-6]|
17588             9[1-79][2-6]
17589           )\d{5}
17590         </nationalNumberPattern>
17591         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17592         <exampleNumber>14567890</exampleNumber>
17593       </fixedLine>
17594       <mobile>
17595         <nationalNumberPattern>
17596           9(?:
17597             6[013]|
17598             7[245]|
17599             8[01456]
17600           )\d{7}
17601         </nationalNumberPattern>
17602         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17603         <exampleNumber>9841234567</exampleNumber>
17604       </mobile>
17605       <!-- No information on other types of phone numbers for Nepal has been found. -->
17606     </territory>
17607
17608     <!-- Nauru -->
17609     <territory id="NR" countryCode="674" internationalPrefix="00">
17610       <references>
17611         <sourceUrl>http://www.itu.int/oth/T0202000094/en</sourceUrl>
17612         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru</sourceUrl>
17613       </references>
17614       <availableFormats>
17615         <numberFormat pattern="(\d{3})(\d{4})">
17616           <format>$1 $2</format>
17617         </numberFormat>
17618       </availableFormats>
17619       <generalDesc>
17620         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
17621         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17622       </generalDesc>
17623       <fixedLine>
17624         <nationalNumberPattern>
17625           (?:
17626             444|
17627             888
17628           )\d{4}
17629         </nationalNumberPattern>
17630         <exampleNumber>4441234</exampleNumber>
17631       </fixedLine>
17632       <mobile>
17633         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
17634         <exampleNumber>5551234</exampleNumber>
17635       </mobile>
17636     </territory>
17637
17638     <!-- Niue -->
17639     <territory id="NU" countryCode="683" internationalPrefix="00">
17640       <references>
17641         <sourceUrl>http://www.itu.int/oth/T02020000EC/en</sourceUrl>
17642         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue</sourceUrl>
17643       </references>
17644       <!-- Numbers are always formatted as a block. -->
17645       <generalDesc>
17646         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
17647         <possibleNumberPattern>\d{4}</possibleNumberPattern>
17648       </generalDesc>
17649       <fixedLine>
17650         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
17651         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
17652         <exampleNumber>4002</exampleNumber>
17653       </fixedLine>
17654       <mobile>
17655         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
17656         <exampleNumber>1234</exampleNumber>
17657       </mobile>
17658     </territory>
17659
17660     <!-- New Zealand -->
17661     <!-- Includes Ross Dependency, Antarctica -->
17662     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
17663          numbers and 050 "Nation-Wide Service". -->
17664     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
17665                preferredInternationalPrefix="00" nationalPrefix="0"
17666                nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
17667       <references>
17668         <sourceUrl>http://www.itu.int/oth/T0202000099/en</sourceUrl>
17669       </references>
17670       <availableFormats>
17671         <!-- Pattern for fixed-line formats. -->
17672         <numberFormat pattern="([34679])(\d{3})(\d{4})">
17673           <leadingDigits>
17674             [346]|
17675             7[2-57-9]|
17676             9[1-9]
17677           </leadingDigits>
17678           <format>$1-$2 $3</format>
17679         </numberFormat>
17680         <!-- Area code for NZ's Scott Base, in Antarctica. -->
17681         <numberFormat pattern="(24099)(\d{3})">
17682           <leadingDigits>240</leadingDigits>
17683           <leadingDigits>2409</leadingDigits>
17684           <leadingDigits>24099</leadingDigits>
17685           <format>$1 $2</format>
17686         </numberFormat>
17687         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
17688              length. -->
17689         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
17690         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
17691           <leadingDigits>21</leadingDigits>
17692           <format>$1 $2 $3</format>
17693         </numberFormat>
17694         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
17695         <numberFormat pattern="(\d{2})(\d{3})(\d{3,5})">
17696           <leadingDigits>
17697             2(?:
17698               1[1-9]|
17699               [69]|
17700               7[0-35-9]
17701             )|
17702             70|
17703             86
17704           </leadingDigits>
17705           <format>$1 $2 $3</format>
17706         </numberFormat>
17707         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
17708              than writing the first group as 022X based on Google web searches, and is used by
17709              2Degrees themselves. See formatting on http://www.2degreesmobile.co.nz for an example
17710              of the latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
17711         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
17712           <leadingDigits>2[028]</leadingDigits>
17713           <format>$1 $2 $3</format>
17714         </numberFormat>
17715         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
17716           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900. -->
17717           <leadingDigits>
17718             2(?:
17719               10|
17720               74
17721             )|
17722             5|
17723             [89]0
17724           </leadingDigits>
17725           <format>$1 $2 $3</format>
17726         </numberFormat>
17727       </availableFormats>
17728       <generalDesc>
17729         <nationalNumberPattern>
17730           6[235-9]\d{6}|
17731           [2-57-9]\d{7,10}
17732         </nationalNumberPattern>
17733         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
17734       </generalDesc>
17735       <fixedLine>
17736         <nationalNumberPattern>
17737           (?:
17738             3[2-79]|
17739             [49][2-9]|
17740             6[235-9]|
17741             7[2-57-9]
17742           )\d{6}|
17743           24099\d{3}
17744         </nationalNumberPattern>
17745         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17746         <exampleNumber>32345678</exampleNumber>
17747       </fixedLine>
17748       <mobile>
17749         <!-- Includes mobile radio service numbers (e.g. TeamTalk). The lengths of numbers with
17750              prefix 21 are different from what's specified in the ITU doc, because of numbers found
17751              online. -->
17752         <nationalNumberPattern>
17753           2(?:
17754             [028]\d{7,8}|
17755             1(?:
17756               [03]\d{5,7}|
17757               [12457]\d{5,6}|
17758               [689]\d{5}
17759             )|
17760             [79]\d{7}
17761           )
17762         </nationalNumberPattern>
17763         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17764         <exampleNumber>211234567</exampleNumber>
17765       </mobile>
17766       <pager>
17767         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
17768         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17769         <exampleNumber>26123456</exampleNumber>
17770       </pager>
17771       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
17772            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
17773            not covered, as telecom companies don't seem to support them yet. -->
17774       <tollFree>
17775         <nationalNumberPattern>
17776           508\d{6,7}|
17777           80\d{6,8}
17778         </nationalNumberPattern>
17779         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17780         <exampleNumber>800123456</exampleNumber>
17781       </tollFree>
17782       <premiumRate>
17783         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
17784         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
17785         <exampleNumber>900123456</exampleNumber>
17786       </premiumRate>
17787       <personalNumber>
17788         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
17789         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17790         <exampleNumber>701234567</exampleNumber>
17791       </personalNumber>
17792     </territory>
17793
17794     <!-- Oman -->
17795     <territory id="OM" countryCode="968" internationalPrefix="00" mobileNumberPortableRegion="true">
17796       <references>
17797         <sourceUrl>http://www.itu.int/oth/T020200009F/en</sourceUrl>
17798       </references>
17799       <availableFormats>
17800         <numberFormat pattern="(2\d)(\d{6})">
17801           <leadingDigits>2</leadingDigits>
17802           <format>$1 $2</format>
17803         </numberFormat>
17804         <numberFormat pattern="(9\d{3})(\d{4})">
17805           <leadingDigits>9</leadingDigits>
17806           <format>$1 $2</format>
17807         </numberFormat>
17808         <numberFormat pattern="([58]00)(\d{4,6})">
17809           <leadingDigits>[58]</leadingDigits>
17810           <format>$1 $2</format>
17811         </numberFormat>
17812       </availableFormats>
17813       <generalDesc>
17814         <nationalNumberPattern>
17815           (?:
17816             2[2-6]|
17817             5|
17818             9[1-9]
17819           )\d{6}|
17820           800\d{5,6}
17821         </nationalNumberPattern>
17822         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17823       </generalDesc>
17824       <fixedLine>
17825         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
17826         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17827         <exampleNumber>23123456</exampleNumber>
17828       </fixedLine>
17829       <mobile>
17830         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
17831         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17832         <exampleNumber>92123456</exampleNumber>
17833       </mobile>
17834       <tollFree>
17835         <!-- Link to document about toll-free numbers on http://www.tra.gov.om, which suggests they
17836              should be 8007 followed by 4 digits. However, the only examples I can find, including
17837              the customer help line for the main telephony company there (omantel), is 8007 followed
17838              by 5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to
17839              offer international toll-free dialing numbers - +968 500 1300 for international help
17840              desk for omantel, for example. -->
17841         <nationalNumberPattern>
17842           8007\d{4,5}|
17843           500\d{4}
17844         </nationalNumberPattern>
17845         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
17846         <exampleNumber>80071234</exampleNumber>
17847       </tollFree>
17848       <!-- No premiumRate information can be found. -->
17849     </territory>
17850
17851     <!-- Panama -->
17852     <territory id="PA" countryCode="507" internationalPrefix="00" mobileNumberPortableRegion="true">
17853       <references>
17854         <!-- Last read July 9, 2014. -->
17855         <sourceUrl>http://www.asep.gob.pa/telecom/pnn/default.asp</sourceUrl>
17856         <!-- Omits the fact that mobile phones are 8 digits long. -->
17857         <sourceUrl>http://en.wikipedia.org/wiki/%2B507</sourceUrl>
17858       </references>
17859       <availableFormats>
17860         <numberFormat pattern="(\d{3})(\d{4})">
17861           <leadingDigits>[1-57-9]</leadingDigits>
17862           <format>$1-$2</format>
17863         </numberFormat>
17864         <numberFormat pattern="(\d{4})(\d{4})">
17865           <leadingDigits>6</leadingDigits>
17866           <format>$1-$2</format>
17867         </numberFormat>
17868       </availableFormats>
17869       <generalDesc>
17870         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
17871         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
17872       </generalDesc>
17873       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
17874            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
17875       <fixedLine>
17876         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
17877              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
17878         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
17879              proved to be diallable. -->
17880         <nationalNumberPattern>
17881           (?:
17882             1(?:
17883               0[02-579]|
17884               19|
17885               2[37]|
17886               3[03]|
17887               4[479]|
17888               57|
17889               65|
17890               7[016-8]|
17891               8[58]|
17892               9[1349]
17893             )|
17894             2(?:
17895               [0235679]\d|
17896               1[0-7]|
17897               4[04-9]|
17898               8[028]
17899             )|
17900             3(?:
17901               [09]\d|
17902               1[14-7]|
17903               2[0-3]|
17904               3[03]|
17905               4[0457]|
17906               5[56]|
17907               6[068]|
17908               7[06-8]|
17909               8[089]
17910             )|
17911             4(?:
17912               3[013-69]|
17913               4\d|
17914               7[0-689]
17915             )|
17916             5(?:
17917               [01]\d|
17918               2[0-7]|
17919               [56]0|
17920               79
17921             )|
17922             7(?:
17923               0[09]|
17924               2[0-267]|
17925               3[06]|
17926               [49]0|
17927               5[06-9]|
17928               7[0-24-7]|
17929               8[89]
17930             )|
17931             8(?:
17932               [34]\d|
17933               5[0-4]|
17934               8[02]
17935             )|
17936             9(?:
17937               0[6-8]|
17938               1[016-8]|
17939               2[036-8]|
17940               3[3679]|
17941               40|
17942               5[0489]|
17943               6[06-9]|
17944               7[046-9]|
17945               8[36-8]|
17946               9[1-9]
17947             )
17948           )\d{4}
17949         </nationalNumberPattern>
17950         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17951         <exampleNumber>2001234</exampleNumber>
17952       </fixedLine>
17953       <mobile>
17954         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
17955              service "210", "Servicio de Busca Personas". -->
17956         <nationalNumberPattern>
17957           (?:
17958             1[16]1|
17959             21[89]|
17960             8(?:
17961               1[01]|
17962               7[23]
17963             )
17964           )\d{4}|
17965           6(?:
17966             [024-9]\d|
17967             1[0-5]|
17968             3[0-24-9]
17969           )\d{5}
17970         </nationalNumberPattern>
17971         <exampleNumber>60012345</exampleNumber>
17972       </mobile>
17973       <tollFree>
17974         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
17975         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17976         <exampleNumber>8001234</exampleNumber>
17977       </tollFree>
17978       <premiumRate>
17979         <!-- Value-added services are represented as "400" in the plan. -->
17980         <nationalNumberPattern>
17981           (?:
17982             779|
17983             8(?:
17984               2[235]|
17985               55|
17986               60|
17987               7[578]|
17988               86|
17989               95
17990             )|
17991             9(?:
17992               0[0-2]|
17993               81
17994             )
17995           )\d{4}
17996         </nationalNumberPattern>
17997         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17998         <exampleNumber>8601234</exampleNumber>
17999       </premiumRate>
18000     </territory>
18001
18002     <!-- Peru -->
18003     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
18004                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18005                preferredExtnPrefix=" Anexo " mobileNumberPortableRegion="true">
18006       <references>
18007         <sourceUrl>http://www.itu.int/oth/T02020000A6/en</sourceUrl>
18008         <sourceUrl>http://en.wikipedia.org/wiki/+51</sourceUrl>
18009         <sourceUrl>http://www.assistbook.com/South%20America/Peru/widecodes</sourceUrl>
18010       </references>
18011       <availableFormats>
18012         <numberFormat pattern="(1)(\d{7})">
18013           <leadingDigits>1</leadingDigits>
18014           <format>$1 $2</format>
18015         </numberFormat>
18016         <numberFormat pattern="([4-8]\d)(\d{6})">
18017           <leadingDigits>
18018             [4-7]|
18019             8[2-4]
18020           </leadingDigits>
18021           <format>$1 $2</format>
18022         </numberFormat>
18023         <numberFormat pattern="(\d{3})(\d{5})">
18024           <leadingDigits>80</leadingDigits>
18025           <format>$1 $2</format>
18026         </numberFormat>
18027         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
18028         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
18029                       nationalPrefixFormattingRule="$FG">
18030           <leadingDigits>9</leadingDigits>
18031           <format>$1 $2 $3</format>
18032         </numberFormat>
18033       </availableFormats>
18034       <generalDesc>
18035         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
18036         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18037       </generalDesc>
18038       <fixedLine>
18039         <nationalNumberPattern>
18040           (?:
18041             1\d|
18042             4[1-4]|
18043             5[1-46]|
18044             6[1-7]|
18045             7[2-46]|
18046             8[2-4]
18047           )\d{6}
18048         </nationalNumberPattern>
18049         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
18050         <exampleNumber>11234567</exampleNumber>
18051       </fixedLine>
18052       <mobile>
18053         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
18054         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18055         <exampleNumber>912345678</exampleNumber>
18056       </mobile>
18057       <tollFree>
18058         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18059         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18060         <exampleNumber>80012345</exampleNumber>
18061       </tollFree>
18062       <premiumRate>
18063         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
18064         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18065         <exampleNumber>80512345</exampleNumber>
18066       </premiumRate>
18067       <sharedCost>
18068         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
18069         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18070         <exampleNumber>80112345</exampleNumber>
18071       </sharedCost>
18072       <personalNumber>
18073         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
18074         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18075         <exampleNumber>80212345</exampleNumber>
18076       </personalNumber>
18077     </territory>
18078
18079     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
18080     <territory id="PF" countryCode="689" internationalPrefix="00">
18081       <references>
18082         <sourceUrl>http://www.itu.int/oth/T020200004D/en</sourceUrl>
18083       </references>
18084       <availableFormats>
18085         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
18086           <leadingDigits>
18087             4[09]|
18088             8[79]
18089           </leadingDigits>
18090           <format>$1 $2 $3 $4</format>
18091         </numberFormat>
18092         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
18093           <leadingDigits>44</leadingDigits>
18094           <format>$1 $2 $3</format>
18095         </numberFormat>
18096       </availableFormats>
18097       <generalDesc>
18098         <nationalNumberPattern>
18099           4\d{5,7}|
18100           8\d{7}
18101         </nationalNumberPattern>
18102         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
18103       </generalDesc>
18104       <noInternationalDialling>
18105         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
18106         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18107         <exampleNumber>441234</exampleNumber>
18108       </noInternationalDialling>
18109       <fixedLine>
18110         <!-- Includes payphone prefixes. -->
18111         <nationalNumberPattern>
18112           4(?:
18113             [09][45689]\d|
18114             4
18115           )\d{4}
18116         </nationalNumberPattern>
18117         <exampleNumber>40412345</exampleNumber>
18118       </fixedLine>
18119       <mobile>
18120         <nationalNumberPattern>8[79]\d{6}</nationalNumberPattern>
18121         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18122         <exampleNumber>87123456</exampleNumber>
18123       </mobile>
18124     </territory>
18125
18126     <!-- Papua New Guinea -->
18127     <territory id="PG" countryCode="675" internationalPrefix="00">
18128       <references>
18129         <sourceUrl>http://www.itu.int/oth/T02020000A4/en</sourceUrl>
18130         <sourceUrl>http://en.wikipedia.org/wiki/%2B675</sourceUrl>
18131       </references>
18132       <availableFormats>
18133         <numberFormat pattern="(\d{3})(\d{4})">
18134           <leadingDigits>
18135             [13-689]|
18136             27
18137           </leadingDigits>
18138           <format>$1 $2</format>
18139         </numberFormat>
18140         <numberFormat pattern="(\d{4})(\d{4})">
18141           <leadingDigits>
18142             20|
18143             7
18144           </leadingDigits>
18145           <format>$1 $2</format>
18146         </numberFormat>
18147       </availableFormats>
18148       <generalDesc>
18149         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18150         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18151       </generalDesc>
18152       <fixedLine>
18153         <nationalNumberPattern>
18154           (?:
18155             3[0-2]\d|
18156             4[25]\d|
18157             5[34]\d|
18158             64[1-9]|
18159             77(?:
18160               [0-24]\d|
18161               30
18162             )|
18163             85[02-46-9]|
18164             9[78]\d
18165           )\d{4}
18166         </nationalNumberPattern>
18167         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18168         <exampleNumber>3123456</exampleNumber>
18169       </fixedLine>
18170       <mobile>
18171         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
18172              Wikipedia.
18173              As per ITU doc, prefix 20150 will expire at the end of 2015. -->
18174         <nationalNumberPattern>
18175           (?:
18176             20150|
18177             68\d{2}|
18178             7(?:
18179               [0-369]\d|
18180               75
18181             )\d{2}
18182           )\d{3}
18183         </nationalNumberPattern>
18184         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18185         <exampleNumber>6812345</exampleNumber>
18186       </mobile>
18187       <tollFree>
18188         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
18189         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18190         <exampleNumber>1801234</exampleNumber>
18191       </tollFree>
18192       <voip>
18193         <!-- VSAT prefixes are here. -->
18194         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
18195         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18196         <exampleNumber>2751234</exampleNumber>
18197       </voip>
18198     </territory>
18199
18200     <!-- Philippines -->
18201     <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
18202       <references>
18203         <sourceUrl>http://en.wikipedia.org/wiki/%2B63</sourceUrl>
18204       </references>
18205       <availableFormats>
18206         <!-- Area code separated from number. Area codes found here:
18207         http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
18208         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18209           pattern="(2)(\d{3})(\d{4})">
18210           <leadingDigits>2</leadingDigits>
18211           <format>$1 $2 $3</format>
18212         </numberFormat>
18213         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18214           pattern="(2)(\d{5})">
18215           <leadingDigits>2</leadingDigits>
18216           <format>$1 $2</format>
18217         </numberFormat>
18218         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18219           pattern="(\d{4})(\d{4,6})">
18220           <leadingDigits>
18221             3(?:
18222               23|
18223               39|
18224               46
18225             )|
18226             4(?:
18227               2[3-6]|
18228               [35]9|
18229               4[26]|
18230               76
18231             )|
18232             5(?:
18233               22|
18234               44
18235             )|
18236             642|
18237             8(?:
18238               62|
18239               8[245]
18240             )
18241           </leadingDigits>
18242           <leadingDigits>
18243             3(?:
18244               230|
18245               397|
18246               461
18247             )|
18248             4(?:
18249               2(?:
18250                 35|
18251                 [46]4|
18252                 51
18253               )|
18254               396|
18255               4(?:
18256                 22|
18257                 63
18258               )|
18259               59[347]|
18260               76[15]
18261             )|
18262             5(?:
18263               221|
18264               446
18265             )|
18266             642[23]|
18267             8(?:
18268               622|
18269               8(?:
18270                 [24]2|
18271                 5[13]
18272               )
18273             )
18274           </leadingDigits>
18275           <format>$1 $2</format>
18276         </numberFormat>
18277         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18278           pattern="(\d{5})(\d{4})">
18279           <leadingDigits>
18280             346|
18281             4(?:
18282               27|
18283               9[35]
18284             )|
18285             883
18286           </leadingDigits>
18287           <leadingDigits>
18288             3469|
18289             4(?:
18290               279|
18291               9(?:
18292                 30|
18293                 56
18294               )
18295             )|
18296             8834
18297           </leadingDigits>
18298           <format>$1 $2</format>
18299         </numberFormat>
18300         <!-- This rule is a fallback for the more specific area codes. -->
18301         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18302           pattern="([3-8]\d)(\d{3})(\d{4})">
18303           <leadingDigits>[3-8]</leadingDigits>
18304           <format>$1 $2 $3</format>
18305         </numberFormat>
18306         <numberFormat nationalPrefixFormattingRule="$NP$FG"
18307           pattern="(\d{3})(\d{3})(\d{4})">
18308           <leadingDigits>
18309             81|
18310             9
18311           </leadingDigits>
18312           <format>$1 $2 $3</format>
18313         </numberFormat>
18314         <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
18315         <numberFormat pattern="(1800)(\d{3})(\d{4})">
18316           <leadingDigits>1</leadingDigits>
18317           <format>$1 $2 $3</format>
18318         </numberFormat>
18319         <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
18320           <leadingDigits>1</leadingDigits>
18321           <format>$1 $2 $3 $4</format>
18322         </numberFormat>
18323       </availableFormats>
18324       <generalDesc>
18325         <nationalNumberPattern>
18326           2\d{5,7}|
18327           [3-9]\d{7,9}|
18328           1800\d{7,9}
18329         </nationalNumberPattern>
18330         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
18331       </generalDesc>
18332       <fixedLine>
18333         <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
18334              that have only 5 digits after the area code; plus it seems the 8822 area code is
18335              followed by 6 digits, and 8842 by only 4. -->
18336         <nationalNumberPattern>
18337           2\d{5}(?:\d{2})?|
18338           (?:
18339             3[2-68]|
18340             4[2-9]|
18341             5[2-6]|
18342             6[2-58]|
18343             7[24578]|
18344             8[2-8]
18345           )\d{7}|
18346           88(?:
18347             22\d{6}|
18348             42\d{4}
18349           )
18350         </nationalNumberPattern>
18351         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
18352         <exampleNumber>21234567</exampleNumber>
18353       </fixedLine>
18354       <mobile>
18355         <nationalNumberPattern>
18356           (?:
18357             81[37]|
18358             9(?:
18359               0[5-9]|
18360               1[024-9]|
18361               2[0-35-9]|
18362               3[02-9]|
18363               4[236-9]|
18364               7[34-79]|
18365               89|
18366               9[4-9]
18367             )
18368           )\d{7}
18369         </nationalNumberPattern>
18370         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18371         <exampleNumber>9051234567</exampleNumber>
18372       </mobile>
18373       <!-- Information on toll-free numbers collected from searching the internet -->
18374       <tollFree>
18375         <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
18376         <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
18377         <exampleNumber>180012345678</exampleNumber>
18378       </tollFree>
18379       <!-- No information can be found about other types of numbers (such as premium rate) in the
18380            Philippines. -->
18381     </territory>
18382
18383     <!-- Pakistan -->
18384     <territory id="PK" countryCode="92" internationalPrefix="00"
18385                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18386                mobileNumberPortableRegion="true">
18387       <references>
18388         <sourceUrl>http://www.itu.int/oth/T02020000A1/en</sourceUrl>
18389         <sourceUrl>http://en.wikipedia.org/wiki/%2B92</sourceUrl>
18390       </references>
18391       <availableFormats>
18392         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
18393              formatted nicely by the AYTF. -->
18394         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
18395           <leadingDigits>
18396             (?:
18397               2[125]|
18398               4[0-246-9]|
18399               5[1-35-7]|
18400               6[1-8]|
18401               7[14]|
18402               8[16]|
18403               91
18404             )1
18405           </leadingDigits>
18406           <leadingDigits>
18407             (?:
18408               2[125]|
18409               4[0-246-9]|
18410               5[1-35-7]|
18411               6[1-8]|
18412               7[14]|
18413               8[16]|
18414               91
18415             )11
18416           </leadingDigits>
18417           <leadingDigits>
18418             (?:
18419               2[125]|
18420               4[0-246-9]|
18421               5[1-35-7]|
18422               6[1-8]|
18423               7[14]|
18424               8[16]|
18425               91
18426             )111
18427           </leadingDigits>
18428           <format>$1 $2 $3 $4</format>
18429         </numberFormat>
18430         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
18431           <leadingDigits>
18432             2[349]|
18433             45|
18434             54|
18435             60|
18436             72|
18437             8[2-5]|
18438             9[2-9]
18439           </leadingDigits>
18440           <leadingDigits>
18441             (?:
18442               2[349]|
18443               45|
18444               54|
18445               60|
18446               72|
18447               8[2-5]|
18448               9[2-9]
18449             )\d1
18450           </leadingDigits>
18451           <leadingDigits>
18452             (?:
18453               2[349]|
18454               45|
18455               54|
18456               60|
18457               72|
18458               8[2-5]|
18459               9[2-9]
18460             )\d11
18461           </leadingDigits>
18462           <leadingDigits>
18463             (?:
18464               2[349]|
18465               45|
18466               54|
18467               60|
18468               72|
18469               8[2-5]|
18470               9[2-9]
18471             )\d111
18472           </leadingDigits>
18473           <format>$1 $2 $3 $4</format>
18474         </numberFormat>
18475         <numberFormat pattern="(\d{2})(\d{7,8})">
18476           <leadingDigits>
18477             (?:
18478               2[125]|
18479               4[0-246-9]|
18480               5[1-35-7]|
18481               6[1-8]|
18482               7[14]|
18483               8[16]|
18484               91
18485             )[2-9]
18486           </leadingDigits>
18487           <format>$1 $2</format>
18488         </numberFormat>
18489         <numberFormat pattern="(\d{3})(\d{6,7})">
18490           <leadingDigits>
18491             2[349]|
18492             45|
18493             54|
18494             60|
18495             72|
18496             8[2-5]|
18497             9[2-9]
18498           </leadingDigits>
18499           <leadingDigits>
18500             (?:
18501               2[349]|
18502               45|
18503               54|
18504               60|
18505               72|
18506               8[2-5]|
18507               9[2-9]
18508             )\d[2-9]
18509           </leadingDigits>
18510           <format>$1 $2</format>
18511         </numberFormat>
18512         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
18513           <leadingDigits>3</leadingDigits>
18514           <format>$1 $2</format>
18515         </numberFormat>
18516         <numberFormat pattern="([15]\d{3})(\d{5,6})">
18517           <leadingDigits>
18518             58[12]|
18519             1
18520           </leadingDigits>
18521           <format>$1 $2</format>
18522         </numberFormat>
18523         <!-- This is from online examples. -->
18524         <numberFormat pattern="(586\d{2})(\d{5})">
18525           <leadingDigits>586</leadingDigits>
18526           <format>$1 $2</format>
18527         </numberFormat>
18528         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
18529           <leadingDigits>[89]00</leadingDigits>
18530           <format>$1 $2 $3</format>
18531         </numberFormat>
18532       </availableFormats>
18533       <generalDesc>
18534         <!-- This is horribly complex because the country code is 92, and several area codes start
18535              with 92, and the number length is widely variable. -->
18536         <nationalNumberPattern>
18537           1\d{8}|
18538           [2-8]\d{5,11}|
18539           9(?:
18540             [013-9]\d{4,9}|
18541             2\d(?:
18542               111\d{6}|
18543               \d{3,7}
18544             )
18545           )
18546         </nationalNumberPattern>
18547         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
18548       </generalDesc>
18549       <fixedLine>
18550         <!-- The subscriber number length is not well defined for some area codes. From online
18551              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
18552              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
18553              of Karachi and Lahore (both 8). -->
18554         <nationalNumberPattern>
18555           (?:
18556             21|
18557             42
18558           )[2-9]\d{7}|
18559           (?:
18560             2[25]|
18561             4[0146-9]|
18562             5[1-35-7]|
18563             6[1-8]|
18564             7[14]|
18565             8[16]|
18566             91
18567           )[2-9]\d{6}|
18568           (?:
18569             2(?:
18570               3[2358]|
18571               4[2-4]|
18572               9[2-8]
18573             )|
18574             45[3479]|
18575             54[2-467]|
18576             60[468]|
18577             72[236]|
18578             8(?:
18579               2[2-689]|
18580               3[23578]|
18581               4[3478]|
18582               5[2356]
18583             )|
18584             9(?:
18585               1|
18586               2[2-8]|
18587               3[27-9]|
18588               4[2-6]|
18589               6[3569]|
18590               9[25-8]
18591             )
18592           )[2-9]\d{5,6}|
18593           58[126]\d{7}
18594         </nationalNumberPattern>
18595         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
18596         <exampleNumber>2123456789</exampleNumber>
18597       </fixedLine>
18598       <mobile>
18599         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
18600              can be found online with these prefixes. Added 310 based on information from Zong, and
18601              316 based on information found online. -->
18602         <nationalNumberPattern>
18603           3(?:
18604             0\d|
18605             1[0-6]|
18606             2[0-5]|
18607             [34][0-7]|
18608             55|
18609             64
18610           )\d{7}
18611         </nationalNumberPattern>
18612         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18613         <exampleNumber>3012345678</exampleNumber>
18614       </mobile>
18615       <tollFree>
18616         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18617         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18618         <exampleNumber>80012345</exampleNumber>
18619       </tollFree>
18620       <premiumRate>
18621         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
18622         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18623         <exampleNumber>90012345</exampleNumber>
18624       </premiumRate>
18625       <!-- These are referred to as UPT numbers in the plan. -->
18626       <personalNumber>
18627         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
18628         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18629         <!-- The example number here is the test number from the plan. -->
18630         <exampleNumber>122044444</exampleNumber>
18631       </personalNumber>
18632       <uan>
18633         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
18634              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
18635              what type of number they are. We exclude Azad Jammu, Kashmir and Northern Areas here
18636              since no online example UANs can be found, and they have an "access code" at the start,
18637              making it difficult to guess what a UAN in these areas would look like. -->
18638         <nationalNumberPattern>
18639           (?:
18640             2(?:
18641               [125]|
18642               3[2358]|
18643               4[2-4]|
18644               9[2-8]
18645             )|
18646             4(?:
18647               [0-246-9]|
18648               5[3479]
18649             )|
18650             5(?:
18651               [1-35-7]|
18652               4[2-467]
18653             )|
18654             6(?:
18655               [1-8]|
18656               0[468]
18657             )|
18658             7(?:
18659               [14]|
18660               2[236]
18661             )|
18662             8(?:
18663               [16]|
18664               2[2-689]|
18665               3[23578]|
18666               4[3478]|
18667               5[2356]
18668             )|
18669             9(?:
18670               1|
18671               22|
18672               3[27-9]|
18673               4[2-6]|
18674               6[3569]|
18675               9[2-7]
18676             )
18677           )111\d{6}
18678         </nationalNumberPattern>
18679         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
18680         <exampleNumber>21111825888</exampleNumber>
18681       </uan>
18682     </territory>
18683
18684     <!-- Poland -->
18685     <territory id="PL" countryCode="48" internationalPrefix="00" mobileNumberPortableRegion="true">
18686       <references>
18687         <sourceUrl>http://en.wikipedia.org/wiki/%2B48</sourceUrl>
18688         <sourceUrl>http://www.itu.int/oth/T02020000A8/en</sourceUrl>
18689         <!-- Source is in Polish. -->
18690         <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>
18691       </references>
18692       <availableFormats>
18693         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
18694           <leadingDigits>
18695             [124]|
18696             3[2-4]|
18697             5[24-689]|
18698             6[1-3578]|
18699             7[14-7]|
18700             8[1-79]|
18701             9[145]
18702           </leadingDigits>
18703           <format>$1 $2 $3 $4</format>
18704         </numberFormat>
18705         <numberFormat pattern="(\d{2})(\d{1})(\d{4})">
18706           <leadingDigits>[12]2</leadingDigits>
18707           <format>$1 $2 $3</format>
18708         </numberFormat>
18709         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
18710              Poles that this is more usual. -->
18711         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
18712           <leadingDigits>
18713             39|
18714             5[0137]|
18715             6[0469]|
18716             7[02389]|
18717             8[08]
18718           </leadingDigits>
18719           <format>$1 $2 $3</format>
18720         </numberFormat>
18721         <!-- Additional patterns for shorter pager numbers. -->
18722         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
18723           <leadingDigits>64</leadingDigits>
18724           <format>$1 $2 $3</format>
18725         </numberFormat>
18726         <numberFormat pattern="(\d{3})(\d{3})">
18727           <leadingDigits>64</leadingDigits>
18728           <format>$1 $2</format>
18729         </numberFormat>
18730       </availableFormats>
18731       <generalDesc>
18732         <nationalNumberPattern>
18733           [12]\d{6,8}|
18734           [3-57-9]\d{8}|
18735           6\d{5,8}
18736         </nationalNumberPattern>
18737         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18738       </generalDesc>
18739       <fixedLine>
18740         <!-- The plan says all geographical numbers are 9 digits; but in at least Warsaw (22) and
18741              Krakow (12) we have found internationally diallable numbers that are 7 digits instead,
18742              so we support those too. -->
18743         <nationalNumberPattern>
18744           (?:
18745             1[2-8]|
18746             2[2-59]|
18747             3[2-4]|
18748             4[1-468]|
18749             5[24-689]|
18750             6[1-3578]|
18751             7[14-7]|
18752             8[1-79]|
18753             9[145]
18754           )\d{7}|
18755           [12]2\d{5}
18756         </nationalNumberPattern>
18757         <exampleNumber>123456789</exampleNumber>
18758       </fixedLine>
18759       <mobile>
18760         <nationalNumberPattern>
18761           (?:
18762             5[0137]|
18763             6[069]|
18764             7[2389]|
18765             88
18766           )\d{7}
18767         </nationalNumberPattern>
18768         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18769         <exampleNumber>512345678</exampleNumber>
18770       </mobile>
18771       <pager>
18772         <nationalNumberPattern>64\d{4,7}</nationalNumberPattern>
18773         <exampleNumber>641234567</exampleNumber>
18774       </pager>
18775       <tollFree>
18776         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
18777         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18778         <exampleNumber>800123456</exampleNumber>
18779       </tollFree>
18780       <premiumRate>
18781         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
18782         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18783         <exampleNumber>701234567</exampleNumber>
18784       </premiumRate>
18785       <sharedCost>
18786         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
18787         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18788         <exampleNumber>801234567</exampleNumber>
18789       </sharedCost>
18790       <voip>
18791         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
18792         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18793         <exampleNumber>391234567</exampleNumber>
18794       </voip>
18795     </territory>
18796
18797     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
18798     <territory id="PM" countryCode="508" internationalPrefix="00"
18799                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18800       <references>
18801         <sourceUrl>http://www.itu.int/oth/T02020000B2/en</sourceUrl>
18802       </references>
18803       <availableFormats>
18804         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
18805           <format>$1 $2 $3</format>
18806         </numberFormat>
18807       </availableFormats>
18808       <generalDesc>
18809         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
18810         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18811       </generalDesc>
18812       <fixedLine>
18813         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
18814         <exampleNumber>411234</exampleNumber>
18815       </fixedLine>
18816       <mobile>
18817         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
18818         <exampleNumber>551234</exampleNumber>
18819       </mobile>
18820     </territory>
18821
18822     <!-- Pitcairn Island -->
18823     <!-- id="PN" -->
18824     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
18825          satellite phones. -->
18826
18827     <!-- Puerto Rico -->
18828     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
18829                internationalPrefix="011">
18830       <references>
18831         <sourceUrl>http://www.itu.int/oth/T02020000AA/en</sourceUrl>
18832       </references>
18833       <generalDesc>
18834         <!-- NANPA country - uses US formatting rules -->
18835         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
18836         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
18837       </generalDesc>
18838       <fixedLine>
18839         <nationalNumberPattern>
18840           (?:
18841             787|
18842             939
18843           )[2-9]\d{6}
18844         </nationalNumberPattern>
18845         <exampleNumber>7872345678</exampleNumber>
18846       </fixedLine>
18847       <mobile>
18848         <nationalNumberPattern>
18849           (?:
18850             787|
18851             939
18852           )[2-9]\d{6}
18853         </nationalNumberPattern>
18854         <exampleNumber>7872345678</exampleNumber>
18855       </mobile>
18856       <tollFree>
18857         <nationalNumberPattern>
18858           8(?:
18859             00|
18860             44|
18861             55|
18862             66|
18863             77|
18864             88
18865           )[2-9]\d{6}
18866         </nationalNumberPattern>
18867         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18868         <exampleNumber>8002345678</exampleNumber>
18869       </tollFree>
18870       <premiumRate>
18871         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
18872         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18873         <exampleNumber>9002345678</exampleNumber>
18874       </premiumRate>
18875       <personalNumber>
18876         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
18877         <nationalNumberPattern>
18878           5(?:
18879             00|
18880             33|
18881             44|
18882             66|
18883             77
18884           )[2-9]\d{6}
18885         </nationalNumberPattern>
18886         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18887         <exampleNumber>5002345678</exampleNumber>
18888       </personalNumber>
18889     </territory>
18890
18891     <!-- Palestinian Authority -->
18892     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
18893          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
18894          subset of the Israeli formats. -->
18895     <territory id="PS" countryCode="970" internationalPrefix="00"
18896                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
18897       <references>
18898         <sourceUrl>http://en.wikipedia.org/wiki/%2B970</sourceUrl>
18899         <sourceUrl>http://www.wtng.info/wtng-970-ps.html</sourceUrl>
18900         <sourceUrl>http://www.paltel.ps</sourceUrl>
18901       </references>
18902       <availableFormats>
18903         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
18904           <leadingDigits>[2489]</leadingDigits>
18905           <format>$1 $2 $3</format>
18906         </numberFormat>
18907         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
18908           <leadingDigits>5</leadingDigits>
18909           <format>$1 $2 $3</format>
18910         </numberFormat>
18911         <numberFormat nationalPrefixFormattingRule="$FG"
18912           pattern="(1[78]00)(\d{3})(\d{3})">
18913           <leadingDigits>1[78]</leadingDigits>
18914           <format>$1 $2 $3</format>
18915         </numberFormat>
18916         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
18917       </availableFormats>
18918       <generalDesc>
18919         <nationalNumberPattern>
18920           [24589]\d{7,8}|
18921           1(?:
18922             [78]\d{8}|
18923             [49]\d{2,3}
18924           )
18925         </nationalNumberPattern>
18926         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
18927       </generalDesc>
18928       <fixedLine>
18929         <nationalNumberPattern>
18930           (?:
18931             22[234789]|
18932             42[45]|
18933             82[01458]|
18934             92[369]
18935           )\d{5}
18936         </nationalNumberPattern>
18937         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18938         <exampleNumber>22234567</exampleNumber>
18939       </fixedLine>
18940       <mobile>
18941         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
18942         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18943         <exampleNumber>599123456</exampleNumber>
18944       </mobile>
18945       <tollFree>
18946         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
18947         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18948         <exampleNumber>1800123456</exampleNumber>
18949       </tollFree>
18950       <premiumRate>
18951         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
18952         <nationalNumberPattern>
18953           1(?:
18954             4|
18955             9\d
18956            )\d{2}
18957         </nationalNumberPattern>
18958         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
18959         <exampleNumber>19123</exampleNumber>
18960       </premiumRate>
18961       <sharedCost>
18962         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
18963         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18964         <exampleNumber>1700123456</exampleNumber>
18965       </sharedCost>
18966     </territory>
18967
18968     <!-- Portugal -->
18969     <territory id="PT" countryCode="351" internationalPrefix="00" mobileNumberPortableRegion="true">
18970       <references>
18971         <sourceUrl>http://www.anacom.pt/render.jsp?categoryId=279098</sourceUrl>
18972       </references>
18973       <availableFormats>
18974         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
18975              two digits in the first group; however, this doesn't seem to be majority usage based on
18976              searches online. -->
18977         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
18978           <leadingDigits>2[12]</leadingDigits>
18979           <format>$1 $2 $3</format>
18980         </numberFormat>
18981         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
18982           <leadingDigits>
18983             2[3-9]|
18984             [346-9]
18985           </leadingDigits>
18986           <format>$1 $2 $3</format>
18987         </numberFormat>
18988       </availableFormats>
18989       <generalDesc>
18990         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
18991         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18992       </generalDesc>
18993       <fixedLine>
18994         <nationalNumberPattern>
18995           2(?:
18996             [12]\d|
18997             [35][1-689]|
18998             4[1-59]|
18999             6[1-35689]|
19000             7[1-9]|
19001             8[1-69]|
19002             9[1256]
19003           )\d{6}
19004         </nationalNumberPattern>
19005         <exampleNumber>212345678</exampleNumber>
19006       </fixedLine>
19007       <mobile>
19008         <nationalNumberPattern>
19009           9(?:
19010             [136]\d{2}|
19011             2[0-79]\d|
19012             480
19013           )\d{5}
19014         </nationalNumberPattern>
19015         <exampleNumber>912345678</exampleNumber>
19016       </mobile>
19017       <tollFree>
19018         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
19019         <exampleNumber>800123456</exampleNumber>
19020       </tollFree>
19021       <premiumRate>
19022         <!-- Fixed maximum cost numbers: 761=0.60€, 761=1€, 762=2€. -->
19023         <nationalNumberPattern>
19024           76(?:
19025             0[1-57]|
19026             1[2-47]|
19027             2[237]
19028           )\d{5}
19029         </nationalNumberPattern>
19030         <exampleNumber>760123456</exampleNumber>
19031       </premiumRate>
19032       <sharedCost>
19033         <!-- 808 are priced as local calls, 809 are national calls. -->
19034         <nationalNumberPattern>
19035           80(?:
19036             8\d|
19037             9[1579]
19038           )\d{5}
19039         </nationalNumberPattern>
19040         <exampleNumber>808123456</exampleNumber>
19041       </sharedCost>
19042       <personalNumber>
19043         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
19044         <exampleNumber>884123456</exampleNumber>
19045       </personalNumber>
19046       <voip>
19047         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
19048         <exampleNumber>301234567</exampleNumber>
19049       </voip>
19050       <uan>
19051         <nationalNumberPattern>
19052           70(?:
19053             7\d|
19054             8[17]
19055           )\d{5}
19056         </nationalNumberPattern>
19057         <exampleNumber>707123456</exampleNumber>
19058       </uan>
19059     </territory>
19060
19061     <!-- Palau -->
19062     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
19063       <references>
19064         <sourceUrl>http://www.itu.int/oth/T02020000A2/en</sourceUrl>
19065       </references>
19066       <availableFormats>
19067         <numberFormat pattern="(\d{3})(\d{4})">
19068           <format>$1 $2</format>
19069         </numberFormat>
19070       </availableFormats>
19071       <generalDesc>
19072         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
19073         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19074       </generalDesc>
19075       <fixedLine>
19076         <nationalNumberPattern>
19077           2552255|
19078           (?:
19079             277|
19080             345|
19081             488|
19082             5(?:
19083               35|
19084               44|
19085               87
19086             )|
19087             6(?:
19088               22|
19089               54|
19090               79
19091             )|
19092             7(?:
19093               33|
19094               47
19095             )|
19096             8(?:
19097               24|
19098               55|
19099               76
19100             )
19101           )\d{4}
19102         </nationalNumberPattern>
19103         <exampleNumber>2771234</exampleNumber>
19104       </fixedLine>
19105       <mobile>
19106         <nationalNumberPattern>
19107           (?:
19108             6[234689]0|
19109             77[45789]
19110           )\d{4}
19111         </nationalNumberPattern>
19112         <exampleNumber>6201234</exampleNumber>
19113       </mobile>
19114     </territory>
19115
19116     <!-- Paraguay -->
19117     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0"
19118                mobileNumberPortableRegion="true">
19119       <references>
19120         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay</sourceUrl>
19121         <sourceUrl>http://www.itu.int/oth/T02020000A5/en</sourceUrl>
19122         <sourceUrl>http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html</sourceUrl>
19123       </references>
19124       <availableFormats>
19125         <!-- CONATEL plan. -->
19126         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
19127           <leadingDigits>
19128             (?:
19129               [26]1|
19130               3[289]|
19131               4[124678]|
19132               7[123]|
19133               8[1236]
19134             )
19135           </leadingDigits>
19136           <format>$1 $2</format>
19137         </numberFormat>
19138         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
19139           <leadingDigits>[2-9]0</leadingDigits>
19140           <format>$1 $2</format>
19141         </numberFormat>
19142         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
19143           <leadingDigits>9[1-9]</leadingDigits>
19144           <format>$1 $2</format>
19145         </numberFormat>
19146         <!-- Format seen in examples found online. -->
19147         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19148           <leadingDigits>8700</leadingDigits>
19149           <format>$1 $2 $3</format>
19150         </numberFormat>
19151         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
19152              -->
19153         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
19154           <leadingDigits>[2-8][1-9]</leadingDigits>
19155           <format>$1 $2</format>
19156         </numberFormat>
19157       </availableFormats>
19158       <generalDesc>
19159         <nationalNumberPattern>
19160           5[0-5]\d{4,7}|
19161           [2-46-9]\d{5,8}
19162         </nationalNumberPattern>
19163         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
19164       </generalDesc>
19165       <fixedLine>
19166         <nationalNumberPattern>
19167           (?:
19168             [26]1|
19169             3[289]|
19170             4[124678]|
19171             7[123]|
19172             8[1236]
19173           )\d{5,7}|
19174           (?:
19175             2(?:
19176               2[4568]|
19177               7[15]|
19178               9[1-5]
19179             )|
19180             3(?:
19181               18|
19182               3[167]|
19183               4[2357]|
19184               51
19185             )|
19186             4(?:
19187               18|
19188               2[45]|
19189               3[12]|
19190               5[13]|
19191               64|
19192               71|
19193               9[1-47]
19194             )|
19195             5(?:
19196               [1-4]\d|
19197               5[0234]
19198             )|
19199             6(?:
19200               3[1-3]|
19201               44|
19202               7[1-4678]
19203             )|
19204             7(?:
19205               17|
19206               4[0-4]|
19207               6[1-578]|
19208               75|
19209               8[0-8]
19210             )|
19211             858
19212           )\d{5,6}
19213         </nationalNumberPattern>
19214         <exampleNumber>212345678</exampleNumber>
19215       </fixedLine>
19216       <mobile>
19217         <!-- 962 was added for Tigo. -->
19218         <nationalNumberPattern>
19219           9(?:
19220             6[12]|
19221             [78][1-6]|
19222             9[1-5]
19223           )\d{6}
19224         </nationalNumberPattern>
19225         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19226         <exampleNumber>961456789</exampleNumber>
19227       </mobile>
19228       <voip>
19229         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
19230         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19231         <exampleNumber>870012345</exampleNumber>
19232       </voip>
19233       <uan>
19234         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
19235         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19236         <exampleNumber>201234567</exampleNumber>
19237       </uan>
19238     </territory>
19239
19240     <!-- Qatar -->
19241     <territory id="QA" countryCode="974" internationalPrefix="00" mobileNumberPortableRegion="true">
19242       <references>
19243         <sourceUrl>http://www.itu.int/oth/T02020000AB/en</sourceUrl>
19244         <sourceUrl>http://wtng.info/wtng-qq.html</sourceUrl>
19245       </references>
19246       <availableFormats>
19247         <numberFormat pattern="([28]\d{2})(\d{4})">
19248           <leadingDigits>[28]</leadingDigits>
19249           <format>$1 $2</format>
19250         </numberFormat>
19251         <numberFormat pattern="([3-7]\d{3})(\d{4})">
19252           <leadingDigits>[3-7]</leadingDigits>
19253           <format>$1 $2</format>
19254         </numberFormat>
19255       </availableFormats>
19256       <generalDesc>
19257         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
19258         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19259       </generalDesc>
19260       <fixedLine>
19261         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
19262         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
19263         <exampleNumber>44123456</exampleNumber>
19264       </fixedLine>
19265       <mobile>
19266         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
19267         <exampleNumber>33123456</exampleNumber>
19268       </mobile>
19269       <pager>
19270         <nationalNumberPattern>
19271           2(?:
19272             [12]\d|
19273             61
19274           )\d{4}
19275         </nationalNumberPattern>
19276         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19277         <exampleNumber>2123456</exampleNumber>
19278       </pager>
19279       <tollFree>
19280         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
19281         <exampleNumber>8001234</exampleNumber>
19282       </tollFree>
19283       <!-- No premiumRate information can be found. -->
19284     </territory>
19285
19286     <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
19287     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
19288          used by both of them. -->
19289     <territory id="RE" countryCode="262" internationalPrefix="00"
19290                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19291                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
19292       <references>
19293         <sourceUrl>http://www.itu.int/oth/T020200004B/en</sourceUrl>
19294       </references>
19295       <availableFormats>
19296         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
19297           <format>$1 $2 $3 $4</format>
19298         </numberFormat>
19299       </availableFormats>
19300       <generalDesc>
19301         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
19302         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19303       </generalDesc>
19304       <fixedLine>
19305         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
19306         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
19307         <exampleNumber>262161234</exampleNumber>
19308       </fixedLine>
19309       <mobile>
19310         <nationalNumberPattern>
19311           6(?:
19312             9[23]|
19313             47
19314           )\d{6}
19315         </nationalNumberPattern>
19316         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19317         <exampleNumber>692123456</exampleNumber>
19318       </mobile>
19319       <!-- 08* Numbers in Réunion are the same as those valid in France. -->
19320       <tollFree>
19321         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
19322         <exampleNumber>801234567</exampleNumber>
19323       </tollFree>
19324       <premiumRate>
19325         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
19326         <exampleNumber>891123456</exampleNumber>
19327       </premiumRate>
19328       <sharedCost>
19329         <nationalNumberPattern>
19330           8(?:
19331             1[019]|
19332             2[0156]|
19333             84|
19334             90
19335           )\d{6}
19336         </nationalNumberPattern>
19337         <exampleNumber>810123456</exampleNumber>
19338       </sharedCost>
19339     </territory>
19340
19341     <!-- Romania -->
19342     <!-- Extension prefix found online, confirmed by a Romanian. -->
19343     <territory id="RO" countryCode="40" internationalPrefix="00"
19344                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19345                preferredExtnPrefix=" int " mobileNumberPortableRegion="true">
19346       <references>
19347         <sourceUrl>http://www.itu.int/oth/T02020000AC/en</sourceUrl>
19348         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania</sourceUrl>
19349       </references>
19350       <availableFormats>
19351         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
19352           <leadingDigits>[23]1</leadingDigits>
19353           <format>$1 $2 $3</format>
19354         </numberFormat>
19355         <numberFormat pattern="(21)(\d{4})">
19356           <leadingDigits>21</leadingDigits>
19357           <format>$1 $2</format>
19358         </numberFormat>
19359         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19360           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
19361                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
19362                majority of numbers found online follow this convention. -->
19363           <leadingDigits>
19364             [23][3-7]|
19365             [7-9]
19366           </leadingDigits>
19367           <format>$1 $2 $3</format>
19368         </numberFormat>
19369         <numberFormat pattern="(2\d{2})(\d{3})">
19370           <leadingDigits>2[3-6]</leadingDigits>
19371           <format>$1 $2</format>
19372         </numberFormat>
19373       </availableFormats>
19374       <generalDesc>
19375         <nationalNumberPattern>
19376           2\d{5,8}|
19377           [37-9]\d{8}
19378         </nationalNumberPattern>
19379         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
19380              to wikipedia and people must dial the full number. However, there are still short
19381              numbers that total 6 digits long, so the possible number pattern should take these into
19382              account. -->
19383         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19384       </generalDesc>
19385       <fixedLine>
19386         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
19387              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
19388              this based on numbers found online and the wikipedia article which indicate that these
19389              are four digits long in Bucharest only, and three digits elsewhere. -->
19390         <nationalNumberPattern>
19391           2(?:
19392             1(?:
19393               \d{7}|
19394               9\d{3}
19395             )|
19396             [3-6](?:
19397               \d{7}|
19398               \d9\d{2}
19399             )
19400           )|
19401           3[13-6]\d{7}
19402           </nationalNumberPattern>
19403         <exampleNumber>211234567</exampleNumber>
19404       </fixedLine>
19405       <mobile>
19406         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
19407              numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
19408              open-source report and confirmation by existence of such numbers online. -->
19409         <nationalNumberPattern>
19410           7(?:
19411             000|
19412             [1-8]\d{2}|
19413             99\d
19414           )\d{5}
19415         </nationalNumberPattern>
19416         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19417         <exampleNumber>712345678</exampleNumber>
19418       </mobile>
19419       <tollFree>
19420         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19421         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19422         <exampleNumber>800123456</exampleNumber>
19423       </tollFree>
19424       <premiumRate>
19425         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
19426         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19427         <exampleNumber>900123456</exampleNumber>
19428       </premiumRate>
19429       <sharedCost>
19430         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19431         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19432         <exampleNumber>801123456</exampleNumber>
19433       </sharedCost>
19434       <personalNumber>
19435         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
19436         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19437         <exampleNumber>802123456</exampleNumber>
19438       </personalNumber>
19439       <uan>
19440         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
19441              location-independent national numbers. Only numbers beginning with 37 have been seen so
19442              these are the only ones supported for now. -->
19443         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
19444         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19445         <exampleNumber>372123456</exampleNumber>
19446       </uan>
19447     </territory>
19448
19449     <!-- Serbia -->
19450     <territory id="RS" countryCode="381" internationalPrefix="00"
19451                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19452                mobileNumberPortableRegion="true">
19453       <references>
19454         <sourceUrl>http://www.itu.int/oth/T02020000B9/en</sourceUrl>
19455         <sourceUrl>http://registar.ratel.rs/en/reg202</sourceUrl>
19456       </references>
19457       <availableFormats>
19458         <numberFormat pattern="([23]\d{2})(\d{4,9})">
19459           <leadingDigits>
19460             (?:
19461               2[389]|
19462               39
19463             )0
19464           </leadingDigits>
19465           <format>$1 $2</format>
19466         </numberFormat>
19467         <numberFormat pattern="([1-3]\d)(\d{5,10})">
19468           <leadingDigits>
19469             1|
19470             2(?:
19471               [0-24-7]|
19472               [389][1-9]
19473             )|
19474             3(?:
19475               [0-8]|
19476               9[1-9]
19477             )
19478           </leadingDigits>
19479           <format>$1 $2</format>
19480         </numberFormat>
19481         <numberFormat pattern="(6\d)(\d{6,8})">
19482           <leadingDigits>6</leadingDigits>
19483           <format>$1 $2</format>
19484         </numberFormat>
19485         <numberFormat pattern="([89]\d{2})(\d{3,9})">
19486           <leadingDigits>[89]</leadingDigits>
19487           <format>$1 $2</format>
19488         </numberFormat>
19489         <numberFormat pattern="(7[26])(\d{4,9})">
19490           <leadingDigits>7[26]</leadingDigits>
19491           <format>$1 $2</format>
19492         </numberFormat>
19493         <numberFormat pattern="(7[08]\d)(\d{4,9})">
19494           <leadingDigits>7[08]</leadingDigits>
19495           <format>$1 $2</format>
19496         </numberFormat>
19497       </availableFormats>
19498       <generalDesc>
19499         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
19500              by 2-9) and the country calling code (381). -->
19501         <nationalNumberPattern>
19502           [126-9]\d{4,11}|
19503           3(?:
19504             [0-79]\d{3,10}|
19505             8[2-9]\d{2,9}
19506           )
19507         </nationalNumberPattern>
19508         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19509       </generalDesc>
19510       <fixedLine>
19511         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
19512              has been issused, so we allow 11 1X here. -->
19513         <nationalNumberPattern>
19514           (?:
19515             1(?:
19516               [02-9][2-9]|
19517               1[1-9]
19518             )\d|
19519             2(?:
19520               [0-24-7][2-9]\d|
19521               [389](?:
19522                 0[2-9]|
19523                 [2-9]\d
19524               )
19525             )|
19526             3(?:
19527               [0-8][2-9]\d|
19528               9(?:
19529                 [2-9]\d|
19530                 0[2-9]
19531               )
19532             )
19533           )\d{3,8}
19534         </nationalNumberPattern>
19535         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19536         <exampleNumber>10234567</exampleNumber>
19537       </fixedLine>
19538       <mobile>
19539         <nationalNumberPattern>
19540           6(?:
19541             [0-689]|
19542             7\d
19543           )\d{6,7}
19544         </nationalNumberPattern>
19545         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
19546         <exampleNumber>601234567</exampleNumber>
19547       </mobile>
19548       <tollFree>
19549         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
19550         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19551         <exampleNumber>80012345</exampleNumber>
19552       </tollFree>
19553       <premiumRate>
19554         <nationalNumberPattern>
19555           (?:
19556             90[0169]|
19557             78\d
19558           )\d{3,7}
19559         </nationalNumberPattern>
19560         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19561         <exampleNumber>90012345</exampleNumber>
19562       </premiumRate>
19563       <uan>
19564         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
19565         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19566         <exampleNumber>700123456</exampleNumber>
19567       </uan>
19568     </territory>
19569
19570     <!-- Russian Federation -->
19571     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
19572                internationalPrefix="810" nationalPrefix="8"
19573                nationalPrefixFormattingRule="$NP ($FG)"
19574                nationalPrefixOptionalWhenFormatting="true" >
19575       <references>
19576         <sourceUrl>http://www.itu.int/oth/T02020000AD/en</sourceUrl>
19577         <sourceUrl>http://en.wikipedia.org/wiki/%2B7</sourceUrl>
19578       </references>
19579       <availableFormats>
19580         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
19581              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
19582              Kazakhstan as well. -->
19583         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
19584           <!-- Local numbers only - these do not start with the national prefix. -->
19585           <leadingDigits>[1-79]</leadingDigits>
19586           <format>$1-$2-$3</format>
19587           <intlFormat>NA</intlFormat>
19588         </numberFormat>
19589         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
19590           <leadingDigits>[34689]</leadingDigits>
19591           <format>$1 $2-$3-$4</format>
19592         </numberFormat>
19593         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
19594           <leadingDigits>7</leadingDigits>
19595           <format>$1 $2 $3</format>
19596         </numberFormat>
19597       </availableFormats>
19598       <generalDesc>
19599         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
19600         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19601       </generalDesc>
19602       <fixedLine>
19603         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
19604              in the yellow pages, and on their own website and is listed on wikipedia. This applies
19605              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
19606         <nationalNumberPattern>
19607           (?:
19608             3(?:
19609               0[12]|
19610               4[1-35-79]|
19611               5[1-3]|
19612               8[1-58]|
19613               9[0145]
19614             )|
19615             4(?:
19616               01|
19617               1[1356]|
19618               2[13467]|
19619               7[1-5]|
19620               8[1-7]|
19621               9[1-689]
19622             )|
19623             8(?:
19624               1[1-8]|
19625               2[01]|
19626               3[13-6]|
19627               4[0-8]|
19628               5[15]|
19629               6[1-35-7]|
19630               7[1-37-9]
19631             )
19632           )\d{7}
19633         </nationalNumberPattern>
19634         <exampleNumber>3011234567</exampleNumber>
19635       </fixedLine>
19636       <mobile>
19637         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
19638         <exampleNumber>9123456789</exampleNumber>
19639       </mobile>
19640       <tollFree>
19641         <!-- The metadata states that 804 numbers are UAN numbers, but
19642              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
19643              numbers. -->
19644         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
19645         <exampleNumber>8001234567</exampleNumber>
19646       </tollFree>
19647       <premiumRate>
19648         <!-- Covers tele-voting numbers as well. -->
19649         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
19650         <exampleNumber>8091234567</exampleNumber>
19651       </premiumRate>
19652     </territory>
19653
19654     <!-- Rwanda -->
19655     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
19656          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
19657          as http://www.tigo.co.rw "Choose Your Number" service. -->
19658     <territory id="RW" countryCode="250" internationalPrefix="00"
19659                nationalPrefix="0" leadingZeroPossible="true">
19660       <references>
19661         <sourceUrl>http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf</sourceUrl>
19662         <sourceUrl>http://en.wikipedia.org/wiki/+250</sourceUrl>
19663       </references>
19664       <availableFormats>
19665         <numberFormat nationalPrefixFormattingRule="$FG"
19666           pattern="(2\d{2})(\d{3})(\d{3})">
19667           <leadingDigits>2</leadingDigits>
19668           <format>$1 $2 $3</format>
19669         </numberFormat>
19670         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
19671           <leadingDigits>[7-9]</leadingDigits>
19672           <format>$1 $2 $3</format>
19673         </numberFormat>
19674         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
19675           <leadingDigits>0</leadingDigits>
19676           <format>$1 $2 $3 $4</format>
19677         </numberFormat>
19678       </availableFormats>
19679       <generalDesc>
19680         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
19681         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
19682       </generalDesc>
19683       <fixedLine>
19684         <!-- We support satellite numbers here, since they are in the plan, although no recent
19685              online examples can be found. We also support fixed-line ranges that have been reserved
19686              and paid for, even where no online numbers can be found. -->
19687         <nationalNumberPattern>
19688           2[258]\d{7}|
19689           06\d{6}
19690         </nationalNumberPattern>
19691         <exampleNumber>250123456</exampleNumber>
19692       </fixedLine>
19693       <mobile>
19694         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
19695              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
19696              license revoked. -->
19697         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
19698         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19699         <exampleNumber>720123456</exampleNumber>
19700       </mobile>
19701       <tollFree>
19702         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19703         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19704         <exampleNumber>800123456</exampleNumber>
19705       </tollFree>
19706       <premiumRate>
19707         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
19708         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19709         <exampleNumber>900123456</exampleNumber>
19710       </premiumRate>
19711     </territory>
19712
19713     <!-- Saudi Arabia -->
19714     <territory id="SA" countryCode="966" internationalPrefix="00"
19715                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19716                mobileNumberPortableRegion="true">
19717       <references>
19718         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia</sourceUrl>
19719         <sourceUrl>http://www.itu.int/oth/T02020000B7/en</sourceUrl>
19720       </references>
19721       <availableFormats>
19722         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
19723           <leadingDigits>[1-467]</leadingDigits>
19724           <format>$1 $2 $3</format>
19725         </numberFormat>
19726         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
19727           <leadingDigits>1[1-467]</leadingDigits>
19728           <format>$1 $2 $3</format>
19729         </numberFormat>
19730         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
19731           <leadingDigits>5</leadingDigits>
19732           <format>$1 $2 $3</format>
19733         </numberFormat>
19734         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
19735              the fact that no numbers of this form found online have a trunk prefix added. -->
19736         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
19737           <leadingDigits>92</leadingDigits>
19738           <format>$1 $2</format>
19739         </numberFormat>
19740         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
19741           <leadingDigits>80</leadingDigits>
19742           <format>$1 $2 $3</format>
19743         </numberFormat>
19744         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
19745           <leadingDigits>81</leadingDigits>
19746           <format>$1 $2 $3</format>
19747         </numberFormat>
19748       </availableFormats>
19749       <generalDesc>
19750         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
19751              fixed-line numbers. -->
19752         <nationalNumberPattern>
19753           1\d{7,8}|
19754           (?:
19755             [2-467]|
19756             92
19757           )\d{7}|
19758           5\d{8}|
19759           8\d{9}
19760         </nationalNumberPattern>
19761         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
19762       </generalDesc>
19763       <fixedLine>
19764         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
19765              happened in May for area code 1 (parallel running ended July 13th, 2013) and then in
19766              August for the other fixed-line numbers (parallel running ends October 18th, 2013). -->
19767         <nationalNumberPattern>
19768           11\d{7}|
19769           1?(?:
19770             2[24-8]|
19771             3[35-8]|
19772             4[3-68]|
19773             6[2-5]|
19774             7[235-7]
19775           )\d{6}
19776         </nationalNumberPattern>
19777         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
19778         <exampleNumber>112345678</exampleNumber>
19779       </fixedLine>
19780       <mobile>
19781         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
19782              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
19783              until we find evidence that this is an error, leaving them at 10 for now. -->
19784         <nationalNumberPattern>
19785           (?:
19786             5(?:
19787               [013-689]\d|
19788               7[0-26-8]
19789             )|
19790             811\d
19791           )\d{6}
19792         </nationalNumberPattern>
19793         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
19794         <exampleNumber>512345678</exampleNumber>
19795       </mobile>
19796       <tollFree>
19797         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
19798         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19799         <exampleNumber>8001234567</exampleNumber>
19800       </tollFree>
19801       <sharedCost>
19802         <!-- Including shared revenue with shared cost here. -->
19803         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
19804         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19805         <exampleNumber>920012345</exampleNumber>
19806       </sharedCost>
19807     </territory>
19808
19809     <!-- Solomon Islands -->
19810     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
19811       <references>
19812         <sourceUrl>http://www.itu.int/oth/T02020000BF/en</sourceUrl>
19813       </references>
19814       <!-- A single group is used to format 5-digit numbers. This formatting pattern follows
19815            the guidelines in the ITU document. -->
19816       <availableFormats>
19817         <numberFormat pattern="(\d{2})(\d{5})">
19818           <leadingDigits>[7-9]</leadingDigits>
19819           <format>$1 $2</format>
19820         </numberFormat>
19821       </availableFormats>
19822       <generalDesc>
19823         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
19824         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
19825       </generalDesc>
19826       <fixedLine>
19827         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
19828              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
19829         <nationalNumberPattern>
19830           (?:
19831             1[4-79]|
19832             [23]\d|
19833             4[01]|
19834             5[03]|
19835             6[0-37]
19836           )\d{3}
19837         </nationalNumberPattern>
19838         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19839         <exampleNumber>40123</exampleNumber>
19840       </fixedLine>
19841       <mobile>
19842         <!-- The 795 prefix is not in the ITU plan (5.XII.2014), but was added because such a number
19843              was dialed successfully. -->
19844         <nationalNumberPattern>
19845           48\d{3}|
19846           7(?:
19847             30|
19848             [46-8]\d|
19849             5[025-9]|
19850             9[0-5]
19851           )\d{4}|
19852           8[4-8]\d{5}|
19853           9(?:
19854             1[2-9]|
19855             2[013-9]|
19856             3[0-2]|
19857             [46]\d|
19858             5[0-46-9]|
19859             7[0-689]|
19860             8[0-79]|
19861             9[0-8]
19862           )\d{4}
19863         </nationalNumberPattern>
19864         <exampleNumber>7421234</exampleNumber>
19865       </mobile>
19866       <tollFree>
19867         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
19868         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19869         <exampleNumber>18123</exampleNumber>
19870       </tollFree>
19871       <voip>
19872         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
19873         <possibleNumberPattern>\d{5}</possibleNumberPattern>
19874         <exampleNumber>51123</exampleNumber>
19875       </voip>
19876     </territory>
19877
19878     <!-- Seychelles -->
19879     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
19880                preferredInternationalPrefix="00">
19881       <references>
19882         <sourceUrl>http://www.itu.int/oth/T02020000BA/en</sourceUrl>
19883         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles</sourceUrl>
19884       </references>
19885       <availableFormats>
19886         <numberFormat pattern="(\d{3})(\d{3})">
19887           <leadingDigits>[89]</leadingDigits>
19888           <format>$1 $2</format>
19889         </numberFormat>
19890         <numberFormat pattern="(\d)(\d{3})(\d{3})">
19891           <leadingDigits>[246]</leadingDigits>
19892           <format>$1 $2 $3</format>
19893         </numberFormat>
19894       </availableFormats>
19895       <generalDesc>
19896         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
19897         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
19898       </generalDesc>
19899       <fixedLine>
19900         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
19901              they are more expensive to call than other Fixed Line services. ISDN and DID services
19902              are here too, since they seem to be also fixed-line phone numbers. -->
19903         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
19904         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19905         <exampleNumber>4217123</exampleNumber>
19906       </fixedLine>
19907       <mobile>
19908         <!-- Includes Fixed Cellular. -->
19909         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
19910         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19911         <exampleNumber>2510123</exampleNumber>
19912       </mobile>
19913       <tollFree>
19914         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
19915         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19916         <exampleNumber>800000</exampleNumber>
19917       </tollFree>
19918       <premiumRate>
19919         <!-- Using this to represent Value Added Service in the plan. -->
19920         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
19921         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19922         <exampleNumber>981234</exampleNumber>
19923       </premiumRate>
19924       <voip>
19925         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
19926         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19927         <exampleNumber>6412345</exampleNumber>
19928       </voip>
19929     </territory>
19930
19931     <!-- Sudan -->
19932     <territory id="SD" countryCode="249" internationalPrefix="00"
19933                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19934       <references>
19935         <sourceUrl>http://www.itu.int/oth/T02020000C4/en</sourceUrl>
19936       </references>
19937       <availableFormats>
19938         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19939           <format>$1 $2 $3</format>
19940         </numberFormat>
19941       </availableFormats>
19942       <generalDesc>
19943         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
19944         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19945       </generalDesc>
19946       <fixedLine>
19947         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
19948              found online. -->
19949         <nationalNumberPattern>
19950           1(?:
19951             [125]\d|
19952             8[3567]
19953           )\d{6}
19954         </nationalNumberPattern>
19955         <exampleNumber>121231234</exampleNumber>
19956       </fixedLine>
19957       <mobile>
19958         <!-- Adding 90X as online numbers have been found with this prefix. -->
19959         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
19960         <exampleNumber>911231234</exampleNumber>
19961       </mobile>
19962     </territory>
19963
19964     <!-- Sweden -->
19965     <territory id="SE" countryCode="46" internationalPrefix="00"
19966                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19967                mobileNumberPortableRegion="true">
19968       <references>
19969         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf</sourceUrl>
19970         <sourceUrl>http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Nrplansammanst%C3%A4llning-2013-07-05.pdf</sourceUrl>
19971       </references>
19972       <availableFormats>
19973       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
19974            http://gulasidorna.eniro.se -->
19975         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
19976           <leadingDigits>8</leadingDigits>
19977           <format>$1-$2 $3 $4</format>
19978           <intlFormat>$1 $2 $3 $4</intlFormat>
19979         </numberFormat>
19980         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
19981           <leadingDigits>
19982             1[013689]|
19983             2[0136]|
19984             3[1356]|
19985             4[0246]|
19986             54|
19987             6[03]|
19988             90
19989           </leadingDigits>
19990           <format>$1-$2 $3 $4</format>
19991           <intlFormat>$1 $2 $3 $4</intlFormat>
19992         </numberFormat>
19993         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
19994           <leadingDigits>
19995             1[13689]|
19996             2[136]|
19997             3[1356]|
19998             4[0246]|
19999             54|
20000             6[03]|
20001             90
20002           </leadingDigits>
20003           <format>$1-$2 $3</format>
20004           <intlFormat>$1 $2 $3</intlFormat>
20005         </numberFormat>
20006         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20007           <leadingDigits>
20008             1[2457]|
20009             2[2457-9]|
20010             3[0247-9]|
20011             4[1357-9]|
20012             5[0-35-9]|
20013             6[124-9]|
20014             9(?:
20015               [125-8]|
20016               3[0-5]|
20017               4[0-3]
20018             )
20019           </leadingDigits>
20020           <format>$1-$2 $3 $4</format>
20021           <intlFormat>$1 $2 $3 $4</intlFormat>
20022         </numberFormat>
20023         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
20024           <leadingDigits>
20025             1[2457]|
20026             2[2457-9]|
20027             3[0247-9]|
20028             4[1357-9]|
20029             5[0-35-9]|
20030             6[124-9]|
20031             9(?:
20032               [125-8]|
20033               3[0-5]|
20034               4[0-3]
20035             )
20036           </leadingDigits>
20037           <format>$1-$2 $3</format>
20038           <intlFormat>$1 $2 $3</intlFormat>
20039         </numberFormat>
20040         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
20041           <leadingDigits>7</leadingDigits>
20042           <format>$1-$2 $3 $4</format>
20043           <intlFormat>$1 $2 $3 $4</intlFormat>
20044         </numberFormat>
20045         <numberFormat pattern="(77)(\d{2})(\d{2})">
20046           <leadingDigits>7</leadingDigits>
20047           <format>$1-$2$3</format>
20048           <intlFormat>$1 $2 $3</intlFormat>
20049         </numberFormat>
20050         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
20051           <leadingDigits>20</leadingDigits>
20052           <format>$1-$2 $3</format>
20053           <intlFormat>$1 $2 $3</intlFormat>
20054         </numberFormat>
20055         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
20056           <leadingDigits>9[034]</leadingDigits>
20057           <format>$1-$2 $3 $4</format>
20058           <intlFormat>$1 $2 $3 $4</intlFormat>
20059         </numberFormat>
20060         <numberFormat pattern="(9[034]\d)(\d{4})">
20061           <leadingDigits>9[034]</leadingDigits>
20062           <format>$1-$2</format>
20063           <intlFormat>$1 $2</intlFormat>
20064         </numberFormat>
20065       </availableFormats>
20066       <generalDesc>
20067         <nationalNumberPattern>[1-9]\d{5,9}</nationalNumberPattern>
20068         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
20069       </generalDesc>
20070       <fixedLine>
20071         <nationalNumberPattern>
20072           1(?:
20073             0[1-8]\d{6}|
20074             [136]\d{5,7}|
20075             (?:
20076               2[0-35]|
20077               4[0-4]|
20078               5[0-25-9]|
20079               7[13-6]|
20080               [89]\d
20081             )\d{5,6}
20082           )|
20083           2(?:
20084             [136]\d{5,7}|
20085             (?:
20086               2[0-7]|
20087               4[0136-8]|
20088               5[0138]|
20089               7[018]|
20090               8[01]|
20091               9[0-57]
20092             )\d{5,6}
20093           )|
20094           3(?:
20095             [356]\d{5,7}|
20096             (?:
20097               0[0-4]|
20098               1\d|
20099               2[0-25]|
20100               4[056]|
20101               7[0-2]|
20102               8[0-3]|
20103               9[023]
20104             )\d{5,6}
20105           )|
20106           4(?:
20107             0[1-9]\d{4,6}|
20108             [246]\d{5,7}|
20109             (?:
20110               1[013-8]|
20111               3[0135]|
20112               5[14-79]|
20113               7[0-246-9]|
20114               8[0156]|
20115               9[0-689]
20116             )\d{5,6}
20117           )|
20118           5(?:
20119             0[0-6]|
20120             [15][0-5]|
20121             2[0-68]|
20122             3[0-4]|
20123             4\d|
20124             6[03-5]|
20125             7[013]|
20126             8[0-79]|
20127             9[01]
20128           )\d{5,6}|
20129           6(?:
20130             0[1-9]\d{4,6}|
20131             3\d{5,7}|
20132             (?:
20133               1[1-3]|
20134               2[0-4]|
20135               4[02-57]|
20136               5[0-37]|
20137               6[0-3]|
20138               7[0-2]|
20139               8[0247]|
20140               9[0-356]
20141             )\d{5,6}
20142           )|
20143           8[1-9]\d{5,7}|
20144           9(?:
20145             0[1-9]\d{4,6}|
20146             (?:
20147               1[0-68]|
20148               2\d|
20149               3[02-5]|
20150               4[0-3]|
20151               5[0-4]|
20152               [68][01]|
20153               7[0135-8]
20154             )\d{5,6}
20155           )
20156         </nationalNumberPattern>
20157         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20158         <exampleNumber>8123456</exampleNumber>
20159       </fixedLine>
20160       <mobile>
20161         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
20162         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20163         <exampleNumber>701234567</exampleNumber>
20164       </mobile>
20165       <pager>
20166         <nationalNumberPattern>74[02-9]\d{6}</nationalNumberPattern>
20167         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20168         <exampleNumber>740123456</exampleNumber>
20169       </pager>
20170       <tollFree>
20171         <nationalNumberPattern>
20172           20(?:
20173             0(?:
20174               0\d{2}|
20175               [1-9](?:
20176                 0\d{1,4}|
20177                 [1-9]\d{4}
20178               )
20179             )|
20180             1(?:
20181               0\d{4}|
20182               [1-9]\d{4,5}
20183             )|
20184             [2-9]\d{5}
20185           )
20186         </nationalNumberPattern>
20187         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20188         <exampleNumber>20123456</exampleNumber>
20189       </tollFree>
20190       <premiumRate>
20191         <nationalNumberPattern>
20192           9(?:
20193             00|
20194             39|
20195             44
20196           )(?:
20197             1(?:
20198               [0-26]\d{5}|
20199               [3-57-9]\d{2}
20200             )|
20201             2(?:
20202               [0-2]\d{5}|
20203               [3-9]\d{2}
20204             )|
20205             3(?:
20206               [0139]\d{5}|
20207               [24-8]\d{2}
20208             )|
20209             4(?:
20210               [045]\d{5}|
20211               [1-36-9]\d{2}
20212             )|
20213             5(?:
20214               5\d{5}|
20215               [0-46-9]\d{2}
20216             )|
20217             6(?:
20218               [679]\d{5}|
20219               [0-58]\d{2}
20220             )|
20221             7(?:
20222               [078]\d{5}|
20223               [1-69]\d{2}
20224             )|
20225             8(?:
20226               [578]\d{5}|
20227               [0-469]\d{2}
20228             )
20229           )
20230         </nationalNumberPattern>
20231         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
20232         <exampleNumber>9001234567</exampleNumber>
20233       </premiumRate>
20234       <sharedCost>
20235         <nationalNumberPattern>
20236           77(?:
20237             0(?:
20238               0\d{2}|
20239               [1-9](?:
20240                 0\d|
20241                 [1-9]\d{4}
20242               )
20243             )|
20244             [1-6][1-9]\d{5}
20245           )
20246         </nationalNumberPattern>
20247         <possibleNumberPattern>\d{6}(?:\d{3})?</possibleNumberPattern>
20248         <exampleNumber>771234567</exampleNumber>
20249       </sharedCost>
20250       <personalNumber>
20251         <nationalNumberPattern>75[1-8]\d{6}</nationalNumberPattern>
20252         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20253         <exampleNumber>751234567</exampleNumber>
20254       </personalNumber>
20255     </territory>
20256
20257     <!-- Singapore -->
20258     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d"
20259                mobileNumberPortableRegion="true">
20260       <references>
20261         <sourceUrl>http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx</sourceUrl>
20262       </references>
20263       <availableFormats>
20264         <numberFormat pattern="([3689]\d{3})(\d{4})">
20265           <leadingDigits>
20266             [369]|
20267             8[1-9]
20268           </leadingDigits>
20269           <format>$1 $2</format>
20270         </numberFormat>
20271         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
20272           <leadingDigits>1[89]</leadingDigits>
20273           <format>$1 $2 $3</format>
20274         </numberFormat>
20275         <numberFormat pattern="(7000)(\d{4})(\d{3})">
20276           <leadingDigits>70</leadingDigits>
20277           <format>$1 $2 $3</format>
20278         </numberFormat>
20279         <numberFormat pattern="(800)(\d{3})(\d{4})">
20280           <leadingDigits>80</leadingDigits>
20281           <format>$1 $2 $3</format>
20282         </numberFormat>
20283       </availableFormats>
20284       <generalDesc>
20285         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
20286              easily strip off leading "65" country codes. -->
20287         <nationalNumberPattern>
20288           [36]\d{7}|
20289           [17-9]\d{7,10}
20290         </nationalNumberPattern>
20291         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
20292       </generalDesc>
20293       <fixedLine>
20294         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
20295         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20296         <exampleNumber>61234567</exampleNumber>
20297       </fixedLine>
20298       <mobile>
20299         <nationalNumberPattern>
20300           (?:
20301             8[1-7]|
20302             9[0-8]
20303           )\d{6}
20304         </nationalNumberPattern>
20305         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20306         <exampleNumber>81234567</exampleNumber>
20307       </mobile>
20308       <tollFree>
20309         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
20310         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
20311         <exampleNumber>18001234567</exampleNumber>
20312       </tollFree>
20313       <premiumRate>
20314         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
20315         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20316         <exampleNumber>19001234567</exampleNumber>
20317       </premiumRate>
20318       <voip>
20319         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
20320         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20321         <exampleNumber>31234567</exampleNumber>
20322       </voip>
20323       <uan>
20324         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
20325              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
20326              -->
20327         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
20328         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20329         <exampleNumber>70001234567</exampleNumber>
20330       </uan>
20331     </territory>
20332
20333     <!-- Saint Helena -->
20334     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
20335       <references>
20336         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
20337       </references>
20338       <!-- Numbers are formatted as a block. -->
20339       <generalDesc>
20340         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
20341         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
20342       </generalDesc>
20343       <fixedLine>
20344         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
20345              The new pattern is first, followed by the old (hence the repetition of the leading 2).
20346              -->
20347         <nationalNumberPattern>
20348           2(?:
20349             [0-57-9]\d|
20350             6[4-9]
20351           )\d{2}|
20352           (?:
20353             [2-46]\d|
20354             7[01]
20355           )\d{2}
20356         </nationalNumberPattern>
20357         <!-- Using St Helena Tourism as the example number. -->
20358         <exampleNumber>2158</exampleNumber>
20359       </fixedLine>
20360       <mobile>
20361         <nationalNumberPattern>NA</nationalNumberPattern>
20362         <possibleNumberPattern>NA</possibleNumberPattern>
20363       </mobile>
20364       <premiumRate>
20365         <nationalNumberPattern>
20366           (?:
20367             [59]\d|
20368             7[2-9]
20369           )\d{2}
20370         </nationalNumberPattern>
20371         <exampleNumber>5012</exampleNumber>
20372       </premiumRate>
20373     </territory>
20374
20375     <!-- Slovenia -->
20376     <territory id="SI" countryCode="386" internationalPrefix="00"
20377                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20378                mobileNumberPortableRegion="true">
20379       <references>
20380         <sourceUrl>http://www.itu.int/oth/T02020000BE/en</sourceUrl>
20381       </references>
20382       <availableFormats>
20383         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
20384           pattern="(\d)(\d{3})(\d{2})(\d{2})">
20385           <leadingDigits>
20386             [12]|
20387             3[4-8]|
20388             4[24-8]|
20389             5[2-8]|
20390             7[3-8]
20391           </leadingDigits>
20392           <format>$1 $2 $3 $4</format>
20393           </numberFormat>
20394         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
20395           <leadingDigits>
20396             [37][01]|
20397             4[0139]|
20398             51|
20399             6
20400           </leadingDigits>
20401           <format>$1 $2 $3</format>
20402           </numberFormat>
20403         <numberFormat pattern="([89][09])(\d{3,6})">
20404           <leadingDigits>[89][09]</leadingDigits>
20405           <format>$1 $2</format>
20406         </numberFormat>
20407         <numberFormat pattern="([58]\d{2})(\d{5})">
20408           <leadingDigits>
20409             59|
20410             8[1-3]
20411           </leadingDigits>
20412           <format>$1 $2</format>
20413         </numberFormat>
20414       </availableFormats>
20415       <generalDesc>
20416         <nationalNumberPattern>
20417           [1-7]\d{6,7}|
20418           [89]\d{4,7}
20419         </nationalNumberPattern>
20420         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20421       </generalDesc>
20422       <fixedLine>
20423         <nationalNumberPattern>
20424           (?:
20425             1\d|
20426             [25][2-8]|
20427             3[4-8]|
20428             4[24-8]|
20429             7[3-8]
20430           )\d{6}
20431         </nationalNumberPattern>
20432         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
20433         <exampleNumber>11234567</exampleNumber>
20434       </fixedLine>
20435       <mobile>
20436         <!-- We include 043 and 049 here - it is VoIP in the plan, but is actually used to provide
20437              mobile coverage to Kosovo. Also added 068, which is used by the mobile operator bob.si
20438          -->
20439         <nationalNumberPattern>
20440           (?:
20441             [37][01]|
20442             4[0139]|
20443             51|
20444             6[48]
20445           )\d{6}
20446         </nationalNumberPattern>
20447         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20448         <exampleNumber>31234567</exampleNumber>
20449       </mobile>
20450       <tollFree>
20451         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
20452         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20453         <exampleNumber>80123456</exampleNumber>
20454       </tollFree>
20455       <premiumRate>
20456         <!-- Includes televoting, mass calling -->
20457         <nationalNumberPattern>
20458           90\d{4,6}|
20459           89[1-3]\d{2,5}
20460         </nationalNumberPattern>
20461         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20462         <exampleNumber>90123456</exampleNumber>
20463       </premiumRate>
20464       <voip>
20465         <nationalNumberPattern>
20466           (?:
20467             59|
20468             8[1-3]
20469           )\d{6}
20470         </nationalNumberPattern>
20471         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20472         <exampleNumber>59012345</exampleNumber>
20473       </voip>
20474     </territory>
20475
20476     <!-- Svalbard -->
20477     <!-- Metadata shared with Norway. -->
20478     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
20479       <references>
20480         <sourceUrl>http://www.npt.no/pt_internet/numsys/E.164.pdf</sourceUrl>
20481       </references>
20482       <generalDesc>
20483         <nationalNumberPattern>
20484           0\d{4}|
20485           [4789]\d{7}
20486         </nationalNumberPattern>
20487         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
20488       </generalDesc>
20489       <fixedLine>
20490         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
20491         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20492         <exampleNumber>79123456</exampleNumber>
20493       </fixedLine>
20494       <!-- Copied from Norway metadata. -->
20495       <mobile>
20496         <nationalNumberPattern>
20497           (?:
20498             4[015-8]|
20499             5[89]|
20500             9\d
20501           )\d{6}
20502         </nationalNumberPattern>
20503         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20504         <exampleNumber>41234567</exampleNumber>
20505       </mobile>
20506       <tollFree>
20507         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
20508         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20509         <exampleNumber>80012345</exampleNumber>
20510       </tollFree>
20511       <premiumRate>
20512         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
20513         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20514         <exampleNumber>82012345</exampleNumber>
20515       </premiumRate>
20516       <sharedCost>
20517         <nationalNumberPattern>
20518           810(?:
20519             0[0-6]|
20520             [2-8]\d
20521           )\d{3}
20522         </nationalNumberPattern>
20523         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20524         <exampleNumber>81021234</exampleNumber>
20525       </sharedCost>
20526       <personalNumber>
20527         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
20528         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20529         <exampleNumber>88012345</exampleNumber>
20530       </personalNumber>
20531       <voip>
20532         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
20533         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20534         <exampleNumber>85012345</exampleNumber>
20535       </voip>
20536       <uan>
20537         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
20538         <nationalNumberPattern>
20539           0\d{4}|
20540           81(?:
20541             0(?:
20542               0[7-9]|
20543               1\d
20544             )|
20545             5\d{2}
20546           )\d{3}
20547         </nationalNumberPattern>
20548         <exampleNumber>01234</exampleNumber>
20549       </uan>
20550       <voicemail>
20551         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
20552         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20553         <exampleNumber>81212345</exampleNumber>
20554       </voicemail>
20555     </territory>
20556
20557     <!-- Slovakia -->
20558     <territory id="SK" countryCode="421" internationalPrefix="00"
20559                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
20560                mobileNumberPortableRegion="true">
20561       <references>
20562         <sourceUrl>http://www.itu.int/oth/T02020000BD/en</sourceUrl>
20563       </references>
20564       <availableFormats>
20565         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
20566           <leadingDigits>2</leadingDigits>
20567           <format>$1/$2 $3 $4</format>
20568         </numberFormat>
20569         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
20570           <leadingDigits>[3-5]</leadingDigits>
20571           <format>$1/$2 $3 $4</format>
20572         </numberFormat>
20573         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
20574           <leadingDigits>[689]</leadingDigits>
20575           <format>$1 $2 $3</format>
20576         </numberFormat>
20577       </availableFormats>
20578       <generalDesc>
20579         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
20580         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20581       </generalDesc>
20582       <noInternationalDialling>
20583         <nationalNumberPattern>
20584           (?:
20585             8(?:
20586               00|
20587               [5-9]\d
20588             )|
20589             9(?:
20590               00|
20591               [78]\d
20592             )
20593           )\d{6}
20594         </nationalNumberPattern>
20595         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20596         <exampleNumber>800123456</exampleNumber>
20597       </noInternationalDialling>
20598       <fixedLine>
20599         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
20600         <exampleNumber>212345678</exampleNumber>
20601       </fixedLine>
20602       <mobile>
20603         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
20604              deeming it valid for now. -->
20605         <nationalNumberPattern>
20606           9(?:
20607             0[1-8]|
20608             1[0-24-9]|
20609             4[0489]
20610           )\d{6}
20611         </nationalNumberPattern>
20612         <exampleNumber>912123456</exampleNumber>
20613       </mobile>
20614       <tollFree>
20615         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20616         <exampleNumber>800123456</exampleNumber>
20617       </tollFree>
20618       <premiumRate>
20619         <nationalNumberPattern>
20620           9(?:
20621             [78]\d{7}|
20622             00\d{6}
20623           )
20624         </nationalNumberPattern>
20625         <exampleNumber>900123456</exampleNumber>
20626       </premiumRate>
20627       <sharedCost>
20628         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
20629         <exampleNumber>850123456</exampleNumber>
20630       </sharedCost>
20631       <voip>
20632         <nationalNumberPattern>
20633           6(?:
20634             5[0-4]|
20635             9[0-6]
20636           )\d{6}
20637         </nationalNumberPattern>
20638         <exampleNumber>690123456</exampleNumber>
20639       </voip>
20640       <uan>
20641         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
20642         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20643         <exampleNumber>961234567</exampleNumber>
20644       </uan>
20645     </territory>
20646
20647     <!-- Sierra Leone -->
20648     <territory id="SL" countryCode="232" internationalPrefix="00"
20649                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
20650       <references>
20651         <sourceUrl>http://www.itu.int/oth/T02020000BB/en</sourceUrl>
20652       </references>
20653       <availableFormats>
20654         <!-- Following formatting of online yellow pages http://www.leonedirect.com -->
20655         <numberFormat pattern="(\d{2})(\d{6})">
20656           <format>$1 $2</format>
20657         </numberFormat>
20658       </availableFormats>
20659       <generalDesc>
20660         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
20661         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20662       </generalDesc>
20663       <fixedLine>
20664         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
20665         <exampleNumber>22221234</exampleNumber>
20666       </fixedLine>
20667       <mobile>
20668         <nationalNumberPattern>
20669           (?:
20670             2[15]|
20671             3[034]|
20672             4[04]|
20673             5[05]|
20674             7[6-9]|
20675             88
20676           )\d{6}
20677         </nationalNumberPattern>
20678         <exampleNumber>25123456</exampleNumber>
20679       </mobile>
20680     </territory>
20681
20682     <!-- San Marino -->
20683     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
20684          optional when dialling from outside the country; the phone number can be reached both with
20685          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
20686          are used to ensure that if the 0549 is not present, it will be added. -->
20687     <territory id="SM" countryCode="378" internationalPrefix="00"
20688                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
20689                leadingZeroPossible="true">
20690       <references>
20691         <sourceUrl>http://www.itu.int/oth/T02020000B5/en</sourceUrl>
20692         <!-- Information about Italy. -->
20693         <sourceUrl>http://en.wikipedia.org/wiki/%2B39</sourceUrl>
20694         <sourceUrl>http://en.wikipedia.org/wiki/%2B378</sourceUrl>
20695       </references>
20696       <availableFormats>
20697         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
20698           <leadingDigits>[5-7]</leadingDigits>
20699           <format>$1 $2 $3 $4</format>
20700         </numberFormat>
20701         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
20702         <numberFormat pattern="(0549)(\d{6})">
20703           <leadingDigits>0</leadingDigits>
20704           <format>$1 $2</format>
20705           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
20706                formatting in international format. -->
20707           <intlFormat>($1) $2</intlFormat>
20708         </numberFormat>
20709         <!-- A rule in case the number has been stored without the leading 0549 necessary for
20710              fixed-lines. -->
20711         <numberFormat pattern="(\d{6})">
20712           <leadingDigits>[89]</leadingDigits>
20713           <format>0549 $1</format>
20714           <intlFormat>(0549) $1</intlFormat>
20715         </numberFormat>
20716       </availableFormats>
20717       <generalDesc>
20718         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
20719         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
20720       </generalDesc>
20721       <!-- Example numbers provided by the Telecommunications Services. -->
20722       <fixedLine>
20723         <nationalNumberPattern>
20724           0549(?:
20725             8[0157-9]|
20726             9\d
20727           )\d{4}
20728         </nationalNumberPattern>
20729         <exampleNumber>0549886377</exampleNumber>
20730       </fixedLine>
20731       <mobile>
20732         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
20733         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20734         <exampleNumber>66661212</exampleNumber>
20735       </mobile>
20736       <premiumRate>
20737         <!-- Includes Video Call numbers. -->
20738         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
20739         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20740         <exampleNumber>71123456</exampleNumber>
20741       </premiumRate>
20742       <voip>
20743         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
20744         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20745         <exampleNumber>58001110</exampleNumber>
20746       </voip>
20747     </territory>
20748
20749     <!-- Senegal -->
20750     <territory id="SN" countryCode="221" internationalPrefix="00">
20751       <references>
20752         <sourceUrl>http://www.itu.int/oth/T02020000B8/en</sourceUrl>
20753         <sourceUrl>http://www.artpsenegal.net</sourceUrl>
20754       </references>
20755       <availableFormats>
20756         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
20757              the national numbering plan. -->
20758         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
20759           <leadingDigits>[379]</leadingDigits>
20760           <format>$1 $2 $3 $4</format>
20761         </numberFormat>
20762         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20763           <leadingDigits>8</leadingDigits>
20764           <format>$1 $2 $3 $4</format>
20765         </numberFormat>
20766       </availableFormats>
20767       <generalDesc>
20768         <nationalNumberPattern>[3789]\d{8}</nationalNumberPattern>
20769         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20770       </generalDesc>
20771       <fixedLine>
20772         <nationalNumberPattern>
20773           3(?:
20774             0(?:
20775               1[0-2]|
20776               80
20777             )|
20778             282|
20779             3(?:
20780               8[1-9]|
20781               9[3-9]
20782             )|
20783             611|
20784             90[1-5]
20785           )\d{5}
20786         </nationalNumberPattern>
20787         <exampleNumber>301012345</exampleNumber>
20788       </fixedLine>
20789       <mobile>
20790         <nationalNumberPattern>
20791           7(?:
20792             [067]\d|
20793             21|
20794             8[0-26]|
20795             90
20796           )\d{6}
20797         </nationalNumberPattern>
20798         <exampleNumber>701234567</exampleNumber>
20799       </mobile>
20800       <tollFree>
20801         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20802         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20803         <exampleNumber>800123456</exampleNumber>
20804       </tollFree>
20805       <premiumRate>
20806         <!-- Revenu Partagé in the plan. -->
20807         <nationalNumberPattern>88[4689]\d{6}</nationalNumberPattern>
20808         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20809         <exampleNumber>884123456</exampleNumber>
20810       </premiumRate>
20811       <sharedCost>
20812         <nationalNumberPattern>81[02468]\d{6}</nationalNumberPattern>
20813         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20814         <exampleNumber>810123456</exampleNumber>
20815       </sharedCost>
20816       <voip>
20817         <!-- Also covers satellite telephony ranges. -->
20818         <nationalNumberPattern>
20819           3392\d{5}|
20820           93330\d{4}
20821         </nationalNumberPattern>
20822         <exampleNumber>933301234</exampleNumber>
20823       </voip>
20824     </territory>
20825
20826     <!-- Somalia -->
20827     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
20828          information available, and the numerous telecom carriers were previously working under an
20829          unregulated environment. The extra prefixes were added from the contact phone numbers of
20830          the countries main telecom operators. We also have received information that a national
20831          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
20832          for some operators, so that is included here although we do not use it when formatting. -->
20833     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
20834       <references>
20835         <sourceUrl>http://www.itu.int/oth/T02020000C0/en</sourceUrl>
20836         <sourceUrl>http://en.wikipedia.org/wiki/+252</sourceUrl>
20837       </references>
20838       <availableFormats>
20839         <!-- These follow formats online, such as http://www.hortel.net/contact_us.html -->
20840         <numberFormat pattern="(\d)(\d{6})">
20841           <leadingDigits>
20842             2[0-79]|
20843             [13-5]
20844           </leadingDigits>
20845           <format>$1 $2</format>
20846         </numberFormat>
20847         <numberFormat pattern="(\d)(\d{7})">
20848           <leadingDigits>
20849             24|
20850             [67]
20851           </leadingDigits>
20852           <format>$1 $2</format>
20853         </numberFormat>
20854         <numberFormat pattern="(\d{2})(\d{5,7})">
20855           <leadingDigits>
20856             15|
20857             28|
20858             6[1378]
20859           </leadingDigits>
20860           <format>$1 $2</format>
20861         </numberFormat>
20862         <numberFormat pattern="(69\d)(\d{6})">
20863           <leadingDigits>69</leadingDigits>
20864           <format>$1 $2</format>
20865         </numberFormat>
20866         <numberFormat pattern="(90\d)(\d{3})(\d{3})">
20867           <leadingDigits>90</leadingDigits>
20868           <format>$1 $2 $3</format>
20869         </numberFormat>
20870       </availableFormats>
20871       <generalDesc>
20872         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
20873         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20874       </generalDesc>
20875       <fixedLine>
20876         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
20877              here since that is apparently used for mobile. -->
20878         <nationalNumberPattern>
20879           (?:
20880             1\d|
20881             2[0-79]|
20882             3[0-46-8]|
20883             4[0-7]|
20884             59
20885           )\d{5}
20886         </nationalNumberPattern>
20887         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20888         <exampleNumber>4012345</exampleNumber>
20889       </fixedLine>
20890       <mobile>
20891         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
20892              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
20893              Somtel. 6 followed by only 7 digits is used by Telecom. Note that in June 2014 many
20894              ranges were suspended by the government. 90\d{6} was listed as one of the ranges to be
20895              suspended, but open-source contributors confirm that 907\d{6} is still in use, even if
20896              the shorter 90 ranges are no longer. -->
20897         <nationalNumberPattern>
20898           (?:
20899             15\d|
20900             2(?:
20901               4\d|
20902               8
20903             )|
20904             6[137-9]?\d{2}|
20905             7[1-9]\d|
20906             907\d
20907           )\d{5}
20908         </nationalNumberPattern>
20909         <exampleNumber>71123456</exampleNumber>
20910       </mobile>
20911     </territory>
20912
20913     <!-- Suriname -->
20914     <territory id="SR" countryCode="597" internationalPrefix="00">
20915       <references>
20916         <sourceUrl>http://www.itu.int/oth/T02020000C5/en</sourceUrl>
20917       </references>
20918       <availableFormats>
20919         <!-- Following conventions used in the Suriname Yellow Pages. -->
20920         <numberFormat pattern="(\d{3})(\d{3})">
20921           <leadingDigits>
20922             [2-4]|
20923             5[2-58]
20924           </leadingDigits>
20925           <format>$1-$2</format>
20926         </numberFormat>
20927         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
20928           <leadingDigits>56</leadingDigits>
20929           <format>$1-$2-$3</format>
20930         </numberFormat>
20931         <numberFormat pattern="(\d{3})(\d{4})">
20932           <leadingDigits>
20933             59|
20934             [6-8]
20935           </leadingDigits>
20936           <format>$1-$2</format>
20937         </numberFormat>
20938       </availableFormats>
20939       <generalDesc>
20940         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
20941         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20942       </generalDesc>
20943       <fixedLine>
20944         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
20945         <nationalNumberPattern>
20946           (?:
20947             2[1-3]|
20948             3[0-7]|
20949             4\d|
20950             5[2-58]|
20951             68\d
20952           )\d{4}
20953         </nationalNumberPattern>
20954         <exampleNumber>211234</exampleNumber>
20955       </fixedLine>
20956       <mobile>
20957         <nationalNumberPattern>
20958           (?:
20959             7[124-7]|
20960             8[1-9]
20961           )\d{5}
20962         </nationalNumberPattern>
20963         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20964         <exampleNumber>7412345</exampleNumber>
20965       </mobile>
20966       <voip>
20967         <nationalNumberPattern>
20968           5(?:
20969             6\d{4}|
20970             90[0-4]\d{3}
20971           )
20972         </nationalNumberPattern>
20973         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20974         <exampleNumber>561234</exampleNumber>
20975       </voip>
20976     </territory>
20977
20978     <!-- South Sudan -->
20979     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
20980       <references>
20981         <sourceUrl>http://www.itu.int/oth/T02020000F9/en</sourceUrl>
20982         <sourceUrl>http://en.wikipedia.org/wiki/+211</sourceUrl>
20983       </references>
20984       <availableFormats>
20985         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
20986           <format>$1 $2 $3</format>
20987         </numberFormat>
20988       </availableFormats>
20989       <generalDesc>
20990         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
20991         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20992       </generalDesc>
20993       <fixedLine>
20994         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
20995         <exampleNumber>181234567</exampleNumber>
20996       </fixedLine>
20997       <mobile>
20998         <nationalNumberPattern>
20999           (?:
21000             12|
21001             9[1257]
21002           )\d{7}
21003         </nationalNumberPattern>
21004         <exampleNumber>977123456</exampleNumber>
21005       </mobile>
21006     </territory>
21007
21008     <!-- Sao Tome and Principe -->
21009     <territory id="ST" countryCode="239" internationalPrefix="00">
21010       <references>
21011         <sourceUrl>http://www.itu.int/oth/T02020000B6/en</sourceUrl>
21012       </references>
21013       <availableFormats>
21014         <numberFormat pattern="(\d{3})(\d{4})">
21015           <format>$1 $2</format>
21016         </numberFormat>
21017       </availableFormats>
21018       <generalDesc>
21019         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
21020         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21021       </generalDesc>
21022       <fixedLine>
21023         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
21024         <exampleNumber>2221234</exampleNumber>
21025       </fixedLine>
21026       <mobile>
21027         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
21028         <exampleNumber>9812345</exampleNumber>
21029       </mobile>
21030     </territory>
21031
21032     <!-- El Salvador -->
21033     <territory id="SV" countryCode="503" internationalPrefix="00">
21034       <references>
21035         <sourceUrl>http://www.itu.int/oth/T020200003F/en</sourceUrl>
21036         <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>
21037       </references>
21038       <availableFormats>
21039         <numberFormat pattern="(\d{4})(\d{4})">
21040           <leadingDigits>[267]</leadingDigits>
21041           <format>$1 $2</format>
21042         </numberFormat>
21043         <numberFormat pattern="(\d{3})(\d{4})">
21044           <leadingDigits>[89]</leadingDigits>
21045           <format>$1 $2</format>
21046         </numberFormat>
21047         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
21048           <leadingDigits>[89]</leadingDigits>
21049           <format>$1 $2 $3</format>
21050         </numberFormat>
21051       </availableFormats>
21052       <generalDesc>
21053         <nationalNumberPattern>
21054           [267]\d{7}|
21055           [89]\d{6}(?:\d{4})?
21056         </nationalNumberPattern>
21057         <possibleNumberPattern>
21058           \d{7,8}|
21059           \d{11}
21060         </possibleNumberPattern>
21061       </generalDesc>
21062       <fixedLine>
21063         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
21064         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
21065         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21066         <exampleNumber>21234567</exampleNumber>
21067       </fixedLine>
21068       <mobile>
21069         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
21070         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21071         <exampleNumber>70123456</exampleNumber>
21072       </mobile>
21073       <tollFree>
21074         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
21075         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
21076         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21077         <exampleNumber>8001234</exampleNumber>
21078       </tollFree>
21079       <premiumRate>
21080         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
21081         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
21082         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21083         <exampleNumber>9001234</exampleNumber>
21084       </premiumRate>
21085     </territory>
21086
21087     <!-- Sint Maarten -->
21088     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
21089                internationalPrefix="011">
21090       <references>
21091         <sourceUrl>http://www.nanpa.com/pdf/PL_429.pdf</sourceUrl>
21092         <sourceUrl>http://www.itu.int/oth/T02020000F7/en</sourceUrl>
21093       </references>
21094       <generalDesc>
21095         <!-- NANPA country - uses US formatting rules -->
21096         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
21097         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21098       </generalDesc>
21099       <fixedLine>
21100         <nationalNumberPattern>
21101           7215(?:
21102             4[2-8]|
21103             8[239]|
21104             9[056]
21105           )\d{4}
21106         </nationalNumberPattern>
21107         <exampleNumber>7215425678</exampleNumber>
21108       </fixedLine>
21109       <mobile>
21110         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
21111              include these as mobile numbers. -->
21112         <nationalNumberPattern>
21113           7215(?:
21114             1[02]|
21115             2\d|
21116             5[034679]|
21117             8[014-8]
21118           )\d{4}
21119         </nationalNumberPattern>
21120         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21121         <exampleNumber>7215205678</exampleNumber>
21122       </mobile>
21123       <tollFree>
21124         <nationalNumberPattern>
21125           8(?:
21126             00|
21127             44|
21128             55|
21129             66|
21130             77|
21131             88
21132           )[2-9]\d{6}
21133         </nationalNumberPattern>
21134         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21135         <exampleNumber>8002123456</exampleNumber>
21136       </tollFree>
21137       <premiumRate>
21138         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21139         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21140         <exampleNumber>9002123456</exampleNumber>
21141       </premiumRate>
21142       <personalNumber>
21143         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21144         <nationalNumberPattern>
21145           5(?:
21146             00|
21147             33|
21148             44|
21149             66|
21150             77
21151           )[2-9]\d{6}
21152         </nationalNumberPattern>
21153         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21154         <exampleNumber>5002345678</exampleNumber>
21155       </personalNumber>
21156     </territory>
21157
21158     <!-- Syrian Arab Republic -->
21159     <territory id="SY" countryCode="963" internationalPrefix="00"
21160                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21161                nationalPrefixOptionalWhenFormatting="true">
21162       <references>
21163         <sourceUrl>http://www.itu.int/oth/T02020000C9/en</sourceUrl>
21164         <sourceUrl>http://en.wikipedia.org/wiki/%2B963</sourceUrl>
21165       </references>
21166       <availableFormats>
21167         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
21168           <leadingDigits>[1-5]</leadingDigits>
21169           <format>$1 $2 $3</format>
21170         </numberFormat>
21171         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
21172           <leadingDigits>9</leadingDigits>
21173           <format>$1 $2 $3</format>
21174         </numberFormat>
21175       </availableFormats>
21176       <generalDesc>
21177         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
21178         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
21179       </generalDesc>
21180       <fixedLine>
21181       <!-- Numbers with the 21 prefix are made optionally 1-digit longer based on numbers found on
21182            the Internet. -->
21183         <nationalNumberPattern>
21184           (?:
21185             1(?:
21186               1\d?|
21187               4\d|
21188               [2356]
21189             )|
21190             2(?:
21191               1\d?|
21192               [235]
21193             )|
21194             3(?:
21195               [13]\d|
21196               4
21197             )|
21198             4[13]|
21199             5[1-3]
21200           )\d{6}
21201         </nationalNumberPattern>
21202         <exampleNumber>112345678</exampleNumber>
21203       </fixedLine>
21204       <mobile>
21205         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
21206              95[138], and 96[05]. -->
21207         <nationalNumberPattern>
21208           9(?:
21209             22|
21210             [35][0-8]|
21211             4\d|
21212             6[024-9]|
21213             88|
21214             9[0-489]
21215           )\d{6}
21216         </nationalNumberPattern>
21217         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21218         <exampleNumber>944567890</exampleNumber>
21219       </mobile>
21220       <!-- No tollFree or premiumRate information can be found. -->
21221     </territory>
21222
21223     <!-- Swaziland -->
21224     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
21225       <references>
21226         <sourceUrl>http://www.itu.int/oth/T02020000C6/en</sourceUrl>
21227       </references>
21228       <availableFormats>
21229         <numberFormat pattern="(\d{4})(\d{4})">
21230           <leadingDigits>[027]</leadingDigits>
21231           <format>$1 $2</format>
21232         </numberFormat>
21233       </availableFormats>
21234       <generalDesc>
21235         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
21236         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21237       </generalDesc>
21238       <noInternationalDialling>
21239         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21240         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21241         <exampleNumber>08001234</exampleNumber>
21242       </noInternationalDialling>
21243       <fixedLine>
21244         <nationalNumberPattern>
21245           2(?:
21246             2(?:
21247               0[07]|
21248               [13]7|
21249               2[57]
21250             )|
21251             3(?:
21252               0[34]|
21253               [1278]3|
21254               3[23]|
21255               [46][34]
21256             )|
21257             (?:
21258               40[4-69]|
21259               67
21260             )|
21261             5(?:
21262               0[5-7]|
21263               1[6-9]|
21264               [23][78]|
21265               48|
21266               5[01]
21267             )
21268           )\d{4}
21269         </nationalNumberPattern>
21270         <exampleNumber>22171234</exampleNumber>
21271       </fixedLine>
21272       <mobile>
21273         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
21274         <exampleNumber>76123456</exampleNumber>
21275       </mobile>
21276       <tollFree>
21277         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21278         <exampleNumber>08001234</exampleNumber>
21279       </tollFree>
21280     </territory>
21281
21282     <!-- Tristan da Cunha -->
21283     <territory id="TA" countryCode="290" internationalPrefix="00">
21284       <references>
21285         <sourceUrl>http://www.itu.int/oth/T02020000AF/en</sourceUrl>
21286       </references>
21287       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
21288       <generalDesc>
21289         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21290         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21291       </generalDesc>
21292       <fixedLine>
21293         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21294         <exampleNumber>8999</exampleNumber>
21295       </fixedLine>
21296       <mobile>
21297         <nationalNumberPattern>NA</nationalNumberPattern>
21298         <possibleNumberPattern>NA</possibleNumberPattern>
21299       </mobile>
21300     </territory>
21301
21302     <!-- Turks and Caicos Islands -->
21303     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
21304                internationalPrefix="011">
21305       <references>
21306         <sourceUrl>http://www.itu.int/oth/T02020000D8/en</sourceUrl>
21307       </references>
21308       <generalDesc>
21309         <!-- NANPA country - uses US formatting rules -->
21310         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
21311         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21312       </generalDesc>
21313       <fixedLine>
21314         <nationalNumberPattern>
21315           649(?:
21316             712|
21317             9(?:
21318               4\d|
21319               50
21320             )
21321           )\d{4}
21322         </nationalNumberPattern>
21323         <exampleNumber>6497121234</exampleNumber>
21324       </fixedLine>
21325       <mobile>
21326         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
21327         <nationalNumberPattern>
21328           649(?:
21329             2(?:
21330               3[129]|
21331               4[1-7]
21332             )|
21333             3(?:
21334               3[1-389]|
21335               4[1-7]
21336             )|
21337             4[34][1-3]
21338           )\d{4}
21339         </nationalNumberPattern>
21340         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21341         <exampleNumber>6492311234</exampleNumber>
21342       </mobile>
21343       <tollFree>
21344         <nationalNumberPattern>
21345           8(?:
21346             00|
21347             44|
21348             55|
21349             66|
21350             77|
21351             88
21352           )[2-9]\d{6}
21353         </nationalNumberPattern>
21354         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21355         <exampleNumber>8002345678</exampleNumber>
21356       </tollFree>
21357       <premiumRate>
21358         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21359         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21360         <exampleNumber>9002345678</exampleNumber>
21361       </premiumRate>
21362       <personalNumber>
21363         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
21364         <nationalNumberPattern>
21365           5(?:
21366             00|
21367             33|
21368             44|
21369             66|
21370             77
21371           )[2-9]\d{6}
21372         </nationalNumberPattern>
21373         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21374         <exampleNumber>5002345678</exampleNumber>
21375       </personalNumber>
21376       <voip>
21377         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
21378         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21379         <exampleNumber>6497101234</exampleNumber>
21380       </voip>
21381     </territory>
21382
21383     <!-- Chad -->
21384     <!-- The international prefix includes 16 as the international manual exchange. -->
21385     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
21386                internationalPrefix="00|16">
21387       <references>
21388         <sourceUrl>http://www.itu.int/oth/T0202000029/en</sourceUrl>
21389       </references>
21390       <availableFormats>
21391         <numberFormat
21392           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21393           <format>$1 $2 $3 $4</format>
21394         </numberFormat>
21395       </availableFormats>
21396       <generalDesc>
21397         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
21398         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21399       </generalDesc>
21400       <fixedLine>
21401         <nationalNumberPattern>
21402           22(?:
21403             [3789]0|
21404             5[0-5]|
21405             6[89]
21406           )\d{4}
21407         </nationalNumberPattern>
21408         <exampleNumber>22501234</exampleNumber>
21409       </fixedLine>
21410       <mobile>
21411         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
21412              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
21413              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
21414         <nationalNumberPattern>
21415           (?:
21416             6[02368]\d|
21417             77\d|
21418             9(?:
21419               5[0-4]|
21420               9\d
21421             )
21422           )\d{5}
21423         </nationalNumberPattern>
21424         <exampleNumber>63012345</exampleNumber>
21425       </mobile>
21426     </territory>
21427
21428     <!-- French Southern Territories -->
21429     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
21430     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
21431          temporary inhabitants. -->
21432
21433     <!-- Togo -->
21434     <territory id="TG" countryCode="228" internationalPrefix="00">
21435       <references>
21436         <sourceUrl>http://www.itu.int/oth/T02020000D1/en</sourceUrl>
21437       </references>
21438       <availableFormats>
21439         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21440           <format>$1 $2 $3 $4</format>
21441         </numberFormat>
21442       </availableFormats>
21443       <generalDesc>
21444         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
21445         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21446       </generalDesc>
21447       <fixedLine>
21448         <nationalNumberPattern>
21449           2(?:
21450             2[2-7]|
21451             3[23]|
21452             44|
21453             55|
21454             66|
21455             77
21456           )\d{5}
21457         </nationalNumberPattern>
21458         <exampleNumber>22212345</exampleNumber>
21459       </fixedLine>
21460       <mobile>
21461         <!-- Prefix 93 is from an open-source bug report -->
21462         <nationalNumberPattern>9[0-389]\d{6}</nationalNumberPattern>
21463         <exampleNumber>90112345</exampleNumber>
21464       </mobile>
21465     </territory>
21466
21467     <!-- Thailand -->
21468     <territory id="TH" countryCode="66" internationalPrefix="00"
21469                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21470                mobileNumberPortableRegion="true">
21471       <references>
21472         <sourceUrl>http://www.itu.int/oth/T02020000CD/en</sourceUrl>
21473         <sourceUrl>http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf</sourceUrl>
21474       </references>
21475       <availableFormats>
21476         <!-- Formatting patterns from wikipedia and the document itself -
21477              http://en.wikipedia.org/wiki/%2B66 -->
21478         <numberFormat pattern="(2)(\d{3})(\d{4})">
21479           <leadingDigits>2</leadingDigits>
21480           <format>$1 $2 $3</format>
21481         </numberFormat>
21482         <numberFormat pattern="([13-9]\d)(\d{3})(\d{3,4})">
21483           <leadingDigits>
21484             14|
21485             [3-9]
21486           </leadingDigits>
21487           <format>$1 $2 $3</format>
21488         </numberFormat>
21489         <numberFormat nationalPrefixFormattingRule="$FG"
21490           pattern="(1[89]00)(\d{3})(\d{3})">
21491           <leadingDigits>1</leadingDigits>
21492           <format>$1 $2 $3</format>
21493         </numberFormat>
21494       </availableFormats>
21495       <generalDesc>
21496         <nationalNumberPattern>
21497           [2-9]\d{7,8}|
21498           1\d{3}(?:\d{5,6})?
21499         </nationalNumberPattern>
21500         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
21501       </generalDesc>
21502       <noInternationalDialling>
21503         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21504         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21505         <exampleNumber>1100</exampleNumber>
21506       </noInternationalDialling>
21507       <fixedLine>
21508         <!-- Numbers online have been found that start with 20, despite the ITU doc not covering
21509              these. -->
21510         <nationalNumberPattern>
21511           (?:
21512             2\d|
21513             3[2-9]|
21514             4[2-5]|
21515             5[2-6]|
21516             7[3-7]
21517           )\d{6}
21518         </nationalNumberPattern>
21519         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21520         <exampleNumber>21234567</exampleNumber>
21521       </fixedLine>
21522       <mobile>
21523         <!-- Numbers found online starting with 62. 14 and 63 are from an open-source bug report,
21524              we couldn't find evidence of these specifically being in use but this article
21525              http://www.prachachat.net/news_detail.php?newsid=1395732787&grpid=03&catid=06&subcatid=0600
21526              talks about prefix 6 and 1 being cleared for mobile use. -->
21527         <nationalNumberPattern>
21528           (?:
21529             14|
21530             6[1-3]|
21531             [89]\d
21532           )\d{7}
21533         </nationalNumberPattern>
21534         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21535         <exampleNumber>812345678</exampleNumber>
21536       </mobile>
21537       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
21538       <tollFree>
21539         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
21540         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21541         <exampleNumber>1800123456</exampleNumber>
21542       </tollFree>
21543       <premiumRate>
21544         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
21545         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21546         <exampleNumber>1900123456</exampleNumber>
21547       </premiumRate>
21548       <voip>
21549         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
21550              online to suggest they are actually used as mobile numbers. -->
21551         <nationalNumberPattern>6[08]\d{7}</nationalNumberPattern>
21552         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21553         <exampleNumber>601234567</exampleNumber>
21554       </voip>
21555       <uan>
21556         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
21557              their costs range from free to 6 Baht/min. -->
21558         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21559         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21560         <exampleNumber>1100</exampleNumber>
21561       </uan>
21562     </territory>
21563
21564     <!-- Tajikistan -->
21565     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
21566                internationalPrefix="810" nationalPrefix="8"
21567                nationalPrefixFormattingRule="($NP) $FG"
21568                nationalPrefixOptionalWhenFormatting="true">
21569       <references>
21570         <sourceUrl>http://www.itu.int/oth/T02020000CA/en</sourceUrl>
21571       </references>
21572       <availableFormats>
21573         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
21574           <leadingDigits>
21575             [34]7|
21576             91[78]
21577           </leadingDigits>
21578           <format>$1 $2 $3</format>
21579         </numberFormat>
21580         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
21581           <leadingDigits>
21582             4[48]|
21583             5|
21584             9(?:
21585               1[59]|
21586               [0235-9]
21587             )
21588           </leadingDigits>
21589           <format>$1 $2 $3</format>
21590         </numberFormat>
21591         <numberFormat pattern="(331700)(\d)(\d{2})">
21592           <leadingDigits>331</leadingDigits>
21593           <leadingDigits>3317</leadingDigits>
21594           <leadingDigits>33170</leadingDigits>
21595           <leadingDigits>331700</leadingDigits>
21596           <format>$1 $2 $3</format>
21597         </numberFormat>
21598         <numberFormat pattern="(\d{4})(\d)(\d{4})">
21599           <leadingDigits>3[1-5]</leadingDigits>
21600           <leadingDigits>
21601             3(?:
21602               [1245]|
21603               3(?:
21604                 [02-9]|
21605                 1[0-589]
21606               )
21607             )
21608           </leadingDigits>
21609           <format>$1 $2 $3</format>
21610         </numberFormat>
21611       </availableFormats>
21612       <generalDesc>
21613         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
21614         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
21615       </generalDesc>
21616       <fixedLine>
21617         <nationalNumberPattern>
21618           (?:
21619             3(?:
21620               1[3-5]|
21621               2[245]|
21622               3[12]|
21623               4[24-7]|
21624               5[25]|
21625               72
21626             )|
21627             4(?:
21628               46|
21629               74|
21630               87
21631             )
21632           )\d{6}
21633         </nationalNumberPattern>
21634         <exampleNumber>372123456</exampleNumber>
21635       </fixedLine>
21636       <mobile>
21637         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
21638              numbers, and 50[12] for TCell from bug reports. -->
21639         <nationalNumberPattern>
21640           (?:
21641             50[125]|
21642             9[0-35-9]\d
21643           )\d{6}
21644         </nationalNumberPattern>
21645         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21646         <exampleNumber>917123456</exampleNumber>
21647       </mobile>
21648       <!-- No tollFree or premiumRate information can be found. -->
21649     </territory>
21650
21651     <!-- Tokelau -->
21652     <territory id="TK" countryCode="690" internationalPrefix="00">
21653       <references>
21654         <sourceUrl>http://www.itu.int/oth/T02020000D2/en</sourceUrl>
21655       </references>
21656       <generalDesc>
21657         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
21658         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21659       </generalDesc>
21660       <fixedLine>
21661         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
21662         <!-- The example number is the contact number from the ITU document. -->
21663         <exampleNumber>3010</exampleNumber>
21664       </fixedLine>
21665       <mobile>
21666         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
21667         <exampleNumber>5190</exampleNumber>
21668       </mobile>
21669     </territory>
21670
21671     <!-- Timor-Leste (East Timor) -->
21672     <territory id="TL" countryCode="670" internationalPrefix="00">
21673       <references>
21674         <sourceUrl>http://www.itu.int/oth/T02020000D0/en</sourceUrl>
21675       </references>
21676       <availableFormats>
21677         <numberFormat pattern="(\d{3})(\d{4})">
21678           <leadingDigits>[2-489]</leadingDigits>
21679           <format>$1 $2</format>
21680         </numberFormat>
21681         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
21682              them. If we see another pattern being used, we should change this later. -->
21683         <numberFormat pattern="(\d{4})(\d{4})">
21684           <leadingDigits>7</leadingDigits>
21685           <format>$1 $2</format>
21686         </numberFormat>
21687       </availableFormats>
21688       <generalDesc>
21689         <nationalNumberPattern>
21690           [2-489]\d{6}|
21691           7\d{6,7}
21692         </nationalNumberPattern>
21693         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
21694       </generalDesc>
21695       <fixedLine>
21696         <nationalNumberPattern>
21697           (?:
21698             2[1-5]|
21699             3[1-9]|
21700             4[1-4]
21701           )\d{5}
21702         </nationalNumberPattern>
21703         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21704         <exampleNumber>2112345</exampleNumber>
21705       </fixedLine>
21706       <mobile>
21707         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
21708         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21709         <exampleNumber>77212345</exampleNumber>
21710       </mobile>
21711       <tollFree>
21712         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
21713         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21714         <exampleNumber>8012345</exampleNumber>
21715       </tollFree>
21716       <premiumRate>
21717         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
21718         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21719         <exampleNumber>9012345</exampleNumber>
21720       </premiumRate>
21721       <!-- We don't include paging or voicemail because the identified paging range was used by
21722            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
21723            numbers, or if the range was indeed previously used for voicemail at all. -->
21724       <personalNumber>
21725         <!-- We presume this wasn't affected by the numbering plan update. -->
21726         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
21727         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21728         <exampleNumber>7012345</exampleNumber>
21729       </personalNumber>
21730     </territory>
21731
21732     <!-- Turkmenistan -->
21733     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
21734                internationalPrefix="810" nationalPrefix="8"
21735                nationalPrefixFormattingRule="($NP $FG)">
21736       <references>
21737         <sourceUrl>http://www.itu.int/oth/T02020000D7/en</sourceUrl>
21738         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan</sourceUrl>
21739       </references>
21740       <availableFormats>
21741         <!-- There doesn't seem to be a standardized format. The format below is based on the
21742              Turkmenistan embassy at
21743              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
21744           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21745             <leadingDigits>12</leadingDigits>
21746             <format>$1 $2-$3-$4</format>
21747           </numberFormat>
21748           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
21749             <leadingDigits>6</leadingDigits>
21750             <format>$1 $2</format>
21751           </numberFormat>
21752           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
21753             <leadingDigits>
21754               13|
21755               [2-5]
21756             </leadingDigits>
21757             <format>$1 $2-$3-$4</format>
21758           </numberFormat>
21759       </availableFormats>
21760       <generalDesc>
21761         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
21762         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21763       </generalDesc>
21764       <fixedLine>
21765         <!-- Additional prefixes from the wikipedia page. -->
21766         <nationalNumberPattern>
21767           (?:
21768             1(?:
21769               2\d|
21770               3[1-9]
21771             )|
21772             2(?:
21773               22|
21774               4[0-35-8]
21775             )|
21776             3(?:
21777               22|
21778               4[03-9]
21779             )|
21780             4(?:
21781               22|
21782               3[128]|
21783               4\d|
21784               6[15]
21785             )|
21786             5(?:
21787               22|
21788               5[7-9]|
21789               6[014-689]
21790             )
21791           )\d{5}
21792         </nationalNumberPattern>
21793         <exampleNumber>12345678</exampleNumber>
21794       </fixedLine>
21795       <mobile>
21796         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
21797              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
21798              has been suspended. It is unclear whether it will resume. We support both ranges in the
21799              meantime. The range 62 seems also now to be in use, according to numbers found online.
21800              -->
21801         <nationalNumberPattern>6[2-8]\d{6}</nationalNumberPattern>
21802         <exampleNumber>66123456</exampleNumber>
21803       </mobile>
21804       <!-- No tollFree or premiumRate information can be found. -->
21805     </territory>
21806
21807     <!-- Tunisia -->
21808     <territory id="TN" countryCode="216" internationalPrefix="00">
21809       <references>
21810         <sourceUrl>http://www.itu.int/oth/T02020000D5/en</sourceUrl>
21811         <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>
21812         <sourceUrl>http://www.tunisietelecom.tn/tt/internet/fr/pme/fixe/numeros_acceuil</sourceUrl>
21813       </references>
21814       <availableFormats>
21815         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
21816           <format>$1 $2 $3</format>
21817         </numberFormat>
21818       </availableFormats>
21819       <generalDesc>
21820         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
21821         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21822       </generalDesc>
21823       <fixedLine>
21824         <!-- 3[012] numbers are no longer listed in the ITU doc, but we support them based on
21825              online searches. -->
21826         <nationalNumberPattern>
21827           3[012]\d{6}|
21828           7\d{7}|
21829           81200\d{3}
21830         </nationalNumberPattern>
21831         <exampleNumber>71234567</exampleNumber>
21832       </fixedLine>
21833       <mobile>
21834         <!-- Numbers starting with 5 are no longer listed in the ITU doc, but we support them based
21835              on online searches and Wikipedia. -->
21836         <nationalNumberPattern>
21837           (?:
21838             [259]\d|
21839             4[0-24]
21840           )\d{6}
21841         </nationalNumberPattern>
21842         <exampleNumber>20123456</exampleNumber>
21843       </mobile>
21844       <tollFree>
21845         <!-- ITU lists 80 xx xx xx, but the document published by Tunisie Telecom has more specific
21846              information which is followed here. -->
21847         <nationalNumberPattern>8010\d{4}</nationalNumberPattern>
21848         <exampleNumber>80101234</exampleNumber>
21849       </tollFree>
21850       <premiumRate>
21851         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
21852         <exampleNumber>88123456</exampleNumber>
21853       </premiumRate>
21854       <sharedCost>
21855         <!-- 8110xxxx numbers are listed as being "discounted non-geographical numbers" and are put
21856              here for now. In the future we might consider them as UAN.
21857              ITU lists 82 xx xx xx, but the document published by Tunisie Telecom has more specific
21858              information which is followed here. -->
21859         <nationalNumberPattern>8[12]10\d{4}</nationalNumberPattern>
21860         <exampleNumber>81101234</exampleNumber>
21861       </sharedCost>
21862     </territory>
21863
21864     <!-- Tonga -->
21865     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
21866       <references>
21867         <sourceUrl>http://www.itu.int/oth/T02020000D3/en</sourceUrl>
21868         <sourceUrl>http://www.wtng.info/wtng-676-to.html</sourceUrl>
21869       </references>
21870       <availableFormats>
21871         <numberFormat pattern="(\d{2})(\d{3})">
21872           <leadingDigits>
21873             [1-6]|
21874             7[0-4]|
21875             8[05]
21876           </leadingDigits>
21877           <format>$1-$2</format>
21878         </numberFormat>
21879         <numberFormat pattern="(\d{3})(\d{4})">
21880           <leadingDigits>
21881             7[5-9]|
21882             8[47-9]
21883           </leadingDigits>
21884           <format>$1 $2</format>
21885         </numberFormat>
21886         <numberFormat pattern="(\d{4})(\d{3})">
21887           <leadingDigits>0</leadingDigits>
21888           <format>$1 $2</format>
21889         </numberFormat>
21890       </availableFormats>
21891       <generalDesc>
21892         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
21893         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
21894       </generalDesc>
21895       <fixedLine>
21896         <nationalNumberPattern>
21897           (?:
21898             2\d|
21899             3[1-8]|
21900             4[1-4]|
21901             [56]0|
21902             7[0149]|
21903             8[05]
21904           )\d{3}
21905         </nationalNumberPattern>
21906         <possibleNumberPattern>\d{5}</possibleNumberPattern>
21907         <exampleNumber>20123</exampleNumber>
21908       </fixedLine>
21909       <mobile>
21910         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
21911              in their ITU document. Numbers with a prefix of "75" and "84" have also been found. -->
21912         <nationalNumberPattern>
21913           (?:
21914             7[578]|
21915             8[47-9]
21916           )\d{5}
21917         </nationalNumberPattern>
21918         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21919         <exampleNumber>7715123</exampleNumber>
21920       </mobile>
21921       <tollFree>
21922         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
21923         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21924         <exampleNumber>0800222</exampleNumber>
21925       </tollFree>
21926     </territory>
21927
21928     <!-- Turkey -->
21929     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0"
21930                mobileNumberPortableRegion="true">
21931       <references>
21932         <sourceUrl>http://en.wikipedia.org/wiki/%2B90</sourceUrl>
21933         <sourceUrl>http://www.itu.int/oth/T02020000D6/en</sourceUrl>
21934       </references>
21935       <availableFormats>
21936         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
21937           nationalPrefixOptionalWhenFormatting="true">
21938           <leadingDigits>
21939             [23]|
21940             4(?:
21941               [0-35-9]|
21942               4[0-35-9]
21943             )
21944           </leadingDigits>
21945           <format>$1 $2 $3</format>
21946         </numberFormat>
21947         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
21948           nationalPrefixOptionalWhenFormatting="true">
21949           <leadingDigits>[589]</leadingDigits>
21950           <format>$1 $2 $3</format>
21951         </numberFormat>
21952         <numberFormat pattern="(444)(\d{1})(\d{3})">
21953           <leadingDigits>444</leadingDigits>
21954           <format>$1 $2 $3</format>
21955         </numberFormat>
21956       </availableFormats>
21957       <generalDesc>
21958         <nationalNumberPattern>
21959           [2-589]\d{9}|
21960           444\d{4}
21961         </nationalNumberPattern>
21962         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
21963       </generalDesc>
21964       <noInternationalDialling>
21965         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
21966         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21967         <exampleNumber>4441444</exampleNumber>
21968       </noInternationalDialling>
21969       <fixedLine>
21970         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
21971         <nationalNumberPattern>
21972           (?:
21973             2(?:
21974               [13][26]|
21975               [28][2468]|
21976               [45][268]|
21977               [67][246]
21978             )|
21979             3(?:
21980               [13][28]|
21981               [24-6][2468]|
21982               [78][02468]|
21983               92
21984             )|
21985             4(?:
21986               [16][246]|
21987               [23578][2468]|
21988               4[26]
21989             )
21990           )\d{7}
21991         </nationalNumberPattern>
21992         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21993         <exampleNumber>2123456789</exampleNumber>
21994       </fixedLine>
21995       <mobile>
21996         <!-- There are some differences between the Turkish and English wikipedia pages here, and
21997              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
21998              509 from the English page because of this. -->
21999         <nationalNumberPattern>
22000           5(?:
22001             0[1-7]|
22002             22|
22003             [34]\d|
22004             5[1-59]|
22005             9[246]
22006           )\d{7}
22007         </nationalNumberPattern>
22008         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22009         <exampleNumber>5012345678</exampleNumber>
22010       </mobile>
22011       <pager>
22012         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
22013         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22014         <exampleNumber>5123456789</exampleNumber>
22015       </pager>
22016       <tollFree>
22017         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
22018         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22019         <exampleNumber>8001234567</exampleNumber>
22020       </tollFree>
22021       <premiumRate>
22022         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
22023         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22024         <exampleNumber>9001234567</exampleNumber>
22025       </premiumRate>
22026       <uan>
22027         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
22028         <nationalNumberPattern>
22029           444\d{4}|
22030           850\d{7}
22031         </nationalNumberPattern>
22032         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
22033         <exampleNumber>4441444</exampleNumber>
22034       </uan>
22035     </territory>
22036
22037     <!-- Trinidad and Tobago -->
22038     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
22039                internationalPrefix="011">
22040       <references>
22041         <sourceUrl>http://www.itu.int/oth/T02020000D4/en</sourceUrl>
22042       </references>
22043       <generalDesc>
22044         <!-- NANPA country - uses US formatting rules -->
22045         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
22046         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22047       </generalDesc>
22048       <fixedLine>
22049         <nationalNumberPattern>
22050           868(?:
22051             2(?:
22052               [03]1|
22053               2[1-5]
22054             )|
22055             6(?:
22056               0[79]|
22057               1[02-9]|
22058               2[1-9]|
22059               [3-69]\d|
22060               7[0-79]
22061             )|
22062             82[124]
22063           )\d{4}
22064         </nationalNumberPattern>
22065         <exampleNumber>8682211234</exampleNumber>
22066       </fixedLine>
22067       <mobile>
22068         <nationalNumberPattern>
22069           868(?:
22070             2(?:
22071               [89]\d
22072             )|
22073             3(?:
22074               0[1-9]|
22075               1[02-9]|
22076               [2-9]\d
22077             )|
22078             4[6-9]\d|
22079             6(?:
22080               20|
22081               78|
22082               8\d
22083             )|
22084             7(?:
22085               0[1-9]|
22086               1[02-9]|
22087               [2-9]\d
22088             )
22089           )\d{4}
22090         </nationalNumberPattern>
22091         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22092         <exampleNumber>8682911234</exampleNumber>
22093       </mobile>
22094       <tollFree>
22095         <nationalNumberPattern>
22096           8(?:
22097             00|
22098             44|
22099             55|
22100             66|
22101             77|
22102             88
22103           )[2-9]\d{6}
22104         </nationalNumberPattern>
22105         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22106         <exampleNumber>8002345678</exampleNumber>
22107       </tollFree>
22108       <premiumRate>
22109         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22110         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22111         <exampleNumber>9002345678</exampleNumber>
22112       </premiumRate>
22113       <personalNumber>
22114         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22115         <nationalNumberPattern>
22116           5(?:
22117             00|
22118             33|
22119             44|
22120             66|
22121             77
22122           )[2-9]\d{6}
22123         </nationalNumberPattern>
22124         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22125         <exampleNumber>5002345678</exampleNumber>
22126       </personalNumber>
22127     </territory>
22128
22129     <!-- Tuvalu -->
22130     <territory id="TV" countryCode="688" internationalPrefix="00">
22131       <references>
22132         <sourceUrl>http://www.itu.int/oth/T02020000D9/en</sourceUrl>
22133         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu</sourceUrl>
22134       </references>
22135       <!-- Numbers are formatted as a block. -->
22136       <generalDesc>
22137         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
22138         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
22139       </generalDesc>
22140       <fixedLine>
22141         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
22142         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22143         <exampleNumber>20123</exampleNumber>
22144       </fixedLine>
22145       <mobile>
22146         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
22147              don't know if these are valid or not - the ITU document excludes them - so are not
22148              covering these for now. -->
22149         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
22150         <possibleNumberPattern>\d{6}</possibleNumberPattern>
22151         <exampleNumber>901234</exampleNumber>
22152       </mobile>
22153     </territory>
22154
22155     <!-- Taiwan, China -->
22156     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
22157          chosen as the preferred extension prefix. -->
22158     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
22159                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG"
22160                mobileNumberPortableRegion="true">
22161       <references>
22162         <sourceUrl>http://www.itu.int/oth/T02020000EB/en</sourceUrl>
22163       </references>
22164       <availableFormats>
22165         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
22166           <leadingDigits>
22167             [2-6]|
22168             [78][1-9]
22169           </leadingDigits>
22170           <format>$1 $2 $3</format>
22171         </numberFormat>
22172         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
22173           <leadingDigits>
22174             80|
22175             9
22176           </leadingDigits>
22177           <format>$1 $2 $3</format>
22178         </numberFormat>
22179         <numberFormat pattern="(70)(\d{4})(\d{4})">
22180           <leadingDigits>70</leadingDigits>
22181           <format>$1 $2 $3</format>
22182         </numberFormat>
22183       </availableFormats>
22184       <generalDesc>
22185         <nationalNumberPattern>
22186           [2-689]\d{7,8}|
22187           7\d{7,9}
22188         </nationalNumberPattern>
22189         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
22190       </generalDesc>
22191       <fixedLine>
22192         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
22193         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22194         <exampleNumber>21234567</exampleNumber>
22195       </fixedLine>
22196       <mobile>
22197         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
22198         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22199         <exampleNumber>912345678</exampleNumber>
22200       </mobile>
22201       <tollFree>
22202         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22203         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22204         <exampleNumber>800123456</exampleNumber>
22205       </tollFree>
22206       <premiumRate>
22207         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22208         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22209         <exampleNumber>900123456</exampleNumber>
22210       </premiumRate>
22211       <!-- http://www.chief.com.tw/telecom_eng/front/bin/ptlist.phtml?Category=107 -->
22212       <voip>
22213         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
22214         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22215         <exampleNumber>7012345678</exampleNumber>
22216       </voip>
22217     </territory>
22218
22219     <!-- Tanzania -->
22220     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
22221                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22222       <references>
22223         <sourceUrl>http://www.itu.int/oth/T02020000CB/en</sourceUrl>
22224       </references>
22225       <availableFormats>
22226         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
22227           <leadingDigits>[24]</leadingDigits>
22228           <format>$1 $2 $3</format>
22229         </numberFormat>
22230         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
22231           <leadingDigits>[67]</leadingDigits>
22232           <format>$1 $2 $3</format>
22233         </numberFormat>
22234         <!-- Formatting for special numbers from http://www.tcra.go.tz -->
22235         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
22236           <leadingDigits>[89]</leadingDigits>
22237           <format>$1 $2 $3</format>
22238         </numberFormat>
22239       </availableFormats>
22240       <generalDesc>
22241         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22242         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22243       </generalDesc>
22244       <fixedLine>
22245         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
22246         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22247         <exampleNumber>222345678</exampleNumber>
22248       </fixedLine>
22249       <mobile>
22250         <nationalNumberPattern>
22251           (?:
22252             6[1578]|
22253             7[1-9]
22254           )\d{7}
22255         </nationalNumberPattern>
22256         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22257         <exampleNumber>612345678</exampleNumber>
22258       </mobile>
22259       <tollFree>
22260         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
22261         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22262         <exampleNumber>800123456</exampleNumber>
22263       </tollFree>
22264       <premiumRate>
22265         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
22266         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22267         <exampleNumber>900123456</exampleNumber>
22268       </premiumRate>
22269       <sharedCost>
22270         <nationalNumberPattern>
22271           8(?:
22272             40|
22273             6[01]
22274           )\d{6}
22275         </nationalNumberPattern>
22276         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22277         <exampleNumber>840123456</exampleNumber>
22278       </sharedCost>
22279       <voip>
22280         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
22281         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22282         <exampleNumber>412345678</exampleNumber>
22283       </voip>
22284     </territory>
22285
22286     <!-- Ukraine -->
22287     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
22288                internationalPrefix="00"
22289                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22290       <references>
22291         <sourceUrl>http://www.itu.int/oth/T02020000DB/en</sourceUrl>
22292         <sourceUrl>http://en.wikipedia.org/wiki/%2B380</sourceUrl>
22293       </references>
22294       <availableFormats>
22295         <!-- City codes separated out. No definitive list has been found of what constitutes the
22296              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
22297              Have used local yellow pages guidelines, Google searches and regression tests to
22298              reverse-engineer these rules as well as bugs. -->
22299         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
22300           <leadingDigits>
22301             [38]9|
22302             4(?:
22303               [45][0-5]|
22304               87
22305             )|
22306             5(?:
22307               0|
22308               6[37]|
22309               7[37]
22310             )|
22311             6[36-8]|
22312             9[1-9]
22313           </leadingDigits>
22314           <leadingDigits>
22315             [38]9|
22316             4(?:
22317               [45][0-5]|
22318               87
22319             )|
22320             5(?:
22321               0|
22322               6(?:
22323                 3[14-7]|
22324                 7
22325               )|
22326               7[37]
22327             )|
22328             6[36-8]|
22329             9[1-9]
22330           </leadingDigits>
22331           <format>$1 $2 $3</format>
22332         </numberFormat>
22333         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
22334           <leadingDigits>
22335             3[1-8]2|
22336             4[13678]2|
22337             5(?:
22338               [12457]2|
22339               6[24]
22340             )|
22341             6(?:
22342               [49]2|
22343               [12][29]|
22344               5[24]
22345             )|
22346             8[0-8]|
22347             90
22348           </leadingDigits>
22349           <leadingDigits>
22350             3(?:
22351               [1-46-8]2[013-9]|
22352               52
22353             )|
22354             4(?:
22355               [1378]2|
22356               62[013-9]
22357             )|
22358             5(?:
22359               [12457]2|
22360               6[24]
22361             )|
22362             6(?:
22363               [49]2|
22364               [12][29]|
22365               5[24]
22366             )|
22367             8[0-8]|
22368             90
22369           </leadingDigits>
22370           <format>$1 $2 $3</format>
22371         </numberFormat>
22372         <numberFormat pattern="([3-6]\d{3})(\d{5})">
22373           <leadingDigits>
22374             3(?:
22375               5[013-9]|
22376               [1-46-8]
22377             )|
22378             4(?:
22379               [137][013-9]|
22380               6|
22381               [45][6-9]|
22382               8[4-6]
22383             )|
22384             5(?:
22385               [1245][013-9]|
22386               6[0135-9]|
22387               3|
22388               7[4-6]
22389             )|
22390             6(?:
22391               [49][013-9]|
22392               5[0135-9]|
22393               [12][13-8]
22394             )
22395           </leadingDigits>
22396           <leadingDigits>
22397             3(?:
22398               5[013-9]|
22399               [1-46-8](?:
22400                 22|
22401                 [013-9]
22402               )
22403             )|
22404             4(?:
22405               [137][013-9]|
22406               6(?:
22407                 [013-9]|
22408                 22
22409               )|
22410               [45][6-9]|
22411               8[4-6]
22412             )|
22413             5(?:
22414               [1245][013-9]|
22415               6(?:
22416                 3[02389]|
22417                 [015689]
22418               )|
22419               3|
22420               7[4-6]
22421             )|
22422             6(?:
22423               [49][013-9]|
22424               5[0135-9]|
22425               [12][13-8]
22426             )
22427           </leadingDigits>
22428           <format>$1 $2</format>
22429         </numberFormat>
22430       </availableFormats>
22431       <generalDesc>
22432         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
22433         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22434       </generalDesc>
22435       <fixedLine>
22436         <nationalNumberPattern>
22437           (?:
22438             3[1-8]|
22439             4[13-8]|
22440             5[1-7]|
22441             6[12459]
22442           )\d{7}
22443         </nationalNumberPattern>
22444         <exampleNumber>311234567</exampleNumber>
22445       </fixedLine>
22446       <mobile>
22447         <nationalNumberPattern>
22448           (?:
22449             39|
22450             50|
22451             6[36-8]|
22452             9[1-9]
22453           )\d{7}
22454         </nationalNumberPattern>
22455         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22456         <exampleNumber>391234567</exampleNumber>
22457       </mobile>
22458       <tollFree>
22459         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22460         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22461         <exampleNumber>800123456</exampleNumber>
22462       </tollFree>
22463       <premiumRate>
22464         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22465         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22466         <exampleNumber>900123456</exampleNumber>
22467       </premiumRate>
22468       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
22469       <voip>
22470         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
22471         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22472         <exampleNumber>891234567</exampleNumber>
22473       </voip>
22474     </territory>
22475
22476     <!-- Uganda -->
22477     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
22478                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22479       <references>
22480         <sourceUrl>http://www.itu.int/oth/T02020000F1/en</sourceUrl>
22481         <sourceUrl>http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf</sourceUrl>
22482       </references>
22483       <availableFormats>
22484         <numberFormat pattern="(\d{3})(\d{6})">
22485           <leadingDigits>
22486             [7-9]|
22487             20(?:
22488               [013-8]|
22489               2[5-9]
22490             )|
22491             4(?:
22492               6[45]|
22493               [7-9]
22494             )
22495           </leadingDigits>
22496           <format>$1 $2</format>
22497         </numberFormat>
22498         <numberFormat pattern="(\d{2})(\d{7})">
22499           <leadingDigits>
22500             3|
22501             4(?:
22502               [1-5]|
22503               6[0-36-9]
22504             )
22505           </leadingDigits>
22506           <format>$1 $2</format>
22507         </numberFormat>
22508         <numberFormat pattern="(2024)(\d{5})">
22509           <leadingDigits>2024</leadingDigits>
22510           <format>$1 $2</format>
22511         </numberFormat>
22512       </availableFormats>
22513       <generalDesc>
22514         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22515         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22516       </generalDesc>
22517       <fixedLine>
22518         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
22519         <nationalNumberPattern>
22520           20(?:
22521             [0147]\d{2}|
22522             2(?:
22523               40|
22524               [5-9]\d
22525             )|
22526             3[23]\d|
22527             5[0-4]\d|
22528             6[03]\d|
22529             8[0-2]\d
22530           )\d{4}|
22531           [34]\d{8}
22532         </nationalNumberPattern>
22533         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
22534              local dialing is still possible. We assume it is for now. -->
22535         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22536         <exampleNumber>312345678</exampleNumber>
22537       </fixedLine>
22538       <mobile>
22539         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
22540         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
22541         <!-- Ranges with prefixes 2030 or 723 are "not yet operational" as of Oct. 2014. -->
22542         <nationalNumberPattern>
22543           2030\d{5}|
22544           7(?:
22545             0[0-7]|
22546             [15789]\d|
22547             2[03]|
22548             30|
22549             [46][0-4]
22550           )\d{6}
22551         </nationalNumberPattern>
22552         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22553         <exampleNumber>712345678</exampleNumber>
22554       </mobile>
22555       <tollFree>
22556         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
22557         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22558         <exampleNumber>800123456</exampleNumber>
22559       </tollFree>
22560       <premiumRate>
22561         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
22562         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22563         <exampleNumber>901123456</exampleNumber>
22564       </premiumRate>
22565     </territory>
22566
22567     <!-- United States -->
22568     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
22569          numbers in the national format, it is not included. Therefore, we omit it here to make
22570          formatting consistent with the rest of the world. The same applies to all the
22571          countries/regions under NANPA -->
22572     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
22573          when formatting, but is set here so that users who are calling formatByPattern can specify
22574          NationalPrefixFormattingRule if they want to. -->
22575     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
22576                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true"
22577                mobileNumberPortableRegion="true">
22578       <references>
22579         <sourceUrl>http://www.nanpa.com/reports/reports_npa.html</sourceUrl>
22580         <sourceUrl>http://en.wikipedia.org/wiki/North_American_Numbering_Plan</sourceUrl>
22581       </references>
22582       <availableFormats>
22583         <numberFormat pattern="(\d{3})(\d{4})">
22584           <format>$1-$2</format>
22585           <intlFormat>NA</intlFormat>
22586         </numberFormat>
22587         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
22588           <format>($1) $2-$3</format>
22589           <!-- A different pattern is used when formatting internationally, as the area code is no
22590                longer optional and should not be in brackets. -->
22591           <intlFormat>$1-$2-$3</intlFormat>
22592         </numberFormat>
22593       </availableFormats>
22594       <generalDesc>
22595         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
22596         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22597       </generalDesc>
22598       <fixedLine>
22599         <nationalNumberPattern>
22600           (?:
22601             2(?:
22602               0[1-35-9]|
22603               1[02-9]|
22604               2[4589]|
22605               3[149]|
22606               4[08]|
22607               5[1-46]|
22608               6[0279]|
22609               7[026]|
22610               8[13]
22611             )|
22612             3(?:
22613               0[1-57-9]|
22614               1[02-9]|
22615               2[0135]|
22616               3[014679]|
22617               4[67]|
22618               5[12]|
22619               6[014]|
22620               8[56]
22621             )|
22622             4(?:
22623               0[124-9]|
22624               1[02-579]|
22625               2[3-5]|
22626               3[0245]|
22627               4[0235]|
22628               58|
22629               69|
22630               7[0589]|
22631               8[04]
22632             )|
22633             5(?:
22634               0[1-57-9]|
22635               1[0235-8]|
22636               20|
22637               3[0149]|
22638               4[01]|
22639               5[19]|
22640               6[1-37]|
22641               7[013-5]|
22642               8[056]
22643             )|
22644             6(?:
22645               0[1-35-9]|
22646               1[024-9]|
22647               2[036]|
22648               3[016]|
22649               4[16]|
22650               5[017]|
22651               6[0-279]|
22652               78|
22653               8[12]
22654             )|
22655             7(?:
22656               0[1-46-8]|
22657               1[02-9]|
22658               2[0457]|
22659               3[1247]|
22660               4[07]|
22661               5[47]|
22662               6[02359]|
22663               7[02-59]|
22664               8[156]
22665             )|
22666             8(?:
22667               0[1-68]|
22668               1[02-8]|
22669               28|
22670               3[0-25]|
22671               4[3578]|
22672               5[06-9]|
22673               6[02-5]|
22674               7[028]
22675             )|
22676             9(?:
22677               0[1346-9]|
22678               1[02-9]|
22679               2[0589]|
22680               3[01678]|
22681               4[0179]|
22682               5[12469]|
22683               7[0-3589]|
22684               8[0459]
22685             )
22686           )[2-9]\d{6}
22687         </nationalNumberPattern>
22688         <exampleNumber>2015555555</exampleNumber>
22689       </fixedLine>
22690       <mobile>
22691         <nationalNumberPattern>
22692           (?:
22693             2(?:
22694               0[1-35-9]|
22695               1[02-9]|
22696               2[4589]|
22697               3[149]|
22698               4[08]|
22699               5[1-46]|
22700               6[0279]|
22701               7[026]|
22702               8[13]
22703             )|
22704             3(?:
22705               0[1-57-9]|
22706               1[02-9]|
22707               2[0135]|
22708               3[014679]|
22709               4[67]|
22710               5[12]|
22711               6[014]|
22712               8[56]
22713             )|
22714             4(?:
22715               0[124-9]|
22716               1[02-579]|
22717               2[3-5]|
22718               3[0245]|
22719               4[0235]|
22720               58|
22721               69|
22722               7[0589]|
22723               8[04]
22724             )|
22725             5(?:
22726               0[1-57-9]|
22727               1[0235-8]|
22728               20|
22729               3[0149]|
22730               4[01]|
22731               5[19]|
22732               6[1-37]|
22733               7[013-5]|
22734               8[056]
22735             )|
22736             6(?:
22737               0[1-35-9]|
22738               1[024-9]|
22739               2[036]|
22740               3[016]|
22741               4[16]|
22742               5[017]|
22743               6[0-279]|
22744               78|
22745               8[12]
22746             )|
22747             7(?:
22748               0[1-46-8]|
22749               1[02-9]|
22750               2[0457]|
22751               3[1247]|
22752               4[07]|
22753               5[47]|
22754               6[02359]|
22755               7[02-59]|
22756               8[156]
22757             )|
22758             8(?:
22759               0[1-68]|
22760               1[02-8]|
22761               28|
22762               3[0-25]|
22763               4[3578]|
22764               5[06-9]|
22765               6[02-5]|
22766               7[028]
22767             )|
22768             9(?:
22769               0[1346-9]|
22770               1[02-9]|
22771               2[0589]|
22772               3[01678]|
22773               4[0179]|
22774               5[12469]|
22775               7[0-3589]|
22776               8[0459]
22777             )
22778           )[2-9]\d{6}
22779         </nationalNumberPattern>
22780         <exampleNumber>2015555555</exampleNumber>
22781       </mobile>
22782       <tollFree>
22783         <nationalNumberPattern>
22784           8(?:
22785             00|
22786             44|
22787             55|
22788             66|
22789             77|
22790             88
22791           )[2-9]\d{6}
22792         </nationalNumberPattern>
22793         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22794         <exampleNumber>8002345678</exampleNumber>
22795       </tollFree>
22796       <premiumRate>
22797         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22798         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22799         <exampleNumber>9002345678</exampleNumber>
22800       </premiumRate>
22801       <personalNumber>
22802         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
22803         <nationalNumberPattern>
22804           5(?:
22805             00|
22806             33|
22807             44|
22808             66|
22809             77
22810           )[2-9]\d{6}
22811         </nationalNumberPattern>
22812         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22813         <exampleNumber>5002345678</exampleNumber>
22814       </personalNumber>
22815     </territory>
22816
22817     <!-- Uruguay -->
22818     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
22819          code JK, where J = [3-9] and K is any digit. -->
22820     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
22821                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
22822       <references>
22823         <sourceUrl>http://www.itu.int/oth/T02020000E0/en</sourceUrl>
22824         <sourceUrl>http://www.ursec.gub.uy</sourceUrl>
22825         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay</sourceUrl>
22826       </references>
22827       <availableFormats>
22828         <!-- Following paginasamarillas.com.uy formatting. -->
22829         <numberFormat pattern="(\d{4})(\d{4})">
22830           <leadingDigits>[24]</leadingDigits>
22831           <format>$1 $2</format>
22832         </numberFormat>
22833         <!-- Including the national prefix here since URSEC does when formatting these. -->
22834         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
22835           <leadingDigits>9[1-9]</leadingDigits>
22836           <format>$1 $2 $3</format>
22837         </numberFormat>
22838         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
22839           <leadingDigits>[89]0</leadingDigits>
22840           <format>$1 $2</format>
22841         </numberFormat>
22842       </availableFormats>
22843       <generalDesc>
22844         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
22845         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
22846       </generalDesc>
22847       <fixedLine>
22848         <nationalNumberPattern>
22849           2\d{7}|
22850           4[2-7]\d{6}
22851         </nationalNumberPattern>
22852         <exampleNumber>21231234</exampleNumber>
22853       </fixedLine>
22854       <mobile>
22855         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
22856         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22857         <exampleNumber>94231234</exampleNumber>
22858       </mobile>
22859       <tollFree>
22860         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
22861         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22862         <exampleNumber>8001234</exampleNumber>
22863       </tollFree>
22864       <premiumRate>
22865         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
22866         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22867         <exampleNumber>9001234</exampleNumber>
22868       </premiumRate>
22869      </territory>
22870
22871     <!-- Uzbekistan -->
22872     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
22873                internationalPrefix="810" nationalPrefix="8"
22874                nationalPrefixFormattingRule="$NP $FG">
22875       <references>
22876         <sourceUrl>http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng</sourceUrl>
22877         <sourceUrl>http://www.itu.int/oth/T02020000E1/en</sourceUrl>
22878       </references>
22879       <availableFormats>
22880         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
22881           <format>$1 $2 $3 $4</format>
22882         </numberFormat>
22883       </availableFormats>
22884       <generalDesc>
22885         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
22886         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22887       </generalDesc>
22888       <fixedLine>
22889         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
22890              be used in Namangan. -->
22891         <nationalNumberPattern>
22892           (?:
22893             6(?:
22894               1(?:
22895                 22|
22896                 3[124]|
22897                 4[1-4]|
22898                 5[123578]|
22899                 64
22900               )|
22901               2(?:
22902                 22|
22903                 3[0-57-9]|
22904                 41
22905               )|
22906               5(?:
22907                 22|
22908                 3[3-7]|
22909                 5[024-8]
22910               )|
22911               6\d{2}|
22912               7(?:
22913                 [23]\d|
22914                 7[69]
22915               )|
22916               9(?:
22917                 22|
22918                 4[1-8]|
22919                 6[135]
22920               )
22921             )|
22922             7(?:
22923               0(?:
22924                 5[4-9]|
22925                 6[0146]|
22926                 7[12456]|
22927                 9[135-8]
22928               )|
22929               1[12]\d|
22930               2(?:
22931                 22|
22932                 3[1345789]|
22933                 4[123579]|
22934                 5[14]
22935               )|
22936               3(?:
22937                 2\d|
22938                 3[1578]|
22939                 4[1-35-7]|
22940                 5[1-57]|
22941                 61
22942               )|
22943               4(?:
22944                 2\d|
22945                 3[1-579]|
22946                 7[1-79]
22947               )|
22948               5(?:
22949                 22|
22950                 5[1-9]|
22951                 6[1457]
22952               )|
22953               6(?:
22954                 22|
22955                 3[12457]|
22956                 4[13-8]
22957               )|
22958               9(?:
22959                 22|
22960                 5[1-9]
22961               )
22962             )
22963           )\d{5}
22964         </nationalNumberPattern>
22965         <exampleNumber>662345678</exampleNumber>
22966       </fixedLine>
22967       <mobile>
22968         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
22969              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
22970              prefixes Tyntec has a carrier mapped to. -->
22971         <nationalNumberPattern>
22972           6(?:
22973             1(?:
22974               2(?:
22975                 98|
22976                 2[01]
22977               )|
22978               35[0-4]|
22979               50\d|
22980               61[23]|
22981               7(?:
22982                 [01][017]|
22983                 4\d|
22984                 55|
22985                 9[5-9]
22986               )
22987             )|
22988             2(?:
22989               11\d|
22990               2(?:
22991                 [12]1|
22992                 9[01379]
22993               )|
22994               5(?:
22995                 [126]\d|
22996                 3[0-4]
22997               )|
22998               7\d{2}
22999             )|
23000             5(?:
23001               19[01]|
23002               2(?:
23003                 27|
23004                 9[26]
23005               )|
23006               30\d|
23007               59\d|
23008               7\d{2}
23009             )|
23010             6(?:
23011               2(?:
23012                 1[5-9]|
23013                 2[0367]|
23014                 38|
23015                 41|
23016                 52|
23017                 60
23018               )|
23019               3[79]\d|
23020               4(?:
23021                 56|
23022                 83
23023               )|
23024               7(?:
23025                 [07]\d|
23026                 1[017]|
23027                 3[07]|
23028                 4[047]|
23029                 5[057]|
23030                 67|
23031                 8[0178]|
23032                 9[79]
23033                 )|
23034               9[0-3]\d
23035             )|
23036             7(?:
23037               2(?:
23038                 24|
23039                 3[237]|
23040                 4[5-9]|
23041                 7[15-8]
23042               )|
23043               5(?:
23044                 7[12]|
23045                 8[0589]
23046               )|
23047               7(?:
23048                 0\d|
23049                 [39][07]
23050               )|
23051               9(?:
23052                 0\d|
23053                 7[079]
23054               )
23055             )|
23056             9(?:
23057               2(?:
23058                 1[1267]|
23059                 5\d|
23060                 3[01]|
23061                 7[0-4]
23062               )|
23063               5[67]\d|
23064               6(?:
23065                 2[0-26]|
23066                 8\d
23067               )|
23068               7\d{2}
23069             )
23070           )\d{4}|
23071           7(?:
23072             0\d{3}|
23073             1(?:
23074               13[01]|
23075               6(?:
23076                 0[47]|
23077                 1[67]|
23078                 66
23079               )|
23080               71[3-69]|
23081               98\d
23082             )|
23083             2(?:
23084               2(?:
23085                 2[79]|
23086                 95
23087               )|
23088               3(?:
23089                 2[5-9]|
23090                 6[0-6]
23091               )|
23092               57\d|
23093               7(?:
23094                 0\d|
23095                 1[17]|
23096                 2[27]|
23097                 3[37]|
23098                 44|
23099                 5[057]|
23100                 66|
23101                 88
23102               )
23103             )|
23104             3(?:
23105               2(?:
23106                 1[0-6]|
23107                 21|
23108                 3[469]|
23109                 7[159]
23110               )|
23111               33\d|
23112               5(?:
23113                 0[0-4]|
23114                 5[579]|
23115                 9\d
23116               )|
23117               7(?:
23118                 [0-3579]\d|
23119                 4[0467]|
23120                 6[67]|
23121                 8[078]
23122               )|
23123               9[4-6]\d
23124             )|
23125             4(?:
23126               2(?:
23127                 29|
23128                 5[0257]|
23129                 6[0-7]|
23130                 7[1-57]
23131               )|
23132               5(?:
23133                 1[0-4]|
23134                 8\d|
23135                 9[5-9]
23136               )|
23137               7(?:
23138                 0\d|
23139                 1[024589]|
23140                 2[0127]|
23141                 3[0137]|
23142                 [46][07]|
23143                 5[01]|
23144                 7[5-9]|
23145                 9[079]
23146               )|
23147               9(?:
23148                 7[015-9]|
23149                 [89]\d
23150               )
23151             )|
23152             5(?:
23153               112|
23154               2(?:
23155                 0\d|
23156                 2[29]|
23157                 [49]4
23158               )|
23159               3[1568]\d|
23160               52[6-9]|
23161               7(?:
23162                 0[01578]|
23163                 1[017]|
23164                 [23]7|
23165                 4[047]|
23166                 [5-7]\d|
23167                 8[78]|
23168                 9[079]
23169               )
23170             )|
23171             6(?:
23172               2(?:
23173                 2[1245]|
23174                 4[2-4]
23175               )|
23176               39\d|
23177               41[179]|
23178               5(?:
23179                 [349]\d|
23180                 5[0-2]
23181               )|
23182               7(?:
23183                 0[017]|
23184                 [13]\d|
23185                 22|
23186                 44|
23187                 55|
23188                 67|
23189                 88
23190               )
23191             )|
23192             9(?:
23193               22[128]|
23194               3(?:
23195                 2[0-4]|
23196                 7\d
23197               )|
23198               57[05629]|
23199               7(?:
23200                 2[05-9]|
23201                 3[37]|
23202                 4\d|
23203                 60|
23204                 7[2579]|
23205                 87|
23206                 9[07]
23207               )
23208             )
23209           )\d{4}|
23210           9[0-57-9]\d{7}
23211         </nationalNumberPattern>
23212         <exampleNumber>912345678</exampleNumber>
23213       </mobile>
23214       <!-- No tollFree or premiumRate information can be found. -->
23215     </territory>
23216
23217     <!-- Vatican City -->
23218     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
23219          also be dialled with the Vatican City country code. -->
23220     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
23221       <references>
23222         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City</sourceUrl>
23223       </references>
23224       <availableFormats>
23225         <numberFormat pattern="(06)(\d{4})(\d{4})">
23226           <format>$1 $2 $3</format>
23227         </numberFormat>
23228       </availableFormats>
23229       <generalDesc>
23230         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
23231         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23232       </generalDesc>
23233       <fixedLine>
23234         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
23235         <exampleNumber>0669812345</exampleNumber>
23236       </fixedLine>
23237       <mobile>
23238         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
23239              Italian mobile contracts. -->
23240         <nationalNumberPattern>NA</nationalNumberPattern>
23241         <possibleNumberPattern>NA</possibleNumberPattern>
23242       </mobile>
23243       <!-- No information exists about other types of numbers. -->
23244     </territory>
23245
23246     <!-- Saint Vincent and the Grenadines -->
23247     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
23248                internationalPrefix="011">
23249       <references>
23250         <sourceUrl>http://www.itu.int/oth/T02020000B3/en</sourceUrl>
23251       </references>
23252       <generalDesc>
23253         <!-- NANPA country - uses US formatting rules -->
23254         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
23255         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23256       </generalDesc>
23257       <!-- For 570, 571 and 572 prefixes, we believe the ITU doc incorrectly listed them to be under
23258            area code 758, which should be 784. -->
23259       <fixedLine>
23260         <nationalNumberPattern>
23261           784(?:
23262             266|
23263             3(?:
23264               6[6-9]|
23265               7\d|
23266               8[0-24-6]
23267             )|
23268             4(?:
23269               38|
23270               5[0-36-8]|
23271               8[0-8]
23272             )|
23273             5(?:
23274               55|
23275               7[0-2]|
23276               93
23277             )|
23278             638|
23279             784
23280           )\d{4}
23281         </nationalNumberPattern>
23282         <exampleNumber>7842661234</exampleNumber>
23283       </fixedLine>
23284       <mobile>
23285         <nationalNumberPattern>
23286           784(?:
23287             4(?:
23288               3[0-4]|
23289               5[45]|
23290               89|
23291               9[0-5]
23292             )|
23293             5(?:
23294               2[6-9]|
23295               3[0-4]
23296             )
23297           )\d{4}
23298         </nationalNumberPattern>
23299         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23300         <exampleNumber>7844301234</exampleNumber>
23301       </mobile>
23302       <tollFree>
23303         <nationalNumberPattern>
23304           8(?:
23305             00|
23306             44|
23307             55|
23308             66|
23309             77|
23310             88
23311           )[2-9]\d{6}
23312         </nationalNumberPattern>
23313         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23314         <exampleNumber>8002345678</exampleNumber>
23315       </tollFree>
23316       <premiumRate>
23317         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23318         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23319         <exampleNumber>9002345678</exampleNumber>
23320       </premiumRate>
23321       <personalNumber>
23322         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23323         <nationalNumberPattern>
23324           5(?:
23325             00|
23326             33|
23327             44|
23328             66|
23329             77
23330           )[2-9]\d{6}
23331         </nationalNumberPattern>
23332         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23333         <exampleNumber>5002345678</exampleNumber>
23334       </personalNumber>
23335     </territory>
23336
23337     <!-- Venezuela -->
23338     <!-- 1XX specifies a particular carrier to route a call to, but none of these have been
23339          implemented. -->
23340     <territory id="VE" countryCode="58" internationalPrefix="00"
23341                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23342                carrierCodeFormattingRule="$CC $FG">
23343       <references>
23344         <sourceUrl>http://www.itu.int/oth/T02020000E3/en</sourceUrl>
23345         <sourceUrl>http://en.wikipedia.org/wiki/+58</sourceUrl>
23346       </references>
23347       <availableFormats>
23348         <numberFormat pattern="(\d{3})(\d{7})">
23349           <format>$1-$2</format>
23350         </numberFormat>
23351       </availableFormats>
23352       <generalDesc>
23353         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
23354         <!-- Open numbering plan. -->
23355         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23356       </generalDesc>
23357       <fixedLine>
23358         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
23359              mentions these as 5XX, but online examples that can be found are seemingly restricted
23360              to 50[01]. -->
23361         <nationalNumberPattern>
23362           (?:
23363             2(?:
23364               12|
23365               3[457-9]|
23366               [58][1-9]|
23367               [467]\d|
23368               9[1-6]
23369             )|
23370             50[01]
23371           )\d{7}
23372         </nationalNumberPattern>
23373         <exampleNumber>2121234567</exampleNumber>
23374       </fixedLine>
23375       <mobile>
23376         <nationalNumberPattern>
23377           4(?:
23378             1[24-8]|
23379             2[46]
23380           )\d{7}
23381         </nationalNumberPattern>
23382         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23383         <exampleNumber>4121234567</exampleNumber>
23384       </mobile>
23385       <tollFree>
23386         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
23387         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23388         <exampleNumber>8001234567</exampleNumber>
23389       </tollFree>
23390       <premiumRate>
23391         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
23392         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23393         <exampleNumber>9001234567</exampleNumber>
23394       </premiumRate>
23395     </territory>
23396
23397     <!-- Virgin Islands, British -->
23398     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
23399                internationalPrefix="011">
23400       <references>
23401         <sourceUrl>http://www.itu.int/oth/T020200001E/en</sourceUrl>
23402       </references>
23403       <generalDesc>
23404         <!-- NANPA country - uses US formatting rules -->
23405         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
23406         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23407       </generalDesc>
23408       <fixedLine>
23409         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
23410              and 774 have been added from numbers found in the white pages. -->
23411         <nationalNumberPattern>
23412           284(?:
23413             (?:
23414               229|
23415               4(?:
23416                 22|
23417                 9[45]
23418               )|
23419               774|
23420               8(?:
23421                 52|
23422                 6[459]
23423               )
23424             )\d{4}|
23425             496[0-5]\d{3}
23426           )
23427         </nationalNumberPattern>
23428         <exampleNumber>2842291234</exampleNumber>
23429       </fixedLine>
23430       <mobile>
23431         <!-- No data on central office codes can be found on the nanpa.com website. The codes
23432              34[0-367], 446 and 54[57] have been added from numbers found in the white pages. -->
23433         <nationalNumberPattern>
23434           284(?:
23435             (?:
23436               3(?:
23437                 0[0-3]|
23438                 4[0-367]
23439               )|
23440               4(?:
23441                 4[0-6]|
23442                 68|
23443                 99
23444               )|
23445               54[0-57]
23446             )\d{4}|
23447             496[6-9]\d{3}
23448           )
23449         </nationalNumberPattern>
23450         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23451         <exampleNumber>2843001234</exampleNumber>
23452       </mobile>
23453       <tollFree>
23454         <nationalNumberPattern>
23455           8(?:
23456             00|
23457             44|
23458             55|
23459             66|
23460             77|
23461             88
23462           )[2-9]\d{6}
23463         </nationalNumberPattern>
23464         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23465         <exampleNumber>8002345678</exampleNumber>
23466       </tollFree>
23467       <premiumRate>
23468         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23469         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23470         <exampleNumber>9002345678</exampleNumber>
23471       </premiumRate>
23472       <personalNumber>
23473         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23474         <nationalNumberPattern>
23475           5(?:
23476             00|
23477             33|
23478             44|
23479             66|
23480             77
23481           )[2-9]\d{6}
23482         </nationalNumberPattern>
23483         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23484         <exampleNumber>5002345678</exampleNumber>
23485       </personalNumber>
23486     </territory>
23487
23488     <!-- Virgin Islands, United States -->
23489     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
23490                internationalPrefix="011">
23491       <references>
23492         <sourceUrl>http://www.itu.int/oth/T02020000DF/en</sourceUrl>
23493       </references>
23494       <generalDesc>
23495         <!-- NANPA country - uses US formatting rules -->
23496         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
23497         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23498       </generalDesc>
23499       <fixedLine>
23500         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
23501              yellow pages have been added, and the list of exchanges found on
23502              http://www.allareacodes.com/340 -->
23503         <nationalNumberPattern>
23504           340(?:
23505             2(?:
23506               01|
23507               2[0678]|
23508               44|
23509               77
23510             )|
23511             3(?:
23512               32|
23513               44
23514             )|
23515             4(?:
23516               22|
23517               7[34]
23518             )|
23519             5(?:
23520               1[34]|
23521               55
23522             )|
23523             6(?:
23524               26|
23525               4[23]|
23526               77|
23527               9[023]
23528             )|
23529             7(?:
23530               1[2-589]|
23531               27|
23532               7\d
23533             )|
23534             884|
23535             998
23536           )\d{4}
23537         </nationalNumberPattern>
23538         <exampleNumber>3406421234</exampleNumber>
23539       </fixedLine>
23540       <mobile>
23541         <nationalNumberPattern>
23542           340(?:
23543             2(?:
23544               01|
23545               2[0678]|
23546               44|
23547               77
23548             )|
23549             3(?:
23550               32|
23551               44
23552             )|
23553             4(?:
23554               22|
23555               7[34]
23556             )|
23557             5(?:
23558               1[34]|
23559               55
23560             )|
23561             6(?:
23562               26|
23563               4[23]|
23564               77|
23565               9[023]
23566             )|
23567             7(?:
23568               1[2-589]|
23569               27|
23570               7\d
23571             )|
23572             884|
23573             998
23574           )\d{4}
23575         </nationalNumberPattern>
23576         <exampleNumber>3406421234</exampleNumber>
23577       </mobile>
23578       <tollFree>
23579         <nationalNumberPattern>
23580           8(?:
23581             00|
23582             44|
23583             55|
23584             66|
23585             77|
23586             88
23587           )[2-9]\d{6}
23588         </nationalNumberPattern>
23589         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23590         <exampleNumber>8002345678</exampleNumber>
23591       </tollFree>
23592       <premiumRate>
23593         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23594         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23595         <exampleNumber>9002345678</exampleNumber>
23596       </premiumRate>
23597       <personalNumber>
23598         <!-- http://www.nanpa.com/pdf/PL_466.pdf -->
23599         <nationalNumberPattern>
23600           5(?:
23601             00|
23602             33|
23603             44|
23604             66|
23605             77
23606           )[2-9]\d{6}
23607         </nationalNumberPattern>
23608         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23609         <exampleNumber>5002345678</exampleNumber>
23610       </personalNumber>
23611     </territory>
23612
23613     <!-- Viet Nam (Vietnam) -->
23614     <territory id="VN" countryCode="84" internationalPrefix="00"
23615                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23616                nationalPrefixOptionalWhenFormatting="true">
23617       <references>
23618         <sourceUrl>http://www.itu.int/oth/T02020000E4/en</sourceUrl>
23619         <sourceUrl>http://en.wikipedia.org/wiki/%2B84</sourceUrl>
23620       </references>
23621       <availableFormats>
23622         <numberFormat pattern="([17]99)(\d{4})">
23623           <leadingDigits>[17]99</leadingDigits>
23624           <format>$1 $2</format>
23625         </numberFormat>
23626         <numberFormat pattern="([48])(\d{4})(\d{4})">
23627           <leadingDigits>[48]</leadingDigits>
23628           <format>$1 $2 $3</format>
23629         </numberFormat>
23630         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
23631           <leadingDigits>
23632             2[025-79]|
23633             3[0136-9]|
23634             5[2-9]|
23635             6[0-46-8]|
23636             7[02-79]
23637           </leadingDigits>
23638           <format>$1 $2 $3</format>
23639         </numberFormat>
23640         <numberFormat pattern="(80)(\d{5})">
23641           <leadingDigits>80</leadingDigits>
23642           <format>$1 $2</format>
23643         </numberFormat>
23644         <numberFormat pattern="(69\d)(\d{4,5})">
23645           <leadingDigits>69</leadingDigits>
23646           <format>$1 $2</format>
23647         </numberFormat>
23648         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
23649           <leadingDigits>
23650             2[1348]|
23651             3[25]|
23652             5[01]|
23653             65|
23654             7[18]
23655           </leadingDigits>
23656           <format>$1 $2 $3</format>
23657         </numberFormat>
23658         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
23659           <leadingDigits>9</leadingDigits>
23660           <format>$1 $2 $3 $4</format>
23661         </numberFormat>
23662         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
23663           <leadingDigits>
23664             1(?:
23665               [26]|
23666               8[68]|
23667               99
23668             )
23669           </leadingDigits>
23670           <format>$1 $2 $3</format>
23671         </numberFormat>
23672         <numberFormat nationalPrefixFormattingRule="$FG"
23673           pattern="(1[89]00)(\d{4,6})">
23674           <leadingDigits>1[89]0</leadingDigits>
23675           <format>$1 $2</format>
23676         </numberFormat>
23677       </availableFormats>
23678       <generalDesc>
23679         <nationalNumberPattern>
23680           [17]\d{6,9}|
23681           [2-69]\d{7,9}|
23682           8\d{6,8}
23683         </nationalNumberPattern>
23684         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23685       </generalDesc>
23686       <noInternationalDialling>
23687         <nationalNumberPattern>
23688           [17]99\d{4}|
23689           69\d{5,6}
23690         </nationalNumberPattern>
23691         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23692         <exampleNumber>1992000</exampleNumber>
23693       </noInternationalDialling>
23694       <fixedLine>
23695         <nationalNumberPattern>
23696           (?:
23697             2(?:
23698               [025-79]|
23699               1[0189]|
23700               [348][01]
23701             )|
23702             3(?:
23703               [0136-9]|
23704               [25][01]
23705             )|
23706             4\d|
23707             5(?:
23708               [01][01]|
23709               [2-9]
23710             )|
23711             6(?:
23712               [0-46-8]|
23713               5[01]
23714             )|
23715             7(?:
23716               [02-79]|
23717               [18][01]
23718             )|
23719             8[1-9]
23720           )\d{7}
23721         </nationalNumberPattern>
23722         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23723         <exampleNumber>2101234567</exampleNumber>
23724       </fixedLine>
23725       <mobile>
23726         <nationalNumberPattern>
23727           (?:
23728             9\d|
23729             1(?:
23730               2\d|
23731               6[2-9]|
23732               8[68]|
23733               99
23734             )
23735           )\d{7}
23736         </nationalNumberPattern>
23737         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
23738         <exampleNumber>912345678</exampleNumber>
23739       </mobile>
23740       <tollFree>
23741         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
23742         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23743         <exampleNumber>1800123456</exampleNumber>
23744       </tollFree>
23745       <premiumRate>
23746         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
23747         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
23748         <exampleNumber>1900123456</exampleNumber>
23749       </premiumRate>
23750       <uan>
23751         <!-- These include non-geographic fixed numbers, such as for government ministries. While
23752         listed as "private networks", they may actually be callable from within Vietnam. (They are
23753         "private" in the sense that ordinary people could not be assigned these numbers.) -->
23754         <nationalNumberPattern>
23755           [17]99\d{4}|
23756           69\d{5,6}|
23757           80\d{5}
23758         </nationalNumberPattern>
23759         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23760         <exampleNumber>1992000</exampleNumber>
23761       </uan>
23762     </territory>
23763
23764     <!-- Vanuatu -->
23765     <territory id="VU" countryCode="678" internationalPrefix="00">
23766       <references>
23767         <sourceUrl>http://www.itu.int/oth/T02020000E2/en</sourceUrl>
23768       </references>
23769       <!-- Should be formatted in one block, apart from the mobile numbers. -->
23770       <availableFormats>
23771         <numberFormat pattern="(\d{3})(\d{4})">
23772           <leadingDigits>[579]</leadingDigits>
23773           <format>$1 $2</format>
23774         </numberFormat>
23775       </availableFormats>
23776       <generalDesc>
23777         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
23778         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23779       </generalDesc>
23780       <fixedLine>
23781         <nationalNumberPattern>
23782           (?:
23783             2[02-9]\d|
23784             3(?:
23785               [5-7]\d|
23786               8[0-8]
23787             )|
23788             48[4-9]|
23789             88\d
23790           )\d{2}
23791         </nationalNumberPattern>
23792         <possibleNumberPattern>\d{5}</possibleNumberPattern>
23793         <exampleNumber>22123</exampleNumber>
23794       </fixedLine>
23795       <mobile>
23796         <nationalNumberPattern>
23797           (?:
23798             5(?:
23799               7[2-5]|
23800               [3-69]\d
23801             )|
23802             7[013-7]\d
23803           )\d{4}
23804         </nationalNumberPattern>
23805         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23806         <exampleNumber>5912345</exampleNumber>
23807       </mobile>
23808       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
23809            for government fixed-line numbers. -->
23810       <uan>
23811         <nationalNumberPattern>
23812           3[03]\d{3}|
23813           900\d{4}
23814         </nationalNumberPattern>
23815         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23816         <exampleNumber>30123</exampleNumber>
23817       </uan>
23818     </territory>
23819
23820     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
23821     <territory id="WF" countryCode="681" internationalPrefix="00">
23822       <references>
23823         <sourceUrl>http://www.itu.int/oth/T02020000E6/en</sourceUrl>
23824       </references>
23825       <availableFormats>
23826         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
23827           <format>$1 $2 $3</format>
23828         </numberFormat>
23829       </availableFormats>
23830       <generalDesc>
23831         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
23832         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23833       </generalDesc>
23834       <fixedLine>
23835         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
23836              50 and 68 are possible, so they are included here. -->
23837         <nationalNumberPattern>
23838           (?:
23839             50|
23840             68|
23841             72
23842           )\d{4}
23843         </nationalNumberPattern>
23844         <exampleNumber>501234</exampleNumber>
23845       </fixedLine>
23846       <mobile>
23847         <nationalNumberPattern>
23848           (?:
23849             50|
23850             68|
23851             72
23852           )\d{4}
23853         </nationalNumberPattern>
23854         <exampleNumber>501234</exampleNumber>
23855       </mobile>
23856     </territory>
23857
23858     <!-- Samoa -->
23859     <territory id="WS" countryCode="685" internationalPrefix="0">
23860       <references>
23861         <sourceUrl>http://www.itu.int/oth/T02020000B4/en</sourceUrl>
23862       </references>
23863       <availableFormats>
23864         <numberFormat pattern="(8\d{2})(\d{3,4})">
23865           <leadingDigits>8</leadingDigits>
23866           <format>$1 $2</format>
23867         </numberFormat>
23868         <numberFormat pattern="(7\d)(\d{5})">
23869           <leadingDigits>7</leadingDigits>
23870           <format>$1 $2</format>
23871         </numberFormat>
23872         <numberFormat pattern="(\d{5})">
23873           <leadingDigits>[2-6]</leadingDigits>
23874           <format>$1</format>
23875         </numberFormat>
23876       </availableFormats>
23877       <generalDesc>
23878         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
23879         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23880       </generalDesc>
23881       <fixedLine>
23882         <nationalNumberPattern>
23883           (?:
23884             [2-5]\d|
23885             6[1-9]|
23886             84\d{2}
23887           )\d{3}
23888         </nationalNumberPattern>
23889         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
23890         <exampleNumber>22123</exampleNumber>
23891       </fixedLine>
23892       <mobile>
23893         <nationalNumberPattern>
23894           (?:
23895             60|
23896             7[25-7]\d
23897           )\d{4}
23898         </nationalNumberPattern>
23899         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
23900         <exampleNumber>601234</exampleNumber>
23901       </mobile>
23902       <tollFree>
23903         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
23904              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
23905              for now, so may be also used for other purposes than toll free, but until we have
23906              further evidence of these we will keep it as toll free. -->
23907         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
23908         <possibleNumberPattern>\d{6}</possibleNumberPattern>
23909         <exampleNumber>800123</exampleNumber>
23910       </tollFree>
23911       <!-- Current research suggests other types of numbers are not used in Samoa. -->
23912     </territory>
23913
23914     <!-- Yemen -->
23915     <territory id="YE" countryCode="967" internationalPrefix="00"
23916                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
23917       <references>
23918         <sourceUrl>http://www.itu.int/oth/T02020000E7/en</sourceUrl>
23919       </references>
23920       <availableFormats>
23921         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
23922           <leadingDigits>
23923             [1-6]|
23924             7[24-68]
23925           </leadingDigits>
23926           <format>$1 $2 $3</format>
23927         </numberFormat>
23928         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
23929           <leadingDigits>7[0137]</leadingDigits>
23930           <format>$1 $2 $3</format>
23931         </numberFormat>
23932       </availableFormats>
23933       <generalDesc>
23934         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
23935         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
23936       </generalDesc>
23937       <fixedLine>
23938         <nationalNumberPattern>
23939           (?:
23940             1(?:
23941               7\d|
23942               [2-68]
23943             )|
23944             2[2-68]|
23945             3[2358]|
23946             4[2-58]|
23947             5[2-6]|
23948             6[3-58]|
23949             7[24-68]
23950           )\d{5}
23951         </nationalNumberPattern>
23952         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
23953         <exampleNumber>1234567</exampleNumber>
23954       </fixedLine>
23955       <mobile>
23956         <!-- Adding 70 from numbers found online. -->
23957         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
23958         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23959         <exampleNumber>712345678</exampleNumber>
23960       </mobile>
23961       <!-- No tollFree or premiumRate information can be found. -->
23962     </territory>
23963
23964     <!-- Mayotte -->
23965     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
23966                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
23967       <references>
23968         <!-- Some information at the following source, but most from collection of internet data.
23969              -->
23970         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_France</sourceUrl>
23971         <!-- Verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
23972              -->
23973         <sourceUrl>http://www.comores-online.com/mwezinet/internet/262</sourceUrl>
23974       </references>
23975       <!-- Formatting as per La Réunion. -->
23976       <generalDesc>
23977         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
23978         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23979       </generalDesc>
23980       <fixedLine>
23981         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
23982         <exampleNumber>269601234</exampleNumber>
23983       </fixedLine>
23984       <mobile>
23985         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
23986         <exampleNumber>639123456</exampleNumber>
23987       </mobile>
23988       <!-- Same as in France. -->
23989       <tollFree>
23990         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
23991         <exampleNumber>801234567</exampleNumber>
23992       </tollFree>
23993     </territory>
23994
23995     <!-- South Africa -->
23996     <territory id="ZA" countryCode="27" internationalPrefix="00"
23997                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
23998                mobileNumberPortableRegion="true">
23999       <references>
24000         <sourceUrl>http://www.itu.int/oth/T02020000C1/en</sourceUrl>
24001         <sourceUrl>http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa</sourceUrl>
24002       </references>
24003       <availableFormats>
24004         <numberFormat pattern="(860)(\d{3})(\d{3})">
24005           <leadingDigits>860</leadingDigits>
24006           <format>$1 $2 $3</format>
24007         </numberFormat>
24008         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
24009           <leadingDigits>
24010             [1-79]|
24011             8(?:
24012               [0-47]|
24013               6[1-9]
24014             )
24015           </leadingDigits>
24016           <format>$1 $2 $3</format>
24017         </numberFormat>
24018         <numberFormat pattern="(\d{2})(\d{3,4})">
24019           <leadingDigits>8[1-4]</leadingDigits>
24020           <format>$1 $2</format>
24021         </numberFormat>
24022         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
24023           <leadingDigits>8[1-4]</leadingDigits>
24024           <format>$1 $2 $3</format>
24025         </numberFormat>
24026       </availableFormats>
24027       <generalDesc>
24028         <nationalNumberPattern>
24029           [1-79]\d{8}|
24030           8(?:
24031             [067]\d{7}|
24032             [1-4]\d{3,7}
24033           )
24034         </nationalNumberPattern>
24035         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
24036       </generalDesc>
24037       <fixedLine>
24038         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
24039              used in 1996. -->
24040         <nationalNumberPattern>
24041           (?:
24042             1[0-8]|
24043             2[0-378]|
24044             3[1-69]|
24045             4\d|
24046             5[1346-8]
24047           )\d{7}
24048         </nationalNumberPattern>
24049         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24050         <exampleNumber>101234567</exampleNumber>
24051       </fixedLine>
24052       <mobile>
24053         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
24054              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
24055              in prominent places online, even though the ITU document says numbers must be 10 digits
24056              long (including the national prefix). -->
24057         <nationalNumberPattern>
24058           (?:
24059             6[0-5]|
24060             7[0-46-9]
24061           )\d{7}|
24062           8[1-4]\d{3,7}
24063         </nationalNumberPattern>
24064         <exampleNumber>711234567</exampleNumber>
24065       </mobile>
24066       <tollFree>
24067         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
24068         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24069         <exampleNumber>801234567</exampleNumber>
24070       </tollFree>
24071       <premiumRate>
24072         <nationalNumberPattern>
24073           86[2-9]\d{6}|
24074           90\d{7}
24075         </nationalNumberPattern>
24076         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24077         <exampleNumber>862345678</exampleNumber>
24078       </premiumRate>
24079       <sharedCost>
24080         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
24081         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24082         <exampleNumber>860123456</exampleNumber>
24083       </sharedCost>
24084       <voip>
24085         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
24086         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24087         <exampleNumber>871234567</exampleNumber>
24088       </voip>
24089       <uan>
24090         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
24091              numbers. -->
24092         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
24093         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24094         <exampleNumber>861123456</exampleNumber>
24095       </uan>
24096     </territory>
24097
24098     <!-- Zambia -->
24099     <territory id="ZM" countryCode="260" internationalPrefix="00"
24100                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24101       <references>
24102         <sourceUrl>http://www.itu.int/oth/T02020000E8/en</sourceUrl>
24103       </references>
24104       <availableFormats>
24105         <numberFormat pattern="([29]\d)(\d{7})">
24106           <leadingDigits>[29]</leadingDigits>
24107           <format>$1 $2</format>
24108         </numberFormat>
24109         <numberFormat pattern="(800)(\d{3})(\d{3})">
24110           <leadingDigits>8</leadingDigits>
24111           <format>$1 $2 $3</format>
24112         </numberFormat>
24113       </availableFormats>
24114       <generalDesc>
24115         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
24116         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24117       </generalDesc>
24118       <fixedLine>
24119         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
24120         <exampleNumber>211234567</exampleNumber>
24121       </fixedLine>
24122       <mobile>
24123         <!-- Adding extra prefixes 50 and 6[1-57-9] since SMS messages have been successfully
24124              delivered to these numbers, and numbers like this can be found on the Internet. Adding
24125              prefix 960 based on information received from MTN Zambia. The 97 range has been
24126              expanded based on their IR21 document, which states the range 97[1-9] is used. -->
24127         <nationalNumberPattern>
24128           9(?:
24129             5[05]|
24130             6\d|
24131             7[1-9]
24132           )\d{6}
24133         </nationalNumberPattern>
24134         <exampleNumber>955123456</exampleNumber>
24135       </mobile>
24136       <tollFree>
24137         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
24138         <exampleNumber>800123456</exampleNumber>
24139       </tollFree>
24140     </territory>
24141
24142     <!-- Zimbabwe -->
24143     <territory id="ZW" countryCode="263" internationalPrefix="00"
24144                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24145       <references>
24146         <sourceUrl>http://www.itu.int/oth/T02020000E9/en</sourceUrl>
24147       </references>
24148       <availableFormats>
24149         <!-- One-digit area codes -->
24150         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
24151           <leadingDigits>
24152             4|
24153             9[2-9]
24154           </leadingDigits>
24155           <format>$1 $2 $3</format>
24156         </numberFormat>
24157         <!-- Mobile numbers -->
24158         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
24159           <leadingDigits>
24160             [19]1|
24161             7
24162           </leadingDigits>
24163           <format>$1 $2 $3</format>
24164         </numberFormat>
24165         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
24166           <leadingDigits>86[24]</leadingDigits>
24167           <format>$1 $2 $3</format>
24168         </numberFormat>
24169         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
24170         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
24171           <leadingDigits>
24172             2(?:
24173               [278]|
24174               0[45]|
24175               [49]8
24176             )|
24177             3(?:
24178               08|
24179               17|
24180               3[78]|
24181               [78]
24182             )|
24183             5[15][78]|
24184             6(?:
24185               [29]8|
24186               37|
24187               [68][78]
24188             )
24189           </leadingDigits>
24190           <format>$1 $2</format>
24191         </numberFormat>
24192         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
24193           <leadingDigits>
24194             2(?:
24195               [278]|
24196               0[45]|
24197               48
24198             )|
24199             3(?:
24200               08|
24201               17|
24202               3[78]|
24203               [78]
24204             )|
24205             5[15][78]|
24206             6(?:
24207               [29]8|
24208               37|
24209               [68][78]
24210             )|
24211             80
24212           </leadingDigits>
24213           <format>$1 $2 $3</format>
24214         </numberFormat>
24215         <!-- Two-digit area codes -->
24216         <numberFormat pattern="([1-356]\d)(\d{3,5})">
24217           <leadingDigits>
24218             1[3-9]|
24219             2(?:
24220               [1-469]|
24221               0[0-35-9]|
24222               [45][0-79]
24223             )|
24224             3(?:
24225               0[0-79]|
24226               1[0-689]|
24227               [24-69]|
24228               3[0-69]
24229             )|
24230             5(?:
24231               [02-46-9]|
24232               [15][0-69]
24233             )|
24234             6(?:
24235               [0145]|
24236               [29][0-79]|
24237               3[0-689]|
24238               [68][0-69]
24239             )
24240           </leadingDigits>
24241           <format>$1 $2</format>
24242         </numberFormat>
24243         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
24244           <leadingDigits>
24245             1[3-9]|
24246             2(?:
24247               [1-469]|
24248               0[0-35-9]|
24249               [45][0-79]
24250             )|
24251             3(?:
24252               0[0-79]|
24253               1[0-689]|
24254               [24-69]|
24255               3[0-69]
24256             )|
24257             5(?:
24258               [02-46-9]|
24259               [15][0-69]
24260             )|
24261             6(?:
24262               [0145]|
24263               [29][0-79]|
24264               3[0-689]|
24265               [68][0-69]
24266             )
24267           </leadingDigits>
24268           <format>$1 $2 $3</format>
24269         </numberFormat>
24270         <!-- Four-digit area codes -->
24271         <numberFormat pattern="([25]\d{3})(\d{3,5})">
24272           <leadingDigits>
24273             (?:
24274               25|
24275               54
24276             )8
24277           </leadingDigits>
24278           <leadingDigits>
24279             258[23]|
24280             5483
24281           </leadingDigits>
24282           <format>$1 $2</format>
24283         </numberFormat>
24284         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
24285           <leadingDigits>
24286             (?:
24287               25|
24288               54
24289             )8
24290           </leadingDigits>
24291           <leadingDigits>
24292             258[23]|
24293             5483
24294           </leadingDigits>
24295           <format>$1 $2 $3</format>
24296         </numberFormat>
24297         <!-- VOIP numbers -->
24298         <numberFormat pattern="(8\d{3})(\d{6})">
24299           <leadingDigits>86</leadingDigits>
24300           <format>$1 $2</format>
24301         </numberFormat>
24302       </availableFormats>
24303       <generalDesc>
24304         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
24305              variable in length and the possible prefixes clash with the country code. -->
24306         <nationalNumberPattern>
24307           2(?:
24308             [012457-9]\d{3,8}|
24309             6\d{3,6}
24310           )|
24311           [13-79]\d{4,8}|
24312           8[06]\d{8}
24313         </nationalNumberPattern>
24314         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
24315       </generalDesc>
24316       <fixedLine>
24317         <!-- Numbering is grouped by subscriber-number length. -->
24318         <nationalNumberPattern>
24319           (?:
24320             1[3-9]|
24321             2(?:
24322               0[45]|
24323               [16]|
24324               2[28]|
24325               [49]8?|
24326               58[23]|
24327               7[246]|
24328               8[1346-9]
24329             )|
24330             3(?:
24331               08?|
24332               17?|
24333               3[78]|
24334               [2456]|
24335               7[1569]|
24336               8[379]
24337             )|
24338             5(?:
24339               [07-9]|
24340               1[78]|
24341               483|
24342               5(?:
24343                 7?|
24344                 8
24345               )
24346             )|
24347             6(?:
24348               0|
24349               28|
24350               37?|
24351               [45][68][78]|
24352               98?
24353             )|
24354             848
24355           )\d{3,6}|
24356           (?:
24357             2(?:
24358               27|
24359               5|
24360               7[135789]|
24361               8[25]
24362             )|
24363             3[39]|
24364             5[1-46]|
24365             6[126-8]
24366           )\d{4,6}|
24367           2(?:
24368             (?:
24369               0|
24370               70
24371             )\d{5,6}|
24372             2[05]\d{7}
24373           )|
24374           (?:
24375             4\d|
24376             9[2-8]
24377           )\d{4,7}
24378         </nationalNumberPattern>
24379         <exampleNumber>1312345</exampleNumber>
24380       </fixedLine>
24381       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
24382            also being used by the carriers as mobile prefixes. -->
24383       <mobile>
24384         <nationalNumberPattern>
24385           7[1378]\d{7}|
24386           86(?:
24387             22|
24388             44
24389           )\d{6}
24390         </nationalNumberPattern>
24391         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24392         <exampleNumber>711234567</exampleNumber>
24393       </mobile>
24394       <tollFree>
24395         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
24396         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24397         <exampleNumber>8001234567</exampleNumber>
24398       </tollFree>
24399       <!-- No premiumRate information can be found. -->
24400       <voip>
24401         <nationalNumberPattern>
24402           86(?:
24403             1[12]|
24404             30|
24405             55|
24406             77|
24407             8[367]|
24408             99
24409           )\d{6}
24410         </nationalNumberPattern>
24411         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24412         <exampleNumber>8686123456</exampleNumber>
24413       </voip>
24414     </territory>
24415
24416     <!-- Universal International Toll Free Number -->
24417     <territory id="001" countryCode="800" leadingZeroPossible="true">
24418       <references>
24419         <sourceUrl>http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx</sourceUrl>
24420       </references>
24421       <availableFormats>
24422         <numberFormat pattern="(\d{4})(\d{4})">
24423           <format>$1 $2</format>
24424         </numberFormat>
24425       </availableFormats>
24426       <generalDesc>
24427         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24428         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24429         <exampleNumber>12345678</exampleNumber>
24430       </generalDesc>
24431       <fixedLine>
24432         <nationalNumberPattern>NA</nationalNumberPattern>
24433         <possibleNumberPattern>NA</possibleNumberPattern>
24434       </fixedLine>
24435       <mobile>
24436         <nationalNumberPattern>NA</nationalNumberPattern>
24437         <possibleNumberPattern>NA</possibleNumberPattern>
24438       </mobile>
24439       <tollFree>
24440         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24441       </tollFree>
24442     </territory>
24443
24444     <!-- Universal International Shared Cost Number -->
24445     <territory id="001" countryCode="808" leadingZeroPossible="true">
24446       <references>
24447         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24448       </references>
24449       <availableFormats>
24450         <numberFormat pattern="(\d{4})(\d{4})">
24451           <format>$1 $2</format>
24452         </numberFormat>
24453       </availableFormats>
24454       <generalDesc>
24455         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24456         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24457         <exampleNumber>12345678</exampleNumber>
24458       </generalDesc>
24459       <fixedLine>
24460         <nationalNumberPattern>NA</nationalNumberPattern>
24461         <possibleNumberPattern>NA</possibleNumberPattern>
24462       </fixedLine>
24463       <mobile>
24464         <nationalNumberPattern>NA</nationalNumberPattern>
24465         <possibleNumberPattern>NA</possibleNumberPattern>
24466       </mobile>
24467       <sharedCost>
24468         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24469       </sharedCost>
24470     </territory>
24471
24472     <!-- Inmarsat Global Limited -->
24473     <territory id="001" countryCode="870">
24474       <references>
24475         <sourceUrl>http://www.itu.int/oth/T0202000065/en</sourceUrl>
24476         <sourceUrl>http://www.inmarsat.com</sourceUrl>
24477       </references>
24478       <availableFormats>
24479         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24480           <format>$1 $2 $3</format>
24481         </numberFormat>
24482       </availableFormats>
24483       <generalDesc>
24484         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
24485         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24486         <exampleNumber>301234567</exampleNumber>
24487       </generalDesc>
24488       <fixedLine>
24489         <nationalNumberPattern>NA</nationalNumberPattern>
24490         <possibleNumberPattern>NA</possibleNumberPattern>
24491       </fixedLine>
24492       <mobile>
24493         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
24494         <nationalNumberPattern>
24495           (?:
24496             [356]\d|
24497             7[6-8]
24498           )\d{7}
24499         </nationalNumberPattern>
24500       </mobile>
24501     </territory>
24502
24503     <!-- VISIONng -->
24504     <!-- Number length has been derived from examples found online. -->
24505     <territory id="001" countryCode="878">
24506       <references>
24507         <sourceUrl>http://www.itu.int/oth/T02020000E5/en</sourceUrl>
24508       </references>
24509       <availableFormats>
24510         <!-- Formatting chosen based on online examples. -->
24511         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
24512           <format>$1 $2 $3</format>
24513         </numberFormat>
24514       </availableFormats>
24515       <generalDesc>
24516         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
24517         <possibleNumberPattern>\d{12}</possibleNumberPattern>
24518         <exampleNumber>101234567890</exampleNumber>
24519       </generalDesc>
24520       <fixedLine>
24521         <nationalNumberPattern>NA</nationalNumberPattern>
24522         <possibleNumberPattern>NA</possibleNumberPattern>
24523       </fixedLine>
24524       <mobile>
24525         <nationalNumberPattern>NA</nationalNumberPattern>
24526         <possibleNumberPattern>NA</possibleNumberPattern>
24527       </mobile>
24528       <voip>
24529         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
24530       </voip>
24531     </territory>
24532
24533     <!-- Iridium -->
24534     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
24535          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
24536          are. For this reason, we only support Iridium numbers at the moment. -->
24537     <territory id="001" countryCode="881">
24538       <references>
24539         <sourceUrl>http://www.iridium.com</sourceUrl>
24540         <sourceUrl>http://www.itu.int/oth/T0202000069/en</sourceUrl>
24541       </references>
24542       <availableFormats>
24543         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
24544         <numberFormat pattern="(\d)(\d{3})(\d{5})">
24545           <leadingDigits>[67]</leadingDigits>
24546           <format>$1 $2 $3</format>
24547         </numberFormat>
24548       </availableFormats>
24549       <generalDesc>
24550         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24551         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24552         <exampleNumber>612345678</exampleNumber>
24553       </generalDesc>
24554       <fixedLine>
24555         <nationalNumberPattern>NA</nationalNumberPattern>
24556         <possibleNumberPattern>NA</possibleNumberPattern>
24557       </fixedLine>
24558       <mobile>
24559         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
24560       </mobile>
24561     </territory>
24562
24563     <territory id="001" countryCode="882">
24564       <references>
24565         <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
24566         <sourceUrl>http://www.itu.int/oth/T0202000054/en</sourceUrl>
24567         <sourceUrl>http://www.gsm.aq/numberplan.php</sourceUrl>
24568         <sourceUrl>http://www.global.aq</sourceUrl>
24569         <!-- Maritime Communications Partner (MCP) +88232 -->
24570         <sourceUrl>http://www.itu.int/oth/T02020000F4/en</sourceUrl>
24571         <!-- Oration Technologies +88237 -->
24572         <sourceUrl>http://www.itu.int/oth/T02020000A0/en</sourceUrl>
24573         <!-- Telespazio S.p.A. +88213 -->
24574         <sourceUrl>http://www.itu.int/oth/T02020000CC/en</sourceUrl>
24575         <!-- Thuraya +88216 -->
24576         <sourceUrl>http://www.itu.int/oth/T02020000CF/en</sourceUrl>
24577       </references>
24578       <availableFormats>
24579         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
24580           <leadingDigits>3[23]</leadingDigits>
24581           <format>$1 $2 $3</format>
24582         </numberFormat>
24583         <numberFormat pattern="(\d{2})(\d{5})">
24584           <leadingDigits>
24585             16|
24586             342
24587           </leadingDigits>
24588           <format>$1 $2</format>
24589         </numberFormat>
24590         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
24591           <leadingDigits>34[57]</leadingDigits>
24592           <format>$1 $2 $3</format>
24593         </numberFormat>
24594         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
24595           <leadingDigits>348</leadingDigits>
24596           <format>$1 $2 $3</format>
24597         </numberFormat>
24598         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
24599           <leadingDigits>1</leadingDigits>
24600           <format>$1 $2 $3</format>
24601         </numberFormat>
24602         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
24603           <leadingDigits>16</leadingDigits>
24604           <format>$1 $2 $3</format>
24605         </numberFormat>
24606         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
24607           <leadingDigits>16</leadingDigits>
24608           <format>$1 $2 $3</format>
24609         </numberFormat>
24610       </availableFormats>
24611       <generalDesc>
24612         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
24613         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24614         <exampleNumber>3451234567</exampleNumber>
24615       </generalDesc>
24616       <fixedLine>
24617         <nationalNumberPattern>NA</nationalNumberPattern>
24618         <possibleNumberPattern>NA</possibleNumberPattern>
24619       </fixedLine>
24620       <mobile>
24621         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
24622              Oration based on numbers found online. -->
24623         <nationalNumberPattern>
24624           3(?:
24625             2\d{3}|
24626             37\d{2}|
24627             4(?:
24628               2|
24629               7\d{3}
24630             )
24631           )\d{4}
24632         </nationalNumberPattern>
24633         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
24634       </mobile>
24635       <voip>
24636         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
24637         <nationalNumberPattern>
24638           1(?:
24639             3(?:
24640               0[0347]|
24641               [13][0139]|
24642               2[035]|
24643               4[013568]|
24644               6[0459]|
24645               7[06]|
24646               8[15678]|
24647               9[0689]
24648             )\d{4}|
24649             6\d{5,10}
24650           )|
24651           345\d{7}
24652         </nationalNumberPattern>
24653         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
24654       </voip>
24655       <voicemail>
24656         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
24657         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24658       </voicemail>
24659     </territory>
24660
24661     <territory id="001" countryCode="883">
24662       <references>
24663         <!-- bandwidth.com -->
24664         <sourceUrl>http://www.itu.int/oth/T02020000FB/en</sourceUrl>
24665         <!-- SipMe -->
24666         <sourceUrl>http://www.itu.int/oth/T02020000FC/en</sourceUrl>
24667         <!-- Voxbone -->
24668         <sourceUrl>http://www.itu.int/oth/T02020000F3/en</sourceUrl>
24669       </references>
24670       <availableFormats>
24671         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
24672           <leadingDigits>510</leadingDigits>
24673           <format>$1 $2 $3</format>
24674         </numberFormat>
24675         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
24676           <leadingDigits>510</leadingDigits>
24677           <format>$1 $2 $3 $4</format>
24678         </numberFormat>
24679         <!-- When only 8 digits follow the "area code" formatting as XXXX XXXX
24680              seems preferred (see Bandwidth.com and SipMe). -->
24681         <numberFormat pattern="(\d{4})(\d{4})(\d{4})">
24682           <leadingDigits>51[13]</leadingDigits>
24683           <format>$1 $2 $3</format>
24684         </numberFormat>
24685       </availableFormats>
24686       <generalDesc>
24687         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
24688              costs can be found online, so we don't include them here for now. -->
24689         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
24690         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
24691         <exampleNumber>510012345</exampleNumber>
24692       </generalDesc>
24693       <fixedLine>
24694         <nationalNumberPattern>NA</nationalNumberPattern>
24695         <possibleNumberPattern>NA</possibleNumberPattern>
24696       </fixedLine>
24697       <mobile>
24698         <nationalNumberPattern>NA</nationalNumberPattern>
24699         <possibleNumberPattern>NA</possibleNumberPattern>
24700       </mobile>
24701       <voip>
24702         <nationalNumberPattern>
24703           51(?:
24704             00\d{5}(?:\d{3})?|
24705             [13]0\d{8}
24706           )
24707         </nationalNumberPattern>
24708       </voip>
24709     </territory>
24710
24711     <!-- United Nations- OCHA -->
24712     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
24713          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
24714          the tariff of a national call. -->
24715     <territory id="001" countryCode="888" leadingZeroPossible="true">
24716       <references>
24717         <sourceUrl>http://www.itu.int/oth/T02020000FA/en</sourceUrl>
24718       </references>
24719       <availableFormats>
24720         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
24721           <format>$1 $2 $3</format>
24722         </numberFormat>
24723       </availableFormats>
24724       <generalDesc>
24725         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24726         <possibleNumberPattern>\d{11}</possibleNumberPattern>
24727         <exampleNumber>12345678901</exampleNumber>
24728       </generalDesc>
24729       <fixedLine>
24730         <nationalNumberPattern>NA</nationalNumberPattern>
24731         <possibleNumberPattern>NA</possibleNumberPattern>
24732       </fixedLine>
24733       <mobile>
24734         <nationalNumberPattern>NA</nationalNumberPattern>
24735         <possibleNumberPattern>NA</possibleNumberPattern>
24736       </mobile>
24737       <uan>
24738         <nationalNumberPattern>\d{11}</nationalNumberPattern>
24739       </uan>
24740     </territory>
24741
24742     <!-- Universal International Premium Rate Number -->
24743     <territory id="001" countryCode="979" leadingZeroPossible="true">
24744       <references>
24745         <sourceUrl>http://www.itu.int/rec/T-REC-E.169-200205-I/en</sourceUrl>
24746       </references>
24747       <availableFormats>
24748         <numberFormat pattern="(\d)(\d{4})(\d{4})">
24749           <format>$1 $2 $3</format>
24750         </numberFormat>
24751       </availableFormats>
24752       <generalDesc>
24753         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24754         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24755         <exampleNumber>123456789</exampleNumber>
24756       </generalDesc>
24757       <fixedLine>
24758         <nationalNumberPattern>NA</nationalNumberPattern>
24759         <possibleNumberPattern>NA</possibleNumberPattern>
24760       </fixedLine>
24761       <mobile>
24762         <nationalNumberPattern>NA</nationalNumberPattern>
24763         <possibleNumberPattern>NA</possibleNumberPattern>
24764       </mobile>
24765       <premiumRate>
24766         <nationalNumberPattern>\d{9}</nationalNumberPattern>
24767       </premiumRate>
24768     </territory>
24769   </territories>
24770 </phoneNumberMetadata>