JAVA/JS/CPP: libphonenumber v5.6.2 metadata updates.
[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      @author: Lara Rennie
17
18      Metadata on Phone Number Plan and formatting rules
19      Note: Territories are in alphabetical order by their IDs, which are based on ISO 3166-1
20            two-letter country codes (or are set to "001" for non-geographical entities, which
21            represents "World" in the UN M.49 standard). The country names in the comments are the
22            official short names in English according to ISO 3166-1.
23
24      For more information on what each element represents, see
25      resources/phonemetadata.proto
26
27      Note that if you want to add validation metadata, the generalDesc nationalNumberPattern and
28      possibleNumberPattern must be provided. If this is missing, then the country will be
29      considered to have no more specific phone-number type metadata (fixedLine, mobile etc) and
30      hence only basic validation rules (numbers should be between 3 and 15 digits long) will be
31      applied.
32
33      If adding an element for a non-geographical entity, please add an example number element to the
34      general description.
35
36      Country code, international and national prefix information main source:
37      http://www.itu.int/pub/T-SP-E.164C-2011
38
39      Emergency numbers Wikipedia source:
40      http://en.wikipedia.org/wiki/Emergency_telephone_number
41 -->
42
43 <!DOCTYPE phoneNumberMetadata [
44     <!ELEMENT phoneNumberMetadata (territories)>
45     <!ELEMENT territories (territory+)>
46     <!ELEMENT territory (availableFormats?, generalDesc?, noInternationalDialling?,
47         areaCodeOptional?, fixedLine?, mobile?, pager?, tollFree?, premiumRate?,
48         sharedCost?, personalNumber?, voip?, uan?, voicemail?, emergency?)>
49     <!ELEMENT generalDesc (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
50     <!ELEMENT noInternationalDialling (nationalNumberPattern, possibleNumberPattern?,
51         exampleNumber?)>
52     <!ELEMENT areaCodeOptional (nationalNumberPattern, possibleNumberPattern, exampleNumber?)>
53     <!ELEMENT fixedLine (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
54     <!ELEMENT mobile (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
55     <!ELEMENT pager (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
56     <!ELEMENT tollFree (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
57     <!ELEMENT premiumRate (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
58     <!ELEMENT sharedCost (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
59     <!ELEMENT personalNumber (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
60     <!ELEMENT voip (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
61     <!ELEMENT uan (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
62     <!ELEMENT voicemail (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
63     <!ELEMENT emergency (nationalNumberPattern?, possibleNumberPattern?, exampleNumber?)>
64     <!ELEMENT availableFormats (numberFormat+)>
65     <!ELEMENT nationalNumberPattern (#PCDATA)>
66     <!ELEMENT possibleNumberPattern (#PCDATA)>
67     <!ELEMENT exampleNumber (#PCDATA)>
68     <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)>
69     <!ELEMENT format (#PCDATA)>
70     <!ELEMENT intlFormat (#PCDATA)>
71     <!ELEMENT leadingDigits (#PCDATA)>
72
73     <!ATTLIST territory id CDATA #REQUIRED>
74     <!ATTLIST territory countryCode CDATA #REQUIRED>
75     <!ATTLIST territory mainCountryForCode (true) #IMPLIED>
76     <!ATTLIST territory leadingDigits CDATA #IMPLIED>
77     <!ATTLIST territory preferredInternationalPrefix CDATA #IMPLIED>
78     <!ATTLIST territory internationalPrefix CDATA #IMPLIED>
79     <!ATTLIST territory nationalPrefix CDATA #IMPLIED>
80     <!ATTLIST territory nationalPrefixForParsing CDATA #IMPLIED>
81     <!ATTLIST territory nationalPrefixTransformRule CDATA #IMPLIED>
82     <!ATTLIST territory preferredExtnPrefix CDATA #IMPLIED>
83     <!ATTLIST territory nationalPrefixFormattingRule CDATA #IMPLIED>
84     <!ATTLIST territory nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
85     <!ATTLIST territory leadingZeroPossible (true) #IMPLIED>
86     <!ATTLIST territory carrierCodeFormattingRule CDATA #IMPLIED>
87     <!ATTLIST numberFormat nationalPrefixFormattingRule CDATA #IMPLIED>
88     <!ATTLIST numberFormat nationalPrefixOptionalWhenFormatting (true) #IMPLIED>
89     <!ATTLIST numberFormat carrierCodeFormattingRule CDATA #IMPLIED>
90     <!ATTLIST numberFormat pattern CDATA #REQUIRED>
91 ]>
92
93 <phoneNumberMetadata>
94   <territories>
95     <!-- Ascension Island -->
96     <!-- www.itu.int/oth/T02020000AF -->
97     <territory id="AC" countryCode="247" internationalPrefix="00">
98       <!-- Formatted as a block. -->
99       <generalDesc>
100         <nationalNumberPattern>[2-467]\d{3}</nationalNumberPattern>
101         <possibleNumberPattern>\d{4}</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>NA</nationalNumberPattern>
116         <possibleNumberPattern>NA</possibleNumberPattern>
117       </mobile>
118       <emergency>
119         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf
120              http://www.noonsite.com/Countries/AscensionIsland/?rc=GeneralInfo
121              Note the 4-digit emergency numbers fit the fixed-line pattern, therefore are not
122              included. This is consistent with how we handle such numbers in other countries. -->
123         <nationalNumberPattern>911</nationalNumberPattern>
124         <possibleNumberPattern>\d{3}</possibleNumberPattern>
125         <exampleNumber>911</exampleNumber>
126       </emergency>
127     </territory>
128
129     <!-- Andorra -->
130     <!-- http://www.itu.int/oth/T0202000005/en -->
131     <territory id="AD" countryCode="376" internationalPrefix="00">
132       <availableFormats>
133         <numberFormat pattern="(\d{3})(\d{3})">
134           <leadingDigits>[346-9]</leadingDigits>
135           <format>$1 $2</format>
136         </numberFormat>
137         <numberFormat pattern="(180[02])(\d{4})">
138           <leadingDigits>1</leadingDigits>
139           <format>$1 $2</format>
140         </numberFormat>
141       </availableFormats>
142       <generalDesc>
143         <nationalNumberPattern>
144           (?:
145             [346-9]|
146             180
147           )\d{5}
148         </nationalNumberPattern>
149         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
150       </generalDesc>
151       <fixedLine>
152         <nationalNumberPattern>[78]\d{5}</nationalNumberPattern>
153         <possibleNumberPattern>\d{6}</possibleNumberPattern>
154         <exampleNumber>712345</exampleNumber>
155       </fixedLine>
156       <mobile>
157         <nationalNumberPattern>[346]\d{5}</nationalNumberPattern>
158         <possibleNumberPattern>\d{6}</possibleNumberPattern>
159         <exampleNumber>312345</exampleNumber>
160       </mobile>
161       <tollFree>
162         <!-- Note that the definitions of 1800 and 1802 numbers differ in the plan and on the
163              Andorran www.sta.ad website, but we consider both to be freephone here. -->
164         <nationalNumberPattern>180[02]\d{4}</nationalNumberPattern>
165         <possibleNumberPattern>\d{8}</possibleNumberPattern>
166         <exampleNumber>18001234</exampleNumber>
167       </tollFree>
168       <!-- The national numbering plan says that numbers beginning with 9 are reserved for special
169            services, so we assume they are premium rate here, although we cannot find examples
170            online. -->
171       <premiumRate>
172         <nationalNumberPattern>9\d{5}</nationalNumberPattern>
173         <possibleNumberPattern>\d{6}</possibleNumberPattern>
174         <exampleNumber>912345</exampleNumber>
175       </premiumRate>
176       <emergency>
177       <!-- http://www.fco.gov.uk/en/travel-and-living-abroad/travel-advice-by-country/europe/andorra
178            -->
179         <nationalNumberPattern>11[0268]</nationalNumberPattern>
180         <possibleNumberPattern>\d{3}</possibleNumberPattern>
181         <exampleNumber>112</exampleNumber>
182       </emergency>
183     </territory>
184
185     <!--  United Arab Emirates -->
186     <!-- http://www.itu.int/oth/T02020000DC/en -->
187     <territory id="AE" countryCode="971" internationalPrefix="00"
188                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
189       <availableFormats>
190         <numberFormat pattern="([2-4679])(\d{3})(\d{4})">
191           <leadingDigits>[2-4679][2-8]</leadingDigits>
192           <format>$1 $2 $3</format>
193         </numberFormat>
194         <numberFormat pattern="(5[0256])(\d{3})(\d{4})">
195           <leadingDigits>5</leadingDigits>
196           <format>$1 $2 $3</format>
197         </numberFormat>
198         <numberFormat pattern="([479]00)(\d)(\d{5})" nationalPrefixFormattingRule="$FG">
199           <leadingDigits>[479]0</leadingDigits>
200           <format>$1 $2 $3</format>
201         </numberFormat>
202         <numberFormat pattern="([68]00)(\d{2,9})" nationalPrefixFormattingRule="$FG">
203           <leadingDigits>
204             60|
205             8
206           </leadingDigits>
207           <format>$1 $2</format>
208         </numberFormat>
209       </availableFormats>
210       <generalDesc>
211         <nationalNumberPattern>
212           [2-79]\d{7,8}|
213           800\d{2,9}
214         </nationalNumberPattern>
215         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
216       </generalDesc>
217       <fixedLine>
218         <nationalNumberPattern>[2-4679][2-8]\d{6}</nationalNumberPattern>
219         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
220         <exampleNumber>22345678</exampleNumber>
221       </fixedLine>
222       <mobile>
223         <nationalNumberPattern>5[0256]\d{7}</nationalNumberPattern>
224         <possibleNumberPattern>\d{9}</possibleNumberPattern>
225         <exampleNumber>501234567</exampleNumber>
226       </mobile>
227       <tollFree>
228         <nationalNumberPattern>
229           400\d{6}|
230           800\d{2,9}
231         </nationalNumberPattern>
232         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
233         <exampleNumber>800123456</exampleNumber>
234       </tollFree>
235       <premiumRate>
236         <nationalNumberPattern>900[02]\d{5}</nationalNumberPattern>
237         <possibleNumberPattern>\d{9}</possibleNumberPattern>
238         <exampleNumber>900234567</exampleNumber>
239       </premiumRate>
240       <sharedCost>
241         <nationalNumberPattern>700[05]\d{5}</nationalNumberPattern>
242         <possibleNumberPattern>\d{9}</possibleNumberPattern>
243         <exampleNumber>700012345</exampleNumber>
244       </sharedCost>
245       <uan>
246         <nationalNumberPattern>600[25]\d{5}</nationalNumberPattern>
247         <possibleNumberPattern>\d{9}</possibleNumberPattern>
248         <exampleNumber>600212345</exampleNumber>
249       </uan>
250       <emergency>
251         <nationalNumberPattern>
252           112|
253           99[789]
254         </nationalNumberPattern>
255         <possibleNumberPattern>\d{3}</possibleNumberPattern>
256         <exampleNumber>112</exampleNumber>
257       </emergency>
258     </territory>
259
260     <!-- Afghanistan -->
261     <!-- http://www.itu.int/oth/T0202000001/en -->
262     <territory id="AF" countryCode="93" internationalPrefix="00"
263                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
264       <availableFormats>
265         <numberFormat pattern="([2-7]\d)(\d{3})(\d{4})">
266           <format>$1 $2 $3</format>
267         </numberFormat>
268       </availableFormats>
269       <generalDesc>
270         <nationalNumberPattern>[2-7]\d{8}</nationalNumberPattern>
271         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
272       </generalDesc>
273       <fixedLine>
274         <nationalNumberPattern>
275           (?:
276             [25][0-8]|
277             [34][0-4]|
278             6[0-5]
279           )[2-9]\d{6}
280         </nationalNumberPattern>
281         <exampleNumber>234567890</exampleNumber>
282       </fixedLine>
283       <mobile>
284         <nationalNumberPattern>7[057-9]\d{7}</nationalNumberPattern>
285         <possibleNumberPattern>\d{9}</possibleNumberPattern>
286         <exampleNumber>701234567</exampleNumber>
287       </mobile>
288       <emergency>
289         <nationalNumberPattern>
290           1(?:
291             02|
292             19
293           )
294         </nationalNumberPattern>
295         <possibleNumberPattern>\d{3}</possibleNumberPattern>
296         <exampleNumber>119</exampleNumber>
297       </emergency>
298     </territory>
299
300     <!-- Antigua and Barbuda -->
301     <!-- http://www.itu.int/oth/T0202000008/en -->
302     <territory id="AG" countryCode="1" leadingDigits="268" nationalPrefix="1"
303                internationalPrefix="011">
304       <generalDesc>
305         <!-- NANPA country - uses US formatting rules -->
306         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
307         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
308       </generalDesc>
309       <fixedLine>
310         <!-- 268 468 is not in the plan, but has been added after numbers with this prefix have been
311              found in online searches. -->
312         <nationalNumberPattern>
313           268(?:
314             4(?:
315               6[0-38]|
316               84
317             )|
318             56[0-2]
319           )\d{4}
320         </nationalNumberPattern>
321         <exampleNumber>2684601234</exampleNumber>
322       </fixedLine>
323       <mobile>
324         <!-- 268 776/778/779 are not in the plan, but have been added after numbers with these
325              prefixes have been found in online searches. Same for 268 780/782/784/786. -->
326         <nationalNumberPattern>
327           268(?:
328             464|
329             7(?:
330               2[0-9]|
331               64|
332               7[0-689]|
333               8[02-68]
334             )
335           )\d{4}
336         </nationalNumberPattern>
337         <possibleNumberPattern>\d{10}</possibleNumberPattern>
338         <exampleNumber>2684641234</exampleNumber>
339       </mobile>
340       <pager>
341         <nationalNumberPattern>26840[69]\d{4}</nationalNumberPattern>
342         <possibleNumberPattern>\d{10}</possibleNumberPattern>
343         <exampleNumber>2684061234</exampleNumber>
344       </pager>
345       <tollFree>
346         <nationalNumberPattern>
347           8(?:
348             00|
349             55|
350             66|
351             77|
352             88
353           )[2-9]\d{6}
354         </nationalNumberPattern>
355         <possibleNumberPattern>\d{10}</possibleNumberPattern>
356         <exampleNumber>8002123456</exampleNumber>
357       </tollFree>
358       <premiumRate>
359         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
360         <possibleNumberPattern>\d{10}</possibleNumberPattern>
361         <exampleNumber>9002123456</exampleNumber>
362       </premiumRate>
363       <personalNumber>
364         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
365         <nationalNumberPattern>
366           5(?:
367             00|
368             33|
369             44
370           )[2-9]\d{6}
371         </nationalNumberPattern>
372         <possibleNumberPattern>\d{10}</possibleNumberPattern>
373         <exampleNumber>5002345678</exampleNumber>
374       </personalNumber>
375       <voip>
376         <!-- This is included as Centrex in the plan. -->
377         <nationalNumberPattern>26848[01]\d{4}</nationalNumberPattern>
378         <possibleNumberPattern>\d{10}</possibleNumberPattern>
379         <exampleNumber>2684801234</exampleNumber>
380       </voip>
381       <emergency>
382         <!-- http://barbados.usembassy.gov/emergency-antigua_barbuda.html -->
383         <nationalNumberPattern>
384           9(?:
385             11|
386             99
387           )
388         </nationalNumberPattern>
389         <possibleNumberPattern>\d{3}</possibleNumberPattern>
390         <exampleNumber>911</exampleNumber>
391       </emergency>
392     </territory>
393
394     <!-- Anguilla -->
395     <!-- http://www.itu.int/oth/T0202000007/en -->
396     <territory id="AI" countryCode="1" leadingDigits="264" nationalPrefix="1"
397                internationalPrefix="011">
398       <generalDesc>
399         <!-- NANPA country - uses US formatting rules -->
400         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
401         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
402       </generalDesc>
403       <fixedLine>
404         <nationalNumberPattern>
405           2644(?:
406             6[12]|
407             9[78]
408           )\d{4}
409         </nationalNumberPattern>
410         <exampleNumber>2644612345</exampleNumber>
411       </fixedLine>
412       <mobile>
413         <nationalNumberPattern>
414           264(?:
415             235|
416             476|
417             5(?:
418               3[6-9]|
419               8[1-4]
420             )|
421             7(?:
422               29|
423               72
424             )
425           )\d{4}
426         </nationalNumberPattern>
427         <possibleNumberPattern>\d{10}</possibleNumberPattern>
428         <exampleNumber>2642351234</exampleNumber>
429       </mobile>
430       <tollFree>
431         <nationalNumberPattern>
432           8(?:
433             00|
434             55|
435             66|
436             77|
437             88
438           )[2-9]\d{6}
439         </nationalNumberPattern>
440         <possibleNumberPattern>\d{10}</possibleNumberPattern>
441         <exampleNumber>8002123456</exampleNumber>
442       </tollFree>
443       <premiumRate>
444         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
445         <possibleNumberPattern>\d{10}</possibleNumberPattern>
446         <exampleNumber>9002123456</exampleNumber>
447       </premiumRate>
448       <personalNumber>
449         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
450         <nationalNumberPattern>
451           5(?:
452             00|
453             33|
454             44
455           )[2-9]\d{6}
456         </nationalNumberPattern>
457         <possibleNumberPattern>\d{10}</possibleNumberPattern>
458         <exampleNumber>5002345678</exampleNumber>
459       </personalNumber>
460       <emergency>
461         <!-- http://barbados.usembassy.gov/emergency-anguilla.html -->
462         <nationalNumberPattern>911</nationalNumberPattern>
463         <possibleNumberPattern>\d{3}</possibleNumberPattern>
464         <exampleNumber>911</exampleNumber>
465       </emergency>
466     </territory>
467
468     <!-- Albania -->
469     <!-- http://www.itu.int/oth/T0202000002/en -->
470     <territory id="AL" countryCode="355" internationalPrefix="00"
471                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
472       <availableFormats>
473         <!-- Formats mostly follow http://tirana.usembassy.gov/list_of_doctors.html -->
474         <numberFormat pattern="(4)(\d{3})(\d{4})">
475           <leadingDigits>4[0-6]</leadingDigits>
476           <format>$1 $2 $3</format>
477         </numberFormat>
478         <numberFormat pattern="(6[6-9])(\d{3})(\d{4})">
479           <leadingDigits>6</leadingDigits>
480           <format>$1 $2 $3</format>
481         </numberFormat>
482         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
483           <leadingDigits>
484             [2358][2-5]|
485             4[7-9]
486           </leadingDigits>
487           <format>$1 $2 $3</format>
488         </numberFormat>
489         <numberFormat pattern="(\d{3})(\d{3,5})">
490           <leadingDigits>
491             [235][16-9]|
492             8[016-9]|
493             [79]
494           </leadingDigits>
495           <format>$1 $2</format>
496         </numberFormat>
497       </availableFormats>
498       <generalDesc>
499         <nationalNumberPattern>
500           [2-57]\d{7}|
501           6\d{8}|
502           8\d{5,7}|
503           9\d{5}
504         </nationalNumberPattern>
505         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
506       </generalDesc>
507       <fixedLine>
508         <nationalNumberPattern>
509           (?:
510             2(?:
511               [168][1-9]|
512               [247]\d|
513               9[1-7]
514             )|
515             3(?:
516               1[1-3]|
517               [2-6]\d|
518               [79][1-8]|
519               8[1-9]
520             )|
521             4\d{2}|
522             5(?:
523               1[1-4]|
524               [2-578]\d|
525               6[1-5]|
526               9[1-7]
527             )|
528             8(?:
529               [19][1-5]|
530               [2-6]\d|
531               [78][1-7]
532             )
533           )\d{5}
534         </nationalNumberPattern>
535         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
536         <exampleNumber>22345678</exampleNumber>
537       </fixedLine>
538       <mobile>
539         <nationalNumberPattern>6[6-9]\d{7}</nationalNumberPattern>
540         <possibleNumberPattern>\d{9}</possibleNumberPattern>
541         <exampleNumber>661234567</exampleNumber>
542       </mobile>
543       <tollFree>
544         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
545         <possibleNumberPattern>\d{7}</possibleNumberPattern>
546         <exampleNumber>8001234</exampleNumber>
547       </tollFree>
548       <premiumRate>
549         <!-- It is named "Shared Revenue Services" in the plan, but as there is a separate "Shared
550              Cost Services", it is highly likely these numbers are premium rate numbers. No
551              information/example is found in the Internet. -->
552         <nationalNumberPattern>900\d{3}</nationalNumberPattern>
553         <possibleNumberPattern>\d{6}</possibleNumberPattern>
554         <exampleNumber>900123</exampleNumber>
555       </premiumRate>
556       <sharedCost>
557         <nationalNumberPattern>808\d{3}</nationalNumberPattern>
558         <possibleNumberPattern>\d{6}</possibleNumberPattern>
559         <exampleNumber>808123</exampleNumber>
560       </sharedCost>
561       <personalNumber>
562         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
563         <possibleNumberPattern>\d{8}</possibleNumberPattern>
564         <exampleNumber>70012345</exampleNumber>
565       </personalNumber>
566       <emergency>
567         <nationalNumberPattern>12[789]</nationalNumberPattern>
568         <possibleNumberPattern>\d{3}</possibleNumberPattern>
569         <exampleNumber>129</exampleNumber>
570       </emergency>
571     </territory>
572
573     <!-- Armenia -->
574     <!-- http://www.itu.int/oth/T020200000A/en -->
575     <!-- http://en.wikipedia.org/wiki/%2B374 -->
576     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Nagorno-Karabakh_Republic -->
577     <!-- We think the national dialling prefix is 0 - it seems this was a change in 2005 (or 2008)
578          along with the new city codes. However, their official document makes no mention of it,
579          websites disagree, and we are not sure if the change has actually been made. -->
580     <territory id="AM" countryCode="374" internationalPrefix="00"
581                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
582       <availableFormats>
583         <numberFormat pattern="(\d{2})(\d{6})">
584           <leadingDigits>
585             1|
586             47
587           </leadingDigits>
588           <format>$1 $2</format>
589         </numberFormat>
590         <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
591           <leadingDigits>
592             [5-7]|
593             9[1-9]
594           </leadingDigits>
595           <format>$1 $2</format>
596         </numberFormat>
597         <numberFormat pattern="(\d{3})(\d{5})">
598           <leadingDigits>[23]</leadingDigits>
599           <format>$1 $2</format>
600         </numberFormat>
601         <numberFormat pattern="(\d{3})(\d{2})(\d{3})" nationalPrefixFormattingRule="$NP $FG">
602           <leadingDigits>
603             8|
604             90
605           </leadingDigits>
606           <format>$1 $2 $3</format>
607         </numberFormat>
608       </availableFormats>
609       <generalDesc>
610         <nationalNumberPattern>[1-9]\d{7}</nationalNumberPattern>
611         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
612       </generalDesc>
613       <fixedLine>
614         <!-- Includes telephone numbers in Nagorno-Karabakh Republic, physically located inside
615              Azerbaijan, which use prefix 47. -->
616         <nationalNumberPattern>
617           (?:
618             1[01]\d|
619             2(?:
620               2[2-46]|
621               3[1-8]|
622               4[2-69]|
623               5[2-7]|
624               6[1-9]|
625               8[1-7]
626             )|
627             3[12]2|
628             47\d
629           )\d{5}
630         </nationalNumberPattern>
631         <exampleNumber>10123456</exampleNumber>
632       </fixedLine>
633       <mobile>
634         <!-- Part of the range 97 is used by Nagorno-Karabakh Republic. -->
635         <nationalNumberPattern>
636           (?:
637             55|
638             77|
639             9[1-9]
640           )\d{6}
641         </nationalNumberPattern>
642         <possibleNumberPattern>\d{8}</possibleNumberPattern>
643         <exampleNumber>77123456</exampleNumber>
644       </mobile>
645       <tollFree>
646         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
647         <possibleNumberPattern>\d{8}</possibleNumberPattern>
648         <exampleNumber>80012345</exampleNumber>
649       </tollFree>
650       <premiumRate>
651         <nationalNumberPattern>90[016]\d{5}</nationalNumberPattern>
652         <possibleNumberPattern>\d{8}</possibleNumberPattern>
653         <exampleNumber>90012345</exampleNumber>
654       </premiumRate>
655       <sharedCost>
656         <nationalNumberPattern>80[1-4]\d{5}</nationalNumberPattern>
657         <possibleNumberPattern>\d{8}</possibleNumberPattern>
658         <exampleNumber>80112345</exampleNumber>
659       </sharedCost>
660       <voip>
661         <nationalNumberPattern>60[2-6]\d{5}</nationalNumberPattern>
662         <possibleNumberPattern>\d{8}</possibleNumberPattern>
663         <exampleNumber>60271234</exampleNumber>
664       </voip>
665       <emergency>
666         <nationalNumberPattern>10[123]</nationalNumberPattern>
667         <possibleNumberPattern>\d{3}</possibleNumberPattern>
668         <exampleNumber>102</exampleNumber>
669       </emergency>
670     </territory>
671
672     <!-- Angola -->
673     <!-- http://www.itu.int/oth/T0202000006/en -->
674     <territory id="AO" countryCode="244" internationalPrefix="00">
675       <availableFormats>
676         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
677           <format>$1 $2 $3</format>
678         </numberFormat>
679       </availableFormats>
680       <generalDesc>
681         <nationalNumberPattern>[29]\d{8}</nationalNumberPattern>
682         <possibleNumberPattern>\d{9}</possibleNumberPattern>
683       </generalDesc>
684       <fixedLine>
685         <nationalNumberPattern>
686           2\d(?:
687             [26-9]\d|
688             \d[26-9]
689           )\d{5}
690         </nationalNumberPattern>
691         <exampleNumber>222123456</exampleNumber>
692       </fixedLine>
693       <mobile>
694         <!-- Expanded the 92 prefix possibilities to match numbers found online. Unitel are
695              launching the prefix 94 apparently on 25th April 2012. -->
696         <nationalNumberPattern>9[1-4]\d{7}</nationalNumberPattern>
697         <exampleNumber>923123456</exampleNumber>
698       </mobile>
699       <emergency>
700         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1096.html -->
701         <nationalNumberPattern>11[235]</nationalNumberPattern>
702         <possibleNumberPattern>\d{3}</possibleNumberPattern>
703         <exampleNumber>113</exampleNumber>
704       </emergency>
705     </territory>
706
707     <!-- Argentina -->
708     <!-- http://www.itu.int/oth/T0202000009/en -->
709     <!-- http://www.cnc.gov.ar/infotecnica/numeracion/Index.asp - click on Indicativos Interurbanos.
710          -->
711     <territory id="AR" countryCode="54" internationalPrefix="00" nationalPrefix="0"
712        nationalPrefixForParsing="
713          0?(?:
714            (11|
715             2(?:
716               2(?:
717                 02?|
718                 [13]|
719                 2[13-79]|
720                 4[1-6]|
721                 5[2457]|
722                 6[124-8]|
723                 7[1-4]|
724                 8[13-6]|
725                 9[1267]
726               )|
727               3(?:
728                 02?|
729                 1[467]|
730                 2[03-6]|
731                 3[13-8]|
732                 [49][2-6]|
733                 5[2-8]|
734                 [67]
735               )|
736               4(?:
737                 7[3-578]|
738                 9
739               )|
740               6(?:
741                 [0136]|
742                 2[24-6]|
743                 4[6-8]?|
744                 5[15-8]
745               )|
746               80|
747               9(?:
748                 0[1-3]|
749                 [19]|
750                 2\d|
751                 3[1-6]|
752                 4[02568]?|
753                 5[2-4]|
754                 6[2-46]|
755                 72?|
756                 8[23]?
757               )
758            )|
759            3(?:
760              3(?:
761                2[79]|
762                6|
763                8[2578]
764              )|
765              4(?:
766                0[124-9]|
767                [12]|
768                3[5-8]?|
769                4[24-7]|
770                5[4-68]?|
771                6[02-9]|
772                7[126]|
773                8[2379]?|
774                9[1-36-8]
775              )|
776              5(?:
777                1|
778                2[1245]|
779                3[237]?|
780                4[1-46-9]|
781                6[2-4]|
782                7[1-6]|
783                8[2-5]?
784              )|
785              6[24]|
786              7(?:
787                1[1568]|
788                2[15]|
789                3[145]|
790                4[13]|
791                5[14-8]|
792                [069]|
793                7[2-57]|
794                8[126]
795              )|
796              8(?:
797                [01]|
798                2[15-7]|
799                3[2578]?|
800                4[13-6]|
801                5[4-8]?|
802                6[1-357-9]|
803                7[36-8]?|
804                8[5-8]?|
805                9[124]
806              )
807            )
808          )15
809        )?"
810        nationalPrefixTransformRule="9$1" nationalPrefixFormattingRule="$NP$FG">
811       <availableFormats>
812         <numberFormat pattern="([68]\d{2})(\d{3})(\d{4})">
813           <leadingDigits>[68]</leadingDigits>
814           <format>$1-$2-$3</format>
815         </numberFormat>
816         <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
817           <leadingDigits>911</leadingDigits>
818           <format>$2 15-$3-$4</format>
819           <intlFormat>$1 $2 $3-$4</intlFormat>
820         </numberFormat>
821         <numberFormat pattern="(9)(\d{3})(\d{3})(\d{4})">
822           <!-- Some 4-digit area codes actually are caught by this rule. Preference is given however
823                to the 3-digit area codes, since they are considerably larger communities.  -->
824           <leadingDigits>
825             9(?:
826               2[234689]|
827               3[3-8]
828             )
829           </leadingDigits>
830           <leadingDigits>
831             9(?:
832               2(?:
833                 2[013]|
834                 3[067]|
835                 49|
836                 6[01346]|
837                 80|
838                 9[147-9]
839               )|
840               3(?:
841                 36|
842                 4[12358]|
843                 5[138]|
844                 6[24]|
845                 7[069]|
846                 8[013578]
847               )
848             )
849           </leadingDigits>
850           <!-- We exclude here several 294X four-digit area codes: 2940, 2942, 2945, 2946 and 2948 -
851                and several 38[3578]X four-digit area codes. -->
852           <leadingDigits>
853             9(?:
854               2(?:
855                 2[013]|
856                 3[067]|
857                 49|
858                 6[01346]|
859                 80|
860                 9(?:
861                   [17-9]|
862                   4[13479]
863                 )
864               )|
865               3(?:
866                 36|
867                 4[12358]|
868                 5(?:
869                   [18]|
870                   3[014-689]
871                 )|
872                 6[24]|
873                 7[069]|
874                 8(?:
875                   [01]|
876                   3[013469]|
877                   5[0-39]|
878                   7[0-2459]|
879                   8[0-49]
880                 )
881               )
882             )
883           </leadingDigits>
884           <format>$2 15-$3-$4</format>
885           <intlFormat>$1 $2 $3-$4</intlFormat>
886         </numberFormat>
887         <numberFormat pattern="(9)(\d{4})(\d{3})(\d{3})">
888           <!-- The formatting pattern here for these newly introduced area codes is based on the ITU
889                document. We have not found sufficient examples online to know if this is actually
890                being followed by the general population, or whether the back-up pattern for
891                four-digit area codes (below) is preferred. -->
892           <leadingDigits>93[58]</leadingDigits>
893           <leadingDigits>
894             9(?:
895               3(?:
896                 53|
897                 8[78]
898               )
899             )
900           </leadingDigits>
901           <leadingDigits>
902             9(?:
903               3(?:
904                 537|
905                 8(?:
906                   73|
907                   88
908                 )
909               )
910             )
911           </leadingDigits>
912           <format>$2 15-$3-$4</format>
913         </numberFormat>
914         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
915           <leadingDigits>9[23]</leadingDigits>
916           <format>$2 15-$3-$4</format>
917           <intlFormat>$1 $2 $3-$4</intlFormat>
918         </numberFormat>
919         <numberFormat pattern="(11)(\d{4})(\d{4})">
920           <leadingDigits>1</leadingDigits>
921           <format>$1 $2-$3</format>
922         </numberFormat>
923         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
924         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
925           <leadingDigits>
926             2(?:
927               2[013]|
928               3[067]|
929               49|
930               6[01346]|
931               80|
932               9[147-9]
933             )|
934             3(?:
935               36|
936               4[12358]|
937               5[138]|
938               6[24]|
939               7[069]|
940               8[013578]
941             )
942           </leadingDigits>
943           <!-- Several 294X four-digit area codes exist: 2940, 2942, 2945, 2946 and 2948. -->
944           <leadingDigits>
945             2(?:
946               2[013]|
947               3[067]|
948               49|
949               6[01346]|
950               80|
951               9(?:
952                 [17-9]|
953                 4[13479]
954               )
955             )|
956             3(?:
957               36|
958               4[12358]|
959               5(?:
960                 [18]|
961                 3[0-689]
962               )|
963               6[24]|
964               7[069]|
965               8(?:
966                 [01]|
967                 3[013469]|
968                 5[0-39]|
969                 7[0-2459]|
970                 8[0-49]
971               )
972             )
973           </leadingDigits>
974           <format>$1 $2-$3</format>
975         </numberFormat>
976         <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
977           <leadingDigits>
978             3(?:
979               53|
980               8[78]
981             )
982           </leadingDigits>
983           <leadingDigits>
984             3(?:
985               537|
986               8(?:
987                 73|
988                 88
989               )
990             )
991           </leadingDigits>
992           <format>$1 $2-$3</format>
993         </numberFormat>
994         <numberFormat pattern="(\d{4})(\d{2})(\d{4})">
995           <leadingDigits>[23]</leadingDigits>
996           <format>$1 $2-$3</format>
997         </numberFormat>
998       </availableFormats>
999       <generalDesc>
1000         <nationalNumberPattern>
1001           [1-368]\d{9}|
1002           9\d{10}
1003         </nationalNumberPattern>
1004         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1005       </generalDesc>
1006       <noInternationalDialling>
1007         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1008         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1009         <exampleNumber>8101234567</exampleNumber>
1010       </noInternationalDialling>
1011       <fixedLine>
1012         <!-- Also covering fixed satellite service numbers (670). -->
1013         <nationalNumberPattern>
1014           11\d{8}|
1015           (?:
1016             2(?:
1017               2(?:
1018                 [013]\d|
1019                 2[13-79]|
1020                 4[1-6]|
1021                 5[2457]|
1022                 6[124-8]|
1023                 7[1-4]|
1024                 8[13-6]|
1025                 9[1267]
1026               )|
1027               3(?:
1028                 1[467]|
1029                 2[03-6]|
1030                 3[13-8]|
1031                 [49][2-6]|
1032                 5[2-8]|
1033                 [067]\d
1034               )|
1035               4(?:
1036                 7[3-8]|
1037                 9\d
1038               )|
1039               6(?:
1040                 [01346]\d|
1041                 2[24-6]|
1042                 5[15-8]
1043               )|
1044               80\d|
1045               9(?:
1046                 [0124789]\d|
1047                 3[1-6]|
1048                 5[234]|
1049                 6[2-46]
1050               )
1051             )|
1052             3(?:
1053               3(?:
1054                 2[79]|
1055                 6\d|
1056                 8[2578]
1057               )|
1058               4(?:
1059                 [78]\d|
1060                 0[0124-9]|
1061                 [1-35]\d|
1062                 4[24-7]|
1063                 6[02-9]|
1064                 9[123678]
1065               )|
1066               5(?:
1067                 [138]\d|
1068                 2[1245]|
1069                 4[1-9]|
1070                 6[2-4]|
1071                 7[1-6]
1072               )|
1073               6[24]\d|
1074               7(?:
1075                 [0469]\d|
1076                 1[1568]|
1077                 2[013-9]|
1078                 3[145]|
1079                 5[14-8]|
1080                 7[2-57]|
1081                 8[0-24-9]
1082               )|
1083               8(?:
1084                 [013578]\d|
1085                 2[15-7]|
1086                 4[13-6]|
1087                 6[1-357-9]|
1088                 9[124]
1089               )
1090             )|
1091             670\d
1092           )\d{6}
1093         </nationalNumberPattern>
1094         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1095         <exampleNumber>1123456789</exampleNumber>
1096       </fixedLine>
1097       <mobile>
1098         <!-- Also covers mobile satellite services (675 numbers). -->
1099         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
1100              area code is in the range 2-9. The four-digit area-code checking is done in detail if
1101              we attempt to strip the caller-pays token (15) from the number. -->
1102         <nationalNumberPattern>
1103           675\d{7}|
1104           9(?:
1105             11[2-9]\d{7}|
1106             (?:
1107               2(?:
1108                 2[013]|
1109                 3[067]|
1110                 49|
1111                 6[01346]|
1112                 80|
1113                 9[147-9]
1114               )|
1115               3(?:
1116                 36|
1117                 4[12358]|
1118                 5[138]|
1119                 6[24]|
1120                 7[069]|
1121                 8[013578]
1122               )
1123             )[2-9]\d{6}|
1124             \d{4}[2-9]\d{5}
1125           )
1126         </nationalNumberPattern>
1127         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1128         <exampleNumber>91123456789</exampleNumber>
1129       </mobile>
1130       <tollFree>
1131         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
1132         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1133         <exampleNumber>8001234567</exampleNumber>
1134       </tollFree>
1135       <premiumRate>
1136         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
1137         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1138         <exampleNumber>6001234567</exampleNumber>
1139       </premiumRate>
1140       <uan>
1141         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1142         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1143         <exampleNumber>8101234567</exampleNumber>
1144       </uan>
1145       <emergency>
1146         <nationalNumberPattern>
1147           1(?:
1148             0[017]|
1149             28
1150           )
1151         </nationalNumberPattern>
1152         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1153         <exampleNumber>101</exampleNumber>
1154       </emergency>
1155     </territory>
1156
1157     <!-- American Samoa -->
1158     <!-- http://www.itu.int/oth/T0202000004/en -->
1159     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
1160                internationalPrefix="011">
1161       <generalDesc>
1162         <!-- NANPA country - uses US formatting rules -->
1163         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
1164         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1165       </generalDesc>
1166       <fixedLine>
1167         <nationalNumberPattern>
1168           6846(?:
1169             22|
1170             33|
1171             44|
1172             55|
1173             77|
1174             88|
1175             9[19]
1176           )\d{4}
1177         </nationalNumberPattern>
1178         <exampleNumber>6846221234</exampleNumber>
1179       </fixedLine>
1180       <mobile>
1181         <!-- Adding 24[246], operated from Blue Sky. -->
1182         <nationalNumberPattern>
1183           684(?:
1184             733|
1185             25[2468]
1186           )\d{4}
1187         </nationalNumberPattern>
1188         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1189         <exampleNumber>6847331234</exampleNumber>
1190       </mobile>
1191       <tollFree>
1192         <nationalNumberPattern>
1193           8(?:
1194             00|
1195             55|
1196             66|
1197             77|
1198             88
1199           )[2-9]\d{6}
1200         </nationalNumberPattern>
1201         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1202         <exampleNumber>8002123456</exampleNumber>
1203       </tollFree>
1204       <premiumRate>
1205         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1206         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1207         <exampleNumber>9002123456</exampleNumber>
1208       </premiumRate>
1209       <personalNumber>
1210         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
1211         <nationalNumberPattern>
1212           5(?:
1213             00|
1214             33|
1215             44
1216           )[2-9]\d{6}
1217         </nationalNumberPattern>
1218         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1219         <exampleNumber>5002345678</exampleNumber>
1220       </personalNumber>
1221       <emergency>
1222         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf
1223              http://www.airportairport.com/American-Samoa.html
1224              http://www.frommers.com/destinations/americansamoa/3038020157.html -->
1225         <nationalNumberPattern>911</nationalNumberPattern>
1226         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1227         <exampleNumber>911</exampleNumber>
1228       </emergency>
1229     </territory>
1230
1231     <!-- Austria -->
1232     <!-- http://www.rtr.at/en/tk/E129 -->
1233     <territory id="AT" countryCode="43" internationalPrefix="00"
1234                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
1235       <availableFormats>
1236         <numberFormat pattern="(1)(\d{3,12})">
1237           <leadingDigits>1</leadingDigits>
1238           <format>$1 $2</format>
1239         </numberFormat>
1240         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
1241              found on Austrian web pages. -->
1242         <numberFormat pattern="(5\d)(\d{3,5})">
1243           <leadingDigits>5[079]</leadingDigits>
1244           <format>$1 $2</format>
1245         </numberFormat>
1246         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
1247           <leadingDigits>5[079]</leadingDigits>
1248           <format>$1 $2 $3</format>
1249         </numberFormat>
1250         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
1251           <leadingDigits>5[079]</leadingDigits>
1252           <format>$1 $2 $3</format>
1253         </numberFormat>
1254         <numberFormat pattern="(\d{3})(\d{3,10})">
1255           <leadingDigits>
1256             316|
1257             46|
1258             51|
1259             732|
1260             6(?:
1261               44|
1262               5[0-3579]|
1263               [6-9]
1264             )|
1265             7(?:
1266               1|
1267               [28]0
1268             )|
1269             [89]
1270           </leadingDigits>
1271           <format>$1 $2</format>
1272         </numberFormat>
1273         <numberFormat pattern="(\d{4})(\d{3,9})">
1274           <leadingDigits>
1275             2|
1276             3(?:
1277               1[1-578]|
1278               [3-8]
1279             )|
1280             4[2378]|
1281             5[2-6]|
1282             6(?:
1283               [12]|
1284               4[1-35-9]|
1285               5[468]
1286             )|
1287             7(?:
1288               2[1-8]|
1289               35|
1290               4[1-8]|
1291               [57-9]
1292             )
1293           </leadingDigits>
1294             <format>$1 $2</format>
1295           </numberFormat>
1296       </availableFormats>
1297       <generalDesc>
1298         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
1299         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
1300       </generalDesc>
1301       <fixedLine>
1302         <!-- Note that the full area code is not validated - just the first 3 digits. This also
1303              means that even though for most Austrian numbers the minimum length is 7, we allow 6
1304              since we don't differentiate below between 3 and 4 digit area codes for reasons of
1305              efficiency. -->
1306         <nationalNumberPattern>
1307           1\d{3,12}|
1308           (?:
1309             2(?:
1310               1[467]|
1311               2[13-8]|
1312               5[2357]|
1313               6[1-46-8]|
1314               7[1-8]|
1315               8[124-7]|
1316               9[1458]
1317             )|
1318             3(?:
1319               1[1-8]|
1320               3[23568]|
1321               4[5-7]|
1322               5[1378]|
1323               6[1-38]|
1324               8[3-68]
1325             )|
1326             4(?:
1327               2[1-8]|
1328               35|
1329               63|
1330               7[1368]|
1331               8[2457]
1332             )|
1333             5(?:
1334               12|
1335               2[1-8]|
1336               3[357]|
1337               4[147]|
1338               5[12578]|
1339               6[37]
1340             )|
1341             6(?:
1342               13|
1343               2[1-47]|
1344               4[1-35-8]|
1345               5[468]|
1346               62
1347             )|
1348             7(?:
1349               2[1-8]|
1350               3[25]|
1351               4[13478]|
1352               5[68]|
1353               6[16-8]|
1354               7[1-6]|
1355               9[45]
1356             )
1357           )\d{3,10}
1358         </nationalNumberPattern>
1359         <exampleNumber>1234567890</exampleNumber>
1360       </fixedLine>
1361       <mobile>
1362         <nationalNumberPattern>
1363           6(?:
1364             44|
1365             5[0-3579]|
1366             6[013-9]|
1367             [7-9]\d
1368           )\d{4,10}
1369         </nationalNumberPattern>
1370         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
1371         <exampleNumber>644123456</exampleNumber>
1372       </mobile>
1373       <tollFree>
1374         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
1375         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1376         <exampleNumber>800123456</exampleNumber>
1377       </tollFree>
1378       <premiumRate>
1379         <nationalNumberPattern>
1380           (?:
1381             711|
1382             9(?:
1383               0[01]|
1384               3[019]
1385             )
1386           )\d{6,10}
1387         </nationalNumberPattern>
1388         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1389         <exampleNumber>900123456</exampleNumber>
1390       </premiumRate>
1391       <sharedCost>
1392         <nationalNumberPattern>
1393           8(?:
1394             10|
1395             2[018]
1396           )\d{6,10}
1397         </nationalNumberPattern>
1398         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1399         <exampleNumber>810123456</exampleNumber>
1400       </sharedCost>
1401       <voip>
1402         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
1403         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1404         <exampleNumber>780123456</exampleNumber>
1405       </voip>
1406       <uan>
1407         <nationalNumberPattern>
1408           5(?:
1409             (?:
1410               0[1-9]|
1411               17
1412             )\d{2,10}|
1413             [79]\d{3,11}
1414           )|
1415           720\d{6,10}
1416         </nationalNumberPattern>
1417         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
1418         <exampleNumber>50123</exampleNumber>
1419       </uan>
1420       <emergency>
1421         <nationalNumberPattern>
1422           1(?:
1423             [12]2|
1424             33|
1425             44
1426           )
1427         </nationalNumberPattern>
1428         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1429         <exampleNumber>112</exampleNumber>
1430       </emergency>
1431     </territory>
1432
1433     <!-- Australia -->
1434     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
1435     <!-- http://www.itu.int/oth/T020200000D/en -->
1436     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
1437     <territory id="AU" countryCode="61" mainCountryForCode="true"
1438                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
1439                preferredInternationalPrefix="0011" nationalPrefix="0">
1440       <availableFormats>
1441         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
1442           pattern="([2378])(\d{4})(\d{4})">
1443           <leadingDigits>[2378]</leadingDigits>
1444           <format>$1 $2 $3</format>
1445         </numberFormat>
1446         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1447           pattern="(\d{3})(\d{3})(\d{3})">
1448           <leadingDigits>
1449             [45]|
1450             14
1451           </leadingDigits>
1452           <format>$1 $2 $3</format>
1453         </numberFormat>
1454         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1455           pattern="(16)(\d{3})(\d{2,4})">
1456           <leadingDigits>16</leadingDigits>
1457           <format>$1 $2 $3</format>
1458         </numberFormat>
1459         <numberFormat nationalPrefixFormattingRule="$FG"
1460           pattern="(1[389]\d{2})(\d{3})(\d{3})">
1461           <leadingDigits>
1462             1(?:
1463               [38]0|
1464               90
1465             )
1466           </leadingDigits>
1467           <leadingDigits>
1468             1(?:
1469               [38]00|
1470               90
1471             )
1472           </leadingDigits>
1473           <format>$1 $2 $3</format>
1474         </numberFormat>
1475         <numberFormat nationalPrefixFormattingRule="$FG"
1476           pattern="(180)(2\d{3})">
1477           <leadingDigits>180</leadingDigits>
1478           <leadingDigits>1802</leadingDigits>
1479           <format>$1 $2</format>
1480         </numberFormat>
1481         <numberFormat nationalPrefixFormattingRule="$FG"
1482           pattern="(19\d)(\d{3})">
1483           <leadingDigits>19[13]</leadingDigits>
1484           <format>$1 $2</format>
1485         </numberFormat>
1486         <numberFormat nationalPrefixFormattingRule="$FG"
1487           pattern="(19\d{2})(\d{4})">
1488           <leadingDigits>19[67]</leadingDigits>
1489           <format>$1 $2</format>
1490         </numberFormat>
1491         <numberFormat nationalPrefixFormattingRule="$FG"
1492           pattern="(13)(\d{2})(\d{2})">
1493           <leadingDigits>13[1-9]</leadingDigits>
1494           <format>$1 $2 $3</format>
1495         </numberFormat>
1496       </availableFormats>
1497       <generalDesc>
1498         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
1499         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1500       </generalDesc>
1501       <noInternationalDialling>
1502         <nationalNumberPattern>
1503           1(?:
1504             3(?:
1505               \d{4}|
1506               00\d{6}
1507             )|
1508             80(?:
1509               0\d{6}|
1510               2\d{3}
1511             )
1512           )
1513         </nationalNumberPattern>
1514         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1515         <exampleNumber>1300123456</exampleNumber>
1516       </noInternationalDialling>
1517       <fixedLine>
1518         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
1519         <nationalNumberPattern>
1520           [237]\d{8}|
1521           8(?:
1522             [68]\d{3}|
1523             7[0-69]\d{2}|
1524             9(?:
1525               [02-9]\d{2}|
1526               1(?:
1527                 [0-57-9]\d|
1528                 6[0135-9]
1529               )
1530             )
1531           )\d{4}
1532         </nationalNumberPattern>
1533         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1534         <exampleNumber>212345678</exampleNumber>
1535       </fixedLine>
1536       <mobile>
1537         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
1538              other ranges 14[1-3] are not currently used. -->
1539         <nationalNumberPattern>
1540           14(?:
1541             5\d|
1542             71
1543           )\d{5}|
1544           4(?:
1545             [0-2]\d|
1546             3[0-57-9]|
1547             4[47-9]|
1548             5[0-35-9]|
1549             6[6-9]|
1550             [79][07-9]|
1551             8[17-9]
1552           )\d{6}
1553         </nationalNumberPattern>
1554         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1555         <exampleNumber>412345678</exampleNumber>
1556       </mobile>
1557       <pager>
1558         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
1559         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
1560         <exampleNumber>1612345</exampleNumber>
1561       </pager>
1562       <tollFree>
1563         <nationalNumberPattern>
1564           180(?:
1565             0\d{3}|
1566             2
1567           )\d{3}
1568         </nationalNumberPattern>
1569         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1570         <exampleNumber>1800123456</exampleNumber>
1571       </tollFree>
1572       <premiumRate>
1573         <nationalNumberPattern>
1574           19(?:
1575             0[0126]\d{6}|
1576             [13-5]\d{3}|
1577             [679]\d{5}
1578           )
1579         </nationalNumberPattern>
1580         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1581         <exampleNumber>1900123456</exampleNumber>
1582       </premiumRate>
1583       <sharedCost>
1584       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
1585            although they charge a small local call connect fee (around 25c). These start with 13
1586            or 1300. -->
1587         <nationalNumberPattern>
1588           13(?:
1589             00\d{2}
1590           )?\d{4}
1591         </nationalNumberPattern>
1592         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1593         <exampleNumber>1300123456</exampleNumber>
1594       </sharedCost>
1595       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
1596            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
1597            from 0500000000 to 0590000000) -->
1598       <personalNumber>
1599         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
1600         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1601         <exampleNumber>500123456</exampleNumber>
1602       </personalNumber>
1603       <voip>
1604         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
1605         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1606         <exampleNumber>550123456</exampleNumber>
1607       </voip>
1608       <emergency>
1609         <nationalNumberPattern>
1610           000|
1611           112
1612         </nationalNumberPattern>
1613         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1614         <exampleNumber>112</exampleNumber>
1615       </emergency>
1616     </territory>
1617
1618     <!-- Aruba -->
1619     <!-- http://www.itu.int/oth/T020200000B/en -->
1620     <territory id="AW" countryCode="297" internationalPrefix="00">
1621       <availableFormats>
1622         <numberFormat pattern="(\d{3})(\d{4})">
1623           <format>$1 $2</format>
1624         </numberFormat>
1625       </availableFormats>
1626       <generalDesc>
1627         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
1628         <possibleNumberPattern>\d{7}</possibleNumberPattern>
1629       </generalDesc>
1630       <fixedLine>
1631         <nationalNumberPattern>
1632           5(?:
1633             2\d|
1634             8[1-9]
1635           )\d{4}
1636         </nationalNumberPattern>
1637         <exampleNumber>5212345</exampleNumber>
1638       </fixedLine>
1639       <mobile>
1640         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
1641              numbers found online. -->
1642         <nationalNumberPattern>
1643           (?:
1644             5(?:
1645               6\d|
1646               9[2-478]
1647             )|
1648             6(?:
1649               [039]0|
1650               22|
1651               4[01]|
1652               6[0-2]
1653             )|
1654             7[34]\d|
1655             9(?:
1656               6[45]|
1657               9[4-8]
1658             )
1659           )\d{4}
1660         </nationalNumberPattern>
1661         <exampleNumber>5601234</exampleNumber>
1662       </mobile>
1663       <tollFree>
1664         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
1665         <exampleNumber>8001234</exampleNumber>
1666       </tollFree>
1667       <premiumRate>
1668         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
1669         <exampleNumber>9001234</exampleNumber>
1670       </premiumRate>
1671       <voip>
1672         <nationalNumberPattern>
1673           28\d{5}|
1674           501\d{4}
1675         </nationalNumberPattern>
1676         <exampleNumber>5011234</exampleNumber>
1677       </voip>
1678       <emergency>
1679         <!-- http://www.yellowpages-aruba.com/home/emergency-numbers -->
1680         <nationalNumberPattern>
1681           100|
1682           911
1683         </nationalNumberPattern>
1684         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1685         <exampleNumber>911</exampleNumber>
1686       </emergency>
1687     </territory>
1688
1689     <!-- Ã…land Islands. -->
1690     <!-- Metadata shared with Finland. -->
1691     <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html -->
1692     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
1693                nationalPrefixFormattingRule="$NP$FG">
1694       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
1695       <generalDesc>
1696         <nationalNumberPattern>
1697           [135]\d{5,9}|
1698           [27]\d{4,9}|
1699           4\d{5,10}|
1700           6\d{7,8}|
1701           8\d{6,9}
1702         </nationalNumberPattern>
1703         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
1704       </generalDesc>
1705       <noInternationalDialling>
1706         <!-- According to the national numbering plan, service numbers are in general not accessible
1707              from abroad, although 600/700/800 numbers may be. -->
1708         <nationalNumberPattern>
1709           [13]00\d{3,7}|
1710           2(?:
1711             0(?:
1712               0\d{3,7}|
1713               2[023]\d{1,6}|
1714               9[89]\d{1,6}
1715             )
1716           )|
1717           60(?:
1718             [12]\d{5,6}|
1719             6\d{7}
1720           )|
1721           7(?:
1722             1\d{7}|
1723             3\d{8}|
1724             5[03-9]\d{2,7}
1725           )
1726         </nationalNumberPattern>
1727         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1728         <exampleNumber>100123</exampleNumber>
1729       </noInternationalDialling>
1730       <fixedLine>
1731         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
1732         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
1733         <exampleNumber>1812345678</exampleNumber>
1734       </fixedLine>
1735       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
1736       <mobile>
1737         <nationalNumberPattern>
1738           4\d{5,10}|
1739           50\d{4,8}
1740         </nationalNumberPattern>
1741         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1742         <exampleNumber>412345678</exampleNumber>
1743       </mobile>
1744       <tollFree>
1745         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
1746         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1747         <exampleNumber>8001234567</exampleNumber>
1748       </tollFree>
1749       <premiumRate>
1750         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
1751         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1752         <exampleNumber>600123456</exampleNumber>
1753       </premiumRate>
1754       <uan>
1755         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
1756              assigned to institutions such as universities, the national post, etc, where they are
1757              not otherwise classified as toll-free or premium-rate numbers. -->
1758         <nationalNumberPattern>
1759           [13]0\d{4,8}|
1760           2(?:
1761             0(?:
1762               [016-8]\d{3,7}|
1763               [2-59]\d{2,7}
1764             )|
1765             9\d{4,8}
1766           )|
1767           60(?:
1768             [12]\d{5,6}|
1769             6\d{7}
1770           )|
1771           7(?:
1772             1\d{7}|
1773             3\d{8}|
1774             5[03-9]\d{2,7}
1775           )
1776         </nationalNumberPattern>
1777         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1778         <exampleNumber>10112345</exampleNumber>
1779       </uan>
1780       <emergency>
1781         <!-- http://www.arrivalguides.com/en/Travelguides/Europe/Finland/ALAND -->
1782         <nationalNumberPattern>112</nationalNumberPattern>
1783         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1784         <exampleNumber>112</exampleNumber>
1785       </emergency>
1786     </territory>
1787
1788     <!-- Azerbaijan -->
1789     <!-- http://www.itu.int/oth/T020200000F/en -->
1790     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
1791                nationalPrefixFormattingRule="($NP$FG)">
1792       <availableFormats>
1793         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
1794           <leadingDigits>
1795             (?:
1796               1[28]|
1797               2(?:
1798                 [45]2|
1799                 [0-36]
1800               )|
1801               365
1802             )
1803           </leadingDigits>
1804           <format>$1 $2 $3 $4</format>
1805         </numberFormat>
1806         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
1807           <leadingDigits>[4-8]</leadingDigits>
1808           <format>$1 $2 $3 $4</format>
1809         </numberFormat>
1810         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
1811           nationalPrefixFormattingRule="$NP$FG">
1812           <leadingDigits>9</leadingDigits>
1813           <format>$1 $2 $3 $4</format>
1814         </numberFormat>
1815       </availableFormats>
1816       <generalDesc>
1817         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
1818         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
1819       </generalDesc>
1820       <fixedLine>
1821         <nationalNumberPattern>
1822           (?:
1823             1[28]\d|
1824             2(?:
1825               02|
1826               1[24]|
1827               2[2-4]|
1828               33|
1829               [45]2|
1830               6[23]
1831             )|
1832             365
1833           )\d{6}
1834         </nationalNumberPattern>
1835         <exampleNumber>123123456</exampleNumber>
1836       </fixedLine>
1837       <mobile>
1838         <nationalNumberPattern>
1839           (?:
1840             4[04]|
1841             5[015]|
1842             60|
1843             7[07]
1844           )\d{7}
1845         </nationalNumberPattern>
1846         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1847         <exampleNumber>401234567</exampleNumber>
1848       </mobile>
1849       <tollFree>
1850         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
1851              suggest they are in fact national toll-free numbers. -->
1852         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
1853         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1854         <exampleNumber>881234567</exampleNumber>
1855       </tollFree>
1856       <premiumRate>
1857         <!-- These are marked as Interactive Calls in the ITU document. -->
1858         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
1859         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1860         <exampleNumber>900200123</exampleNumber>
1861       </premiumRate>
1862       <emergency>
1863         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_978.html
1864              http://wikitravel.org/en/Azerbaijan#Emergency_contact_numbers -->
1865         <nationalNumberPattern>
1866           1(?:
1867             0[123]|
1868             12
1869           )
1870         </nationalNumberPattern>
1871         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1872         <exampleNumber>101</exampleNumber>
1873       </emergency>
1874     </territory>
1875
1876     <!-- Bosnia and Herzegovina -->
1877     <!-- http://www.rak.ba/eng/index.php?uid=1272016657 (accessible from
1878          http://www.cra.ba/en/telecom/numbering/) -->
1879     <!-- http://en.wikipedia.org/wiki/+387 -->
1880     <territory id="BA" countryCode="387" internationalPrefix="00"
1881                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
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       <emergency>
1949         <nationalNumberPattern>12[234]</nationalNumberPattern>
1950         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1951         <exampleNumber>122</exampleNumber>
1952       </emergency>
1953     </territory>
1954
1955     <!-- Barbados -->
1956     <!-- http://www.itu.int/oth/T0202000013/en -->
1957     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
1958                internationalPrefix="011">
1959       <generalDesc>
1960         <!-- NANPA country - uses US formatting rules -->
1961         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
1962         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1963       </generalDesc>
1964       <fixedLine>
1965         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
1966         <exampleNumber>2462345678</exampleNumber>
1967       </fixedLine>
1968       <mobile>
1969         <nationalNumberPattern>
1970           246(?:
1971             (?:
1972               2[346]|
1973               45|
1974               82
1975             )\d|
1976             25[0-4]
1977           )\d{4}
1978         </nationalNumberPattern>
1979         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1980         <exampleNumber>2462501234</exampleNumber>
1981       </mobile>
1982       <tollFree>
1983         <nationalNumberPattern>
1984           8(?:
1985             00|
1986             55|
1987             66|
1988             77|
1989             88
1990           )[2-9]\d{6}
1991         </nationalNumberPattern>
1992         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1993         <exampleNumber>8002123456</exampleNumber>
1994       </tollFree>
1995       <premiumRate>
1996         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1997         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1998         <exampleNumber>9002123456</exampleNumber>
1999       </premiumRate>
2000       <personalNumber>
2001         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
2002         <nationalNumberPattern>
2003           5(?:
2004             00|
2005             33|
2006             44
2007           )[2-9]\d{6}
2008         </nationalNumberPattern>
2009         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2010         <exampleNumber>5002345678</exampleNumber>
2011       </personalNumber>
2012       <emergency>
2013         <nationalNumberPattern>[235]11</nationalNumberPattern>
2014         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2015         <exampleNumber>211</exampleNumber>
2016       </emergency>
2017     </territory>
2018
2019     <!-- Bangladesh -->
2020     <!-- http://www.itu.int/oth/T0202000012/en -->
2021     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh -->
2022     <!-- http://www.btrc.gov.bd/engineering/national_numbering_plan_2005.pdf -->
2023     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
2024                preferredInternationalPrefix="00"
2025                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
2026       <availableFormats>
2027         <numberFormat pattern="(2)(\d{7})">
2028           <leadingDigits>2</leadingDigits>
2029           <format>$1-$2</format>
2030         </numberFormat>
2031         <numberFormat pattern="(\d{2})(\d{4,6})">
2032           <leadingDigits>[3-79]1</leadingDigits>
2033           <format>$1-$2</format>
2034         </numberFormat>
2035         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
2036         <numberFormat pattern="(\d{4})(\d{3,6})">
2037           <leadingDigits>
2038             1|
2039             3(?:
2040               0|
2041               [2-58]2
2042             )|
2043             4(?:
2044               0|
2045               [25]2|
2046               3[23]|
2047               [4689][25]
2048             )|
2049             5(?:
2050               [02-578]2|
2051               6[25]
2052             )|
2053             6(?:
2054               [0347-9]2|
2055               [26][25]
2056             )|
2057             7[02-9]2|
2058             8(?:
2059               [023][23]|
2060               [4-7]2
2061             )|
2062             9(?:
2063               [02][23]|
2064               [458]2|
2065               6[016]
2066             )
2067           </leadingDigits>
2068           <format>$1-$2</format>
2069         </numberFormat>
2070         <numberFormat pattern="(\d{3})(\d{3,7})">
2071           <leadingDigits>
2072             [3-79][2-9]|
2073             8
2074           </leadingDigits>
2075           <format>$1-$2</format>
2076         </numberFormat>
2077       </availableFormats>
2078       <generalDesc>
2079       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
2080            plan, so the country code can be accurately stripped off. -->
2081         <nationalNumberPattern>
2082           [2-79]\d{5,9}|
2083           1\d{9}|
2084           8[0-7]\d{4,8}
2085         </nationalNumberPattern>
2086         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
2087       </generalDesc>
2088       <fixedLine>
2089         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
2090              been realised, judging by online numbers and wikipedia. These patterns are grouped
2091              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731
2092              etc) are included despite not being mentioned on the wikipedia page or ITU doc due to
2093              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
2094              do not - both are allowed for now. For some area codes, the subscriber number length
2095              described in our source documentation doesn't match numbers online (e.g. 05222) so we
2096              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
2097              also added 04452 and 04923 from numbers found online. -->
2098         <nationalNumberPattern>
2099           2(?:
2100             7(?:
2101               1[0-267]|
2102               2[0-289]|
2103               3[0-29]|
2104               [46][01]|
2105               5[1-3]|
2106               7[017]|
2107               91
2108             )|
2109             8(?:
2110               0[125]|
2111               [139][1-6]|
2112               2[0157-9]|
2113               6[1-35]|
2114               7[1-5]|
2115               8[1-8]
2116             )|
2117             9(?:
2118               0[0-2]|
2119               1[1-4]|
2120               2[568]|
2121               3[3-6]|
2122               5[5-7]|
2123               6[0167]|
2124               7[15]|
2125               8[016-8]
2126             )
2127           )\d{4}|
2128           3(?:
2129             12?[5-7]\d{2}|
2130             0(?:
2131               2(?:
2132                 [025-79]\d|
2133                 [348]\d{1,2}
2134               )|
2135               3(?:
2136                 [2-4]\d|
2137                 [56]\d?
2138               )
2139             )|
2140             2(?:
2141               1\d{2}|
2142               2(?:
2143                 [12]\d|
2144                 [35]\d{1,2}|
2145                 4\d?
2146               )
2147             )|
2148             3(?:
2149               1\d{2}|
2150               2(?:
2151                 [2356]\d|
2152                 4\d{1,2}
2153               )
2154             )|
2155             4(?:
2156               1\d{2}|
2157               2(?:
2158                 2\d{1,2}|
2159                 [47]|
2160                 5\d{2}
2161               )
2162             )|
2163             5(?:
2164               1\d{2}|
2165               29
2166             )|
2167             [67]1\d{2}|
2168             8(?:
2169               1\d{2}|
2170               2(?:
2171                 2\d{2}|
2172                 3|
2173                 4\d
2174               )
2175             )|
2176           )\d{3}|
2177           4(?:
2178             0(?:
2179               2(?:
2180                 [09]\d|
2181                 7
2182               )|
2183               33\d{2}
2184             )|
2185             1\d{3}|
2186             2(?:
2187               1\d{2}|
2188               2(?:
2189                 [25]\d?|
2190                 [348]\d|
2191                 [67]\d{1,2}
2192               )
2193             )|
2194             3(?:
2195               1\d{2}(?:\d{2})?|
2196               2(?:
2197                 [045]\d|
2198                 [236-9]\d{1,2}
2199               )|
2200               32\d{2}
2201             )|
2202             4(?:
2203               [18]\d{2}|
2204               2(?:
2205                 [2-46]\d{2}|
2206                 3
2207               )|
2208               5[25]\d{2}
2209             )|
2210             5(?:
2211               1\d{2}|
2212               2(?:
2213                 3\d|
2214                 5
2215               )
2216             )|
2217             6(?:
2218               [18]\d{2}|
2219               2(?:
2220                 3(?:\d{2})?|
2221                 [46]\d{1,2}|
2222                 5\d{2}|
2223                 7\d
2224               )|
2225               5(?:
2226                 3\d?|
2227                 4\d|
2228                 [57]\d{1,2}|
2229                 6\d{2}|
2230                 8
2231               )
2232             )|
2233             71\d{2}|
2234             8(?:
2235               [18]\d{2}|
2236               23\d{2}|
2237               54\d{2}
2238             )|
2239             9(?:
2240               [18]\d{2}|
2241               2[2-5]\d{2}|
2242               53\d{1,2}
2243             )
2244           )\d{3}|
2245           5(?:
2246             02[03489]\d{2}|
2247             1\d{2}|
2248             2(?:
2249               1\d{2}|
2250               2(?:
2251                 2(?:\d{2})?|
2252                 [457]\d{2}
2253               )
2254             )|
2255             3(?:
2256               1\d{2}|
2257               2(?:
2258                 [37](?:\d{2})?|
2259                 [569]\d{2}
2260               )
2261             )|
2262             4(?:
2263               1\d{2}|
2264               2[46]\d{2}
2265             )|
2266             5(?:
2267               1\d{2}|
2268               26\d{1,2}
2269             )|
2270             6(?:
2271               [18]\d{2}|
2272               2|
2273               53\d{2}
2274             )|
2275             7(?:
2276               1|
2277               24
2278             )\d{2}|
2279             8(?:
2280               1|
2281               26
2282             )\d{2}|
2283             91\d{2}
2284           )\d{3}|
2285           6(?:
2286             0(?:
2287               1\d{2}|
2288               2(?:
2289                 3\d{2}|
2290                 4\d{1,2}
2291               )
2292             )|
2293             2(?:
2294               2[2-5]\d{2}|
2295               5(?:
2296                 [3-5]\d{2}|
2297                 7
2298               )|
2299               8\d{2}
2300             )|
2301             3(?:
2302               1|
2303               2[3478]
2304             )\d{2}|
2305             4(?:
2306               1|
2307               2[34]
2308             )\d{2}|
2309             5(?:
2310               1|
2311               2[47]
2312             )\d{2}|
2313             6(?:
2314               [18]\d{2}|
2315               6(?:
2316                 2(?:
2317                   2\d|
2318                   [34]\d{2}
2319                 )|
2320                 5(?:
2321                   [24]\d{2}|
2322                   3\d|
2323                   5\d{1,2}
2324                 )
2325               )
2326             )|
2327             72[2-5]\d{2}|
2328             8(?:
2329               1\d{2}|
2330               2[2-5]\d{2}
2331             )|
2332             9(?:
2333               1\d{2}|
2334               2[2-6]\d{2}
2335             )
2336           )\d{3}|
2337           7(?:
2338             (?:
2339               02|
2340               [3-589]1|
2341               6[12]|
2342               72[24]
2343             )\d{2}|
2344             21\d{3}|
2345             32
2346           )\d{3}|
2347           8(?:
2348             (?:
2349               4[12]|
2350               [5-7]2|
2351               1\d?
2352             )|
2353             (?:
2354               0|
2355               3[12]|
2356               [5-7]1|
2357               217
2358             )\d
2359           )\d{4}|
2360           9(?:
2361             [35]1|
2362             (?:
2363               [024]2|
2364               81
2365             )\d|
2366             (?:
2367               1|
2368               [24]1
2369             )\d{2}
2370           )\d{3}
2371         </nationalNumberPattern>
2372         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
2373         <exampleNumber>27111234</exampleNumber>
2374       </fixedLine>
2375       <mobile>
2376         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
2377              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
2378              numbers should be moving to 1[13-9] anyway. -->
2379         <nationalNumberPattern>
2380           (?:
2381             1[13-9]\d|
2382             (?:
2383               3[78]|
2384               44
2385             )[02-9]|
2386             6(?:
2387               44|
2388               6[02-9]
2389             )
2390           )\d{7}
2391         </nationalNumberPattern>
2392         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2393         <exampleNumber>1812345678</exampleNumber>
2394       </mobile>
2395       <tollFree>
2396         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
2397         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
2398         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2399         <exampleNumber>8001234567</exampleNumber>
2400       </tollFree>
2401       <voip>
2402         <nationalNumberPattern>
2403           96(?:
2404             0[49]|
2405             1[0-4]|
2406             6[69]
2407           )\d{6}
2408         </nationalNumberPattern>
2409         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2410         <exampleNumber>9604123456</exampleNumber>
2411       </voip>
2412       <emergency>
2413         <nationalNumberPattern>
2414           10[0-2]|
2415           999
2416         </nationalNumberPattern>
2417         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2418         <exampleNumber>999</exampleNumber>
2419       </emergency>
2420     </territory>
2421
2422     <!-- Belgium -->
2423     <!-- http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx -->
2424     <!-- http://www.telefoonzones.be/ -->
2425     <territory id="BE" countryCode="32" internationalPrefix="00"
2426                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
2427       <availableFormats>
2428         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
2429           <leadingDigits>4[6-9]</leadingDigits>
2430           <format>$1 $2 $3 $4</format>
2431         </numberFormat>
2432         <numberFormat pattern="([2-49])(\d{3})(\d{2})(\d{2})">
2433           <leadingDigits>
2434             [23]|
2435             [49][23]
2436           </leadingDigits>
2437           <format>$1 $2 $3 $4</format>
2438         </numberFormat>
2439         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
2440           <leadingDigits>
2441             [156]|
2442             7[0178]|
2443             8(?:
2444               0[1-9]|
2445               [1-79]
2446             )
2447           </leadingDigits>
2448           <format>$1 $2 $3 $4</format>
2449         </numberFormat>
2450         <numberFormat pattern="([89]\d{2})(\d{2})(\d{3})">
2451           <leadingDigits>
2452             (?:
2453               80|
2454               9
2455             )0
2456           </leadingDigits>
2457           <format>$1 $2 $3</format>
2458         </numberFormat>
2459       </availableFormats>
2460       <generalDesc>
2461         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
2462         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2463       </generalDesc>
2464       <fixedLine>
2465         <!-- Note that 80 is a valid area code, so we explicitly check for this case that the third
2466              digit begins with 1-9 -->
2467         <nationalNumberPattern>
2468           (?:
2469             1[0-69]|
2470             [23][2-8]|
2471             [49][23]|
2472             5\d|
2473             6[013-57-9]|
2474             71
2475           )\d{6}|
2476           8(?:
2477             0[1-9]|
2478             [1-79]\d
2479           )\d{5}
2480         </nationalNumberPattern>
2481         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2482         <exampleNumber>12345678</exampleNumber>
2483       </fixedLine>
2484       <mobile>
2485         <!-- Numbers beginning with 46 outside the ranges allocated by the plan have been included
2486              since many were found online. -->
2487         <nationalNumberPattern>
2488           4(?:
2489             [679]\d|
2490             8[03-9]
2491           )\d{6}
2492         </nationalNumberPattern>
2493         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2494         <exampleNumber>470123456</exampleNumber>
2495       </mobile>
2496       <tollFree>
2497         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2498         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2499         <exampleNumber>80012345</exampleNumber>
2500       </tollFree>
2501       <premiumRate>
2502         <nationalNumberPattern>
2503           (?:
2504             90|
2505             7[07]
2506           )\d{6}
2507         </nationalNumberPattern>
2508         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2509         <exampleNumber>90123456</exampleNumber>
2510       </premiumRate>
2511       <uan>
2512         <!-- Using this for National Rate Services, since
2513              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
2514              says it will be priced the same as any other national calls. -->
2515         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
2516         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2517         <exampleNumber>78123456</exampleNumber>
2518       </uan>
2519       <emergency>
2520         <nationalNumberPattern>
2521           1(?:
2522             0[01]|
2523             12
2524           )
2525         </nationalNumberPattern>
2526         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2527         <exampleNumber>112</exampleNumber>
2528       </emergency>
2529     </territory>
2530
2531     <!-- Burkina Faso -->
2532     <!-- http://www.itu.int/oth/T0202000021/en -->
2533     <!-- http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf -->
2534     <territory id="BF" countryCode="226" internationalPrefix="00">
2535       <availableFormats>
2536         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
2537              chosen to use the standard from numbers found on the internet instead. -->
2538         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2539           <format>$1 $2 $3 $4</format>
2540         </numberFormat>
2541       </availableFormats>
2542       <generalDesc>
2543         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
2544         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2545       </generalDesc>
2546       <fixedLine>
2547         <!-- The prefix 50 48 has been added based on numbers found online, while 40 49 has been
2548              deleted since we haven't found any numbers with this prefix and it is not mentioned in
2549              the Onatel document.
2550              IMPORTANT: Note that the ITU documents of Mar/Apr 2013 seem to have major errors in the
2551              fixed-line table, so we have not changed our patterns based on these. -->
2552         <nationalNumberPattern>
2553           (?:
2554             20(?:
2555               49|
2556               5[23]|
2557               9[016-9]
2558             )|
2559             40(?:
2560               4[56]|
2561               5[4-6]|
2562               7[0179]
2563             )|
2564             50[34]\d
2565           )\d{4}
2566         </nationalNumberPattern>
2567         <exampleNumber>20491234</exampleNumber>
2568       </fixedLine>
2569       <mobile>
2570         <nationalNumberPattern>
2571           6(?:
2572             [0-256]\d|
2573             8[0-5]|
2574             4[0-4]
2575           )\d{5}|
2576           7\d{7}
2577         </nationalNumberPattern>
2578         <exampleNumber>70123456</exampleNumber>
2579       </mobile>
2580       <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burkina-faso_12217/index.html -->
2581       <emergency>
2582         <nationalNumberPattern>1[78]</nationalNumberPattern>
2583         <possibleNumberPattern>\d{2}</possibleNumberPattern>
2584         <exampleNumber>17</exampleNumber>
2585       </emergency>
2586     </territory>
2587
2588     <!-- Bulgaria -->
2589     <!-- http://www.itu.int/oth/T0202000020/en -->
2590     <territory id="BG" countryCode="359" internationalPrefix="00"
2591                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
2592       <availableFormats>
2593         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
2594              used to separate the area code from the rest of the number, based on sites like
2595              http://www.goldenpages.bg. -->
2596         <numberFormat pattern="(2)(\d{5})">
2597           <leadingDigits>29</leadingDigits>
2598           <format>$1 $2</format>
2599         </numberFormat>
2600         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
2601           <leadingDigits>2</leadingDigits>
2602           <format>$1 $2 $3</format>
2603         </numberFormat>
2604         <numberFormat pattern="(\d{3})(\d{4})">
2605           <leadingDigits>
2606             43[124-7]|
2607             70[1-9]
2608           </leadingDigits>
2609           <format>$1 $2</format>
2610         </numberFormat>
2611         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
2612           <leadingDigits>
2613             43[124-7]|
2614             70[1-9]
2615           </leadingDigits>
2616           <format>$1 $2 $3</format>
2617         </numberFormat>
2618         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2619           <leadingDigits>[78]00</leadingDigits>
2620           <format>$1 $2 $3</format>
2621         </numberFormat>
2622         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
2623           <leadingDigits>
2624             [356]|
2625             4[124-7]|
2626             7[1-9]|
2627             8[1-6]|
2628             9[1-7]
2629           </leadingDigits>
2630           <format>$1 $2 $3</format>
2631         </numberFormat>
2632         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2633           <leadingDigits>
2634             48|
2635             8[7-9]|
2636             9[08]
2637           </leadingDigits>
2638           <format>$1 $2 $3</format>
2639         </numberFormat>
2640       </availableFormats>
2641       <generalDesc>
2642         <nationalNumberPattern>
2643           [23567]\d{5,7}|
2644           [489]\d{6,8}
2645         </nationalNumberPattern>
2646         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
2647       </generalDesc>
2648       <fixedLine>
2649         <!-- 29xxxx numbers have been added because they can be found online, and are typically
2650              used by taxi companies. -->
2651         <nationalNumberPattern>
2652           2(?:
2653             [0-8]\d{5,6}|
2654             9\d{4,6}
2655           )|
2656           (?:
2657             [36]\d|
2658             5[1-9]|
2659             8[1-6]|
2660             9[1-7]
2661           )\d{5,6}|
2662           (?:
2663             4(?:
2664               [124-7]\d|
2665               3[1-6]
2666             )|
2667             7(?:
2668               0[1-9]|
2669               [1-9]\d
2670             )
2671           )\d{4,5}
2672         </nationalNumberPattern>
2673         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
2674         <exampleNumber>2123456</exampleNumber>
2675       </fixedLine>
2676       <mobile>
2677         <nationalNumberPattern>
2678           (?:
2679             8[7-9]|
2680             98
2681           )\d{7}|
2682           4(?:
2683             3[0789]|
2684             8\d
2685           )\d{5}
2686         </nationalNumberPattern>
2687         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2688         <exampleNumber>48123456</exampleNumber>
2689       </mobile>
2690       <tollFree>
2691         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2692         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2693         <exampleNumber>80012345</exampleNumber>
2694       </tollFree>
2695       <premiumRate>
2696         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
2697         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2698         <exampleNumber>90123456</exampleNumber>
2699       </premiumRate>
2700       <personalNumber>
2701         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
2702         <exampleNumber>70012345</exampleNumber>
2703       </personalNumber>
2704       <emergency>
2705         <nationalNumberPattern>
2706           1(?:
2707             12|
2708             50|
2709             6[06]
2710           )
2711         </nationalNumberPattern>
2712         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2713         <exampleNumber>112</exampleNumber>
2714       </emergency>
2715     </territory>
2716
2717     <!-- Bahrain -->
2718     <!-- http://www.itu.int/oth/T0202000011/en -->
2719     <!-- http://www.tra.org.bh/en/pdf/National_Numbering_Plan_2.pdf -->
2720     <!-- http://www.tra.org.bh/en/marketNumbering.aspx -->
2721     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain -->
2722     <territory id="BH" countryCode="973" internationalPrefix="00">
2723       <availableFormats>
2724         <numberFormat pattern="(\d{4})(\d{4})">
2725           <format>$1 $2</format>
2726         </numberFormat>
2727       </availableFormats>
2728       <generalDesc>
2729         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
2730         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2731       </generalDesc>
2732       <!-- Universal Service numbers are under both Mobile and Fixed-Line, as they can be assigned
2733            to either. -->
2734       <fixedLine>
2735         <nationalNumberPattern>
2736           (?:
2737             1(?:
2738               3[3-6]|
2739               6[0156]|
2740               7\d
2741             )\d|
2742             6(?:
2743               1[16]\d|
2744               6(?:
2745                 0\d|
2746                 3[12]|
2747                 44
2748               )|
2749               9(?:
2750                 69|
2751                 9[6-9]
2752               )
2753             )|
2754             77\d{2}
2755           )\d{4}
2756         </nationalNumberPattern>
2757         <exampleNumber>17001234</exampleNumber>
2758       </fixedLine>
2759       <mobile>
2760         <nationalNumberPattern>
2761           (?:
2762             3(?:
2763               [1-4679]\d|
2764               5[035]|
2765               8[348]
2766             )\d|
2767             6(?:
2768               1[16]\d|
2769               3(?:
2770                 00|
2771                 33|
2772                 6[16]
2773               )|
2774               500|
2775               6(?:
2776                 [069]\d|
2777                 3[03-9]|
2778                 44|
2779                 88
2780               )|
2781               9(?:
2782                 69|
2783                 9[6-9]
2784               )
2785             )|
2786             77\d{2}
2787           )\d{4}
2788         </nationalNumberPattern>
2789         <exampleNumber>36001234</exampleNumber>
2790       </mobile>
2791       <tollFree>
2792         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
2793         <exampleNumber>80123456</exampleNumber>
2794       </tollFree>
2795       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
2796            now. -->
2797       <premiumRate>
2798         <nationalNumberPattern>
2799           (?:
2800             87|
2801             9[014578]
2802           )\d{6}
2803         </nationalNumberPattern>
2804         <exampleNumber>90123456</exampleNumber>
2805       </premiumRate>
2806       <sharedCost>
2807         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
2808         <exampleNumber>84123456</exampleNumber>
2809       </sharedCost>
2810       <emergency>
2811         <nationalNumberPattern>999</nationalNumberPattern>
2812         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2813         <exampleNumber>999</exampleNumber>
2814       </emergency>
2815     </territory>
2816
2817     <!-- Burundi -->
2818     <!-- http://www.itu.int/oth/T0202000022/en -->
2819     <territory id="BI" countryCode="257" internationalPrefix="00">
2820       <availableFormats>
2821         <numberFormat
2822           pattern="([27]\d)(\d{2})(\d{2})(\d{2})">
2823           <format>$1 $2 $3 $4</format>
2824         </numberFormat>
2825       </availableFormats>
2826       <generalDesc>
2827         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
2828         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2829       </generalDesc>
2830       <fixedLine>
2831         <nationalNumberPattern>
2832           22(?:
2833             2[0-7]|
2834             [3-5]0
2835           )\d{4}
2836         </nationalNumberPattern>
2837         <exampleNumber>22201234</exampleNumber>
2838       </fixedLine>
2839       <mobile>
2840         <!-- Extra online mobile number prefixes found: 74.
2841              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
2842              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
2843              satellite phones. -->
2844         <nationalNumberPattern>
2845           (?:
2846             29|
2847             7[14-9]
2848           )\d{6}
2849         </nationalNumberPattern>
2850         <exampleNumber>79561234</exampleNumber>
2851       </mobile>
2852       <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burundi_12220/index.html -->
2853       <emergency>
2854         <nationalNumberPattern>11[78]</nationalNumberPattern>
2855         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2856         <exampleNumber>117</exampleNumber>
2857       </emergency>
2858     </territory>
2859
2860     <!-- Benin -->
2861     <!-- http://www.itu.int/oth/T0202000017/en -->
2862     <territory id="BJ" countryCode="229" internationalPrefix="00">
2863       <availableFormats>
2864         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2865           <format>$1 $2 $3 $4</format>
2866         </numberFormat>
2867         <!-- Numbers beginning with 7 should be formatted as a block. -->
2868       </availableFormats>
2869       <generalDesc>
2870         <nationalNumberPattern>
2871           [2689]\d{7}|
2872           7\d{3}
2873         </nationalNumberPattern>
2874         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
2875       </generalDesc>
2876       <fixedLine>
2877         <!-- These come from the national numbering plan, but have been widened to include other
2878              prefixes found in the yellow pages - specifically 21 0. -->
2879         <nationalNumberPattern>
2880           2(?:
2881             02|
2882             1[037]|
2883             2[45]|
2884             3[68]
2885           )\d{5}
2886         </nationalNumberPattern>
2887         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2888         <exampleNumber>20211234</exampleNumber>
2889       </fixedLine>
2890       <mobile>
2891         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
2892              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
2893              6[67] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
2894              reported as having prefixes 68 and 9[89]. -->
2895         <nationalNumberPattern>
2896           (?:
2897             6[46-8]|
2898             9[03-9]
2899           )\d{6}
2900         </nationalNumberPattern>
2901         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2902         <exampleNumber>90011234</exampleNumber>
2903       </mobile>
2904       <tollFree>
2905         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
2906         <possibleNumberPattern>\d{4}</possibleNumberPattern>
2907         <exampleNumber>7312</exampleNumber>
2908       </tollFree>
2909       <voip>
2910         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
2911         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2912         <exampleNumber>85751234</exampleNumber>
2913       </voip>
2914       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
2915            as a local-call.) We model these as UAN since we have no more detailed information. -->
2916       <uan>
2917         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
2918         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2919         <exampleNumber>81123456</exampleNumber>
2920       </uan>
2921       <emergency>
2922         <nationalNumberPattern>11[78]</nationalNumberPattern>
2923         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2924         <exampleNumber>117</exampleNumber>
2925       </emergency>
2926     </territory>
2927
2928     <!-- Saint Barthélemy, French Antilles -->
2929     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
2930          national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but
2931          it appears from searches in online white and yellow pages that a subset of the prefixes
2932          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
2933          of these region codes will be returned, although numbers will be valid for both regions.
2934          -->
2935     <!-- http://www.itu.int/oth/T0202000058/en -->
2936     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
2937       <!-- Formatting rules borrowed from Guadeloupe. -->
2938       <generalDesc>
2939         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
2940         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2941       </generalDesc>
2942       <fixedLine>
2943         <nationalNumberPattern>
2944           590(?:
2945             2[7-9]|
2946             5[12]|
2947             87
2948           )\d{4}
2949         </nationalNumberPattern>
2950         <exampleNumber>590271234</exampleNumber>
2951       </fixedLine>
2952       <mobile>
2953         <!-- Any ranges assigned from
2954              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
2955              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
2956              them. -->
2957         <nationalNumberPattern>
2958           690(?:
2959             0[0-7]|
2960             [1-9]\d
2961           )\d{4}
2962         </nationalNumberPattern>
2963         <exampleNumber>690301234</exampleNumber>
2964       </mobile>
2965       <!-- http://www.comstbarth.fr/urgences.asp -->
2966       <emergency>
2967         <nationalNumberPattern>18</nationalNumberPattern>
2968         <possibleNumberPattern>\d{2}</possibleNumberPattern>
2969         <exampleNumber>18</exampleNumber>
2970       </emergency>
2971     </territory>
2972
2973     <!-- Bermuda -->
2974     <!-- http://www.itu.int/oth/T0202000018/en -->
2975     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
2976                internationalPrefix="011">
2977       <generalDesc>
2978         <!-- NANPA country - uses US formatting rules -->
2979         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
2980         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
2981       </generalDesc>
2982       <fixedLine>
2983         <nationalNumberPattern>
2984           441(?:
2985             2(?:
2986               02|
2987               23|
2988               61|
2989               [3479]\d
2990             )|
2991             [46]\d{2}|
2992             5(?:
2993               4\d|
2994               60|
2995               89
2996             )|
2997             824
2998           )\d{4}
2999         </nationalNumberPattern>
3000         <exampleNumber>4412345678</exampleNumber>
3001       </fixedLine>
3002       <mobile>
3003         <nationalNumberPattern>
3004           441(?:
3005             [37]\d|
3006             5[0-39]
3007           )\d{5}
3008         </nationalNumberPattern>
3009         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3010         <exampleNumber>4413701234</exampleNumber>
3011       </mobile>
3012       <tollFree>
3013         <nationalNumberPattern>
3014           8(?:
3015             00|
3016             55|
3017             66|
3018             77|
3019             88
3020           )[2-9]\d{6}
3021         </nationalNumberPattern>
3022         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3023         <exampleNumber>8002123456</exampleNumber>
3024       </tollFree>
3025       <premiumRate>
3026         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3027         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3028         <exampleNumber>9002123456</exampleNumber>
3029       </premiumRate>
3030       <personalNumber>
3031         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
3032         <nationalNumberPattern>
3033           5(?:
3034             00|
3035             33|
3036             44
3037           )[2-9]\d{6}
3038         </nationalNumberPattern>
3039         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3040         <exampleNumber>5002345678</exampleNumber>
3041       </personalNumber>
3042       <emergency>
3043         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1067.html -->
3044         <nationalNumberPattern>911</nationalNumberPattern>
3045         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3046         <exampleNumber>911</exampleNumber>
3047       </emergency>
3048     </territory>
3049
3050     <!-- Brunei Darussalam -->
3051     <!-- http://www.itu.int/oth/T020200001F/en -->
3052     <territory id="BN" countryCode="673" internationalPrefix="00">
3053       <!-- Format is from http://aiti.gov.bn/contact.html -->
3054       <availableFormats>
3055         <numberFormat pattern="([2-578]\d{2})(\d{4})">
3056           <format>$1 $2</format>
3057         </numberFormat>
3058       </availableFormats>
3059       <generalDesc>
3060         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
3061         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3062       </generalDesc>
3063       <fixedLine>
3064         <nationalNumberPattern>[2-5]\d{6}</nationalNumberPattern>
3065         <exampleNumber>2345678</exampleNumber>
3066       </fixedLine>
3067       <mobile>
3068         <nationalNumberPattern>[78]\d{6}</nationalNumberPattern>
3069         <exampleNumber>7123456</exampleNumber>
3070       </mobile>
3071       <emergency>
3072         <!-- http://www.information.gov.bn/VER2/content/view/52/62/ -->
3073         <nationalNumberPattern>99[135]</nationalNumberPattern>
3074         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3075         <exampleNumber>991</exampleNumber>
3076       </emergency>
3077     </territory>
3078
3079     <!-- Bolivia -->
3080     <!-- http://www.itu.int/oth/T020200001A/en -->
3081     <!-- http://www.bolivia.com/Servicios/Plandenumeracion.pdf -->
3082     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
3083                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
3084       <availableFormats>
3085         <numberFormat pattern="([234])(\d{7})">
3086           <leadingDigits>[234]</leadingDigits>
3087           <format>$1 $2</format>
3088         </numberFormat>
3089         <numberFormat pattern="([67]\d{7})">
3090           <leadingDigits>[67]</leadingDigits>
3091           <format>$1</format>
3092         </numberFormat>
3093       </availableFormats>
3094       <generalDesc>
3095         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
3096         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3097       </generalDesc>
3098       <fixedLine>
3099         <nationalNumberPattern>
3100           (?:
3101             2(?:
3102               2\d{2}|
3103               5(?:11|[258]\d|9[67])|
3104               6(?:12|2\d|9[34])|
3105               8(?:2[34]|39|62)
3106             )|
3107             3(?:
3108               3\d{2}|
3109               4(?:6\d|8[24])|
3110               8(?:25|42|5[257]|86|9[25])|
3111               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
3112             )|
3113             4(?:
3114               4\d{2}|
3115               6(?:11|[24689]\d|72)
3116             )
3117           )\d{4}
3118         </nationalNumberPattern>
3119         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3120         <exampleNumber>22123456</exampleNumber>
3121       </fixedLine>
3122       <mobile>
3123         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
3124         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3125         <exampleNumber>71234567</exampleNumber>
3126       </mobile>
3127       <emergency>
3128         <nationalNumberPattern>11[089]</nationalNumberPattern>
3129         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3130         <exampleNumber>110</exampleNumber>
3131       </emergency>
3132     </territory>
3133
3134     <!-- Bonaire, Sint Eustatius and Saba -->
3135     <!-- http://www.itu.int/oth/T02020000F8/en -->
3136     <territory id="BQ" countryCode="599" internationalPrefix="00">
3137       <!-- Shares formatting patterns with CW. -->
3138       <generalDesc>
3139         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
3140         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3141       </generalDesc>
3142       <fixedLine>
3143         <nationalNumberPattern>
3144           (?:
3145             318[023]|
3146             416[0239]|
3147             7(?:
3148               1[578]|
3149               50
3150             )\d
3151           )\d{3}
3152         </nationalNumberPattern>
3153         <exampleNumber>7151234</exampleNumber>
3154       </fixedLine>
3155       <mobile>
3156         <nationalNumberPattern>
3157           (?:
3158             318[1456]|
3159             416[15-8]|
3160             7(?:
3161               0[01]|
3162               [89]\d
3163             )\d
3164           )\d{3}|
3165         </nationalNumberPattern>
3166         <exampleNumber>3181234</exampleNumber>
3167       </mobile>
3168       <emergency>
3169         <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
3170         <nationalNumberPattern>
3171           112|
3172           911
3173         </nationalNumberPattern>
3174         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3175         <exampleNumber>112</exampleNumber>
3176       </emergency>
3177     </territory>
3178
3179     <!-- Brazil -->
3180     <!-- http://en.wikipedia.org/wiki/%2B55 -->
3181     <!-- http://www.itu.int/oth/T020200001D/en -->
3182     <territory id="BR" countryCode="55"
3183                internationalPrefix="00(?:1[45]|2[135]|[34]1|43)"
3184                nationalPrefix="0"
3185                nationalPrefixForParsing="0(?:(1[245]|2[135]|[34]1)(\d{10,11}))?"
3186                nationalPrefixTransformRule="$2">
3187       <!-- The national prefix for parsing here also contains a capturing group for the main number,
3188            since the carrier codes here may also be area codes, so we want to check the length of
3189            the number after capturing. We also need a nationalTransformRule to repopulate with the
3190            number without the carrier code. -->
3191       <availableFormats>
3192         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
3193              rules here handle this case. The leading digits pattern must be specific enough such
3194              that it doesn't match X00 numbers (e.g. toll-free). -->
3195         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
3196           <leadingDigits>
3197             [2-9](?:
3198               [1-9]|
3199               0[1-9]
3200             )
3201           </leadingDigits>
3202           <format>$1-$2</format>
3203           <intlFormat>NA</intlFormat>
3204         </numberFormat>
3205         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
3206           <leadingDigits>
3207             9(?:
3208               [1-9]|
3209               0[1-9]
3210             )
3211           </leadingDigits>
3212           <format>$1-$2</format>
3213           <intlFormat>NA</intlFormat>
3214         </numberFormat>
3215         <numberFormat nationalPrefixFormattingRule="($FG)"
3216             pattern="(\d{2})(\d{5})(\d{4})"
3217             carrierCodeFormattingRule="$NP $CC ($FG)">
3218           <leadingDigits>
3219             (?:
3220               1[1-9]|
3221               2[12478]
3222             )9
3223           </leadingDigits>
3224           <format>$1 $2-$3</format>
3225         </numberFormat>
3226         <numberFormat nationalPrefixFormattingRule="($FG)"
3227             pattern="(\d{2})(\d{4})(\d{4})"
3228             carrierCodeFormattingRule="$NP $CC ($FG)">
3229           <leadingDigits>[1-9][1-9]</leadingDigits>
3230           <format>$1 $2-$3</format>
3231         </numberFormat>
3232         <numberFormat pattern="([34]00\d)(\d{4})">
3233           <leadingDigits>[34]00</leadingDigits>
3234           <format>$1-$2</format>
3235         </numberFormat>
3236         <numberFormat nationalPrefixFormattingRule="$NP$FG"
3237             pattern="([3589]00)(\d{2,3})(\d{4})">
3238           <leadingDigits>[3589]00</leadingDigits>
3239           <format>$1 $2 $3</format>
3240         </numberFormat>
3241       </availableFormats>
3242       <generalDesc>
3243         <nationalNumberPattern>
3244           [1-46-9]\d{7,10}|
3245           5\d{8,9}
3246         </nationalNumberPattern>
3247         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
3248       </generalDesc>
3249       <noInternationalDialling>
3250         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3251         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3252         <exampleNumber>40041234</exampleNumber>
3253       </noInternationalDialling>
3254       <fixedLine>
3255         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
3256              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
3257              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
3258              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
3259              -->
3260         <nationalNumberPattern>
3261           1[1-9][2-5]\d{7}|
3262           (?:
3263             [4689][1-9]|
3264             2[12478]|
3265             3[1-578]|
3266             5[13-5]|
3267             7[13-579]
3268           )[2-5]\d{7}
3269         </nationalNumberPattern>
3270         <exampleNumber>1123456789</exampleNumber>
3271       </fixedLine>
3272       <!--  Also includes the new 11-digit mobile numbers that are being rolled out since 2012,
3273             which are added at the end. -->
3274       <mobile>
3275         <nationalNumberPattern>
3276           1(?:
3277             1(?:
3278               5[347]|
3279               [6-9]\d|
3280             )|
3281             [2-9][6-9]\d
3282           )\d{6}|
3283           (?:
3284             2[12478]|
3285             3[1-578]|
3286             [4689][1-9]|
3287             5[13-5]|
3288             7[13-579]
3289           )[6-9]\d{7}|
3290           (?:
3291             1(?:
3292               19\d|
3293               [2-9]9[6-9]
3294             )|
3295             2[12478]9[6-9]
3296           )\d{7}
3297         </nationalNumberPattern>
3298         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3299         <exampleNumber>1161234567</exampleNumber>
3300       </mobile>
3301       <tollFree>
3302         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
3303         <exampleNumber>800123456</exampleNumber>
3304       </tollFree>
3305       <premiumRate>
3306         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
3307         <exampleNumber>300123456</exampleNumber>
3308       </premiumRate>
3309       <sharedCost>
3310         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3311         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3312         <exampleNumber>40041234</exampleNumber>
3313       </sharedCost>
3314       <emergency>
3315         <nationalNumberPattern>
3316           1(?:
3317             12|
3318             28|
3319             9[023]
3320           )|
3321           911
3322         </nationalNumberPattern>
3323         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3324         <exampleNumber>190</exampleNumber>
3325       </emergency>
3326     </territory>
3327
3328     <!-- Bahamas -->
3329     <!-- http://www.itu.int/oth/T0202000010/en -->
3330     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
3331                internationalPrefix="011">
3332       <generalDesc>
3333         <!-- NANPA country - uses US formatting rules -->
3334         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
3335         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3336       </generalDesc>
3337       <fixedLine>
3338         <nationalNumberPattern>
3339           242(?:
3340             3(?:
3341               02|
3342               [236][1-9]|
3343               4[0-24-9]|
3344               5[0-68]|
3345               7[3467]|
3346               8[0-4]|
3347               9[2-467]
3348             )|
3349             461|
3350             502|
3351             6(?:
3352               12|
3353               7[67]|
3354               8[78]|
3355               9[89]
3356             )|
3357             702
3358           )\d{4}
3359         </nationalNumberPattern>
3360         <exampleNumber>2423456789</exampleNumber>
3361       </fixedLine>
3362       <mobile>
3363         <nationalNumberPattern>
3364           242(?:
3365             3(?:
3366               5[79]|
3367               [79]5
3368             )|
3369             4(?:
3370               [2-4][1-9]|
3371               5[1-8]|
3372               6[2-8]|
3373               7\d|
3374               81
3375             )|
3376             5(?:
3377               2[45]|
3378               3[35]|
3379               44|
3380               5[1-9]|
3381               65|
3382               77
3383             )|
3384             6[34]6|
3385             727
3386           )\d{4}
3387         </nationalNumberPattern>
3388         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3389         <exampleNumber>2423591234</exampleNumber>
3390       </mobile>
3391       <tollFree>
3392         <!-- 242 300 is a Domestic Toll Free service. -->
3393         <nationalNumberPattern>
3394           242300\d{4}|
3395           8(?:
3396             00|
3397             55|
3398             66|
3399             77|
3400             88
3401           )[2-9]\d{6}
3402         </nationalNumberPattern>
3403         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3404         <exampleNumber>8002123456</exampleNumber>
3405       </tollFree>
3406       <premiumRate>
3407         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3408         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3409         <exampleNumber>9002123456</exampleNumber>
3410       </premiumRate>
3411       <personalNumber>
3412         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
3413         <nationalNumberPattern>
3414           5(?:
3415             00|
3416             33|
3417             44
3418           )[2-9]\d{6}
3419         </nationalNumberPattern>
3420         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3421         <exampleNumber>5002345678</exampleNumber>
3422       </personalNumber>
3423       <emergency>
3424         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_989.html -->
3425         <nationalNumberPattern>91[19]</nationalNumberPattern>
3426         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3427         <exampleNumber>911</exampleNumber>
3428       </emergency>
3429     </territory>
3430
3431     <!-- Bhutan -->
3432     <!-- http://www.itu.int/oth/T0202000019/en -->
3433     <territory id="BT" countryCode="975" internationalPrefix="00">
3434       <availableFormats>
3435         <!-- Format is from
3436              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
3437         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
3438           <leadingDigits>
3439             1|
3440             77
3441           </leadingDigits>
3442           <format>$1 $2 $3 $4</format>
3443         </numberFormat>
3444         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
3445           <leadingDigits>
3446             [2-68]|
3447             7[246]
3448           </leadingDigits>
3449           <format>$1 $2 $3</format>
3450         </numberFormat>
3451       </availableFormats>
3452       <generalDesc>
3453         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
3454         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
3455       </generalDesc>
3456       <fixedLine>
3457         <nationalNumberPattern>
3458           (?:
3459             2[3-6]|
3460             [34][5-7]|
3461             5[236]|
3462             6[2-46]|
3463             7[246]|
3464             8[2-4]
3465           )\d{5}
3466         </nationalNumberPattern>
3467         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
3468         <exampleNumber>2345678</exampleNumber>
3469       </fixedLine>
3470       <mobile>
3471         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
3472              is in use. -->
3473         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
3474         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3475         <exampleNumber>17123456</exampleNumber>
3476       </mobile>
3477       <emergency>
3478         <!-- http://www.rbp.gov.bt/requestpolice.php -->
3479         <!-- http://www.jdwnrh.gov.bt/sfo2011/?page_id=51 -->
3480         <nationalNumberPattern>11[023]</nationalNumberPattern>
3481         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3482         <exampleNumber>113</exampleNumber>
3483       </emergency>
3484       <!-- No information on other types of phone numbers for Bhutan has been found. -->
3485     </territory>
3486
3487     <!-- Botswana -->
3488     <!-- http://www.itu.int/oth/T020200001C/en -->
3489     <territory id="BW" countryCode="267" internationalPrefix="00">
3490       <availableFormats>
3491         <numberFormat pattern="(\d{3})(\d{4})">
3492           <leadingDigits>[2-6]</leadingDigits>
3493           <format>$1 $2</format>
3494         </numberFormat>
3495         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
3496           <leadingDigits>7</leadingDigits>
3497           <format>$1 $2 $3</format>
3498         </numberFormat>
3499         <numberFormat pattern="(90)(\d{5})">
3500           <leadingDigits>9</leadingDigits>
3501           <format>$1 $2</format>
3502         </numberFormat>
3503       </availableFormats>
3504       <generalDesc>
3505         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
3506         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3507       </generalDesc>
3508       <fixedLine>
3509         <nationalNumberPattern>
3510           (?:
3511             2(?:
3512               4[0-48]|
3513               6[0-24]|
3514               9[0578]
3515             )|
3516             3(?:
3517               1[0235-9]|
3518               55|
3519               6\d|
3520               7[01]|
3521               9[0-57]
3522             )|
3523             4(?:
3524               6[03]|
3525               7[1267]|
3526               9[0-5]
3527             )|
3528             5(?:
3529               3[0389]|
3530               4[0489]|
3531               7[1-47]|
3532               88|
3533               9[0-49]
3534             )|
3535             6(?:
3536               2[1-35]|
3537               5[149]|
3538               8[067]
3539             )
3540           )\d{4}
3541         </nationalNumberPattern>
3542         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3543         <exampleNumber>2401234</exampleNumber>
3544       </fixedLine>
3545       <mobile>
3546         <!-- 77[01] has been added after numbers in use have been seen online. -->
3547         <nationalNumberPattern>
3548           7(?:
3549             [1-35]\d{6}|
3550             [46][0-7]\d{5}|
3551             7[01]\d{5}
3552           )
3553         </nationalNumberPattern>
3554         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3555         <exampleNumber>71123456</exampleNumber>
3556       </mobile>
3557       <!-- No reliable information about toll-free numbers can be found; many are written on the
3558            internet like 0800 123 456, but this is not supported by any documentation and no
3559            numbers can be found that actually work. -->
3560       <premiumRate>
3561         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
3562         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3563         <exampleNumber>9012345</exampleNumber>
3564       </premiumRate>
3565       <voip>
3566         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
3567         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3568         <exampleNumber>79101234</exampleNumber>
3569       </voip>
3570       <emergency>
3571         <!-- http://www.gov.bw/en/Ministries%2D%2DAuthorities/Ministries/State-President/Botswana-Police-Service-/About-the-BPS/Toll-Free-Numbers/ -->
3572         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1071.html -->
3573         <nationalNumberPattern>99[789]</nationalNumberPattern>
3574         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3575         <exampleNumber>999</exampleNumber>
3576       </emergency>
3577     </territory>
3578
3579     <!-- Belarus -->
3580     <!-- http://www.eng.beltelecom.by/en/subscribers/phone-codes -->
3581     <!-- Information on national prefix provided by a Belarussian person. -->
3582     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
3583                internationalPrefix="810" nationalPrefixForParsing="80?"
3584                nationalPrefix="8">
3585       <availableFormats>
3586         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3587           pattern="([1-4]\d)(\d{3})(\d{4})">
3588           <leadingDigits>[1-4]</leadingDigits>
3589           <format>$1 $2 $3</format>
3590         </numberFormat>
3591         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3592           pattern="([89]\d{2})(\d{3})(\d{4})">
3593           <leadingDigits>
3594             8[01]|
3595             9
3596           </leadingDigits>
3597           <format>$1 $2 $3</format>
3598         </numberFormat>
3599         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3600           pattern="(8\d{2})(\d{4})(\d{4})">
3601           <leadingDigits>82</leadingDigits>
3602           <format>$1 $2 $3</format>
3603         </numberFormat>
3604       </availableFormats>
3605       <generalDesc>
3606         <nationalNumberPattern>
3607           [1-4]\d{8}|
3608           [89]\d{9,10}
3609         </nationalNumberPattern>
3610         <!-- Numbers are often written without the city code. -->
3611         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
3612       </generalDesc>
3613       <!-- Toll-free and premium rate numbers are not available from abroad. -->
3614       <noInternationalDialling>
3615         <nationalNumberPattern>
3616           8(?:
3617             [01]|
3618             20
3619           )\d{8}|
3620           902\d{7}
3621         </nationalNumberPattern>
3622         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3623         <exampleNumber>82012345678</exampleNumber>
3624       </noInternationalDialling>
3625       <fixedLine>
3626         <nationalNumberPattern>
3627           (?:
3628             1(?:
3629               5(?:
3630                 1[1-5]|
3631                 2\d|
3632                 6[2-4]|
3633                 9[1-7]
3634               )|
3635               6(?:
3636                 [235]\d|
3637                 4[1-7]
3638               )|
3639               7\d{2}
3640             )|
3641             2(?:
3642               1(?:
3643                 [246]\d|
3644                 3[0-35-9]|
3645                 5[1-9]
3646               )|
3647               2(?:
3648                 [235]\d|
3649                 4[0-8]
3650               )|
3651               3(?:
3652                 2\d|
3653                 3[02-79]|
3654                 4[024-7]|
3655                 5[0-7]
3656               )
3657             )
3658           )\d{5}
3659         </nationalNumberPattern>
3660         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3661         <!-- Using test number for Grodno from the plan. -->
3662         <exampleNumber>152450911</exampleNumber>
3663       </fixedLine>
3664       <mobile>
3665         <nationalNumberPattern>
3666           (?:
3667             2(?:
3668               5[5679]|
3669               9[1-9]
3670             )|
3671             33\d|
3672             44\d
3673           )\d{6}
3674         </nationalNumberPattern>
3675         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3676         <!-- Using test number for BelCel from the plan. -->
3677         <exampleNumber>294911911</exampleNumber>
3678       </mobile>
3679       <tollFree>
3680         <!-- Putting Interactive Polling Service (free) here too. -->
3681         <nationalNumberPattern>
3682           8(?:
3683             0[13]|
3684             20\d
3685           )\d{7}
3686         </nationalNumberPattern>
3687         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3688         <exampleNumber>8011234567</exampleNumber>
3689       </tollFree>
3690       <premiumRate>
3691         <!-- Putting Interactive Polling Service (paid) here too. -->
3692         <nationalNumberPattern>
3693           (?:
3694             810|
3695             902
3696           )\d{7}
3697         </nationalNumberPattern>
3698         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3699         <exampleNumber>9021234567</exampleNumber>
3700       </premiumRate>
3701       <emergency>
3702         <nationalNumberPattern>
3703           1(?:
3704             0[123]|
3705             12
3706           )
3707         </nationalNumberPattern>
3708         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3709         <exampleNumber>112</exampleNumber>
3710       </emergency>
3711     </territory>
3712
3713     <!-- Belize -->
3714     <!-- http://www.itu.int/oth/T0202000016/en -->
3715     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
3716          -->
3717     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
3718       <availableFormats>
3719         <numberFormat pattern="(\d{3})(\d{4})">
3720           <leadingDigits>[2-8]</leadingDigits>
3721           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
3722           <format>$1-$2</format>
3723         </numberFormat>
3724         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
3725           <leadingDigits>0</leadingDigits>
3726           <format>$1-$2-$3-$4</format>
3727         </numberFormat>
3728       </availableFormats>
3729       <generalDesc>
3730         <nationalNumberPattern>
3731           [2-8]\d{6}|
3732           0\d{10}
3733         </nationalNumberPattern>
3734         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
3735       </generalDesc>
3736       <fixedLine>
3737         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
3738         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3739         <exampleNumber>2221234</exampleNumber>
3740       </fixedLine>
3741       <mobile>
3742         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
3743              to these numbers or many numbers have been found online. -->
3744         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
3745         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3746         <exampleNumber>6221234</exampleNumber>
3747       </mobile>
3748       <!-- We don't know how these would be dialled internationally - it is possible that they can't
3749            be dialled internationally at all - so we represent the leading 0 as part of the number.
3750            Information from www.belizetelemedia.net. -->
3751       <tollFree>
3752         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
3753         <possibleNumberPattern>\d{11}</possibleNumberPattern>
3754         <exampleNumber>08001234123</exampleNumber>
3755       </tollFree>
3756       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
3757       <emergency>
3758         <nationalNumberPattern>
3759           9(?:
3760             0|
3761             11
3762           )
3763           </nationalNumberPattern>
3764         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
3765         <exampleNumber>911</exampleNumber>
3766       </emergency>
3767     </territory>
3768
3769     <!-- Canada -->
3770     <!-- http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm -->
3771     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1">
3772       <generalDesc>
3773         <!-- NANPA country - uses US formatting rules -->
3774         <nationalNumberPattern>
3775           [2-9]\d{9}|
3776           3\d{6}
3777         </nationalNumberPattern>
3778         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3779       </generalDesc>
3780       <fixedLine>
3781         <nationalNumberPattern>
3782           (?:
3783             2(?:
3784               04|
3785               [23]6|
3786               [48]9|
3787               50
3788             )|
3789             3(?:
3790               06|
3791               43|
3792               65
3793             )|
3794             4(?:
3795               03|
3796               1[68]|
3797               3[178]|
3798               5[06]
3799             )|
3800             5(?:
3801               0[06]|
3802               1[49]|
3803               79|
3804               8[17]
3805             )|
3806             6(?:
3807               0[04]|
3808               13|
3809               39|
3810               47
3811             )|
3812             7(?:
3813               0[059]|
3814               80|
3815               78
3816             )|
3817             8(?:
3818               [06]7|
3819               19|
3820               73
3821             )|
3822             90[25]
3823           )[2-9]\d{6}|
3824           310\d{4}
3825         </nationalNumberPattern>
3826         <exampleNumber>2042345678</exampleNumber>
3827       </fixedLine>
3828       <mobile>
3829         <nationalNumberPattern>
3830           (?:
3831             2(?:
3832               04|
3833               [23]6|
3834               [48]9|
3835               50
3836             )|
3837             3(?:
3838               06|
3839               43|
3840               65
3841             )|
3842             4(?:
3843               03|
3844               1[68]|
3845               3[178]|
3846               5[06]
3847             )|
3848             5(?:
3849               0[06]|
3850               1[49]|
3851               79|
3852               8[17]
3853             )|
3854             6(?:
3855               0[04]|
3856               13|
3857               39|
3858               47
3859             )|
3860             7(?:
3861               0[059]|
3862               80|
3863               78
3864             )|
3865             8(?:
3866               [06]7|
3867               19|
3868               73
3869             )|
3870             90[25]
3871           )[2-9]\d{6}
3872         </nationalNumberPattern>
3873         <exampleNumber>2042345678</exampleNumber>
3874       </mobile>
3875       <tollFree>
3876         <nationalNumberPattern>
3877           8(?:
3878             00|
3879             55|
3880             66|
3881             77|
3882             88
3883           )[2-9]\d{6}|
3884           310\d{4}
3885         </nationalNumberPattern>
3886         <exampleNumber>8002123456</exampleNumber>
3887       </tollFree>
3888       <premiumRate>
3889         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3890         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3891         <exampleNumber>9002123456</exampleNumber>
3892       </premiumRate>
3893       <personalNumber>
3894         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
3895         <nationalNumberPattern>
3896           5(?:
3897             00|
3898             33|
3899             44
3900           )[2-9]\d{6}
3901         </nationalNumberPattern>
3902         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3903         <exampleNumber>5002345678</exampleNumber>
3904       </personalNumber>
3905       <emergency>
3906         <nationalNumberPattern>
3907           112|
3908           911
3909         </nationalNumberPattern>
3910         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3911         <exampleNumber>911</exampleNumber>
3912       </emergency>
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     <!-- http://en.wikipedia.org/wiki/List_of_country_calling_codes -->
3919     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
3920     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
3921                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
3922                nationalPrefix="0">
3923       <!-- Uses AU formatting rules. -->
3924       <!-- General desc and fixed line rules different from Australia. -->
3925       <generalDesc>
3926         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
3927         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3928       </generalDesc>
3929       <fixedLine>
3930         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
3931         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
3932         <exampleNumber>891621234</exampleNumber>
3933       </fixedLine>
3934       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
3935       <mobile>
3936         <nationalNumberPattern>
3937           4(?:
3938             [0-2]\d|
3939             3[0-57-9]|
3940             4[47-9]|
3941             5[0-37-9]|
3942             6[6-9]|
3943             7[07-9]|
3944             8[7-9]
3945           )\d{6}
3946         </nationalNumberPattern>
3947         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3948         <exampleNumber>412345678</exampleNumber>
3949       </mobile>
3950       <tollFree>
3951         <nationalNumberPattern>
3952           1(?:
3953             80(?:
3954               0\d{2}
3955             )?|
3956             3(?:
3957               00\d{2}
3958             )?
3959           )\d{4}
3960         </nationalNumberPattern>
3961         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3962         <exampleNumber>1800123456</exampleNumber>
3963       </tollFree>
3964       <premiumRate>
3965         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
3966         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3967         <exampleNumber>1900123456</exampleNumber>
3968       </premiumRate>
3969       <personalNumber>
3970         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
3971         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3972         <exampleNumber>500123456</exampleNumber>
3973       </personalNumber>
3974       <voip>
3975         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
3976         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3977         <exampleNumber>550123456</exampleNumber>
3978       </voip>
3979       <emergency>
3980         <!-- We assume this is the same as for Australia, since they have the same country code and
3981              share their police force, and no better information can be found. -->
3982         <nationalNumberPattern>
3983           000|
3984           112
3985         </nationalNumberPattern>
3986         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3987         <exampleNumber>112</exampleNumber>
3988       </emergency>
3989     </territory>
3990
3991     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
3992     <!-- http://www.itu.int/oth/T0202000037/en -->
3993     <territory id="CD" countryCode="243" internationalPrefix="00"
3994                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
3995       <availableFormats>
3996         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3997           <leadingDigits>12</leadingDigits>
3998           <format>$1 $2 $3</format>
3999         </numberFormat>
4000         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4001           <leadingDigits>
4002             8[0-2459]|
4003             9
4004           </leadingDigits>
4005           <format>$1 $2 $3</format>
4006         </numberFormat>
4007         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
4008           <leadingDigits>88</leadingDigits>
4009           <format>$1 $2 $3</format>
4010         </numberFormat>
4011         <numberFormat pattern="(\d{2})(\d{5})">
4012           <leadingDigits>[1-6]</leadingDigits>
4013           <format>$1 $2</format>
4014         </numberFormat>
4015       </availableFormats>
4016       <generalDesc>
4017         <nationalNumberPattern>
4018           [2-6]\d{6}|
4019           [18]\d{6,8}|
4020           9\d{8}
4021         </nationalNumberPattern>
4022         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4023       </generalDesc>
4024       <fixedLine>
4025         <nationalNumberPattern>
4026           1(?:
4027             2\d{7}|
4028             \d{6}
4029           )|
4030           [2-6]\d{6}
4031         </nationalNumberPattern>
4032         <exampleNumber>1234567</exampleNumber>
4033       </fixedLine>
4034       <mobile>
4035         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
4036              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
4037              holdings company http://www.timeturnsholdings.com/products does not show a link for
4038              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
4039              tried were valid. If the holdings company does not respond to requests about this
4040              range and unless we receive further information, we will remove this range. -->
4041         <nationalNumberPattern>
4042           8(?:
4043             [0-2459]\d{2}|
4044             8
4045           )\d{5}|
4046           9[7-9]\d{7}
4047         </nationalNumberPattern>
4048         <exampleNumber>991234567</exampleNumber>
4049       </mobile>
4050       <!-- No national emergency numbers were located for Congo. -->
4051     </territory>
4052
4053     <!-- Central African Republic -->
4054     <!-- http://www.itu.int/oth/T0202000028/en -->
4055     <territory id="CF" countryCode="236" internationalPrefix="00">
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       <!-- No emergency numbers information can be found. -->
4078     </territory>
4079
4080     <!-- Congo (Rep. of the) (Brazzaville) -->
4081     <!-- http://www.itu.int/oth/T020200002E/en -->
4082     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
4083       <availableFormats>
4084         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
4085           <leadingDigits>[02]</leadingDigits>
4086           <format>$1 $2 $3</format>
4087         </numberFormat>
4088         <numberFormat pattern="(\d)(\d{4})(\d{4})">
4089           <leadingDigits>8</leadingDigits>
4090           <format>$1 $2 $3</format>
4091         </numberFormat>
4092       </availableFormats>
4093       <generalDesc>
4094         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
4095         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4096       </generalDesc>
4097       <fixedLine>
4098         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
4099         <exampleNumber>222123456</exampleNumber>
4100       </fixedLine>
4101       <mobile>
4102         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
4103         <exampleNumber>061234567</exampleNumber>
4104       </mobile>
4105       <!-- Referred to as a "Green number" in the telephone plan. -->
4106       <tollFree>
4107         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4108         <exampleNumber>800123456</exampleNumber>
4109       </tollFree>
4110       <!-- No emergency numbers information can be found. -->
4111     </territory>
4112
4113     <!-- Switzerland -->
4114     <!-- http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en
4115          under Technical prescriptions: Numbering plan for international carriers -->
4116     <territory id="CH" countryCode="41" internationalPrefix="00"
4117                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG">
4118       <availableFormats>
4119         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
4120           <leadingDigits>
4121             [2-7]|
4122             [89]1
4123           </leadingDigits>
4124           <format>$1 $2 $3 $4</format>
4125         </numberFormat>
4126         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4127           <leadingDigits>
4128             8[047]|
4129             90
4130           </leadingDigits>
4131           <format>$1 $2 $3</format>
4132         </numberFormat>
4133         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
4134           <leadingDigits>860</leadingDigits>
4135           <format>$1 $2 $3 $4 $5</format>
4136         </numberFormat>
4137       </availableFormats>
4138       <generalDesc>
4139         <nationalNumberPattern>
4140           [2-9]\d{8}|
4141           860\d{9}
4142         </nationalNumberPattern>
4143         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
4144       </generalDesc>
4145       <fixedLine>
4146         <nationalNumberPattern>
4147           (?:
4148             2[12467]|
4149             3[1-4]|
4150             4[134]|
4151             5[12568]|
4152             6[12]|
4153             [7-9]1
4154           )\d{7}
4155         </nationalNumberPattern>
4156         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4157         <exampleNumber>212345678</exampleNumber>
4158       </fixedLine>
4159       <mobile>
4160         <nationalNumberPattern>7[46-9]\d{7}</nationalNumberPattern>
4161         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4162         <exampleNumber>741234567</exampleNumber>
4163       </mobile>
4164       <tollFree>
4165         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4166         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4167         <exampleNumber>800123456</exampleNumber>
4168       </tollFree>
4169       <premiumRate>
4170         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
4171         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4172         <exampleNumber>900123456</exampleNumber>
4173       </premiumRate>
4174       <sharedCost>
4175         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
4176         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4177         <exampleNumber>840123456</exampleNumber>
4178       </sharedCost>
4179       <personalNumber>
4180         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
4181         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4182         <exampleNumber>878123456</exampleNumber>
4183       </personalNumber>
4184       <voicemail>
4185         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
4186         <possibleNumberPattern>\d{12}</possibleNumberPattern>
4187         <exampleNumber>860123456789</exampleNumber>
4188       </voicemail>
4189       <emergency>
4190         <nationalNumberPattern>
4191           1(?:
4192             1[278]|
4193             44
4194           )
4195         </nationalNumberPattern>
4196         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4197         <exampleNumber>112</exampleNumber>
4198       </emergency>
4199     </territory>
4200
4201     <!-- Côte d'Ivoire -->
4202     <!-- http://www.itu.int/oth/T0202000031/en -->
4203     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
4204       <availableFormats>
4205         <!-- Using format from online yellow pages over format implied in national numbering plan.
4206              -->
4207         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4208           <format>$1 $2 $3 $4</format>
4209         </numberFormat>
4210       </availableFormats>
4211       <generalDesc>
4212         <nationalNumberPattern>[02-6]\d{7}</nationalNumberPattern>
4213         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4214       </generalDesc>
4215       <fixedLine>
4216         <nationalNumberPattern>
4217           (?:
4218             2(?:
4219               0[023]|
4220               1[02357]|
4221               [23][045]|
4222               4[03-5]
4223             )|
4224             3(?:
4225               0[06]|
4226               1[069]|
4227               [2-4][07]|
4228               5[09]|
4229               6[08]
4230             )
4231           )\d{5}
4232         </nationalNumberPattern>
4233         <exampleNumber>21234567</exampleNumber>
4234       </fixedLine>
4235       <mobile>
4236         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 65 because SMS messages have been
4237              successfully delivered. Supported by numbers found on the internet. -->
4238         <nationalNumberPattern>
4239           (?:
4240             0[1-9]|
4241             4[0-24-9]|
4242             5[05-9]|
4243             6[05679]
4244           )\d{6}
4245         </nationalNumberPattern>
4246         <exampleNumber>01234567</exampleNumber>
4247       </mobile>
4248       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
4249       <emergency>
4250         <nationalNumberPattern>
4251           1(?:
4252             1[01]|
4253             [78]0
4254           )
4255         </nationalNumberPattern>
4256         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4257         <exampleNumber>110</exampleNumber>
4258       </emergency>
4259     </territory>
4260
4261     <!-- Cook Islands -->
4262     <!-- http://www.itu.int/oth/T020200002F/en -->
4263     <territory id="CK" countryCode="682" internationalPrefix="00">
4264       <availableFormats>
4265         <numberFormat pattern="(\d{2})(\d{3})">
4266           <format>$1 $2</format>
4267         </numberFormat>
4268       </availableFormats>
4269       <generalDesc>
4270         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
4271         <possibleNumberPattern>\d{5}</possibleNumberPattern>
4272       </generalDesc>
4273       <fixedLine>
4274         <nationalNumberPattern>
4275           (?:
4276             2\d|
4277             3[13-7]|
4278             4[1-5]
4279           )\d{3}
4280         </nationalNumberPattern>
4281         <exampleNumber>21234</exampleNumber>
4282       </fixedLine>
4283       <mobile>
4284         <nationalNumberPattern>
4285           (?:
4286             5[0-68]|
4287             7\d
4288           )\d{3}
4289         </nationalNumberPattern>
4290         <exampleNumber>71234</exampleNumber>
4291       </mobile>
4292       <emergency>
4293         <!-- http://www.frommers.com/destinations/cookislands/3036020157.html and other tourist
4294              sites agree on the following numbers. -->
4295         <nationalNumberPattern>99[689]</nationalNumberPattern>
4296         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4297         <exampleNumber>998</exampleNumber>
4298       </emergency>
4299     </territory>
4300
4301     <!-- Chile -->
4302     <!-- http://www.itu.int/oth/T020200002A/en -->
4303     <!-- http://en.wikipedia.org/wiki/%2B56 -->
4304     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
4305     <territory id="CL" countryCode="56"
4306                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
4307                nationalPrefix="0"
4308                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
4309                nationalPrefixFormattingRule="$NP$FG">
4310       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
4311       we strip here. National destinations may be dialled with a carrier if they are not local so
4312       we extract these carrier codes as well. -->
4313       <availableFormats>
4314         <numberFormat pattern="(2)(\d{3,4})(\d{4})"
4315           nationalPrefixFormattingRule="($FG)"
4316           carrierCodeFormattingRule="$CC ($FG)">
4317           <leadingDigits>2</leadingDigits>
4318           <format>$1 $2 $3</format>
4319         </numberFormat>
4320         <numberFormat pattern="(\d{2})(\d{2,3})(\d{4})"
4321           nationalPrefixFormattingRule="($FG)"
4322           carrierCodeFormattingRule="$CC ($FG)">
4323           <leadingDigits>
4324             [357]|
4325             4[1-35]|
4326             6[13-57]
4327           </leadingDigits>
4328           <format>$1 $2 $3</format>
4329         </numberFormat>
4330         <numberFormat pattern="(9)([5-9]\d{3})(\d{4})">
4331           <leadingDigits>9</leadingDigits>
4332           <format>$1 $2 $3</format>
4333         </numberFormat>
4334         <numberFormat pattern="(44)(\d{3})(\d{4})">
4335           <leadingDigits>44</leadingDigits>
4336           <format>$1 $2 $3</format>
4337         </numberFormat>
4338         <numberFormat nationalPrefixFormattingRule="$FG"
4339           pattern="([68]00)(\d{3})(\d{3,4})">
4340           <leadingDigits>
4341             60|
4342             8
4343           </leadingDigits>
4344           <format>$1 $2 $3</format>
4345         </numberFormat>
4346         <numberFormat nationalPrefixFormattingRule="$FG"
4347           pattern="(600)(\d{3})(\d{2})(\d{3})">
4348           <leadingDigits>60</leadingDigits>
4349           <format>$1 $2 $3 $4</format>
4350         </numberFormat>
4351         <numberFormat nationalPrefixFormattingRule="$FG"
4352           pattern="(1230)(\d{3})(\d{4})">
4353           <leadingDigits>1</leadingDigits>
4354           <format>$1 $2 $3</format>
4355         </numberFormat>
4356       </availableFormats>
4357       <generalDesc>
4358         <nationalNumberPattern>
4359           (?:
4360             [2-9]|
4361             600|
4362             123
4363           )\d{7,8}
4364         </nationalNumberPattern>
4365         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
4366       </generalDesc>
4367       <noInternationalDialling>
4368         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4369         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4370         <exampleNumber>6001234567</exampleNumber>
4371       </noInternationalDialling>
4372       <fixedLine>
4373         <!-- Nov 2012: The prefixing of '2' to all fixed line numbers, which is being rolled
4374              out between October 2012 and June 2013 means that temporarily the regular
4375              expressions for areas will get very messy as some adopt the leading '2' but
4376              others do not. Eventually when the conversion is complete things should simplify
4377              again. Note that area codes 32 or 41 were transitioned in 2007.
4378              IMPORTANT: A literal reading of the transition rules suggest that all numbers get
4379              a '2' prefix, but some numbers are already 7 digits long (but these always start
4380              with a '2'). The prefixing seems almost certain to only apply to 6-digit numbers and
4381              will unify all fixed line numbers to be 9 digits in total. The fact that the new seven
4382              digit numbers currently only start with a '2' is likely to change in the future.
4383              Note also that at some stage it is likely that Santiago numbers (area code '2') will
4384              have a prefix of "2\d" and not "22" (it's like 10 2-digit area codes wrapped into one).
4385              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
4386                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
4387              -->
4388         <nationalNumberPattern>
4389           (?:
4390             [23]2|
4391             41|
4392             58
4393           )\d{7}|
4394           (?:
4395             3[3-5]|
4396             4[235]|
4397             5[1-357]|
4398             6[13-57]|
4399             7[1-35]
4400           )\d{6,7}
4401         </nationalNumberPattern>
4402         <!-- Area codes do not need to be dialled when dialling within the same area, so the
4403              smallest possible number is length 6. -->
4404         <!-- Nov 2012: The prefixing of '2' to all 6-digit fixed line numbers means that while
4405              the maximum possible number length stays as 9, the minimum length will become '7'
4406              when all area codes are migrated. -->
4407         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
4408         <exampleNumber>221234567</exampleNumber>
4409       </fixedLine>
4410       <mobile>
4411         <nationalNumberPattern>9[5-9]\d{7}</nationalNumberPattern>
4412         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4413         <exampleNumber>961234567</exampleNumber>
4414       </mobile>
4415       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
4416            from a definitive source. -->
4417       <tollFree>
4418         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
4419         <nationalNumberPattern>
4420           800\d{6}|
4421           1230\d{7}
4422         </nationalNumberPattern>
4423         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
4424         <exampleNumber>800123456</exampleNumber>
4425       </tollFree>
4426       <sharedCost>
4427         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
4428         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4429         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4430         <exampleNumber>6001234567</exampleNumber>
4431       </sharedCost>
4432       <voip>
4433         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
4434         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4435         <exampleNumber>441234567</exampleNumber>
4436       </voip>
4437       <emergency>
4438         <nationalNumberPattern>13[123]</nationalNumberPattern>
4439         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4440         <exampleNumber>133</exampleNumber>
4441       </emergency>
4442     </territory>
4443
4444     <!-- Cameroon -->
4445     <!-- http://www.itu.int/oth/T0202000024/en -->
4446     <territory id="CM" countryCode="237" internationalPrefix="00">
4447       <availableFormats>
4448         <!-- Formatting on the internet is consistently with the first 2 extracted, and usually in
4449              the same format as France (all 2 digit groups) so we use this instead of the guidance
4450              of the national numbering plan (which has 1 3 2 2 and 4 4 as its two formatting
4451              examples.) -->
4452         <numberFormat pattern="([237-9]\d)(\d{2})(\d{2})(\d{2})">
4453           <leadingDigits>
4454             [2379]|
4455             88
4456           </leadingDigits>
4457           <format>$1 $2 $3 $4</format>
4458         </numberFormat>
4459         <numberFormat pattern="(800)(\d{2})(\d{3})">
4460           <leadingDigits>80</leadingDigits>
4461           <format>$1 $2 $3</format>
4462         </numberFormat>
4463       </availableFormats>
4464       <generalDesc>
4465         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
4466         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4467       </generalDesc>
4468       <fixedLine>
4469         <!-- Technically, the numbers are required only to start with a 2 or a 3, but all numbers at
4470              the moment start with 22 or 33 since they have been migrated from seven digit numbers
4471              beginning with these numbers. This rule should be relaxed if/when we start getting
4472              numbers beginning in other ways. -->
4473         <nationalNumberPattern>
4474           (?:
4475             22|
4476             33
4477           )\d{6}
4478         </nationalNumberPattern>
4479         <exampleNumber>22123456</exampleNumber>
4480       </fixedLine>
4481       <mobile>
4482         <nationalNumberPattern>[79]\d{7}</nationalNumberPattern>
4483         <exampleNumber>71234567</exampleNumber>
4484       </mobile>
4485       <tollFree>
4486         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
4487         <exampleNumber>80012345</exampleNumber>
4488       </tollFree>
4489       <premiumRate>
4490         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
4491              with 88 (usually 880). No information can be found as to whether these are premium rate
4492              or shared cost. -->
4493         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
4494         <exampleNumber>88012345</exampleNumber>
4495       </premiumRate>
4496       <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/cameroun_12221/index.html -->
4497       <emergency>
4498         <!-- Numbers must be prefixed with a 1 when dialled from a mobile. -->
4499         <nationalNumberPattern>1?1[37]</nationalNumberPattern>
4500         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
4501         <exampleNumber>113</exampleNumber>
4502       </emergency>
4503     </territory>
4504
4505     <!-- China -->
4506     <!-- http://www.itu.int/oth/T020200002B/en -->
4507     <territory id="CN" countryCode="86" internationalPrefix="(1[1279]\d{3})?00"
4508                preferredInternationalPrefix="00" nationalPrefix="0"
4509                nationalPrefixForParsing="(1[1279]\d{3})|0">
4510       <availableFormats>
4511         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
4512                       nationalPrefixOptionalWhenFormatting="true"
4513                       carrierCodeFormattingRule="$CC $FG">
4514           <leadingDigits>80[2678]</leadingDigits>
4515           <format>$1 $2</format>
4516         </numberFormat>
4517         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
4518           <leadingDigits>[48]00</leadingDigits>
4519           <format>$1 $2 $3</format>
4520         </numberFormat>
4521         <!-- 95xxx shared cost numbers. Without this rule, the numbers will be formatted
4522              incorrectly by the AsYouTypeFormatter because they overlap with area code 095x.
4523              Note although ITU says the format is more like 95 xxx, in reality no space is used
4524              when writing such numbers in China -->
4525         <numberFormat pattern="(\d{5})">
4526           <leadingDigits>95</leadingDigits>
4527           <format>$1</format>
4528         </numberFormat>
4529         <!-- Local numbers -->
4530         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
4531              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
4532              people frequently store them in their cellphones. It has to stay before formatting
4533              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
4534              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
4535         <numberFormat pattern="(\d{3,4})(\d{4})">
4536           <leadingDigits>[2-9]</leadingDigits>
4537           <format>$1 $2</format>
4538           <intlFormat>NA</intlFormat>
4539         </numberFormat>
4540         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
4541                       nationalPrefixOptionalWhenFormatting="true"
4542                       carrierCodeFormattingRule="$CC $FG">
4543           <leadingDigits>21</leadingDigits>
4544           <format>$1 $2 $3</format>
4545         </numberFormat>
4546         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
4547                       nationalPrefixOptionalWhenFormatting="true"
4548                       carrierCodeFormattingRule="$CC $FG">
4549           <leadingDigits>
4550             10[1-9]|
4551             2[02-9]
4552           </leadingDigits>
4553           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
4554           <leadingDigits>
4555             10[1-9]|
4556             2[02-9]
4557           </leadingDigits>
4558           <leadingDigits>
4559             10(?:
4560               [1-79]|
4561               8(?:
4562                 [1-9]|
4563                 0[1-9]
4564               )
4565             )|
4566             2[02-9]
4567           </leadingDigits>
4568           <format>$1 $2 $3</format>
4569         </numberFormat>
4570         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
4571                       nationalPrefixOptionalWhenFormatting="true"
4572                       carrierCodeFormattingRule="$CC $FG">
4573           <leadingDigits>
4574             3(?:
4575               11|
4576               7[179]
4577             )|
4578             4(?:
4579               [15]1|
4580               3[12]
4581             )|
4582             5(?:
4583               1|
4584               2[37]|
4585               3[12]|
4586               51|
4587               7[13-79]|
4588               9[15]
4589             )|
4590             7(?:
4591               31|
4592               5[457]|
4593               6[09]|
4594               91
4595             )|
4596             8(?:
4597               71|
4598               98
4599             )
4600           </leadingDigits>
4601           <format>$1 $2 $3</format>
4602         </numberFormat>
4603         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
4604                       nationalPrefixOptionalWhenFormatting="true"
4605                       carrierCodeFormattingRule="$CC $FG">
4606           <leadingDigits>
4607             3(?:
4608               1[02-9]|
4609               35|
4610               49|
4611               5|
4612               7[02-68]|
4613               9[1-68]
4614             )|
4615             4(?:
4616               1[02-9]|
4617               2[179]|
4618               [35][2-9]|
4619               6[4789]|
4620               7\d|
4621               8[23]
4622             )|
4623             5(?:
4624               3[03-9]|
4625               4[36]|
4626               5[02-9]|
4627               6[1-46]|
4628               7[028]|
4629               80|
4630               9[2-46-9]
4631             )|
4632             6(?:
4633               3[1-5]|
4634               6[0238]|
4635               9[12]
4636             )|
4637             7(?:
4638               01|
4639               [1579]|
4640               2[248]|
4641               3[04-9]|
4642               4[3-6]|
4643               6[2368]
4644             )|
4645             8(?:
4646               1[236-8]|
4647               2[5-7]|
4648               3|
4649               5[1-9]|
4650               7[02-9]|
4651               8[3678]|
4652               9[1-7]
4653             )|
4654             9(?:
4655               0[1-3689]|
4656               1[1-79]|
4657               [379]|
4658               4[13]|
4659               5[1-5]
4660             )
4661           </leadingDigits>
4662           <format>$1 $2 $3</format>
4663         </numberFormat>
4664         <numberFormat pattern="(1[3-58]\d)(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
4665           <leadingDigits>1[3-58]</leadingDigits>
4666           <format>$1 $2 $3</format>
4667         </numberFormat>
4668         <numberFormat pattern="(10800)(\d{3})(\d{4})">
4669           <leadingDigits>108</leadingDigits>
4670           <leadingDigits>1080</leadingDigits>
4671           <leadingDigits>10800</leadingDigits>
4672           <format>$1 $2 $3</format>
4673         </numberFormat>
4674       </availableFormats>
4675       <generalDesc>
4676         <nationalNumberPattern>
4677           [1-7]\d{7,11}|
4678           8[0-357-9]\d{6,9}|
4679           9(?:
4680             5\d{3}|
4681             \d{9}
4682           )
4683         </nationalNumberPattern>
4684         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
4685       </generalDesc>
4686       <noInternationalDialling>
4687         <!-- 95xxx numbers have been verified to be unreachable from overseas by placing actual
4688              calls. -->
4689         <nationalNumberPattern>
4690           (?:
4691             4|
4692             (?:
4693               10
4694             )?8
4695           )00\d{7}|
4696           95\d{3}
4697         </nationalNumberPattern>
4698         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
4699         <exampleNumber>4001234567</exampleNumber>
4700       </noInternationalDialling>
4701       <fixedLine>
4702         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
4703              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
4704              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
4705              in the ITU data. -->
4706         <nationalNumberPattern>
4707           21\d{8,10}|
4708           (?:
4709             10|
4710             2[02-57-9]|
4711             3(?:
4712               11|
4713               7[179]
4714             )|
4715             4(?:
4716               [15]1|
4717               3[12]
4718             )|
4719             5(?:
4720               1\d|
4721               2[37]|
4722               3[12]|
4723               51|
4724               7[13-79]|
4725               9[15]
4726             )|
4727             7(?:
4728               31|
4729               5[457]|
4730               6[09]|
4731               91
4732             )|
4733             8(?:
4734               71|
4735               98
4736             )
4737           )\d{8}|
4738           (?:
4739             3(?:
4740               1[02-9]|
4741               35|
4742               49|
4743               5\d|
4744               7[02-68]|
4745               9[1-68]
4746             )|
4747             4(?:
4748               1[02-9]|
4749               2[179]|
4750               3[3-9]|
4751               5[2-9]|
4752               6[4789]|
4753               7\d|
4754               8[23]
4755             )|
4756             5(?:
4757               3[03-9]|
4758               4[36]|
4759               5[02-9]|
4760               6[1-46]|
4761               7[028]|
4762               80|
4763               9[2-46-9]
4764             )|
4765             6(?:
4766               3[1-5]|
4767               6[0238]|
4768               9[12]
4769             )|
4770             7(?:
4771               01|
4772               [17]\d|
4773               2[248]|
4774               3[04-9]|
4775               4[3-6]|
4776               5[0-3689]|
4777               6[2368]|
4778               9[02-9]
4779             )|
4780             8(?:
4781               1[236-8]|
4782               2[5-7]|
4783               3\d|
4784               5[1-9]|
4785               7[02-9]|
4786               8[3678]|
4787               9[1-7]
4788             )|
4789             9(?:
4790               0[1-3689]|
4791               1[1-79]|
4792               [379]\d|
4793               4[13]|
4794               5[1-5]
4795             )
4796           )\d{7}|
4797           80(?:
4798             29|
4799             6[03578]|
4800             7[018]|
4801             81
4802           )\d{4}
4803         </nationalNumberPattern>
4804         <exampleNumber>1012345678</exampleNumber>
4805       </fixedLine>
4806       <mobile>
4807         <nationalNumberPattern>
4808           1(?:
4809             3\d|
4810             4[57]|
4811             [58][0-35-9]
4812           )\d{8}
4813         </nationalNumberPattern>
4814         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4815         <exampleNumber>13123456789</exampleNumber>
4816       </mobile>
4817       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
4818            number plan, and do not seem to have been standardized. The information below is
4819            collected from searching the web. -->
4820       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
4821       <tollFree>
4822         <nationalNumberPattern>
4823           (?:
4824             10
4825           )?800\d{7}
4826         </nationalNumberPattern>
4827         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4828         <exampleNumber>8001234567</exampleNumber>
4829       </tollFree>
4830       <premiumRate>
4831         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
4832         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4833         <exampleNumber>16812345</exampleNumber>
4834       </premiumRate>
4835       <sharedCost>
4836         <!-- 95xxx numbers are covered by the ITU doc, but the following doc contains more info:
4837              http://baike.baidu.com/view/3269670.htm -->
4838         <nationalNumberPattern>
4839           400\d{7}|
4840           95\d{3}
4841         </nationalNumberPattern>
4842         <possibleNumberPattern>\d{5}(?:\d{5})?</possibleNumberPattern>
4843         <exampleNumber>4001234567</exampleNumber>
4844       </sharedCost>
4845       <emergency>
4846         <nationalNumberPattern>
4847           1(?:
4848             1[09]|
4849             20
4850           )
4851         </nationalNumberPattern>
4852         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4853         <exampleNumber>119</exampleNumber>
4854       </emergency>
4855     </territory>
4856
4857     <!-- Colombia -->
4858     <!-- http://www.itu.int/oth/T020200002C/en -->
4859     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia -->
4860     <territory id="CO" countryCode="57" internationalPrefix="00[579]|#555|#999"
4861                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?">
4862       <availableFormats>
4863         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
4864           nationalPrefixFormattingRule="($FG)">
4865           <leadingDigits>
4866             1(?:
4867               8[2-9]|
4868               9[0-3]|
4869               [2-7]
4870             )|
4871             [24-8]
4872           </leadingDigits>
4873           <leadingDigits>
4874             1(?:
4875               8[2-9]|
4876               9(?:
4877                 09|
4878                 [1-3]
4879               )|
4880               [2-7]
4881             )|
4882             [24-8]
4883           </leadingDigits>
4884           <format>$1 $2</format>
4885         </numberFormat>
4886         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
4887           <leadingDigits>3</leadingDigits>
4888           <format>$1 $2</format>
4889         </numberFormat>
4890         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
4891           <leadingDigits>
4892             1(?:
4893               80|
4894               9[04]
4895             )
4896           </leadingDigits>
4897           <leadingDigits>
4898             1(?:
4899               800|
4900               9(?:
4901                 0[01]|
4902                 4[78]
4903               )
4904             )
4905           </leadingDigits>
4906           <format>$1-$2-$3</format>
4907           <intlFormat>$1 $2 $3</intlFormat>
4908         </numberFormat>
4909       </availableFormats>
4910       <generalDesc>
4911         <nationalNumberPattern>
4912           (?:
4913             [13]\d{0,3}|
4914             [24-8]
4915           )\d{7}
4916         </nationalNumberPattern>
4917         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4918       </generalDesc>
4919       <fixedLine>
4920         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
4921         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4922         <exampleNumber>12345678</exampleNumber>
4923       </fixedLine>
4924       <mobile>
4925         <!-- Virgin Mobile Colombia have reported that they are now using the 319 prefix. -->
4926         <nationalNumberPattern>
4927           3(?:
4928             0[0-24]|
4929             1\d|
4930             2[01]
4931           )\d{7}
4932         </nationalNumberPattern>
4933         <possibleNumberPattern>\d{10}</possibleNumberPattern>
4934         <exampleNumber>3211234567</exampleNumber>
4935       </mobile>
4936       <tollFree>
4937         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
4938         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4939         <exampleNumber>18001234567</exampleNumber>
4940       </tollFree>
4941       <premiumRate>
4942         <nationalNumberPattern>
4943           19(?:
4944             0[01]|
4945             4[78]
4946           )\d{7}
4947         </nationalNumberPattern>
4948         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4949         <exampleNumber>19001234567</exampleNumber>
4950       </premiumRate>
4951       <emergency>
4952         <nationalNumberPattern>
4953           1(?:
4954             1[29]|
4955             23|
4956             32|
4957             56
4958           )
4959         </nationalNumberPattern>
4960         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4961         <exampleNumber>112</exampleNumber>
4962       </emergency>
4963     </territory>
4964
4965     <!-- Costa Rica -->
4966     <!-- http://www.itu.int/oth/T0202000030/en -->
4967     <territory id="CR" countryCode="506" internationalPrefix="00"
4968                nationalPrefixForParsing="(19(?:0[0-2468]|19|20|66|77))"
4969                carrierCodeFormattingRule="$CC $FG">
4970       <availableFormats>
4971         <numberFormat pattern="(\d{4})(\d{4})">
4972           <leadingDigits>
4973             [24-7]|
4974             8[3-9]
4975           </leadingDigits>
4976           <format>$1 $2</format>
4977         </numberFormat>
4978         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
4979           <leadingDigits>[89]0</leadingDigits>
4980           <format>$1-$2-$3</format>
4981         </numberFormat>
4982       </availableFormats>
4983       <generalDesc>
4984         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
4985         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
4986       </generalDesc>
4987       <fixedLine>
4988         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
4989         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4990         <exampleNumber>22123456</exampleNumber>
4991       </fixedLine>
4992       <mobile>
4993         <nationalNumberPattern>
4994           5(?:
4995             0[0-4]|
4996             7[01]
4997           )\d{5}|
4998           [67][0-2]\d{6}|
4999           8[3-9]\d{6}
5000         </nationalNumberPattern>
5001         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5002         <exampleNumber>83123456</exampleNumber>
5003       </mobile>
5004       <tollFree>
5005         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
5006         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5007         <exampleNumber>8001234567</exampleNumber>
5008       </tollFree>
5009       <premiumRate>
5010         <!-- Includes "mass calls" numbers with prefix 905. -->
5011         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
5012         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5013         <exampleNumber>9001234567</exampleNumber>
5014       </premiumRate>
5015       <voip>
5016         <!-- Including trunking service numbers starting with 5100. -->
5017         <nationalNumberPattern>
5018           210[0-6]\d{4}|
5019           4(?:
5020             0(?:
5021               [04]0\d{4}|
5022               10[0-3]\d{3}|
5023               2(?:
5024                 00\d|
5025                 900
5026               )\d{2}|
5027               3[01]\d{4}|
5028               5\d{5}|
5029               70[01]\d{3}|
5030               8[0-2]\d{4}
5031             )|
5032             1[01]\d{5}|
5033             20[0-3]\d{4}|
5034             400\d{4}|
5035             70[0-2]\d{4}
5036           )|
5037           5100\d{4}
5038         </nationalNumberPattern>
5039         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5040         <exampleNumber>40001234</exampleNumber>
5041       </voip>
5042       <emergency>
5043         <nationalNumberPattern>
5044           112|
5045           911
5046         </nationalNumberPattern>
5047         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5048         <exampleNumber>911</exampleNumber>
5049       </emergency>
5050     </territory>
5051
5052     <!-- Cuba -->
5053     <!-- www.itu.int/oth/T0202000033/en -->
5054     <territory id="CU" countryCode="53" internationalPrefix="119"
5055                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
5056       <availableFormats>
5057         <numberFormat pattern="(\d)(\d{6,7})">
5058           <leadingDigits>7</leadingDigits>
5059           <format>$1 $2</format>
5060         </numberFormat>
5061         <numberFormat pattern="(\d{2})(\d{4,6})">
5062           <leadingDigits>[2-4]</leadingDigits>
5063           <format>$1 $2</format>
5064         </numberFormat>
5065         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5066           <leadingDigits>5</leadingDigits>
5067           <format>$1 $2</format>
5068         </numberFormat>
5069       </availableFormats>
5070       <generalDesc>
5071         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
5072         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
5073       </generalDesc>
5074       <fixedLine>
5075         <nationalNumberPattern>
5076           2[1-4]\d{5,6}|
5077           3(?:
5078             1\d{6}|
5079             [23]\d{4,6}
5080           )|
5081           4(?:
5082             [125]\d{5,6}|
5083             [36]\d{6}|
5084             [78]\d{4,6}
5085           )|
5086           7\d{6,7}
5087         </nationalNumberPattern>
5088         <exampleNumber>71234567</exampleNumber>
5089       </fixedLine>
5090       <mobile>
5091         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
5092         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5093         <exampleNumber>51234567</exampleNumber>
5094       </mobile>
5095       <emergency>
5096         <nationalNumberPattern>10[456]</nationalNumberPattern>
5097         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5098         <exampleNumber>106</exampleNumber>
5099       </emergency>
5100     </territory>
5101
5102     <!-- Cape Verde -->
5103     <!-- http://www.itu.int/oth/T0202000026/en -->
5104     <territory id="CV" countryCode="238" internationalPrefix="0">
5105       <availableFormats>
5106         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
5107           <format>$1 $2 $3</format>
5108         </numberFormat>
5109       </availableFormats>
5110       <generalDesc>
5111         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
5112         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5113       </generalDesc>
5114       <fixedLine>
5115         <nationalNumberPattern>
5116           2(?:
5117             2[1-7]|
5118             3[0-8]|
5119             4[12]|
5120             5[1256]|
5121             6\d|
5122             7[1-3]|
5123             8[1-5]
5124           )\d{4}
5125         </nationalNumberPattern>
5126         <exampleNumber>2211234</exampleNumber>
5127       </fixedLine>
5128       <mobile>
5129         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
5130              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
5131              example, and there are plenty of numbers on the internet that start with these
5132              prefixes. -->
5133         <nationalNumberPattern>
5134           (?:
5135             9\d|
5136             59
5137           )\d{5}
5138         </nationalNumberPattern>
5139         <exampleNumber>9911234</exampleNumber>
5140       </mobile>
5141       <emergency>
5142         <!-- http://www.capeverde.com/travel-tips/safety.html -->
5143         <nationalNumberPattern>13[012]</nationalNumberPattern>
5144         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5145         <exampleNumber>132</exampleNumber>
5146       </emergency>
5147     </territory>
5148
5149     <!-- Curaçao -->
5150     <!-- http://www.itu.int/oth/T02020000F5/en -->
5151     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
5152       <!-- All the formatting patterns for country-code 599 are here. -->
5153       <availableFormats>
5154         <numberFormat pattern="(\d{3})(\d{4})">
5155           <leadingDigits>[13-7]</leadingDigits>
5156           <format>$1 $2</format>
5157         </numberFormat>
5158         <numberFormat pattern="(9)(\d{3})(\d{4})">
5159           <leadingDigits>9</leadingDigits>
5160           <format>$1 $2 $3</format>
5161         </numberFormat>
5162       </availableFormats>
5163       <generalDesc>
5164         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
5165         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
5166       </generalDesc>
5167       <fixedLine>
5168         <nationalNumberPattern>
5169           9(?:
5170             [48]\d{2}|
5171             50\d|
5172             7(?:
5173               2[0-2]|
5174               [34]\d|
5175               6[35-7]|
5176               77
5177             )
5178           )\d{4}
5179         </nationalNumberPattern>
5180         <exampleNumber>94151234</exampleNumber>
5181       </fixedLine>
5182       <mobile>
5183         <nationalNumberPattern>
5184           9(?:
5185             5(?:
5186               [1246]\d|
5187               3[01]
5188             )|
5189             6(?:
5190               [1679]\d|
5191               3[01]
5192             )
5193           )\d{4}
5194         </nationalNumberPattern>
5195         <exampleNumber>95181234</exampleNumber>
5196       </mobile>
5197       <pager>
5198         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
5199         <exampleNumber>95581234</exampleNumber>
5200       </pager>
5201       <sharedCost>
5202         <!-- Value-added services are lumped together under shared cost, since we are not sure
5203              exactly what they are. -->
5204         <nationalNumberPattern>
5205           (?:
5206             10|
5207             69
5208           )\d{5}
5209         </nationalNumberPattern>
5210         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5211         <exampleNumber>1011234</exampleNumber>
5212       </sharedCost>
5213       <emergency>
5214         <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
5215         <nationalNumberPattern>
5216           112|
5217           911
5218         </nationalNumberPattern>
5219         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5220         <exampleNumber>112</exampleNumber>
5221       </emergency>
5222     </territory>
5223
5224     <!-- Cyprus -->
5225     <!-- http://www.itu.int/oth/T0202000034/en -->
5226     <territory id="CY" countryCode="357" internationalPrefix="00">
5227       <availableFormats>
5228         <!-- Format from http://www.cyprusyellowpages.com/-->
5229         <numberFormat pattern="(\d{2})(\d{6})">
5230           <format>$1 $2</format>
5231         </numberFormat>
5232       </availableFormats>
5233       <generalDesc>
5234         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
5235         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5236       </generalDesc>
5237       <fixedLine>
5238         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
5239         <exampleNumber>22345678</exampleNumber>
5240       </fixedLine>
5241       <mobile>
5242         <!-- Includes paging numbers (they are mixed into the same block). -->
5243         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
5244         <exampleNumber>96123456</exampleNumber>
5245       </mobile>
5246       <tollFree>
5247         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
5248         <exampleNumber>80001234</exampleNumber>
5249       </tollFree>
5250       <premiumRate>
5251         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
5252         <exampleNumber>90012345</exampleNumber>
5253       </premiumRate>
5254       <sharedCost>
5255         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
5256         <exampleNumber>80112345</exampleNumber>
5257       </sharedCost>
5258       <personalNumber>
5259         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
5260         <exampleNumber>70012345</exampleNumber>
5261       </personalNumber>
5262       <uan>
5263         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
5264         <nationalNumberPattern>
5265           (?:
5266             50|
5267             77
5268           )\d{6}
5269         </nationalNumberPattern>
5270         <exampleNumber>77123456</exampleNumber>
5271       </uan>
5272       <emergency>
5273         <nationalNumberPattern>
5274           1(?:
5275             12|
5276             99
5277           )
5278         </nationalNumberPattern>
5279         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5280         <exampleNumber>112</exampleNumber>
5281       </emergency>
5282     </territory>
5283
5284     <!-- Christmas Islands -->
5285     <!-- Metadata shared with Australia. -->
5286     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
5287     <!-- http://en.wikipedia.org/wiki/List_of_country_calling_codes -->
5288     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
5289     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
5290                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
5291                nationalPrefix="0">
5292       <!-- Uses AU formatting rules. -->
5293       <!-- General desc and fixed line rules different from Australia. -->
5294       <generalDesc>
5295         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
5296         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5297       </generalDesc>
5298       <fixedLine>
5299         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
5300         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
5301         <exampleNumber>891641234</exampleNumber>
5302       </fixedLine>
5303       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5304       <mobile>
5305         <nationalNumberPattern>
5306           4(?:
5307             [0-2]\d|
5308             3[0-57-9]|
5309             4[47-9]|
5310             5[0-37-9]|
5311             6[6-9]|
5312             7[07-9]|
5313             8[7-9]
5314           )\d{6}
5315         </nationalNumberPattern>
5316         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5317         <exampleNumber>412345678</exampleNumber>
5318       </mobile>
5319       <tollFree>
5320         <nationalNumberPattern>
5321           1(?:
5322             80(?:
5323               0\d{2}
5324             )?|
5325             3(?:
5326               00\d{2}
5327             )?
5328           )\d{4}
5329         </nationalNumberPattern>
5330         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5331         <exampleNumber>1800123456</exampleNumber>
5332       </tollFree>
5333       <premiumRate>
5334         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
5335         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5336         <exampleNumber>1900123456</exampleNumber>
5337       </premiumRate>
5338       <personalNumber>
5339         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
5340         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5341         <exampleNumber>500123456</exampleNumber>
5342       </personalNumber>
5343       <voip>
5344         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
5345         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5346         <exampleNumber>550123456</exampleNumber>
5347       </voip>
5348       <emergency>
5349         <!-- We assume this is the same as for Australia, since they have the same country code and
5350              share their police force, and no better information can be found. -->
5351         <nationalNumberPattern>
5352           000|
5353           112
5354         </nationalNumberPattern>
5355         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5356         <exampleNumber>112</exampleNumber>
5357       </emergency>
5358     </territory>
5359
5360     <!-- Czech Rep. -->
5361     <!-- http://www.itu.int/oth/T0202000035/en -->
5362     <!-- http://en.wikipedia.org/wiki/%2B420 -->
5363     <territory id="CZ" countryCode="420" internationalPrefix="00">
5364       <availableFormats>
5365         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
5366           <leadingDigits>
5367             [2-8]|
5368             9[015-7]
5369           </leadingDigits>
5370           <format>$1 $2 $3</format>
5371         </numberFormat>
5372         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
5373           <leadingDigits>96</leadingDigits>
5374           <format>$1 $2 $3 $4</format>
5375         </numberFormat>
5376         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
5377           <leadingDigits>9[36]</leadingDigits>
5378           <format>$1 $2 $3 $4</format>
5379         </numberFormat>
5380       </availableFormats>
5381       <generalDesc>
5382         <nationalNumberPattern>
5383           [2-8]\d{8}|
5384           9\d{8,11}
5385         </nationalNumberPattern>
5386         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5387       </generalDesc>
5388       <fixedLine>
5389         <nationalNumberPattern>
5390           2\d{8}|
5391           (?:
5392             3[1257-9]|
5393             4[16-9]|
5394             5[13-9]
5395           )\d{7}
5396         </nationalNumberPattern>
5397         <exampleNumber>212345678</exampleNumber>
5398       </fixedLine>
5399       <mobile>
5400         <nationalNumberPattern>
5401           (?:
5402             60[1-8]|
5403             7(?:
5404               0[2-5]|
5405               [2379]\d
5406             )
5407           )\d{6}
5408         </nationalNumberPattern>
5409         <exampleNumber>601123456</exampleNumber>
5410       </mobile>
5411       <tollFree>
5412         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
5413         <exampleNumber>800123456</exampleNumber>
5414       </tollFree>
5415       <premiumRate>
5416         <!-- Includes premium rate dial-up. -->
5417         <nationalNumberPattern>
5418           9(?:
5419             0[05689]|
5420             76
5421           )\d{6}
5422         </nationalNumberPattern>
5423         <exampleNumber>900123456</exampleNumber>
5424       </premiumRate>
5425       <sharedCost>
5426         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
5427         <exampleNumber>811234567</exampleNumber>
5428       </sharedCost>
5429       <personalNumber>
5430         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
5431         <exampleNumber>700123456</exampleNumber>
5432       </personalNumber>
5433       <voip>
5434         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
5435         <exampleNumber>910123456</exampleNumber>
5436       </voip>
5437       <uan>
5438         <!-- Numbers belonging to private communication networks are included here. These are
5439              classified as Institutional networks, belonging to institutions like the police, armed
5440              forces and railways, along with a couple of formerly government-owned banks. These
5441              numbers are reachable by the public. -->
5442         <nationalNumberPattern>
5443           9(?:
5444             5\d|
5445             7[234]
5446           )\d{6}
5447         </nationalNumberPattern>
5448         <exampleNumber>972123456</exampleNumber>
5449       </uan>
5450       <voicemail>
5451         <nationalNumberPattern>
5452           9(?:
5453             3\d{9}|
5454             6\d{7,10}
5455           )
5456         </nationalNumberPattern>
5457         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5458         <exampleNumber>93123456789</exampleNumber>
5459       </voicemail>
5460       <emergency>
5461         <nationalNumberPattern>
5462           1(?:
5463             12|
5464             5[058]
5465           )
5466         </nationalNumberPattern>
5467         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5468         <exampleNumber>112</exampleNumber>
5469       </emergency>
5470     </territory>
5471
5472     <!-- Germany -->
5473     <!-- http://www.itu.int/oth/T0202000051/en -->
5474     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_germany -->
5475     <territory id="DE" countryCode="49" internationalPrefix="00"
5476                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
5477       <availableFormats>
5478         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
5479              these should best be formatted, even though actual usage varies. -->
5480         <numberFormat pattern="(1\d{2})(\d{7,8})">
5481           <leadingDigits>1[67]</leadingDigits>
5482           <format>$1 $2</format>
5483         </numberFormat>
5484         <numberFormat pattern="(1\d{3})(\d{7})">
5485           <leadingDigits>15</leadingDigits>
5486           <format>$1 $2</format>
5487         </numberFormat>
5488         <numberFormat pattern="(\d{2})(\d{4,11})">
5489           <leadingDigits>
5490             3[02]|
5491             40|
5492             [68]9
5493           </leadingDigits>
5494           <format>$1 $2</format>
5495         </numberFormat>
5496         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
5497         <!-- 3 digit area codes. -->
5498         <numberFormat pattern="(\d{3})(\d{3,11})">
5499           <leadingDigits>
5500             2(?:
5501               \d1|
5502               0[2389]|
5503               1[24]|
5504               28|
5505               34
5506             )|
5507             3(?:
5508               [3-9][15]|
5509               40
5510             )|
5511             [4-8][1-9]1|
5512             9(?:
5513               06|
5514               [1-9]1
5515             )
5516           </leadingDigits>
5517           <format>$1 $2</format>
5518         </numberFormat>
5519         <!-- 4 digit area codes. -->
5520         <numberFormat pattern="(\d{4})(\d{2,11})">
5521           <leadingDigits>
5522             [24-6]|
5523             [7-9](?:
5524               \d[1-9]|
5525               [1-9]\d
5526             )|
5527             3(?:
5528               [3569][02-46-9]|
5529               4[2-4679]|
5530               7[2-467]|
5531               8[2-46-8]
5532             )
5533           </leadingDigits>
5534           <leadingDigits>
5535             [24-6]|
5536             [7-9](?:
5537               \d[1-9]|
5538               [1-9]\d
5539             )|
5540             3(?:
5541               3(?:
5542                 0[1-467]|
5543                 2[127-9]|
5544                 3[124578]|
5545                 [46][1246]|
5546                 7[1257-9]|
5547                 8[1256]|
5548                 9[145]
5549               )|
5550               4(?:
5551                 2[135]|
5552                 3[1357]|
5553                 4[13578]|
5554                 6[1246]|
5555                 7[1356]|
5556                 9[1346]
5557               )|
5558               5(?:
5559                 0[14]|
5560                 2[1-3589]|
5561                 3[1357]|
5562                 4[1246]|
5563                 6[1-4]|
5564                 7[1346]|
5565                 8[13568]|
5566                 9[1246]
5567               )|
5568               6(?:
5569                 0[356]|
5570                 2[1-489]|
5571                 3[124-6]|
5572                 4[1347]|
5573                 6[13]|
5574                 7[12579]|
5575                 8[1-356]|
5576                 9[135]
5577               )|
5578               7(?:
5579                 2[1-7]|
5580                 3[1357]|
5581                 4[145]|
5582                 6[1-5]|
5583                 7[1-4]
5584               )|
5585               8(?:
5586                 21|
5587                 3[1468]|
5588                 4[1347]|
5589                 6[0135-9]|
5590                 7[1467]|
5591                 8[136]
5592               )|
5593               9(?:
5594                 0[12479]|
5595                 2[1358]|
5596                 3[1357]|
5597                 4[134679]|
5598                 6[1-9]|
5599                 7[136]|
5600                 8[147]|
5601                 9[1468]
5602               )
5603             )
5604           </leadingDigits>
5605           <format>$1 $2</format>
5606         </numberFormat>
5607         <!-- 5 digit area codes. -->
5608         <numberFormat pattern="(3\d{4})(\d{1,10})">
5609           <leadingDigits>3</leadingDigits>
5610           <format>$1 $2</format>
5611         </numberFormat>
5612         <!-- Note: this is getting ridiculous! How can we format these better? -->
5613         <numberFormat pattern="(800)(\d{7,12})">
5614           <leadingDigits>800</leadingDigits>
5615           <format>$1 $2</format>
5616         </numberFormat>
5617         <!-- Voicemail access numbers for the carrier Blau. -->
5618         <numberFormat pattern="(177)(99)(\d{7,8})">
5619           <leadingDigits>177</leadingDigits>
5620           <leadingDigits>1779</leadingDigits>
5621           <leadingDigits>17799</leadingDigits>
5622           <format>$1 $2 $3</format>
5623         </numberFormat>
5624         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
5625           <leadingDigits>
5626             (?:
5627               18|
5628               90
5629             )0
5630           </leadingDigits>
5631           <leadingDigits>
5632             180|
5633             900[1359]
5634           </leadingDigits>
5635           <format>$1 $2 $3</format>
5636         </numberFormat>
5637         <numberFormat pattern="(1\d{2})(\d{5,11})">
5638           <leadingDigits>181</leadingDigits>
5639           <format>$1 $2</format>
5640         </numberFormat>
5641         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
5642              way it is generally written. For other prefixes, we fall back to using a three-digit
5643              prefix since we have currently no more information to allow us to format these more
5644              precisely. -->
5645         <numberFormat pattern="(18\d{3})(\d{6})">
5646           <leadingDigits>185</leadingDigits>
5647           <leadingDigits>1850</leadingDigits>
5648           <leadingDigits>18500</leadingDigits>
5649           <format>$1 $2</format>
5650         </numberFormat>
5651         <numberFormat pattern="(18\d{2})(\d{7})">
5652           <leadingDigits>18[68]</leadingDigits>
5653           <format>$1 $2</format>
5654         </numberFormat>
5655         <numberFormat pattern="(18\d)(\d{8})">
5656           <leadingDigits>18[2-579]</leadingDigits>
5657           <format>$1 $2</format>
5658         </numberFormat>
5659         <numberFormat pattern="(700)(\d{4})(\d{4})">
5660           <leadingDigits>700</leadingDigits>
5661           <format>$1 $2 $3</format>
5662         </numberFormat>
5663       </availableFormats>
5664       <generalDesc>
5665         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
5666              examined to see if it is valid with the 49 as part of the number. Due to the variable
5667              length of German numbers, this test is hard to do. The national pattern is hence
5668              stricter for numbers starting with 49, to try and remove the country code if the number
5669              begins with 49 whenever possible. -->
5670         <nationalNumberPattern>
5671           [1-35-9]\d{3,14}|
5672           4(?:
5673             [0-8]\d{4,12}|
5674             9(?:
5675               [0-37]\d|
5676               4(?:
5677                 [1-35-8]|
5678                 4\d?
5679               )|
5680               5\d{1,2}|
5681               6[1-8]\d?
5682             )\d{2,7}
5683           )
5684         </nationalNumberPattern>
5685         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
5686       </generalDesc>
5687       <fixedLine>
5688         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
5689              don't seem to respect this. The max-length is hence extended. -->
5690         <nationalNumberPattern>
5691           [246]\d{5,13}|
5692           3(?:
5693             [03-9]\d{4,13}|
5694             2\d{9}
5695           )|
5696           5(?:
5697             0[2-8]|
5698             [1256]\d|
5699             [38][0-8]|
5700             4\d{0,2}|
5701             [79][0-7]
5702           )\d{3,11}|
5703           7(?:
5704             0[2-8]|
5705             [1-9]\d
5706           )\d{3,10}|
5707           8(?:
5708             0[2-9]|
5709             [1-9]\d
5710           )\d{3,10}|
5711           9(?:
5712             0[6-9]\d{3,10}|
5713             1\d{4,12}|
5714             [2-9]\d{4,11}
5715           )
5716         </nationalNumberPattern>
5717         <exampleNumber>30123456</exampleNumber>
5718       </fixedLine>
5719       <mobile>
5720         <!-- According to
5721              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
5722              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
5723              -->
5724         <nationalNumberPattern>
5725           1(?:
5726             5[0-2579]\d{8}|
5727             6[023]\d{7,8}|
5728             7(?:
5729               [0-57-9]\d?|
5730               6\d
5731             )\d{7}
5732           )
5733         </nationalNumberPattern>
5734         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5735         <exampleNumber>15123456789</exampleNumber>
5736       </mobile>
5737       <pager>
5738         <nationalNumberPattern>
5739           16(?:
5740             4\d{1,10}|
5741             [89]\d{1,11}
5742           )
5743         </nationalNumberPattern>
5744         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
5745         <exampleNumber>16412345</exampleNumber>
5746       </pager>
5747       <tollFree>
5748         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
5749         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
5750         <exampleNumber>8001234567890</exampleNumber>
5751       </tollFree>
5752       <premiumRate>
5753         <nationalNumberPattern>
5754           900(?:
5755             [135]\d{6}|
5756             9\d{7}
5757           )
5758         </nationalNumberPattern>
5759         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5760         <exampleNumber>9001234567</exampleNumber>
5761       </premiumRate>
5762       <sharedCost>
5763         <nationalNumberPattern>180\d{5,11}</nationalNumberPattern>
5764         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5765         <exampleNumber>18012345</exampleNumber>
5766       </sharedCost>
5767       <personalNumber>
5768         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
5769         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5770         <exampleNumber>70012345678</exampleNumber>
5771       </personalNumber>
5772       <uan>
5773         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
5774              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
5775              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
5776         <nationalNumberPattern>
5777           18(?:
5778             1\d{5,11}|
5779             [2-9]\d{8}
5780           )
5781         </nationalNumberPattern>
5782         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5783         <exampleNumber>18500123456</exampleNumber>
5784       </uan>
5785       <voicemail>
5786         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
5787         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
5788         <exampleNumber>177991234567</exampleNumber>
5789       </voicemail>
5790       <emergency>
5791         <nationalNumberPattern>11[02]</nationalNumberPattern>
5792         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5793         <exampleNumber>112</exampleNumber>
5794       </emergency>
5795     </territory>
5796
5797     <!-- Djibouti -->
5798     <!-- http://www.itu.int/oth/T020200003A/en -->
5799     <territory id="DJ" countryCode="253" internationalPrefix="00">
5800       <availableFormats>
5801         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5802           <format>$1 $2 $3 $4</format>
5803         </numberFormat>
5804       </availableFormats>
5805       <generalDesc>
5806         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
5807         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5808       </generalDesc>
5809       <fixedLine>
5810         <!-- Includes "Numéro long CDMA fixe" numbers. -->
5811         <nationalNumberPattern>
5812           2(?:
5813             1[2-5]|
5814             7[45]
5815           )\d{5}
5816         </nationalNumberPattern>
5817         <exampleNumber>21360003</exampleNumber>
5818       </fixedLine>
5819       <mobile>
5820         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
5821         <exampleNumber>77831001</exampleNumber>
5822       </mobile>
5823       <emergency>
5824         <nationalNumberPattern>1[78]</nationalNumberPattern>
5825         <possibleNumberPattern>\d{2}</possibleNumberPattern>
5826         <exampleNumber>17</exampleNumber>
5827       </emergency>
5828     </territory>
5829
5830     <!-- Denmark -->
5831     <!-- http://www.dba.erhvervsstyrelsen.dk/numbering-lists -->
5832     <territory id="DK" countryCode="45" internationalPrefix="00">
5833       <availableFormats>
5834         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5835           <format>$1 $2 $3 $4</format>
5836         </numberFormat>
5837       </availableFormats>
5838       <generalDesc>
5839         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
5840         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5841       </generalDesc>
5842       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
5843            safe. -->
5844       <fixedLine>
5845         <nationalNumberPattern>
5846           (?:
5847             [2-7]\d|
5848             8[126-9]|
5849             9[126-9]
5850           )\d{6}
5851         </nationalNumberPattern>
5852         <exampleNumber>32123456</exampleNumber>
5853       </fixedLine>
5854       <mobile>
5855         <nationalNumberPattern>
5856           (?:
5857             [2-7]\d|
5858             8[126-9]|
5859             9[126-9]
5860           )\d{6}
5861         </nationalNumberPattern>
5862         <exampleNumber>20123456</exampleNumber>
5863       </mobile>
5864       <tollFree>
5865         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
5866         <exampleNumber>80123456</exampleNumber>
5867       </tollFree>
5868       <premiumRate>
5869         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
5870         <exampleNumber>90123456</exampleNumber>
5871       </premiumRate>
5872       <emergency>
5873         <nationalNumberPattern>112</nationalNumberPattern>
5874         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5875         <exampleNumber>112</exampleNumber>
5876       </emergency>
5877     </territory>
5878
5879     <!-- Dominica -->
5880     <!-- http://www.itu.int/oth/T020200003B/en -->
5881     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
5882                internationalPrefix="011">
5883       <generalDesc>
5884         <!-- NANPA country - uses US formatting rules -->
5885         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
5886         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5887       </generalDesc>
5888       <fixedLine>
5889         <nationalNumberPattern>
5890           767(?:
5891             2(?:
5892               55|
5893               66
5894             )|
5895             4(?:
5896               2[01]|
5897               4[0-25-9]
5898             )|
5899             50[0-4]
5900           )\d{4}
5901         </nationalNumberPattern>
5902         <exampleNumber>7674201234</exampleNumber>
5903       </fixedLine>
5904       <mobile>
5905         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
5906         <nationalNumberPattern>
5907           767(?:
5908             2(?:
5909               [234689]5|
5910               7[5-7]
5911             )|
5912             31[5-7]|
5913             61[2-7]
5914           )\d{4}
5915         </nationalNumberPattern>
5916         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5917         <exampleNumber>7672251234</exampleNumber>
5918       </mobile>
5919       <tollFree>
5920         <nationalNumberPattern>
5921           8(?:
5922             00|
5923             55|
5924             66|
5925             77|
5926             88
5927           )[2-9]\d{6}
5928         </nationalNumberPattern>
5929         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5930         <exampleNumber>8002123456</exampleNumber>
5931       </tollFree>
5932       <premiumRate>
5933         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
5934         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5935         <exampleNumber>9002123456</exampleNumber>
5936       </premiumRate>
5937       <personalNumber>
5938         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
5939         <nationalNumberPattern>
5940           5(?:
5941             00|
5942             33|
5943             44
5944           )[2-9]\d{6}
5945         </nationalNumberPattern>
5946         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5947         <exampleNumber>5002345678</exampleNumber>
5948       </personalNumber>
5949       <emergency>
5950         <!-- http://barbados.usembassy.gov/emergency-dominica.html -->
5951         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1102.html -->
5952         <nationalNumberPattern>
5953           333|
5954           9(?:
5955             11|
5956             99
5957           )
5958         </nationalNumberPattern>
5959         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5960         <exampleNumber>999</exampleNumber>
5961       </emergency>
5962     </territory>
5963
5964     <!-- Dominican Rep. -->
5965     <!-- http://www.itu.int/oth/T020200003C/en -->
5966     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
5967                internationalPrefix="011">
5968       <generalDesc>
5969         <!-- NANPA country - uses US formatting rules -->
5970         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
5971         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5972       </generalDesc>
5973       <fixedLine>
5974         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
5975              prefixes in the document are classified as such by excluding them from the fixed-line
5976              ranges, but other than this have a generic rule. -->
5977         <nationalNumberPattern>
5978           8(?:
5979             [04]9[2-9]\d{6}|
5980             29(?:
5981               2(?:
5982                 [0-59]\d|
5983                 6[04-9]|
5984                 7[0-27]|
5985                 8[0237-9]
5986               )|
5987               3(?:
5988                 [0-35-9]\d|
5989                 4[7-9]
5990               )|
5991               [45]\d{2}|
5992               6(?:
5993                 [0-27-9]\d|
5994                 [3-5][1-9]|
5995                 6[0135-8]
5996               )|
5997               7(?:
5998                 0[013-9]|
5999                 [1-37]\d|
6000                 4[1-35689]|
6001                 5[1-4689]|
6002                 6[1-57-9]|
6003                 8[1-79]|
6004                 9[1-8]
6005               )|
6006               8(?:
6007                 0[146-9]|
6008                 1[0-48]|
6009                 [248]\d|
6010                 3[1-79]|
6011                 5[01589]|
6012                 6[013-68]|
6013                 7[124-8]|
6014                 9[0-8]
6015               )|
6016               9(?:
6017                 [0-24]\d|
6018                 3[02-46-9]|
6019                 5[0-79]|
6020                 60|
6021                 7[0169]|
6022                 8[57-9]|
6023                 9[02-9]
6024               )
6025             )\d{4}
6026           )
6027         </nationalNumberPattern>
6028         <exampleNumber>8092345678</exampleNumber>
6029       </fixedLine>
6030       <mobile>
6031         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
6032         <exampleNumber>8092345678</exampleNumber>
6033       </mobile>
6034       <tollFree>
6035         <nationalNumberPattern>
6036           8(?:
6037             00|
6038             55|
6039             66|
6040             77|
6041             88
6042           )[2-9]\d{6}
6043         </nationalNumberPattern>
6044         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6045         <exampleNumber>8002123456</exampleNumber>
6046       </tollFree>
6047       <premiumRate>
6048         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6049         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6050         <exampleNumber>9002123456</exampleNumber>
6051       </premiumRate>
6052       <personalNumber>
6053         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
6054         <nationalNumberPattern>
6055           5(?:
6056             00|
6057             33|
6058             44
6059           )[2-9]\d{6}
6060         </nationalNumberPattern>
6061         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6062         <exampleNumber>5002345678</exampleNumber>
6063       </personalNumber>
6064       <emergency>
6065         <nationalNumberPattern>
6066           112|
6067           911
6068         </nationalNumberPattern>
6069         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6070         <exampleNumber>911</exampleNumber>
6071       </emergency>
6072    </territory>
6073
6074     <!-- Algeria -->
6075     <!-- http://www.itu.int/oth/T0202000003/en -->
6076     <!-- www.arpt.dz -->
6077     <territory id="DZ" countryCode="213" internationalPrefix="00"
6078                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6079       <availableFormats>
6080         <!-- Formatting from www.pagesjaunes-dz.com. -->
6081         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
6082           <leadingDigits>[1-4]</leadingDigits>
6083           <format>$1 $2 $3 $4</format>
6084         </numberFormat>
6085         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
6086           <leadingDigits>[5-8]</leadingDigits>
6087           <format>$1 $2 $3 $4</format>
6088         </numberFormat>
6089         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
6090           <leadingDigits>9</leadingDigits>
6091           <format>$1 $2 $3 $4</format>
6092         </numberFormat>
6093       </availableFormats>
6094       <generalDesc>
6095         <nationalNumberPattern>
6096           (?:
6097             [1-4]|
6098             [5-9]\d
6099           )\d{7}
6100         </nationalNumberPattern>
6101         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6102       </generalDesc>
6103       <fixedLine>
6104         <!-- We include the VSAT lines here. -->
6105         <nationalNumberPattern>
6106           (?:
6107             1\d|
6108             2[014-79]|
6109             3[0-8]|
6110             4[0135689]
6111           )\d{6}|
6112           9619\d{5}
6113         </nationalNumberPattern>
6114         <exampleNumber>12345678</exampleNumber>
6115       </fixedLine>
6116       <mobile>
6117         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6118              Mobilis Algeria provided it, and 54 for Nedjma.-->
6119         <nationalNumberPattern>
6120           (?:
6121             5[4-6]|
6122             7[7-9]
6123           )\d{7}|
6124           6(?:
6125             [569]\d|
6126             70
6127           )\d{6}
6128         </nationalNumberPattern>
6129         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6130         <exampleNumber>551234567</exampleNumber>
6131       </mobile>
6132       <tollFree>
6133         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
6134         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6135         <exampleNumber>800123456</exampleNumber>
6136       </tollFree>
6137       <premiumRate>
6138         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
6139         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6140         <exampleNumber>808123456</exampleNumber>
6141       </premiumRate>
6142       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
6143            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
6144            -->
6145       <sharedCost>
6146         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
6147         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6148         <exampleNumber>801123456</exampleNumber>
6149       </sharedCost>
6150       <voip>
6151         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
6152         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6153         <exampleNumber>983123456</exampleNumber>
6154       </voip>
6155       <emergency>
6156         <nationalNumberPattern>1[47]</nationalNumberPattern>
6157         <possibleNumberPattern>\d{2}</possibleNumberPattern>
6158         <exampleNumber>17</exampleNumber>
6159       </emergency>
6160    </territory>
6161
6162     <!-- Ecuador -->
6163     <!-- http://en.wikipedia.org/wiki/+593 -->
6164     <!-- http://www.conatel.gob.ec/site_conatel/index.php?option=com_content&view=category&layout=blog&id=52&Itemid=153
6165          -->
6166     <!-- http://www.itu.int/oth/T020200003D/en -->
6167     <territory id="EC" countryCode="593" internationalPrefix="00"
6168                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
6169       <availableFormats>
6170         <numberFormat pattern="(\d)(\d{3})(\d{4})">
6171           <leadingDigits>
6172             [247]|
6173             [356][2-8]
6174           </leadingDigits>
6175           <format>$1 $2-$3</format>
6176           <intlFormat>$1-$2-$3</intlFormat>
6177         </numberFormat>
6178         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
6179              change on the www.conatel.gob.ec site. -->
6180         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
6181           <leadingDigits>9</leadingDigits>
6182           <format>$1 $2 $3</format>
6183         </numberFormat>
6184         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
6185           <leadingDigits>1</leadingDigits>
6186           <format>$1 $2 $3</format>
6187         </numberFormat>
6188       </availableFormats>
6189       <generalDesc>
6190         <nationalNumberPattern>
6191           1\d{9,10}|
6192           [2-8]\d{7}|
6193           9\d{8}
6194         </nationalNumberPattern>
6195         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
6196       </generalDesc>
6197       <fixedLine>
6198         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
6199         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6200         <exampleNumber>22123456</exampleNumber>
6201       </fixedLine>
6202       <mobile>
6203         <nationalNumberPattern>
6204           9(?:
6205             39|
6206             [4-6][89]|
6207             7[7-9]|
6208             [89]\d
6209           )\d{6}
6210         </nationalNumberPattern>
6211         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6212         <exampleNumber>991234567</exampleNumber>
6213       </mobile>
6214       <tollFree>
6215         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
6216         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
6217         <exampleNumber>18001234567</exampleNumber>
6218       </tollFree>
6219       <voip>
6220         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
6221         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6222         <exampleNumber>28901234</exampleNumber>
6223       </voip>
6224       <emergency>
6225         <nationalNumberPattern>
6226           1(?:
6227             0[12]|
6228             12
6229           )|
6230           911
6231         </nationalNumberPattern>
6232         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6233         <exampleNumber>911</exampleNumber>
6234       </emergency>
6235     </territory>
6236
6237     <!-- Estonia -->
6238     <!-- http://www.itu.int/oth/T0202000043/en -->
6239     <!-- http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm -->
6240     <territory id="EE" countryCode="372" internationalPrefix="00">
6241       <availableFormats>
6242         <numberFormat pattern="([3-79]\d{2})(\d{4})">
6243           <leadingDigits>
6244             [369]|
6245             4[3-8]|
6246             5(?:
6247               [0-2]|
6248               5[0-478]|
6249               6[45]
6250             )|
6251             7[1-9]
6252           </leadingDigits>
6253           <leadingDigits>
6254             [369]|
6255             4[3-8]|
6256             5(?:
6257               [02]|
6258               1(?:
6259                 [0-8]|
6260                 95
6261               )|
6262               5[0-478]|
6263               6(?:
6264                 4[0-4]|
6265                 5[1-589]
6266               )
6267             )|
6268             7[1-9]
6269           </leadingDigits>
6270           <format>$1 $2</format>
6271         </numberFormat>
6272         <numberFormat pattern="(70)(\d{2})(\d{4})">
6273           <leadingDigits>70</leadingDigits>
6274           <format>$1 $2 $3</format>
6275         </numberFormat>
6276         <numberFormat pattern="(8000)(\d{3})(\d{3})">
6277           <leadingDigits>800</leadingDigits>
6278           <leadingDigits>8000</leadingDigits>
6279           <format>$1 $2 $3</format>
6280         </numberFormat>
6281         <numberFormat pattern="([458]\d{3})(\d{3,4})">
6282           <leadingDigits>
6283             40|
6284             5|
6285             8(?:
6286               00|
6287               [1-5]
6288             )
6289           </leadingDigits>
6290           <leadingDigits>
6291             40|
6292             5|
6293             8(?:
6294               00[1-9]|
6295               [1-5]
6296             )
6297           </leadingDigits>
6298           <format>$1 $2</format>
6299         </numberFormat>
6300       </availableFormats>
6301       <generalDesc>
6302         <nationalNumberPattern>
6303           1\d{3,4}|
6304           [3-9]\d{6,7}|
6305           800\d{6,7}
6306         </nationalNumberPattern>
6307         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
6308       </generalDesc>
6309       <noInternationalDialling>
6310         <nationalNumberPattern>
6311           1\d{3,4}|
6312           800[2-9]\d{3}
6313         </nationalNumberPattern>
6314         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
6315         <exampleNumber>8002123</exampleNumber>
6316       </noInternationalDialling>
6317       <fixedLine>
6318         <!-- Supporting eFax numbers here as well. -->
6319         <nationalNumberPattern>
6320           (?:
6321             3[23589]|
6322             4(?:
6323               0\d|
6324               [3-8]
6325             )|
6326             6\d|
6327             7[1-9]|
6328             88
6329           )\d{5}
6330         </nationalNumberPattern>
6331         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6332         <exampleNumber>3212345</exampleNumber>
6333       </fixedLine>
6334       <mobile>
6335         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
6336              numbers are 8 digits. -->
6337         <nationalNumberPattern>
6338           (?:
6339             5\d|
6340             8[1-5]
6341           )\d{6}|
6342           5(?:
6343             [02]\d{2}|
6344             1(?:
6345               [0-8]\d|
6346               95
6347             )|
6348             5[0-478]\d|
6349             64[0-4]|
6350             65[1-589]
6351           )\d{3}
6352         </nationalNumberPattern>
6353         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6354         <exampleNumber>51234567</exampleNumber>
6355       </mobile>
6356       <tollFree>
6357         <nationalNumberPattern>
6358           800(?:
6359             0\d{3}|
6360             1\d|
6361             [2-9]
6362           )\d{3}
6363         </nationalNumberPattern>
6364         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6365         <exampleNumber>80012345</exampleNumber>
6366       </tollFree>
6367       <premiumRate>
6368         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
6369         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6370         <exampleNumber>9001234</exampleNumber>
6371       </premiumRate>
6372       <personalNumber>
6373         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
6374         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6375         <exampleNumber>70012345</exampleNumber>
6376       </personalNumber>
6377       <uan>
6378         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
6379              included here. -->
6380         <nationalNumberPattern>
6381           1(?:
6382             2[01245]|
6383             3[0-6]|
6384             4[1-489]|
6385             5[0-59]|
6386             6[1-46-9]|
6387             7[0-27-9]|
6388             8[189]|
6389             9[012]
6390           )\d{1,2}
6391         </nationalNumberPattern>
6392         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
6393         <exampleNumber>12123</exampleNumber>
6394       </uan>
6395       <emergency>
6396         <nationalNumberPattern>11[02]</nationalNumberPattern>
6397         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6398         <exampleNumber>112</exampleNumber>
6399       </emergency>
6400     </territory>
6401
6402     <!-- Egypt -->
6403     <!-- http://www.itu.int/oth/T020200003E/en -->
6404     <territory id="EG" countryCode="20" internationalPrefix="00"
6405                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6406        <availableFormats>
6407          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
6408               or 19. These are formatted without national prefix, as a block, so do not need to be
6409               listed here. -->
6410          <numberFormat pattern="(\d)(\d{7,8})">
6411            <leadingDigits>[23]</leadingDigits>
6412            <format>$1 $2</format>
6413          </numberFormat>
6414          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
6415            <leadingDigits>
6416              1[012]|
6417              [89]00
6418            </leadingDigits>
6419            <format>$1 $2 $3</format>
6420          </numberFormat>
6421          <numberFormat pattern="(\d{2})(\d{6,7})">
6422            <leadingDigits>
6423              1(?:
6424                3|
6425                5[23]
6426              )|
6427              [4-6]|
6428              [89][2-9]
6429            </leadingDigits>
6430            <format>$1 $2</format>
6431          </numberFormat>
6432        </availableFormats>
6433       <generalDesc>
6434         <nationalNumberPattern>
6435           1\d{4,9}|
6436           [2456]\d{8}|
6437           3\d{7}|
6438           [89]\d{8,9}
6439         </nationalNumberPattern>
6440         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6441       </generalDesc>
6442       <fixedLine>
6443         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
6444              that the plan says numbers starting with 15 should be followed by seven digit
6445              subscriber numbers, but all numbers we have found online are in fact six digit.
6446              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
6447              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
6448              092 and with 5 and 6 for 96. -->
6449         <nationalNumberPattern>
6450           (?:
6451             1(
6452               3[23]\d|
6453               5[23]
6454             )|
6455             2[2-4]\d{2}|
6456             3\d{2}|
6457             4(?:
6458               0[2-5]|
6459               [578][23]|
6460               64
6461             )\d|
6462             5(?:
6463               0[2-7]|
6464               [57][23]
6465             )\d|
6466             6[24-689]3\d|
6467             8(?:
6468               2[2-57]|
6469               4[26]|
6470               6[237]|
6471               8[2-4]
6472             )\d|
6473             9(?:
6474               2[27]|
6475               3[24]|
6476               52|
6477               6[2356]|
6478               7[2-4]
6479             )\d
6480           )\d{5}|
6481           1[69]\d{3}
6482         </nationalNumberPattern>
6483         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
6484         <exampleNumber>234567890</exampleNumber>
6485       </fixedLine>
6486       <mobile>
6487         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
6488              started allocating numbers beginning with these prefixes, along with 115 from numbers
6489              found online. -->
6490         <nationalNumberPattern>
6491           1(?:
6492             0[01269]|
6493             1[1245]|
6494             2[0-278]
6495           )\d{7}
6496         </nationalNumberPattern>
6497         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6498         <exampleNumber>1001234567</exampleNumber>
6499       </mobile>
6500       <tollFree>
6501         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
6502         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6503         <exampleNumber>8001234567</exampleNumber>
6504       </tollFree>
6505       <premiumRate>
6506         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
6507         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6508         <exampleNumber>9001234567</exampleNumber>
6509       </premiumRate>
6510       <emergency>
6511         <nationalNumberPattern>
6512           1(?:
6513             2[23]|
6514             80
6515           )
6516         </nationalNumberPattern>
6517         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6518         <exampleNumber>122</exampleNumber>
6519       </emergency>
6520     </territory>
6521
6522     <!-- Western Sahara -->
6523     <!-- Country calling code shared with Morocco (MA). -->
6524     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
6525     <!-- http://www.itu.int/oth/T0202000090/en -->
6526     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
6527                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6528       <!-- Uses MA formatting rules and shares general description
6529            (non-geographical numbers for Morocco are still valid). -->
6530       <generalDesc>
6531         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
6532         <!-- Closed numbering plan. -->
6533         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6534       </generalDesc>
6535       <fixedLine>
6536         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
6537         <exampleNumber>528812345</exampleNumber>
6538       </fixedLine>
6539       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
6540            numbers to be recognized as available from within Western Sahara. -->
6541       <mobile>
6542         <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01] are from numbers found online,
6543              bug-reports, and information provided directly by the carriers. -->
6544         <nationalNumberPattern>
6545           6(?:
6546             0[0-8]|
6547             [124-7]\d|
6548             3[03-8]|
6549             8[01]|
6550             99
6551           )\d{6}
6552         </nationalNumberPattern>
6553         <exampleNumber>650123456</exampleNumber>
6554       </mobile>
6555       <tollFree>
6556         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
6557         <exampleNumber>801234567</exampleNumber>
6558       </tollFree>
6559       <premiumRate>
6560         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
6561         <exampleNumber>891234567</exampleNumber>
6562       </premiumRate>
6563       <emergency>
6564         <nationalNumberPattern>
6565           1(?:
6566             [59]|
6567             77
6568           )
6569         </nationalNumberPattern>
6570         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
6571         <exampleNumber>15</exampleNumber>
6572       </emergency>
6573     </territory>
6574
6575     <!-- Eritrea -->
6576     <!-- http://www.itu.int/oth/T0202000042/en -->
6577     <territory id="ER" countryCode="291" internationalPrefix="00"
6578                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6579       <availableFormats>
6580         <numberFormat pattern="(\d)(\d{3})(\d{3})">
6581           <format>$1 $2 $3</format>
6582         </numberFormat>
6583       </availableFormats>
6584       <generalDesc>
6585         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
6586         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
6587       </generalDesc>
6588       <fixedLine>
6589         <nationalNumberPattern>
6590           1(?:
6591             1[12568]|
6592             20|
6593             40|
6594             55|
6595             6[146]
6596           )\d{4}|
6597           8\d{6}
6598         </nationalNumberPattern>
6599         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
6600       </fixedLine>
6601       <mobile>
6602         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
6603              numbers or was in addition to them, so we support both here. -->
6604         <nationalNumberPattern>
6605           17[1-3]\d{4}|
6606           7\d{6}
6607         </nationalNumberPattern>
6608         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6609         <exampleNumber>7123456</exampleNumber>
6610       </mobile>
6611       <!-- No emergency numbers information can be found. -->
6612     </territory>
6613
6614     <!-- Spain -->
6615     <!-- http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx -->
6616     <territory id="ES" countryCode="34" internationalPrefix="00">
6617       <availableFormats>
6618         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
6619           <format>$1 $2 $3 $4</format>
6620         </numberFormat>
6621       </availableFormats>
6622       <generalDesc>
6623         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
6624         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6625       </generalDesc>
6626       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
6627            fixed-line ranges. -->
6628       <fixedLine>
6629         <nationalNumberPattern>
6630           8(?:
6631             [13]0|
6632             [28][0-8]|
6633             [47][1-9]|
6634             5[01346-9]|
6635             6[0457-9]
6636           )\d{6}|
6637           9(?:
6638             [1238][0-8]\d{6}|
6639             4[1-9]\d{6}|
6640             5\d{7}|
6641             6(?:
6642               [0-8]\d{6}|
6643               9(?:
6644                 0(?:
6645                   [0-57-9]\d{4}|
6646                   6(?:
6647                     0[0-8]|
6648                     1[1-9]|
6649                     [2-9]\d
6650                   )\d{2}
6651                 )|
6652                 [1-9]\d{5}
6653               )
6654             )|
6655             7(?:
6656               [124-9]\d{2}|
6657               3(?:
6658                 [0-8]\d|
6659                 9[1-9]
6660               )
6661             )\d{4}
6662           )
6663         </nationalNumberPattern>
6664         <exampleNumber>810123456</exampleNumber>
6665       </fixedLine>
6666       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
6667            information received from Lleida Networks. -->
6668       <mobile>
6669         <nationalNumberPattern>
6670           (?:
6671             6\d{6}|
6672             7[1-4]\d{5}|
6673             9(?:
6674               6906(?:
6675                 09|
6676                 10
6677               )|
6678               7390\d{2}
6679             )
6680           )\d{2}
6681         </nationalNumberPattern>
6682         <exampleNumber>612345678</exampleNumber>
6683       </mobile>
6684       <tollFree>
6685         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
6686         <exampleNumber>800123456</exampleNumber>
6687       </tollFree>
6688       <premiumRate>
6689         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
6690         <exampleNumber>803123456</exampleNumber>
6691       </premiumRate>
6692       <sharedCost>
6693         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
6694         <exampleNumber>901123456</exampleNumber>
6695       </sharedCost>
6696       <personalNumber>
6697         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
6698         <exampleNumber>701234567</exampleNumber>
6699       </personalNumber>
6700       <!-- Modelling non-geographic nomadic numbers as UAN. -->
6701       <uan>
6702         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
6703         <exampleNumber>511234567</exampleNumber>
6704       </uan>
6705       <emergency>
6706         <!-- We include the Civil Guard here since it seems to perform similar duties as the police
6707              force. -->
6708         <nationalNumberPattern>
6709           0(?:
6710             [69][12]|
6711             8[05]
6712           )|
6713           112
6714         </nationalNumberPattern>
6715         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6716         <exampleNumber>112</exampleNumber>
6717       </emergency>
6718     </territory>
6719
6720     <!-- Ethiopia -->
6721     <!-- http://www.itu.int/oth/T0202000044/en -->
6722     <territory id="ET" countryCode="251" internationalPrefix="00"
6723                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6724       <availableFormats>
6725         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
6726           <format>$1 $2 $3</format>
6727         </numberFormat>
6728       </availableFormats>
6729       <generalDesc>
6730         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
6731         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
6732       </generalDesc>
6733       <fixedLine>
6734         <nationalNumberPattern>
6735           (?:
6736             11(?:
6737               1(?:
6738                 1[124]|
6739                 2[2-57]|
6740                 3[1-5]|
6741                 5[5-8]|
6742                 8[6-8]
6743               )|
6744               2(?:
6745                 13|
6746                 3[6-8]|
6747                 5[89]|
6748                 7[05-9]|
6749                 8[2-6]
6750               )|
6751               3(?:
6752                 2[01]|
6753                 3[0-289]|
6754                 4[1289]|
6755                 7[1-4]|
6756                 87
6757               )|
6758               4(?:
6759                 1[69]|
6760                 3[2-49]|
6761                 4[0-3]|
6762                 6[5-8]
6763               )|
6764               5(?:
6765                 1[57]|
6766                 44|
6767                 5[0-4]
6768               )|
6769               6(?:
6770                 18|
6771                 2[69]|
6772                 4[5-7]|
6773                 5[1-5]|
6774                 6[0-59]|
6775                 8[015-8]
6776               )
6777             )|
6778             2(?:
6779               2(?:
6780                 11[1-9]|
6781                 22[0-7]|
6782                 33\d|
6783                 44[1467]|
6784                 66[1-68]
6785               )|
6786               5(?:
6787                 11[124-6]|
6788                 33[2-8]|
6789                 44[1467]|
6790                 55[14]|
6791                 66[1-3679]|
6792                 77[124-79]|
6793                 880
6794               )
6795             )|
6796             3(?:
6797               3(?:
6798                 11[0-46-8]|
6799                 22[0-6]|
6800                 33[0134689]|
6801                 44[04]|
6802                 55[0-6]|
6803                 66[01467]
6804               )|
6805               4(?:
6806                 44[0-8]|
6807                 55[0-69]|
6808                 66[0-3]|
6809                 77[1-5]
6810               )
6811             )|
6812             4(?:
6813               6(?:
6814                 22[0-24-7]|
6815                 33[1-5]|
6816                 44[13-69]|
6817                 55[14-689]|
6818                 660|
6819                 88[1-4]
6820               )|
6821               7(?:
6822                 11[1-9]|
6823                 22[1-9]|
6824                 33[13-7]|
6825                 44[13-6]|
6826                 55[1-689]
6827               )
6828             )|
6829             5(?:
6830               7(?:
6831                 227|
6832                 55[05]|
6833                 (?:
6834                   66|
6835                   77
6836                 )[14-8]
6837               )|
6838               8(?:
6839                 11[149]|
6840                 22[013-79]|
6841                 33[0-68]|
6842                 44[013-8]|
6843                 550|
6844                 66[1-5]|
6845                 77\d
6846               )
6847             )
6848           )\d{4}
6849         </nationalNumberPattern>
6850         <exampleNumber>111112345</exampleNumber>
6851       </fixedLine>
6852       <mobile>
6853         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
6854              numbers are visible online than are reported in the ITU document. This pattern is
6855              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
6856              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
6857         <nationalNumberPattern>
6858           9(?:
6859             [1-3]\d|
6860             5[89]
6861           )\d{6}
6862         </nationalNumberPattern>
6863         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6864         <exampleNumber>911234567</exampleNumber>
6865       </mobile>
6866       <emergency>
6867         <!-- http://www.addisculturetourism.gov.et/en/component/k2/itemlist/category/64.html?layout=category -->
6868         <!-- http://www.netglobers.com/africa/ethiopia-emergency-numbers-in-ethiopia-.html -->
6869         <!-- http://www.addisababacity.gov.et/index.php?option=com_content&view=article&id=139&Itemid=136 -->
6870         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
6871         <!-- The 91, 92, and 93 numbers are for the city of Addis Ababa. -->
6872         <nationalNumberPattern>
6873           9(?:
6874             11?|
6875             [23]|
6876             9[17]
6877           )
6878         </nationalNumberPattern>
6879         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
6880         <exampleNumber>991</exampleNumber>
6881       </emergency>
6882     </territory>
6883
6884     <!-- Finland -->
6885     <!-- Metadata shared with Ã…land (AX) -->
6886     <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html -->
6887     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
6888                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true">
6889       <availableFormats>
6890         <numberFormat pattern="(\d{3})(\d{3,7})">
6891           <leadingDigits>
6892             (?:
6893               [1-3]00|
6894               [6-8]0
6895             )
6896           </leadingDigits>
6897           <format>$1 $2</format>
6898         </numberFormat>
6899         <numberFormat pattern="(\d{2})(\d{4,10})">
6900           <leadingDigits>
6901             2[09]|
6902             [14]|
6903             50|
6904             7[135]
6905           </leadingDigits>
6906           <format>$1 $2</format>
6907         </numberFormat>
6908         <numberFormat pattern="(\d)(\d{4,11})">
6909           <leadingDigits>
6910             [25689][1-8]|
6911             3
6912           </leadingDigits>
6913           <format>$1 $2</format>
6914         </numberFormat>
6915       </availableFormats>
6916       <generalDesc>
6917         <nationalNumberPattern>
6918           1\d{4,11}|
6919           [2-9]\d{4,10}
6920         </nationalNumberPattern>
6921         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
6922       </generalDesc>
6923       <noInternationalDialling>
6924         <!-- According to the national numbering plan, service numbers are in general not accessible
6925              from abroad, although 600/700/800 numbers may be. -->
6926         <nationalNumberPattern>
6927           [13]00\d{3,7}|
6928           2(?:
6929             0(?:
6930               0\d{3,7}|
6931               2[023]\d{1,6}|
6932               9[89]\d{1,6}
6933             )
6934           )|
6935           60(?:
6936             [12]\d{5,6}|
6937             6\d{7}
6938           )|
6939           7(?:
6940             1\d{7}|
6941             3\d{8}|
6942             5[03-9]\d{2,7}
6943           )
6944         </nationalNumberPattern>
6945         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6946         <exampleNumber>100123</exampleNumber>
6947       </noInternationalDialling>
6948       <fixedLine>
6949         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
6950              are listed under UAN. It also excludes Ã…land numbers. -->
6951         <nationalNumberPattern>
6952           1(?:
6953             [3569][1-8]\d{3,9}|
6954             [47]\d{5,10}
6955           )|
6956           2[1-8]\d{3,9}|
6957           3(?:
6958             [1-8]\d{3,9}|
6959             9\d{4,8}
6960           )|
6961           [5689][1-8]\d{3,9}
6962         </nationalNumberPattern>
6963         <exampleNumber>1312345678</exampleNumber>
6964       </fixedLine>
6965       <mobile>
6966         <nationalNumberPattern>
6967           4\d{5,10}|
6968           50\d{4,8}
6969         </nationalNumberPattern>
6970         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
6971         <exampleNumber>412345678</exampleNumber>
6972       </mobile>
6973       <tollFree>
6974         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
6975         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6976         <exampleNumber>8001234567</exampleNumber>
6977       </tollFree>
6978       <premiumRate>
6979         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
6980         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6981         <exampleNumber>600123456</exampleNumber>
6982       </premiumRate>
6983       <uan>
6984         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
6985              assigned to institutions such as universities, the national post, etc, where they are
6986              not otherwise classified as toll-free or premium-rate numbers. -->
6987         <nationalNumberPattern>
6988           [13]0\d{4,8}|
6989           2(?:
6990             0(?:
6991               [016-8]\d{3,7}|
6992               [2-59]\d{2,7}
6993             )|
6994             9\d{4,8}
6995           )|
6996           60(?:
6997             [12]\d{5,6}|
6998             6\d{7}
6999           )|
7000           7(?:
7001             1\d{7}|
7002             3\d{8}|
7003             5[03-9]\d{2,7}
7004           )
7005         </nationalNumberPattern>
7006         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
7007         <exampleNumber>10112345</exampleNumber>
7008       </uan>
7009       <emergency>
7010         <nationalNumberPattern>112</nationalNumberPattern>
7011         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7012         <exampleNumber>112</exampleNumber>
7013       </emergency>
7014     </territory>
7015
7016     <!-- Fiji -->
7017     <!-- http://www.itu.int/oth/T0202000048/en -->
7018     <!-- www.tfl.com.fj -->
7019     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
7020                preferredInternationalPrefix="00" leadingZeroPossible="true">
7021       <availableFormats>
7022         <numberFormat pattern="(\d{3})(\d{4})">
7023           <leadingDigits>[36-9]</leadingDigits>
7024           <format>$1 $2</format>
7025         </numberFormat>
7026         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
7027           <leadingDigits>0</leadingDigits>
7028           <format>$1 $2 $3</format>
7029         </numberFormat>
7030       </availableFormats>
7031       <generalDesc>
7032         <nationalNumberPattern>
7033           [36-9]\d{6}|
7034           0\d{10}
7035         </nationalNumberPattern>
7036         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
7037       </generalDesc>
7038       <fixedLine>
7039         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
7040              online, including in the white pages. 35X and 85X were found in the exchanges listed on
7041              www.tfl.com.fj. -->
7042         <nationalNumberPattern>
7043           (?:
7044             3[0-5]|
7045             6[25-7]|
7046             8[58]
7047           )\d{5}
7048         </nationalNumberPattern>
7049         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7050         <exampleNumber>3212345</exampleNumber>
7051       </fixedLine>
7052       <mobile>
7053         <!-- Adding 7[67], 8[367], and 9[034678] from numbers found online and numbers where SMSs
7054              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
7055         <nationalNumberPattern>
7056           (?:
7057             7[0-467]|
7058             8[3467]|
7059             9\d
7060           )\d{5}
7061         </nationalNumberPattern>
7062         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7063         <exampleNumber>7012345</exampleNumber>
7064       </mobile>
7065       <tollFree>
7066         <!-- Information found on www.tfl.com.fj. It is not clear if these are internationally
7067              diallable, or if so, how. -->
7068         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
7069         <possibleNumberPattern>\d{11}</possibleNumberPattern>
7070         <exampleNumber>08001234567</exampleNumber>
7071       </tollFree>
7072       <emergency>
7073         <nationalNumberPattern>91[17]</nationalNumberPattern>
7074         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7075         <exampleNumber>911</exampleNumber>
7076       </emergency>
7077     </territory>
7078
7079     <!-- Falkland Islands (Malvinas) -->
7080     <!-- http://www.itu.int/oth/T0202000046/en -->
7081     <territory id="FK" countryCode="500" internationalPrefix="00">
7082       <!-- All numbers are formatted together, as a block. -->
7083       <generalDesc>
7084         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
7085         <possibleNumberPattern>\d{5}</possibleNumberPattern>
7086       </generalDesc>
7087       <fixedLine>
7088         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
7089         <exampleNumber>31234</exampleNumber>
7090       </fixedLine>
7091       <mobile>
7092         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
7093         <exampleNumber>51234</exampleNumber>
7094       </mobile>
7095       <emergency>
7096         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
7097         <nationalNumberPattern>999</nationalNumberPattern>
7098         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7099         <exampleNumber>999</exampleNumber>
7100       </emergency>
7101     </territory>
7102
7103     <!-- Micronesia, Federated States of -->
7104     <!-- http://www.itu.int/oth/T020200008B/en -->
7105     <territory id="FM" countryCode="691" internationalPrefix="00">
7106       <availableFormats>
7107         <numberFormat pattern="(\d{3})(\d{4})">
7108           <format>$1 $2</format>
7109         </numberFormat>
7110       </availableFormats>
7111       <generalDesc>
7112         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
7113         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7114       </generalDesc>
7115       <fixedLine>
7116         <nationalNumberPattern>
7117             3[2357]0[1-9]\d{3}|
7118             9[2-6]\d{5}
7119         </nationalNumberPattern>
7120         <exampleNumber>3201234</exampleNumber>
7121       </fixedLine>
7122       <mobile>
7123         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
7124              are exclusively mobile. -->
7125         <nationalNumberPattern>
7126           3[2357]0[1-9]\d{3}|
7127           9[2-7]\d{5}
7128         </nationalNumberPattern>
7129         <exampleNumber>3501234</exampleNumber>
7130       </mobile>
7131       <emergency>
7132         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_971.html -->
7133         <nationalNumberPattern>
7134           911|
7135           320221
7136         </nationalNumberPattern>
7137         <possibleNumberPattern>\d{3}(?:\d{3})?</possibleNumberPattern>
7138         <exampleNumber>911</exampleNumber>
7139       </emergency>
7140     </territory>
7141
7142     <!-- Faroe Islands -->
7143     <!-- http://www.itu.int/oth/T0202000047/en -->
7144     <territory id="FO" countryCode="298" internationalPrefix="00"
7145                nationalPrefixForParsing="(10(?:01|[12]0|88))"
7146                carrierCodeFormattingRule="$CC $FG">
7147       <!-- All numbers are formatted together, as a block. -->
7148       <availableFormats>
7149         <numberFormat pattern="(\d{6})">
7150           <format>$1</format>
7151         </numberFormat>
7152       </availableFormats>
7153       <generalDesc>
7154         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
7155         <possibleNumberPattern>\d{6}</possibleNumberPattern>
7156       </generalDesc>
7157       <fixedLine>
7158         <nationalNumberPattern>
7159           (?:
7160             20|
7161             [3-4]\d|
7162             8[19]
7163           )\d{4}
7164         </nationalNumberPattern>
7165         <exampleNumber>201234</exampleNumber>
7166       </fixedLine>
7167       <mobile>
7168         <nationalNumberPattern>
7169           (?:
7170             2[1-9]|
7171             5\d|
7172             7[1-79]
7173           )\d{4}
7174         </nationalNumberPattern>
7175         <exampleNumber>211234</exampleNumber>
7176       </mobile>
7177       <tollFree>
7178         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
7179         <exampleNumber>802123</exampleNumber>
7180       </tollFree>
7181       <premiumRate>
7182         <nationalNumberPattern>
7183           90(?:
7184             [1345][15-7]|
7185             2[125-7]|
7186             99
7187             )\d{2}
7188         </nationalNumberPattern>
7189         <exampleNumber>901123</exampleNumber>
7190       </premiumRate>
7191       <voip>
7192         <nationalNumberPattern>
7193           (?:
7194             6[0-36]|
7195             88
7196           )\d{4}
7197         </nationalNumberPattern>
7198         <exampleNumber>601234</exampleNumber>
7199       </voip>
7200       <emergency>
7201         <nationalNumberPattern>112</nationalNumberPattern>
7202         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7203         <exampleNumber>112</exampleNumber>
7204       </emergency>
7205     </territory>
7206
7207     <!-- France -->
7208     <!-- http://www.itu.int/oth/T020200004A/en -->
7209     <!-- http://www.arcep.fr/index.php?id=8146 -->
7210     <!-- http://en.wikipedia.org/wiki/%2B33 -->
7211     <territory id="FR" countryCode="33" internationalPrefix="[04579]0"
7212                preferredInternationalPrefix="00"
7213                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
7214       <!-- 4-digit premium-rate numbers will be formatted as a block without a national prefix. -->
7215       <availableFormats>
7216         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
7217           <leadingDigits>[1-79]</leadingDigits>
7218           <format>$1 $2 $3 $4 $5</format>
7219         </numberFormat>
7220         <numberFormat nationalPrefixFormattingRule="$NP $FG"
7221           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
7222           <leadingDigits>8</leadingDigits>
7223           <format>$1 $2 $3 $4</format>
7224         </numberFormat>
7225       </availableFormats>
7226       <generalDesc>
7227         <nationalNumberPattern>
7228           [124-9]\d{8}|
7229           3\d{3}(?:\d{5})?
7230         </nationalNumberPattern>
7231         <possibleNumberPattern>\d{4}(?:\d{5})?</possibleNumberPattern>
7232       </generalDesc>
7233       <noInternationalDialling>
7234         <nationalNumberPattern>3\d{3}</nationalNumberPattern>
7235         <possibleNumberPattern>\d{4}</possibleNumberPattern>
7236         <exampleNumber>3123</exampleNumber>
7237       </noInternationalDialling>
7238       <fixedLine>
7239         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
7240         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7241         <exampleNumber>123456789</exampleNumber>
7242       </fixedLine>
7243       <mobile>
7244         <nationalNumberPattern>
7245           6\d{8}|
7246           7[5-9]\d{7}
7247         </nationalNumberPattern>
7248         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7249         <exampleNumber>612345678</exampleNumber>
7250       </mobile>
7251       <tollFree>
7252         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
7253         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7254         <exampleNumber>801234567</exampleNumber>
7255       </tollFree>
7256       <premiumRate>
7257         <!-- We are putting 4-digit premium-rate numbers here for now, since they are used by
7258              agencies such as CPAM and the national unemployment agency. -->
7259         <nationalNumberPattern>
7260           3\d{3}|
7261           89[1-37-9]\d{6}
7262         </nationalNumberPattern>
7263         <possibleNumberPattern>\d{4}(?:\d{5})?</possibleNumberPattern>
7264         <exampleNumber>891123456</exampleNumber>
7265       </premiumRate>
7266       <sharedCost>
7267         <nationalNumberPattern>
7268           8(?:
7269             1[019]|
7270             2[0156]|
7271             84|
7272             90
7273           )\d{6}
7274         </nationalNumberPattern>
7275         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7276         <exampleNumber>810123456</exampleNumber>
7277       </sharedCost>
7278       <voip>
7279         <!-- 087 numbers used to be used for this. -->
7280         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
7281         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7282         <exampleNumber>912345678</exampleNumber>
7283       </voip>
7284       <emergency>
7285         <nationalNumberPattern>
7286           1(?:
7287             [578]|
7288             12
7289           )
7290         </nationalNumberPattern>
7291         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
7292         <exampleNumber>112</exampleNumber>
7293       </emergency>
7294     </territory>
7295
7296     <!-- Gabon -->
7297     <!-- http://www.itu.int/oth/T020200004E/en -->
7298     <!-- www.arcep.ga -->
7299     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true">
7300       <availableFormats>
7301         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
7302           <format>$1 $2 $3 $4</format>
7303         </numberFormat>
7304       </availableFormats>
7305       <generalDesc>
7306         <nationalNumberPattern>0\d{7}</nationalNumberPattern>
7307         <possibleNumberPattern>\d{8}</possibleNumberPattern>
7308       </generalDesc>
7309       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
7310            line and mobile numbering. However, it seems that this has not happened; their own
7311            website now lists numbers as "+241 01 44 68 11" and upon ringing numbers they will not
7312            connect without the 0 from outside the country. This was last tested June 2013. -->
7313       <fixedLine>
7314         <nationalNumberPattern>01\d{6}</nationalNumberPattern>
7315         <exampleNumber>01441234</exampleNumber>
7316       </fixedLine>
7317       <mobile>
7318         <nationalNumberPattern>0[2-7]\d{6}</nationalNumberPattern>
7319         <exampleNumber>06031234</exampleNumber>
7320       </mobile>
7321       <emergency>
7322         <nationalNumberPattern>
7323           1730|
7324           18|
7325           13\d{2}
7326         </nationalNumberPattern>
7327         <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
7328         <exampleNumber>1730</exampleNumber>
7329       </emergency>
7330     </territory>
7331
7332     <!-- United Kingdom -->
7333     <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/ -->
7334     <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7335     <!-- http://www.numberingplans.com/?page=dialling&sub=areacodes&ac=GB -->
7336     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
7337          validation, although the formatting rules are shared. -->
7338     <territory id="GB" countryCode="44" internationalPrefix="00"
7339                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
7340                mainCountryForCode="true">
7341       <availableFormats>
7342         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
7343         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
7344           <leadingDigits>
7345             2|
7346             5[56]|
7347             7(?:
7348               0|
7349               6[013-9]
7350             )
7351           </leadingDigits>
7352           <leadingDigits>
7353             2|
7354             5[56]|
7355             7(?:
7356               0|
7357               6(?:
7358                 [013-9]|
7359                 2[0-35-9]
7360               )
7361             )
7362           </leadingDigits>
7363           <format>$1 $2 $3</format>
7364         </numberFormat>
7365         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
7366         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
7367           <leadingDigits>
7368             1(?:
7369               1|
7370               \d1
7371             )|
7372             3|
7373             9[018]
7374           </leadingDigits>
7375           <format>$1 $2 $3</format>
7376         </numberFormat>
7377         <!-- 1dddd with 9 or 10 digits.
7378              These area codes are very rare in GB, and are only available in the following places:
7379              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
7380              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
7381              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
7382         <numberFormat pattern="(\d{5})(\d{4,5})">
7383           <leadingDigits>
7384             1(?:
7385               38|
7386               5[23]|
7387               69|
7388               76|
7389               94
7390             )
7391           </leadingDigits>
7392           <leadingDigits>
7393             1(?:
7394               387|
7395               5(?:
7396                 24|
7397                 39
7398               )|
7399               697|
7400               768|
7401               946
7402             )
7403           </leadingDigits>
7404           <leadingDigits>
7405             1(?:
7406               3873|
7407               5(?:
7408                 242|
7409                 39[456]
7410               )|
7411               697[347]|
7412               768[347]|
7413               9467
7414             )
7415           </leadingDigits>
7416           <format>$1 $2</format>
7417         </numberFormat>
7418         <!-- 1ddd with 9 or 10 digits. -->
7419         <numberFormat pattern="(1\d{3})(\d{5,6})">
7420           <leadingDigits>1</leadingDigits>
7421           <format>$1 $2</format>
7422         </numberFormat>
7423         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
7424         <numberFormat pattern="(7\d{3})(\d{6})">
7425           <leadingDigits>
7426             7(?:
7427               [1-5789]|
7428               62
7429             )
7430           </leadingDigits>
7431           <leadingDigits>
7432             7(?:
7433               [1-5789]|
7434               624
7435             )
7436           </leadingDigits>
7437           <format>$1 $2</format>
7438         </numberFormat>
7439         <!-- 800 1111 : UK ChildLine. -->
7440         <numberFormat pattern="(800)(\d{4})">
7441           <leadingDigits>800</leadingDigits>
7442           <leadingDigits>8001</leadingDigits>
7443           <leadingDigits>80011</leadingDigits>
7444           <leadingDigits>800111</leadingDigits>
7445           <leadingDigits>8001111</leadingDigits>
7446           <format>$1 $2</format>
7447         </numberFormat>
7448         <!-- 845 46 47 : UK NHS Direct. -->
7449         <numberFormat pattern="(845)(46)(4\d)">
7450           <leadingDigits>845</leadingDigits>
7451           <leadingDigits>8454</leadingDigits>
7452           <leadingDigits>84546</leadingDigits>
7453           <leadingDigits>845464</leadingDigits>
7454           <format>$1 $2 $3</format>
7455         </numberFormat>
7456         <!-- 84d, 87d with 10 digits. -->
7457         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
7458           <leadingDigits>
7459             8(?:
7460               4[2-5]|
7461               7[0-3]
7462             )
7463           </leadingDigits>
7464           <format>$1 $2 $3</format>
7465         </numberFormat>
7466         <!-- 80d (including 800) with 10 digits. -->
7467         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
7468           <leadingDigits>80</leadingDigits>
7469           <format>$1 $2 $3</format>
7470         </numberFormat>
7471         <!-- 500, 800 with 9 digits. -->
7472         <numberFormat pattern="([58]00)(\d{6})">
7473           <leadingDigits>[58]00</leadingDigits>
7474           <format>$1 $2</format>
7475         </numberFormat>
7476       </availableFormats>
7477       <generalDesc>
7478         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
7479         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
7480       </generalDesc>
7481       <areaCodeOptional>
7482         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
7483              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
7484              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
7485              necessarily valid numbers. -->
7486         <nationalNumberPattern>
7487           2\d[2-9]\d{7}|
7488           1(?:
7489             1\d|
7490             \d1
7491           )[2-9]\d{6}|
7492           1(?:
7493             [248][02-9]\d[2-9]\d{4,5}|
7494             (?:
7495               3(?:
7496                 [02-79]\d|
7497                 8[0-69]
7498               )|
7499               5(?:
7500                 [04-9]\d|
7501                 2[0-35-9]|
7502                 3[0-8]
7503               )|
7504               6(?:
7505                 [02-8]\d|
7506                 9[0-689]
7507               )|
7508               7(?:
7509                 [02-5789]\d|
7510                 6[0-79]
7511               )|
7512               9(?:
7513                 [0235-9]\d|
7514                 4[0-5789]
7515               )
7516             )[2-9]\d{4,5}|
7517             (?:
7518               387(?:
7519                 3[2-9]|
7520                 [24-9]\d
7521               )|
7522               5(?:
7523                 24(?:
7524                   2[2-9]|
7525                   [3-9]\d
7526                 )|
7527                 39(?:
7528                   [4-6][2-9]|
7529                   [237-9]\d
7530                 )
7531               )|
7532               697(?:
7533                 [347][2-9]|
7534                 [25689]\d
7535               )|
7536               768(?:
7537                 [347][2-9]|
7538                 [25679]\d
7539               )|
7540               946(?:
7541                 7[2-9]|
7542                 [2-689]\d
7543               )
7544             )\d{3,4}
7545           )
7546         </nationalNumberPattern>
7547         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
7548         <exampleNumber>1332456789</exampleNumber>
7549       </areaCodeOptional>
7550       <fixedLine>
7551         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7552         <!-- Pattern matches geographic NSN=10 numbers as follows:
7553              - area code and local number first digit for 2+8,
7554              - area code and local number first digit for 3+7,
7555              - area code only for 4+6 (including areas with embedded 5+5).
7556              Pattern matches geographic NSN=9 numbers as follows:
7557              - area code and local number first two digits for 4+5,
7558              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
7559              - area code and local number first digit for 5+4 special case (016977) Dddd.
7560              All patterns exclude ranges used in GG, IM, JE. -->
7561         <nationalNumberPattern>
7562           2(?:
7563             0[01378]|
7564             3[0189]|
7565             4[017]|
7566             8[0-46-9]|
7567             9[012]
7568           )\d{7}|
7569           1(?:
7570             (?:
7571               1(?:
7572                 3[0-48]|
7573                 [46][0-4]|
7574                 5[012789]|
7575                 7[0-49]|
7576                 8[01349]
7577               )|
7578               21[0-7]|
7579               31[0-8]|
7580               [459]1\d|
7581               61[0-46-9]
7582             )
7583           )\d{6}|
7584           1(?:
7585             2(?:
7586               0[024-9]|
7587               2[3-9]|
7588               3[3-79]|
7589               4[1-689]|
7590               [58][02-9]|
7591               6[0-4789]|
7592               7[013-9]|
7593               9\d
7594             )|
7595             3(?:
7596               0\d|
7597               [25][02-9]|
7598               3[02-579]|
7599               [468][0-46-9]|
7600               7[1235679]|
7601               9[24578]
7602             )|
7603             4(?:
7604               0[03-9]|
7605               [28][02-5789]|
7606               [37]\d|
7607               4[02-69]|
7608               5[0-8]|
7609               [69][0-79]
7610             )|
7611             5(?:
7612               0[1235-9]|
7613               2[024-9]|
7614               3[015689]|
7615               4[02-9]|
7616               5[03-9]|
7617               6\d|
7618               7[0-35-9]|
7619               8[0-468]|
7620               9[0-5789]
7621             )|
7622             6(?:
7623               0[034689]|
7624               2[0-35689]|
7625               [38][013-9]|
7626               4[1-467]|
7627               5[0-69]|
7628               6[13-9]|
7629               7[0-8]|
7630               9[0124578]
7631             )|
7632             7(?:
7633               0[0246-9]|
7634               2\d|
7635               3[023678]|
7636               4[03-9]|
7637               5[0-46-9]|
7638               6[013-9]|
7639               7[0-35-9]|
7640               8[024-9]|
7641               9[02-9]
7642             )|
7643             8(?:
7644               0[35-9]|
7645               2[1-5789]|
7646               3[02-578]|
7647               4[0-578]|
7648               5[124-9]|
7649               6[2-69]|
7650               7\d|
7651               8[02-9]|
7652               9[02569]
7653             )|
7654             9(?:
7655               0[02-589]|
7656               2[02-689]|
7657               3[1-5789]|
7658               4[2-9]|
7659               5[0-579]|
7660               6[234789]|
7661               7[0124578]|
7662               8\d|
7663               9[2-57]
7664             )
7665           )\d{6}|
7666           1(?:
7667             2(?:
7668               0(?:
7669                 46[1-4]|
7670                 87[2-9]
7671               )|
7672               545[1-79]|
7673               76(?:
7674                 2\d|
7675                 3[1-8]|
7676                 6[1-6]
7677               )|
7678               9(?:
7679                 7(?:
7680                   2[0-4]|
7681                   3[2-5]
7682                 )|
7683                 8(?:
7684                   2[2-8]|
7685                   7[0-4789]|
7686                   8[345]
7687                 )
7688               )
7689             )|
7690             3(?:
7691               638[2-5]|
7692               647[23]|
7693               8(?:
7694                 47[04-9]|
7695                 64[015789]
7696               )
7697             )|
7698             4(?:
7699               044[1-7]|
7700               20(?:
7701                 2[23]|
7702                 8\d
7703               )|
7704               6(?:
7705                 0(?:
7706                   30|
7707                   5[2-57]|
7708                   6[1-8]|
7709                   7[2-8]
7710                 )|
7711                 140
7712               )|
7713               8(?:
7714                 052|
7715                 87[123]
7716               )
7717             )|
7718             5(?:
7719               24(?:
7720                 3[2-79]|
7721                 6\d
7722               )|
7723               276\d|
7724               6(?:
7725                 26[06-9]|
7726                 686
7727               )
7728             )|
7729             6(?:
7730               06(?:
7731                 4\d|
7732                 7[4-79]
7733               )|
7734               295[567]|
7735               35[34]\d|
7736               47(?:
7737                 24|
7738                 61
7739               )|
7740               59(?:
7741                 5[08]|
7742                 6[67]|
7743                 74
7744               )|
7745               955[0-4]
7746             )|
7747             7(?:
7748               26(?:
7749                 6[13-9]|
7750                 7[0-7]
7751               )|
7752               442\d|
7753               50(?:
7754                 2[0-3]|
7755                 [3-68]2|
7756                 76
7757               )
7758             )|
7759             8(?:
7760               27[56]\d|
7761               37(?:
7762                 5[2-5]|
7763                 8[239]
7764               )|
7765               84(?:
7766                 3[2-58]
7767               )
7768             )|
7769             9(?:
7770               0(?:
7771                 0(?:
7772                   6[1-8]|
7773                   85
7774                 )|
7775                 52\d
7776               )|
7777               3583|
7778               4(?:
7779                 66[1-8]|
7780                 9(?:
7781                   2[01]|
7782                   81
7783                 )
7784               )|
7785               63(?:
7786                 23|
7787                 3[1-4]
7788               )|
7789               9561
7790             )
7791           )\d{3}|
7792           176888[234678]\d{2}|
7793           16977[23]\d{3}
7794         </nationalNumberPattern>
7795         <exampleNumber>1212345678</exampleNumber>
7796       </fixedLine>
7797       <mobile>
7798         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
7799              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
7800         <nationalNumberPattern>
7801           7(?:
7802             [1-4]\d\d|
7803             5(?:
7804               0[0-8]|
7805               [13-9]\d|
7806               2[0-35-9]
7807             )|
7808             7(?:
7809               0[1-9]|
7810               [1-7]\d|
7811               8[02-9]|
7812               9[0-689]
7813             )|
7814             8(?:
7815               [014-9]\d|
7816               [23][0-8]
7817             )|
7818             9(?:
7819               [04-9]\d|
7820               1[02-9]|
7821               2[0-35-9]|
7822               3[0-689]
7823             )
7824           )\d{6}
7825         </nationalNumberPattern>
7826         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7827         <exampleNumber>7400123456</exampleNumber>
7828       </mobile>
7829       <pager>
7830         <!-- 76 with 10 digits; excluding ranges used in IM. -->
7831         <nationalNumberPattern>
7832           76(?:
7833             0[012]|
7834             2[356]|
7835             4[0134]|
7836             5[49]|
7837             6[0-369]|
7838             77|
7839             81|
7840             9[39]
7841           )\d{6}
7842         </nationalNumberPattern>
7843         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7844         <exampleNumber>7640123456</exampleNumber>
7845       </pager>
7846       <!-- Source for non geographic numbers:
7847            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
7848       <tollFree>
7849         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
7850              -->
7851         <nationalNumberPattern>
7852           80(?:
7853             0(?:
7854               1111|
7855               \d{6,7}
7856             )|
7857             8\d{7}
7858           )|
7859           500\d{6}
7860         </nationalNumberPattern>
7861         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
7862         <exampleNumber>8001234567</exampleNumber>
7863       </tollFree>
7864       <premiumRate>
7865         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
7866              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
7867              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
7868              910-919 are reserved for standard premium rate services. -->
7869         <nationalNumberPattern>
7870           (?:
7871             87[123]|
7872             9(?:
7873               [01]\d|
7874               8[2349]
7875             )
7876           )\d{7}
7877         </nationalNumberPattern>
7878         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7879         <exampleNumber>9012345678</exampleNumber>
7880       </premiumRate>
7881       <sharedCost>
7882         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
7883              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
7884         <nationalNumberPattern>
7885           8(?:
7886             4(?:
7887               5464\d|
7888               [2-5]\d{7}
7889             )|
7890             70\d{7}
7891           )
7892         </nationalNumberPattern>
7893         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7894         <exampleNumber>8431234567</exampleNumber>
7895       </sharedCost>
7896       <personalNumber>
7897         <!-- 70 with 10 digits. -->
7898         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
7899         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7900         <exampleNumber>7012345678</exampleNumber>
7901       </personalNumber>
7902       <voip>
7903         <!-- 56 with 10 digits. -->
7904         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
7905         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7906         <exampleNumber>5612345678</exampleNumber>
7907       </voip>
7908       <uan>
7909         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
7910         <nationalNumberPattern>
7911           (?:
7912             3[0347]|
7913             55
7914           )\d{8}
7915         </nationalNumberPattern>
7916         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7917         <exampleNumber>5512345678</exampleNumber>
7918       </uan>
7919       <emergency>
7920         <nationalNumberPattern>
7921           112|
7922           999
7923         </nationalNumberPattern>
7924         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7925         <exampleNumber>112</exampleNumber>
7926       </emergency>
7927     </territory>
7928
7929     <!-- Grenada -->
7930     <!-- http://www.itu.int/oth/T0202000057/en -->
7931     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
7932                internationalPrefix="011">
7933       <generalDesc>
7934         <!-- NANPA country - uses US formatting rules -->
7935         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
7936         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7937       </generalDesc>
7938       <fixedLine>
7939         <nationalNumberPattern>
7940           473(?:
7941             2(?:
7942               3[0-2]|
7943               69
7944             )|
7945             3(?:
7946               2[89]|
7947               86
7948             )|
7949             4(?:
7950               [06]8|
7951               3[5-9]|
7952               4[0-49]|
7953               5[5-79]|
7954               68|
7955               73|
7956               90
7957             )|
7958             63[68]|
7959             7(?:
7960               58|
7961               84
7962             )|
7963             938
7964           )\d{4}
7965         </nationalNumberPattern>
7966         <exampleNumber>4732691234</exampleNumber>
7967       </fixedLine>
7968       <mobile>
7969         <nationalNumberPattern>
7970           473(?:
7971             4(?:
7972               0[3-79]|
7973               1[04-9]|
7974               20|
7975               58
7976             )|
7977             53[3-8]
7978           )\d{4}
7979         </nationalNumberPattern>
7980         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7981         <exampleNumber>4734031234</exampleNumber>
7982       </mobile>
7983       <tollFree>
7984         <nationalNumberPattern>
7985           8(?:
7986             00|
7987             55|
7988             66|
7989             77|
7990             88
7991           )[2-9]\d{6}
7992         </nationalNumberPattern>
7993         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7994         <exampleNumber>8002123456</exampleNumber>
7995       </tollFree>
7996       <premiumRate>
7997         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
7998         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7999         <exampleNumber>9002123456</exampleNumber>
8000       </premiumRate>
8001       <personalNumber>
8002         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
8003         <nationalNumberPattern>
8004           5(?:
8005             00|
8006             33|
8007             44
8008           )[2-9]\d{6}
8009         </nationalNumberPattern>
8010         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8011         <exampleNumber>5002345678</exampleNumber>
8012       </personalNumber>
8013       <emergency>
8014         <!-- http://barbados.usembassy.gov/emergency-grenada.html -->
8015         <nationalNumberPattern>911</nationalNumberPattern>
8016         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8017         <exampleNumber>911</exampleNumber>
8018       </emergency>
8019     </territory>
8020
8021     <!-- Georgia -->
8022     <!-- http://www.itu.int/oth/T0202000050/en -->
8023     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia. -->
8024     <territory id="GE" countryCode="995" preferredInternationalPrefix="8~10"
8025                internationalPrefix="810" nationalPrefix="8">
8026       <availableFormats>
8027         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
8028              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
8029         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP $FG">
8030           <leadingDigits>[348]</leadingDigits>
8031           <format>$1 $2 $3 $4</format>
8032         </numberFormat>
8033         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP $FG">
8034           <leadingDigits>7</leadingDigits>
8035           <format>$1 $2 $3</format>
8036         </numberFormat>
8037         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
8038           <leadingDigits>5</leadingDigits>
8039           <format>$1 $2 $3 $4</format>
8040         </numberFormat>
8041       </availableFormats>
8042       <noInternationalDialling>
8043         <!-- Online numbers mention that this is not internationally diallable. -->
8044         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8045         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8046         <exampleNumber>706123456</exampleNumber>
8047       </noInternationalDialling>
8048       <generalDesc>
8049         <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
8050         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8051       </generalDesc>
8052       <fixedLine>
8053         <nationalNumberPattern>
8054           (?:
8055             3(?:
8056               [256]\d|
8057               4[124-9]|
8058               7[0-4]
8059             )|
8060             4(?:
8061               1\d|
8062               2[2-7]|
8063               3[1-79]|
8064               4[2-8]|
8065               7[239]|
8066               9[1-7]
8067             )
8068           )\d{6}
8069         </nationalNumberPattern>
8070         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8071         <exampleNumber>322123456</exampleNumber>
8072       </fixedLine>
8073       <mobile>
8074         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
8075              about the change in numbers, and online numbers found. -->
8076         <nationalNumberPattern>
8077           5(?:
8078             14|
8079             5[01578]|
8080             68|
8081             7[0147-9]|
8082             9[0-35-9]
8083           )\d{6}
8084         </nationalNumberPattern>
8085         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8086         <exampleNumber>555123456</exampleNumber>
8087       </mobile>
8088       <!-- Information from www.yell.ge, examples such as Wissol Petroleum Georgia hotline. -->
8089       <tollFree>
8090         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
8091         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8092         <exampleNumber>800123456</exampleNumber>
8093       </tollFree>
8094       <voip>
8095         <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
8096         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8097         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8098         <exampleNumber>706123456</exampleNumber>
8099       </voip>
8100       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
8101            these are omitted for now. -->
8102       <emergency>
8103         <!-- According to Wikipedia, 011, 022 and 033 will be replaced by 111, 122, 113 and 114 in
8104              2011. We are not sure if that has happened, so we support both versions for now. -->
8105         <nationalNumberPattern>
8106           0(?:
8107             11|
8108             22|
8109             33
8110           )|
8111           1(?:
8112             1[123]|
8113             22
8114           )
8115         </nationalNumberPattern>
8116         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8117         <exampleNumber>112</exampleNumber>
8118       </emergency>
8119     </territory>
8120
8121     <!-- French Guiana (French Dept. of) -->
8122     <!-- http://www.itu.int/oth/T020200004C/en -->
8123     <!-- http://www.arcep.fr/index.php?id=2137&bloc=0594&CMD=RESULTS_NUMEROTATION -->
8124     <!-- http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf -->
8125     <!-- Using a national prefix here as online numbers are formatted with it.  -->
8126     <territory id="GF" countryCode="594" internationalPrefix="00"
8127                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
8128       <availableFormats>
8129         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8130           <format>$1 $2 $3 $4</format>
8131         </numberFormat>
8132       </availableFormats>
8133       <generalDesc>
8134         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8135         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8136       </generalDesc>
8137       <fixedLine>
8138         <nationalNumberPattern>
8139           594(?:
8140             10|
8141             2[012457-9]|
8142             3[0-57-9]|
8143             4[3-9]|
8144             5[7-9]|
8145             6[0-3]|
8146             9[014]
8147           )\d{4}
8148         </nationalNumberPattern>
8149         <exampleNumber>594101234</exampleNumber>
8150       </fixedLine>
8151       <mobile>
8152         <nationalNumberPattern>
8153           694(?:
8154             [04][0-7]|
8155             1[0-5]|
8156             3[018]|
8157             [29]\d
8158           )\d{4}
8159         </nationalNumberPattern>
8160         <exampleNumber>694201234</exampleNumber>
8161       </mobile>
8162       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
8163            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
8164            too. -->
8165       <emergency>
8166         <nationalNumberPattern>1[578]</nationalNumberPattern>
8167         <possibleNumberPattern>\d{2}</possibleNumberPattern>
8168         <exampleNumber>15</exampleNumber>
8169       </emergency>
8170     </territory>
8171
8172     <!-- Guernsey -->
8173     <!-- Inherits formatting rules from the UK. -->
8174     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
8175     <territory id="GG" countryCode="44" internationalPrefix="00"
8176                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
8177       <generalDesc>
8178         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
8179         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
8180       </generalDesc>
8181       <areaCodeOptional>
8182         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
8183         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8184         <exampleNumber>1481250123</exampleNumber>
8185       </areaCodeOptional>
8186       <!-- Specific to GG. -->
8187       <fixedLine>
8188         <!-- 1481 with 10 digits. -->
8189         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
8190         <exampleNumber>1481456789</exampleNumber>
8191       </fixedLine>
8192       <mobile>
8193         <!-- 7781, 7839, 7911 with 10 digits. -->
8194         <nationalNumberPattern>
8195           7(?:
8196             781|
8197             839|
8198             911
8199           )\d{6}
8200         </nationalNumberPattern>
8201         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8202         <exampleNumber>7781123456</exampleNumber>
8203       </mobile>
8204       <!-- Other numbers as per GB. -->
8205       <pager>
8206         <nationalNumberPattern>
8207           76(?:
8208             0[012]|
8209             2[356]|
8210             4[0134]|
8211             5[49]|
8212             6[0-369]|
8213             77|
8214             81|
8215             9[39]
8216           )\d{6}
8217         </nationalNumberPattern>
8218         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8219         <exampleNumber>7640123456</exampleNumber>
8220       </pager>
8221       <tollFree>
8222         <nationalNumberPattern>
8223           80(?:
8224             0(?:
8225               1111|
8226               \d{6,7}
8227             )|
8228             8\d{7}
8229           )|
8230           500\d{6}
8231         </nationalNumberPattern>
8232         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
8233         <exampleNumber>8001234567</exampleNumber>
8234       </tollFree>
8235       <premiumRate>
8236         <nationalNumberPattern>
8237           (?:
8238             87[123]|
8239             9(?:
8240               [01]\d|
8241               8[0-3]
8242             )
8243           )\d{7}
8244         </nationalNumberPattern>
8245         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8246         <exampleNumber>9012345678</exampleNumber>
8247       </premiumRate>
8248       <sharedCost>
8249         <nationalNumberPattern>
8250           8(?:
8251             4(?:
8252               5464\d|
8253               [2-5]\d{7}
8254             )|
8255             70\d{7}
8256           )
8257         </nationalNumberPattern>
8258         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8259         <exampleNumber>8431234567</exampleNumber>
8260       </sharedCost>
8261       <personalNumber>
8262         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8263         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8264         <exampleNumber>7012345678</exampleNumber>
8265       </personalNumber>
8266       <voip>
8267         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
8268         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8269         <exampleNumber>5612345678</exampleNumber>
8270       </voip>
8271       <uan>
8272         <nationalNumberPattern>
8273           (?:
8274             3[0347]|
8275             55
8276           )\d{8}
8277         </nationalNumberPattern>
8278         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8279         <exampleNumber>5512345678</exampleNumber>
8280       </uan>
8281       <emergency>
8282         <!-- http://en.wikipedia.org/wiki/Guernsey#Emergency_services -->
8283         <nationalNumberPattern>
8284           112|
8285           999
8286         </nationalNumberPattern>
8287         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8288         <exampleNumber>999</exampleNumber>
8289       </emergency>
8290     </territory>
8291
8292     <!-- Ghana -->
8293     <!-- http://www.itu.int/oth/T0202000052/en -->
8294     <!-- http://www.nca.org.gh/index.php?option=com_content&view=article&id=90&Itemid=65 -->
8295     <territory id="GH" countryCode="233" internationalPrefix="00"
8296                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
8297       <availableFormats>
8298         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
8299           <leadingDigits>[235]</leadingDigits>
8300           <format>$1 $2 $3</format>
8301         </numberFormat>
8302         <numberFormat pattern="(\d{3})(\d{5})">
8303           <leadingDigits>8</leadingDigits>
8304           <format>$1 $2</format>
8305         </numberFormat>
8306       </availableFormats>
8307       <generalDesc>
8308         <nationalNumberPattern>
8309           [235]\d{8}|
8310           8\d{7}
8311         </nationalNumberPattern>
8312         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8313       </generalDesc>
8314       <noInternationalDialling>
8315         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8316         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8317         <exampleNumber>80012345</exampleNumber>
8318       </noInternationalDialling>
8319       <fixedLine>
8320         <nationalNumberPattern>
8321           3(?:
8322             0[237]\d|
8323             [167](?:
8324               2[0-6]|
8325               7\d
8326             )|
8327             2(?:
8328               2[0-5]|
8329               7\d
8330             )|
8331             3(?:
8332               2[0-3]|
8333               7\d
8334             )|
8335             4(?:
8336               2[013-9]|
8337               3[01]|
8338               7\d
8339             )|
8340             5(?:
8341               2[0-7]|
8342               7\d
8343             )|
8344             8(?:
8345               2[0-2]|
8346               7\d
8347             )|
8348             9(?:
8349               20|
8350               7\d
8351             )
8352           )\d{5}
8353         </nationalNumberPattern>
8354         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8355         <exampleNumber>302345678</exampleNumber>
8356       </fixedLine>
8357       <mobile>
8358         <nationalNumberPattern>
8359           (?:
8360             2[034678]|
8361             5[047]
8362           )\d{7}
8363         </nationalNumberPattern>
8364         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8365         <exampleNumber>231234567</exampleNumber>
8366       </mobile>
8367       <tollFree>
8368         <!-- Found online references to these numbers, although they are not in the plan since they
8369              are not internationally diallable. -->
8370         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8371         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8372         <exampleNumber>80012345</exampleNumber>
8373       </tollFree>
8374       <!-- No premiumRate information can be found. -->
8375       <emergency>
8376         <nationalNumberPattern>
8377           19[123]|
8378           999
8379         </nationalNumberPattern>
8380         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8381         <exampleNumber>999</exampleNumber>
8382       </emergency>
8383     </territory>
8384
8385     <!-- Gibraltar -->
8386     <territory id="GI" countryCode="350" internationalPrefix="00">
8387       <!-- No formatting rules - numbers are always formatted as a block. -->
8388       <generalDesc>
8389         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
8390         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8391       </generalDesc>
8392       <fixedLine>
8393         <nationalNumberPattern>
8394           2(?:
8395             00\d|
8396             16[0-7]|
8397             22[2457]
8398           )\d{4}
8399         </nationalNumberPattern>
8400         <exampleNumber>20012345</exampleNumber>
8401       </fixedLine>
8402       <mobile>
8403         <nationalNumberPattern>
8404           (?:
8405             5[4-8]|
8406             60
8407           )\d{6}
8408         </nationalNumberPattern>
8409         <exampleNumber>57123456</exampleNumber>
8410       </mobile>
8411       <tollFree>
8412         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
8413         <exampleNumber>80123456</exampleNumber>
8414       </tollFree>
8415       <premiumRate>
8416         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
8417         <exampleNumber>88123456</exampleNumber>
8418       </premiumRate>
8419       <sharedCost>
8420         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
8421         <exampleNumber>87123456</exampleNumber>
8422       </sharedCost>
8423       <emergency>
8424         <nationalNumberPattern>
8425           1(?:
8426             12|
8427             9[09]
8428           )
8429         </nationalNumberPattern>
8430         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8431         <exampleNumber>112</exampleNumber>
8432       </emergency>
8433     </territory>
8434
8435     <!-- Greenland -->
8436     <!-- http://www.itu.int/oth/T0202000056/en -->
8437     <territory id="GL" countryCode="299" internationalPrefix="00">
8438       <availableFormats>
8439         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
8440           <format>$1 $2 $3</format>
8441         </numberFormat>
8442       </availableFormats>
8443       <generalDesc>
8444         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
8445         <possibleNumberPattern>\d{6}</possibleNumberPattern>
8446       </generalDesc>
8447       <fixedLine>
8448         <!-- Including VSAT numbers here. -->
8449         <nationalNumberPattern>
8450           (?:
8451             19|
8452             3[1-6]|
8453             6[14689]|
8454             8[14-79]|
8455             9\d
8456           )\d{4}
8457         </nationalNumberPattern>
8458         <exampleNumber>321000</exampleNumber>
8459       </fixedLine>
8460       <mobile>
8461         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
8462         <exampleNumber>221234</exampleNumber>
8463       </mobile>
8464       <tollFree>
8465         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
8466         <exampleNumber>801234</exampleNumber>
8467       </tollFree>
8468       <voip>
8469         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
8470         <exampleNumber>381234</exampleNumber>
8471       </voip>
8472       <emergency>
8473         <nationalNumberPattern>112</nationalNumberPattern>
8474         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8475         <exampleNumber>112</exampleNumber>
8476       </emergency>
8477     </territory>
8478
8479     <!-- Gambia -->
8480     <!-- http://www.itu.int/oth/T020200004F/en -->
8481     <territory id="GM" countryCode="220" internationalPrefix="00">
8482       <availableFormats>
8483         <numberFormat pattern="(\d{3})(\d{4})">
8484           <format>$1 $2</format>
8485         </numberFormat>
8486       </availableFormats>
8487       <generalDesc>
8488         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
8489         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8490       </generalDesc>
8491       <fixedLine>
8492         <nationalNumberPattern>
8493           (?:
8494             4(?:
8495               [23]\d{2}|
8496               4(?:
8497                 1[024679]|
8498                 [6-9]\d
8499               )
8500             )|
8501             5(?:
8502               54[0-7]|
8503               6(?:
8504                 [67]\d
8505               )|
8506               7(?:
8507                 1[04]|
8508                 2[035]|
8509                 3[58]|
8510                 48
8511               )
8512             )|
8513             8\d{3}
8514           )\d{3}
8515         </nationalNumberPattern>
8516         <exampleNumber>5661234</exampleNumber>
8517       </fixedLine>
8518       <mobile>
8519         <nationalNumberPattern>
8520           (?:
8521             2[0-2]|
8522             [3679]\d
8523           )\d{5}
8524         </nationalNumberPattern>
8525         <exampleNumber>3012345</exampleNumber>
8526       </mobile>
8527       <emergency>
8528         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1121.html -->
8529         <!-- http://www.netglobers.com/africa/gambia-emergency-numbers-in-the-gambia.html -->
8530         <nationalNumberPattern>1?1[678]</nationalNumberPattern>
8531         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
8532         <exampleNumber>117</exampleNumber>
8533       </emergency>
8534     </territory>
8535
8536     <!-- Guinea -->
8537     <!-- http://www.itu.int/oth/T020200005B/en -->
8538     <territory id="GN" countryCode="224" internationalPrefix="00">
8539       <availableFormats>
8540         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
8541           <leadingDigits>3</leadingDigits>
8542           <format>$1 $2 $3 $4</format>
8543         </numberFormat>
8544         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8545           <leadingDigits>[67]</leadingDigits>
8546           <format>$1 $2 $3 $4</format>
8547         </numberFormat>
8548       </availableFormats>
8549       <generalDesc>
8550         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
8551         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
8552       </generalDesc>
8553       <fixedLine>
8554         <nationalNumberPattern>
8555           30(?:
8556             24|
8557             3[12]|
8558             4[1-35-7]|
8559             5[13]|
8560             6[189]|
8561             [78]1|
8562             9[1478]
8563           )\d{4}
8564         </nationalNumberPattern>
8565         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8566         <exampleNumber>30241234</exampleNumber>
8567       </fixedLine>
8568       <mobile>
8569         <!-- Limited to the new 9-digit mobile ranges, which came into effect March 29th 2013. -->
8570         <nationalNumberPattern>
8571           6(?:
8572             [03]1|
8573             2[128]|
8574             5[57]|
8575             6[2469]
8576           )\d{6}
8577         </nationalNumberPattern>
8578         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8579         <exampleNumber>601123456</exampleNumber>
8580       </mobile>
8581       <voip>
8582         <!-- Gamma concept network is being listed as VoIP as per
8583              http://www.gammaconcept.com/internet%20sat.html -->
8584         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
8585         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8586         <exampleNumber>722123456</exampleNumber>
8587       </voip>
8588       <!-- No national emergency numbers were located for Guinea. -->
8589     </territory>
8590
8591     <!-- Guadeloupe -->
8592     <!-- http://www.itu.int/oth/T0202000058/en -->
8593     <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
8594     <territory id="GP" countryCode="590" internationalPrefix="00"
8595                mainCountryForCode="true" nationalPrefix="0"
8596                nationalPrefixFormattingRule="$NP$FG">
8597       <availableFormats>
8598         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
8599           <format>$1 $2-$3</format>
8600         </numberFormat>
8601       </availableFormats>
8602       <generalDesc>
8603         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8604         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8605       </generalDesc>
8606       <fixedLine>
8607         <nationalNumberPattern>
8608           590(?:
8609             0[13468]|
8610             1[012]|
8611             2[0-68]|
8612             3[28]|
8613             4[0-8]|
8614             5[579]|
8615             6[0189]|
8616             70|
8617             8[0-689]|
8618             9\d
8619           )\d{4}
8620         </nationalNumberPattern>
8621         <exampleNumber>590201234</exampleNumber>
8622       </fixedLine>
8623       <mobile>
8624         <!-- Any ranges assigned from
8625              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
8626              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
8627              them. -->
8628         <nationalNumberPattern>
8629           690(?:
8630             0[0-7]|
8631             [1-9]\d
8632           )\d{4}
8633         </nationalNumberPattern>
8634         <exampleNumber>690301234</exampleNumber>
8635       </mobile>
8636       <!-- http://www.guadeloupe.franceantilles.fr/pratique/urgences/numeros-urgence-guadeloupe-14950.php -->
8637       <emergency>
8638         <nationalNumberPattern>1[578]</nationalNumberPattern>
8639         <possibleNumberPattern>\d{2}</possibleNumberPattern>
8640         <exampleNumber>18</exampleNumber>
8641       </emergency>
8642     </territory>
8643
8644     <!-- Equatorial Guinea -->
8645     <!-- http://www.itu.int/oth/T0202000041/en -->
8646     <territory id="GQ" countryCode="240" internationalPrefix="00">
8647       <availableFormats>
8648         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
8649           <leadingDigits>[235]</leadingDigits>
8650           <format>$1 $2 $3</format>
8651         </numberFormat>
8652         <numberFormat pattern="(\d{3})(\d{6})">
8653           <leadingDigits>[89]</leadingDigits>
8654           <format>$1 $2</format>
8655         </numberFormat>
8656       </availableFormats>
8657       <generalDesc>
8658         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
8659         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8660       </generalDesc>
8661       <fixedLine>
8662         <nationalNumberPattern>
8663           3(?:
8664             3(?:
8665               3\d[7-9]|
8666               [0-24-9]\d[46]
8667             )|
8668             5\d{2}[7-9]
8669           )\d{4}
8670         </nationalNumberPattern>
8671         <exampleNumber>333091234</exampleNumber>
8672       </fixedLine>
8673       <mobile>
8674         <nationalNumberPattern>
8675           (?:
8676             222|
8677             551
8678           )\d{6}
8679         </nationalNumberPattern>
8680         <exampleNumber>222123456</exampleNumber>
8681       </mobile>
8682       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
8683            they start allocating them there will be a differentiation of prefixes, but this is not
8684            clear now. -->
8685       <tollFree>
8686         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
8687         <exampleNumber>800123456</exampleNumber>
8688       </tollFree>
8689       <premiumRate>
8690         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
8691         <exampleNumber>900123456</exampleNumber>
8692       </premiumRate>
8693       <!-- No national emergency numbers were located for Equatorial Guinea. -->
8694     </territory>
8695
8696     <!-- Greece -->
8697     <!-- http://www.itu.int/oth/T0202000055/en -->
8698     <!-- http://en.wikipedia.org/wiki/%2B30 -->
8699     <territory id="GR" countryCode="30" internationalPrefix="00">
8700       <availableFormats>
8701         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
8702           <leadingDigits>
8703             21|
8704             7
8705           </leadingDigits>
8706           <format>$1 $2 $3</format>
8707         </numberFormat>
8708         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
8709           <leadingDigits>
8710             2[2-9]1|
8711             [689]
8712           </leadingDigits>
8713           <format>$1 $2 $3</format>
8714         </numberFormat>
8715         <numberFormat pattern="(2\d{3})(\d{6})">
8716           <leadingDigits>2[2-9][02-9]</leadingDigits>
8717           <format>$1 $2</format>
8718         </numberFormat>
8719       </availableFormats>
8720       <generalDesc>
8721         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
8722         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8723       </generalDesc>
8724       <fixedLine>
8725         <nationalNumberPattern>
8726           2(?:
8727             1\d{2}|
8728             2(?:
8729               3[1-8]|
8730               4[1-7]|
8731               5[1-4]|
8732               6[1-8]|
8733               7[1-5]|
8734               [289][1-9]
8735             )|
8736             3(?:
8737               1\d|
8738               2[1-57]|
8739               3[1-4]|
8740               [45][1-3]|
8741               7[1-7]|
8742               8[1-6]|
8743               9[1-79]
8744             )|
8745             4(?:
8746               1\d|
8747               2[1-8]|
8748               3[1-4]|
8749               4[13-5]|
8750               6[1-578]|
8751               9[1-5]
8752             )|
8753             5(?:
8754               1\d|
8755               [239][1-4]|
8756               4[124]|
8757               5[1-6]
8758             )|
8759             6(?:
8760               1\d|
8761               3[124]|
8762               4[1-7]|
8763               5[13-9]|
8764               [269][1-6]|
8765               7[14]|
8766               8[1-5]
8767             )|
8768             7(?:
8769               1\d|
8770               2[1-5]|
8771               3[1-6]|
8772               4[1-7]|
8773               5[1-57]|
8774               6[134]|
8775               9[15-7]
8776             )|
8777             8(?:
8778               1\d|
8779               2[1-5]|
8780               [34][1-4]|
8781               9[1-7]
8782             )
8783           )\d{6}
8784         </nationalNumberPattern>
8785         <exampleNumber>2123456789</exampleNumber>
8786       </fixedLine>
8787       <mobile>
8788         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
8789         <exampleNumber>6912345678</exampleNumber>
8790       </mobile>
8791       <tollFree>
8792         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
8793         <exampleNumber>8001234567</exampleNumber>
8794       </tollFree>
8795       <premiumRate>
8796         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
8797         <exampleNumber>9091234567</exampleNumber>
8798       </premiumRate>
8799       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
8800            rate. -->
8801       <sharedCost>
8802         <nationalNumberPattern>
8803           8(?:
8804             0[16]|
8805             12|
8806             25
8807           )\d{7}
8808         </nationalNumberPattern>
8809         <exampleNumber>8011234567</exampleNumber>
8810       </sharedCost>
8811       <personalNumber>
8812         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8813         <exampleNumber>7012345678</exampleNumber>
8814       </personalNumber>
8815       <emergency>
8816         <nationalNumberPattern>
8817           1(?:
8818             00|
8819             12|
8820             66|
8821             99
8822           )
8823         </nationalNumberPattern>
8824         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8825         <exampleNumber>112</exampleNumber>
8826       </emergency>
8827     </territory>
8828
8829     <!-- Guatemala -->
8830     <!-- http://www.itu.int/oth/T020200005A/en -->
8831     <!-- http://www.sit.gob.gt/index.php?page=plan-de-numeracion -->
8832     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala -->
8833     <territory id="GT" countryCode="502" internationalPrefix="00">
8834       <availableFormats>
8835         <numberFormat pattern="(\d{4})(\d{4})">
8836           <leadingDigits>[2-7]</leadingDigits>
8837           <format>$1 $2</format>
8838         </numberFormat>
8839         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
8840           <leadingDigits>1</leadingDigits>
8841           <format>$1 $2 $3</format>
8842         </numberFormat>
8843       </availableFormats>
8844       <generalDesc>
8845         <nationalNumberPattern>
8846           [2-7]\d{7}|
8847           1[89]\d{9}
8848         </nationalNumberPattern>
8849         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
8850       </generalDesc>
8851       <fixedLine>
8852         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
8853         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8854         <exampleNumber>22456789</exampleNumber>
8855       </fixedLine>
8856       <mobile>
8857         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
8858              they are just reserved. -->
8859         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
8860         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8861         <exampleNumber>51234567</exampleNumber>
8862       </mobile>
8863       <tollFree>
8864         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
8865         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8866         <exampleNumber>18001112222</exampleNumber>
8867       </tollFree>
8868       <premiumRate>
8869         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
8870         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8871         <exampleNumber>19001112222</exampleNumber>
8872       </premiumRate>
8873       <emergency>
8874         <nationalNumberPattern>
8875           1(?:
8876             10|
8877             2[03]
8878           )
8879         </nationalNumberPattern>
8880         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8881         <exampleNumber>110</exampleNumber>
8882       </emergency>
8883     </territory>
8884
8885     <!-- Guam -->
8886     <!-- http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel -->
8887     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
8888                internationalPrefix="011">
8889       <generalDesc>
8890         <!-- NANPA country - uses US formatting rules -->
8891         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
8892         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8893       </generalDesc>
8894       <fixedLine>
8895         <!-- Added 671 489/555/720/721 based on information from
8896              http://www.area-codes.com/area-code/area-code-671.asp -->
8897         <nationalNumberPattern>
8898           671(?:
8899             3(?:
8900               00|
8901               3[39]|
8902               4[349]|
8903               55|
8904               6[26]
8905             )|
8906             4(?:
8907               56|
8908               7[1-9]|
8909               8[236-9]
8910             )|
8911             5(?:
8912               55|
8913               6[2-5]|
8914               88
8915             )|
8916             6(?:
8917               3[2-578]|
8918               4[24-9]|
8919               5[34]|
8920               78|
8921               8[5-9]
8922             )|
8923             7(?:
8924               [079]7|
8925               2[0167]|
8926               3[45]|
8927               8[789]
8928             )|
8929             8(?:
8930               [2-5789]8|
8931               6[48]
8932             )|
8933             9(?:
8934               2[29]|
8935               6[79]|
8936               7[179]|
8937               8[789]|
8938               9[78]
8939             )
8940           )\d{4}
8941         </nationalNumberPattern>
8942         <exampleNumber>6713001234</exampleNumber>
8943       </fixedLine>
8944       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
8945            -->
8946       <mobile>
8947         <nationalNumberPattern>
8948           671(?:
8949             3(?:
8950               00|
8951               3[39]|
8952               4[349]|
8953               55|
8954               6[26]
8955             )|
8956             4(?:
8957               56|
8958               7[1-9]|
8959               8[236-9]
8960             )|
8961             5(?:
8962               55|
8963               6[2-5]|
8964               88
8965             )|
8966             6(?:
8967               3[2-578]|
8968               4[24-9]|
8969               5[34]|
8970               78|
8971               8[5-9]
8972             )|
8973             7(?:
8974               [079]7|
8975               2[0167]|
8976               3[45]|
8977               8[789]
8978             )|
8979             8(?:
8980               [2-5789]8|
8981               6[48]
8982             )|
8983             9(?:
8984               2[29]|
8985               6[79]|
8986               7[179]|
8987               8[789]|
8988               9[78]
8989             )
8990           )\d{4}
8991         </nationalNumberPattern>
8992         <exampleNumber>6713001234</exampleNumber>
8993       </mobile>
8994       <tollFree>
8995         <nationalNumberPattern>
8996           8(?:
8997             00|
8998             55|
8999             66|
9000             77|
9001             88
9002           )[2-9]\d{6}
9003         </nationalNumberPattern>
9004         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9005         <exampleNumber>8002123456</exampleNumber>
9006       </tollFree>
9007       <premiumRate>
9008         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
9009         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9010         <exampleNumber>9002123456</exampleNumber>
9011       </premiumRate>
9012       <personalNumber>
9013         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
9014         <nationalNumberPattern>
9015           5(?:
9016             00|
9017             33|
9018             44
9019           )[2-9]\d{6}
9020         </nationalNumberPattern>
9021         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9022         <exampleNumber>5002345678</exampleNumber>
9023       </personalNumber>
9024       <emergency>
9025         <!-- http://www.justice.gov.gu/compileroflaws/gca/10gca/10gc084.PDF -->
9026         <nationalNumberPattern>911</nationalNumberPattern>
9027         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9028         <exampleNumber>911</exampleNumber>
9029       </emergency>
9030     </territory>
9031
9032     <!-- Guinea-Bissau -->
9033     <!-- http://www.itu.int/oth/T020200005C/en -->
9034     <territory id="GW" countryCode="245" internationalPrefix="00">
9035       <availableFormats>
9036         <numberFormat pattern="(\d{3})(\d{4})">
9037           <format>$1 $2</format>
9038         </numberFormat>
9039       </availableFormats>
9040       <generalDesc>
9041         <nationalNumberPattern>[3567]\d{6}</nationalNumberPattern>
9042         <possibleNumberPattern>\d{7}</possibleNumberPattern>
9043       </generalDesc>
9044       <fixedLine>
9045         <nationalNumberPattern>
9046           3(?:
9047             2[0125]|
9048             3[1245]|
9049             4[12]|
9050             5[1-4]|
9051             70|
9052             9[1-467]
9053           )\d{4}
9054         </nationalNumberPattern>
9055         <exampleNumber>3201234</exampleNumber>
9056       </fixedLine>
9057       <mobile>
9058         <nationalNumberPattern>[5-7]\d{6}</nationalNumberPattern>
9059         <exampleNumber>5012345</exampleNumber>
9060       </mobile>
9061       <emergency>
9062         <!-- https://www.osac.gov/pages/ContentReportDetails.aspx?cid=10970 -->
9063         <nationalNumberPattern>11[378]</nationalNumberPattern>
9064         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9065         <exampleNumber>113</exampleNumber>
9066       </emergency>
9067     </territory>
9068
9069     <!-- Guyana -->
9070     <!-- http://www.itu.int/oth/T020200005D/en -->
9071     <territory id="GY" countryCode="592" internationalPrefix="001">
9072       <availableFormats>
9073         <numberFormat pattern="(\d{3})(\d{4})">
9074           <format>$1 $2</format>
9075         </numberFormat>
9076       </availableFormats>
9077       <generalDesc>
9078         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
9079         <possibleNumberPattern>\d{7}</possibleNumberPattern>
9080       </generalDesc>
9081       <fixedLine>
9082         <nationalNumberPattern>
9083           (?:
9084             2(?:
9085               1[6-9]|
9086               2[0-35-9]|
9087               3[1-4]|
9088               5[3-9]|
9089               6\d|
9090               7[0-24-79]
9091             )|
9092             3(?:
9093               2[25-9]|
9094               3\d
9095             )|
9096             4(?:
9097               4[0-24]|
9098               5[56]
9099             )|
9100             77[1-57]
9101           )\d{4}
9102         </nationalNumberPattern>
9103         <exampleNumber>2201234</exampleNumber>
9104       </fixedLine>
9105       <mobile>
9106         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
9107              that SMS messages have been succesfully sent to numbers in the entire range prefixed
9108              with 6. -->
9109         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
9110         <exampleNumber>6091234</exampleNumber>
9111       </mobile>
9112       <tollFree>
9113         <nationalNumberPattern>
9114           (?:
9115             289|
9116             862
9117           )\d{4}
9118         </nationalNumberPattern>
9119         <exampleNumber>2891234</exampleNumber>
9120       </tollFree>
9121       <premiumRate>
9122         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
9123         <exampleNumber>9008123</exampleNumber>
9124       </premiumRate>
9125       <emergency>
9126         <nationalNumberPattern>91[123]</nationalNumberPattern>
9127         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9128         <exampleNumber>911</exampleNumber>
9129       </emergency>
9130     </territory>
9131
9132     <!-- Hong Kong -->
9133     <!-- http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html -->
9134     <territory id="HK" countryCode="852" internationalPrefix="00">
9135       <availableFormats>
9136         <numberFormat pattern="(\d{4})(\d{4})">
9137           <leadingDigits>
9138             [235-7]|
9139             [89](?:
9140               0[1-9]|
9141               [1-9]
9142             )
9143           </leadingDigits>
9144           <format>$1 $2</format>
9145         </numberFormat>
9146         <numberFormat pattern="(800)(\d{3})(\d{3})">
9147           <leadingDigits>800</leadingDigits>
9148           <format>$1 $2 $3</format>
9149         </numberFormat>
9150         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
9151           <leadingDigits>900</leadingDigits>
9152           <format>$1 $2 $3 $4</format>
9153         </numberFormat>
9154         <numberFormat pattern="(900)(\d{2,5})">
9155           <leadingDigits>900</leadingDigits>
9156           <format>$1 $2</format>
9157         </numberFormat>
9158       </availableFormats>
9159       <generalDesc>
9160         <!-- Slightly more complex pattern to allow the country code to be stripped off if
9161              necessary. -->
9162         <nationalNumberPattern>
9163           [235-7]\d{7}|
9164           8\d{7,8}|
9165           9\d{4,10}
9166         </nationalNumberPattern>
9167         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9168       </generalDesc>
9169       <fixedLine>
9170         <nationalNumberPattern>
9171           (?:
9172             [23]\d|
9173             5[78]
9174           )\d{6}
9175         </nationalNumberPattern>
9176         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9177         <exampleNumber>21234567</exampleNumber>
9178       </fixedLine>
9179       <mobile>
9180         <nationalNumberPattern>
9181           (?:
9182             5[1-69]\d|
9183             6\d{2}|
9184             9(?:
9185               0[1-9]|
9186               [1-8]\d
9187             )
9188           )\d{5}
9189         </nationalNumberPattern>
9190         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9191         <exampleNumber>51234567</exampleNumber>
9192       </mobile>
9193       <pager>
9194         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
9195         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9196         <exampleNumber>71234567</exampleNumber>
9197       </pager>
9198       <tollFree>
9199         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
9200         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9201         <exampleNumber>800123456</exampleNumber>
9202       </tollFree>
9203       <premiumRate>
9204         <nationalNumberPattern>
9205           900(?:
9206             [0-24-9]\d{7}|
9207             3\d{1,4}
9208           )
9209         </nationalNumberPattern>
9210         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9211         <exampleNumber>90012345678</exampleNumber>
9212       </premiumRate>
9213       <personalNumber>
9214         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
9215         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9216         <exampleNumber>81123456</exampleNumber>
9217       </personalNumber>
9218       <emergency>
9219         <nationalNumberPattern>
9220           112|
9221           99[29]
9222         </nationalNumberPattern>
9223         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9224         <exampleNumber>999</exampleNumber>
9225       </emergency>
9226    </territory>
9227
9228     <!-- Honduras -->
9229     <!-- http://www.itu.int/oth/T020200005F/en -->
9230     <!-- It seems there is no longer a trunk prefix in use, based on websites like
9231          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
9232          national format. -->
9233     <territory id="HN" countryCode="504" internationalPrefix="00" >
9234       <availableFormats>
9235        <numberFormat pattern="(\d{4})(\d{4})">
9236          <format>$1-$2</format>
9237        </numberFormat>
9238       </availableFormats>
9239       <generalDesc>
9240         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
9241         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9242       </generalDesc>
9243       <fixedLine>
9244         <!-- Extra prefixes 228X and 2292 were added from numbers found online.  -->
9245         <nationalNumberPattern>
9246           2(?:
9247             2(?:
9248               0[019]|
9249               1[1-36]|
9250               [23]\d|
9251               4[056]|
9252               5[57]|
9253               8[0146-9]|
9254               9[012]
9255             )|
9256             4(?:
9257               2|3-59]|
9258               3[13-689]|
9259               4[0-68]|
9260               5[1-35]
9261             )|
9262             5(?:
9263               4[3-5]|
9264               5\d|
9265               6[56]|
9266               74
9267             )|
9268             6(?:
9269               4[0-378]|
9270               [56]\d|
9271               [78][0-8]|
9272               9[01]
9273             )|
9274             7(?:
9275               6[46-9]|
9276               7[02-9]|
9277               8[34]
9278             )|
9279             8(?:
9280               79|
9281               8[0-35789]|
9282               9[1-57-9]
9283             )
9284           )\d{4}
9285         </nationalNumberPattern>
9286         <exampleNumber>22123456</exampleNumber>
9287       </fixedLine>
9288       <mobile>
9289         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
9290         <exampleNumber>91234567</exampleNumber>
9291       </mobile>
9292       <emergency>
9293         <nationalNumberPattern>199</nationalNumberPattern>
9294         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9295         <exampleNumber>199</exampleNumber>
9296       </emergency>
9297     </territory>
9298
9299     <!-- Croatia -->
9300     <!-- http://www.itu.int/oth/T0202000032/en -->
9301     <!-- http://en.wikipedia.org/wiki/%2B385 -->
9302     <territory id="HR" countryCode="385" internationalPrefix="00"
9303                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9304       <availableFormats>
9305         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
9306              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
9307              XXXX as well. -->
9308        <numberFormat pattern="(1)(\d{4})(\d{3})">
9309          <leadingDigits>1</leadingDigits>
9310          <format>$1 $2 $3</format>
9311        </numberFormat>
9312        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
9313          <leadingDigits>6[09]</leadingDigits>
9314          <format>$1 $2 $3</format>
9315        </numberFormat>
9316        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
9317          <leadingDigits>62</leadingDigits>
9318          <format>$1 $2 $3</format>
9319        </numberFormat>
9320        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
9321          <leadingDigits>[2-5]</leadingDigits>
9322           <format>$1 $2 $3</format>
9323         </numberFormat>
9324         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
9325           <leadingDigits>9</leadingDigits>
9326           <format>$1 $2 $3</format>
9327         </numberFormat>
9328         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
9329           <leadingDigits>9</leadingDigits>
9330           <format>$1 $2 $3</format>
9331         </numberFormat>
9332         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
9333           <leadingDigits>9</leadingDigits>
9334           <format>$1 $2 $3 $4</format>
9335         </numberFormat>
9336         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
9337           <leadingDigits>
9338             6[145]|
9339             7
9340           </leadingDigits>
9341           <format>$1 $2 $3</format>
9342         </numberFormat>
9343         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
9344           <leadingDigits>
9345             6[145]|
9346             7
9347           </leadingDigits>
9348           <format>$1 $2 $3</format>
9349         </numberFormat>
9350         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
9351           <leadingDigits>8</leadingDigits>
9352           <format>$1 $2 $3</format>
9353         </numberFormat>
9354         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
9355           <leadingDigits>8</leadingDigits>
9356           <format>$1 $2 $3</format>
9357         </numberFormat>
9358       </availableFormats>
9359       <generalDesc>
9360         <nationalNumberPattern>
9361           [1-7]\d{5,8}|
9362           [89]\d{6,11}
9363         </nationalNumberPattern>
9364         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
9365       </generalDesc>
9366       <fixedLine>
9367         <nationalNumberPattern>
9368           1\d{7}|
9369           (?:
9370             2[0-3]|
9371             3[1-5]|
9372             4[02-47-9]|
9373             5[1-3]
9374           )\d{6}
9375         </nationalNumberPattern>
9376         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
9377         <exampleNumber>12345678</exampleNumber>
9378       </fixedLine>
9379       <uan>
9380         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
9381              are numbers on the internet with 6 or 7 digits after the prefix. -->
9382         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
9383         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
9384         <exampleNumber>62123456</exampleNumber>
9385       </uan>
9386       <mobile>
9387         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
9388         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
9389         <exampleNumber>912345678</exampleNumber>
9390       </mobile>
9391       <tollFree>
9392         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
9393         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9394         <exampleNumber>8001234567</exampleNumber>
9395       </tollFree>
9396       <premiumRate>
9397         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
9398              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
9399              -->
9400         <nationalNumberPattern>
9401           6(?:
9402             [09]\d{7}|
9403             [145]\d{4,7}
9404           )
9405         </nationalNumberPattern>
9406         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9407         <exampleNumber>611234</exampleNumber>
9408       </premiumRate>
9409       <personalNumber>
9410         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
9411         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9412         <exampleNumber>741234567</exampleNumber>
9413       </personalNumber>
9414       <emergency>
9415         <nationalNumberPattern>
9416           1(?:
9417             12|
9418             92
9419           )|
9420           9[34]
9421         </nationalNumberPattern>
9422         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
9423         <exampleNumber>112</exampleNumber>
9424       </emergency>
9425     </territory>
9426
9427     <!-- Haiti -->
9428     <!-- http://www.itu.int/oth/T020200005E/en -->
9429     <!-- http://www.numberingplans.com/ -->
9430     <territory id="HT" countryCode="509" internationalPrefix="00">
9431       <availableFormats>
9432         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
9433           <format>$1 $2 $3</format>
9434         </numberFormat>
9435       </availableFormats>
9436       <generalDesc>
9437         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9438         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9439       </generalDesc>
9440       <fixedLine>
9441         <!-- The prefix 24 seems to be also used, based on online searches. -->
9442         <nationalNumberPattern>
9443           2(?:
9444             [24]\d|
9445             5[1-5]|
9446             94
9447           )\d{5}
9448         </nationalNumberPattern>
9449         <exampleNumber>22453300</exampleNumber>
9450       </fixedLine>
9451       <mobile>
9452         <!-- The prefix 31 seems to be also used, based on online searches. -->
9453         <nationalNumberPattern>
9454           (?:
9455             3[1-9]|
9456             4\d
9457           )\d{6}
9458         </nationalNumberPattern>
9459         <exampleNumber>34101234</exampleNumber>
9460       </mobile>
9461       <tollFree>
9462         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
9463              without making any further distinction. However, http://www.numberingplans.com/ seems
9464              to suggest they are free. -->
9465         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
9466         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9467         <exampleNumber>80012345</exampleNumber>
9468       </tollFree>
9469       <voip>
9470         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
9471              98[89]\d{5}. -->
9472         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
9473         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9474         <exampleNumber>98901234</exampleNumber>
9475       </voip>
9476       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
9477       <emergency>
9478         <nationalNumberPattern>11[48]</nationalNumberPattern>
9479         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9480         <exampleNumber>118</exampleNumber>
9481       </emergency>
9482     </territory>
9483
9484     <!-- Hungary -->
9485     <!-- http://www.itu.int/oth/T0202000061/en -->
9486     <territory id="HU" countryCode="36" internationalPrefix="00"
9487                nationalPrefix="06" nationalPrefixFormattingRule="($FG)">
9488       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
9489            by a Hungarian person and following the yellow pages) is to omit this when formatting.
9490            Yellow pages: www.aranyoldalak.hu -->
9491       <availableFormats>
9492         <numberFormat pattern="(1)(\d{3})(\d{4})">
9493           <leadingDigits>1</leadingDigits>
9494           <format>$1 $2 $3</format>
9495         </numberFormat>
9496         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9497           <leadingDigits>[2-9]</leadingDigits>
9498           <format>$1 $2 $3</format>
9499         </numberFormat>
9500       </availableFormats>
9501       <generalDesc>
9502         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
9503         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9504       </generalDesc>
9505       <fixedLine>
9506         <!-- Includes numbers for corporate networks. -->
9507         <nationalNumberPattern>
9508           (?:
9509             1\d|
9510             2(?:
9511               1\d|
9512               [2-9]
9513             )|
9514             3[2-7]|
9515             4[24-9]|
9516             5[2-79]|
9517             6[23689]|
9518             7(?:
9519               1\d|
9520               [2-9]
9521             )|
9522             8[2-57-9]|
9523             9[2-69]
9524           )\d{6}
9525         </nationalNumberPattern>
9526         <exampleNumber>12345678</exampleNumber>
9527       </fixedLine>
9528       <mobile>
9529         <nationalNumberPattern>
9530           (?:
9531             [27]0|
9532             3[01]
9533           )\d{7}
9534         </nationalNumberPattern>
9535         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9536         <exampleNumber>201234567</exampleNumber>
9537       </mobile>
9538       <tollFree>
9539         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
9540         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9541         <exampleNumber>80123456</exampleNumber>
9542       </tollFree>
9543       <premiumRate>
9544         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
9545         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9546         <exampleNumber>90123456</exampleNumber>
9547       </premiumRate>
9548       <sharedCost>
9549         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
9550         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9551         <exampleNumber>40123456</exampleNumber>
9552       </sharedCost>
9553       <emergency>
9554         <nationalNumberPattern>
9555           1(?:
9556             0[457]|
9557             12
9558           )
9559         </nationalNumberPattern>
9560         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9561         <exampleNumber>112</exampleNumber>
9562       </emergency>
9563     </territory>
9564
9565     <!-- Indonesia -->
9566     <!-- http://www.itu.int/oth/T0202000064/en (from 2001, very out-of-date) -->
9567     <!-- http://en.wikipedia.org/wiki/%2B62 -->
9568     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
9569                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9570       <availableFormats>
9571         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9572           pattern="(\d{2})(\d{7,8})">
9573           <leadingDigits>
9574             2[124]|
9575             [36]1
9576           </leadingDigits>
9577           <format>$1 $2</format>
9578         </numberFormat>
9579         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9580           pattern="(\d{3})(\d{5,7})">
9581           <leadingDigits>
9582             [4579]|
9583             2[035-9]|
9584             [36][02-9]
9585           </leadingDigits>
9586           <format>$1 $2</format>
9587         </numberFormat>
9588         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
9589           <leadingDigits>8[1-35-9]</leadingDigits>
9590           <format>$1-$2-$3</format>
9591         </numberFormat>
9592         <numberFormat pattern="(177)(\d{6,8})">
9593           <leadingDigits>1</leadingDigits>
9594           <format>$1 $2</format>
9595         </numberFormat>
9596         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
9597              that sometimes they are followed by less digits. -->
9598         <numberFormat pattern="(800)(\d{5,7})">
9599           <leadingDigits>800</leadingDigits>
9600           <format>$1 $2</format>
9601         </numberFormat>
9602         <numberFormat pattern="(809)(\d)(\d{3})(\d{3})">
9603           <leadingDigits>809</leadingDigits>
9604           <format>$1 $2 $3 $4</format>
9605         </numberFormat>
9606       </availableFormats>
9607       <generalDesc>
9608         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
9609         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9610       </generalDesc>
9611       <fixedLine>
9612         <!-- Area codes taken from wikipedia, with missing ones added from
9613              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
9614              We also added 0770 after user feedback because it seems to be used on Bintan island.
9615              Where known, fixed mobile prefixes have been represented as Mobile. -->
9616         <nationalNumberPattern>
9617           2(?:
9618             1(?:
9619               [0-8]\d{6,7}|
9620               9\d{6}
9621             )|
9622             [24]\d{7,8}
9623           )|
9624           (?:
9625             2(?:
9626               [35][1-4]|
9627               6[0-8]|
9628               7[1-6]|
9629               8\d|
9630               9[1-8]
9631             )|
9632             3(?:
9633               1|
9634               2[1-578]|
9635               3[1-68]|
9636               4[1-3]|
9637               5[1-8]|
9638               6[1-3568]|
9639               7[0-46]|
9640               8\d
9641             )|
9642             4(?:
9643               0[1-589]|
9644               1[01347-9]|
9645               2[0-36-8]|
9646               3[0-24-68]|
9647               5[1-378]|
9648               6[1-5]|
9649               7[134]|
9650               8[1245]
9651             )|
9652             5(?:
9653               1[1-35-9]|
9654               2[25-8]|
9655               3[1246-9]|
9656               4[1-3589]|
9657               5[1-46]|
9658               6[1-8]
9659             )|
9660             6(?:
9661               19?|
9662               [25]\d|
9663               3[1-469]|
9664               4[1-6]
9665             )|
9666             7(?:
9667               1[1-46-9]|
9668               2[14-9]|
9669               [36]\d|
9670               4[1-8]|
9671               5[1-9]|
9672               7[0-36-9]
9673             )|
9674             9(?:
9675               0[12]|
9676               1[013-8]|
9677               2[0-479]|
9678               5[125-8]|
9679               6[23679]|
9680               7[159]|
9681               8[01346]
9682             )
9683           )\d{5,8}
9684         </nationalNumberPattern>
9685         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9686         <exampleNumber>612345678</exampleNumber>
9687       </fixedLine>
9688       <mobile>
9689         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
9690              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
9691              are captured below. The pattern covers the area code plus the first one-two digits of
9692              the subscriber number. -->
9693         <nationalNumberPattern>
9694           (?:
9695             2(?:
9696               1(?:
9697                 3[145]|
9698                 4[01]|
9699                 5[1-469]|
9700                 60|
9701                 8[0359]|
9702                 9\d
9703               )|
9704               2(?:
9705                 88|
9706                 9[1256]
9707               )|
9708               3[1-4]9|
9709               4(?:
9710                 36|
9711                 91
9712               )|
9713               5(?:
9714                 1[349]|
9715                 [2-4]9
9716               )|
9717               6[0-7]9|
9718               7(?:
9719                 [1-36]9|
9720                 4[39]
9721               )|
9722               8[1-5]9|
9723               9[1-48]9
9724             )|
9725             3(?:
9726               19[1-3]|
9727               2[12]9|
9728               3[13]9|
9729               4(?:
9730                 1[69]|
9731                 39
9732               )|
9733               5[14]9|
9734               6(?:
9735                 1[69]|
9736                 2[89]
9737               )|
9738               709
9739             )|
9740             4[13]19|
9741             5(?:
9742               1(?:
9743                 19|
9744                 8[39]
9745               )|
9746               4[129]9|
9747               6[12]9
9748             )|
9749             6(?:
9750               19[12]|
9751               2(?:
9752                 [23]9|
9753                 77
9754               )
9755             )|
9756             7(?:
9757               1[13]9|
9758               2[15]9|
9759               419|
9760               5(?:
9761                 1[89]|
9762                 29
9763               )|
9764               6[15]9|
9765               7[178]9
9766             )
9767           )\d{5,6}|
9768           8[1-35-9]\d{7,9}
9769         </nationalNumberPattern>
9770         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
9771         <exampleNumber>812345678</exampleNumber>
9772       </mobile>
9773       <tollFree>
9774         <nationalNumberPattern>
9775           177\d{6,8}|
9776           800\d{5,7}
9777         </nationalNumberPattern>
9778         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
9779         <exampleNumber>8001234567</exampleNumber>
9780       </tollFree>
9781       <!-- The infomation below is provided by an Indonesian -->
9782       <premiumRate>
9783         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
9784         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9785         <exampleNumber>8091234567</exampleNumber>
9786       </premiumRate>
9787       <emergency>
9788         <nationalNumberPattern>11[02389]</nationalNumberPattern>
9789         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9790         <exampleNumber>112</exampleNumber>
9791       </emergency>
9792     </territory>
9793
9794     <!-- Ireland -->
9795     <!-- http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html -->
9796     <!-- http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf -->
9797     <territory id="IE" countryCode="353" internationalPrefix="00"
9798                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
9799       <availableFormats>
9800         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
9801           <leadingDigits>1</leadingDigits>
9802           <format>$1 $2 $3</format>
9803         </numberFormat>
9804         <numberFormat pattern="(\d{2})(\d{5})">
9805           <leadingDigits>
9806             2[24-9]|
9807             47|
9808             58|
9809             6[237-9]|
9810             9[35-9]
9811           </leadingDigits>
9812           <format>$1 $2</format>
9813         </numberFormat>
9814         <numberFormat pattern="(\d{3})(\d{5})">
9815           <leadingDigits>
9816             40[24]|
9817             50[45]
9818           </leadingDigits>
9819           <format>$1 $2</format>
9820         </numberFormat>
9821         <numberFormat pattern="(48)(\d{4})(\d{4})">
9822           <leadingDigits>48</leadingDigits>
9823           <format>$1 $2 $3</format>
9824         </numberFormat>
9825         <numberFormat pattern="(818)(\d{3})(\d{3})">
9826           <leadingDigits>81</leadingDigits>
9827           <format>$1 $2 $3</format>
9828         </numberFormat>
9829         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9830           <leadingDigits>
9831             [24-69]|
9832             7[14]
9833           </leadingDigits>
9834           <format>$1 $2 $3</format>
9835         </numberFormat>
9836         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9837           pattern="([78]\d)(\d{3,4})(\d{4})">
9838           <leadingDigits>
9839             76|
9840             8[35-9]
9841           </leadingDigits>
9842           <format>$1 $2 $3</format>
9843         </numberFormat>
9844         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9845           pattern="(700)(\d{3})(\d{3})">
9846           <leadingDigits>70</leadingDigits>
9847           <format>$1 $2 $3</format>
9848         </numberFormat>
9849         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
9850           <leadingDigits>
9851             1(?:
9852               8[059]|
9853               5
9854             )
9855           </leadingDigits>
9856           <leadingDigits>
9857             1(?:
9858               8[059]0|
9859               5
9860             )
9861           </leadingDigits>
9862           <format>$1 $2 $3</format>
9863         </numberFormat>
9864       </availableFormats>
9865       <generalDesc>
9866         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
9867         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9868       </generalDesc>
9869       <noInternationalDialling>
9870         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9871         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9872         <exampleNumber>1850123456</exampleNumber>
9873       </noInternationalDialling>
9874       <fixedLine>
9875         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
9876              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
9877              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
9878              Ireland. We support these numbers here, although technically they are numbers for the
9879              UK. -->
9880         <nationalNumberPattern>
9881           1\d{7,8}|
9882           2(?:
9883             1\d{6,7}|
9884             3\d{7}|
9885             [24-9]\d{5}
9886           )|
9887           4(?:
9888             0[24]\d{5}|
9889             [1-469]\d{7}|
9890             5\d{6}|
9891             7\d{5}|
9892             8[0-46-9]\d{7}
9893           )|
9894           5(?:
9895             0[45]\d{5}|
9896             1\d{6}|
9897             [23679]\d{7}|
9898             8\d{5}
9899           )|
9900           6(?:
9901             1\d{6}|
9902             [237-9]\d{5}|
9903             [4-6]\d{7}
9904           )|
9905           7[14]\d{7}|
9906           9(?:
9907             1\d{6}|
9908             [04]\d{7}|
9909             [35-9]\d{5}
9910           )
9911         </nationalNumberPattern>
9912         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9913         <exampleNumber>2212345</exampleNumber>
9914       </fixedLine>
9915       <mobile>
9916         <nationalNumberPattern>
9917           8(?:
9918             22\d{6}|
9919             [35-9]\d{7}
9920           )
9921         </nationalNumberPattern>
9922         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9923         <exampleNumber>850123456</exampleNumber>
9924       </mobile>
9925       <tollFree>
9926         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
9927         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9928         <exampleNumber>1800123456</exampleNumber>
9929       </tollFree>
9930       <premiumRate>
9931         <nationalNumberPattern>
9932           15(?:
9933             1[2-8]|
9934             [2-8]0|
9935             9[089]
9936           )\d{6}
9937         </nationalNumberPattern>
9938         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9939         <exampleNumber>1520123456</exampleNumber>
9940       </premiumRate>
9941       <sharedCost>
9942         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9943         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9944         <exampleNumber>1850123456</exampleNumber>
9945       </sharedCost>
9946       <personalNumber>
9947         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
9948         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9949         <exampleNumber>700123456</exampleNumber>
9950       </personalNumber>
9951       <voip>
9952         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
9953         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9954         <exampleNumber>761234567</exampleNumber>
9955       </voip>
9956       <uan>
9957         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
9958         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9959         <exampleNumber>818123456</exampleNumber>
9960       </uan>
9961       <voicemail>
9962         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
9963         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9964         <exampleNumber>8501234567</exampleNumber>
9965       </voicemail>
9966       <emergency>
9967         <nationalNumberPattern>
9968           112|
9969           999
9970         </nationalNumberPattern>
9971         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9972         <exampleNumber>112</exampleNumber>
9973       </emergency>
9974     </territory>
9975
9976     <!-- Israel -->
9977     <!-- http://www.itu.int/oth/T020200006A/en -->
9978     <!-- http://en.wikipedia.org/wiki/%2B972 -->
9979     <!-- 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
9980          (in Hebrew) -->
9981     <!-- Formatting practice following wikipedia, and government sites. -->
9982     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
9983                nationalPrefix="0" nationalPrefixFormattingRule="$FG">
9984       <availableFormats>
9985         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9986           pattern="([2-489])(\d{3})(\d{4})">
9987           <leadingDigits>[2-489]</leadingDigits>
9988           <format>$1-$2-$3</format>
9989         </numberFormat>
9990         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9991           pattern="([57]\d)(\d{3})(\d{4})">
9992           <leadingDigits>[57]</leadingDigits>
9993           <format>$1-$2-$3</format>
9994         </numberFormat>
9995         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
9996           <leadingDigits>1[7-9]</leadingDigits>
9997           <format>$1-$2-$3-$4</format>
9998         </numberFormat>
9999         <!-- The following number is for hospitals. -->
10000         <numberFormat pattern="(1255)(\d{3})">
10001           <leadingDigits>125</leadingDigits>
10002           <format>$1-$2</format>
10003         </numberFormat>
10004         <numberFormat pattern="(1200)(\d{3})(\d{3})">
10005           <leadingDigits>120</leadingDigits>
10006           <format>$1-$2-$3</format>
10007         </numberFormat>
10008         <numberFormat pattern="(1212)(\d{2})(\d{2})">
10009           <leadingDigits>121</leadingDigits>
10010           <format>$1-$2-$3</format>
10011         </numberFormat>
10012         <!-- The following is for voicemail access. -->
10013         <numberFormat pattern="(1599)(\d{6})">
10014           <leadingDigits>15</leadingDigits>
10015           <format>$1-$2</format>
10016         </numberFormat>
10017         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
10018              dialed with a star in front of the number. -->
10019         <numberFormat pattern="(\d{4})">
10020           <leadingDigits>[2-689]</leadingDigits>
10021           <format>*$1</format>
10022         </numberFormat>
10023       </availableFormats>
10024       <generalDesc >
10025         <nationalNumberPattern>
10026           [17]\d{6,9}|
10027           [2-589]\d{3}(?:\d{3,6})?|
10028           6\d{3}
10029         </nationalNumberPattern>
10030         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10031       </generalDesc>
10032       <noInternationalDialling>
10033         <nationalNumberPattern>
10034           1700\d{6}|
10035           [2-689]\d{3}
10036         </nationalNumberPattern>
10037         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10038         <exampleNumber>1700123456</exampleNumber>
10039       </noInternationalDialling>
10040       <fixedLine>
10041         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
10042         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
10043         <exampleNumber>21234567</exampleNumber>
10044       </fixedLine>
10045       <mobile>
10046         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
10047              sure wikipedia is accurate based on news coverage of the launch of these numbers. -->
10048         <nationalNumberPattern>
10049           5(?:
10050             [02347-9]\d{2}|
10051             5(?:
10052               2[23]|
10053               3[34]|
10054               4[45]|
10055               5[5689]|
10056               6[67]|
10057               7[78]|
10058               8[89]
10059             )|
10060             6[2-9]\d
10061           )\d{5}
10062         </nationalNumberPattern>
10063         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10064         <exampleNumber>501234567</exampleNumber>
10065       </mobile>
10066       <tollFree>
10067         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
10068         <nationalNumberPattern>
10069           1(?:
10070             80[019]\d{3}|
10071             255
10072           )\d{3}
10073         </nationalNumberPattern>
10074         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
10075         <exampleNumber>1800123456</exampleNumber>
10076       </tollFree>
10077       <premiumRate>
10078           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
10079                However, no online numbers starting with these prefixes can be found, and this data
10080                is not found in any other source. -->
10081           <!-- 1200 and 1212 numbers are for televoting. -->
10082         <nationalNumberPattern>
10083           1(?:
10084             212|
10085             (?:
10086               9(?:
10087                 0[01]|
10088                 19
10089               )|
10090               200
10091             )\d{2}
10092           )\d{4}
10093         </nationalNumberPattern>
10094         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
10095         <exampleNumber>1919123456</exampleNumber>
10096       </premiumRate>
10097       <sharedCost>
10098         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
10099         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10100         <exampleNumber>1700123456</exampleNumber>
10101       </sharedCost>
10102       <voip>
10103         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
10104              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
10105              Dialing) numbers, that most people forward to VoIP numbers. -->
10106         <nationalNumberPattern>
10107           7(?:
10108             2[23]\d|
10109             3[237]\d|
10110             47\d|
10111             6(?:
10112               5\d|
10113               8[08]
10114             )|
10115             7\d{2}|
10116             8(?:
10117               33|
10118               55|
10119               77|
10120               81
10121             )
10122           )\d{5}
10123         </nationalNumberPattern>
10124         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10125         <exampleNumber>771234567</exampleNumber>
10126       </voip>
10127       <uan>
10128         <!-- 4-digit star numbers 1-599 numbers. The latter are actually labelled "interactive
10129              voicemail" in the ITU document, but according to reports from businesses in Israel and
10130              the Hebrew version of the wikipedia page, these are actually a router for business
10131              calls, and incur a normal call cost on account of the caller. -->
10132         <nationalNumberPattern>
10133           [2-689]\d{3}|
10134           1599\d{6}
10135         </nationalNumberPattern>
10136         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
10137         <exampleNumber>1599123456</exampleNumber>
10138       </uan>
10139       <emergency>
10140         <nationalNumberPattern>
10141           1(?:
10142             0[012]|
10143             12
10144           )
10145         </nationalNumberPattern>
10146         <possibleNumberPattern>\d{3}</possibleNumberPattern>
10147         <exampleNumber>112</exampleNumber>
10148       </emergency>
10149     </territory>
10150
10151     <!-- Isle of Man -->
10152     <!-- Inherits formatting rules from the UK. -->
10153     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
10154     <territory id="IM" countryCode="44" internationalPrefix="00"
10155                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
10156       <generalDesc>
10157         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
10158         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10159       </generalDesc>
10160       <areaCodeOptional>
10161         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
10162         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10163         <exampleNumber>1624250123</exampleNumber>
10164       </areaCodeOptional>
10165       <!-- Specific to IM. -->
10166       <fixedLine>
10167         <!-- 1624 with 10 digits. -->
10168         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
10169         <exampleNumber>1624456789</exampleNumber>
10170       </fixedLine>
10171       <mobile>
10172         <!-- 7524, 7624, 7924 with 10 digits. -->
10173         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
10174         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10175         <exampleNumber>7924123456</exampleNumber>
10176       </mobile>
10177       <tollFree>
10178         <!-- 808 162 with 10 digits. -->
10179         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
10180         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10181         <exampleNumber>8081624567</exampleNumber>
10182       </tollFree>
10183       <premiumRate>
10184         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
10185         <nationalNumberPattern>
10186           (?:
10187             872299|
10188             90[0167]624
10189           )\d{4}
10190         </nationalNumberPattern>
10191         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10192         <exampleNumber>9016247890</exampleNumber>
10193       </premiumRate>
10194       <sharedCost>
10195         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
10196         <nationalNumberPattern>
10197           8(?:
10198             4(?:
10199               40[49]06|
10200               5624\d
10201             )|
10202             70624\d
10203           )\d{3}
10204         </nationalNumberPattern>
10205         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10206         <exampleNumber>8456247890</exampleNumber>
10207       </sharedCost>
10208       <!-- Other numbers as per GB. -->
10209       <personalNumber>
10210         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
10211         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10212         <exampleNumber>7012345678</exampleNumber>
10213       </personalNumber>
10214       <voip>
10215         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
10216         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10217         <exampleNumber>5612345678</exampleNumber>
10218       </voip>
10219       <uan>
10220         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
10221         <nationalNumberPattern>
10222           3(?:
10223             08162\d|
10224             3\d{5}|
10225             4(?:
10226               40[49]06|
10227               5624\d
10228             )|
10229             7(?:
10230               0624\d|
10231               2299\d
10232             )
10233           )\d{3}|
10234           55\d{8}
10235         </nationalNumberPattern>
10236         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10237         <exampleNumber>5512345678</exampleNumber>
10238       </uan>
10239       <emergency>
10240         <!-- http://www.directory.im/directory_useful.aspx -->
10241         <nationalNumberPattern>999</nationalNumberPattern>
10242         <possibleNumberPattern>\d{3}</possibleNumberPattern>
10243         <exampleNumber>999</exampleNumber>
10244       </emergency>
10245     </territory>
10246
10247     <!-- India -->
10248     <!-- http://www.dot.gov.in/numbering_plan/numberplanindex.htm -->
10249     <!-- http://www.itu.int/oth/T0202000063/en -->
10250     <!-- http://en.wikipedia.org/wiki/%2B91 -->
10251     <!-- http://www.coai.in/msccodes.php -->
10252     <!-- Note that several changes in area codes have occurred since the numbering plan was released
10253          - fixed line changes are notified on the www.bsnl.co.in website. Area codes can be verified
10254            here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
10255     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
10256                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true" >
10257        <availableFormats>
10258          <!-- Mobile numbers. -->
10259          <numberFormat pattern="(\d{2})(\d{2})(\d{6})">
10260            <leadingDigits>
10261              7(?:
10262                2[0579]|
10263                3[057-9]|
10264                4[0-389]|
10265                5[024-9]|
10266                6[0-35-9]|
10267                7|
10268                8[0-79]
10269              )|
10270              8(?:
10271                0[015689]|
10272                1[0-57-9]|
10273                2[2356-9]|
10274                3[0-57-9]|
10275                [45]|
10276                6[0245789]|
10277                7[1-69]|
10278                8[0124-9]|
10279                9[02-9]
10280              )|
10281              9
10282            </leadingDigits>
10283            <leadingDigits>
10284              7(?:
10285                2(?:
10286                  0[04-9]|
10287                  5[09]|
10288                  7[5-8]|
10289                  9[389]
10290                )|
10291                3(?:
10292                  0[1-9]|
10293                  [58]|
10294                  7[3679]|
10295                  9[689]
10296                )|
10297                4(?:
10298                  0[1-9]|
10299                  1[15-9]|
10300                  [29][89]|
10301                  39|
10302                  8[389]
10303                )|
10304                5(?:
10305                  0|
10306                  [47]9|
10307                  [25]0|
10308                  6[6-9]|
10309                  [89][7-9]
10310                )|
10311                6(?:
10312                  0[027]|
10313                  12|
10314                  20|
10315                  3[19]|
10316                  5[45]|
10317                  6[5-9]|
10318                  7[679]|
10319                  9[1-46-9]
10320                )|
10321                7(?:
10322                  0[2-9]|
10323                  [1-79]|
10324                  8[1-9]
10325                )|
10326                8(?:
10327                  [0-7]|
10328                  9[013-9]
10329                )
10330              )|
10331              8(?:
10332                0(?:
10333                  [01589]|
10334                  6[67]
10335                )|
10336                1(?:
10337                  [02-589]|
10338                  1[0135-9]|
10339                  7[0-79]
10340                )|
10341                2(?:
10342                  [236-9]|
10343                  5[1-9]
10344                )|
10345                3(?:
10346                  [0357-9]|
10347                  4[1-9]
10348                )|
10349                [45]|
10350                6[02457-9]|
10351                7[1-69]|
10352                8(?:
10353                  [0-26-9]|
10354                  44|
10355                  5[2-9]
10356                )|
10357                9(?:
10358                  [035-9]|
10359                  2[2-9]|
10360                  4[0-8]
10361                )
10362              )|
10363              9
10364            </leadingDigits>
10365            <format>$1 $2 $3</format>
10366          </numberFormat>
10367          <!-- 2 digits area code -->
10368          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10369            <leadingDigits>
10370              11|
10371              2[02]|
10372              33|
10373              4[04]|
10374              79|
10375              80[2-46]
10376            </leadingDigits>
10377            <format>$1 $2 $3</format>
10378          </numberFormat>
10379          <!-- 3 digit area codes that don't clash with mobile patterns. -->
10380          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10381            <leadingDigits>
10382              1(?:
10383                2[0-249]|
10384                3[0-25]|
10385                4[145]|
10386                [569][14]|
10387                7[1257]|
10388                8[1346]|
10389                [68][1-9]
10390              )|
10391              2(?:
10392                1[257]|
10393                3[013]|
10394                4[01]|
10395                5[0137]|
10396                6[0158]|
10397                78|
10398                8[1568]|
10399                9[14]
10400              )|
10401              3(?:
10402                26|
10403                4[1-3]|
10404                5[34]|
10405                6[01489]|
10406                7[02-46]|
10407                8[159]
10408              )|
10409              4(?:
10410                1[36]|
10411                2[1-47]|
10412                3[15]|
10413                5[12]|
10414                6[126-9]|
10415                7[0-24-9]|
10416                8[013-57]|
10417                9[014-7]
10418              )|
10419              5(?:
10420                [136][25]|
10421                22|
10422                4[28]|
10423                5[12]|
10424                [78]1|
10425                9[15]
10426              )|
10427              6(?:
10428                12|
10429                [2345]1|
10430                57|
10431                6[13]|
10432                7[14]|
10433                80
10434              )
10435            </leadingDigits>
10436            <format>$1 $2 $3</format>
10437          </numberFormat>
10438          <!-- Three-digit area codes that potentially overlap with mobile. -->
10439          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10440            <leadingDigits>
10441              7(?:
10442                12|
10443                2[14]|
10444                3[134]|
10445                4[47]|
10446                5[15]|
10447                [67]1|
10448                88
10449              )
10450            </leadingDigits>
10451            <leadingDigits>
10452              7(?:
10453                12|
10454                2[14]|
10455                3[134]|
10456                4[47]|
10457                5(?:
10458                  1|
10459                  5[2-6]
10460                )|
10461                [67]1|
10462                88
10463              )
10464            </leadingDigits>
10465            <format>$1 $2 $3</format>
10466          </numberFormat>
10467          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10468            <leadingDigits>
10469              8(?:
10470                16|
10471                2[014]|
10472                3[126]|
10473                6[136]|
10474                7[078]|
10475                8[34]|
10476                91
10477              )
10478            </leadingDigits>
10479            <format>$1 $2 $3</format>
10480          </numberFormat>
10481          <!-- 4 digits area code -->
10482          <!-- Fallback for fixed-line numbers. -->
10483          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
10484            <leadingDigits>
10485              1(?:
10486                [2-579]|
10487                [68][1-9]
10488              )|
10489              [2-8]
10490            </leadingDigits>
10491            <format>$1 $2 $3</format>
10492          </numberFormat>
10493          <numberFormat nationalPrefixFormattingRule="$FG"
10494            pattern="(1600)(\d{2})(\d{4})">
10495            <leadingDigits>160</leadingDigits>
10496            <leadingDigits>1600</leadingDigits>
10497            <format>$1 $2 $3</format>
10498          </numberFormat>
10499          <numberFormat nationalPrefixFormattingRule="$FG"
10500            pattern="(1800)(\d{4,5})">
10501            <leadingDigits>180</leadingDigits>
10502            <leadingDigits>1800</leadingDigits>
10503            <format>$1 $2</format>
10504          </numberFormat>
10505          <numberFormat nationalPrefixFormattingRule="$FG"
10506            pattern="(18[06]0)(\d{2,4})(\d{4})">
10507            <leadingDigits>18[06]</leadingDigits>
10508            <leadingDigits>18[06]0</leadingDigits>
10509            <format>$1 $2 $3</format>
10510          </numberFormat>
10511          <!-- Televoting numbers. Formatting information is from
10512               http://www.bsnl.co.in/service/telev.htm -->
10513          <numberFormat nationalPrefixFormattingRule="$FG"
10514            pattern="(\d{4})(\d{3})(\d{4})(\d{2})">
10515            <leadingDigits>18[06]</leadingDigits>
10516            <leadingDigits>
10517              18(?:
10518                03|
10519                6[12]
10520              )
10521            </leadingDigits>
10522            <format>$1 $2 $3 $4</format>
10523          </numberFormat>
10524       </availableFormats>
10525       <generalDesc>
10526         <nationalNumberPattern>
10527           1\d{7,12}|
10528           [2-9]\d{9,10}
10529         </nationalNumberPattern>
10530         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
10531       </generalDesc>
10532       <noInternationalDialling>
10533         <nationalNumberPattern>
10534           1(?:
10535             600\d{6}|
10536             8(?:
10537               0(?:
10538                 0\d{4,8}|
10539                 3\d{9}
10540               )|
10541               6(?:
10542                 0\d{7}|
10543                 [12]\d{9}
10544               )
10545             )
10546            )
10547         </nationalNumberPattern>
10548         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10549         <exampleNumber>1800123456</exampleNumber>
10550       </noInternationalDialling>
10551       <fixedLine>
10552         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
10553              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
10554              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
10555              Not all operator codes are available in all areas, but we don't maintain that
10556              distinction here.
10557              Area codes starting with a 7 are listed separately, since the prefixes need to be more
10558              detailed so they clash less with mobile phone prefixes. -->
10559         <nationalNumberPattern>
10560           (?:
10561             11|
10562             2[02]|
10563             33|
10564             4[04]|
10565             79
10566           )[2-7]\d{7}|
10567           80[2-467]\d{7}|
10568           (?:
10569             1(?:
10570               2[0-249]|
10571               3[0-25]|
10572               4[145]|
10573               [59][14]|
10574               6[014]|
10575               7[1257]|
10576               8[01346]
10577             )|
10578             2(?:
10579               1[257]|
10580               3[013]|
10581               4[01]|
10582               5[0137]|
10583               6[0158]|
10584               78|
10585               8[1568]|
10586               9[14]
10587             )|
10588             3(?:
10589               26|
10590               4[1-3]|
10591               5[34]|
10592               6[01489]|
10593               7[02-46]|
10594               8[159]
10595             )|
10596             4(?:
10597               1[36]|
10598               2[1-47]|
10599               3[15]|
10600               5[12]|
10601               6[126-9]|
10602               7[0-24-9]|
10603               8[013-57]|
10604               9[014-7]
10605             )|
10606             5(?:
10607               [136][25]|
10608               22|
10609               4[28]|
10610               5[12]|
10611               [78]1|
10612               9[15]
10613             )|
10614             6(?:
10615               12|
10616               [2345]1|
10617               57|
10618               6[13]|
10619               7[14]|
10620               80
10621             )|
10622             7(?:
10623               12|
10624               2[14]|
10625               3[134]|
10626               4[47]|
10627               5[15]|
10628               [67]1|
10629               88
10630             )|
10631             8(?:
10632               16|
10633               2[014]|
10634               3[126]|
10635               6[136]|
10636               7[078]|
10637               8[34]|
10638               91
10639             )
10640           )[2-7]\d{6}|
10641           (?:
10642             (?:
10643               1(?:
10644                 2[35-8]|
10645                 3[346-9]|
10646                 4[236-9]|
10647                 [59][0235-9]|
10648                 6[235-9]|
10649                 7[34689]|
10650                 8[257-9]
10651               )|
10652               2(?:
10653                 1[134689]|
10654                 3[24-8]|
10655                 4[2-8]|
10656                 5[25689]|
10657                 6[2-4679]|
10658                 7[13-79]|
10659                 8[2-479]|
10660                 9[235-9]
10661               )|
10662               3(?:
10663                 01|
10664                 1[79]|
10665                 2[1-5]|
10666                 4[25-8]|
10667                 5[125689]|
10668                 6[235-7]|
10669                 7[157-9]|
10670                 8[2-467]
10671               )|
10672               4(?:
10673                 1[14578]|
10674                 2[5689]|
10675                 3[2-467]|
10676                 5[4-7]|
10677                 6[35]|
10678                 73|
10679                 8[2689]|
10680                 9[2389]
10681               )|
10682               5(?:
10683                 [16][146-9]|
10684                 2[14-8]|
10685                 3[1346]|
10686                 4[14-69]|
10687                 5[46]|
10688                 7[2-4]|
10689                 8[2-8]|
10690                 9[246]
10691               )|
10692               6(?:
10693                 1[1358]|
10694                 2[2457]|
10695                 3[2-4]|
10696                 4[235-7]|
10697                 [57][2-689]|
10698                 6[24-58]|
10699                 8[1-6]
10700               )|
10701               8(?:
10702                 1[1357-9]|
10703                 2[235-8]|
10704                 3[03-57-9]|
10705                 4[0-24-9]|
10706                 5\d|
10707                 6[2457-9]|
10708                 7[1-6]|
10709                 8[1256]|
10710                 9[2-4]
10711               )
10712             )\d|
10713             7(?:
10714               (?:
10715                 1[013-9]|
10716                 2[0235-9]|
10717                 3[2679]|
10718                 4[1-35689]|
10719                 5[2-46-9]|
10720                 [67][02-9]|
10721                 9\d
10722               )\d|
10723               8(?:
10724                 2[0-6]|
10725                 [013-8]\d
10726               )
10727             )
10728           )[2-7]\d{5}
10729         </nationalNumberPattern>
10730         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10731         <exampleNumber>1123456789</exampleNumber>
10732       </fixedLine>
10733       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
10734       <!-- The document titled "List of MSC codes" linked off
10735            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
10736            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
10737       <mobile>
10738         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10739              codes list, are added because SMS messages have been successfully sent to these
10740              numbers. It seems almost impossible to know for some of these numbers whether they are
10741              land-line or mobile, since the ranges overlap. Extra prefixes added: 8299, 8309.
10742              New prefixes were added based on the document provided from mobile carriers:
10743              https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
10744         <nationalNumberPattern>
10745           (?:
10746             7(?:
10747               2(?:
10748                 0[04-9]|
10749                 5[09]|
10750                 7[5-8]|
10751                 9[389]
10752               )|
10753               3(?:
10754                 0[1-9]|
10755                 [58]\d|
10756                 7[3679]|
10757                 9[689]
10758               )|
10759               4(?:
10760                 0[1-9]|
10761                 1[15-9]|
10762                 [29][89]|
10763                 39|
10764                 8[389]
10765               )|
10766               5(?:
10767                 0\d|
10768                 [47]9|
10769                 [25]0|
10770                 6[6-9]|
10771                 [89][7-9]
10772               )|
10773               6(?:
10774                 0[027]|
10775                 12|
10776                 20|
10777                 3[19]|
10778                 5[45]|
10779                 6[5-9]|
10780                 7[679]|
10781                 9[1-46-9]
10782               )|
10783               7(?:
10784                 0[2-9]|
10785                 [1-79]\d|
10786                 8[1-9]
10787               )|
10788               8(?:
10789                 [0-7]\d|
10790                 9[013-9]
10791               )
10792             )|
10793             8(?:
10794               0(?:
10795                 [01589]\d|
10796                 6[67]
10797               )|
10798               1(?:
10799                 [02-589]\d|
10800                 1[0135-9]|
10801                 7[0-79]
10802               )|
10803               2(?:
10804                 [236-9]\d|
10805                 5[1-9]
10806               )|
10807               3(?:
10808                 [0357-9]\d|
10809                 4[1-9]
10810               )|
10811               [45]\d{2}|
10812               6[02457-9]\d|
10813               7[1-69]\d|
10814               8(?:
10815                 [0-26-9]\d|
10816                 44|
10817                 5[2-9]
10818               )|
10819               9(?:
10820                 [035-9]\d|
10821                 2[2-9]|
10822                 4[0-8]
10823               )
10824             )|
10825             9\d{3}
10826           )\d{6}
10827         </nationalNumberPattern>
10828         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10829         <exampleNumber>9123456789</exampleNumber>
10830       </mobile>
10831       <tollFree>
10832         <!-- Information gathered from sites such as
10833              http://www.surfindia.com/india-facts/toll-free-no.html and
10834              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
10835              http://www.bsnl.co.in/service/telev.htm -->
10836         <nationalNumberPattern>
10837           1(?:
10838             600\d{6}|
10839             80(?:
10840               0\d{4,8}|
10841               3\d{9}
10842             )
10843           )
10844         </nationalNumberPattern>
10845         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10846         <exampleNumber>1800123456</exampleNumber>
10847       </tollFree>
10848       <premiumRate>
10849         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
10850              because they overlap with mobile, and we haven't found any real numbers online. -->
10851         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
10852         <possibleNumberPattern>\d{13}</possibleNumberPattern>
10853         <exampleNumber>1861123456789</exampleNumber>
10854       </premiumRate>
10855       <uan>
10856         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
10857         <possibleNumberPattern>\d{11}</possibleNumberPattern>
10858         <exampleNumber>18603451234</exampleNumber>
10859       </uan>
10860       <emergency>
10861         <nationalNumberPattern>
10862           1(?:
10863             0[0128]|
10864             12|
10865             298
10866           )|
10867           2611
10868         </nationalNumberPattern>
10869         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
10870         <exampleNumber>108</exampleNumber>
10871       </emergency>
10872     </territory>
10873
10874     <!-- British Indian Ocean Territory / Diego Garcia -->
10875     <!-- http://www.itu.int/oth/T0202000039/en -->
10876     <territory id="IO" countryCode="246" internationalPrefix="00">
10877       <availableFormats>
10878         <numberFormat pattern="(\d{3})(\d{4})">
10879           <format>$1 $2</format>
10880         </numberFormat>
10881       </availableFormats>
10882       <generalDesc>
10883         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
10884         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10885       </generalDesc>
10886       <fixedLine>
10887         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
10888         <exampleNumber>3709100</exampleNumber>
10889       </fixedLine>
10890       <mobile>
10891         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
10892         <exampleNumber>3801234</exampleNumber>
10893       </mobile>
10894       <!-- It seems that there are no emergency numbers for this island. -->
10895     </territory>
10896
10897     <!-- Iraq -->
10898     <!-- http://en.wikipedia.org/wiki/%2B964 -->
10899     <!-- http://wtng.info/wtng-964-ik.html -->
10900     <territory id="IQ" countryCode="964" internationalPrefix="00"
10901                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10902       <availableFormats>
10903         <numberFormat pattern="(1)(\d{3})(\d{4})">
10904           <leadingDigits>1</leadingDigits>
10905           <format>$1 $2 $3</format>
10906         </numberFormat>
10907         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
10908           <leadingDigits>[2-6]</leadingDigits>
10909           <format>$1 $2 $3</format>
10910         </numberFormat>
10911         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
10912           <leadingDigits>7</leadingDigits>
10913           <format>$1 $2 $3</format>
10914         </numberFormat>
10915       </availableFormats>
10916       <generalDesc>
10917         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
10918         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10919       </generalDesc>
10920       <fixedLine>
10921         <nationalNumberPattern>
10922           1\d{7}|
10923           (?:
10924             2[13-5]|
10925             3[02367]|
10926             4[023]|
10927             5[03]|
10928             6[026]
10929           )\d{6,7}
10930         </nationalNumberPattern>
10931         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
10932         <exampleNumber>12345678</exampleNumber>
10933       </fixedLine>
10934       <mobile>
10935         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
10936         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10937         <exampleNumber>7912345678</exampleNumber>
10938       </mobile>
10939       <!-- No tollFree or premiumRate information can be found. -->
10940       <!-- No national emergency numbers were located for Iraq. -->
10941     </territory>
10942
10943     <!-- Iran, Islamic Republic of -->
10944     <!-- http://en.wikipedia.org/wiki/%2B98 -->
10945     <!-- http://www.itu.int/oth/T0202000066/en -->
10946     <!-- http://www.tct.ir/?siteid=1&pageid=195 -->
10947     <!-- http://118.tct.ir/citycode.htm -->
10948     <territory id="IR" countryCode="98" internationalPrefix="00"
10949                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10950       <availableFormats>
10951         <!-- Formatting follows wikipedia. -->
10952         <numberFormat pattern="(2[15])(\d{3,5})">
10953           <!-- We exclude the 255 and 256 prefixes, which do not belong to Qom as of yet. -->
10954           <leadingDigits>
10955             2(?:
10956               1|
10957               5[0-47-9]
10958             )
10959           </leadingDigits>
10960           <format>$1 $2</format>
10961         </numberFormat>
10962         <numberFormat pattern="(2[15])(\d{3})(\d{3,4})">
10963           <leadingDigits>
10964             2(?:
10965               1|
10966               5[0-47-9]
10967             )
10968           </leadingDigits>
10969           <format>$1 $2 $3</format>
10970         </numberFormat>
10971         <numberFormat pattern="(2\d)(\d{4})(\d{4})">
10972           <leadingDigits>
10973             2(?:
10974               [16]|
10975               5[0-47-9]
10976             )
10977           </leadingDigits>
10978           <format>$1 $2 $3</format>
10979         </numberFormat>
10980         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
10981           <leadingDigits>
10982             [13-9]|
10983             2[02-57-9]
10984           </leadingDigits>
10985           <format>$1 $2 $3</format>
10986         </numberFormat>
10987         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
10988           <leadingDigits>
10989             [13-9]|
10990             2[02-57-9]
10991           </leadingDigits>
10992           <format>$1 $2 $3</format>
10993         </numberFormat>
10994         <numberFormat pattern="(\d{3})(\d{3})">
10995           <leadingDigits>
10996             [13-9]|
10997             2[02-57-9]
10998           </leadingDigits>
10999           <format>$1 $2</format>
11000         </numberFormat>
11001       </availableFormats>
11002       <generalDesc>
11003         <nationalNumberPattern>
11004           [14-8]\d{6,9}|
11005           [23]\d{4,9}|
11006           9(?:
11007             [1-4]\d{8}|
11008             9\d{2,8}
11009           )
11010         </nationalNumberPattern>
11011         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
11012       </generalDesc>
11013       <fixedLine>
11014         <!-- We are following the more specific lengths specified in the communication in the ITU
11015              doc of 26.VIII.2012, rather than the brief summary lengths (which actually contradict).
11016              The prefixes have been verified by looking at the Persian telecommunications site.
11017              22[189], 29[12] have become 21, as part of the shift to unify prefixes. 746 was also
11018              found on the website at http://www.tct.ir/?siteid=1&pageid=410&siteid=1 but this seems
11019              to be a typo. It seems Qom is moving to 025, but 0255 and 0256 have not yet been
11020              migrated away from under this prefix - in the meantime, support for 253 has been added
11021              since this has been found in numbers online. -->
11022         <nationalNumberPattern>
11023           1(?:
11024             [13-589][12]|
11025             [27][1-4]
11026           )\d{7}|
11027           2(?:
11028             1\d{3,8}|
11029             3[12]\d{7}|
11030             4(?:
11031               1\d{4,7}|
11032               2\d{7}
11033             )|
11034             5(?:
11035               1\d{3,7}|
11036               [2356]\d{7}
11037             )|
11038             6\d{8}|
11039             7[34]\d{7}|
11040             [89][12]\d{7}
11041           )|
11042           3(?:
11043             1(?:
11044               1\d{4,7}|
11045               2\d{7}
11046             )|
11047             2[1-4]\d{7}|
11048             3(?:
11049               [125]\d{7}|
11050               4\d{6,7}
11051             )|
11052             4(?:
11053               1\d{6,7}
11054               [24-9]\d{7}
11055             )|
11056             5(?:
11057               1\d{4,7}|
11058               [23]\d{7}
11059             )|
11060             [6-9][12]\d{7}
11061           )|
11062           4(?:
11063             [135-9][12]\d{7}|
11064             2[1-467]\d{7}|
11065             4(?:
11066               1\d{4,7}|
11067               [2-4]\d{7}
11068             )
11069           )|
11070           5(?:
11071             1(?:
11072               1\d{4,7}|
11073               2\d{7}
11074             )|
11075             2[89]\d{7}|
11076             3[1-5]\d{7}|
11077             4(?:
11078               1\d{4,7}|
11079               [2-8]\d{7}
11080             )|
11081             [5-7][12]\d{7}|
11082             8[1245]\d{7}
11083           )|
11084           6(?:
11085             1(?:
11086               1\d{6,7}|
11087               2\d{7}
11088             )|
11089             [347-9][12]\d{7}|
11090             5(?:
11091               1\d{7}|
11092               2\d{6,7}
11093             )|
11094             6[1-6]\d{7}
11095           )|
11096           7(?:
11097             [13589][12]|
11098             2[1289]|
11099             4[1-4]|
11100             6[1-6]|
11101             7[1-3]
11102           )\d{7}|
11103           8(?:
11104             [145][12]|
11105             3[124578]|
11106             6[1256]|
11107             7[1245]
11108           )\d{7}
11109         </nationalNumberPattern>
11110         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
11111         <exampleNumber>2123456789</exampleNumber>
11112       </fixedLine>
11113       <mobile>
11114         <nationalNumberPattern>9[1-3]\d{8}</nationalNumberPattern>
11115         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11116         <exampleNumber>9123456789</exampleNumber>
11117       </mobile>
11118       <pager>
11119         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
11120         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11121         <exampleNumber>9432123456</exampleNumber>
11122       </pager>
11123       <!-- No tollFree or premiumRate information can be found. -->
11124       <voip>
11125         <!-- Includes VSAT and Boomehen Satellite numbers. -->
11126         <nationalNumberPattern>
11127           (?:
11128             [2-6]0\d|
11129             993
11130           )\d{7}
11131         </nationalNumberPattern>
11132         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11133         <exampleNumber>9932123456</exampleNumber>
11134       </voip>
11135       <uan>
11136         <!-- MCI Public Relations numbers -->
11137         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
11138         <exampleNumber>9990123456</exampleNumber>
11139       </uan>
11140       <emergency>
11141         <nationalNumberPattern>
11142           1(?:
11143             1[025]|
11144             25
11145           )
11146         </nationalNumberPattern>
11147         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11148         <exampleNumber>112</exampleNumber>
11149       </emergency>
11150     </territory>
11151
11152     <!-- Iceland -->
11153     <!-- http://www.pta.is/default.aspx?cat_id=85 -->
11154     <!-- http://www.pfs.is/default.aspx?cat_id=14&module_id=210&element_id=4 -->
11155     <territory id="IS" countryCode="354" internationalPrefix="00">
11156       <availableFormats>
11157         <numberFormat pattern="(\d{3})(\d{4})">
11158           <leadingDigits>[4-9]</leadingDigits>
11159           <format>$1 $2</format>
11160         </numberFormat>
11161         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
11162           <leadingDigits>3</leadingDigits>
11163           <format>$1 $2 $3</format>
11164         </numberFormat>
11165       </availableFormats>
11166       <generalDesc>
11167         <nationalNumberPattern>
11168           [4-9]\d{6}|
11169           38\d{7}
11170         </nationalNumberPattern>
11171         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11172       </generalDesc>
11173       <fixedLine>
11174         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
11175         <nationalNumberPattern>
11176           (?:
11177             4(?:
11178               [14][0-245]|
11179               2[0-7]|
11180               [37][0-8]|
11181               5[0-3568]|
11182               6\d|
11183               8[0-36-8]
11184             )|
11185             5(?:
11186               05|
11187               [156]\d|
11188               2[02578]|
11189               3[013-7]|
11190               4[03-7]|
11191               7[0-2578]|
11192               8[0-35-9]|
11193               9[013-689]
11194             )|
11195             87[23]
11196           )\d{4}
11197         </nationalNumberPattern>
11198         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11199         <exampleNumber>4101234</exampleNumber>
11200       </fixedLine>
11201       <mobile>
11202         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
11203         <nationalNumberPattern>
11204           38[59]\d{6}|
11205           (?:
11206             6(?:
11207               1[0-8]|
11208               3[0-27-9]|
11209               4[0-27]|
11210               5[0-29]|
11211               [67][0-69]|
11212               9\d
11213             )|
11214             7(?:
11215               5[057]|
11216               7\d|
11217               8[0-3]
11218             )|
11219             8(?:
11220               2[0-5]|
11221               [469]\d|
11222               5[1-9]
11223             )
11224           )\d{4}
11225         </nationalNumberPattern>
11226         <exampleNumber>6101234</exampleNumber>
11227       </mobile>
11228       <tollFree>
11229         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
11230         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11231         <exampleNumber>8001234</exampleNumber>
11232       </tollFree>
11233       <premiumRate>
11234         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
11235         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11236         <exampleNumber>9011234</exampleNumber>
11237       </premiumRate>
11238       <voip>
11239         <nationalNumberPattern>49[0-24-79]\d{4}</nationalNumberPattern>
11240         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11241         <exampleNumber>4921234</exampleNumber>
11242       </voip>
11243       <voicemail>
11244         <nationalNumberPattern>
11245           388\d{6}|
11246           (?:
11247             6(?:
11248               2[0-8]|
11249               49|
11250               8\d
11251             )|
11252             8(?:
11253               2[6-9]|
11254               [38]\d|
11255               50|
11256               7[014-9]
11257             )|
11258             95[48]
11259           )\d{4}
11260         </nationalNumberPattern>
11261         <exampleNumber>388123456</exampleNumber>
11262       </voicemail>
11263       <emergency>
11264         <nationalNumberPattern>112</nationalNumberPattern>
11265         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11266         <exampleNumber>112</exampleNumber>
11267       </emergency>
11268     </territory>
11269
11270     <!-- Italy -->
11271     <!-- http://en.wikipedia.org/wiki/%2B39 -->
11272     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true">
11273       <availableFormats>
11274         <!-- The leading zero for fixed numbers will be prepended before the matching of these
11275              regular expressions. -->
11276         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
11277           <leadingDigits>
11278             0[26]|
11279             55
11280           </leadingDigits>
11281           <format>$1 $2 $3</format>
11282         </numberFormat>
11283         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
11284           <leadingDigits>0[26]</leadingDigits>
11285           <format>$1 $2 $3</format>
11286         </numberFormat>
11287         <numberFormat pattern="(0[26])(\d{4,6})">
11288           <leadingDigits>0[26]</leadingDigits>
11289           <format>$1 $2</format>
11290         </numberFormat>
11291         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
11292           <leadingDigits>0[13-57-9][0159]</leadingDigits>
11293           <format>$1 $2 $3</format>
11294         </numberFormat>
11295         <numberFormat pattern="(\d{3})(\d{3,6})">
11296           <leadingDigits>
11297             0[13-57-9][0159]|
11298             8(?:
11299               03|
11300               4[17]|
11301               9[245]
11302             )
11303           </leadingDigits>
11304           <leadingDigits>
11305             0[13-57-9][0159]|
11306             8(?:
11307               03|
11308               4[17]|
11309               9(?:
11310                 2|
11311                 [45][0-4]
11312               )
11313             )
11314           </leadingDigits>
11315           <format>$1 $2</format>
11316         </numberFormat>
11317         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
11318           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11319           <format>$1 $2 $3</format>
11320         </numberFormat>
11321         <numberFormat pattern="(0\d{3})(\d{2,6})">
11322           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11323           <format>$1 $2</format>
11324         </numberFormat>
11325         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11326           <leadingDigits>
11327             [13]|
11328             8(?:
11329               00|
11330               4[08]|
11331               9[59]
11332             )
11333           </leadingDigits>
11334           <leadingDigits>
11335             [13]|
11336             8(?:
11337               00|
11338               4[08]|
11339               9(?:
11340                 5[5-9]|
11341                 9
11342               )
11343             )
11344           </leadingDigits>
11345           <format>$1 $2 $3</format>
11346         </numberFormat>
11347         <numberFormat pattern="(\d{4})(\d{4})">
11348           <leadingDigits>894</leadingDigits>
11349           <leadingDigits>894[5-9]</leadingDigits>
11350           <format>$1 $2</format>
11351         </numberFormat>
11352         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
11353           <leadingDigits>3</leadingDigits>
11354           <format>$1 $2 $3</format>
11355         </numberFormat>
11356       </availableFormats>
11357       <generalDesc>
11358         <nationalNumberPattern>
11359           [01589]\d{5,10}|
11360           3(?:
11361             [12457-9]\d{8}|
11362             [36]\d{7,9}
11363           )
11364         </nationalNumberPattern>
11365         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11366       </generalDesc>
11367       <noInternationalDialling>
11368         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
11369         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11370         <exampleNumber>848123456</exampleNumber>
11371       </noInternationalDialling>
11372       <fixedLine>
11373         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
11374              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
11375              found with other prefixes that are 11 digits long as well, so we allow it for all the
11376              three and four digit area codes. -->
11377         <nationalNumberPattern>
11378           0(?:
11379             [26]\d{4,9}|
11380             (?:
11381               1(?:
11382                 [0159]\d|
11383                 [27][1-5]|
11384                 31|
11385                 4[1-4]|
11386                 6[1356]|
11387                 8[2-57]
11388               )|
11389               3(?:
11390                 [0159]\d|
11391                 2[1-4]|
11392                 3[12]|
11393                 [48][1-6]|
11394                 6[2-59]|
11395                 7[1-7]
11396               )|
11397               4(?:
11398                 [0159]\d|
11399                 [23][1-9]|
11400                 4[245]|
11401                 6[1-5]|
11402                 7[1-4]|
11403                 81
11404               )|
11405               5(?:
11406                 [0159]\d|
11407                 2[1-5]|
11408                 3[2-6]|
11409                 4[1-79]|
11410                 6[4-6]|
11411                 7[1-578]|
11412                 8[3-8]
11413               )|
11414               7(?:
11415                 [0159]\d|
11416                 2[12]|
11417                 3[1-7]|
11418                 4[2346]|
11419                 6[13569]|
11420                 7[13-6]|
11421                 8[1-59]
11422               )|
11423               8(?:
11424                 [0159]\d|
11425                 2[34578]|
11426                 3[1-356]|
11427                 [6-8][1-5]
11428               )|
11429               9(?:
11430                 [0159]\d|
11431                 [238][1-5]|
11432                 4[12]|
11433                 6[1-8]|
11434                 7[1-6]
11435               )
11436             )\d{2,7}
11437           )
11438         </nationalNumberPattern>
11439         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11440         <exampleNumber>0212345678</exampleNumber>
11441       </fixedLine>
11442       <mobile>
11443         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
11444              digits long. However, a user reported the existence of new 11 digit long numbers for
11445              TIM with the prefix 33X, so this is supported also. -->
11446         <nationalNumberPattern>
11447           3(?:
11448             [12457-9]\d{8}|
11449             6\d{7,8}|
11450             3\d{7,9}
11451           )
11452         </nationalNumberPattern>
11453         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
11454         <exampleNumber>3123456789</exampleNumber>
11455       </mobile>
11456       <tollFree>
11457         <nationalNumberPattern>
11458           80(?:
11459             0\d{6}|
11460             3\d{3}
11461           )
11462         </nationalNumberPattern>
11463         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11464         <exampleNumber>800123456</exampleNumber>
11465       </tollFree>
11466       <premiumRate>
11467         <!-- Adding 0878 numbers, as per
11468              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
11469              premium prefixes are mentioned here:
11470              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
11471         <nationalNumberPattern>
11472           0878\d{5}|
11473           1(?:
11474             44|
11475             6[346]
11476           )\d{6}|
11477           89(?:
11478             2\d{3}|
11479             4(?:
11480               [0-4]\d{2}|
11481               [5-9]\d{4}
11482             )|
11483             5(?:
11484               [0-4]\d{2}|
11485               [5-9]\d{6}
11486             )|
11487             9\d{6}
11488           )
11489         </nationalNumberPattern>
11490         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11491         <exampleNumber>899123456</exampleNumber>
11492       </premiumRate>
11493       <sharedCost>
11494         <nationalNumberPattern>
11495           84(?:
11496             [08]\d{6}|
11497             [17]\d{3}
11498           )
11499         </nationalNumberPattern>
11500         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11501         <exampleNumber>848123456</exampleNumber>
11502       </sharedCost>
11503       <personalNumber>
11504         <nationalNumberPattern>
11505           1(?:
11506             78\d|
11507             99
11508           )\d{6}
11509         </nationalNumberPattern>
11510         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
11511         <exampleNumber>1781234567</exampleNumber>
11512       </personalNumber>
11513       <voip>
11514         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
11515         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11516         <exampleNumber>5512345678</exampleNumber>
11517       </voip>
11518       <emergency>
11519         <nationalNumberPattern>11[2358]</nationalNumberPattern>
11520         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11521         <exampleNumber>112</exampleNumber>
11522       </emergency>
11523     </territory>
11524
11525     <!-- Jersey -->
11526     <!-- Inherits formatting rules from the UK. -->
11527     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
11528     <!-- http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&childID=1036 -->
11529     <territory id="JE" countryCode="44" internationalPrefix="00"
11530                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
11531       <generalDesc>
11532         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
11533         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11534       </generalDesc>
11535       <areaCodeOptional>
11536         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
11537         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11538         <exampleNumber>1534250123</exampleNumber>
11539       </areaCodeOptional>
11540       <!-- Specific to JE. -->
11541       <fixedLine>
11542         <!-- 1534 with 10 digits. -->
11543         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
11544         <exampleNumber>1534456789</exampleNumber>
11545       </fixedLine>
11546       <mobile>
11547         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
11548         <nationalNumberPattern>
11549           7(?:
11550             509|
11551             7(?:
11552               00|
11553               97
11554             )|
11555             829|
11556             937
11557           )\d{6}
11558         </nationalNumberPattern>
11559         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11560         <exampleNumber>7797123456</exampleNumber>
11561       </mobile>
11562       <pager>
11563         <!-- Pager numbers as per GB. -->
11564         <nationalNumberPattern>
11565           76(?:
11566             0[012]|
11567             2[356]|
11568             4[0134]|
11569             5[49]|
11570             6[0-369]|
11571             77|
11572             81|
11573             9[39]
11574           )\d{6}
11575         </nationalNumberPattern>
11576         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11577         <exampleNumber>7640123456</exampleNumber>
11578       </pager>
11579       <!-- Specific to JE. -->
11580       <tollFree>
11581         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
11582         <nationalNumberPattern>
11583           80(?:
11584             07(?:
11585               35|
11586               81
11587             )|
11588             8901
11589           )\d{4}
11590         </nationalNumberPattern>
11591         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11592         <exampleNumber>8007354567</exampleNumber>
11593       </tollFree>
11594       <premiumRate>
11595         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
11596         <nationalNumberPattern>
11597           (?:
11598             871206|
11599             90(?:
11600               066[59]|
11601               1810|
11602               71(?:
11603                 07|
11604                 55
11605               )
11606             )
11607           )\d{4}
11608         </nationalNumberPattern>
11609         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11610         <exampleNumber>9018105678</exampleNumber>
11611       </premiumRate>
11612       <sharedCost>
11613         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
11614         <nationalNumberPattern>
11615           8(?:
11616             4(?:
11617               4(?:
11618                 4(?:
11619                   05|
11620                   42|
11621                   69
11622                 )|
11623                 703
11624               )|
11625               5(?:
11626                 041|
11627                 800
11628               )
11629             )|
11630             70002
11631           )\d{4}
11632         </nationalNumberPattern>
11633         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11634         <exampleNumber>8447034567</exampleNumber>
11635       </sharedCost>
11636       <personalNumber>
11637         <!-- 70 1511 with 10 digits. -->
11638         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
11639         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11640         <exampleNumber>7015115678</exampleNumber>
11641       </personalNumber>
11642       <voip>
11643         <!-- VoIP numbers as per GB. -->
11644         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
11645         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11646         <exampleNumber>5612345678</exampleNumber>
11647       </voip>
11648       <uan>
11649         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
11650              370 002, 371 206, 55 with 10 digits. -->
11651         <nationalNumberPattern>
11652           3(?:
11653             0(?:
11654               07(?:
11655                 35|
11656                 81
11657               )|
11658               8901
11659             )|
11660             3\d{4}|
11661             4(?:
11662               4(?:
11663                 4(?:
11664                   05|
11665                   42|
11666                   69
11667                 )|
11668                 703
11669               )|
11670               5(?:
11671                 041|
11672                 800
11673               )
11674             )|
11675             7(?:
11676               0002|
11677               1206
11678             )
11679           )\d{4}|
11680           55\d{8}
11681         </nationalNumberPattern>
11682         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11683         <exampleNumber>5512345678</exampleNumber>
11684       </uan>
11685       <emergency>
11686         <!-- http://en.wikipedia.org/wiki/Jersey#Emergency_services -->
11687         <nationalNumberPattern>
11688           112|
11689           999
11690         </nationalNumberPattern>
11691         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11692         <exampleNumber>999</exampleNumber>
11693       </emergency>
11694     </territory>
11695
11696     <!-- Jamaica -->
11697     <!-- http://www.itu.int/oth/T020200006C/en -->
11698     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
11699                internationalPrefix="011">
11700       <generalDesc>
11701         <!-- NANPA country - uses US formatting rules -->
11702         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
11703         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
11704       </generalDesc>
11705       <fixedLine>
11706         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-489]. -->
11707         <nationalNumberPattern>
11708           876(?:
11709             5(?:
11710               0[12]|
11711               1[0-468]|
11712               2[35]|
11713               63
11714             )|
11715             6(?:
11716               0[1-3579]|
11717               1[027-9]|
11718               [23]\d|
11719               40|
11720               5[06]|
11721               6[2-489]|
11722               7[05]|
11723               8[04]|
11724               9[4-9]
11725             )|
11726             7(?:
11727               0[2-689]|
11728               [1-6]\d|
11729               8[056]|
11730               9[45]
11731             )|
11732             9(?:
11733               0[1-8]|
11734               1[02378]|
11735               [2-8]\d|
11736               9[2-468]
11737             )
11738           )\d{4}
11739         </nationalNumberPattern>
11740         <exampleNumber>8765123456</exampleNumber>
11741       </fixedLine>
11742       <mobile>
11743         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
11744              be valid by sending SMSs and looking at online number lookup sites.
11745
11746              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
11747              Most have mobile numbers online so we have put them under mobile but is possible
11748              they are a mixture of fixed line and mobile. -->
11749         <nationalNumberPattern>
11750           876(?:
11751             2[1789]\d|
11752             [348]\d{2}|
11753             5(?:
11754               08|
11755               27|
11756               6[0-24-9]|
11757               [3-578]\d
11758             )|
11759             7(?:
11760               0[07]|
11761               7\d|
11762               8[1-47-9]|
11763               9[0-36-9]
11764             )|
11765             9(?:
11766               [01]9|
11767               9[0579]
11768             )
11769           )\d{4}
11770         </nationalNumberPattern>
11771         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11772         <exampleNumber>8762101234</exampleNumber>
11773       </mobile>
11774       <tollFree>
11775         <nationalNumberPattern>
11776           8(?:
11777             00|
11778             55|
11779             66|
11780             77|
11781             88
11782           )[2-9]\d{6}
11783         </nationalNumberPattern>
11784         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11785         <exampleNumber>8002123456</exampleNumber>
11786       </tollFree>
11787       <premiumRate>
11788         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
11789         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11790         <exampleNumber>9002123456</exampleNumber>
11791       </premiumRate>
11792       <personalNumber>
11793         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
11794         <nationalNumberPattern>
11795           5(?:
11796             00|
11797             33|
11798             44
11799           )[2-9]\d{6}
11800         </nationalNumberPattern>
11801         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11802         <exampleNumber>5002345678</exampleNumber>
11803       </personalNumber>
11804       <emergency>
11805         <nationalNumberPattern>11[09]</nationalNumberPattern>
11806         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11807         <exampleNumber>119</exampleNumber>
11808       </emergency>
11809     </territory>
11810
11811     <!-- Jordan -->
11812     <!-- http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english -->
11813     <!-- http://www.itu.int/oth/T020200006E/en -->
11814     <!-- http://en.wikipedia.org/wiki/%2B962 -->
11815     <territory id="JO" countryCode="962" internationalPrefix="00"
11816                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
11817       <availableFormats>
11818         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
11819           pattern="(\d)(\d{3})(\d{4})">
11820           <leadingDigits>
11821             [2356]|
11822             87
11823           </leadingDigits>
11824           <format>$1 $2 $3</format>
11825         </numberFormat>
11826         <numberFormat pattern="(7)(\d{4})(\d{4})">
11827           <leadingDigits>7[457-9]</leadingDigits>
11828           <format>$1 $2 $3</format>
11829         </numberFormat>
11830         <numberFormat pattern="(\d{3})(\d{5,6})">
11831           <leadingDigits>
11832             70|
11833             8[0158]|
11834             9
11835           </leadingDigits>
11836           <format>$1 $2</format>
11837         </numberFormat>
11838       </availableFormats>
11839       <generalDesc>
11840         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
11841         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11842       </generalDesc>
11843       <fixedLine>
11844         <nationalNumberPattern>
11845           (?:
11846             2(?:
11847               6(?:
11848                 2[0-35-9]|
11849                 3[0-57-8]|
11850                 4[24-7]|
11851                 5[0-24-8]|
11852                 [6-9][02]
11853               )|
11854               7(?:
11855                 0[1-79]|
11856                 10|
11857                 2[014-7]|
11858                 3[0-689]|
11859                 4[019]|
11860                 5[0-3578]
11861               )
11862             )|
11863             32(?:
11864               0[1-69]|
11865               1[1-35-7]|
11866               2[024-7]|
11867               3\d|
11868               [457][02]|
11869               60
11870             )|
11871             53(?:
11872               [013][02]|
11873               2[0-59]|
11874               49|
11875               5[0-35-9]|
11876               6[15]|
11877               7[45]|
11878               8[1-6]|
11879               9[0-36-9]
11880             )|
11881             6(?:
11882               2[50]0|
11883               300|
11884               4(?:
11885                 0[0125]|
11886                 1[2-7]|
11887                 2[0569]|
11888                 [38][07-9]|
11889                 4[025689]|
11890                 6[0-589]|
11891                 7\d|
11892                 9[0-2]
11893               )|
11894               5(?:
11895                 [01][056]|
11896                 2[034]|
11897                 3[0-57-9]|
11898                 4[17-8]|
11899                 5[0-69]|
11900                 6[0-35-9]|
11901                 7[1-379]|
11902                 8[0-68]|
11903                 9[02-39]
11904               )
11905             )|
11906             87(?:
11907               [02]0|
11908               7[08]|
11909               9[09]
11910             )
11911           )\d{4}
11912         </nationalNumberPattern>
11913         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
11914         <exampleNumber>62001234</exampleNumber>
11915       </fixedLine>
11916       <mobile>
11917         <nationalNumberPattern>
11918           7(?:
11919             55|
11920             7[25-9]|
11921             8[5-9]|
11922             9[05-9]
11923           )\d{6}
11924         </nationalNumberPattern>
11925         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11926         <exampleNumber>790123456</exampleNumber>
11927       </mobile>
11928       <pager>
11929         <nationalNumberPattern>
11930           74(?:
11931             66|
11932             77
11933           )\d{5}
11934         </nationalNumberPattern>
11935         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11936         <exampleNumber>746612345</exampleNumber>
11937       </pager>
11938       <tollFree>
11939         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
11940         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11941         <exampleNumber>80012345</exampleNumber>
11942       </tollFree>
11943       <premiumRate>
11944         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
11945         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11946         <exampleNumber>90012345</exampleNumber>
11947       </premiumRate>
11948       <sharedCost>
11949         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
11950         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11951         <exampleNumber>85012345</exampleNumber>
11952       </sharedCost>
11953       <personalNumber>
11954         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
11955         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11956         <exampleNumber>700123456</exampleNumber>
11957       </personalNumber>
11958       <uan>
11959         <!-- These numbers are Location Independent Services / Fixed cost according to
11960              http://www.trc.gov.jo -->
11961         <nationalNumberPattern>
11962           8(?:
11963             10|
11964             8\d
11965           )\d{5}
11966         </nationalNumberPattern>
11967         <possibleNumberPattern>\d{8}</possibleNumberPattern>
11968         <exampleNumber>88101234</exampleNumber>
11969       </uan>
11970       <emergency>
11971         <nationalNumberPattern>
11972           1(?:
11973             12|
11974             91
11975           )|
11976           911
11977         </nationalNumberPattern>
11978         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11979         <exampleNumber>112</exampleNumber>
11980       </emergency>
11981     </territory>
11982
11983     <!-- Japan -->
11984     <!-- http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html -->
11985     <!-- http://www.numberingplans.com/?page=dialling&sub=areacodes&ac=JP -->
11986     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
11987                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true" >
11988       <availableFormats>
11989         <!-- Toll-free, premium-rate and UAN numbers -->
11990         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
11991           <leadingDigits>
11992             (?:
11993               12|
11994               57|
11995               99
11996             )0
11997           </leadingDigits>
11998           <format>$1-$2-$3</format>
11999         </numberFormat>
12000         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
12001           <leadingDigits>800</leadingDigits>
12002           <format>$1-$2-$3</format>
12003         </numberFormat>
12004         <!-- National-only toll-free numbers (0077 and 0088) and VOIP numbers (0037) where the
12005              leading "0" is considered the national prefix. -->
12006         <numberFormat pattern="(\d{3})(\d{4})">
12007           <leadingDigits>077</leadingDigits>
12008           <format>$1-$2</format>
12009         </numberFormat>
12010         <numberFormat pattern="(\d{3})(\d{2})(\d{3,4})">
12011           <leadingDigits>077</leadingDigits>
12012           <format>$1-$2-$3</format>
12013         </numberFormat>
12014         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12015           <leadingDigits>088</leadingDigits>
12016           <format>$1-$2-$3</format>
12017         </numberFormat>
12018         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12019           <leadingDigits>
12020             0(?:
12021               37|
12022               66
12023             )
12024           </leadingDigits>
12025           <format>$1-$2-$3</format>
12026         </numberFormat>
12027         <numberFormat pattern="(\d{3})(\d{4})(\d{4,5})">
12028           <leadingDigits>
12029             0(?:
12030               37|
12031               66
12032             )
12033           </leadingDigits>
12034           <format>$1-$2-$3</format>
12035         </numberFormat>
12036         <numberFormat pattern="(\d{3})(\d{5})(\d{5,6})">
12037           <leadingDigits>
12038             0(?:
12039               37|
12040               66
12041             )
12042           </leadingDigits>
12043           <format>$1-$2-$3</format>
12044         </numberFormat>
12045         <numberFormat pattern="(\d{3})(\d{6})(\d{6,7})">
12046           <leadingDigits>
12047             0(?:
12048               37|
12049               66
12050             )
12051           </leadingDigits>
12052           <format>$1-$2-$3</format>
12053         </numberFormat>
12054         <!-- Some leading digits are explicitly reserved for a particular purpose.
12055              We handle them first in this rule, and let the following rules ignore those exceptions.
12056              Note: The rule here is not in the files we rely on when creating the other rules.
12057                    We would need to manually modify it if the Japanese goverment
12058                    decided to change the rule.
12059
12060              (prefix): purpose
12061              "20": Pagers
12062              "50": IP phone
12063              "70": PHS (Personal Handy-phone System, which has been used in Japan
12064                    with Non-3G, Japanese-specific protocol).
12065                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
12066              "80" and "90": Mobile phone
12067           -->
12068         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
12069           <leadingDigits>
12070             [2579]0|
12071             80[1-9]
12072           </leadingDigits>
12073           <format>$1-$2-$3</format>
12074         </numberFormat>
12075         <!-- The order of the reg-exps are important.
12076              Examples (not all):
12077              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
12078              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
12079              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
12080              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
12081              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
12082              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
12083           -->
12084         <numberFormat pattern="(\d{4})(\d)(\d{4})">
12085           <leadingDigits>
12086             1(?:
12087               26|
12088               3[79]|
12089               4[56]|
12090               5[4-68]|
12091               6[3-5]
12092             )|
12093             5(?:
12094               76|
12095               97
12096             )|
12097             499|
12098             746|
12099             8(?:
12100               3[89]|
12101               63|
12102               47|
12103               51
12104             )|
12105             9(?:
12106               49|
12107               80|
12108               9[16]
12109             )
12110           </leadingDigits>
12111           <leadingDigits>
12112             1(?:
12113               267|
12114               3(?:
12115                 7[247]|
12116                 9[278]
12117               )|
12118               4(?:
12119                 5[67]|
12120                 66
12121               )|
12122               5(?:
12123                 47|
12124                 58|
12125                 64|
12126                 8[67]
12127               )|
12128               6(?:
12129                 3[245]|
12130                 48|
12131                 5[4-68]
12132               )
12133             )|
12134             5(?:
12135               76|
12136               97
12137             )9|
12138             499[2468]|
12139             7468|
12140             8(?:
12141               3(?:
12142                 8[78]|
12143                 96
12144               )|
12145               636|
12146               477|
12147               51[24]
12148             )|
12149             9(?:
12150               496|
12151               802|
12152               9(?:
12153                 1[23]|
12154                 69
12155               )
12156             )
12157           </leadingDigits>
12158           <leadingDigits>
12159             1(?:
12160               267|
12161               3(?:
12162                 7[247]|
12163                 9[278]
12164               )|
12165               4(?:
12166                 5[67]|
12167                 66
12168               )|
12169               5(?:
12170                 47|
12171                 58|
12172                 64|
12173                 8[67]
12174               )|
12175               6(?:
12176                 3[245]|
12177                 48|
12178                 5[4-68]
12179               )
12180             )|
12181             5(?:
12182               769|
12183               979[2-69]
12184             )|
12185             499[2468]|
12186             7468|
12187             8(?:
12188               3(?:
12189                 8[78]|
12190                 96[2457-9]
12191               )|
12192               636[2-57-9]|
12193               477|
12194               51[24]
12195             )|
12196             9(?:
12197               496|
12198               802|
12199               9(?:
12200                 1[23]|
12201                 69
12202               )
12203             )
12204           </leadingDigits>
12205           <format>$1-$2-$3</format>
12206         </numberFormat>
12207         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12208           <leadingDigits>
12209             1(?:
12210               2[3-6]|
12211               3[3-9]|
12212               4[2-6]|
12213               5[2-8]|
12214               [68][2-7]|
12215               7[2-689]|
12216               9[1-578]
12217             )|
12218             2(?:
12219               2[03-689]|
12220               3[3-58]|
12221               4[0-468]|
12222               5[04-8]|
12223               6[013-8]|
12224               7[06-9]|
12225               8[02-57-9]|
12226               9[13]
12227             )|
12228             4(?:
12229               2[28]|
12230               3[689]|
12231               6[035-7]|
12232               7[05689]|
12233               80|
12234               9[3-5]
12235             )|
12236             5(?:
12237               3[1-36-9]|
12238               4[4578]|
12239               5[013-8]|
12240               6[1-9]|
12241               7[2-8]|
12242               8[14-7]|
12243               9[4-9]
12244             )|
12245             7(?:
12246               2[15]|
12247               3[5-9]|
12248               4[02-9]|
12249               6[135-8]|
12250               7[0-4689]|
12251               9[014-9]
12252             )|
12253             8(?:
12254               2[49]|
12255               3[3-8]|
12256               4[5-8]|
12257               5[2-9]|
12258               6[35-9]|
12259               7[579]|
12260               8[03-579]|
12261               9[2-8]
12262             )|
12263             9(?:
12264               [23]0|
12265               4[02-46-9]|
12266               5[024-79]|
12267               6[4-9]|
12268               7[2-47-9]|
12269               8[02-7]|
12270               9[3-7]
12271             )
12272           </leadingDigits>
12273           <leadingDigits>
12274             1(?:
12275               2[3-6]|
12276               3[3-9]|
12277               4[2-6]|
12278               5(?:
12279                 [236-8]|
12280                 [45][2-69]
12281               )|
12282               [68][2-7]|
12283               7[2-689]|
12284               9[1-578]
12285             )|
12286             2(?:
12287               2(?:
12288                 [04-689]|
12289                 3[23]
12290               )|
12291               3[3-58]|
12292               4[0-468]|
12293               5(?:
12294                 5[78]|
12295                 7[2-4]|
12296                 [0468][2-9]
12297               )|
12298               6(?:
12299                 [0135-8]|
12300                 4[2-5]
12301               )|
12302               7(?:
12303                 [0679]|
12304                 8[2-7]
12305               )|
12306               8(?:
12307                 [024578]|
12308                 3[25-9]|
12309                 9[6-9]
12310               )|
12311               9(?:
12312                 11|
12313                 3[2-4]
12314               )
12315             )|
12316             4(?:
12317               2(?:
12318                 2[2-9]|
12319                 8[237-9]
12320               )|
12321               3[689]|
12322               6[035-7]|
12323               7(?:
12324                 [059][2-8]|
12325                 [68]
12326               )|
12327               80|
12328               9[3-5]
12329             )|
12330             5(?:
12331               3[1-36-9]|
12332               4[4578]|
12333               5[013-8]|
12334               6[1-9]|
12335               7[2-8]|
12336               8[14-7]|
12337               9(?:
12338                 [89][2-8]|
12339                 [4-7]
12340               )
12341             )|
12342             7(?:
12343               2[15]|
12344               3[5-9]|
12345               4[02-9]|
12346               6[135-8]|
12347               7[0-4689]|
12348               9(?:
12349                 [017-9]|
12350                 4[6-8]|
12351                 5[2-478]|
12352                 6[2-589]
12353               )
12354             )|
12355             8(?:
12356               2(?:
12357                 4[4-8]|
12358                 9[2-8]
12359               )|
12360               3(?:
12361                 7[2-6]|
12362                 [3-6][2-9]|
12363                 8[2-5]
12364               )|
12365               4[5-8]|
12366               5[2-9]|
12367               6(?:
12368                 [37]|
12369                 5[4-7]|
12370                 6[2-9]|
12371                 8[2-8]|
12372                 9[236-9]
12373               )|
12374               7[579]|
12375               8[03-579]|
12376               9[2-8]
12377             )|
12378             9(?:
12379               [23]0|
12380               4[02-46-9]|
12381               5[024-79]|
12382               6[4-9]|
12383               7[2-47-9]|
12384               8[02-7]|
12385               9(?:
12386                 3[34]|
12387                 [4-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[56]
12481                 )
12482               )|
12483               3(?:
12484                 7(?:
12485                   [2-5]|
12486                   6[0-59]
12487                 )|
12488                 [3-6][2-9]|
12489                 8[2-5]
12490               )|
12491               4[5-8]|
12492               5[2-9]|
12493               6(?:
12494                 [37]|
12495                 5(?:
12496                   [467]|
12497                   5[014-9]
12498                 )|
12499                 6(?:
12500                   [2-8]|
12501                   9[02-69]
12502                 )|
12503                 8[2-8]|
12504                 9(?:
12505                   [236-8]|
12506                   9[23]
12507                 )
12508               )|
12509               7[579]|
12510               8[03-579]|
12511               9[2-8]
12512             )|
12513             9(?:
12514               [23]0|
12515               4[02-46-9]|
12516               5[024-79]|
12517               6[4-9]|
12518               7[2-47-9]|
12519               8[02-7]|
12520               9(?:
12521                 3(?:
12522                   3[02-9]|
12523                   4[0-24689]
12524                 )|
12525                 4[2-69]|
12526                 [5-7]
12527               )
12528             )
12529           </leadingDigits>
12530           <leadingDigits>
12531             1(?:
12532               2[3-6]|
12533               3[3-9]|
12534               4[2-6]|
12535               5(?:
12536                 [236-8]|
12537                 [45][2-69]
12538               )|
12539               [68][2-7]|
12540               7[2-689]|
12541               9[1-578]
12542             )|
12543             2(?:
12544               2(?:
12545                 [04-689]|
12546                 3[23]
12547               )|
12548               3[3-58]|
12549               4[0-468]|
12550               5(?:
12551                 5[78]|
12552                 7[2-4]|
12553                 [0468][2-9]
12554               )|
12555               6(?:
12556                 [0135-8]|
12557                 4[2-5]
12558               )|
12559               7(?:
12560                 [0679]|
12561                 8[2-7]
12562               )|
12563               8(?:
12564                 [024578]|
12565                 3[25-9]|
12566                 9[6-9]
12567               )|
12568               9(?:
12569                 11|
12570                 3[2-4]
12571               )
12572             )|
12573             4(?:
12574               2(?:
12575                 2[2-9]|
12576                 8[237-9]
12577               )|
12578               3[689]|
12579               6[035-7]|
12580               7(?:
12581                 [059][2-8]|
12582                 [68]
12583               )|
12584               80|
12585               9[3-5]
12586             )|
12587             5(?:
12588               3[1-36-9]|
12589               4[4578]|
12590               5[013-8]|
12591               6[1-9]|
12592               7[2-8]|
12593               8[14-7]|
12594               9(?:
12595                 [89][2-8]|
12596                 [4-7]
12597               )
12598             )|
12599             7(?:
12600               2[15]|
12601               3[5-9]|
12602               4[02-9]|
12603               6[135-8]|
12604               7[0-4689]|
12605               9(?:
12606                 [017-9]|
12607                 4[6-8]|
12608                 5[2-478]|
12609                 6[2-589]
12610               )
12611             )|
12612             8(?:
12613               2(?:
12614                 4[4-8]|
12615                 9(?:
12616                   [3578]|
12617                   20|
12618                   4[04-9]|
12619                   6(?:
12620                     5[25]|
12621                     60
12622                   )
12623                 )
12624               )|
12625               3(?:
12626                 7(?:
12627                   [2-5]|
12628                   6[0-59]
12629                 )|
12630                 [3-6][2-9]|
12631                 8[2-5]
12632               )|
12633               4[5-8]|
12634               5[2-9]|
12635               6(?:
12636                 [37]|
12637                 5(?:
12638                   [467]|
12639                   5[014-9]
12640                 )|
12641                 6(?:
12642                   [2-8]|
12643                   9[02-69]
12644                 )|
12645                 8[2-8]|
12646                 9(?:
12647                   [236-8]|
12648                   9[23]
12649                 )
12650               )|
12651               7[579]|
12652               8[03-579]|
12653               9[2-8]
12654             )|
12655             9(?:
12656               [23]0|
12657               4[02-46-9]|
12658               5[024-79]|
12659               6[4-9]|
12660               7[2-47-9]|
12661               8[02-7]|
12662               9(?:
12663                 3(?:
12664                   3[02-9]|
12665                   4[0-24689]
12666                 )|
12667                 4[2-69]|
12668                 [5-7]
12669               )
12670             )
12671           </leadingDigits>
12672           <format>$1-$2-$3</format>
12673         </numberFormat>
12674         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12675           <leadingDigits>
12676             1|
12677             2(?:
12678               2[37]|
12679               5[5-9]|
12680               64|
12681               78|
12682               8[39]|
12683               91
12684             )|
12685             4(?:
12686               2[2689]|
12687               64|
12688               7[347]
12689             )|
12690             5(?:
12691               [2-589]|
12692               39
12693             )|
12694             60|
12695             8(?:
12696               [46-9]|
12697               3[279]|
12698               2[124589]
12699             )|
12700             9(?:
12701               [235-8]|
12702               93
12703             )
12704           </leadingDigits>
12705           <leadingDigits>
12706             1|
12707             2(?:
12708               2[37]|
12709               5(?:
12710                 [57]|
12711                 [68]0|
12712                 9[19]
12713               )|
12714               64|
12715               78|
12716               8[39]|
12717               917
12718             )|
12719             4(?:
12720               2(?:
12721                 [68]|
12722                 20|
12723                 9[178]
12724               )|
12725               64|
12726               7[347]
12727             )|
12728             5(?:
12729               [2-589]|
12730               39[67]
12731             )|
12732             60|
12733             8(?:
12734               [46-9]|
12735               3[279]|
12736               2[124589]
12737             )|
12738             9(?:
12739               [235-8]|
12740               93[34]
12741             )
12742           </leadingDigits>
12743           <leadingDigits>
12744             1|
12745             2(?:
12746               2[37]|
12747               5(?:
12748                 [57]|
12749                 [68]0|
12750                 9(?:
12751                   17|
12752                   99
12753                 )
12754               )|
12755               64|
12756               78|
12757               8[39]|
12758               917
12759             )|
12760             4(?:
12761               2(?:
12762                 [68]|
12763                 20|
12764                 9[178]
12765               )|
12766               64|
12767               7[347]
12768             )|
12769             5(?:
12770               [2-589]|
12771               39[67]
12772             )|
12773             60|
12774             8(?:
12775               [46-9]|
12776               3[279]|
12777               2[124589]
12778             )|
12779             9(?:
12780               [235-8]|
12781               93(?:
12782                 31|
12783                 4
12784               )
12785             )
12786           </leadingDigits>
12787           <format>$1-$2-$3</format>
12788         </numberFormat>
12789         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12790           <leadingDigits>
12791             2(?:
12792               9[14-79]|
12793               74|
12794               [34]7|
12795               [56]9
12796             )|
12797             82|
12798             993
12799           </leadingDigits>
12800           <format>$1-$2-$3</format>
12801         </numberFormat>
12802         <numberFormat pattern="(\d)(\d{4})(\d{4})">
12803           <leadingDigits>
12804             3|
12805             4(?:
12806               2[09]|
12807               7[01]
12808             )|
12809             6[1-9]
12810           </leadingDigits>
12811           <format>$1-$2-$3</format>
12812         </numberFormat>
12813         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12814           <leadingDigits>[2479][1-9]</leadingDigits>
12815           <format>$1-$2-$3</format>
12816         </numberFormat>
12817       </availableFormats>
12818       <generalDesc>
12819         <nationalNumberPattern>
12820           [1-9]\d{8,9}|
12821           0(?:
12822             [36]\d{7,14}|
12823             7\d{5,7}|
12824             8\d{7}
12825           )
12826         </nationalNumberPattern>
12827         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
12828       </generalDesc>
12829       <noInternationalDialling>
12830         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
12831         <nationalNumberPattern>
12832           0(?:
12833             37\d{6,13}|
12834             66\d{6,13}|
12835             777(?:
12836               [01]\d{2}|
12837               5\d{3}|
12838               8\d{4}
12839             )|
12840             882[1245]\d{4}
12841           )
12842         </nationalNumberPattern>
12843         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
12844         <exampleNumber>0777012</exampleNumber>
12845       </noInternationalDialling>
12846       <fixedLine>
12847         <nationalNumberPattern>
12848           (?:
12849             1(?:
12850               1[235-8]|
12851               2[3-6]|
12852               3[3-9]|
12853               4[2-6]|
12854               [58][2-8]|
12855               6[2-7]|
12856               7[2-9]|
12857               9[1-9]
12858             )|
12859             2[2-9]\d|
12860             [36][1-9]\d|
12861             4(?:
12862               6[02-8]|
12863               [2-578]\d|
12864               9[2-59]
12865             )|
12866             5(?:
12867               6[1-9]|
12868               7[2-8]|
12869               [2-589]\d
12870             )|
12871             7(?:
12872               3[4-9]|
12873               4[02-9]|
12874               [25-9]\d
12875             )|
12876             8(?:
12877               3[2-9]|
12878               4[5-9]|
12879               5[1-9]|
12880               8[03-9]|
12881               [2679]\d
12882             )|
12883             9(?:
12884               [679][1-9]|
12885               [2-58]\d
12886             )
12887           )\d{6}
12888         </nationalNumberPattern>
12889         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12890         <exampleNumber>312345678</exampleNumber>
12891       </fixedLine>
12892       <mobile>
12893         <nationalNumberPattern>
12894           (?:
12895             [79]0\d|
12896             80[1-9]
12897           )\d{7}
12898         </nationalNumberPattern>
12899         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12900         <exampleNumber>7012345678</exampleNumber>
12901       </mobile>
12902       <pager>
12903         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
12904         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12905         <exampleNumber>2012345678</exampleNumber>
12906       </pager>
12907       <tollFree>
12908         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
12909              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
12910              http://eonet.jp/home/denwa/service/access.html
12911              http://ci.fusioncom.co.jp/feature/
12912              http://www.auhikari.jp/service/tel/connection/index.html -->
12913         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
12914              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
12915              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
12916              for now (including both leading 00s). -->
12917         <nationalNumberPattern>
12918           120\d{6}|
12919           800\d{7}|
12920           0(?:
12921             37\d{6,13}|
12922             66\d{6,13}|
12923             777(?:
12924               [01]\d{2}|
12925               5\d{3}|
12926               8\d{4}
12927             )|
12928             882[1245]\d{4}
12929           )
12930         </nationalNumberPattern>
12931         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
12932         <exampleNumber>120123456</exampleNumber>
12933       </tollFree>
12934       <premiumRate>
12935         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
12936         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12937         <exampleNumber>990123456</exampleNumber>
12938       </premiumRate>
12939       <personalNumber>
12940         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
12941         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12942         <exampleNumber>601234567</exampleNumber>
12943       </personalNumber>
12944       <voip>
12945         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
12946         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12947         <exampleNumber>5012345678</exampleNumber>
12948       </voip>
12949       <!-- Storing "unified number service" as UAN. -->
12950       <uan>
12951         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
12952         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12953         <exampleNumber>570123456</exampleNumber>
12954       </uan>
12955       <emergency>
12956         <nationalNumberPattern>11[09]</nationalNumberPattern>
12957         <possibleNumberPattern>\d{3}</possibleNumberPattern>
12958         <exampleNumber>110</exampleNumber>
12959       </emergency>
12960     </territory>
12961
12962     <!-- Kenya -->
12963     <!-- http://www.cck.go.ke/licensing/numbering/plan.html -->
12964     <!-- http://en.wikipedia.org/wiki/+254 -->
12965     <territory id="KE" countryCode="254" internationalPrefix="000"
12966                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
12967       <availableFormats>
12968         <numberFormat pattern="(\d{2})(\d{4,7})">
12969           <leadingDigits>[24-6]</leadingDigits>
12970           <format>$1 $2</format>
12971         </numberFormat>
12972         <numberFormat pattern="(\d{3})(\d{6,7})">
12973           <leadingDigits>7</leadingDigits>
12974           <format>$1 $2</format>
12975         </numberFormat>
12976         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12977           <leadingDigits>[89]</leadingDigits>
12978           <format>$1 $2 $3</format>
12979         </numberFormat>
12980       </availableFormats>
12981       <generalDesc>
12982         <nationalNumberPattern>
12983           20\d{6,7}|
12984           [4-9]\d{6,9}
12985         </nationalNumberPattern>
12986         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
12987       </generalDesc>
12988       <fixedLine>
12989         <!-- The prefix 066 is supposed to be used only for 9-digit numbers, but none of these can
12990              be found online, and the plan says also it is migrating to 9 digit numbers. Both are
12991              supported for now. -->
12992         <nationalNumberPattern>
12993           20\d{6,7}|
12994           4(?:
12995             [013]\d{7}|
12996             [24-6]\d{5,7}
12997           )|
12998           5(?:
12999             [0-36-8]\d{5,7}|
13000             [459]\d{5}
13001           )|
13002           6(?:
13003             [08]\d{5}|
13004             [14-79]\d{5,7}|
13005             2\d{7}
13006           )
13007         </nationalNumberPattern>
13008         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
13009         <exampleNumber>202012345</exampleNumber>
13010       </fixedLine>
13011       <mobile>
13012         <nationalNumberPattern>
13013           7(?:
13014             0[0-8]|
13015             [123]\d|
13016             5[0-6]|
13017             7[0-5]|
13018             8[5-9]
13019           )\d{6}
13020         </nationalNumberPattern>
13021         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13022         <exampleNumber>712123456</exampleNumber>
13023       </mobile>
13024       <tollFree>
13025         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
13026         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
13027         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13028         <exampleNumber>800223456</exampleNumber>
13029       </tollFree>
13030       <premiumRate>
13031         <nationalNumberPattern>900[02-578]\d{5}</nationalNumberPattern>
13032         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13033         <exampleNumber>900223456</exampleNumber>
13034       </premiumRate>
13035       <emergency>
13036         <!-- http://www.kenyapolice.go.ke/report_a_crime.asp -->
13037         <nationalNumberPattern>
13038           112|
13039           999
13040         </nationalNumberPattern>
13041         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13042         <exampleNumber>999</exampleNumber>
13043       </emergency>
13044     </territory>
13045
13046     <!-- Kyrgyzstan -->
13047     <!-- http://www.itu.int/oth/T0202000074/en -->
13048     <territory id="KG" countryCode="996" internationalPrefix="00"
13049                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13050       <availableFormats>
13051         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
13052           <leadingDigits>
13053             31[25]|
13054             [5-7]
13055           </leadingDigits>
13056           <format>$1 $2 $3</format>
13057         </numberFormat>
13058         <numberFormat pattern="(\d{4})(\d{5})">
13059           <leadingDigits>
13060             3(?:
13061               1[36]|
13062               [2-9]
13063             )
13064           </leadingDigits>
13065           <format>$1 $2</format>
13066         </numberFormat>
13067         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
13068           <leadingDigits>8</leadingDigits>
13069           <format>$1 $2 $3 $4</format>
13070         </numberFormat>
13071       </availableFormats>
13072       <generalDesc>
13073         <nationalNumberPattern>[35-8]\d{8,9}</nationalNumberPattern>
13074         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
13075       </generalDesc>
13076       <fixedLine>
13077         <!-- Extra area codes found on Web Search: 3147, 3150, 3948. -->
13078         <nationalNumberPattern>
13079           (?:
13080             3(?:
13081               1(?:
13082                 2\d|
13083                 3[1-9]|
13084                 47|
13085                 5[02]|
13086                 6[1-8]
13087               )|
13088               2(?:
13089                 22|
13090                 3[0-479]|
13091                 6[0-7]
13092               )|
13093               4(?:
13094                 22|
13095                 5[6-9]|
13096                 6[0-4]
13097               )|
13098               5(?:
13099                 22|
13100                 3[4-7]|
13101                 59|
13102                 6[0-5]
13103               )|
13104               6(?:
13105                 22|
13106                 5[35-7]|
13107                 6[0-3]
13108               )|
13109               7(?:
13110                 22|
13111                 3[468]|
13112                 4[1-9]|
13113                 59|
13114                 6\d|
13115                 7[5-7]
13116               )|
13117               9(?:
13118                 22|
13119                 4[1-8]|
13120                 6[0-8]
13121               )
13122             )|
13123             6(?:
13124               09|
13125               12|
13126               2[2-4]
13127             )\d
13128           )\d{5}
13129         </nationalNumberPattern>
13130         <exampleNumber>312123456</exampleNumber>
13131       </fixedLine>
13132       <mobile>
13133         <!-- Added 70[1235789] since SMS messages have been successfully sent to numbers with this
13134              prefix, and numbers have been found like this online.  -->
13135         <nationalNumberPattern>
13136           5[124-7]\d{7}|
13137           7(?:
13138             0[0-357-9]|
13139             7\d
13140           )\d{6}
13141         </nationalNumberPattern>
13142         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13143         <exampleNumber>700123456</exampleNumber>
13144       </mobile>
13145       <tollFree>
13146         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
13147              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
13148         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
13149         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13150         <exampleNumber>800123456</exampleNumber>
13151       </tollFree>
13152       <!-- No premiumRate information can be found. -->
13153       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
13154       <emergency>
13155         <nationalNumberPattern>10[123]</nationalNumberPattern>
13156         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13157         <exampleNumber>101</exampleNumber>
13158       </emergency>
13159     </territory>
13160
13161     <!-- Cambodia -->
13162     <!-- http://www.itu.int/oth/T0202000023/en -->
13163     <!-- http://en.wikipedia.org/wiki/+855 -->
13164     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
13165                nationalPrefix="0">
13166       <availableFormats>
13167         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
13168           <leadingDigits>
13169             1\d[1-9]|
13170             [2-9]
13171           </leadingDigits>
13172           <format>$1 $2 $3</format>
13173         </numberFormat>
13174         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
13175           <leadingDigits>1[89]0</leadingDigits>
13176           <format>$1 $2 $3</format>
13177         </numberFormat>
13178       </availableFormats>
13179       <generalDesc>
13180         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
13181         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13182       </generalDesc>
13183       <fixedLine>
13184         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
13185              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
13186              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
13187              range beginning with 6 seems to include some numbers that are one digit longer as well.
13188              Allowing 23[48]\d{6} and [456]3\d{7} based on information from Cambodia Yellow Pages.
13189              Note that numbers with these prefixes may match more than one group. -->
13190         <nationalNumberPattern>
13191           (?:
13192             2[3-6]|
13193             3[2-6]|
13194             4[2-4]|
13195             [567][2-5]
13196           )(?:
13197             [2-47-9]|
13198             5\d|
13199             6\d?
13200           )\d{5}|
13201           (?:
13202             23[48]|
13203             [456]3\d|
13204           )\d{6}
13205         </nationalNumberPattern>
13206         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13207         <exampleNumber>23456789</exampleNumber>
13208       </fixedLine>
13209       <mobile>
13210         <!-- Adding 86 and 87 from numbers found online, along with 88 (the 88 numbers seem to be
13211              one digit longer as well.) Adding 97 followed by 7 digits as such numbers have been
13212              found online. Adding 14 as Mobitel have informed us they are using this prefix. Adding
13213              60[1-9] based on information received from Beeline, and 857 and 61 from Cellcard.
13214              Allowing 9-digit 12, 31, and 76 numbers based on information from Cambodia Yellow
13215              Pages. -->
13216         <nationalNumberPattern>
13217           (?:
13218             (?:
13219               1\d|
13220               6[016-9]|
13221               7[07-9]|
13222             )[1-9]|
13223             (?:
13224               12|
13225               31|
13226               76
13227             )[1-9]\d|
13228             8(?:
13229               0[89]|
13230               [134679]\d|
13231               5[2-9]|
13232               8\d{2}
13233             )|
13234             9(?:
13235               [0-589][1-9]|
13236               [67][1-9]\d?
13237             )
13238           )\d{5}
13239         </nationalNumberPattern>
13240         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
13241         <exampleNumber>91234567</exampleNumber>
13242       </mobile>
13243       <tollFree>
13244         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
13245         <nationalNumberPattern>
13246           1800(?:
13247             1\d|
13248             2[019]
13249           )\d{4}
13250         </nationalNumberPattern>
13251         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13252         <exampleNumber>1800123456</exampleNumber>
13253       </tollFree>
13254       <premiumRate>
13255         <nationalNumberPattern>
13256           1900(?:
13257             1\d|
13258             2[09]
13259           )\d{4}
13260         </nationalNumberPattern>
13261         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13262         <exampleNumber>1900123456</exampleNumber>
13263       </premiumRate>
13264       <emergency>
13265         <!-- http://www.phnompenh.gov.kh/phnom-penh-city-emergency-numbers-24-hrs-169.html -->
13266         <nationalNumberPattern>
13267           11[789]|
13268           666
13269         </nationalNumberPattern>
13270         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13271         <exampleNumber>117</exampleNumber>
13272       </emergency>
13273     </territory>
13274
13275     <!-- Kiribati -->
13276     <!-- http://www.itu.int/oth/T0202000071/en -->
13277     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
13278          leading 0 - the main ITU document says this is not the case and no numbers online have been
13279          found formatted this way, but Kiribati's own document lists it as a national dialling
13280          prefix. -->
13281     <territory id="KI" countryCode="686" internationalPrefix="00"
13282                nationalPrefixForParsing="0">
13283       <!-- Numbers should be formatted as a block." -->
13284       <generalDesc>
13285         <nationalNumberPattern>[2-689]\d{4}</nationalNumberPattern>
13286         <possibleNumberPattern>\d{5}</possibleNumberPattern>
13287       </generalDesc>
13288       <fixedLine>
13289         <nationalNumberPattern>
13290           (?:
13291             [234]\d|
13292             50|
13293             8[1-5]
13294           )\d{3}
13295         </nationalNumberPattern>
13296         <exampleNumber>31234</exampleNumber>
13297       </fixedLine>
13298       <mobile>
13299         <!-- Exclude 99[2349] from mobile since these are emergency numbers. -->
13300         <nationalNumberPattern>
13301           6\d{4}|
13302           9(?:
13303             [0-8]\d|
13304             9[015-8]
13305           )\d{2}
13306         </nationalNumberPattern>
13307         <exampleNumber>61234</exampleNumber>
13308       </mobile>
13309       <emergency>
13310         <!-- www.tskl.net.ki/directory.pdf -->
13311         <nationalNumberPattern>99[2349]</nationalNumberPattern>
13312         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13313         <exampleNumber>999</exampleNumber>
13314       </emergency>
13315     </territory>
13316
13317     <!-- Comoros -->
13318     <!-- http://www.itu.int/oth/T020200002D/en -->
13319     <territory id="KM" countryCode="269" internationalPrefix="00">
13320       <availableFormats>
13321         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
13322           <format>$1 $2 $3</format>
13323         </numberFormat>
13324       </availableFormats>
13325       <generalDesc>
13326         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
13327         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13328       </generalDesc>
13329       <fixedLine>
13330         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
13331              http://www.comorestelecom.km/presentationcdma.php -->
13332         <nationalNumberPattern>
13333           7(?:
13334             6[0-37-9]|
13335             7[0-57-9]
13336           )\d{4}
13337         </nationalNumberPattern>
13338         <exampleNumber>7712345</exampleNumber>
13339       </fixedLine>
13340       <mobile>
13341         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
13342         <exampleNumber>3212345</exampleNumber>
13343       </mobile>
13344       <premiumRate>
13345         <!-- These are referred to as value-added services in the plan and no further information
13346              can be found. -->
13347         <nationalNumberPattern>
13348           (?:
13349             39[01]|
13350             9[01]0
13351           )\d{4}
13352         </nationalNumberPattern>
13353         <exampleNumber>9001234</exampleNumber>
13354       </premiumRate>
13355       <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1091.html -->
13356       <emergency>
13357         <nationalNumberPattern>1[78]</nationalNumberPattern>
13358         <possibleNumberPattern>\d{2}</possibleNumberPattern>
13359         <exampleNumber>17</exampleNumber>
13360       </emergency>
13361     </territory>
13362
13363     <!-- Saint Kitts and Nevis -->
13364     <!-- http://www.itu.int/oth/T02020000B0/en -->
13365     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
13366                internationalPrefix="011">
13367       <generalDesc>
13368         <!-- NANPA country - uses US formatting rules -->
13369         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
13370         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13371       </generalDesc>
13372       <fixedLine>
13373         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
13374              of it can be found. -->
13375         <nationalNumberPattern>
13376           869(?:
13377             2(?:
13378               29|
13379               36
13380             )|
13381             302|
13382             4(?:
13383               6[5-9]|
13384               70
13385             )
13386           )\d{4}
13387         </nationalNumberPattern>
13388         <exampleNumber>8692361234</exampleNumber>
13389       </fixedLine>
13390       <mobile>
13391         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
13392         <nationalNumberPattern>
13393           869(?:
13394             5(?:
13395               5[6-8]|
13396               6[5-7]
13397             )|
13398             66\d|
13399             76[02-6]
13400           )\d{4}
13401         </nationalNumberPattern>
13402         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13403         <exampleNumber>8695561234</exampleNumber>
13404       </mobile>
13405       <tollFree>
13406         <nationalNumberPattern>
13407           8(?:
13408             00|
13409             55|
13410             66|
13411             77|
13412             88
13413           )[2-9]\d{6}
13414         </nationalNumberPattern>
13415         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13416         <exampleNumber>8002123456</exampleNumber>
13417       </tollFree>
13418       <premiumRate>
13419         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
13420         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13421         <exampleNumber>9002123456</exampleNumber>
13422       </premiumRate>
13423       <personalNumber>
13424         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
13425         <nationalNumberPattern>
13426           5(?:
13427             00|
13428             33|
13429             44
13430           )[2-9]\d{6}
13431         </nationalNumberPattern>
13432         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13433         <exampleNumber>5002345678</exampleNumber>
13434       </personalNumber>
13435       <emergency>
13436         <!-- http://www.stkittstourism.kn/explore-st-kitts-facts.php
13437              http://barbados.usembassy.gov/emergency-st_kitts_nevis.html -->
13438         <nationalNumberPattern>
13439           333|
13440           9(?:
13441             11|
13442             99
13443           )
13444         </nationalNumberPattern>
13445         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13446         <exampleNumber>999</exampleNumber>
13447       </emergency>
13448     </territory>
13449
13450     <!--  Korea, Dem. People's Rep. of -->
13451     <!-- http://en.wikipedia.org/wiki/%2B850 -->
13452     <territory id="KP" countryCode="850" internationalPrefix="00|99"
13453                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13454       <availableFormats>
13455         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13456           <leadingDigits>1</leadingDigits>
13457           <format>$1 $2 $3</format>
13458         </numberFormat>
13459         <numberFormat pattern="(\d)(\d{3})(\d{4})">
13460           <leadingDigits>2</leadingDigits>
13461           <format>$1 $2 $3</format>
13462         </numberFormat>
13463         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
13464           <leadingDigits>8</leadingDigits>
13465           <format>$1 $2 $3</format>
13466         </numberFormat>
13467       </availableFormats>
13468       <generalDesc>
13469         <nationalNumberPattern>
13470           1\d{9}|
13471           [28]\d{7}
13472         </nationalNumberPattern>
13473         <possibleNumberPattern>
13474           \d{6,8}|
13475           \d{10}
13476         </possibleNumberPattern>
13477       </generalDesc>
13478       <noInternationalDialling>
13479         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
13480         <nationalNumberPattern>
13481           2(?:
13482             [0-24-9]\d{2}|
13483             3(?:
13484               [0-79]\d|
13485               8[02-9]
13486             )
13487           )\d{4}
13488         </nationalNumberPattern>
13489         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13490         <exampleNumber>23821234</exampleNumber>
13491       </noInternationalDialling>
13492       <fixedLine>
13493         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
13494              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
13495              from overseas. Also, there is conflicting information about the length of fixed-line
13496              numbers, so here we are following Wikipedia. -->
13497         <nationalNumberPattern>
13498           2\d{7}|
13499           85\d{6}
13500         </nationalNumberPattern>
13501         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
13502         <exampleNumber>21234567</exampleNumber>
13503       </fixedLine>
13504       <mobile>
13505         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
13506         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13507         <exampleNumber>1921234567</exampleNumber>
13508       </mobile>
13509       <!-- According to the following webpage, there is no emergency number in
13510            North Korea: http://www.netglobers.com/asia/north-korea-emergency-numbers-in-north-korea.html -->
13511     </territory>
13512
13513     <!-- Korea (Rep. of) -->
13514     <!-- http://www.itu.int/oth/T0202000072/en -->
13515     <!-- http://en.wikipedia.org/wiki/%2B82 -->
13516     <!-- http://www.kcc.go.kr/user.do?mode=view&page=P02030300&dc=K02030300&boardId=1074&boardSeq=2349 -->
13517     <!-- http://www.kcc.go.kr/user.do?mode=view&page=P02030300&dc=K02030300&boardId=1074&boardSeq=2240 -->
13518     <!-- http://www.telecentro.co.kr/sub/index.php?job=detail&ebcf_id=faq&page=1&mid=0503&eb_seq=36 -->
13519     <!-- Exceptions :
13520         internationalPrefix
13521             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
13522         nationalPrefix
13523             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
13524     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
13525                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
13526                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG">
13527       <availableFormats>
13528         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
13529           <leadingDigits>
13530             1(?:
13531               0|
13532               1[19]|
13533               [69]9|
13534               5[458]
13535             )|
13536             [57]0
13537           </leadingDigits>
13538           <leadingDigits>
13539             1(?:
13540               0|
13541               1[19]|
13542               [69]9|
13543               5(?:
13544                 44|
13545                 59|
13546                 8
13547               )
13548             )|
13549             [57]0
13550           </leadingDigits>
13551           <format>$1-$2-$3</format>
13552         </numberFormat>
13553         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
13554           <leadingDigits>
13555             1(?:
13556               [169][2-8]|
13557               [78]|
13558               5[1-4]
13559             )|
13560             [68]0|
13561             [3-6][1-9][1-9]
13562           </leadingDigits>
13563           <leadingDigits>
13564             1(?:
13565               [169][2-8]|
13566               [78]|
13567               5(?:
13568                 [1-3]|
13569                 4[56]
13570               )
13571             )|
13572             [68]0|
13573             [3-6][1-9][1-9]
13574           </leadingDigits>
13575           <format>$1-$2-$3</format>
13576         </numberFormat>
13577         <numberFormat pattern="(\d{3})(\d)(\d{4})">
13578           <leadingDigits>131</leadingDigits>
13579           <leadingDigits>1312</leadingDigits>
13580           <format>$1-$2-$3</format>
13581         </numberFormat>
13582         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
13583           <leadingDigits>131</leadingDigits>
13584           <leadingDigits>131[13-9]</leadingDigits>
13585           <format>$1-$2-$3</format>
13586         </numberFormat>
13587         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13588           <leadingDigits>13[2-9]</leadingDigits>
13589           <format>$1-$2-$3</format>
13590         </numberFormat>
13591         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
13592              limit of what digits may follow the 030, but we ignore that here. These numbers are
13593              actually not supported for validation purposes by the library at the moment as no
13594              online examples can be found, but we leave theme here so formatting continues to work
13595              if they are entered. -->
13596         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
13597           <leadingDigits>30</leadingDigits>
13598           <format>$1-$2-$3-$4</format>
13599         </numberFormat>
13600         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
13601           <leadingDigits>2[1-9]</leadingDigits>
13602           <format>$1-$2-$3</format>
13603         </numberFormat>
13604         <numberFormat pattern="(\d)(\d{3,4})">
13605           <leadingDigits>21[0-46-9]</leadingDigits>
13606           <format>$1-$2</format>
13607         </numberFormat>
13608         <numberFormat pattern="(\d{2})(\d{3,4})">
13609           <leadingDigits>[3-6][1-9]1</leadingDigits>
13610           <leadingDigits>
13611             [3-6][1-9]1(?:
13612               [0-46-9]
13613             )
13614           </leadingDigits>
13615           <format>$1-$2</format>
13616         </numberFormat>
13617         <!-- Company numbers. -->
13618         <numberFormat pattern="(\d{4})(\d{4})"
13619           nationalPrefixFormattingRule="$FG">
13620           <leadingDigits>
13621             1(?:
13622               5[46-9]|
13623               6[04678]
13624             )
13625           </leadingDigits>
13626           <leadingDigits>
13627             1(?:
13628               5(?:
13629                 44|
13630                 66|
13631                 77|
13632                 88|
13633                 99
13634               )|
13635               6(?:
13636                 00|
13637                 44|
13638                 6[16]|
13639                 70|
13640                 88
13641               )
13642             )
13643           </leadingDigits>
13644           <format>$1-$2</format>
13645         </numberFormat>
13646       </availableFormats>
13647       <generalDesc>
13648         <nationalNumberPattern>
13649           [1-7]\d{3,9}|
13650           8\d{8}
13651         </nationalNumberPattern>
13652         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13653       </generalDesc>
13654       <fixedLine>
13655         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
13656              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
13657              starting with 1 based on evidence of real numbers found online. -->
13658         <nationalNumberPattern>
13659           (?:
13660             2|
13661             3[1-3]|
13662             [46][1-4]|
13663             5[1-5]
13664           )(?:
13665             1\d{2,3}|
13666             [1-9]\d{6,7}
13667           )
13668         </nationalNumberPattern>
13669         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13670         <exampleNumber>22123456</exampleNumber>
13671       </fixedLine>
13672       <mobile>
13673         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
13674         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13675         <exampleNumber>1023456789</exampleNumber>
13676       </mobile>
13677       <pager>
13678         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
13679         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13680         <exampleNumber>1523456789</exampleNumber>
13681       </pager>
13682       <tollFree>
13683         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
13684         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13685         <exampleNumber>801234567</exampleNumber>
13686       </tollFree>
13687       <!-- The information below is provided by a Korean person. -->
13688       <premiumRate>
13689         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
13690         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13691         <exampleNumber>602345678</exampleNumber>
13692       </premiumRate>
13693       <personalNumber>
13694         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
13695         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13696         <exampleNumber>5012345678</exampleNumber>
13697       </personalNumber>
13698       <voip>
13699         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
13700         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13701         <exampleNumber>7012345678</exampleNumber>
13702       </voip>
13703       <uan>
13704         <nationalNumberPattern>
13705           1(?:
13706             5(?:
13707               44|
13708               66|
13709               77|
13710               88|
13711               99
13712             )|
13713             6(?:
13714               00|
13715               44|
13716               6[16]|
13717               70|
13718               88
13719             )
13720           )\d{4}
13721         </nationalNumberPattern>
13722         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13723         <exampleNumber>15441234</exampleNumber>
13724       </uan>
13725       <emergency>
13726         <nationalNumberPattern>11[29]</nationalNumberPattern>
13727         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13728         <exampleNumber>112</exampleNumber>
13729       </emergency>
13730     </territory>
13731
13732     <!-- Kuwait -->
13733     <!-- http://www.itu.int/oth/T0202000073/en -->
13734     <territory id="KW" countryCode="965" internationalPrefix="00">
13735       <availableFormats>
13736         <!-- Format is from ITU. -->
13737         <numberFormat pattern="(\d{4})(\d{3,4})">
13738           <leadingDigits>[1269]</leadingDigits>
13739           <format>$1 $2</format>
13740         </numberFormat>
13741         <numberFormat pattern="(5[015]\d)(\d{5})">
13742           <leadingDigits>5</leadingDigits>
13743           <format>$1 $2</format>
13744         </numberFormat>
13745       </availableFormats>
13746       <generalDesc>
13747         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
13748         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13749       </generalDesc>
13750       <fixedLine>
13751         <nationalNumberPattern>
13752           (?:
13753             18\d|
13754             2(?:
13755               [23]\d{2}|
13756               4(?:
13757                 [1-35-9]\d|
13758                 44
13759               )|
13760               5(?:
13761                 0[034]|
13762                 [2-46]\d|
13763                 5[1-3]|
13764                 7[1-7]
13765               )
13766             )
13767           )\d{4}
13768         </nationalNumberPattern>
13769         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13770         <exampleNumber>22345678</exampleNumber>
13771       </fixedLine>
13772       <mobile>
13773         <!-- The mention of the mobile range 6933 0000 - 6969 9999 seems to be
13774              a mistake in the ITU plan, and should be 6933 0000 - 6933 9999. -->
13775         <nationalNumberPattern>
13776           (?:
13777             5(?:
13778               1[0-35]|
13779               [05]\d
13780             )|
13781             6(?:
13782               0[034679]|
13783               5[015-9]|
13784               6\d|
13785               7[067]|
13786               9[0369]
13787             )|
13788             9(?:
13789               0[09]|
13790               4[049]|
13791               6[069]|
13792               [79]\d|
13793               88
13794             )
13795           )\d{5}
13796         </nationalNumberPattern>
13797         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13798         <exampleNumber>50012345</exampleNumber>
13799       </mobile>
13800       <!-- No tollFree or premiumRate information can be found. -->
13801       <emergency>
13802         <nationalNumberPattern>112</nationalNumberPattern>
13803         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13804         <exampleNumber>112</exampleNumber>
13805       </emergency>
13806     </territory>
13807
13808     <!-- Cayman Islands -->
13809     <!-- http://www.itu.int/oth/T0202000027/en -->
13810     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
13811                internationalPrefix="011">
13812       <generalDesc>
13813         <!-- NANPA country - uses US formatting rules -->
13814         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
13815         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13816       </generalDesc>
13817       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
13818            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
13819       <fixedLine>
13820         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
13821              as per numbers found online and their website www.logic.ky. -->
13822         <nationalNumberPattern>
13823           345(?:
13824             2(?:
13825               22|
13826               44
13827             )|
13828             444|
13829             6(?:
13830               23|
13831               38|
13832               40
13833             )|
13834             7(?:
13835               4[35-79]|
13836               6[6-9]|
13837               77
13838             )|
13839             8(?:
13840               00|
13841               1[45]|
13842               25|
13843               [48]8
13844             )|
13845             9(?:
13846               14|
13847               4[035-9]
13848             )
13849           )\d{4}
13850         </nationalNumberPattern>
13851         <exampleNumber>3452221234</exampleNumber>
13852       </fixedLine>
13853       <mobile>
13854         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
13855              Most central office codes that were surrendered have not been included, with the
13856              exception of 546 where numbers have been found. -->
13857         <nationalNumberPattern>
13858           345(?:
13859             32[1-9]|
13860             5(?:
13861               1[67]|
13862               2[5-7]|
13863               4[6-8]|
13864               76
13865             )|
13866             9(?:
13867               1[67]|
13868               2[3-9]|
13869               3[689]
13870             )
13871           )\d{4}
13872         </nationalNumberPattern>
13873         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13874         <exampleNumber>3453231234</exampleNumber>
13875       </mobile>
13876       <pager>
13877         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
13878         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13879         <exampleNumber>3458491234</exampleNumber>
13880       </pager>
13881       <tollFree>
13882         <nationalNumberPattern>
13883           8(?:
13884             00|
13885             55|
13886             66|
13887             77|
13888             88
13889           )[2-9]\d{6}
13890         </nationalNumberPattern>
13891         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13892         <exampleNumber>8002345678</exampleNumber>
13893       </tollFree>
13894       <premiumRate>
13895         <nationalNumberPattern>
13896           900[2-9]\d{6}|
13897           345976\d{4}
13898         </nationalNumberPattern>
13899         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13900         <exampleNumber>9002345678</exampleNumber>
13901       </premiumRate>
13902       <personalNumber>
13903         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
13904         <nationalNumberPattern>
13905           5(?:
13906             00|
13907             33|
13908             44
13909           )[2-9]\d{6}
13910         </nationalNumberPattern>
13911         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13912         <exampleNumber>5002345678</exampleNumber>
13913       </personalNumber>
13914       <emergency>
13915         <nationalNumberPattern>911</nationalNumberPattern>
13916         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13917         <exampleNumber>911</exampleNumber>
13918       </emergency>
13919     </territory>
13920
13921     <!-- Kazakhstan -->
13922     <!-- http://www.itu.int/oth/T020200006F/en -->
13923     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
13924                internationalPrefix="810" nationalPrefix="8">
13925        <!-- Formatting rules obtained from Russia. -->
13926       <generalDesc>
13927         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
13928              determining the country is faster. -->
13929         <nationalNumberPattern>
13930           (?:
13931             33\d|
13932             7\d{2}|
13933             80[09]
13934           )\d{7}
13935         </nationalNumberPattern>
13936         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13937       </generalDesc>
13938       <noInternationalDialling>
13939         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
13940         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13941         <exampleNumber>7511234567</exampleNumber>
13942       </noInternationalDialling>
13943       <fixedLine>
13944         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
13945              22), which is within Kazakhstan but in fact rented and administered by Russia at the
13946              moment. -->
13947         <nationalNumberPattern>
13948           33622\d{5}|
13949           7(?:
13950             1(?:
13951               0(?:
13952                 [23]\d|
13953                 4[023]|
13954                 59|
13955                 63
13956               )|
13957               1(?:
13958                 [23]\d|
13959                 4[0-79]|
13960                 59
13961               )|
13962               2(?:
13963                 [23]\d|
13964                 59
13965               )|
13966               3(?:
13967                 2\d|
13968                 3[1-79]|
13969                 4[0-35-9]|
13970                 59
13971               )|
13972               4(?:
13973                 2\d|
13974                 3[013-79]|
13975                 4[0-8]|
13976                 5[1-79]
13977               )|
13978               5(?:
13979                 2\d|
13980                 3[1-8]|
13981                 4[1-7]|
13982                 59
13983               )|
13984               6(?:
13985                 [234]\d|
13986                 5[19]|
13987                 61
13988               )|
13989               72\d|
13990               8(?:
13991                 [27]\d|
13992                 3[1-46-9]|
13993                 4[0-5]
13994               )
13995             )|
13996             2(?:
13997               1(?:
13998                 [23]\d|
13999                 4[46-9]|
14000                 5[3469]
14001               )|
14002               2(?:
14003                 2\d|
14004                 3[0679]|
14005                 46|
14006                 5[12679]
14007               )|
14008               3(?:
14009                 [234]\d|
14010                 5[139]
14011               )|
14012               4(?:
14013                 2\d|
14014                 3[1235-9]|
14015                 59
14016               )|
14017               5(?:
14018                 [23]\d|
14019                 4[01246-8]|
14020                 59|
14021                 61
14022               )|
14023               6(?:
14024                 2\d|
14025                 3[1-9]|
14026                 4[0-4]|
14027                 59
14028               )|
14029               7(?:
14030                 [237]\d|
14031                 40|
14032                 5[279]
14033               )|
14034               8(?:
14035                 [23]\d|
14036                 4[0-3]|
14037                 59
14038               )|
14039               9(?:
14040                 2\d|
14041                 3[124578]|
14042                 59
14043               )
14044             )
14045           )\d{5}
14046         </nationalNumberPattern>
14047         <exampleNumber>7123456789</exampleNumber>
14048       </fixedLine>
14049       <mobile>
14050         <!-- Added 776, apparently assigned to Beeline, and 747 for Tele2. -->
14051         <nationalNumberPattern>
14052           7(?:
14053             0[01257]|
14054             47|
14055             6[02-4]|
14056             7[15-8]|
14057             85
14058           )\d{7}
14059         </nationalNumberPattern>
14060         <exampleNumber>7710009998</exampleNumber>
14061       </mobile>
14062       <tollFree>
14063         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
14064         <exampleNumber>8001234567</exampleNumber>
14065       </tollFree>
14066       <premiumRate>
14067         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
14068         <exampleNumber>8091234567</exampleNumber>
14069       </premiumRate>
14070       <voip>
14071         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
14072         <exampleNumber>7511234567</exampleNumber>
14073       </voip>
14074       <emergency>
14075         <nationalNumberPattern>
14076           1(?:
14077             0[123]|
14078             12
14079           )
14080         </nationalNumberPattern>
14081         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14082         <exampleNumber>112</exampleNumber>
14083       </emergency>
14084     </territory>
14085
14086     <!-- Lao People's Dem. Rep. -->
14087     <!-- http://www.itu.int/oth/T0202000075/en (Seems incomplete) -->
14088     <!-- http://en.wikipedia.org/wiki/+856 -->
14089     <territory id="LA" countryCode="856" internationalPrefix="00"
14090                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14091       <availableFormats>
14092         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
14093           <leadingDigits>20</leadingDigits>
14094           <format>$1 $2 $3 $4</format>
14095         </numberFormat>
14096         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
14097           <leadingDigits>
14098             2[13]|
14099             [3-8]
14100           </leadingDigits>
14101           <format>$1 $2 $3</format>
14102         </numberFormat>
14103       </availableFormats>
14104       <generalDesc>
14105         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
14106         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
14107       </generalDesc>
14108       <fixedLine>
14109         <nationalNumberPattern>
14110           (?:
14111             2[13]|
14112             [35-7][14]|
14113             41|
14114             8[1468]
14115           )\d{6}
14116         </nationalNumberPattern>
14117         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
14118         <exampleNumber>21212862</exampleNumber>
14119       </fixedLine>
14120       <mobile>
14121         <!-- Adding 202[89], 205[89], 207[68] and 209[57] from numbers found online. -->
14122         <nationalNumberPattern>
14123           20(?:
14124             2[2389]|
14125             5[4-689]|
14126             7[6-8]|
14127             9[57-9]
14128           )\d{6}
14129         </nationalNumberPattern>
14130         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14131         <exampleNumber>2023123456</exampleNumber>
14132       </mobile>
14133       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
14134       <emergency>
14135         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_946.html -->
14136         <nationalNumberPattern>19[015]</nationalNumberPattern>
14137         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14138         <exampleNumber>190</exampleNumber>
14139       </emergency>
14140     </territory>
14141
14142     <!-- Lebanon -->
14143     <!-- http://www.itu.int/oth/T0202000077/en -->
14144     <!-- http://en.wikipedia.org/wiki/%2B961 -->
14145     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
14146       <availableFormats>
14147         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
14148           <leadingDigits>
14149             [13-6]|
14150             7(?:
14151               [2-579]|
14152               62|
14153               8[0-7]
14154             )|
14155             [89][2-9]
14156             </leadingDigits>
14157           <format>$1 $2 $3</format>
14158         </numberFormat>
14159         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
14160           <leadingDigits>
14161             [89][01]|
14162             7(?:
14163               [01]|
14164               6[013-9]|
14165               8[89]|
14166               91
14167             )
14168           </leadingDigits>
14169           <format>$1 $2 $3</format>
14170         </numberFormat>
14171       </availableFormats>
14172       <generalDesc>
14173         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
14174         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14175       </generalDesc>
14176       <fixedLine>
14177         <nationalNumberPattern>
14178           (?:
14179             [14-6]\d{2}|
14180             7(?:
14181               [2-579]\d|
14182               62|
14183               8[0-7]
14184             )|
14185             [89][2-9]\d
14186           )\d{4}
14187         </nationalNumberPattern>
14188         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14189         <exampleNumber>1123456</exampleNumber>
14190       </fixedLine>
14191       <mobile>
14192         <!-- We only validate the first three digits here, since the ranges are growing rapidly. -->
14193         <nationalNumberPattern>
14194           (?:
14195             3\d|
14196             7(?:
14197               [01]\d|
14198               6[013-9]|
14199               8[89]|
14200               91
14201             )
14202           )\d{5}
14203         </nationalNumberPattern>
14204         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14205         <exampleNumber>71123456</exampleNumber>
14206       </mobile>
14207       <premiumRate>
14208         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
14209         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14210         <exampleNumber>90123456</exampleNumber>
14211       </premiumRate>
14212       <sharedCost>
14213         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
14214         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14215         <exampleNumber>80123456</exampleNumber>
14216       </sharedCost>
14217       <emergency>
14218         <nationalNumberPattern>
14219           1(?:
14220             12|
14221             40|
14222             75
14223           )|
14224           999
14225         </nationalNumberPattern>
14226         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14227         <exampleNumber>112</exampleNumber>
14228       </emergency>
14229     </territory>
14230
14231     <!-- Saint Lucia -->
14232     <!-- http://www.itu.int/oth/T02020000B1/en -->
14233     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
14234                internationalPrefix="011">
14235       <generalDesc>
14236         <!-- NANPA country - uses US formatting rules -->
14237         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
14238         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
14239       </generalDesc>
14240       <fixedLine>
14241         <!-- Adding 430 and 572 since numbers have been found with these prefixes online. -->
14242         <nationalNumberPattern>
14243           758(?:
14244             234|
14245             4(?:
14246               30|
14247               5[0-9]|
14248               6[2-9]|
14249               8[0-2]
14250             )|
14251             572|
14252             638|
14253             758
14254           )\d{4}
14255         </nationalNumberPattern>
14256         <exampleNumber>7582345678</exampleNumber>
14257       </fixedLine>
14258       <mobile>
14259         <!-- Adding 72[1256] as these prefixes are found widely on the internet and SMS messages
14260              have been successfully delivered to these numbers. -->
14261         <nationalNumberPattern>
14262           758(?:
14263             28[4-7]|
14264             384|
14265             4(?:
14266               6[01]|
14267               8[4-9]
14268             )|
14269             5(?:
14270               1[89]|
14271               20|
14272               84
14273             )|
14274             7(?:
14275               1[2-9]|
14276               2[0-6]
14277             )
14278           )\d{4}
14279         </nationalNumberPattern>
14280         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14281         <exampleNumber>7582845678</exampleNumber>
14282       </mobile>
14283       <tollFree>
14284         <nationalNumberPattern>
14285           8(?:
14286             00|
14287             55|
14288             66|
14289             77|
14290             88
14291           )[2-9]\d{6}
14292         </nationalNumberPattern>
14293         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14294         <exampleNumber>8002123456</exampleNumber>
14295       </tollFree>
14296       <premiumRate>
14297         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
14298         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14299         <exampleNumber>9002123456</exampleNumber>
14300       </premiumRate>
14301       <personalNumber>
14302         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
14303         <nationalNumberPattern>
14304           5(?:
14305             00|
14306             33|
14307             44
14308           )[2-9]\d{6}
14309         </nationalNumberPattern>
14310         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14311         <exampleNumber>5002345678</exampleNumber>
14312       </personalNumber>
14313       <emergency>
14314         <!-- http://barbados.usembassy.gov/emergency-st_lucia.html
14315              http://www.stlucia.org/planner/travel.asp
14316              Note the second source only mentions 911, so we are not sure if 999 is indeed an
14317              emergency number here. -->
14318         <nationalNumberPattern>
14319           9(?:
14320             11|
14321             99
14322           )
14323         </nationalNumberPattern>
14324         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14325         <exampleNumber>911</exampleNumber>
14326       </emergency>
14327     </territory>
14328
14329     <!-- Liechtenstein -->
14330     <!-- http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm -->
14331     <!-- http://www.telecom.li has some different patterns for tollfree and shared cost numbers -
14332          look at "Mehrwertnummer". -->
14333     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
14334     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
14335       <availableFormats>
14336         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
14337           <leadingDigits>
14338             [23]|
14339             7[3-57-9]|
14340             87
14341           </leadingDigits>
14342           <format>$1 $2 $3</format>
14343         </numberFormat>
14344         <numberFormat pattern="(6\d)(\d{3})(\d{3})">
14345           <leadingDigits>6</leadingDigits>
14346           <format>$1 $2 $3</format>
14347         </numberFormat>
14348         <numberFormat pattern="(6[567]\d)(\d{3})(\d{3})">
14349           <leadingDigits>6[567]</leadingDigits>
14350           <format>$1 $2 $3</format>
14351         </numberFormat>
14352         <numberFormat pattern="(69)(7\d{2})(\d{4})">
14353           <leadingDigits>697</leadingDigits>
14354           <format>$1 $2 $3</format>
14355         </numberFormat>
14356         <numberFormat pattern="([7-9]0\d)(\d{2})(\d{2})">
14357           <leadingDigits>[7-9]0</leadingDigits>
14358           <format>$1 $2 $3</format>
14359         </numberFormat>
14360         <!-- Numbers of the form [89]00\d{6} are Swiss numbers callable from Liechtenstein. -->
14361         <numberFormat pattern="([89]0\d)(\d{2})(\d{2})(\d{2})"
14362           nationalPrefixFormattingRule="$NP$FG">
14363           <leadingDigits>[89]0</leadingDigits>
14364           <format>$1 $2 $3 $4</format>
14365         </numberFormat>
14366       </availableFormats>
14367       <generalDesc>
14368         <nationalNumberPattern>
14369           6\d{8}|
14370           [23789]\d{6}
14371         </nationalNumberPattern>
14372         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14373       </generalDesc>
14374       <fixedLine>
14375         <nationalNumberPattern>
14376           (?:
14377             2(?:
14378               01|
14379               1[27]|
14380               3\d|
14381               6[02-578]|
14382               96
14383             )|
14384             3(?:
14385               7[0135-7]|
14386               8[048]|
14387               9[0269]
14388             )
14389           )\d{4}
14390         </nationalNumberPattern>
14391         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14392         <exampleNumber>2345678</exampleNumber>
14393       </fixedLine>
14394       <mobile>
14395         <nationalNumberPattern>
14396           6(?:
14397             51[01]|
14398             6(?:
14399               [01][0-4]|
14400               2[016-9]|
14401               88
14402             )|
14403             710
14404           )\d{5}|
14405           7(?:
14406             36|
14407             4[25]|
14408             56|
14409             [7-9]\d
14410           )\d{4}
14411         </nationalNumberPattern>
14412         <exampleNumber>661234567</exampleNumber>
14413       </mobile>
14414       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
14415            even though it doesn't appear in the plan. -->
14416       <tollFree>
14417         <nationalNumberPattern>
14418           80(?:
14419             0(?:
14420               2[238]|
14421               79
14422             )|
14423             9\d{2}
14424           )\d{2}
14425         </nationalNumberPattern>
14426         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14427         <exampleNumber>8002222</exampleNumber>
14428       </tollFree>
14429       <premiumRate>
14430         <nationalNumberPattern>
14431           90(?:
14432             0(?:
14433               2[278]|
14434               79
14435             )|
14436             1(?:
14437               23|
14438               3[012]
14439             )|
14440             6(?:
14441               4\d|
14442               6[0126]
14443             )
14444           )\d{2}
14445         </nationalNumberPattern>
14446         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14447         <exampleNumber>9002222</exampleNumber>
14448       </premiumRate>
14449       <uan>
14450         <nationalNumberPattern>
14451           87(?:
14452             0[128]|
14453             7[0-4]
14454           )\d{3}
14455         </nationalNumberPattern>
14456         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14457         <exampleNumber>8770123</exampleNumber>
14458       </uan>
14459       <voicemail>
14460         <nationalNumberPattern>
14461           697(?:
14462             [35]6|
14463             4[25]|
14464             [7-9]\d
14465           )\d{4}
14466         </nationalNumberPattern>
14467         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14468         <exampleNumber>697361234</exampleNumber>
14469       </voicemail>
14470       <personalNumber>
14471         <nationalNumberPattern>701\d{4}</nationalNumberPattern>
14472         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14473         <exampleNumber>7011234</exampleNumber>
14474       </personalNumber>
14475       <!-- Information for short codes and emergency numbers comes from:
14476            http://www.llv.li/pdf-llv-ak-shortnumbers_20110331.pdf -->
14477       <emergency>
14478         <nationalNumberPattern>
14479           1(?:
14480             1[278]|
14481             44
14482           )
14483         </nationalNumberPattern>
14484         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14485         <exampleNumber>112</exampleNumber>
14486       </emergency>
14487     </territory>
14488
14489     <!-- Sri Lanka -->
14490     <!-- http://en.wikipedia.org/wiki/%2B94 -->
14491     <!-- http://www.itu.int/oth/T02020000C3/en -->
14492     <territory id="LK" countryCode="94" internationalPrefix="00"
14493                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14494       <availableFormats>
14495         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
14496           <leadingDigits>[1-689]</leadingDigits>
14497           <format>$1 $2 $3</format>
14498         </numberFormat>
14499         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14500           <leadingDigits>7</leadingDigits>
14501           <format>$1 $2 $3</format>
14502         </numberFormat>
14503       </availableFormats>
14504       <generalDesc>
14505         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
14506         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14507       </generalDesc>
14508       <fixedLine>
14509         <nationalNumberPattern>
14510           (?:
14511             [189]1|
14512             2[13-7]|
14513             3[1-8]|
14514             4[157]|
14515             5[12457]|
14516             6[35-7]
14517           )[2-57]\d{6}
14518         </nationalNumberPattern>
14519         <exampleNumber>112345678</exampleNumber>
14520       </fixedLine>
14521       <mobile>
14522         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
14523         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
14524         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14525         <exampleNumber>712345678</exampleNumber>
14526       </mobile>
14527       <emergency>
14528         <nationalNumberPattern>11[0189]</nationalNumberPattern>
14529         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14530         <exampleNumber>119</exampleNumber>
14531       </emergency>
14532     </territory>
14533
14534     <!-- Liberia -->
14535     <!-- http://www.itu.int/oth/T0202000079/en -->
14536     <territory id="LR" countryCode="231" internationalPrefix="00"
14537                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14538       <availableFormats>
14539         <!-- Formatting from Ministry of Agriculture,
14540         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
14541         <numberFormat pattern="([279]\d)(\d{3})(\d{3})">
14542           <leadingDigits>[279]</leadingDigits>
14543           <format>$1 $2 $3</format>
14544         </numberFormat>
14545         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
14546           <leadingDigits>7</leadingDigits>
14547           <format>$1 $2 $3</format>
14548         </numberFormat>
14549         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
14550           <leadingDigits>[4-6]</leadingDigits>
14551           <format>$1 $2 $3</format>
14552         </numberFormat>
14553         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14554           <leadingDigits>[38]</leadingDigits>
14555           <format>$1 $2 $3</format>
14556         </numberFormat>
14557       </availableFormats>
14558       <generalDesc>
14559         <nationalNumberPattern>
14560           (?:
14561             [29]\d|
14562             [4-6]|
14563             7\d{1,2}|
14564             [38]\d{2}
14565           )\d{6}
14566         </nationalNumberPattern>
14567         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14568       </generalDesc>
14569       <fixedLine>
14570         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14571         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14572         <exampleNumber>21234567</exampleNumber>
14573       </fixedLine>
14574       <mobile>
14575         <!-- According to information from Lonestar Communications Corporation, the prefix 6 is
14576              being removed, but as of June 2012 is in parallel running with their new prefix 88.
14577              According to Cellcom Liberia, they have issued 9 digit numbers starting with 77. -->
14578         <nationalNumberPattern>
14579           (?:
14580             4[67]|
14581             5\d|
14582             6[4-8]|
14583             77?\d{2}|
14584             88\d{2}
14585           )\d{5}
14586         </nationalNumberPattern>
14587         <exampleNumber>4612345</exampleNumber>
14588       </mobile>
14589       <premiumRate>
14590         <!-- Telemedia service is listed under premium rate. -->
14591         <!-- Note that as of March 2013, the ITU document talks about the withdrawal of the range
14592              (90) 0 XXX XXX. This is a 9 digit range and one we have never supported, but this could
14593              be a mistake in the ITU document and refer to (90) 0XX XXX. However as this is unclear
14594              at the moment, we decided to leave the (90) range unchanged for now. -->
14595         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14596         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14597         <exampleNumber>90123456</exampleNumber>
14598       </premiumRate>
14599       <voip>
14600         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
14601              say they are involved in the VoIP sector. -->
14602         <nationalNumberPattern>33200\d{4}</nationalNumberPattern>
14603         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14604         <exampleNumber>332001234</exampleNumber>
14605       </voip>
14606       <emergency>
14607         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_950.html -->
14608         <nationalNumberPattern>
14609           355|
14610           911
14611         </nationalNumberPattern>
14612         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14613         <exampleNumber>911</exampleNumber>
14614       </emergency>
14615     </territory>
14616
14617     <!-- Lesotho -->
14618     <!-- http://www.itu.int/oth/T0202000078/en -->
14619     <territory id="LS" countryCode="266" internationalPrefix="00">
14620       <availableFormats>
14621         <!-- Formatting following yellow pages: www.yellowpages.co.ls -->
14622         <numberFormat pattern="(\d{4})(\d{4})">
14623           <format>$1 $2</format>
14624         </numberFormat>
14625       </availableFormats>
14626       <generalDesc>
14627         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
14628         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14629       </generalDesc>
14630       <fixedLine>
14631         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14632         <exampleNumber>22123456</exampleNumber>
14633       </fixedLine>
14634       <mobile>
14635         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
14636         <exampleNumber>50123456</exampleNumber>
14637       </mobile>
14638       <tollFree>
14639         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
14640         <exampleNumber>80021234</exampleNumber>
14641       </tollFree>
14642       <emergency>
14643         <!-- http://www.nul.ls/students/students_Home/emergency_Nos/
14644              http://www.voyage.gc.ca/countries_pays/report_rapport-eng.asp?id=160000 -->
14645         <nationalNumberPattern>11[257]</nationalNumberPattern>
14646         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14647         <exampleNumber>112</exampleNumber>
14648       </emergency>
14649     </territory>
14650
14651     <!-- Lithuania -->
14652     <!-- http://www.itu.int/oth/T020200007C/en -->
14653     <!-- Note that Lithuania is switching to a national prefix of 0. We support
14654          both 0 and 8 when parsing until this switch is complete. -->
14655     <territory id="LT" countryCode="370" internationalPrefix="00"
14656                nationalPrefix="8" nationalPrefixForParsing="[08]"
14657                nationalPrefixFormattingRule="($NP-$FG)">
14658       <!-- National Prefix formatting rule from www.yellowpages.lt -->
14659       <availableFormats>
14660         <!-- Two-digit area codes -->
14661         <numberFormat pattern="([34]\d)(\d{6})">
14662           <leadingDigits>
14663             37|
14664             4(?:
14665               1|
14666               5[45]|
14667               6[2-4]
14668             )
14669           </leadingDigits>
14670           <format>$1 $2</format>
14671         </numberFormat>
14672         <!-- Three-digit area codes -->
14673         <numberFormat pattern="([3-6]\d{2})(\d{5})">
14674           <leadingDigits>
14675             3[148]|
14676             4(?:
14677               [24]|
14678               6[09]
14679             )|
14680             528|
14681             6
14682           </leadingDigits>
14683           <format>$1 $2</format>
14684         </numberFormat>
14685         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
14686           nationalPrefixFormattingRule="$NP $FG">
14687           <leadingDigits>[7-9]</leadingDigits>
14688           <format>$1 $2 $3</format>
14689         </numberFormat>
14690         <numberFormat pattern="(5)(2\d{2})(\d{4})">
14691           <leadingDigits>52[0-79]</leadingDigits>
14692           <format>$1 $2 $3</format>
14693         </numberFormat>
14694       </availableFormats>
14695       <generalDesc>
14696         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
14697         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14698       </generalDesc>
14699       <fixedLine>
14700         <nationalNumberPattern>
14701           (?:
14702             3[1478]|
14703             4[124-6]|
14704             52
14705           )\d{6}
14706         </nationalNumberPattern>
14707         <exampleNumber>31234567</exampleNumber>
14708       </fixedLine>
14709       <mobile>
14710         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
14711         <exampleNumber>61234567</exampleNumber>
14712       </mobile>
14713       <tollFree>
14714         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14715         <exampleNumber>80012345</exampleNumber>
14716       </tollFree>
14717       <premiumRate>
14718         <nationalNumberPattern>
14719           9(?:
14720             0[0239]|
14721             10
14722           )\d{5}
14723         </nationalNumberPattern>
14724         <exampleNumber>90012345</exampleNumber>
14725       </premiumRate>
14726       <personalNumber>
14727         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
14728         <exampleNumber>70012345</exampleNumber>
14729       </personalNumber>
14730       <sharedCost>
14731         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14732         <exampleNumber>80812345</exampleNumber>
14733       </sharedCost>
14734       <uan>
14735         <!-- Including government service numbers here too. -->
14736         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
14737         <exampleNumber>70712345</exampleNumber>
14738       </uan>
14739       <emergency>
14740         <nationalNumberPattern>
14741           0(?:
14742             11?|
14743             22?|
14744             33?
14745           )|
14746           1(?:
14747             0[123]|
14748             12
14749           )
14750         </nationalNumberPattern>
14751         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
14752         <exampleNumber>112</exampleNumber>
14753       </emergency>
14754     </territory>
14755
14756     <!-- Luxembourg -->
14757     <!-- http://www.ilr.public.lu/communications_electroniques/numerotation/index.html
14758          -->
14759     <territory id="LU" countryCode="352" internationalPrefix="00"
14760                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
14761                carrierCodeFormattingRule="$CC $FG">
14762       <availableFormats>
14763         <!-- Patterns overlap because of variable number length. -->
14764         <numberFormat pattern="(\d{2})(\d{3})">
14765           <leadingDigits>
14766             [2-5]|
14767             7[1-9]|
14768             [89](?:
14769               [1-9]|
14770               0[2-9]
14771             )
14772           </leadingDigits>
14773           <format>$1 $2</format>
14774         </numberFormat>
14775         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
14776           <leadingDigits>
14777             [2-5]|
14778             7[1-9]|
14779             [89](?:
14780               [1-9]|
14781               0[2-9]
14782             )
14783           </leadingDigits>
14784           <format>$1 $2 $3</format>
14785         </numberFormat>
14786         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
14787           <leadingDigits>20</leadingDigits>
14788           <format>$1 $2 $3</format>
14789         </numberFormat>
14790         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
14791              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
14792              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
14793              -->
14794         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
14795           <leadingDigits>
14796             2(?:
14797               [0367]|
14798               4[3-8]
14799             )
14800           </leadingDigits>
14801           <format>$1 $2 $3 $4</format>
14802         </numberFormat>
14803         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
14804           <leadingDigits>20</leadingDigits>
14805           <format>$1 $2 $3 $4</format>
14806         </numberFormat>
14807         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
14808           <leadingDigits>
14809             2(?:
14810               [0367]|
14811               4[3-8]
14812             )
14813           </leadingDigits>
14814           <format>$1 $2 $3 $4 $5</format>
14815         </numberFormat>
14816         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
14817           <leadingDigits>
14818             2(?:
14819               [12589]|
14820               4[12]
14821             )|
14822             [3-5]|
14823             7[1-9]|
14824             [89](?:
14825               [1-9]|
14826               0[2-9]
14827             )
14828           </leadingDigits>
14829           <format>$1 $2 $3 $4</format>
14830         </numberFormat>
14831         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
14832           <leadingDigits>
14833             [89]0[01]|
14834             70
14835           </leadingDigits>
14836           <format>$1 $2 $3</format>
14837         </numberFormat>
14838         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14839           <leadingDigits>6</leadingDigits>
14840           <format>$1 $2 $3</format>
14841         </numberFormat>
14842       </availableFormats>
14843       <generalDesc>
14844         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
14845              necessary since the numbers have a variable number length. -->
14846         <nationalNumberPattern>
14847           [24-9]\d{3,10}|
14848           3(?:
14849             [0-46-9]\d{2,9}|
14850             5[013-9]\d{1,8}
14851           )
14852         </nationalNumberPattern>
14853         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
14854       </generalDesc>
14855       <fixedLine>
14856         <!-- Note that numbers starting with 2[367] can be a maximum of 10 digits - all others a
14857              maximum of 11. -->
14858         <nationalNumberPattern>
14859           (?:
14860             2(?:
14861               2\d{1,2}|
14862               3[2-9]|
14863               [67]\d|
14864               4[1-8]\d?|
14865               5[1-5]\d?|
14866               9[0-24-9]\d?
14867             )|
14868             3(?:
14869               [059][05-9]|
14870               [13]\d|
14871               [26][015-9]|
14872               4[0-26-9]|
14873               7[0-389]|
14874               8[08]
14875             )\d?|
14876             4\d{2,3}|
14877             5(?:
14878               [01458]\d|
14879               [27][0-69]|
14880               3[0-3]|
14881               [69][0-7]
14882             )\d?|
14883             7(?:
14884               1[019]|
14885               2[05-9]|
14886               3[05]|
14887               [45][07-9]|
14888               [679][089]|
14889               8[06-9]
14890             )\d?|
14891             8(?:
14892               0[2-9]|
14893               1[0-36-9]|
14894               3[3-9]|
14895               [469]9|
14896               [58][7-9]|
14897               7[89]
14898             )\d?|
14899             9(?:
14900               0[89]|
14901               2[0-49]|
14902               37|
14903               49|
14904               5[0-27-9]|
14905               7[7-9]|
14906               9[0-478]
14907             )\d?
14908           )\d{1,7}
14909         </nationalNumberPattern>
14910         <exampleNumber>27123456</exampleNumber>
14911       </fixedLine>
14912       <mobile>
14913         <nationalNumberPattern>6[269][18]\d{6}</nationalNumberPattern>
14914         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14915         <exampleNumber>628123456</exampleNumber>
14916       </mobile>
14917       <tollFree>
14918         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14919         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14920         <exampleNumber>80012345</exampleNumber>
14921       </tollFree>
14922       <premiumRate>
14923         <nationalNumberPattern>90[01]\d{5}</nationalNumberPattern>
14924         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14925         <exampleNumber>90012345</exampleNumber>
14926       </premiumRate>
14927       <sharedCost>
14928         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
14929         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14930         <exampleNumber>80112345</exampleNumber>
14931       </sharedCost>
14932       <personalNumber>
14933         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
14934         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14935         <exampleNumber>70123456</exampleNumber>
14936       </personalNumber>
14937       <voip>
14938         <nationalNumberPattern>20\d{2,8}</nationalNumberPattern>
14939         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
14940         <exampleNumber>2012345</exampleNumber>
14941       </voip>
14942       <emergency>
14943         <nationalNumberPattern>11[23]</nationalNumberPattern>
14944         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14945         <exampleNumber>112</exampleNumber>
14946       </emergency>
14947     </territory>
14948
14949     <!-- Latvia -->
14950     <!-- http://www.itu.int/oth/T0202000076/en -->
14951     <!-- http://en.wikipedia.org/wiki/+371 -->
14952     <territory id="LV" countryCode="371" internationalPrefix="00">
14953       <availableFormats>
14954         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
14955           <format>$1 $2 $3</format>
14956         </numberFormat>
14957       </availableFormats>
14958       <generalDesc>
14959         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
14960         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14961       </generalDesc>
14962       <fixedLine>
14963         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
14964         <exampleNumber>63123456</exampleNumber>
14965       </fixedLine>
14966       <mobile>
14967         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14968         <exampleNumber>21234567</exampleNumber>
14969       </mobile>
14970       <tollFree>
14971         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
14972         <exampleNumber>80123456</exampleNumber>
14973       </tollFree>
14974       <premiumRate>
14975         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14976         <exampleNumber>90123456</exampleNumber>
14977       </premiumRate>
14978       <sharedCost>
14979         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
14980         <exampleNumber>81123456</exampleNumber>
14981       </sharedCost>
14982       <emergency>
14983         <nationalNumberPattern>
14984           0[123]|
14985           112
14986         </nationalNumberPattern>
14987         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
14988         <exampleNumber>112</exampleNumber>
14989       </emergency>
14990     </territory>
14991
14992     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
14993     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
14994          and itu.int. The new area codes are on the Arabic website of the main telecommunication
14995          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
14996          using 096 (they are allowing customers to register numbers currently), so their code has
14997          also been added. -->
14998     <!-- http://hlc.ly/price.php -->
14999     <territory id="LY" countryCode="218" internationalPrefix="00"
15000                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15001       <availableFormats>
15002         <numberFormat pattern="([25679]\d)(\d{7})">
15003           <format>$1-$2</format>
15004         </numberFormat>
15005       </availableFormats>
15006       <generalDesc>
15007         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
15008         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15009       </generalDesc>
15010       <fixedLine>
15011         <nationalNumberPattern>
15012           (?:
15013             2[1345]|
15014             5[1347]|
15015             6[123479]|
15016             71
15017           )\d{7}
15018         </nationalNumberPattern>
15019         <exampleNumber>212345678</exampleNumber>
15020       </fixedLine>
15021       <mobile>
15022         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
15023              where SMS messages have been apparently successfully received. -->
15024         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
15025         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15026         <exampleNumber>912345678</exampleNumber>
15027       </mobile>
15028       <emergency>
15029         <!-- This information may or may not apply to the new government. -->
15030         <!-- Most of the gov.ly domain is down (checked on 2011-11-07). -->
15031         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_951.html -->
15032         <!-- http://www.lookoutlibya.com/Look_Out_Libya_%7C_Health_and_Safety_03.html -->
15033         <nationalNumberPattern>19[013]</nationalNumberPattern>
15034         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15035         <exampleNumber>193</exampleNumber>
15036       </emergency>
15037     </territory>
15038
15039     <!-- Morocco -->
15040     <!-- Shares formatting and some metadata with Western Sahara. -->
15041     <!-- http://www.itu.int/oth/T0202000090/en -->
15042     <!-- http://en.wikipedia.org/wiki/+212 -->
15043     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
15044                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true">
15045       <availableFormats>
15046         <numberFormat pattern="([56]\d{2})(\d{6})">
15047           <leadingDigits>
15048             5(?:
15049               2[015-7]|
15050               3[0-4]
15051             )|
15052             6
15053           </leadingDigits>
15054           <format>$1-$2</format>
15055         </numberFormat>
15056         <numberFormat pattern="([58]\d{3})(\d{5})">
15057           <leadingDigits>
15058             5(?:
15059               2[2-489]|
15060               3[5-9]
15061             )|
15062             892
15063           </leadingDigits>
15064           <leadingDigits>
15065             5(?:
15066               2(?:
15067                 [2-48]|
15068                 90
15069               )|
15070               3(?:
15071                 [5-79]|
15072                 80
15073               )
15074             )|
15075             892
15076           </leadingDigits>
15077           <format>$1-$2</format>
15078         </numberFormat>
15079         <numberFormat pattern="(5\d{4})(\d{4})">
15080           <leadingDigits>
15081             5(?:
15082               29|
15083               38
15084             )
15085           </leadingDigits>
15086           <leadingDigits>
15087             5(?:
15088               29|
15089               38
15090             )[89]
15091           </leadingDigits>
15092           <format>$1-$2</format>
15093         </numberFormat>
15094         <numberFormat pattern="(8[09])(\d{7})">
15095           <leadingDigits>
15096             8(?:
15097               0|
15098               9[013-9]
15099             )
15100           </leadingDigits>
15101           <format>$1-$2</format>
15102         </numberFormat>
15103       </availableFormats>
15104       <generalDesc>
15105         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
15106         <!-- Closed numbering plan. -->
15107         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15108       </generalDesc>
15109       <fixedLine>
15110         <nationalNumberPattern>
15111           5(?:
15112             2(?:
15113               (?:
15114                 [015-7]\d|
15115                 2[2-9]|
15116                 3[2-57]|
15117                 4[2-8]|
15118                 8[235-7]
15119               )\d|
15120               9(?:
15121                 0\d|
15122                 [89]0
15123               )
15124             )|
15125             3(?:
15126               (?:
15127                 [0-4]\d|
15128                 [57][2-9]|
15129                 6[235-8]|
15130                 9[3-9]
15131               )\d|
15132               8(?:
15133                 0\d|
15134                 [89]0
15135               )
15136             )
15137           )\d{4}
15138         </nationalNumberPattern>
15139         <exampleNumber>520123456</exampleNumber>
15140       </fixedLine>
15141       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
15142       <mobile>
15143         <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01] are from numbers found online,
15144              bug-reports, and information provided directly by the carriers. -->
15145         <nationalNumberPattern>
15146           6(?:
15147             0[0-8]|
15148             [124-7]\d|
15149             3[013-8]|
15150             8[01]|
15151             99
15152           )\d{6}
15153         </nationalNumberPattern>
15154         <exampleNumber>650123456</exampleNumber>
15155       </mobile>
15156       <tollFree>
15157         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
15158         <exampleNumber>801234567</exampleNumber>
15159       </tollFree>
15160       <premiumRate>
15161         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
15162         <exampleNumber>891234567</exampleNumber>
15163       </premiumRate>
15164       <emergency>
15165         <nationalNumberPattern>
15166           1(?:
15167             [59]|
15168             77
15169           )
15170         </nationalNumberPattern>
15171         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
15172         <exampleNumber>15</exampleNumber>
15173       </emergency>
15174     </territory>
15175
15176     <!-- Monaco -->
15177     <!-- http://www.itu.int/oth/T020200008D/en -->
15178     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
15179          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
15180          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
15181     <territory id="MC" countryCode="377" internationalPrefix="00"
15182                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15183       <availableFormats>
15184         <!-- Following formatting found online rather than in the ITU document example. -->
15185         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
15186           <leadingDigits>[89]</leadingDigits>
15187           <format>$1 $2 $3 $4</format>
15188         </numberFormat>
15189         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15190           <leadingDigits>4</leadingDigits>
15191           <format>$1 $2 $3</format>
15192         </numberFormat>
15193         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
15194           <leadingDigits>6</leadingDigits>
15195           <format>$1 $2 $3 $4 $5</format>
15196         </numberFormat>
15197       </availableFormats>
15198       <generalDesc>
15199         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
15200         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15201       </generalDesc>
15202       <noInternationalDialling>
15203         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
15204         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15205       </noInternationalDialling>
15206       <fixedLine>
15207         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
15208         <nationalNumberPattern>9[2-47-9]\d{6}</nationalNumberPattern>
15209         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15210         <exampleNumber>99123456</exampleNumber>
15211       </fixedLine>
15212       <mobile>
15213         <!-- 4X mobile numbers are actually used by Kosovo. -->
15214         <nationalNumberPattern>
15215           6\d{8}|
15216           4\d{7}
15217         </nationalNumberPattern>
15218         <exampleNumber>612345678</exampleNumber>
15219       </mobile>
15220       <tollFree>
15221         <nationalNumberPattern>
15222           (?:
15223             8\d|
15224             90
15225           )\d{6}
15226         </nationalNumberPattern>
15227         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15228         <exampleNumber>90123456</exampleNumber>
15229       </tollFree>
15230       <emergency>
15231         <nationalNumberPattern>
15232           1(?:
15233             12|
15234             [578]
15235           )
15236         </nationalNumberPattern>
15237         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
15238         <exampleNumber>112</exampleNumber>
15239       </emergency>
15240     </territory>
15241
15242     <!-- Moldova, Rep. of -->
15243     <!-- http://www.itu.int/oth/T020200008C/en -->
15244     <!-- http://en.anrceti.md -->
15245     <territory id="MD" countryCode="373" internationalPrefix="00"
15246                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG" >
15247       <availableFormats>
15248         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15249           <leadingDigits>
15250             22|
15251             3
15252           </leadingDigits>
15253           <format>$1 $2 $3</format>
15254         </numberFormat>
15255         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
15256           <leadingDigits>
15257             2[13-79]|
15258             [5-7]
15259           </leadingDigits>
15260           <format>$1 $2 $3</format>
15261         </numberFormat>
15262         <numberFormat pattern="([89]\d{2})(\d{5})">
15263           <leadingDigits>[89]</leadingDigits>
15264           <format>$1 $2</format>
15265         </numberFormat>
15266       </availableFormats>
15267       <generalDesc>
15268         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
15269         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15270       </generalDesc>
15271       <fixedLine>
15272         <nationalNumberPattern>
15273           (?:
15274             2(?:
15275               1[0569]|
15276               2\d|
15277               3[015-7]|
15278               4[1-46-9]|
15279               5[0-24689]|
15280               6[2-589]|
15281               7[1-37]|
15282               9[1347-9]
15283             )|
15284             5(?:
15285               33|
15286               5[257]
15287             )
15288           )\d{5}
15289         </nationalNumberPattern>
15290         <exampleNumber>22212345</exampleNumber>
15291       </fixedLine>
15292       <mobile>
15293         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
15294         <nationalNumberPattern>
15295           (?:
15296             562|
15297             6(?:
15298               50|
15299               7[1-6]|
15300               [089]\d
15301             )|
15302             7(?:
15303               67|
15304               7[47-9]|
15305               [89]\d
15306             )
15307           )\d{5}
15308         </nationalNumberPattern>
15309         <exampleNumber>65012345</exampleNumber>
15310       </mobile>
15311       <tollFree>
15312         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15313         <exampleNumber>80012345</exampleNumber>
15314       </tollFree>
15315       <premiumRate>
15316         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
15317         <exampleNumber>90012345</exampleNumber>
15318       </premiumRate>
15319       <!-- Information came from en.anrceti.md/node/81 -->
15320       <sharedCost>
15321         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
15322         <exampleNumber>80812345</exampleNumber>
15323       </sharedCost>
15324       <uan>
15325         <!-- Includes numbers used for access to different transport directory services of general
15326              interest, since these are charged at the same rate as fixed-line numbers. -->
15327         <nationalNumberPattern>
15328           8(?:
15329             03|
15330             14
15331           )\d{5}
15332         </nationalNumberPattern>
15333         <exampleNumber>80312345</exampleNumber>
15334       </uan>
15335       <voip>
15336         <!-- Used for "nomadic numbers". -->
15337         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
15338         <exampleNumber>30123456</exampleNumber>
15339       </voip>
15340       <emergency>
15341         <nationalNumberPattern>
15342           112|
15343           90[123]
15344         </nationalNumberPattern>
15345         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15346         <exampleNumber>112</exampleNumber>
15347       </emergency>
15348     </territory>
15349
15350     <!-- Montenegro -->
15351     <!-- http://www.itu.int/oth/T02020000DA/en -->
15352     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro -->
15353     <!-- http://www.ekip.me/numeracija/dodijeljena.php -->
15354     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
15355                nationalPrefixFormattingRule="$NP$FG">
15356       <availableFormats>
15357          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15358           <leadingDigits>[2-57-9]|6[3789]</leadingDigits>
15359           <leadingDigits>
15360             [2-57-9]|
15361             6(?:
15362               [389]|
15363               7(?:
15364                 [0-8]|
15365                 9[3-9]
15366               )
15367             )
15368           </leadingDigits>
15369           <format>$1 $2 $3</format>
15370         </numberFormat>
15371         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
15372           <leadingDigits>679</leadingDigits>
15373           <leadingDigits>679[0-2]</leadingDigits>
15374           <format>$1 $2 $3 $4</format>
15375         </numberFormat>
15376       </availableFormats>
15377       <generalDesc>
15378         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
15379         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
15380       </generalDesc>
15381       <fixedLine>
15382         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
15383              The valid options for the third digit were from
15384              http://www.ekip.me/numeracija/dodijeljena.php -->
15385         <nationalNumberPattern>
15386           (?:
15387             20[2-8]|
15388             3(?:
15389               0[2-7]|
15390               1[35-7]|
15391               2[3567]|
15392               3[4-7]
15393             )|
15394             4(?:
15395               0[237]|
15396               1[27]
15397             )|
15398             5(?:
15399               0[47]|
15400               1[27]|
15401               2[378]
15402             )
15403           )\d{5}
15404         </nationalNumberPattern>
15405         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15406         <exampleNumber>30234567</exampleNumber>
15407       </fixedLine>
15408       <mobile>
15409         <!-- Mobile numbers start with 632, 67, 68 or 69. -->
15410         <nationalNumberPattern>
15411           6(?:
15412             32\d|
15413             [89]\d{2}|
15414             7(?:
15415               [0-8]\d|
15416               9(?:
15417                 [3-9]|
15418                 [0-2]\d
15419               )
15420             )
15421           )\d{4}
15422         </nationalNumberPattern>
15423         <!-- According to ITU it is possible for the numbers to be between length 4-12
15424              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
15425              digits long, based on the Montenegro document. -->
15426         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15427         <exampleNumber>67622901</exampleNumber>
15428       </mobile>
15429       <tollFree>
15430         <!-- All toll free numbers have prefix 80 followed by 02 or 08. -->
15431         <nationalNumberPattern>800[28]\d{4}</nationalNumberPattern>
15432         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15433         <exampleNumber>80080002</exampleNumber>
15434       </tollFree>
15435       <premiumRate>
15436         <!-- Numbers with prefix 88, 94 or 95 are services with additional charges. -->
15437         <nationalNumberPattern>
15438           (?:
15439             88\d|
15440             9(?:
15441               4[13-8]|
15442               5[16-8]
15443             )
15444           )\d{5}
15445         </nationalNumberPattern>
15446         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15447         <exampleNumber>94515151</exampleNumber>
15448       </premiumRate>
15449       <voip>
15450         <!-- VOIP are prefixed with 78. -->
15451         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
15452         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15453         <exampleNumber>78108780</exampleNumber>
15454       </voip>
15455       <uan>
15456         <!-- Corporate Telephony are prefixed with 77. -->
15457         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
15458         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15459         <exampleNumber>77273012</exampleNumber>
15460       </uan>
15461       <emergency>
15462         <nationalNumberPattern>
15463           1(?:
15464             12|
15465             2[234]
15466           )
15467         </nationalNumberPattern>
15468         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15469         <exampleNumber>112</exampleNumber>
15470       </emergency>
15471     </territory>
15472
15473     <!-- Madagascar -->
15474     <!-- http://www.itu.int/oth/T020200007F/en -->
15475     <territory id="MG" countryCode="261" internationalPrefix="00"
15476                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15477       <availableFormats>
15478         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
15479           <format>$1 $2 $3 $4</format>
15480         </numberFormat>
15481       </availableFormats>
15482       <generalDesc>
15483         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
15484         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15485       </generalDesc>
15486       <fixedLine>
15487         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
15488              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
15489              codes beginning with 4. -->
15490         <nationalNumberPattern>
15491           20(?:
15492             2\d{2}|
15493             4[47]\d|
15494             5[3467]\d|
15495             6[279]\d|
15496             7(?:
15497               2[29]|
15498               [35]\d
15499             )|
15500             8[268]\d|
15501             9[245]\d
15502           )\d{4}
15503         </nationalNumberPattern>
15504         <exampleNumber>202123456</exampleNumber>
15505       </fixedLine>
15506       <mobile>
15507         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
15508              out by reality. -->
15509         <nationalNumberPattern>
15510           3(?:
15511             [02-4]\d|
15512             90
15513           )\d{6}
15514         </nationalNumberPattern>
15515         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15516         <exampleNumber>301234567</exampleNumber>
15517       </mobile>
15518       <!-- Putting VSAT numbers here. -->
15519       <voip>
15520         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
15521         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15522         <exampleNumber>221234567</exampleNumber>
15523       </voip>
15524       <emergency>
15525         <!-- http://www.commerce.gov.mg/index.php/infos-services -->
15526         <nationalNumberPattern>11?[78]</nationalNumberPattern>
15527         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
15528         <exampleNumber>117</exampleNumber>
15529       </emergency>
15530     </territory>
15531
15532     <!-- Saint-Martin, French Antilles -->
15533     <!-- http://www.itu.int/oth/T0202000058/en -->
15534     <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
15535     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
15536       <!-- Formatting rules borrowed from Guadeloupe. -->
15537       <generalDesc>
15538         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15539         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15540       </generalDesc>
15541       <fixedLine>
15542         <nationalNumberPattern>
15543           590(?:
15544             [02][79]|
15545             13|
15546             5[0-268]|
15547             [78]7
15548           )\d{4}
15549         </nationalNumberPattern>
15550         <exampleNumber>590271234</exampleNumber>
15551       </fixedLine>
15552       <mobile>
15553         <!-- Any ranges assigned from
15554              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
15555              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
15556              them. -->
15557         <nationalNumberPattern>
15558           690(?:
15559             0[0-7]|
15560             [1-9]\d
15561           )\d{4}
15562         </nationalNumberPattern>
15563         <exampleNumber>690301234</exampleNumber>
15564       </mobile>
15565       <!-- http://www.leshotelsdesaintmartin.com/fr/saint-martin-antilles/informations-saint-martin/infos-pratiques-sxm.html -->
15566       <emergency>
15567         <nationalNumberPattern>1[578]</nationalNumberPattern>
15568         <possibleNumberPattern>\d{2}</possibleNumberPattern>
15569         <exampleNumber>18</exampleNumber>
15570       </emergency>
15571     </territory>
15572
15573     <!-- Marshall Islands -->
15574     <!-- http://www.itu.int/oth/T0202000085/en -->
15575     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
15576       <availableFormats>
15577         <numberFormat pattern="(\d{3})(\d{4})">
15578           <format>$1-$2</format>
15579         </numberFormat>
15580       </availableFormats>
15581       <generalDesc>
15582         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
15583         <possibleNumberPattern>\d{7}</possibleNumberPattern>
15584       </generalDesc>
15585       <fixedLine>
15586         <nationalNumberPattern>
15587           (?:
15588             247|
15589             528|
15590             625
15591           )\d{4}
15592         </nationalNumberPattern>
15593         <exampleNumber>2471234</exampleNumber>
15594       </fixedLine>
15595       <mobile>
15596         <nationalNumberPattern>
15597           (?:
15598             235|
15599             329|
15600             45[56]|
15601             545
15602           )\d{4}
15603         </nationalNumberPattern>
15604         <exampleNumber>2351234</exampleNumber>
15605       </mobile>
15606       <voip>
15607         <!-- VSAT prefixes are here. -->
15608         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
15609         <exampleNumber>6351234</exampleNumber>
15610       </voip>
15611       <!-- Only fixed-line numbers (625 4111 and 625 8666) can be found instead of short Emergency
15612            numbers. -->
15613     </territory>
15614
15615     <!-- Macedonia, Former Yugoslav Rep. of -->
15616     <!-- http://www.itu.int/oth/T02020000CE/en -->
15617     <territory id="MK" countryCode="389" internationalPrefix="00"
15618                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15619       <availableFormats>
15620         <!-- Formats follow wikipedia. -->
15621         <numberFormat pattern="(2)(\d{3})(\d{4})">
15622           <leadingDigits>2</leadingDigits>
15623           <format>$1 $2 $3</format>
15624         </numberFormat>
15625         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
15626           <leadingDigits>[347]</leadingDigits>
15627           <format>$1 $2 $3</format>
15628         </numberFormat>
15629         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
15630           <leadingDigits>[58]</leadingDigits>
15631           <format>$1 $2 $3 $4</format>
15632         </numberFormat>
15633       </availableFormats>
15634       <generalDesc>
15635         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
15636         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15637       </generalDesc>
15638       <fixedLine>
15639         <nationalNumberPattern>
15640           (?:
15641             2(?:
15642               [23]\d|
15643               5[124578]|
15644               6[01]
15645             )|
15646             3(?:
15647               1[3-6]|
15648               [23][2-6]|
15649               4[2356]
15650             )|
15651             4(?:
15652               [23][2-6]|
15653               4[3-6]|
15654               5[256]|
15655               6[25-8]|
15656               7[24-6]|
15657               8[4-6]
15658             )
15659           )\d{5}
15660         </nationalNumberPattern>
15661         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15662         <exampleNumber>22212345</exampleNumber>
15663       </fixedLine>
15664       <mobile>
15665         <nationalNumberPattern>
15666           7(?:
15667             [0-25-8]\d|
15668             33
15669           )\d{5}</nationalNumberPattern>
15670         <exampleNumber>72345678</exampleNumber>
15671       </mobile>
15672       <tollFree>
15673         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15674         <exampleNumber>80012345</exampleNumber>
15675       </tollFree>
15676       <premiumRate>
15677         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
15678         <exampleNumber>50012345</exampleNumber>
15679       </premiumRate>
15680       <sharedCost>
15681         <nationalNumberPattern>
15682           8(?:
15683             0[1-9]|
15684             [1-9]\d
15685           )\d{5}
15686         </nationalNumberPattern>
15687         <exampleNumber>80123456</exampleNumber>
15688       </sharedCost>
15689       <emergency>
15690         <nationalNumberPattern>
15691           1(?:
15692             12|
15693             9[234]
15694           )
15695         </nationalNumberPattern>
15696         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15697         <exampleNumber>112</exampleNumber>
15698       </emergency>
15699     </territory>
15700
15701     <!-- Mali -->
15702     <!-- http://www.itu.int/oth/T0202000083/en -->
15703     <!-- http://crt-mali.org/pdf/plan_num -->
15704     <territory id="ML" countryCode="223" internationalPrefix="00">
15705       <availableFormats>
15706         <numberFormat pattern="([246-8]\d)(\d{2})(\d{2})(\d{2})">
15707           <format>$1 $2 $3 $4</format>
15708         </numberFormat>
15709       </availableFormats>
15710       <generalDesc>
15711         <nationalNumberPattern>[246-8]\d{7}</nationalNumberPattern>
15712         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15713       </generalDesc>
15714       <fixedLine>
15715         <!-- 21 25 seems a common pattern based on online searches. -->
15716         <nationalNumberPattern>
15717           (?:
15718             2(?:
15719               0(?:
15720                 2[0-589]|
15721                 7[027-9]
15722               )|
15723               1(?:
15724                 2[5-7]|
15725                 [3-689]\d
15726               )
15727             )|
15728             44[239]\d
15729           )\d{4}
15730         </nationalNumberPattern>
15731         <exampleNumber>20212345</exampleNumber>
15732       </fixedLine>
15733       <mobile>
15734         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
15735              document (which is very stale). All mobile numbers starting with 7 are now Orange.
15736              Includes 6x from Malitel IR21. -->
15737         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
15738         <exampleNumber>65012345</exampleNumber>
15739       </mobile>
15740       <tollFree>
15741         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
15742              plan. -->
15743         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15744         <exampleNumber>80012345</exampleNumber>
15745       </tollFree>
15746       <emergency>
15747         <nationalNumberPattern>1[578]</nationalNumberPattern>
15748         <possibleNumberPattern>\d{2}</possibleNumberPattern>
15749         <exampleNumber>17</exampleNumber>
15750       </emergency>
15751    </territory>
15752
15753     <!-- Myanmar -->
15754     <!-- http://www.itu.int/oth/T0202000092/en -->
15755     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
15756                nationalPrefixFormattingRule="$NP$FG">
15757       <availableFormats>
15758         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
15759           <leadingDigits>
15760             1|
15761             2[45]
15762           </leadingDigits>
15763           <format>$1 $2 $3</format>
15764         </numberFormat>
15765         <numberFormat pattern="(2)(\d{4})(\d{4})">
15766           <leadingDigits>251</leadingDigits>
15767           <format>$1 $2 $3</format>
15768         </numberFormat>
15769         <numberFormat pattern="(\d)(\d{2})(\d{3})">
15770           <leadingDigits>
15771             16|
15772             2
15773           </leadingDigits>
15774           <format>$1 $2 $3</format>
15775         </numberFormat>
15776         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
15777           <leadingDigits>
15778             67|
15779             81
15780           </leadingDigits>
15781           <format>$1 $2 $3</format>
15782         </numberFormat>
15783         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
15784           <leadingDigits>[4-8]</leadingDigits>
15785           <format>$1 $2 $3</format>
15786         </numberFormat>
15787         <numberFormat pattern="(9)(\d{3})(\d{4,5})">
15788           <leadingDigits>
15789             9(?:
15790               [235-9]|
15791               4[13789]
15792             )
15793           </leadingDigits>
15794           <format>$1 $2 $3</format>
15795         </numberFormat>
15796         <numberFormat pattern="(9)(4\d{4})(\d{4})">
15797           <leadingDigits>94[0245]</leadingDigits>
15798           <format>$1 $2 $3</format>
15799         </numberFormat>
15800       </availableFormats>
15801       <generalDesc>
15802         <nationalNumberPattern>
15803           [14578]\d{5,7}|
15804           [26]\d{5,8}|
15805           9(?:
15806             [258]|
15807             3\d|
15808             4\d{1,2}|
15809             [679]\d?
15810           )\d{6}
15811         </nationalNumberPattern>
15812         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
15813       </generalDesc>
15814       <fixedLine>
15815         <nationalNumberPattern>
15816           1(?:
15817             2\d{1,2}|
15818             [3-5]\d|
15819             6\d?|
15820             [89][0-6]\d
15821           )\d{4}|
15822           2(?:
15823             [236-9]\d{4}|
15824             4(?:
15825               0\d{5}|
15826               \d{4}
15827             )|
15828             5(?:
15829               1\d{3,6}|
15830               [02-9]\d{3,5}
15831             )
15832           )|
15833           4(?:
15834             2[245-8]|
15835             [346][2-6]|
15836             5[3-5]
15837           )\d{4}|
15838           5(?:
15839             2(?:
15840               20?|
15841               [3-8]
15842             )|
15843             3[2-68]|
15844             4(?:
15845               21?|
15846               [4-8]
15847             )|
15848             5[23]|
15849             6[2-4]|
15850             7[2-8]|
15851             8[24-7]|
15852             9[2-7]
15853           )\d{4}|
15854           6(?:
15855             0[23]|
15856             1[2356]|
15857             [24][2-6]|
15858             3[24-6]|
15859             5[2-4]|
15860             6[2-8]|
15861             7(?:
15862               [2367]|
15863               4\d|
15864               5\d?|
15865               8[145]\d
15866             )|
15867             8[245]|
15868             9[24]
15869           )\d{4}|
15870           7(?:
15871             [04][24-8]|
15872             [15][2-7]|
15873             22|
15874             3[2-4]
15875           )\d{4}|
15876           8(?:
15877             1(?:
15878               2\d?|
15879               [3-689]
15880             )|
15881             2[2-8]|
15882             3[24]|
15883             4[24-7]|
15884             5[245]|
15885             6[23]
15886           )\d{4}
15887         </nationalNumberPattern>
15888         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
15889         <exampleNumber>1234567</exampleNumber>
15890       </fixedLine>
15891       <mobile>
15892         <!-- Adding 99[089] (8 digits) from numbers found online, and 961 with 9 digits. -->
15893         <nationalNumberPattern>
15894           17[01]\d{4}|
15895           9(?:
15896             2[0-4]|
15897             3[136]\d|
15898             4(?:
15899               0[0-4]\d|
15900               [1379]\d|
15901               [24][0-589]\d|
15902               5\d{2}|
15903               88
15904             )|
15905             5[0-6]|
15906             61?\d|
15907             73\d|
15908             8\d|
15909             9(?:
15910               1\d|
15911               [089]
15912             )
15913           )\d{5}
15914         </nationalNumberPattern>
15915         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
15916         <exampleNumber>92123456</exampleNumber>
15917       </mobile>
15918       <voip>
15919         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
15920         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15921         <exampleNumber>13331234</exampleNumber>
15922       </voip>
15923       <!-- No information on other types of phone numbers for Myanmar has been found. -->
15924       <emergency>
15925         <nationalNumberPattern>199</nationalNumberPattern>
15926         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15927         <exampleNumber>199</exampleNumber>
15928       </emergency>
15929     </territory>
15930
15931     <!-- Mongolia -->
15932     <!-- http://www.itu.int/oth/T020200008E/en -->
15933     <territory id="MN" countryCode="976" internationalPrefix="001"
15934                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15935       <availableFormats>
15936         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
15937           <leadingDigits>[12]1</leadingDigits>
15938           <format>$1 $2 $3</format>
15939         </numberFormat>
15940         <numberFormat pattern="([12]2\d)(\d{5,6})">
15941           <leadingDigits>[12]2[1-3]</leadingDigits>
15942           <format>$1 $2</format>
15943         </numberFormat>
15944         <numberFormat pattern="([12]\d{3})(\d{5})">
15945           <leadingDigits>
15946             [12](?:
15947               27|
15948               [3-5]
15949             )
15950           </leadingDigits>
15951           <leadingDigits>
15952             [12](?:
15953               27|
15954               [3-5]\d
15955             )2
15956           </leadingDigits>
15957           <format>$1 $2</format>
15958         </numberFormat>
15959         <!-- It seems from online formatting that the national prefix is not written (or perhaps
15960              needed?) for numbers in these ranges. -->
15961         <numberFormat pattern="(\d{4})(\d{4})"
15962           nationalPrefixFormattingRule="$FG">
15963           <leadingDigits>[57-9]</leadingDigits>
15964           <format>$1 $2</format>
15965         </numberFormat>
15966         <numberFormat pattern="([12]\d{4})(\d{4,5})">
15967           <leadingDigits>
15968             [12](?:
15969               27|
15970               [3-5]
15971             )
15972           </leadingDigits>
15973           <leadingDigits>
15974             [12](?:
15975               27|
15976               [3-5]\d
15977             )[4-9]
15978           </leadingDigits>
15979           <format>$1 $2</format>
15980         </numberFormat>
15981       </availableFormats>
15982       <generalDesc>
15983         <nationalNumberPattern>
15984           [12]\d{7,9}|
15985           [57-9]\d{7}
15986         </nationalNumberPattern>
15987         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
15988       </generalDesc>
15989       <fixedLine>
15990         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
15991              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
15992              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
15993              as well, even though we are not certain whether they are in fact fixed or mobile in
15994              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
15995              online numbers being found. -->
15996         <nationalNumberPattern>
15997           [12](?:
15998             1\d|
15999             2(?:
16000               [1-3]\d?|
16001               7\d
16002             )|
16003             3[2-8]\d{1,2}|
16004             4[2-68]\d{1,2}|
16005             5[1-4689]\d{1,2}
16006           )\d{5}|
16007           5[0568]\d{6}
16008         </nationalNumberPattern>
16009         <exampleNumber>50123456</exampleNumber>
16010       </fixedLine>
16011       <mobile>
16012         <nationalNumberPattern>
16013           (?:
16014             8[89]|
16015             9[013-9]
16016           )\d{6}
16017         </nationalNumberPattern>
16018         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16019         <exampleNumber>88123456</exampleNumber>
16020       </mobile>
16021       <!-- No tollFree or premiumRate information can be found. -->
16022       <voip>
16023         <!-- According to the document this could be stricter, but there are counter examples
16024              online. -->
16025         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
16026         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16027         <exampleNumber>75123456</exampleNumber>
16028       </voip>
16029       <emergency>
16030         <nationalNumberPattern>10[0-3]</nationalNumberPattern>
16031         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16032         <exampleNumber>102</exampleNumber>
16033       </emergency>
16034     </territory>
16035
16036     <!-- Macao, China -->
16037     <!-- http://www.itu.int/oth/T020200007E/en -->
16038     <territory id="MO" countryCode="853" internationalPrefix="00">
16039       <availableFormats>
16040         <numberFormat pattern="([268]\d{3})(\d{4})">
16041           <format>$1 $2</format>
16042         </numberFormat>
16043       </availableFormats>
16044       <generalDesc>
16045         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
16046         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16047       </generalDesc>
16048       <fixedLine>
16049         <nationalNumberPattern>
16050           (?:
16051             28[2-57-9]|
16052             8[2-57-9]\d
16053           )\d{5}
16054         </nationalNumberPattern>
16055         <exampleNumber>28212345</exampleNumber>
16056       </fixedLine>
16057       <mobile>
16058         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
16059              numbers, and they are also widely present on the Internet. -->
16060         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
16061         <exampleNumber>66123456</exampleNumber>
16062       </mobile>
16063       <!-- No tollFree or premiumRate information can be found. -->
16064       <emergency>
16065         <nationalNumberPattern>999</nationalNumberPattern>
16066         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16067         <exampleNumber>999</exampleNumber>
16068       </emergency>
16069     </territory>
16070
16071     <!--  Northern Mariana Islands -->
16072     <!-- http://www.itu.int/oth/T02020000EE/en -->
16073     <!-- www.cnmiphonebook.com/ -->
16074     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
16075                internationalPrefix="011">
16076       <generalDesc>
16077         <!-- NANPA country - uses US formatting rules -->
16078         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
16079         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
16080       </generalDesc>
16081       <fixedLine>
16082         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
16083              were seen in the white and yellow pages, but no numbers with these exchange codes have
16084              proved to be diallable so we exclude them for now.. -->
16085         <nationalNumberPattern>
16086           670(?:
16087             2(?:
16088               3[3-7]|
16089               56|
16090               8[5-8]
16091             )|
16092             32[1238]|
16093             4(?:
16094               33|
16095               8[348]
16096             )|
16097             5(?:
16098               32|
16099               55|
16100               88
16101             )|
16102             6(?:
16103               64|
16104               70|
16105               82
16106             )|
16107             78[589]|
16108             8[3-9]8|
16109             989
16110           )\d{4}
16111         </nationalNumberPattern>
16112         <exampleNumber>6702345678</exampleNumber>
16113       </fixedLine>
16114       <mobile>
16115         <nationalNumberPattern>
16116           670(?:
16117             2(?:
16118               3[3-7]|
16119               56|
16120               8[5-8]
16121             )|
16122             32[1238]|
16123             4(?:
16124               33|
16125               8[348]
16126             )|
16127             5(?:
16128               32|
16129               55|
16130               88
16131             )|
16132             6(?:
16133               64|
16134               70|
16135               82
16136             )|
16137             78[589]|
16138             8[3-9]8|
16139             989
16140           )\d{4}
16141         </nationalNumberPattern>
16142         <exampleNumber>6702345678</exampleNumber>
16143       </mobile>
16144       <tollFree>
16145         <nationalNumberPattern>
16146           8(?:
16147             00|
16148             55|
16149             66|
16150             77|
16151             88
16152           )[2-9]\d{6}
16153         </nationalNumberPattern>
16154         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16155         <exampleNumber>8002123456</exampleNumber>
16156       </tollFree>
16157       <premiumRate>
16158         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
16159         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16160         <exampleNumber>9002123456</exampleNumber>
16161       </premiumRate>
16162       <personalNumber>
16163         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
16164         <nationalNumberPattern>
16165           5(?:
16166             00|
16167             33|
16168             44
16169           )[2-9]\d{6}
16170         </nationalNumberPattern>
16171         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16172         <exampleNumber>5002345678</exampleNumber>
16173       </personalNumber>
16174       <emergency>
16175         <!-- http://www.dps.gov.mp/ -->
16176         <nationalNumberPattern>911</nationalNumberPattern>
16177         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16178         <exampleNumber>911</exampleNumber>
16179       </emergency>
16180     </territory>
16181
16182     <!-- Martinique (French Dept. of) -->
16183     <!-- http://www.itu.int/oth/T0202000086/en -->
16184     <!-- http://www.arcep.fr/index.php?id=2137&bloc=0596&CMD=RESULTS_NUMEROTATION -->
16185     <territory id="MQ" countryCode="596" internationalPrefix="00"
16186                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16187       <availableFormats>
16188         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16189           <format>$1 $2 $3 $4</format>
16190         </numberFormat>
16191       </availableFormats>
16192       <generalDesc>
16193         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
16194         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16195       </generalDesc>
16196       <fixedLine>
16197         <nationalNumberPattern>
16198           596(?:
16199             0[2-5]|
16200             [12]0|
16201             3[05-9]|
16202             4[024-8]|
16203             [5-7]\d|
16204             89|
16205             9[4-8]
16206           )\d{4}
16207         </nationalNumberPattern>
16208         <exampleNumber>596301234</exampleNumber>
16209       </fixedLine>
16210       <mobile>
16211         <nationalNumberPattern>
16212           696(?:
16213             [0-479]\d|
16214             5[01]|
16215             8[0-689]
16216           )\d{4}
16217         </nationalNumberPattern>
16218         <exampleNumber>696201234</exampleNumber>
16219       </mobile>
16220       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
16221            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
16222            too. -->
16223       <!-- http://www.martinique.franceantilles.fr/pratique/urgences/ -->
16224       <emergency>
16225         <nationalNumberPattern>
16226           1(?:
16227             12|
16228             [578]
16229           )
16230         </nationalNumberPattern>
16231         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
16232         <exampleNumber>15</exampleNumber>
16233       </emergency>
16234     </territory>
16235
16236     <!-- Mauritania -->
16237     <!-- http://www.itu.int/oth/T0202000087/en -->
16238     <!-- http://www.are.mr/com-1-4-1.html -->
16239     <territory id="MR" countryCode="222" internationalPrefix="00" >
16240       <availableFormats>
16241         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
16242           <format>$1 $2 $3 $4</format>
16243         </numberFormat>
16244       </availableFormats>
16245       <generalDesc>
16246         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
16247         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16248       </generalDesc>
16249       <fixedLine>
16250         <nationalNumberPattern>
16251           25[08]\d{5}|
16252           35\d{6}|
16253           45[1-7]\d{5}
16254         </nationalNumberPattern>
16255         <exampleNumber>35123456</exampleNumber>
16256       </fixedLine>
16257       <mobile>
16258         <nationalNumberPattern>
16259           (?:
16260             2(?:
16261               2\d|
16262               70
16263             )|
16264             3(?:
16265               3\d|
16266               6[1-36]|
16267               7[1-3]
16268             )|
16269             4(?:
16270               4\d|
16271               6[0457-9]|
16272               7[4-9]
16273             )
16274           )\d{5}
16275         </nationalNumberPattern>
16276         <exampleNumber>22123456</exampleNumber>
16277       </mobile>
16278       <tollFree>
16279         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
16280         <exampleNumber>80012345</exampleNumber>
16281       </tollFree>
16282       <!-- http://www.lemoci.com/Mauritanie/14-Donnees-generales.htm -->
16283       <emergency>
16284         <nationalNumberPattern>1[78]</nationalNumberPattern>
16285         <possibleNumberPattern>\d{2}</possibleNumberPattern>
16286         <exampleNumber>17</exampleNumber>
16287       </emergency>
16288     </territory>
16289
16290     <!-- Montserrat -->
16291     <!-- http://www.itu.int/oth/T020200008F/en -->
16292     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
16293                internationalPrefix="011">
16294       <generalDesc>
16295         <!-- NANPA country - uses US formatting rules -->
16296         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
16297         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
16298       </generalDesc>
16299       <fixedLine>
16300         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
16301         <exampleNumber>6644912345</exampleNumber>
16302       </fixedLine>
16303       <mobile>
16304         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
16305         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16306         <exampleNumber>6644923456</exampleNumber>
16307       </mobile>
16308       <tollFree>
16309         <nationalNumberPattern>
16310           8(?:
16311             00|
16312             55|
16313             66|
16314             77|
16315             88
16316           )[2-9]\d{6}
16317         </nationalNumberPattern>
16318         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16319         <exampleNumber>8002123456</exampleNumber>
16320       </tollFree>
16321       <premiumRate>
16322         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
16323         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16324         <exampleNumber>9002123456</exampleNumber>
16325       </premiumRate>
16326       <personalNumber>
16327         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
16328         <nationalNumberPattern>
16329           5(?:
16330             00|
16331             33|
16332             44
16333           )[2-9]\d{6}
16334         </nationalNumberPattern>
16335         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16336         <exampleNumber>5002345678</exampleNumber>
16337       </personalNumber>
16338       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
16339       <emergency>
16340         <nationalNumberPattern>
16341           9(?:
16342             11|
16343             99
16344           )
16345         </nationalNumberPattern>
16346         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16347         <exampleNumber>911</exampleNumber>
16348       </emergency>
16349     </territory>
16350
16351     <!-- Malta -->
16352     <!-- www.itu.int/oth/T0202000084/en -->
16353     <!-- www.mca.org.mt (Numbering link in the LHS menu - has more up-to-date allocations) -->
16354     <territory id="MT" countryCode="356" internationalPrefix="00">
16355       <availableFormats>
16356         <numberFormat pattern="(\d{4})(\d{4})">
16357           <format>$1 $2</format>
16358         </numberFormat>
16359       </availableFormats>
16360       <generalDesc>
16361         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
16362         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16363       </generalDesc>
16364       <fixedLine>
16365         <nationalNumberPattern>
16366           2(?:
16367             0(?:
16368               1[0-6]|
16369               [69]\d
16370             )|
16371             [1-357]\d{2}
16372           )\d{4}
16373         </nationalNumberPattern>
16374         <exampleNumber>21001234</exampleNumber>
16375       </fixedLine>
16376       <mobile>
16377         <nationalNumberPattern>
16378           (?:
16379             7(?:
16380               210|
16381               [79]\d{2}
16382             )|
16383             9(?:
16384               2(?:
16385                1[01]|
16386                31
16387               )|
16388               696|
16389               8(?:
16390                 1[1-3]|
16391                 89|
16392                 97
16393               )|
16394               9\d{2}
16395             )
16396           )\d{4}
16397         </nationalNumberPattern>
16398         <exampleNumber>96961234</exampleNumber>
16399       </mobile>
16400       <pager>
16401         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
16402         <exampleNumber>71171234</exampleNumber>
16403       </pager>
16404       <tollFree>
16405         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
16406         <exampleNumber>80071234</exampleNumber>
16407       </tollFree>
16408       <premiumRate>
16409         <nationalNumberPattern>
16410           5(?:
16411             0(?:
16412               0(?:
16413                 37|
16414                 43
16415               )|
16416               6\d{2}|
16417               70\d|
16418               9[0168]
16419             )|
16420             [12]\d0[1-5]
16421           )\d{3}
16422         </nationalNumberPattern>
16423         <exampleNumber>50037123</exampleNumber>
16424       </premiumRate>
16425       <voip>
16426         <!-- In the plan as Non-PATS ECS. -->
16427         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
16428         <exampleNumber>35501234</exampleNumber>
16429       </voip>
16430       <uan>
16431         <!-- Using this for governmental numbers. -->
16432         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
16433         <exampleNumber>50112345</exampleNumber>
16434       </uan>
16435       <emergency>
16436         <nationalNumberPattern>112</nationalNumberPattern>
16437         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16438         <exampleNumber>112</exampleNumber>
16439       </emergency>
16440     </territory>
16441
16442     <!-- Mauritius -->
16443     <!-- http://www.icta.mu/telecommunications/numbering.htm -->
16444     <territory id="MU" countryCode="230" internationalPrefix="0(?:[2-7]0|33)"
16445                preferredInternationalPrefix="020">
16446       <availableFormats>
16447         <numberFormat pattern="([2-9]\d{2})(\d{4})">
16448           <format>$1 $2</format>
16449         </numberFormat>
16450       </availableFormats>
16451       <generalDesc>
16452         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
16453         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16454       </generalDesc>
16455       <fixedLine>
16456         <!-- Wireless local loop numbers are considered to be fixed, since there is almost no
16457              roaming capability. 26X prefixes were added after numbers containing them marked as
16458              "landline" were found online. These are also mentioned on
16459              http://www.wtng.info/wtng-230-mu.html. -->
16460         <nationalNumberPattern>
16461           (?:
16462             2(?:
16463               [034789]\d|
16464               1[0-7]|
16465               6[1-69]
16466             )|
16467             4(?:
16468               [013-8]\d|
16469               2[4-7]
16470             )|
16471             [56]\d{2}|
16472             8(?:
16473               14|
16474               3[129]
16475             )
16476           )\d{4}
16477         </nationalNumberPattern>
16478         <exampleNumber>2012345</exampleNumber>
16479       </fixedLine>
16480       <mobile>
16481         <!--Adding 92 as SMS messages have been successfully sent to this prefix. 820 has also been
16482             added based on a report from Orange. -->
16483         <nationalNumberPattern>
16484           (?:
16485             25\d|
16486             4(?:
16487               2[12389]|
16488               9\d
16489             )|
16490             7\d{2}|
16491             8(?:
16492               20|
16493               7[15-8]
16494             )|
16495             9[1-8]\d
16496           )\d{4}
16497         </nationalNumberPattern>
16498         <exampleNumber>2512345</exampleNumber>
16499       </mobile>
16500       <pager>
16501         <nationalNumberPattern>
16502           2(?:
16503             1[89]|
16504             2\d
16505           )\d{4}
16506         </nationalNumberPattern>
16507         <exampleNumber>2181234</exampleNumber>
16508       </pager>
16509       <tollFree>
16510         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
16511         <exampleNumber>8001234</exampleNumber>
16512       </tollFree>
16513       <premiumRate>
16514         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
16515         <exampleNumber>3012345</exampleNumber>
16516       </premiumRate>
16517       <voip>
16518         <nationalNumberPattern>
16519           3(?:
16520             20|
16521             9\d
16522           )\d{4}
16523         </nationalNumberPattern>
16524         <exampleNumber>3201234</exampleNumber>
16525       </voip>
16526       <emergency>
16527         <nationalNumberPattern>
16528           11[45]|
16529           99\d
16530         </nationalNumberPattern>
16531         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16532         <exampleNumber>999</exampleNumber>
16533       </emergency>
16534     </territory>
16535
16536     <!-- Maldives -->
16537     <!-- http://www.itu.int/oth/T0202000082/en -->
16538     <!-- www.dhiraagu.com.mv -->
16539     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
16540                preferredInternationalPrefix="00">
16541       <availableFormats>
16542         <numberFormat pattern="(\d{3})(\d{4})">
16543           <leadingDigits>
16544             [3467]|
16545             9(?:
16546               [1-9]|
16547               0[1-9]
16548             )
16549           </leadingDigits>
16550           <format>$1-$2</format>
16551         </numberFormat>
16552         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16553           <leadingDigits>900</leadingDigits>
16554           <format>$1 $2 $3</format>
16555         </numberFormat>
16556       </availableFormats>
16557       <generalDesc>
16558         <nationalNumberPattern>
16559           [3467]\d{6}|
16560           9(?:
16561             00\d{7}|
16562             \d{6}
16563           )
16564         </nationalNumberPattern>
16565         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16566       </generalDesc>
16567       <fixedLine>
16568         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
16569              diallable. -->
16570         <nationalNumberPattern>
16571           (?:
16572             3(?:
16573               0[01]|
16574               3[0-59]
16575             )|
16576             6(?:
16577               [567][02468]|
16578               8[024689]|
16579               90
16580             )
16581           )\d{4}
16582         </nationalNumberPattern>
16583         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16584         <exampleNumber>6701234</exampleNumber>
16585       </fixedLine>
16586       <mobile>
16587         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
16588              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
16589              91 was added based on information from Wataniya Telecom. -->
16590         <nationalNumberPattern>
16591           (?:
16592             46[46]|
16593             7[3-9]\d|
16594             9[16-9]\d
16595           )\d{4}
16596         </nationalNumberPattern>
16597         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16598         <exampleNumber>7712345</exampleNumber>
16599       </mobile>
16600       <pager>
16601         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
16602         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16603         <exampleNumber>7812345</exampleNumber>
16604       </pager>
16605       <premiumRate>
16606         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16607         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16608         <exampleNumber>9001234567</exampleNumber>
16609       </premiumRate>
16610       <emergency>
16611         <nationalNumberPattern>
16612           1(?:
16613             02|
16614             19
16615           )
16616         </nationalNumberPattern>
16617         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16618         <exampleNumber>102</exampleNumber>
16619       </emergency>
16620     </territory>
16621
16622     <!-- Malawi -->
16623     <!-- http://www.itu.int/oth/T0202000080/en -->
16624     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
16625          consistent in having one. -->
16626     <territory id="MW" countryCode="265" internationalPrefix="00"
16627                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16628       <availableFormats>
16629         <numberFormat pattern="(\d)(\d{3})(\d{3})">
16630           <leadingDigits>1</leadingDigits>
16631           <format>$1 $2 $3</format>
16632         </numberFormat>
16633         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
16634           <leadingDigits>2</leadingDigits>
16635           <format>$1 $2 $3</format>
16636         </numberFormat>
16637         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16638           <leadingDigits>[1789]</leadingDigits>
16639           <format>$1 $2 $3 $4</format>
16640         </numberFormat>
16641       </availableFormats>
16642       <generalDesc>
16643         <nationalNumberPattern>
16644           (?:
16645             1(?:
16646               \d{2}
16647             )?|
16648             [2789]\d{2}
16649           )\d{6}
16650         </nationalNumberPattern>
16651         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
16652       </generalDesc>
16653       <fixedLine>
16654         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
16655              been found so this is being retained for now.  It is possible however that these may be
16656              old-format mobile numbers. -->
16657         <nationalNumberPattern>
16658           (?:
16659             1[2-9]|
16660             21\d{2}
16661           )\d{5}
16662         </nationalNumberPattern>
16663         <exampleNumber>1234567</exampleNumber>
16664       </fixedLine>
16665       <mobile>
16666         <nationalNumberPattern>
16667           (?:
16668             111|
16669             77\d|
16670             88\d|
16671             99\d
16672           )\d{6}
16673         </nationalNumberPattern>
16674         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16675         <exampleNumber>991234567</exampleNumber>
16676       </mobile>
16677       <emergency>
16678         <!-- http://www.malawiembassy.org/visit/contact.html -->
16679         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_959.html -->
16680         <nationalNumberPattern>
16681           199|
16682           99[789]
16683         </nationalNumberPattern>
16684         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16685         <exampleNumber>997</exampleNumber>
16686       </emergency>
16687     </territory>
16688
16689     <!-- Mexico -->
16690     <!-- http://www.itu.int/oth/T020200008A/en -->
16691     <!-- http://en.wikipedia.org/wiki/%2B52 -->
16692     <!-- http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico -->
16693     <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
16694     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
16695                nationalPrefix="01"
16696                nationalPrefixForParsing="0[12]|04[45](\d{10})"
16697                nationalPrefixTransformRule="1$1"
16698                nationalPrefixFormattingRule="$NP $FG"
16699                nationalPrefixOptionalWhenFormatting="true">
16700       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
16701            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
16702            numbers, regardless of whether they are written in international format (leading 1) or
16703            national format (leading 044/045), will be parsed into the same form. -->
16704       <availableFormats>
16705         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
16706           <leadingDigits>
16707             33|
16708             55|
16709             81
16710           </leadingDigits>
16711           <format>$1 $2 $3</format>
16712         </numberFormat>
16713         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16714           <leadingDigits>
16715             [2467]|
16716             3[12457-9]|
16717             5[89]|
16718             8[02-9]|
16719             9[0-35-9]
16720           </leadingDigits>
16721           <format>$1 $2 $3</format>
16722         </numberFormat>
16723         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
16724           <leadingDigits>
16725             1(?:
16726               33|
16727               55|
16728               81
16729             )
16730           </leadingDigits>
16731           <format>044 $2 $3 $4</format>
16732           <intlFormat>$1 $2 $3 $4</intlFormat>
16733         </numberFormat>
16734         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
16735           <leadingDigits>
16736             1(?:
16737               [2467]|
16738               3[12457-9]|
16739               5[89]|
16740               8[2-9]|
16741               9[1-35-9]
16742             )
16743           </leadingDigits>
16744           <format>044 $2 $3 $4</format>
16745           <intlFormat>$1 $2 $3 $4</intlFormat>
16746         </numberFormat>
16747       </availableFormats>
16748       <generalDesc>
16749         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
16750         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
16751       </generalDesc>
16752       <fixedLine>
16753         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
16754         <nationalNumberPattern>
16755           (?:
16756             33|
16757             55|
16758             81
16759           )\d{8}|
16760           (?:
16761             2(?:
16762               2[2-9]|
16763               3[1-35-8]|
16764               4[13-9]|
16765               7[1-689]|
16766               8[1-578]|
16767               9[467]
16768             )|
16769             3(?:
16770               1[1-79]|
16771               [2458][1-9]|
16772               7[1-8]|
16773               9[1-5]
16774             )|
16775             4(?:
16776               1[1-57-9]|
16777               [24-6][1-9]|
16778               [37][1-8]|
16779               8[1-35-9]|
16780               9[2-689]
16781             )|
16782             5(?:
16783               88|
16784               9[1-79]
16785             )|
16786             6(?:
16787               1[2-68]|
16788               [234][1-9]|
16789               5[1-3689]|
16790               6[12457-9]|
16791               7[1-7]|
16792               8[67]|
16793               9[4-8]
16794             )|
16795             7(?:
16796               [13467][1-9]|
16797               2[1-8]|
16798               5[13-9]|
16799               8[1-69]|
16800               9[17]
16801             )|
16802             8(?:
16803               2[13-689]|
16804               3[1-6]|
16805               4[124-6]|
16806               6[1246-9]|
16807               7[1-378]|
16808               9[12479]
16809             )|
16810             9(?:
16811               1[346-9]|
16812               2[1-4]|
16813               3[2-46-8]|
16814               5[1348]|
16815               [69][1-9]|
16816               7[12]|
16817               8[1-8]
16818             )
16819           )\d{7}
16820         </nationalNumberPattern>
16821         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16822         <exampleNumber>2221234567</exampleNumber>
16823       </fixedLine>
16824       <mobile>
16825         <nationalNumberPattern>
16826           1(?:
16827             (?:
16828               33|
16829               55|
16830               81
16831             )\d{8}|
16832             (?:
16833               2(?:
16834                 2[2-9]|
16835                 3[1-35-8]|
16836                 4[13-9]|
16837                 7[1-689]|
16838                 8[1-578]|
16839                 9[467]
16840               )|
16841               3(?:
16842                 1[1-79]|
16843                 [2458][1-9]|
16844                 7[1-8]|
16845                 9[1-5]
16846               )|
16847               4(?:
16848                 1[1-57-9]|
16849                 [24-6][1-9]|
16850                 [37][1-8]|
16851                 8[1-35-9]|
16852                 9[2-689]
16853               )|
16854               5(?:
16855                 88|
16856                 9[1-79]
16857               )|
16858               6(?:
16859                 1[2-68]|
16860                 [2-4][1-9]|
16861                 5[1-3689]|
16862                 6[12457-9]|
16863                 7[1-7]|
16864                 8[67]|
16865                 9[4-8]
16866               )|
16867               7(?:
16868                 [13467][1-9]|
16869                 2[1-8]|
16870                 5[13-9]|
16871                 8[1-69]|
16872                 9[17]
16873               )|
16874               8(?:
16875                 2[13-689]|
16876                 3[1-6]|
16877                 4[124-6]|
16878                 6[1246-9]|
16879                 7[1-378]|
16880                 9[12479]
16881               )|
16882               9(?:
16883                 1[346-9]|
16884                 2[1-4]|
16885                 3[2-46-8]|
16886                 5[1348]|
16887                 [69][1-9]|
16888                 7[12]|
16889                 8[1-8]
16890               )
16891             )\d{7}
16892           )
16893         </nationalNumberPattern>
16894         <possibleNumberPattern>\d{11}</possibleNumberPattern>
16895         <exampleNumber>12221234567</exampleNumber>
16896       </mobile>
16897       <tollFree>
16898         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
16899         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16900         <exampleNumber>8001234567</exampleNumber>
16901       </tollFree>
16902       <premiumRate>
16903         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16904         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16905         <exampleNumber>9001234567</exampleNumber>
16906       </premiumRate>
16907       <emergency>
16908         <nationalNumberPattern>
16909           06[568]|
16910           911
16911         </nationalNumberPattern>
16912         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16913         <exampleNumber>066</exampleNumber>
16914       </emergency>
16915     </territory>
16916
16917     <!-- Malaysia -->
16918     <!-- http://en.wikipedia.org/wiki/%2B60 -->
16919     <!-- http://www.skmm.gov.my -->
16920     <territory id="MY" countryCode="60" internationalPrefix="00"
16921                nationalPrefix="0">
16922       <availableFormats>
16923         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16924           pattern="([4-79])(\d{3})(\d{4})">
16925           <leadingDigits>[4-79]</leadingDigits>
16926           <format>$1-$2 $3</format>
16927         </numberFormat>
16928         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16929           pattern="(3)(\d{4})(\d{4})">
16930           <leadingDigits>3</leadingDigits>
16931           <format>$1-$2 $3</format>
16932         </numberFormat>
16933         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16934           pattern="([18]\d)(\d{3})(\d{3,4})">
16935           <leadingDigits>
16936             1[02-46-9][1-9]|
16937             8
16938           </leadingDigits>
16939           <format>$1-$2 $3</format>
16940         </numberFormat>
16941         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
16942           <leadingDigits>1[36-8]0</leadingDigits>
16943           <format>$1-$2-$3-$4</format>
16944         </numberFormat>
16945         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16946           pattern="(11)(\d{4})(\d{4})">
16947           <leadingDigits>11</leadingDigits>
16948           <format>$1-$2 $3</format>
16949         </numberFormat>
16950         <numberFormat nationalPrefixFormattingRule="$NP$FG"
16951           pattern="(15[49])(\d{3})(\d{4})">
16952           <leadingDigits>15</leadingDigits>
16953           <format>$1-$2 $3</format>
16954         </numberFormat>
16955       </availableFormats>
16956       <generalDesc>
16957         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
16958         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
16959       </generalDesc>
16960       <fixedLine>
16961         <nationalNumberPattern>
16962           (?:
16963             3[2-9]\d|
16964             [4-9][2-9]
16965           )\d{6}
16966         </nationalNumberPattern>
16967         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
16968         <exampleNumber>323456789</exampleNumber>
16969       </fixedLine>
16970       <mobile>
16971         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
16972              is possible to send SMSs (and receive them) from numbers in this block, so we are
16973              listing them as mobile. -->
16974         <nationalNumberPattern>
16975           1(?:
16976             1[1-3]\d{2}|
16977             [02-4679][2-9]\d|
16978             59\d{2}|
16979             8(?:
16980               1[23]|
16981               [2-9]\d
16982             )
16983           )\d{5}
16984         </nationalNumberPattern>
16985         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
16986         <exampleNumber>123456789</exampleNumber>
16987       </mobile>
16988       <tollFree>
16989         <nationalNumberPattern>1[38]00\d{6}</nationalNumberPattern>
16990         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16991         <exampleNumber>1300123456</exampleNumber>
16992       </tollFree>
16993       <premiumRate>
16994         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
16995         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16996         <exampleNumber>1600123456</exampleNumber>
16997       </premiumRate>
16998       <personalNumber>
16999         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
17000         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17001         <exampleNumber>1700123456</exampleNumber>
17002       </personalNumber>
17003       <voip>
17004         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
17005         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17006         <exampleNumber>1541234567</exampleNumber>
17007       </voip>
17008       <emergency>
17009         <nationalNumberPattern>
17010           112|
17011           999
17012         </nationalNumberPattern>
17013         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17014         <exampleNumber>999</exampleNumber>
17015       </emergency>
17016     </territory>
17017
17018     <!-- Mozambique -->
17019     <!-- http://www.itu.int/oth/T0202000091/en -->
17020     <territory id="MZ" countryCode="258" internationalPrefix="00">
17021       <availableFormats>
17022         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
17023           <leadingDigits>
17024             2|
17025             8[246]
17026           </leadingDigits>
17027           <format>$1 $2 $3</format>
17028         </numberFormat>
17029         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
17030           <leadingDigits>80</leadingDigits>
17031           <format>$1 $2 $3</format>
17032         </numberFormat>
17033       </availableFormats>
17034       <generalDesc>
17035         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
17036         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17037       </generalDesc>
17038       <fixedLine>
17039         <nationalNumberPattern>
17040           2(?:
17041             [1346]\d|
17042             5[0-2]|
17043             [78][12]|
17044             93
17045           )\d{5}
17046         </nationalNumberPattern>
17047         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17048         <exampleNumber>21123456</exampleNumber>
17049       </fixedLine>
17050       <mobile>
17051         <nationalNumberPattern>8[246]\d{7}</nationalNumberPattern>
17052         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17053         <exampleNumber>821234567</exampleNumber>
17054       </mobile>
17055       <tollFree>
17056         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
17057              examples. -->
17058         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
17059         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17060         <exampleNumber>800123456</exampleNumber>
17061       </tollFree>
17062       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
17063            a 9 are premium rate, but no online examples can be found of any of these so they are
17064            omitted for the time-being. -->
17065       <emergency>
17066         <!-- 11X is national, 19X is for Maputo. -->
17067         <!-- http://www.lonelyplanet.com/shop_pickandmix/previews/mozambique-maputo-preview.pdf -->
17068         <!-- http://ccmusa.online.co.mz/index.php?option=com_content&task=view&id=20&Itemid=30 -->
17069         <nationalNumberPattern>
17070           1(?:
17071             1[79]|
17072             9[78]
17073           )
17074         </nationalNumberPattern>
17075         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17076         <exampleNumber>119</exampleNumber>
17077       </emergency>
17078     </territory>
17079
17080     <!-- Namibia -->
17081     <!-- http://www.itu.int/oth/T0202000093/en -->
17082     <territory id="NA" countryCode="264" internationalPrefix="00"
17083                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17084       <availableFormats>
17085         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
17086           <leadingDigits>8[1235]</leadingDigits>
17087           <format>$1 $2 $3</format>
17088         </numberFormat>
17089         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
17090           <leadingDigits>6</leadingDigits>
17091           <format>$1 $2 $3</format>
17092         </numberFormat>
17093         <numberFormat pattern="(88)(\d{3})(\d{3})">
17094           <leadingDigits>88</leadingDigits>
17095           <format>$1 $2 $3</format>
17096         </numberFormat>
17097         <numberFormat pattern="(870)(\d{3})(\d{3})">
17098           <leadingDigits>870</leadingDigits>
17099           <format>$1 $2 $3</format>
17100         </numberFormat>
17101       </availableFormats>
17102       <generalDesc>
17103         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
17104         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17105       </generalDesc>
17106       <fixedLine>
17107         <!-- Includes VSAT service. -->
17108         <nationalNumberPattern>
17109           6(?:
17110             1(?:
17111               17|
17112               2(?:
17113                 [0189]\d|
17114                 [2-6]|
17115                 7\d?
17116               )|
17117               3(?:
17118                 2\d|
17119                 3[378]
17120               )|
17121               4[01]|
17122               69|
17123               7[014]
17124             )|
17125             2(?:
17126               17|
17127               25|
17128               5(?:
17129                 [0-36-8]|
17130                 4\d?
17131               )|
17132               69|
17133               70
17134             )|
17135             3(?:
17136               17|
17137               2(?:
17138                 [0237]\d?|
17139                 [14-689]
17140               )|
17141               34|
17142               6[29]|
17143               7[01]|
17144               81
17145             )|
17146             4(?:
17147               17|
17148               2(?:
17149                 [012]|
17150                 7?
17151               )|
17152               4(?:
17153                 [06]|
17154                 1\d
17155               )|
17156               5(?:
17157                 [01357]|
17158                 [25]\d?
17159               )|
17160               69|
17161               7[01]
17162             )|
17163             5(?:
17164               17|
17165               2(?:
17166                 [0459]|
17167                 [23678]\d?
17168               )|
17169               69|
17170               7[01]
17171             )|
17172             6(?:
17173               17|
17174               2(?:
17175                 5|
17176                 6\d?
17177               )|
17178               38|
17179               42|
17180               69|
17181               7[01]
17182             )|
17183             7(?:
17184               17|
17185               2(?:
17186                 [569]|
17187                 [234]\d?
17188               )|
17189               3(?:
17190                 0\d?|
17191                 [13]
17192               )|
17193               69|
17194               7[01]
17195             )
17196           )\d{4}
17197         </nationalNumberPattern>
17198         <exampleNumber>61221234</exampleNumber>
17199       </fixedLine>
17200       <mobile>
17201         <!-- Includes the Switch CDMA Service. -->
17202         <nationalNumberPattern>
17203           (?:
17204             60|
17205             8[125]
17206           )\d{7}
17207         </nationalNumberPattern>
17208         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17209         <exampleNumber>811234567</exampleNumber>
17210       </mobile>
17211       <premiumRate>
17212         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
17213         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17214         <exampleNumber>870123456</exampleNumber>
17215       </premiumRate>
17216       <voip>
17217         <!-- Including virtual telephone and VOIP services. -->
17218         <nationalNumberPattern>
17219           8(
17220             3\d{2}|
17221             86
17222           )\d{5}
17223         </nationalNumberPattern>
17224         <exampleNumber>88612345</exampleNumber>
17225       </voip>
17226       <emergency>
17227         <!-- ITU doc reserves 9XX for emergency numbers. No examples found. -->
17228         <!-- http://www.namibia-1on1.com/information/a-emergencynos.html -->
17229         <nationalNumberPattern>10111</nationalNumberPattern>
17230         <possibleNumberPattern>\d{5}</possibleNumberPattern>
17231         <exampleNumber>10111</exampleNumber>
17232       </emergency>
17233     </territory>
17234
17235     <!-- New Caledonia (Territoire français d'outre-mer) -->
17236     <!-- http://www.itu.int/oth/T0202000098/en -->
17237     <territory id="NC" countryCode="687" internationalPrefix="00">
17238       <availableFormats>
17239         <!-- From www.1012.nc, the local yellow pages. -->
17240         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
17241           <format>$1.$2.$3</format>
17242         </numberFormat>
17243       </availableFormats>
17244       <generalDesc>
17245         <nationalNumberPattern>[2-47-9]\d{5}</nationalNumberPattern>
17246         <possibleNumberPattern>\d{6}</possibleNumberPattern>
17247       </generalDesc>
17248       <fixedLine>
17249         <!-- Including the 88 prefix for public payphones. -->
17250         <nationalNumberPattern>
17251           (?:
17252             2[03-9]|
17253             3[0-5]|
17254             4[1-7]|
17255             88
17256           )\d{4}
17257         </nationalNumberPattern>
17258         <exampleNumber>201234</exampleNumber>
17259       </fixedLine>
17260       <mobile>
17261         <nationalNumberPattern>
17262           (?:
17263             [79]\d|
17264             8[0-79]
17265           )\d{4}
17266         </nationalNumberPattern>
17267         <exampleNumber>751234</exampleNumber>
17268       </mobile>
17269       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
17270       <premiumRate>
17271         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
17272         <exampleNumber>366711</exampleNumber>
17273       </premiumRate>
17274       <!-- http://www.routard.com/guide/nouvelle_caledonie/2343/vie_pratique.htm -->
17275       <emergency>
17276         <nationalNumberPattern>1[5-8]</nationalNumberPattern>
17277         <possibleNumberPattern>\d{2}</possibleNumberPattern>
17278         <exampleNumber>15</exampleNumber>
17279       </emergency>
17280     </territory>
17281
17282     <!-- Niger -->
17283     <!-- http://www.itu.int/oth/T020200009B/en -->
17284     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
17285       <availableFormats>
17286         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
17287           <leadingDigits>
17288             [289]|
17289             09
17290           </leadingDigits>
17291           <format>$1 $2 $3 $4</format>
17292         </numberFormat>
17293         <numberFormat pattern="(08)(\d{3})(\d{3})">
17294           <leadingDigits>08</leadingDigits>
17295           <format>$1 $2 $3</format>
17296         </numberFormat>
17297       </availableFormats>
17298       <generalDesc>
17299         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
17300         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17301       </generalDesc>
17302       <fixedLine>
17303         <!-- Adding 20 61 from online numbers. -->
17304         <nationalNumberPattern>
17305           2(?:
17306             0(?:
17307               20|
17308               3[1-7]|
17309               4[134]|
17310               5[14]|
17311               6[14578]|
17312               7[1-578]
17313             )|
17314             1(?:
17315               4[145]|
17316               5[14]|
17317               6[14-68]|
17318               7[169]|
17319               88
17320             )
17321           )\d{4}
17322         </nationalNumberPattern>
17323         <exampleNumber>20201234</exampleNumber>
17324       </fixedLine>
17325       <mobile>
17326         <!-- Added 90, 91, 92, 97, 98 & 99 from online data. Airtel have confirmed that they use the
17327              89 and 97 prefixes, and Orange use 92. -->
17328         <nationalNumberPattern>
17329           (?:
17330             89|
17331             9[0-46-9]
17332           )\d{6}
17333         </nationalNumberPattern>
17334         <exampleNumber>93123456</exampleNumber>
17335       </mobile>
17336       <tollFree>
17337         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
17338         <exampleNumber>08123456</exampleNumber>
17339       </tollFree>
17340       <premiumRate>
17341         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
17342         <exampleNumber>09123456</exampleNumber>
17343       </premiumRate>
17344       <!-- No emergency numbers information can be found. -->
17345     </territory>
17346
17347     <!-- Norfolk Island -->
17348     <!-- http://www.itu.int/oth/T020200009D/en -->
17349     <!-- Including numbers for Australian Antarctic stations. -->
17350     <territory id="NF" countryCode="672" internationalPrefix="00">
17351       <availableFormats>
17352         <numberFormat pattern="(\d{2})(\d{4})">
17353            <leadingDigits>1</leadingDigits>
17354           <format>$1 $2</format>
17355         </numberFormat>
17356         <numberFormat pattern="(\d)(\d{5})">
17357           <leadingDigits>3</leadingDigits>
17358           <format>$1 $2</format>
17359         </numberFormat>
17360       </availableFormats>
17361       <generalDesc>
17362         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
17363         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17364       </generalDesc>
17365       <fixedLine>
17366         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
17367              connect after we tried calling them. -->
17368         <nationalNumberPattern>
17369           (?:
17370             1(?:
17371               06|
17372               17|
17373               28|
17374               39
17375             )|
17376             3[012]\d
17377           )\d{3}
17378         </nationalNumberPattern>
17379         <exampleNumber>106609</exampleNumber>
17380       </fixedLine>
17381       <mobile>
17382         <nationalNumberPattern>38\d{4}</nationalNumberPattern>
17383         <exampleNumber>381234</exampleNumber>
17384       </mobile>
17385       <emergency>
17386         <!-- http://www.discovernorfolkisland.com/norfolk/ -->
17387         <nationalNumberPattern>
17388           9(?:
17389             11|
17390             55|
17391             77
17392           )
17393         </nationalNumberPattern>
17394         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17395         <exampleNumber>911</exampleNumber>
17396       </emergency>
17397     </territory>
17398
17399     <!-- Nigeria -->
17400     <!-- http://www.itu.int/oth/T020200009C/en -->
17401     <territory id="NG" countryCode="234" internationalPrefix="009"
17402                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17403       <availableFormats>
17404         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
17405           <leadingDigits>[129]</leadingDigits>
17406           <format>$1 $2 $3</format>
17407         </numberFormat>
17408         <numberFormat pattern="([3-8]\d)(\d{3})(\d{2,3})">
17409           <leadingDigits>
17410             [3-6]|
17411             7(?:
17412               [1-79]|
17413               0[1-9]
17414             )|
17415             8[2-9]
17416           </leadingDigits>
17417           <format>$1 $2 $3</format>
17418         </numberFormat>
17419         <numberFormat pattern="([78]\d{2})(\d{3})(\d{3,4})">
17420           <leadingDigits>
17421             70|
17422             8[01]
17423           </leadingDigits>
17424           <format>$1 $2 $3</format>
17425         </numberFormat>
17426         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17427           <leadingDigits>[78]00</leadingDigits>
17428           <format>$1 $2 $3</format>
17429         </numberFormat>
17430         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
17431           <leadingDigits>[78]00</leadingDigits>
17432           <format>$1 $2 $3</format>
17433         </numberFormat>
17434         <numberFormat pattern="(78)(\d{2})(\d{3})">
17435           <leadingDigits>78</leadingDigits>
17436           <format>$1 $2 $3</format>
17437         </numberFormat>
17438       </availableFormats>
17439       <generalDesc>
17440         <nationalNumberPattern>
17441           [1-69]\d{5,8}|
17442           [78]\d{5,13}
17443         </nationalNumberPattern>
17444         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
17445       </generalDesc>
17446       <fixedLine>
17447         <nationalNumberPattern>
17448           [12]\d{6,7}|
17449           9\d{7}|
17450           (?:
17451             3\d|
17452             4[023568]|
17453             5[02368]|
17454             6[02-469]|
17455             7[4-69]|
17456             8[2-9]
17457           )\d{6}|
17458           (?:
17459             4[47]|
17460             5[14579]|
17461             6[1578]|
17462             7[0-357]
17463           )\d{5,6}|
17464           (?:
17465             78|
17466             41
17467           )\d{5}
17468         </nationalNumberPattern>
17469         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
17470         <exampleNumber>12345678</exampleNumber>
17471       </fixedLine>
17472       <mobile>
17473         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17474              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17475              Starcomms have apparently, according to the company, been used for mobile numbers too,
17476              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17477              -->
17478         <nationalNumberPattern>
17479           (?:
17480             1(?:
17481               7[34]\d|
17482               8(?:
17483                 04|
17484                 [124579]\d|
17485                 8[0-3]
17486               )|
17487               95\d
17488             )|
17489             287[0-7]|
17490             3(?:
17491               18[1-8]|
17492               88[0-7]|
17493               9(?:
17494                 8[5-9]|
17495                 6[1-5]
17496               )
17497             )|
17498             4(?:
17499               28[0-2]|
17500               6(?:
17501                 7[1-9]|
17502                 8[02-47]
17503               )|
17504               88[0-2]
17505             )|
17506             5(?:
17507               2(?:
17508                 7[7-9]|
17509                 8\d
17510               )|
17511               38[1-79]|
17512               48[0-7]|
17513               68[4-7]
17514             )|
17515             6(?:
17516               2(?:
17517                 7[7-9]|
17518                 8\d
17519               )|
17520               4(?:
17521                 3[7-9]|
17522                 [68][129]|
17523                 7[04-69]|
17524                 9[1-8]
17525               )|
17526               58[0-2]|
17527               98[7-9]
17528             )|
17529             7(?:
17530               38[0-7]|
17531               69[1-8]|
17532               78[2-4]
17533             )|
17534             8(?:
17535               28[3-9]|
17536               38[0-2]|
17537               4(?:
17538                 2[12]|
17539                 3[147-9]|
17540                 5[346]|
17541                 7[4-9]|
17542                 8[014-689]|
17543                 90
17544               )|
17545               58[1-8]|
17546               78[2-9]|
17547               88[5-7]
17548             )|
17549             98[07]\d
17550           )\d{4}|
17551           (?:
17552             70(?:
17553               [13-9]\d|
17554               2[1-9]
17555             )|
17556             8(?:
17557               0[2-9]|
17558               1\d
17559             )\d
17560           )\d{6}
17561         </nationalNumberPattern>
17562         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17563         <exampleNumber>8021234567</exampleNumber>
17564       </mobile>
17565       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
17566       <tollFree>
17567         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
17568         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17569         <exampleNumber>80017591759</exampleNumber>
17570       </tollFree>
17571       <uan>
17572         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
17573         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17574         <exampleNumber>7001234567</exampleNumber>
17575       </uan>
17576       <emergency>
17577         <nationalNumberPattern>199</nationalNumberPattern>
17578         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17579         <exampleNumber>199</exampleNumber>
17580       </emergency>
17581     </territory>
17582
17583     <!-- Nicaragua -->
17584     <!-- http://www.itu.int/oth/T020200009A/en -->
17585     <territory id="NI" countryCode="505" internationalPrefix="00">
17586       <availableFormats>
17587         <numberFormat pattern="(\d{4})(\d{4})">
17588           <format>$1 $2</format>
17589         </numberFormat>
17590       </availableFormats>
17591       <generalDesc>
17592         <nationalNumberPattern>[128]\d{7}</nationalNumberPattern>
17593         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17594       </generalDesc>
17595       <fixedLine>
17596         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
17597         <exampleNumber>21234567</exampleNumber>
17598       </fixedLine>
17599       <mobile>
17600         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
17601         <exampleNumber>81234567</exampleNumber>
17602       </mobile>
17603       <tollFree>
17604         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
17605         <exampleNumber>18001234</exampleNumber>
17606       </tollFree>
17607       <emergency>
17608         <nationalNumberPattern>118</nationalNumberPattern>
17609         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17610         <exampleNumber>118</exampleNumber>
17611       </emergency>
17612     </territory>
17613
17614     <!-- Netherlands -->
17615     <!-- http://en.wikipedia.org/wiki/%2B31 -->
17616     <!-- http://www.opta.nl/en/numbers/search-for-numbers -->
17617     <territory id="NL" countryCode="31" internationalPrefix="00"
17618                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17619       <availableFormats>
17620         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
17621           <leadingDigits>
17622             1[035]|
17623             2[0346]|
17624             3[03568]|
17625             4[0356]|
17626             5[0358]|
17627             7|
17628             8[4578]
17629           </leadingDigits>
17630           <format>$1 $2 $3</format>
17631         </numberFormat>
17632         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
17633           <leadingDigits>
17634             1[16-8]|
17635             2[259]|
17636             3[124]|
17637             4[17-9]|
17638             5[124679]
17639           </leadingDigits>
17640           <format>$1 $2 $3</format>
17641         </numberFormat>
17642         <numberFormat pattern="(6)(\d{8})">
17643           <leadingDigits>6[0-57-9]</leadingDigits>
17644           <format>$1 $2</format>
17645         </numberFormat>
17646         <numberFormat pattern="(66)(\d{7})">
17647           <leadingDigits>66</leadingDigits>
17648           <format>$1 $2</format>
17649         </numberFormat>
17650         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
17651           <leadingDigits>14</leadingDigits>
17652           <format>$1 $2</format>
17653         </numberFormat>
17654         <numberFormat pattern="([89]0\d)(\d{4,7})">
17655           <leadingDigits>
17656             80|
17657             9
17658           </leadingDigits>
17659           <format>$1 $2</format>
17660         </numberFormat>
17661       </availableFormats>
17662       <generalDesc>
17663         <nationalNumberPattern>
17664           1\d{4,8}|
17665           [2-7]\d{8}|
17666           [89]\d{6,9}
17667         </nationalNumberPattern>
17668         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
17669       </generalDesc>
17670       <noInternationalDialling>
17671         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
17672         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17673       </noInternationalDialling>
17674       <fixedLine>
17675         <nationalNumberPattern>
17676           (?:
17677             1[0135-8]|
17678             2[02-69]|
17679             3[0-68]|
17680             4[0135-9]|
17681             [57]\d|
17682             8[478]
17683           )\d{7}
17684         </nationalNumberPattern>
17685         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17686         <exampleNumber>101234567</exampleNumber>
17687       </fixedLine>
17688       <mobile>
17689         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
17690         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17691         <exampleNumber>612345678</exampleNumber>
17692       </mobile>
17693       <pager>
17694         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
17695         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17696         <exampleNumber>662345678</exampleNumber>
17697       </pager>
17698       <tollFree>
17699         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
17700         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17701         <exampleNumber>8001234</exampleNumber>
17702       </tollFree>
17703       <premiumRate>
17704         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
17705         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17706         <exampleNumber>9001234</exampleNumber>
17707       </premiumRate>
17708       <voip>
17709         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
17710         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17711         <exampleNumber>851234567</exampleNumber>
17712       </voip>
17713       <uan>
17714         <!-- These numbers are used for local government. They are formed by the appending the local
17715              dialling code (including the national prefix 0) after the leading digits "14". -->
17716         <nationalNumberPattern>
17717           140(?:
17718             1(?:
17719               [035]|
17720               [16-8]\d
17721             )|
17722             2(?:
17723               [0346]|
17724               [259]\d
17725             )|
17726             3(?:
17727               [03568]|
17728               [124]\d
17729             )|
17730             4(?:
17731               [0356]|
17732               [17-9]\d
17733             )|
17734             5(?:
17735               [0358]|
17736               [124679]\d
17737             )|
17738             7\d|
17739             8[458]
17740           )
17741         </nationalNumberPattern>
17742         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17743         <exampleNumber>14020</exampleNumber>
17744       </uan>
17745       <emergency>
17746         <nationalNumberPattern>
17747           112|
17748           911
17749         </nationalNumberPattern>
17750         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17751         <exampleNumber>112</exampleNumber>
17752       </emergency>
17753     </territory>
17754
17755     <!-- Norway -->
17756     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
17757     <!-- http://www.npt.no/npt/numsys/E.164.pdf -->
17758     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
17759                mainCountryForCode="true">
17760       <availableFormats>
17761         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
17762           <leadingDigits>[489]</leadingDigits>
17763           <format>$1 $2 $3</format>
17764         </numberFormat>
17765         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
17766           <leadingDigits>[235-7]</leadingDigits>
17767           <format>$1 $2 $3 $4</format>
17768         </numberFormat>
17769       </availableFormats>
17770       <generalDesc>
17771         <nationalNumberPattern>
17772           0\d{4}|
17773           [2-9]\d{7}
17774         </nationalNumberPattern>
17775         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
17776       </generalDesc>
17777       <fixedLine>
17778         <!-- Excludes Svalbard fixed-line numbers. -->
17779         <nationalNumberPattern>
17780           (?:
17781             2[1-4]|
17782             3[1-3578]|
17783             5[1-35-7]|
17784             6[1-4679]|
17785             7[0-8]
17786           )\d{6}
17787         </nationalNumberPattern>
17788         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17789         <exampleNumber>21234567</exampleNumber>
17790       </fixedLine>
17791       <mobile>
17792         <nationalNumberPattern>
17793           (?:
17794             4[015-8]|
17795             5[89]|
17796             9\d
17797           )\d{6}
17798         </nationalNumberPattern>
17799         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17800         <exampleNumber>41234567</exampleNumber>
17801       </mobile>
17802       <tollFree>
17803         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
17804         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17805         <exampleNumber>80012345</exampleNumber>
17806       </tollFree>
17807       <premiumRate>
17808         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
17809         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17810         <exampleNumber>82012345</exampleNumber>
17811       </premiumRate>
17812       <sharedCost>
17813         <nationalNumberPattern>
17814           810(?:
17815             0[0-6]|
17816             [2-8]\d
17817           )\d{3}
17818         </nationalNumberPattern>
17819         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17820         <exampleNumber>81021234</exampleNumber>
17821       </sharedCost>
17822       <personalNumber>
17823         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
17824         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17825         <exampleNumber>88012345</exampleNumber>
17826       </personalNumber>
17827       <voip>
17828         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
17829         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17830         <exampleNumber>85012345</exampleNumber>
17831       </voip>
17832       <uan>
17833         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
17834         <nationalNumberPattern>
17835           0\d{4}|
17836           81(?:
17837             0(?:
17838               0[7-9]|
17839               1\d
17840             )|
17841             5\d{2}
17842           )\d{3}
17843         </nationalNumberPattern>
17844         <exampleNumber>01234</exampleNumber>
17845       </uan>
17846       <voicemail>
17847         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
17848         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17849         <exampleNumber>81212345</exampleNumber>
17850       </voicemail>
17851       <emergency>
17852         <nationalNumberPattern>11[023]</nationalNumberPattern>
17853         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17854         <exampleNumber>112</exampleNumber>
17855       </emergency>
17856     </territory>
17857
17858     <!-- Nepal -->
17859     <!-- http://www.itu.int/oth/T0202000095/en -->
17860     <!-- http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php -->
17861     <territory id="NP" countryCode="977" internationalPrefix="00"
17862                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17863       <availableFormats>
17864         <!-- Formatting patterns taken from pages like www.nepalgov.gov.np -->
17865         <numberFormat pattern="(1)(\d{7})">
17866           <leadingDigits>1[2-6]</leadingDigits>
17867           <format>$1-$2</format>
17868         </numberFormat>
17869         <numberFormat pattern="(\d{2})(\d{6})">
17870           <leadingDigits>
17871             1[01]|
17872             [2-8]|
17873             9(?:
17874               [1-69]|
17875               7[15-9]
17876             )
17877           </leadingDigits>
17878           <format>$1-$2</format>
17879         </numberFormat>
17880         <numberFormat pattern="(9\d{2})(\d{7})">
17881           <leadingDigits>
17882             9(?:
17883               7[45]|
17884               8
17885             )
17886             </leadingDigits>
17887           <format>$1-$2</format>
17888         </numberFormat>
17889       </availableFormats>
17890       <generalDesc>
17891         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
17892              numbers that have the country code prefixed. -->
17893         <nationalNumberPattern>
17894           [1-8]\d{7}|
17895           9(?:
17896             [1-69]\d{6}|
17897             7[2-6]\d{5,7}|
17898             8\d{8}
17899           )
17900         </nationalNumberPattern>
17901         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17902       </generalDesc>
17903       <fixedLine>
17904         <!-- Added (1) 2XXXXXX and (88) from numbers found online. -->
17905         <nationalNumberPattern>
17906           (?:
17907             1[0124-6]|
17908             2[13-79]|
17909             3[135-8]|
17910             4[146-9]|
17911             5[135-7]|
17912             6[13-9]|
17913             7[15-9]|
17914             8[1-46-9]|
17915             9[1-79]
17916           )\d{6}
17917         </nationalNumberPattern>
17918         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
17919         <exampleNumber>14567890</exampleNumber>
17920       </fixedLine>
17921       <!-- There is no definitive source of information for mobile numbers in Nepal. The infomation
17922            here is collected by searching the Internet. -->
17923       <mobile>
17924         <nationalNumberPattern>
17925           9(?:
17926             7[45]|
17927             8[0145]
17928           )\d{7}
17929         </nationalNumberPattern>
17930         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17931         <exampleNumber>9841234567</exampleNumber>
17932       </mobile>
17933       <!-- No information on other types of phone numbers for Nepal has been found. -->
17934       <emergency>
17935         <nationalNumberPattern>
17936           1(?:
17937             0[0-3]|
17938             12
17939           )
17940         </nationalNumberPattern>
17941         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17942         <exampleNumber>112</exampleNumber>
17943       </emergency>
17944     </territory>
17945
17946     <!-- Nauru -->
17947     <!-- http://www.itu.int/oth/T0202000094/en -->
17948     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru -->
17949     <territory id="NR" countryCode="674" internationalPrefix="00">
17950       <availableFormats>
17951         <numberFormat pattern="(\d{3})(\d{4})">
17952           <format>$1 $2</format>
17953         </numberFormat>
17954       </availableFormats>
17955       <generalDesc>
17956         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
17957         <possibleNumberPattern>\d{7}</possibleNumberPattern>
17958       </generalDesc>
17959       <fixedLine>
17960         <nationalNumberPattern>
17961           (?:
17962             444|
17963             888
17964           )\d{4}
17965         </nationalNumberPattern>
17966         <exampleNumber>4441234</exampleNumber>
17967       </fixedLine>
17968       <mobile>
17969         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
17970         <exampleNumber>5551234</exampleNumber>
17971       </mobile>
17972       <emergency>
17973         <nationalNumberPattern>11[0-2]</nationalNumberPattern>
17974         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17975         <exampleNumber>110</exampleNumber>
17976       </emergency>
17977     </territory>
17978
17979     <!-- Niue -->
17980     <!-- http://www.itu.int/oth/T02020000EC/en -->
17981     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue -->
17982     <territory id="NU" countryCode="683" internationalPrefix="00">
17983       <!-- Numbers are always formatted as a block. -->
17984       <generalDesc>
17985         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
17986         <possibleNumberPattern>\d{4}</possibleNumberPattern>
17987       </generalDesc>
17988       <fixedLine>
17989         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
17990         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
17991         <exampleNumber>4002</exampleNumber>
17992       </fixedLine>
17993       <mobile>
17994         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
17995         <exampleNumber>1234</exampleNumber>
17996       </mobile>
17997       <emergency>
17998         <nationalNumberPattern>999</nationalNumberPattern>
17999         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18000         <exampleNumber>999</exampleNumber>
18001       </emergency>
18002     </territory>
18003
18004     <!-- New Zealand -->
18005     <!-- http://www.itu.int/oth/T0202000099/en -->
18006     <!-- Includes Ross Dependency, Antarctica -->
18007     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
18008          numbers and 050 "Nation-Wide Service". -->
18009     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
18010                preferredInternationalPrefix="00" nationalPrefix="0"
18011                nationalPrefixFormattingRule="$NP$FG">
18012       <availableFormats>
18013         <!-- Pattern for fixed-line formats. -->
18014         <numberFormat pattern="([34679])(\d{3})(\d{4})">
18015           <leadingDigits>
18016             [3467]|
18017             9[1-9]
18018           </leadingDigits>
18019           <format>$1-$2 $3</format>
18020         </numberFormat>
18021         <!-- Area code for NZ's Scott Base, in Antarctica. -->
18022         <numberFormat pattern="(24099)(\d{3})">
18023           <leadingDigits>240</leadingDigits>
18024           <leadingDigits>2409</leadingDigits>
18025           <leadingDigits>24099</leadingDigits>
18026           <format>$1 $2</format>
18027         </numberFormat>
18028         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
18029              length. -->
18030         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
18031         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
18032           <leadingDigits>21</leadingDigits>
18033           <format>$1 $2 $3</format>
18034         </numberFormat>
18035         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
18036         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
18037           <leadingDigits>
18038             2(?:
18039               1[1-9]|
18040               [69]|
18041               7[0-35-9]
18042             )|
18043             86
18044           </leadingDigits>
18045           <format>$1 $2 $3</format>
18046         </numberFormat>
18047         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
18048              than writing the first group as 022X based on Google web searches, and is used by
18049              2Degrees themselves. See formatting on www.2degreesmobile.co.nz for an example of the
18050              latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
18051         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
18052           <leadingDigits>2[028]</leadingDigits>
18053           <format>$1 $2 $3</format>
18054         </numberFormat>
18055         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
18056           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900.  -->
18057           <leadingDigits>
18058             2(?:
18059               10|
18060               74
18061             )|
18062             5|
18063             [89]0
18064           </leadingDigits>
18065           <format>$1 $2 $3</format>
18066         </numberFormat>
18067       </availableFormats>
18068       <generalDesc>
18069         <nationalNumberPattern>
18070           6[235-9]\d{6}|
18071           [2-57-9]\d{7,10}
18072         </nationalNumberPattern>
18073         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
18074       </generalDesc>
18075       <fixedLine>
18076         <!-- 07 788 was assigned to Voxbox according to
18077              http://www.nad.org.nz/07GeographicalCodes.php -->
18078         <nationalNumberPattern>
18079           (?:
18080             3[2-79]|
18081             [49][2-689]|
18082             6[235-9]|
18083             7[2-5789]
18084           )\d{6}|
18085           24099\d{3}
18086         </nationalNumberPattern>
18087         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18088         <exampleNumber>32345678</exampleNumber>
18089       </fixedLine>
18090       <mobile>
18091         <!-- Includes mobile radio service numbers (e.g. TeamTalk). -->
18092         <nationalNumberPattern>
18093           2(?:
18094             [028]\d{7,8}|
18095             1(?:
18096               0\d{5,7}|
18097               [12]\d{5,6}|
18098               [3-9]\d{5}
18099             )|
18100             [79]\d{7}
18101           )
18102         </nationalNumberPattern>
18103         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
18104         <exampleNumber>211234567</exampleNumber>
18105       </mobile>
18106       <pager>
18107         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
18108         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
18109         <exampleNumber>26123456</exampleNumber>
18110       </pager>
18111       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
18112            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
18113            not covered, as telecom companies don't seem to support them yet. -->
18114       <tollFree>
18115         <nationalNumberPattern>
18116           508\d{6,7}|
18117           80\d{6,8}
18118         </nationalNumberPattern>
18119         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
18120         <exampleNumber>800123456</exampleNumber>
18121       </tollFree>
18122       <premiumRate>
18123         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
18124         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
18125         <exampleNumber>900123456</exampleNumber>
18126       </premiumRate>
18127       <emergency>
18128         <nationalNumberPattern>111</nationalNumberPattern>
18129         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18130         <exampleNumber>111</exampleNumber>
18131       </emergency>
18132     </territory>
18133
18134     <!-- Oman -->
18135     <!-- http://www.itu.int/oth/T020200009F/en -->
18136     <territory id="OM" countryCode="968" internationalPrefix="00" >
18137       <availableFormats>
18138         <numberFormat pattern="(2\d)(\d{6})">
18139           <leadingDigits>2</leadingDigits>
18140           <format>$1 $2</format>
18141         </numberFormat>
18142         <numberFormat pattern="(9\d{3})(\d{4})">
18143           <leadingDigits>9</leadingDigits>
18144           <format>$1 $2</format>
18145         </numberFormat>
18146         <numberFormat pattern="([58]00)(\d{4,6})">
18147           <leadingDigits>[58]</leadingDigits>
18148           <format>$1 $2</format>
18149         </numberFormat>
18150       </availableFormats>
18151       <generalDesc>
18152         <nationalNumberPattern>
18153           (?:
18154             2[2-6]|
18155             5|
18156             9[1-9]
18157           )\d{6}|
18158           800\d{5,6}
18159         </nationalNumberPattern>
18160         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
18161       </generalDesc>
18162       <fixedLine>
18163         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
18164         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18165         <exampleNumber>23123456</exampleNumber>
18166       </fixedLine>
18167       <mobile>
18168         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
18169         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18170         <exampleNumber>92123456</exampleNumber>
18171       </mobile>
18172       <tollFree>
18173         <!-- Link to document about toll-free numbers on www.tra.gov.om, which suggests they should
18174              be 8007 followed by 4 digits. However, the only examples I can find, including the
18175              customer help line for the main telephony company there (omantel), is 8007 followed by
18176              5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to offer
18177              international toll-free dialing numbers - +968 500 1300 for international help desk for
18178              omantel, for example. -->
18179         <nationalNumberPattern>
18180           8007\d{4,5}|
18181           500\d{4}
18182         </nationalNumberPattern>
18183         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
18184         <exampleNumber>80071234</exampleNumber>
18185       </tollFree>
18186       <!-- No premiumRate information can be found. -->
18187       <emergency>
18188         <nationalNumberPattern>9999</nationalNumberPattern>
18189         <possibleNumberPattern>\d{4}</possibleNumberPattern>
18190         <exampleNumber>9999</exampleNumber>
18191       </emergency>
18192     </territory>
18193
18194     <!-- Panama -->
18195     <!-- http://www.asep.gob.pa/telecom/pnn/default.asp - last read Jan 17th 2013. -->
18196     <!-- http://en.wikipedia.org/wiki/%2B507 - although it omits the fact that mobile phones are 8
18197          digits long. -->
18198     <territory id="PA" countryCode="507" internationalPrefix="00">
18199       <availableFormats>
18200         <numberFormat pattern="(\d{3})(\d{4})">
18201           <leadingDigits>[1-57-9]</leadingDigits>
18202           <format>$1-$2</format>
18203         </numberFormat>
18204         <numberFormat pattern="(\d{4})(\d{4})">
18205           <leadingDigits>6</leadingDigits>
18206           <format>$1-$2</format>
18207         </numberFormat>
18208       </availableFormats>
18209       <generalDesc>
18210         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18211         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18212       </generalDesc>
18213       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
18214            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
18215       <fixedLine>
18216         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
18217              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
18218         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
18219              proved to be diallable. -->
18220         <nationalNumberPattern>
18221           (?:
18222             1(?:
18223               0[02-579]|
18224               19|
18225               2[37]|
18226               3[03]|
18227               4[479]|
18228               57|
18229               65|
18230               7[016-8]|
18231               8[58]|
18232               9[134]
18233             )|
18234             2(?:
18235               [0235679]\d|
18236               1[0-7]|
18237               4[04-9]|
18238               8[028]
18239             )|
18240             3(?:
18241               0[0-7]|
18242               1[14-7]|
18243               2[0-3]|
18244               3[03]|
18245               4[0457]|
18246               5[56]|
18247               6[068]|
18248               7[078]|
18249               80|
18250               9\d
18251             )|
18252             4(?:
18253               3[013-59]|
18254               4\d|
18255               7[0-689]
18256             )|
18257             5(?:
18258               [01]\d|
18259               2[0-7]|
18260               [56]0|
18261               79
18262             )|
18263             7(?:
18264               0[09]|
18265               2[0-267]|
18266               [349]0|
18267               5[6-9]|
18268               7[0-24-7]|
18269               8[89]
18270             )|
18271             8(?:
18272               [34]\d|
18273               5[0-4]|
18274               8[02]
18275             )|
18276             9(?:
18277               0[78]|
18278               1[0178]|
18279               2[0378]|
18280               3[379]|
18281               40|
18282               5[0489]|
18283               6[06-9]|
18284               7[046-9]|
18285               8[36-8]|
18286               9[1-9]
18287             )
18288           )\d{4}
18289         </nationalNumberPattern>
18290         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18291         <exampleNumber>2001234</exampleNumber>
18292       </fixedLine>
18293       <mobile>
18294         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
18295              service "210", "Servicio de Busca Personas". -->
18296         <nationalNumberPattern>
18297           (?:
18298             1[16]1|
18299             21[89]|
18300             8(?:
18301               1[01]|
18302               7[23]
18303             )
18304           )\d{4}|
18305           6(?:
18306             [04-9]\d|
18307             1[0-5]|
18308             2[0-7]|
18309             3[5-9]
18310           )\d{5}
18311         </nationalNumberPattern>
18312         <exampleNumber>60012345</exampleNumber>
18313       </mobile>
18314       <tollFree>
18315         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
18316         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18317         <exampleNumber>8001234</exampleNumber>
18318       </tollFree>
18319       <premiumRate>
18320         <!-- Value-added services are represented as "400" in the plan. -->
18321         <nationalNumberPattern>
18322           (?:
18323             779|
18324             8(?:
18325               2[235]|
18326               55|
18327               60|
18328               7[578]|
18329               86|
18330               95
18331             )|
18332             9(?:
18333               0[0-2]|
18334               81
18335             )
18336           )\d{4}
18337         </nationalNumberPattern>
18338         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18339         <exampleNumber>8601234</exampleNumber>
18340       </premiumRate>
18341       <emergency>
18342         <nationalNumberPattern>911</nationalNumberPattern>
18343         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18344         <exampleNumber>911</exampleNumber>
18345       </emergency>
18346     </territory>
18347
18348     <!-- Peru -->
18349     <!-- http://www.itu.int/oth/T02020000A6/en -->
18350     <!-- http://en.wikipedia.org/wiki/+51 -->
18351     <!-- http://www.assistbook.com/South%20America/Peru/widecodes -->
18352     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
18353                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18354                preferredExtnPrefix=" Anexo ">
18355       <availableFormats>
18356         <numberFormat pattern="(1)(\d{7})">
18357           <leadingDigits>1</leadingDigits>
18358           <format>$1 $2</format>
18359         </numberFormat>
18360         <numberFormat pattern="([4-8]\d)(\d{6})">
18361           <leadingDigits>
18362             [4-7]|
18363             8[2-4]
18364           </leadingDigits>
18365           <format>$1 $2</format>
18366         </numberFormat>
18367         <numberFormat pattern="(\d{3})(\d{5})">
18368           <leadingDigits>80</leadingDigits>
18369           <format>$1 $2</format>
18370         </numberFormat>
18371         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
18372         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
18373                       nationalPrefixFormattingRule="$FG">
18374           <leadingDigits>9</leadingDigits>
18375           <format>$1 $2 $3</format>
18376         </numberFormat>
18377       </availableFormats>
18378       <generalDesc>
18379         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
18380         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18381       </generalDesc>
18382       <fixedLine>
18383         <nationalNumberPattern>
18384           (?:
18385             1\d|
18386             4[1-4]|
18387             5[1-46]|
18388             6[1-7]|
18389             7[2-46]|
18390             8[2-4]
18391           )\d{6}
18392         </nationalNumberPattern>
18393         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
18394         <exampleNumber>11234567</exampleNumber>
18395       </fixedLine>
18396       <mobile>
18397         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
18398         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18399         <exampleNumber>912345678</exampleNumber>
18400       </mobile>
18401       <tollFree>
18402         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18403         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18404         <exampleNumber>80012345</exampleNumber>
18405       </tollFree>
18406       <premiumRate>
18407         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
18408         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18409         <exampleNumber>80512345</exampleNumber>
18410       </premiumRate>
18411       <sharedCost>
18412         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
18413         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18414         <exampleNumber>80112345</exampleNumber>
18415       </sharedCost>
18416       <personalNumber>
18417         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
18418         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18419         <exampleNumber>80212345</exampleNumber>
18420       </personalNumber>
18421       <emergency>
18422         <nationalNumberPattern>
18423           1(?:
18424             05|
18425             1[67]
18426           )
18427         </nationalNumberPattern>
18428         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18429         <exampleNumber>105</exampleNumber>
18430       </emergency>
18431     </territory>
18432
18433     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
18434     <!-- http://www.itu.int/oth/T020200004D/en -->
18435     <territory id="PF" countryCode="689" internationalPrefix="00">
18436       <availableFormats>
18437         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
18438           <leadingDigits>89</leadingDigits>
18439           <format>$1 $2 $3 $4</format>
18440         </numberFormat>
18441         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
18442           <format>$1 $2 $3</format>
18443         </numberFormat>
18444       </availableFormats>
18445       <generalDesc>
18446         <nationalNumberPattern>
18447           [2-79]\d{5}|
18448           8\d{5,7}
18449         </nationalNumberPattern>
18450         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
18451       </generalDesc>
18452       <noInternationalDialling>
18453         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
18454         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18455         <exampleNumber>441234</exampleNumber>
18456       </noInternationalDialling>
18457       <fixedLine>
18458         <!-- Includes "voice-server" prefixes and pay-phone. The 41 range has been made more
18459              specific to exclude Mobile MSRN. -->
18460         <nationalNumberPattern>
18461           (?:
18462             4(?:
18463               [02-9]\d|
18464               1[02-9]
18465             )|
18466             [5689]\d{2}
18467           )\d{3}
18468         </nationalNumberPattern>
18469         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18470         <exampleNumber>401234</exampleNumber>
18471       </fixedLine>
18472       <mobile>
18473         <nationalNumberPattern>
18474           (?:
18475             [27]\d{2}|
18476             3[0-79]\d|
18477             411|
18478             89\d{3}
18479           )\d{3}
18480         </nationalNumberPattern>
18481         <exampleNumber>212345</exampleNumber>
18482       </mobile>
18483       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
18484       <emergency>
18485         <nationalNumberPattern>1[578]</nationalNumberPattern>
18486         <possibleNumberPattern>\d{2}</possibleNumberPattern>
18487         <exampleNumber>15</exampleNumber>
18488       </emergency>
18489     </territory>
18490
18491     <!-- Papua New Guinea -->
18492     <!-- http://www.itu.int/oth/T02020000A4/en -->
18493     <!-- http://en.wikipedia.org/wiki/%2B675 -->
18494     <territory id="PG" countryCode="675" internationalPrefix="00">
18495       <availableFormats>
18496         <numberFormat pattern="(\d{3})(\d{4})">
18497           <leadingDigits>[1-689]</leadingDigits>
18498           <format>$1 $2</format>
18499         </numberFormat>
18500         <numberFormat pattern="(7\d{2})(\d{2})(\d{3})">
18501           <leadingDigits>7</leadingDigits>
18502           <format>$1 $2 $3</format>
18503         </numberFormat>
18504       </availableFormats>
18505       <generalDesc>
18506         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18507         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18508       </generalDesc>
18509       <fixedLine>
18510         <!-- Fixed line patterns are from the numbering plan, with additions for 4XX since many
18511              numbers in the yellow pages seem to be outside the 47X range prescribed by the plan.
18512              The same applies to extra 64X numbers. -->
18513         <nationalNumberPattern>
18514           (?:
18515             3\d{2}|
18516             4[257]\d|
18517             5[34]\d|
18518             6(?:
18519               29|
18520               4[1-9]
18521             )|
18522             85[02-46-9]|
18523             9[78]\d
18524           )\d{4}
18525         </nationalNumberPattern>
18526         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18527         <exampleNumber>3123456</exampleNumber>
18528       </fixedLine>
18529       <mobile>
18530         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
18531              Wikipedia and 730 from online numbers. The prefix 70X is added since open-source users
18532              have reported it as now being in use, although no real numbers can be found as of yet.
18533              -->
18534         <nationalNumberPattern>
18535           (?:
18536             68|
18537             7[0-36]\d
18538           )\d{5}
18539         </nationalNumberPattern>
18540         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18541         <exampleNumber>6812345</exampleNumber>
18542       </mobile>
18543       <tollFree>
18544         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
18545         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18546         <exampleNumber>1801234</exampleNumber>
18547       </tollFree>
18548       <voip>
18549         <!-- VSAT prefixes are here. -->
18550         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
18551         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18552         <exampleNumber>2751234</exampleNumber>
18553       </voip>
18554       <emergency>
18555         <!-- http://www.pngbd.com/emergency.php has been used, excluding fixed-line phone-numbers.
18556              -->
18557         <nationalNumberPattern>000</nationalNumberPattern>
18558         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18559         <exampleNumber>000</exampleNumber>
18560       </emergency>
18561     </territory>
18562
18563     <!-- Philippines -->
18564     <!-- http://en.wikipedia.org/wiki/%2B63 -->
18565   <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
18566     <availableFormats>
18567       <!--Area code separated from number. Area codes found here:
18568       http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
18569       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18570         pattern="(2)(\d{3})(\d{4})">
18571         <leadingDigits>2</leadingDigits>
18572         <format>$1 $2 $3</format>
18573       </numberFormat>
18574       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18575         pattern="(2)(\d{5})">
18576         <leadingDigits>2</leadingDigits>
18577         <format>$1 $2</format>
18578       </numberFormat>
18579       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18580         pattern="(\d{4})(\d{4,6})">
18581         <leadingDigits>
18582           3(?:
18583             23|
18584             39|
18585             46
18586           )|
18587           4(?:
18588             2[3-6]|
18589             [35]9|
18590             4[26]|
18591             76
18592           )|
18593           5(?:
18594             22|
18595             44
18596           )|
18597           642|
18598           8(?:
18599             62|
18600             8[245]
18601           )
18602         </leadingDigits>
18603         <leadingDigits>
18604           3(?:
18605             230|
18606             397|
18607             461
18608           )|
18609           4(?:
18610             2(?:
18611               35|
18612               [46]4|
18613               51
18614             )|
18615             396|
18616             4(?:
18617               22|
18618               63
18619             )|
18620             59[347]|
18621             76[15]
18622           )|
18623           5(?:
18624             221|
18625             446
18626           )|
18627           642[23]|
18628           8(?:
18629             622|
18630             8(?:
18631               [24]2|
18632               5[13]
18633             )
18634           )
18635         </leadingDigits>
18636         <format>$1 $2</format>
18637       </numberFormat>
18638       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18639         pattern="(\d{5})(\d{4})">
18640         <leadingDigits>
18641           346|
18642           4(?:
18643             27|
18644             9[35]
18645           )|
18646           883
18647         </leadingDigits>
18648         <leadingDigits>
18649           3469|
18650           4(?:
18651             279|
18652             9(?:
18653               30|
18654               56
18655             )
18656           )|
18657           8834
18658         </leadingDigits>
18659         <format>$1 $2</format>
18660       </numberFormat>
18661       <!-- This rule is a fallback for the more specific area codes. -->
18662       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18663         pattern="([3-8]\d)(\d{3})(\d{4})">
18664         <leadingDigits>[3-8]</leadingDigits>
18665         <format>$1 $2 $3</format>
18666       </numberFormat>
18667       <numberFormat nationalPrefixFormattingRule="$NP$FG"
18668         pattern="(\d{3})(\d{3})(\d{4})">
18669         <leadingDigits>
18670           81|
18671           9
18672         </leadingDigits>
18673         <format>$1 $2 $3</format>
18674       </numberFormat>
18675       <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
18676       <numberFormat pattern="(1800)(\d{3})(\d{4})">
18677         <leadingDigits>1</leadingDigits>
18678         <format>$1 $2 $3</format>
18679       </numberFormat>
18680       <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
18681         <leadingDigits>1</leadingDigits>
18682         <format>$1 $2 $3 $4</format>
18683       </numberFormat>
18684     </availableFormats>
18685     <generalDesc>
18686       <nationalNumberPattern>
18687         2\d{5,7}|
18688         [3-9]\d{7,9}|
18689         1800\d{7,9}
18690       </nationalNumberPattern>
18691       <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
18692     </generalDesc>
18693     <fixedLine>
18694       <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
18695            that have only 5 digits after the area code; plus it seems the 8822 area code is followed
18696            by 6 digits, and 8842 by only 4. -->
18697       <nationalNumberPattern>
18698         2\d{5}(?:\d{2})?|
18699         (?:
18700           3[2-68]|
18701           4[2-9]|
18702           5[2-6]|
18703           6[2-58]|
18704           7[24578]|
18705           8[2-8]
18706         )\d{7}|
18707         88(?:
18708           22\d{6}|
18709           42\d{4}
18710         )
18711       </nationalNumberPattern>
18712       <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
18713       <exampleNumber>21234567</exampleNumber>
18714     </fixedLine>
18715     <mobile>
18716       <nationalNumberPattern>
18717         (?:
18718           81[37]|
18719           9(?:
18720             0[5-9]|
18721             1[025-9]|
18722             2[0-35-9]|
18723             3[02-9]|
18724             4[236-9]|
18725             7[3479]|
18726             89|
18727             9[46-9]
18728           )
18729         )\d{7}
18730       </nationalNumberPattern>
18731       <possibleNumberPattern>\d{10}</possibleNumberPattern>
18732       <exampleNumber>9051234567</exampleNumber>
18733     </mobile>
18734     <!-- Information on toll-free numbers collected from searching the internet -->
18735     <tollFree>
18736       <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
18737       <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
18738       <exampleNumber>180012345678</exampleNumber>
18739     </tollFree>
18740     <!-- No information can be found about other types of numbers (such as premium rate) in the
18741          Philippines. -->
18742     <emergency>
18743       <nationalNumberPattern>
18744         11[27]|
18745         911
18746       </nationalNumberPattern>
18747       <possibleNumberPattern>\d{3}</possibleNumberPattern>
18748       <exampleNumber>117</exampleNumber>
18749     </emergency>
18750   </territory>
18751
18752   <!-- Pakistan -->
18753   <!-- http://www.itu.int/oth/T02020000A1/en -->
18754   <!-- http://en.wikipedia.org/wiki/%2B92 -->
18755     <territory id="PK" countryCode="92" internationalPrefix="00"
18756                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
18757       <availableFormats>
18758         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
18759              formatted nicely by the AYTF. -->
18760         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
18761           <leadingDigits>
18762             (?:
18763               2[125]|
18764               4[0-246-9]|
18765               5[1-35-7]|
18766               6[1-8]|
18767               7[14]|
18768               8[16]|
18769               91
18770             )1
18771           </leadingDigits>
18772           <leadingDigits>
18773             (?:
18774               2[125]|
18775               4[0-246-9]|
18776               5[1-35-7]|
18777               6[1-8]|
18778               7[14]|
18779               8[16]|
18780               91
18781             )11
18782           </leadingDigits>
18783           <leadingDigits>
18784             (?:
18785               2[125]|
18786               4[0-246-9]|
18787               5[1-35-7]|
18788               6[1-8]|
18789               7[14]|
18790               8[16]|
18791               91
18792             )111
18793           </leadingDigits>
18794           <format>$1 $2 $3 $4</format>
18795         </numberFormat>
18796         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
18797           <leadingDigits>
18798             2[349]|
18799             45|
18800             54|
18801             60|
18802             72|
18803             8[2-5]|
18804             9[2-9]
18805           </leadingDigits>
18806           <leadingDigits>
18807             (?:
18808               2[349]|
18809               45|
18810               54|
18811               60|
18812               72|
18813               8[2-5]|
18814               9[2-9]
18815             )\d1
18816           </leadingDigits>
18817           <leadingDigits>
18818             (?:
18819               2[349]|
18820               45|
18821               54|
18822               60|
18823               72|
18824               8[2-5]|
18825               9[2-9]
18826             )\d11
18827           </leadingDigits>
18828           <leadingDigits>
18829             (?:
18830               2[349]|
18831               45|
18832               54|
18833               60|
18834               72|
18835               8[2-5]|
18836               9[2-9]
18837             )\d111
18838           </leadingDigits>
18839           <format>$1 $2 $3 $4</format>
18840         </numberFormat>
18841         <numberFormat pattern="(\d{2})(\d{7,8})">
18842           <leadingDigits>
18843             (?:
18844               2[125]|
18845               4[0-246-9]|
18846               5[1-35-7]|
18847               6[1-8]|
18848               7[14]|
18849               8[16]|
18850               91
18851             )[2-9]
18852           </leadingDigits>
18853           <format>$1 $2</format>
18854         </numberFormat>
18855         <numberFormat pattern="(\d{3})(\d{6,7})">
18856           <leadingDigits>
18857             2[349]|
18858             45|
18859             54|
18860             60|
18861             72|
18862             8[2-5]|
18863             9[2-9]
18864           </leadingDigits>
18865           <leadingDigits>
18866             (?:
18867               2[349]|
18868               45|
18869               54|
18870               60|
18871               72|
18872               8[2-5]|
18873               9[2-9]
18874             )\d[2-9]
18875           </leadingDigits>
18876           <format>$1 $2</format>
18877         </numberFormat>
18878         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
18879           <leadingDigits>3</leadingDigits>
18880           <format>$1 $2</format>
18881         </numberFormat>
18882         <numberFormat pattern="([15]\d{3})(\d{5,6})">
18883           <leadingDigits>
18884             58[12]|
18885             1
18886           </leadingDigits>
18887           <format>$1 $2</format>
18888         </numberFormat>
18889         <!-- This is from online examples. -->
18890         <numberFormat pattern="(586\d{2})(\d{5})">
18891           <leadingDigits>586</leadingDigits>
18892           <format>$1 $2</format>
18893         </numberFormat>
18894         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
18895           <leadingDigits>[89]00</leadingDigits>
18896           <format>$1 $2 $3</format>
18897         </numberFormat>
18898       </availableFormats>
18899       <generalDesc>
18900         <!-- This is horribly complex because the country code is 92, and several area codes start
18901              with 92, and the number length is widely variable. -->
18902         <nationalNumberPattern>
18903           1\d{8}|
18904           [2-8]\d{5,11}|
18905           9(?:
18906             [013-9]\d{4,9}|
18907             2\d(?:
18908               111\d{6}|
18909               \d{3,7}
18910             )
18911           )
18912         </nationalNumberPattern>
18913         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
18914       </generalDesc>
18915       <fixedLine>
18916         <!-- The subscriber number length is not well defined for some area codes. From online
18917              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
18918              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
18919              of Karachi and Lahore (both 8). -->
18920         <nationalNumberPattern>
18921           (?:
18922             21|
18923             42
18924           )[2-9]\d{7}|
18925           (?:
18926             2[25]|
18927             4[0146-9]|
18928             5[1-35-7]|
18929             6[1-8]|
18930             7[14]|
18931             8[16]|
18932             91
18933           )[2-9]\d{6}|
18934           (?:
18935             2(?:
18936               3[2358]|
18937               4[2-4]|
18938               9[2-8]
18939             )|
18940             45[3479]|
18941             54[2-467]|
18942             60[468]|
18943             72[236]|
18944             8(?:
18945               2[2-689]|
18946               3[23578]|
18947               4[3478]|
18948               5[2356]
18949             )|
18950             9(?:
18951               1|
18952               2[2-8]|
18953               3[27-9]|
18954               4[2-6]|
18955               6[3569]|
18956               9[25-8]
18957             )
18958           )[2-9]\d{5,6}|
18959           58[126]\d{7}
18960         </nationalNumberPattern>
18961         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
18962         <exampleNumber>2123456789</exampleNumber>
18963       </fixedLine>
18964       <mobile>
18965         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
18966              can be found online with these prefixes. -->
18967         <nationalNumberPattern>
18968           3(?:
18969             0\d|
18970             1[1-5]|
18971             2[0-5]|
18972             3[1-6]|
18973             4[1-7]|
18974             55|
18975             64
18976           )\d{7}
18977         </nationalNumberPattern>
18978         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18979         <exampleNumber>3012345678</exampleNumber>
18980       </mobile>
18981       <tollFree>
18982         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18983         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18984         <exampleNumber>80012345</exampleNumber>
18985       </tollFree>
18986       <premiumRate>
18987         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
18988         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18989         <exampleNumber>90012345</exampleNumber>
18990       </premiumRate>
18991       <!-- These are referred to as UPT numbers in the plan. -->
18992       <personalNumber>
18993         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
18994         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18995         <!-- The example number here is the test number from the plan. -->
18996         <exampleNumber>122044444</exampleNumber>
18997       </personalNumber>
18998       <uan>
18999         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
19000              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
19001              what type of number they are.  We exclude Azad Jammu, Kashmir and Northern Areas here
19002              since no online example UANs can be found, and they have an "access code" at the start,
19003              making it difficult to guess what a UAN in these areas would look like. -->
19004         <nationalNumberPattern>
19005           (?:
19006             2(?:
19007               [125]|
19008               3[2358]|
19009               4[2-4]|
19010               9[2-8]
19011             )|
19012             4(?:
19013               [0-246-9]|
19014               5[3479]
19015             )|
19016             5(?:
19017               [1-35-7]|
19018               4[2-467]
19019             )|
19020             6(?:
19021               [1-8]|
19022               0[468]
19023             )|
19024             7(?:
19025               [14]|
19026               2[236]
19027             )|
19028             8(?:
19029               [16]|
19030               2[2-689]|
19031               3[23578]|
19032               4[3478]|
19033               5[2356]
19034             )|
19035             9(?:
19036               1|
19037               22|
19038               3[27-9]|
19039               4[2-6]|
19040               6[3569]|
19041               9[2-7]
19042             )
19043           )111\d{6}
19044         </nationalNumberPattern>
19045         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
19046         <exampleNumber>21111825888</exampleNumber>
19047       </uan>
19048       <emergency>
19049         <nationalNumberPattern>
19050           1(?:
19051             1(?:
19052               22?|
19053               5
19054             )|
19055             [56]
19056           )
19057         </nationalNumberPattern>
19058         <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
19059         <exampleNumber>112</exampleNumber>
19060       </emergency>
19061     </territory>
19062
19063     <!-- Poland -->
19064     <!-- http://en.wikipedia.org/wiki/%2B48 -->
19065     <!-- http://www.itu.int/oth/T02020000A8/en -->
19066     <!--
19067     http://www.uke.gov.pl/uke/index.jsp?place=Lead24&news_cat_id=277&news_id=3791&layout=9&page=text
19068     (in Polish) -->
19069     <territory id="PL" countryCode="48" internationalPrefix="00">
19070       <availableFormats>
19071         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
19072           <leadingDigits>
19073             [124]|
19074             3[2-4]|
19075             5[24-689]|
19076             6[1-3578]|
19077             7[14-7]|
19078             8[1-79]|
19079             9[145]
19080           </leadingDigits>
19081           <format>$1 $2 $3 $4</format>
19082         </numberFormat>
19083         <numberFormat pattern="(\d{2})(\d{4,6})">
19084           <!-- Pattern for shorter fixed-line numbers. -->
19085           <leadingDigits>
19086             [124]|
19087             3[2-4]|
19088             5[24-689]|
19089             6[1-3578]|
19090             7[14-7]|
19091             8[1-7]
19092           </leadingDigits>
19093           <format>$1 $2</format>
19094         </numberFormat>
19095         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
19096              Poles that this is more usual. -->
19097         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19098           <leadingDigits>
19099             39|
19100             5[013]|
19101             6[0469]|
19102             7[02389]|
19103             8[08]
19104           </leadingDigits>
19105           <format>$1 $2 $3</format>
19106         </numberFormat>
19107         <!-- Additional patterns for shorter pager numbers. -->
19108         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
19109           <leadingDigits>64</leadingDigits>
19110           <format>$1 $2 $3</format>
19111         </numberFormat>
19112         <numberFormat pattern="(\d{3})(\d{3})">
19113           <leadingDigits>64</leadingDigits>
19114           <format>$1 $2</format>
19115         </numberFormat>
19116       </availableFormats>
19117       <generalDesc>
19118         <nationalNumberPattern>
19119           [1-58]\d{6,8}|
19120           9\d{8}|
19121           [67]\d{5,8}
19122         </nationalNumberPattern>
19123         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19124       </generalDesc>
19125       <fixedLine>
19126         <!-- Grouped by prefix-length. -->
19127         <nationalNumberPattern>
19128           (?:
19129             1[2-8]|
19130             2[2-59]|
19131             3[2-4]|
19132             4[1-468]|
19133             5[24-689]|
19134             6[1-3578]|
19135             7[14-6]|
19136             8[1-7]
19137           )\d{5,7}|
19138           77\d{4,7}|
19139           (?:
19140             89|
19141             9[145]
19142           )\d{7}
19143         </nationalNumberPattern>
19144         <exampleNumber>123456789</exampleNumber>
19145       </fixedLine>
19146       <mobile>
19147         <nationalNumberPattern>
19148           (?:
19149             5[013]|
19150             6[069]|
19151             7[2389]|
19152             88
19153           )\d{7}
19154         </nationalNumberPattern>
19155         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19156         <exampleNumber>512345678</exampleNumber>
19157       </mobile>
19158       <pager>
19159         <nationalNumberPattern>642\d{3,6}</nationalNumberPattern>
19160         <exampleNumber>642123456</exampleNumber>
19161       </pager>
19162       <tollFree>
19163         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19164         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19165         <exampleNumber>800123456</exampleNumber>
19166       </tollFree>
19167       <premiumRate>
19168         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
19169         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19170         <exampleNumber>701234567</exampleNumber>
19171       </premiumRate>
19172       <sharedCost>
19173         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19174         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19175         <exampleNumber>801234567</exampleNumber>
19176       </sharedCost>
19177       <voip>
19178         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
19179         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19180         <exampleNumber>391234567</exampleNumber>
19181       </voip>
19182       <emergency>
19183         <nationalNumberPattern>
19184           112|
19185           99[789]
19186         </nationalNumberPattern>
19187         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19188         <exampleNumber>112</exampleNumber>
19189       </emergency>
19190     </territory>
19191
19192     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
19193     <!-- http://www.itu.int/oth/T02020000B2/en -->
19194     <territory id="PM" countryCode="508" internationalPrefix="00"
19195                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19196       <availableFormats>
19197         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
19198           <format>$1 $2 $3</format>
19199         </numberFormat>
19200       </availableFormats>
19201       <generalDesc>
19202         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
19203         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19204       </generalDesc>
19205       <fixedLine>
19206         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
19207         <exampleNumber>411234</exampleNumber>
19208       </fixedLine>
19209       <mobile>
19210         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
19211         <exampleNumber>551234</exampleNumber>
19212       </mobile>
19213       <emergency>
19214         <nationalNumberPattern>1[578]</nationalNumberPattern>
19215         <possibleNumberPattern>\d{2}</possibleNumberPattern>
19216         <exampleNumber>17</exampleNumber>
19217       </emergency>
19218     </territory>
19219
19220     <!-- Pitcairn Island -->
19221     <!-- id="PN" -->
19222     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
19223          satellite phones. -->
19224
19225     <!-- Puerto Rico -->
19226     <!-- http://www.itu.int/oth/T02020000AA/en -->
19227     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
19228                internationalPrefix="011">
19229       <generalDesc>
19230         <!-- NANPA country - uses US formatting rules -->
19231         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
19232         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
19233       </generalDesc>
19234       <fixedLine>
19235         <nationalNumberPattern>
19236           (?:
19237             787|
19238             939
19239           )[2-9]\d{6}
19240         </nationalNumberPattern>
19241         <exampleNumber>7872345678</exampleNumber>
19242       </fixedLine>
19243       <mobile>
19244         <nationalNumberPattern>
19245           (?:
19246             787|
19247             939
19248           )[2-9]\d{6}
19249         </nationalNumberPattern>
19250         <exampleNumber>7872345678</exampleNumber>
19251       </mobile>
19252       <tollFree>
19253         <nationalNumberPattern>
19254           8(?:
19255             00|
19256             55|
19257             66|
19258             77|
19259             88
19260           )[2-9]\d{6}
19261         </nationalNumberPattern>
19262         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19263         <exampleNumber>8002345678</exampleNumber>
19264       </tollFree>
19265       <premiumRate>
19266         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
19267         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19268         <exampleNumber>9002345678</exampleNumber>
19269       </premiumRate>
19270       <personalNumber>
19271         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
19272         <nationalNumberPattern>
19273           5(?:
19274             00|
19275             33|
19276             44
19277           )[2-9]\d{6}
19278         </nationalNumberPattern>
19279         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19280         <exampleNumber>5002345678</exampleNumber>
19281       </personalNumber>
19282       <emergency>
19283         <!-- http://www.frommers.com/destinations/puertorico/0094020157.html
19284              http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
19285         <nationalNumberPattern>911</nationalNumberPattern>
19286         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19287         <exampleNumber>911</exampleNumber>
19288       </emergency>
19289     </territory>
19290
19291     <!-- Palestinian Authority -->
19292     <!-- http://en.wikipedia.org/wiki/%2B970 -->
19293     <!-- http://www.wtng.info/wtng-970-ps.html -->
19294     <!-- http://www.paltel.ps -->
19295     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
19296          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
19297          subset of the Israeli formats. -->
19298     <territory id="PS" countryCode="970" internationalPrefix="00"
19299                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19300       <availableFormats>
19301         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
19302           <leadingDigits>[2489]</leadingDigits>
19303           <format>$1 $2 $3</format>
19304         </numberFormat>
19305         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
19306           <leadingDigits>5</leadingDigits>
19307           <format>$1 $2 $3</format>
19308         </numberFormat>
19309         <numberFormat nationalPrefixFormattingRule="$FG"
19310           pattern="(1[78]00)(\d{3})(\d{3})">
19311           <leadingDigits>1[78]</leadingDigits>
19312           <format>$1 $2 $3</format>
19313         </numberFormat>
19314         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
19315       </availableFormats>
19316       <generalDesc>
19317         <nationalNumberPattern>
19318           [24589]\d{7,8}|
19319           1(?:
19320             [78]\d{8}|
19321             [49]\d{2,3}
19322           )
19323         </nationalNumberPattern>
19324         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
19325       </generalDesc>
19326       <fixedLine>
19327         <nationalNumberPattern>
19328           (?:
19329             22[234789]|
19330             42[45]|
19331             82[01458]|
19332             92[369]
19333           )\d{5}
19334         </nationalNumberPattern>
19335         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19336         <exampleNumber>22234567</exampleNumber>
19337       </fixedLine>
19338       <mobile>
19339         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
19340         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19341         <exampleNumber>599123456</exampleNumber>
19342       </mobile>
19343       <tollFree>
19344         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
19345         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19346         <exampleNumber>1800123456</exampleNumber>
19347       </tollFree>
19348       <premiumRate>
19349         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
19350         <nationalNumberPattern>
19351           1(?:
19352             4|
19353             9\d
19354            )\d{2}
19355         </nationalNumberPattern>
19356         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
19357         <exampleNumber>19123</exampleNumber>
19358       </premiumRate>
19359       <sharedCost>
19360         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
19361         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19362         <exampleNumber>1700123456</exampleNumber>
19363       </sharedCost>
19364     </territory>
19365
19366     <!-- Portugal -->
19367     <!-- http://www.anacom.pt/render.jsp?categoryId=279098 -->
19368     <territory id="PT" countryCode="351" internationalPrefix="00">
19369       <availableFormats>
19370         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
19371              two digits in the first group; however, this doesn't seem to be majority usage based on
19372              searches online. -->
19373         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
19374           <leadingDigits>2[12]</leadingDigits>
19375           <format>$1 $2 $3</format>
19376         </numberFormat>
19377         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
19378           <leadingDigits>
19379             2[3-9]|
19380             [346-9]
19381           </leadingDigits>
19382           <format>$1 $2 $3</format>
19383         </numberFormat>
19384       </availableFormats>
19385       <generalDesc>
19386         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
19387         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19388       </generalDesc>
19389       <fixedLine>
19390         <nationalNumberPattern>
19391           2(?:
19392             [12]\d|
19393             [35][1-689]|
19394             4[1-59]|
19395             6[1-35689]|
19396             7[1-9]|
19397             8[1-69]|
19398             9[1256]
19399           )\d{6}
19400         </nationalNumberPattern>
19401         <exampleNumber>212345678</exampleNumber>
19402       </fixedLine>
19403       <mobile>
19404         <nationalNumberPattern>
19405           9(?:
19406             [136]\d{2}|
19407             2[0-79]\d|
19408             480
19409           )\d{5}
19410         </nationalNumberPattern>
19411         <exampleNumber>912345678</exampleNumber>
19412       </mobile>
19413       <tollFree>
19414         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
19415         <exampleNumber>800123456</exampleNumber>
19416       </tollFree>
19417       <premiumRate>
19418         <!-- Fixed maximum cost numbers: 761=0.60€, 761=1€, 762=2€. -->
19419         <nationalNumberPattern>
19420           76(?:
19421             0[1-57]|
19422             1[2-47]|
19423             2[237]
19424           )\d{5}
19425         </nationalNumberPattern>
19426         <exampleNumber>760123456</exampleNumber>
19427       </premiumRate>
19428       <sharedCost>
19429         <!-- 808 are priced as local calls, 809 are national calls. -->
19430         <nationalNumberPattern>
19431           80(?:
19432             8\d|
19433             9[1579]
19434           )\d{5}
19435         </nationalNumberPattern>
19436         <exampleNumber>808123456</exampleNumber>
19437       </sharedCost>
19438       <personalNumber>
19439         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
19440         <exampleNumber>884123456</exampleNumber>
19441       </personalNumber>
19442       <voip>
19443         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
19444         <exampleNumber>301234567</exampleNumber>
19445       </voip>
19446       <uan>
19447         <nationalNumberPattern>
19448           70(?:
19449             7\d|
19450             8[17]
19451           )\d{5}
19452         </nationalNumberPattern>
19453         <exampleNumber>707123456</exampleNumber>
19454       </uan>
19455       <emergency>
19456         <nationalNumberPattern>112</nationalNumberPattern>
19457         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19458         <exampleNumber>112</exampleNumber>
19459       </emergency>
19460     </territory>
19461
19462     <!-- Palau -->
19463     <!-- http://www.itu.int/oth/T02020000A2/en -->
19464     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
19465       <availableFormats>
19466         <numberFormat pattern="(\d{3})(\d{4})">
19467           <format>$1 $2</format>
19468         </numberFormat>
19469       </availableFormats>
19470       <generalDesc>
19471         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
19472         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19473       </generalDesc>
19474       <fixedLine>
19475         <nationalNumberPattern>
19476           2552255|
19477           (?:
19478             277|
19479             345|
19480             488|
19481             5(?:
19482               35|
19483               44|
19484               87
19485             )|
19486             6(?:
19487               22|
19488               54|
19489               79
19490             )|
19491             7(?:
19492               33|
19493               47
19494             )|
19495             8(?:
19496               24|
19497               55|
19498               76
19499             )
19500           )\d{4}
19501         </nationalNumberPattern>
19502         <exampleNumber>2771234</exampleNumber>
19503       </fixedLine>
19504       <mobile>
19505         <nationalNumberPattern>
19506           (?:
19507             6[234689]0|
19508             77[45789]
19509           )\d{4}
19510         </nationalNumberPattern>
19511         <exampleNumber>6201234</exampleNumber>
19512       </mobile>
19513       <emergency>
19514         <nationalNumberPattern>911</nationalNumberPattern>
19515         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19516         <exampleNumber>911</exampleNumber>
19517       </emergency>
19518     </territory>
19519
19520     <!-- Paraguay -->
19521     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay -->
19522     <!-- http://www.itu.int/oth/T02020000A5/en -->
19523     <!-- http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html -->
19524     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0">
19525       <availableFormats>
19526         <!-- CONATEL plan. -->
19527         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
19528           <leadingDigits>
19529             (?:
19530               [26]1|
19531               3[289]|
19532               4[124678]|
19533               7[123]|
19534               8[1236]
19535             )
19536           </leadingDigits>
19537           <format>$1 $2</format>
19538         </numberFormat>
19539         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
19540           <leadingDigits>[2-9]0</leadingDigits>
19541           <format>$1 $2</format>
19542         </numberFormat>
19543         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
19544           <leadingDigits>9[1-9]</leadingDigits>
19545           <format>$1 $2</format>
19546         </numberFormat>
19547         <!-- Format seen in examples found online. -->
19548         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19549           <leadingDigits>8700</leadingDigits>
19550           <format>$1 $2 $3</format>
19551         </numberFormat>
19552         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
19553              -->
19554         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
19555           <leadingDigits>[2-8][1-9]</leadingDigits>
19556           <format>$1 $2</format>
19557         </numberFormat>
19558       </availableFormats>
19559       <generalDesc>
19560         <nationalNumberPattern>
19561           5[0-5]\d{4,7}|
19562           [2-46-9]\d{5,8}
19563         </nationalNumberPattern>
19564         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
19565       </generalDesc>
19566       <fixedLine>
19567         <nationalNumberPattern>
19568           (?:
19569             [26]1|
19570             3[289]|
19571             4[124678]|
19572             7[123]|
19573             8[1236]
19574           )\d{5,7}|
19575           (?:
19576             2(?:
19577               2[4568]|
19578               7[15]|
19579               9[1-5]
19580             )|
19581             3(?:
19582               18|
19583               3[167]|
19584               4[2357]|
19585               51
19586             )|
19587             4(?:
19588               18|
19589               2[45]|
19590               3[12]|
19591               5[13]|
19592               64|
19593               71|
19594               9[1-47]
19595             )|
19596             5(?:
19597               [1-4]\d|
19598               5[0234]
19599             )|
19600             6(?:
19601               3[1-3]|
19602               44|
19603               7[1-4678]
19604             )|
19605             7(?:
19606               17|
19607               4[0-4]|
19608               6[1-578]|
19609               75|
19610               8[0-8]
19611             )|
19612             858
19613           )\d{5,6}
19614         </nationalNumberPattern>
19615         <exampleNumber>212345678</exampleNumber>
19616       </fixedLine>
19617       <mobile>
19618         <!-- 962 was added for Tigo. -->
19619         <nationalNumberPattern>
19620           9(?:
19621             6[12]|
19622             [78][1-6]|
19623             9[1-5]
19624           )\d{6}
19625         </nationalNumberPattern>
19626         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19627         <exampleNumber>961456789</exampleNumber>
19628       </mobile>
19629       <voip>
19630         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
19631         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19632         <exampleNumber>870012345</exampleNumber>
19633       </voip>
19634       <uan>
19635         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
19636         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19637         <exampleNumber>201234567</exampleNumber>
19638       </uan>
19639       <emergency>
19640         <nationalNumberPattern>
19641           128|
19642           911
19643         </nationalNumberPattern>
19644         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19645         <exampleNumber>911</exampleNumber>
19646       </emergency>
19647     </territory>
19648
19649     <!-- Qatar -->
19650     <!-- http://www.itu.int/oth/T02020000AB/en -->
19651     <!-- http://wtng.info/wtng-qq.html -->
19652     <territory id="QA" countryCode="974" internationalPrefix="00">
19653       <availableFormats>
19654         <numberFormat pattern="([28]\d{2})(\d{4})">
19655           <leadingDigits>[28]</leadingDigits>
19656           <format>$1 $2</format>
19657         </numberFormat>
19658         <numberFormat pattern="([3-7]\d{3})(\d{4})">
19659           <leadingDigits>[3-7]</leadingDigits>
19660           <format>$1 $2</format>
19661         </numberFormat>
19662       </availableFormats>
19663       <generalDesc>
19664         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
19665         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19666       </generalDesc>
19667       <fixedLine>
19668         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
19669         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
19670         <exampleNumber>44123456</exampleNumber>
19671       </fixedLine>
19672       <mobile>
19673         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
19674         <exampleNumber>33123456</exampleNumber>
19675       </mobile>
19676       <pager>
19677         <nationalNumberPattern>
19678           2(?:
19679             [12]\d|
19680             61
19681           )\d{4}
19682         </nationalNumberPattern>
19683         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19684         <exampleNumber>2123456</exampleNumber>
19685       </pager>
19686       <tollFree>
19687         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
19688         <exampleNumber>8001234</exampleNumber>
19689       </tollFree>
19690       <!-- No premiumRate information can be found. -->
19691       <emergency>
19692         <nationalNumberPattern>999</nationalNumberPattern>
19693         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19694         <exampleNumber>999</exampleNumber>
19695       </emergency>
19696     </territory>
19697
19698     <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
19699     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
19700          used by both of them. -->
19701     <!-- http://www.itu.int/oth/T020200004B/en -->
19702     <territory id="RE" countryCode="262" internationalPrefix="00"
19703                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19704                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
19705       <availableFormats>
19706         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
19707           <format>$1 $2 $3 $4</format>
19708         </numberFormat>
19709       </availableFormats>
19710       <generalDesc>
19711         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
19712         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19713       </generalDesc>
19714       <fixedLine>
19715         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
19716         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
19717         <exampleNumber>262161234</exampleNumber>
19718       </fixedLine>
19719       <mobile>
19720         <nationalNumberPattern>
19721           6(?:
19722             9[23]|
19723             47
19724           )\d{6}
19725         </nationalNumberPattern>
19726         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19727         <exampleNumber>692123456</exampleNumber>
19728       </mobile>
19729       <!-- 08* Numbers in Réunion are the same as those valid in France. -->
19730       <tollFree>
19731         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
19732         <exampleNumber>801234567</exampleNumber>
19733       </tollFree>
19734       <premiumRate>
19735         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
19736         <exampleNumber>891123456</exampleNumber>
19737       </premiumRate>
19738       <sharedCost>
19739         <nationalNumberPattern>
19740           8(?:
19741             1[019]|
19742             2[0156]|
19743             84|
19744             90
19745           )\d{6}
19746         </nationalNumberPattern>
19747         <exampleNumber>810123456</exampleNumber>
19748       </sharedCost>
19749       <!-- http://www.reunion.fr/en/navigation-principale/getting-there/practical-information.html -->
19750       <emergency>
19751         <nationalNumberPattern>
19752           1(?:
19753             12|
19754             [578]
19755           )
19756         </nationalNumberPattern>
19757         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
19758         <exampleNumber>15</exampleNumber>
19759       </emergency>
19760     </territory>
19761
19762     <!-- Romania -->
19763     <!-- http://www.itu.int/oth/T02020000AC/en -->
19764     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania -->
19765     <!-- Extension prefix found online, confirmed by a Romanian. -->
19766     <territory id="RO" countryCode="40" internationalPrefix="00"
19767                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19768                preferredExtnPrefix=" int ">
19769       <availableFormats>
19770         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
19771           <leadingDigits>[23]1</leadingDigits>
19772           <format>$1 $2 $3</format>
19773         </numberFormat>
19774         <numberFormat pattern="(21)(\d{4})">
19775           <leadingDigits>21</leadingDigits>
19776           <format>$1 $2</format>
19777         </numberFormat>
19778         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19779           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
19780                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
19781                majority of numbers found online follow this convention. -->
19782           <leadingDigits>
19783             [23][3-7]|
19784             [7-9]
19785           </leadingDigits>
19786           <format>$1 $2 $3</format>
19787         </numberFormat>
19788         <numberFormat pattern="(2\d{2})(\d{3})">
19789           <leadingDigits>2[3-6]</leadingDigits>
19790           <format>$1 $2</format>
19791         </numberFormat>
19792       </availableFormats>
19793       <generalDesc>
19794         <nationalNumberPattern>
19795           2\d{5,8}|
19796           [37-9]\d{8}
19797         </nationalNumberPattern>
19798         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
19799              to wikipedia and people must dial the full number. However, there are still short
19800              numbers that total 6 digits long, so the possible number pattern should take these into
19801              account. -->
19802         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19803       </generalDesc>
19804       <fixedLine>
19805         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
19806              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
19807              this based on numbers found online and the wikipedia article which indicate that these
19808              are four digits long in Bucharest only, and three digits elsewhere. -->
19809         <nationalNumberPattern>
19810           2(?:
19811             1(?:
19812               \d{7}|
19813               9\d{3}
19814             )|
19815             [3-6](?:
19816               \d{7}|
19817               \d9\d{2}
19818             )
19819           )|
19820           3[13-6]\d{7}
19821           </nationalNumberPattern>
19822         <exampleNumber>211234567</exampleNumber>
19823       </fixedLine>
19824       <mobile>
19825         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
19826              numbers are restricted to those starting with 07000. -->
19827         <nationalNumberPattern>
19828           7(?:
19829             000\d{5}|
19830             [1-8]\d{7}
19831           )
19832         </nationalNumberPattern>
19833         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19834         <exampleNumber>712345678</exampleNumber>
19835       </mobile>
19836       <tollFree>
19837         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19838         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19839         <exampleNumber>800123456</exampleNumber>
19840       </tollFree>
19841       <premiumRate>
19842         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
19843         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19844         <exampleNumber>900123456</exampleNumber>
19845       </premiumRate>
19846       <sharedCost>
19847         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19848         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19849         <exampleNumber>801123456</exampleNumber>
19850       </sharedCost>
19851       <personalNumber>
19852         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
19853         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19854         <exampleNumber>802123456</exampleNumber>
19855       </personalNumber>
19856       <uan>
19857         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
19858              location-independent national numbers. Only numbers beginning with 37 have been seen so
19859              these are the only ones supported for now. -->
19860         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
19861         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19862         <exampleNumber>372123456</exampleNumber>
19863       </uan>
19864       <emergency>
19865         <nationalNumberPattern>112</nationalNumberPattern>
19866         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19867         <exampleNumber>112</exampleNumber>
19868       </emergency>
19869     </territory>
19870
19871     <!-- Serbia -->
19872     <!-- http://www.itu.int/oth/T02020000B9/en -->
19873     <!-- http://registar.ratel.rs/en/reg202 -->
19874     <territory id="RS" countryCode="381" internationalPrefix="00"
19875                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19876       <availableFormats>
19877         <numberFormat pattern="([23]\d{2})(\d{4,9})">
19878           <leadingDigits>
19879             (?:
19880               2[389]|
19881               39
19882             )0
19883           </leadingDigits>
19884           <format>$1 $2</format>
19885         </numberFormat>
19886         <numberFormat pattern="([1-3]\d)(\d{5,10})">
19887           <leadingDigits>
19888             1|
19889             2(?:
19890               [0-24-7]|
19891               [389][1-9]
19892             )|
19893             3(?:
19894               [0-8]|
19895               9[1-9]
19896             )
19897           </leadingDigits>
19898           <format>$1 $2</format>
19899         </numberFormat>
19900         <numberFormat pattern="(6\d)(\d{6,8})">
19901           <leadingDigits>6</leadingDigits>
19902           <format>$1 $2</format>
19903         </numberFormat>
19904         <numberFormat pattern="([89]\d{2})(\d{3,9})">
19905           <leadingDigits>[89]</leadingDigits>
19906           <format>$1 $2</format>
19907         </numberFormat>
19908         <numberFormat pattern="(7[26])(\d{4,9})">
19909           <leadingDigits>7[26]</leadingDigits>
19910           <format>$1 $2</format>
19911         </numberFormat>
19912         <numberFormat pattern="(7[08]\d)(\d{4,9})">
19913           <leadingDigits>7[08]</leadingDigits>
19914           <format>$1 $2</format>
19915         </numberFormat>
19916       </availableFormats>
19917       <generalDesc>
19918         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
19919              by 2-9) and the country calling code (381). -->
19920         <nationalNumberPattern>
19921           [126-9]\d{4,11}|
19922           3(?:
19923             [0-79]\d{3,10}|
19924             8[2-9]\d{2,9}
19925           )
19926         </nationalNumberPattern>
19927         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19928       </generalDesc>
19929       <fixedLine>
19930         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
19931              has been issused, so we allow 11 1X here. -->
19932         <nationalNumberPattern>
19933           (?:
19934             1(?:
19935               [02-9][2-9]|
19936               1[1-9]
19937             )\d|
19938             2(?:
19939               [0-24-7][2-9]\d|
19940               [389](?:
19941                 0[2-9]|
19942                 [2-9]\d
19943               )
19944             )|
19945             3(?:
19946               [0-8][2-9]\d|
19947               9(?:
19948                 [2-9]\d|
19949                 0[2-9]
19950               )
19951             )
19952           )\d{3,8}
19953         </nationalNumberPattern>
19954         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
19955         <exampleNumber>10234567</exampleNumber>
19956       </fixedLine>
19957       <mobile>
19958         <nationalNumberPattern>
19959           6(?:
19960             [0-689]|
19961             7\d
19962           )\d{6,7}
19963         </nationalNumberPattern>
19964         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
19965         <exampleNumber>601234567</exampleNumber>
19966       </mobile>
19967       <tollFree>
19968         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
19969         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19970         <exampleNumber>80012345</exampleNumber>
19971       </tollFree>
19972       <premiumRate>
19973         <nationalNumberPattern>
19974           (?:
19975             90[0169]|
19976             78\d
19977           )\d{3,7}
19978         </nationalNumberPattern>
19979         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19980         <exampleNumber>90012345</exampleNumber>
19981       </premiumRate>
19982       <uan>
19983         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
19984         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19985         <exampleNumber>700123456</exampleNumber>
19986       </uan>
19987       <emergency>
19988         <nationalNumberPattern>
19989           112|
19990           9[234]
19991         </nationalNumberPattern>
19992         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
19993         <exampleNumber>112</exampleNumber>
19994       </emergency>
19995     </territory>
19996
19997     <!-- Russian Federation -->
19998     <!-- http://www.itu.int/oth/T02020000AD/en -->
19999     <!-- http://en.wikipedia.org/wiki/%2B7 -->
20000     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
20001                internationalPrefix="810" nationalPrefix="8"
20002                nationalPrefixFormattingRule="$NP ($FG)"
20003                nationalPrefixOptionalWhenFormatting="true" >
20004       <availableFormats>
20005         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
20006              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
20007              Kazakhstan as well. -->
20008         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
20009           <!-- Local numbers only - these do not start with the national prefix. -->
20010           <leadingDigits>[1-79]</leadingDigits>
20011           <format>$1-$2-$3</format>
20012           <intlFormat>NA</intlFormat>
20013         </numberFormat>
20014         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
20015           <leadingDigits>[34689]</leadingDigits>
20016           <format>$1 $2-$3-$4</format>
20017         </numberFormat>
20018         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
20019           <leadingDigits>7</leadingDigits>
20020           <format>$1 $2 $3</format>
20021         </numberFormat>
20022       </availableFormats>
20023       <generalDesc>
20024         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
20025         <possibleNumberPattern>\d{10}</possibleNumberPattern>
20026       </generalDesc>
20027       <fixedLine>
20028         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
20029              in the yellow pages, and on their own website and is listed on wikipedia. This applies
20030              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
20031         <nationalNumberPattern>
20032           (?:
20033             3(?:
20034               0[12]|
20035               4[1-35-79]|
20036               5[1-3]|
20037               8[1-58]|
20038               9[0145]
20039             )|
20040             4(?:
20041               01|
20042               1[1356]|
20043               2[13467]|
20044               7[1-5]|
20045               8[1-7]|
20046               9[1-689]
20047             )|
20048             8(?:
20049               1[1-8]|
20050               2[01]|
20051               3[13-6]|
20052               4[0-8]|
20053               5[15]|
20054               6[1-35-7]|
20055               7[1-37-9]
20056             )
20057           )\d{7}
20058         </nationalNumberPattern>
20059         <exampleNumber>3011234567</exampleNumber>
20060       </fixedLine>
20061       <mobile>
20062         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
20063         <exampleNumber>9123456789</exampleNumber>
20064       </mobile>
20065       <tollFree>
20066         <!-- The metadata states that 804 numbers are UAN numbers, but
20067              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
20068              numbers. -->
20069         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
20070         <exampleNumber>8001234567</exampleNumber>
20071       </tollFree>
20072       <premiumRate>
20073         <!-- Covers tele-voting numbers as well. -->
20074         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
20075         <exampleNumber>8091234567</exampleNumber>
20076       </premiumRate>
20077       <emergency>
20078         <nationalNumberPattern>
20079           0[123]|
20080           112
20081         </nationalNumberPattern>
20082         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
20083         <exampleNumber>112</exampleNumber>
20084       </emergency>
20085     </territory>
20086
20087     <!-- Rwanda -->
20088     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
20089          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
20090          as www.tigo.co.rw "Choose Your Number" service. -->
20091     <!-- http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf -->
20092     <!-- http://en.wikipedia.org/wiki/+250 -->
20093     <territory id="RW" countryCode="250" internationalPrefix="00"
20094                nationalPrefix="0" leadingZeroPossible="true">
20095       <availableFormats>
20096         <numberFormat nationalPrefixFormattingRule="$FG"
20097           pattern="(2\d{2})(\d{3})(\d{3})">
20098           <leadingDigits>2</leadingDigits>
20099           <format>$1 $2 $3</format>
20100         </numberFormat>
20101         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
20102           <leadingDigits>[7-9]</leadingDigits>
20103           <format>$1 $2 $3</format>
20104         </numberFormat>
20105         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
20106           <leadingDigits>0</leadingDigits>
20107           <format>$1 $2 $3 $4</format>
20108         </numberFormat>
20109       </availableFormats>
20110       <generalDesc>
20111         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
20112         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
20113       </generalDesc>
20114       <fixedLine>
20115         <!-- We support satellite numbers here, since they are in the plan, although no recent
20116              online examples can be found. We also support fixed-line ranges that have been reserved
20117              and paid for, even where no online numbers can be found. -->
20118         <nationalNumberPattern>
20119           2[258]\d{7}|
20120           06\d{6}
20121         </nationalNumberPattern>
20122         <exampleNumber>250123456</exampleNumber>
20123       </fixedLine>
20124       <mobile>
20125         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
20126              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
20127              license revoked. -->
20128         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
20129         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20130         <exampleNumber>720123456</exampleNumber>
20131       </mobile>
20132       <tollFree>
20133         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20134         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20135         <exampleNumber>800123456</exampleNumber>
20136       </tollFree>
20137       <premiumRate>
20138         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
20139         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20140         <exampleNumber>900123456</exampleNumber>
20141       </premiumRate>
20142       <emergency>
20143         <nationalNumberPattern>112</nationalNumberPattern>
20144         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20145         <exampleNumber>112</exampleNumber>
20146       </emergency>
20147     </territory>
20148
20149     <!-- Saudi Arabia -->
20150     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia -->
20151     <!-- http://www.itu.int/oth/T02020000B7/en -->
20152     <territory id="SA" countryCode="966" internationalPrefix="00"
20153                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
20154       <availableFormats>
20155         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
20156           <leadingDigits>[1-467]</leadingDigits>
20157           <format>$1 $2 $3</format>
20158         </numberFormat>
20159         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
20160           <leadingDigits>1[1-467]</leadingDigits>
20161           <format>$1 $2 $3</format>
20162         </numberFormat>
20163         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
20164           <leadingDigits>5</leadingDigits>
20165           <format>$1 $2 $3</format>
20166         </numberFormat>
20167         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
20168              the fact that no numbers of this form found online have a trunk prefix added. -->
20169         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
20170           <leadingDigits>9</leadingDigits>
20171           <format>$1 $2</format>
20172         </numberFormat>
20173         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
20174           <leadingDigits>80</leadingDigits>
20175           <format>$1 $2 $3</format>
20176         </numberFormat>
20177         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
20178           <leadingDigits>81</leadingDigits>
20179           <format>$1 $2 $3</format>
20180         </numberFormat>
20181       </availableFormats>
20182       <generalDesc>
20183         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
20184              fixed-line numbers. -->
20185         <nationalNumberPattern>
20186           1\d{7,8}|
20187           (?:
20188             [2-467]|
20189             92
20190           )\d{7}|
20191           5\d{8}|
20192           8\d{9}
20193         </nationalNumberPattern>
20194         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
20195       </generalDesc>
20196       <fixedLine>
20197         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
20198              is happening in May for area code 1 (parallel running ends July 13th, 2013) and then in
20199              August for the other fixed-line numbers. -->
20200         <nationalNumberPattern>
20201           (?:
20202             11?\d|
20203             2[24-8]|
20204             3[35-8]|
20205             4[3-68]|
20206             6[2-5]|
20207             7[235-7]
20208           )\d{6}
20209         </nationalNumberPattern>
20210         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20211         <exampleNumber>112345678</exampleNumber>
20212       </fixedLine>
20213       <mobile>
20214         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
20215              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
20216              until we find evidence that this is an error, leaving them at 10 for now. -->
20217         <nationalNumberPattern>
20218           (?:
20219             5[013-689]|
20220             811
20221           )\d{7}
20222         </nationalNumberPattern>
20223         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
20224         <exampleNumber>512345678</exampleNumber>
20225       </mobile>
20226       <tollFree>
20227         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
20228         <possibleNumberPattern>\d{10}</possibleNumberPattern>
20229         <exampleNumber>8001234567</exampleNumber>
20230       </tollFree>
20231       <sharedCost>
20232         <!-- Including shared revenue with shared cost here. -->
20233         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
20234         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20235         <exampleNumber>920012345</exampleNumber>
20236       </sharedCost>
20237       <emergency>
20238         <nationalNumberPattern>
20239           112|
20240           9(?:
20241             11|
20242             9[7-9]
20243           )
20244         </nationalNumberPattern>
20245         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20246         <exampleNumber>999</exampleNumber>
20247       </emergency>
20248     </territory>
20249
20250     <!-- Solomon Islands -->
20251     <!-- http://www.itu.int/oth/T02020000BF/en -->
20252     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
20253       <!-- A single group is used to format 5-digit numbers. -->
20254       <availableFormats>
20255         <numberFormat pattern="(\d{3})(\d{4})">
20256           <leadingDigits>[7-9]</leadingDigits>
20257           <format>$1 $2</format>
20258         </numberFormat>
20259       </availableFormats>
20260       <generalDesc>
20261         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
20262         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
20263       </generalDesc>
20264       <fixedLine>
20265         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
20266              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
20267         <nationalNumberPattern>
20268           (?:
20269             1[4-79]|
20270             [23]\d|
20271             4[01]|
20272             5[03]|
20273             6[0-37]
20274           )\d{3}
20275         </nationalNumberPattern>
20276         <possibleNumberPattern>\d{5}</possibleNumberPattern>
20277         <exampleNumber>40123</exampleNumber>
20278       </fixedLine>
20279       <mobile>
20280         <nationalNumberPattern>
20281           48\d{3}|
20282           7(?:
20283             [46-8]\d|
20284             5[025-9]|
20285             90
20286           )\d{4}|
20287           8[4-8]\d{5}|
20288           9(?:
20289             [46]\d|
20290             5[0-46-9]|
20291             7[0-689]|
20292             8[0-79]|
20293             9[0-8]
20294           )\d{4}
20295         </nationalNumberPattern>
20296         <exampleNumber>7421234</exampleNumber>
20297       </mobile>
20298       <tollFree>
20299         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
20300         <possibleNumberPattern>\d{5}</possibleNumberPattern>
20301         <exampleNumber>18123</exampleNumber>
20302       </tollFree>
20303       <voip>
20304         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
20305         <possibleNumberPattern>\d{5}</possibleNumberPattern>
20306         <exampleNumber>51123</exampleNumber>
20307       </voip>
20308       <emergency>
20309         <nationalNumberPattern>999</nationalNumberPattern>
20310         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20311         <exampleNumber>999</exampleNumber>
20312       </emergency>
20313     </territory>
20314
20315     <!-- Seychelles -->
20316     <!-- http://www.itu.int/oth/T02020000BA/en -->
20317     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles -->
20318     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
20319                preferredInternationalPrefix="00">
20320       <availableFormats>
20321         <numberFormat pattern="(\d{3})(\d{3})">
20322           <leadingDigits>[89]</leadingDigits>
20323           <format>$1 $2</format>
20324         </numberFormat>
20325         <numberFormat pattern="(\d)(\d{3})(\d{3})">
20326           <leadingDigits>[246]</leadingDigits>
20327           <format>$1 $2 $3</format>
20328         </numberFormat>
20329       </availableFormats>
20330       <generalDesc>
20331         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
20332         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20333       </generalDesc>
20334       <fixedLine>
20335         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
20336              they are more expensive to call than other Fixed Line services. ISDN and DID services
20337              are here too, since they seem to be also fixed-line phone numbers. -->
20338         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
20339         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20340         <exampleNumber>4217123</exampleNumber>
20341       </fixedLine>
20342       <mobile>
20343         <!-- Includes Fixed Cellular. -->
20344         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
20345         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20346         <exampleNumber>2510123</exampleNumber>
20347       </mobile>
20348       <tollFree>
20349         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
20350         <possibleNumberPattern>\d{6}</possibleNumberPattern>
20351         <exampleNumber>800000</exampleNumber>
20352       </tollFree>
20353       <premiumRate>
20354         <!-- Using this to represent Value Added Service in the plan. -->
20355         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
20356         <possibleNumberPattern>\d{6}</possibleNumberPattern>
20357         <exampleNumber>981234</exampleNumber>
20358       </premiumRate>
20359       <voip>
20360         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
20361         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20362         <exampleNumber>6412345</exampleNumber>
20363       </voip>
20364       <emergency>
20365         <nationalNumberPattern>999</nationalNumberPattern>
20366         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20367         <exampleNumber>999</exampleNumber>
20368       </emergency>
20369     </territory>
20370
20371     <!-- Sudan -->
20372     <!-- http://www.itu.int/oth/T02020000C4/en -->
20373     <territory id="SD" countryCode="249" internationalPrefix="00"
20374                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
20375       <availableFormats>
20376         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
20377           <format>$1 $2 $3</format>
20378         </numberFormat>
20379       </availableFormats>
20380       <generalDesc>
20381         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
20382         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20383       </generalDesc>
20384       <fixedLine>
20385         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
20386              found online. -->
20387         <nationalNumberPattern>
20388           1(?:
20389             [125]\d|
20390             8[3567]
20391           )\d{6}
20392         </nationalNumberPattern>
20393         <exampleNumber>121231234</exampleNumber>
20394       </fixedLine>
20395       <mobile>
20396         <!-- Adding 90X as online numbers have been found with this prefix. -->
20397         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
20398         <exampleNumber>911231234</exampleNumber>
20399       </mobile>
20400       <emergency>
20401         <nationalNumberPattern>999</nationalNumberPattern>
20402         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20403         <exampleNumber>999</exampleNumber>
20404       </emergency>
20405     </territory>
20406
20407     <!-- Sweden -->
20408     <!-- http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf -->
20409     <territory id="SE" countryCode="46" internationalPrefix="00"
20410                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
20411       <availableFormats>
20412       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
20413            http://gulasidorna.eniro.se -->
20414         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
20415           <leadingDigits>8</leadingDigits>
20416           <format>$1-$2 $3 $4</format>
20417           <intlFormat>$1 $2 $3 $4</intlFormat>
20418         </numberFormat>
20419         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
20420           <leadingDigits>
20421             1[013689]|
20422             2[0136]|
20423             3[1356]|
20424             4[0246]|
20425             54|
20426             6[03]|
20427             90
20428           </leadingDigits>
20429           <format>$1-$2 $3 $4</format>
20430           <intlFormat>$1 $2 $3 $4</intlFormat>
20431         </numberFormat>
20432         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
20433           <leadingDigits>
20434             1[13689]|
20435             2[136]|
20436             3[1356]|
20437             4[0246]|
20438             54|
20439             6[03]|
20440             90
20441           </leadingDigits>
20442           <format>$1-$2 $3</format>
20443           <intlFormat>$1 $2 $3</intlFormat>
20444         </numberFormat>
20445         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20446           <leadingDigits>
20447             1[2457]|
20448             2[2457-9]|
20449             3[0247-9]|
20450             4[1357-9]|
20451             5[0-35-9]|
20452             6[124-9]|
20453             9(?:
20454               [125-8]|
20455               3[0-5]|
20456               4[0-3]
20457             )
20458           </leadingDigits>
20459           <format>$1-$2 $3 $4</format>
20460           <intlFormat>$1 $2 $3 $4</intlFormat>
20461         </numberFormat>
20462         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
20463           <leadingDigits>
20464             1[2457]|
20465             2[2457-9]|
20466             3[0247-9]|
20467             4[1357-9]|
20468             5[0-35-9]|
20469             6[124-9]|
20470             9(?:
20471               [125-8]|
20472               3[0-5]|
20473               4[0-3]
20474             )
20475           </leadingDigits>
20476           <format>$1-$2 $3</format>
20477           <intlFormat>$1 $2 $3</intlFormat>
20478         </numberFormat>
20479         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
20480           <leadingDigits>7</leadingDigits>
20481           <format>$1-$2 $3 $4</format>
20482           <intlFormat>$1 $2 $3 $4</intlFormat>
20483         </numberFormat>
20484         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
20485           <leadingDigits>20</leadingDigits>
20486           <format>$1-$2 $3</format>
20487           <intlFormat>$1 $2 $3</intlFormat>
20488         </numberFormat>
20489         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
20490           <leadingDigits>9[034]</leadingDigits>
20491           <format>$1-$2 $3 $4</format>
20492           <intlFormat>$1 $2 $3 $4</intlFormat>
20493         </numberFormat>
20494       </availableFormats>
20495       <generalDesc>
20496         <nationalNumberPattern>[1-9]\d{6,9}</nationalNumberPattern>
20497         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
20498       </generalDesc>
20499       <fixedLine>
20500         <nationalNumberPattern>
20501           1(?:
20502             0[1-8]\d{6}|
20503             [136]\d{5,7}|
20504             (?:
20505               2[0-35]|
20506               4[0-4]|
20507               5[0-25-9]|
20508               7[13-6]|
20509               [89]\d
20510             )\d{5,6}
20511           )|
20512           2(?:
20513             [136]\d{5,7}|
20514             (?:
20515               2[0-7]|
20516               4[0136-8]|
20517               5[0138]|
20518               7[018]|
20519               8[01]|
20520               9[0-57]
20521             )\d{5,6}
20522           )|
20523           3(?:
20524             [356]\d{5,7}|
20525             (?:
20526               0[0-4]|
20527               1\d|
20528               2[0-25]|
20529               4[056]|
20530               7[0-2]|
20531               8[0-3]|
20532               9[023]
20533             )\d{5,6}
20534           )|
20535           4(?:
20536             [0246]\d{5,7}|
20537             (?:
20538               1[0-8]|
20539               3[0135]|
20540               5[14-79]|
20541               7[0-246-9]|
20542               8[0156]|
20543               9[0-689]
20544             )\d{5,6}
20545           )|
20546           5(?:
20547             0[0-6]|
20548             [15][0-5]|
20549             2[0-68]|
20550             3[0-4]|
20551             4\d|
20552             6[03-5]|
20553             7[013]|
20554             8[0-79]|
20555             9[01]
20556           )\d{5,6}|
20557           6(?:
20558             [03]\d{5,7}|
20559             (?:
20560               1[1-3]|
20561               2[0-4]|
20562               4[02-57]|
20563               5[0-37]|
20564               6[0-3]|
20565               7[0-2]|
20566               8[0247]|
20567               9[0-356]
20568             )\d{5,6}
20569           )|
20570           8\d{6,8}|
20571           9(?:
20572             0\d{5,7}|
20573             (?:
20574               1[0-68]|
20575               2\d|
20576               3[02-59]|
20577               [45][0-4]|
20578               [68][01]|
20579               7[0135-8]
20580             )\d{5,6}
20581           )
20582         </nationalNumberPattern>
20583         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20584         <exampleNumber>8123456</exampleNumber>
20585       </fixedLine>
20586       <mobile>
20587         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
20588         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20589         <exampleNumber>701234567</exampleNumber>
20590       </mobile>
20591       <pager>
20592         <nationalNumberPattern>74\d{7}</nationalNumberPattern>
20593         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20594         <exampleNumber>741234567</exampleNumber>
20595       </pager>
20596       <tollFree>
20597         <nationalNumberPattern>20\d{4,7}</nationalNumberPattern>
20598         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20599         <exampleNumber>201234567</exampleNumber>
20600       </tollFree>
20601       <premiumRate>
20602         <nationalNumberPattern>
20603           9(?:
20604             00|
20605             39|
20606             44
20607           )\d{7}
20608         </nationalNumberPattern>
20609         <possibleNumberPattern>\d{10}</possibleNumberPattern>
20610         <exampleNumber>9001234567</exampleNumber>
20611       </premiumRate>
20612       <sharedCost>
20613         <nationalNumberPattern>77\d{7}</nationalNumberPattern>
20614         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20615         <exampleNumber>771234567</exampleNumber>
20616       </sharedCost>
20617       <personalNumber>
20618         <nationalNumberPattern>75\d{7}</nationalNumberPattern>
20619         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20620         <exampleNumber>751234567</exampleNumber>
20621       </personalNumber>
20622       <emergency>
20623         <nationalNumberPattern>
20624           112|
20625           90000
20626         </nationalNumberPattern>
20627         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
20628         <exampleNumber>112</exampleNumber>
20629       </emergency>
20630     </territory>
20631
20632     <!-- Singapore -->
20633     <!-- http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx -->
20634     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d">
20635       <availableFormats>
20636         <numberFormat pattern="([3689]\d{3})(\d{4})">
20637           <leadingDigits>
20638             [369]|
20639             8[1-9]
20640           </leadingDigits>
20641           <format>$1 $2</format>
20642         </numberFormat>
20643         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
20644           <leadingDigits>1[89]</leadingDigits>
20645           <format>$1 $2 $3</format>
20646         </numberFormat>
20647         <numberFormat pattern="(7000)(\d{4})(\d{3})">
20648           <leadingDigits>70</leadingDigits>
20649           <format>$1 $2 $3</format>
20650         </numberFormat>
20651         <numberFormat pattern="(800)(\d{3})(\d{4})">
20652           <leadingDigits>80</leadingDigits>
20653           <format>$1 $2 $3</format>
20654         </numberFormat>
20655       </availableFormats>
20656       <generalDesc>
20657         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
20658              easily strip off leading "65" country codes. -->
20659         <nationalNumberPattern>
20660           [36]\d{7}|
20661           [17-9]\d{7,10}
20662         </nationalNumberPattern>
20663         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
20664       </generalDesc>
20665       <fixedLine>
20666         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
20667         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20668         <exampleNumber>61234567</exampleNumber>
20669       </fixedLine>
20670       <mobile>
20671         <nationalNumberPattern>
20672           (?:
20673             8[1-7]|
20674             9[0-8]
20675           )\d{6}
20676         </nationalNumberPattern>
20677         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20678         <exampleNumber>81234567</exampleNumber>
20679       </mobile>
20680       <tollFree>
20681         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
20682         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
20683         <exampleNumber>18001234567</exampleNumber>
20684       </tollFree>
20685       <premiumRate>
20686         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
20687         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20688         <exampleNumber>19001234567</exampleNumber>
20689       </premiumRate>
20690       <voip>
20691         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
20692         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20693         <exampleNumber>31234567</exampleNumber>
20694       </voip>
20695       <uan>
20696         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
20697              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
20698              -->
20699         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
20700         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20701         <exampleNumber>70001234567</exampleNumber>
20702       </uan>
20703       <emergency>
20704         <nationalNumberPattern>99[359]</nationalNumberPattern>
20705         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20706         <exampleNumber>999</exampleNumber>
20707       </emergency>
20708     </territory>
20709
20710     <!-- Saint Helena -->
20711     <!-- http://www.itu.int/oth/T02020000AF/en -->
20712     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
20713       <!-- Numbers are formatted as a block. -->
20714       <generalDesc>
20715         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
20716         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
20717       </generalDesc>
20718       <fixedLine>
20719         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
20720              The new pattern is first, followed by the old (hence the repetition of the leading 2).
20721              -->
20722         <nationalNumberPattern>
20723           2(?:
20724             [0-57-9]\d|
20725             6[4-9]
20726           )\d{2}|
20727           (?:
20728             [2-46]\d|
20729             7[01]
20730           )\d{2}
20731         </nationalNumberPattern>
20732         <!-- Using St Helena Tourism as the example number. -->
20733         <exampleNumber>2158</exampleNumber>
20734       </fixedLine>
20735       <mobile>
20736         <nationalNumberPattern>NA</nationalNumberPattern>
20737         <possibleNumberPattern>NA</possibleNumberPattern>
20738       </mobile>
20739       <premiumRate>
20740         <nationalNumberPattern>
20741           (?:
20742             [59]\d|
20743             7[2-9]
20744           )\d{2}
20745         </nationalNumberPattern>
20746         <exampleNumber>5012</exampleNumber>
20747       </premiumRate>
20748       <emergency>
20749         <!-- http://www.sthelenatourism.com/pages/fast_facts.html#Emergencies -->
20750         <nationalNumberPattern>
20751           9(?:
20752             11|
20753             99
20754           )
20755         </nationalNumberPattern>
20756         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20757         <exampleNumber>999</exampleNumber>
20758       </emergency>
20759     </territory>
20760
20761     <!-- Slovenia -->
20762     <!-- http://www.itu.int/oth/T02020000BE/en -->
20763     <territory id="SI" countryCode="386" internationalPrefix="00"
20764                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
20765       <availableFormats>
20766         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
20767           pattern="(\d)(\d{3})(\d{2})(\d{2})">
20768           <leadingDigits>
20769             [12]|
20770             3[4-8]|
20771             4[24-8]|
20772             5[2-8]|
20773             7[3-8]
20774           </leadingDigits>
20775           <format>$1 $2 $3 $4</format>
20776           </numberFormat>
20777         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
20778           <leadingDigits>
20779             [37][01]|
20780             4[019]|
20781             51|
20782             6
20783           </leadingDigits>
20784           <format>$1 $2 $3</format>
20785           </numberFormat>
20786         <numberFormat pattern="([89][09])(\d{3,6})">
20787           <leadingDigits>[89][09]</leadingDigits>
20788           <format>$1 $2</format>
20789         </numberFormat>
20790         <numberFormat pattern="([58]\d{2})(\d{5})">
20791           <leadingDigits>
20792             59|
20793             8[1-3]
20794           </leadingDigits>
20795           <format>$1 $2</format>
20796         </numberFormat>
20797       </availableFormats>
20798       <generalDesc>
20799         <nationalNumberPattern>
20800           [1-7]\d{6,7}|
20801           [89]\d{4,7}
20802         </nationalNumberPattern>
20803         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20804       </generalDesc>
20805       <fixedLine>
20806         <nationalNumberPattern>
20807           (?:
20808             1\d|
20809             [25][2-8]|
20810             3[4-8]|
20811             4[24-8]|
20812             7[3-8]
20813           )\d{6}
20814         </nationalNumberPattern>
20815         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
20816         <exampleNumber>11234567</exampleNumber>
20817       </fixedLine>
20818       <mobile>
20819         <!-- We include 049 here - it is VoIP in the plan, but SMS messages have been successfully
20820              delivered - and it is run by Mobitel. There are also mobile numbers found on the
20821              internet with this prefix - it is apparently used in Kosovo. Also
20822              added 068, which is used by the mobile operator bob.si -->
20823         <nationalNumberPattern>
20824           (?:
20825             [37][01]|
20826             4[019]|
20827             51|
20828             6[48]
20829           )\d{6}
20830         </nationalNumberPattern>
20831         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20832         <exampleNumber>31234567</exampleNumber>
20833       </mobile>
20834       <tollFree>
20835         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
20836         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20837         <exampleNumber>80123456</exampleNumber>
20838       </tollFree>
20839       <premiumRate>
20840         <!-- Includes televoting, mass calling -->
20841         <nationalNumberPattern>
20842           90\d{4,6}|
20843           89[1-3]\d{2,5}
20844         </nationalNumberPattern>
20845         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20846         <exampleNumber>90123456</exampleNumber>
20847       </premiumRate>
20848       <voip>
20849         <nationalNumberPattern>
20850           (?:
20851             59|
20852             8[1-3]
20853           )\d{6}
20854         </nationalNumberPattern>
20855         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20856         <exampleNumber>59012345</exampleNumber>
20857       </voip>
20858       <emergency>
20859         <nationalNumberPattern>11[23]</nationalNumberPattern>
20860         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20861         <exampleNumber>112</exampleNumber>
20862       </emergency>
20863     </territory>
20864
20865     <!-- Svalbard -->
20866     <!-- Metadata shared with Norway. -->
20867     <!-- http://www.npt.no/pt_internet/numsys/E.164.pdf -->
20868     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
20869       <generalDesc>
20870         <nationalNumberPattern>
20871           0\d{4}|
20872           [4789]\d{7}
20873         </nationalNumberPattern>
20874         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
20875       </generalDesc>
20876       <fixedLine>
20877         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
20878         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20879         <exampleNumber>79123456</exampleNumber>
20880       </fixedLine>
20881       <!-- Copied from Norway metadata. -->
20882       <mobile>
20883         <nationalNumberPattern>
20884           (?:
20885             4[015-8]|
20886             5[89]|
20887             9\d
20888           )\d{6}
20889         </nationalNumberPattern>
20890         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20891         <exampleNumber>41234567</exampleNumber>
20892       </mobile>
20893       <tollFree>
20894         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
20895         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20896         <exampleNumber>80012345</exampleNumber>
20897       </tollFree>
20898       <premiumRate>
20899         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
20900         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20901         <exampleNumber>82012345</exampleNumber>
20902       </premiumRate>
20903       <sharedCost>
20904         <nationalNumberPattern>
20905           810(?:
20906             0[0-6]|
20907             [2-8]\d
20908           )\d{3}
20909         </nationalNumberPattern>
20910         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20911         <exampleNumber>81021234</exampleNumber>
20912       </sharedCost>
20913       <personalNumber>
20914         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
20915         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20916         <exampleNumber>88012345</exampleNumber>
20917       </personalNumber>
20918       <voip>
20919         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
20920         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20921         <exampleNumber>85012345</exampleNumber>
20922       </voip>
20923       <uan>
20924         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
20925         <nationalNumberPattern>
20926           0\d{4}|
20927           81(?:
20928             0(?:
20929               0[7-9]|
20930               1\d
20931             )|
20932             5\d{2}
20933           )\d{3}
20934         </nationalNumberPattern>
20935         <exampleNumber>01234</exampleNumber>
20936       </uan>
20937       <voicemail>
20938         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
20939         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20940         <exampleNumber>81212345</exampleNumber>
20941       </voicemail>
20942       <!-- Same as Norway, according to http://kho.unis.no/nordlysstasjon_useful.htm -->
20943       <emergency>
20944         <nationalNumberPattern>11[023]</nationalNumberPattern>
20945         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20946         <exampleNumber>112</exampleNumber>
20947       </emergency>
20948     </territory>
20949
20950     <!-- Slovakia -->
20951     <!-- http://www.itu.int/oth/T02020000BD/en -->
20952     <territory id="SK" countryCode="421" internationalPrefix="00"
20953                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
20954       <availableFormats>
20955         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
20956           <leadingDigits>2</leadingDigits>
20957           <format>$1/$2 $3 $4</format>
20958         </numberFormat>
20959         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
20960           <leadingDigits>[3-5]</leadingDigits>
20961           <format>$1/$2 $3 $4</format>
20962         </numberFormat>
20963         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
20964           <leadingDigits>[689]</leadingDigits>
20965           <format>$1 $2 $3</format>
20966         </numberFormat>
20967       </availableFormats>
20968       <generalDesc>
20969         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
20970         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20971       </generalDesc>
20972       <noInternationalDialling>
20973         <nationalNumberPattern>
20974           (?:
20975             8(?:
20976               00|
20977               [5-9]\d
20978             )|
20979             9(?:
20980               00|
20981               [78]\d
20982             )
20983           )\d{6}
20984         </nationalNumberPattern>
20985         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20986         <exampleNumber>800123456</exampleNumber>
20987       </noInternationalDialling>
20988       <fixedLine>
20989         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
20990         <exampleNumber>212345678</exampleNumber>
20991       </fixedLine>
20992       <mobile>
20993         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
20994              deeming it valid for now. -->
20995         <nationalNumberPattern>
20996           9(?:
20997             0[1-8]|
20998             1[0-24-9]|
20999             4[0489]
21000           )\d{6}
21001         </nationalNumberPattern>
21002         <exampleNumber>912123456</exampleNumber>
21003       </mobile>
21004       <tollFree>
21005         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
21006         <exampleNumber>800123456</exampleNumber>
21007       </tollFree>
21008       <premiumRate>
21009         <nationalNumberPattern>
21010           9(?:
21011             [78]\d{7}|
21012             00\d{6}
21013           )
21014         </nationalNumberPattern>
21015         <exampleNumber>900123456</exampleNumber>
21016       </premiumRate>
21017       <sharedCost>
21018         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
21019         <exampleNumber>850123456</exampleNumber>
21020       </sharedCost>
21021       <voip>
21022         <nationalNumberPattern>
21023           6(?:
21024             5[0-4]|
21025             9[0-6]
21026           )\d{6}
21027         </nationalNumberPattern>
21028         <exampleNumber>690123456</exampleNumber>
21029       </voip>
21030       <uan>
21031         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
21032         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21033         <exampleNumber>961234567</exampleNumber>
21034       </uan>
21035       <emergency>
21036         <nationalNumberPattern>
21037           1(?:
21038             12|
21039             5[058]
21040           )
21041         </nationalNumberPattern>
21042         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21043         <exampleNumber>112</exampleNumber>
21044       </emergency>
21045     </territory>
21046
21047     <!-- Sierra Leone -->
21048     <!-- http://www.itu.int/oth/T02020000BB/en -->
21049     <territory id="SL" countryCode="232" internationalPrefix="00"
21050                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
21051       <availableFormats>
21052         <!-- Following formatting of online yellow pages www.leonedirect.com -->
21053         <numberFormat pattern="(\d{2})(\d{6})">
21054           <format>$1 $2</format>
21055         </numberFormat>
21056       </availableFormats>
21057       <generalDesc>
21058         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
21059         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
21060       </generalDesc>
21061       <fixedLine>
21062         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
21063         <exampleNumber>22221234</exampleNumber>
21064       </fixedLine>
21065       <mobile>
21066         <nationalNumberPattern>
21067           (?:
21068             2[15]|
21069             3[034]|
21070             4[04]|
21071             5[05]|
21072             7[6-9]|
21073             88
21074           )\d{6}
21075         </nationalNumberPattern>
21076         <exampleNumber>25123456</exampleNumber>
21077       </mobile>
21078       <emergency>
21079         <nationalNumberPattern>
21080           (?:
21081             01|
21082             99
21083           )9
21084         </nationalNumberPattern>
21085         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21086         <exampleNumber>999</exampleNumber>
21087       </emergency>
21088     </territory>
21089
21090     <!-- San Marino -->
21091     <!-- http://www.itu.int/oth/T02020000B5/en -->
21092     <!-- http://en.wikipedia.org/wiki/%2B39 (Information about Italy) -->
21093     <!-- http://en.wikipedia.org/wiki/%2B378-->
21094     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
21095          optional when dialling from outside the country; the phone number can be reached both with
21096          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
21097          are used to ensure that if the 0549 is not present, it will be added. -->
21098     <territory id="SM" countryCode="378" internationalPrefix="00"
21099                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
21100                leadingZeroPossible="true">
21101       <availableFormats>
21102         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21103           <leadingDigits>[5-7]</leadingDigits>
21104           <format>$1 $2 $3 $4</format>
21105         </numberFormat>
21106         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
21107         <numberFormat pattern="(0549)(\d{6})">
21108           <leadingDigits>0</leadingDigits>
21109           <format>$1 $2</format>
21110           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
21111                formatting in international format. -->
21112           <intlFormat>($1) $2</intlFormat>
21113         </numberFormat>
21114         <!-- A rule in case the number has been stored without the leading 0549 necessary for
21115              fixed-lines. -->
21116         <numberFormat pattern="(\d{6})">
21117           <leadingDigits>[89]</leadingDigits>
21118           <format>0549 $1</format>
21119           <intlFormat>(0549) $1</intlFormat>
21120         </numberFormat>
21121       </availableFormats>
21122       <generalDesc>
21123         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
21124         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
21125       </generalDesc>
21126       <!-- Example numbers provided by the Telecommunications Services. -->
21127       <fixedLine>
21128         <nationalNumberPattern>
21129           0549(?:
21130             8[0157-9]|
21131             9\d
21132           )\d{4}
21133         </nationalNumberPattern>
21134         <exampleNumber>0549886377</exampleNumber>
21135       </fixedLine>
21136       <mobile>
21137         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
21138         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21139         <exampleNumber>66661212</exampleNumber>
21140       </mobile>
21141       <premiumRate>
21142         <!-- Includes Video Call numbers. -->
21143         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
21144         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21145         <exampleNumber>71123456</exampleNumber>
21146       </premiumRate>
21147       <voip>
21148         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
21149         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21150         <exampleNumber>58001110</exampleNumber>
21151       </voip>
21152       <emergency>
21153         <nationalNumberPattern>11[358]</nationalNumberPattern>
21154         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21155         <exampleNumber>113</exampleNumber>
21156       </emergency>
21157     </territory>
21158
21159     <!-- Senegal -->
21160     <!-- http://www.itu.int/oth/T02020000B8/en -->
21161     <territory id="SN" countryCode="221" internationalPrefix="00">
21162       <availableFormats>
21163         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
21164              the national numbering plan. -->
21165         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
21166           <format>$1 $2 $3 $4</format>
21167         </numberFormat>
21168       </availableFormats>
21169       <generalDesc>
21170         <nationalNumberPattern>[37]\d{8}</nationalNumberPattern>
21171         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21172       </generalDesc>
21173       <fixedLine>
21174         <nationalNumberPattern>
21175           3(?:
21176             0(?:
21177               1[01]|
21178               80
21179             )|
21180             3(?:
21181               8[1-9]|
21182               9[2-9]
21183             )
21184           )\d{5}
21185         </nationalNumberPattern>
21186         <exampleNumber>301012345</exampleNumber>
21187       </fixedLine>
21188       <mobile>
21189         <nationalNumberPattern>
21190           7(?:
21191             0(?:
21192               [01279]0|
21193               3[03]|
21194               4[05]|
21195               5[06]|
21196               6[03-5]|
21197               8[029]
21198             )|
21199             6(?:
21200               1[23]|
21201               2[89]|
21202               3[3489]|
21203               4[6-9]|
21204               5\d|
21205               6[3-9]|
21206               7[45]|
21207               8[3-8]
21208             )|
21209             7\d{2}|
21210             8(?:
21211               01|
21212               1[01]
21213             )
21214           )\d{5}
21215         </nationalNumberPattern>
21216         <exampleNumber>701012345</exampleNumber>
21217       </mobile>
21218       <voip>
21219         <nationalNumberPattern>33301\d{4}</nationalNumberPattern>
21220         <exampleNumber>333011234</exampleNumber>
21221       </voip>
21222       <!-- No emergency numbers information can be found. -->
21223     </territory>
21224
21225     <!-- Somalia -->
21226     <!-- http://www.itu.int/oth/T02020000C0/en -->
21227     <!-- http://en.wikipedia.org/wiki/+252 -->
21228     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
21229          information available, and the numerous telecom carriers were previously working under an
21230          unregulated environment. The extra prefixes were added from the contact phone numbers of
21231          the countries main telecom operators. We also have received information that a national
21232          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
21233          for some operators, so that is included here although we do not use it when formatting. -->
21234     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
21235       <availableFormats>
21236         <!-- These follow formats online, such as www.hortel.net/contact_us.html -->
21237         <numberFormat pattern="(\d)(\d{6})">
21238           <leadingDigits>
21239             2[0-79]|
21240             [13-5]
21241           </leadingDigits>
21242           <format>$1 $2</format>
21243         </numberFormat>
21244         <numberFormat pattern="(\d)(\d{7})">
21245           <leadingDigits>
21246             24|
21247             [67]
21248           </leadingDigits>
21249           <format>$1 $2</format>
21250         </numberFormat>
21251         <numberFormat pattern="(\d{2})(\d{5,7})">
21252           <leadingDigits>
21253             15|
21254             28|
21255             6[178]|
21256             9
21257           </leadingDigits>
21258           <format>$1 $2</format>
21259         </numberFormat>
21260         <numberFormat pattern="(69\d)(\d{6})">
21261           <leadingDigits>69</leadingDigits>
21262           <format>$1 $2</format>
21263         </numberFormat>
21264       </availableFormats>
21265       <generalDesc>
21266         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
21267         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
21268       </generalDesc>
21269       <fixedLine>
21270         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
21271              here since that is apparently used for mobile. -->
21272         <nationalNumberPattern>
21273           (?:
21274             [134]\d|
21275             2[0-79]|
21276             5[57-9]
21277           )\d{5}
21278         </nationalNumberPattern>
21279         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21280         <!-- Example numbers are test numbers from the document. -->
21281         <exampleNumber>5522010</exampleNumber>
21282       </fixedLine>
21283       <mobile>
21284         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
21285              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
21286              Somtel. 6 followed by only 7 digits is used by Telecom. We have received information
21287              from Golis Telecom that 90 numbers are extended by 1 digit by becoming 907.
21288              Note that the ITU update of Apr. 2013 suggests there is a longer 707 XXX XXX range
21289              for mobile, but the document is not self consistent, so this is probably a typo. -->
21290         <nationalNumberPattern>
21291           (?:
21292             15\d|
21293             2(?:
21294               4\d|
21295               8
21296             )|
21297             6[17-9]?\d{2}|
21298             7\d{2}|
21299             9(?:
21300               07|
21301               [19]
21302             )\d
21303           )\d{5}
21304         </nationalNumberPattern>
21305         <exampleNumber>907792024</exampleNumber>
21306       </mobile>
21307       <!-- According to the following webpage, there is no emergency number in Somalia:
21308            http://www.netglobers.com/africa/somalia-emergency-numbers-in-somalia.html -->
21309     </territory>
21310
21311     <!-- Suriname -->
21312     <!-- http://www.itu.int/oth/T02020000C5/en -->
21313     <territory id="SR" countryCode="597" internationalPrefix="00">
21314       <availableFormats>
21315         <!-- Following conventions used in the Suriname Yellow Pages. -->
21316         <numberFormat pattern="(\d{3})(\d{3})">
21317           <leadingDigits>
21318             [2-4]|
21319             5[2-58]
21320           </leadingDigits>
21321           <format>$1-$2</format>
21322         </numberFormat>
21323         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
21324           <leadingDigits>56</leadingDigits>
21325           <format>$1-$2-$3</format>
21326         </numberFormat>
21327         <numberFormat pattern="(\d{3})(\d{4})">
21328           <leadingDigits>[6-8]</leadingDigits>
21329           <format>$1-$2</format>
21330         </numberFormat>
21331       </availableFormats>
21332       <generalDesc>
21333         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
21334         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
21335       </generalDesc>
21336       <fixedLine>
21337         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
21338         <nationalNumberPattern>
21339           (?:
21340             2[1-3]|
21341             3[0-7]|
21342             4\d|
21343             5[2-58]|
21344             68\d
21345           )\d{4}
21346         </nationalNumberPattern>
21347         <exampleNumber>211234</exampleNumber>
21348       </fixedLine>
21349       <mobile>
21350         <!-- Adding 74 from numbers found online. -->
21351         <nationalNumberPattern>
21352           (?:
21353             7[1-57]|
21354             8[1-9]
21355           )\d{5}
21356         </nationalNumberPattern>
21357         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21358         <exampleNumber>7412345</exampleNumber>
21359       </mobile>
21360       <voip>
21361         <nationalNumberPattern>56\d{4}</nationalNumberPattern>
21362         <possibleNumberPattern>\d{6}</possibleNumberPattern>
21363         <exampleNumber>561234</exampleNumber>
21364       </voip>
21365       <emergency>
21366         <nationalNumberPattern>115</nationalNumberPattern>
21367         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21368         <exampleNumber>115</exampleNumber>
21369       </emergency>
21370     </territory>
21371
21372     <!-- South Sudan -->
21373     <!-- http://www.itu.int/oth/T02020000F9/en -->
21374     <!-- http://en.wikipedia.org/wiki/+211 -->
21375     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
21376       <availableFormats>
21377         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
21378           <format>$1 $2 $3</format>
21379         </numberFormat>
21380       </availableFormats>
21381       <generalDesc>
21382         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
21383         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21384       </generalDesc>
21385       <fixedLine>
21386         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
21387         <exampleNumber>181234567</exampleNumber>
21388       </fixedLine>
21389       <mobile>
21390         <nationalNumberPattern>
21391           (?:
21392             12|
21393             9[1257]
21394           )\d{7}
21395         </nationalNumberPattern>
21396         <exampleNumber>977123456</exampleNumber>
21397       </mobile>
21398     </territory>
21399
21400     <!-- Sao Tome and Principe -->
21401     <!-- http://www.itu.int/oth/T02020000B6/en -->
21402     <territory id="ST" countryCode="239" internationalPrefix="00">
21403       <availableFormats>
21404         <numberFormat pattern="(\d{3})(\d{4})">
21405           <format>$1 $2</format>
21406         </numberFormat>
21407       </availableFormats>
21408       <generalDesc>
21409         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
21410         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21411       </generalDesc>
21412       <fixedLine>
21413         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
21414         <exampleNumber>2221234</exampleNumber>
21415       </fixedLine>
21416       <mobile>
21417         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
21418         <exampleNumber>9812345</exampleNumber>
21419       </mobile>
21420       <emergency>
21421         <!-- http://www.netglobers.com/africa/s%C3%A3o-tome-and-principe-emergency-numbers-in-s%C3%A3o-tome-and-principe.html
21422              -->
21423         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1010.html -->
21424         <!-- http://www.tipredaktion.net/consumer/lufthansa_en/tip-ST-1.html -->
21425         <!-- Emergency numbers longer than 3 digits covered by fixed-line. -->
21426         <nationalNumberPattern>112</nationalNumberPattern>
21427         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21428         <exampleNumber>112</exampleNumber>
21429       </emergency>
21430     </territory>
21431
21432     <!-- El Salvador -->
21433     <!-- http://www.itu.int/oth/T020200003F/en -->
21434     <!-- http://www.siget.gob.sv/BusquedaPublica.aspx?pagina=3&tipo=27&titulo=t8&sector=2&ordenar=&dir=DESC
21435          -->
21436     <territory id="SV" countryCode="503" internationalPrefix="00">
21437       <availableFormats>
21438         <numberFormat pattern="(\d{4})(\d{4})">
21439           <leadingDigits>[267]</leadingDigits>
21440           <format>$1 $2</format>
21441         </numberFormat>
21442         <numberFormat pattern="(\d{3})(\d{4})">
21443           <leadingDigits>[89]</leadingDigits>
21444           <format>$1 $2</format>
21445         </numberFormat>
21446         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
21447           <leadingDigits>[89]</leadingDigits>
21448           <format>$1 $2 $3</format>
21449         </numberFormat>
21450       </availableFormats>
21451       <generalDesc>
21452         <nationalNumberPattern>
21453           [267]\d{7}|
21454           [89]\d{6}(?:\d{4})?
21455         </nationalNumberPattern>
21456         <possibleNumberPattern>
21457           \d{7,8}|
21458           \d{11}
21459         </possibleNumberPattern>
21460       </generalDesc>
21461       <fixedLine>
21462         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
21463         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
21464         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21465         <exampleNumber>21234567</exampleNumber>
21466       </fixedLine>
21467       <mobile>
21468         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
21469         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21470         <exampleNumber>70123456</exampleNumber>
21471       </mobile>
21472       <tollFree>
21473         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
21474         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
21475         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21476         <exampleNumber>8001234</exampleNumber>
21477       </tollFree>
21478       <premiumRate>
21479         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
21480         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
21481         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21482         <exampleNumber>9001234</exampleNumber>
21483       </premiumRate>
21484       <emergency>
21485         <nationalNumberPattern>911</nationalNumberPattern>
21486         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21487         <exampleNumber>911</exampleNumber>
21488       </emergency>
21489     </territory>
21490
21491     <!-- Sint Maarten -->
21492     <!-- http://www.nanpa.com/pdf/PL_429.pdf -->
21493     <!-- http://www.itu.int/oth/T02020000F7/en -->
21494     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
21495                internationalPrefix="011">
21496       <generalDesc>
21497         <!-- NANPA country - uses US formatting rules -->
21498         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
21499         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21500       </generalDesc>
21501       <fixedLine>
21502         <nationalNumberPattern>
21503           7215(?:
21504             4[2-8]|
21505             8[239]|
21506             9[056]
21507           )\d{4}
21508         </nationalNumberPattern>
21509         <exampleNumber>7215425678</exampleNumber>
21510       </fixedLine>
21511       <mobile>
21512         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
21513              include these as mobile numbers. -->
21514         <nationalNumberPattern>
21515           7215(?:
21516             1[02]|
21517             2\d|
21518             5[034679]|
21519             8[014-8]
21520           )\d{4}
21521         </nationalNumberPattern>
21522         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21523         <exampleNumber>7215205678</exampleNumber>
21524       </mobile>
21525       <tollFree>
21526         <nationalNumberPattern>
21527           8(?:
21528             00|
21529             55|
21530             66|
21531             77|
21532             88
21533           )[2-9]\d{6}
21534         </nationalNumberPattern>
21535         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21536         <exampleNumber>8002123456</exampleNumber>
21537       </tollFree>
21538       <premiumRate>
21539         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21540         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21541         <exampleNumber>9002123456</exampleNumber>
21542       </premiumRate>
21543       <personalNumber>
21544         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
21545         <nationalNumberPattern>
21546           5(?:
21547             00|
21548             33|
21549             44
21550           )[2-9]\d{6}
21551         </nationalNumberPattern>
21552         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21553         <exampleNumber>5002345678</exampleNumber>
21554       </personalNumber>
21555       <emergency>
21556         <!-- http://experiencestmartin.com/islandfacts/telephones.html -->
21557         <nationalNumberPattern>919</nationalNumberPattern>
21558         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21559         <exampleNumber>919</exampleNumber>
21560       </emergency>
21561     </territory>
21562
21563     <!-- Syrian Arab Republic -->
21564     <!-- http://www.itu.int/oth/T02020000C9/en -->
21565     <!-- http://en.wikipedia.org/wiki/%2B963 -->
21566     <territory id="SY" countryCode="963" internationalPrefix="00"
21567                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21568                nationalPrefixOptionalWhenFormatting="true">
21569       <availableFormats>
21570         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
21571           <leadingDigits>[1-5]</leadingDigits>
21572           <format>$1 $2 $3</format>
21573         </numberFormat>
21574         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
21575           <leadingDigits>9</leadingDigits>
21576           <format>$1 $2 $3</format>
21577         </numberFormat>
21578       </availableFormats>
21579       <generalDesc>
21580         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
21581         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
21582       </generalDesc>
21583       <fixedLine>
21584         <nationalNumberPattern>
21585           (?:
21586             1(?:
21587               1\d?|
21588               4\d|
21589               [2356]
21590             )|
21591             2[1-35]|
21592             3(?:
21593               [13]\d|
21594               4
21595             )|
21596             4[13]|
21597             5[1-3]
21598           )\d{6}
21599         </nationalNumberPattern>
21600         <exampleNumber>112345678</exampleNumber>
21601       </fixedLine>
21602       <mobile>
21603         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
21604              95[138], and 96[05]. -->
21605         <nationalNumberPattern>
21606           9(?:
21607             22|
21608             [35][0-8]|
21609             4\d|
21610             6[024-9]|
21611             88|
21612             9[0-489]
21613           )\d{6}
21614         </nationalNumberPattern>
21615         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21616         <exampleNumber>944567890</exampleNumber>
21617       </mobile>
21618       <!-- No tollFree or premiumRate information can be found. -->
21619       <emergency>
21620         <nationalNumberPattern>11[023]</nationalNumberPattern>
21621         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21622         <exampleNumber>112</exampleNumber>
21623       </emergency>
21624     </territory>
21625
21626     <!-- Swaziland -->
21627     <!-- http://www.itu.int/oth/T02020000C6/en -->
21628     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
21629       <availableFormats>
21630         <numberFormat pattern="(\d{4})(\d{4})">
21631           <leadingDigits>[027]</leadingDigits>
21632           <format>$1 $2</format>
21633         </numberFormat>
21634       </availableFormats>
21635       <generalDesc>
21636         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
21637         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21638       </generalDesc>
21639       <noInternationalDialling>
21640         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21641         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21642         <exampleNumber>08001234</exampleNumber>
21643       </noInternationalDialling>
21644       <fixedLine>
21645         <nationalNumberPattern>
21646           2(?:
21647             2(?:
21648               0[07]|
21649               [13]7|
21650               2[57]
21651             )|
21652             3(?:
21653               0[34]|
21654               [1278]3|
21655               3[23]|
21656               [46][34]
21657             )|
21658             (?:
21659               40[4-69]|
21660               67
21661             )|
21662             5(?:
21663               0[5-7]|
21664               1[6-9]|
21665               [23][78]|
21666               48|
21667               5[01]
21668             )
21669           )\d{4}
21670         </nationalNumberPattern>
21671         <exampleNumber>22171234</exampleNumber>
21672       </fixedLine>
21673       <mobile>
21674         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
21675         <exampleNumber>76123456</exampleNumber>
21676       </mobile>
21677       <tollFree>
21678         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21679         <exampleNumber>08001234</exampleNumber>
21680       </tollFree>
21681       <emergency>
21682         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1031.html -->
21683         <!-- http://swaziland.usembassy.gov/information_for_travelers.html -->
21684         <nationalNumberPattern>999</nationalNumberPattern>
21685         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21686         <exampleNumber>999</exampleNumber>
21687       </emergency>
21688     </territory>
21689
21690     <!-- Tristan da Cunha -->
21691     <!-- http://www.itu.int/oth/T02020000AF/en -->
21692     <territory id="TA" countryCode="290" internationalPrefix="00">
21693       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
21694       <generalDesc>
21695         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21696         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21697       </generalDesc>
21698       <fixedLine>
21699         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21700         <exampleNumber>8999</exampleNumber>
21701       </fixedLine>
21702       <mobile>
21703         <nationalNumberPattern>NA</nationalNumberPattern>
21704         <possibleNumberPattern>NA</possibleNumberPattern>
21705       </mobile>
21706     </territory>
21707
21708     <!-- Turks and Caicos Islands -->
21709     <!-- http://www.itu.int/oth/T02020000D8/en -->
21710     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
21711                internationalPrefix="011">
21712       <generalDesc>
21713         <!-- NANPA country - uses US formatting rules -->
21714         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
21715         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21716       </generalDesc>
21717       <fixedLine>
21718         <nationalNumberPattern>
21719           649(?:
21720             712|
21721             9(?:
21722               4\d|
21723               50
21724             )
21725           )\d{4}
21726         </nationalNumberPattern>
21727         <exampleNumber>6497121234</exampleNumber>
21728       </fixedLine>
21729       <mobile>
21730         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
21731         <nationalNumberPattern>
21732           649(?:
21733             2(?:
21734               3[129]|
21735               4[1-7]
21736             )|
21737             3(?:
21738               3[1-389]|
21739               4[1-7]
21740             )|
21741             4[34][12]
21742           )\d{4}
21743         </nationalNumberPattern>
21744         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21745         <exampleNumber>6492311234</exampleNumber>
21746       </mobile>
21747       <tollFree>
21748         <nationalNumberPattern>
21749           8(?:
21750             00|
21751             55|
21752             66|
21753             77|
21754             88
21755           )[2-9]\d{6}
21756         </nationalNumberPattern>
21757         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21758         <exampleNumber>8002345678</exampleNumber>
21759       </tollFree>
21760       <premiumRate>
21761         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21762         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21763         <exampleNumber>9002345678</exampleNumber>
21764       </premiumRate>
21765       <personalNumber>
21766         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
21767         <nationalNumberPattern>
21768           5(?:
21769             00|
21770             33|
21771             44
21772           )[2-9]\d{6}
21773         </nationalNumberPattern>
21774         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21775         <exampleNumber>5002345678</exampleNumber>
21776       </personalNumber>
21777       <voip>
21778         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
21779         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21780         <exampleNumber>6497101234</exampleNumber>
21781       </voip>
21782       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
21783       <!-- http://s2.turksandcaicosyp.com/Turks-Caicos/Government/2/book -->
21784       <emergency>
21785         <nationalNumberPattern>
21786           9(?:
21787             11|
21788             99
21789           )
21790         </nationalNumberPattern>
21791         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21792         <exampleNumber>911</exampleNumber>
21793       </emergency>
21794     </territory>
21795
21796     <!-- Chad -->
21797     <!-- http://www.itu.int/oth/T0202000029/en -->
21798     <!-- The international prefix includes 16 as the international manual exchange. -->
21799     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
21800                internationalPrefix="00|16">
21801       <availableFormats>
21802         <numberFormat
21803           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21804           <format>$1 $2 $3 $4</format>
21805         </numberFormat>
21806       </availableFormats>
21807       <generalDesc>
21808         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
21809         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21810       </generalDesc>
21811       <fixedLine>
21812         <nationalNumberPattern>
21813           22(?:
21814             [3789]0|
21815             5[0-5]|
21816             6[89]
21817           )\d{4}
21818         </nationalNumberPattern>
21819         <exampleNumber>22501234</exampleNumber>
21820       </fixedLine>
21821       <mobile>
21822         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
21823              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
21824              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
21825         <nationalNumberPattern>
21826           (?:
21827             6[02368]\d|
21828             77\d|
21829             9(?:
21830               5[0-4]|
21831               9\d
21832             )
21833           )\d{5}
21834         </nationalNumberPattern>
21835         <exampleNumber>63012345</exampleNumber>
21836       </mobile>
21837       <emergency>
21838         <nationalNumberPattern>1[78]</nationalNumberPattern>
21839         <possibleNumberPattern>\d{2}</possibleNumberPattern>
21840         <exampleNumber>17</exampleNumber>
21841       </emergency>
21842     </territory>
21843
21844     <!-- French Southern Territories -->
21845     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
21846     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
21847          temporary inhabitants. -->
21848
21849     <!-- Togo -->
21850     <!-- http://www.itu.int/oth/T02020000D1/en -->
21851     <territory id="TG" countryCode="228" internationalPrefix="00">
21852       <availableFormats>
21853         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21854           <format>$1 $2 $3 $4</format>
21855         </numberFormat>
21856       </availableFormats>
21857       <generalDesc>
21858         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
21859         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21860       </generalDesc>
21861       <fixedLine>
21862         <nationalNumberPattern>
21863           2(?:
21864             2[2-7]|
21865             3[23]|
21866             44|
21867             55|
21868             66|
21869             77
21870           )\d{5}
21871         </nationalNumberPattern>
21872         <exampleNumber>22212345</exampleNumber>
21873       </fixedLine>
21874       <mobile>
21875         <nationalNumberPattern>9[0-289]\d{6}</nationalNumberPattern>
21876         <exampleNumber>90112345</exampleNumber>
21877       </mobile>
21878       <emergency>
21879         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1041.html -->
21880         <!-- http://www.netglobers.com/africa/togo-emergency-numbers-in-togo.html -->
21881         <!-- http://www.mapsofworld.com/togo/information/emergency-numbers.html -->
21882         <nationalNumberPattern>
21883           1(?:
21884             01|
21885             1[78]|
21886             7[17]
21887           )
21888         </nationalNumberPattern>
21889         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21890         <exampleNumber>117</exampleNumber>
21891       </emergency>
21892     </territory>
21893
21894     <!-- Thailand -->
21895     <!-- http://www.itu.int/oth/T02020000CD/en -->
21896     <!-- http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf -->
21897     <territory id="TH" countryCode="66" internationalPrefix="00"
21898                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
21899       <availableFormats>
21900         <!-- Formatting patterns from wikipedia and the document itself -
21901              http://en.wikipedia.org/wiki/%2B66 -->
21902         <numberFormat pattern="(2)(\d{3})(\d{4})">
21903           <leadingDigits>2</leadingDigits>
21904           <format>$1 $2 $3</format>
21905         </numberFormat>
21906         <numberFormat pattern="([3-9]\d)(\d{3})(\d{3,4})">
21907           <leadingDigits>[3-9]</leadingDigits>
21908           <format>$1 $2 $3</format>
21909         </numberFormat>
21910         <numberFormat nationalPrefixFormattingRule="$FG"
21911           pattern="(1[89]00)(\d{3})(\d{3})">
21912           <leadingDigits>1</leadingDigits>
21913           <format>$1 $2 $3</format>
21914         </numberFormat>
21915       </availableFormats>
21916       <generalDesc>
21917         <nationalNumberPattern>
21918           [2-9]\d{7,8}|
21919           1\d{3}(?:\d{6})?
21920         </nationalNumberPattern>
21921         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
21922       </generalDesc>
21923       <noInternationalDialling>
21924         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21925         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21926         <exampleNumber>1100</exampleNumber>
21927       </noInternationalDialling>
21928       <fixedLine>
21929         <nationalNumberPattern>
21930           (?:
21931             2[1-9]|
21932             3[2-9]|
21933             4[2-5]|
21934             5[2-6]|
21935             7[3-7]
21936           )\d{6}
21937         </nationalNumberPattern>
21938         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21939         <exampleNumber>21234567</exampleNumber>
21940       </fixedLine>
21941       <mobile>
21942         <nationalNumberPattern>[89]\d{8}</nationalNumberPattern>
21943         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21944         <exampleNumber>812345678</exampleNumber>
21945       </mobile>
21946       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
21947       <tollFree>
21948         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
21949         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21950         <exampleNumber>1800123456</exampleNumber>
21951       </tollFree>
21952       <premiumRate>
21953         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
21954         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21955         <exampleNumber>1900123456</exampleNumber>
21956       </premiumRate>
21957       <voip>
21958         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
21959              online to suggest they are actually used as mobile numbers -->
21960         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
21961         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21962         <exampleNumber>601234567</exampleNumber>
21963       </voip>
21964       <uan>
21965         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
21966              their costs range from free to 6 Baht/min. -->
21967         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
21968         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21969         <exampleNumber>1100</exampleNumber>
21970       </uan>
21971       <emergency>
21972         <nationalNumberPattern>
21973           1(?:
21974             669|
21975             9[19]
21976           )
21977         </nationalNumberPattern>
21978         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
21979         <exampleNumber>191</exampleNumber>
21980       </emergency>
21981     </territory>
21982
21983     <!-- Tajikistan -->
21984     <!-- http://www.itu.int/oth/T02020000CA/en -->
21985     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
21986                internationalPrefix="810" nationalPrefix="8"
21987                nationalPrefixFormattingRule="($NP) $FG"
21988                nationalPrefixOptionalWhenFormatting="true">
21989       <availableFormats>
21990         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
21991           <leadingDigits>
21992             [34]7|
21993             91[78]
21994           </leadingDigits>
21995           <format>$1 $2 $3</format>
21996         </numberFormat>
21997         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
21998           <leadingDigits>
21999             4[48]|
22000             5|
22001             9(?:
22002               1[59]|
22003               [0235-9]
22004             )
22005           </leadingDigits>
22006           <format>$1 $2 $3</format>
22007         </numberFormat>
22008         <numberFormat pattern="(331700)(\d)(\d{2})">
22009           <leadingDigits>331</leadingDigits>
22010           <leadingDigits>3317</leadingDigits>
22011           <leadingDigits>33170</leadingDigits>
22012           <leadingDigits>331700</leadingDigits>
22013           <format>$1 $2 $3</format>
22014         </numberFormat>
22015         <numberFormat pattern="(\d{4})(\d)(\d{4})">
22016           <leadingDigits>3[1-5]</leadingDigits>
22017           <leadingDigits>
22018             3(?:
22019               [1245]|
22020               3(?:
22021                 [02-9]|
22022                 1[0-589]
22023               )
22024             )
22025           </leadingDigits>
22026           <format>$1 $2 $3</format>
22027         </numberFormat>
22028       </availableFormats>
22029       <generalDesc>
22030         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
22031         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
22032       </generalDesc>
22033       <fixedLine>
22034         <nationalNumberPattern>
22035           (?:
22036             3(?:
22037               1[3-5]|
22038               2[245]|
22039               3[12]|
22040               4[24-7]|
22041               5[25]|
22042               72
22043             )|
22044             4(?:
22045               46|
22046               74|
22047               87
22048             )
22049           )\d{6}
22050         </nationalNumberPattern>
22051         <exampleNumber>372123456</exampleNumber>
22052       </fixedLine>
22053       <mobile>
22054         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
22055              numbers, and 501 for TCell. -->
22056         <nationalNumberPattern>
22057           (?:
22058             50[15]|
22059             9[0-35-9]\d
22060           )\d{6}
22061         </nationalNumberPattern>
22062         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22063         <exampleNumber>917123456</exampleNumber>
22064       </mobile>
22065       <!-- No tollFree or premiumRate information can be found. -->
22066       <emergency>
22067         <nationalNumberPattern>
22068           1(?:
22069             0[1-3]|
22070             12
22071           )
22072         </nationalNumberPattern>
22073         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22074         <exampleNumber>112</exampleNumber>
22075       </emergency>
22076     </territory>
22077
22078     <!-- Tokelau -->
22079     <!-- http://www.itu.int/oth/T02020000D2/en -->
22080     <territory id="TK" countryCode="690" internationalPrefix="00">
22081       <generalDesc>
22082         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
22083         <possibleNumberPattern>\d{4}</possibleNumberPattern>
22084       </generalDesc>
22085       <fixedLine>
22086         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
22087         <!-- The example number is the contact number from the ITU document. -->
22088         <exampleNumber>3010</exampleNumber>
22089       </fixedLine>
22090       <mobile>
22091         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
22092         <exampleNumber>5190</exampleNumber>
22093       </mobile>
22094       <!-- No evidence that any emergency numbers exist for this tiny island has been found. -->
22095     </territory>
22096
22097     <!-- Timor-Leste (East Timor) -->
22098     <!-- http://www.itu.int/oth/T02020000D0/en -->
22099     <territory id="TL" countryCode="670" internationalPrefix="00">
22100       <availableFormats>
22101         <numberFormat pattern="(\d{3})(\d{4})">
22102           <leadingDigits>[2-489]</leadingDigits>
22103           <format>$1 $2</format>
22104         </numberFormat>
22105         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
22106              them. If we see another pattern being used, we should change this later. -->
22107         <numberFormat pattern="(\d{4})(\d{4})">
22108           <leadingDigits>7</leadingDigits>
22109           <format>$1 $2</format>
22110         </numberFormat>
22111       </availableFormats>
22112       <generalDesc>
22113         <nationalNumberPattern>
22114           [2-489]\d{6}|
22115           7\d{6,7}
22116         </nationalNumberPattern>
22117         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
22118       </generalDesc>
22119       <fixedLine>
22120         <nationalNumberPattern>
22121           (?:
22122             2[1-5]|
22123             3[1-9]|
22124             4[1-4]
22125           )\d{5}
22126         </nationalNumberPattern>
22127         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22128         <exampleNumber>2112345</exampleNumber>
22129       </fixedLine>
22130       <mobile>
22131         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
22132         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22133         <exampleNumber>77212345</exampleNumber>
22134       </mobile>
22135       <tollFree>
22136         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
22137         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22138         <exampleNumber>8012345</exampleNumber>
22139       </tollFree>
22140       <premiumRate>
22141         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
22142         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22143         <exampleNumber>9012345</exampleNumber>
22144       </premiumRate>
22145       <!-- We don't include paging or voicemail because the identified paging range was used by
22146            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
22147            numbers, or if the range was indeed previously used for voicemail at all. -->
22148       <personalNumber>
22149         <!-- We presume this wasn't affected by the numbering plan update. -->
22150         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
22151         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22152         <exampleNumber>7012345</exampleNumber>
22153       </personalNumber>
22154       <emergency>
22155         <nationalNumberPattern>11[25]</nationalNumberPattern>
22156         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22157         <exampleNumber>112</exampleNumber>
22158       </emergency>
22159     </territory>
22160
22161     <!-- Turkmenistan -->
22162     <!-- http://www.itu.int/oth/T02020000D7/en -->
22163     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan -->
22164     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
22165                internationalPrefix="810" nationalPrefix="8"
22166                nationalPrefixFormattingRule="($NP $FG)">
22167       <availableFormats>
22168         <!-- There doesn't seem to be a standardized format. The format below is based on the
22169              Turkmenistan embassy at
22170              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
22171           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
22172             <leadingDigits>12</leadingDigits>
22173             <format>$1 $2-$3-$4</format>
22174           </numberFormat>
22175           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
22176             <leadingDigits>6</leadingDigits>
22177             <format>$1 $2</format>
22178           </numberFormat>
22179           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
22180             <leadingDigits>
22181               13|
22182               [2-5]
22183             </leadingDigits>
22184             <format>$1 $2-$3-$4</format>
22185           </numberFormat>
22186       </availableFormats>
22187       <generalDesc>
22188         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
22189         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22190       </generalDesc>
22191       <fixedLine>
22192         <!-- Additional prefixes from the wikipedia page. -->
22193         <nationalNumberPattern>
22194           (?:
22195             1(?:
22196               2\d|
22197               3[1-9]
22198             )|
22199             2(?:
22200               22|
22201               4[0-35-8]
22202             )|
22203             3(?:
22204               22|
22205               4[03-9]
22206             )|
22207             4(?:
22208               22|
22209               3[128]|
22210               4\d|
22211               6[15]
22212             )|
22213             5(?:
22214               22|
22215               5[7-9]|
22216               6[014-689]
22217             )
22218           )\d{5}
22219         </nationalNumberPattern>
22220         <exampleNumber>12345678</exampleNumber>
22221       </fixedLine>
22222       <mobile>
22223         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
22224              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
22225              has been suspended. It is unclear whether it will resume. We support both ranges in the
22226              meantime. -->
22227         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
22228         <exampleNumber>66123456</exampleNumber>
22229       </mobile>
22230       <!-- No tollFree or premiumRate information can be found. -->
22231       <emergency>
22232         <!-- http://www.netglobers.com/asia/turkmenistan-emergency-numbers-in-turkmenistan.html
22233              http://www.voyage.gc.ca/countries_pays/report_rapport-eng.asp?id=301000 -->
22234         <nationalNumberPattern>0[1-3]</nationalNumberPattern>
22235         <possibleNumberPattern>\d{2}</possibleNumberPattern>
22236         <exampleNumber>03</exampleNumber>
22237       </emergency>
22238     </territory>
22239
22240     <!-- Tunisia -->
22241     <!-- http://www.itu.int/oth/T02020000D5/en -->
22242     <territory id="TN" countryCode="216" internationalPrefix="00">
22243       <availableFormats>
22244         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
22245           <format>$1 $2 $3</format>
22246         </numberFormat>
22247       </availableFormats>
22248       <generalDesc>
22249         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
22250         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22251       </generalDesc>
22252       <fixedLine>
22253         <!-- We support the whole 81 prefix here instead of just 81200 as
22254              indicated in the ITU doc, as more real phone numbers have been
22255              found online. -->
22256         <nationalNumberPattern>
22257           (?:
22258             3[012]|
22259             7\d|
22260             81
22261           )\d{6}
22262         </nationalNumberPattern>
22263         <exampleNumber>71234567</exampleNumber>
22264       </fixedLine>
22265       <mobile>
22266         <nationalNumberPattern>
22267           (?:
22268             [259]\d|
22269             4[0-2]
22270           )\d{6}
22271         </nationalNumberPattern>
22272         <exampleNumber>20123456</exampleNumber>
22273       </mobile>
22274       <!-- These are listed as 'value added services' - pending further information, we add them
22275            here for now. -->
22276       <premiumRate>
22277         <nationalNumberPattern>8[028]\d{6}</nationalNumberPattern>
22278         <exampleNumber>80123456</exampleNumber>
22279       </premiumRate>
22280       <emergency>
22281         <nationalNumberPattern>19[078]</nationalNumberPattern>
22282         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22283         <exampleNumber>197</exampleNumber>
22284       </emergency>
22285     </territory>
22286
22287     <!-- Tonga -->
22288     <!-- http://www.itu.int/oth/T02020000D3/en -->
22289     <!-- http://www.wtng.info/wtng-676-to.html -->
22290     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
22291       <availableFormats>
22292         <numberFormat pattern="(\d{2})(\d{3})">
22293           <leadingDigits>
22294             [1-6]|
22295             7[0-4]|
22296             8[05]
22297           </leadingDigits>
22298           <format>$1-$2</format>
22299         </numberFormat>
22300         <numberFormat pattern="(\d{3})(\d{4})">
22301           <leadingDigits>
22302             7[5-9]|
22303             8[7-9]
22304           </leadingDigits>
22305           <format>$1 $2</format>
22306         </numberFormat>
22307         <numberFormat pattern="(\d{4})(\d{3})">
22308           <leadingDigits>0</leadingDigits>
22309           <format>$1 $2</format>
22310         </numberFormat>
22311       </availableFormats>
22312       <generalDesc>
22313         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
22314         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
22315       </generalDesc>
22316       <fixedLine>
22317         <nationalNumberPattern>
22318           (?:
22319             2\d|
22320             3[1-8]|
22321             4[1-4]|
22322             [56]0|
22323             7[0149]|
22324             8[05]
22325           )\d{3}
22326         </nationalNumberPattern>
22327         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22328         <exampleNumber>20123</exampleNumber>
22329       </fixedLine>
22330       <mobile>
22331         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
22332              in their ITU document. Numbers with a prefix of "75" have also been found. -->
22333         <nationalNumberPattern>
22334           (?:
22335             7[578]|
22336             8[7-9]
22337           )\d{5}
22338         </nationalNumberPattern>
22339         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22340         <exampleNumber>7715123</exampleNumber>
22341       </mobile>
22342       <tollFree>
22343         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
22344         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22345         <exampleNumber>0800222</exampleNumber>
22346       </tollFree>
22347       <emergency>
22348         <!-- http://www.tongaholiday.com/?page_id=2034 -->
22349         <nationalNumberPattern>
22350           9(?:
22351             11|
22352             22|
22353             33|
22354             99
22355           )
22356         </nationalNumberPattern>
22357         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22358         <exampleNumber>911</exampleNumber>
22359       </emergency>
22360     </territory>
22361
22362     <!-- Turkey -->
22363     <!-- http://en.wikipedia.org/wiki/%2B90 -->
22364     <!-- http://www.itu.int/oth/T02020000D6/en -->
22365     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0">
22366       <availableFormats>
22367         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
22368           nationalPrefixOptionalWhenFormatting="true">
22369           <leadingDigits>
22370             [23]|
22371             4(?:
22372               [0-35-9]|
22373               4[0-35-9]
22374             )
22375           </leadingDigits>
22376           <format>$1 $2 $3</format>
22377         </numberFormat>
22378         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
22379           nationalPrefixOptionalWhenFormatting="true">
22380           <leadingDigits>[589]</leadingDigits>
22381           <format>$1 $2 $3</format>
22382         </numberFormat>
22383         <numberFormat pattern="(444)(\d{1})(\d{3})">
22384           <leadingDigits>444</leadingDigits>
22385           <format>$1 $2 $3</format>
22386         </numberFormat>
22387       </availableFormats>
22388       <generalDesc>
22389         <nationalNumberPattern>
22390           [2-589]\d{9}|
22391           444\d{4}
22392         </nationalNumberPattern>
22393         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
22394       </generalDesc>
22395       <noInternationalDialling>
22396         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
22397         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22398         <exampleNumber>4441444</exampleNumber>
22399       </noInternationalDialling>
22400       <fixedLine>
22401         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
22402         <nationalNumberPattern>
22403           (?:
22404             2(?:
22405               [13][26]|
22406               [28][2468]|
22407               [45][268]|
22408               [67][246]
22409             )|
22410             3(?:
22411               [13][28]|
22412               [24-6][2468]|
22413               [78][02468]|
22414               92
22415             )|
22416             4(?:
22417               [16][246]|
22418               [23578][2468]|
22419               4[26]
22420             )
22421           )\d{7}
22422         </nationalNumberPattern>
22423         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22424         <exampleNumber>2123456789</exampleNumber>
22425       </fixedLine>
22426       <mobile>
22427         <!-- There are some differences between the Turkish and English wikipedia pages here, and
22428              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
22429              509 from the English page because of this. -->
22430         <nationalNumberPattern>
22431           5(?:
22432             0[1-7]|
22433             22|
22434             [34]\d|
22435             5[1-59]|
22436             9[246]
22437           )\d{7}
22438         </nationalNumberPattern>
22439         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22440         <exampleNumber>5012345678</exampleNumber>
22441       </mobile>
22442       <pager>
22443         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
22444         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22445         <exampleNumber>5123456789</exampleNumber>
22446       </pager>
22447       <tollFree>
22448         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
22449         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22450         <exampleNumber>8001234567</exampleNumber>
22451       </tollFree>
22452       <premiumRate>
22453         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
22454         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22455         <exampleNumber>9001234567</exampleNumber>
22456       </premiumRate>
22457       <uan>
22458         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
22459         <nationalNumberPattern>
22460           444\d{4}|
22461           850\d{7}
22462         </nationalNumberPattern>
22463         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
22464         <exampleNumber>4441444</exampleNumber>
22465       </uan>
22466       <emergency>
22467         <nationalNumberPattern>
22468           1(?:
22469             1[02]|
22470             55
22471           )
22472         </nationalNumberPattern>
22473         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22474         <exampleNumber>112</exampleNumber>
22475       </emergency>
22476     </territory>
22477
22478     <!-- Trinidad and Tobago -->
22479     <!-- http://www.itu.int/oth/T02020000D4/en -->
22480     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
22481                internationalPrefix="011">
22482       <generalDesc>
22483         <!-- NANPA country - uses US formatting rules -->
22484         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
22485         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22486       </generalDesc>
22487       <fixedLine>
22488         <nationalNumberPattern>
22489           868(?:
22490             2(?:
22491               01|
22492               2[1-5]
22493             )|
22494             6(?:
22495               07|
22496               1[4-6]|
22497               2[1-9]|
22498               [3-6]\d|
22499               7[0-79]|
22500               9[0-8]
22501             )|
22502             82[12]
22503           )\d{4}
22504         </nationalNumberPattern>
22505         <exampleNumber>8682211234</exampleNumber>
22506       </fixedLine>
22507       <mobile>
22508         <!-- Adding 48X & 70X from the IR21 published by TSTT. -->
22509         <nationalNumberPattern>
22510           868(?:
22511             2(?:
22512               8[59]|
22513               9\d
22514             )|
22515             3(?:
22516               0[1-9]|
22517               1[02-9]|
22518               [2-9]\d
22519             )|
22520             4[6-9]\d|
22521             6(?:
22522               20|
22523               78|
22524               8\d
22525             )|
22526             7(?:
22527               1[02-9]|
22528               [02-9]\d
22529             )
22530           )\d{4}
22531         </nationalNumberPattern>
22532         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22533         <exampleNumber>8682911234</exampleNumber>
22534       </mobile>
22535       <tollFree>
22536         <nationalNumberPattern>
22537           8(?:
22538             00|
22539             55|
22540             66|
22541             77|
22542             88
22543           )[2-9]\d{6}
22544         </nationalNumberPattern>
22545         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22546         <exampleNumber>8002345678</exampleNumber>
22547       </tollFree>
22548       <premiumRate>
22549         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22550         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22551         <exampleNumber>9002345678</exampleNumber>
22552       </premiumRate>
22553       <personalNumber>
22554         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
22555         <nationalNumberPattern>
22556           5(?:
22557             00|
22558             33|
22559             44
22560           )[2-9]\d{6}
22561         </nationalNumberPattern>
22562         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22563         <exampleNumber>5002345678</exampleNumber>
22564       </personalNumber>
22565       <emergency>
22566         <nationalNumberPattern>99[09]</nationalNumberPattern>
22567         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22568         <exampleNumber>999</exampleNumber>
22569       </emergency>
22570     </territory>
22571
22572     <!-- Tuvalu -->
22573     <!-- http://www.itu.int/oth/T02020000D9/en -->
22574     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu -->
22575     <territory id="TV" countryCode="688" internationalPrefix="00">
22576       <!-- Numbers are formatted as a block. -->
22577       <generalDesc>
22578         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
22579         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
22580       </generalDesc>
22581       <fixedLine>
22582         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
22583         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22584         <exampleNumber>20123</exampleNumber>
22585       </fixedLine>
22586       <mobile>
22587         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
22588              don't know if these are valid or not - the ITU document excludes them - so are not
22589              covering these for now. -->
22590         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
22591         <possibleNumberPattern>\d{6}</possibleNumberPattern>
22592         <exampleNumber>901234</exampleNumber>
22593       </mobile>
22594       <emergency>
22595         <nationalNumberPattern>911</nationalNumberPattern>
22596         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22597         <exampleNumber>911</exampleNumber>
22598       </emergency>
22599     </territory>
22600
22601     <!-- Taiwan, China -->
22602     <!-- http://www.itu.int/oth/T02020000EB/en -->
22603     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
22604          chosen as the preferred extension prefix. -->
22605     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
22606                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG">
22607       <availableFormats>
22608         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
22609           <leadingDigits>
22610             [2-7]|
22611             8[1-9]
22612           </leadingDigits>
22613           <format>$1 $2 $3</format>
22614         </numberFormat>
22615         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
22616           <leadingDigits>
22617             80|
22618             9
22619           </leadingDigits>
22620           <format>$1 $2 $3</format>
22621         </numberFormat>
22622       </availableFormats>
22623       <generalDesc>
22624         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
22625         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22626       </generalDesc>
22627       <fixedLine>
22628         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
22629         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22630         <exampleNumber>21234567</exampleNumber>
22631       </fixedLine>
22632       <mobile>
22633         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
22634         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22635         <exampleNumber>912345678</exampleNumber>
22636       </mobile>
22637       <tollFree>
22638         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22639         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22640         <exampleNumber>800123456</exampleNumber>
22641       </tollFree>
22642       <premiumRate>
22643         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22644         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22645         <exampleNumber>900123456</exampleNumber>
22646       </premiumRate>
22647       <emergency>
22648         <nationalNumberPattern>11[029]</nationalNumberPattern>
22649         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22650         <exampleNumber>110</exampleNumber>
22651       </emergency>
22652     </territory>
22653
22654     <!-- Tanzania -->
22655     <!-- http://www.itu.int/oth/T02020000CB/en -->
22656     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
22657                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22658       <availableFormats>
22659         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
22660           <leadingDigits>[24]</leadingDigits>
22661           <format>$1 $2 $3</format>
22662         </numberFormat>
22663         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
22664           <leadingDigits>[67]</leadingDigits>
22665           <format>$1 $2 $3</format>
22666         </numberFormat>
22667         <!-- Formatting for special numbers from www.tcra.go.tz -->
22668         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
22669           <leadingDigits>[89]</leadingDigits>
22670           <format>$1 $2 $3</format>
22671         </numberFormat>
22672       </availableFormats>
22673       <generalDesc>
22674         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22675         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22676       </generalDesc>
22677       <fixedLine>
22678         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
22679         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22680         <exampleNumber>222345678</exampleNumber>
22681       </fixedLine>
22682       <mobile>
22683         <nationalNumberPattern>
22684           (?:
22685             6[158]|
22686             7[1-9]
22687           )\d{7}
22688         </nationalNumberPattern>
22689         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22690         <exampleNumber>612345678</exampleNumber>
22691       </mobile>
22692       <tollFree>
22693         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
22694         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22695         <exampleNumber>800123456</exampleNumber>
22696       </tollFree>
22697       <premiumRate>
22698         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
22699         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22700         <exampleNumber>900123456</exampleNumber>
22701       </premiumRate>
22702       <sharedCost>
22703         <nationalNumberPattern>
22704           8(?:
22705             40|
22706             6[01]
22707           )\d{6}
22708         </nationalNumberPattern>
22709         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22710         <exampleNumber>840123456</exampleNumber>
22711       </sharedCost>
22712       <voip>
22713         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
22714         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22715         <exampleNumber>412345678</exampleNumber>
22716       </voip>
22717       <emergency>
22718         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1038.html
22719              http://in2eastafrica.net/emergency-numbers-in-tanzania -->
22720         <nationalNumberPattern>
22721           11[12]|
22722           999
22723         </nationalNumberPattern>
22724         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22725         <exampleNumber>111</exampleNumber>
22726       </emergency>
22727     </territory>
22728
22729     <!-- Ukraine -->
22730     <!-- http://www.itu.int/oth/T02020000DB/en -->
22731     <!-- http://en.wikipedia.org/wiki/%2B380 -->
22732     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
22733                internationalPrefix="00"
22734                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22735       <availableFormats>
22736         <!-- City codes separated out. No definitive list has been found of what constitutes the
22737              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
22738              Have used local yellow pages guidelines, Google searches and regression tests to
22739              reverse-engineer these rules as well as bugs. -->
22740         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
22741           <leadingDigits>
22742             [38]9|
22743             4(?:
22744               [45][0-5]|
22745               87
22746             )|
22747             5(?:
22748               0|
22749               6[37]|
22750               7[37]
22751             )|
22752             6[36-8]|
22753             9[1-9]
22754           </leadingDigits>
22755           <leadingDigits>
22756             [38]9|
22757             4(?:
22758               [45][0-5]|
22759               87
22760             )|
22761             5(?:
22762               0|
22763               6(?:
22764                 3[14-7]|
22765                 7
22766               )|
22767               7[37]
22768             )|
22769             6[36-8]|
22770             9[1-9]
22771           </leadingDigits>
22772           <format>$1 $2 $3</format>
22773         </numberFormat>
22774         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
22775           <leadingDigits>
22776             3[1-8]2|
22777             4[13678]2|
22778             5(?:
22779               [12457]2|
22780               6[24]
22781             )|
22782             6(?:
22783               [49]2|
22784               [12][29]|
22785               5[24]
22786             )|
22787             8[0-8]|
22788             90
22789           </leadingDigits>
22790           <leadingDigits>
22791             3(?:
22792               [1-46-8]2[013-9]|
22793               52
22794             )|
22795             4(?:
22796               [1378]2|
22797               62[013-9]
22798             )|
22799             5(?:
22800               [12457]2|
22801               6[24]
22802             )|
22803             6(?:
22804               [49]2|
22805               [12][29]|
22806               5[24]
22807             )|
22808             8[0-8]|
22809             90
22810           </leadingDigits>
22811           <format>$1 $2 $3</format>
22812         </numberFormat>
22813         <numberFormat pattern="([3-6]\d{3})(\d{5})">
22814           <leadingDigits>
22815             3(?:
22816               5[013-9]|
22817               [1-46-8]
22818             )|
22819             4(?:
22820               [137][013-9]|
22821               6|
22822               [45][6-9]|
22823               8[4-6]
22824             )|
22825             5(?:
22826               [1245][013-9]|
22827               6[0135-9]|
22828               3|
22829               7[4-6]
22830             )|
22831             6(?:
22832               [49][013-9]|
22833               5[0135-9]|
22834               [12][13-8]
22835             )
22836           </leadingDigits>
22837           <leadingDigits>
22838             3(?:
22839               5[013-9]|
22840               [1-46-8](?:
22841                 22|
22842                 [013-9]
22843               )
22844             )|
22845             4(?:
22846               [137][013-9]|
22847               6(?:
22848                 [013-9]|
22849                 22
22850               )|
22851               [45][6-9]|
22852               8[4-6]
22853             )|
22854             5(?:
22855               [1245][013-9]|
22856               6(?:
22857                 3[02389]|
22858                 [015689]
22859               )|
22860               3|
22861               7[4-6]
22862             )|
22863             6(?:
22864               [49][013-9]|
22865               5[0135-9]|
22866               [12][13-8]
22867             )
22868           </leadingDigits>
22869           <format>$1 $2</format>
22870         </numberFormat>
22871       </availableFormats>
22872       <generalDesc>
22873         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
22874         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22875       </generalDesc>
22876       <fixedLine>
22877         <nationalNumberPattern>
22878           (?:
22879             3[1-8]|
22880             4[13-8]|
22881             5[1-7]|
22882             6[12459]
22883           )\d{7}
22884         </nationalNumberPattern>
22885         <exampleNumber>311234567</exampleNumber>
22886       </fixedLine>
22887       <mobile>
22888         <nationalNumberPattern>
22889           (?:
22890             39|
22891             50|
22892             6[36-8]|
22893             9[1-9]
22894           )\d{7}
22895         </nationalNumberPattern>
22896         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22897         <exampleNumber>391234567</exampleNumber>
22898       </mobile>
22899       <tollFree>
22900         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22901         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22902         <exampleNumber>800123456</exampleNumber>
22903       </tollFree>
22904       <premiumRate>
22905         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22906         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22907         <exampleNumber>900123456</exampleNumber>
22908       </premiumRate>
22909       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
22910       <voip>
22911         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
22912         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22913         <exampleNumber>891234567</exampleNumber>
22914       </voip>
22915       <emergency>
22916         <nationalNumberPattern>
22917           1(?:
22918             0[123]|
22919             12
22920           )
22921         </nationalNumberPattern>
22922         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22923         <exampleNumber>112</exampleNumber>
22924       </emergency>
22925     </territory>
22926
22927     <!-- Uganda -->
22928     <!-- http://www.itu.int/oth/T02020000F1/en -->
22929     <!-- http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf -->
22930     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
22931                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22932       <availableFormats>
22933         <numberFormat pattern="(\d{3})(\d{6})">
22934           <leadingDigits>
22935             [7-9]|
22936             20(?:
22937               [013-8]|
22938               2[5-9]
22939             )|
22940             4(?:
22941               6[45]|
22942               [7-9]
22943             )
22944           </leadingDigits>
22945           <format>$1 $2</format>
22946         </numberFormat>
22947         <numberFormat pattern="(\d{2})(\d{7})">
22948           <leadingDigits>
22949             3|
22950             4(?:
22951               [1-5]|
22952               6[0-36-9]
22953             )
22954           </leadingDigits>
22955           <format>$1 $2</format>
22956         </numberFormat>
22957         <numberFormat pattern="(2024)(\d{5})">
22958           <leadingDigits>2024</leadingDigits>
22959           <format>$1 $2</format>
22960         </numberFormat>
22961       </availableFormats>
22962       <generalDesc>
22963         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22964         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22965       </generalDesc>
22966       <fixedLine>
22967         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
22968         <nationalNumberPattern>
22969           20(?:
22970             [0147]\d{2}|
22971             2(?:
22972               40|
22973               [5-9]\d
22974             )|
22975             3[23]\d|
22976             5[0-4]\d|
22977             60\d|
22978             8[0-2]\d
22979           )\d{4}|
22980           [34]\d{8}
22981         </nationalNumberPattern>
22982         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
22983              local dialing is still possible. We assume it is for now. -->
22984         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22985         <exampleNumber>312345678</exampleNumber>
22986       </fixedLine>
22987       <mobile>
22988         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
22989         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
22990         <nationalNumberPattern>
22991           7(?:
22992             0[0-7]|
22993             [15789]\d|
22994             [23]0|
22995             [46][0-4]
22996           )\d{6}
22997         </nationalNumberPattern>
22998         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22999         <exampleNumber>712345678</exampleNumber>
23000       </mobile>
23001       <tollFree>
23002         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
23003         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23004         <exampleNumber>800123456</exampleNumber>
23005       </tollFree>
23006       <premiumRate>
23007         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
23008         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23009         <exampleNumber>901123456</exampleNumber>
23010       </premiumRate>
23011       <emergency>
23012         <nationalNumberPattern>999</nationalNumberPattern>
23013         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23014         <exampleNumber>999</exampleNumber>
23015       </emergency>
23016     </territory>
23017
23018     <!-- United States -->
23019     <!-- http://www.nanpa.com/reports/reports_npa.html -->
23020     <!-- http://en.wikipedia.org/wiki/North_American_Numbering_Plan -->
23021     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
23022          numbers in the national format, it is not included. Therefore, we omit it here to make
23023          formatting consistent with the rest of the world. The same applies to all the
23024          countries/regions under NANPA -->
23025     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
23026          when formatting, but is set here so that users who are calling formatByPattern can specify
23027          NationalPrefixFormattingRule if they want to. -->
23028     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
23029                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true">
23030       <availableFormats>
23031         <numberFormat pattern="(\d{3})(\d{4})">
23032           <format>$1-$2</format>
23033           <intlFormat>NA</intlFormat>
23034         </numberFormat>
23035         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
23036           <format>($1) $2-$3</format>
23037           <!-- A different pattern is used when formatting internationally, as the area code is no
23038                longer optional and should not be in brackets. -->
23039           <intlFormat>$1-$2-$3</intlFormat>
23040         </numberFormat>
23041       </availableFormats>
23042       <generalDesc>
23043         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
23044         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23045       </generalDesc>
23046       <fixedLine>
23047         <nationalNumberPattern>
23048           (?:
23049             2(?:
23050               0[1-35-9]|
23051               1[02-9]|
23052               2[4589]|
23053               3[149]|
23054               4[08]|
23055               5[1-46]|
23056               6[0279]|
23057               7[06]|
23058               8[13]
23059             )|
23060             3(?:
23061               0[1-57-9]|
23062               1[02-9]|
23063               2[0135]|
23064               3[014679]|
23065               47|
23066               5[12]|
23067               6[01]|
23068               8[056]
23069             )|
23070             4(?:
23071               0[124-9]|
23072               1[02-579]|
23073               2[3-5]|
23074               3[0245]|
23075               4[0235]|
23076               58|
23077               69|
23078               7[0589]|
23079               8[04]
23080             )|
23081             5(?:
23082               0[1-57-9]|
23083               1[0235-8]|
23084               20|
23085               3[0149]|
23086               4[01]|
23087               5[19]|
23088               6[1-37]|
23089               7[013-5]|
23090               8[056]
23091             )|
23092             6(?:
23093               0[1-35-9]|
23094               1[024-9]|
23095               2[036]|
23096               3[016]|
23097               4[16]|
23098               5[017]|
23099               6[0-279]|
23100               78|
23101               8[12]
23102             )|
23103             7(?:
23104               0[1-46-8]|
23105               1[02-9]|
23106               2[047]|
23107               3[124]|
23108               4[07]|
23109               5[47]|
23110               6[02359]|
23111               7[02-59]|
23112               8[156]
23113             )|
23114             8(?:
23115               0[1-68]|
23116               1[02-8]|
23117               28|
23118               3[0-25]|
23119               4[3578]|
23120               5[06-9]|
23121               6[02-5]|
23122               7[028]
23123             )|
23124             9(?:
23125               0[1346-9]|
23126               1[02-9]|
23127               2[0589]|
23128               3[1678]|
23129               4[0179]|
23130               5[1246]|
23131               7[0-3589]|
23132               8[0459]
23133             )
23134           )[2-9]\d{6}
23135         </nationalNumberPattern>
23136         <exampleNumber>2015555555</exampleNumber>
23137       </fixedLine>
23138       <mobile>
23139         <nationalNumberPattern>
23140           (?:
23141             2(?:
23142               0[1-35-9]|
23143               1[02-9]|
23144               2[4589]|
23145               3[149]|
23146               4[08]|
23147               5[1-46]|
23148               6[0279]|
23149               7[06]|
23150               8[13]
23151             )|
23152             3(?:
23153               0[1-57-9]|
23154               1[02-9]|
23155               2[0135]|
23156               3[014679]|
23157               47|
23158               5[12]|
23159               6[01]|
23160               8[056]
23161             )|
23162             4(?:
23163               0[124-9]|
23164               1[02-579]|
23165               2[3-5]|
23166               3[0245]|
23167               4[0235]|
23168               58|
23169               69|
23170               7[0589]|
23171               8[04]
23172             )|
23173             5(?:
23174               0[1-57-9]|
23175               1[0235-8]|
23176               20|
23177               3[0149]|
23178               4[01]|
23179               5[19]|
23180               6[1-37]|
23181               7[013-5]|
23182               8[056]
23183             )|
23184             6(?:
23185               0[1-35-9]|
23186               1[024-9]|
23187               2[036]|
23188               3[016]|
23189               4[16]|
23190               5[017]|
23191               6[0-279]|
23192               78|
23193               8[12]
23194             )|
23195             7(?:
23196               0[1-46-8]|
23197               1[02-9]|
23198               2[047]|
23199               3[124]|
23200               4[07]|
23201               5[47]|
23202               6[02359]|
23203               7[02-59]|
23204               8[156]
23205             )|
23206             8(?:
23207               0[1-68]|
23208               1[02-8]|
23209               28|
23210               3[0-25]|
23211               4[3578]|
23212               5[06-9]|
23213               6[02-5]|
23214               7[028]
23215             )|
23216             9(?:
23217               0[1346-9]|
23218               1[02-9]|
23219               2[0589]|
23220               3[1678]|
23221               4[0179]|
23222               5[1246]|
23223               7[0-3589]|
23224               8[0459]
23225             )
23226           )[2-9]\d{6}
23227         </nationalNumberPattern>
23228         <exampleNumber>2015555555</exampleNumber>
23229       </mobile>
23230       <tollFree>
23231         <nationalNumberPattern>
23232           8(?:
23233             00|
23234             55|
23235             66|
23236             77|
23237             88
23238           )[2-9]\d{6}
23239         </nationalNumberPattern>
23240         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23241         <exampleNumber>8002345678</exampleNumber>
23242       </tollFree>
23243       <premiumRate>
23244         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23245         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23246         <exampleNumber>9002345678</exampleNumber>
23247       </premiumRate>
23248       <personalNumber>
23249         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
23250         <nationalNumberPattern>
23251           5(?:
23252             00|
23253             33|
23254             44
23255           )[2-9]\d{6}
23256         </nationalNumberPattern>
23257         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23258         <exampleNumber>5002345678</exampleNumber>
23259       </personalNumber>
23260       <emergency>
23261         <nationalNumberPattern>
23262           112|
23263           911
23264         </nationalNumberPattern>
23265         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23266         <exampleNumber>911</exampleNumber>
23267       </emergency>
23268     </territory>
23269
23270     <!-- Uruguay -->
23271     <!-- http://www.itu.int/oth/T02020000E0/en -->
23272     <!-- http://www.ursec.gub.uy -->
23273     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay -->
23274     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
23275          code JK, where J = [3-9] and K is any digit. -->
23276     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
23277                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
23278       <availableFormats>
23279         <!-- Following paginasamarillas.com.uy formatting. -->
23280         <numberFormat pattern="(\d{4})(\d{4})">
23281           <leadingDigits>[24]</leadingDigits>
23282           <format>$1 $2</format>
23283         </numberFormat>
23284         <!-- Including the national prefix here since URSEC does when formatting these. -->
23285         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
23286           <leadingDigits>9[1-9]</leadingDigits>
23287           <format>$1 $2 $3</format>
23288         </numberFormat>
23289         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
23290           <leadingDigits>[89]0</leadingDigits>
23291           <format>$1 $2</format>
23292         </numberFormat>
23293       </availableFormats>
23294       <generalDesc>
23295         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
23296         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23297       </generalDesc>
23298       <fixedLine>
23299         <nationalNumberPattern>
23300           2\d{7}|
23301           4[2-7]\d{6}
23302         </nationalNumberPattern>
23303         <exampleNumber>21231234</exampleNumber>
23304       </fixedLine>
23305       <mobile>
23306         <nationalNumberPattern>9[13-9]\d{6}</nationalNumberPattern>
23307         <possibleNumberPattern>\d{8}</possibleNumberPattern>
23308         <exampleNumber>94231234</exampleNumber>
23309       </mobile>
23310       <tollFree>
23311         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
23312         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23313         <exampleNumber>8001234</exampleNumber>
23314       </tollFree>
23315       <premiumRate>
23316         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
23317         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23318         <exampleNumber>9001234</exampleNumber>
23319       </premiumRate>
23320       <emergency>
23321         <nationalNumberPattern>
23322           128|
23323           911
23324         </nationalNumberPattern>
23325         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23326         <exampleNumber>911</exampleNumber>
23327       </emergency>
23328      </territory>
23329
23330     <!-- Uzbekistan -->
23331     <!-- http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng -->
23332     <!-- http://www.itu.int/oth/T02020000E1/en -->
23333     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
23334                internationalPrefix="810" nationalPrefix="8"
23335                nationalPrefixFormattingRule="$NP $FG">
23336       <availableFormats>
23337         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
23338           <format>$1 $2 $3 $4</format>
23339         </numberFormat>
23340       </availableFormats>
23341       <generalDesc>
23342         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
23343         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
23344       </generalDesc>
23345       <fixedLine>
23346         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
23347              be used in Namangan. -->
23348         <nationalNumberPattern>
23349           (?:
23350             6(?:
23351               1(?:
23352                 22|
23353                 3[124]|
23354                 4[1-4]|
23355                 5[123578]|
23356                 64
23357               )|
23358               2(?:
23359                 22|
23360                 3[0-57-9]|
23361                 41
23362               )|
23363               5(?:
23364                 22|
23365                 3[3-7]|
23366                 5[024-8]
23367               )|
23368               6\d{2}|
23369               7(?:
23370                 [23]\d|
23371                 7[69]
23372               )|
23373               9(?:
23374                 22|
23375                 4[1-8]|
23376                 6[135]
23377               )
23378             )|
23379             7(?:
23380               0(?:
23381                 5[4-9]|
23382                 6[0146]|
23383                 7[12456]|
23384                 9[135-8]
23385               )|
23386               1[12]\d|
23387               2(?:
23388                 22|
23389                 3[1345789]|
23390                 4[123579]|
23391                 5[14]
23392               )|
23393               3(?:
23394                 2\d|
23395                 3[1578]|
23396                 4[1-35-7]|
23397                 5[1-57]|
23398                 61
23399               )|
23400               4(?:
23401                 2\d|
23402                 3[1-579]|
23403                 7[1-79]
23404               )|
23405               5(?:
23406                 22|
23407                 5[1-9]|
23408                 6[1457]
23409               )|
23410               6(?:
23411                 22|
23412                 3[12457]|
23413                 4[13-8]
23414               )|
23415               9(?:
23416                 22|
23417                 5[1-9]
23418               )
23419             )
23420           )\d{5}
23421         </nationalNumberPattern>
23422         <exampleNumber>662345678</exampleNumber>
23423       </fixedLine>
23424       <mobile>
23425         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
23426              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
23427              prefixes Tyntec has a carrier mapped to. -->
23428         <nationalNumberPattern>
23429           6(?:
23430             1(?:
23431               2(?:
23432                 98|
23433                 2[01]
23434               )|
23435               35[0-4]|
23436               50\d|
23437               61[23]|
23438               7(?:
23439                 [01][017]|
23440                 4\d|
23441                 55|
23442                 9[5-9]
23443               )
23444             )|
23445             2(?:
23446               11\d|
23447               2(?:
23448                 [12]1|
23449                 9[01379]
23450               )|
23451               5(?:
23452                 [126]\d|
23453                 3[0-4]
23454               )|
23455               7\d{2}
23456             )|
23457             5(?:
23458               19[01]|
23459               2(?:
23460                 27|
23461                 9[26]
23462               )|
23463               30\d|
23464               59\d|
23465               7\d{2}
23466             )|
23467             6(?:
23468               2(?:
23469                 1[5-9]|
23470                 2[0367]|
23471                 38|
23472                 41|
23473                 52|
23474                 60
23475               )|
23476               3[79]\d|
23477               4(?:
23478                 56|
23479                 83
23480               )|
23481               7(?:
23482                 [07]\d|
23483                 1[017]|
23484                 3[07]|
23485                 4[047]|
23486                 5[057]|
23487                 67|
23488                 8[0178]|
23489                 9[79]
23490                 )|
23491               9[0-3]\d
23492             )|
23493             7(?:
23494               2(?:
23495                 24|
23496                 3[237]|
23497                 4[5-9]|
23498                 7[15-8]
23499               )|
23500               5(?:
23501                 7[12]|
23502                 8[0589]
23503               )|
23504               7(?:
23505                 0\d|
23506                 [39][07]
23507               )|
23508               9(?:
23509                 0\d|
23510                 7[079]
23511               )
23512             )|
23513             9(
23514               2(?:
23515                 1[1267]|
23516                 5\d|
23517                 3[01]|
23518                 7[0-4]
23519               )|
23520               5[67]\d|
23521               6(?:
23522                 2[0-26]|
23523                 8\d
23524               )|
23525               7\d{2}
23526             )
23527           )\d{4}|
23528           7(?:
23529             0\d{3}|
23530             1(?:
23531               13[01]|
23532               6(?:
23533                 0[47]|
23534                 1[67]|
23535                 66
23536               )|
23537               71[3-69]|
23538               98\d
23539             )|
23540             2(?:
23541               2(?:
23542                 2[79]|
23543                 95
23544               )|
23545               3(?:
23546                 2[5-9]|
23547                 6[0-6]
23548               )|
23549               57\d|
23550               7(?:
23551                 0\d|
23552                 1[17]|
23553                 2[27]|
23554                 3[37]|
23555                 44|
23556                 5[057]|
23557                 66|
23558                 88
23559               )
23560             )|
23561             3(?:
23562               2(?:
23563                 1[0-6]|
23564                 21|
23565                 3[469]|
23566                 7[159]
23567               )|
23568               33\d|
23569               5(?:
23570                 0[0-4]|
23571                 5[579]|
23572                 9\d
23573               )|
23574               7(?:
23575                 [0-3579]\d|
23576                 4[0467]|
23577                 6[67]|
23578                 8[078]
23579               )|
23580               9[4-6]\d
23581             )|
23582             4(?:
23583               2(?:
23584                 29|
23585                 5[0257]|
23586                 6[0-7]|
23587                 7[1-57]
23588               )|
23589               5(?:
23590                 1[0-4]|
23591                 8\d|
23592                 9[5-9]
23593               )|
23594               7(?:
23595                 0\d|
23596                 1[024589]|
23597                 2[0127]|
23598                 3[0137]|
23599                 [46][07]|
23600                 5[01]|
23601                 7[5-9]|
23602                 9[079]
23603               )|
23604               9(?:
23605                 7[015-9]|
23606                 [89]\d
23607               )
23608             )|
23609             5(?:
23610               112|
23611               2(?:
23612                 0\d|
23613                 2[29]|
23614                 [49]4
23615               )|
23616               3[1568]\d|
23617               52[6-9]|
23618               7(?:
23619                 0[01578]|
23620                 1[017]|
23621                 [23]7|
23622                 4[047]|
23623                 [5-7]\d|
23624                 8[78]|
23625                 9[079]
23626               )
23627             )|
23628             6(?:
23629               2(?:
23630                 2[1245]|
23631                 4[2-4]
23632               )|
23633               39\d|
23634               41[179]|
23635               5(?:
23636                 [349]\d|
23637                 5[0-2]
23638               )|
23639               7(?:
23640                 0[017]|
23641                 [13]\d|
23642                 22|
23643                 44|
23644                 55|
23645                 67|
23646                 88
23647               )
23648             )|
23649             9(?:
23650               22[128]|
23651               3(?:
23652                 2[0-4]|
23653                 7\d
23654               )|
23655               57[05629]|
23656               7(?:
23657                 2[05-9]|
23658                 3[37]|
23659                 4\d|
23660                 60|
23661                 7[2579]|
23662                 87|
23663                 9[07]
23664               )
23665             )
23666           )\d{4}|
23667           9[0-57-9]\d{7}
23668         </nationalNumberPattern>
23669         <exampleNumber>912345678</exampleNumber>
23670       </mobile>
23671       <!-- No tollFree or premiumRate information can be found. -->
23672       <emergency>
23673         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1057.html
23674              http://www.expat.uz/index.php?/Emergency-Numbers.html
23675              http://www.mts.uz/en/citycodes/how_to_call_sos
23676              Note that the third source, for a local mobile company, comments that a '*' needs to
23677              be dialled before the 2-digit emergency numbers on their cell-phone. This is not
23678              explicitly handled here, but instead is handled by normalising input in the code. -->
23679         <nationalNumberPattern>
23680           0(?:
23681             0[123]|
23682             [123]|
23683             50
23684           )
23685         </nationalNumberPattern>
23686         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
23687         <exampleNumber>01</exampleNumber>
23688       </emergency>
23689     </territory>
23690
23691     <!-- Vatican City -->
23692     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City -->
23693     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
23694          also be dialled with the Vatican City country code. -->
23695     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
23696       <availableFormats>
23697         <numberFormat pattern="(06)(\d{4})(\d{4})">
23698           <format>$1 $2 $3</format>
23699         </numberFormat>
23700       </availableFormats>
23701       <generalDesc>
23702         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
23703         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23704       </generalDesc>
23705       <fixedLine>
23706         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
23707         <exampleNumber>0669812345</exampleNumber>
23708       </fixedLine>
23709       <mobile>
23710         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
23711              Italian mobile contracts. -->
23712         <nationalNumberPattern>N/A</nationalNumberPattern>
23713         <possibleNumberPattern>N/A</possibleNumberPattern>
23714       </mobile>
23715       <!-- No information exists about other types of numbers. -->
23716       <emergency>
23717         <nationalNumberPattern>11[2358]</nationalNumberPattern>
23718         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23719         <exampleNumber>113</exampleNumber>
23720       </emergency>
23721     </territory>
23722
23723     <!-- Saint Vincent and the Grenadines -->
23724     <!-- http://www.itu.int/oth/T02020000B3/en -->
23725     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
23726                internationalPrefix="011">
23727       <generalDesc>
23728         <!-- NANPA country - uses US formatting rules -->
23729         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
23730         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23731       </generalDesc>
23732       <fixedLine>
23733         <nationalNumberPattern>
23734           784(?:
23735             266|
23736             3(?:
23737               6[6-9]|
23738               7\d|
23739               8[0-24-6]
23740             )|
23741             4(?:
23742               38|
23743               5[0-36-8]|
23744               8\d|
23745               9[01]
23746             )|
23747             555|
23748             638|
23749             784
23750           )\d{4}
23751         </nationalNumberPattern>
23752         <exampleNumber>7842661234</exampleNumber>
23753       </fixedLine>
23754       <mobile>
23755         <!-- Adding 784 433 and 784 534 since online numbers can be found with these prefixes, and
23756              the latter seems, according to some online sources, to be assigned to Digicell. -->
23757         <nationalNumberPattern>
23758           784(?:
23759             4(?:
23760               3[0-4]|
23761               5[45]|
23762               9[2-5]
23763             )|
23764             5(?:
23765               2[6-9]|
23766               3[0-4]|
23767               93
23768             )
23769           )\d{4}
23770         </nationalNumberPattern>
23771         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23772         <exampleNumber>7844301234</exampleNumber>
23773       </mobile>
23774       <tollFree>
23775         <nationalNumberPattern>
23776           8(?:
23777             00|
23778             55|
23779             66|
23780             77|
23781             88
23782           )[2-9]\d{6}
23783         </nationalNumberPattern>
23784         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23785         <exampleNumber>8002345678</exampleNumber>
23786       </tollFree>
23787       <premiumRate>
23788         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23789         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23790         <exampleNumber>9002345678</exampleNumber>
23791       </premiumRate>
23792       <personalNumber>
23793         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
23794         <nationalNumberPattern>
23795           5(?:
23796             00|
23797             33|
23798             44
23799           )[2-9]\d{6}
23800         </nationalNumberPattern>
23801         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23802         <exampleNumber>5002345678</exampleNumber>
23803       </personalNumber>
23804       <emergency>
23805         <!-- http://barbados.usembassy.gov/emergency-svg.html
23806              http://travel.state.gov/travel/cis_pa_tw/cis/cis_1028.html?action=/travel/cis_pa_tw/cis/cis_1100.html -->
23807         <nationalNumberPattern>
23808           9(?:
23809             11|
23810             99
23811           )
23812         </nationalNumberPattern>
23813         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23814         <exampleNumber>911</exampleNumber>
23815       </emergency>
23816     </territory>
23817
23818     <!-- Venezuela -->
23819     <!-- http://www.itu.int/oth/T02020000E3/en -->
23820     <!-- http://en.wikipedia.org/wiki/+58 -->
23821     <!-- 1XX specifies a particular carrier to route a call to. -->
23822     <territory id="VE" countryCode="58" internationalPrefix="00"
23823                nationalPrefix="0" nationalPrefixForParsing="(1\d{2})|0"
23824                nationalPrefixFormattingRule="$NP$FG"
23825                carrierCodeFormattingRule="$CC $FG">
23826       <availableFormats>
23827         <numberFormat pattern="(\d{3})(\d{7})">
23828           <format>$1-$2</format>
23829         </numberFormat>
23830       </availableFormats>
23831       <generalDesc>
23832         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
23833         <!-- Open numbering plan. -->
23834         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23835       </generalDesc>
23836       <fixedLine>
23837         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
23838              mentions these as 5XX, but online examples that can be found are seemingly restricted
23839              to 50[01]. -->
23840         <nationalNumberPattern>
23841           (?:
23842             2(?:
23843               12|
23844               3[457-9]|
23845               [58][1-9]|
23846               [467]\d|
23847               9[1-6]
23848             )|
23849             50[01]
23850           )\d{7}
23851         </nationalNumberPattern>
23852         <exampleNumber>2121234567</exampleNumber>
23853       </fixedLine>
23854       <mobile>
23855         <nationalNumberPattern>
23856           4(?:
23857             1[24-8]|
23858             2[46]
23859           )\d{7}
23860         </nationalNumberPattern>
23861         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23862         <exampleNumber>4121234567</exampleNumber>
23863       </mobile>
23864       <tollFree>
23865         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
23866         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23867         <exampleNumber>8001234567</exampleNumber>
23868       </tollFree>
23869       <premiumRate>
23870         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
23871         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23872         <exampleNumber>9001234567</exampleNumber>
23873       </premiumRate>
23874       <emergency>
23875         <nationalNumberPattern>171</nationalNumberPattern>
23876         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23877         <exampleNumber>171</exampleNumber>
23878       </emergency>
23879     </territory>
23880
23881     <!-- Virgin Islands, British -->
23882     <!-- http://www.itu.int/oth/T020200001E/en -->
23883     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
23884                internationalPrefix="011">
23885       <generalDesc>
23886         <!-- NANPA country - uses US formatting rules -->
23887         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
23888         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23889       </generalDesc>
23890       <fixedLine>
23891         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
23892              and 774 have been added from numbers found in the white pages.  -->
23893         <nationalNumberPattern>
23894           284(?:
23895             (?:
23896               229|
23897               4(?:
23898                 22|
23899                 9[45]
23900               )|
23901               774|
23902               8(?:
23903                 52|
23904                 6[459]
23905               )
23906             )\d{4}|
23907             496[0-5]\d{3}
23908           )
23909         </nationalNumberPattern>
23910         <exampleNumber>2842291234</exampleNumber>
23911       </fixedLine>
23912       <mobile>
23913         <!-- No data on central office codes can be found on the nanpa.com website. The codes
23914              34[0-367], 446 and 54[57] have been added from numbers found in the white pages.  -->
23915         <nationalNumberPattern>
23916           284(?:
23917             (?:
23918               3(?:
23919                 0[0-3]|
23920                 4[0-367]
23921               )|
23922               4(?:
23923                 4[0-6]|
23924                 68|
23925                 99
23926               )|
23927               54[0-57]
23928             )\d{4}|
23929             496[6-9]\d{3}
23930           )
23931         </nationalNumberPattern>
23932         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23933         <exampleNumber>2843001234</exampleNumber>
23934       </mobile>
23935       <tollFree>
23936         <nationalNumberPattern>
23937           8(?:
23938             00|
23939             55|
23940             66|
23941             77|
23942             88
23943           )[2-9]\d{6}
23944         </nationalNumberPattern>
23945         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23946         <exampleNumber>8002345678</exampleNumber>
23947       </tollFree>
23948       <premiumRate>
23949         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23950         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23951         <exampleNumber>9002345678</exampleNumber>
23952       </premiumRate>
23953       <personalNumber>
23954         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
23955         <nationalNumberPattern>
23956           5(?:
23957             00|
23958             33|
23959             44
23960           )[2-9]\d{6}
23961         </nationalNumberPattern>
23962         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23963         <exampleNumber>5002345678</exampleNumber>
23964       </personalNumber>
23965       <emergency>
23966         <!-- http://barbados.usembassy.gov/emergency-bvi.html
23967              http://www.britishvirginislands.com/ntk_emergency.htm -->
23968         <nationalNumberPattern>
23969           9(?:
23970             11|
23971             99
23972           )
23973         </nationalNumberPattern>
23974         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23975         <exampleNumber>911</exampleNumber>
23976       </emergency>
23977     </territory>
23978
23979     <!-- Virgin Islands, United States -->
23980     <!-- http://www.itu.int/oth/T02020000DF/en -->
23981     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
23982                internationalPrefix="011">
23983       <generalDesc>
23984         <!-- NANPA country - uses US formatting rules -->
23985         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
23986         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23987       </generalDesc>
23988       <fixedLine>
23989         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
23990              yellow pages have been added, and the list of exchanges found on
23991              http://www.areacodedownload.com/340/index.html -->
23992         <nationalNumberPattern>
23993           340(?:
23994             2(?:
23995               01|
23996               2[067]|
23997               36|
23998               44|
23999               77
24000             )|
24001             3(?:
24002               32|
24003               44
24004             )|
24005             4(?:
24006               4[38]|
24007               7[34]
24008             )|
24009             5(?:
24010               1[34]|
24011               55
24012             )|
24013             6(?:
24014               26|
24015               4[23]|
24016               9[023]
24017             )|
24018             7(?:
24019               [17]\d|
24020               27
24021             )|
24022             884|
24023             998
24024           )\d{4}
24025         </nationalNumberPattern>
24026         <exampleNumber>3406421234</exampleNumber>
24027       </fixedLine>
24028       <mobile>
24029         <nationalNumberPattern>
24030           340(?:
24031             2(?:
24032               01|
24033               2[067]|
24034               36|
24035               44|
24036               77
24037             )|
24038             3(?:
24039               32|
24040               44
24041             )|
24042             4(?:
24043               4[38]|
24044               7[34]
24045             )|
24046             5(?:
24047               1[34]|
24048               55
24049             )|
24050             6(?:
24051               26|
24052               4[23]|
24053               9[023]
24054             )|
24055             7(?:
24056               [17]\d|
24057               27
24058             )|
24059             884|
24060             998
24061           )\d{4}
24062         </nationalNumberPattern>
24063         <exampleNumber>3406421234</exampleNumber>
24064       </mobile>
24065       <tollFree>
24066         <nationalNumberPattern>
24067           8(?:
24068             00|
24069             55|
24070             66|
24071             77|
24072             88
24073           )[2-9]\d{6}
24074         </nationalNumberPattern>
24075         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24076         <exampleNumber>8002345678</exampleNumber>
24077       </tollFree>
24078       <premiumRate>
24079         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
24080         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24081         <exampleNumber>9002345678</exampleNumber>
24082       </premiumRate>
24083       <personalNumber>
24084         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
24085         <nationalNumberPattern>
24086           5(?:
24087             00|
24088             33|
24089             44
24090           )[2-9]\d{6}
24091         </nationalNumberPattern>
24092         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24093         <exampleNumber>5002345678</exampleNumber>
24094       </personalNumber>
24095       <emergency>
24096         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
24097         <nationalNumberPattern>911</nationalNumberPattern>
24098         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24099         <exampleNumber>911</exampleNumber>
24100       </emergency>
24101     </territory>
24102
24103     <!-- Viet Nam (Vietnam) -->
24104     <!-- http://www.itu.int/oth/T02020000E4/en -->
24105     <!-- http://en.wikipedia.org/wiki/%2B84 -->
24106     <territory id="VN" countryCode="84" internationalPrefix="00"
24107                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
24108                nationalPrefixOptionalWhenFormatting="true">
24109       <availableFormats>
24110         <numberFormat pattern="([17]99)(\d{4})">
24111           <leadingDigits>[17]99</leadingDigits>
24112           <format>$1 $2</format>
24113         </numberFormat>
24114         <numberFormat pattern="([48])(\d{4})(\d{4})">
24115           <leadingDigits>[48]</leadingDigits>
24116           <format>$1 $2 $3</format>
24117         </numberFormat>
24118         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
24119           <leadingDigits>
24120             2[025-79]|
24121             3[0136-9]|
24122             5[2-9]|
24123             6[0-46-8]|
24124             7[02-79]
24125           </leadingDigits>
24126           <format>$1 $2 $3</format>
24127         </numberFormat>
24128         <numberFormat pattern="(80)(\d{5})">
24129           <leadingDigits>80</leadingDigits>
24130           <format>$1 $2</format>
24131         </numberFormat>
24132         <numberFormat pattern="(69\d)(\d{4,5})">
24133           <leadingDigits>69</leadingDigits>
24134           <format>$1 $2</format>
24135         </numberFormat>
24136         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
24137           <leadingDigits>
24138             2[1348]|
24139             3[25]|
24140             5[01]|
24141             65|
24142             7[18]
24143           </leadingDigits>
24144           <format>$1 $2 $3</format>
24145         </numberFormat>
24146         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
24147           <leadingDigits>9</leadingDigits>
24148           <format>$1 $2 $3 $4</format>
24149         </numberFormat>
24150         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
24151           <leadingDigits>
24152             1(?:
24153               [26]|
24154               8[68]|
24155               99
24156             )
24157           </leadingDigits>
24158           <format>$1 $2 $3</format>
24159         </numberFormat>
24160         <numberFormat nationalPrefixFormattingRule="$FG"
24161           pattern="(1[89]00)(\d{4,6})">
24162           <leadingDigits>1[89]0</leadingDigits>
24163           <format>$1 $2</format>
24164         </numberFormat>
24165       </availableFormats>
24166       <generalDesc>
24167         <nationalNumberPattern>
24168           [17]\d{6,9}|
24169           [2-69]\d{7,9}|
24170           8\d{6,8}
24171         </nationalNumberPattern>
24172         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
24173       </generalDesc>
24174       <noInternationalDialling>
24175         <nationalNumberPattern>
24176           [17]99\d{4}|
24177           69\d{5,6}
24178         </nationalNumberPattern>
24179         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
24180         <exampleNumber>1992000</exampleNumber>
24181       </noInternationalDialling>
24182       <fixedLine>
24183         <nationalNumberPattern>
24184           (?:
24185             2(?:
24186               [025-79]|
24187               1[0189]|
24188               [348][01]
24189             )|
24190             3(?:
24191               [0136-9]|
24192               [25][01]
24193             )|
24194             4\d|
24195             5(?:
24196               [01][01]|
24197               [2-9]
24198             )|
24199             6(?:
24200               [0-46-8]|
24201               5[01]
24202             )|
24203             7(?:
24204               [02-79]|
24205               [18][01]
24206             )|
24207             8[1-9]
24208           )\d{7}
24209         </nationalNumberPattern>
24210         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24211         <exampleNumber>2101234567</exampleNumber>
24212       </fixedLine>
24213       <mobile>
24214         <nationalNumberPattern>
24215           (?:
24216             9\d|
24217             1(?:
24218               2\d|
24219               6[2-9]|
24220               8[68]|
24221               99
24222             )
24223           )\d{7}
24224         </nationalNumberPattern>
24225         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24226         <exampleNumber>912345678</exampleNumber>
24227       </mobile>
24228       <tollFree>
24229         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
24230         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
24231         <exampleNumber>1800123456</exampleNumber>
24232       </tollFree>
24233       <premiumRate>
24234         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
24235         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
24236         <exampleNumber>1900123456</exampleNumber>
24237       </premiumRate>
24238       <uan>
24239         <!-- These include non-geographic fixed numbers, such as for government ministries. While
24240         listed as "private networks", they may actually be callable from within Vietnam. (They are
24241         "private" in the sense that ordinary people could not be assigned these numbers.) -->
24242         <nationalNumberPattern>
24243           [17]99\d{4}|
24244           69\d{5,6}|
24245           80\d{5}
24246         </nationalNumberPattern>
24247         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
24248         <exampleNumber>1992000</exampleNumber>
24249       </uan>
24250       <emergency>
24251         <nationalNumberPattern>11[345]</nationalNumberPattern>
24252         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24253         <exampleNumber>113</exampleNumber>
24254       </emergency>
24255     </territory>
24256
24257     <!-- Vanuatu -->
24258     <!-- http://www.itu.int/oth/T02020000E2/en -->
24259     <territory id="VU" countryCode="678" internationalPrefix="00">
24260       <!-- Should be formatted in one block, apart from the mobile numbers. -->
24261       <availableFormats>
24262         <numberFormat pattern="(\d{3})(\d{4})">
24263           <leadingDigits>[579]</leadingDigits>
24264           <format>$1 $2</format>
24265         </numberFormat>
24266       </availableFormats>
24267       <generalDesc>
24268         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
24269         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
24270       </generalDesc>
24271       <fixedLine>
24272         <nationalNumberPattern>
24273           (?:
24274             2[2-9]\d|
24275             3(?:
24276               [5-7]\d|
24277               8[0-8]
24278             )|
24279             48[4-9]|
24280             88\d
24281           )\d{2}
24282         </nationalNumberPattern>
24283         <possibleNumberPattern>\d{5}</possibleNumberPattern>
24284         <exampleNumber>22123</exampleNumber>
24285       </fixedLine>
24286       <mobile>
24287         <nationalNumberPattern>
24288           (?:
24289             5(?:
24290               7[2-5]|
24291               [3-69]\d
24292             )|
24293             7[013-7]\d
24294           )\d{4}
24295         </nationalNumberPattern>
24296         <possibleNumberPattern>\d{7}</possibleNumberPattern>
24297         <exampleNumber>5912345</exampleNumber>
24298       </mobile>
24299       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
24300            for government fixed-line numbers. -->
24301       <uan>
24302         <nationalNumberPattern>
24303           3[03]\d{3}|
24304           900\d{4}
24305         </nationalNumberPattern>
24306         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
24307         <exampleNumber>30123</exampleNumber>
24308       </uan>
24309       <emergency>
24310         <nationalNumberPattern>112</nationalNumberPattern>
24311         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24312         <exampleNumber>112</exampleNumber>
24313       </emergency>
24314     </territory>
24315
24316     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
24317     <!-- http://www.itu.int/oth/T02020000E6/en -->
24318     <territory id="WF" countryCode="681" internationalPrefix="00">
24319       <availableFormats>
24320         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
24321           <format>$1 $2 $3</format>
24322         </numberFormat>
24323       </availableFormats>
24324       <generalDesc>
24325         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
24326         <possibleNumberPattern>\d{6}</possibleNumberPattern>
24327       </generalDesc>
24328       <fixedLine>
24329         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
24330              50 and 68 are possible, so they are included here. -->
24331         <nationalNumberPattern>
24332           (?:
24333             50|
24334             68|
24335             72
24336           )\d{4}
24337         </nationalNumberPattern>
24338         <exampleNumber>501234</exampleNumber>
24339       </fixedLine>
24340       <mobile>
24341         <nationalNumberPattern>
24342           (?:
24343             50|
24344             68|
24345             72
24346           )\d{4}
24347         </nationalNumberPattern>
24348         <exampleNumber>501234</exampleNumber>
24349       </mobile>
24350       <!-- http://lannuaire.service-public.fr/navigation/wallis-et-futuna-wallis-futuna-alofi.html
24351            -->
24352       <emergency>
24353         <nationalNumberPattern>1[578]</nationalNumberPattern>
24354         <possibleNumberPattern>\d{2}</possibleNumberPattern>
24355         <exampleNumber>15</exampleNumber>
24356       </emergency>
24357     </territory>
24358
24359     <!-- Samoa -->
24360     <!-- http://www.itu.int/oth/T02020000B4/en -->
24361     <territory id="WS" countryCode="685" internationalPrefix="0">
24362       <availableFormats>
24363         <!-- Should be formatted in one block, apart from the specific series below. -->
24364         <numberFormat pattern="(8\d{2})(\d{3,4})">
24365           <leadingDigits>8</leadingDigits>
24366           <format>$1 $2</format>
24367         </numberFormat>
24368         <numberFormat pattern="(7\d)(\d{5})">
24369           <leadingDigits>7</leadingDigits>
24370           <format>$1 $2</format>
24371         </numberFormat>
24372       </availableFormats>
24373       <generalDesc>
24374         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
24375         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
24376       </generalDesc>
24377       <fixedLine>
24378         <nationalNumberPattern>
24379           (?:
24380             [2-5]\d|
24381             6[1-9]|
24382             84\d{2}
24383           )\d{3}
24384         </nationalNumberPattern>
24385         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
24386         <exampleNumber>22123</exampleNumber>
24387       </fixedLine>
24388       <mobile>
24389         <nationalNumberPattern>
24390           (?:
24391             60|
24392             7[25-7]\d
24393           )\d{4}
24394         </nationalNumberPattern>
24395         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
24396         <exampleNumber>601234</exampleNumber>
24397       </mobile>
24398       <tollFree>
24399         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
24400              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
24401              for now, so may be also used for other purposes than toll free, but until we have
24402              further evidence of these we will keep it as toll free. -->
24403         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
24404         <possibleNumberPattern>\d{6}</possibleNumberPattern>
24405         <exampleNumber>800123</exampleNumber>
24406       </tollFree>
24407       <!-- Current research suggests other types of numbers are not used in Samoa. -->
24408       <emergency>
24409         <!-- http://www.blueskysamoa.ws/?page_id=509 -->
24410         <nationalNumberPattern>99[4-6]</nationalNumberPattern>
24411         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24412         <exampleNumber>994</exampleNumber>
24413       </emergency>
24414     </territory>
24415
24416     <!-- Yemen -->
24417     <!-- http://www.itu.int/oth/T02020000E7/en -->
24418     <territory id="YE" countryCode="967" internationalPrefix="00"
24419                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24420       <availableFormats>
24421         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
24422           <leadingDigits>
24423             [1-6]|
24424             7[24-68]
24425           </leadingDigits>
24426           <format>$1 $2 $3</format>
24427         </numberFormat>
24428         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
24429           <leadingDigits>7[0137]</leadingDigits>
24430           <format>$1 $2 $3</format>
24431         </numberFormat>
24432       </availableFormats>
24433       <generalDesc>
24434         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
24435         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
24436       </generalDesc>
24437       <fixedLine>
24438         <nationalNumberPattern>
24439           (?:
24440             1(?:
24441               7\d|
24442               [2-68]
24443             )|
24444             2[2-68]|
24445             3[2358]|
24446             4[2-58]|
24447             5[2-6]|
24448             6[3-58]|
24449             7[24-68]
24450           )\d{5}
24451         </nationalNumberPattern>
24452         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
24453         <exampleNumber>1234567</exampleNumber>
24454       </fixedLine>
24455       <mobile>
24456         <!-- Adding 70 from numbers found online. -->
24457         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
24458         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24459         <exampleNumber>712345678</exampleNumber>
24460       </mobile>
24461       <!-- No tollFree or premiumRate information can be found. -->
24462       <emergency>
24463         <!-- http://www.yemenypages.com/en/emergency_numbers.aspx -->
24464         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
24465         <!-- http://www.netglobers.com/asia/yemen-emergency-numbers-in-yemen.html -->
24466         <nationalNumberPattern>19[1459]</nationalNumberPattern>
24467         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24468         <exampleNumber>191</exampleNumber>
24469       </emergency>
24470     </territory>
24471
24472     <!-- Mayotte -->
24473     <!-- Some information at http://en.wikipedia.org/wiki/Telephone_numbers_in_France - most from
24474          collection of internet data. http://www.comores-online.com/mwezinet/internet/262.htm
24475          verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
24476          -->
24477     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
24478                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
24479       <!-- Formatting as per La Réunion. -->
24480       <generalDesc>
24481         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
24482         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24483       </generalDesc>
24484       <fixedLine>
24485         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
24486         <exampleNumber>269601234</exampleNumber>
24487       </fixedLine>
24488       <mobile>
24489         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
24490         <exampleNumber>639123456</exampleNumber>
24491       </mobile>
24492       <!-- Same as in France. -->
24493       <tollFree>
24494         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
24495         <exampleNumber>801234567</exampleNumber>
24496       </tollFree>
24497       <!-- http://www.sfr-mayotte.com/la-carte/les-services-@/article.jspz?oid=679&categ=345 -->
24498       <!-- http://www.sccfd.org/travel.html -->
24499       <emergency>
24500         <nationalNumberPattern>
24501           1(?:
24502             12|
24503             5
24504           )
24505         </nationalNumberPattern>
24506         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
24507         <exampleNumber>15</exampleNumber>
24508       </emergency>
24509     </territory>
24510
24511     <!-- South Africa -->
24512     <!-- http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000C10001PDFE.pdf -->
24513     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa -->
24514     <territory id="ZA" countryCode="27" internationalPrefix="00"
24515                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24516       <availableFormats>
24517         <numberFormat pattern="(860)(\d{3})(\d{3})">
24518           <leadingDigits>860</leadingDigits>
24519           <format>$1 $2 $3</format>
24520         </numberFormat>
24521         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
24522           <leadingDigits>
24523             [1-79]|
24524             8(?:
24525               [0-47]|
24526               6[1-9]
24527             )
24528           </leadingDigits>
24529           <format>$1 $2 $3</format>
24530         </numberFormat>
24531         <numberFormat pattern="(\d{2})(\d{3,4})">
24532           <leadingDigits>8[1-4]</leadingDigits>
24533           <format>$1 $2</format>
24534         </numberFormat>
24535         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
24536           <leadingDigits>8[1-4]</leadingDigits>
24537           <format>$1 $2 $3</format>
24538         </numberFormat>
24539       </availableFormats>
24540       <generalDesc>
24541         <nationalNumberPattern>
24542           [1-79]\d{8}|
24543           8(?:
24544             [067]\d{7}|
24545             [1-4]\d{3,7}
24546           )
24547         </nationalNumberPattern>
24548         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
24549       </generalDesc>
24550       <fixedLine>
24551         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
24552              used in 1996. -->
24553         <nationalNumberPattern>
24554           (?:
24555             1[0-8]|
24556             2[0-378]|
24557             3[1-69]|
24558             4\d|
24559             5[1346-8]
24560           )\d{7}
24561         </nationalNumberPattern>
24562         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24563         <exampleNumber>101234567</exampleNumber>
24564       </fixedLine>
24565       <mobile>
24566         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
24567              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
24568              in prominent places online, even though the ITU document says numbers must be 10 digits
24569              long (including the national prefix). -->
24570         <nationalNumberPattern>
24571           (?:
24572             6[0-5]|
24573             7[0-46-9]
24574           )\d{7}|
24575           8[1-4]\d{3,7}
24576         </nationalNumberPattern>
24577         <exampleNumber>711234567</exampleNumber>
24578       </mobile>
24579       <tollFree>
24580         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
24581         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24582         <exampleNumber>801234567</exampleNumber>
24583       </tollFree>
24584       <premiumRate>
24585         <nationalNumberPattern>
24586           86[2-9]\d{6}|
24587           90\d{7}
24588         </nationalNumberPattern>
24589         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24590         <exampleNumber>862345678</exampleNumber>
24591       </premiumRate>
24592       <sharedCost>
24593         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
24594         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24595         <exampleNumber>860123456</exampleNumber>
24596       </sharedCost>
24597       <voip>
24598         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
24599         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24600         <exampleNumber>871234567</exampleNumber>
24601       </voip>
24602       <uan>
24603         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
24604              numbers. -->
24605         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
24606         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24607         <exampleNumber>861123456</exampleNumber>
24608       </uan>
24609       <emergency>
24610         <nationalNumberPattern>
24611           1(?:
24612             01(?:
24613               11|
24614               77
24615             )|
24616             12
24617           )
24618         </nationalNumberPattern>
24619         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
24620         <exampleNumber>10111</exampleNumber>
24621       </emergency>
24622     </territory>
24623
24624     <!-- Zambia -->
24625     <!-- http://www.itu.int/oth/T02020000E8/en -->
24626     <territory id="ZM" countryCode="260" internationalPrefix="00"
24627                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24628       <availableFormats>
24629         <numberFormat pattern="([29]\d)(\d{7})">
24630           <leadingDigits>[29]</leadingDigits>
24631           <format>$1 $2</format>
24632         </numberFormat>
24633         <numberFormat pattern="(800)(\d{3})(\d{3})">
24634           <leadingDigits>8</leadingDigits>
24635           <format>$1 $2 $3</format>
24636         </numberFormat>
24637       </availableFormats>
24638       <generalDesc>
24639         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
24640         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24641       </generalDesc>
24642       <fixedLine>
24643         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
24644         <exampleNumber>211234567</exampleNumber>
24645       </fixedLine>
24646       <mobile>
24647         <!-- Adding extra prefixes 50, 6[1-57-9] and 7[13-6] since SMS messages have been
24648              successfully delivered to these numbers, and numbers like this can be found on the
24649              Internet. Adding prefix 960 based on information received from MTN Zambia. -->
24650         <nationalNumberPattern>
24651           9(?:
24652             5[05]|
24653             6\d|
24654             7[13-9]
24655           )\d{6}
24656         </nationalNumberPattern>
24657         <exampleNumber>955123456</exampleNumber>
24658       </mobile>
24659       <tollFree>
24660         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
24661         <exampleNumber>800123456</exampleNumber>
24662       </tollFree>
24663       <emergency>
24664         <nationalNumberPattern>
24665           (?:
24666             112|
24667             99[139]
24668           )
24669         </nationalNumberPattern>
24670         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24671         <exampleNumber>999</exampleNumber>
24672       </emergency>
24673     </territory>
24674
24675     <!-- Zimbabwe -->
24676     <!-- http://www.itu.int/oth/T02020000E9/en -->
24677     <territory id="ZW" countryCode="263" internationalPrefix="00"
24678                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24679       <availableFormats>
24680         <!-- One-digit area codes -->
24681         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
24682           <leadingDigits>
24683             4|
24684             9[2-9]
24685           </leadingDigits>
24686           <format>$1 $2 $3</format>
24687         </numberFormat>
24688         <!-- Mobile numbers -->
24689         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
24690           <leadingDigits>
24691             [19]1|
24692             7
24693           </leadingDigits>
24694           <format>$1 $2 $3</format>
24695         </numberFormat>
24696         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
24697           <leadingDigits>86[24]</leadingDigits>
24698           <format>$1 $2 $3</format>
24699         </numberFormat>
24700         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
24701         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
24702           <leadingDigits>
24703             2(?:
24704               [278]|
24705               0[45]|
24706               [49]8
24707             )|
24708             3(?:
24709               08|
24710               17|
24711               3[78]|
24712               [78]
24713             )|
24714             5[15][78]|
24715             6(?:
24716               [29]8|
24717               37|
24718               [68][78]
24719             )
24720           </leadingDigits>
24721           <format>$1 $2</format>
24722         </numberFormat>
24723         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
24724           <leadingDigits>
24725             2(?:
24726               [278]|
24727               0[45]|
24728               48
24729             )|
24730             3(?:
24731               08|
24732               17|
24733               3[78]|
24734               [78]
24735             )|
24736             5[15][78]|
24737             6(?:
24738               [29]8|
24739               37|
24740               [68][78]
24741             )|
24742             80
24743           </leadingDigits>
24744           <format>$1 $2 $3</format>
24745         </numberFormat>
24746         <!-- Two-digit area codes -->
24747         <numberFormat pattern="([1-356]\d)(\d{3,5})">
24748           <leadingDigits>
24749             1[3-9]|
24750             2(?:
24751               [1-469]|
24752               0[0-35-9]|
24753               [45][0-79]
24754             )|
24755             3(?:
24756               0[0-79]|
24757               1[0-689]|
24758               [24-69]|
24759               3[0-69]
24760             )|
24761             5(?:
24762               [02-46-9]|
24763               [15][0-69]
24764             )|
24765             6(?:
24766               [0145]|
24767               [29][0-79]|
24768               3[0-689]|
24769               [68][0-69]
24770             )
24771           </leadingDigits>
24772           <format>$1 $2</format>
24773         </numberFormat>
24774         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
24775           <leadingDigits>
24776             1[3-9]|
24777             2(?:
24778               [1-469]|
24779               0[0-35-9]|
24780               [45][0-79]
24781             )|
24782             3(?:
24783               0[0-79]|
24784               1[0-689]|
24785               [24-69]|
24786               3[0-69]
24787             )|
24788             5(?:
24789               [02-46-9]|
24790               [15][0-69]
24791             )|
24792             6(?:
24793               [0145]|
24794               [29][0-79]|
24795               3[0-689]|
24796               [68][0-69]
24797             )
24798           </leadingDigits>
24799           <format>$1 $2 $3</format>
24800         </numberFormat>
24801         <!-- Four-digit area codes -->
24802         <numberFormat pattern="([25]\d{3})(\d{3,5})">
24803           <leadingDigits>
24804             (?:
24805               25|
24806               54
24807             )8
24808           </leadingDigits>
24809           <leadingDigits>
24810             258[23]|
24811             5483
24812           </leadingDigits>
24813           <format>$1 $2</format>
24814         </numberFormat>
24815         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
24816           <leadingDigits>
24817             (?:
24818               25|
24819               54
24820             )8
24821           </leadingDigits>
24822           <leadingDigits>
24823             258[23]|
24824             5483
24825           </leadingDigits>
24826           <format>$1 $2 $3</format>
24827         </numberFormat>
24828         <!-- VOIP numbers -->
24829         <numberFormat pattern="(8\d{3})(\d{6})">
24830           <leadingDigits>86</leadingDigits>
24831           <format>$1 $2</format>
24832         </numberFormat>
24833       </availableFormats>
24834       <generalDesc>
24835         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
24836              variable in length and the possible prefixes clash with the country code. -->
24837         <nationalNumberPattern>
24838           2(?:
24839             [012457-9]\d{3,8}|
24840             6\d{3,6}
24841           )|
24842           [13-79]\d{4,8}|
24843           8[06]\d{8}
24844         </nationalNumberPattern>
24845         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
24846       </generalDesc>
24847       <fixedLine>
24848         <!-- Numbering is grouped by subscriber-number length. -->
24849         <nationalNumberPattern>
24850           (?:
24851             1[3-9]|
24852             2(?:
24853               0[45]|
24854               [16]|
24855               2[28]|
24856               [49]8?|
24857               58[23]|
24858               7[246]|
24859               8[1346-9]
24860             )|
24861             3(?:
24862               08?|
24863               17?|
24864               3[78]|
24865               [2456]|
24866               7[1569]|
24867               8[379]
24868             )|
24869             5(?:
24870               [07-9]|
24871               1[78]|
24872               483|
24873               5(?:
24874                 7?|
24875                 8
24876               )
24877             )|
24878             6(?:
24879               0|
24880               28|
24881               37?|
24882               [45][68][78]|
24883               98?
24884             )|
24885             848
24886           )\d{3,6}|
24887           (?:
24888             2(?:
24889               27|
24890               5|
24891               7[135789]|
24892               8[25]
24893             )|
24894             3[39]|
24895             5[1-46]|
24896             6[126-8]
24897           )\d{4,6}|
24898           2(?:
24899             (?:
24900               0|
24901               70
24902             )\d{5,6}|
24903             2[05]\d{7}
24904           )|
24905           (?:
24906             4\d|
24907             9[2-8]
24908           )\d{4,7}
24909         </nationalNumberPattern>
24910         <exampleNumber>1312345</exampleNumber>
24911       </fixedLine>
24912       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
24913            also being used by the carriers as mobile prefixes. -->
24914       <mobile>
24915         <nationalNumberPattern>
24916           7[1378]\d{7}|
24917           86(?:
24918             22|
24919             44
24920           )\d{6}
24921         </nationalNumberPattern>
24922         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24923         <exampleNumber>711234567</exampleNumber>
24924       </mobile>
24925       <tollFree>
24926         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
24927         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24928         <exampleNumber>8001234567</exampleNumber>
24929       </tollFree>
24930       <!-- No premiumRate information can be found. -->
24931       <voip>
24932         <nationalNumberPattern>
24933           86(?:
24934             1[12]|
24935             30|
24936             55|
24937             77|
24938             8[367]|
24939             99
24940           )\d{6}
24941         </nationalNumberPattern>
24942         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24943         <exampleNumber>8686123456</exampleNumber>
24944       </voip>
24945       <emergency>
24946         <nationalNumberPattern>
24947           (?:
24948             112|
24949             99[3459]
24950           )
24951         </nationalNumberPattern>
24952         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24953         <exampleNumber>999</exampleNumber>
24954       </emergency>
24955     </territory>
24956
24957     <!-- Universal International Toll Free Number -->
24958     <!-- http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx -->
24959     <territory id="001" countryCode="800" leadingZeroPossible="true">
24960       <availableFormats>
24961         <numberFormat pattern="(\d{4})(\d{4})">
24962           <format>$1 $2</format>
24963         </numberFormat>
24964       </availableFormats>
24965       <generalDesc>
24966         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24967         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24968         <exampleNumber>12345678</exampleNumber>
24969       </generalDesc>
24970       <fixedLine>
24971         <nationalNumberPattern>NA</nationalNumberPattern>
24972         <possibleNumberPattern>NA</possibleNumberPattern>
24973       </fixedLine>
24974       <mobile>
24975         <nationalNumberPattern>NA</nationalNumberPattern>
24976         <possibleNumberPattern>NA</possibleNumberPattern>
24977       </mobile>
24978       <tollFree>
24979         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24980       </tollFree>
24981     </territory>
24982
24983     <!-- Universal International Shared Cost Number -->
24984     <!-- http://www.itu.int/rec/T-REC-E.169-200205-I/en -->
24985     <territory id="001" countryCode="808" leadingZeroPossible="true">
24986       <availableFormats>
24987         <numberFormat pattern="(\d{4})(\d{4})">
24988           <format>$1 $2</format>
24989         </numberFormat>
24990       </availableFormats>
24991       <generalDesc>
24992         <nationalNumberPattern>\d{8}</nationalNumberPattern>
24993         <possibleNumberPattern>\d{8}</possibleNumberPattern>
24994         <exampleNumber>12345678</exampleNumber>
24995       </generalDesc>
24996       <fixedLine>
24997         <nationalNumberPattern>NA</nationalNumberPattern>
24998         <possibleNumberPattern>NA</possibleNumberPattern>
24999       </fixedLine>
25000       <mobile>
25001         <nationalNumberPattern>NA</nationalNumberPattern>
25002         <possibleNumberPattern>NA</possibleNumberPattern>
25003       </mobile>
25004       <sharedCost>
25005         <nationalNumberPattern>\d{8}</nationalNumberPattern>
25006       </sharedCost>
25007     </territory>
25008
25009     <!-- Inmarsat Global Limited -->
25010     <!-- http://www.itu.int/oth/T0202000065/en -->
25011     <!-- www.inmarsat.com -->
25012     <territory id="001" countryCode="870">
25013       <availableFormats>
25014         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
25015           <format>$1 $2 $3</format>
25016         </numberFormat>
25017       </availableFormats>
25018       <generalDesc>
25019         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
25020         <possibleNumberPattern>\d{9}</possibleNumberPattern>
25021         <exampleNumber>301234567</exampleNumber>
25022       </generalDesc>
25023       <fixedLine>
25024         <nationalNumberPattern>NA</nationalNumberPattern>
25025         <possibleNumberPattern>NA</possibleNumberPattern>
25026       </fixedLine>
25027       <mobile>
25028         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
25029         <nationalNumberPattern>
25030           (?:
25031             [356]\d|
25032             7[6-8]
25033           )\d{7}
25034         </nationalNumberPattern>
25035       </mobile>
25036     </territory>
25037
25038     <!-- VISIONng -->
25039     <!-- http://www.itu.int/oth/T02020000E5/en -->
25040     <!-- Number length has been derived from examples found online. -->
25041     <territory id="001" countryCode="878">
25042       <availableFormats>
25043         <!-- Formatting chosen based on online examples. -->
25044         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
25045           <format>$1 $2 $3</format>
25046         </numberFormat>
25047       </availableFormats>
25048       <generalDesc>
25049         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
25050         <possibleNumberPattern>\d{12}</possibleNumberPattern>
25051         <exampleNumber>101234567890</exampleNumber>
25052       </generalDesc>
25053       <fixedLine>
25054         <nationalNumberPattern>NA</nationalNumberPattern>
25055         <possibleNumberPattern>NA</possibleNumberPattern>
25056       </fixedLine>
25057       <mobile>
25058         <nationalNumberPattern>NA</nationalNumberPattern>
25059         <possibleNumberPattern>NA</possibleNumberPattern>
25060       </mobile>
25061       <voip>
25062         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
25063       </voip>
25064     </territory>
25065
25066     <!-- Iridium -->
25067     <!-- www.iridium.com -->
25068     <!-- http://www.itu.int/oth/T0202000069/en -->
25069     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
25070          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
25071          are. For this reason, we only support Iridium numbers at the moment. -->
25072     <territory id="001" countryCode="881">
25073       <availableFormats>
25074         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
25075         <numberFormat pattern="(\d)(\d{3})(\d{5})">
25076           <leadingDigits>[67]</leadingDigits>
25077           <format>$1 $2 $3</format>
25078         </numberFormat>
25079       </availableFormats>
25080       <generalDesc>
25081         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
25082         <possibleNumberPattern>\d{9}</possibleNumberPattern>
25083         <exampleNumber>612345678</exampleNumber>
25084       </generalDesc>
25085       <fixedLine>
25086         <nationalNumberPattern>NA</nationalNumberPattern>
25087         <possibleNumberPattern>NA</possibleNumberPattern>
25088       </fixedLine>
25089       <mobile>
25090         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
25091       </mobile>
25092     </territory>
25093
25094     <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
25095     <!-- http://www.itu.int/oth/T0202000054/en -->
25096     <!-- http://www.gsm.aq/numberplan.php -->
25097     <!-- http://www.global.aq -->
25098     <!-- Maritime Communications Partner (MCP) +88232 -->
25099     <!-- http://www.itu.int/oth/T02020000F4/en -->
25100     <!-- Oration Technologies +88237 -->
25101     <!-- http://www.itu.int/oth/T02020000A0/en -->
25102     <!-- Telespazio S.p.A. +88213 -->
25103     <!-- http://www.itu.int/oth/T02020000CC/en -->
25104     <!-- Thuraya +88216 -->
25105     <!-- http://www.itu.int/oth/T02020000CF/en -->
25106     <territory id="001" countryCode="882">
25107       <availableFormats>
25108         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
25109           <leadingDigits>3[23]</leadingDigits>
25110           <format>$1 $2 $3</format>
25111         </numberFormat>
25112         <numberFormat pattern="(\d{2})(\d{5})">
25113           <leadingDigits>
25114             16|
25115             342
25116           </leadingDigits>
25117           <format>$1 $2</format>
25118         </numberFormat>
25119         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
25120           <leadingDigits>34[57]</leadingDigits>
25121           <format>$1 $2 $3</format>
25122         </numberFormat>
25123         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
25124           <leadingDigits>348</leadingDigits>
25125           <format>$1 $2 $3</format>
25126         </numberFormat>
25127         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
25128           <leadingDigits>1</leadingDigits>
25129           <format>$1 $2 $3</format>
25130         </numberFormat>
25131         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
25132           <leadingDigits>16</leadingDigits>
25133           <format>$1 $2 $3</format>
25134         </numberFormat>
25135         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
25136           <leadingDigits>16</leadingDigits>
25137           <format>$1 $2 $3</format>
25138         </numberFormat>
25139       </availableFormats>
25140       <generalDesc>
25141         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
25142         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
25143         <exampleNumber>3451234567</exampleNumber>
25144       </generalDesc>
25145       <fixedLine>
25146         <nationalNumberPattern>NA</nationalNumberPattern>
25147         <possibleNumberPattern>NA</possibleNumberPattern>
25148       </fixedLine>
25149       <mobile>
25150         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
25151              Oration based on numbers found online. -->
25152         <nationalNumberPattern>
25153           3(?:
25154             2\d{3}|
25155             37\d{2}|
25156             4(?:
25157               2|
25158               7\d{3}
25159             )
25160           )\d{4}
25161         </nationalNumberPattern>
25162         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
25163       </mobile>
25164       <voip>
25165         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
25166         <nationalNumberPattern>
25167           1(?:
25168             3(?:
25169               0[0347]|
25170               [13][0139]|
25171               2[035]|
25172               4[013568]|
25173               6[0459]|
25174               7[06]|
25175               8[15678]|
25176               9[0689]
25177             )\d{4}|
25178             6\d{5,10}
25179           )|
25180           345\d{7}
25181         </nationalNumberPattern>
25182         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
25183       </voip>
25184       <voicemail>
25185         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
25186         <possibleNumberPattern>\d{11}</possibleNumberPattern>
25187       </voicemail>
25188     </territory>
25189
25190     <!-- http://www.itu.int/oth/T02020000F3/en -->
25191     <!-- http://www.republicwireless.com/world-wi-fi-number -->
25192     <territory id="001" countryCode="883">
25193       <availableFormats>
25194         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
25195           <format>$1 $2 $3</format>
25196         </numberFormat>
25197         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
25198           <format>$1 $2 $3 $4</format>
25199         </numberFormat>
25200       </availableFormats>
25201       <generalDesc>
25202         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
25203              costs can be found online, so we don't include them here for now. -->
25204         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
25205         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
25206         <exampleNumber>510012345</exampleNumber>
25207       </generalDesc>
25208       <fixedLine>
25209         <nationalNumberPattern>NA</nationalNumberPattern>
25210         <possibleNumberPattern>NA</possibleNumberPattern>
25211       </fixedLine>
25212       <mobile>
25213         <nationalNumberPattern>NA</nationalNumberPattern>
25214         <possibleNumberPattern>NA</possibleNumberPattern>
25215       </mobile>
25216       <voip>
25217         <nationalNumberPattern>
25218           51(?:
25219             00\d{5}(?:\d{3})?|
25220             10\d{8}
25221           )
25222         </nationalNumberPattern>
25223       </voip>
25224     </territory>
25225
25226     <!-- United Nations- OCHA -->
25227     <!-- http://www.itu.int/oth/T02020000FA/en -->
25228     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
25229          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
25230          the tariff of a national call. -->
25231     <territory id="001" countryCode="888" leadingZeroPossible="true">
25232       <availableFormats>
25233         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
25234           <format>$1 $2 $3</format>
25235         </numberFormat>
25236       </availableFormats>
25237       <generalDesc>
25238         <nationalNumberPattern>\d{11}</nationalNumberPattern>
25239         <possibleNumberPattern>\d{11}</possibleNumberPattern>
25240         <exampleNumber>12345678901</exampleNumber>
25241       </generalDesc>
25242       <fixedLine>
25243         <nationalNumberPattern>NA</nationalNumberPattern>
25244         <possibleNumberPattern>NA</possibleNumberPattern>
25245       </fixedLine>
25246       <mobile>
25247         <nationalNumberPattern>NA</nationalNumberPattern>
25248         <possibleNumberPattern>NA</possibleNumberPattern>
25249       </mobile>
25250       <uan>
25251         <nationalNumberPattern>\d{11}</nationalNumberPattern>
25252       </uan>
25253     </territory>
25254
25255     <!-- Universal International Premium Rate Number -->
25256     <!-- http://www.itu.int/rec/T-REC-E.169-200205-I/en -->
25257     <territory id="001" countryCode="979" leadingZeroPossible="true">
25258       <availableFormats>
25259         <numberFormat pattern="(\d)(\d{4})(\d{4})">
25260           <format>$1 $2 $3</format>
25261         </numberFormat>
25262       </availableFormats>
25263       <generalDesc>
25264         <nationalNumberPattern>\d{9}</nationalNumberPattern>
25265         <possibleNumberPattern>\d{9}</possibleNumberPattern>
25266         <exampleNumber>123456789</exampleNumber>
25267       </generalDesc>
25268       <fixedLine>
25269         <nationalNumberPattern>NA</nationalNumberPattern>
25270         <possibleNumberPattern>NA</possibleNumberPattern>
25271       </fixedLine>
25272       <mobile>
25273         <nationalNumberPattern>NA</nationalNumberPattern>
25274         <possibleNumberPattern>NA</possibleNumberPattern>
25275       </mobile>
25276       <premiumRate>
25277         <nationalNumberPattern>\d{9}</nationalNumberPattern>
25278       </premiumRate>
25279     </territory>
25280   </territories>
25281 </phoneNumberMetadata>